@fullstackhouse/cerber 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,250 @@
1
+ var UE=Object.defineProperty;var BE=(i,a,r)=>a in i?UE(i,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[a]=r;var At=(i,a,r)=>BE(i,typeof a!="symbol"?a+"":a,r);(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const p of f.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&s(p)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();function Ib(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Nu={exports:{}},Ms={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Pm;function IE(){if(Pm)return Ms;Pm=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(s,u,f){var p=null;if(f!==void 0&&(p=""+f),u.key!==void 0&&(p=""+u.key),"key"in u){f={};for(var y in u)y!=="key"&&(f[y]=u[y])}else f=u;return u=f.ref,{$$typeof:i,type:s,key:p,ref:u!==void 0?u:null,props:f}}return Ms.Fragment=a,Ms.jsx=r,Ms.jsxs=r,Ms}var Km;function HE(){return Km||(Km=1,Nu.exports=IE()),Nu.exports}var d=HE(),xu={exports:{}},Ye={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Zm;function qE(){if(Zm)return Ye;Zm=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),p=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function T(w){return w===null||typeof w!="object"?null:(w=S&&w[S]||w["@@iterator"],typeof w=="function"?w:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,A={};function R(w,L,I){this.props=w,this.context=L,this.refs=A,this.updater=I||_}R.prototype.isReactComponent={},R.prototype.setState=function(w,L){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,L,"setState")},R.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function $(){}$.prototype=R.prototype;function U(w,L,I){this.props=w,this.context=L,this.refs=A,this.updater=I||_}var W=U.prototype=new $;W.constructor=U,C(W,R.prototype),W.isPureReactComponent=!0;var z=Array.isArray;function ae(){}var se={H:null,A:null,T:null,S:null},x=Object.prototype.hasOwnProperty;function G(w,L,I){var oe=I.ref;return{$$typeof:i,type:w,key:L,ref:oe!==void 0?oe:null,props:I}}function ee(w,L){return G(w.type,L,w.props)}function ue(w){return typeof w=="object"&&w!==null&&w.$$typeof===i}function Ee(w){var L={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(I){return L[I]})}var j=/\/+/g;function le(w,L){return typeof w=="object"&&w!==null&&w.key!=null?Ee(""+w.key):L.toString(36)}function fe(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(ae,ae):(w.status="pending",w.then(function(L){w.status==="pending"&&(w.status="fulfilled",w.value=L)},function(L){w.status==="pending"&&(w.status="rejected",w.reason=L)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function M(w,L,I,oe,me){var ve=typeof w;(ve==="undefined"||ve==="boolean")&&(w=null);var X=!1;if(w===null)X=!0;else switch(ve){case"bigint":case"string":case"number":X=!0;break;case"object":switch(w.$$typeof){case i:case a:X=!0;break;case b:return X=w._init,M(X(w._payload),L,I,oe,me)}}if(X)return me=me(w),X=oe===""?"."+le(w,0):oe,z(me)?(I="",X!=null&&(I=X.replace(j,"$&/")+"/"),M(me,L,I,"",function(Ge){return Ge})):me!=null&&(ue(me)&&(me=ee(me,I+(me.key==null||w&&w.key===me.key?"":(""+me.key).replace(j,"$&/")+"/")+X)),L.push(me)),1;X=0;var be=oe===""?".":oe+":";if(z(w))for(var xe=0;xe<w.length;xe++)oe=w[xe],ve=be+le(oe,xe),X+=M(oe,L,I,ve,me);else if(xe=T(w),typeof xe=="function")for(w=xe.call(w),xe=0;!(oe=w.next()).done;)oe=oe.value,ve=be+le(oe,xe++),X+=M(oe,L,I,ve,me);else if(ve==="object"){if(typeof w.then=="function")return M(fe(w),L,I,oe,me);throw L=String(w),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return X}function Q(w,L,I){if(w==null)return w;var oe=[],me=0;return M(w,oe,"","",function(ve){return L.call(I,ve,me++)}),oe}function pe(w){if(w._status===-1){var L=w._result;L=L(),L.then(function(I){(w._status===0||w._status===-1)&&(w._status=1,w._result=I)},function(I){(w._status===0||w._status===-1)&&(w._status=2,w._result=I)}),w._status===-1&&(w._status=0,w._result=L)}if(w._status===1)return w._result.default;throw w._result}var we=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},De={map:Q,forEach:function(w,L,I){Q(w,function(){L.apply(this,arguments)},I)},count:function(w){var L=0;return Q(w,function(){L++}),L},toArray:function(w){return Q(w,function(L){return L})||[]},only:function(w){if(!ue(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return Ye.Activity=v,Ye.Children=De,Ye.Component=R,Ye.Fragment=r,Ye.Profiler=u,Ye.PureComponent=U,Ye.StrictMode=s,Ye.Suspense=g,Ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=se,Ye.__COMPILER_RUNTIME={__proto__:null,c:function(w){return se.H.useMemoCache(w)}},Ye.cache=function(w){return function(){return w.apply(null,arguments)}},Ye.cacheSignal=function(){return null},Ye.cloneElement=function(w,L,I){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var oe=C({},w.props),me=w.key;if(L!=null)for(ve in L.key!==void 0&&(me=""+L.key),L)!x.call(L,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&L.ref===void 0||(oe[ve]=L[ve]);var ve=arguments.length-2;if(ve===1)oe.children=I;else if(1<ve){for(var X=Array(ve),be=0;be<ve;be++)X[be]=arguments[be+2];oe.children=X}return G(w.type,me,oe)},Ye.createContext=function(w){return w={$$typeof:p,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:f,_context:w},w},Ye.createElement=function(w,L,I){var oe,me={},ve=null;if(L!=null)for(oe in L.key!==void 0&&(ve=""+L.key),L)x.call(L,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(me[oe]=L[oe]);var X=arguments.length-2;if(X===1)me.children=I;else if(1<X){for(var be=Array(X),xe=0;xe<X;xe++)be[xe]=arguments[xe+2];me.children=be}if(w&&w.defaultProps)for(oe in X=w.defaultProps,X)me[oe]===void 0&&(me[oe]=X[oe]);return G(w,ve,me)},Ye.createRef=function(){return{current:null}},Ye.forwardRef=function(w){return{$$typeof:y,render:w}},Ye.isValidElement=ue,Ye.lazy=function(w){return{$$typeof:b,_payload:{_status:-1,_result:w},_init:pe}},Ye.memo=function(w,L){return{$$typeof:m,type:w,compare:L===void 0?null:L}},Ye.startTransition=function(w){var L=se.T,I={};se.T=I;try{var oe=w(),me=se.S;me!==null&&me(I,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(ae,we)}catch(ve){we(ve)}finally{L!==null&&I.types!==null&&(L.types=I.types),se.T=L}},Ye.unstable_useCacheRefresh=function(){return se.H.useCacheRefresh()},Ye.use=function(w){return se.H.use(w)},Ye.useActionState=function(w,L,I){return se.H.useActionState(w,L,I)},Ye.useCallback=function(w,L){return se.H.useCallback(w,L)},Ye.useContext=function(w){return se.H.useContext(w)},Ye.useDebugValue=function(){},Ye.useDeferredValue=function(w,L){return se.H.useDeferredValue(w,L)},Ye.useEffect=function(w,L){return se.H.useEffect(w,L)},Ye.useEffectEvent=function(w){return se.H.useEffectEvent(w)},Ye.useId=function(){return se.H.useId()},Ye.useImperativeHandle=function(w,L,I){return se.H.useImperativeHandle(w,L,I)},Ye.useInsertionEffect=function(w,L){return se.H.useInsertionEffect(w,L)},Ye.useLayoutEffect=function(w,L){return se.H.useLayoutEffect(w,L)},Ye.useMemo=function(w,L){return se.H.useMemo(w,L)},Ye.useOptimistic=function(w,L){return se.H.useOptimistic(w,L)},Ye.useReducer=function(w,L,I){return se.H.useReducer(w,L,I)},Ye.useRef=function(w){return se.H.useRef(w)},Ye.useState=function(w){return se.H.useState(w)},Ye.useSyncExternalStore=function(w,L,I){return se.H.useSyncExternalStore(w,L,I)},Ye.useTransition=function(){return se.H.useTransition()},Ye.version="19.2.8",Ye}var Xm;function Xd(){return Xm||(Xm=1,xu.exports=qE()),xu.exports}var q=Xd();const GE=Ib(q);var Tu={exports:{}},Ds={},Au={exports:{}},Ru={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Vm;function $E(){return Vm||(Vm=1,(function(i){function a(M,Q){var pe=M.length;M.push(Q);e:for(;0<pe;){var we=pe-1>>>1,De=M[we];if(0<u(De,Q))M[we]=Q,M[pe]=De,pe=we;else break e}}function r(M){return M.length===0?null:M[0]}function s(M){if(M.length===0)return null;var Q=M[0],pe=M.pop();if(pe!==Q){M[0]=pe;e:for(var we=0,De=M.length,w=De>>>1;we<w;){var L=2*(we+1)-1,I=M[L],oe=L+1,me=M[oe];if(0>u(I,pe))oe<De&&0>u(me,I)?(M[we]=me,M[oe]=pe,we=oe):(M[we]=I,M[L]=pe,we=L);else if(oe<De&&0>u(me,pe))M[we]=me,M[oe]=pe,we=oe;else break e}}return Q}function u(M,Q){var pe=M.sortIndex-Q.sortIndex;return pe!==0?pe:M.id-Q.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var p=Date,y=p.now();i.unstable_now=function(){return p.now()-y}}var g=[],m=[],b=1,v=null,S=3,T=!1,_=!1,C=!1,A=!1,R=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function W(M){for(var Q=r(m);Q!==null;){if(Q.callback===null)s(m);else if(Q.startTime<=M)s(m),Q.sortIndex=Q.expirationTime,a(g,Q);else break;Q=r(m)}}function z(M){if(C=!1,W(M),!_)if(r(g)!==null)_=!0,ae||(ae=!0,Ee());else{var Q=r(m);Q!==null&&fe(z,Q.startTime-M)}}var ae=!1,se=-1,x=5,G=-1;function ee(){return A?!0:!(i.unstable_now()-G<x)}function ue(){if(A=!1,ae){var M=i.unstable_now();G=M;var Q=!0;try{e:{_=!1,C&&(C=!1,$(se),se=-1),T=!0;var pe=S;try{t:{for(W(M),v=r(g);v!==null&&!(v.expirationTime>M&&ee());){var we=v.callback;if(typeof we=="function"){v.callback=null,S=v.priorityLevel;var De=we(v.expirationTime<=M);if(M=i.unstable_now(),typeof De=="function"){v.callback=De,W(M),Q=!0;break t}v===r(g)&&s(g),W(M)}else s(g);v=r(g)}if(v!==null)Q=!0;else{var w=r(m);w!==null&&fe(z,w.startTime-M),Q=!1}}break e}finally{v=null,S=pe,T=!1}Q=void 0}}finally{Q?Ee():ae=!1}}}var Ee;if(typeof U=="function")Ee=function(){U(ue)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,le=j.port2;j.port1.onmessage=ue,Ee=function(){le.postMessage(null)}}else Ee=function(){R(ue,0)};function fe(M,Q){se=R(function(){M(i.unstable_now())},Q)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(M){M.callback=null},i.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<M?Math.floor(1e3/M):5},i.unstable_getCurrentPriorityLevel=function(){return S},i.unstable_next=function(M){switch(S){case 1:case 2:case 3:var Q=3;break;default:Q=S}var pe=S;S=Q;try{return M()}finally{S=pe}},i.unstable_requestPaint=function(){A=!0},i.unstable_runWithPriority=function(M,Q){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var pe=S;S=M;try{return Q()}finally{S=pe}},i.unstable_scheduleCallback=function(M,Q,pe){var we=i.unstable_now();switch(typeof pe=="object"&&pe!==null?(pe=pe.delay,pe=typeof pe=="number"&&0<pe?we+pe:we):pe=we,M){case 1:var De=-1;break;case 2:De=250;break;case 5:De=1073741823;break;case 4:De=1e4;break;default:De=5e3}return De=pe+De,M={id:b++,callback:Q,priorityLevel:M,startTime:pe,expirationTime:De,sortIndex:-1},pe>we?(M.sortIndex=pe,a(m,M),r(g)===null&&M===r(m)&&(C?($(se),se=-1):C=!0,fe(z,pe-we))):(M.sortIndex=De,a(g,M),_||T||(_=!0,ae||(ae=!0,Ee()))),M},i.unstable_shouldYield=ee,i.unstable_wrapCallback=function(M){var Q=S;return function(){var pe=S;S=Q;try{return M.apply(this,arguments)}finally{S=pe}}}})(Ru)),Ru}var Qm;function YE(){return Qm||(Qm=1,Au.exports=$E()),Au.exports}var ku={exports:{}},Cn={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Wm;function FE(){if(Wm)return Cn;Wm=1;var i=Xd();function a(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(g,m,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:g,containerInfo:m,implementation:b}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Cn.createPortal=function(g,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return f(g,m,null,b)},Cn.flushSync=function(g){var m=p.T,b=s.p;try{if(p.T=null,s.p=2,g)return g()}finally{p.T=m,s.p=b,s.d.f()}},Cn.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(g,m))},Cn.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Cn.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,T=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?s.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:T}):b==="script"&&s.d.X(g,{crossOrigin:v,integrity:S,fetchPriority:T,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Cn.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=y(m.as,m.crossOrigin);s.d.M(g,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(g)},Cn.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin);s.d.L(g,b,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Cn.preloadModule=function(g,m){if(typeof g=="string")if(m){var b=y(m.as,m.crossOrigin);s.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(g)},Cn.requestFormReset=function(g){s.d.r(g)},Cn.unstable_batchedUpdates=function(g,m){return g(m)},Cn.useFormState=function(g,m,b){return p.H.useFormState(g,m,b)},Cn.useFormStatus=function(){return p.H.useHostTransitionStatus()},Cn.version="19.2.8",Cn}var Jm;function Hb(){if(Jm)return ku.exports;Jm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),ku.exports=FE(),ku.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var eg;function PE(){if(eg)return Ds;eg=1;var i=YE(),a=Xd(),r=Hb();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,l=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){n=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return g(o),e;if(c===l)return g(o),t;c=c.sibling}throw Error(s(188))}if(n.return!==l.return)n=o,l=c;else{for(var h=!1,E=o.child;E;){if(E===n){h=!0,n=o,l=c;break}if(E===l){h=!0,l=o,n=c;break}E=E.sibling}if(!h){for(E=c.child;E;){if(E===n){h=!0,n=c,l=o;break}if(E===l){h=!0,l=c,n=o;break}E=E.sibling}if(!h)throw Error(s(189))}}if(n.alternate!==l)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),U=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),se=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function Ee(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var j=Symbol.for("react.client.reference");function le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===j?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case R:return"Profiler";case A:return"StrictMode";case z:return"Suspense";case ae:return"SuspenseList";case G:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case U:return e.displayName||"Context";case $:return(e._context.displayName||"Context")+".Consumer";case W:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case se:return t=e.displayName||null,t!==null?t:le(e.type)||"Memo";case x:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var fe=Array.isArray,M=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe={pending:!1,data:null,method:null,action:null},we=[],De=-1;function w(e){return{current:e}}function L(e){0>De||(e.current=we[De],we[De]=null,De--)}function I(e,t){De++,we[De]=e.current,e.current=t}var oe=w(null),me=w(null),ve=w(null),X=w(null);function be(e,t){switch(I(ve,t),I(me,e),I(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mm(t),e=gm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(oe),I(oe,e)}function xe(){L(oe),L(me),L(ve)}function Ge(e){e.memoizedState!==null&&I(X,e);var t=oe.current,n=gm(t,e.type);t!==n&&(I(me,e),I(oe,n))}function $e(e){me.current===e&&(L(oe),L(me)),X.current===e&&(L(X),Rs._currentValue=pe)}var Ce,St;function Ze(e){if(Ce===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||"",St=-1<n.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ce+e+St}var In=!1;function Je(e,t){if(!e||In)return"";In=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(V){var Z=V}Reflect.construct(e,[],ce)}else{try{ce.call()}catch(V){Z=V}e.call(ce.prototype)}}else{try{throw Error()}catch(V){Z=V}(ce=e())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(V){if(V&&Z&&typeof V.stack=="string")return[V.stack,Z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),h=c[0],E=c[1];if(h&&E){var O=h.split(`
44
+ `),K=E.split(`
45
+ `);for(o=l=0;l<O.length&&!O[l].includes("DetermineComponentFrameRoot");)l++;for(;o<K.length&&!K[o].includes("DetermineComponentFrameRoot");)o++;if(l===O.length||o===K.length)for(l=O.length-1,o=K.length-1;1<=l&&0<=o&&O[l]!==K[o];)o--;for(;1<=l&&0<=o;l--,o--)if(O[l]!==K[o]){if(l!==1||o!==1)do if(l--,o--,0>o||O[l]!==K[o]){var ie=`
46
+ `+O[l].replace(" at new "," at ");return e.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",e.displayName)),ie}while(1<=l&&0<=o);break}}}finally{In=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ze(n):""}function Ln(e,t){switch(e.tag){case 26:case 27:case 5:return Ze(e.type);case 16:return Ze("Lazy");case 13:return e.child!==t&&t!==null?Ze("Suspense Fallback"):Ze("Suspense");case 19:return Ze("SuspenseList");case 0:case 15:return Je(e.type,!1);case 11:return Je(e.type.render,!1);case 1:return Je(e.type,!0);case 31:return Ze("Activity");default:return""}}function Hn(e){try{var t="",n=null;do t+=Ln(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
47
+ Error generating stack: `+l.message+`
48
+ `+l.stack}}var It=Object.prototype.hasOwnProperty,Rt=i.unstable_scheduleCallback,on=i.unstable_cancelCallback,yn=i.unstable_shouldYield,Ft=i.unstable_requestPaint,je=i.unstable_now,Lt=i.unstable_getCurrentPriorityLevel,vt=i.unstable_ImmediatePriority,Ot=i.unstable_UserBlockingPriority,Tn=i.unstable_NormalPriority,zn=i.unstable_LowPriority,An=i.unstable_IdlePriority,jn=i.log,Rn=i.unstable_setDisableYieldValue,cn=null,Ht=null;function kn(e){if(typeof jn=="function"&&Rn(e),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(cn,e)}catch{}}var qt=Math.clz32?Math.clz32:hn,la=Math.log,un=Math.LN2;function hn(e){return e>>>=0,e===0?32:31-(la(e)/un|0)|0}var qe=256,pn=262144,Pt=4194304;function Gt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function k(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var E=l&134217727;return E!==0?(l=E&~c,l!==0?o=Gt(l):(h&=E,h!==0?o=Gt(h):n||(n=E&~e,n!==0&&(o=Gt(n))))):(E=l&~c,E!==0?o=Gt(E):h!==0?o=Gt(h):n||(n=l&~e,n!==0&&(o=Gt(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function te(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ye(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ze(){var e=Pt;return Pt<<=1,(Pt&62914560)===0&&(Pt=4194304),e}function Qe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function et(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ae(e,t,n,l,o,c){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var E=e.entanglements,O=e.expirationTimes,K=e.hiddenUpdates;for(n=h&~n;0<n;){var ie=31-qt(n),ce=1<<ie;E[ie]=0,O[ie]=-1;var Z=K[ie];if(Z!==null)for(K[ie]=null,ie=0;ie<Z.length;ie++){var V=Z[ie];V!==null&&(V.lane&=-536870913)}n&=~ce}l!==0&&Se(e,l,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function Se(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-qt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Ue(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-qt(n),o=1<<l;o&t|e[l]&t&&(e[l]|=t),n&=~o}}function Ct(e,t){var n=t&-t;return n=(n&42)!==0?1:mt(n),(n&(e.suspendedLanes|t))!==0?0:n}function mt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function qn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function sa(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Im(e.type))}function Na(e,t){var n=Q.p;try{return Q.p=e,t()}finally{Q.p=n}}var dn=Math.random().toString(36).slice(2),wt="__reactFiber$"+dn,Kt="__reactProps$"+dn,tt="__reactContainer$"+dn,vn="__reactEvents$"+dn,Ua="__reactListeners$"+dn,ba="__reactHandles$"+dn,xa="__reactResources$"+dn,ra="__reactMarker$"+dn;function Ta(e){delete e[wt],delete e[Kt],delete e[vn],delete e[Ua],delete e[ba]}function Wt(e){var t=e[wt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tt]||n[wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wm(e);e!==null;){if(n=e[wt])return n;e=wm(e)}return t}e=n,n=e.parentNode}return null}function Gn(e){if(e=e[wt]||e[tt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Vn(e){var t=e[xa];return t||(t=e[xa]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[ra]=!0}var Y=new Set,de={};function Ne(e,t){F(e,t),F(e+"Capture",t)}function F(e,t){for(de[e]=t,e=0;e<t.length;e++)Y.add(t[e])}var ge=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ie={},Fe={};function dt(e){return It.call(Fe,e)?!0:It.call(Ie,e)?!1:ge.test(e)?Fe[e]=!0:(Ie[e]=!0,!1)}function gt(e,t,n){if(dt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Bt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Zt(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function il(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){n=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function li(e){if(!e._valueTracker){var t=zt(e)?"checked":"value";e._valueTracker=il(e,t,""+e[t])}}function si(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=zt(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Ba(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ll=/[\n"\\]/g;function On(e){return e.replace(ll,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ri(e,t,n,l,o,c,h,E){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ft(t)):e.value!==""+ft(t)&&(e.value=""+ft(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?oi(e,h,ft(t)):n!=null?oi(e,h,ft(n)):l!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+ft(E):e.removeAttribute("name")}function Ia(e,t,n,l,o,c,h,E){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){li(e);return}n=n!=null?""+ft(n):"",t=t!=null?""+ft(t):n,E||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=E?e.checked:!!l,e.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),li(e)}function oi(e,t,n){t==="number"&&Ba(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Jt(e,t,n,l){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&l&&(e[n].defaultSelected=!0)}else{for(n=""+ft(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ha(e,t,n){if(t!=null&&(t=""+ft(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ft(n):""}function Aa(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(s(92));if(fe(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=ft(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),li(e)}function J(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var N=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function B(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||N.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function ne(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&n[o]!==l&&B(e,o,l)}else for(var c in t)t.hasOwnProperty(c)&&B(e,c,t[c])}function Te(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ke=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),He=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function nt(e){return He.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function he(){}var _e=null;function Me(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ve=null,We=null;function oa(e){var t=Gn(e);if(t&&(e=t.stateNode)){var n=e[Kt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ri(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+On(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var o=l[Kt]||null;if(!o)throw Error(s(90));ri(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&si(l)}break e;case"textarea":Ha(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}}}var Yl=!1;function Ks(e,t,n){if(Yl)return e(t,n);Yl=!0;try{var l=e(t);return l}finally{if(Yl=!1,(Ve!==null||We!==null)&&(Lr(),Ve&&(t=Ve,e=We,We=Ve=null,oa(t),e)))for(t=0;t<e.length;t++)oa(e[t])}}function Fl(e,t){var n=e.stateNode;if(n===null)return null;var l=n[Kt]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var qa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),No=!1;if(qa)try{var Pl={};Object.defineProperty(Pl,"passive",{get:function(){No=!0}}),window.addEventListener("test",Pl,Pl),window.removeEventListener("test",Pl,Pl)}catch{No=!1}var ci=null,xo=null,Zs=null;function gf(){if(Zs)return Zs;var e,t=xo,n=t.length,l,o="value"in ci?ci.value:ci.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var h=n-e;for(l=1;l<=h&&t[n-l]===o[c-l];l++);return Zs=o.slice(e,1<l?1-l:void 0)}function Xs(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 Vs(){return!0}function bf(){return!1}function $n(e){function t(n,l,o,c,h){this._reactName=n,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(n=e[E],this[E]=n?n(c):c[E]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Vs:bf,this.isPropagationStopped=bf,this}return v(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=Vs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vs)},persist:function(){},isPersistent:Vs}),t}var ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qs=$n(ji),Kl=v({},ji,{view:0,detail:0}),zy=$n(Kl),To,Ao,Zl,Ws=v({},Kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ko,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!==Zl&&(Zl&&e.type==="mousemove"?(To=e.screenX-Zl.screenX,Ao=e.screenY-Zl.screenY):Ao=To=0,Zl=e),To)},movementY:function(e){return"movementY"in e?e.movementY:Ao}}),yf=$n(Ws),jy=v({},Ws,{dataTransfer:0}),Uy=$n(jy),By=v({},Kl,{relatedTarget:0}),Ro=$n(By),Iy=v({},ji,{animationName:0,elapsedTime:0,pseudoElement:0}),Hy=$n(Iy),qy=v({},ji,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gy=$n(qy),$y=v({},ji,{data:0}),vf=$n($y),Yy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fy={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"},Py={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ky(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Py[e])?!!t[e]:!1}function ko(){return Ky}var Zy=v({},Kl,{key:function(e){if(e.key){var t=Yy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ko,charCode:function(e){return e.type==="keypress"?Xs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Xy=$n(Zy),Vy=v({},Ws,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ef=$n(Vy),Qy=v({},Kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ko}),Wy=$n(Qy),Jy=v({},ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),ev=$n(Jy),tv=v({},Ws,{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}),nv=$n(tv),av=v({},ji,{newState:0,oldState:0}),iv=$n(av),lv=[9,13,27,32],Oo=qa&&"CompositionEvent"in window,Xl=null;qa&&"documentMode"in document&&(Xl=document.documentMode);var sv=qa&&"TextEvent"in window&&!Xl,_f=qa&&(!Oo||Xl&&8<Xl&&11>=Xl),Sf=" ",wf=!1;function Nf(e,t){switch(e){case"keyup":return lv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sl=!1;function rv(e,t){switch(e){case"compositionend":return xf(t);case"keypress":return t.which!==32?null:(wf=!0,Sf);case"textInput":return e=t.data,e===Sf&&wf?null:e;default:return null}}function ov(e,t){if(sl)return e==="compositionend"||!Oo&&Nf(e,t)?(e=gf(),Zs=xo=ci=null,sl=!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 _f&&t.locale!=="ko"?null:t.data;default:return null}}var cv={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 Tf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cv[e.type]:t==="textarea"}function Af(e,t,n,l){Ve?We?We.push(l):We=[l]:Ve=l,t=qr(t,"onChange"),0<t.length&&(n=new Qs("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Vl=null,Ql=null;function uv(e){cm(e,0)}function Js(e){var t=Xn(e);if(si(t))return e}function Rf(e,t){if(e==="change")return t}var kf=!1;if(qa){var Co;if(qa){var Mo="oninput"in document;if(!Mo){var Of=document.createElement("div");Of.setAttribute("oninput","return;"),Mo=typeof Of.oninput=="function"}Co=Mo}else Co=!1;kf=Co&&(!document.documentMode||9<document.documentMode)}function Cf(){Vl&&(Vl.detachEvent("onpropertychange",Mf),Ql=Vl=null)}function Mf(e){if(e.propertyName==="value"&&Js(Ql)){var t=[];Af(t,Ql,e,Me(e)),Ks(uv,t)}}function dv(e,t,n){e==="focusin"?(Cf(),Vl=t,Ql=n,Vl.attachEvent("onpropertychange",Mf)):e==="focusout"&&Cf()}function fv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Js(Ql)}function hv(e,t){if(e==="click")return Js(t)}function pv(e,t){if(e==="input"||e==="change")return Js(t)}function mv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qn=typeof Object.is=="function"?Object.is:mv;function Wl(e,t){if(Qn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var o=n[l];if(!It.call(t,o)||!Qn(e[o],t[o]))return!1}return!0}function Df(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lf(e,t){var n=Df(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Df(n)}}function zf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ba(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ba(e.document)}return t}function Do(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var gv=qa&&"documentMode"in document&&11>=document.documentMode,rl=null,Lo=null,Jl=null,zo=!1;function Uf(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zo||rl==null||rl!==Ba(l)||(l=rl,"selectionStart"in l&&Do(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Jl&&Wl(Jl,l)||(Jl=l,l=qr(Lo,"onSelect"),0<l.length&&(t=new Qs("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=rl)))}function Ui(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ol={animationend:Ui("Animation","AnimationEnd"),animationiteration:Ui("Animation","AnimationIteration"),animationstart:Ui("Animation","AnimationStart"),transitionrun:Ui("Transition","TransitionRun"),transitionstart:Ui("Transition","TransitionStart"),transitioncancel:Ui("Transition","TransitionCancel"),transitionend:Ui("Transition","TransitionEnd")},jo={},Bf={};qa&&(Bf=document.createElement("div").style,"AnimationEvent"in window||(delete ol.animationend.animation,delete ol.animationiteration.animation,delete ol.animationstart.animation),"TransitionEvent"in window||delete ol.transitionend.transition);function Bi(e){if(jo[e])return jo[e];if(!ol[e])return e;var t=ol[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bf)return jo[e]=t[n];return e}var If=Bi("animationend"),Hf=Bi("animationiteration"),qf=Bi("animationstart"),bv=Bi("transitionrun"),yv=Bi("transitionstart"),vv=Bi("transitioncancel"),Gf=Bi("transitionend"),$f=new Map,Uo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Uo.push("scrollEnd");function ya(e,t){$f.set(e,t),Ne(t,[e])}var er=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ca=[],cl=0,Bo=0;function tr(){for(var e=cl,t=Bo=cl=0;t<e;){var n=ca[t];ca[t++]=null;var l=ca[t];ca[t++]=null;var o=ca[t];ca[t++]=null;var c=ca[t];if(ca[t++]=null,l!==null&&o!==null){var h=l.pending;h===null?o.next=o:(o.next=h.next,h.next=o),l.pending=o}c!==0&&Yf(n,o,c)}}function nr(e,t,n,l){ca[cl++]=e,ca[cl++]=t,ca[cl++]=n,ca[cl++]=l,Bo|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Io(e,t,n,l){return nr(e,t,n,l),ar(e)}function Ii(e,t){return nr(e,null,null,t),ar(e)}function Yf(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-qt(n),e=c.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=n|536870912),c):null}function ar(e){if(50<_s)throw _s=0,Zc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ul={};function Ev(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wn(e,t,n,l){return new Ev(e,t,n,l)}function Ho(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ga(e,t){var n=e.alternate;return n===null?(n=Wn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ff(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ir(e,t,n,l,o,c){var h=0;if(l=e,typeof e=="function")Ho(e)&&(h=1);else if(typeof e=="string")h=xE(e,n,oe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=Wn(31,n,t,o),e.elementType=G,e.lanes=c,e;case C:return Hi(n.children,o,c,t);case A:h=8,o|=24;break;case R:return e=Wn(12,n,t,o|2),e.elementType=R,e.lanes=c,e;case z:return e=Wn(13,n,t,o),e.elementType=z,e.lanes=c,e;case ae:return e=Wn(19,n,t,o),e.elementType=ae,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:h=10;break e;case $:h=9;break e;case W:h=11;break e;case se:h=14;break e;case x:h=16,l=null;break e}h=29,n=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Wn(h,n,t,o),t.elementType=e,t.type=l,t.lanes=c,t}function Hi(e,t,n,l){return e=Wn(7,e,l,t),e.lanes=n,e}function qo(e,t,n){return e=Wn(6,e,null,t),e.lanes=n,e}function Pf(e){var t=Wn(18,null,null,0);return t.stateNode=e,t}function Go(e,t,n){return t=Wn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kf=new WeakMap;function ua(e,t){if(typeof e=="object"&&e!==null){var n=Kf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Hn(t)},Kf.set(e,t),t)}return{value:e,source:t,stack:Hn(t)}}var dl=[],fl=0,lr=null,es=0,da=[],fa=0,ui=null,Ra=1,ka="";function $a(e,t){dl[fl++]=es,dl[fl++]=lr,lr=e,es=t}function Zf(e,t,n){da[fa++]=Ra,da[fa++]=ka,da[fa++]=ui,ui=e;var l=Ra;e=ka;var o=32-qt(l)-1;l&=~(1<<o),n+=1;var c=32-qt(t)+o;if(30<c){var h=o-o%5;c=(l&(1<<h)-1).toString(32),l>>=h,o-=h,Ra=1<<32-qt(t)+o|n<<o|l,ka=c+e}else Ra=1<<c|n<<o|l,ka=e}function $o(e){e.return!==null&&($a(e,1),Zf(e,1,0))}function Yo(e){for(;e===lr;)lr=dl[--fl],dl[fl]=null,es=dl[--fl],dl[fl]=null;for(;e===ui;)ui=da[--fa],da[fa]=null,ka=da[--fa],da[fa]=null,Ra=da[--fa],da[fa]=null}function Xf(e,t){da[fa++]=Ra,da[fa++]=ka,da[fa++]=ui,Ra=t.id,ka=t.overflow,ui=e}var En=null,Mt=null,ot=!1,di=null,ha=!1,Fo=Error(s(519));function fi(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ts(ua(t,e)),Fo}function Vf(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[wt]=e,t[Kt]=l,n){case"dialog":it("cancel",t),it("close",t);break;case"iframe":case"object":case"embed":it("load",t);break;case"video":case"audio":for(n=0;n<ws.length;n++)it(ws[n],t);break;case"source":it("error",t);break;case"img":case"image":case"link":it("error",t),it("load",t);break;case"details":it("toggle",t);break;case"input":it("invalid",t),Ia(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":it("invalid",t);break;case"textarea":it("invalid",t),Aa(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||hm(t.textContent,n)?(l.popover!=null&&(it("beforetoggle",t),it("toggle",t)),l.onScroll!=null&&it("scroll",t),l.onScrollEnd!=null&&it("scrollend",t),l.onClick!=null&&(t.onclick=he),t=!0):t=!1,t||fi(e,!0)}function Qf(e){for(En=e.return;En;)switch(En.tag){case 5:case 31:case 13:ha=!1;return;case 27:case 3:ha=!0;return;default:En=En.return}}function hl(e){if(e!==En)return!1;if(!ot)return Qf(e),ot=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||cu(e.type,e.memoizedProps)),n=!n),n&&Mt&&fi(e),Qf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Mt=Sm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Mt=Sm(e)}else t===27?(t=Mt,Ti(e.type)?(e=pu,pu=null,Mt=e):Mt=t):Mt=En?ma(e.stateNode.nextSibling):null;return!0}function qi(){Mt=En=null,ot=!1}function Po(){var e=di;return e!==null&&(Kn===null?Kn=e:Kn.push.apply(Kn,e),di=null),e}function ts(e){di===null?di=[e]:di.push(e)}var Ko=w(null),Gi=null,Ya=null;function hi(e,t,n){I(Ko,t._currentValue),t._currentValue=n}function Fa(e){e._currentValue=Ko.current,L(Ko)}function Zo(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function Xo(e,t,n,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var E=c;c=o;for(var O=0;O<t.length;O++)if(E.context===t[O]){c.lanes|=n,E=c.alternate,E!==null&&(E.lanes|=n),Zo(c.return,n,e),l||(h=null);break e}c=E.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(s(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),Zo(h,n,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function pl(e,t,n,l){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var E=o.type;Qn(o.pendingProps.value,h.value)||(e!==null?e.push(E):e=[E])}}else if(o===X.current){if(h=o.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Rs):e=[Rs])}o=o.return}e!==null&&Xo(t,e,n,l),t.flags|=262144}function sr(e){for(e=e.firstContext;e!==null;){if(!Qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $i(e){Gi=e,Ya=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function _n(e){return Wf(Gi,e)}function rr(e,t){return Gi===null&&$i(e),Wf(e,t)}function Wf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ya===null){if(e===null)throw Error(s(308));Ya=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ya=Ya.next=t;return n}var _v=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Sv=i.unstable_scheduleCallback,wv=i.unstable_NormalPriority,en={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vo(){return{controller:new _v,data:new Map,refCount:0}}function ns(e){e.refCount--,e.refCount===0&&Sv(wv,function(){e.controller.abort()})}var as=null,Qo=0,ml=0,gl=null;function Nv(e,t){if(as===null){var n=as=[];Qo=0,ml=eu(),gl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Qo++,t.then(Jf,Jf),t}function Jf(){if(--Qo===0&&as!==null){gl!==null&&(gl.status="fulfilled");var e=as;as=null,ml=0,gl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function xv(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),l}var eh=M.S;M.S=function(e,t){Up=je(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Nv(e,t),eh!==null&&eh(e,t)};var Yi=w(null);function Wo(){var e=Yi.current;return e!==null?e:kt.pooledCache}function or(e,t){t===null?I(Yi,Yi.current):I(Yi,t.pool)}function th(){var e=Wo();return e===null?null:{parent:en._currentValue,pool:e}}var bl=Error(s(460)),Jo=Error(s(474)),cr=Error(s(542)),ur={then:function(){}};function nh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ah(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(he,he),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lh(e),e;default:if(typeof t.status=="string")t.then(he,he);else{if(e=kt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lh(e),e}throw Pi=t,bl}}function Fi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Pi=n,bl):n}}var Pi=null;function ih(){if(Pi===null)throw Error(s(459));var e=Pi;return Pi=null,e}function lh(e){if(e===bl||e===cr)throw Error(s(483))}var yl=null,is=0;function dr(e){var t=is;return is+=1,yl===null&&(yl=[]),ah(yl,e,t)}function ls(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fr(e,t){throw t.$$typeof===S?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function sh(e){function t(H,D){if(e){var P=H.deletions;P===null?(H.deletions=[D],H.flags|=16):P.push(D)}}function n(H,D){if(!e)return null;for(;D!==null;)t(H,D),D=D.sibling;return null}function l(H){for(var D=new Map;H!==null;)H.key!==null?D.set(H.key,H):D.set(H.index,H),H=H.sibling;return D}function o(H,D){return H=Ga(H,D),H.index=0,H.sibling=null,H}function c(H,D,P){return H.index=P,e?(P=H.alternate,P!==null?(P=P.index,P<D?(H.flags|=67108866,D):P):(H.flags|=67108866,D)):(H.flags|=1048576,D)}function h(H){return e&&H.alternate===null&&(H.flags|=67108866),H}function E(H,D,P,re){return D===null||D.tag!==6?(D=qo(P,H.mode,re),D.return=H,D):(D=o(D,P),D.return=H,D)}function O(H,D,P,re){var Le=P.type;return Le===C?ie(H,D,P.props.children,re,P.key):D!==null&&(D.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===x&&Fi(Le)===D.type)?(D=o(D,P.props),ls(D,P),D.return=H,D):(D=ir(P.type,P.key,P.props,null,H.mode,re),ls(D,P),D.return=H,D)}function K(H,D,P,re){return D===null||D.tag!==4||D.stateNode.containerInfo!==P.containerInfo||D.stateNode.implementation!==P.implementation?(D=Go(P,H.mode,re),D.return=H,D):(D=o(D,P.children||[]),D.return=H,D)}function ie(H,D,P,re,Le){return D===null||D.tag!==7?(D=Hi(P,H.mode,re,Le),D.return=H,D):(D=o(D,P),D.return=H,D)}function ce(H,D,P){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=qo(""+D,H.mode,P),D.return=H,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case T:return P=ir(D.type,D.key,D.props,null,H.mode,P),ls(P,D),P.return=H,P;case _:return D=Go(D,H.mode,P),D.return=H,D;case x:return D=Fi(D),ce(H,D,P)}if(fe(D)||Ee(D))return D=Hi(D,H.mode,P,null),D.return=H,D;if(typeof D.then=="function")return ce(H,dr(D),P);if(D.$$typeof===U)return ce(H,rr(H,D),P);fr(H,D)}return null}function Z(H,D,P,re){var Le=D!==null?D.key:null;if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return Le!==null?null:E(H,D,""+P,re);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case T:return P.key===Le?O(H,D,P,re):null;case _:return P.key===Le?K(H,D,P,re):null;case x:return P=Fi(P),Z(H,D,P,re)}if(fe(P)||Ee(P))return Le!==null?null:ie(H,D,P,re,null);if(typeof P.then=="function")return Z(H,D,dr(P),re);if(P.$$typeof===U)return Z(H,D,rr(H,P),re);fr(H,P)}return null}function V(H,D,P,re,Le){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return H=H.get(P)||null,E(D,H,""+re,Le);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case T:return H=H.get(re.key===null?P:re.key)||null,O(D,H,re,Le);case _:return H=H.get(re.key===null?P:re.key)||null,K(D,H,re,Le);case x:return re=Fi(re),V(H,D,P,re,Le)}if(fe(re)||Ee(re))return H=H.get(P)||null,ie(D,H,re,Le,null);if(typeof re.then=="function")return V(H,D,P,dr(re),Le);if(re.$$typeof===U)return V(H,D,P,rr(D,re),Le);fr(D,re)}return null}function Re(H,D,P,re){for(var Le=null,ht=null,Oe=D,Xe=D=0,rt=null;Oe!==null&&Xe<P.length;Xe++){Oe.index>Xe?(rt=Oe,Oe=null):rt=Oe.sibling;var pt=Z(H,Oe,P[Xe],re);if(pt===null){Oe===null&&(Oe=rt);break}e&&Oe&&pt.alternate===null&&t(H,Oe),D=c(pt,D,Xe),ht===null?Le=pt:ht.sibling=pt,ht=pt,Oe=rt}if(Xe===P.length)return n(H,Oe),ot&&$a(H,Xe),Le;if(Oe===null){for(;Xe<P.length;Xe++)Oe=ce(H,P[Xe],re),Oe!==null&&(D=c(Oe,D,Xe),ht===null?Le=Oe:ht.sibling=Oe,ht=Oe);return ot&&$a(H,Xe),Le}for(Oe=l(Oe);Xe<P.length;Xe++)rt=V(Oe,H,Xe,P[Xe],re),rt!==null&&(e&&rt.alternate!==null&&Oe.delete(rt.key===null?Xe:rt.key),D=c(rt,D,Xe),ht===null?Le=rt:ht.sibling=rt,ht=rt);return e&&Oe.forEach(function(Ci){return t(H,Ci)}),ot&&$a(H,Xe),Le}function Be(H,D,P,re){if(P==null)throw Error(s(151));for(var Le=null,ht=null,Oe=D,Xe=D=0,rt=null,pt=P.next();Oe!==null&&!pt.done;Xe++,pt=P.next()){Oe.index>Xe?(rt=Oe,Oe=null):rt=Oe.sibling;var Ci=Z(H,Oe,pt.value,re);if(Ci===null){Oe===null&&(Oe=rt);break}e&&Oe&&Ci.alternate===null&&t(H,Oe),D=c(Ci,D,Xe),ht===null?Le=Ci:ht.sibling=Ci,ht=Ci,Oe=rt}if(pt.done)return n(H,Oe),ot&&$a(H,Xe),Le;if(Oe===null){for(;!pt.done;Xe++,pt=P.next())pt=ce(H,pt.value,re),pt!==null&&(D=c(pt,D,Xe),ht===null?Le=pt:ht.sibling=pt,ht=pt);return ot&&$a(H,Xe),Le}for(Oe=l(Oe);!pt.done;Xe++,pt=P.next())pt=V(Oe,H,Xe,pt.value,re),pt!==null&&(e&&pt.alternate!==null&&Oe.delete(pt.key===null?Xe:pt.key),D=c(pt,D,Xe),ht===null?Le=pt:ht.sibling=pt,ht=pt);return e&&Oe.forEach(function(jE){return t(H,jE)}),ot&&$a(H,Xe),Le}function Tt(H,D,P,re){if(typeof P=="object"&&P!==null&&P.type===C&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case T:e:{for(var Le=P.key;D!==null;){if(D.key===Le){if(Le=P.type,Le===C){if(D.tag===7){n(H,D.sibling),re=o(D,P.props.children),re.return=H,H=re;break e}}else if(D.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===x&&Fi(Le)===D.type){n(H,D.sibling),re=o(D,P.props),ls(re,P),re.return=H,H=re;break e}n(H,D);break}else t(H,D);D=D.sibling}P.type===C?(re=Hi(P.props.children,H.mode,re,P.key),re.return=H,H=re):(re=ir(P.type,P.key,P.props,null,H.mode,re),ls(re,P),re.return=H,H=re)}return h(H);case _:e:{for(Le=P.key;D!==null;){if(D.key===Le)if(D.tag===4&&D.stateNode.containerInfo===P.containerInfo&&D.stateNode.implementation===P.implementation){n(H,D.sibling),re=o(D,P.children||[]),re.return=H,H=re;break e}else{n(H,D);break}else t(H,D);D=D.sibling}re=Go(P,H.mode,re),re.return=H,H=re}return h(H);case x:return P=Fi(P),Tt(H,D,P,re)}if(fe(P))return Re(H,D,P,re);if(Ee(P)){if(Le=Ee(P),typeof Le!="function")throw Error(s(150));return P=Le.call(P),Be(H,D,P,re)}if(typeof P.then=="function")return Tt(H,D,dr(P),re);if(P.$$typeof===U)return Tt(H,D,rr(H,P),re);fr(H,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,D!==null&&D.tag===6?(n(H,D.sibling),re=o(D,P),re.return=H,H=re):(n(H,D),re=qo(P,H.mode,re),re.return=H,H=re),h(H)):n(H,D)}return function(H,D,P,re){try{is=0;var Le=Tt(H,D,P,re);return yl=null,Le}catch(Oe){if(Oe===bl||Oe===cr)throw Oe;var ht=Wn(29,Oe,null,H.mode);return ht.lanes=re,ht.return=H,ht}finally{}}}var Ki=sh(!0),rh=sh(!1),pi=!1;function ec(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function mi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function gi(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(bt&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=ar(e),Yf(e,null,n),t}return nr(e,l,t,n),ar(e)}function ss(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Ue(e,n)}}function nc(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ac=!1;function rs(){if(ac){var e=gl;if(e!==null)throw e}}function os(e,t,n,l){ac=!1;var o=e.updateQueue;pi=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var O=E,K=O.next;O.next=null,h===null?c=K:h.next=K,h=O;var ie=e.alternate;ie!==null&&(ie=ie.updateQueue,E=ie.lastBaseUpdate,E!==h&&(E===null?ie.firstBaseUpdate=K:E.next=K,ie.lastBaseUpdate=O))}if(c!==null){var ce=o.baseState;h=0,ie=K=O=null,E=c;do{var Z=E.lane&-536870913,V=Z!==E.lane;if(V?(st&Z)===Z:(l&Z)===Z){Z!==0&&Z===ml&&(ac=!0),ie!==null&&(ie=ie.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var Re=e,Be=E;Z=t;var Tt=n;switch(Be.tag){case 1:if(Re=Be.payload,typeof Re=="function"){ce=Re.call(Tt,ce,Z);break e}ce=Re;break e;case 3:Re.flags=Re.flags&-65537|128;case 0:if(Re=Be.payload,Z=typeof Re=="function"?Re.call(Tt,ce,Z):Re,Z==null)break e;ce=v({},ce,Z);break e;case 2:pi=!0}}Z=E.callback,Z!==null&&(e.flags|=64,V&&(e.flags|=8192),V=o.callbacks,V===null?o.callbacks=[Z]:V.push(Z))}else V={lane:Z,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ie===null?(K=ie=V,O=ce):ie=ie.next=V,h|=Z;if(E=E.next,E===null){if(E=o.shared.pending,E===null)break;V=E,E=V.next,V.next=null,o.lastBaseUpdate=V,o.shared.pending=null}}while(!0);ie===null&&(O=ce),o.baseState=O,o.firstBaseUpdate=K,o.lastBaseUpdate=ie,c===null&&(o.shared.lanes=0),_i|=h,e.lanes=h,e.memoizedState=ce}}function oh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function ch(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)oh(n[e],t)}var vl=w(null),hr=w(0);function uh(e,t){e=ei,I(hr,e),I(vl,t),ei=e|t.baseLanes}function ic(){I(hr,ei),I(vl,vl.current)}function lc(){ei=hr.current,L(vl),L(hr)}var Jn=w(null),pa=null;function bi(e){var t=e.alternate;I(Xt,Xt.current&1),I(Jn,e),pa===null&&(t===null||vl.current!==null||t.memoizedState!==null)&&(pa=e)}function sc(e){I(Xt,Xt.current),I(Jn,e),pa===null&&(pa=e)}function dh(e){e.tag===22?(I(Xt,Xt.current),I(Jn,e),pa===null&&(pa=e)):yi()}function yi(){I(Xt,Xt.current),I(Jn,Jn.current)}function ea(e){L(Jn),pa===e&&(pa=null),L(Xt)}var Xt=w(0);function pr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||fu(n)||hu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pa=0,Pe=null,Nt=null,tn=null,mr=!1,El=!1,Zi=!1,gr=0,cs=0,_l=null,Tv=0;function $t(){throw Error(s(321))}function rc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qn(e[n],t[n]))return!1;return!0}function oc(e,t,n,l,o,c){return Pa=c,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Zh:wc,Zi=!1,c=n(l,o),Zi=!1,El&&(c=hh(t,n,l,o)),fh(e),c}function fh(e){M.H=fs;var t=Nt!==null&&Nt.next!==null;if(Pa=0,tn=Nt=Pe=null,mr=!1,cs=0,_l=null,t)throw Error(s(300));e===null||nn||(e=e.dependencies,e!==null&&sr(e)&&(nn=!0))}function hh(e,t,n,l){Pe=e;var o=0;do{if(El&&(_l=null),cs=0,El=!1,25<=o)throw Error(s(301));if(o+=1,tn=Nt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}M.H=Xh,c=t(n,l)}while(El);return c}function Av(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?us(t):t,e=e.useState()[0],(Nt!==null?Nt.memoizedState:null)!==e&&(Pe.flags|=1024),t}function cc(){var e=gr!==0;return gr=0,e}function uc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function dc(e){if(mr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mr=!1}Pa=0,tn=Nt=Pe=null,El=!1,cs=gr=0,_l=null}function Un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tn===null?Pe.memoizedState=tn=e:tn=tn.next=e,tn}function Vt(){if(Nt===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=Nt.next;var t=tn===null?Pe.memoizedState:tn.next;if(t!==null)tn=t,Nt=e;else{if(e===null)throw Pe.alternate===null?Error(s(467)):Error(s(310));Nt=e,e={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},tn===null?Pe.memoizedState=tn=e:tn=tn.next=e}return tn}function br(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function us(e){var t=cs;return cs+=1,_l===null&&(_l=[]),e=ah(_l,e,t),t=Pe,(tn===null?t.memoizedState:tn.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Zh:wc),e}function yr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return us(e);if(e.$$typeof===U)return _n(e)}throw Error(s(438,String(e)))}function fc(e){var t=null,n=Pe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Pe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=br(),Pe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=ee;return t.index++,n}function Ka(e,t){return typeof t=="function"?t(e):t}function vr(e){var t=Vt();return hc(t,Nt,e)}function hc(e,t,n){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;var o=e.baseQueue,c=l.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,l.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var E=h=null,O=null,K=t,ie=!1;do{var ce=K.lane&-536870913;if(ce!==K.lane?(st&ce)===ce:(Pa&ce)===ce){var Z=K.revertLane;if(Z===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),ce===ml&&(ie=!0);else if((Pa&Z)===Z){K=K.next,Z===ml&&(ie=!0);continue}else ce={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},O===null?(E=O=ce,h=c):O=O.next=ce,Pe.lanes|=Z,_i|=Z;ce=K.action,Zi&&n(c,ce),c=K.hasEagerState?K.eagerState:n(c,ce)}else Z={lane:ce,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},O===null?(E=O=Z,h=c):O=O.next=Z,Pe.lanes|=ce,_i|=ce;K=K.next}while(K!==null&&K!==t);if(O===null?h=c:O.next=E,!Qn(c,e.memoizedState)&&(nn=!0,ie&&(n=gl,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=O,l.lastRenderedState=c}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function pc(e){var t=Vt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var l=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var h=o=o.next;do c=e(c,h.action),h=h.next;while(h!==o);Qn(c,t.memoizedState)||(nn=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,l]}function ph(e,t,n){var l=Pe,o=Vt(),c=ot;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var h=!Qn((Nt||o).memoizedState,n);if(h&&(o.memoizedState=n,nn=!0),o=o.queue,bc(bh.bind(null,l,o,e),[e]),o.getSnapshot!==t||h||tn!==null&&tn.memoizedState.tag&1){if(l.flags|=2048,Sl(9,{destroy:void 0},gh.bind(null,l,o,n,t),null),kt===null)throw Error(s(349));c||(Pa&127)!==0||mh(l,t,n)}return n}function mh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Pe.updateQueue,t===null?(t=br(),Pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gh(e,t,n,l){t.value=n,t.getSnapshot=l,yh(t)&&vh(e)}function bh(e,t,n){return n(function(){yh(t)&&vh(e)})}function yh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qn(e,n)}catch{return!0}}function vh(e){var t=Ii(e,2);t!==null&&Zn(t,e,2)}function mc(e){var t=Un();if(typeof e=="function"){var n=e;if(e=n(),Zi){kn(!0);try{n()}finally{kn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:e},t}function Eh(e,t,n,l){return e.baseState=n,hc(e,Nt,typeof l=="function"?l:Ka)}function Rv(e,t,n,l,o){if(Sr(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};M.T!==null?n(!0):c.isTransition=!1,l(c),n=t.pending,n===null?(c.next=t.pending=c,_h(t,c)):(c.next=n.next,t.pending=n.next=c)}}function _h(e,t){var n=t.action,l=t.payload,o=e.state;if(t.isTransition){var c=M.T,h={};M.T=h;try{var E=n(o,l),O=M.S;O!==null&&O(h,E),Sh(e,t,E)}catch(K){gc(e,t,K)}finally{c!==null&&h.types!==null&&(c.types=h.types),M.T=c}}else try{c=n(o,l),Sh(e,t,c)}catch(K){gc(e,t,K)}}function Sh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){wh(e,t,l)},function(l){return gc(e,t,l)}):wh(e,t,n)}function wh(e,t,n){t.status="fulfilled",t.value=n,Nh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,_h(e,n)))}function gc(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Nh(t),t=t.next;while(t!==l)}e.action=null}function Nh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function xh(e,t){return t}function Th(e,t){if(ot){var n=kt.formState;if(n!==null){e:{var l=Pe;if(ot){if(Mt){t:{for(var o=Mt,c=ha;o.nodeType!==8;){if(!c){o=null;break t}if(o=ma(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Mt=ma(o.nextSibling),l=o.data==="F!";break e}}fi(l)}l=!1}l&&(t=n[0])}}return n=Un(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xh,lastRenderedState:t},n.queue=l,n=Fh.bind(null,Pe,l),l.dispatch=n,l=mc(!1),c=Sc.bind(null,Pe,!1,l.queue),l=Un(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,n=Rv.bind(null,Pe,o,c,n),o.dispatch=n,l.memoizedState=e,[t,n,!1]}function Ah(e){var t=Vt();return Rh(t,Nt,e)}function Rh(e,t,n){if(t=hc(e,t,xh)[0],e=vr(Ka)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=us(t)}catch(h){throw h===bl?cr:h}else l=t;t=Vt();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(Pe.flags|=2048,Sl(9,{destroy:void 0},kv.bind(null,o,n),null)),[l,c,e]}function kv(e,t){e.action=t}function kh(e){var t=Vt(),n=Nt;if(n!==null)return Rh(t,n,e);Vt(),t=t.memoizedState,n=Vt();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Sl(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Pe.updateQueue,t===null&&(t=br(),Pe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Oh(){return Vt().memoizedState}function Er(e,t,n,l){var o=Un();Pe.flags|=e,o.memoizedState=Sl(1|t,{destroy:void 0},n,l===void 0?null:l)}function _r(e,t,n,l){var o=Vt();l=l===void 0?null:l;var c=o.memoizedState.inst;Nt!==null&&l!==null&&rc(l,Nt.memoizedState.deps)?o.memoizedState=Sl(t,c,n,l):(Pe.flags|=e,o.memoizedState=Sl(1|t,c,n,l))}function Ch(e,t){Er(8390656,8,e,t)}function bc(e,t){_r(2048,8,e,t)}function Ov(e){Pe.flags|=4;var t=Pe.updateQueue;if(t===null)t=br(),Pe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Mh(e){var t=Vt().memoizedState;return Ov({ref:t,nextImpl:e}),function(){if((bt&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Dh(e,t){return _r(4,2,e,t)}function Lh(e,t){return _r(4,4,e,t)}function zh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function jh(e,t,n){n=n!=null?n.concat([e]):null,_r(4,4,zh.bind(null,t,e),n)}function yc(){}function Uh(e,t){var n=Vt();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&rc(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Bh(e,t){var n=Vt();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&rc(t,l[1]))return l[0];if(l=e(),Zi){kn(!0);try{e()}finally{kn(!1)}}return n.memoizedState=[l,t],l}function vc(e,t,n){return n===void 0||(Pa&1073741824)!==0&&(st&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Ip(),Pe.lanes|=e,_i|=e,n)}function Ih(e,t,n,l){return Qn(n,t)?n:vl.current!==null?(e=vc(e,n,l),Qn(e,t)||(nn=!0),e):(Pa&42)===0||(Pa&1073741824)!==0&&(st&261930)===0?(nn=!0,e.memoizedState=n):(e=Ip(),Pe.lanes|=e,_i|=e,t)}function Hh(e,t,n,l,o){var c=Q.p;Q.p=c!==0&&8>c?c:8;var h=M.T,E={};M.T=E,Sc(e,!1,t,n);try{var O=o(),K=M.S;if(K!==null&&K(E,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var ie=xv(O,l);ds(e,t,ie,aa(e))}else ds(e,t,l,aa(e))}catch(ce){ds(e,t,{then:function(){},status:"rejected",reason:ce},aa())}finally{Q.p=c,h!==null&&E.types!==null&&(h.types=E.types),M.T=h}}function Cv(){}function Ec(e,t,n,l){if(e.tag!==5)throw Error(s(476));var o=qh(e).queue;Hh(e,o,t,pe,n===null?Cv:function(){return Gh(e),n(l)})}function qh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:pe,baseState:pe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:pe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Gh(e){var t=qh(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},aa())}function _c(){return _n(Rs)}function $h(){return Vt().memoizedState}function Yh(){return Vt().memoizedState}function Mv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=aa();e=mi(n);var l=gi(t,e,n);l!==null&&(Zn(l,t,n),ss(l,t,n)),t={cache:Vo()},e.payload=t;return}t=t.return}}function Dv(e,t,n){var l=aa();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Sr(e)?Ph(t,n):(n=Io(e,t,n,l),n!==null&&(Zn(n,e,l),Kh(n,t,l)))}function Fh(e,t,n){var l=aa();ds(e,t,n,l)}function ds(e,t,n,l){var o={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sr(e))Ph(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,E=c(h,n);if(o.hasEagerState=!0,o.eagerState=E,Qn(E,h))return nr(e,t,o,0),kt===null&&tr(),!1}catch{}finally{}if(n=Io(e,t,o,l),n!==null)return Zn(n,e,l),Kh(n,t,l),!0}return!1}function Sc(e,t,n,l){if(l={lane:2,revertLane:eu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Sr(e)){if(t)throw Error(s(479))}else t=Io(e,n,l,2),t!==null&&Zn(t,e,2)}function Sr(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function Ph(e,t){El=mr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Kh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Ue(e,n)}}var fs={readContext:_n,use:yr,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useLayoutEffect:$t,useInsertionEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useSyncExternalStore:$t,useId:$t,useHostTransitionStatus:$t,useFormState:$t,useActionState:$t,useOptimistic:$t,useMemoCache:$t,useCacheRefresh:$t};fs.useEffectEvent=$t;var Zh={readContext:_n,use:yr,useCallback:function(e,t){return Un().memoizedState=[e,t===void 0?null:t],e},useContext:_n,useEffect:Ch,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Er(4194308,4,zh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Er(4194308,4,e,t)},useInsertionEffect:function(e,t){Er(4,2,e,t)},useMemo:function(e,t){var n=Un();t=t===void 0?null:t;var l=e();if(Zi){kn(!0);try{e()}finally{kn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Un();if(n!==void 0){var o=n(t);if(Zi){kn(!0);try{n(t)}finally{kn(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=Dv.bind(null,Pe,e),[l.memoizedState,e]},useRef:function(e){var t=Un();return e={current:e},t.memoizedState=e},useState:function(e){e=mc(e);var t=e.queue,n=Fh.bind(null,Pe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:yc,useDeferredValue:function(e,t){var n=Un();return vc(n,e,t)},useTransition:function(){var e=mc(!1);return e=Hh.bind(null,Pe,e.queue,!0,!1),Un().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Pe,o=Un();if(ot){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),kt===null)throw Error(s(349));(st&127)!==0||mh(l,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,Ch(bh.bind(null,l,c,e),[e]),l.flags|=2048,Sl(9,{destroy:void 0},gh.bind(null,l,c,n,t),null),n},useId:function(){var e=Un(),t=kt.identifierPrefix;if(ot){var n=ka,l=Ra;n=(l&~(1<<32-qt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=gr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Tv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:_c,useFormState:Th,useActionState:Th,useOptimistic:function(e){var t=Un();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Sc.bind(null,Pe,!0,n),n.dispatch=t,[e,t]},useMemoCache:fc,useCacheRefresh:function(){return Un().memoizedState=Mv.bind(null,Pe)},useEffectEvent:function(e){var t=Un(),n={impl:e};return t.memoizedState=n,function(){if((bt&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},wc={readContext:_n,use:yr,useCallback:Uh,useContext:_n,useEffect:bc,useImperativeHandle:jh,useInsertionEffect:Dh,useLayoutEffect:Lh,useMemo:Bh,useReducer:vr,useRef:Oh,useState:function(){return vr(Ka)},useDebugValue:yc,useDeferredValue:function(e,t){var n=Vt();return Ih(n,Nt.memoizedState,e,t)},useTransition:function(){var e=vr(Ka)[0],t=Vt().memoizedState;return[typeof e=="boolean"?e:us(e),t]},useSyncExternalStore:ph,useId:$h,useHostTransitionStatus:_c,useFormState:Ah,useActionState:Ah,useOptimistic:function(e,t){var n=Vt();return Eh(n,Nt,e,t)},useMemoCache:fc,useCacheRefresh:Yh};wc.useEffectEvent=Mh;var Xh={readContext:_n,use:yr,useCallback:Uh,useContext:_n,useEffect:bc,useImperativeHandle:jh,useInsertionEffect:Dh,useLayoutEffect:Lh,useMemo:Bh,useReducer:pc,useRef:Oh,useState:function(){return pc(Ka)},useDebugValue:yc,useDeferredValue:function(e,t){var n=Vt();return Nt===null?vc(n,e,t):Ih(n,Nt.memoizedState,e,t)},useTransition:function(){var e=pc(Ka)[0],t=Vt().memoizedState;return[typeof e=="boolean"?e:us(e),t]},useSyncExternalStore:ph,useId:$h,useHostTransitionStatus:_c,useFormState:kh,useActionState:kh,useOptimistic:function(e,t){var n=Vt();return Nt!==null?Eh(n,Nt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:fc,useCacheRefresh:Yh};Xh.useEffectEvent=Mh;function Nc(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var xc={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=aa(),o=mi(l);o.payload=t,n!=null&&(o.callback=n),t=gi(e,o,l),t!==null&&(Zn(t,e,l),ss(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=aa(),o=mi(l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=gi(e,o,l),t!==null&&(Zn(t,e,l),ss(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=aa(),l=mi(n);l.tag=2,t!=null&&(l.callback=t),t=gi(e,l,n),t!==null&&(Zn(t,e,n),ss(t,e,n))}};function Vh(e,t,n,l,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,h):t.prototype&&t.prototype.isPureReactComponent?!Wl(n,l)||!Wl(o,c):!0}function Qh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&xc.enqueueReplaceState(t,t.state,null)}function Xi(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Wh(e){er(e)}function Jh(e){console.error(e)}function ep(e){er(e)}function wr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function tp(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Tc(e,t,n){return n=mi(n),n.tag=3,n.payload={element:null},n.callback=function(){wr(e,t)},n}function np(e){return e=mi(e),e.tag=3,e}function ap(e,t,n,l){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;e.payload=function(){return o(c)},e.callback=function(){tp(t,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){tp(t,n,l),typeof o!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var E=l.stack;this.componentDidCatch(l.value,{componentStack:E!==null?E:""})})}function Lv(e,t,n,l,o){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&pl(t,n,o,!0),n=Jn.current,n!==null){switch(n.tag){case 31:case 13:return pa===null?zr():n.alternate===null&&Yt===0&&(Yt=3),n.flags&=-257,n.flags|=65536,n.lanes=o,l===ur?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Qc(e,l,o)),!1;case 22:return n.flags|=65536,l===ur?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Qc(e,l,o)),!1}throw Error(s(435,n.tag))}return Qc(e,l,o),zr(),!1}if(ot)return t=Jn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==Fo&&(e=Error(s(422),{cause:l}),ts(ua(e,n)))):(l!==Fo&&(t=Error(s(423),{cause:l}),ts(ua(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=ua(l,n),o=Tc(e.stateNode,l,o),nc(e,o),Yt!==4&&(Yt=2)),!1;var c=Error(s(520),{cause:l});if(c=ua(c,n),Es===null?Es=[c]:Es.push(c),Yt!==4&&(Yt=2),t===null)return!0;l=ua(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Tc(n.stateNode,l,e),nc(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Si===null||!Si.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=np(o),ap(o,e,n,l),nc(n,o),!1}n=n.return}while(n!==null);return!1}var Ac=Error(s(461)),nn=!1;function Sn(e,t,n,l){t.child=e===null?rh(t,null,n,l):Ki(t,e.child,n,l)}function ip(e,t,n,l,o){n=n.render;var c=t.ref;if("ref"in l){var h={};for(var E in l)E!=="ref"&&(h[E]=l[E])}else h=l;return $i(t),l=oc(e,t,n,h,c,o),E=cc(),e!==null&&!nn?(uc(e,t,o),Za(e,t,o)):(ot&&E&&$o(t),t.flags|=1,Sn(e,t,l,o),t.child)}function lp(e,t,n,l,o){if(e===null){var c=n.type;return typeof c=="function"&&!Ho(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,sp(e,t,c,l,o)):(e=ir(n.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!zc(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Wl,n(h,l)&&e.ref===t.ref)return Za(e,t,o)}return t.flags|=1,e=Ga(c,l),e.ref=t.ref,e.return=t,t.child=e}function sp(e,t,n,l,o){if(e!==null){var c=e.memoizedProps;if(Wl(c,l)&&e.ref===t.ref)if(nn=!1,t.pendingProps=l=c,zc(e,o))(e.flags&131072)!==0&&(nn=!0);else return t.lanes=e.lanes,Za(e,t,o)}return Rc(e,t,n,l,o)}function rp(e,t,n,l){var o=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,t.child=null;return op(e,t,c,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&or(t,c!==null?c.cachePool:null),c!==null?uh(t,c):ic(),dh(t);else return l=t.lanes=536870912,op(e,t,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(or(t,c.cachePool),uh(t,c),yi(),t.memoizedState=null):(e!==null&&or(t,null),ic(),yi());return Sn(e,t,o,n),t.child}function hs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function op(e,t,n,l,o){var c=Wo();return c=c===null?null:{parent:en._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&or(t,null),ic(),dh(t),e!==null&&pl(e,t,l,!0),t.childLanes=o,null}function Nr(e,t){return t=Tr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function cp(e,t,n){return Ki(t,e.child,null,n),e=Nr(t,t.pendingProps),e.flags|=2,ea(t),t.memoizedState=null,e}function zv(e,t,n){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ot){if(l.mode==="hidden")return e=Nr(t,l),t.lanes=536870912,hs(null,e);if(sc(t),(e=Mt)?(e=_m(e,ha),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ui!==null?{id:Ra,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},n=Pf(e),n.return=t,t.child=n,En=t,Mt=null)):e=null,e===null)throw fi(t);return t.lanes=536870912,null}return Nr(t,l)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(sc(t),o)if(t.flags&256)t.flags&=-257,t=cp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(nn||pl(e,t,n,!1),o=(n&e.childLanes)!==0,nn||o){if(l=kt,l!==null&&(h=Ct(l,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,Ii(e,h),Zn(l,e,h),Ac;zr(),t=cp(e,t,n)}else e=c.treeContext,Mt=ma(h.nextSibling),En=t,ot=!0,di=null,ha=!1,e!==null&&Xf(t,e),t=Nr(t,l),t.flags|=4096;return t}return e=Ga(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function xr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Rc(e,t,n,l,o){return $i(t),n=oc(e,t,n,l,void 0,o),l=cc(),e!==null&&!nn?(uc(e,t,o),Za(e,t,o)):(ot&&l&&$o(t),t.flags|=1,Sn(e,t,n,o),t.child)}function up(e,t,n,l,o,c){return $i(t),t.updateQueue=null,n=hh(t,l,n,o),fh(e),l=cc(),e!==null&&!nn?(uc(e,t,c),Za(e,t,c)):(ot&&l&&$o(t),t.flags|=1,Sn(e,t,n,c),t.child)}function dp(e,t,n,l,o){if($i(t),t.stateNode===null){var c=ul,h=n.contextType;typeof h=="object"&&h!==null&&(c=_n(h)),c=new n(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=xc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},ec(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?_n(h):ul,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Nc(t,n,h,l),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&xc.enqueueReplaceState(c,c.state,null),os(t,l,c,o),rs(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var E=t.memoizedProps,O=Xi(n,E);c.props=O;var K=c.context,ie=n.contextType;h=ul,typeof ie=="object"&&ie!==null&&(h=_n(ie));var ce=n.getDerivedStateFromProps;ie=typeof ce=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,ie||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||K!==h)&&Qh(t,c,l,h),pi=!1;var Z=t.memoizedState;c.state=Z,os(t,l,c,o),rs(),K=t.memoizedState,E||Z!==K||pi?(typeof ce=="function"&&(Nc(t,n,ce,l),K=t.memoizedState),(O=pi||Vh(t,n,O,l,Z,K,h))?(ie||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=K),c.props=l,c.state=K,c.context=h,l=O):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,tc(e,t),h=t.memoizedProps,ie=Xi(n,h),c.props=ie,ce=t.pendingProps,Z=c.context,K=n.contextType,O=ul,typeof K=="object"&&K!==null&&(O=_n(K)),E=n.getDerivedStateFromProps,(K=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==ce||Z!==O)&&Qh(t,c,l,O),pi=!1,Z=t.memoizedState,c.state=Z,os(t,l,c,o),rs();var V=t.memoizedState;h!==ce||Z!==V||pi||e!==null&&e.dependencies!==null&&sr(e.dependencies)?(typeof E=="function"&&(Nc(t,n,E,l),V=t.memoizedState),(ie=pi||Vh(t,n,ie,l,Z,V,O)||e!==null&&e.dependencies!==null&&sr(e.dependencies))?(K||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,V,O),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,V,O)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&Z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&Z===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=V),c.props=l,c.state=V,c.context=O,l=ie):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&Z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&Z===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,xr(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Ki(t,e.child,null,o),t.child=Ki(t,null,n,o)):Sn(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Za(e,t,o),e}function fp(e,t,n,l){return qi(),t.flags|=256,Sn(e,t,n,l),t.child}var kc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Oc(e){return{baseLanes:e,cachePool:th()}}function Cc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=na),e}function hp(e,t,n){var l=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(Xt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(ot){if(o?bi(t):yi(),(e=Mt)?(e=_m(e,ha),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ui!==null?{id:Ra,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},n=Pf(e),n.return=t,t.child=n,En=t,Mt=null)):e=null,e===null)throw fi(t);return hu(e)?t.lanes=32:t.lanes=536870912,null}var E=l.children;return l=l.fallback,o?(yi(),o=t.mode,E=Tr({mode:"hidden",children:E},o),l=Hi(l,o,n,null),E.return=t,l.return=t,E.sibling=l,t.child=E,l=t.child,l.memoizedState=Oc(n),l.childLanes=Cc(e,h,n),t.memoizedState=kc,hs(null,l)):(bi(t),Mc(t,E))}var O=e.memoizedState;if(O!==null&&(E=O.dehydrated,E!==null)){if(c)t.flags&256?(bi(t),t.flags&=-257,t=Dc(e,t,n)):t.memoizedState!==null?(yi(),t.child=e.child,t.flags|=128,t=null):(yi(),E=l.fallback,o=t.mode,l=Tr({mode:"visible",children:l.children},o),E=Hi(E,o,n,null),E.flags|=2,l.return=t,E.return=t,l.sibling=E,t.child=l,Ki(t,e.child,null,n),l=t.child,l.memoizedState=Oc(n),l.childLanes=Cc(e,h,n),t.memoizedState=kc,t=hs(null,l));else if(bi(t),hu(E)){if(h=E.nextSibling&&E.nextSibling.dataset,h)var K=h.dgst;h=K,l=Error(s(419)),l.stack="",l.digest=h,ts({value:l,source:null,stack:null}),t=Dc(e,t,n)}else if(nn||pl(e,t,n,!1),h=(n&e.childLanes)!==0,nn||h){if(h=kt,h!==null&&(l=Ct(h,n),l!==0&&l!==O.retryLane))throw O.retryLane=l,Ii(e,l),Zn(h,e,l),Ac;fu(E)||zr(),t=Dc(e,t,n)}else fu(E)?(t.flags|=192,t.child=e.child,t=null):(e=O.treeContext,Mt=ma(E.nextSibling),En=t,ot=!0,di=null,ha=!1,e!==null&&Xf(t,e),t=Mc(t,l.children),t.flags|=4096);return t}return o?(yi(),E=l.fallback,o=t.mode,O=e.child,K=O.sibling,l=Ga(O,{mode:"hidden",children:l.children}),l.subtreeFlags=O.subtreeFlags&65011712,K!==null?E=Ga(K,E):(E=Hi(E,o,n,null),E.flags|=2),E.return=t,l.return=t,l.sibling=E,t.child=l,hs(null,l),l=t.child,E=e.child.memoizedState,E===null?E=Oc(n):(o=E.cachePool,o!==null?(O=en._currentValue,o=o.parent!==O?{parent:O,pool:O}:o):o=th(),E={baseLanes:E.baseLanes|n,cachePool:o}),l.memoizedState=E,l.childLanes=Cc(e,h,n),t.memoizedState=kc,hs(e.child,l)):(bi(t),n=e.child,e=n.sibling,n=Ga(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function Mc(e,t){return t=Tr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Tr(e,t){return e=Wn(22,e,null,t),e.lanes=0,e}function Dc(e,t,n){return Ki(t,e.child,null,n),e=Mc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pp(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Zo(e.return,t,n)}function Lc(e,t,n,l,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=n,h.tailMode=o,h.treeForkCount=c)}function mp(e,t,n){var l=t.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var h=Xt.current,E=(h&2)!==0;if(E?(h=h&1|2,t.flags|=128):h&=1,I(Xt,h),Sn(e,t,l,n),l=ot?es:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pp(e,n,t);else if(e.tag===19)pp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&pr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Lc(t,!1,o,n,c,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&pr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Lc(t,!0,n,null,c,l);break;case"together":Lc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Za(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_i|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(pl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=Ga(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ga(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&sr(e)))}function jv(e,t,n){switch(t.tag){case 3:be(t,t.stateNode.containerInfo),hi(t,en,e.memoizedState.cache),qi();break;case 27:case 5:Ge(t);break;case 4:be(t,t.stateNode.containerInfo);break;case 10:hi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,sc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(bi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?hp(e,t,n):(bi(t),e=Za(e,t,n),e!==null?e.sibling:null);bi(t);break;case 19:var o=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(pl(e,t,n,!1),l=(n&t.childLanes)!==0),o){if(l)return mp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),I(Xt,Xt.current),l)break;return null;case 22:return t.lanes=0,rp(e,t,n,t.pendingProps);case 24:hi(t,en,e.memoizedState.cache)}return Za(e,t,n)}function gp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)nn=!0;else{if(!zc(e,n)&&(t.flags&128)===0)return nn=!1,jv(e,t,n);nn=(e.flags&131072)!==0}else nn=!1,ot&&(t.flags&1048576)!==0&&Zf(t,es,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Fi(t.elementType),t.type=e,typeof e=="function")Ho(e)?(l=Xi(e,l),t.tag=1,t=dp(null,t,e,l,n)):(t.tag=0,t=Rc(null,t,e,l,n));else{if(e!=null){var o=e.$$typeof;if(o===W){t.tag=11,t=ip(null,t,e,l,n);break e}else if(o===se){t.tag=14,t=lp(null,t,e,l,n);break e}}throw t=le(e)||e,Error(s(306,t,""))}}return t;case 0:return Rc(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,o=Xi(l,t.pendingProps),dp(e,t,l,o,n);case 3:e:{if(be(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var c=t.memoizedState;o=c.element,tc(e,t),os(t,l,null,n);var h=t.memoizedState;if(l=h.cache,hi(t,en,l),l!==c.cache&&Xo(t,[en],n,!0),rs(),l=h.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=fp(e,t,l,n);break e}else if(l!==o){o=ua(Error(s(424)),t),ts(o),t=fp(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Mt=ma(e.firstChild),En=t,ot=!0,di=null,ha=!0,n=rh(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qi(),l===o){t=Za(e,t,n);break e}Sn(e,t,l,n)}t=t.child}return t;case 26:return xr(e,t),e===null?(n=Am(t.type,null,t.pendingProps,null))?t.memoizedState=n:ot||(n=t.type,e=t.pendingProps,l=Gr(ve.current).createElement(n),l[wt]=t,l[Kt]=e,wn(l,n,e),ut(l),t.stateNode=l):t.memoizedState=Am(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ge(t),e===null&&ot&&(l=t.stateNode=Nm(t.type,t.pendingProps,ve.current),En=t,ha=!0,o=Mt,Ti(t.type)?(pu=o,Mt=ma(l.firstChild)):Mt=o),Sn(e,t,t.pendingProps.children,n),xr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ot&&((o=l=Mt)&&(l=fE(l,t.type,t.pendingProps,ha),l!==null?(t.stateNode=l,En=t,Mt=ma(l.firstChild),ha=!1,o=!0):o=!1),o||fi(t)),Ge(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,l=c.children,cu(o,c)?l=null:h!==null&&cu(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=oc(e,t,Av,null,null,n),Rs._currentValue=o),xr(e,t),Sn(e,t,l,n),t.child;case 6:return e===null&&ot&&((e=n=Mt)&&(n=hE(n,t.pendingProps,ha),n!==null?(t.stateNode=n,En=t,Mt=null,e=!0):e=!1),e||fi(t)),null;case 13:return hp(e,t,n);case 4:return be(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ki(t,null,l,n):Sn(e,t,l,n),t.child;case 11:return ip(e,t,t.type,t.pendingProps,n);case 7:return Sn(e,t,t.pendingProps,n),t.child;case 8:return Sn(e,t,t.pendingProps.children,n),t.child;case 12:return Sn(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,hi(t,t.type,l.value),Sn(e,t,l.children,n),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,$i(t),o=_n(o),l=l(o),t.flags|=1,Sn(e,t,l,n),t.child;case 14:return lp(e,t,t.type,t.pendingProps,n);case 15:return sp(e,t,t.type,t.pendingProps,n);case 19:return mp(e,t,n);case 31:return zv(e,t,n);case 22:return rp(e,t,n,t.pendingProps);case 24:return $i(t),l=_n(en),e===null?(o=Wo(),o===null&&(o=kt,c=Vo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:l,cache:o},ec(t),hi(t,en,o)):((e.lanes&n)!==0&&(tc(e,t),os(t,null,null,n),rs()),o=e.memoizedState,c=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),hi(t,en,l)):(l=c.cache,hi(t,en,l),l!==o.cache&&Xo(t,[en],n,!0))),Sn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Xa(e){e.flags|=4}function jc(e,t,n,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if($p())e.flags|=8192;else throw Pi=ur,Jo}else e.flags&=-16777217}function bp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Mm(t))if($p())e.flags|=8192;else throw Pi=ur,Jo}function Ar(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ze():536870912,e.lanes|=t,Tl|=t)}function ps(e,t){if(!ot)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Dt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function Uv(e,t,n){var l=t.pendingProps;switch(Yo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(t),null;case 1:return Dt(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Fa(en),xe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(hl(t)?Xa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Po())),Dt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Xa(t),c!==null?(Dt(t),bp(t,c)):(Dt(t),jc(t,o,null,l,n))):c?c!==e.memoizedState?(Xa(t),Dt(t),bp(t,c)):(Dt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Xa(t),Dt(t),jc(t,o,e,l,n)),null;case 27:if($e(t),n=ve.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Xa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Dt(t),null}e=oe.current,hl(t)?Vf(t):(e=Nm(o,l,n),t.stateNode=e,Xa(t))}return Dt(t),null;case 5:if($e(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Xa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Dt(t),null}if(c=oe.current,hl(t))Vf(t);else{var h=Gr(ve.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?h.createElement(o,{is:l.is}):h.createElement(o)}}c[wt]=t,c[Kt]=l;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(wn(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Xa(t)}}return Dt(t),jc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Xa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=ve.current,hl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,o=En,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[wt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||hm(e.nodeValue,n)),e||fi(t,!0)}else e=Gr(e).createTextNode(l),e[wt]=t,t.stateNode=e}return Dt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=hl(t),n!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[wt]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Dt(t),e=!1}else n=Po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ea(t),t):(ea(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Dt(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=hl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[wt]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Dt(t),o=!1}else o=Po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(ea(t),t):(ea(t),null)}return ea(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ar(t,t.updateQueue),Dt(t),null);case 4:return xe(),e===null&&iu(t.stateNode.containerInfo),Dt(t),null;case 10:return Fa(t.type),Dt(t),null;case 19:if(L(Xt),l=t.memoizedState,l===null)return Dt(t),null;if(o=(t.flags&128)!==0,c=l.rendering,c===null)if(o)ps(l,!1);else{if(Yt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=pr(e),c!==null){for(t.flags|=128,ps(l,!1),e=c.updateQueue,t.updateQueue=e,Ar(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ff(n,e),n=n.sibling;return I(Xt,Xt.current&1|2),ot&&$a(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&je()>Mr&&(t.flags|=128,o=!0,ps(l,!1),t.lanes=4194304)}else{if(!o)if(e=pr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Ar(t,e),ps(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!ot)return Dt(t),null}else 2*je()-l.renderingStartTime>Mr&&n!==536870912&&(t.flags|=128,o=!0,ps(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=je(),e.sibling=null,n=Xt.current,I(Xt,o?n&1|2:n&1),ot&&$a(t,l.treeForkCount),e):(Dt(t),null);case 22:case 23:return ea(t),lc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Dt(t),t.subtreeFlags&6&&(t.flags|=8192)):Dt(t),n=t.updateQueue,n!==null&&Ar(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&L(Yi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Fa(en),Dt(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Bv(e,t){switch(Yo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fa(en),xe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $e(t),null;case 31:if(t.memoizedState!==null){if(ea(t),t.alternate===null)throw Error(s(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ea(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(Xt),null;case 4:return xe(),null;case 10:return Fa(t.type),null;case 22:case 23:return ea(t),lc(),e!==null&&L(Yi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Fa(en),null;case 25:return null;default:return null}}function yp(e,t){switch(Yo(t),t.tag){case 3:Fa(en),xe();break;case 26:case 27:case 5:$e(t);break;case 4:xe();break;case 31:t.memoizedState!==null&&ea(t);break;case 13:ea(t);break;case 19:L(Xt);break;case 10:Fa(t.type);break;case 22:case 23:ea(t),lc(),e!==null&&L(Yi);break;case 24:Fa(en)}}function ms(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var o=l.next;n=o;do{if((n.tag&e)===e){l=void 0;var c=n.create,h=n.inst;l=c(),h.destroy=l}n=n.next}while(n!==o)}}catch(E){_t(t,t.return,E)}}function vi(e,t,n){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){var h=l.inst,E=h.destroy;if(E!==void 0){h.destroy=void 0,o=t;var O=n,K=E;try{K()}catch(ie){_t(o,O,ie)}}}l=l.next}while(l!==c)}}catch(ie){_t(t,t.return,ie)}}function vp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ch(t,n)}catch(l){_t(e,e.return,l)}}}function Ep(e,t,n){n.props=Xi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){_t(e,t,l)}}function gs(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(o){_t(e,t,o)}}function Oa(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(o){_t(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){_t(e,t,o)}else n.current=null}function _p(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(o){_t(e,e.return,o)}}function Uc(e,t,n){try{var l=e.stateNode;sE(l,e.type,n,t),l[Kt]=t}catch(o){_t(e,e.return,o)}}function Sp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ti(e.type)||e.tag===4}function Bc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ti(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ic(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=he));else if(l!==4&&(l===27&&Ti(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ic(e,t,n),e=e.sibling;e!==null;)Ic(e,t,n),e=e.sibling}function Rr(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&Ti(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Rr(e,t,n),e=e.sibling;e!==null;)Rr(e,t,n),e=e.sibling}function wp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);wn(t,l,n),t[wt]=e,t[Kt]=n}catch(c){_t(e,e.return,c)}}var Va=!1,an=!1,Hc=!1,Np=typeof WeakSet=="function"?WeakSet:Set,mn=null;function Iv(e,t){if(e=e.containerInfo,ru=Xr,e=jf(e),Do(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,E=-1,O=-1,K=0,ie=0,ce=e,Z=null;t:for(;;){for(var V;ce!==n||o!==0&&ce.nodeType!==3||(E=h+o),ce!==c||l!==0&&ce.nodeType!==3||(O=h+l),ce.nodeType===3&&(h+=ce.nodeValue.length),(V=ce.firstChild)!==null;)Z=ce,ce=V;for(;;){if(ce===e)break t;if(Z===n&&++K===o&&(E=h),Z===c&&++ie===l&&(O=h),(V=ce.nextSibling)!==null)break;ce=Z,Z=ce.parentNode}ce=V}n=E===-1||O===-1?null:{start:E,end:O}}else n=null}n=n||{start:0,end:0}}else n=null;for(ou={focusedElem:e,selectionRange:n},Xr=!1,mn=t;mn!==null;)if(t=mn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,mn=e;else for(;mn!==null;){switch(t=mn,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,l=n.stateNode;try{var Re=Xi(n.type,o);e=l.getSnapshotBeforeUpdate(Re,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(Be){_t(n,n.return,Be)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)du(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":du(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,mn=e;break}mn=t.return}}function xp(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Wa(e,n),l&4&&ms(5,n);break;case 1:if(Wa(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){_t(n,n.return,h)}else{var o=Xi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){_t(n,n.return,h)}}l&64&&vp(n),l&512&&gs(n,n.return);break;case 3:if(Wa(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ch(e,t)}catch(h){_t(n,n.return,h)}}break;case 27:t===null&&l&4&&wp(n);case 26:case 5:Wa(e,n),t===null&&l&4&&_p(n),l&512&&gs(n,n.return);break;case 12:Wa(e,n);break;case 31:Wa(e,n),l&4&&Rp(e,n);break;case 13:Wa(e,n),l&4&&kp(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Zv.bind(null,n),pE(e,n))));break;case 22:if(l=n.memoizedState!==null||Va,!l){t=t!==null&&t.memoizedState!==null||an,o=Va;var c=an;Va=l,(an=t)&&!c?Ja(e,n,(n.subtreeFlags&8772)!==0):Wa(e,n),Va=o,an=c}break;case 30:break;default:Wa(e,n)}}function Tp(e){var t=e.alternate;t!==null&&(e.alternate=null,Tp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ta(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var jt=null,Yn=!1;function Qa(e,t,n){for(n=n.child;n!==null;)Ap(e,t,n),n=n.sibling}function Ap(e,t,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(cn,n)}catch{}switch(n.tag){case 26:an||Oa(n,t),Qa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:an||Oa(n,t);var l=jt,o=Yn;Ti(n.type)&&(jt=n.stateNode,Yn=!1),Qa(e,t,n),xs(n.stateNode),jt=l,Yn=o;break;case 5:an||Oa(n,t);case 6:if(l=jt,o=Yn,jt=null,Qa(e,t,n),jt=l,Yn=o,jt!==null)if(Yn)try{(jt.nodeType===9?jt.body:jt.nodeName==="HTML"?jt.ownerDocument.body:jt).removeChild(n.stateNode)}catch(c){_t(n,t,c)}else try{jt.removeChild(n.stateNode)}catch(c){_t(n,t,c)}break;case 18:jt!==null&&(Yn?(e=jt,vm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ll(e)):vm(jt,n.stateNode));break;case 4:l=jt,o=Yn,jt=n.stateNode.containerInfo,Yn=!0,Qa(e,t,n),jt=l,Yn=o;break;case 0:case 11:case 14:case 15:vi(2,n,t),an||vi(4,n,t),Qa(e,t,n);break;case 1:an||(Oa(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Ep(n,t,l)),Qa(e,t,n);break;case 21:Qa(e,t,n);break;case 22:an=(l=an)||n.memoizedState!==null,Qa(e,t,n),an=l;break;default:Qa(e,t,n)}}function Rp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ll(e)}catch(n){_t(t,t.return,n)}}}function kp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ll(e)}catch(n){_t(t,t.return,n)}}function Hv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Np),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Np),t;default:throw Error(s(435,e.tag))}}function kr(e,t){var n=Hv(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var o=Xv.bind(null,e,l);l.then(o,o)}})}function Fn(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var o=n[l],c=e,h=t,E=h;e:for(;E!==null;){switch(E.tag){case 27:if(Ti(E.type)){jt=E.stateNode,Yn=!1;break e}break;case 5:jt=E.stateNode,Yn=!1;break e;case 3:case 4:jt=E.stateNode.containerInfo,Yn=!0;break e}E=E.return}if(jt===null)throw Error(s(160));Ap(c,h,o),jt=null,Yn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Op(t,e),t=t.sibling}var va=null;function Op(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Fn(t,e),Pn(e),l&4&&(vi(3,e,e.return),ms(3,e),vi(5,e,e.return));break;case 1:Fn(t,e),Pn(e),l&512&&(an||n===null||Oa(n,n.return)),l&64&&Va&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var o=va;if(Fn(t,e),Pn(e),l&512&&(an||n===null||Oa(n,n.return)),l&4){var c=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[ra]||c[wt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),wn(c,l,n),c[wt]=e,ut(c),l=c;break e;case"link":var h=Om("link","href",o).get(l+(n.href||""));if(h){for(var E=0;E<h.length;E++)if(c=h[E],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(E,1);break t}}c=o.createElement(l),wn(c,l,n),o.head.appendChild(c);break;case"meta":if(h=Om("meta","content",o).get(l+(n.content||""))){for(E=0;E<h.length;E++)if(c=h[E],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(E,1);break t}}c=o.createElement(l),wn(c,l,n),o.head.appendChild(c);break;default:throw Error(s(468,l))}c[wt]=e,ut(c),l=c}e.stateNode=l}else Cm(o,e.type,e.stateNode);else e.stateNode=km(o,l,e.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?Cm(o,e.type,e.stateNode):km(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Uc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Fn(t,e),Pn(e),l&512&&(an||n===null||Oa(n,n.return)),n!==null&&l&4&&Uc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Fn(t,e),Pn(e),l&512&&(an||n===null||Oa(n,n.return)),e.flags&32){o=e.stateNode;try{J(o,"")}catch(Re){_t(e,e.return,Re)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Uc(e,o,n!==null?n.memoizedProps:o)),l&1024&&(Hc=!0);break;case 6:if(Fn(t,e),Pn(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(Re){_t(e,e.return,Re)}}break;case 3:if(Fr=null,o=va,va=$r(t.containerInfo),Fn(t,e),va=o,Pn(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Ll(t.containerInfo)}catch(Re){_t(e,e.return,Re)}Hc&&(Hc=!1,Cp(e));break;case 4:l=va,va=$r(e.stateNode.containerInfo),Fn(t,e),Pn(e),va=l;break;case 12:Fn(t,e),Pn(e);break;case 31:Fn(t,e),Pn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,kr(e,l)));break;case 13:Fn(t,e),Pn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Cr=je()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,kr(e,l)));break;case 22:o=e.memoizedState!==null;var O=n!==null&&n.memoizedState!==null,K=Va,ie=an;if(Va=K||o,an=ie||O,Fn(t,e),an=ie,Va=K,Pn(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||O||Va||an||Vi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){O=n=t;try{if(c=O.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{E=O.stateNode;var ce=O.memoizedProps.style,Z=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;E.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(Re){_t(O,O.return,Re)}}}else if(t.tag===6){if(n===null){O=t;try{O.stateNode.nodeValue=o?"":O.memoizedProps}catch(Re){_t(O,O.return,Re)}}}else if(t.tag===18){if(n===null){O=t;try{var V=O.stateNode;o?Em(V,!0):Em(O.stateNode,!1)}catch(Re){_t(O,O.return,Re)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,kr(e,n))));break;case 19:Fn(t,e),Pn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,kr(e,l)));break;case 30:break;case 21:break;default:Fn(t,e),Pn(e)}}function Pn(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Sp(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode,c=Bc(e);Rr(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(J(h,""),n.flags&=-33);var E=Bc(e);Rr(e,E,h);break;case 3:case 4:var O=n.stateNode.containerInfo,K=Bc(e);Ic(e,K,O);break;default:throw Error(s(161))}}catch(ie){_t(e,e.return,ie)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Cp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Cp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Wa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)xp(e,t.alternate,t),t=t.sibling}function Vi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vi(4,t,t.return),Vi(t);break;case 1:Oa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Ep(t,t.return,n),Vi(t);break;case 27:xs(t.stateNode);case 26:case 5:Oa(t,t.return),Vi(t);break;case 22:t.memoizedState===null&&Vi(t);break;case 30:Vi(t);break;default:Vi(t)}e=e.sibling}}function Ja(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Ja(o,c,n),ms(4,c);break;case 1:if(Ja(o,c,n),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(K){_t(l,l.return,K)}if(l=c,o=l.updateQueue,o!==null){var E=l.stateNode;try{var O=o.shared.hiddenCallbacks;if(O!==null)for(o.shared.hiddenCallbacks=null,o=0;o<O.length;o++)oh(O[o],E)}catch(K){_t(l,l.return,K)}}n&&h&64&&vp(c),gs(c,c.return);break;case 27:wp(c);case 26:case 5:Ja(o,c,n),n&&l===null&&h&4&&_p(c),gs(c,c.return);break;case 12:Ja(o,c,n);break;case 31:Ja(o,c,n),n&&h&4&&Rp(o,c);break;case 13:Ja(o,c,n),n&&h&4&&kp(o,c);break;case 22:c.memoizedState===null&&Ja(o,c,n),gs(c,c.return);break;case 30:break;default:Ja(o,c,n)}t=t.sibling}}function qc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ns(n))}function Gc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ns(e))}function Ea(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Mp(e,t,n,l),t=t.sibling}function Mp(e,t,n,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Ea(e,t,n,l),o&2048&&ms(9,t);break;case 1:Ea(e,t,n,l);break;case 3:Ea(e,t,n,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ns(e)));break;case 12:if(o&2048){Ea(e,t,n,l),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,E=c.onPostCommit;typeof E=="function"&&E(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){_t(t,t.return,O)}}else Ea(e,t,n,l);break;case 31:Ea(e,t,n,l);break;case 13:Ea(e,t,n,l);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?Ea(e,t,n,l):bs(e,t):c._visibility&2?Ea(e,t,n,l):(c._visibility|=2,wl(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&qc(h,t);break;case 24:Ea(e,t,n,l),o&2048&&Gc(t.alternate,t);break;default:Ea(e,t,n,l)}}function wl(e,t,n,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,E=n,O=l,K=h.flags;switch(h.tag){case 0:case 11:case 15:wl(c,h,E,O,o),ms(8,h);break;case 23:break;case 22:var ie=h.stateNode;h.memoizedState!==null?ie._visibility&2?wl(c,h,E,O,o):bs(c,h):(ie._visibility|=2,wl(c,h,E,O,o)),o&&K&2048&&qc(h.alternate,h);break;case 24:wl(c,h,E,O,o),o&&K&2048&&Gc(h.alternate,h);break;default:wl(c,h,E,O,o)}t=t.sibling}}function bs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,o=l.flags;switch(l.tag){case 22:bs(n,l),o&2048&&qc(l.alternate,l);break;case 24:bs(n,l),o&2048&&Gc(l.alternate,l);break;default:bs(n,l)}t=t.sibling}}var ys=8192;function Nl(e,t,n){if(e.subtreeFlags&ys)for(e=e.child;e!==null;)Dp(e,t,n),e=e.sibling}function Dp(e,t,n){switch(e.tag){case 26:Nl(e,t,n),e.flags&ys&&e.memoizedState!==null&&TE(n,va,e.memoizedState,e.memoizedProps);break;case 5:Nl(e,t,n);break;case 3:case 4:var l=va;va=$r(e.stateNode.containerInfo),Nl(e,t,n),va=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ys,ys=16777216,Nl(e,t,n),ys=l):Nl(e,t,n));break;default:Nl(e,t,n)}}function Lp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function vs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];mn=l,jp(l,e)}Lp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zp(e),e=e.sibling}function zp(e){switch(e.tag){case 0:case 11:case 15:vs(e),e.flags&2048&&vi(9,e,e.return);break;case 3:vs(e);break;case 12:vs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Or(e)):vs(e);break;default:vs(e)}}function Or(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];mn=l,jp(l,e)}Lp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vi(8,t,t.return),Or(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Or(t));break;default:Or(t)}e=e.sibling}}function jp(e,t){for(;mn!==null;){var n=mn;switch(n.tag){case 0:case 11:case 15:vi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ns(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,mn=l;else e:for(n=e;mn!==null;){l=mn;var o=l.sibling,c=l.return;if(Tp(l),l===n){mn=null;break e}if(o!==null){o.return=c,mn=o;break e}mn=c}}}var qv={getCacheForType:function(e){var t=_n(en),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return _n(en).controller.signal}},Gv=typeof WeakMap=="function"?WeakMap:Map,bt=0,kt=null,at=null,st=0,Et=0,ta=null,Ei=!1,xl=!1,$c=!1,ei=0,Yt=0,_i=0,Qi=0,Yc=0,na=0,Tl=0,Es=null,Kn=null,Fc=!1,Cr=0,Up=0,Mr=1/0,Dr=null,Si=null,fn=0,wi=null,Al=null,ti=0,Pc=0,Kc=null,Bp=null,_s=0,Zc=null;function aa(){return(bt&2)!==0&&st!==0?st&-st:M.T!==null?eu():sa()}function Ip(){if(na===0)if((st&536870912)===0||ot){var e=pn;pn<<=1,(pn&3932160)===0&&(pn=262144),na=e}else na=536870912;return e=Jn.current,e!==null&&(e.flags|=32),na}function Zn(e,t,n){(e===kt&&(Et===2||Et===9)||e.cancelPendingCommit!==null)&&(Rl(e,0),Ni(e,st,na,!1)),et(e,n),((bt&2)===0||e!==kt)&&(e===kt&&((bt&2)===0&&(Qi|=n),Yt===4&&Ni(e,st,na,!1)),Ca(e))}function Hp(e,t,n){if((bt&6)!==0)throw Error(s(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||te(e,t),o=l?Fv(e,t):Vc(e,t,!0),c=l;do{if(o===0){xl&&!l&&Ni(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!$v(n)){o=Vc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var E=e;o=Es;var O=E.current.memoizedState.isDehydrated;if(O&&(Rl(E,h).flags|=256),h=Vc(E,h,!1),h!==2){if($c&&!O){E.errorRecoveryDisabledLanes|=c,Qi|=c,o=4;break e}c=Kn,Kn=o,c!==null&&(Kn===null?Kn=c:Kn.push.apply(Kn,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){Rl(e,0),Ni(e,t,0,!0);break}e:{switch(l=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ni(l,t,na,!Ei);break e;case 2:Kn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Cr+300-je(),10<o)){if(Ni(l,t,na,!Ei),k(l,0,!0)!==0)break e;ti=t,l.timeoutHandle=bm(qp.bind(null,l,n,Kn,Dr,Fc,t,na,Qi,Tl,Ei,c,"Throttled",-0,0),o);break e}qp(l,n,Kn,Dr,Fc,t,na,Qi,Tl,Ei,c,null,-0,0)}}break}while(!0);Ca(e)}function qp(e,t,n,l,o,c,h,E,O,K,ie,ce,Z,V){if(e.timeoutHandle=-1,ce=t.subtreeFlags,ce&8192||(ce&16785408)===16785408){ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:he},Dp(t,c,ce);var Re=(c&62914560)===c?Cr-je():(c&4194048)===c?Up-je():0;if(Re=AE(ce,Re),Re!==null){ti=c,e.cancelPendingCommit=Re(Xp.bind(null,e,t,c,n,l,o,h,E,O,ie,ce,null,Z,V)),Ni(e,c,h,!K);return}}Xp(e,t,c,n,l,o,h,E,O)}function $v(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var o=n[l],c=o.getSnapshot;o=o.value;try{if(!Qn(c(),o))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 Ni(e,t,n,l){t&=~Yc,t&=~Qi,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var c=31-qt(o),h=1<<c;l[c]=-1,o&=~h}n!==0&&Se(e,n,t)}function Lr(){return(bt&6)===0?(Ss(0),!1):!0}function Xc(){if(at!==null){if(Et===0)var e=at.return;else e=at,Ya=Gi=null,dc(e),yl=null,is=0,e=at;for(;e!==null;)yp(e.alternate,e),e=e.return;at=null}}function Rl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,cE(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ti=0,Xc(),kt=e,at=n=Ga(e.current,null),st=t,Et=0,ta=null,Ei=!1,xl=te(e,t),$c=!1,Tl=na=Yc=Qi=_i=Yt=0,Kn=Es=null,Fc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-qt(l),c=1<<o;t|=e[o],l&=~c}return ei=t,tr(),n}function Gp(e,t){Pe=null,M.H=fs,t===bl||t===cr?(t=ih(),Et=3):t===Jo?(t=ih(),Et=4):Et=t===Ac?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ta=t,at===null&&(Yt=1,wr(e,ua(t,e.current)))}function $p(){var e=Jn.current;return e===null?!0:(st&4194048)===st?pa===null:(st&62914560)===st||(st&536870912)!==0?e===pa:!1}function Yp(){var e=M.H;return M.H=fs,e===null?fs:e}function Fp(){var e=M.A;return M.A=qv,e}function zr(){Yt=4,Ei||(st&4194048)!==st&&Jn.current!==null||(xl=!0),(_i&134217727)===0&&(Qi&134217727)===0||kt===null||Ni(kt,st,na,!1)}function Vc(e,t,n){var l=bt;bt|=2;var o=Yp(),c=Fp();(kt!==e||st!==t)&&(Dr=null,Rl(e,t)),t=!1;var h=Yt;e:do try{if(Et!==0&&at!==null){var E=at,O=ta;switch(Et){case 8:Xc(),h=6;break e;case 3:case 2:case 9:case 6:Jn.current===null&&(t=!0);var K=Et;if(Et=0,ta=null,kl(e,E,O,K),n&&xl){h=0;break e}break;default:K=Et,Et=0,ta=null,kl(e,E,O,K)}}Yv(),h=Yt;break}catch(ie){Gp(e,ie)}while(!0);return t&&e.shellSuspendCounter++,Ya=Gi=null,bt=l,M.H=o,M.A=c,at===null&&(kt=null,st=0,tr()),h}function Yv(){for(;at!==null;)Pp(at)}function Fv(e,t){var n=bt;bt|=2;var l=Yp(),o=Fp();kt!==e||st!==t?(Dr=null,Mr=je()+500,Rl(e,t)):xl=te(e,t);e:do try{if(Et!==0&&at!==null){t=at;var c=ta;t:switch(Et){case 1:Et=0,ta=null,kl(e,t,c,1);break;case 2:case 9:if(nh(c)){Et=0,ta=null,Kp(t);break}t=function(){Et!==2&&Et!==9||kt!==e||(Et=7),Ca(e)},c.then(t,t);break e;case 3:Et=7;break e;case 4:Et=5;break e;case 7:nh(c)?(Et=0,ta=null,Kp(t)):(Et=0,ta=null,kl(e,t,c,7));break;case 5:var h=null;switch(at.tag){case 26:h=at.memoizedState;case 5:case 27:var E=at;if(h?Mm(h):E.stateNode.complete){Et=0,ta=null;var O=E.sibling;if(O!==null)at=O;else{var K=E.return;K!==null?(at=K,jr(K)):at=null}break t}}Et=0,ta=null,kl(e,t,c,5);break;case 6:Et=0,ta=null,kl(e,t,c,6);break;case 8:Xc(),Yt=6;break e;default:throw Error(s(462))}}Pv();break}catch(ie){Gp(e,ie)}while(!0);return Ya=Gi=null,M.H=l,M.A=o,bt=n,at!==null?0:(kt=null,st=0,tr(),Yt)}function Pv(){for(;at!==null&&!yn();)Pp(at)}function Pp(e){var t=gp(e.alternate,e,ei);e.memoizedProps=e.pendingProps,t===null?jr(e):at=t}function Kp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=up(n,t,t.pendingProps,t.type,void 0,st);break;case 11:t=up(n,t,t.pendingProps,t.type.render,t.ref,st);break;case 5:dc(t);default:yp(n,t),t=at=Ff(t,ei),t=gp(n,t,ei)}e.memoizedProps=e.pendingProps,t===null?jr(e):at=t}function kl(e,t,n,l){Ya=Gi=null,dc(t),yl=null,is=0;var o=t.return;try{if(Lv(e,o,t,n,st)){Yt=1,wr(e,ua(n,e.current)),at=null;return}}catch(c){if(o!==null)throw at=o,c;Yt=1,wr(e,ua(n,e.current)),at=null;return}t.flags&32768?(ot||l===1?e=!0:xl||(st&536870912)!==0?e=!1:(Ei=e=!0,(l===2||l===9||l===3||l===6)&&(l=Jn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Zp(t,e)):jr(t)}function jr(e){var t=e;do{if((t.flags&32768)!==0){Zp(t,Ei);return}e=t.return;var n=Uv(t.alternate,t,ei);if(n!==null){at=n;return}if(t=t.sibling,t!==null){at=t;return}at=t=e}while(t!==null);Yt===0&&(Yt=5)}function Zp(e,t){do{var n=Bv(e.alternate,e);if(n!==null){n.flags&=32767,at=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){at=e;return}at=e=n}while(e!==null);Yt=6,at=null}function Xp(e,t,n,l,o,c,h,E,O){e.cancelPendingCommit=null;do Ur();while(fn!==0);if((bt&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Bo,Ae(e,n,c,h,E,O),e===kt&&(at=kt=null,st=0),Al=t,wi=e,ti=n,Pc=c,Kc=o,Bp=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Vv(Tn,function(){return em(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null,o=Q.p,Q.p=2,h=bt,bt|=4;try{Iv(e,t,n)}finally{bt=h,Q.p=o,M.T=l}}fn=1,Vp(),Qp(),Wp()}}function Vp(){if(fn===1){fn=0;var e=wi,t=Al,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=M.T,M.T=null;var l=Q.p;Q.p=2;var o=bt;bt|=4;try{Op(t,e);var c=ou,h=jf(e.containerInfo),E=c.focusedElem,O=c.selectionRange;if(h!==E&&E&&E.ownerDocument&&zf(E.ownerDocument.documentElement,E)){if(O!==null&&Do(E)){var K=O.start,ie=O.end;if(ie===void 0&&(ie=K),"selectionStart"in E)E.selectionStart=K,E.selectionEnd=Math.min(ie,E.value.length);else{var ce=E.ownerDocument||document,Z=ce&&ce.defaultView||window;if(Z.getSelection){var V=Z.getSelection(),Re=E.textContent.length,Be=Math.min(O.start,Re),Tt=O.end===void 0?Be:Math.min(O.end,Re);!V.extend&&Be>Tt&&(h=Tt,Tt=Be,Be=h);var H=Lf(E,Be),D=Lf(E,Tt);if(H&&D&&(V.rangeCount!==1||V.anchorNode!==H.node||V.anchorOffset!==H.offset||V.focusNode!==D.node||V.focusOffset!==D.offset)){var P=ce.createRange();P.setStart(H.node,H.offset),V.removeAllRanges(),Be>Tt?(V.addRange(P),V.extend(D.node,D.offset)):(P.setEnd(D.node,D.offset),V.addRange(P))}}}}for(ce=[],V=E;V=V.parentNode;)V.nodeType===1&&ce.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ce.length;E++){var re=ce[E];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}Xr=!!ru,ou=ru=null}finally{bt=o,Q.p=l,M.T=n}}e.current=t,fn=2}}function Qp(){if(fn===2){fn=0;var e=wi,t=Al,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=M.T,M.T=null;var l=Q.p;Q.p=2;var o=bt;bt|=4;try{xp(e,t.alternate,t)}finally{bt=o,Q.p=l,M.T=n}}fn=3}}function Wp(){if(fn===4||fn===3){fn=0,Ft();var e=wi,t=Al,n=ti,l=Bp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?fn=5:(fn=0,Al=wi=null,Jp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Si=null),qn(n),t=t.stateNode,Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(cn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=M.T,o=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;h<l.length;h++){var E=l[h];c(E.value,{componentStack:E.stack})}}finally{M.T=t,Q.p=o}}(ti&3)!==0&&Ur(),Ca(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Zc?_s++:(_s=0,Zc=e):_s=0,Ss(0)}}function Jp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ns(t)))}function Ur(){return Vp(),Qp(),Wp(),em()}function em(){if(fn!==5)return!1;var e=wi,t=Pc;Pc=0;var n=qn(ti),l=M.T,o=Q.p;try{Q.p=32>n?32:n,M.T=null,n=Kc,Kc=null;var c=wi,h=ti;if(fn=0,Al=wi=null,ti=0,(bt&6)!==0)throw Error(s(331));var E=bt;if(bt|=4,zp(c.current),Mp(c,c.current,h,n),bt=E,Ss(0,!1),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(cn,c)}catch{}return!0}finally{Q.p=o,M.T=l,Jp(e,t)}}function tm(e,t,n){t=ua(n,t),t=Tc(e.stateNode,t,2),e=gi(e,t,2),e!==null&&(et(e,2),Ca(e))}function _t(e,t,n){if(e.tag===3)tm(e,e,n);else for(;t!==null;){if(t.tag===3){tm(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Si===null||!Si.has(l))){e=ua(n,e),n=np(2),l=gi(t,n,2),l!==null&&(ap(n,l,t,e),et(l,2),Ca(l));break}}t=t.return}}function Qc(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Gv;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(n)||($c=!0,o.add(n),e=Kv.bind(null,e,t,n),t.then(e,e))}function Kv(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,kt===e&&(st&n)===n&&(Yt===4||Yt===3&&(st&62914560)===st&&300>je()-Cr?(bt&2)===0&&Rl(e,0):Yc|=n,Tl===st&&(Tl=0)),Ca(e)}function nm(e,t){t===0&&(t=ze()),e=Ii(e,t),e!==null&&(et(e,t),Ca(e))}function Zv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nm(e,n)}function Xv(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),nm(e,n)}function Vv(e,t){return Rt(e,t)}var Br=null,Ol=null,Wc=!1,Ir=!1,Jc=!1,xi=0;function Ca(e){e!==Ol&&e.next===null&&(Ol===null?Br=Ol=e:Ol=Ol.next=e),Ir=!0,Wc||(Wc=!0,Wv())}function Ss(e,t){if(!Jc&&Ir){Jc=!0;do for(var n=!1,l=Br;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var h=l.suspendedLanes,E=l.pingedLanes;c=(1<<31-qt(42|e)+1)-1,c&=o&~(h&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,sm(l,c))}else c=st,c=k(l,l===kt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||te(l,c)||(n=!0,sm(l,c));l=l.next}while(n);Jc=!1}}function Qv(){am()}function am(){Ir=Wc=!1;var e=0;xi!==0&&oE()&&(e=xi);for(var t=je(),n=null,l=Br;l!==null;){var o=l.next,c=im(l,t);c===0?(l.next=null,n===null?Br=o:n.next=o,o===null&&(Ol=n)):(n=l,(e!==0||(c&3)!==0)&&(Ir=!0)),l=o}fn!==0&&fn!==5||Ss(e),xi!==0&&(xi=0)}function im(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-qt(c),E=1<<h,O=o[h];O===-1?((E&n)===0||(E&l)!==0)&&(o[h]=ye(E,t)):O<=t&&(e.expiredLanes|=E),c&=~E}if(t=kt,n=st,n=k(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Et===2||Et===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&on(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||te(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&on(l),qn(n)){case 2:case 8:n=Ot;break;case 32:n=Tn;break;case 268435456:n=An;break;default:n=Tn}return l=lm.bind(null,e),n=Rt(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&on(l),e.callbackPriority=2,e.callbackNode=null,2}function lm(e,t){if(fn!==0&&fn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ur()&&e.callbackNode!==n)return null;var l=st;return l=k(e,e===kt?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Hp(e,l,t),im(e,je()),e.callbackNode!=null&&e.callbackNode===n?lm.bind(null,e):null)}function sm(e,t){if(Ur())return null;Hp(e,t,!0)}function Wv(){uE(function(){(bt&6)!==0?Rt(vt,Qv):am()})}function eu(){if(xi===0){var e=ml;e===0&&(e=qe,qe<<=1,(qe&261888)===0&&(qe=256)),xi=e}return xi}function rm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:nt(""+e)}function om(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Jv(e,t,n,l,o){if(t==="submit"&&n&&n.stateNode===o){var c=rm((o[Kt]||null).action),h=l.submitter;h&&(t=(t=h[Kt]||null)?rm(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var E=new Qs("action","action",null,l,o);e.push({event:E,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(xi!==0){var O=h?om(o,h):new FormData(o);Ec(n,{pending:!0,data:O,method:o.method,action:c},null,O)}}else typeof c=="function"&&(E.preventDefault(),O=h?om(o,h):new FormData(o),Ec(n,{pending:!0,data:O,method:o.method,action:c},c,O))},currentTarget:o}]})}}for(var tu=0;tu<Uo.length;tu++){var nu=Uo[tu],eE=nu.toLowerCase(),tE=nu[0].toUpperCase()+nu.slice(1);ya(eE,"on"+tE)}ya(If,"onAnimationEnd"),ya(Hf,"onAnimationIteration"),ya(qf,"onAnimationStart"),ya("dblclick","onDoubleClick"),ya("focusin","onFocus"),ya("focusout","onBlur"),ya(bv,"onTransitionRun"),ya(yv,"onTransitionStart"),ya(vv,"onTransitionCancel"),ya(Gf,"onTransitionEnd"),F("onMouseEnter",["mouseout","mouseover"]),F("onMouseLeave",["mouseout","mouseover"]),F("onPointerEnter",["pointerout","pointerover"]),F("onPointerLeave",["pointerout","pointerover"]),Ne("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ne("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ne("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ne("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ne("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ne("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ws="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(" "),nE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ws));function cm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],o=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var h=l.length-1;0<=h;h--){var E=l[h],O=E.instance,K=E.currentTarget;if(E=E.listener,O!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=K;try{c(o)}catch(ie){er(ie)}o.currentTarget=null,c=O}else for(h=0;h<l.length;h++){if(E=l[h],O=E.instance,K=E.currentTarget,E=E.listener,O!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=K;try{c(o)}catch(ie){er(ie)}o.currentTarget=null,c=O}}}}function it(e,t){var n=t[vn];n===void 0&&(n=t[vn]=new Set);var l=e+"__bubble";n.has(l)||(um(t,e,2,!1),n.add(l))}function au(e,t,n){var l=0;t&&(l|=4),um(n,e,l,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function iu(e){if(!e[Hr]){e[Hr]=!0,Y.forEach(function(n){n!=="selectionchange"&&(nE.has(n)||au(n,!1,e),au(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hr]||(t[Hr]=!0,au("selectionchange",!1,t))}}function um(e,t,n,l){switch(Im(t)){case 2:var o=OE;break;case 8:o=CE;break;default:o=vu}n=o.bind(null,t,n,e),o=void 0,!No||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function lu(e,t,n,l,o){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var E=l.stateNode.containerInfo;if(E===o)break;if(h===4)for(h=l.return;h!==null;){var O=h.tag;if((O===3||O===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;E!==null;){if(h=Wt(E),h===null)return;if(O=h.tag,O===5||O===6||O===26||O===27){l=c=h;continue e}E=E.parentNode}}l=l.return}Ks(function(){var K=c,ie=Me(n),ce=[];e:{var Z=$f.get(e);if(Z!==void 0){var V=Qs,Re=e;switch(e){case"keypress":if(Xs(n)===0)break e;case"keydown":case"keyup":V=Xy;break;case"focusin":Re="focus",V=Ro;break;case"focusout":Re="blur",V=Ro;break;case"beforeblur":case"afterblur":V=Ro;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":V=yf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=Uy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=Wy;break;case If:case Hf:case qf:V=Hy;break;case Gf:V=ev;break;case"scroll":case"scrollend":V=zy;break;case"wheel":V=nv;break;case"copy":case"cut":case"paste":V=Gy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=Ef;break;case"toggle":case"beforetoggle":V=iv}var Be=(t&4)!==0,Tt=!Be&&(e==="scroll"||e==="scrollend"),H=Be?Z!==null?Z+"Capture":null:Z;Be=[];for(var D=K,P;D!==null;){var re=D;if(P=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||P===null||H===null||(re=Fl(D,H),re!=null&&Be.push(Ns(D,re,P))),Tt)break;D=D.return}0<Be.length&&(Z=new V(Z,Re,null,n,ie),ce.push({event:Z,listeners:Be}))}}if((t&7)===0){e:{if(Z=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",Z&&n!==_e&&(Re=n.relatedTarget||n.fromElement)&&(Wt(Re)||Re[tt]))break e;if((V||Z)&&(Z=ie.window===ie?ie:(Z=ie.ownerDocument)?Z.defaultView||Z.parentWindow:window,V?(Re=n.relatedTarget||n.toElement,V=K,Re=Re?Wt(Re):null,Re!==null&&(Tt=f(Re),Be=Re.tag,Re!==Tt||Be!==5&&Be!==27&&Be!==6)&&(Re=null)):(V=null,Re=K),V!==Re)){if(Be=yf,re="onMouseLeave",H="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(Be=Ef,re="onPointerLeave",H="onPointerEnter",D="pointer"),Tt=V==null?Z:Xn(V),P=Re==null?Z:Xn(Re),Z=new Be(re,D+"leave",V,n,ie),Z.target=Tt,Z.relatedTarget=P,re=null,Wt(ie)===K&&(Be=new Be(H,D+"enter",Re,n,ie),Be.target=P,Be.relatedTarget=Tt,re=Be),Tt=re,V&&Re)t:{for(Be=aE,H=V,D=Re,P=0,re=H;re;re=Be(re))P++;re=0;for(var Le=D;Le;Le=Be(Le))re++;for(;0<P-re;)H=Be(H),P--;for(;0<re-P;)D=Be(D),re--;for(;P--;){if(H===D||D!==null&&H===D.alternate){Be=H;break t}H=Be(H),D=Be(D)}Be=null}else Be=null;V!==null&&dm(ce,Z,V,Be,!1),Re!==null&&Tt!==null&&dm(ce,Tt,Re,Be,!0)}}e:{if(Z=K?Xn(K):window,V=Z.nodeName&&Z.nodeName.toLowerCase(),V==="select"||V==="input"&&Z.type==="file")var ht=Rf;else if(Tf(Z))if(kf)ht=pv;else{ht=fv;var Oe=dv}else V=Z.nodeName,!V||V.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?K&&Te(K.elementType)&&(ht=Rf):ht=hv;if(ht&&(ht=ht(e,K))){Af(ce,ht,n,ie);break e}Oe&&Oe(e,Z,K),e==="focusout"&&K&&Z.type==="number"&&K.memoizedProps.value!=null&&oi(Z,"number",Z.value)}switch(Oe=K?Xn(K):window,e){case"focusin":(Tf(Oe)||Oe.contentEditable==="true")&&(rl=Oe,Lo=K,Jl=null);break;case"focusout":Jl=Lo=rl=null;break;case"mousedown":zo=!0;break;case"contextmenu":case"mouseup":case"dragend":zo=!1,Uf(ce,n,ie);break;case"selectionchange":if(gv)break;case"keydown":case"keyup":Uf(ce,n,ie)}var Xe;if(Oo)e:{switch(e){case"compositionstart":var rt="onCompositionStart";break e;case"compositionend":rt="onCompositionEnd";break e;case"compositionupdate":rt="onCompositionUpdate";break e}rt=void 0}else sl?Nf(e,n)&&(rt="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(rt="onCompositionStart");rt&&(_f&&n.locale!=="ko"&&(sl||rt!=="onCompositionStart"?rt==="onCompositionEnd"&&sl&&(Xe=gf()):(ci=ie,xo="value"in ci?ci.value:ci.textContent,sl=!0)),Oe=qr(K,rt),0<Oe.length&&(rt=new vf(rt,e,null,n,ie),ce.push({event:rt,listeners:Oe}),Xe?rt.data=Xe:(Xe=xf(n),Xe!==null&&(rt.data=Xe)))),(Xe=sv?rv(e,n):ov(e,n))&&(rt=qr(K,"onBeforeInput"),0<rt.length&&(Oe=new vf("onBeforeInput","beforeinput",null,n,ie),ce.push({event:Oe,listeners:rt}),Oe.data=Xe)),Jv(ce,e,K,n,ie)}cm(ce,t)})}function Ns(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",l=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Fl(e,n),o!=null&&l.unshift(Ns(e,o,c)),o=Fl(e,t),o!=null&&l.push(Ns(e,o,c))),e.tag===3)return l;e=e.return}return[]}function aE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function dm(e,t,n,l,o){for(var c=t._reactName,h=[];n!==null&&n!==l;){var E=n,O=E.alternate,K=E.stateNode;if(E=E.tag,O!==null&&O===l)break;E!==5&&E!==26&&E!==27||K===null||(O=K,o?(K=Fl(n,c),K!=null&&h.unshift(Ns(n,K,O))):o||(K=Fl(n,c),K!=null&&h.push(Ns(n,K,O)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var iE=/\r\n?/g,lE=/\u0000|\uFFFD/g;function fm(e){return(typeof e=="string"?e:""+e).replace(iE,`
49
+ `).replace(lE,"")}function hm(e,t){return t=fm(t),fm(e)===t}function xt(e,t,n,l,o,c){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||J(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&J(e,""+l);break;case"className":Bt(e,"class",l);break;case"tabIndex":Bt(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Bt(e,n,l);break;case"style":ne(e,l,c);break;case"data":if(t!=="object"){Bt(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=nt(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&xt(e,t,"name",o.name,o,null),xt(e,t,"formEncType",o.formEncType,o,null),xt(e,t,"formMethod",o.formMethod,o,null),xt(e,t,"formTarget",o.formTarget,o,null)):(xt(e,t,"encType",o.encType,o,null),xt(e,t,"method",o.method,o,null),xt(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=nt(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=he);break;case"onScroll":l!=null&&it("scroll",e);break;case"onScrollEnd":l!=null&&it("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=nt(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":it("beforetoggle",e),it("toggle",e),gt(e,"popover",l);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":gt(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=ke.get(n)||n,gt(e,n,l))}}function su(e,t,n,l,o,c){switch(n){case"style":ne(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof l=="string"?J(e,l):(typeof l=="number"||typeof l=="bigint")&&J(e,""+l);break;case"onScroll":l!=null&&it("scroll",e);break;case"onScrollEnd":l!=null&&it("scrollend",e);break;case"onClick":l!=null&&(e.onclick=he);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!de.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[Kt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,o);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):gt(e,n,l)}}}function wn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":it("error",e),it("load",e);var l=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:xt(e,t,c,h,n,null)}}o&&xt(e,t,"srcSet",n.srcSet,n,null),l&&xt(e,t,"src",n.src,n,null);return;case"input":it("invalid",e);var E=c=h=o=null,O=null,K=null;for(l in n)if(n.hasOwnProperty(l)){var ie=n[l];if(ie!=null)switch(l){case"name":o=ie;break;case"type":h=ie;break;case"checked":O=ie;break;case"defaultChecked":K=ie;break;case"value":c=ie;break;case"defaultValue":E=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(s(137,t));break;default:xt(e,t,l,ie,n,null)}}Ia(e,c,E,O,K,h,o,!1);return;case"select":it("invalid",e),l=h=c=null;for(o in n)if(n.hasOwnProperty(o)&&(E=n[o],E!=null))switch(o){case"value":c=E;break;case"defaultValue":h=E;break;case"multiple":l=E;default:xt(e,t,o,E,n,null)}t=c,n=h,e.multiple=!!l,t!=null?Jt(e,!!l,t,!1):n!=null&&Jt(e,!!l,n,!0);return;case"textarea":it("invalid",e),c=o=l=null;for(h in n)if(n.hasOwnProperty(h)&&(E=n[h],E!=null))switch(h){case"value":l=E;break;case"defaultValue":o=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(91));break;default:xt(e,t,h,E,n,null)}Aa(e,l,o,c);return;case"option":for(O in n)if(n.hasOwnProperty(O)&&(l=n[O],l!=null))switch(O){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:xt(e,t,O,l,n,null)}return;case"dialog":it("beforetoggle",e),it("toggle",e),it("cancel",e),it("close",e);break;case"iframe":case"object":it("load",e);break;case"video":case"audio":for(l=0;l<ws.length;l++)it(ws[l],e);break;case"image":it("error",e),it("load",e);break;case"details":it("toggle",e);break;case"embed":case"source":case"link":it("error",e),it("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in n)if(n.hasOwnProperty(K)&&(l=n[K],l!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:xt(e,t,K,l,n,null)}return;default:if(Te(t)){for(ie in n)n.hasOwnProperty(ie)&&(l=n[ie],l!==void 0&&su(e,t,ie,l,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(l=n[E],l!=null&&xt(e,t,E,l,n,null))}function sE(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,E=null,O=null,K=null,ie=null;for(V in n){var ce=n[V];if(n.hasOwnProperty(V)&&ce!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":O=ce;default:l.hasOwnProperty(V)||xt(e,t,V,null,l,ce)}}for(var Z in l){var V=l[Z];if(ce=n[Z],l.hasOwnProperty(Z)&&(V!=null||ce!=null))switch(Z){case"type":c=V;break;case"name":o=V;break;case"checked":K=V;break;case"defaultChecked":ie=V;break;case"value":h=V;break;case"defaultValue":E=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:V!==ce&&xt(e,t,Z,V,l,ce)}}ri(e,h,E,O,K,ie,c,o);return;case"select":V=h=E=Z=null;for(c in n)if(O=n[c],n.hasOwnProperty(c)&&O!=null)switch(c){case"value":break;case"multiple":V=O;default:l.hasOwnProperty(c)||xt(e,t,c,null,l,O)}for(o in l)if(c=l[o],O=n[o],l.hasOwnProperty(o)&&(c!=null||O!=null))switch(o){case"value":Z=c;break;case"defaultValue":E=c;break;case"multiple":h=c;default:c!==O&&xt(e,t,o,c,l,O)}t=E,n=h,l=V,Z!=null?Jt(e,!!n,Z,!1):!!l!=!!n&&(t!=null?Jt(e,!!n,t,!0):Jt(e,!!n,n?[]:"",!1));return;case"textarea":V=Z=null;for(E in n)if(o=n[E],n.hasOwnProperty(E)&&o!=null&&!l.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:xt(e,t,E,null,l,o)}for(h in l)if(o=l[h],c=n[h],l.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":Z=o;break;case"defaultValue":V=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&xt(e,t,h,o,l,c)}Ha(e,Z,V);return;case"option":for(var Re in n)if(Z=n[Re],n.hasOwnProperty(Re)&&Z!=null&&!l.hasOwnProperty(Re))switch(Re){case"selected":e.selected=!1;break;default:xt(e,t,Re,null,l,Z)}for(O in l)if(Z=l[O],V=n[O],l.hasOwnProperty(O)&&Z!==V&&(Z!=null||V!=null))switch(O){case"selected":e.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:xt(e,t,O,Z,l,V)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Be in n)Z=n[Be],n.hasOwnProperty(Be)&&Z!=null&&!l.hasOwnProperty(Be)&&xt(e,t,Be,null,l,Z);for(K in l)if(Z=l[K],V=n[K],l.hasOwnProperty(K)&&Z!==V&&(Z!=null||V!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(s(137,t));break;default:xt(e,t,K,Z,l,V)}return;default:if(Te(t)){for(var Tt in n)Z=n[Tt],n.hasOwnProperty(Tt)&&Z!==void 0&&!l.hasOwnProperty(Tt)&&su(e,t,Tt,void 0,l,Z);for(ie in l)Z=l[ie],V=n[ie],!l.hasOwnProperty(ie)||Z===V||Z===void 0&&V===void 0||su(e,t,ie,Z,l,V);return}}for(var H in n)Z=n[H],n.hasOwnProperty(H)&&Z!=null&&!l.hasOwnProperty(H)&&xt(e,t,H,null,l,Z);for(ce in l)Z=l[ce],V=n[ce],!l.hasOwnProperty(ce)||Z===V||Z==null&&V==null||xt(e,t,ce,Z,l,V)}function pm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function rE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var o=n[l],c=o.transferSize,h=o.initiatorType,E=o.duration;if(c&&E&&pm(h)){for(h=0,E=o.responseEnd,l+=1;l<n.length;l++){var O=n[l],K=O.startTime;if(K>E)break;var ie=O.transferSize,ce=O.initiatorType;ie&&pm(ce)&&(O=O.responseEnd,h+=ie*(O<E?1:(E-K)/(O-K)))}if(--l,t+=8*(c+h)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ru=null,ou=null;function Gr(e){return e.nodeType===9?e:e.ownerDocument}function mm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function cu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var uu=null;function oE(){var e=window.event;return e&&e.type==="popstate"?e===uu?!1:(uu=e,!0):(uu=null,!1)}var bm=typeof setTimeout=="function"?setTimeout:void 0,cE=typeof clearTimeout=="function"?clearTimeout:void 0,ym=typeof Promise=="function"?Promise:void 0,uE=typeof queueMicrotask=="function"?queueMicrotask:typeof ym<"u"?function(e){return ym.resolve(null).then(e).catch(dE)}:bm;function dE(e){setTimeout(function(){throw e})}function Ti(e){return e==="head"}function vm(e,t){var n=t,l=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(o),Ll(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")xs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,xs(n);for(var c=n.firstChild;c;){var h=c.nextSibling,E=c.nodeName;c[ra]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&xs(e.ownerDocument.body);n=o}while(n);Ll(t)}function Em(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function du(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":du(n),Ta(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function fE(e,t,n,l){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ra])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=ma(e.nextSibling),e===null)break}return null}function hE(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ma(e.nextSibling),e===null))return null;return e}function _m(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ma(e.nextSibling),e===null))return null;return e}function fu(e){return e.data==="$?"||e.data==="$~"}function hu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function pE(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function ma(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var pu=null;function Sm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ma(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function wm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Nm(e,t,n){switch(t=Gr(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function xs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ta(e)}var ga=new Map,xm=new Set;function $r(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ni=Q.d;Q.d={f:mE,r:gE,D:bE,C:yE,L:vE,m:EE,X:SE,S:_E,M:wE};function mE(){var e=ni.f(),t=Lr();return e||t}function gE(e){var t=Gn(e);t!==null&&t.tag===5&&t.type==="form"?Gh(t):ni.r(e)}var Cl=typeof document>"u"?null:document;function Tm(e,t,n){var l=Cl;if(l&&typeof t=="string"&&t){var o=On(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),xm.has(o)||(xm.add(o),e={rel:e,crossOrigin:n,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),wn(t,"link",e),ut(t),l.head.appendChild(t)))}}function bE(e){ni.D(e),Tm("dns-prefetch",e,null)}function yE(e,t){ni.C(e,t),Tm("preconnect",e,t)}function vE(e,t,n){ni.L(e,t,n);var l=Cl;if(l&&e&&t){var o='link[rel="preload"][as="'+On(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+On(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+On(n.imageSizes)+'"]')):o+='[href="'+On(e)+'"]';var c=o;switch(t){case"style":c=Ml(e);break;case"script":c=Dl(e)}ga.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ga.set(c,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(Ts(c))||t==="script"&&l.querySelector(As(c))||(t=l.createElement("link"),wn(t,"link",e),ut(t),l.head.appendChild(t)))}}function EE(e,t){ni.m(e,t);var n=Cl;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+On(l)+'"][href="'+On(e)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Dl(e)}if(!ga.has(c)&&(e=v({rel:"modulepreload",href:e},t),ga.set(c,e),n.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(As(c)))return}l=n.createElement("link"),wn(l,"link",e),ut(l),n.head.appendChild(l)}}}function _E(e,t,n){ni.S(e,t,n);var l=Cl;if(l&&e){var o=Vn(l).hoistableStyles,c=Ml(e);t=t||"default";var h=o.get(c);if(!h){var E={loading:0,preload:null};if(h=l.querySelector(Ts(c)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ga.get(c))&&mu(e,n);var O=h=l.createElement("link");ut(O),wn(O,"link",e),O._p=new Promise(function(K,ie){O.onload=K,O.onerror=ie}),O.addEventListener("load",function(){E.loading|=1}),O.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Yr(h,t,l)}h={type:"stylesheet",instance:h,count:1,state:E},o.set(c,h)}}}function SE(e,t){ni.X(e,t);var n=Cl;if(n&&e){var l=Vn(n).hoistableScripts,o=Dl(e),c=l.get(o);c||(c=n.querySelector(As(o)),c||(e=v({src:e,async:!0},t),(t=ga.get(o))&&gu(e,t),c=n.createElement("script"),ut(c),wn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function wE(e,t){ni.M(e,t);var n=Cl;if(n&&e){var l=Vn(n).hoistableScripts,o=Dl(e),c=l.get(o);c||(c=n.querySelector(As(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=ga.get(o))&&gu(e,t),c=n.createElement("script"),ut(c),wn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function Am(e,t,n,l){var o=(o=ve.current)?$r(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ml(n.href),n=Vn(o).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ml(n.href);var c=Vn(o).hoistableStyles,h=c.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=o.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),ga.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ga.set(e,n),c||NE(o,e,n,h.state))),t&&l===null)throw Error(s(528,""));return h}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Dl(n),n=Vn(o).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ml(e){return'href="'+On(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function Rm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function NE(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),wn(t,"link",n),ut(t),e.head.appendChild(t))}function Dl(e){return'[src="'+On(e)+'"]'}function As(e){return"script[async]"+e}function km(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+On(n.href)+'"]');if(l)return t.instance=l,ut(l),l;var o=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ut(l),wn(l,"style",o),Yr(l,n.precedence,e),t.instance=l;case"stylesheet":o=Ml(n.href);var c=e.querySelector(Ts(o));if(c)return t.state.loading|=4,t.instance=c,ut(c),c;l=Rm(n),(o=ga.get(o))&&mu(l,o),c=(e.ownerDocument||e).createElement("link"),ut(c);var h=c;return h._p=new Promise(function(E,O){h.onload=E,h.onerror=O}),wn(c,"link",l),t.state.loading|=4,Yr(c,n.precedence,e),t.instance=c;case"script":return c=Dl(n.src),(o=e.querySelector(As(c)))?(t.instance=o,ut(o),o):(l=n,(o=ga.get(c))&&(l=v({},n),gu(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),ut(o),wn(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Yr(l,n.precedence,e));return t.instance}function Yr(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,h=0;h<l.length;h++){var E=l[h];if(E.dataset.precedence===t)c=E;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function mu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function gu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Fr=null;function Om(e,t,n){if(Fr===null){var l=new Map,o=Fr=new Map;o.set(n,l)}else o=Fr,l=o.get(n),l||(l=new Map,o.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[ra]||c[wt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var E=l.get(h);E?E.push(c):l.set(h,[c])}}return l}function Cm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function xE(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Mm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function TE(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ml(l.href),c=t.querySelector(Ts(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Pr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,ut(c);return}c=t.ownerDocument||t,l=Rm(l),(o=ga.get(o))&&mu(l,o),c=c.createElement("link"),ut(c);var h=c;h._p=new Promise(function(E,O){h.onload=E,h.onerror=O}),wn(c,"link",l),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Pr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var bu=0;function AE(e,t){return e.stylesheets&&e.count===0&&Zr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&Zr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&bu===0&&(bu=62500*rE());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>bu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Pr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Kr=null;function Zr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Kr=new Map,t.forEach(RE,e),Kr=null,Pr.call(e))}function RE(e,t){if(!(t.state.loading&4)){var n=Kr.get(e);if(n)var l=n.get(null);else{n=new Map,Kr.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var h=o[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),l=h)}l&&n.set(null,l)}o=t.instance,h=o.getAttribute("data-precedence"),c=n.get(h)||l,c===l&&n.set(null,o),n.set(h,o),this.count++,l=Pr.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Rs={$$typeof:U,Provider:null,Consumer:null,_currentValue:pe,_currentValue2:pe,_threadCount:0};function kE(e,t,n,l,o,c,h,E,O){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qe(0),this.hiddenUpdates=Qe(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Dm(e,t,n,l,o,c,h,E,O,K,ie,ce){return e=new kE(e,t,n,h,O,K,ie,ce,E),t=1,c===!0&&(t|=24),c=Wn(3,null,null,t),e.current=c,c.stateNode=e,t=Vo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:t},ec(c),e}function Lm(e){return e?(e=ul,e):ul}function zm(e,t,n,l,o,c){o=Lm(o),l.context===null?l.context=o:l.pendingContext=o,l=mi(t),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=gi(e,l,t),n!==null&&(Zn(n,e,t),ss(n,e,t))}function jm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yu(e,t){jm(e,t),(e=e.alternate)&&jm(e,t)}function Um(e){if(e.tag===13||e.tag===31){var t=Ii(e,67108864);t!==null&&Zn(t,e,67108864),yu(e,67108864)}}function Bm(e){if(e.tag===13||e.tag===31){var t=aa();t=mt(t);var n=Ii(e,t);n!==null&&Zn(n,e,t),yu(e,t)}}var Xr=!0;function OE(e,t,n,l){var o=M.T;M.T=null;var c=Q.p;try{Q.p=2,vu(e,t,n,l)}finally{Q.p=c,M.T=o}}function CE(e,t,n,l){var o=M.T;M.T=null;var c=Q.p;try{Q.p=8,vu(e,t,n,l)}finally{Q.p=c,M.T=o}}function vu(e,t,n,l){if(Xr){var o=Eu(l);if(o===null)lu(e,t,l,Vr,n),Hm(e,l);else if(DE(o,e,t,n,l))l.stopPropagation();else if(Hm(e,l),t&4&&-1<ME.indexOf(e)){for(;o!==null;){var c=Gn(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=Gt(c.pendingLanes);if(h!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;h;){var O=1<<31-qt(h);E.entanglements[1]|=O,h&=~O}Ca(c),(bt&6)===0&&(Mr=je()+500,Ss(0))}}break;case 31:case 13:E=Ii(c,2),E!==null&&Zn(E,c,2),Lr(),yu(c,2)}if(c=Eu(l),c===null&&lu(e,t,l,Vr,n),c===o)break;o=c}o!==null&&l.stopPropagation()}else lu(e,t,l,null,n)}}function Eu(e){return e=Me(e),_u(e)}var Vr=null;function _u(e){if(Vr=null,e=Wt(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===31){if(e=y(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 Vr=e,null}function Im(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Lt()){case vt:return 2;case Ot:return 8;case Tn:case zn:return 32;case An:return 268435456;default:return 32}default:return 32}}var Su=!1,Ai=null,Ri=null,ki=null,ks=new Map,Os=new Map,Oi=[],ME="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Hm(e,t){switch(e){case"focusin":case"focusout":Ai=null;break;case"dragenter":case"dragleave":Ri=null;break;case"mouseover":case"mouseout":ki=null;break;case"pointerover":case"pointerout":ks.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Os.delete(t.pointerId)}}function Cs(e,t,n,l,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Gn(t),t!==null&&Um(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function DE(e,t,n,l,o){switch(t){case"focusin":return Ai=Cs(Ai,e,t,n,l,o),!0;case"dragenter":return Ri=Cs(Ri,e,t,n,l,o),!0;case"mouseover":return ki=Cs(ki,e,t,n,l,o),!0;case"pointerover":var c=o.pointerId;return ks.set(c,Cs(ks.get(c)||null,e,t,n,l,o)),!0;case"gotpointercapture":return c=o.pointerId,Os.set(c,Cs(Os.get(c)||null,e,t,n,l,o)),!0}return!1}function qm(e){var t=Wt(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,Na(e.priority,function(){Bm(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,Na(e.priority,function(){Bm(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 Qr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Eu(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);_e=l,n.target.dispatchEvent(l),_e=null}else return t=Gn(n),t!==null&&Um(t),e.blockedOn=n,!1;t.shift()}return!0}function Gm(e,t,n){Qr(e)&&n.delete(t)}function LE(){Su=!1,Ai!==null&&Qr(Ai)&&(Ai=null),Ri!==null&&Qr(Ri)&&(Ri=null),ki!==null&&Qr(ki)&&(ki=null),ks.forEach(Gm),Os.forEach(Gm)}function Wr(e,t){e.blockedOn===t&&(e.blockedOn=null,Su||(Su=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,LE)))}var Jr=null;function $m(e){Jr!==e&&(Jr=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Jr===e&&(Jr=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(_u(l||n)===null)continue;break}var c=Gn(n);c!==null&&(e.splice(t,3),t-=3,Ec(c,{pending:!0,data:o,method:n.method,action:l},l,o))}}))}function Ll(e){function t(O){return Wr(O,e)}Ai!==null&&Wr(Ai,e),Ri!==null&&Wr(Ri,e),ki!==null&&Wr(ki,e),ks.forEach(t),Os.forEach(t);for(var n=0;n<Oi.length;n++){var l=Oi[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Oi.length&&(n=Oi[0],n.blockedOn===null);)qm(n),n.blockedOn===null&&Oi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var o=n[l],c=n[l+1],h=o[Kt]||null;if(typeof c=="function")h||$m(n);else if(h){var E=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[Kt]||null)E=h.formAction;else if(_u(o)!==null)continue}else E=h.action;typeof E=="function"?n[l+1]=E:(n.splice(l,3),l-=3),$m(n)}}}function Ym(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function wu(e){this._internalRoot=e}eo.prototype.render=wu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,l=aa();zm(n,l,e,t,null,null)},eo.prototype.unmount=wu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zm(e.current,2,null,e,null,null),Lr(),t[tt]=null}};function eo(e){this._internalRoot=e}eo.prototype.unstable_scheduleHydration=function(e){if(e){var t=sa();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Oi.length&&t!==0&&t<Oi[n].priority;n++);Oi.splice(n,0,e),n===0&&qm(e)}};var Fm=a.version;if(Fm!=="19.2.8")throw Error(s(527,Fm,"19.2.8"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var zE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var to=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!to.isDisabled&&to.supportsFiber)try{cn=to.inject(zE),Ht=to}catch{}}return Ds.createRoot=function(e,t){if(!u(e))throw Error(s(299));var n=!1,l="",o=Wh,c=Jh,h=ep;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Dm(e,1,!1,null,null,n,l,null,o,c,h,Ym),e[tt]=t.current,iu(e),new wu(t)},Ds.hydrateRoot=function(e,t,n){if(!u(e))throw Error(s(299));var l=!1,o="",c=Wh,h=Jh,E=ep,O=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(E=n.onRecoverableError),n.formState!==void 0&&(O=n.formState)),t=Dm(e,1,!0,t,n??null,l,o,O,c,h,E,Ym),t.context=Lm(null),n=t.current,l=aa(),l=mt(l),o=mi(l),o.callback=null,gi(n,o,l),n=l,t.current.lanes=n,et(t,n),Ca(t),e[tt]=t.current,iu(e),new eo(t)},Ds.version="19.2.8",Ds}var tg;function KE(){if(tg)return Tu.exports;tg=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),Tu.exports=PE(),Tu.exports}var ZE=KE(),ln;(function(i){i.INSERT="insert",i.DELETE="delete",i.CONTEXT="context"})(ln||(ln={}));const XE={LINE_BY_LINE:"line-by-line"},VE={NONE:"none"},QE={WORD:"word"};var Hl;(function(i){i.AUTO="auto",i.DARK="dark",i.LIGHT="light"})(Hl||(Hl={}));const WE=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],JE=RegExp("["+WE.join("\\")+"]","g");function e_(i){return i.replace(JE,"\\$&")}function ng(i){return i&&i.replace(/\\/g,"/")}function t_(i){let a,r,s,u=0;for(a=0,s=i.length;a<s;a++)r=i.charCodeAt(a),u=(u<<5)-u+r,u|=0;return u}function qb(i){const a=i.length;let r=-1/0;for(let s=0;s<a;s++)r=Math.max(r,i[s]);return r}function ag(i,a){const r=i.split(".");return r.length>1?r[r.length-1]:a}function ig(i,a){return a.reduce((r,s)=>r||i.startsWith(s),!1)}const lg=["a/","b/","i/","w/","c/","o/"];function Li(i,a,r){const s=r!==void 0?[...lg,r]:lg,u=a?new RegExp(`^${e_(a)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,f=""]=u.exec(i)||[],p=s.find(g=>f.indexOf(g)===0);return(p?f.slice(p.length):f).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function n_(i,a){return Li(i,"---",a)}function a_(i,a){return Li(i,"+++",a)}function i_(i,a={}){const r=[];let s=null,u=null,f=null,p=null,y=null,g=null,m=null;const b="--- ",v="+++ ",S="@@",T=/^old mode (\d{6})/,_=/^new mode (\d{6})/,C=/^deleted file mode (\d{6})/,A=/^new file mode (\d{6})/,R=/^copy from "?(.+)"?/,$=/^copy to "?(.+)"?/,U=/^rename from "?(.+)"?/,W=/^rename to "?(.+)"?/,z=/^similarity index (\d+)%/,ae=/^dissimilarity index (\d+)%/,se=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,x=/^Binary files (.*) and (.*) differ/,G=/^GIT binary patch/,ee=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,ue=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,Ee=/^new file mode (\d{6})/,j=/^deleted file mode (\d{6}),(\d{6})/,le=i.replace(/\/g,"").replace(/\r\n?/g,`
50
+ `).split(`
51
+ `);function fe(){u!==null&&s!==null&&(s.blocks.push(u),u=null)}function M(){s!==null&&(!s.oldName&&g!==null&&(s.oldName=g),!s.newName&&m!==null&&(s.newName=m),s.newName&&(r.push(s),s=null)),g=null,m=null}function Q(){fe(),M(),s={blocks:[],deletedLines:0,addedLines:0}}function pe(w){fe();let L;s!==null&&((L=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(w))?(s.isCombined=!1,f=parseInt(L[1],10),y=parseInt(L[2],10)):(L=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(w))?(s.isCombined=!0,f=parseInt(L[1],10),p=parseInt(L[2],10),y=parseInt(L[3],10)):(w.startsWith(S)&&console.error("Failed to parse lines, starting in 0!"),f=0,y=0,s.isCombined=!1)),u={lines:[],oldStartLine:f,oldStartLine2:p,newStartLine:y,header:w}}function we(w){if(s===null||u===null||f===null||y===null)return;const L={content:w},I=s.isCombined?["+ "," +","++"]:["+"],oe=s.isCombined?["- "," -","--"]:["-"];ig(w,I)?(s.addedLines++,L.type=ln.INSERT,L.oldNumber=void 0,L.newNumber=y++):ig(w,oe)?(s.deletedLines++,L.type=ln.DELETE,L.oldNumber=f++,L.newNumber=void 0):(L.type=ln.CONTEXT,L.oldNumber=f++,L.newNumber=y++),u.lines.push(L)}function De(w,L){let I=L;for(;I<le.length-3;){if(w.startsWith("diff"))return!1;if(le[I].startsWith(b)&&le[I+1].startsWith(v)&&le[I+2].startsWith(S))return!0;I++}return!1}return le.forEach((w,L)=>{if(!w||w.startsWith("*"))return;let I;const oe=le[L-1],me=le[L+1],ve=le[L+2];if(w.startsWith("diff --git")||w.startsWith("diff --combined")){if(Q(),(I=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(w))&&(g=Li(I[1],void 0,a.dstPrefix),m=Li(I[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isGitDiff=!0;return}if(w.startsWith("Binary files")&&!(s!=null&&s.isGitDiff)){if(Q(),(I=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(w))&&(g=Li(I[1],void 0,a.dstPrefix),m=Li(I[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isBinary=!0;return}if((!s||!s.isGitDiff&&s&&w.startsWith(b)&&me.startsWith(v)&&ve.startsWith(S))&&Q(),s!=null&&s.isTooBig)return;if(s&&(typeof a.diffMaxChanges=="number"&&s.addedLines+s.deletedLines>a.diffMaxChanges||typeof a.diffMaxLineLength=="number"&&w.length>a.diffMaxLineLength)){s.isTooBig=!0,s.addedLines=0,s.deletedLines=0,s.blocks=[],u=null;const be=typeof a.diffTooBigMessage=="function"?a.diffTooBigMessage(r.length):"Diff too big to be displayed";pe(be);return}if(w.startsWith(b)&&me.startsWith(v)||w.startsWith(v)&&oe.startsWith(b)){if(s&&!s.oldName&&w.startsWith("--- ")&&(I=n_(w,a.srcPrefix))){s.oldName=I,s.language=ag(s.oldName,s.language);return}if(s&&!s.newName&&w.startsWith("+++ ")&&(I=a_(w,a.dstPrefix))){s.newName=I,s.language=ag(s.newName,s.language);return}}if(s&&(w.startsWith(S)||s.isGitDiff&&s.oldName&&s.newName&&!u)){pe(w);return}if(u&&(w.startsWith("+")||w.startsWith("-")||w.startsWith(" "))){we(w);return}const X=!De(w,L);if(s===null)throw new Error("Where is my file !!!");(I=T.exec(w))?s.oldMode=I[1]:(I=_.exec(w))?s.newMode=I[1]:(I=C.exec(w))?(s.deletedFileMode=I[1],s.isDeleted=!0):(I=A.exec(w))?(s.newFileMode=I[1],s.isNew=!0):(I=R.exec(w))?(X&&(s.oldName=I[1]),s.isCopy=!0):(I=$.exec(w))?(X&&(s.newName=I[1]),s.isCopy=!0):(I=U.exec(w))?(X&&(s.oldName=I[1]),s.isRename=!0):(I=W.exec(w))?(X&&(s.newName=I[1]),s.isRename=!0):(I=x.exec(w))?(s.isBinary=!0,s.oldName=Li(I[1],void 0,a.srcPrefix),s.newName=Li(I[2],void 0,a.dstPrefix),pe("Binary file")):G.test(w)?(s.isBinary=!0,pe(w)):(I=z.exec(w))?s.unchangedPercentage=parseInt(I[1],10):(I=ae.exec(w))?s.changedPercentage=parseInt(I[1],10):(I=se.exec(w))?(s.checksumBefore=I[1],s.checksumAfter=I[2],I[3]&&(s.mode=I[3])):(I=ee.exec(w))?(s.checksumBefore=[I[2],I[3]],s.checksumAfter=I[1]):(I=ue.exec(w))?(s.oldMode=[I[2],I[3]],s.newMode=I[1]):(I=Ee.exec(w))?(s.newFileMode=I[1],s.isNew=!0):(I=j.exec(w))&&(s.deletedFileMode=I[1],s.isDeleted=!0)}),fe(),M(),r}class Gb{diff(a,r,s={}){let u;typeof s=="function"?(u=s,s={}):"callback"in s&&(u=s.callback);const f=this.castInput(a,s),p=this.castInput(r,s),y=this.removeEmpty(this.tokenize(f,s)),g=this.removeEmpty(this.tokenize(p,s));return this.diffWithOptionsObj(y,g,s,u)}diffWithOptionsObj(a,r,s,u){var f;const p=$=>{if($=this.postProcess($,s),u){setTimeout(function(){u($)},0);return}else return $},y=r.length,g=a.length;let m=1,b=y+g;s.maxEditLength!=null&&(b=Math.min(b,s.maxEditLength));const v=(f=s.timeout)!==null&&f!==void 0?f:1/0,S=Date.now()+v,T=[{oldPos:-1,lastComponent:void 0}];let _=this.extractCommon(T[0],r,a,0,s);if(T[0].oldPos+1>=g&&_+1>=y)return p(this.buildValues(T[0].lastComponent,r,a));let C=-1/0,A=1/0;const R=()=>{for(let $=Math.max(C,-m);$<=Math.min(A,m);$+=2){let U;const W=T[$-1],z=T[$+1];W&&(T[$-1]=void 0);let ae=!1;if(z){const x=z.oldPos-$;ae=z&&0<=x&&x<y}const se=W&&W.oldPos+1<g;if(!ae&&!se){T[$]=void 0;continue}if(!se||ae&&W.oldPos<z.oldPos?U=this.addToPath(z,!0,!1,0,s):U=this.addToPath(W,!1,!0,1,s),_=this.extractCommon(U,r,a,$,s),U.oldPos+1>=g&&_+1>=y)return p(this.buildValues(U.lastComponent,r,a))||!0;T[$]=U,U.oldPos+1>=g&&(A=Math.min(A,$-1)),_+1>=y&&(C=Math.max(C,$+1))}m++};if(u)(function $(){setTimeout(function(){if(m>b||Date.now()>S)return u(void 0);R()||$()},0)})();else for(;m<=b&&Date.now()<=S;){const $=R();if($)return $}}addToPath(a,r,s,u,f){const p=a.lastComponent;return p&&!f.oneChangePerToken&&p.added===r&&p.removed===s?{oldPos:a.oldPos+u,lastComponent:{count:p.count+1,added:r,removed:s,previousComponent:p.previousComponent}}:{oldPos:a.oldPos+u,lastComponent:{count:1,added:r,removed:s,previousComponent:p}}}extractCommon(a,r,s,u,f){const p=r.length,y=s.length;let g=a.oldPos,m=g-u,b=0;for(;m+1<p&&g+1<y&&this.equals(s[g+1],r[m+1],f);)m++,g++,b++,f.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return b&&!f.oneChangePerToken&&(a.lastComponent={count:b,previousComponent:a.lastComponent,added:!1,removed:!1}),a.oldPos=g,m}equals(a,r,s){return s.comparator?s.comparator(a,r):a===r||!!s.ignoreCase&&a.toLowerCase()===r.toLowerCase()}removeEmpty(a){const r=[];for(let s=0;s<a.length;s++)a[s]&&r.push(a[s]);return r}castInput(a,r){return a}tokenize(a,r){return Array.from(a)}join(a){return a.join("")}postProcess(a,r){return a}get useLongestToken(){return!1}buildValues(a,r,s){const u=[];let f;for(;a;)u.push(a),f=a.previousComponent,delete a.previousComponent,a=f;u.reverse();const p=u.length;let y=0,g=0,m=0;for(;y<p;y++){const b=u[y];if(b.removed)b.value=this.join(s.slice(m,m+b.count)),m+=b.count;else{if(!b.added&&this.useLongestToken){let v=r.slice(g,g+b.count);v=v.map(function(S,T){const _=s[m+T];return _.length>S.length?_:S}),b.value=this.join(v)}else b.value=this.join(r.slice(g,g+b.count));g+=b.count,b.added||(m+=b.count)}}return u}}class l_ extends Gb{}const s_=new l_;function r_(i,a,r){return s_.diff(i,a,r)}const sg="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";class o_ extends Gb{tokenize(a){const r=new RegExp(`(\\r?\\n)|[${sg}]+|[^\\S\\n\\r]+|[^${sg}]`,"ug");return a.match(r)||[]}}const c_=new o_;function u_(i,a,r){return c_.diff(i,a,r)}function d_(i,a){if(i.length===0)return a.length;if(a.length===0)return i.length;const r=[];let s;for(s=0;s<=a.length;s++)r[s]=[s];let u;for(u=0;u<=i.length;u++)r[0][u]=u;for(s=1;s<=a.length;s++)for(u=1;u<=i.length;u++)a.charAt(s-1)===i.charAt(u-1)?r[s][u]=r[s-1][u-1]:r[s][u]=Math.min(r[s-1][u-1]+1,Math.min(r[s][u-1]+1,r[s-1][u]+1));return r[a.length][i.length]}function Vd(i){return(a,r)=>{const s=i(a).trim(),u=i(r).trim();return d_(s,u)/(s.length+u.length)}}function Qd(i){function a(s,u,f=new Map){let p=1/0,y;for(let g=0;g<s.length;++g)for(let m=0;m<u.length;++m){const b=JSON.stringify([s[g],u[m]]);let v;f.has(b)&&(v=f.get(b))||(v=i(s[g],u[m]),f.set(b,v)),v<p&&(p=v,y={indexA:g,indexB:m,score:p})}return y}function r(s,u,f=0,p=new Map){const y=a(s,u,p);if(!y||s.length+u.length<3)return[[s,u]];const g=s.slice(0,y.indexA),m=u.slice(0,y.indexB),b=[s[y.indexA]],v=[u[y.indexB]],S=y.indexA+1,T=y.indexB+1,_=s.slice(S),C=u.slice(T),A=r(g,m,f+1,p),R=r(b,v,f+1,p),$=r(_,C,f+1,p);let U=R;return(y.indexA>0||y.indexB>0)&&(U=A.concat(U)),(s.length>S||u.length>T)&&(U=U.concat($)),U}return r}const Bn={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},Eo={matching:VE.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:QE.WORD,colorScheme:Hl.LIGHT},Ma="/",$b=Vd(i=>i.value),f_=Qd($b);function Ou(i){return i.indexOf("dev/null")!==-1}function h_(i){return i.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function p_(i){return i.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function fo(i){switch(i){case ln.CONTEXT:return Bn.CONTEXT;case ln.INSERT:return Bn.INSERTS;case ln.DELETE:return Bn.DELETES}}function Wd(i){switch(i){case Hl.DARK:return"d2h-dark-color-scheme";case Hl.AUTO:return"d2h-auto-color-scheme";case Hl.LIGHT:default:return"d2h-light-color-scheme"}}function m_(i){return i?2:1}function ql(i){return i.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function La(i,a,r=!0){const s=m_(a);return{prefix:i.substring(0,s),content:r?ql(i.substring(s)):i.substring(s)}}function _o(i){const a=ng(i.oldName),r=ng(i.newName);if(a!==r&&!Ou(a)&&!Ou(r)){const s=[],u=[],f=a.split(Ma),p=r.split(Ma),y=f.length,g=p.length;let m=0,b=y-1,v=g-1;for(;m<b&&m<v&&f[m]===p[m];)s.push(p[m]),m+=1;for(;b>m&&v>m&&f[b]===p[v];)u.unshift(p[v]),b-=1,v-=1;const S=s.join(Ma),T=u.join(Ma),_=f.slice(m,b+1).join(Ma),C=p.slice(m,v+1).join(Ma);return S.length&&T.length?S+Ma+"{"+_+" → "+C+"}"+Ma+T:S.length?S+Ma+"{"+_+" → "+C+"}":T.length?"{"+_+" → "+C+"}"+Ma+T:a+" → "+r}else return Ou(r)?a:r}function Jd(i){return`d2h-${t_(_o(i)).toString().slice(-6)}`}function ef(i){let a="file-changed";return i.isRename||i.isCopy?a="file-renamed":i.isNew?a="file-added":i.isDeleted?a="file-deleted":i.newName!==i.oldName&&(a="file-renamed"),a}function Yb(i,a,r,s={}){const{matching:u,maxLineLengthHighlight:f,matchWordsThreshold:p,diffStyle:y}=Object.assign(Object.assign({},Eo),s),g=La(i,r,!1),m=La(a,r,!1);if(g.content.length>f||m.content.length>f)return{oldLine:{prefix:g.prefix,content:ql(g.content)},newLine:{prefix:m.prefix,content:ql(m.content)}};const b=y==="char"?r_(g.content,m.content):u_(g.content,m.content),v=[];if(y==="word"&&u==="words"){const T=b.filter(A=>A.removed),_=b.filter(A=>A.added);f_(_,T).forEach(A=>{A[0].length===1&&A[1].length===1&&$b(A[0][0],A[1][0])<p&&(v.push(A[0][0]),v.push(A[1][0]))})}const S=b.reduce((T,_)=>{const C=_.added?"ins":_.removed?"del":null,A=v.indexOf(_)>-1?' class="d2h-change"':"",R=ql(_.value);return C!==null?`${T}<${C}${A}>${R}</${C}>`:`${T}${R}`},"");return{oldLine:{prefix:g.prefix,content:h_(S)},newLine:{prefix:m.prefix,content:p_(S)}}}const rg="file-summary",g_="icon",b_={colorScheme:Eo.colorScheme};class y_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},b_),r)}render(a){const r=a.map(s=>this.hoganUtils.render(rg,"line",{fileHtmlId:Jd(s),oldName:s.oldName,newName:s.newName,fileName:_o(s),deletedLines:"-"+s.deletedLines,addedLines:"+"+s.addedLines},{fileIcon:this.hoganUtils.template(g_,ef(s))})).join(`
52
+ `);return this.hoganUtils.render(rg,"wrapper",{colorScheme:Wd(this.config.colorScheme),filesNumber:a.length,files:r})}}const Fb=Object.assign(Object.assign({},Eo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ls="generic",og="line-by-line",v_="icon",E_="tag";class __{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},Fb),r)}render(a){const r=a.map(s=>{let u;return s.blocks.length?u=this.generateFileHtml(s):u=this.generateEmptyDiff(),this.makeFileDiffHtml(s,u)}).join(`
53
+ `);return this.hoganUtils.render(Ls,"wrapper",{colorScheme:Wd(this.config.colorScheme),content:r})}makeFileDiffHtml(a,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(a.blocks)&&a.blocks.length===0)return"";const s=this.hoganUtils.template(og,"file-diff"),u=this.hoganUtils.template(Ls,"file-path"),f=this.hoganUtils.template(v_,"file"),p=this.hoganUtils.template(E_,ef(a));return s.render({file:a,fileHtmlId:Jd(a),diffs:r,filePath:u.render({fileDiffName:_o(a)},{fileIcon:f,fileTag:p})})}generateEmptyDiff(){return this.hoganUtils.render(Ls,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:Bn})}generateFileHtml(a){const r=Qd(Vd(s=>La(s.content,a.isCombined).content));return a.blocks.map(s=>{let u=this.hoganUtils.render(Ls,"block-header",{CSSLineClass:Bn,blockHeader:a.isTooBig?s.header:ql(s.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(s).forEach(([f,p,y])=>{if(p.length&&y.length&&!f.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a,a.isCombined,g,m);u+=b,u+=v});else if(f.length)f.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined);u+=this.generateSingleLineHtml(a,{type:Bn.CONTEXT,prefix:m,content:b,oldNumber:g.oldNumber,newNumber:g.newNumber})});else if(p.length||y.length){const{left:g,right:m}=this.processChangedLines(a,a.isCombined,p,y);u+=g,u+=m}else console.error("Unknown state reached while processing groups of lines",f,p,y)}),u}).join(`
54
+ `)}applyLineGroupping(a){const r=[];let s=[],u=[];for(let f=0;f<a.lines.length;f++){const p=a.lines[f];(p.type!==ln.INSERT&&u.length||p.type===ln.CONTEXT&&s.length>0)&&(r.push([[],s,u]),s=[],u=[]),p.type===ln.CONTEXT?r.push([[p],[],[]]):p.type===ln.INSERT&&s.length===0?r.push([[],[],[p]]):p.type===ln.INSERT&&s.length>0?u.push(p):p.type===ln.DELETE&&s.push(p)}return(s.length||u.length)&&(r.push([[],s,u]),s=[],u=[]),r}applyRematchMatching(a,r,s){const u=a.length*r.length,f=qb(a.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&f<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?s(a,r):[[a,r]]}processChangedLines(a,r,s,u){const f={right:"",left:""},p=Math.max(s.length,u.length);for(let y=0;y<p;y++){const g=s[y],m=u[y],b=g!==void 0&&m!==void 0?Yb(g.content,m.content,r,this.config):void 0,v=g!==void 0&&g.oldNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.oldLine.prefix,content:b.oldLine.content,type:Bn.DELETE_CHANGES}:Object.assign(Object.assign({},La(g.content,r)),{type:fo(g.type)})),{oldNumber:g.oldNumber,newNumber:g.newNumber}):void 0,S=m!==void 0&&m.newNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.newLine.prefix,content:b.newLine.content,type:Bn.INSERT_CHANGES}:Object.assign(Object.assign({},La(m.content,r)),{type:fo(m.type)})),{oldNumber:m.oldNumber,newNumber:m.newNumber}):void 0,{left:T,right:_}=this.generateLineHtml(a,v,S);f.left+=T,f.right+=_}return f}generateLineHtml(a,r,s){return{left:this.generateSingleLineHtml(a,r),right:this.generateSingleLineHtml(a,s)}}generateSingleLineHtml(a,r){if(r===void 0)return"";const s=this.hoganUtils.render(og,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(Ls,"line",{type:r.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:r.prefix===" "?"&nbsp;":r.prefix,content:r.content,lineNumber:s,line:r,file:a})}}const Pb=Object.assign(Object.assign({},Eo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),zs="generic",S_="side-by-side",w_="icon",N_="tag";class x_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},Pb),r)}render(a){const r=a.map(s=>{let u;return s.blocks.length?u=this.generateFileHtml(s):u=this.generateEmptyDiff(),this.makeFileDiffHtml(s,u)}).join(`
55
+ `);return this.hoganUtils.render(zs,"wrapper",{colorScheme:Wd(this.config.colorScheme),content:r})}makeFileDiffHtml(a,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(a.blocks)&&a.blocks.length===0)return"";const s=this.hoganUtils.template(S_,"file-diff"),u=this.hoganUtils.template(zs,"file-path"),f=this.hoganUtils.template(w_,"file"),p=this.hoganUtils.template(N_,ef(a));return s.render({file:a,fileHtmlId:Jd(a),diffs:r,filePath:u.render({fileDiffName:_o(a)},{fileIcon:f,fileTag:p})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(zs,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:Bn})}}generateFileHtml(a){const r=Qd(Vd(s=>La(s.content,a.isCombined).content));return a.blocks.map(s=>{const u={left:this.makeHeaderHtml(s.header,a),right:this.makeHeaderHtml("")};return this.applyLineGroupping(s).forEach(([f,p,y])=>{if(p.length&&y.length&&!f.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a.isCombined,g,m);u.left+=b,u.right+=v});else if(f.length)f.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined),{left:v,right:S}=this.generateLineHtml({type:Bn.CONTEXT,prefix:m,content:b,number:g.oldNumber},{type:Bn.CONTEXT,prefix:m,content:b,number:g.newNumber});u.left+=v,u.right+=S});else if(p.length||y.length){const{left:g,right:m}=this.processChangedLines(a.isCombined,p,y);u.left+=g,u.right+=m}else console.error("Unknown state reached while processing groups of lines",f,p,y)}),u}).reduce((s,u)=>({left:s.left+u.left,right:s.right+u.right}),{left:"",right:""})}applyLineGroupping(a){const r=[];let s=[],u=[];for(let f=0;f<a.lines.length;f++){const p=a.lines[f];(p.type!==ln.INSERT&&u.length||p.type===ln.CONTEXT&&s.length>0)&&(r.push([[],s,u]),s=[],u=[]),p.type===ln.CONTEXT?r.push([[p],[],[]]):p.type===ln.INSERT&&s.length===0?r.push([[],[],[p]]):p.type===ln.INSERT&&s.length>0?u.push(p):p.type===ln.DELETE&&s.push(p)}return(s.length||u.length)&&(r.push([[],s,u]),s=[],u=[]),r}applyRematchMatching(a,r,s){const u=a.length*r.length,f=qb(a.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&f<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?s(a,r):[[a,r]]}makeHeaderHtml(a,r){return this.hoganUtils.render(zs,"block-header",{CSSLineClass:Bn,blockHeader:r!=null&&r.isTooBig?a:ql(a),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(a,r,s){const u={right:"",left:""},f=Math.max(r.length,s.length);for(let p=0;p<f;p++){const y=r[p],g=s[p],m=y!==void 0&&g!==void 0?Yb(y.content,g.content,a,this.config):void 0,b=y!==void 0&&y.oldNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.oldLine.prefix,content:m.oldLine.content,type:Bn.DELETE_CHANGES}:Object.assign(Object.assign({},La(y.content,a)),{type:fo(y.type)})),{number:y.oldNumber}):void 0,v=g!==void 0&&g.newNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.newLine.prefix,content:m.newLine.content,type:Bn.INSERT_CHANGES}:Object.assign(Object.assign({},La(g.content,a)),{type:fo(g.type)})),{number:g.newNumber}):void 0,{left:S,right:T}=this.generateLineHtml(b,v);u.left+=S,u.right+=T}return u}generateLineHtml(a,r){return{left:this.generateSingleHtml(a),right:this.generateSingleHtml(r)}}generateSingleHtml(a){const r="d2h-code-side-linenumber",s="d2h-code-side-line";return this.hoganUtils.render(zs,"line",{type:(a==null?void 0:a.type)||`${Bn.CONTEXT} d2h-emptyplaceholder`,lineClass:a!==void 0?r:`${r} d2h-code-side-emptyplaceholder`,contentClass:a!==void 0?s:`${s} d2h-code-side-emptyplaceholder`,prefix:(a==null?void 0:a.prefix)===" "?"&nbsp;":a==null?void 0:a.prefix,content:a==null?void 0:a.content,lineNumber:a==null?void 0:a.number})}}var Cu={},cg;function T_(){return cg||(cg=1,(function(i){(function(a){var r=/\S/,s=/\"/g,u=/\n/g,f=/\r/g,p=/\\/g,y=/\u2028/,g=/\u2029/;a.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},a.scan=function(G,ee){var ue=G.length,Ee=0,j=1,le=2,fe=Ee,M=null,Q=null,pe="",we=[],De=!1,w=0,L=0,I="{{",oe="}}";function me(){pe.length>0&&(we.push({tag:"_t",text:new String(pe)}),pe="")}function ve(){for(var xe=!0,Ge=L;Ge<we.length;Ge++)if(xe=a.tags[we[Ge].tag]<a.tags._v||we[Ge].tag=="_t"&&we[Ge].text.match(r)===null,!xe)return!1;return xe}function X(xe,Ge){if(me(),xe&&ve())for(var $e=L,Ce;$e<we.length;$e++)we[$e].text&&((Ce=we[$e+1])&&Ce.tag==">"&&(Ce.indent=we[$e].text.toString()),we.splice($e,1));else Ge||we.push({tag:`
56
+ `});De=!1,L=we.length}function be(xe,Ge){var $e="="+oe,Ce=xe.indexOf($e,Ge),St=b(xe.substring(xe.indexOf("=",Ge)+1,Ce)).split(" ");return I=St[0],oe=St[St.length-1],Ce+$e.length-1}for(ee&&(ee=ee.split(" "),I=ee[0],oe=ee[1]),w=0;w<ue;w++)fe==Ee?v(I,G,w)?(--w,me(),fe=j):G.charAt(w)==`
57
+ `?X(De):pe+=G.charAt(w):fe==j?(w+=I.length-1,Q=a.tags[G.charAt(w+1)],M=Q?G.charAt(w+1):"_v",M=="="?(w=be(G,w),fe=Ee):(Q&&w++,fe=le),De=w):v(oe,G,w)?(we.push({tag:M,n:b(pe),otag:I,ctag:oe,i:M=="/"?De-I.length:w+oe.length}),pe="",w+=oe.length-1,fe=Ee,M=="{"&&(oe=="}}"?w++:m(we[we.length-1]))):pe+=G.charAt(w);return X(De,!0),we};function m(x){x.n.substr(x.n.length-1)==="}"&&(x.n=x.n.substring(0,x.n.length-1))}function b(x){return x.trim?x.trim():x.replace(/^\s*|\s*$/g,"")}function v(x,G,ee){if(G.charAt(ee)!=x.charAt(0))return!1;for(var ue=1,Ee=x.length;ue<Ee;ue++)if(G.charAt(ee+ue)!=x.charAt(ue))return!1;return!0}var S={_t:!0,"\n":!0,$:!0,"/":!0};function T(x,G,ee,ue){var Ee=[],j=null,le=null,fe=null;for(le=ee[ee.length-1];x.length>0;){if(fe=x.shift(),le&&le.tag=="<"&&!(fe.tag in S))throw new Error("Illegal content in < super tag.");if(a.tags[fe.tag]<=a.tags.$||_(fe,ue))ee.push(fe),fe.nodes=T(x,fe.tag,ee,ue);else if(fe.tag=="/"){if(ee.length===0)throw new Error("Closing tag without opener: /"+fe.n);if(j=ee.pop(),fe.n!=j.n&&!C(fe.n,j.n,ue))throw new Error("Nesting error: "+j.n+" vs. "+fe.n);return j.end=fe.i,Ee}else fe.tag==`
58
+ `&&(fe.last=x.length==0||x[0].tag==`
59
+ `);Ee.push(fe)}if(ee.length>0)throw new Error("missing closing tag: "+ee.pop().n);return Ee}function _(x,G){for(var ee=0,ue=G.length;ee<ue;ee++)if(G[ee].o==x.n)return x.tag="#",!0}function C(x,G,ee){for(var ue=0,Ee=ee.length;ue<Ee;ue++)if(ee[ue].c==x&&ee[ue].o==G)return!0}function A(x){var G=[];for(var ee in x)G.push('"'+U(ee)+'": function(c,p,t,i) {'+x[ee]+"}");return"{ "+G.join(",")+" }"}function R(x){var G=[];for(var ee in x.partials)G.push('"'+U(ee)+'":{name:"'+U(x.partials[ee].name)+'", '+R(x.partials[ee])+"}");return"partials: {"+G.join(",")+"}, subs: "+A(x.subs)}a.stringify=function(x,G,ee){return"{code: function (c,p,i) { "+a.wrapMain(x.code)+" },"+R(x)+"}"};var $=0;a.generate=function(x,G,ee){$=0;var ue={code:"",subs:{},partials:{}};return a.walk(x,ue),ee.asString?this.stringify(ue,G,ee):this.makeTemplate(ue,G,ee)},a.wrapMain=function(x){return'var t=this;t.b(i=i||"");'+x+"return t.fl();"},a.template=a.Template,a.makeTemplate=function(x,G,ee){var ue=this.makePartials(x);return ue.code=new Function("c","p","i",this.wrapMain(x.code)),new this.template(ue,G,this,ee)},a.makePartials=function(x){var G,ee={subs:{},partials:x.partials,name:x.name};for(G in ee.partials)ee.partials[G]=this.makePartials(ee.partials[G]);for(G in x.subs)ee.subs[G]=new Function("c","p","t","i",x.subs[G]);return ee};function U(x){return x.replace(p,"\\\\").replace(s,'\\"').replace(u,"\\n").replace(f,"\\r").replace(y,"\\u2028").replace(g,"\\u2029")}function W(x){return~x.indexOf(".")?"d":"f"}function z(x,G){var ee="<"+(G.prefix||""),ue=ee+x.n+$++;return G.partials[ue]={name:x.n,partials:{}},G.code+='t.b(t.rp("'+U(ue)+'",c,p,"'+(x.indent||"")+'"));',ue}a.codegen={"#":function(x,G){G.code+="if(t.s(t."+W(x.n)+'("'+U(x.n)+'",c,p,1),c,p,0,'+x.i+","+x.end+',"'+x.otag+" "+x.ctag+'")){t.rs(c,p,function(c,p,t){',a.walk(x.nodes,G),G.code+="});c.pop();}"},"^":function(x,G){G.code+="if(!t.s(t."+W(x.n)+'("'+U(x.n)+'",c,p,1),c,p,1,0,0,"")){',a.walk(x.nodes,G),G.code+="};"},">":z,"<":function(x,G){var ee={partials:{},code:"",subs:{},inPartial:!0};a.walk(x.nodes,ee);var ue=G.partials[z(x,G)];ue.subs=ee.subs,ue.partials=ee.partials},$:function(x,G){var ee={subs:{},code:"",partials:G.partials,prefix:x.n};a.walk(x.nodes,ee),G.subs[x.n]=ee.code,G.inPartial||(G.code+='t.sub("'+U(x.n)+'",c,p,i);')},"\n":function(x,G){G.code+=se('"\\n"'+(x.last?"":" + i"))},_v:function(x,G){G.code+="t.b(t.v(t."+W(x.n)+'("'+U(x.n)+'",c,p,0)));'},_t:function(x,G){G.code+=se('"'+U(x.text)+'"')},"{":ae,"&":ae};function ae(x,G){G.code+="t.b(t.t(t."+W(x.n)+'("'+U(x.n)+'",c,p,0)));'}function se(x){return"t.b("+x+");"}a.walk=function(x,G){for(var ee,ue=0,Ee=x.length;ue<Ee;ue++)ee=a.codegen[x[ue].tag],ee&&ee(x[ue],G);return G},a.parse=function(x,G,ee){return ee=ee||{},T(x,"",[],ee.sectionTags||[])},a.cache={},a.cacheKey=function(x,G){return[x,!!G.asString,!!G.disableLambda,G.delimiters,!!G.modelGet].join("||")},a.compile=function(x,G){G=G||{};var ee=a.cacheKey(x,G),ue=this.cache[ee];if(ue){var Ee=ue.partials;for(var j in Ee)delete Ee[j].instance;return ue}return ue=this.generate(this.parse(this.scan(x,G.delimiters),x,G),x,G),this.cache[ee]=ue}})(i)})(Cu)),Cu}var Mu={},ug;function A_(){return ug||(ug=1,(function(i){(function(a){a.Template=function(T,_,C,A){T=T||{},this.r=T.code||this.r,this.c=C,this.options=A||{},this.text=_||"",this.partials=T.partials||{},this.subs=T.subs||{},this.buf=""},a.Template.prototype={r:function(T,_,C){return""},v,t:b,render:function(_,C,A){return this.ri([_],C||{},A)},ri:function(T,_,C){return this.r(T,_,C)},ep:function(T,_){var C=this.partials[T],A=_[C.name];if(C.instance&&C.base==A)return C.instance;if(typeof A=="string"){if(!this.c)throw new Error("No compiler available.");A=this.c.compile(A,this.options)}if(!A)return null;if(this.partials[T].base=A,C.subs){_.stackText||(_.stackText={});for(key in C.subs)_.stackText[key]||(_.stackText[key]=this.activeSub!==void 0&&_.stackText[this.activeSub]?_.stackText[this.activeSub]:this.text);A=s(A,C.subs,C.partials,this.stackSubs,this.stackPartials,_.stackText)}return this.partials[T].instance=A,A},rp:function(T,_,C,A){var R=this.ep(T,C);return R?R.ri(_,C,A):""},rs:function(T,_,C){var A=T[T.length-1];if(!S(A)){C(T,_,this);return}for(var R=0;R<A.length;R++)T.push(A[R]),C(T,_,this),T.pop()},s:function(T,_,C,A,R,$,U){var W;return S(T)&&T.length===0?!1:(typeof T=="function"&&(T=this.ms(T,_,C,A,R,$,U)),W=!!T,!A&&W&&_&&_.push(typeof T=="object"?T:_[_.length-1]),W)},d:function(T,_,C,A){var R,$=T.split("."),U=this.f($[0],_,C,A),W=this.options.modelGet,z=null;if(T==="."&&S(_[_.length-2]))U=_[_.length-1];else for(var ae=1;ae<$.length;ae++)R=r($[ae],U,W),R!==void 0?(z=U,U=R):U="";return A&&!U?!1:(!A&&typeof U=="function"&&(_.push(z),U=this.mv(U,_,C),_.pop()),U)},f:function(T,_,C,A){for(var R=!1,$=null,U=!1,W=this.options.modelGet,z=_.length-1;z>=0;z--)if($=_[z],R=r(T,$,W),R!==void 0){U=!0;break}return U?(!A&&typeof R=="function"&&(R=this.mv(R,_,C)),R):A?!1:""},ls:function(T,_,C,A,R,$){var U=this.options.delimiters;return this.options.delimiters=$,this.b(this.ct(b(T.call(_,R,C)),_,A)),this.options.delimiters=U,!1},ct:function(T,_,C){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(T,this.options).render(_,C)},b:function(T){this.buf+=T},fl:function(){var T=this.buf;return this.buf="",T},ms:function(T,_,C,A,R,$,U){var W,z=_[_.length-1],ae=T.call(z);return typeof ae=="function"?A?!0:(W=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(ae,z,_,C,W.substring(R,$),U)):ae},mv:function(T,_,C){var A=_[_.length-1],R=T.call(A);return typeof R=="function"?this.ct(b(R.call(A)),A,C):R},sub:function(T,_,C,A){var R=this.subs[T];R&&(this.activeSub=T,R(_,C,this,A),this.activeSub=!1)}};function r(T,_,C){var A;return _&&typeof _=="object"&&(_[T]!==void 0?A=_[T]:C&&_.get&&typeof _.get=="function"&&(A=_.get(T))),A}function s(T,_,C,A,R,$){function U(){}U.prototype=T;function W(){}W.prototype=T.subs;var z,ae=new U;ae.subs=new W,ae.subsText={},ae.buf="",A=A||{},ae.stackSubs=A,ae.subsText=$;for(z in _)A[z]||(A[z]=_[z]);for(z in A)ae.subs[z]=A[z];R=R||{},ae.stackPartials=R;for(z in C)R[z]||(R[z]=C[z]);for(z in R)ae.partials[z]=R[z];return ae}var u=/&/g,f=/</g,p=/>/g,y=/\'/g,g=/\"/g,m=/[&<>\"\']/;function b(T){return String(T??"")}function v(T){return T=b(T),m.test(T)?T.replace(u,"&amp;").replace(f,"&lt;").replace(p,"&gt;").replace(y,"&#39;").replace(g,"&quot;"):T}var S=Array.isArray||function(T){return Object.prototype.toString.call(T)==="[object Array]"}})(i)})(Mu)),Mu}var Du,dg;function R_(){if(dg)return Du;dg=1;var i=T_();return i.Template=A_().Template,i.template=i.Template,Du=i,Du}var Qt=R_();const rn={};rn["file-summary-line"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<li class="d2h-file-list-line">'),s.b(`
60
+ `+r),s.b(' <span class="d2h-file-name-wrapper">'),s.b(`
61
+ `+r),s.b(s.rp("<fileIcon0",i,a," ")),s.b(' <a href="#'),s.b(s.v(s.f("fileHtmlId",i,a,0))),s.b('" class="d2h-file-name">'),s.b(s.v(s.f("fileName",i,a,0))),s.b("</a>"),s.b(`
62
+ `+r),s.b(' <span class="d2h-file-stats">'),s.b(`
63
+ `+r),s.b(' <span class="d2h-lines-added">'),s.b(s.v(s.f("addedLines",i,a,0))),s.b("</span>"),s.b(`
64
+ `+r),s.b(' <span class="d2h-lines-deleted">'),s.b(s.v(s.f("deletedLines",i,a,0))),s.b("</span>"),s.b(`
65
+ `+r),s.b(" </span>"),s.b(`
66
+ `+r),s.b(" </span>"),s.b(`
67
+ `+r),s.b("</li>"),s.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}});rn["file-summary-wrapper"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<div class="d2h-file-list-wrapper '),s.b(s.v(s.f("colorScheme",i,a,0))),s.b('">'),s.b(`
68
+ `+r),s.b(' <div class="d2h-file-list-header">'),s.b(`
69
+ `+r),s.b(' <span class="d2h-file-list-title">Files changed ('),s.b(s.v(s.f("filesNumber",i,a,0))),s.b(")</span>"),s.b(`
70
+ `+r),s.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),s.b(`
71
+ `+r),s.b(' <a class="d2h-file-switch d2h-show">show</a>'),s.b(`
72
+ `+r),s.b(" </div>"),s.b(`
73
+ `+r),s.b(' <ol class="d2h-file-list">'),s.b(`
74
+ `+r),s.b(" "),s.b(s.t(s.f("files",i,a,0))),s.b(`
75
+ `+r),s.b(" </ol>"),s.b(`
76
+ `+r),s.b("</div>"),s.fl()},partials:{},subs:{}});rn["generic-block-header"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b("<tr>"),s.b(`
77
+ `+r),s.b(' <td class="'),s.b(s.v(s.f("lineClass",i,a,0))),s.b(" "),s.b(s.v(s.d("CSSLineClass.INFO",i,a,0))),s.b('"></td>'),s.b(`
78
+ `+r),s.b(' <td class="'),s.b(s.v(s.d("CSSLineClass.INFO",i,a,0))),s.b('">'),s.b(`
79
+ `+r),s.b(' <div class="'),s.b(s.v(s.f("contentClass",i,a,0))),s.b('">'),s.s(s.f("blockHeader",i,a,1),i,a,0,156,173,"{{ }}")&&(s.rs(i,a,function(u,f,p){p.b(p.t(p.f("blockHeader",u,f,0)))}),i.pop()),s.s(s.f("blockHeader",i,a,1),i,a,1,0,0,"")||s.b("&nbsp;"),s.b("</div>"),s.b(`
80
+ `+r),s.b(" </td>"),s.b(`
81
+ `+r),s.b("</tr>"),s.fl()},partials:{},subs:{}});rn["generic-empty-diff"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b("<tr>"),s.b(`
82
+ `+r),s.b(' <td class="'),s.b(s.v(s.d("CSSLineClass.INFO",i,a,0))),s.b('">'),s.b(`
83
+ `+r),s.b(' <div class="'),s.b(s.v(s.f("contentClass",i,a,0))),s.b('">'),s.b(`
84
+ `+r),s.b(" File without changes"),s.b(`
85
+ `+r),s.b(" </div>"),s.b(`
86
+ `+r),s.b(" </td>"),s.b(`
87
+ `+r),s.b("</tr>"),s.fl()},partials:{},subs:{}});rn["generic-file-path"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-file-name-wrapper">'),s.b(`
88
+ `+r),s.b(s.rp("<fileIcon0",i,a," ")),s.b(' <span class="d2h-file-name">'),s.b(s.v(s.f("fileDiffName",i,a,0))),s.b("</span>"),s.b(`
89
+ `+r),s.b(s.rp("<fileTag1",i,a," ")),s.b("</span>"),s.b(`
90
+ `+r),s.b('<label class="d2h-file-collapse">'),s.b(`
91
+ `+r),s.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),s.b(`
92
+ `+r),s.b(" Viewed"),s.b(`
93
+ `+r),s.b("</label>"),s.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}});rn["generic-line"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b("<tr>"),s.b(`
94
+ `+r),s.b(' <td class="'),s.b(s.v(s.f("lineClass",i,a,0))),s.b(" "),s.b(s.v(s.f("type",i,a,0))),s.b('">'),s.b(`
95
+ `+r),s.b(" "),s.b(s.t(s.f("lineNumber",i,a,0))),s.b(`
96
+ `+r),s.b(" </td>"),s.b(`
97
+ `+r),s.b(' <td class="'),s.b(s.v(s.f("type",i,a,0))),s.b('">'),s.b(`
98
+ `+r),s.b(' <div class="'),s.b(s.v(s.f("contentClass",i,a,0))),s.b('">'),s.b(`
99
+ `+r),s.s(s.f("prefix",i,a,1),i,a,0,162,238,"{{ }}")&&(s.rs(i,a,function(u,f,p){p.b(' <span class="d2h-code-line-prefix">'),p.b(p.t(p.f("prefix",u,f,0))),p.b("</span>"),p.b(`
100
+ `+r)}),i.pop()),s.s(s.f("prefix",i,a,1),i,a,1,0,0,"")||(s.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),s.b(`
101
+ `+r)),s.s(s.f("content",i,a,1),i,a,0,371,445,"{{ }}")&&(s.rs(i,a,function(u,f,p){p.b(' <span class="d2h-code-line-ctn">'),p.b(p.t(p.f("content",u,f,0))),p.b("</span>"),p.b(`
102
+ `+r)}),i.pop()),s.s(s.f("content",i,a,1),i,a,1,0,0,"")||(s.b(' <span class="d2h-code-line-ctn"><br></span>'),s.b(`
103
+ `+r)),s.b(" </div>"),s.b(`
104
+ `+r),s.b(" </td>"),s.b(`
105
+ `+r),s.b("</tr>"),s.fl()},partials:{},subs:{}});rn["generic-wrapper"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<div class="d2h-wrapper '),s.b(s.v(s.f("colorScheme",i,a,0))),s.b('">'),s.b(`
106
+ `+r),s.b(" "),s.b(s.t(s.f("content",i,a,0))),s.b(`
107
+ `+r),s.b("</div>"),s.fl()},partials:{},subs:{}});rn["icon-file-added"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),s.b(`
108
+ `+r),s.b(' width="14">'),s.b(`
109
+ `+r),s.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),s.b(`
110
+ `+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});rn["icon-file-changed"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),s.b(`
111
+ `+r),s.b(' viewBox="0 0 14 16" width="14">'),s.b(`
112
+ `+r),s.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),s.b(`
113
+ `+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});rn["icon-file-deleted"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),s.b(`
114
+ `+r),s.b(' viewBox="0 0 14 16" width="14">'),s.b(`
115
+ `+r),s.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),s.b(`
116
+ `+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});rn["icon-file-renamed"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),s.b(`
117
+ `+r),s.b(' viewBox="0 0 14 16" width="14">'),s.b(`
118
+ `+r),s.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),s.b(`
119
+ `+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});rn["icon-file"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),s.b(`
120
+ `+r),s.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),s.b(`
121
+ `+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});rn["line-by-line-file-diff"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<div id="'),s.b(s.v(s.f("fileHtmlId",i,a,0))),s.b('" class="d2h-file-wrapper" data-lang="'),s.b(s.v(s.d("file.language",i,a,0))),s.b('">'),s.b(`
122
+ `+r),s.b(' <div class="d2h-file-header">'),s.b(`
123
+ `+r),s.b(" "),s.b(s.t(s.f("filePath",i,a,0))),s.b(`
124
+ `+r),s.b(" </div>"),s.b(`
125
+ `+r),s.b(' <div class="d2h-file-diff">'),s.b(`
126
+ `+r),s.b(' <div class="d2h-code-wrapper">'),s.b(`
127
+ `+r),s.b(' <table class="d2h-diff-table">'),s.b(`
128
+ `+r),s.b(' <tbody class="d2h-diff-tbody">'),s.b(`
129
+ `+r),s.b(" "),s.b(s.t(s.f("diffs",i,a,0))),s.b(`
130
+ `+r),s.b(" </tbody>"),s.b(`
131
+ `+r),s.b(" </table>"),s.b(`
132
+ `+r),s.b(" </div>"),s.b(`
133
+ `+r),s.b(" </div>"),s.b(`
134
+ `+r),s.b("</div>"),s.fl()},partials:{},subs:{}});rn["line-by-line-numbers"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<div class="line-num1">'),s.b(s.v(s.f("oldNumber",i,a,0))),s.b("</div>"),s.b(`
135
+ `+r),s.b('<div class="line-num2">'),s.b(s.v(s.f("newNumber",i,a,0))),s.b("</div>"),s.fl()},partials:{},subs:{}});rn["side-by-side-file-diff"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<div id="'),s.b(s.v(s.f("fileHtmlId",i,a,0))),s.b('" class="d2h-file-wrapper" data-lang="'),s.b(s.v(s.d("file.language",i,a,0))),s.b('">'),s.b(`
136
+ `+r),s.b(' <div class="d2h-file-header">'),s.b(`
137
+ `+r),s.b(" "),s.b(s.t(s.f("filePath",i,a,0))),s.b(`
138
+ `+r),s.b(" </div>"),s.b(`
139
+ `+r),s.b(' <div class="d2h-files-diff">'),s.b(`
140
+ `+r),s.b(' <div class="d2h-file-side-diff">'),s.b(`
141
+ `+r),s.b(' <div class="d2h-code-wrapper">'),s.b(`
142
+ `+r),s.b(' <table class="d2h-diff-table">'),s.b(`
143
+ `+r),s.b(' <tbody class="d2h-diff-tbody">'),s.b(`
144
+ `+r),s.b(" "),s.b(s.t(s.d("diffs.left",i,a,0))),s.b(`
145
+ `+r),s.b(" </tbody>"),s.b(`
146
+ `+r),s.b(" </table>"),s.b(`
147
+ `+r),s.b(" </div>"),s.b(`
148
+ `+r),s.b(" </div>"),s.b(`
149
+ `+r),s.b(' <div class="d2h-file-side-diff">'),s.b(`
150
+ `+r),s.b(' <div class="d2h-code-wrapper">'),s.b(`
151
+ `+r),s.b(' <table class="d2h-diff-table">'),s.b(`
152
+ `+r),s.b(' <tbody class="d2h-diff-tbody">'),s.b(`
153
+ `+r),s.b(" "),s.b(s.t(s.d("diffs.right",i,a,0))),s.b(`
154
+ `+r),s.b(" </tbody>"),s.b(`
155
+ `+r),s.b(" </table>"),s.b(`
156
+ `+r),s.b(" </div>"),s.b(`
157
+ `+r),s.b(" </div>"),s.b(`
158
+ `+r),s.b(" </div>"),s.b(`
159
+ `+r),s.b("</div>"),s.fl()},partials:{},subs:{}});rn["tag-file-added"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),s.fl()},partials:{},subs:{}});rn["tag-file-changed"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),s.fl()},partials:{},subs:{}});rn["tag-file-deleted"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),s.fl()},partials:{},subs:{}});rn["tag-file-renamed"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),s.fl()},partials:{},subs:{}});class k_{constructor({compiledTemplates:a={},rawTemplates:r={}}){const s=Object.entries(r).reduce((u,[f,p])=>{const y=Qt.compile(p,{asString:!1});return Object.assign(Object.assign({},u),{[f]:y})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},rn),a),s)}static compile(a){return Qt.compile(a,{asString:!1})}render(a,r,s,u,f){const p=this.templateKey(a,r);try{return this.preCompiledTemplates[p].render(s,u,f)}catch{throw new Error(`Could not find template to render '${p}'`)}}template(a,r){return this.preCompiledTemplates[this.templateKey(a,r)]}templateKey(a,r){return`${a}-${r}`}}const O_=Object.assign(Object.assign(Object.assign({},Fb),Pb),{outputFormat:XE.LINE_BY_LINE,drawFileList:!0});function C_(i,a={}){const r=Object.assign(Object.assign({},O_),a),s=typeof i=="string"?i_(i,r):i,u=new k_(r),{colorScheme:f}=r,p={colorScheme:f},y=r.drawFileList?new y_(u,p).render(s):"",g=r.outputFormat==="side-by-side"?new x_(u,r).render(s):new __(u,r).render(s);return y+g}var Lu=Hb();function ja(i){const a=[],r=i.split(`
160
+ `);let s=null,u=null;const f=()=>{s&&u&&a.push({path:u,patch:s.join(`
161
+ `)}),s=null,u=null};for(const p of r)if(p.startsWith("diff --git ")){f(),s=[p];const y=p.match(/^diff --git a\/(.+?) b\/(.+)$/);u=y?y[2]:p.slice(11)}else if(s&&(s.push(p),p.startsWith("--- a/")&&u==="/dev/null"&&(u=p.slice(6)),p==="+++ /dev/null")){const y=s.find(g=>g.startsWith("--- a/"));y&&(u=y.slice(6))}return f(),a}function M_(i,a){const r=new Set(a);return ja(i).filter(s=>r.has(s.path)).map(s=>s.patch).join(`
162
+ `)}function D_(i){return L_(i)}function L_(i,a){const s=new Map;for(const{path:u,patch:f}of ja(i)){const p=new Map;let y=0,g=!1;const m=f.split(`
163
+ `);for(let b=0;b<m.length;b++){const v=m[b],S=v.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(S){y=Number(S[2]),g=!0;continue}g&&(v===""&&b===m.length-1||v.startsWith("\\")||(v.startsWith("+")||v.startsWith(" ")||v==="")&&(p.set(y,v===""?"":v.slice(1)),y++))}s.set(u,p)}return s}function z_(i){const a=new Map;for(const[r,s]of D_(i))a.set(r,new Set(s.keys()));return a}function j_(i,a){const r=new Set(a.flatMap(s=>s.files));return ja(i).map(s=>s.path).filter(s=>!r.has(s))}function U_(i){return new Map(ja(i).map(a=>[a.path,a.patch.split(`
164
+ `).length]))}function B_(i){const a=i.split(`
165
+ `),r=a.findIndex(p=>p.startsWith("@@")),s=r<0?[]:a.slice(r).filter(p=>/^[+\- ]/.test(p)),u=(s.length>0?s:a).join(`
166
+ `);let f=2166136261;for(let p=0;p<u.length;p++)f^=u.charCodeAt(p),f=Math.imul(f,16777619);return(f>>>0).toString(16).padStart(8,"0")}const Kb={blocker:"🚨",minor:"⚠️",nit:"🎨"};function fg(i,a){return a?`${Kb[a]} **${a}** — ${i}`:i}function Zb(i,a,r){const s=`${a}/${r}`.toLowerCase();for(const[u,f]of Object.entries(i.autoReviewRepos))if(u.toLowerCase()===s)return f;return i.autoReview}const hg=["inbox","awaiting","drafted"],Cd=["requests","settled","sent","archived"],zu={inbox:{label:"inbox",title:"Everything still waiting on you — drafted reviews and PRs the poll found but nobody has read."},awaiting:{label:"awaiting",title:"Found by the inbox poll, not drafted yet — or a run is in flight right now."},drafted:{label:"drafted",title:"A draft is written and waiting for you to read it."},requests:{label:"open requests",title:"GitHub still lists you as a requested reviewer on these. You settled or archived them here without submitting a review, so they also appear under whichever tab you filed them in."},settled:{label:"settled",title:"You marked these reviewed or skipped, or handed them to somebody else. No review of yours was sent to GitHub."},sent:{label:"sent",title:"Reviews that reached GitHub. Kept here as a record."},archived:{label:"archived",title:"PRs that have since been merged or closed."}};function pg(i){return i.status==="awaiting"||i.status==="running"?"awaiting":i.status==="sent"?"sent":"drafted"}const Gs=i=>!!i.pr.state&&i.pr.state!=="OPEN";function Md(i){return i.status==="awaiting"?i.pr.updatedAt??i.updatedAt:i.updatedAt}function Il(i){return[...i].sort((a,r)=>Md(r).localeCompare(Md(a)))}const Xb=["sent","reviewed","skipped"],tl=i=>i.own===!0;function Vb(i){return[...i.filter(a=>!tl(a)),...i.filter(tl)]}const I_=(i,a)=>tl(i[a])&&(a===0||!tl(i[a-1]));function $s(i){return Vb(Il(i.filter(a=>!Gs(a)&&!Xb.includes(a.status))))}function H_(i,a,r){return $s(i).filter(s=>s.key===a||!r.has(s.key))}function q_(i,a){if(!(a!=null&&a.enabled)||a.awaiting.length===0)return[];const r=new Set($s(i).map(u=>u.id)),s=new Set(a.awaiting.map(u=>u.id));return Il(i.filter(u=>s.has(u.id)&&!r.has(u.id)))}const G_=(i,a)=>a.some(r=>r.id===i.id);function $_(i,a){const r=i.filter(u=>!Gs(u)),s=Vb(Il(r.filter(u=>!Xb.includes(u.status))));return{inbox:s,awaiting:s.filter(u=>pg(u)==="awaiting"),drafted:s.filter(u=>pg(u)==="drafted"),requests:q_(i,a),settled:Il(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:Il(r.filter(u=>u.status==="sent")),archived:Il(i.filter(Gs))}}function Y_(i,a){return Cd.includes(i)&&a[i].length===0?"inbox":i}function Qb(i){var a,r;return i.reason==="own-review"?((a=i.review)==null?void 0:a.at)??i.at:i.reason==="own-reply"?((r=i.reply)==null?void 0:r.at)??i.at:i.at}const ho={"own-review":{tag:"reviewed on GitHub",meta:i=>`you reviewed this on GitHub on ${i}`,reasoning:"GitHub stopped asking you for a review and already had one of yours, so this draft was filed rather than left in the inbox. It was never sent — open it to read or send it.",requested:"You submitted a review on GitHub, outside cerber, so this draft was filed."},"own-reply":{tag:"replied on GitHub",meta:i=>`you replied on GitHub on ${i}`,reasoning:"You answered in the PR conversation and nobody has answered back, so the draft was filed rather than left in the inbox. GitHub does not count a comment as a review, but whoever opened the PR is the one holding it. Nothing was sent — open it to read or send it.",requested:"You commented on the PR and nobody answered, so this draft was filed."},"request-withdrawn":{tag:"request withdrawn",meta:i=>`nobody was asking for this any more on ${i}`,reasoning:"Whoever asked for this review took the request back, and you had said nothing on the PR, so the draft was filed rather than left in the inbox. It is still a review — open it to read or send it.",requested:"The review request had gone away when this draft was filed."}};function F_(i){var a;return Gs(i)?((a=i.pr.state)==null?void 0:a.toLowerCase())??null:i.handoff?`handed to @${i.handoff.to}`:i.filed?ho[i.filed.reason].tag:i.status==="reviewed"||i.status==="skipped"?i.status:null}function P_(i,a){var r;return a!=null&&a.enabled?((r=a.awaiting.find(s=>s.id===i.id))==null?void 0:r.reply)??"unknown":"unknown"}const K_={none:{label:"you haven't replied",title:"GitHub still lists you as a requested reviewer and you have said nothing on the PR — no review, no comment. Whoever opened it is waiting on you."},you:{label:"waiting on them",title:"You had the last word in the conversation but never submitted a review, so GitHub still lists you as a requested reviewer. Nothing is blocked on you until they answer."},them:{label:"they replied last",title:"You commented and someone has answered since, so the conversation is back with you — and GitHub still lists you as a requested reviewer, because a comment is not a review."},unknown:{label:"unanswered on GitHub",title:"You have never submitted a review on GitHub for this PR, so it still lists you as a requested reviewer. Cerber could not read the conversation, so it can't say whether you replied there."}},Z_=i=>K_[i];function X_(i){const a=tf[i.event]??i.event,r=new Date(i.at).toLocaleDateString();return{label:i.auto?"auto-sent a review":"you replied with a review",title:`${i.auto?"The daemon auto-sent this review":"You sent this review"} to GitHub on ${r} as ${a}. The last inbox poll still listed a review request for you — a request can lag a send, and GitHub holds some open even after one.`}}function V_(i){const a=ho[i.reason],r=new Date(Qb(i)).toLocaleDateString();return{label:a.tag,title:`${a.requested} That was ${r}. GitHub lists a review request for you now — most likely the author has asked for another look since. Re-review it to draft against the current head.`}}function Q_(i){const a=new Date(i.at).toLocaleDateString();return{label:`handed to @${i.to}`,title:i.withdrewYours?`You handed this to @${i.to} on ${a} and cerber took your own review request off the PR. GitHub still lists one for you — most likely the last inbox poll ran before the swap, or somebody has asked you again since.`:`You handed this to @${i.to} on ${a}, but cerber could not take your own review request off the PR — so GitHub is asking both of you. Remove yourself on GitHub if that is not what you wanted.`}}const W_=(i,a)=>i.handoff?Q_(i.handoff):i.sent?X_(i.sent):i.filed?V_(i.filed):Z_(a);function J_(i){const a=i.length,r=a===1?"1 review request":`${a} review requests`,s=i.some(Gs)?"settled or archived":"settled";return`Nothing new in the inbox — but GitHub still has ${r} open on you. You ${s} ${a===1?"it":"them"} here without submitting a review, so ${a===1?"it is":"they are"} under open requests, tagged with whose move it is.`}function Wb(i,a=Date.now()){const r=Math.max(0,Math.round((a-new Date(i).getTime())/1e3));return r<45?"now":r<3600?`${Math.round(r/60)}m`:r<86400?`${Math.round(r/3600)}h`:`${Math.round(r/86400)}d`}const e0={approve:"approve",comment:"comment",request_changes:"changes"},tf={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function t0(i){return i.status==="running"?{label:"reviewing…",tone:"running"}:i.status==="awaiting"?{label:"review now",tone:"awaiting"}:i.status==="failed"?{label:"run failed",tone:"failed"}:i.sent?{label:`sent · ${tf[i.sent.event]??i.sent.event}`,tone:"sent"}:i.verdict?{label:`${i.verdict.recommendation.replace("_"," ")} ${i.verdict.confidence}%`,tone:e0[i.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function n0(i){return i.status==="running"||i.status==="awaiting"||i.status==="failed"||!i.verdict&&!i.sent?"—":String(i.commentCount)}function ju(i){return i.trusted?"ran the code":i.withSource?"read the full source":"read the diff only"}function a0(i){if(i.commentCount===0)return"no comments drafted";const a=[`${i.commentCount} comment${i.commentCount===1?"":"s"} drafted`];return i.driftedCount&&a.push(`${i.driftedCount} off-diff`),i.gradedCount&&a.push(i.blockerCount?`${i.blockerCount} blocker${i.blockerCount===1?"":"s"}`:"no blockers"),a.join(", ")}function i0(i,a){const r=Object.values(a).filter(s=>s!==i).length;return r===0?"":` · ${r} repo${r===1?"":"s"} ${i?"on click":"auto"}`}function l0(i,a,r=Date.now()){var u,f;if(i.status==="running")return{reasoning:"Claude is reading the current head. This row updates itself when the run lands.",meta:[`started ${Wb(i.updatedAt,r)} ago`,ju(i)]};if(i.status==="awaiting"&&tl(i))return{reasoning:"Your own PR. Cerber never drafts these on its own — ask for a self-review when you want one. Send posts it as a comment: GitHub takes no approve or change request from a PR's author.",meta:["no run yet","press r to review now"]};if(i.status==="awaiting")return a!=null&&a.enabled&&a.pollEnabled&&!Zb({autoReview:a.autoReview,autoReviewRepos:a.autoReviewRepos??{}},i.pr.owner,i.pr.repo)?{reasoning:`Found by the inbox poll. ${a.autoReview?`Auto-review is off for ${i.pr.owner}/${i.pr.repo}`:"Auto-review is off"}, so it waits for you to ask for a draft.`,meta:["no run yet","press r to review now"]}:{reasoning:"Found by the inbox poll, not drafted yet — auto-review was off when it arrived, or it is still queued behind another run.",meta:["no run yet","press r to review now"]};if(i.status==="failed")return{reasoning:i.runError??"The review run failed before it produced a draft.",meta:["press r to try again"]};if(i.sent)return{reasoning:`Sent to GitHub as ${tf[i.sent.event]??i.sent.event} on ${new Date(i.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue, though a re-review can draft against the current head.`+(i.handoff?` GitHub asks @${i.handoff.to} for it now.`:""),meta:[...i.handoff?[`you handed this to @${i.handoff.to}`]:[],i.sent.auto?"auto-sent by the daemon":"sent by you",ju(i)]};const s=[ju(i)];if(i.handoff?s.unshift(`you handed this to @${i.handoff.to} on ${new Date(i.handoff.at).toLocaleDateString()}`):i.filed?s.unshift(ho[i.filed.reason].meta(new Date(Qb(i.filed)).toLocaleDateString())):i.status==="reviewed"?s.unshift("you marked this reviewed"):i.status==="skipped"&&s.unshift("you skipped this"),i.costUsd!=null&&s.push(`≈$${i.costUsd.toFixed(2)} at API rates`),s.push(a0(i)),tl(i)?s.push("your PR — sends as a comment"):a!=null&&a.enabled&&i.status==="ready"&&((u=i.verdict)==null?void 0:u.recommendation)==="approve"&&s.push(i.verdict.confidence>=a.autoSendThreshold?`auto-send candidate at ${i.verdict.confidence}%`:`below the ${a.autoSendThreshold}% auto-send bar`),i.handoff){const p=i.commentCount>0||i.verdict!=null;return{reasoning:`GitHub asks @${i.handoff.to} for this review now${i.handoff.withdrewYours?" and no longer asks you":" — and still asks you, because your own request could not be taken off"}. `+(p?"The draft was never sent: it is still yours to read or send.":"Nothing was drafted here, and nothing was sent."),meta:s}}return i.filed?{reasoning:ho[i.filed.reason].reasoning,meta:s}:{reasoning:((f=i.verdict)==null?void 0:f.reasoning)??"This review has a draft but no verdict.",meta:s}}const s0="/favicon.svg",r0="/favicon-dot.svg",o0=i=>$s(i).some(a=>!(tl(a)&&a.status==="awaiting")),c0=i=>i?r0:s0;function u0(i){const a=c0(o0(i)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===a||r.setAttribute("href",a)}async function Ut(i,a){const r=await fetch(i,{...a,headers:a!=null&&a.body?{"Content-Type":"application/json"}:void 0});if(!r.ok){let s=`${(a==null?void 0:a.method)??"GET"} ${i}: ${r.status}`;try{const u=await r.json();u.error&&(s=u.error)}catch{}throw new Error(s)}return r.json()}const So=async()=>{const i=await Ut("/api/reviews");return u0(i),i},nf=()=>Ut("/api/daemon"),mg=i=>Ut(`/api/reviews/${encodeURIComponent(i)}`),d0=(i,a,r)=>Ut(`/api/reviews/${encodeURIComponent(i)}/viewed`,{method:"PUT",body:JSON.stringify({path:a,fingerprint:r})}),ro=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}`,{method:"PATCH",body:JSON.stringify(a)}),f0=(i,a,r)=>Ut(`/api/reviews/${encodeURIComponent(i)}/comments/${a}`,{method:"PATCH",body:JSON.stringify(r)}),h0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/comments`,{method:"POST",body:JSON.stringify(a)}),p0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/comments/${a}`,{method:"DELETE"}),m0=i=>Ut("/api/reviews",{method:"POST",body:JSON.stringify({input:i})}),g0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/refresh`,{method:"POST"}),Jb=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/rerun`+(a===void 0?"":`?source=${a?"1":"0"}`),{method:"POST"}),Dd=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/chat`,{method:"POST",body:JSON.stringify(a)}),b0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/chat/steer`,{method:"POST",body:JSON.stringify({message:a})}),y0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/chat/pending`,{method:"DELETE"}),v0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),ey=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/send-preview?event=${a}`),E0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/send`,{method:"POST",body:JSON.stringify({event:a,confirm:!0})}),_0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/raised`,{method:"POST"}),S0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/reviewers`),w0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/handoff`,{method:"POST",body:JSON.stringify({...a,confirm:!0})}),N0=i=>`/api/reviews/${encodeURIComponent(i)}/export`,x0=()=>Ut("/api/config"),Uu=(i,a=!1)=>Ut("/api/config/trust",{method:"POST",body:JSON.stringify({rule:i,remove:a})}),T0=(i,a)=>Ut("/api/config/auto-review-repo",{method:"POST",body:JSON.stringify({repo:i,on:a})}),no=i=>Ut("/api/config/daemon",{method:"POST",body:JSON.stringify(i)}),ty="cerber.handoff.recent",ny=5,A0=/^[A-Za-z0-9](?:[A-Za-z0-9_-]{0,37}[A-Za-z0-9])?$/,ay=i=>A0.test(i);function R0(i){try{const a=JSON.parse(i??"");return Array.isArray(a)?a.filter(r=>typeof r=="string"&&ay(r)).slice(0,ny):[]}catch{return[]}}function iy(){try{return R0(localStorage.getItem(ty))}catch{return[]}}function k0(i,a){const r=i.filter(s=>s.toLowerCase()!==a.toLowerCase());return[a,...r].slice(0,ny)}function O0(i){const a=k0(iy(),i);try{localStorage.setItem(ty,JSON.stringify(a))}catch{}return a}const Ld=i=>i.trim().replace(/^@/,"");function C0(i,a){const r=new Set,s=[];for(const u of[...a,...i]){const f=u.toLowerCase();r.has(f)||(r.add(f),s.push({login:u,recent:a.some(p=>p.toLowerCase()===f)}))}return s}function M0(i,a){const r=Ld(a).toLowerCase();if(!r)return i;const s=i.filter(p=>p.login.toLowerCase().includes(r)),u=p=>p.login.toLowerCase()===r,f=p=>p.login.toLowerCase().startsWith(r);return[...s.filter(u),...s.filter(p=>!u(p)&&f(p)),...s.filter(p=>!f(p))]}function Bu(i){return i.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function zd(i){return i.nodeName.toLowerCase()}function gg(i){const a=[],r=(s,u)=>{for(let f=s.firstChild;f;f=f.nextSibling)f.nodeType===3&&f.nodeValue!==null?u+=f.nodeValue.length:f.nodeType===1&&(a.push({event:"start",offset:u,node:f}),u=r(f,u),zd(f).match(/br|hr|img|input/)||a.push({event:"stop",offset:u,node:f}));return u};return r(i,0),a}function D0(i,a,r){let s=0,u="";const f=[];function p(v){return v!==null&&(v==null?void 0:v.attributes)!==void 0}function y(){return!i.length||!a.length?i.length?i:a:i[0].offset!==a[0].offset?i[0].offset<a[0].offset?i:a:a[0].event==="start"?i:a}function g(v){if(!p(v))throw new Error("Node is not an Element");u+=`<${zd(v)} ${Array().map.call(v.attributes,S=>`${S.nodeName}="${Bu(S.value).replace(/"/g,"&quot;")}"`).join(" ")}>`}function m(v){u+="</"+zd(v)+">"}function b(v){(v.event==="start"?g:m)(v.node)}for(;i.length||a.length;){let v=y();if(u+=Bu(r.substring(s,v[0].offset)),s=v[0].offset,v===i){f.reverse().forEach(m);do b(v.splice(0,1)[0]),v=y();while(v===i&&v.length&&v[0].offset===s);f.reverse().forEach(g)}else v[0].event==="start"?f.push(v[0].node):f.pop(),b(v.splice(0,1)[0])}return u+Bu(r.substr(s))}const L0={"1c":"1c",abnf:"abnf",accesslog:"accesslog",as:"actionscript",adb:"ada",ada:"ada",ads:"ada",angelscript:"angelscript",apache:"apache",applescript:"applescript",scpt:"applescript",arcade:"arcade",cpp:"cpp",hpp:"cpp",arduino:"arduino",ino:"arduino",armasm:"armasm",arm:"armasm",xml:"xml",html:"xml",xhtml:"xml",rss:"xml",atom:"xml",xjb:"xml",xsd:"xml",xsl:"xml",plist:"xml",svg:"xml",asciidoc:"asciidoc",adoc:"asciidoc",asc:"asciidoc",aspectj:"aspectj",ahk:"autohotkey",ahkl:"autohotkey",au3:"autoit",avrasm:"avrasm",awk:"awk",axapta:"axapta","x++":"axapta",bash:"bash",sh:"bash",zsh:"bash",b:"basic",bnf:"bnf",bf:"brainfuck",c:"c",h:"c",cats:"c",idc:"c",cal:"cal",capnproto:"capnproto",capnp:"capnproto",ceylon:"ceylon",clean:"clean",clj:"clojure",boot:"clojure",cl2:"clojure",cljc:"clojure",cljs:"clojure","cljs.hl":"clojure",cljscm:"clojure",cljx:"clojure",hic:"clojure","clojure-repl":"clojure-repl",cmake:"cmake","cmake.in":"cmake",coffee:"coffeescript",_coffee:"coffeescript",cake:"coffeescript",cjsx:"coffeescript",iced:"coffeescript",cson:"coffeescript",coq:"coq",cos:"cos",cls:"cos",crmsh:"crmsh",crm:"crmsh",pcmk:"crmsh",cr:"crystal",cs:"csharp",csx:"csharp",csp:"csp",css:"css",d:"d",di:"d",md:"markdown",markdown:"markdown",mdown:"markdown",mdwn:"markdown",mkd:"markdown",mkdn:"markdown",mkdown:"markdown",ronn:"markdown",workbook:"markdown",dart:"dart",dpr:"delphi",dfm:"delphi",pas:"delphi",pascal:"delphi",diff:"diff",patch:"diff",django:"django",jinja:"django",dns:"dns",zone:"dns",bind:"dns",dockerfile:"dockerfile",docker:"dockerfile",dos:"dos",bat:"dos",cmd:"dos",dsconfig:"dsconfig",dts:"dts",dust:"dust",dst:"dust",ebnf:"ebnf",ex:"elixir",exs:"elixir",elm:"elm",rb:"ruby",builder:"ruby",eye:"ruby",gemspec:"ruby",god:"ruby",jbuilder:"ruby",mspec:"ruby",pluginspec:"ruby",podspec:"ruby",rabl:"ruby",rake:"ruby",rbuild:"ruby",rbw:"ruby",rbx:"ruby",ru:"ruby",ruby:"ruby",spec:"ruby",thor:"ruby",watchr:"ruby",erb:"erb","erlang-repl":"erlang-repl",erl:"erlang","app.src":"erlang",escript:"erlang",hrl:"erlang",xrl:"erlang",yrl:"erlang",excel:"excel",xls:"excel",xlsx:"excel",fix:"fix",flix:"flix",f90:"fortran",f:"fortran",f03:"fortran",f08:"fortran",f77:"fortran",f95:"fortran",for:"fortran",fpp:"fortran",fs:"fsharp",fsx:"fsharp",gams:"gams",gms:"gams",gauss:"gauss",gss:"gauss",gcode:"gcode",nc:"gcode",gherkin:"gherkin",glsl:"glsl",fp:"glsl",frag:"glsl",frg:"glsl",fsh:"glsl",fshader:"glsl",geo:"glsl",geom:"glsl",glslv:"glsl",gshader:"glsl",shader:"glsl",tesc:"glsl",tese:"glsl",vert:"glsl",vrx:"glsl",vsh:"glsl",vshader:"glsl",gml:"gml",go:"go",bal:"go",golo:"golo",gololang:"golo",gradle:"gradle",groovy:"groovy",grt:"groovy",gtpl:"groovy",gvy:"groovy",haml:"haml","haml.deface":"haml",handlebars:"handlebars",hbs:"handlebars","html.hbs":"handlebars","html.handlebars":"handlebars",hs:"haskell",hsc:"haskell",idr:"haskell",purs:"haskell",hx:"haxe",hxsl:"haxe",hsp:"hsp",htmlbars:"htmlbars",http:"http",https:"http",hy:"hy",inform7:"inform7",i7:"inform7",ini:"ini",toml:"ini",cfg:"ini",prefs:"ini",irpf90:"irpf90",isbl:"isbl",java:"java",jsp:"java",js:"javascript",jsx:"javascript",_js:"javascript",bones:"javascript",es:"javascript",es6:"javascript",gs:"javascript",jake:"javascript",jsb:"javascript",jscad:"javascript",jsfl:"javascript",jsm:"javascript",jss:"javascript",mjs:"javascript",njs:"javascript",pac:"javascript",sjs:"javascript",ssjs:"javascript",xsjs:"javascript",xsjslib:"javascript",cfc:"javascript","jboss-cli":"jboss-cli",json:"json",avsc:"json",geojson:"json",gltf:"json","JSON-tmLanguage":"json",jsonl:"json",tfstate:"json","tfstate.backup":"json",topojson:"json",webapp:"json",webmanifest:"json",jl:"julia","julia-repl":"julia-repl",kt:"kotlin",ktm:"kotlin",kts:"kotlin",lasso:"lasso",lassoscript:"lasso",tex:"latex",ldif:"ldif",leaf:"leaf",less:"less",lisp:"lisp",factor:"lisp",livecodeserver:"livecodeserver",ls:"livescript",_ls:"livescript",llvm:"llvm",lsl:"lsl",lua:"lua",nse:"lua",p8:"lua",pd_lua:"lua",rbxs:"lua",wlua:"lua",mak:"makefile",make:"makefile",mk:"makefile",mkfile:"makefile",mathematica:"mathematica",mma:"mathematica",wl:"mathematica",matlab:"matlab",maxima:"maxima",mel:"mel",mercury:"mercury",mipsasm:"mipsasm",miz:"mizar",voc:"mizar",al:"perl",cgi:"perl",fcgi:"perl",perl:"perl",ph:"perl",plx:"perl",pl:"perl",pm:"perl",psgi:"perl",t:"perl",mojolicious:"mojolicious",monkey:"monkey",monkey2:"monkey",moonscript:"moonscript",moon:"moonscript",n1ql:"n1ql",nginxconf:"nginx",nim:"nim",nimrod:"nim",nix:"nix",nsi:"nsis",nsh:"nsis",m:"objectivec",objc:"objectivec",mm:"objectivec","obj-c":"objectivec","obj-c++":"objectivec","objective-c++":"objectivec",fun:"ocaml",sig:"ocaml",ml:"ocaml",mli:"ocaml",eliom:"ocaml",eliomi:"ocaml",ml4:"ocaml",mll:"ocaml",mly:"ocaml",openscad:"openscad",oxygene:"oxygene",parser3:"parser3",pf:"pf","pf.conf":"pf",pgsql:"pgsql",postgres:"pgsql",postgresql:"pgsql",php:"php",aw:"php",ctp:"php",inc:"php",php3:"php",php4:"php",php5:"php",phps:"php",phpt:"php","php-template":"php-template",plaintext:"plaintext",txt:"plaintext",text:"plaintext",pony:"pony",ps:"powershell",ps1:"powershell",psd1:"powershell",psm1:"powershell",pde:"processing",profile:"profile",pro:"prolog",prolog:"prolog",yap:"prolog",properties:"properties",proto:"protobuf",puppet:"puppet",pp:"puppet",purebasic:"purebasic",py:"python",bzl:"python",gyp:"python",gypi:"python",lmi:"python",py3:"python",pyde:"python",pyi:"python",pyp:"python",pyt:"python",pyw:"python",rpy:"python",tac:"python",wsgi:"python",xpy:"python","python-repl":"python-repl",pycon:"python-repl",q:"q",k:"q",kdb:"q",qml:"qml",r:"r",rd:"r",rsx:"r",reasonml:"reasonml",re:"reasonml",rib:"rib",roboconf:"roboconf",graph:"roboconf",instances:"roboconf",routeros:"routeros",rsl:"rsl",ruleslanguage:"ruleslanguage",rs:"rust","rs.in":"rust",sas:"sas",scala:"scala",kojo:"scala",sbt:"scala",sc:"scala",scm:"scheme",sch:"scheme",sld:"scheme",sls:"scheme",sps:"scheme",ss:"scheme",rkt:"scheme",scilab:"scilab",scss:"scss",shell:"shell",smali:"smali",st:"smalltalk",sml:"sml",sqf:"sqf",sql:"sql",cql:"sql",ddl:"sql",mysql:"sql",prc:"sql",tab:"sql",udf:"sql",viw:"sql",stan:"stan",stanfuncs:"stan",stata:"stata",step21:"step21",step:"step21",stp:"step21",styl:"stylus",subunit:"subunit",swift:"swift",taggerscript:"taggerscript",yml:"yaml",mir:"yaml",reek:"yaml",rviz:"yaml","sublime-syntax":"yaml",syntax:"yaml",yaml:"yaml","yaml-tmlanguage":"yaml","yml.mysql":"yaml",tap:"tap",tcl:"tcl",adp:"tcl",tm:"tcl",thrift:"thrift",tp:"tp",twig:"twig",craftcms:"twig",ts:"typescript",tsx:"typescript",vala:"vala",vbnet:"vbnet",vb:"vbnet",vbscript:"vbscript",vbs:"vbscript","vbscript-html":"vbscript-html",v:"verilog",veo:"verilog",vhdl:"vhdl",vhd:"vhdl",vhf:"vhdl",vhi:"vhdl",vho:"vhdl",vhs:"vhdl",vht:"vhdl",vhw:"vhdl",vim:"vim",x86asm:"x86asm",xl:"xl",xquery:"xquery",xpath:"xquery",xq:"xquery",zephir:"zephir",zep:"zephir"};function z0(i){var a;return(a=L0[i])!==null&&a!==void 0?a:"plaintext"}var Iu,bg;function j0(){if(bg)return Iu;bg=1;function i(k){return k instanceof Map?k.clear=k.delete=k.set=function(){throw new Error("map is read-only")}:k instanceof Set&&(k.add=k.clear=k.delete=function(){throw new Error("set is read-only")}),Object.freeze(k),Object.getOwnPropertyNames(k).forEach(te=>{const ye=k[te],ze=typeof ye;(ze==="object"||ze==="function")&&!Object.isFrozen(ye)&&i(ye)}),k}class a{constructor(te){te.data===void 0&&(te.data={}),this.data=te.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(k){return k.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(k,...te){const ye=Object.create(null);for(const ze in k)ye[ze]=k[ze];return te.forEach(function(ze){for(const Qe in ze)ye[Qe]=ze[Qe]}),ye}const u="</span>",f=k=>!!k.scope,p=(k,{prefix:te})=>{if(k.startsWith("language:"))return k.replace("language:","language-");if(k.includes(".")){const ye=k.split(".");return[`${te}${ye.shift()}`,...ye.map((ze,Qe)=>`${ze}${"_".repeat(Qe+1)}`)].join(" ")}return`${te}${k}`};class y{constructor(te,ye){this.buffer="",this.classPrefix=ye.classPrefix,te.walk(this)}addText(te){this.buffer+=r(te)}openNode(te){if(!f(te))return;const ye=p(te.scope,{prefix:this.classPrefix});this.span(ye)}closeNode(te){f(te)&&(this.buffer+=u)}value(){return this.buffer}span(te){this.buffer+=`<span class="${te}">`}}const g=(k={})=>{const te={children:[]};return Object.assign(te,k),te};class m{constructor(){this.rootNode=g(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(te){this.top.children.push(te)}openNode(te){const ye=g({scope:te});this.add(ye),this.stack.push(ye)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(te){return this.constructor._walk(te,this.rootNode)}static _walk(te,ye){return typeof ye=="string"?te.addText(ye):ye.children&&(te.openNode(ye),ye.children.forEach(ze=>this._walk(te,ze)),te.closeNode(ye)),te}static _collapse(te){typeof te!="string"&&te.children&&(te.children.every(ye=>typeof ye=="string")?te.children=[te.children.join("")]:te.children.forEach(ye=>{m._collapse(ye)}))}}class b extends m{constructor(te){super(),this.options=te}addText(te){te!==""&&this.add(te)}startScope(te){this.openNode(te)}endScope(){this.closeNode()}__addSublanguage(te,ye){const ze=te.root;ye&&(ze.scope=`language:${ye}`),this.add(ze)}toHTML(){return new y(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function v(k){return k?typeof k=="string"?k:k.source:null}function S(k){return C("(?=",k,")")}function T(k){return C("(?:",k,")*")}function _(k){return C("(?:",k,")?")}function C(...k){return k.map(ye=>v(ye)).join("")}function A(k){const te=k[k.length-1];return typeof te=="object"&&te.constructor===Object?(k.splice(k.length-1,1),te):{}}function R(...k){return"("+(A(k).capture?"":"?:")+k.map(ze=>v(ze)).join("|")+")"}function $(k){return new RegExp(k.toString()+"|").exec("").length-1}function U(k,te){const ye=k&&k.exec(te);return ye&&ye.index===0}const W=new RegExp(R(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function z(k,{joinWith:te}){let ye=0;return k.map(ze=>{ye+=1;const Qe=ye;let et=v(ze),Ae="";for(;et.length>0;){const Se=W.exec(et);if(!Se){Ae+=et;break}Ae+=et.substring(0,Se.index),et=et.substring(Se.index+Se[0].length),Se[0][0]==="\\"&&Se[1]?Ae+="\\"+String(Number(Se[1])+Qe):(Ae+=Se[0],(Se[0]==="("||/^\(\?[<']/.test(Se[0]))&&ye++)}return Ae}).map(ze=>`(${ze})`).join(te)}const ae=/\b\B/,se="[a-zA-Z]\\w*",x="[a-zA-Z_]\\w*",G="\\b\\d+(\\.\\d+)?",ee="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ue="\\b(0b[01]+)",Ee="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",j=(k={})=>{const te=/^#![ ]*\//;return k.binary&&(k.begin=C(te,/.*\b/,k.binary,/\b.*/)),s({scope:"meta",begin:te,end:/$/,relevance:0,"on:begin":(ye,ze)=>{ye.index!==0&&ze.ignoreMatch()}},k)},le={begin:"\\\\[\\s\\S]",relevance:0},fe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[le]},M={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[le]},Q={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},pe=function(k,te,ye={}){const ze=s({scope:"comment",begin:k,end:te,contains:[]},ye);ze.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Qe=R("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return ze.contains.push({begin:C(/[ ]+/,"(",Qe,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ze},we=pe("//","$"),De=pe("/\\*","\\*/"),w=pe("#","$"),L={scope:"number",begin:G,relevance:0},I={scope:"number",begin:ee,relevance:0},oe={scope:"number",begin:ue,relevance:0},me={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[le,{begin:/\[/,end:/\]/,relevance:0,contains:[le]}]},ve={scope:"title",begin:se,relevance:0},X={scope:"title",begin:x,relevance:0},be={begin:"\\.\\s*"+x,relevance:0};var Ge=Object.freeze({__proto__:null,APOS_STRING_MODE:fe,BACKSLASH_ESCAPE:le,BINARY_NUMBER_MODE:oe,BINARY_NUMBER_RE:ue,COMMENT:pe,C_BLOCK_COMMENT_MODE:De,C_LINE_COMMENT_MODE:we,C_NUMBER_MODE:I,C_NUMBER_RE:ee,END_SAME_AS_BEGIN:function(k){return Object.assign(k,{"on:begin":(te,ye)=>{ye.data._beginMatch=te[1]},"on:end":(te,ye)=>{ye.data._beginMatch!==te[1]&&ye.ignoreMatch()}})},HASH_COMMENT_MODE:w,IDENT_RE:se,MATCH_NOTHING_RE:ae,METHOD_GUARD:be,NUMBER_MODE:L,NUMBER_RE:G,PHRASAL_WORDS_MODE:Q,QUOTE_STRING_MODE:M,REGEXP_MODE:me,RE_STARTERS_RE:Ee,SHEBANG:j,TITLE_MODE:ve,UNDERSCORE_IDENT_RE:x,UNDERSCORE_TITLE_MODE:X});function $e(k,te){k.input[k.index-1]==="."&&te.ignoreMatch()}function Ce(k,te){k.className!==void 0&&(k.scope=k.className,delete k.className)}function St(k,te){te&&k.beginKeywords&&(k.begin="\\b("+k.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",k.__beforeBegin=$e,k.keywords=k.keywords||k.beginKeywords,delete k.beginKeywords,k.relevance===void 0&&(k.relevance=0))}function Ze(k,te){Array.isArray(k.illegal)&&(k.illegal=R(...k.illegal))}function In(k,te){if(k.match){if(k.begin||k.end)throw new Error("begin & end are not supported with match");k.begin=k.match,delete k.match}}function Je(k,te){k.relevance===void 0&&(k.relevance=1)}const Ln=(k,te)=>{if(!k.beforeMatch)return;if(k.starts)throw new Error("beforeMatch cannot be used with starts");const ye=Object.assign({},k);Object.keys(k).forEach(ze=>{delete k[ze]}),k.keywords=ye.keywords,k.begin=C(ye.beforeMatch,S(ye.begin)),k.starts={relevance:0,contains:[Object.assign(ye,{endsParent:!0})]},k.relevance=0,delete ye.beforeMatch},Hn=["of","and","for","in","not","or","if","then","parent","list","value"],It="keyword";function Rt(k,te,ye=It){const ze=Object.create(null);return typeof k=="string"?Qe(ye,k.split(" ")):Array.isArray(k)?Qe(ye,k):Object.keys(k).forEach(function(et){Object.assign(ze,Rt(k[et],te,et))}),ze;function Qe(et,Ae){te&&(Ae=Ae.map(Se=>Se.toLowerCase())),Ae.forEach(function(Se){const Ue=Se.split("|");ze[Ue[0]]=[et,on(Ue[0],Ue[1])]})}}function on(k,te){return te?Number(te):yn(k)?0:1}function yn(k){return Hn.includes(k.toLowerCase())}const Ft={},je=k=>{console.error(k)},Lt=(k,...te)=>{console.log(`WARN: ${k}`,...te)},vt=(k,te)=>{Ft[`${k}/${te}`]||(console.log(`Deprecated as of ${k}. ${te}`),Ft[`${k}/${te}`]=!0)},Ot=new Error;function Tn(k,te,{key:ye}){let ze=0;const Qe=k[ye],et={},Ae={};for(let Se=1;Se<=te.length;Se++)Ae[Se+ze]=Qe[Se],et[Se+ze]=!0,ze+=$(te[Se-1]);k[ye]=Ae,k[ye]._emit=et,k[ye]._multi=!0}function zn(k){if(Array.isArray(k.begin)){if(k.skip||k.excludeBegin||k.returnBegin)throw je("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ot;if(typeof k.beginScope!="object"||k.beginScope===null)throw je("beginScope must be object"),Ot;Tn(k,k.begin,{key:"beginScope"}),k.begin=z(k.begin,{joinWith:""})}}function An(k){if(Array.isArray(k.end)){if(k.skip||k.excludeEnd||k.returnEnd)throw je("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ot;if(typeof k.endScope!="object"||k.endScope===null)throw je("endScope must be object"),Ot;Tn(k,k.end,{key:"endScope"}),k.end=z(k.end,{joinWith:""})}}function jn(k){k.scope&&typeof k.scope=="object"&&k.scope!==null&&(k.beginScope=k.scope,delete k.scope)}function Rn(k){jn(k),typeof k.beginScope=="string"&&(k.beginScope={_wrap:k.beginScope}),typeof k.endScope=="string"&&(k.endScope={_wrap:k.endScope}),zn(k),An(k)}function cn(k){function te(Ae,Se){return new RegExp(v(Ae),"m"+(k.case_insensitive?"i":"")+(k.unicodeRegex?"u":"")+(Se?"g":""))}class ye{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Se,Ue){Ue.position=this.position++,this.matchIndexes[this.matchAt]=Ue,this.regexes.push([Ue,Se]),this.matchAt+=$(Se)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Se=this.regexes.map(Ue=>Ue[1]);this.matcherRe=te(z(Se,{joinWith:"|"}),!0),this.lastIndex=0}exec(Se){this.matcherRe.lastIndex=this.lastIndex;const Ue=this.matcherRe.exec(Se);if(!Ue)return null;const Ct=Ue.findIndex((qn,sa)=>sa>0&&qn!==void 0),mt=this.matchIndexes[Ct];return Ue.splice(0,Ct),Object.assign(Ue,mt)}}class ze{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Se){if(this.multiRegexes[Se])return this.multiRegexes[Se];const Ue=new ye;return this.rules.slice(Se).forEach(([Ct,mt])=>Ue.addRule(Ct,mt)),Ue.compile(),this.multiRegexes[Se]=Ue,Ue}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Se,Ue){this.rules.push([Se,Ue]),Ue.type==="begin"&&this.count++}exec(Se){const Ue=this.getMatcher(this.regexIndex);Ue.lastIndex=this.lastIndex;let Ct=Ue.exec(Se);if(this.resumingScanAtSamePosition()&&!(Ct&&Ct.index===this.lastIndex)){const mt=this.getMatcher(0);mt.lastIndex=this.lastIndex+1,Ct=mt.exec(Se)}return Ct&&(this.regexIndex+=Ct.position+1,this.regexIndex===this.count&&this.considerAll()),Ct}}function Qe(Ae){const Se=new ze;return Ae.contains.forEach(Ue=>Se.addRule(Ue.begin,{rule:Ue,type:"begin"})),Ae.terminatorEnd&&Se.addRule(Ae.terminatorEnd,{type:"end"}),Ae.illegal&&Se.addRule(Ae.illegal,{type:"illegal"}),Se}function et(Ae,Se){const Ue=Ae;if(Ae.isCompiled)return Ue;[Ce,In,Rn,Ln].forEach(mt=>mt(Ae,Se)),k.compilerExtensions.forEach(mt=>mt(Ae,Se)),Ae.__beforeBegin=null,[St,Ze,Je].forEach(mt=>mt(Ae,Se)),Ae.isCompiled=!0;let Ct=null;return typeof Ae.keywords=="object"&&Ae.keywords.$pattern&&(Ae.keywords=Object.assign({},Ae.keywords),Ct=Ae.keywords.$pattern,delete Ae.keywords.$pattern),Ct=Ct||/\w+/,Ae.keywords&&(Ae.keywords=Rt(Ae.keywords,k.case_insensitive)),Ue.keywordPatternRe=te(Ct,!0),Se&&(Ae.begin||(Ae.begin=/\B|\b/),Ue.beginRe=te(Ue.begin),!Ae.end&&!Ae.endsWithParent&&(Ae.end=/\B|\b/),Ae.end&&(Ue.endRe=te(Ue.end)),Ue.terminatorEnd=v(Ue.end)||"",Ae.endsWithParent&&Se.terminatorEnd&&(Ue.terminatorEnd+=(Ae.end?"|":"")+Se.terminatorEnd)),Ae.illegal&&(Ue.illegalRe=te(Ae.illegal)),Ae.contains||(Ae.contains=[]),Ae.contains=[].concat(...Ae.contains.map(function(mt){return kn(mt==="self"?Ae:mt)})),Ae.contains.forEach(function(mt){et(mt,Ue)}),Ae.starts&&et(Ae.starts,Se),Ue.matcher=Qe(Ue),Ue}if(k.compilerExtensions||(k.compilerExtensions=[]),k.contains&&k.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return k.classNameAliases=s(k.classNameAliases||{}),et(k)}function Ht(k){return k?k.endsWithParent||Ht(k.starts):!1}function kn(k){return k.variants&&!k.cachedVariants&&(k.cachedVariants=k.variants.map(function(te){return s(k,{variants:null},te)})),k.cachedVariants?k.cachedVariants:Ht(k)?s(k,{starts:k.starts?s(k.starts):null}):Object.isFrozen(k)?s(k):k}var qt="11.12.0";class la extends Error{constructor(te,ye){super(te),this.name="HTMLInjectionError",this.html=ye}}const un=r,hn=s,qe=Symbol("nomatch"),pn=7,Pt=function(k){const te=Object.create(null),ye=Object.create(null),ze=[];let Qe=!0;const et="Could not find the language '{}', did you forget to load/include a language module?",Ae={disableAutodetect:!0,name:"Plain text",contains:[]};let Se={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function Ue(F){return Se.noHighlightRe.test(F)}function Ct(F){let ge=F.className+" ";ge+=F.parentNode?F.parentNode.className:"";const Ie=Se.languageDetectRe.exec(ge);if(Ie){const Fe=Wt(Ie[1]);return Fe||(Lt(et.replace("{}",Ie[1])),Lt("Falling back to no-highlight mode for this block.",F)),Fe?Ie[1]:"no-highlight"}return ge.split(/\s+/).find(Fe=>Ue(Fe)||Wt(Fe))}function mt(F,ge,Ie){let Fe="",dt="";typeof ge=="object"?(Fe=F,Ie=ge.ignoreIllegals,dt=ge.language):(vt("10.7.0","highlight(lang, code, ...args) has been deprecated."),vt("10.7.0",`Please use highlight(code, options) instead.
167
+ https://github.com/highlightjs/highlight.js/issues/2277`),dt=F,Fe=ge),Ie===void 0&&(Ie=!0);const gt={code:Fe,language:dt};de("before:highlight",gt);const Bt=gt.result?gt.result:qn(gt.language,gt.code,Ie);return Bt.code=gt.code,de("after:highlight",Bt),Bt}function qn(F,ge,Ie,Fe){const dt=Object.create(null);function gt(he,_e){return he.keywords[_e]}function Bt(){if(!J.keywords){B.addText(ne);return}let he=0;J.keywordPatternRe.lastIndex=0;let _e=J.keywordPatternRe.exec(ne),Me="";for(;_e;){Me+=ne.substring(he,_e.index);const Ve=Jt.case_insensitive?_e[0].toLowerCase():_e[0],We=gt(J,Ve);if(We){const[oa,Yl]=We;if(B.addText(Me),Me="",dt[Ve]=(dt[Ve]||0)+1,dt[Ve]<=pn&&(Te+=Yl),oa.startsWith("_"))Me+=_e[0];else{const Ks=Jt.classNameAliases[oa]||oa;zt(_e[0],Ks)}}else Me+=_e[0];he=J.keywordPatternRe.lastIndex,_e=J.keywordPatternRe.exec(ne)}Me+=ne.substring(he),B.addText(Me)}function Zt(){if(ne==="")return;let he=null;if(typeof J.subLanguage=="string"){if(!te[J.subLanguage]){B.addText(ne);return}he=qn(J.subLanguage,ne,!0,N[J.subLanguage]),N[J.subLanguage]=he._top}else he=Na(ne,J.subLanguage.length?J.subLanguage:null);J.relevance>0&&(Te+=he.relevance),B.__addSublanguage(he._emitter,he.language)}function ft(){J.subLanguage!=null?Zt():Bt(),ne=""}function zt(he,_e){he!==""&&(B.startScope(_e),B.addText(he),B.endScope())}function il(he,_e){let Me=1;const Ve=_e.length-1;for(;Me<=Ve;){if(!he._emit[Me]){Me++;continue}const We=Jt.classNameAliases[he[Me]]||he[Me],oa=_e[Me];We?zt(oa,We):(ne=oa,Bt(),ne=""),Me++}}function li(he,_e){return he.scope&&typeof he.scope=="string"&&B.openNode(Jt.classNameAliases[he.scope]||he.scope),he.beginScope&&(he.beginScope._wrap?(zt(ne,Jt.classNameAliases[he.beginScope._wrap]||he.beginScope._wrap),ne=""):he.beginScope._multi&&(il(he.beginScope,_e),ne="")),J=Object.create(he,{parent:{value:J}}),J}function si(he,_e,Me){let Ve=U(he.endRe,Me);if(Ve){if(he["on:end"]){const We=new a(he);he["on:end"](_e,We),We.isMatchIgnored&&(Ve=!1)}if(Ve){for(;he.endsParent&&he.parent;)he=he.parent;return he}}if(he.endsWithParent)return si(he.parent,_e,Me)}function Ba(he){return J.matcher.regexIndex===0?(ne+=he[0],1):(nt=!0,0)}function ll(he){const _e=he[0],Me=he.rule,Ve=new a(Me),We=[Me.__beforeBegin,Me["on:begin"]];for(const oa of We)if(oa&&(oa(he,Ve),Ve.isMatchIgnored))return Ba(_e);return Me.skip?ne+=_e:(Me.excludeBegin&&(ne+=_e),ft(),!Me.returnBegin&&!Me.excludeBegin&&(ne=_e)),li(Me,he),Me.returnBegin?0:_e.length}function On(he){const _e=he[0],Me=ge.substring(he.index),Ve=si(J,he,Me);if(!Ve)return qe;const We=J;J.endScope&&J.endScope._wrap?(ft(),zt(_e,J.endScope._wrap)):J.endScope&&J.endScope._multi?(ft(),il(J.endScope,he)):We.skip?ne+=_e:(We.returnEnd||We.excludeEnd||(ne+=_e),ft(),We.excludeEnd&&(ne=_e));do J.scope&&B.closeNode(),!J.skip&&!J.subLanguage&&(Te+=J.relevance),J=J.parent;while(J!==Ve.parent);return Ve.starts&&li(Ve.starts,he),We.returnEnd?0:_e.length}function ri(){const he=[];for(let _e=J;_e!==Jt;_e=_e.parent)_e.scope&&he.unshift(_e.scope);he.forEach(_e=>B.openNode(_e))}let Ia={};function oi(he,_e){const Me=_e&&_e[0];if(ne+=he,Me==null)return ft(),0;if(Ia.type==="begin"&&_e.type==="end"&&Ia.index===_e.index&&Me===""){if(ne+=ge.slice(_e.index,_e.index+1),!Qe){const Ve=new Error(`0 width match regex (${F})`);throw Ve.languageName=F,Ve.badRule=Ia.rule,Ve}return 1}if(Ia=_e,_e.type==="begin")return ll(_e);if(_e.type==="illegal"&&!Ie){const Ve=new Error('Illegal lexeme "'+Me+'" for mode "'+(J.scope||"<unnamed>")+'"');throw Ve.mode=J,Ve}else if(_e.type==="end"){const Ve=On(_e);if(Ve!==qe)return Ve}if(_e.type==="illegal"&&Me==="")return _e.index===ge.length||(ne+=`
168
+ `),1;if(He>1e5&&He>_e.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ne+=Me,Me.length}const Jt=Wt(F);if(!Jt)throw je(et.replace("{}",F)),new Error('Unknown language: "'+F+'"');const Ha=cn(Jt);let Aa="",J=Fe||Ha;const N={},B=new Se.__emitter(Se);ri();let ne="",Te=0,ke=0,He=0,nt=!1;try{if(Jt.__emitTokens)Jt.__emitTokens(ge,B);else{for(J.matcher.considerAll();;){He++,nt?nt=!1:J.matcher.considerAll(),J.matcher.lastIndex=ke;const he=J.matcher.exec(ge);if(!he)break;const _e=ge.substring(ke,he.index),Me=oi(_e,he);ke=he.index+Me}oi(ge.substring(ke))}return B.finalize(),Aa=B.toHTML(),{language:F,value:Aa,relevance:Te,illegal:!1,_emitter:B,_top:J}}catch(he){if(he.message&&he.message.includes("Illegal"))return{language:F,value:un(ge),illegal:!0,relevance:0,_illegalBy:{message:he.message,index:ke,context:ge.slice(ke-100,ke+100),mode:he.mode,resultSoFar:Aa},_emitter:B};if(Qe)return{language:F,value:un(ge),illegal:!1,relevance:0,errorRaised:he,_emitter:B,_top:J};throw he}}function sa(F){const ge={value:un(F),illegal:!1,relevance:0,_top:Ae,_emitter:new Se.__emitter(Se)};return ge._emitter.addText(F),ge}function Na(F,ge){ge=ge||Se.languages||Object.keys(te);const Ie=sa(F),Fe=ge.filter(Wt).filter(Xn).map(ft=>qn(ft,F,!1));Fe.unshift(Ie);const dt=Fe.sort((ft,zt)=>{if(ft.relevance!==zt.relevance)return zt.relevance-ft.relevance;if(ft.language&&zt.language){if(Wt(ft.language).supersetOf===zt.language)return 1;if(Wt(zt.language).supersetOf===ft.language)return-1}return 0}),[gt,Bt]=dt,Zt=gt;return Zt.secondBest=Bt,Zt}function dn(F,ge,Ie){const Fe=ge&&ye[ge]||Ie;F.classList.add("hljs"),F.classList.add(`language-${Fe}`)}function wt(F){let ge=null;const Ie=Ct(F);if(Ue(Ie))return;if(de("before:highlightElement",{el:F,language:Ie}),F.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",F);return}if(F.children.length>0&&(Se.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(F)),Se.throwUnescapedHTML))throw new la("One of your code blocks includes unescaped HTML.",F.innerHTML);ge=F;const Fe=ge.textContent,dt=Ie?mt(Fe,{language:Ie,ignoreIllegals:!0}):Na(Fe);F.innerHTML=dt.value,F.dataset.highlighted="yes",dn(F,Ie,dt.language),F.result={language:dt.language,re:dt.relevance,relevance:dt.relevance},dt.secondBest&&(F.secondBest={language:dt.secondBest.language,relevance:dt.secondBest.relevance}),de("after:highlightElement",{el:F,result:dt,text:Fe})}function Kt(F){Se=hn(Se,F)}const tt=()=>{ba(),vt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function vn(){ba(),vt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ua=!1;function ba(){function F(){ba()}if(document.readyState==="loading"){Ua||window.addEventListener("DOMContentLoaded",F,!1),Ua=!0;return}document.querySelectorAll(Se.cssSelector).forEach(wt)}function xa(F,ge){let Ie=null;try{Ie=ge(k)}catch(Fe){if(je("Language definition for '{}' could not be registered.".replace("{}",F)),Qe)je(Fe);else throw Fe;Ie=Ae}Ie.name||(Ie.name=F),te[F]=Ie,Ie.rawDefinition=ge.bind(null,k),Ie.aliases&&Gn(Ie.aliases,{languageName:F})}function ra(F){delete te[F];for(const ge of Object.keys(ye))ye[ge]===F&&delete ye[ge]}function Ta(){return Object.keys(te)}function Wt(F){return F=(F||"").toLowerCase(),te[F]||te[ye[F]]}function Gn(F,{languageName:ge}){typeof F=="string"&&(F=[F]),F.forEach(Ie=>{ye[Ie.toLowerCase()]=ge})}function Xn(F){const ge=Wt(F);return ge&&!ge.disableAutodetect}function Vn(F){F["before:highlightBlock"]&&!F["before:highlightElement"]&&(F["before:highlightElement"]=ge=>{F["before:highlightBlock"](Object.assign({block:ge.el},ge))}),F["after:highlightBlock"]&&!F["after:highlightElement"]&&(F["after:highlightElement"]=ge=>{F["after:highlightBlock"](Object.assign({block:ge.el},ge))})}function ut(F){Vn(F),ze.push(F)}function Y(F){const ge=ze.indexOf(F);ge!==-1&&ze.splice(ge,1)}function de(F,ge){const Ie=F;ze.forEach(function(Fe){Fe[Ie]&&Fe[Ie](ge)})}function Ne(F){return vt("10.7.0","highlightBlock will be removed entirely in v12.0"),vt("10.7.0","Please use highlightElement now."),wt(F)}Object.assign(k,{highlight:mt,highlightAuto:Na,highlightAll:ba,highlightElement:wt,highlightBlock:Ne,configure:Kt,initHighlighting:tt,initHighlightingOnLoad:vn,registerLanguage:xa,unregisterLanguage:ra,listLanguages:Ta,getLanguage:Wt,registerAliases:Gn,autoDetection:Xn,inherit:hn,addPlugin:ut,removePlugin:Y}),k.debugMode=function(){Qe=!1},k.safeMode=function(){Qe=!0},k.versionString=qt,k.regex={concat:C,lookahead:S,either:R,optional:_,anyNumberOfTimes:T};for(const F in Ge)typeof Ge[F]=="object"&&i(Ge[F]);return Object.assign(k,Ge),k},Gt=Pt({});return Gt.newInstance=()=>Pt({}),Iu=Gt,Gt.HighlightJS=Gt,Gt.default=Gt,Iu}var Hu,yg;function U0(){if(yg)return Hu;yg=1;function i(a){const r=a.regex,s=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,f={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},p={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},y=a.inherit(p,{begin:/\(/,end:/\)/}),g=a.inherit(a.APOS_STRING_MODE,{className:"string"}),m=a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),b={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[f]},{begin:/'/,end:/'/,contains:[f]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[p,m,g,y,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[p,y,m,g]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},f,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[b],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[b],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(s,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:s,relevance:0,starts:b}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(s,/>/))),contains:[{className:"name",begin:s,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Hu=i,Hu}var qu,vg;function B0(){if(vg)return qu;vg=1;function i(a){const r=a.regex,s={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[s]}]};Object.assign(s,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const f={className:"subst",begin:/\$\(/,end:/\)/,contains:[a.BACKSLASH_ESCAPE]},p=a.inherit(a.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),y={begin:/<<-?\s*(?=\w+)/,starts:{contains:[a.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},g={className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,s,f]};f.contains.push(g);const m={match:/\\"/},b={className:"string",begin:/'/,end:/'/},v={match:/\\'/},S={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},a.NUMBER_MODE,s]},T=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=a.SHEBANG({binary:`(${T.join("|")})`,relevance:10}),C={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[a.inherit(a.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},A=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],R=["true","false"],$={match:/(\/[a-z._-]+)+/},U=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],W=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],z=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],ae=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:A,literal:R,built_in:[...U,...W,"set","shopt",...z,...ae]},contains:[_,a.SHEBANG(),C,S,p,y,$,g,m,b,v,s]}}return qu=i,qu}var Gu,Eg;function I0(){if(Eg)return Gu;Eg=1;function i(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",y="("+u+"|"+r.optional(f)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g=r.concat(/\batomic_/,r.either("bool","char","schar","uchar","short","ushort","int","uint","long","ulong","llong","ullong","char16_t","char32_t","wchar_t","int_least8_t","uint_least8_t","int_least16_t","uint_least16_t","int_least32_t","uint_least32_t","int_least64_t","uint_least64_t","int_fast8_t","uint_fast8_t","int_fast16_t","uint_fast16_t","int_fast32_t","uint_fast32_t","int_fast64_t","uint_fast64_t","intptr_t","uintptr_t","size_t","ptrdiff_t","intmax_t","uintmax_t"),/\b/),m={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:g}]},v={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},S={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},T={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},v,{scope:"string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},_={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(v,{className:"string"}),s,a.C_BLOCK_COMMENT_MODE]},C=[T,_],A={className:"title",begin:r.optional(f)+a.IDENT_RE,relevance:0},R=r.optional(f)+a.IDENT_RE+"\\s*\\(",$=12,z={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},ae=[...C,m,s,a.C_BLOCK_COMMENT_MODE,S,v],se={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:z,contains:ae.concat([{begin:/\(/,end:/\)/,keywords:z,contains:ae.concat(["self"]),relevance:0}]),relevance:0},x={begin:"("+y+"[\\*&\\s]+){1,"+$+"}"+R,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:z,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:z,relevance:0},{begin:R,returnBegin:!0,contains:[a.inherit(A,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:z,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,v,S,m,{begin:/\(/,end:/\)/,keywords:z,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,v,S,m]}]},m,s,a.C_BLOCK_COMMENT_MODE,...C]};return{name:"C",aliases:["h"],keywords:z,disableAutodetect:!0,illegal:"</",contains:[].concat(se,x,ae,[...C,{begin:a.IDENT_RE+"::",keywords:z},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},a.TITLE_MODE]}]),exports:{preprocessor:_,strings:v,keywords:z}}}return Gu=i,Gu}var $u,_g;function H0(){if(_g)return $u;_g=1;function i(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",y="(?!struct)("+u+"|"+r.optional(f)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},b={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},v={className:"number",variants:[{begin:"[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},S={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},b,{scope:"string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},T={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(b,{className:"string"}),s,a.C_BLOCK_COMMENT_MODE]},_=[S,T],C={className:"title",begin:r.optional(f)+a.IDENT_RE,relevance:0},A=r.optional(f)+a.IDENT_RE+"\\s*\\(",R=12,$=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],U=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],W=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],z=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],x={type:U,keyword:$,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:W},G={className:"function.dispatch",relevance:0,keywords:{_hint:z},begin:r.concat(/\b/,`(?!${$.join("|")})`,a.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},ee=[G,..._,g,s,a.C_BLOCK_COMMENT_MODE,v,b],ue={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:x,contains:ee.concat([{begin:/\(/,end:/\)/,keywords:x,contains:ee.concat(["self"]),relevance:0}]),relevance:0},Ee={className:"function",begin:"("+y+"[\\*&\\s]+){1,"+R+"}"+A,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:x,relevance:0},{begin:A,returnBegin:!0,contains:[C],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,b,v,g,{begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,b,v,g]}]},g,s,a.C_BLOCK_COMMENT_MODE,..._]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:x,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ue,Ee,G,ee,[..._,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:x,contains:["self",g]},{begin:a.IDENT_RE+"::",keywords:x},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return $u=i,$u}var Yu,Sg;function q0(){if(Sg)return Yu;Sg=1;function i(a){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],s=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],u=["default","false","null","true"],f=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],p=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],y={keyword:f.concat(p),built_in:r,literal:u},g=a.inherit(a.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m="\\d(_*\\d)*",b="([uU][lL]?|[lL][uU]?)?",S={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+b},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+b},{begin:"(-?)(\\b"+m+"(\\.("+m+")?)?|\\."+m+")([eE][-+]?"+m+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},T={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},_={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},C=a.inherit(_,{illegal:/\n/}),A={className:"subst",begin:/\{/,end:/\}/,keywords:y},R=a.inherit(A,{illegal:/\n/}),$={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},a.BACKSLASH_ESCAPE,R]},U={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},A]},W=a.inherit(U,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},R]});A.contains=[U,$,_,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,S,a.C_BLOCK_COMMENT_MODE],R.contains=[W,$,C,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,S,a.inherit(a.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const z={variants:[T,U,$,_,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},ae={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},se=a.IDENT_RE+"(<"+a.IDENT_RE+"(\\s*,\\s*"+a.IDENT_RE+")*>)?(\\[\\])?",x={begin:"@"+a.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:y,illegal:/::/,contains:[a.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},z,S,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,ae,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,ae,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+se+"\\s+)+"+a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:y,contains:[{beginKeywords:s.join(" "),relevance:0},{begin:a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[a.TITLE_MODE,ae],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,relevance:0,contains:[z,S,a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},x]}}return Yu=i,Yu}var Fu,wg;function G0(){if(wg)return Fu;wg=1;const i=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),f=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=m.regex,v=i(m),S={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},T="and or not only",_=/@-?\w[\w]*(-\w+)*/,C="[a-zA-Z-][a-zA-Z0-9_-]*",A=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[v.BLOCK_COMMENT,S,v.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+C,relevance:0},v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+f.join("|")+")"},{begin:":(:)?("+p.join("|")+")"}]},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[v.BLOCK_COMMENT,v.HEXCOLOR,v.IMPORTANT,v.CSS_NUMBER_MODE,v.UNICODE_RANGE,...A,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...A,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},v.FUNCTION_DISPATCH]},{begin:b.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:_},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:T,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...A,v.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b"}]}}return Fu=g,Fu}var Pu,Ng;function $0(){if(Ng)return Pu;Ng=1;function i(a){const r=a.regex,s={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},u={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},f={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},p={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},y={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},g=/[A-Za-z][A-Za-z0-9+.-]*/,m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,g,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},v={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},S=a.inherit(b,{contains:[]}),T=a.inherit(v,{contains:[]});b.contains.push(T),v.contains.push(S);let _=[s,m];return[b,v,S,T].forEach($=>{$.contains=$.contains.concat(_)}),_=_.concat(b,v),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:_},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:_}]}]},s,p,u,b,v,{className:"quote",begin:"^>\\s+",contains:_,end:"$"},f,m,y,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Pu=i,Pu}var Ku,xg;function Y0(){if(xg)return Ku;xg=1;function i(a){const r=a.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:r.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+,\d+ +\+\d+ +@@/,/^@@ +-\d+ +\+\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:r.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return Ku=i,Ku}var Zu,Tg;function F0(){if(Tg)return Zu;Tg=1;function i(a){const r=a.regex,s="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",u=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),f=r.concat(u,/(::\w+)*/),y={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},g={className:"doctag",begin:"@[A-Za-z]+"},m={begin:"#<",end:">"},b=[a.COMMENT("#","$",{contains:[g]}),a.COMMENT("^=begin","^=end",{contains:[g],relevance:10}),a.COMMENT("^__END__",a.MATCH_NOTHING_RE)],v={className:"subst",begin:/#\{/,end:/\}/,keywords:y},S={className:"string",contains:[a.BACKSLASH_ESCAPE,v],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:r.concat(/<<[-~]?'?/,r.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[a.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[a.BACKSLASH_ESCAPE,v]})]}]},T="[1-9](_?[0-9])*|0",_="[0-9](_?[0-9])*",C={className:"number",relevance:0,variants:[{begin:`\\b(${T})(\\.(${_}))?([eE][+-]?(${_})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},A={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:y}]},se=[S,{variants:[{match:[/class\s+/,f,/\s+<\s+/,f]},{match:[/\b(class|module)\s+/,f]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:y},{match:[/(include|extend)\s+/,f],scope:{2:"title.class"},keywords:y},{relevance:0,match:[f,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:u,scope:"title.class"},{match:[/def/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[A]},{begin:"::"},{className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[S,{begin:s}],relevance:0},C,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:y},{begin:"("+a.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[a.BACKSLASH_ESCAPE,v],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(m,b),relevance:0}].concat(m,b);v.contains=se,A.contains=se;const ue=[{begin:/^\s*=>/,starts:{end:"$",contains:se}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:y,contains:se}}];return b.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:y,illegal:/\/\*/,contains:[a.SHEBANG({binary:"ruby"})].concat(ue).concat(b).concat(se)}}return Zu=i,Zu}var Xu,Ag;function P0(){if(Ag)return Xu;Ag=1;function i(a){const p={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:p,illegal:"</",contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{className:"string",variants:[a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\b0[bB](_?[01])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[a.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:p,illegal:/["']/}]}]}}return Xu=i,Xu}var Vu,Rg;function K0(){if(Rg)return Vu;Rg=1;function i(a){const r=a.regex,s=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[a.HASH_COMMENT_MODE,a.QUOTE_STRING_MODE,a.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:r.concat(s,r.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return Vu=i,Vu}var Qu,kg;function Z0(){if(kg)return Qu;kg=1;function i(a){const r=a.regex,s={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:a.NUMBER_RE}]},u=a.COMMENT();u.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const f={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},p={className:"literal",begin:/\bon|off|true|false|yes|no\b/},y={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},g={begin:/\[/,end:/\]/,contains:[u,p,f,y,s,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,v=/'[^']*'/,S=r.either(m,b,v),T=r.concat(S,"(\\s*\\.\\s*",S,")*",r.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[u,{className:"section",begin:/\[+/,end:/\]+/},{begin:T,className:"attr",starts:{end:/$/,contains:[u,g,p,f,y,s]}}]}}return Qu=i,Qu}var Wu,Og;function X0(){if(Og)return Wu;Og=1;var i="[0-9](_*[0-9])*",a=`\\.(${i})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${i})((${a})|\\.)?|(${a}))[eE][+-]?(${i})[fFdD]?\\b`},{begin:`\\b(${i})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${i})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${i})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(p,y,g){return g===-1?"":p.replace(y,m=>u(p,y,g-1))}function f(p){const y=p.regex,g="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",m="(?:(?:\\s*\\[\\s*])+)?",b=g+"<@@@>"+m,S="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+b+")?")+"|"+b+")",T=u("(?:\\s*<\\s*"+S+"(?:\\s*,\\s*"+S+")*\\s*>)?",/<@@@>/g,2),$={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},U={className:"meta",begin:"@"+g,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},W={className:"params",begin:/\(/,end:/\)/,keywords:$,relevance:0,contains:[p.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:$,illegal:/<\/|#/,contains:[p.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[p.BACKSLASH_ESCAPE]},p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,g],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[g,y.concat(T,m,/\s+/),g,m,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,g],className:{1:"keyword",3:"title.class"},contains:[W,p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},{begin:[g,y.concat(T,m,/\s+/),g,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:$,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:$,relevance:0,contains:[U,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,s,p.C_BLOCK_COMMENT_MODE]},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},s,U]}}return Wu=f,Wu}var Ju,Cg;function V0(){if(Cg)return Ju;Cg=1;const i="[A-Za-z$_][0-9A-Za-z$_]*",a=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],s=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],f=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],p=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(f,s,u);function g(m){const b=m.regex,v=(X,{after:be})=>{const xe="</"+X[0].slice(1);return X.input.indexOf(xe,be)!==-1},S=i,T={begin:"<>",end:"</>"},_=/<[A-Za-z0-9\\._:-]+\s*\/>/,C={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(X,be)=>{const xe=X[0].length+X.index,Ge=X.input[xe];if(Ge==="<"||Ge===","){be.ignoreMatch();return}Ge===">"&&(v(X,{after:xe})||be.ignoreMatch());let $e;const Ce=X.input.substring(xe);if($e=Ce.match(/^\s*=/)){be.ignoreMatch();return}if(($e=Ce.match(/^\s+extends\s+/))&&$e.index===0){be.ignoreMatch();return}}},A={$pattern:i,keyword:a,literal:r,built_in:y,"variable.language":p},R="[0-9](_?[0-9])*",$=`\\.(${R})`,U="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",W={className:"number",variants:[{begin:`(\\b(${U})((${$})|\\.)?|(${$}))[eE][+-]?(${R})\\b`},{begin:`\\b(${U})\\b((${$})\\b|\\.)?|(${$})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},z={className:"subst",begin:"\\$\\{",end:"\\}",keywords:A,contains:[]},ae={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,z],subLanguage:"xml"}},se={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,z],subLanguage:"css"}},x={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,z],subLanguage:"graphql"}},G={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,z]},ue={className:"comment",variants:[m.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:S+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),m.C_BLOCK_COMMENT_MODE,m.C_LINE_COMMENT_MODE]},Ee=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,ae,se,x,G,{match:/\$\d+/},W];z.contains=Ee.concat({begin:/\{/,end:/\}/,keywords:A,contains:["self"].concat(Ee)});const j=[].concat(ue,z.contains),le=j.concat([{begin:/(\s*)\(/,end:/\)/,keywords:A,contains:["self"].concat(j)}]),fe={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:A,contains:le},M={variants:[{match:[/class/,/\s+/,S,/\s+/,/extends/,/\s+/,b.concat(S,"(",b.concat(/\./,S),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,S],scope:{1:"keyword",3:"title.class"}}]},Q={relevance:0,match:b.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...s,...u]}},pe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},we={variants:[{match:[/function/,/\s+/,S,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[fe],illegal:/%/},De={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function w(X){return b.concat("(?!",X.join("|"),")")}const L={match:b.concat(/\b/,w([...f,"super","import","await"].map(X=>`${X}\\s*\\(`)),S,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},I={begin:b.concat(/\./,b.lookahead(b.concat(S,/(?![0-9A-Za-z$_(])/))),end:S,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},oe={match:[/get|set/,/\s+/,S,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},fe]},me="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",ve={match:[/const|var|let/,/\s+/,S,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(me)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[fe]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:A,exports:{PARAMS_CONTAINS:le,CLASS_REFERENCE:Q},illegal:/#(?![$_A-Za-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),pe,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,ae,se,x,G,ue,{match:/\$\d+/},W,Q,{scope:"attr",match:S+b.lookahead(":"),relevance:0},ve,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[ue,m.REGEXP_MODE,{className:"function",begin:me,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:m.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:A,contains:le}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:T.begin,end:T.end},{match:_},{begin:C.begin,"on:begin":C.isTrulyOpeningTag,end:C.end}],subLanguage:"xml",contains:[{begin:C.begin,end:C.end,skip:!0,contains:["self"]}]}]},we,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[fe,m.inherit(m.TITLE_MODE,{begin:S,className:"title.function"})]},{match:/\.\.\./,relevance:0},I,{match:"\\$"+S,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[fe]},L,De,M,oe,{match:/\$[(.]/}]}}return Ju=g,Ju}var ed,Mg;function Q0(){if(Mg)return ed;Mg=1;const a={scope:"number",match:"([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",relevance:0};function r(s){const u={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},f={match:/[{}[\],:]/,className:"punctuation",relevance:0},p=["true","false","null"],y={scope:"literal",beginKeywords:p.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:p},contains:[u,f,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,y,a,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return ed=r,ed}var td,Dg;function W0(){if(Dg)return td;Dg=1;var i="[0-9](_*[0-9])*",a=`\\.(${i})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${i})((${a})|\\.)?|(${a}))[eE][+-]?(${i})[fFdD]?\\b`},{begin:`\\b(${i})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${i})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${i})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(f){const p={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},y={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},g={className:"symbol",begin:f.UNDERSCORE_IDENT_RE+"@"},m={className:"subst",begin:/\$\{/,end:/\}/,contains:[f.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+f.UNDERSCORE_IDENT_RE},v={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,m]},{begin:"'",end:"'",illegal:/\n/,contains:[f.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[f.BACKSLASH_ESCAPE,b,m]}]};m.contains.push(v);const S={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+f.UNDERSCORE_IDENT_RE+")?"},T={className:"meta",begin:"@"+f.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[f.inherit(v,{className:"string"}),"self"]}]},_=s,C=f.COMMENT("/\\*","\\*/",{contains:[f.C_BLOCK_COMMENT_MODE]}),A={variants:[{className:"type",begin:f.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},R=A;return R.variants[1].contains=[A],A.variants[1].contains=[R],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:p,contains:[f.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),f.C_LINE_COMMENT_MODE,C,y,g,S,T,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:p,relevance:5,contains:[{begin:f.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[f.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:p,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[A,f.C_LINE_COMMENT_MODE,C],relevance:0},f.C_LINE_COMMENT_MODE,C,S,T,v,f.C_NUMBER_MODE]},C]},{begin:[/class|interface|trait/,/\s+/,f.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},f.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},S,T]},v,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
169
+ `},_]}}return td=u,td}var nd,Lg;function J0(){if(Lg)return nd;Lg=1;const i=b=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:b.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:b.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),f=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),g=f.concat(p).sort().reverse();function m(b){const v=i(b),S=g,T="and or not only",_="[\\w-]+",C="("+_+"|@\\{"+_+"\\})",A=[],R=[],$=function(j){return{className:"string",begin:"~?"+j+".*?"+j}},U=function(j,le,fe){return{className:j,begin:le,relevance:fe}},W={$pattern:/[a-z-]+/,keyword:T,attribute:u.join(" ")},z={begin:"\\(",end:"\\)",contains:R,keywords:W,relevance:0};R.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,$("'"),$('"'),v.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},v.UNICODE_RANGE,v.HEXCOLOR,z,U("variable","@@?"+_,10),U("variable","@\\{"+_+"\\}"),U("built_in","~?`[^`]*?`"),{className:"attribute",begin:_+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},v.IMPORTANT,{beginKeywords:"and not"},v.FUNCTION_DISPATCH);const ae=R.concat({begin:/\{/,end:/\}/,contains:A}),se={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(R)},x={begin:C+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:R}}]},G={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:W,returnEnd:!0,contains:R,relevance:0}},ee={className:"variable",variants:[{begin:"@"+_+"\\s*:",relevance:15},{begin:"@"+_}],starts:{end:"[;}]",returnEnd:!0,contains:ae}},ue={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:C,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,se,U("keyword","all\\b"),U("variable","@\\{"+_+"\\}"),{begin:"\\b("+s.join("|")+")\\b",className:"selector-tag"},v.CSS_NUMBER_MODE,U("selector-tag",C,0),U("selector-id","#"+C),U("selector-class","\\."+C,0),U("selector-tag","&",0),v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+f.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+p.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:ae},{begin:"!important"},v.FUNCTION_DISPATCH]},Ee={begin:_+`:(:)?(${S.join("|")})`,returnBegin:!0,contains:[ue]};return A.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,G,ee,Ee,x,ue,se,v.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:A}}return nd=m,nd}var ad,zg;function eS(){if(zg)return ad;zg=1;function i(a){const r="\\[=*\\[",s="\\]=*\\]",u={begin:r,end:s,contains:["self"]},f=[a.COMMENT("--(?!"+r+")","$"),a.COMMENT("--"+r,s,{contains:[u],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:a.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local global not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:f.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[a.inherit(a.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:f}].concat(f)},a.C_NUMBER_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"string",begin:r,end:s,contains:[u],relevance:5}])}}return ad=i,ad}var id,jg;function tS(){if(jg)return id;jg=1;function i(a){const r={className:"variable",variants:[{begin:"\\$\\("+a.UNDERSCORE_IDENT_RE+"\\)",contains:[a.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},s={className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,r]},u={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[r,s]},f={begin:"^"+a.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},p={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},y={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[a.HASH_COMMENT_MODE,r,s,u,f,p,y]}}return id=i,id}var ld,Ug;function nS(){if(Ug)return ld;Ug=1;function i(a){const r=a.regex,s=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],u=/[dualxmsipngr]{0,12}/,f={$pattern:/[\w.]+/,keyword:s.join(" ")},p={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:f},y={begin:/->\{/,end:/\}/},g={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},m={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[g]},b={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},v=[a.BACKSLASH_ESCAPE,p,m],S=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],T=(A,R,$="\\1")=>{const U=$==="\\1"?$:r.concat($,R);return r.concat(r.concat("(?:",A,")"),R,/(?:\\.|[^\\\/])*?/,U,/(?:\\.|[^\\\/])*?/,$,u)},_=(A,R,$)=>r.concat(r.concat("(?:",A,")"),R,/(?:\\.|[^\\\/])*?/,$,u),C=[m,a.HASH_COMMENT_MODE,a.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),y,{className:"string",contains:v,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[a.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[a.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},b,{begin:"(\\/\\/|"+a.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[a.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:T("s|tr|y",r.either(...S,{capture:!0}))},{begin:T("s|tr|y","\\(","\\)")},{begin:T("s|tr|y","\\[","\\]")},{begin:T("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:_("(?:m|qr)?",/\//,/\//)},{begin:_("m|qr",r.either(...S,{capture:!0}),/\1/)},{begin:_("m|qr",/\(/,/\)/)},{begin:_("m|qr",/\[/,/\]/)},{begin:_("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[a.TITLE_MODE,g]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[a.TITLE_MODE,g,b]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return p.contains=C,y.contains=C,{name:"Perl",aliases:["pl","pm"],keywords:f,contains:C}}return ld=i,ld}var sd,Bg;function aS(){if(Bg)return sd;Bg=1;function i(a){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},s=/[a-zA-Z@][a-zA-Z0-9_]*/,g={"variable.language":["this","super"],$pattern:s,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},m={$pattern:s,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:g,illegal:"</",contains:[r,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.C_NUMBER_MODE,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+m.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:m,contains:[a.UNDERSCORE_TITLE_MODE]},{begin:"\\."+a.UNDERSCORE_IDENT_RE,relevance:0}]}}return sd=i,sd}var rd,Ig;function iS(){if(Ig)return rd;Ig=1;function i(a){const r=a.regex,s=/(?![A-Za-z0-9])(?![$])/,u=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,s),f=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,s),p=r.concat(/[A-Z]+/,s),y={scope:"variable",match:"\\$+"+u},g={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},m={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},b=a.inherit(a.APOS_STRING_MODE,{illegal:null}),v=a.inherit(a.QUOTE_STRING_MODE,{illegal:null,contains:a.QUOTE_STRING_MODE.contains.concat(m)}),S={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:a.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(fe,M)=>{M.data._beginMatch=fe[1]||fe[2]},"on:end":(fe,M)=>{M.data._beginMatch!==fe[1]&&M.ignoreMatch()}},T=a.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),_=`[
170
+ ]`,C={scope:"string",variants:[v,b,S,T]},A={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},R=["false","null","true"],$=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],U=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],z={keyword:$,literal:(fe=>{const M=[];return fe.forEach(Q=>{M.push(Q),Q.toLowerCase()===Q?M.push(Q.toUpperCase()):M.push(Q.toLowerCase())}),M})(R),built_in:U},ae=fe=>fe.map(M=>M.replace(/\|\d+$/,"")),se={variants:[{match:[/new/,r.concat(_,"+"),r.concat("(?!",ae(U).join("\\b|"),"\\b)"),f],scope:{1:"keyword",4:"title.class"}}]},x=r.concat(u,"\\b(?!\\()"),G={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),x],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[f,r.concat(/::/,r.lookahead(/(?!class\b)/)),x],scope:{1:"title.class",3:"variable.constant"}},{match:[f,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[f,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},ee={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},ue={relevance:0,begin:/\(/,end:/\)/,keywords:z,contains:[ee,y,G,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,A,se]},Ee={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",ae($).join("\\b|"),"|",ae(U).join("\\b|"),"\\b)"),u,r.concat(_,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[ue]};ue.contains.push(Ee);const j=[ee,G,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,A,se],le={begin:r.concat(/#\[\s*\\?/,r.either(f,p)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:R,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:R,keyword:["new","array"]},contains:["self",...j]},...j,{scope:"meta",variants:[{match:f},{match:p}]}]};return{case_insensitive:!1,keywords:z,contains:[le,a.HASH_COMMENT_MODE,a.COMMENT("//","$"),a.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:a.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},g,{scope:"variable.language",match:/\$this\b/},y,Ee,G,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},se,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},a.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:z,contains:["self",le,y,G,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,A]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},a.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[a.inherit(a.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},a.UNDERSCORE_TITLE_MODE]},C,A]}}return rd=i,rd}var od,Hg;function lS(){if(Hg)return od;Hg=1;function i(a){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},a.inherit(a.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),a.inherit(a.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return od=i,od}var cd,qg;function sS(){if(qg)return cd;qg=1;function i(a){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return cd=i,cd}var ud,Gg;function rS(){if(Gg)return ud;Gg=1;function i(a){const r=a.regex,s=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),u=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],g={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:u,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:g,illegal:/#/},v={begin:/\{\{/,relevance:0},S={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE,m,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,m,v,b]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[a.BACKSLASH_ESCAPE,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,v,b]},a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},T="[0-9](_?[0-9])*",_=`(\\b(${T}))?\\.(${T})|\\b(${T})\\.`,C=`\\b|${u.join("|")}`,A={className:"number",relevance:0,variants:[{begin:`(\\b(${T})|(${_}))[eE][+-]?(${T})[jJ]?(?=${C})`},{begin:`(${_})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${C})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${C})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${C})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${C})`},{begin:`\\b(${T})[jJ](?=${C})`}]},R={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:g,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},$={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",m,A,S,a.HASH_COMMENT_MODE]}]};return b.contains=[S,A,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:g,illegal:/(<\/|\?)|=>/,contains:[m,A,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},S,R,a.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[$]},{variants:[{match:[/\bclass/,/\s+/,s,/\s*/,/\(\s*/,s,/\s*\)/]},{match:[/\bclass/,/\s+/,s]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[A,$,S]}]}}return ud=i,ud}var dd,$g;function oS(){if($g)return dd;$g=1;function i(a){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return dd=i,dd}var fd,Yg;function cS(){if(Yg)return fd;Yg=1;function i(a){const r=a.regex,s=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,u=r.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),f=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,p=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:s,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[a.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:r.lookahead(r.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:s},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),a.HASH_COMMENT_MODE,{scope:"string",contains:[a.BACKSLASH_ESCAPE],variants:[a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[f,u]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,u]},{scope:{1:"punctuation",2:"number"},match:[p,u]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,u]}]},{scope:{3:"operator"},match:[s,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:f},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:p},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return fd=i,fd}var hd,Fg;function uS(){if(Fg)return hd;Fg=1;function i(a){const r=a.regex,s=/(r#)?/,u=r.concat(s,a.UNDERSCORE_IDENT_RE),f=r.concat(s,a.IDENT_RE),p={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,f,r.lookahead(/\s*\(/))},y="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",g=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],m=["true","false","Some","None","Ok","Err"],b=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],v=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f16","f32","f64","f128","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:a.IDENT_RE+"!?",type:v,keyword:g,literal:m,built_in:b},illegal:"</",contains:[a.C_LINE_COMMENT_MODE,a.COMMENT("/\\*","\\*/",{contains:["self"]}),a.inherit(a.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+y},{begin:"\\b0o([0-7_]+)"+y},{begin:"\\b0x([A-Fa-f0-9_]+)"+y},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+y}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,u],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,u],scope:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,u,/\s+/,/in/],scope:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:a.IDENT_RE+"::",keywords:{keyword:"Self",built_in:b,type:v}},{scope:"punctuation",begin:"->"},p]}}return hd=i,hd}var pd,Pg;function dS(){if(Pg)return pd;Pg=1;const i=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),f=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=i(m),v=p,S=f,T="@[a-z-]+",_="and or not only",A={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,b.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},b.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+S.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+v.join("|")+")"},A,{begin:/\(/,end:/\)/,contains:[b.CSS_NUMBER_MODE]},b.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[b.BLOCK_COMMENT,A,b.HEXCOLOR,b.CSS_NUMBER_MODE,b.UNICODE_RANGE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.IMPORTANT,b.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:T,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:_,attribute:u.join(" ")},contains:[{begin:T,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},A,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return pd=g,pd}var md,Kg;function fS(){if(Kg)return md;Kg=1;function i(a){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return md=i,md}var gd,Zg;function hS(){if(Zg)return gd;Zg=1;function i(a){const r=a.regex,s=a.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},f={begin:/"/,end:/"/,contains:[{match:/""/}]},p=["true","false","unknown"],y=["double precision","large object","with timezone","without timezone"],g=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],m=["add","asc","collation","desc","final","first","last","view"],b=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],v=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],S=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],T=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],_=v,C=[...b,...m].filter(ae=>!v.includes(ae)),A={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},R={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},$={match:r.concat(/\b/,r.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function U(ae){return r.concat(/\b/,r.either(...ae.map(se=>se.replace(/\s+/,"\\s+"))),/\b/)}const W={scope:"keyword",match:U(T),relevance:0};function z(ae,{exceptions:se,when:x}={}){const G=x;return se=se||[],ae.map(ee=>ee.match(/\|\d+$/)||se.includes(ee)?ee:G(ee)?`${ee}|0`:ee)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:z(C,{when:ae=>ae.length<3}),literal:p,type:g,built_in:S},contains:[{scope:"type",match:U(y)},W,$,A,u,f,a.C_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE,s,R]}}return gd=i,gd}var bd,Xg;function pS(){if(Xg)return bd;Xg=1;function i(x){return x?typeof x=="string"?x:x.source:null}function a(x){return r("(?=",x,")")}function r(...x){return x.map(ee=>i(ee)).join("")}function s(x){const G=x[x.length-1];return typeof G=="object"&&G.constructor===Object?(x.splice(x.length-1,1),G):{}}function u(...x){return"("+(s(x).capture?"":"?:")+x.map(ue=>i(ue)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const f=x=>r(/\b/,x,/\w$/.test(x)?/\b/:/\B/),p=["Protocol","Type"].map(f),y=["init","self"].map(f),g=["Any","Self"],m=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],b=["false","nil","true"],v=["assignment","associativity","higherThan","left","lowerThan","none","right"],S=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],T=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],_=u(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),C=u(_,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),A=r(_,C,"*"),R=u(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),$=u(R,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),U=r(R,$,"*"),W=r(/[A-Z]/,$,"*"),z=["attached","autoclosure",r(/convention\(/,u("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,U,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],ae=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function se(x){const G={match:/\s+/,relevance:0},ee=x.COMMENT("/\\*","\\*/",{contains:["self"]}),ue=[x.C_LINE_COMMENT_MODE,ee],Ee={match:[/\./,u(...p,...y)],className:{2:"keyword"}},j={match:r(/\./,u(...m)),relevance:0},le=m.filter(qe=>typeof qe=="string").concat(["_|0"]),fe=m.filter(qe=>typeof qe!="string").concat(g).map(f),M={variants:[{className:"keyword",match:u(...fe,...y)}]},Q={$pattern:u(/\b\w+/,/#\w+/),keyword:le.concat(S),literal:b},pe=[Ee,j,M],we={match:r(/\./,u(...T)),relevance:0},De={className:"built_in",match:r(/\b/,u(...T),/(?=\()/)},w=[we,De],L={match:/->/,relevance:0},I={className:"operator",relevance:0,variants:[{match:A},{match:`\\.(\\.|${C})+`}]},oe=[L,I],me="([0-9]_*)+",ve="([0-9a-fA-F]_*)+",X={className:"number",relevance:0,variants:[{match:`\\b(${me})(\\.(${me}))?([eE][+-]?(${me}))?\\b`},{match:`\\b0x(${ve})(\\.(${ve}))?([pP][+-]?(${me}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},be=(qe="")=>({className:"subst",variants:[{match:r(/\\/,qe,/[0\\tnr"']/)},{match:r(/\\/,qe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),xe=(qe="")=>({className:"subst",match:r(/\\/,qe,/[\t ]*(?:[\r\n]|\r\n)/)}),Ge=(qe="")=>({className:"subst",label:"interpol",begin:r(/\\/,qe,/\(/),end:/\)/}),$e=(qe="")=>({begin:r(qe,/"""/),end:r(/"""/,qe),contains:[be(qe),xe(qe),Ge(qe)]}),Ce=(qe="")=>({begin:r(qe,/"/),end:r(/"/,qe),contains:[be(qe),Ge(qe)]}),St={className:"string",variants:[$e(),$e("#"),$e("##"),$e("###"),Ce(),Ce("#"),Ce("##"),Ce("###")]},Ze=[x.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[x.BACKSLASH_ESCAPE]}],In={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ze},Je=qe=>{const pn=r(qe,/\//),Pt=r(/\//,qe);return{begin:pn,end:Pt,contains:[...Ze,{scope:"comment",begin:`#(?!.*${Pt})`,end:/$/}]}},Ln={scope:"regexp",variants:[Je("###"),Je("##"),Je("#"),In]},Hn={match:r(/`/,U,/`/)},It={className:"variable",match:/\$\d+/},Rt={className:"variable",match:`\\$${$}+`},on=[Hn,It,Rt],yn={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:ae,contains:[...oe,X,St]}]}},Ft={scope:"keyword",match:r(/@/,u(...z),a(u(/\(/,/\s+/)))},je={scope:"meta",match:r(/@/,U)},Lt=[yn,Ft,je],vt={match:a(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,$,"+")},{className:"type",match:W,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,a(W)),relevance:0}]},Ot={begin:/</,end:/>/,keywords:Q,contains:[...ue,...pe,...Lt,L,vt]};vt.contains.push(Ot);const Tn={match:r(U,/\s*:/),keywords:"_|0",relevance:0},zn={begin:/\(/,end:/\)/,relevance:0,keywords:Q,contains:["self",Tn,...ue,Ln,...pe,...w,...oe,X,St,...on,...Lt,vt]},An={begin:/</,end:/>/,keywords:"repeat each",contains:[...ue,vt]},jn={begin:u(a(r(U,/\s*:/)),a(r(U,/\s+/,U,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:U}]},Rn={begin:/\(/,end:/\)/,keywords:Q,contains:[jn,...ue,...pe,...oe,X,St,...Lt,vt,zn],endsParent:!0,illegal:/["']/},cn={match:[/(func|macro)/,/\s+/,u(Hn.match,U,A)],className:{1:"keyword",3:"title.function"},contains:[An,Rn,G],illegal:[/\[/,/%/]},Ht={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[An,Rn,G],illegal:/\[|%/},kn={match:[/operator/,/\s+/,A],className:{1:"keyword",3:"title"}},qt={begin:[/precedencegroup/,/\s+/,W],className:{1:"keyword",3:"title"},contains:[vt],keywords:[...v,...b],end:/}/},la={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},un={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},hn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,U,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:Q,contains:[An,...pe,{begin:/:/,end:/\{/,keywords:Q,contains:[{scope:"title.class.inherited",match:W},...pe],relevance:0}]};for(const qe of St.variants){const pn=qe.contains.find(Gt=>Gt.label==="interpol");pn.keywords=Q;const Pt=[...pe,...w,...oe,X,St,...on];pn.contains=[...Pt,{begin:/\(/,end:/\)/,contains:["self",...Pt]}]}return{name:"Swift",keywords:Q,contains:[...ue,cn,Ht,la,un,hn,kn,qt,{beginKeywords:"import",end:/$/,contains:[...ue],relevance:0},Ln,...pe,...w,...oe,X,St,...on,...Lt,vt,zn]}}return bd=se,bd}var yd,Vg;function mS(){if(Vg)return yd;Vg=1;function i(a){const r="true false yes no null",s="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},f={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},p={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},y={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[a.BACKSLASH_ESCAPE,f]},g=a.inherit(y,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),T={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},_={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},C={begin:/\{/,end:/\}/,contains:[_],illegal:"\\n",relevance:0},A={begin:"\\[",end:"\\]",contains:[_],illegal:"\\n",relevance:0},R=[u,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+s},{className:"type",begin:"!<"+s+">"},{className:"type",begin:"!"+s},{className:"type",begin:"!!"+s},{className:"meta",begin:"&"+a.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+a.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},a.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},T,{className:"number",begin:a.C_NUMBER_RE+"\\b",relevance:0},C,A,p,y],$=[...R];return $.pop(),$.push(g),_.contains=$,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:R}}return yd=i,yd}var vd,Qg;function gS(){if(Qg)return vd;Qg=1;const i="[A-Za-z$_][0-9A-Za-z$_]*",a=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],s=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],f=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],p=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(f,s,u);function g(b){const v=b.regex,S=(be,{after:xe})=>{const Ge="</"+be[0].slice(1);return be.input.indexOf(Ge,xe)!==-1},T=i,_={begin:"<>",end:"</>"},C=/<[A-Za-z0-9\\._:-]+\s*\/>/,A={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(be,xe)=>{const Ge=be[0].length+be.index,$e=be.input[Ge];if($e==="<"||$e===","){xe.ignoreMatch();return}$e===">"&&(S(be,{after:Ge})||xe.ignoreMatch());let Ce;const St=be.input.substring(Ge);if(Ce=St.match(/^\s*=/)){xe.ignoreMatch();return}if((Ce=St.match(/^\s+extends\s+/))&&Ce.index===0){xe.ignoreMatch();return}}},R={$pattern:i,keyword:a,literal:r,built_in:y,"variable.language":p},$="[0-9](_?[0-9])*",U=`\\.(${$})`,W="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",z={className:"number",variants:[{begin:`(\\b(${W})((${U})|\\.)?|(${U}))[eE][+-]?(${$})\\b`},{begin:`\\b(${W})\\b((${U})\\b|\\.)?|(${U})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},ae={className:"subst",begin:"\\$\\{",end:"\\}",keywords:R,contains:[]},se={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ae],subLanguage:"xml"}},x={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ae],subLanguage:"css"}},G={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ae],subLanguage:"graphql"}},ee={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,ae]},Ee={className:"comment",variants:[b.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:T+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),b.C_BLOCK_COMMENT_MODE,b.C_LINE_COMMENT_MODE]},j=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,se,x,G,ee,{match:/\$\d+/},z];ae.contains=j.concat({begin:/\{/,end:/\}/,keywords:R,contains:["self"].concat(j)});const le=[].concat(Ee,ae.contains),fe=le.concat([{begin:/(\s*)\(/,end:/\)/,keywords:R,contains:["self"].concat(le)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:R,contains:fe},Q={variants:[{match:[/class/,/\s+/,T,/\s+/,/extends/,/\s+/,v.concat(T,"(",v.concat(/\./,T),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,T],scope:{1:"keyword",3:"title.class"}}]},pe={relevance:0,match:v.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...s,...u]}},we={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},De={variants:[{match:[/function/,/\s+/,T,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},w={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(be){return v.concat("(?!",be.join("|"),")")}const I={match:v.concat(/\b/,L([...f,"super","import","await"].map(be=>`${be}\\s*\\(`)),T,v.lookahead(/\s*\(/)),className:"title.function",relevance:0},oe={begin:v.concat(/\./,v.lookahead(v.concat(T,/(?![0-9A-Za-z$_(])/))),end:T,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},me={match:[/get|set/,/\s+/,T,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},ve="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",X={match:[/const|var|let/,/\s+/,T,/\s*/,/=\s*/,/(async\s*)?/,v.lookahead(ve)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:R,exports:{PARAMS_CONTAINS:fe,CLASS_REFERENCE:pe},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),we,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,se,x,G,ee,Ee,{match:/\$\d+/},z,pe,{scope:"attr",match:T+v.lookahead(":"),relevance:0},X,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[Ee,b.REGEXP_MODE,{className:"function",begin:ve,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:b.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:R,contains:fe}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:_.begin,end:_.end},{match:C},{begin:A.begin,"on:begin":A.isTrulyOpeningTag,end:A.end}],subLanguage:"xml",contains:[{begin:A.begin,end:A.end,skip:!0,contains:["self"]}]}]},De,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+b.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[M,b.inherit(b.TITLE_MODE,{begin:T,className:"title.function"})]},{match:/\.\.\./,relevance:0},oe,{match:"\\$"+T,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},I,w,Q,me,{match:/\$[(.]/}]}}function m(b){const v=b.regex,S=g(b),T=i,_=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],C={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},A={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:_},contains:[S.exports.CLASS_REFERENCE]},R={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},$=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],U={$pattern:i,keyword:a.concat($),literal:r,built_in:y.concat(_),"variable.language":p},W={className:"meta",begin:"@"+T},z=(G,ee,ue)=>{const Ee=G.contains.findIndex(j=>j.label===ee);if(Ee===-1)throw new Error("can not find mode to replace");G.contains.splice(Ee,1,ue)};Object.assign(S.keywords,U),S.exports.PARAMS_CONTAINS.push(W);const ae=S.contains.find(G=>G.scope==="attr"),se=Object.assign({},ae,{match:v.concat(T,v.lookahead(/\s*\?:/))});S.exports.PARAMS_CONTAINS.push([S.exports.CLASS_REFERENCE,ae,se]),S.contains=S.contains.concat([W,C,A,se]),z(S,"shebang",b.SHEBANG()),z(S,"use_strict",R);const x=S.contains.find(G=>G.label==="func.def");return x.relevance=0,Object.assign(S,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),S}return vd=m,vd}var Ed,Wg;function bS(){if(Wg)return Ed;Wg=1;function i(a){const r=a.regex,s={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},f=/\d{1,2}\/\d{1,2}\/\d{4}/,p=/\d{4}-\d{1,2}-\d{1,2}/,y=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,g=/\d{1,2}(:\d{1,2}){1,2}/,m={className:"literal",variants:[{begin:r.concat(/# */,r.either(p,f),/ *#/)},{begin:r.concat(/# */,g,/ *#/)},{begin:r.concat(/# */,y,/ *#/)},{begin:r.concat(/# */,r.either(p,f),/ +/,r.either(y,g),/ *#/)}]},b={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},v={className:"label",begin:/^\w+:/},S=a.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),T=a.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[s,u,m,b,v,S,T,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[T]}]}}return Ed=i,Ed}var _d,Jg;function yS(){if(Jg)return _d;Jg=1;function i(a){a.regex;const r=a.COMMENT(/\(;/,/;\)/);r.contains.push("self");const s=a.COMMENT(/;;/,/$/),u=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],f={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},p={className:"variable",begin:/\$[\w_]+/},y={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},g={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},m={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},b={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:u},contains:[s,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},p,y,f,a.QUOTE_STRING_MODE,m,b,g]}}return _d=i,_d}var Sd,eb;function vS(){if(eb)return Sd;eb=1;var i=j0();return i.registerLanguage("xml",U0()),i.registerLanguage("bash",B0()),i.registerLanguage("c",I0()),i.registerLanguage("cpp",H0()),i.registerLanguage("csharp",q0()),i.registerLanguage("css",G0()),i.registerLanguage("markdown",$0()),i.registerLanguage("diff",Y0()),i.registerLanguage("ruby",F0()),i.registerLanguage("go",P0()),i.registerLanguage("graphql",K0()),i.registerLanguage("ini",Z0()),i.registerLanguage("java",X0()),i.registerLanguage("javascript",V0()),i.registerLanguage("json",Q0()),i.registerLanguage("kotlin",W0()),i.registerLanguage("less",J0()),i.registerLanguage("lua",eS()),i.registerLanguage("makefile",tS()),i.registerLanguage("perl",nS()),i.registerLanguage("objectivec",aS()),i.registerLanguage("php",iS()),i.registerLanguage("php-template",lS()),i.registerLanguage("plaintext",sS()),i.registerLanguage("python",rS()),i.registerLanguage("python-repl",oS()),i.registerLanguage("r",cS()),i.registerLanguage("rust",uS()),i.registerLanguage("scss",dS()),i.registerLanguage("shell",fS()),i.registerLanguage("sql",hS()),i.registerLanguage("swift",pS()),i.registerLanguage("yaml",mS()),i.registerLanguage("typescript",gS()),i.registerLanguage("vbnet",bS()),i.registerLanguage("wasm",yS()),i.HighlightJS=i,i.default=i,Sd=i,Sd}var ES=vS();const af=Ib(ES),_S={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},SS=2e5,ly="http://www.w3.org/1999/xhtml";function wS(i){for(const a of i.querySelectorAll(".d2h-file-wrapper")){const r=NS(a.dataset.lang??"");if(r)for(const s of xS(a))tb(s.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),tb(s.filter(u=>u.kind!=="del"),()=>!0,r)}}function NS(i){const a=_S[i]??z0(i);return a==="plaintext"||!af.getLanguage(a)?null:a}function xS(i){const a=[];let r=[];for(const s of i.querySelectorAll(".d2h-diff-tbody > tr")){const u=s.querySelector("td:last-child"),f=u==null?void 0:u.querySelector(".d2h-code-line-ctn");if(!u||!f){r.length&&a.push(r),r=[];continue}const p=u.classList.contains("d2h-ins")?"ins":u.classList.contains("d2h-del")?"del":"cntx";r.push({kind:p,ctn:f})}return r.length&&a.push(r),a}function tb(i,a,r){if(i.filter(a).length===0)return;const u=i.map(y=>y.ctn.textContent??"").join(`
171
+ `);if(!u.trim()||u.length>SS)return;const f=AS(u)&&RS(r)?`/**
172
+ `:"",p=OS(af.highlight(f+u,{language:r,ignoreIllegals:!0}).value).slice(f?1:0);i.forEach((y,g)=>{const m=p[g];m===void 0||!a(y)||kS(y.ctn,m)})}const TS=/(^|\s)\*\//m,nb=/^\s*\*(\s|$)/;function AS(i){const a=i.search(TS);if(a===-1){const s=i.split(`
173
+ `).filter(u=>u.trim());return s.length>0&&s.every(u=>nb.test(u))}return i.slice(0,a).split(`
174
+ `).every(s=>nb.test(s)||!s.includes("/*"))}function RS(i){return af.highlight("/* */",{language:i,ignoreIllegals:!0}).value.startsWith('<span class="hljs-comment">')}function kS(i,a){const r=gg(i);let s=a;if(r.length){const u=document.createElementNS(ly,"div");u.innerHTML=a,s=D0(r,gg(u),i.textContent??"")}i.classList.add("hljs"),i.innerHTML=s}function OS(i){const a=document.createElementNS(ly,"div");a.innerHTML=i;const r=[],s=[];let u="";const f=p=>{if(p.nodeType===Node.TEXT_NODE){(p.textContent??"").split(`
175
+ `).forEach((m,b)=>{b>0&&(u+="</span>".repeat(s.length),r.push(u),u=s.join("")),u+=CS(m)});return}const y=`<span class="${p.className}">`;u+=y,s.push(y),p.childNodes.forEach(f),s.pop(),u+="</span>"};return a.childNodes.forEach(f),r.push(u),r}function CS(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const MS={arrowRight:["M5 12h14","m12 5 7 7-7 7"],chevronLeft:["m15 6-6 6 6 6"],chevronRight:["m9 6 6 6-6 6"],skip:["m5 4 10 8-10 8V4Z","M19 5v14"],rerun:["M21 12a9 9 0 1 1-3-6.7","M21 4v5h-5"],zap:["M13 2 4 14h7l-1 8 9-12h-7Z"],comment:["M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"],check:["M20 6 9 17l-5-5"],edit:["M12 20h9","M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"],drop:["M3 6h18","M8 6V4h8v2","M6 6l1 14h10l1-14"],plus:["M12 5v14","M5 12h14"],file:["M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8Z","M14 3v5h5"],send:["M22 2 11 13","M22 2 15 22l-4-9-9-4Z"],eye:["M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"],download:["M12 3v12","m7 12 5 5 5-5","M5 21h14"],external:["M14 4h6v6","M20 4 10 14","M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"],settings:["M20 7h-9","M14 17H5"],down:["M12 5v13","m6 12 6 6 6-6"],up:["M12 19V6","m6 12 6-6 6 6"],bell:["M18 9a6 6 0 1 0-12 0c0 5-2 6-2 6h16s-2-1-2-6","M13.7 20a2 2 0 0 1-3.4 0"],bellOff:["M8.5 3.6A6 6 0 0 1 18 9c0 1.7.2 2.9.6 3.9","M16.5 17H4s2-1 2-6a6 6 0 0 1 .7-2.8","M13.7 20a2 2 0 0 1-3.4 0","m3 3 18 18"]},DS={approve:[{cx:12,cy:12,r:9}],changes:[{cx:12,cy:12,r:9}],eye:[{cx:12,cy:12,r:3}],settings:[{cx:17,cy:17,r:3},{cx:7,cy:7,r:3}]},LS={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function Ke({name:i,size:a=13}){const r=[...MS[i]??[],...LS[i]??[]];return d.jsxs("svg",{className:"icon",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(DS[i]??[]).map((s,u)=>d.jsx("circle",{cx:s.cx,cy:s.cy,r:s.r},u)),r.map((s,u)=>d.jsx("path",{d:s},u))]})}function zS({size:i=17}){return d.jsxs("svg",{className:"logo",width:i,height:i,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[d.jsx("circle",{cx:"6.1",cy:"8.9",r:"2.5"}),d.jsx("circle",{cx:"12",cy:"6.7",r:"2.7"}),d.jsx("circle",{cx:"17.9",cy:"8.9",r:"2.5"}),d.jsx("ellipse",{cx:"12",cy:"16.6",rx:"5.4",ry:"4.3"})]})}function za({children:i}){return d.jsx("span",{className:"key",children:i})}/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function ab(i,a){(a==null||a>i.length)&&(a=i.length);for(var r=0,s=Array(a);r<a;r++)s[r]=i[r];return s}function jS(i){if(Array.isArray(i))return i}function US(i,a){var r=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(r!=null){var s,u,f,p,y=[],g=!0,m=!1;try{if(f=(r=r.call(i)).next,a!==0)for(;!(g=(s=f.call(r)).done)&&(y.push(s.value),y.length!==a);g=!0);}catch(b){m=!0,u=b}finally{try{if(!g&&r.return!=null&&(p=r.return(),Object(p)!==p))return}finally{if(m)throw u}}return y}}function BS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
176
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IS(i,a){return jS(i)||US(i,a)||HS(i,a)||BS()}function HS(i,a){if(i){if(typeof i=="string")return ab(i,a);var r={}.toString.call(i).slice(8,-1);return r==="Object"&&i.constructor&&(r=i.constructor.name),r==="Map"||r==="Set"?Array.from(i):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ab(i,a):void 0}}const sy=Object.entries,ib=Object.setPrototypeOf,qS=Object.isFrozen,GS=Object.getPrototypeOf,$S=Object.getOwnPropertyDescriptor;let Nn=Object.freeze,xn=Object.seal,Bl=Object.create,ry=typeof Reflect<"u"&&Reflect,jd=ry.apply,Ud=ry.construct;Nn||(Nn=function(a){return a});xn||(xn=function(a){return a});jd||(jd=function(a,r){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return a.apply(r,u)});Ud||(Ud=function(a){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return new a(...s)});const zl=sn(Array.prototype.forEach),YS=sn(Array.prototype.lastIndexOf),lb=sn(Array.prototype.pop),jl=sn(Array.prototype.push),FS=sn(Array.prototype.splice),zi=Array.isArray,Is=sn(String.prototype.toLowerCase),wd=sn(String.prototype.toString),sb=sn(String.prototype.match),js=sn(String.prototype.replace),rb=sn(String.prototype.indexOf),PS=sn(String.prototype.trim),KS=sn(Number.prototype.toString),ZS=sn(Boolean.prototype.toString),ob=typeof BigInt>"u"?null:sn(BigInt.prototype.toString),cb=typeof Symbol>"u"?null:sn(Symbol.prototype.toString),bn=sn(Object.prototype.hasOwnProperty),Us=sn(Object.prototype.toString),gn=sn(RegExp.prototype.test),Wi=XS(TypeError);function sn(i){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return jd(i,a,s)}}function XS(i){return function(){for(var a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];return Ud(i,r)}}function ct(i,a){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Is;if(ib&&ib(i,null),!zi(a))return i;let s=a.length;for(;s--;){let u=a[s];if(typeof u=="string"){const f=r(u);f!==u&&(qS(a)||(a[s]=f),u=f)}i[u]=!0}return i}function VS(i){for(let a=0;a<i.length;a++)bn(i,a)||(i[a]=null);return i}function Mn(i){const a=Bl(null);for(const s of sy(i)){var r=IS(s,2);const u=r[0],f=r[1];bn(i,u)&&(zi(f)?a[u]=VS(f):f&&typeof f=="object"&&f.constructor===Object?a[u]=Mn(f):a[u]=f)}return a}function QS(i){switch(typeof i){case"string":return i;case"number":return KS(i);case"boolean":return ZS(i);case"bigint":return ob?ob(i):"0";case"symbol":return cb?cb(i):"Symbol()";case"undefined":return Us(i);case"function":case"object":{if(i===null)return Us(i);const a=i,r=_a(a,"toString");if(typeof r=="function"){const s=r(a);return typeof s=="string"?s:Us(s)}return Us(i)}default:return Us(i)}}function _a(i,a){for(;i!==null;){const s=$S(i,a);if(s){if(s.get)return sn(s.get);if(typeof s.value=="function")return sn(s.value)}i=GS(i)}function r(){return null}return r}function WS(i){try{return gn(i,""),!0}catch{return!1}}const ub=Nn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Nd=Nn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),xd=Nn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),JS=Nn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Td=Nn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ew=Nn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),db=Nn(["#text"]),fb=Nn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ad=Nn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),hb=Nn(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ao=Nn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),tw=xn(/{{[\w\W]*|^[\w\W]*}}/g),nw=xn(/<%[\w\W]*|^[\w\W]*%>/g),aw=xn(/\${[\w\W]*/g),iw=xn(/^data-[\-\w.\u00B7-\uFFFF]+$/),lw=xn(/^aria-[\-\w]+$/),pb=xn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sw=xn(/^(?:\w+script|data):/i),rw=xn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ow=xn(/^html$/i),cw=xn(/^[a-z][.\w]*(-[.\w]+)+$/i),mb=xn(/<[/\w!]/g),gb=xn(/<[/\w]/g),uw=xn(/<\/no(script|embed|frames)/i),dw=xn(/\/>/i),ia={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},fw=function(){return typeof window>"u"?null:window},hw=function(a,r){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(s=r.getAttribute(u));const f="dompurify"+(s?"#"+s:"");try{return a.createPolicy(f,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},bb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Mi=function(a,r,s,u){return bn(a,r)&&zi(a[r])?ct(u.base?Mn(u.base):{},a[r],u.transform):s};function oy(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fw();const a=J=>oy(J);if(a.version="3.4.13",a.removed=[],!i||!i.document||i.document.nodeType!==ia.document||!i.Element)return a.isSupported=!1,a;let r=i.document;const s=r,u=s.currentScript;i.DocumentFragment;const f=i.HTMLTemplateElement,p=i.Node,y=i.Element,g=i.NodeFilter,m=i.NamedNodeMap;m===void 0&&(i.NamedNodeMap||i.MozNamedAttrMap),i.HTMLFormElement;const b=i.DOMParser,v=i.trustedTypes,S=y.prototype,T=_a(S,"cloneNode"),_=_a(S,"remove"),C=_a(S,"nextSibling"),A=_a(S,"childNodes"),R=_a(S,"parentNode"),$=_a(S,"shadowRoot"),U=_a(S,"attributes"),W=p&&p.prototype?_a(p.prototype,"nodeType"):null,z=p&&p.prototype?_a(p.prototype,"nodeName"):null,ae=p&&p.prototype?_a(p.prototype,"ownerDocument"):null;if(typeof f=="function"){const J=r.createElement("template");J.content&&J.content.ownerDocument&&(r=J.content.ownerDocument)}let se,x="",G,ee=!1,ue=0;const Ee=function(){if(ue>0)throw Wi('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},j=function(N){Ee(),ue++;try{return se.createHTML(N)}finally{ue--}},le=function(N){Ee(),ue++;try{return se.createScriptURL(N)}finally{ue--}},fe=function(){return ee||(G=hw(v,u),ee=!0),G},M=r,Q=M.implementation,pe=M.createNodeIterator,we=M.createDocumentFragment,De=M.getElementsByTagName,w=s.importNode;let L=bb();a.isSupported=typeof sy=="function"&&typeof R=="function"&&Q&&Q.createHTMLDocument!==void 0;const I=tw,oe=nw,me=aw,ve=iw,X=lw,be=sw,xe=rw,Ge=cw;let $e=pb,Ce=null;const St=ct({},[...ub,...Nd,...xd,...Td,...db]);let Ze=null;const In=ct({},[...fb,...Ad,...hb,...ao]);let Je=Object.seal(Bl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ln=null,Hn=null;const It=Object.seal(Bl(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Rt=!0,on=!0,yn=!1,Ft=!0,je=!1,Lt=!0,vt=!1,Ot=!1,Tn=null,zn=null,An=!1,jn=!1,Rn=!1,cn=!1,Ht=!0,kn=!1;const qt="user-content-";let la=!0,un=!1,hn={},qe=null;const pn=ct({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Pt=null;const Gt=ct({},["audio","video","img","source","image","track"]);let k=null;const te=ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ye="http://www.w3.org/1998/Math/MathML",ze="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let et=Qe,Ae=!1,Se=null;const Ue=ct({},[ye,ze,Qe],wd),Ct=Nn(["mi","mo","mn","ms","mtext"]);let mt=ct({},Ct);const qn=Nn(["annotation-xml"]);let sa=ct({},qn);const Na=ct({},["title","style","font","a","script"]);let dn=null;const wt=["application/xhtml+xml","text/html"],Kt="text/html";let tt=null,vn=null;const Ua=r.createElement("form"),ba=function(N){return N instanceof RegExp||N instanceof Function},xa=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(vn&&vn===N)return;(!N||typeof N!="object")&&(N={}),N=Mn(N),dn=wt.indexOf(N.PARSER_MEDIA_TYPE)===-1?Kt:N.PARSER_MEDIA_TYPE,tt=dn==="application/xhtml+xml"?wd:Is,Ce=Mi(N,"ALLOWED_TAGS",St,{transform:tt}),Ze=Mi(N,"ALLOWED_ATTR",In,{transform:tt}),Se=Mi(N,"ALLOWED_NAMESPACES",Ue,{transform:wd}),k=Mi(N,"ADD_URI_SAFE_ATTR",te,{transform:tt,base:te}),Pt=Mi(N,"ADD_DATA_URI_TAGS",Gt,{transform:tt,base:Gt}),qe=Mi(N,"FORBID_CONTENTS",pn,{transform:tt}),Ln=Mi(N,"FORBID_TAGS",Mn({}),{transform:tt}),Hn=Mi(N,"FORBID_ATTR",Mn({}),{transform:tt}),hn=bn(N,"USE_PROFILES")?N.USE_PROFILES&&typeof N.USE_PROFILES=="object"?Mn(N.USE_PROFILES):N.USE_PROFILES:!1,Rt=N.ALLOW_ARIA_ATTR!==!1,on=N.ALLOW_DATA_ATTR!==!1,yn=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Ft=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,je=N.SAFE_FOR_TEMPLATES||!1,Lt=N.SAFE_FOR_XML!==!1,vt=N.WHOLE_DOCUMENT||!1,jn=N.RETURN_DOM||!1,Rn=N.RETURN_DOM_FRAGMENT||!1,cn=N.RETURN_TRUSTED_TYPE||!1,An=N.FORCE_BODY||!1,Ht=N.SANITIZE_DOM!==!1,kn=N.SANITIZE_NAMED_PROPS||!1,la=N.KEEP_CONTENT!==!1,un=N.IN_PLACE||!1,$e=WS(N.ALLOWED_URI_REGEXP)?N.ALLOWED_URI_REGEXP:pb,et=typeof N.NAMESPACE=="string"?N.NAMESPACE:Qe,mt=bn(N,"MATHML_TEXT_INTEGRATION_POINTS")&&N.MATHML_TEXT_INTEGRATION_POINTS&&typeof N.MATHML_TEXT_INTEGRATION_POINTS=="object"?Mn(N.MATHML_TEXT_INTEGRATION_POINTS):ct({},Ct),sa=bn(N,"HTML_INTEGRATION_POINTS")&&N.HTML_INTEGRATION_POINTS&&typeof N.HTML_INTEGRATION_POINTS=="object"?Mn(N.HTML_INTEGRATION_POINTS):ct({},qn);const B=bn(N,"CUSTOM_ELEMENT_HANDLING")&&N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING=="object"?Mn(N.CUSTOM_ELEMENT_HANDLING):Bl(null);if(Je=Bl(null),bn(B,"tagNameCheck")&&ba(B.tagNameCheck)&&(Je.tagNameCheck=B.tagNameCheck),bn(B,"attributeNameCheck")&&ba(B.attributeNameCheck)&&(Je.attributeNameCheck=B.attributeNameCheck),bn(B,"allowCustomizedBuiltInElements")&&typeof B.allowCustomizedBuiltInElements=="boolean"&&(Je.allowCustomizedBuiltInElements=B.allowCustomizedBuiltInElements),xn(Je),je&&(on=!1),Rn&&(jn=!0),hn&&(Ce=ct({},db),Ze=Bl(null),hn.html===!0&&(ct(Ce,ub),ct(Ze,fb)),hn.svg===!0&&(ct(Ce,Nd),ct(Ze,Ad),ct(Ze,ao)),hn.svgFilters===!0&&(ct(Ce,xd),ct(Ze,Ad),ct(Ze,ao)),hn.mathMl===!0&&(ct(Ce,Td),ct(Ze,hb),ct(Ze,ao))),It.tagCheck=null,It.attributeCheck=null,bn(N,"ADD_TAGS")&&(typeof N.ADD_TAGS=="function"?It.tagCheck=N.ADD_TAGS:zi(N.ADD_TAGS)&&(Ce===St&&(Ce=Mn(Ce)),ct(Ce,N.ADD_TAGS,tt))),bn(N,"ADD_ATTR")&&(typeof N.ADD_ATTR=="function"?It.attributeCheck=N.ADD_ATTR:zi(N.ADD_ATTR)&&(Ze===In&&(Ze=Mn(Ze)),ct(Ze,N.ADD_ATTR,tt))),bn(N,"ADD_URI_SAFE_ATTR")&&zi(N.ADD_URI_SAFE_ATTR)&&ct(k,N.ADD_URI_SAFE_ATTR,tt),bn(N,"FORBID_CONTENTS")&&zi(N.FORBID_CONTENTS)&&(qe===pn&&(qe=Mn(qe)),ct(qe,N.FORBID_CONTENTS,tt)),bn(N,"ADD_FORBID_CONTENTS")&&zi(N.ADD_FORBID_CONTENTS)&&(qe===pn&&(qe=Mn(qe)),ct(qe,N.ADD_FORBID_CONTENTS,tt)),la&&(Ce["#text"]=!0),vt&&ct(Ce,["html","head","body"]),Ce.table&&(ct(Ce,["tbody"]),delete Ln.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw Wi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Wi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ne=se;se=N.TRUSTED_TYPES_POLICY;try{x=j("")}catch(Te){throw se=ne,Te}}else N.TRUSTED_TYPES_POLICY===null?(se=void 0,x=""):(se===void 0&&(se=fe()),se&&typeof x=="string"&&(x=j("")));Nn&&Nn(N),vn=N},ra=ct({},[...Nd,...xd,...JS]),Ta=ct({},[...Td,...ew]),Wt=function(N,B,ne){return B.namespaceURI===Qe?N==="svg":B.namespaceURI===ye?N==="svg"&&(ne==="annotation-xml"||mt[ne]):!!ra[N]},Gn=function(N,B,ne){return B.namespaceURI===Qe?N==="math":B.namespaceURI===ze?N==="math"&&sa[ne]:!!Ta[N]},Xn=function(N,B,ne){return B.namespaceURI===ze&&!sa[ne]||B.namespaceURI===ye&&!mt[ne]?!1:!Ta[N]&&(Na[N]||!ra[N])},Vn=function(N){let B=R(N);(!B||!B.tagName)&&(B={namespaceURI:et,tagName:"template"});const ne=Is(N.tagName),Te=Is(B.tagName);return Se[N.namespaceURI]?N.namespaceURI===ze?Wt(ne,B,Te):N.namespaceURI===ye?Gn(ne,B,Te):N.namespaceURI===Qe?Xn(ne,B,Te):!!(dn==="application/xhtml+xml"&&Se[N.namespaceURI]):!1},ut=function(N){jl(a.removed,{element:N});try{R(N).removeChild(N)}catch{if(_(N),!R(N))throw Wi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Y=function(N){F(N);const B=A(N);if(B){const Te=[];zl(B,ke=>{jl(Te,ke)}),zl(Te,ke=>{try{_(ke)}catch{}})}const ne=U(N);if(ne)for(let Te=ne.length-1;Te>=0;--Te){const ke=ne[Te],He=ke&&ke.name;if(typeof He=="string")try{N.removeAttribute(He)}catch{}}},de=function(N,B){try{jl(a.removed,{attribute:B.getAttributeNode(N),from:B})}catch{jl(a.removed,{attribute:null,from:B})}if(B.removeAttribute(N),N==="is")if(jn||Rn)try{ut(B)}catch{}else try{B.setAttribute(N,"")}catch{}},Ne=function(N){const B=U(N);if(B)for(let ne=B.length-1;ne>=0;--ne){const Te=B[ne],ke=Te&&Te.name;if(!(typeof ke!="string"||Ze[tt(ke)]))try{N.removeAttribute(ke)}catch{}}},F=function(N){const B=[N];for(;B.length>0;){const ne=B.pop();(W?W(ne):ne.nodeType)===ia.element&&Ne(ne);const ke=A(ne);if(ke)for(let He=ke.length-1;He>=0;--He)B.push(ke[He])}},ge=function(N){if(!Lt)return;const B=[N];for(;B.length>0;){const ne=B.pop(),Te=W?W(ne):ne.nodeType;if(Te===ia.processingInstruction||Te===ia.comment&&gn(gb,ne.data)){try{_(ne)}catch{}continue}if(Te===ia.element){const He=ne,nt=tt(z?z(ne):ne.nodeName);try{He.hasAttribute&&He.hasAttribute("patchsrc")&&He.removeAttribute("patchsrc"),He.hasAttribute&&He.hasAttribute("for")&&nt!=="label"&&nt!=="output"&&He.removeAttribute("for")}catch{}}const ke=A(ne);if(ke)for(let He=ke.length-1;He>=0;--He)B.push(ke[He])}},Ie=function(N){let B=null,ne=null;if(An)N="<remove></remove>"+N;else{const He=sb(N,/^[\r\n\t ]+/);ne=He&&He[0]}dn==="application/xhtml+xml"&&et===Qe&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Te=se?j(N):N;if(et===Qe)try{B=new b().parseFromString(Te,dn)}catch{}if(!B||!B.documentElement){B=Q.createDocument(et,"template",null);try{B.documentElement.innerHTML=Ae?x:Te}catch{}}const ke=B.body||B.documentElement;return N&&ne&&ke.insertBefore(r.createTextNode(ne),ke.childNodes[0]||null),et===Qe?De.call(B,vt?"html":"body")[0]:vt?B.documentElement:ke},Fe=function(N){const B=ae?ae(N):N.ownerDocument;return pe.call(B||N,N,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},dt=function(N){return N=js(N,I," "),N=js(N,oe," "),N=js(N,me," "),N},gt=function(N){var B;N.normalize();const ne=ae?ae(N):N.ownerDocument,Te=pe.call(ne||N,N,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let ke=Te.nextNode();for(;ke;)ke.data=dt(ke.data),ke=Te.nextNode();const He=(B=N.querySelectorAll)===null||B===void 0?void 0:B.call(N,"template");He&&zl(He,nt=>{Zt(nt.content)&&gt(nt.content)})},Bt=function(N){const B=z?z(N):null;return typeof B!="string"||tt(B)!=="form"?!1:typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||N.attributes!==U(N)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function"||N.nodeType!==W(N)||N.childNodes!==A(N)},Zt=function(N){if(!W||typeof N!="object"||N===null)return!1;try{return W(N)===ia.documentFragment}catch{return!1}},ft=function(N){if(!W||typeof N!="object"||N===null)return!1;try{return typeof W(N)=="number"}catch{return!1}};function zt(J,N,B){J.length!==0&&zl(J,ne=>{ne.call(a,N,B,vn)})}const il=function(N,B){return!!(Lt&&N.hasChildNodes()&&!ft(N.firstElementChild)&&gn(mb,N.textContent)&&gn(mb,N.innerHTML)||Lt&&N.namespaceURI===Qe&&B==="style"&&ft(N.firstElementChild)||N.nodeType===ia.processingInstruction||Lt&&N.nodeType===ia.comment&&gn(gb,N.data))},li=function(N,B,ne){if(!Ln[B]&&ri(B)&&(Je.tagNameCheck instanceof RegExp&&gn(Je.tagNameCheck,B)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(B)))return!1;if(la&&!qe[B]){const Te=R(N),ke=A(N);if(ke&&Te){const He=ke.length;for(let nt=He-1;nt>=0;--nt){const he=N===ne?T(ke[nt],!0):ke[nt];Te.insertBefore(he,C(N))}}}return ut(N),!0},si=function(N,B,ne,Te){return N.length===0?B:B===ne||B===Te?Mn(B):B},Ba=function(N,B){if(zt(L.beforeSanitizeElements,N,null),N!==B&&R(N)===null)return un&&F(N),!0;if(Bt(N))return ut(N),!0;const ne=tt(z?z(N):N.nodeName);if(Ce=si(L.uponSanitizeElement,Ce,St,Tn),zt(L.uponSanitizeElement,N,{tagName:ne,allowedTags:Ce}),N!==B&&R(N)===null)return un&&F(N),!0;if(il(N,ne))return ut(N),!0;if(Ln[ne]||!(It.tagCheck instanceof Function&&It.tagCheck(ne))&&!Ce[ne]){const ke=li(N,ne,B);return ke===!1&&zt(L.afterSanitizeElements,N,null),ke}if((W?W(N):N.nodeType)===ia.element&&!Vn(N)||(ne==="noscript"||ne==="noembed"||ne==="noframes")&&gn(uw,N.innerHTML))return ut(N),!0;if(je&&N.nodeType===ia.text){const ke=dt(N.textContent);N.textContent!==ke&&(jl(a.removed,{element:N.cloneNode()}),N.textContent=ke)}return zt(L.afterSanitizeElements,N,null),!1},ll=function(N,B,ne){if(Hn[B]||Lt&&B==="patchsrc"||Lt&&B==="for"&&N!=="label"&&N!=="output"||Ht&&(B==="id"||B==="name")&&(ne in r||ne in Ua))return!1;const Te=Ze[B]||It.attributeCheck instanceof Function&&It.attributeCheck(B,N);if(!(on&&gn(ve,B))){if(!(Rt&&gn(X,B))){if(Te){if(!k[B]){if(!gn($e,js(ne,xe,""))){if(!((B==="src"||B==="xlink:href"||B==="href")&&N!=="script"&&rb(ne,"data:")===0&&Pt[N])){if(!(yn&&!gn(be,js(ne,xe,"")))){if(ne)return!1}}}}}else if(!(ri(N)&&(Je.tagNameCheck instanceof RegExp&&gn(Je.tagNameCheck,N)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(N))&&(Je.attributeNameCheck instanceof RegExp&&gn(Je.attributeNameCheck,B)||Je.attributeNameCheck instanceof Function&&Je.attributeNameCheck(B,N))||B==="is"&&Je.allowCustomizedBuiltInElements&&(Je.tagNameCheck instanceof RegExp&&gn(Je.tagNameCheck,ne)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(ne))))return!1}}return!0},On=ct({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ri=function(N){return!On[Is(N)]&&gn(Ge,N)},Ia=function(N,B,ne,Te){if(se&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!ne)switch(v.getAttributeType(N,B)){case"TrustedHTML":return j(Te);case"TrustedScriptURL":return le(Te)}return Te},oi=function(N,B,ne,Te){try{ne?N.setAttributeNS(ne,B,Te):N.setAttribute(B,Te),Bt(N)?ut(N):lb(a.removed)}catch{de(B,N)}},Jt=function(N){zt(L.beforeSanitizeAttributes,N,null);const B=N.attributes;if(!B||Bt(N))return;Ze=si(L.uponSanitizeAttribute,Ze,In,zn);const ne={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ze,forceKeepAttr:void 0};let Te=B.length;const ke=tt(N.nodeName);for(;Te--;){const He=B[Te],nt=He.name,he=He.namespaceURI,_e=He.value,Me=tt(nt),Ve=_e;let We=nt==="value"?Ve:PS(Ve);if(ne.attrName=Me,ne.attrValue=We,ne.keepAttr=!0,ne.forceKeepAttr=void 0,zt(L.uponSanitizeAttribute,N,ne),We=ne.attrValue,kn&&(Me==="id"||Me==="name")&&rb(We,qt)!==0&&(de(nt,N),We=qt+We),Lt&&gn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,We)){de(nt,N);continue}if(Me==="attributename"&&sb(We,"href")){de(nt,N);continue}if(!ne.forceKeepAttr){if(!ne.keepAttr){de(nt,N);continue}if(!Ft&&gn(dw,We)){de(nt,N);continue}if(je&&(We=dt(We)),!ll(ke,Me,We)){de(nt,N);continue}We=Ia(ke,Me,he,We),We!==Ve&&oi(N,nt,he,We)}}zt(L.afterSanitizeAttributes,N,null)},Ha=function(N){let B=null;const ne=Fe(N);for(zt(L.beforeSanitizeShadowDOM,N,null);B=ne.nextNode();)if(zt(L.uponSanitizeShadowNode,B,null),Ba(B,N),Jt(B),Zt(B.content)&&Ha(B.content),(W?W(B):B.nodeType)===ia.element){const ke=$(B);Zt(ke)&&(Aa(ke),Ha(ke))}zt(L.afterSanitizeShadowDOM,N,null)},Aa=function(N){const B=[{node:N,shadow:null}];for(;B.length>0;){const ne=B.pop();if(ne.shadow){Ha(ne.shadow);continue}const Te=ne.node,He=(W?W(Te):Te.nodeType)===ia.element,nt=A(Te);if(nt)for(let he=nt.length-1;he>=0;--he)B.push({node:nt[he],shadow:null});if(He){const he=z?z(Te):null;if(typeof he=="string"&&tt(he)==="template"){const _e=Te.content;Zt(_e)&&B.push({node:_e,shadow:null})}}if(He){const he=$(Te);Zt(he)&&B.push({node:null,shadow:he},{node:he,shadow:null})}}};return a.sanitize=function(J){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=null,ne=null,Te=null,ke=null;if(Ae=!J,Ae&&(J="<!-->"),typeof J!="string"&&!ft(J)&&(J=QS(J),typeof J!="string"))throw Wi("dirty is not a string, aborting");if(!a.isSupported)return J;Ot?(Ce=Tn,Ze=zn):xa(N),(L.uponSanitizeElement.length>0||L.uponSanitizeAttribute.length>0)&&(Ce=Mn(Ce)),L.uponSanitizeAttribute.length>0&&(Ze=Mn(Ze)),a.removed=[];const He=un&&typeof J!="string"&&ft(J);if(He){ge(J);const _e=z?z(J):J.nodeName;if(typeof _e=="string"){const Me=tt(_e);if(!Ce[Me]||Ln[Me])throw Y(J),Wi("root node is forbidden and cannot be sanitized in-place")}if(Bt(J))throw Y(J),Wi("root node is clobbered and cannot be sanitized in-place");try{Aa(J)}catch(Me){throw Y(J),Me}}else if(ft(J))B=Ie("<!---->"),ne=B.ownerDocument.importNode(J,!0),ne.nodeType===ia.element&&ne.nodeName==="BODY"||ne.nodeName==="HTML"?B=ne:B.appendChild(ne),Aa(ne);else{if(!jn&&!je&&!vt&&J.indexOf("<")===-1)return se&&cn?j(J):J;if(B=Ie(J),!B)return jn?null:cn?x:""}B&&An&&ut(B.firstChild);const nt=He?J:B;try{const _e=Fe(nt);for(;Te=_e.nextNode();)Ba(Te,nt),Jt(Te),Zt(Te.content)&&Ha(Te.content)}catch(_e){throw He&&(Y(J),zl(a.removed,Me=>{Me.element&&F(Me.element)})),_e}if(He)return zl(a.removed,_e=>{_e.element&&F(_e.element)}),je&&gt(J),J;if(jn){if(je&&gt(B),Rn)for(ke=we.call(B.ownerDocument);B.firstChild;)ke.appendChild(B.firstChild);else ke=B;return(Ze.shadowroot||Ze.shadowrootmode)&&(ke=w.call(s,ke,!0)),ke}let he=vt?B.outerHTML:B.innerHTML;return vt&&Ce["!doctype"]&&B.ownerDocument&&B.ownerDocument.doctype&&B.ownerDocument.doctype.name&&gn(ow,B.ownerDocument.doctype.name)&&(he="<!DOCTYPE "+B.ownerDocument.doctype.name+`>
177
+ `+he),je&&(he=dt(he)),se&&cn?j(he):he},a.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xa(J),Ot=!0,Tn=Ce,zn=Ze},a.clearConfig=function(){vn=null,Ot=!1,Tn=null,zn=null,se=G,x=""},a.isValidAttribute=function(J,N,B){vn||xa({});const ne=tt(J),Te=tt(N);return ll(ne,Te,B)},a.addHook=function(J,N){typeof N=="function"&&bn(L,J)&&jl(L[J],N)},a.removeHook=function(J,N){if(bn(L,J)){if(N!==void 0){const B=YS(L[J],N);return B===-1?void 0:FS(L[J],B,1)[0]}return lb(L[J])}},a.removeHooks=function(J){bn(L,J)&&(L[J]=[])},a.removeAllHooks=function(){L=bb()},a}var pw=oy();function lf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var al=lf();function cy(i){al=i}var el={exec:()=>null};function Ul(i){let a=[];return r=>{let s=Math.max(0,Math.min(3,r-1)),u=a[s];return u||(u=i(s),a[s]=u),u}}function lt(i,a=""){let r=typeof i=="string"?i:i.source,s={replace:(u,f)=>{let p=typeof f=="string"?f:f.source;return p=p.replace(Dn.caret,"$1"),r=r.replace(u,p),s},getRegex:()=>new RegExp(r,a)};return s}var mw=((i="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+i)}catch{return!1}})(),Dn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ul(i=>new RegExp(`^ {0,${i}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ul(i=>new RegExp(`^ {0,${i}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ul(i=>new RegExp(`^ {0,${i}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ul(i=>new RegExp(`^ {0,${i}}#`)),htmlBeginRegex:Ul(i=>new RegExp(`^ {0,${i}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ul(i=>new RegExp(`^ {0,${i}}>`))},gw=/^(?:[ \t]*(?:\n|$))+/,bw=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,yw=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ys=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,vw=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,sf=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,uy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,dy=lt(uy).replace(/bull/g,sf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ew=lt(uy).replace(/bull/g,sf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),rf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,_w=/^[^\n]+/,of=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Sw=lt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",of).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ww=lt(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,sf).getRegex(),wo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",cf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Nw=lt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",cf).replace("tag",wo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),fy=i=>lt(rf).replace("hr",Ys).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",i).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",wo).getRegex(),xw=fy(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Tw=fy(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Aw=lt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Tw).getRegex(),uf={blockquote:Aw,code:bw,def:Sw,fences:yw,heading:vw,hr:Ys,html:Nw,lheading:dy,list:ww,newline:gw,paragraph:xw,table:el,text:_w},yb=lt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ys).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",wo).getRegex(),Rw={...uf,lheading:Ew,table:yb,paragraph:lt(rf).replace("hr",Ys).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",yb).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",wo).getRegex()},kw={...uf,html:lt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",cf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:el,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:lt(rf).replace("hr",Ys).replace("heading",` *#{1,6} *[^
178
+ ]`).replace("lheading",dy).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ow=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Cw=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,hy=/^( {2,}|\\)\n(?!\s*$)/,Mw=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ii=/[\p{P}\p{S}]/u,$l=/[\s\p{P}\p{S}]/u,Fs=/[^\s\p{P}\p{S}]/u,Dw=lt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,$l).getRegex(),Lw=/[\p{Pi}\p{Ps}"']/u,py=/(?!~)[\p{P}\p{S}]/u,zw=/(?!~)[\s\p{P}\p{S}]/u,jw=/(?:[^\s\p{P}\p{S}]|~)/u,Uw=lt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",mw?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),my=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Bw=lt(my,"u").replace(/punct/g,ii).getRegex(),Iw=lt(my,"u").replace(/punct/g,py).getRegex(),Hw=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,qw=lt(Hw,"u").replace(/openQuote/g,Lw).replace(/punct/g,ii).getRegex(),gy="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Gw=lt(gy,"gu").replace(/notPunctSpace/g,Fs).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),$w=lt(gy,"gu").replace(/notPunctSpace/g,jw).replace(/punctSpace/g,zw).replace(/punct/g,py).getRegex(),Yw="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Fw=lt(Yw,"gu").replace(/notPunctSpace/g,Fs).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),Pw=lt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Fs).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),Kw="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Zw=lt(Kw,"gu").replace(/notPunctSpace/g,Fs).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),Xw=lt(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ii).getRegex(),Vw="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Qw=lt(Vw,"gu").replace(/notPunctSpace/g,Fs).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),Ww=lt(/\\(punct)/,"gu").replace(/punct/g,ii).getRegex(),Jw=lt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),eN=lt(cf).replace("(?:-->|$)","-->").getRegex(),tN=lt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",eN).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),po=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,nN=lt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",po).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),by=lt(/^!?\[(label)\]\[(ref)\]/).replace("label",po).replace("ref",of).getRegex(),yy=lt(/^!?\[(ref)\](?:\[\])?/).replace("ref",of).getRegex(),aN=lt("reflink|nolink(?!\\()","g").replace("reflink",by).replace("nolink",yy).getRegex(),vb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,df={_backpedal:el,anyPunctuation:Ww,autolink:Jw,blockSkip:Uw,br:hy,code:Cw,del:el,delLDelim:el,delRDelim:el,emStrongLDelim:Bw,emStrongRDelimAst:Gw,emStrongRDelimUnd:Pw,escape:Ow,link:nN,nolink:yy,punctuation:Dw,reflink:by,reflinkSearch:aN,tag:tN,text:Mw,url:el},iN={...df,emStrongLDelim:qw,emStrongRDelimAst:Fw,emStrongRDelimUnd:Zw,link:lt(/^!?\[(label)\]\((.*?)\)/).replace("label",po).getRegex(),reflink:lt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",po).getRegex()},Bd={...df,emStrongRDelimAst:$w,emStrongLDelim:Iw,delLDelim:Xw,delRDelim:Qw,url:lt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",vb).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:lt(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",vb).getRegex()},lN={...Bd,br:lt(hy).replace("{2,}","*").getRegex(),text:lt(Bd.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},io={normal:uf,gfm:Rw,pedantic:kw},Bs={normal:df,gfm:Bd,breaks:lN,pedantic:iN},sN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Eb=i=>sN[i];function Da(i,a){if(a){if(Dn.escapeTest.test(i))return i.replace(Dn.escapeReplace,Eb)}else if(Dn.escapeTestNoEncode.test(i))return i.replace(Dn.escapeReplaceNoEncode,Eb);return i}function _b(i){try{i=encodeURI(i).replace(Dn.percentDecode,"%")}catch{return null}return i}function Sb(i,a){var f;let r=i.replace(Dn.findPipe,(p,y,g)=>{let m=!1,b=y;for(;--b>=0&&g[b]==="\\";)m=!m;return m?"|":" |"}),s=r.split(Dn.splitPipe),u=0;if(s[0].trim()||s.shift(),s.length>0&&!((f=s.at(-1))!=null&&f.trim())&&s.pop(),a)if(s.length>a)s.splice(a);else for(;s.length<a;)s.push("");for(;u<s.length;u++)s[u]=s[u].trim().replace(Dn.slashPipe,"|");return s}function Di(i,a,r){let s=i.length;if(s===0)return"";let u=0;for(;u<s&&i.charAt(s-u-1)===a;)u++;return i.slice(0,s-u)}function wb(i){let a=i.split(`
179
+ `),r=a.length-1;for(;r>=0&&Dn.blankLine.test(a[r]);)r--;return a.length-r<=2?i:a.slice(0,r+1).join(`
180
+ `)}function rN(i,a){if(i.indexOf(a[1])===-1)return-1;let r=0;for(let s=0;s<i.length;s++)if(i[s]==="\\")s++;else if(i[s]===a[0])r++;else if(i[s]===a[1]&&(r--,r<0))return s;return r>0?-2:-1}function oN(i,a=0){let r=a,s="";for(let u of i)if(u===" "){let f=4-r%4;s+=" ".repeat(f),r+=f}else s+=u,r++;return s}function Nb(i,a,r,s,u){let f=a.href,p=a.title||null,y=i[1].replace(u.other.outputLinkReplace,"$1");s.state.inLink=!0;let g={type:i[0].charAt(0)==="!"?"image":"link",raw:r,href:f,title:p,text:y,tokens:s.inlineTokens(y)};return s.state.inLink=!1,g}function cN(i,a,r){let s=i.match(r.other.indentCodeCompensation);if(s===null)return a;let u=s[1];return a.split(`
181
+ `).map(f=>{let p=f.match(r.other.beginningSpace);if(p===null)return f;let[y]=p;return y.length>=u.length?f.slice(u.length):f}).join(`
182
+ `)}var mo=class{constructor(i){At(this,"options");At(this,"rules");At(this,"lexer");this.options=i||al}space(i){let a=this.rules.block.newline.exec(i);if(a&&a[0].length>0)return{type:"space",raw:a[0]}}code(i){let a=this.rules.block.code.exec(i);if(a){let r=this.options.pedantic?a[0]:wb(a[0]),s=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:s}}}fences(i){let a=this.rules.block.fences.exec(i);if(a){let r=a[0],s=cN(r,a[3]||"",this.rules);return{type:"code",raw:r,lang:a[2]?a[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):a[2],text:s}}}heading(i){let a=this.rules.block.heading.exec(i);if(a){let r=a[2].trim();if(this.rules.other.endingHash.test(r)){let s=Di(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:Di(a[0],`
183
+ `),depth:a[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(i){let a=this.rules.block.hr.exec(i);if(a)return{type:"hr",raw:Di(a[0],`
184
+ `)}}blockquote(i){let a=this.rules.block.blockquote.exec(i);if(a){let r=Di(a[0],`
185
+ `).split(`
186
+ `),s="",u="",f=[];for(;r.length>0;){let p=!1,y=[],g;for(g=0;g<r.length;g++)if(this.rules.other.blockquoteStart.test(r[g]))y.push(r[g]),p=!0;else if(!p)y.push(r[g]);else break;r=r.slice(g);let m=y.join(`
187
+ `),b=m.replace(this.rules.other.blockquoteSetextReplace,`
188
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
189
+ ${m}`:m,u=u?`${u}
190
+ ${b}`:b;let v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(b,f,!0),this.lexer.state.top=v,r.length===0)break;let S=f.at(-1);if((S==null?void 0:S.type)==="code")break;if((S==null?void 0:S.type)==="blockquote"){let T=S,_=r.join(`
191
+ `),C=T.raw+`
192
+ `+_.replace(this.rules.other.blockquoteSetextReplace2,""),A=this.blockquote(C);f[f.length-1]=A,s=`${s}
193
+ ${_}`,u=u.substring(0,u.length-T.text.length)+A.text;break}else if((S==null?void 0:S.type)==="list"){let T=S,_=T.raw+`
194
+ `+r.join(`
195
+ `),C=this.list(_);f[f.length-1]=C,s=s.substring(0,s.length-S.raw.length)+C.raw,u=u.substring(0,u.length-T.raw.length)+C.raw,r=_.substring(f.at(-1).raw.length).split(`
196
+ `);continue}}return{type:"blockquote",raw:s,tokens:f,text:u}}}list(i){let a=this.rules.block.list.exec(i);if(a){let r=a[1].trim(),s=r.length>1,u={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let f=this.rules.other.listItemRegex(r),p=!1;for(;i;){let g=!1,m="",b="";if(!(a=f.exec(i))||this.rules.block.hr.test(i))break;m=a[0],i=i.substring(m.length);let v=oN(a[2].split(`
197
+ `,1)[0],a[1].length),S=i.split(`
198
+ `,1)[0],T=!v.trim(),_=0;if(this.options.pedantic?(_=2,b=v.trimStart()):T?_=a[1].length+1:(_=v.search(this.rules.other.nonSpaceChar),_=_>4?1:_,b=v.slice(_),_+=a[1].length),T&&this.rules.other.blankLine.test(S)&&(m+=S+`
199
+ `,i=i.substring(S.length+1),g=!0),!g){let C=this.rules.other.nextBulletRegex(_),A=this.rules.other.hrRegex(_),R=this.rules.other.fencesBeginRegex(_),$=this.rules.other.headingBeginRegex(_),U=this.rules.other.htmlBeginRegex(_),W=this.rules.other.blockquoteBeginRegex(_);for(;i;){let z=i.split(`
200
+ `,1)[0],ae;if(S=z,this.options.pedantic?(S=S.replace(this.rules.other.listReplaceNesting," "),ae=S):ae=S.replace(this.rules.other.tabCharGlobal," "),R.test(S)||$.test(S)||U.test(S)||W.test(S)||C.test(S)||A.test(S))break;if(ae.search(this.rules.other.nonSpaceChar)>=_||!S.trim())b+=`
201
+ `+ae.slice(_);else{if(T||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(v)||$.test(v)||A.test(v))break;b+=`
202
+ `+S}T=!S.trim(),m+=z+`
203
+ `,i=i.substring(z.length+1),v=ae.slice(_)}}u.loose||(p?u.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(p=!0)),u.items.push({type:"list_item",raw:m,task:!!this.options.gfm&&this.rules.other.listIsTask.test(b),loose:!1,text:b,tokens:[]}),u.raw+=m}let y=u.items.at(-1);if(y)y.raw=y.raw.trimEnd(),y.text=y.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let g of u.items)if(this.lexer.state.top=!1,g.tokens=this.lexer.blockTokens(g.text,[]),!u.loose){let m=g.tokens.filter(v=>v.type==="space"),b=m.length>0&&m.some(v=>this.rules.other.anyLine.test(v.raw));u.loose=b}for(let g of u.items){let m=g.tokens[0];if(g.task&&((m==null?void 0:m.type)==="text"||(m==null?void 0:m.type)==="paragraph")){g.text=g.text.replace(this.rules.other.listReplaceTask,""),m.raw=m.raw.replace(this.rules.other.listReplaceTask,""),m.text=m.text.replace(this.rules.other.listReplaceTask,"");for(let v=this.lexer.inlineQueue.length-1;v>=0;v--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[v].src)){this.lexer.inlineQueue[v].src=this.lexer.inlineQueue[v].src.replace(this.rules.other.listReplaceTask,"");break}let b=this.rules.other.listTaskCheckbox.exec(g.raw);if(b){let v={type:"checkbox",raw:b[0]+" ",checked:b[0]!=="[ ]"};g.checked=v.checked,u.loose?g.tokens[0]&&["paragraph","text"].includes(g.tokens[0].type)&&"tokens"in g.tokens[0]&&g.tokens[0].tokens?(g.tokens[0].raw=v.raw+g.tokens[0].raw,g.tokens[0].text=v.raw+g.tokens[0].text,g.tokens[0].tokens.unshift(v)):g.tokens.unshift({type:"paragraph",raw:v.raw,text:v.raw,tokens:[v]}):g.tokens.unshift(v)}}else g.task&&(g.task=!1)}if(u.loose)for(let g of u.items){g.loose=!0;for(let m of g.tokens)m.type==="text"&&(m.type="paragraph")}return u}}html(i){let a=this.rules.block.html.exec(i);if(a){let r=wb(a[0]);return{type:"html",block:!0,raw:r,pre:a[1]==="pre"||a[1]==="script"||a[1]==="style",text:r}}}def(i){let a=this.rules.block.def.exec(i);if(a){let r=a[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=a[2]?a[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=a[3]?a[3].substring(1,a[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):a[3];return{type:"def",tag:r,raw:Di(a[0],`
204
+ `),href:s,title:u}}}table(i){var p;let a=this.rules.block.table.exec(i);if(!a||!this.rules.other.tableDelimiter.test(a[2]))return;let r=Sb(a[1]),s=a[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=(p=a[3])!=null&&p.trim()?a[3].replace(this.rules.other.tableRowBlankLine,"").split(`
205
+ `):[],f={type:"table",raw:Di(a[0],`
206
+ `),header:[],align:[],rows:[]};if(r.length===s.length){for(let y of s)this.rules.other.tableAlignRight.test(y)?f.align.push("right"):this.rules.other.tableAlignCenter.test(y)?f.align.push("center"):this.rules.other.tableAlignLeft.test(y)?f.align.push("left"):f.align.push(null);for(let y=0;y<r.length;y++)f.header.push({text:r[y],tokens:this.lexer.inline(r[y]),header:!0,align:f.align[y]});for(let y of u)f.rows.push(Sb(y,f.header.length).map((g,m)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:f.align[m]})));return f}}lheading(i){let a=this.rules.block.lheading.exec(i);if(a){let r=a[1].trim();return{type:"heading",raw:Di(a[0],`
207
+ `),depth:a[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(i){let a=this.rules.block.paragraph.exec(i);if(a){let r=a[1].charAt(a[1].length-1)===`
208
+ `?a[1].slice(0,-1):a[1];return{type:"paragraph",raw:a[0],text:r,tokens:this.lexer.inline(r)}}}text(i){let a=this.rules.block.text.exec(i);if(a)return{type:"text",raw:a[0],text:a[0],tokens:this.lexer.inline(a[0])}}escape(i){let a=this.rules.inline.escape.exec(i);if(a)return{type:"escape",raw:a[0],text:a[1]}}tag(i){let a=this.rules.inline.tag.exec(i);if(a)return!this.lexer.state.inLink&&this.rules.other.startATag.test(a[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(a[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(a[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(a[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:a[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:a[0]}}link(i){let a=this.rules.inline.link.exec(i);if(a){let r=a[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let f=Di(r.slice(0,-1),"\\");if((r.length-f.length)%2===0)return}else{let f=rN(a[2],"()");if(f===-2)return;if(f>-1){let p=(a[0].indexOf("!")===0?5:4)+a[1].length+f;a[2]=a[2].substring(0,f),a[0]=a[0].substring(0,p).trim(),a[3]=""}}let s=a[2],u="";if(this.options.pedantic){let f=this.rules.other.pedanticHrefTitle.exec(s);f&&(s=f[1],u=f[3])}else u=a[3]?a[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),Nb(a,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},a[0],this.lexer,this.rules)}}reflink(i,a){let r;if((r=this.rules.inline.reflink.exec(i))||(r=this.rules.inline.nolink.exec(i))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=a[s.toLowerCase()];if(!u){let f=r[0].charAt(0);return{type:"text",raw:f,text:f}}return Nb(r,u,r[0],this.lexer,this.rules)}}emStrong(i,a,r=""){let s=this.rules.inline.emStrongLDelim.exec(i);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!r||this.rules.inline.punctuation.exec(r))){let u=[...s[0]].length-1,f,p,y=u,g=0,m=s[0][0],b=r===m,v=m==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,a=a.slice(-1*i.length+u);(s=v.exec(a))!==null;){if(f=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!f)continue;if(p=[...f].length,s[3]||s[4]){y+=p;continue}else if(s[5]||s[6]){if(u%3&&!((u+p)%3)){g+=p;continue}if(b)break}if(y-=p,y>0)continue;p=Math.min(p,p+y+g);let S=[...s[0]][0].length,T=i.slice(0,u+s.index+S+p);if(Math.min(u,p)%2){let C=T.slice(1,-1);return{type:"em",raw:T,text:C,tokens:this.lexer.inlineTokens(C)}}let _=T.slice(2,-2);return{type:"strong",raw:T,text:_,tokens:this.lexer.inlineTokens(_)}}}}codespan(i){let a=this.rules.inline.code.exec(i);if(a){let r=a[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),u=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&u&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:a[0],text:r}}}br(i){let a=this.rules.inline.br.exec(i);if(a)return{type:"br",raw:a[0]}}del(i,a,r=""){let s=this.rules.inline.delLDelim.exec(i);if(s&&(!s[1]||!r||this.rules.inline.punctuation.exec(r))){let u=[...s[0]].length-1,f,p,y=u,g=this.rules.inline.delRDelim;for(g.lastIndex=0,a=a.slice(-1*i.length+u);(s=g.exec(a))!==null;){if(f=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!f||(p=[...f].length,p!==u))continue;if(s[3]||s[4]){y+=p;continue}if(y-=p,y>0)continue;p=Math.min(p,p+y);let m=[...s[0]][0].length,b=i.slice(0,u+s.index+m+p),v=b.slice(u,-u);return{type:"del",raw:b,text:v,tokens:this.lexer.inlineTokens(v)}}}}autolink(i){let a=this.rules.inline.autolink.exec(i);if(a){let r,s;return a[2]==="@"?(r=a[1],s="mailto:"+r):(r=a[1],s=r),{type:"link",raw:a[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(i){var r;let a;if(a=this.rules.inline.url.exec(i)){let s,u;if(a[2]==="@")s=a[0],u="mailto:"+s;else{let f;do f=a[0],a[0]=((r=this.rules.inline._backpedal.exec(a[0]))==null?void 0:r[0])??"";while(f!==a[0]);s=a[0],a[1]==="www."?u="http://"+a[0]:u=a[0]}return{type:"link",raw:a[0],text:s,href:u,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(i){let a=this.rules.inline.text.exec(i);if(a){let r=this.lexer.state.inRawBlock;return{type:"text",raw:a[0],text:a[0],escaped:r}}}},Sa=class Id{constructor(a){At(this,"tokens");At(this,"options");At(this,"state");At(this,"inlineQueue");At(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=a||al,this.options.tokenizer=this.options.tokenizer||new mo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Dn,block:io.normal,inline:Bs.normal};this.options.pedantic?(r.block=io.pedantic,r.inline=Bs.pedantic):this.options.gfm&&(r.block=io.gfm,this.options.breaks?r.inline=Bs.breaks:r.inline=Bs.gfm),this.tokenizer.rules=r}static get rules(){return{block:io,inline:Bs}}static lex(a,r){return new Id(r).lex(a)}static lexInline(a,r){return new Id(r).inlineTokens(a)}lex(a){a=a.replace(Dn.carriageReturn,`
209
+ `),this.blockTokens(a,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(a,r=[],s=!1){var f,p,y;this.tokenizer.lexer=this,this.options.pedantic&&(a=a.replace(Dn.tabCharGlobal," ").replace(Dn.spaceLine,""));let u=1/0;for(;a;){if(a.length<u)u=a.length;else{this.infiniteLoopError(a.charCodeAt(0));break}let g;if((p=(f=this.options.extensions)==null?void 0:f.block)!=null&&p.some(b=>(g=b.call({lexer:this},a,r))?(a=a.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.space(a)){a=a.substring(g.raw.length);let b=r.at(-1);g.raw.length===1&&b!==void 0?b.raw+=`
210
+ `:r.push(g);continue}if(g=this.tokenizer.code(a)){a=a.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
211
+ `)?"":`
212
+ `)+g.raw,b.text+=`
213
+ `+g.text,this.inlineQueue.at(-1).src=b.text):r.push(g);continue}if(g=this.tokenizer.fences(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.heading(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.hr(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.blockquote(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.list(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.html(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.def(a)){a=a.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
214
+ `)?"":`
215
+ `)+g.raw,b.text+=`
216
+ `+g.raw,this.inlineQueue.at(-1).src=b.text):this.tokens.links[g.tag]||(this.tokens.links[g.tag]={href:g.href,title:g.title},r.push(g));continue}if(g=this.tokenizer.table(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.lheading(a)){a=a.substring(g.raw.length),r.push(g);continue}let m=a;if((y=this.options.extensions)!=null&&y.startBlock){let b=1/0,v=a.slice(1),S;this.options.extensions.startBlock.forEach(T=>{S=T.call({lexer:this},v),typeof S=="number"&&S>=0&&(b=Math.min(b,S))}),b<1/0&&b>=0&&(m=a.substring(0,b+1))}if(this.state.top&&(g=this.tokenizer.paragraph(m))){let b=r.at(-1);s&&(b==null?void 0:b.type)==="paragraph"?(b.raw+=(b.raw.endsWith(`
217
+ `)?"":`
218
+ `)+g.raw,b.text+=`
219
+ `+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(g),s=m.length!==a.length,a=a.substring(g.raw.length);continue}if(g=this.tokenizer.text(a)){a=a.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
220
+ `)?"":`
221
+ `)+g.raw,b.text+=`
222
+ `+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(g);continue}if(a){this.infiniteLoopError(a.charCodeAt(0));break}}return this.state.top=!0,r}inline(a,r=[]){return this.inlineQueue.push({src:a,tokens:r}),r}inlineTokens(a,r=[]){var y,g,m,b,v;this.tokenizer.lexer=this;let s=a;if(this.tokens.links){let S=Object.keys(this.tokens.links);S.length>0&&(s=s.replace(this.tokenizer.rules.inline.reflinkSearch,T=>S.includes(T.slice(T.lastIndexOf("[")+1,-1))?"["+"a".repeat(T.length-2)+"]":T))}s=s.replace(this.tokenizer.rules.inline.anyPunctuation,S=>"+".repeat(S.length)),s=s.replace(this.tokenizer.rules.inline.blockSkip,(S,T,_)=>{let C=_?_.length:0;return S.slice(0,C)+"["+"a".repeat(S.length-C-2)+"]"}),s=((g=(y=this.options.hooks)==null?void 0:y.emStrongMask)==null?void 0:g.call({lexer:this},s))??s;let u=!1,f="",p=1/0;for(;a;){if(a.length<p)p=a.length;else{this.infiniteLoopError(a.charCodeAt(0));break}u||(f=""),u=!1;let S;if((b=(m=this.options.extensions)==null?void 0:m.inline)!=null&&b.some(_=>(S=_.call({lexer:this},a,r))?(a=a.substring(S.raw.length),r.push(S),!0):!1))continue;if(S=this.tokenizer.escape(a)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.tag(a)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.link(a)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.reflink(a,this.tokens.links)){a=a.substring(S.raw.length);let _=r.at(-1);S.type==="text"&&(_==null?void 0:_.type)==="text"?(_.raw+=S.raw,_.text+=S.text):r.push(S);continue}if(S=this.tokenizer.emStrong(a,s,f)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.codespan(a)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.br(a)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.del(a,s,f)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.autolink(a)){a=a.substring(S.raw.length),r.push(S);continue}if(!this.state.inLink&&(S=this.tokenizer.url(a))){a=a.substring(S.raw.length),r.push(S);continue}let T=a;if((v=this.options.extensions)!=null&&v.startInline){let _=1/0,C=a.slice(1),A;this.options.extensions.startInline.forEach(R=>{A=R.call({lexer:this},C),typeof A=="number"&&A>=0&&(_=Math.min(_,A))}),_<1/0&&_>=0&&(T=a.substring(0,_+1))}if(S=this.tokenizer.inlineText(T)){a=a.substring(S.raw.length),S.raw.slice(-1)!=="_"&&(f=S.raw.slice(-1)),u=!0;let _=r.at(-1);(_==null?void 0:_.type)==="text"?(_.raw+=S.raw,_.text+=S.text):r.push(S);continue}if(a){this.infiniteLoopError(a.charCodeAt(0));break}}return r}infiniteLoopError(a){let r="Infinite loop on byte: "+a;if(this.options.silent)console.error(r);else throw new Error(r)}},go=class{constructor(i){At(this,"options");At(this,"parser");this.options=i||al}space(i){return""}code({text:i,lang:a,escaped:r}){var f;let s=(f=(a||"").match(Dn.notSpaceStart))==null?void 0:f[0],u=i.replace(Dn.endingNewline,"")+`
223
+ `;return s?'<pre><code class="language-'+Da(s)+'">'+(r?u:Da(u,!0))+`</code></pre>
224
+ `:"<pre><code>"+(r?u:Da(u,!0))+`</code></pre>
225
+ `}blockquote({tokens:i}){return`<blockquote>
226
+ ${this.parser.parse(i)}</blockquote>
227
+ `}html({text:i}){return i}def(i){return""}heading({tokens:i,depth:a}){return`<h${a}>${this.parser.parseInline(i)}</h${a}>
228
+ `}hr(i){return`<hr>
229
+ `}list(i){let a=i.ordered,r=i.start,s="";for(let p=0;p<i.items.length;p++){let y=i.items[p];s+=this.listitem(y)}let u=a?"ol":"ul",f=a&&r!==1?' start="'+r+'"':"";return"<"+u+f+`>
230
+ `+s+"</"+u+`>
231
+ `}listitem(i){return`<li>${this.parser.parse(i.tokens)}</li>
232
+ `}checkbox({checked:i}){return"<input "+(i?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:i}){return`<p>${this.parser.parseInline(i)}</p>
233
+ `}table(i){let a="",r="";for(let u=0;u<i.header.length;u++)r+=this.tablecell(i.header[u]);a+=this.tablerow({text:r});let s="";for(let u=0;u<i.rows.length;u++){let f=i.rows[u];r="";for(let p=0;p<f.length;p++)r+=this.tablecell(f[p]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
234
+ <thead>
235
+ `+a+`</thead>
236
+ `+s+`</table>
237
+ `}tablerow({text:i}){return`<tr>
238
+ ${i}</tr>
239
+ `}tablecell(i){let a=this.parser.parseInline(i.tokens),r=i.header?"th":"td";return(i.align?`<${r} align="${i.align}">`:`<${r}>`)+a+`</${r}>
240
+ `}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${Da(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:a,tokens:r}){let s=this.parser.parseInline(r),u=_b(i);if(u===null)return s;i=u;let f='<a href="'+i+'"';return a&&(f+=' title="'+Da(a)+'"'),f+=">"+s+"</a>",f}image({href:i,title:a,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let u=_b(i);if(u===null)return Da(r);i=u;let f=`<img src="${i}" alt="${Da(r)}"`;return a&&(f+=` title="${Da(a)}"`),f+=">",f}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:Da(i.text)}},ff=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}checkbox({raw:i}){return i}},wa=class Hd{constructor(a){At(this,"options");At(this,"renderer");At(this,"textRenderer");this.options=a||al,this.options.renderer=this.options.renderer||new go,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ff}static parse(a,r){return new Hd(r).parse(a)}static parseInline(a,r){return new Hd(r).parseInline(a)}parse(a){var s,u;this.renderer.parser=this;let r="";for(let f=0;f<a.length;f++){let p=a[f];if((u=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&u[p.type]){let g=p,m=this.options.extensions.renderers[g.type].call({parser:this},g);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(g.type)){r+=m||"";continue}}let y=p;switch(y.type){case"space":{r+=this.renderer.space(y);break}case"hr":{r+=this.renderer.hr(y);break}case"heading":{r+=this.renderer.heading(y);break}case"code":{r+=this.renderer.code(y);break}case"table":{r+=this.renderer.table(y);break}case"blockquote":{r+=this.renderer.blockquote(y);break}case"list":{r+=this.renderer.list(y);break}case"checkbox":{r+=this.renderer.checkbox(y);break}case"html":{r+=this.renderer.html(y);break}case"def":{r+=this.renderer.def(y);break}case"paragraph":{r+=this.renderer.paragraph(y);break}case"text":{r+=this.renderer.text(y);break}default:{let g='Token with "'+y.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return r}parseInline(a,r=this.renderer){var u,f;this.renderer.parser=this;let s="";for(let p=0;p<a.length;p++){let y=a[p];if((f=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&f[y.type]){let m=this.options.extensions.renderers[y.type].call({parser:this},y);if(m!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(y.type)){s+=m||"";continue}}let g=y;switch(g.type){case"escape":{s+=r.text(g);break}case"html":{s+=r.html(g);break}case"link":{s+=r.link(g);break}case"image":{s+=r.image(g);break}case"checkbox":{s+=r.checkbox(g);break}case"strong":{s+=r.strong(g);break}case"em":{s+=r.em(g);break}case"codespan":{s+=r.codespan(g);break}case"br":{s+=r.br(g);break}case"del":{s+=r.del(g);break}case"text":{s+=r.text(g);break}default:{let m='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return s}},so,Hs=(so=class{constructor(i){At(this,"options");At(this,"block");this.options=i||al}preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}emStrongMask(i){return i}provideLexer(i=this.block){return i?Sa.lex:Sa.lexInline}provideParser(i=this.block){return i?wa.parse:wa.parseInline}},At(so,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),At(so,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),so),uN=class{constructor(...i){At(this,"defaults",lf());At(this,"options",this.setOptions);At(this,"parse",this.parseMarkdown(!0));At(this,"parseInline",this.parseMarkdown(!1));At(this,"Parser",wa);At(this,"Renderer",go);At(this,"TextRenderer",ff);At(this,"Lexer",Sa);At(this,"Tokenizer",mo);At(this,"Hooks",Hs);this.use(...i)}walkTokens(i,a){var s,u;let r=[];for(let f of i)switch(r=r.concat(a.call(this,f)),f.type){case"table":{let p=f;for(let y of p.header)r=r.concat(this.walkTokens(y.tokens,a));for(let y of p.rows)for(let g of y)r=r.concat(this.walkTokens(g.tokens,a));break}case"list":{let p=f;r=r.concat(this.walkTokens(p.items,a));break}default:{let p=f;(u=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&u[p.type]?this.defaults.extensions.childTokens[p.type].forEach(y=>{let g=p[y].flat(1/0);r=r.concat(this.walkTokens(g,a))}):p.tokens&&(r=r.concat(this.walkTokens(p.tokens,a)))}}return r}use(...i){let a=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(r=>{let s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){let f=a.renderers[u.name];f?a.renderers[u.name]=function(...p){let y=u.renderer.apply(this,p);return y===!1&&(y=f.apply(this,p)),y}:a.renderers[u.name]=u.renderer}if("tokenizer"in u){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let f=a[u.level];f?f.unshift(u.tokenizer):a[u.level]=[u.tokenizer],u.start&&(u.level==="block"?a.startBlock?a.startBlock.push(u.start):a.startBlock=[u.start]:u.level==="inline"&&(a.startInline?a.startInline.push(u.start):a.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(a.childTokens[u.name]=u.childTokens)}),s.extensions=a),r.renderer){let u=this.defaults.renderer||new go(this.defaults);for(let f in r.renderer){if(!(f in u))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;let p=f,y=r.renderer[p],g=u[p];u[p]=(...m)=>{let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b||""}}s.renderer=u}if(r.tokenizer){let u=this.defaults.tokenizer||new mo(this.defaults);for(let f in r.tokenizer){if(!(f in u))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;let p=f,y=r.tokenizer[p],g=u[p];u[p]=(...m)=>{let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b}}s.tokenizer=u}if(r.hooks){let u=this.defaults.hooks||new Hs;for(let f in r.hooks){if(!(f in u))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;let p=f,y=r.hooks[p],g=u[p];Hs.passThroughHooks.has(f)?u[p]=m=>{if(this.defaults.async&&Hs.passThroughHooksRespectAsync.has(f))return(async()=>{let v=await y.call(u,m);return g.call(u,v)})();let b=y.call(u,m);return g.call(u,b)}:u[p]=(...m)=>{if(this.defaults.async)return(async()=>{let v=await y.apply(u,m);return v===!1&&(v=await g.apply(u,m)),v})();let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b}}s.hooks=u}if(r.walkTokens){let u=this.defaults.walkTokens,f=r.walkTokens;s.walkTokens=function(p){let y=[];return y.push(f.call(this,p)),u&&(y=y.concat(u.call(this,p))),y}}this.defaults={...this.defaults,...s}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,a){return Sa.lex(i,a??this.defaults)}parser(i,a){return wa.parse(i,a??this.defaults)}parseMarkdown(i){return(a,r)=>{let s={...r},u={...this.defaults,...s},f=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&s.async===!1)return f(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof a>"u"||a===null)return f(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return f(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));if(u.hooks&&(u.hooks.options=u,u.hooks.block=i),u.async)return(async()=>{let p=u.hooks?await u.hooks.preprocess(a):a,y=await(u.hooks?await u.hooks.provideLexer(i):i?Sa.lex:Sa.lexInline)(p,u),g=u.hooks?await u.hooks.processAllTokens(y):y;u.walkTokens&&await Promise.all(this.walkTokens(g,u.walkTokens));let m=await(u.hooks?await u.hooks.provideParser(i):i?wa.parse:wa.parseInline)(g,u);return u.hooks?await u.hooks.postprocess(m):m})().catch(f);try{u.hooks&&(a=u.hooks.preprocess(a));let p=(u.hooks?u.hooks.provideLexer(i):i?Sa.lex:Sa.lexInline)(a,u);u.hooks&&(p=u.hooks.processAllTokens(p)),u.walkTokens&&this.walkTokens(p,u.walkTokens);let y=(u.hooks?u.hooks.provideParser(i):i?wa.parse:wa.parseInline)(p,u);return u.hooks&&(y=u.hooks.postprocess(y)),y}catch(p){return f(p)}}}onError(i,a){return r=>{if(r.message+=`
241
+ Please report this to https://github.com/markedjs/marked.`,i){let s="<p>An error occurred:</p><pre>"+Da(r.message+"",!0)+"</pre>";return a?Promise.resolve(s):s}if(a)return Promise.reject(r);throw r}}},nl=new uN;function yt(i,a){return nl.parse(i,a)}yt.options=yt.setOptions=function(i){return nl.setOptions(i),yt.defaults=nl.defaults,cy(yt.defaults),yt};yt.getDefaults=lf;yt.defaults=al;function dN(...i){return nl.use(...i),yt.defaults=nl.defaults,cy(yt.defaults),yt}yt.use=dN;yt.walkTokens=function(i,a){return nl.walkTokens(i,a)};yt.parseInline=nl.parseInline;yt.Parser=wa;yt.parser=wa.parse;yt.Renderer=go;yt.TextRenderer=ff;yt.Lexer=Sa;yt.lexer=Sa.lex;yt.Tokenizer=mo;yt.Hooks=Hs;yt.parse=yt;yt.options;yt.setOptions;yt.walkTokens;yt.parseInline;wa.parse;Sa.lex;yt.setOptions({gfm:!0,breaks:!1});function hf(i){const a=yt.parse(i??"",{async:!1});return pw.sanitize(a)}function ai({text:i,className:a}){const r=q.useMemo(()=>hf(i),[i]);return i!=null&&i.trim()?d.jsx("div",{className:`md ${a??""}`,dangerouslySetInnerHTML:{__html:r}}):null}const fN={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'"};function hN(i){return i.replace(/<[^>]*>/g," ").replace(/&([a-z]+|#\d+);/gi,(a,r)=>fN[r.toLowerCase()]??a).replace(/\s+/g," ").trim()}function pN(i,a){return hN(a)!==i.replace(/\s+/g," ").trim()}function Ps({text:i,className:a}){const r=q.useMemo(()=>i!=null&&i.trim()?hf(i):"",[i]);return!r||!pN(i,r)?null:d.jsxs("div",{className:"md-preview",children:[d.jsx("div",{className:"lab",children:"preview"}),d.jsx("div",{className:`md prose ${a??""}`,dangerouslySetInnerHTML:{__html:r}})]})}const mN=/\.(md|markdown)$/i;function pf(i){return mN.test(i)}function gN(i){return/^new file mode /m.test(i)||/^--- \/dev\/null$/m.test(i)}function bN(i){const a=[];let r=0,s=!1;const u=i.split(`
242
+ `);for(let f=0;f<u.length;f++){const p=u[f],y=p.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(y){r=Number(y[1]),s=!0;continue}s&&(p===""&&f===u.length-1||p.startsWith("\\")||p.startsWith("-")||(p.startsWith("+")||p.startsWith(" ")||p==="")&&(a.push({n:r,text:p===""?"":p.slice(1),added:p.startsWith("+")}),r++))}return a}const lo=i=>(i.match(/\n/g)??[]).length;function mf(i){const a=bN(i),r=gN(i),s=[];let u=[];const f=()=>{if(u.length===0)return;const p=u[0].n,y=new Set(u.filter(b=>b.added).map(b=>b.n)),g=u.map(b=>b.text).join(`
243
+ `)+`
244
+ `;let m=p;for(const b of yt.lexer(g)){const v=b.raw,S=v.trimEnd();if(S===""){m+=lo(v);continue}const T=v.length-v.trimStart().length,_=m+lo(v.slice(0,T)),C=_+lo(S.slice(T));let A=!1;for(let R=_;R<=C&&!A;R++)A=y.has(R);s.push({kind:"block",raw:S.slice(T),from:_,to:C,changed:A}),m+=lo(v)}u=[]};for(const p of a){const y=u[u.length-1];if(y&&p.n!==y.n+1){const g=p.n-y.n-1;f(),s.push({kind:"gap",lines:g})}u.push(p)}return f(),{items:s,isNew:r,lines:a.length}}const qd="cerber.stickyChapters";function yN(i){return i!=="off"}function vN(){try{return yN(localStorage.getItem(qd))}catch{return!0}}function vy(){const[i,a]=q.useState(vN);return[i,s=>{try{s?localStorage.removeItem(qd):localStorage.setItem(qd,"off")}catch{}a(s)}]}function oo(i){const a=i.alreadyRaised;return!a||a.decision==="send"?"post":a.decision==="reply"?a.where.kind==="thread"?"reply":"hold":a.where.kind==="thread"&&a.where.state==="resolved"?"post":"hold"}const Gd={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},EN={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function Ey(i,a=!1){return a?"COMMENT":(i==null?void 0:i.recommendation)==="approve"?"APPROVE":(i==null?void 0:i.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function _y(i,a){const r=z_(i);return a.filter(s=>{var u;return!s.drifted&&s.line!=null&&((u=r.get(s.path))==null?void 0:u.has(s.line))})}function xb(i,a){const r=f=>{const p=Number((f??"").trim());return Number.isInteger(p)&&p>0?p:null},s=r(a);if(s!=null)return{line:s,side:"new"};const u=r(i);return u!=null?{line:u,side:"old"}:null}function Sy(i){const a=i.comments.filter(y=>y.status==="dropped"),r=i.comments.filter(y=>y.status!=="dropped"),s=r.filter(y=>oo(y)==="reply"),u=r.filter(y=>oo(y)==="hold"),f=r.filter(y=>oo(y)==="post"),p=_y(i.diff,f);return{inline:p,folded:f.filter(y=>!p.includes(y)),dropped:a,replies:s,held:u}}function Tb(i){return i.sent!=null||(i.priorSends??[]).length>0}function Ab(i){return(i.priorSends??[]).length+(i.sent?1:0)}function _N(i,a){if(i.sent==null)return!1;const r=a==null?void 0:a.headSha;return r!=null&&i.pr.headSha!==""&&r!==i.pr.headSha}function SN(i,a){const r=i.alreadyRaised;if(!r)return null;if(i.status==="dropped")return a?"dropped — not posted":"dropped — never posts";if(r.replied)return"replied in their thread";const s=oo(i);return a?s==="reply"?"the reply in their thread did not post":s==="hold"?"left out of the review":"posted as a comment of its own":s==="reply"?"replies in their thread when you send":s==="hold"?"left out of Send":r.decision==="send"?"posts as a comment of its own":"posts — their thread was resolved, and the problem is still here"}function wN(i){return i.where.kind==="thread"?`${i.where.state} thread`:"review"}function Rd(i){const a=i.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:a.filter(f=>f.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:f})=>`${Kb[u]} ${f} ${u}${f===1?"":"s"}`).join(" · ")}function NN(i){if(!i.comments.some(s=>s.severity!=null))return null;const r=i.comments.filter(s=>s.status!=="dropped"&&s.severity==="blocker").length;return r===0?"no blockers":`${r} blocker${r===1?"":"s"}`}function xN(i){if(!i.verdict||!i.comments.some(u=>u.severity!=null))return null;const r=i.comments.filter(u=>u.status!=="dropped"&&u.severity==="blocker").length,s=i.verdict.recommendation;return s==="approve"&&r>0?`the verdict says approve, but ${r} blocker${r===1?"":"s"} still stand${r===1?"s":""}`:s==="request_changes"&&r===0?"the verdict says request changes, but no blocker still stands":null}function $d(i){const{inline:a,folded:r,replies:s,held:u}=Sy(i),f=[s.length>0?`${s.length} ${s.length===1?"reply":"replies"} in another reviewer's thread`:"",u.length>0?`${u.length} already raised, left out`:""].filter(Boolean);return[TN(i,a,r),...f].join(" · ")}function TN(i,a,r){if(i.bodyOverride!=null)return`${a.length===0?"no inline comments":`${a.length} inline`} · body you wrote`;if(a.length===0&&r.length===0)return"no inline comments · body only";const s=[`${a.length} inline`];return r.length>0&&s.push(`${r.length} folded into the body`),s.join(" · ")}const Yd="cerber.sendKey";function AN(i){return i==="enter"?i:"mod-enter"}function RN(i,a){return a.key!=="Enter"||a.isComposing||a.keyCode===229?!1:a.metaKey||a.ctrlKey?!0:i==="enter"&&!a.shiftKey}let bo=null;function kN(i){if(bo)return bo;try{return AN((i??localStorage).getItem(Yd))}catch{return"mod-enter"}}function ON(i,a){try{const r=a??localStorage;i==="mod-enter"?r.removeItem(Yd):r.setItem(Yd,i),bo=null}catch{bo=i}}function wy(){const[i,a]=q.useState(()=>kN());return[i,s=>{ON(s),a(s)}]}const Rb={approve:"approve",comment:"comment",request_changes:"changes"},CN={approve:"approve",comment:"comment",request_changes:"changes"};function MN(i,a){return i.status==="dropped"?"none":i.drifted?"comment":i.origin==="user"?"awaiting":a}function Ny(i,a=20){const r=document.getElementById(`c-${i}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}a>0&&requestAnimationFrame(()=>Ny(i,a-1))}function DN(i){const a=i,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function kb(i,a){const r=document.createElement("tr");r.className=a;const s=document.createElement("td");s.colSpan=2;const u=document.createElement("div");return s.appendChild(u),r.appendChild(s),i.after(r),{tr:r,holder:u}}function Ob(i,a,r){i.querySelectorAll(".d2h-file-wrapper").forEach(s=>{const u=s.dataset.path;if(!u)return;const f=a.has(u);s.classList.toggle("file-viewed-on",f),s.classList.toggle("file-peek",f&&r.has(u));const p=s.querySelector("input[data-viewed-path]");p&&(p.checked=f)})}function yo(i,a){!i||!a||i.getBoundingClientRect().top<parseFloat(getComputedStyle(a).top)&&requestAnimationFrame(()=>i.scrollIntoView({block:"start"}))}function LN(i){const a=document.createElement("label");a.className="file-viewed",a.title="Mark as viewed — folds the file until its diff changes";const r=document.createElement("input");return r.type="checkbox",r.dataset.viewedPath=i,a.append(r," Viewed"),a}function xy({pick:i,chatBusy:a,onAdd:r,onAsk:s,onClose:u}){const[f,p]=q.useState(""),y=q.useRef(null);q.useEffect(()=>{var m;return(m=y.current)==null?void 0:m.focus()},[]);const g=f.trim();return d.jsxs("div",{className:"line-composer",children:[d.jsxs("div",{className:"line-composer-head",children:[d.jsxs("span",{className:"comment-loc",children:[i.path,":",i.line]}),i.side==="old"&&d.jsx("span",{className:"faint",title:"GitHub only takes inline comments on the new side of a diff.",children:"this line is gone from the new file — a comment on it posts on the file, not the line"})]}),d.jsx("textarea",{ref:y,className:"comment-edit",rows:3,placeholder:"what about this line?",value:f,onChange:m=>p(m.target.value),onKeyDown:m=>{m.key==="Escape"&&u(),m.key==="Enter"&&(m.metaKey||m.ctrlKey)&&g&&(m.preventDefault(),r(g))}}),d.jsx(Ps,{className:"comment-body",text:f}),d.jsxs("div",{className:"line-composer-actions",children:[d.jsxs("button",{className:"btn",disabled:!g,onClick:()=>r(g),children:[d.jsx(Ke,{name:"plus"}),"add comment",d.jsx(za,{children:"⌘↵"})]}),d.jsxs("button",{className:"btn btn-accent",disabled:!g||a,title:a?"the reviewer is still answering the last question":"Ask the reviewer about this line — the answer lands in the chat below",onClick:()=>s(g),children:[d.jsx(Ke,{name:"comment"}),"ask the reviewer"]}),d.jsx("span",{className:"grow"}),d.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function zN({patch:i,comments:a,renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,onRead:y,viewedState:g}){const m=q.useMemo(()=>i.trim()?C_(i,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[i]),b=q.useMemo(()=>ja(i).map(j=>j.path),[i]),v=q.useMemo(()=>new Set(ja(i).filter(j=>pf(j.path)&&mf(j.patch).lines>0).map(j=>j.path)),[i]),S=q.useMemo(()=>a.map(j=>`${j.id}@${j.path}:${j.line}`).join("|"),[a]),T=q.useRef(null),_=q.useRef(y);_.current=y;const C=q.useRef(g);C.current=g;const[A,R]=q.useState([]),[$,U]=q.useState([]),[W,z]=q.useState(null),[ae,se]=q.useState(null);q.useEffect(()=>{var De,w;const j=T.current;if(!j)return;j.innerHTML=m,wS(j);const le=new Map,fe=[];j.querySelectorAll(".d2h-file-wrapper").forEach((L,I)=>{var ve,X,be,xe,Ge;const oe=(X=(ve=L.querySelector(".d2h-file-name"))==null?void 0:ve.textContent)==null?void 0:X.trim(),me=oe&&b.includes(oe)?oe:b[I];if(oe&&le.set(oe,L),me){le.set(me,L),L.dataset.path=me;const $e=document.createElement("div");if($e.className="file-comments",(be=L.querySelector(".d2h-file-header"))==null||be.after($e),fe.push({path:me,el:$e}),v.has(me)){const Ce=document.createElement("button");Ce.type="button",Ce.className="btn btn-sm md-read-toggle",Ce.dataset.readPath=me,Ce.textContent="read as a document",Ce.title="Render this markdown instead of showing it line by line",(xe=L.querySelector(".d2h-file-header"))==null||xe.appendChild(Ce)}(Ge=L.querySelector(".d2h-file-header"))==null||Ge.appendChild(LN(me))}}),Ob(j,C.current.viewed,C.current.peeked);const M=[],Q=new Map;for(const L of a){if(L.line==null)continue;const I=le.get(L.path);if(!I)continue;const oe=Array.from(I.querySelectorAll(".d2h-diff-tbody > tr")).find(ve=>{var X,be;return((be=(X=ve.querySelector(".line-num2"))==null?void 0:X.textContent)==null?void 0:be.trim())===String(L.line)});if(!oe)continue;const me=kb(Q.get(oe)??oe,"inline-comment-row");Q.set(oe,me.tr),M.push({id:L.id,el:me.holder})}R(M),U(fe);const pe=L=>{var $e;const I=L.target,oe=I.closest(".md-read-toggle");if(oe!=null&&oe.dataset.readPath){_.current(oe.dataset.readPath);return}const me=I.closest(".d2h-file-wrapper");if(I instanceof HTMLInputElement&&I.dataset.viewedPath){I.checked&&yo(me,(me==null?void 0:me.querySelector(".d2h-file-header"))??null),C.current.onToggleViewed(I.dataset.viewedPath);return}if(I.closest(".file-viewed"))return;const ve=($e=I.closest(".d2h-file-header"))==null?void 0:$e.closest(".file-viewed-on");if(ve!=null&&ve.dataset.path){yo(me,(me==null?void 0:me.querySelector(".d2h-file-header"))??null),C.current.onTogglePeek(ve.dataset.path);return}const X=L.target.closest(".line-add");if(!X)return;const{path:be,line:xe,side:Ge}=X.dataset;!be||!xe||z({path:be,line:Number(xe),side:Ge==="old"?"old":"new"})};j.addEventListener("click",pe);const we=()=>j.removeEventListener("click",pe);if(s)return z(null),se(null),we;for(const L of j.querySelectorAll(".d2h-file-wrapper")){const I=L.dataset.path;if(I)for(const oe of L.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const me=xb((De=oe.querySelector(".line-num1"))==null?void 0:De.textContent,(w=oe.querySelector(".line-num2"))==null?void 0:w.textContent);if(!me)continue;const ve=document.createElement("button");ve.type="button",ve.className="line-add";const X=`Say something about ${I}:${me.line}`;ve.title=X,ve.setAttribute("aria-label",X),ve.tabIndex=-1,ve.dataset.path=I,ve.dataset.line=String(me.line),ve.dataset.side=me.side,oe.appendChild(ve)}}return se(null),we},[m,S,b,v,s]);const x=b.filter(j=>g.viewed.has(j)).join(`
245
+ `),G=b.filter(j=>g.peeked.has(j)).join(`
246
+ `);q.useEffect(()=>{T.current&&Ob(T.current,g.viewed,g.peeked)},[x,G]),q.useEffect(()=>{const j=T.current;if(!j||!W||s){se(null);return}const le=Array.from(j.querySelectorAll(".d2h-file-wrapper")).find(Q=>Q.dataset.path===W.path),fe=Array.from((le==null?void 0:le.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(Q=>{var De,w;const pe=Q.querySelector(".d2h-code-linenumber"),we=xb((De=pe==null?void 0:pe.querySelector(".line-num1"))==null?void 0:De.textContent,(w=pe==null?void 0:pe.querySelector(".line-num2"))==null?void 0:w.textContent);return(we==null?void 0:we.line)===W.line&&we.side===W.side});if(!fe){z(null);return}const M=kb(fe,"line-composer-row");return se(M.holder),()=>M.tr.remove()},[W,A,s]);const ee=a.filter(j=>!A.some(le=>le.id===j.id)),ue=$.map(j=>({...j,comments:ee.filter(le=>le.path===j.path)})).filter(j=>j.comments.length>0),Ee=ee.filter(j=>!$.some(le=>le.path===j.path));return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"diff",ref:T}),A.map(({id:j,el:le})=>{const fe=a.find(M=>M.id===j);return fe?Lu.createPortal(r(fe),le,j):null}),ue.map(({path:j,el:le,comments:fe})=>Lu.createPortal(d.jsx(d.Fragment,{children:fe.map(r)}),le,`file:${j}`)),W&&ae&&Lu.createPortal(d.jsx(xy,{pick:W,chatBusy:u,onAdd:j=>{f(W,j),z(null)},onAsk:j=>{p(W,j),z(null)},onClose:()=>z(null)}),ae,`pick-${W.path}-${W.side}-${W.line}`),Ee.map(j=>r(j))]})}function jN({block:i,path:a,changed:r,readOnly:s,onPick:u}){const f=q.useMemo(()=>hf(i.raw),[i.raw]),p=`Say something about ${a}:${i.from}`;return d.jsxs("div",{className:`md-block${r?" md-block-changed":""}`,children:[!s&&d.jsx("button",{type:"button",className:"md-block-add",title:p,"aria-label":p,tabIndex:-1,onClick:u,children:d.jsx(Ke,{name:"plus"})}),d.jsx("div",{className:"md md-doc prose",dangerouslySetInnerHTML:{__html:f}})]})}function UN({path:i,doc:a,comments:r,renderComment:s,readOnly:u,chatBusy:f,onAddLineComment:p,onAskAboutLine:y,onShowDiff:g,viewedState:m}){const[b,v]=q.useState(null),S=q.useRef(null),T=q.useRef(null),_=m.viewed.has(i),C=_&&!m.peeked.has(i),A=q.useMemo(()=>{const R=new Map,$=a.items.flatMap((W,z)=>W.kind==="block"?[{item:W,i:z}]:[]),U=[];for(const W of r){const z=W.line==null?void 0:$.filter(ae=>ae.item.from<=W.line).pop()??$[0];if(!z){U.push(W);continue}R.set(z.i,[...R.get(z.i)??[],W])}return{at:R,rest:U}},[a,r]);return d.jsxs("div",{className:"md-file",ref:S,children:[d.jsxs("div",{ref:T,className:`md-file-head${_?" md-file-head-viewed":""}${C?" md-file-head-folded":""}`,onClick:R=>{_&&!R.target.closest("button, label")&&(yo(S.current,T.current),m.onTogglePeek(i))},children:[d.jsx(Ke,{name:"file"}),d.jsx("span",{className:"md-file-name",children:i}),a.isNew?d.jsx("span",{className:"tag tag-added",children:"new file"}):d.jsx("span",{className:"faint",title:"A diff carries the lines around a change, not the file.",children:"the diff's lines only — what the PR removed isn't here"}),d.jsx("span",{className:"grow"}),d.jsx("button",{className:"btn btn-sm",onClick:g,title:"Back to the line-by-line diff",children:"show the diff"}),d.jsxs("label",{className:"file-viewed",title:"Mark as viewed — folds the file until its diff changes",children:[d.jsx("input",{type:"checkbox",checked:_,onChange:()=>{_||yo(S.current,T.current),m.onToggleViewed(i)}})," ","Viewed"]})]}),!C&&A.rest.length>0&&d.jsx("div",{className:"file-comments",children:A.rest.map(s)}),!C&&a.items.map((R,$)=>d.jsxs(q.Fragment,{children:[R.kind==="gap"?d.jsxs("div",{className:"md-gap",title:"These lines are in the file but not in the diff.",children:["⋯ ",R.lines.toLocaleString()," line",R.lines===1?"":"s"," the diff skips"]}):d.jsx(jN,{block:R,path:i,changed:R.changed&&!a.isNew,readOnly:u,onPick:()=>v({path:i,line:R.from,side:"new"})}),(A.at.get($)??[]).map(s),R.kind==="block"&&(b==null?void 0:b.line)===R.from&&d.jsx(xy,{pick:b,chatBusy:f,onAdd:U=>{p(b,U),v(null)},onAsk:U=>{y(b,U),v(null)},onClose:()=>v(null)})]},$))]})}function BN({patch:i,comments:a,renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,viewedState:y}){const g=q.useMemo(()=>i.trim()?ja(i):[],[i]),m=q.useMemo(()=>new Map(g.filter(A=>pf(A.path)).map(A=>[A.path,mf(A.patch)]).filter(([,A])=>A.lines>0)),[g]),[b,v]=q.useState({}),S=A=>{var R;return b[A]??((R=m.get(A))==null?void 0:R.isNew)??!1},T=[];for(const A of g){const R=T[T.length-1];if(m.has(A.path)&&S(A.path)){T.push({kind:"read",paths:[A.path],patch:A.patch});continue}(R==null?void 0:R.kind)==="diff"?(R.paths.push(A.path),R.patch+=`
247
+ ${A.patch}`):T.push({kind:"diff",paths:[A.path],patch:A.patch})}if(g.length===0)return d.jsx("p",{className:"muted",children:"No diff for this chapter."});const _=new Set(g.map(A=>A.path)),C=A=>a.filter(R=>A(R.path));return d.jsxs(d.Fragment,{children:[T.map(A=>{const R=new Set(A.paths);if(A.kind==="read"){const $=A.paths[0];return d.jsx(UN,{path:$,doc:m.get($),comments:C(U=>U===$),renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,onShowDiff:()=>v(U=>({...U,[$]:!1})),viewedState:y},`read:${$}`)}return d.jsx(zN,{patch:A.patch,comments:C($=>R.has($)),renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,onRead:$=>v(U=>({...U,[$]:!0})),viewedState:y},`diff:${A.paths[0]}`)}),C(A=>!_.has(A)).map(r)]})}function IN({check:i,raised:a,held:r,replies:s}){if(!i)return null;const u=[r>0&&`${r} left out`,s>0&&`${s} as replies`].filter(Boolean),f=a>0?d.jsxs("div",{className:"warn",title:"Findings another reviewer already raised on the PR — each card says who, and what Send does with it.",children:[a," already raised",u.length>0?` · ${u.join(" · ")}`:""]}):null;return i.checkingSince?d.jsxs(d.Fragment,{children:[f,d.jsx("div",{className:"faint",children:"checking what others already raised…"})]}):i.error?d.jsxs(d.Fragment,{children:[f,d.jsx("div",{className:"warn",title:i.error,children:"couldn't check what others already raised"})]}):f||(i.remarks.length>0?d.jsx("div",{className:"faint",children:"none already raised by others"}):null)}function HN({comment:i,readOnly:a,onDecide:r}){var y;const s=i.alreadyRaised;if(!s)return null;const u=SN(i,a),f=s.where.kind==="thread",p=!a&&i.status!=="dropped";return d.jsxs("div",{className:"raised",children:[d.jsxs("div",{className:"raised-head",children:[d.jsxs("span",{className:"tag tag-raised",children:[d.jsx(Ke,{name:"comment"}),"already raised by @",s.by," · ",wN(s)]}),s.url&&d.jsxs("a",{href:s.url,target:"_blank",rel:"noreferrer",className:"faint",children:["see it on GitHub ",d.jsx(Ke,{name:"external"})]}),d.jsx("span",{className:"grow"}),p&&d.jsxs(d.Fragment,{children:[f&&d.jsx("button",{className:`btn btn-sm${s.decision==="reply"?" btn-keep-on":""}`,title:"Send posts this as a reply in their thread instead of a new comment — for when it adds something",onClick:()=>r(s.decision==="reply"?null:"reply"),children:"reply in their thread"}),d.jsx("button",{className:`btn btn-sm${s.decision==="send"?" btn-keep-on":""}`,title:"Send posts it as a comment of its own all the same",onClick:()=>r(s.decision==="send"?null:"send"),children:"send anyway"})]})]}),d.jsxs("p",{className:"raised-reason",children:[s.reason,u&&d.jsxs("span",{className:"raised-fate",children:[" — ",(y=s.replied)!=null&&y.url?d.jsx("a",{href:s.replied.url,target:"_blank",rel:"noreferrer",children:u}):u,"."]})]})]})}function Ty({comment:i,onUpdate:a,onDelete:r,onDiscuss:s,readOnly:u,flash:f}){const[p,y]=q.useState(!1),[g,m]=q.useState(i.body),b=i.status==="approved",v=i.status==="dropped",S=i.origin==="user"?"yours":v?"dropped":b?"kept":"drafted";return d.jsxs("div",{id:`c-${i.id}`,className:`comment comment-${i.status}${f?" comment-flash":""}`,children:[d.jsxs("div",{className:"comment-head",children:[d.jsxs("span",{className:"comment-loc",children:[i.path,i.line!=null?`:${i.line}`:""]}),d.jsx("span",{className:`tag tag-${i.origin==="user"?"yours":S}`,children:S}),i.drifted?d.jsx("span",{className:"tag tag-drift",title:"The code this comment pointed at is gone from the diff, so it can't post inline.",children:"drifted — posts in the body"}):i.line==null&&d.jsx("span",{className:"tag tag-drift",title:"A comment with no line — either about the file as a whole, or on a line the PR removed, which GitHub can't take inline.",children:"on the file — posts in the body"}),!i.drifted&&i.originalLine!=null&&i.originalLine!==i.line&&d.jsxs("span",{className:"faint",title:"This comment followed its code to a new line.",children:["was :",i.originalLine]}),d.jsx("span",{className:"grow"}),!u&&(p?d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"btn btn-sm",onClick:()=>{a({body:g}),y(!1)},children:"save"}),d.jsx("button",{className:"btn btn-sm",onClick:()=>{m(i.body),y(!1)},children:"cancel"})]}):d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:`btn btn-sm${b?" btn-keep-on":""}`,title:"Keep this comment — it posts with the review",onClick:()=>a({status:b?"draft":"approved"}),children:[d.jsx(Ke,{name:"check"}),"keep"]}),d.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>y(!0),children:[d.jsx(Ke,{name:"edit"}),"edit"]}),d.jsxs("button",{className:`btn btn-sm${v?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>a({status:v?"draft":"dropped"}),children:[d.jsx(Ke,{name:"drop"}),v?"dropped":"drop"]}),s&&d.jsxs("button",{className:"btn btn-sm btn-accent",title:"Point the chat at this comment",onClick:s,children:[d.jsx(Ke,{name:"comment"}),"discuss"]}),i.origin==="user"&&d.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),d.jsx(HN,{comment:i,readOnly:u,onDecide:T=>a({raisedDecision:T})}),p?d.jsxs(d.Fragment,{children:[d.jsx("textarea",{className:"comment-edit",value:g,onChange:T=>m(T.target.value),rows:Math.max(3,g.split(`
248
+ `).length)}),d.jsx(Ps,{className:"comment-body",text:fg(g,i.severity??null)})]}):d.jsx(ai,{className:"comment-body prose",text:fg(i.body,i.severity??null)})]})}function qN({files:i,chapterId:a,onAdd:r}){const[s,u]=q.useState(!1),[f,p]=q.useState(i[0]??""),[y,g]=q.useState(""),[m,b]=q.useState("");return s?d.jsxs("div",{className:"add-comment",children:[d.jsxs("div",{className:"add-comment-row",children:[d.jsx("select",{value:f,onChange:v=>p(v.target.value),children:i.map(v=>d.jsx("option",{value:v,children:v},v))}),d.jsx("input",{placeholder:"line (optional)",value:y,onChange:v=>g(v.target.value.replace(/\D/g,"")),size:12})]}),d.jsx("textarea",{placeholder:"Your comment…",value:m,onChange:v=>b(v.target.value),rows:3}),d.jsx(Ps,{className:"comment-body",text:m}),d.jsxs("div",{className:"add-comment-row",children:[d.jsx("button",{className:"btn",disabled:!m.trim()||!f,onClick:()=>{r({path:f,line:y?Number(y):null,body:m.trim(),chapterId:a}),b(""),g(""),u(!1)},children:"add"}),d.jsx("button",{className:"btn",onClick:()=>u(!1),children:"cancel"})]})]}):d.jsxs("button",{className:"btn btn-dashed",onClick:()=>u(!0),children:[d.jsx(Ke,{name:"plus"}),"add a comment of your own"]})}const GN=2e3;function $N({chapter:i,n:a,diff:r,comments:s,open:u,heavy:f,onToggle:p,onUpdateComment:y,onDeleteComment:g,onAddComment:m,onDiscuss:b,onAskAboutLine:v,chatBusy:S,readOnly:T,anchorRef:_,flash:C,viewedState:A,sticky:R,stuck:$}){const[U,W]=q.useState(!1);q.useEffect(()=>{$||W(!1)},[$]);const z=R&&$&&u,ae=q.useRef(null),se=q.useRef(null);q.useEffect(()=>{const M=ae.current,Q=se.current;if(!R||!M||!Q)return;const pe=()=>M.style.setProperty("--chapter-head-h",`${Q.offsetHeight}px`);pe();const we=new ResizeObserver(pe);return we.observe(Q),()=>{we.disconnect(),M.style.removeProperty("--chapter-head-h")}},[R]);const x=()=>{p(),z&&requestAnimationFrame(()=>{var M;return(M=ae.current)==null?void 0:M.scrollIntoView({block:"start"})})},G=q.useMemo(()=>M_(r,i.files),[r,i.files]),ee=i.files.filter(M=>A.viewed.has(M)).length,ue=q.useMemo(()=>_y(G,s),[G,s]),Ee=q.useMemo(()=>new Set(ja(G).map(M=>M.path)),[G]),j=s.filter(M=>!ue.includes(M)&&!Ee.has(M.path)),le=s.filter(M=>ue.includes(M)||Ee.has(M.path)),fe=M=>d.jsx(Ty,{comment:M,onUpdate:Q=>y(M.id,Q),onDelete:()=>g(M.id),onDiscuss:b&&(()=>b({target:"comment",id:M.id})),readOnly:T,flash:C===M.id},M.id);return d.jsxs("section",{className:`chapter${R?" chapter-sticky":""}`,ref:M=>{ae.current=M,_(M)},children:[d.jsxs("header",{ref:se,className:`chapter-head${R?" chapter-head-sticky":""}${z?" chapter-head-stuck":""}`,onClick:x,children:[d.jsx("span",{className:"faint",children:u?"▾":"▸"}),d.jsxs("h3",{children:[a," · ",i.title]}),d.jsxs("span",{className:"faint chapter-meta",children:[i.files.length," file",i.files.length===1?"":"s",s.length>0?` · ${s.length} comment${s.length===1?"":"s"}`:" · no comments",ee>0&&` · ${ee}/${i.files.length} viewed`,f!=null&&!u&&d.jsx("span",{title:"Drawing this many lines at once would leave the page too slow to scroll. Open it if you want it — nothing else on the page is affected.",children:` · ${f.toLocaleString()} lines to draw, folded to keep the page quick`})]}),d.jsx("span",{className:"grow"}),R&&u&&d.jsx("button",{className:`btn btn-sm${z?"":" chapter-about-idle"}`,"aria-expanded":U,onClick:M=>{M.stopPropagation(),W(Q=>!Q)},children:U?"hide explanation":"what this chapter is about"}),b&&d.jsxs("button",{className:"btn btn-sm",onClick:M=>{M.stopPropagation(),b({target:"chapter",id:i.id})},children:[d.jsx(Ke,{name:"comment"}),"discuss"]}),z&&U&&d.jsx("div",{className:"chapter-head-about",onClick:M=>M.stopPropagation(),children:d.jsx(ai,{className:"prose",text:i.explanation})})]}),u&&d.jsxs("div",{className:"chapter-body",children:[d.jsx(ai,{className:"prose chapter-explanation",text:i.explanation}),j.map(fe),d.jsx(BN,{patch:G,comments:le,renderComment:fe,readOnly:T,chatBusy:S,onAddLineComment:(M,Q)=>m({path:M.path,line:M.side==="new"?M.line:null,body:Q,chapterId:i.id}),onAskAboutLine:v,viewedState:A}),!T&&i.files.length>0&&d.jsx(qN,{files:i.files,chapterId:i.id,onAdd:m})]})]})}function YN(i,a){switch(i.kind){case"summary":return"rewrote the summary";case"verdict":return`changed the verdict to ${i.verdict.recommendation.replace("_"," ")}`;case"chapter":{const r=a.chapters.find(s=>s.id===i.chapterId);return`rewrote the "${(r==null?void 0:r.title)??i.chapterId}" chapter`}case"comment-edit":{const r=a.comments.find(s=>s.id===i.commentId);return r?`rewrote the comment on ${r.path}:${r.line??"file"}`:"rewrote a comment"}case"comment-drop":{const r=a.comments.find(s=>s.id===i.commentId);return r?`dropped the comment on ${r.path}:${r.line??"file"}`:"dropped a comment"}case"comment-add":return`added a comment on ${i.path}:${i.line??"file"}`}}function Fd(i,a){var s;if(i.target==="summary")return"the summary";if(i.target==="verdict")return"the verdict";if(i.target==="chapter")return((s=a.chapters.find(u=>u.id===i.id))==null?void 0:s.title)??"a chapter";if(i.target==="line")return i.path==null||i.line==null?"a line of the diff":`${i.path}:${i.line}${i.side==="old"?" (removed)":""}`;const r=a.comments.find(u=>u.id===i.id);return r?`${r.path}:${r.line??"file"}`:"a comment"}function FN({turn:i,artifact:a}){return d.jsxs("div",{className:`chat-turn chat-turn-${i.role}`,children:[d.jsx("div",{className:"chat-turn-who",children:i.role==="user"?i.steer?"You, while it worked":"You":"Reviewer"}),i.refs.length>0&&d.jsx("div",{className:"chat-refs",children:i.refs.map((r,s)=>d.jsx("span",{className:"chat-ref",children:Fd(r,a)},s))}),d.jsx(ai,{className:"chat-turn-body prose",text:i.body}),i.revisions.map((r,s)=>d.jsxs("div",{className:"chat-revision",children:["↳ ",YN(r,a)]},s)),i.refused.map((r,s)=>d.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},s))]})}function PN({artifact:i,reviewKey:a,refs:r,onClearRefs:s,onDropRef:u,onArtifact:f,readOnly:p,inputRef:y,anchorRef:g}){var Ee;const[m,b]=q.useState(""),[v,S]=q.useState(!1),[T,_]=q.useState(null),[C]=wy(),A=i.chat??[],R=i.pendingChat??null,$=R!=null&&R.error==null,U=v||$,W=q.useRef(null),z=q.useRef(!0),ae=()=>{const j=W.current;j&&(j.scrollTop=j.scrollHeight)},se=R!=null;q.useLayoutEffect(()=>{z.current=!0,ae()},[a,A.length,se,(Ee=R==null?void 0:R.steers)==null?void 0:Ee.length,R==null?void 0:R.error]),q.useLayoutEffect(()=>{z.current&&ae()},[R==null?void 0:R.progress.length]);const x=A.length>0||se;q.useEffect(()=>{const j=W.current;if(!j)return;const le=new ResizeObserver(()=>z.current&&ae());return le.observe(j),()=>le.disconnect()},[x]);const G=(j,le,fe)=>{!j||U||(S(!0),_(null),Dd(a,{message:j,refs:le}).then(M=>{f(M),fe==null||fe()}).catch(M=>_(String(M.message??M))).finally(()=>S(!1)))},ee=j=>{S(!0),_(null),b0(a,j).then(le=>{var fe;f(le),b(""),(fe=y.current)==null||fe.focus()}).catch(le=>_(String(le.message??le))).finally(()=>S(!1))},ue=()=>{const j=m.trim();if(!(!j||v)){if($)return ee(j);G(j,r,()=>{var le;b(""),s(),(le=y.current)==null||le.focus()})}};return d.jsxs("section",{className:"card chat-panel",ref:g,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"talk to the reviewer"}),d.jsx("span",{className:"faint",children:"it revises the draft as you go · nothing here reaches GitHub — only send does"})]}),d.jsxs("div",{className:"card-body",children:[x&&d.jsxs("div",{className:"chat-log",ref:W,onScroll:j=>{const le=j.currentTarget;z.current=le.scrollHeight-le.scrollTop-le.clientHeight<24},children:[A.map(j=>d.jsx(FN,{turn:j,artifact:i},j.id)),R&&d.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[d.jsx("div",{className:"chat-turn-who",children:"You"}),R.refs.length>0&&d.jsx("div",{className:"chat-refs",children:R.refs.map((j,le)=>d.jsx("span",{className:"chat-ref",children:Fd(j,i)},le))}),d.jsx(ai,{className:"chat-turn-body prose",text:R.message}),(R.steers??[]).map((j,le)=>d.jsxs("div",{className:"chat-steer",children:[d.jsx("div",{className:"chat-turn-who",children:"You, while it worked"}),d.jsx(ai,{className:"chat-turn-body prose",text:j})]},le)),R.error?d.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",R.error,!p&&d.jsxs(d.Fragment,{children:[" ",d.jsx("button",{className:"btn btn-sm",onClick:()=>G([R.message,...R.steers??[]].join(`
249
+
250
+ `),R.refs),children:"ask again"})," ",d.jsx("button",{className:"btn btn-sm",onClick:()=>y0(a).then(f).catch(j=>_(String(j.message??j))),children:"dismiss"})]})]}):d.jsx("div",{className:"chat-waiting",children:R.progress.length>0?d.jsx("ol",{className:"chat-progress",children:R.progress.map((j,le)=>d.jsx("li",{className:le===R.progress.length-1?"now":void 0,children:j},le))}):"Thinking… it re-reads the code before answering."})]})]}),p?d.jsx("p",{className:"faint",children:"This review was sent — the conversation is kept as a record, but it can't continue."}):d.jsxs(d.Fragment,{children:[r.length>0&&d.jsxs("div",{className:"chat-refs chat-refs-pending",children:[d.jsx("span",{className:"faint",children:"about:"}),r.map((j,le)=>d.jsxs("button",{className:"chat-ref",onClick:()=>u(le),title:"Remove",children:[Fd(j,i)," ✕"]},le))]}),d.jsx("textarea",{ref:y,className:"chat-input",rows:2,value:m,readOnly:v,placeholder:$?"steer it — it reads this before its next step":A.length===0?"the summary restates the author's claims — say what you actually verified":"say more…",onChange:j=>b(j.target.value),title:C==="enter"?"Enter sends · Shift+Enter for a new line":"⌘↵ sends · Enter for a new line",onKeyDown:j=>{RN(C,{...j,isComposing:j.nativeEvent.isComposing})&&(j.preventDefault(),ue())}}),d.jsx(Ps,{className:"chat-turn-body",text:m}),d.jsxs("div",{className:"chat-actions",children:[d.jsxs("button",{className:"btn btn-dark",onClick:ue,disabled:v||m.trim()==="",title:$?"Add this to the turn it's working on":void 0,children:[d.jsx(Ke,{name:"send"}),v?"sending…":$?"steer":"send message",d.jsx(za,{children:C==="enter"?"↵":"⌘↵"})]}),d.jsx("span",{className:"grow"}),i.preChat&&d.jsx("button",{className:"btn btn-sm",disabled:U,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{S(!0),v0(a).then(f).catch(j=>_(String(j.message??j))).finally(()=>S(!1))},children:"reset the review"})]})]}),T&&d.jsx("div",{className:"error",children:T})]})]})}function Ay(i){const a=q.useRef(null),r=q.useCallback(()=>{const s=a.current;s&&(s.style.height="auto",s.style.height=`${Math.min(s.scrollHeight+2,window.innerHeight*.7)}px`)},[]);return q.useEffect(r,[i,r]),q.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),a}function KN({initial:i,onSave:a,onCancel:r}){const[s,u]=q.useState(i),[f,p]=q.useState(!1),[y,g]=q.useState(null),m=Ay(s),b=()=>{f||(p(!0),g(null),a(s).catch(v=>{g(String((v==null?void 0:v.message)??v)),p(!1)}))};return d.jsxs("div",{className:"body-edit-wrap",children:[d.jsx("textarea",{ref:m,className:"body-edit",autoFocus:!0,value:s,onChange:v=>u(v.target.value),rows:10,onKeyDown:v=>{v.key==="Enter"&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),b()),v.key==="Escape"&&!f&&r()}}),d.jsx(Ps,{className:"body-md",text:s}),y&&d.jsx("p",{className:"error",children:y}),d.jsxs("div",{className:"card-actions",children:[d.jsxs("button",{className:"btn btn-sm",onClick:b,disabled:f,children:[f?"saving…":"save this body",d.jsx(za,{children:"⌘↵"})]}),d.jsx("button",{className:"btn btn-sm",onClick:r,disabled:f,children:"cancel"}),d.jsx("span",{className:"faint",children:"this is exactly what posts — the review above stays as it reads"})]})]})}const ZN=i=>i?`@${i} — handing this review over to you.`:"";function XN({artifact:i,reviewKey:a,onConfirm:r,onCancel:s}){const[u]=q.useState(iy),[f,p]=q.useState(""),[y,g]=q.useState(""),[m,b]=q.useState(!1),[v,S]=q.useState(!1),[T,_]=q.useState(null),[C,A]=q.useState(null),[R,$]=q.useState(null),[U,W]=q.useState(!1),[z,ae]=q.useState(null),[se,x]=q.useState(null),[G,ee]=q.useState(!1),[ue,Ee]=q.useState(-1),j=Ay(y),le=q.useRef(null),fe=Ld(f),M=ay(fe),Q=i.summary!==""||i.comments.length>0,pe=!Tb(i)&&Q,we=Tb(i)&&i.sent==null&&Q,De=U?JSON.stringify([i.bodyOverride,i.summary,i.chapters.map(X=>[X.title,X.explanation]),i.comments.map(X=>{var be,xe;return[X.path,X.line,X.body,X.severity,X.status,X.drifted,(be=X.alreadyRaised)==null?void 0:be.decision,(xe=X.alreadyRaised)==null?void 0:xe.where]})]):"";q.useEffect(()=>{if(!U)return;let X=!1;return x(null),ae(null),ey(a,"COMMENT").then(be=>!X&&ae(be)).catch(be=>{X||(ae(null),x(String((be==null?void 0:be.message)??be)))}),()=>{X=!0}},[U,a,De]);const w=!U||z!=null;q.useEffect(()=>{var X;ue<0||(X=document.getElementById(`handoff-option-${ue}`))==null||X.scrollIntoView({block:"nearest"})},[ue]);const L=q.useMemo(()=>C0(C??[],u),[C,u]),I=q.useMemo(()=>M0(L,f),[L,f]);q.useEffect(()=>{let X=!1;return S0(a).then(be=>!X&&A(be.logins)).catch(be=>!X&&$(String((be==null?void 0:be.message)??be))),()=>{X=!0}},[a]);const oe=X=>{p(X),m||g(ZN(Ld(X)))},me=X=>{oe(X),ee(!1),Ee(-1)};q.useLayoutEffect(()=>{var X;(X=le.current)==null||X.showModal()},[]);const ve=()=>{v||!M||!w||(S(!0),_(null),r(fe,y.trim(),U).catch(X=>{_(String((X==null?void 0:X.message)??X)),S(!1)}))};return d.jsx("dialog",{className:"handoff-dialog",ref:le,"aria-label":`Hand off ${i.id}`,onCancel:X=>{X.preventDefault(),v||s()},onClick:X=>{X.target===le.current&&!v&&s()},children:d.jsxs("div",{className:"handoff-body",children:[d.jsxs("div",{className:"send-top",children:[d.jsx("span",{className:"lab",children:"hand off"}),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:i.id})]}),d.jsxs("div",{className:"handoff-who",children:[d.jsx("span",{className:"handoff-at",children:"@"}),d.jsxs("div",{className:"handoff-combo",children:[d.jsx("input",{className:"handoff-login",autoFocus:!0,value:f,spellCheck:!1,placeholder:"github login",role:"combobox","aria-expanded":G&&I.length>0,"aria-controls":"handoff-options","aria-autocomplete":"list","aria-activedescendant":ue>=0?`handoff-option-${ue}`:void 0,onFocus:()=>ee(!0),onBlur:()=>ee(!1),onChange:X=>{oe(X.target.value),ee(!0),Ee(0)},onKeyDown:X=>{const be=G&&I.length>0;if(X.key==="ArrowDown"||X.key==="ArrowUp"){if(X.preventDefault(),!be)return ee(!0);const xe=X.key==="ArrowDown"?1:-1;Ee(Ge=>(Ge+xe+I.length)%I.length);return}if(X.key==="Enter"){const xe=be&&ue>=0?I[ue]:void 0;xe&&xe.login.toLowerCase()!==fe.toLowerCase()?me(xe.login):ve();return}X.key==="Escape"&&be&&(X.preventDefault(),ee(!1),Ee(-1))}}),G&&I.length>0&&d.jsx("ul",{className:"handoff-options",id:"handoff-options",role:"listbox",children:I.map((X,be)=>d.jsxs("li",{id:`handoff-option-${be}`,role:"option","aria-selected":be===ue,className:be===ue?"on":void 0,onMouseEnter:()=>Ee(be),onMouseDown:xe=>{xe.preventDefault(),me(X.login)},children:[d.jsxs("span",{className:"handoff-option-login",children:["@",X.login]}),X.recent&&d.jsx("span",{className:"faint",children:"handed to before"})]},X.login))})]})]}),R&&d.jsx("p",{className:"faint handoff-who-note",children:"cerber could not read who this repo takes reviews from — type the login instead."}),d.jsx("textarea",{ref:j,className:"body-edit",rows:2,value:y,onChange:X=>{b(!0),g(X.target.value)},onKeyDown:X=>{X.key==="Enter"&&(X.metaKey||X.ctrlKey)&&(X.preventDefault(),ve())}}),d.jsxs("div",{className:"body-source",children:[d.jsx("span",{className:"faint",children:y.trim()?"goes on the PR as a plain comment, not a review":"nothing will be posted — only the review request moves"}),y.trim()!==""&&d.jsx("button",{className:"link",onClick:()=>{b(!0),g("")},disabled:v,children:"post no note"})]}),we&&d.jsx("p",{className:"faint handoff-says",children:"You already reviewed this PR, so this draft can't ride along — a handoff that carried it would be your second review. Send it yourself if that is what you mean."}),pe&&d.jsxs("div",{className:"handoff-with-review",children:[d.jsxs("label",{children:[d.jsx("input",{type:"checkbox",checked:U,disabled:v,onChange:X=>W(X.target.checked)}),d.jsxs("span",{children:["also post the review — ",d.jsx("span",{className:"faint",children:$d(i)})]})]}),U&&d.jsxs(d.Fragment,{children:[d.jsxs("p",{className:"faint",children:["Posts as a ",d.jsx("strong",{children:"comment"}),", never an approval or a change request: you are handing over the verdict, so it is @",M?fe:"them","'s to make. The findings keep their grades."]}),se?d.jsxs("p",{className:"error",children:["cerber could not build the body this would post, so it will not post one:"," ",se]}):z?d.jsx("pre",{className:"body-preview",children:z.body}):d.jsx("p",{className:"faint",children:"building the body…"})]})]}),T&&d.jsx("p",{className:"error",children:T}),d.jsxs("p",{className:"faint handoff-says",children:[M?d.jsxs(d.Fragment,{children:["@",fe]}):"They"," will be asked for this review and you will be taken off it."," ",U?"This row goes under sent, with the review on the PR.":i.sent?"This row stays under sent.":"This row is filed under settled, and comes back if anybody asks you again."]}),d.jsxs("div",{className:"card-actions",children:[d.jsxs("button",{className:"btn btn-sm",onClick:ve,disabled:v||!M||!w,children:[d.jsx(Ke,{name:"arrowRight"}),v?"handing over…":M?`hand off to @${fe}`:"hand off",d.jsx(za,{children:"⌘↵"})]}),d.jsx("button",{className:"btn btn-sm",onClick:s,disabled:v,children:"cancel"})]})]})})}function VN({artifact:i,reviewKey:a,event:r,own:s,sending:u,checking:f,onSend:p,error:y,footer:g,next:m,onAdvance:b,onBody:v,anchorRef:S}){const[T,_]=q.useState(null),[C,A]=q.useState(null),[R,$]=q.useState(i.bodyOverride!=null),[U,W]=q.useState(!1),z=i.bodyOverride!=null,ae=i.priorSends??[];q.useEffect(()=>{z&&$(!0)},[z]);const se=R&&!U?JSON.stringify([i.bodyOverride,i.summary,i.chapters.map(x=>[x.title,x.explanation]),i.comments.map(x=>{var G,ee;return[x.path,x.line,x.body,x.severity,x.status,x.drifted,(G=x.alreadyRaised)==null?void 0:G.decision,(ee=x.alreadyRaised)==null?void 0:ee.where]})]):"";return q.useEffect(()=>{if(!R||U)return;let x=!1;return _(null),A(null),ey(a,r).then(G=>{x||(_(G),A(null))}).catch(G=>{x||A(String(G))}),()=>{x=!0}},[a,r,se,R,U]),i.sent?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"sent-strip",ref:S,children:[d.jsxs("strong",{children:["✔ sent as ",Gd[i.sent.event]]}),d.jsxs("span",{className:"faint",children:[new Date(i.sent.at).toLocaleString()," · ",$d(i),i.sent.auto?" · auto-sent by the daemon":"",ae.length>0?` · review ${Ab(i)} on this PR`:""]}),d.jsx("span",{className:"grow"}),i.sent.url&&d.jsxs("a",{href:i.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",d.jsx(Ke,{name:"external"})]}),d.jsxs("button",{className:"btn",onClick:b,children:[m?`next review: ${m.pr.repo}#${m.pr.number}`:"back to the queue",d.jsx(Ke,{name:"arrowRight"})]})]}),d.jsx("div",{className:"post-actions",children:g})]}):d.jsxs("div",{className:"send-panel",ref:S,children:[d.jsxs("div",{className:"send-top",children:[d.jsx("span",{className:"lab",children:"send to github"}),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:$d(i)}),d.jsxs("button",{className:"link",onClick:()=>$(!R),disabled:U,title:U?"save or cancel the body you are writing first":void 0,children:[d.jsx(Ke,{name:"eye"}),R?"hide what gets posted":"see what gets posted"]})]}),s&&Ey(i.verdict)!=="COMMENT"&&d.jsx("p",{className:"send-note",children:"This is your own PR, and GitHub takes no approve or change request from its author — so it posts as a comment."}),ae.length>0&&d.jsxs("p",{className:"send-note",children:["This posts review ",Ab(i)+1," on this PR. What you sent before stays on GitHub — a new one sits beside it rather than replacing it."]}),d.jsx("div",{className:"send-action",children:d.jsxs("button",{className:`send-btn tone-bg-${EN[r]}`,disabled:u||f,onClick:p,children:[d.jsx(Ke,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),u?"sending…":f?"checking what others already raised…":`${Gd[r]} on ${i.id}`," ",d.jsx(za,{children:"s"})]})}),y&&d.jsx("p",{className:"error",children:y}),R&&d.jsxs(d.Fragment,{children:[C&&d.jsx("p",{className:"error",children:C}),T?U?d.jsx(KN,{initial:T.body,onSave:x=>v(x).then(()=>W(!1)),onCancel:()=>W(!1)}):d.jsxs(d.Fragment,{children:[d.jsx("pre",{className:"body-preview",children:T.body}),d.jsxs("div",{className:"body-source",children:[z?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"faint",children:"you wrote this body — it no longer follows the summary or the comments"}),d.jsx("button",{className:"link",onClick:()=>v(null).catch(x=>A(String((x==null?void 0:x.message)??x))),children:"build it from the review again"})]}):d.jsx("span",{className:"faint",children:"built from the summary, the walkthrough and the folded comments"}),d.jsxs("button",{className:"link",onClick:()=>W(!0),children:[d.jsx(Ke,{name:"edit"}),z?"keep editing it":"write it yourself"]})]})]}):!C&&d.jsx("p",{className:"faint",children:"building the body…"})]}),d.jsx("div",{className:"send-footer",children:g})]})}function Cb({sends:i}){const a=i[i.length-1],r=i.length===1,s=f=>new Date(f).toLocaleDateString(),u=Gd[a.event];return d.jsxs("div",{children:[d.jsxs("strong",{children:["You already sent ",r?"a review":`${i.length} reviews`," on this PR",r?"":", the last"," on ",s(a.at),r?` — ${u}`:` as ${u}`,"."]})," ",a.url?d.jsx("a",{href:a.url,target:"_blank",rel:"noreferrer",children:r?"It is still on GitHub":"The last is still on GitHub"}):r?"It is still on GitHub":"The last is still on GitHub",", untouched by the draft below — a re-review replaces what cerber holds, never what was posted. Sending this one would be review ",i.length+1,"."]})}function QN({filed:i}){var s,u,f;const a=((s=i.review)==null?void 0:s.url)??((u=i.reply)==null?void 0:u.url)??null,r=p=>new Date(p).toLocaleDateString();return i.reason==="own-reply"&&i.reply?d.jsxs("div",{children:[d.jsxs("strong",{children:["You answered on this PR on ",r(i.reply.at),", and nobody has replied since."]})," ","So cerber filed this draft under settled: GitHub does not count a"," ",a?d.jsx("a",{href:a,target:"_blank",rel:"noreferrer",children:"comment"}):"comment"," ","as a review, but the PR is with its author either way. Nothing here was changed or sent — the draft is still yours to send."]}):i.reason==="request-withdrawn"?d.jsxs("div",{children:[d.jsx("strong",{children:"Nobody is asking for this review any more."})," The request that put this PR in the inbox was taken back on or before ",r(i.at),", and you had said nothing on the PR, so cerber filed the draft under settled rather than leaving it out for you. Nothing here was changed or sent — the draft is still yours to send."]}):d.jsxs("div",{children:[d.jsxs("strong",{children:["You reviewed this PR on GitHub on ",r(((f=i.review)==null?void 0:f.at)??i.at),"."]})," ","So cerber filed this draft under settled, GitHub having stopped asking you for a review and shown one of your own"," ",a?d.jsx("a",{href:a,target:"_blank",rel:"noreferrer",children:"already on the PR"}):"already on the PR",". Nothing here was changed or sent — the draft is still yours to send."]})}function WN({entries:i,open:a,onToggle:r,anchorRef:s}){const u=f=>{const p=new Date(f);return Number.isNaN(p.getTime())?f:`${p.toLocaleDateString(void 0,{month:"short",day:"2-digit"})} ${p.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}`};return d.jsxs("section",{className:"card",ref:s,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"history"}),d.jsx("span",{className:"faint",children:i.length>0?`${i.length} entr${i.length===1?"y":"ies"} — what cerber did to this row, and when`:"nothing recorded"}),d.jsx("span",{className:"grow"}),d.jsxs("button",{className:"btn btn-sm","aria-expanded":a,onClick:r,children:[d.jsx(Ke,{name:a?"up":"down",size:12}),a?"hide":"show"]})]}),a&&d.jsx("div",{className:"card-body",children:i.length===0?d.jsx("div",{className:"faint",children:"This review predates cerber keeping a history — it starts at the next thing that happens to it."}):d.jsx("ol",{className:"history",children:i.map((f,p)=>({e:f,i:p})).reverse().map(({e:f,i:p})=>d.jsxs("li",{className:"history-row",title:f.at,children:[d.jsx("span",{className:"history-at",children:u(f.at)}),d.jsx("span",{className:"history-by",children:f.by}),d.jsx("span",{className:"history-what",children:f.what}),f.cause&&d.jsx("span",{className:"history-cause",children:f.cause})]},`${p}-${f.at}`))})})]})}function JN({handoff:i,sent:a,hasDraft:r}){const s=new Date(i.at).toLocaleDateString();return d.jsxs("div",{children:[d.jsxs("strong",{children:["You handed this to @",i.to," on ",s,"."]})," ","GitHub asks them for this review now",i.withdrewYours?" and no longer asks you":" — but cerber could not take your own request off, so it is asking both of you","."," ",i.note?i.note.url?d.jsxs(d.Fragment,{children:["A"," ",d.jsx("a",{href:i.note.url,target:"_blank",rel:"noreferrer",children:"note"})," ","on the PR says so."]}):d.jsx(d.Fragment,{children:"A note on the PR says so."}):d.jsx(d.Fragment,{children:"No note was posted — only the request moved."})," ",a?d.jsx(d.Fragment,{children:"Your review of it is on the PR — the draft below is what went."}):r?d.jsx(d.Fragment,{children:"The draft below was never sent. It is still yours to read, or to send."}):d.jsx(d.Fragment,{children:"Nothing was drafted here, and nothing was sent."})]})}function ex({artifact:i,freshness:a,rerunning:r,onRerun:s}){const u=i.status==="running",f=(a==null?void 0:a.prState)??i.pr.state,p=f==="CLOSED"||f==="MERGED",y=i.refresh,g=a!=null&&a.changed?y:null,m=!p&&_N(i,a)?i.sent:null;if(u)return d.jsxs("div",{className:"freshness",children:[(i.sent?[]:i.priorSends??[]).length>0&&d.jsx(Cb,{sends:i.priorSends??[]}),d.jsxs("div",{className:"freshness-running",children:[d.jsx("strong",{children:"Re-reviewing…"})," Claude is reading the current head. This page updates itself when the run lands — it takes a few minutes."]})]});const b=i.filed,v=i.handoff,S=i.sent?[]:i.priorSends??[];return!p&&!g&&!m&&!b&&!v&&S.length===0?null:d.jsxs("div",{className:"freshness",children:[S.length>0&&d.jsx(Cb,{sends:S}),v&&d.jsx(JN,{handoff:v,sent:i.sent,hasDraft:i.summary!==""||i.comments.length>0}),b&&d.jsx(QN,{filed:b}),p&&d.jsxs("div",{children:[d.jsxs("strong",{children:["This PR is ",f==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),g&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",d.jsx("code",{children:g.toSha.slice(0,7)}),", reviewed at"," ",d.jsx("code",{children:g.fromSha.slice(0,7)}),"."," ",g.moved>0&&d.jsxs(d.Fragment,{children:[g.moved," comment(s) followed the code. "]}),g.drifted>0&&d.jsxs(d.Fragment,{children:[g.drifted," could not — the code they point at is gone, so they will post in the review body instead of inline."," "]}),"The summary and verdict still describe the commit that was reviewed.",!i.sent&&d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>s(),children:r?"starting…":"re-review at the new head"})]}),m&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since you sent this review."})," ",(a==null?void 0:a.headSha)&&i.pr.headSha&&d.jsxs(d.Fragment,{children:["Now at ",d.jsx("code",{children:a.headSha.slice(0,7)}),", sent at"," ",d.jsx("code",{children:i.pr.headSha.slice(0,7)}),"."," "]}),"What you sent stays exactly as it was posted — cerber never re-anchors a review that is already on GitHub. Answering the new commits means a new draft, which replaces this one here and leaves what was posted alone.",d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>s(),children:r?"starting…":"re-review at the new head"})]})]})}function tx({reviewKey:i}){var Wt,Gn,Xn,Vn,ut;const[a,r]=q.useState(null),[s,u]=q.useState(null),[f,p]=q.useState(null),[y,g]=q.useState(null),[m,b]=q.useState(!1),[v,S]=q.useState([]),[T,_]=q.useState(!1),[C,A]=q.useState(new Set),R=Y=>A(de=>new Set(de).add(Y)),[$,U]=q.useState(!1),[W,z]=q.useState([]),ae=q.useRef(null),[se,x]=q.useState(new Set),[G,ee]=q.useState(new Set),ue=q.useRef(Promise.resolve()),Ee=q.useRef(0),[j,le]=q.useState(0),fe=q.useRef(new Map),[M]=vy(),[Q,pe]=q.useState(null),we=q.useRef(null),De=q.useRef(null),w=q.useRef(null),L=q.useRef(null),I=q.useRef(null),oe=q.useRef(null),[me,ve]=q.useState(!1),X=q.useRef(null),[be,xe]=q.useState(!1),[Ge,$e]=q.useState(!1),[Ce,St]=q.useState(null),[Ze,In]=q.useState(null);q.useEffect(()=>{if(!Ze)return;const Y=setTimeout(()=>In(null),1800);return()=>clearTimeout(Y)},[Ze]);const Je=Y=>{var de,Ne;z(F=>F.some(ge=>ge.target===Y.target&&ge.id===Y.id)?F:[...F,Y]),(de=ae.current)==null||de.scrollIntoView({behavior:"smooth",block:"center"}),(Ne=ae.current)==null||Ne.focus()};q.useEffect(()=>{let Y=!1;return window.scrollTo({top:0}),r(null),u(null),p(null),g(null),St(null),$e(!1),_(!1),mg(i).then(de=>{if(!Y)return r(de),_(de.own===!0),g0(i).then(Ne=>{Y||(p(Ne),Ne.changed&&r(Ne.artifact))}).catch(Ne=>!Y&&g(String(Ne.message??Ne))).then(()=>{if(!(Y||de.sent||de.status==="running"||de.comments.length===0))return $e(!0),_0(i).then(Ne=>!Y&&r(Ne)).catch(()=>{}).finally(()=>!Y&&$e(!1))})}).catch(de=>!Y&&u(String(de))),()=>{Y=!0}},[i]),q.useEffect(()=>{So().then(S).catch(()=>{})},[]),q.useEffect(()=>{const Y=X.current;if(!Y)return;const de=()=>document.documentElement.style.setProperty("--top-h",`${Y.offsetHeight}px`);de();const Ne=new ResizeObserver(de);return Ne.observe(Y),()=>{Ne.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[a==null?void 0:a.id]);const Ln=(a==null?void 0:a.pendingChat)!=null&&a.pendingChat.error==null,Hn=q.useRef(null),It=((Wt=a==null?void 0:a.raisedCheck)==null?void 0:Wt.checkingSince)!=null||Ge;q.useEffect(()=>{if((a==null?void 0:a.status)!=="running"&&!Ln&&!It)return;const Y=setInterval(()=>{mg(i).then(de=>{var Ne;if(r(de),_(de.own===!0),de.status!=="running"){b(!1);const F=Hn.current;F!=null&&de.sent&&(((Ne=de.run)==null?void 0:Ne.startedAt)??"none")===F&&u("The re-review didn't start, so nothing here changed — the review you sent is untouched. The history below says why."),Hn.current=null}}).catch(()=>{})},3e3);return()=>clearInterval(Y)},[a==null?void 0:a.status,Ln,It,i]);const Rt=(a==null?void 0:a.sent)!=null,on=q.useMemo(()=>H_(v,i,C),[v,i,C]),yn=on.findIndex(Y=>Y.key===i),Ft=(yn>0?on[yn-1]:null)??null,je=(yn>=0&&yn<on.length-1?on[yn+1]:null)??null,Lt=Y=>{window.location.hash=`#/r/${encodeURIComponent(Y)}`},vt=()=>{je?Lt(je.key):window.location.hash="#/"},Ot=q.useMemo(()=>{if(!a)return[];const Y=j_(a.diff,a.chapters);return Y.length>0?[...a.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:Y}]:a.chapters},[a]);q.useEffect(()=>{let Y=0;const de=()=>{var dt;Y=0;const ge=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--top-h"))||0,Ie=ge+16;let Fe=null;for(const gt of Ot){const Bt=(dt=fe.current.get(gt.id))==null?void 0:dt.getBoundingClientRect();Bt&&Bt.top<=Ie&&Bt.bottom>Ie&&(Fe={id:gt.id,stuck:Bt.top<ge-1})}pe(gt=>(gt==null?void 0:gt.id)===(Fe==null?void 0:Fe.id)&&(gt==null?void 0:gt.stuck)===(Fe==null?void 0:Fe.stuck)?gt:Fe)},Ne=()=>{Y||(Y=requestAnimationFrame(de))};de(),window.addEventListener("scroll",Ne,{passive:!0}),window.addEventListener("resize",Ne);const F=new ResizeObserver(Ne);return F.observe(document.body),()=>{cancelAnimationFrame(Y),window.removeEventListener("scroll",Ne),window.removeEventListener("resize",Ne),F.disconnect()}},[Ot]);const Tn=q.useMemo(()=>{const Y=U_((a==null?void 0:a.diff)??""),de=new Set(ja((a==null?void 0:a.diff)??"").filter(F=>pf(F.path)&&mf(F.patch).isNew).map(F=>F.path)),Ne=F=>{const ge=Y.get(F)??0;return de.has(F)?Math.round(ge/4):ge};return new Map(Ot.map(F=>[F.id,F.files.reduce((ge,Ie)=>ge+Ne(Ie),0)]))},[a==null?void 0:a.diff,Ot]),zn=Y=>{const de=Tn.get(Y)??0;return de>GN?de:null},An=Y=>se.has(Y)?zn(Y)!=null:zn(Y)==null,jn=Y=>x(de=>{const Ne=new Set(de);return Ne.has(Y)?Ne.delete(Y):Ne.add(Y),Ne});q.useEffect(()=>{x(new Set),ee(new Set)},[i]);const Rn=q.useMemo(()=>Object.fromEntries(ja((a==null?void 0:a.diff)??"").map(Y=>[Y.path,B_(Y.patch)])),[a==null?void 0:a.diff]),cn=q.useMemo(()=>new Set(Object.keys(Rn).filter(Y=>{var de;return((de=a==null?void 0:a.viewed)==null?void 0:de[Y])===Rn[Y]})),[Rn,a==null?void 0:a.viewed]),qt={viewed:cn,peeked:G,onToggleViewed:Y=>{const de=cn.has(Y)?null:Rn[Y]??null;ee(F=>{const ge=new Set(F);return ge.delete(Y),ge}),r(F=>{if(!F)return F;const ge={...F.viewed};return de===null?delete ge[Y]:ge[Y]=de,{...F,viewed:ge}});const Ne=++Ee.current;ue.current=ue.current.then(()=>d0(i,Y,de)).then(F=>{Ne===Ee.current&&r(ge=>ge&&ge.id===F.id?{...ge,viewed:F.viewed}:ge)}).catch(F=>u(String(F)))},onTogglePeek:Y=>ee(de=>{const Ne=new Set(de);return Ne.has(Y)?Ne.delete(Y):Ne.add(Y),Ne})},la=Y=>{const de=Ot[Y];return de?(le(Y),An(de.id)||jn(de.id),de):null},un=(...Y)=>{for(const de of Y)if(de.current)return de.current.scrollIntoView({behavior:"smooth",block:"start"})},hn=Y=>{var Ne;const de=la(Y);de&&((Ne=fe.current.get(de.id))==null||Ne.scrollIntoView({behavior:"smooth",block:"start"}))},qe=(Y,de)=>{var F;la(Y);const Ne=(F=a==null?void 0:a.comments.find(ge=>ge.id===de))==null?void 0:F.path;Ne&&cn.has(Ne)&&ee(ge=>new Set(ge).add(Ne)),In(de),Ny(de)},pn=T,Pt=Ey(a==null?void 0:a.verdict,pn);q.useEffect(()=>St(null),[Pt]);const Gt=()=>{!a||a.sent||be||It||(xe(!0),St(null),E0(i,Pt).then(({replyError:Y,...de})=>{r(de),Y&&St(`Sent — but ${Y}`),R(i)}).catch(Y=>St(String(Y.message??Y))).finally(()=>xe(!1)))};if(q.useEffect(()=>{const Y=de=>{DN(de.target)||de.metaKey||de.ctrlKey||de.altKey||(de.key==="["&&Ft?Lt(Ft.key):de.key==="]"&&je?Lt(je.key):de.key==="n"?hn(Math.min(Ot.length-1,j+1)):de.key==="N"?hn(Math.max(0,j-1)):de.key==="s"&&!Rt&&Gt())};return window.addEventListener("keydown",Y),()=>window.removeEventListener("keydown",Y)},[Ft==null?void 0:Ft.key,je==null?void 0:je.key,Ot,j,Rt,Pt,a==null?void 0:a.sent,be,It]),s&&!a)return d.jsx("p",{className:"error pad",children:s});if(!a)return d.jsx("p",{className:"muted pad",children:"Loading…"});const k=Y=>{var de;b(!0),u(null),Hn.current=a.sent?((de=a.run)==null?void 0:de.startedAt)??"none":null,Jb(i,Y).then(r).catch(Ne=>{u(String(Ne)),b(!1)})},te=Y=>Y.then(r).catch(de=>u(String(de))),ye=Y=>ro(i,{status:Y}).then(()=>{R(i),vt()}).catch(de=>u(String(de))),ze=(Y,de,Ne)=>w0(i,{to:Y,note:de,postReview:Ne}).then(({artifact:F,noteError:ge,sendError:Ie,replyError:Fe})=>{O0(Y),r(F),U(!1),R(i);const dt=[Ie&&`the review did not post: ${Ie}`,Fe,ge&&`the note did not post: ${ge}`].filter(Boolean);dt.length>0?u(`Handed to @${Y}, but ${dt.join("; and ")}`):vt()}),Qe=(Y,de)=>te(f0(i,Y,de)),et=Y=>te(p0(i,Y)),Ae=Y=>te(h0(i,Y)),Se=a.comments.filter(Y=>!Y.chapterId||!Ot.some(de=>de.id===Y.chapterId)),{inline:Ue,folded:Ct,dropped:mt,held:qn,replies:sa}=Sy(a),Na=a.comments.filter(Y=>Y.alreadyRaised&&Y.status!=="dropped").length,dn=a.comments.filter(Y=>Y.status!=="dropped"&&Y.drifted).length,wt=a.verdict?Rb[a.verdict.recommendation]:"none",Kt=xN(a),tt=NN(a),vn=a.pendingChat!=null&&a.pendingChat.error==null,Ua=a.status==="running"||vn,ba=()=>te(Dd(i,{message:"Some findings were dropped, edited or re-graded after this review was drafted. Update the summary and verdict to match what still stands — do not re-review the whole PR.",refs:[{target:"verdict",id:null}]})),xa=(Y,de)=>{te(Dd(i,{message:de,refs:[{target:"line",id:null,path:Y.path,line:Y.line,side:Y.side}]}).then(Ne=>{var F;return(F=L.current)==null||F.scrollIntoView({behavior:"smooth",block:"start"}),Ne}))},ra=(Gn=a.run)!=null&&Gn.trusted?"ran the code":(Xn=a.run)!=null&&Xn.withSource?"read the full source":a.run?"read the diff only":"no run yet",Ta=Y=>{var de;return d.jsxs("button",{className:`verdict-pick${((de=a.verdict)==null?void 0:de.recommendation)===Y?` verdict-pick-on tone-${Rb[Y]}`:""}`,title:Y==="approve"?"Approve":Y==="comment"?"Comment without blocking":"Request changes",onClick:()=>te(ro(i,{verdictRecommendation:Y})),children:[d.jsx(Ke,{name:CN[Y]}),Y.replace("_"," ")]},Y)};return d.jsxs("div",{className:"review",children:[d.jsxs("div",{className:"review-top",ref:X,children:[d.jsx("div",{className:"crumb",children:d.jsxs("div",{className:"bar-inner",children:[d.jsx("a",{href:"#/",children:"← queue"}),d.jsx("span",{className:"crumb-sep",children:"/"}),d.jsx("span",{className:"crumb-slug",children:a.id}),d.jsxs("span",{className:"walk",children:[d.jsx("button",{className:"walk-btn",disabled:!Ft,title:Ft?`[ — ${Ft.id}: ${Ft.pr.title}`:"no more reviews this way",onClick:()=>Ft&&Lt(Ft.key),children:d.jsx(Ke,{name:"chevronLeft"})}),d.jsx("button",{className:"walk-btn",disabled:!je,title:je?`] — ${je.id}: ${je.pr.title}`:"no more reviews this way",onClick:()=>je&&Lt(je.key),children:d.jsx(Ke,{name:"chevronRight"})})]}),yn>=0&&d.jsxs("span",{className:"faint",children:[yn+1," of ",on.length," awaiting"]}),d.jsx("span",{className:"faint crumb-next",children:je?`next: ${je.pr.title}`:yn>=0?"last in the queue":""}),d.jsx("span",{className:"grow"}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(Ke,{name:"settings",size:15})})]})}),d.jsx("div",{className:"review-head",children:d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"review-head-top",children:[d.jsx("a",{className:"review-title",href:a.pr.url,target:"_blank",rel:"noreferrer",children:a.pr.title}),d.jsx("span",{className:"grow"}),a.verdict&&(Rt?d.jsxs("span",{className:`chip tone-${wt}`,children:[a.verdict.recommendation.replace("_"," "),tt&&` · ${tt}`," · ",a.verdict.confidence,"%"]}):d.jsxs("button",{className:`chip chip-btn tone-${wt}`,title:"change it, or send — both are at the foot of the page",onClick:()=>un(we,I),children:[a.verdict.recommendation.replace("_"," "),tt&&` · ${tt}`," · ",a.verdict.confidence,"%",d.jsx(Ke,{name:"down",size:12})]})),a.status!=="running"&&d.jsxs("button",{className:"btn btn-sm",disabled:m,title:Rt?"Draft a new review at the current head. What you sent stays on GitHub — this replaces the draft here, and sending again posts a second review":a.run?"Review the current head again — this draft is replaced, comments and all":"Draft a review of this PR",onClick:()=>k(!0),children:[d.jsx(Ke,{name:"rerun"}),m?"starting…":a.run?"re-review at head":"review now"]})]}),d.jsxs("div",{className:"review-head-meta",children:[d.jsx("span",{children:a.pr.author}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[a.pr.headRefName," → ",a.pr.baseRefName,a.pr.headSha?` · ${a.pr.headSha.slice(0,7)}`:""]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[a.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",a.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",a.pr.deletions]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:ra}),((Vn=a.run)==null?void 0:Vn.costUsd)!=null&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{title:"What this review would cost at API token rates. Riding a Claude subscription, it draws on your usage limits instead.",children:["≈$",a.run.costUsd.toFixed(2)," at API rates"]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Where this review has got to: drafted, settled locally, or sent.",children:a.status})]})]})})]}),d.jsxs("div",{className:"wrap review-body",children:[d.jsxs("aside",{className:"rail",children:[d.jsxs("div",{className:"rail-jumps",children:[d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>un(De),children:"summary"}),a.verdict&&d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>un(w),children:"why"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var Y;un(L),(Y=ae.current)==null||Y.focus()},children:"chat"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{ve(!0),un(oe)},children:"history"})]}),Ot.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>hn(0),children:"changes"}),Ot.map((Y,de)=>{const Ne=Y.files.length>0&&Y.files.every(F=>cn.has(F));return d.jsxs("div",{className:"rail-group",children:[d.jsxs("button",{className:`rail-item${An(Y.id)?" rail-item-on":""}${Ne?" rail-item-done":""}${(Q==null?void 0:Q.id)===Y.id?" rail-item-here":""}`,onClick:()=>hn(de),children:[d.jsxs("span",{className:"grow",children:[de+1," · ",Y.title]}),d.jsxs("span",{className:"rail-count",title:Ne?"every file viewed":void 0,children:[Ne?"✓ ":"",Y.files.length,"f"]})]}),a.comments.filter(F=>F.chapterId===Y.id).map(F=>d.jsxs("button",{className:`rail-comment${F.status==="dropped"?" rail-comment-dropped":""}`,title:`${F.path}${F.line!=null?`:${F.line}`:""} — ${F.body}`,onClick:()=>qe(de,F.id),children:[d.jsx("span",{className:`rail-dot tone-${MN(F,wt)}`,children:"●"}),d.jsxs("span",{className:"rail-comment-loc",children:[F.path.split("/").pop(),F.line!=null?`:${F.drifted?"~":""}${F.line}`:""]})]},F.id))]},Y.id)})]}),d.jsx("button",{className:`lab rail-lab-btn${Ot.length>0?" rail-lab":""}`,onClick:()=>un(we,I),children:"verdict"}),d.jsxs("div",{className:"rail-facts",children:[d.jsxs("div",{children:[a.comments.length-mt.length," keeping · ",mt.length," dropped"]}),d.jsxs("div",{children:[Ue.length," inline · ",Ct.length," folded into body"]}),dn>0&&d.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[dn," drifted"]}),d.jsx(IN,{check:a.raisedCheck??null,raised:Na,held:qn.length,replies:sa.length})]})]}),d.jsxs("div",{className:"main",children:[d.jsx(ex,{artifact:a,freshness:f,rerunning:m,onRerun:k}),y&&d.jsxs("div",{className:"freshness",title:y,children:[d.jsx("strong",{children:"Couldn't check GitHub for newer commits."})," This is the review as it was drafted — if the PR has moved on since, nothing here knows it yet."]}),s&&d.jsx("div",{className:"error",children:s}),((ut=a.run)==null?void 0:ut.error)&&d.jsxs("div",{className:"error",children:["Run failed: ",a.run.error]}),d.jsx("div",{className:"card card-summary",ref:De,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"summary"}),d.jsx(ai,{className:"prose lead",text:a.summary||"(no summary)"}),!Rt&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>Je({target:"summary",id:null}),children:[d.jsx(Ke,{name:"comment"}),"discuss the summary"]})]})}),a.verdict&&d.jsx("div",{className:`card card-why tone-border-${wt}`,ref:w,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"why"}),d.jsxs("div",{className:"sev-counts",children:[Rd(a)&&d.jsx("span",{title:"Live findings by grade. Only blockers block.",children:Rd(a)}),Rd(a)&&d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{title:"How sure the review is that its own findings and grades are right — not how good an idea merging is. That is the verdict, and it follows from the blockers.",children:[a.verdict.confidence,"% sure of the findings"]})]}),d.jsx(ai,{className:"prose lead",text:a.verdict.reasoning}),!Rt&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>Je({target:"verdict",id:null}),children:[d.jsx(Ke,{name:"comment"}),"discuss the verdict"]})]})}),Ot.map((Y,de)=>d.jsx($N,{chapter:Y,n:de+1,diff:a.diff,comments:a.comments.filter(Ne=>Ne.chapterId===Y.id),open:An(Y.id),heavy:zn(Y.id),onToggle:()=>jn(Y.id),onUpdateComment:Qe,onDeleteComment:et,onAddComment:Ae,onDiscuss:Rt?void 0:Je,onAskAboutLine:xa,chatBusy:vn,readOnly:Rt,flash:Ze,viewedState:qt,sticky:M,stuck:(Q==null?void 0:Q.id)===Y.id&&Q.stuck,anchorRef:Ne=>{Ne?fe.current.set(Y.id,Ne):fe.current.delete(Y.id)}},Y.id)),Se.length>0&&d.jsxs("section",{className:"card",children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"unattached comments"}),d.jsx("span",{className:"faint",children:"not part of any chapter — they post in the body"})]}),d.jsx("div",{className:"card-body",children:Se.map(Y=>d.jsx(Ty,{comment:Y,onUpdate:de=>Qe(Y.id,de),onDelete:()=>et(Y.id),onDiscuss:Rt?void 0:()=>Je({target:"comment",id:Y.id}),readOnly:Rt},Y.id))})]}),d.jsx(WN,{entries:a.history??[],open:me,onToggle:()=>ve(Y=>!Y),anchorRef:oe})]}),d.jsxs("aside",{className:"cockpit",children:[d.jsx(PN,{artifact:a,reviewKey:i,refs:W,onClearRefs:()=>z([]),onDropRef:Y=>z(de=>de.filter((Ne,F)=>F!==Y)),onArtifact:r,readOnly:Rt,inputRef:ae,anchorRef:L}),d.jsxs("div",{className:"cockpit-decide",children:[!Rt&&Kt&&d.jsxs("div",{className:"verdict-hint",children:[d.jsxs("span",{children:[d.jsx("strong",{children:Kt})," — the verdict was written before those edits."]}),d.jsxs("button",{className:"btn btn-sm",onClick:ba,disabled:vn,children:[d.jsx(Ke,{name:"comment"}),vn?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),a.verdict&&!Rt&&d.jsxs("div",{className:"verdict-bar",ref:we,children:[d.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(Ta)]}),d.jsx(VN,{artifact:a,reviewKey:i,event:Pt,own:pn,sending:be,checking:It,onSend:Gt,error:Ce,next:je,onAdvance:vt,onBody:Y=>ro(i,{bodyOverride:Y}).then(r),anchorRef:I,footer:d.jsxs(d.Fragment,{children:[!Rt&&d.jsx("span",{className:"faint",children:"not sending?"}),!Rt&&d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:"btn btn-sm",title:je?`Settle it locally and go to ${je.id}`:"Settle it locally and go back to the queue",onClick:()=>ye("reviewed"),children:[d.jsx(Ke,{name:"check"}),"mark reviewed"]}),d.jsxs("button",{className:"btn btn-sm",title:je?`Leave it and go to ${je.id}`:"Leave it and go back to the queue",onClick:()=>ye("skipped"),children:[d.jsx(Ke,{name:"skip"}),"skip"]})]}),d.jsxs("button",{className:"btn btn-sm",title:Ua?"Wait for the run to finish — a handoff settles the row it is rewriting":"Move GitHub's review request to somebody else, and settle this row",onClick:()=>U(!0),disabled:$||Ua,children:[d.jsx(Ke,{name:"arrowRight"}),"hand off"]}),d.jsxs("a",{className:"btn btn-sm",href:N0(i),children:[d.jsx(Ke,{name:"download"}),"export .md"]})]})}),$&&d.jsx(XN,{artifact:a,reviewKey:i,onConfirm:ze,onCancel:()=>U(!1)})]})]})]})]})}const Mb="cerber.notify.seen.v2",nx="cerber.notify.seen",Pd="cerber.notify",ax=1e4,qs=i=>i.status==="ready",Kd=i=>{try{return localStorage.getItem(i)}catch{return null}},Zd=(i,a)=>{try{localStorage.setItem(i,a)}catch{}},ix={autoReview:!1,autoReviewRepos:{}};function lx(i,a){return i?!i.enabled||!i.pollEnabled?ix:{autoReview:i.autoReview,autoReviewRepos:i.autoReviewRepos??{}}:a}const Ry=(i,a)=>sx(i,Zb(a,i.pr.owner,i.pr.repo));function sx(i,a){return i.announceable===!1||i.status==="running"?!1:i.status==="awaiting"?!a:!0}const ky=":draft",co=i=>`${i.key}${ky}`,Oy=i=>qs(i)?co(i):i.key;function rx(i,a,r){const s=new Set(a);return $s(i).filter(u=>Ry(u,r)&&!s.has(Oy(u)))}function ox(i,a,r=[]){const s=new Set(r),u=new Set($s(i).map(p=>p.key)),f=[];for(const p of i){if(u.has(p.key)&&!Ry(p,a)){for(const y of[p.key,co(p)])s.has(y)&&f.push(y);continue}f.push(p.key),(qs(p)||!u.has(p.key)||s.has(co(p)))&&f.push(co(p))}return f}const kd=i=>`${i.pr.repo}#${i.pr.number}`,cx={approve:"approves",comment:"comments",request_changes:"requests changes"};function ux(i){const a=i.verdict?cx[i.verdict.recommendation]:"drafted",r=i.blockerCount??0;return r===0?a:`${a} · ${r} blocker${r===1?"":"s"}`}function dx(i){if(i.length===0)return null;const a=`cerber:${i.map(Oy).sort().join("|")}`;if(i.length===1){const u=i[0];return{title:qs(u)?`${kd(u)} draft ready`:`${kd(u)} awaits your review`,body:qs(u)?`${ux(u)} — ${u.pr.title}`:`${u.pr.title} — ${u.pr.author}`,tag:a,key:u.key}}const r=i.slice(0,3).map(kd),s=i.length-r.length;return{title:i.every(qs)?`${i.length} drafts ready`:`${i.length} PRs await your review`,body:s>0?`${r.join(", ")} and ${s} more`:r.join(", "),tag:a,key:null}}const fx=new Set(["127.0.0.1","localhost","::1","[::1]"]);function hx(i,a=window.location.hostname){return!(i!=null&&i.enabled)||!i.notify?!1:fx.has(a)}function Gl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":Kd(Pd)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function px(){const i=Gl();if(i==="unsupported"||i==="blocked")return i;if(i==="on")return Zd(Pd,"off"),Gl();if(Zd(Pd,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return Gl()}function mx(i){const a=new Notification(i.title,{body:i.body,tag:i.tag,icon:"/favicon.svg"});a.onclick=()=>{window.focus(),window.location.hash=i.key?`#/r/${encodeURIComponent(i.key)}`:"#/",a.close()}}function gx(i,a){const r=i??a;if(!r)return null;let s;try{s=JSON.parse(r)}catch{return null}if(!Array.isArray(s))return null;const u=s.filter(f=>typeof f=="string");return i?u:u.flatMap(f=>[f,`${f}${ky}`])}function bx(){const i=q.useRef(null),a=q.useRef({autoReview:!0,autoReviewRepos:{}}),[r,s]=q.useState(!1);return q.useEffect(()=>{let u=!0;i.current=gx(Kd(Mb),Kd(nx));const f=()=>Promise.all([So(),nf().catch(()=>null)]).then(([y,g])=>{if(!u)return;const m=hx(g);s(m),a.current=lx(g,a.current);const b=i.current;if(i.current=ox(y,a.current,b??[]),Zd(Mb,JSON.stringify(i.current)),!b||Gl()!=="on"||m||document.visibilityState==="visible"&&document.hasFocus())return;const v=dx(rx(y,b,a.current));v&&mx(v)}).catch(()=>{});f();const p=setInterval(f,ax);return()=>{u=!1,clearInterval(p)}},[]),r}function Cy(){const[i,a]=q.useState(Gl);return q.useEffect(()=>{const r=()=>a(Gl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[i,()=>void px().then(a)]}const uo=i=>{window.location.hash=`#/r/${encodeURIComponent(i)}`};function yx(i){const a=i,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function vx({daemon:i}){return i!=null&&i.enabled?d.jsx("div",{className:"daemon-bar",children:d.jsxs("div",{className:"bar-inner",children:[i.pollEnabled?d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot"}),i.repos.length>0?i.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(i.intervalMs/6e4),"m"]}):d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot dot-off"}),"polling off (settings) — local reviews only"]}),d.jsxs("span",{children:["auto-review ",d.jsx("b",{children:i.autoReview?"on":"off"}),i0(i.autoReview,i.autoReviewRepos??{})]}),d.jsxs("span",{children:["auto-send ",d.jsx("b",{children:i.autoSend==="on"?"on":"shadow"})," ≥",i.autoSendThreshold,"%",i.autoSend==="on"?` · ${i.autoSent} sent`:` · ${i.autoSendCandidates} candidate${i.autoSendCandidates===1?"":"s"}`]}),i.trustedRuns&&d.jsxs("span",{className:"warn",title:"Trust rules are set and auto-review is on: reviews of matching PRs run their code unattended. Settings → Trusted PRs, or serve --no-trust.",children:[d.jsx(Ke,{name:"zap",size:12})," trusted PRs run with Bash"]}),d.jsx("span",{className:"grow"}),i.lastPollError?d.jsx("span",{className:"danger",title:i.lastPollError,children:"discovery offline — showing local reviews only"}):d.jsx("span",{className:"faint",children:i.polling?"polling now…":[i.lastSummary?`last: ${i.lastSummary}`:null,i.nextPollAt?`next ${new Date(i.nextPollAt).toLocaleTimeString()}`:null].filter(Boolean).join(" · ")})]})}):null}function Ji({className:i,label:a,tip:r}){return d.jsx("span",{className:i,children:d.jsxs("span",{className:"head-cell",children:[a,d.jsx("span",{className:"head-tip",role:"tooltip",children:r})]})})}function Ex({r:i,selected:a,onSelect:r,onOpen:s,awaiting:u}){const f=t0(i),p=F_(i),y=u?W_(i,u):null;return d.jsxs("div",{className:`row${a?" row-on":""}`,onClick:s,onMouseEnter:r,role:"button",tabIndex:-1,children:[d.jsx("span",{className:"col-caret",children:"›"}),d.jsxs("span",{className:"col-slug",title:`${i.pr.owner}/${i.pr.repo}#${i.pr.number}`,children:[i.pr.repo,"#",i.pr.number]}),d.jsx("span",{className:"col-author",title:i.pr.author,children:i.pr.author}),d.jsx("span",{className:"col-title",title:i.pr.title,children:i.pr.title}),i.pr.isDraft&&d.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),y&&d.jsx("span",{className:"tag tag-awaiting",title:y.title,children:y.label}),p&&d.jsx("span",{className:"tag tag-done",children:p}),d.jsx("span",{className:"col-comments",children:n0(i)}),d.jsx("span",{className:"col-size",children:i.pr.changedFiles>0?d.jsxs(d.Fragment,{children:[i.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",i.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",i.pr.deletions]})]}):"—"}),d.jsx("span",{className:`col-verdict tone-${f.tone}`,children:f.label}),d.jsx("span",{className:"col-age",title:i.status==="awaiting"?"When the PR last changed on GitHub":"When this review last changed",children:Wb(Md(i))})]})}function Db({autoFocus:i}){const[a,r]=q.useState(""),[s,u]=q.useState(!1),[f,p]=q.useState(null),y=g=>{g.preventDefault();const m=a.trim();!m||s||(u(!0),p(null),m0(m).then(b=>uo(b.key)).catch(b=>{p(String(b instanceof Error?b.message:b)),u(!1)}))};return d.jsxs("form",{className:"pull",onSubmit:y,children:[d.jsx(Ke,{name:"plus"}),d.jsx("input",{className:"pull-input",value:a,autoFocus:i,disabled:s,onChange:g=>{r(g.target.value),f&&p(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),a.trim()&&d.jsx("button",{className:"btn btn-small",type:"submit",disabled:s,children:s?"starting…":"review"}),f&&d.jsx("span",{className:"pull-error",children:f})]})}function _x({text:i}){const a=q.useRef(null),[r,s]=q.useState(!1);return q.useLayoutEffect(()=>{const u=a.current;if(!u)return;const f=()=>s(u.scrollHeight-u.clientHeight>4);f();const p=new ResizeObserver(f);return p.observe(u),()=>p.disconnect()},[i]),d.jsx("div",{ref:a,className:`strip-prose${r?" strip-prose-clipped":""}`,children:d.jsx(ai,{className:"prose",text:i})})}function Sx(){var Ee;const[i,a]=q.useState(null),[r,s]=q.useState(null),[u,f]=q.useState(null),[p,y]=q.useState(new Set),[g,m]=q.useState("inbox"),[b,v]=q.useState(null),S=q.useRef(!1),T=q.useRef(null),_=q.useRef(!0);q.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const C=()=>{So().then(j=>_.current&&a(j)).catch(j=>_.current&&f(String(j))),nf().then(j=>_.current&&s(j)).catch(()=>{})};q.useEffect(()=>{C();const j=setInterval(C,1e4);return()=>clearInterval(j)},[]);const A=i??[],R=q.useMemo(()=>$_(A,r),[A,r]),$=R.requests,U=Y_(g,R),W=R[U];q.useEffect(()=>{U!==g&&m(U)},[U,g]);const z=W.find(j=>j.key===b)??W[0]??null,ae=j=>{y(le=>new Set(le).add(j)),Jb(j).then(()=>C()).catch(le=>_.current&&f(String(le))).finally(()=>{_.current&&y(le=>{const fe=new Set(le);return fe.delete(j),fe})})};if(q.useEffect(()=>{const j=le=>{if(yx(le.target)||le.metaKey||le.ctrlKey||le.altKey)return;const fe=W.findIndex(Q=>Q.key===(z==null?void 0:z.key)),M=Q=>{const pe=W[Math.min(W.length-1,Math.max(0,fe+Q))];pe&&(S.current=!0,v(pe.key))};le.key==="j"||le.key==="ArrowDown"?(le.preventDefault(),M(1)):le.key==="k"||le.key==="ArrowUp"?(le.preventDefault(),M(-1)):le.key==="Enter"&&z?uo(z.key):le.key==="r"&&z&&z.status!=="running"&&z.status!=="sent"&&ae(z.key)};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[W,z==null?void 0:z.key]),q.useEffect(()=>{var j;S.current&&(S.current=!1,(j=document.querySelector(".row-on"))==null||j.scrollIntoView({block:"nearest"}))},[z==null?void 0:z.key]),q.useEffect(()=>{const j=T.current;if(!j)return;const le=()=>document.documentElement.style.setProperty("--strip-h",`${j.offsetHeight}px`);le();const fe=new ResizeObserver(le);return fe.observe(j),()=>{fe.disconnect(),document.documentElement.style.removeProperty("--strip-h")}},[z!=null]),u&&!i)return d.jsx("p",{className:"error",children:u});if(!i)return d.jsx("p",{className:"muted pad",children:"Loading…"});const se=W.reduce((j,le)=>j+(le.costUsd??0),0),x=z?l0(z,r):null,G=z?p.has(z.key):!1,ee=Cd.filter(j=>R[j].length>0),ue=j=>d.jsxs("button",{className:`tab${U===j?" tab-on":""}${Cd.includes(j)?" tab-filed":""}${j==="requests"?" tab-requests":""}`,title:zu[j].title,onClick:()=>m(j),children:[zu[j].label," ",d.jsx("span",{className:"tab-count",children:R[j].length})]},j);return d.jsxs(d.Fragment,{children:[d.jsx(vx,{daemon:r}),u&&d.jsx("div",{className:"wrap",children:d.jsx("p",{className:"error",children:u})}),A.length===0?d.jsx("div",{className:"wrap",children:d.jsxs("div",{className:"empty",children:[r!=null&&r.enabled?d.jsxs("p",{children:["Inbox empty — nothing awaits your review.",r.lastPollError?" (Discovery is offline; check gh auth.)":""]}):d.jsx("p",{children:"No reviews yet."}),d.jsx(Db,{autoFocus:!0})]})}):d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"tabs",children:[hg.map(ue),ee.length>0&&d.jsx("span",{className:"tab-split","aria-hidden":"true"}),ee.map(ue),d.jsx("span",{className:"grow"}),d.jsx(Db,{}),se>0&&d.jsxs("span",{className:"faint",title:"What these reviews would cost at API token rates. Riding a Claude subscription, they draw on your usage limits instead.",children:["≈$",se.toFixed(2)," at API rates"]})]}),d.jsxs("div",{className:"table-head",children:[d.jsx("span",{className:"col-caret"}),d.jsx(Ji,{className:"col-slug",label:"repo#pr",tip:"Repository and pull request number"}),d.jsx(Ji,{className:"col-author",label:"author",tip:"Who opened the pull request"}),d.jsx(Ji,{className:"col-title",label:"title",tip:"Pull request title"}),d.jsx(Ji,{className:"col-comments",label:"comments",tip:"Comments in the draft (— before one exists)"}),d.jsx(Ji,{className:"col-size",label:"size",tip:"Files changed, lines added, lines removed"}),d.jsx(Ji,{className:"col-verdict",label:"verdict",tip:"Recommendation, and how sure the review is"}),d.jsx(Ji,{className:"col-age",label:"upd",tip:"When this review last changed — or, on a PR nobody has drafted yet, when the PR itself last changed on GitHub"})]}),W.length===0?d.jsx("div",{className:"empty-tab",children:U==="inbox"&&$.length>0?d.jsxs(d.Fragment,{children:[d.jsx("p",{children:J_($)}),d.jsxs("button",{className:"btn",onClick:()=>m("requests"),children:[d.jsx(Ke,{name:"arrowRight"}),"show ",$.length===1?"it":`all ${$.length}`]})]}):d.jsx("p",{className:"muted",children:U==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${zu[U].label} right now.`})}):W.map((j,le)=>d.jsxs(q.Fragment,{children:[hg.includes(U)&&I_(W,le)&&d.jsx("div",{className:"group-head",role:"heading","aria-level":2,title:"PRs you opened. Never drafted on their own — press r for a self-review. Send posts it as a comment.",children:"your PRs"}),d.jsx(Ex,{r:j,selected:j.key===(z==null?void 0:z.key),onSelect:()=>v(j.key),onOpen:()=>uo(j.key),awaiting:G_(j,$)?P_(j,r):null})]},j.key)),z&&x&&d.jsxs("div",{className:"cursor-strip",ref:T,children:[d.jsxs("div",{className:"cursor-strip-body",children:[d.jsxs("div",{className:"lab",children:[z.pr.owner,"/",z.pr.repo,"#",z.pr.number,z.pr.headRefName&&z.pr.baseRefName?` · ${z.pr.headRefName} → ${z.pr.baseRefName}`:""]}),d.jsx(_x,{text:x.reasoning}),d.jsxs("div",{className:"cursor-strip-meta",children:[x.meta.join(" · "),((Ee=z.sent)==null?void 0:Ee.url)&&d.jsxs(d.Fragment,{children:[" · ",d.jsx("a",{href:z.sent.url,target:"_blank",rel:"noreferrer",children:"view on GitHub"})]})]})]}),d.jsxs("div",{className:"cursor-strip-actions",children:[d.jsxs("button",{className:"btn-primary",onClick:()=>uo(z.key),children:[d.jsx(Ke,{name:"arrowRight"}),"open review ",d.jsx(za,{children:"↵"})]}),d.jsxs("div",{className:"cursor-strip-row",children:[d.jsxs("button",{className:"btn",disabled:z.status==="sent"||z.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>ro(z.key,{status:"skipped"}).then(C).catch(j=>f(String(j))),children:[d.jsx(Ke,{name:"skip"}),"skip"]}),d.jsxs("button",{className:"btn",disabled:G||z.status==="running",title:z.status==="sent"?"Draft a review of the PR's current head. What you sent stays on GitHub.":"Draft a review of the PR's current head.",onClick:()=>ae(z.key),children:[d.jsx(Ke,{name:"rerun"}),G?"starting…":z.status==="awaiting"||z.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const vo="cerber.theme";function My(i){return i==="light"||i==="dark"?i:"system"}function wx(){try{return My(localStorage.getItem(vo))}catch{return"system"}}function Dy(i,a=document.documentElement){i==="system"?delete a.dataset.theme:a.dataset.theme=i}function Nx(i,a){try{const r=a??localStorage;i==="system"?r.removeItem(vo):r.setItem(vo,i)}catch{}}function xx(){Ly(Dy)}function Ly(i){const a=r=>{(r.key===vo||r.key===null)&&i(My(r.newValue))};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)}function Tx(){const[i,a]=q.useState(wx);return q.useEffect(()=>Ly(a),[]),[i,s=>{Nx(s),Dy(s),a(s)}]}const Ax=[{rule:"@acme/*",meaning:"anyone in the acme org"},{rule:"@acme/devs",meaning:"anyone on that GitHub team"},{rule:"@teammate",meaning:"one person, by login"},{rule:"!@acme/contractors",meaning:"deny — beats every rule above"}],Lb=1440,zb=i=>i instanceof Error?i.message:String(i),Rx={unsupported:"this browser has no notifications to give",blocked:"this browser has blocked notifications for cerber",off:"tell me when a review is ready for me",ask:"tell me when a review is ready for me (the browser will ask first)",on:"tell me when a review is ready for me"},kx=[{choice:"system",label:"follow this machine"},{choice:"light",label:"light"},{choice:"dark",label:"dark"}],Ox=[{choice:"mod-enter",label:"⌘↵ sends a chat message, Enter starts a new line"},{choice:"enter",label:"Enter sends a chat message, Shift+Enter starts a new line"}],Cx=/^[\w.-]+\/[\w.-]+$/,Od=i=>i?"drafts automatically":"waits for a click";function Mx({daemon:i,busy:a,save:r}){const[s,u]=q.useState(""),[f,p]=q.useState(!i.autoReview),[y,g]=q.useState([]);q.useEffect(()=>{So().then(_=>g([...new Set(_.map(C=>`${C.pr.owner}/${C.pr.repo}`))].sort())).catch(()=>{})},[]),q.useEffect(()=>p(!i.autoReview),[i.autoReview]);const m=Object.entries(i.autoReviewRepos).sort(([_],[C])=>_.localeCompare(C)),b=s.trim(),v=Cx.test(b),S=new Set(m.map(([_])=>_.toLowerCase())),T=()=>{a||!v||(r(b,f),u(""))};return d.jsxs(d.Fragment,{children:[d.jsx("h2",{children:"Per-repo exceptions"}),d.jsx("p",{className:"muted",children:"Every repo not listed here follows the switch above. List a busy repo to keep it to the click, or, with the switch off, one repo you still want drafted."}),d.jsxs("div",{className:"trust-add",children:[d.jsx("input",{value:s,"aria-label":"Repository",placeholder:"owner/repo",list:"auto-review-repos",disabled:a,onChange:_=>u(_.target.value),onKeyDown:_=>{_.key==="Enter"&&T()}}),d.jsx("datalist",{id:"auto-review-repos",children:y.filter(_=>!S.has(_.toLowerCase())).map(_=>d.jsx("option",{value:_},_))}),d.jsxs("select",{"aria-label":"What the poll does for this repo",value:f?"auto":"click",disabled:a,onChange:_=>p(_.target.value==="auto"),children:[d.jsx("option",{value:"click",children:Od(!1)}),d.jsx("option",{value:"auto",children:Od(!0)})]}),d.jsx("button",{className:"btn",disabled:a||!v,onClick:T,children:"add"})]}),m.length===0?d.jsxs("p",{className:"muted",children:["No exceptions — every repo ",i.autoReview?"is drafted automatically":"waits for a click","."]}):d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:m.map(([_,C])=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("code",{children:_})}),d.jsxs("td",{className:"muted",children:[Od(C),C===i.autoReview&&" — same as the default, so it changes nothing"]}),d.jsxs("td",{className:"trust-actions",children:[d.jsx("button",{className:"btn",disabled:a,onClick:()=>r(_,!C),children:C?"wait for a click":"draft automatically"})," ",d.jsx("button",{className:"btn",disabled:a,onClick:()=>r(_,null),children:"remove"})]})]},_))})})]})}function Dx({daemonAnnounces:i}){const[a,r]=Cy(),[s,u]=Tx(),[f,p]=vy(),[y,g]=wy(),[m,b]=q.useState(null),[v,S]=q.useState(""),[T,_]=q.useState(null),[C,A]=q.useState(!1),[R,$]=q.useState(""),[U,W]=q.useState(!1);q.useEffect(()=>{x0().then(b).catch(x=>_(zb(x))),nf().then(x=>W(x.enabled&&x.intervalFixed)).catch(()=>{})},[]),q.useEffect(()=>{m&&$(String(m.daemon.intervalMinutes))},[m]);const z=x=>{A(!0),_(null),x.then(b).catch(G=>_(zb(G))).finally(()=>A(!1))};if(T&&!m)return d.jsx("p",{className:"error",children:T});if(!m)return d.jsx("p",{className:"muted",children:"Loading…"});const ae=i&&m.daemon.poll&&m.daemon.notify,se=()=>{const x=Number(R);!Number.isInteger(x)||x<1||x>Lb?$(String(m.daemon.intervalMinutes)):x!==m.daemon.intervalMinutes&&z(no({intervalMinutes:x}))};return d.jsxs("div",{className:"settings",children:[d.jsx("a",{href:"#/",className:"back",children:"← queue"}),d.jsx("h1",{children:"Inbox"}),d.jsx("p",{children:"By default cerber keeps the queue itself: it polls GitHub for PRs awaiting your review and drafts a review for each, so they're ready when you open the cockpit. Nothing is ever sent without you. Changes apply on the next poll — no restart."}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.poll,disabled:C,onChange:x=>z(no({poll:x.target.checked}))})," ","poll GitHub for PRs awaiting my review"]}),d.jsxs("label",{className:"inbox-toggle",children:["poll every",d.jsx("input",{type:"number",className:"interval-input",min:1,max:Lb,step:1,value:R,disabled:C||!m.daemon.poll||U,onChange:x=>$(x.target.value),onBlur:se,onKeyDown:x=>{x.key==="Enter"&&se()}}),"minutes",U&&d.jsx("span",{className:"muted",children:" (set by --interval for this run)"})]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.autoReview,disabled:C||!m.daemon.poll,onChange:x=>z(no({autoReview:x.target.checked}))})," ","draft a review automatically (off: awaiting PRs wait for a click)"]}),m.daemon.poll&&d.jsx(Mx,{daemon:m.daemon,busy:C,save:(x,G)=>z(T0(x,G))}),d.jsxs("p",{className:"muted",children:["Your own open PRs come in too, under ",d.jsx("b",{children:"your PRs"}),", for a self-review when you ask —",m.daemon.ownPrMaxAgeDays?` except ones idle for more than ${m.daemon.ownPrMaxAgeDays} days`:" all of them, however long idle"," ","(",d.jsx("code",{children:"ownPrMaxAgeDays"}),"; 0 turns the cut off)."]}),d.jsxs("p",{className:"muted",children:["Concurrency, a repo filter and that age cut live in ",d.jsx("code",{children:m.path})," ","under ",d.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),d.jsx("h1",{children:"Notifications"}),d.jsx("p",{children:'When a PR is worth coming back for, cerber says so: one desktop notification per poll. With auto-review on that moment is the draft landing, not the PR arriving — a tap that leads to "no run yet" costs you the walk back and gives you nothing — and the notification names what the review found. A PR nobody is drafting (auto-review off, or a run that failed) is announced as it lands, since that is all the news there will be — and if a retry then drafts it after all, that is new news and you are told. Several at once fold into one notification, and a PR whose draft has been announced never arrives twice, however its next re-review ends.'}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.notify,disabled:C||!m.daemon.poll,onChange:x=>z(no({notify:x.target.checked}))})," ","tell this machine when a review is ready for you (no cockpit tab required)"]}),d.jsxs("p",{className:"muted",children:["This is the one that works while you're somewhere else: it rides the poll, so it needs nothing open but ",d.jsx("code",{children:"serve"})," itself. It hands the notification to whatever this machine already has — Notification Centre on macOS,"," ",d.jsx("code",{children:"notify-send"})," on Linux — and stays quiet where there is neither. On macOS it"," ",d.jsx("strong",{children:"opens that review when you click it"}),', through a small app cerber builds for the job (the first one asks you to allow notifications from "Cerber"); a'," ",d.jsx("code",{children:"notify-send"})," tap announces the PR but has no click to give."]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:a==="on",disabled:a==="unsupported"||a==="blocked"||ae,onChange:r})," ",ae?"let this browser announce them instead":Rx[a]]}),d.jsx("p",{className:"muted",children:ae?d.jsx(d.Fragment,{children:"Standing down while the machine's own notification is on — two popups for one PR is one too many. Untick the machine one above and this browser takes over: it names the PR and opens that review on click just the same, but only while a cockpit tab is open and this browser has granted the permission."}):d.jsxs(d.Fragment,{children:["Per-browser, not per-machine: the permission belongs to this browser, so the switch lives here rather than in ",d.jsx("code",{children:m.path}),". Granting it is the browser's prompt, not cerber's — a browser that has blocked cerber has to be un-blocked from the padlock next to the address bar. Nothing is announced while you're looking straight at the cockpit."]})}),d.jsx("h1",{id:"appearance",children:"Appearance"}),d.jsx("div",{role:"radiogroup","aria-labelledby":"appearance",children:kx.map(({choice:x,label:G})=>d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"radio",name:"theme",checked:s===x,onChange:()=>u(x)})," ",G]},x))}),d.jsxs("p",{className:"muted",children:["Per-browser, like the notification switch: it's about this screen, not your reviews, so it lives here rather than in ",d.jsx("code",{children:m.path}),"."]}),d.jsx("h1",{children:"Review page"}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:f,onChange:x=>p(x.target.checked)})," ","keep chapter titles and file headers pinned while scrolling"]}),d.jsx("p",{className:"muted",children:"Ten files into a chapter you still see which one you're in, and the pinned title can open the chapter's explanation. Deep in a long file its name and Viewed box stay in reach. Per-browser, like the theme."}),Ox.map(({choice:x,label:G})=>d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"radio",name:"send-key",checked:y===x,onChange:()=>g(x)})," ",G]},x)),d.jsx("p",{className:"muted",children:"In the conversation with the reviewer. ⌘↵ sends under either choice, and the other boxes — comments, the review body, a handoff note — always take ⌘↵, since what goes in them runs to several lines. Per-browser, like the theme."}),d.jsx("h1",{children:"Trusted PRs"}),d.jsxs("p",{children:["Every review reads the PR's code. A ",d.jsx("strong",{children:"trusted"})," review may also run it — the test that covers the change, a typecheck, ",d.jsx("code",{children:"git log"})," — so it can report what happened instead of guessing. That means executing code from the PR on this machine, the same as checking the branch out and running the tests yourself."]}),d.jsxs("p",{className:"muted",children:["Trust the people, not the code: nothing about a PR can earn it. Rules live in"," ",d.jsx("code",{children:m.path}),"."]}),d.jsx("p",{className:"muted",children:'Only people can be trusted — there is no way to trust a repository. Anyone can open a PR against a repo you own, so trusting the repo would trust them too. Membership is checked against GitHub when the review runs, and a check that fails counts as "not a member".'}),d.jsxs("div",{className:"trust-add",children:[d.jsx("input",{value:v,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:C,onChange:x=>S(x.target.value),onKeyDown:x=>{x.key==="Enter"&&!C&&v.trim()&&(z(Uu(v.trim())),S(""))}}),d.jsx("button",{className:"btn",disabled:C||!v.trim(),onClick:()=>{z(Uu(v.trim())),S("")},children:"trust"})]}),T&&d.jsx("p",{className:"error",children:T}),m.trust.length===0?d.jsx("p",{className:"muted",children:"Nobody is trusted yet — every review reads the checkout and runs nothing."}):d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:m.trust.map(x=>d.jsxs("tr",{className:x.denies?"trust-deny":void 0,children:[d.jsx("td",{children:d.jsx("code",{children:x.rule})}),d.jsx("td",{className:"muted",children:x.explanation}),d.jsx("td",{className:"trust-actions",children:d.jsx("button",{className:"btn",disabled:C,onClick:()=>z(Uu(x.rule,!0)),children:"remove"})})]},x.rule))})}),d.jsx("h2",{children:"Rule syntax"}),d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:Ax.map(x=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("code",{children:x.rule})}),d.jsx("td",{className:"muted",children:x.meaning})]},x.rule))})}),d.jsxs("p",{className:"muted",children:["A trusted review is handed no GitHub credentials — no token, no ",d.jsx("code",{children:"gh"})," login, no git or ssh identity — so a push fails to authenticate rather than being merely discouraged. It is not a sandbox though: it has ",d.jsx("code",{children:"Bash"})," and this machine, so trust people you would let run their branch here anyway. The daemon reviews unattended, so with rules set it runs matching PRs' code with nobody watching — start it with ",d.jsx("code",{children:"--no-trust"})," to prevent that."]}),d.jsxs("p",{className:"muted settings-version",children:["cerber ",m.version]})]})}function jb(){const i=window.location.hash,a=i.match(/^#\/r\/(.+)$/);return a?{view:"detail",key:decodeURIComponent(a[1])}:i==="#/settings"?{view:"settings"}:{view:"queue"}}const Ub={unsupported:"",blocked:"This browser blocked notifications for cerber. Turn them back on in its site settings — the padlock next to the address bar.",off:"Notifications off. Click to be told when a review is ready for you.",ask:"Click to be told when a review is ready for you — the browser will ask you first.",on:"Telling you when a review is ready for you. Click to stop."},Bb="cerber taps this machine itself when a PR is worth coming back for — no tab required. The browser's own bell would be a second popup about one PR, so it stands down. Turn the machine one off in Settings to have this browser announce them instead.";function Lx({daemonAnnounces:i}){const[a,r]=Cy();return i?d.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:Bb,"aria-label":Bb,children:d.jsx(Ke,{name:"bell",size:15})}):a==="unsupported"?null:d.jsx("button",{className:`topbar-link bell bell-${a}`,title:Ub[a],"aria-label":Ub[a],"aria-pressed":a==="on",onClick:r,children:d.jsx(Ke,{name:a==="on"?"bell":"bellOff",size:15})})}function zx(){const[i,a]=q.useState(jb()),r=bx();return q.useEffect(()=>{const s=()=>a(jb());return window.addEventListener("hashchange",s),()=>window.removeEventListener("hashchange",s)},[]),i.view==="detail"?d.jsx("div",{className:"app",children:d.jsx(tx,{reviewKey:i.key})}):d.jsxs("div",{className:"app",children:[d.jsx("header",{className:"topbar",children:d.jsxs("div",{className:"bar-inner",children:[d.jsxs("a",{href:"#/",className:"brand",children:[d.jsx(zS,{}),"cerber"]}),d.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"}),d.jsx("span",{className:"grow"}),i.view==="queue"&&d.jsxs(d.Fragment,{children:[d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"j"}),d.jsx(za,{children:"k"}),"move"]}),d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"↵"}),"open"]}),d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"r"}),"review now"]})]}),d.jsx(Lx,{daemonAnnounces:r}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(Ke,{name:"settings",size:15})})]})}),i.view==="queue"?d.jsx(Sx,{}):d.jsx(Dx,{daemonAnnounces:r})]})}xx();ZE.createRoot(document.getElementById("root")).render(d.jsx(GE.StrictMode,{children:d.jsx(zx,{})}));