@fullstackhouse/cerber 0.36.1 → 0.37.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.
@@ -1,244 +0,0 @@
1
- var _E=Object.defineProperty;var SE=(s,a,r)=>a in s?_E(s,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[a]=r;var xt=(s,a,r)=>SE(s,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"]'))l(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const p of d.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&l(p)}).observe(document,{childList:!0,subtree:!0});function r(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(u){if(u.ep)return;u.ep=!0;const d=r(u);fetch(u.href,d)}})();function xb(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var yu={exports:{}},ks={};/**
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 jm;function NE(){if(jm)return ks;jm=1;var s=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(l,u,d){var p=null;if(d!==void 0&&(p=""+d),u.key!==void 0&&(p=""+u.key),"key"in u){d={};for(var b in u)b!=="key"&&(d[b]=u[b])}else d=u;return u=d.ref,{$$typeof:s,type:l,key:p,ref:u!==void 0?u:null,props:d}}return ks.Fragment=a,ks.jsx=r,ks.jsxs=r,ks}var Bm;function TE(){return Bm||(Bm=1,yu.exports=NE()),yu.exports}var f=TE(),vu={exports:{}},qe={};/**
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 Im;function wE(){if(Im)return qe;Im=1;var s=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),p=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function w(S){return S===null||typeof S!="object"?null:(S=_&&S[_]||S["@@iterator"],typeof S=="function"?S:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,x={};function k(S,D,H){this.props=S,this.context=D,this.refs=x,this.updater=H||T}k.prototype.isReactComponent={},k.prototype.setState=function(S,D){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,D,"setState")},k.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function I(){}I.prototype=k.prototype;function L(S,D,H){this.props=S,this.context=D,this.refs=x,this.updater=H||T}var le=L.prototype=new I;le.constructor=L,A(le,k.prototype),le.isPureReactComponent=!0;var K=Array.isArray;function P(){}var ne={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function z(S,D,H){var ue=H.ref;return{$$typeof:s,type:S,key:D,ref:ue!==void 0?ue:null,props:H}}function X(S,D){return z(S.type,D,S.props)}function q(S){return typeof S=="object"&&S!==null&&S.$$typeof===s}function de(S){var D={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(H){return D[H]})}var he=/\/+/g;function _e(S,D){return typeof S=="object"&&S!==null&&S.key!=null?de(""+S.key):D.toString(36)}function pe(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(P,P):(S.status="pending",S.then(function(D){S.status==="pending"&&(S.status="fulfilled",S.value=D)},function(D){S.status==="pending"&&(S.status="rejected",S.reason=D)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function j(S,D,H,ue,W){var be=typeof S;(be==="undefined"||be==="boolean")&&(S=null);var ge=!1;if(S===null)ge=!0;else switch(be){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(S.$$typeof){case s:case a:ge=!0;break;case y:return ge=S._init,j(ge(S._payload),D,H,ue,W)}}if(ge)return W=W(S),ge=ue===""?"."+_e(S,0):ue,K(W)?(H="",ge!=null&&(H=ge.replace(he,"$&/")+"/"),j(W,D,H,"",function($e){return $e})):W!=null&&(q(W)&&(W=X(W,H+(W.key==null||S&&S.key===W.key?"":(""+W.key).replace(he,"$&/")+"/")+ge)),D.push(W)),1;ge=0;var Le=ue===""?".":ue+":";if(K(S))for(var ze=0;ze<S.length;ze++)ue=S[ze],be=Le+_e(ue,ze),ge+=j(ue,D,H,be,W);else if(ze=w(S),typeof ze=="function")for(S=ze.call(S),ze=0;!(ue=S.next()).done;)ue=ue.value,be=Le+_e(ue,ze++),ge+=j(ue,D,H,be,W);else if(be==="object"){if(typeof S.then=="function")return j(pe(S),D,H,ue,W);throw D=String(S),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return ge}function ae(S,D,H){if(S==null)return S;var ue=[],W=0;return j(S,ue,"","",function(be){return D.call(H,be,W++)}),ue}function ce(S){if(S._status===-1){var D=S._result;D=D(),D.then(function(H){(S._status===0||S._status===-1)&&(S._status=1,S._result=H)},function(H){(S._status===0||S._status===-1)&&(S._status=2,S._result=H)}),S._status===-1&&(S._status=0,S._result=D)}if(S._status===1)return S._result.default;throw S._result}var ve=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Se={map:ae,forEach:function(S,D,H){ae(S,function(){D.apply(this,arguments)},H)},count:function(S){var D=0;return ae(S,function(){D++}),D},toArray:function(S){return ae(S,function(D){return D})||[]},only:function(S){if(!q(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return qe.Activity=v,qe.Children=Se,qe.Component=k,qe.Fragment=r,qe.Profiler=u,qe.PureComponent=L,qe.StrictMode=l,qe.Suspense=g,qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ne,qe.__COMPILER_RUNTIME={__proto__:null,c:function(S){return ne.H.useMemoCache(S)}},qe.cache=function(S){return function(){return S.apply(null,arguments)}},qe.cacheSignal=function(){return null},qe.cloneElement=function(S,D,H){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var ue=A({},S.props),W=S.key;if(D!=null)for(be in D.key!==void 0&&(W=""+D.key),D)!C.call(D,be)||be==="key"||be==="__self"||be==="__source"||be==="ref"&&D.ref===void 0||(ue[be]=D[be]);var be=arguments.length-2;if(be===1)ue.children=H;else if(1<be){for(var ge=Array(be),Le=0;Le<be;Le++)ge[Le]=arguments[Le+2];ue.children=ge}return z(S.type,W,ue)},qe.createContext=function(S){return S={$$typeof:p,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:d,_context:S},S},qe.createElement=function(S,D,H){var ue,W={},be=null;if(D!=null)for(ue in D.key!==void 0&&(be=""+D.key),D)C.call(D,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(W[ue]=D[ue]);var ge=arguments.length-2;if(ge===1)W.children=H;else if(1<ge){for(var Le=Array(ge),ze=0;ze<ge;ze++)Le[ze]=arguments[ze+2];W.children=Le}if(S&&S.defaultProps)for(ue in ge=S.defaultProps,ge)W[ue]===void 0&&(W[ue]=ge[ue]);return z(S,be,W)},qe.createRef=function(){return{current:null}},qe.forwardRef=function(S){return{$$typeof:b,render:S}},qe.isValidElement=q,qe.lazy=function(S){return{$$typeof:y,_payload:{_status:-1,_result:S},_init:ce}},qe.memo=function(S,D){return{$$typeof:m,type:S,compare:D===void 0?null:D}},qe.startTransition=function(S){var D=ne.T,H={};ne.T=H;try{var ue=S(),W=ne.S;W!==null&&W(H,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(P,ve)}catch(be){ve(be)}finally{D!==null&&H.types!==null&&(D.types=H.types),ne.T=D}},qe.unstable_useCacheRefresh=function(){return ne.H.useCacheRefresh()},qe.use=function(S){return ne.H.use(S)},qe.useActionState=function(S,D,H){return ne.H.useActionState(S,D,H)},qe.useCallback=function(S,D){return ne.H.useCallback(S,D)},qe.useContext=function(S){return ne.H.useContext(S)},qe.useDebugValue=function(){},qe.useDeferredValue=function(S,D){return ne.H.useDeferredValue(S,D)},qe.useEffect=function(S,D){return ne.H.useEffect(S,D)},qe.useEffectEvent=function(S){return ne.H.useEffectEvent(S)},qe.useId=function(){return ne.H.useId()},qe.useImperativeHandle=function(S,D,H){return ne.H.useImperativeHandle(S,D,H)},qe.useInsertionEffect=function(S,D){return ne.H.useInsertionEffect(S,D)},qe.useLayoutEffect=function(S,D){return ne.H.useLayoutEffect(S,D)},qe.useMemo=function(S,D){return ne.H.useMemo(S,D)},qe.useOptimistic=function(S,D){return ne.H.useOptimistic(S,D)},qe.useReducer=function(S,D,H){return ne.H.useReducer(S,D,H)},qe.useRef=function(S){return ne.H.useRef(S)},qe.useState=function(S){return ne.H.useState(S)},qe.useSyncExternalStore=function(S,D,H){return ne.H.useSyncExternalStore(S,D,H)},qe.useTransition=function(){return ne.H.useTransition()},qe.version="19.2.8",qe}var Hm;function qf(){return Hm||(Hm=1,vu.exports=wE()),vu.exports}var Z=qf();const xE=xb(Z);var Eu={exports:{}},Cs={},_u={exports:{}},Su={};/**
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 qm;function AE(){return qm||(qm=1,(function(s){function a(j,ae){var ce=j.length;j.push(ae);e:for(;0<ce;){var ve=ce-1>>>1,Se=j[ve];if(0<u(Se,ae))j[ve]=ae,j[ce]=Se,ce=ve;else break e}}function r(j){return j.length===0?null:j[0]}function l(j){if(j.length===0)return null;var ae=j[0],ce=j.pop();if(ce!==ae){j[0]=ce;e:for(var ve=0,Se=j.length,S=Se>>>1;ve<S;){var D=2*(ve+1)-1,H=j[D],ue=D+1,W=j[ue];if(0>u(H,ce))ue<Se&&0>u(W,H)?(j[ve]=W,j[ue]=ce,ve=ue):(j[ve]=H,j[D]=ce,ve=D);else if(ue<Se&&0>u(W,ce))j[ve]=W,j[ue]=ce,ve=ue;else break e}}return ae}function u(j,ae){var ce=j.sortIndex-ae.sortIndex;return ce!==0?ce:j.id-ae.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var p=Date,b=p.now();s.unstable_now=function(){return p.now()-b}}var g=[],m=[],y=1,v=null,_=3,w=!1,T=!1,A=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function le(j){for(var ae=r(m);ae!==null;){if(ae.callback===null)l(m);else if(ae.startTime<=j)l(m),ae.sortIndex=ae.expirationTime,a(g,ae);else break;ae=r(m)}}function K(j){if(A=!1,le(j),!T)if(r(g)!==null)T=!0,P||(P=!0,de());else{var ae=r(m);ae!==null&&pe(K,ae.startTime-j)}}var P=!1,ne=-1,C=5,z=-1;function X(){return x?!0:!(s.unstable_now()-z<C)}function q(){if(x=!1,P){var j=s.unstable_now();z=j;var ae=!0;try{e:{T=!1,A&&(A=!1,I(ne),ne=-1),w=!0;var ce=_;try{t:{for(le(j),v=r(g);v!==null&&!(v.expirationTime>j&&X());){var ve=v.callback;if(typeof ve=="function"){v.callback=null,_=v.priorityLevel;var Se=ve(v.expirationTime<=j);if(j=s.unstable_now(),typeof Se=="function"){v.callback=Se,le(j),ae=!0;break t}v===r(g)&&l(g),le(j)}else l(g);v=r(g)}if(v!==null)ae=!0;else{var S=r(m);S!==null&&pe(K,S.startTime-j),ae=!1}}break e}finally{v=null,_=ce,w=!1}ae=void 0}}finally{ae?de():P=!1}}}var de;if(typeof L=="function")de=function(){L(q)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,_e=he.port2;he.port1.onmessage=q,de=function(){_e.postMessage(null)}}else de=function(){k(q,0)};function pe(j,ae){ne=k(function(){j(s.unstable_now())},ae)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(j){j.callback=null},s.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<j?Math.floor(1e3/j):5},s.unstable_getCurrentPriorityLevel=function(){return _},s.unstable_next=function(j){switch(_){case 1:case 2:case 3:var ae=3;break;default:ae=_}var ce=_;_=ae;try{return j()}finally{_=ce}},s.unstable_requestPaint=function(){x=!0},s.unstable_runWithPriority=function(j,ae){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var ce=_;_=j;try{return ae()}finally{_=ce}},s.unstable_scheduleCallback=function(j,ae,ce){var ve=s.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?ve+ce:ve):ce=ve,j){case 1:var Se=-1;break;case 2:Se=250;break;case 5:Se=1073741823;break;case 4:Se=1e4;break;default:Se=5e3}return Se=ce+Se,j={id:y++,callback:ae,priorityLevel:j,startTime:ce,expirationTime:Se,sortIndex:-1},ce>ve?(j.sortIndex=ce,a(m,j),r(g)===null&&j===r(m)&&(A?(I(ne),ne=-1):A=!0,pe(K,ce-ve))):(j.sortIndex=Se,a(g,j),T||w||(T=!0,P||(P=!0,de()))),j},s.unstable_shouldYield=X,s.unstable_wrapCallback=function(j){var ae=_;return function(){var ce=_;_=ae;try{return j.apply(this,arguments)}finally{_=ce}}}})(Su)),Su}var Gm;function RE(){return Gm||(Gm=1,_u.exports=AE()),_u.exports}var Nu={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 $m;function OE(){if($m)return Cn;$m=1;var s=qf();function a(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}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 l={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 d(g,m,y){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:y}}var p=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(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=l,Cn.createPortal=function(g,m){var y=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 d(g,m,null,y)},Cn.flushSync=function(g){var m=p.T,y=l.p;try{if(p.T=null,l.p=2,g)return g()}finally{p.T=m,l.p=y,l.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,l.d.C(g,m))},Cn.prefetchDNS=function(g){typeof g=="string"&&l.d.D(g)},Cn.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var y=m.as,v=b(y,m.crossOrigin),_=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?l.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:w}):y==="script"&&l.d.X(g,{crossOrigin:v,integrity:_,fetchPriority:w,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 y=b(m.as,m.crossOrigin);l.d.M(g,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&l.d.M(g)},Cn.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,v=b(y,m.crossOrigin);l.d.L(g,y,{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 y=b(m.as,m.crossOrigin);l.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else l.d.m(g)},Cn.requestFormReset=function(g){l.d.r(g)},Cn.unstable_batchedUpdates=function(g,m){return g(m)},Cn.useFormState=function(g,m,y){return p.H.useFormState(g,m,y)},Cn.useFormStatus=function(){return p.H.useHostTransitionStatus()},Cn.version="19.2.8",Cn}var Ym;function Ab(){if(Ym)return Nu.exports;Ym=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(a){console.error(a)}}return s(),Nu.exports=OE(),Nu.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 Fm;function kE(){if(Fm)return Cs;Fm=1;var s=RE(),a=qf(),r=Ab();function l(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 d(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 b(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(d(e)!==e)throw Error(l(188))}function m(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(l(188));return t!==e?null:e}for(var n=e,i=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){n=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return g(o),e;if(c===i)return g(o),t;c=c.sibling}throw Error(l(188))}if(n.return!==i.return)n=o,i=c;else{for(var h=!1,E=o.child;E;){if(E===n){h=!0,n=o,i=c;break}if(E===i){h=!0,i=o,n=c;break}E=E.sibling}if(!h){for(E=c.child;E;){if(E===n){h=!0,n=c,i=o;break}if(E===i){h=!0,i=c,n=o;break}E=E.sibling}if(!h)throw Error(l(189))}}if(n.alternate!==i)throw Error(l(190))}if(n.tag!==3)throw Error(l(188));return n.stateNode.current===n?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,_=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),X=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function de(e){return e===null||typeof e!="object"?null:(e=q&&e[q]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function _e(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case k:return"Profiler";case x:return"StrictMode";case K:return"Suspense";case P:return"SuspenseList";case z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case L:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case le:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return t=e.displayName||null,t!==null?t:_e(e.type)||"Memo";case C:t=e._payload,e=e._init;try{return _e(e(t))}catch{}}return null}var pe=Array.isArray,j=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},ve=[],Se=-1;function S(e){return{current:e}}function D(e){0>Se||(e.current=ve[Se],ve[Se]=null,Se--)}function H(e,t){Se++,ve[Se]=e.current,e.current=t}var ue=S(null),W=S(null),be=S(null),ge=S(null);function Le(e,t){switch(H(be,t),H(W,e),H(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=sm(t),e=rm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(ue),H(ue,e)}function ze(){D(ue),D(W),D(be)}function $e(e){e.memoizedState!==null&&H(ge,e);var t=ue.current,n=rm(t,e.type);t!==n&&(H(W,e),H(ue,n))}function at(e){W.current===e&&(D(ue),D(W)),ge.current===e&&(D(ge),xs._currentValue=ce)}var Ce,We;function Ge(e){if(Ce===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||"",We=-1<n.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Ce+e+We}var Xt=!1;function He(e,t){if(!e||Xt)return"";Xt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(Q){var F=Q}Reflect.construct(e,[],se)}else{try{se.call()}catch(Q){F=Q}e.call(se.prototype)}}else{try{throw Error()}catch(Q){F=Q}(se=e())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(Q){if(Q&&F&&typeof Q.stack=="string")return[Q.stack,F.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),h=c[0],E=c[1];if(h&&E){var R=h.split(`
44
- `),$=E.split(`
45
- `);for(o=i=0;i<R.length&&!R[i].includes("DetermineComponentFrameRoot");)i++;for(;o<$.length&&!$[o].includes("DetermineComponentFrameRoot");)o++;if(i===R.length||o===$.length)for(i=R.length-1,o=$.length-1;1<=i&&0<=o&&R[i]!==$[o];)o--;for(;1<=i&&0<=o;i--,o--)if(R[i]!==$[o]){if(i!==1||o!==1)do if(i--,o--,0>o||R[i]!==$[o]){var te=`
46
- `+R[i].replace(" at new "," at ");return e.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",e.displayName)),te}while(1<=i&&0<=o);break}}}finally{Xt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ge(n):""}function ct(e,t){switch(e.tag){case 26:case 27:case 5:return Ge(e.type);case 16:return Ge("Lazy");case 13:return e.child!==t&&t!==null?Ge("Suspense Fallback"):Ge("Suspense");case 19:return Ge("SuspenseList");case 0:case 15:return He(e.type,!1);case 11:return He(e.type.render,!1);case 1:return He(e.type,!0);case 31:return Ge("Activity");default:return""}}function wn(e){try{var t="",n=null;do t+=ct(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
47
- Error generating stack: `+i.message+`
48
- `+i.stack}}var Qt=Object.prototype.hasOwnProperty,Dt=s.unstable_scheduleCallback,Ln=s.unstable_cancelCallback,sa=s.unstable_shouldYield,Qn=s.unstable_requestPaint,st=s.unstable_now,qt=s.unstable_getCurrentPriorityLevel,ut=s.unstable_ImmediatePriority,cn=s.unstable_UserBlockingPriority,xn=s.unstable_NormalPriority,An=s.unstable_LowPriority,zn=s.unstable_IdlePriority,Un=s.log,un=s.unstable_setDisableYieldValue,yn=null,Ut=null;function fn(e){if(typeof Un=="function"&&un(e),Ut&&typeof Ut.setStrictMode=="function")try{Ut.setStrictMode(yn,e)}catch{}}var jt=Math.clz32?Math.clz32:Bn,ga=Math.log,jn=Math.LN2;function Bn(e){return e>>>=0,e===0?32:31-(ga(e)/jn|0)|0}var Ie=256,dn=262144,hn=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 O(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var E=i&134217727;return E!==0?(i=E&~c,i!==0?o=Gt(i):(h&=E,h!==0?o=Gt(h):n||(n=E&~e,n!==0&&(o=Gt(n))))):(E=i&~c,E!==0?o=Gt(E):h!==0?o=Gt(h):n||(n=i&~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 ee(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function me(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 Me(){var e=hn;return hn<<=1,(hn&62914560)===0&&(hn=4194304),e}function Ke(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ne(e,t,n,i,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,R=e.expirationTimes,$=e.hiddenUpdates;for(n=h&~n;0<n;){var te=31-jt(n),se=1<<te;E[te]=0,R[te]=-1;var F=$[te];if(F!==null)for($[te]=null,te=0;te<F.length;te++){var Q=F[te];Q!==null&&(Q.lane&=-536870913)}n&=~se}i!==0&&Ee(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function Ee(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-jt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function Ue(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-jt(n),o=1<<i;o&t|e[i]&t&&(e[i]|=t),n&=~o}}function Rt(e,t){var n=t&-t;return n=(n&42)!==0?1:bt(n),(n&(e.suspendedLanes|t))!==0?0:n}function bt(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 In(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Vn(){var e=ae.p;return e!==0?e:(e=window.event,e===void 0?32:km(e.type))}function ba(e,t){var n=ae.p;try{return ae.p=e,t()}finally{ae.p=n}}var rn=Math.random().toString(36).slice(2),Ot="__reactFiber$"+rn,Y="__reactProps$"+rn,re="__reactContainer$"+rn,we="__reactEvents$"+rn,mt="__reactListeners$"+rn,Bt="__reactHandles$"+rn,Rn="__reactResources$"+rn,$t="__reactMarker$"+rn;function $n(e){delete e[Ot],delete e[Y],delete e[we],delete e[mt],delete e[Bt]}function St(e){var t=e[Ot];if(t)return t;for(var n=e.parentNode;n;){if(t=n[re]||n[Ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pm(e);e!==null;){if(n=e[Ot])return n;e=pm(e)}return t}e=n,n=e.parentNode}return null}function On(e){if(e=e[Ot]||e[re]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function wa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function xa(e){var t=e[Rn];return t||(t=e[Rn]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function vt(e){e[$t]=!0}var Ua=new Set,Hn={};function ya(e,t){fe(e,t),fe(e+"Capture",t)}function fe(e,t){for(Hn[e]=t,e=0;e<t.length;e++)Ua.add(t[e])}var Oe=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]*$"),Pe={},ft={};function kt(e){return Qt.call(ft,e)?!0:Qt.call(Pe,e)?!1:Oe.test(e)?ft[e]=!0:(Pe[e]=!0,!1)}function Vt(e,t,n){if(kt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function pn(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 Yt(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nl(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.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:i.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ii(e){if(!e._valueTracker){var t=Lt(e)?"checked":"value";e._valueTracker=nl(e,t,""+e[t])}}function li(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Lt(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function ja(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 al=/[\n"\\]/g;function kn(e){return e.replace(al,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function si(e,t,n,i,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=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?ri(e,h,dt(t)):n!=null?ri(e,h,dt(n)):i!=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=""+dt(E):e.removeAttribute("name")}function Ba(e,t,n,i,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)){ii(e);return}n=n!=null?""+dt(n):"",t=t!=null?""+dt(t):n,E||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=E?e.checked:!!i,e.defaultChecked=!!i,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),ii(e)}function ri(e,t,n){t==="number"&&ja(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Wt(e,t,n,i){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&&i&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ia(e,t,n){if(t!=null&&(t=""+dt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+dt(n):""}function Aa(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(l(92));if(pe(i)){if(1<i.length)throw Error(l(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=dt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),ii(e)}function V(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 U(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?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 J(e,t,n){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&n[o]!==i&&U(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&U(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 Ae=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"]]),Be=/^[\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 Je(e){return Be.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function oe(){}var ye=null;function ke(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xe=null,Ve=null;function ra(e){var t=On(e);if(t&&(e=t.stateNode)){var n=e[Y]||null;e:switch(e=t.stateNode,t.type){case"input":if(si(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="'+kn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var o=i[Y]||null;if(!o)throw Error(l(90));si(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&li(i)}break e;case"textarea":Ia(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Wt(e,!!n.multiple,t,!1)}}}var Gl=!1;function Fs(e,t,n){if(Gl)return e(t,n);Gl=!0;try{var i=e(t);return i}finally{if(Gl=!1,(Xe!==null||Ve!==null)&&(Mr(),Xe&&(t=Xe,e=Ve,Ve=Xe=null,ra(t),e)))for(t=0;t<e.length;t++)ra(e[t])}}function $l(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Y]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(l(231,t,typeof n));return n}var Ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yo=!1;if(Ha)try{var Yl={};Object.defineProperty(Yl,"passive",{get:function(){yo=!0}}),window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{yo=!1}var oi=null,vo=null,Ks=null;function rd(){if(Ks)return Ks;var e,t=vo,n=t.length,i,o="value"in oi?oi.value:oi.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var h=n-e;for(i=1;i<=h&&t[n-i]===o[c-i];i++);return Ks=o.slice(e,1<i?1-i:void 0)}function Ps(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 Zs(){return!0}function od(){return!1}function Yn(e){function t(n,i,o,c,h){this._reactName=n,this._targetInst=o,this.type=i,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)?Zs:od,this.isPropagationStopped=od,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=Zs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Zs)},persist:function(){},isPersistent:Zs}),t}var Ui={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xs=Yn(Ui),Fl=v({},Ui,{view:0,detail:0}),vy=Yn(Fl),Eo,_o,Kl,Qs=v({},Fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:No,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!==Kl&&(Kl&&e.type==="mousemove"?(Eo=e.screenX-Kl.screenX,_o=e.screenY-Kl.screenY):_o=Eo=0,Kl=e),Eo)},movementY:function(e){return"movementY"in e?e.movementY:_o}}),cd=Yn(Qs),Ey=v({},Qs,{dataTransfer:0}),_y=Yn(Ey),Sy=v({},Fl,{relatedTarget:0}),So=Yn(Sy),Ny=v({},Ui,{animationName:0,elapsedTime:0,pseudoElement:0}),Ty=Yn(Ny),wy=v({},Ui,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xy=Yn(wy),Ay=v({},Ui,{data:0}),ud=Yn(Ay),Ry={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Oy={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"},ky={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ky[e])?!!t[e]:!1}function No(){return Cy}var My=v({},Fl,{key:function(e){if(e.key){var t=Ry[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ps(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Oy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:No,charCode:function(e){return e.type==="keypress"?Ps(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ps(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Dy=Yn(My),Ly=v({},Qs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fd=Yn(Ly),zy=v({},Fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:No}),Uy=Yn(zy),jy=v({},Ui,{propertyName:0,elapsedTime:0,pseudoElement:0}),By=Yn(jy),Iy=v({},Qs,{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}),Hy=Yn(Iy),qy=v({},Ui,{newState:0,oldState:0}),Gy=Yn(qy),$y=[9,13,27,32],To=Ha&&"CompositionEvent"in window,Pl=null;Ha&&"documentMode"in document&&(Pl=document.documentMode);var Yy=Ha&&"TextEvent"in window&&!Pl,dd=Ha&&(!To||Pl&&8<Pl&&11>=Pl),hd=" ",pd=!1;function md(e,t){switch(e){case"keyup":return $y.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var il=!1;function Fy(e,t){switch(e){case"compositionend":return gd(t);case"keypress":return t.which!==32?null:(pd=!0,hd);case"textInput":return e=t.data,e===hd&&pd?null:e;default:return null}}function Ky(e,t){if(il)return e==="compositionend"||!To&&md(e,t)?(e=rd(),Ks=vo=oi=null,il=!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 dd&&t.locale!=="ko"?null:t.data;default:return null}}var Py={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 bd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Py[e.type]:t==="textarea"}function yd(e,t,n,i){Xe?Ve?Ve.push(i):Ve=[i]:Xe=i,t=Ir(t,"onChange"),0<t.length&&(n=new Xs("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Zl=null,Xl=null;function Zy(e){em(e,0)}function Vs(e){var t=wa(e);if(li(t))return e}function vd(e,t){if(e==="change")return t}var Ed=!1;if(Ha){var wo;if(Ha){var xo="oninput"in document;if(!xo){var _d=document.createElement("div");_d.setAttribute("oninput","return;"),xo=typeof _d.oninput=="function"}wo=xo}else wo=!1;Ed=wo&&(!document.documentMode||9<document.documentMode)}function Sd(){Zl&&(Zl.detachEvent("onpropertychange",Nd),Xl=Zl=null)}function Nd(e){if(e.propertyName==="value"&&Vs(Xl)){var t=[];yd(t,Xl,e,ke(e)),Fs(Zy,t)}}function Xy(e,t,n){e==="focusin"?(Sd(),Zl=t,Xl=n,Zl.attachEvent("onpropertychange",Nd)):e==="focusout"&&Sd()}function Qy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Vs(Xl)}function Vy(e,t){if(e==="click")return Vs(t)}function Wy(e,t){if(e==="input"||e==="change")return Vs(t)}function Jy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wn=typeof Object.is=="function"?Object.is:Jy;function Ql(e,t){if(Wn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var o=n[i];if(!Qt.call(t,o)||!Wn(e[o],t[o]))return!1}return!0}function Td(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wd(e,t){var n=Td(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Td(n)}}function xd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ad(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ja(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=ja(e.document)}return t}function Ao(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 ev=Ha&&"documentMode"in document&&11>=document.documentMode,ll=null,Ro=null,Vl=null,Oo=!1;function Rd(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Oo||ll==null||ll!==ja(i)||(i=ll,"selectionStart"in i&&Ao(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Vl&&Ql(Vl,i)||(Vl=i,i=Ir(Ro,"onSelect"),0<i.length&&(t=new Xs("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=ll)))}function ji(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sl={animationend:ji("Animation","AnimationEnd"),animationiteration:ji("Animation","AnimationIteration"),animationstart:ji("Animation","AnimationStart"),transitionrun:ji("Transition","TransitionRun"),transitionstart:ji("Transition","TransitionStart"),transitioncancel:ji("Transition","TransitionCancel"),transitionend:ji("Transition","TransitionEnd")},ko={},Od={};Ha&&(Od=document.createElement("div").style,"AnimationEvent"in window||(delete sl.animationend.animation,delete sl.animationiteration.animation,delete sl.animationstart.animation),"TransitionEvent"in window||delete sl.transitionend.transition);function Bi(e){if(ko[e])return ko[e];if(!sl[e])return e;var t=sl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Od)return ko[e]=t[n];return e}var kd=Bi("animationend"),Cd=Bi("animationiteration"),Md=Bi("animationstart"),tv=Bi("transitionrun"),nv=Bi("transitionstart"),av=Bi("transitioncancel"),Dd=Bi("transitionend"),Ld=new Map,Co="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(" ");Co.push("scrollEnd");function va(e,t){Ld.set(e,t),ya(t,[e])}var Ws=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)},oa=[],rl=0,Mo=0;function Js(){for(var e=rl,t=Mo=rl=0;t<e;){var n=oa[t];oa[t++]=null;var i=oa[t];oa[t++]=null;var o=oa[t];oa[t++]=null;var c=oa[t];if(oa[t++]=null,i!==null&&o!==null){var h=i.pending;h===null?o.next=o:(o.next=h.next,h.next=o),i.pending=o}c!==0&&zd(n,o,c)}}function er(e,t,n,i){oa[rl++]=e,oa[rl++]=t,oa[rl++]=n,oa[rl++]=i,Mo|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Do(e,t,n,i){return er(e,t,n,i),tr(e)}function Ii(e,t){return er(e,null,null,t),tr(e)}function zd(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,i=c.alternate,i!==null&&(i.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-jt(n),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=n|536870912),c):null}function tr(e){if(50<vs)throw vs=0,Gc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ol={};function iv(e,t,n,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jn(e,t,n,i){return new iv(e,t,n,i)}function Lo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qa(e,t){var n=e.alternate;return n===null?(n=Jn(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 Ud(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 nr(e,t,n,i,o,c){var h=0;if(i=e,typeof e=="function")Lo(e)&&(h=1);else if(typeof e=="string")h=cE(e,n,ue.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case z:return e=Jn(31,n,t,o),e.elementType=z,e.lanes=c,e;case A:return Hi(n.children,o,c,t);case x:h=8,o|=24;break;case k:return e=Jn(12,n,t,o|2),e.elementType=k,e.lanes=c,e;case K:return e=Jn(13,n,t,o),e.elementType=K,e.lanes=c,e;case P:return e=Jn(19,n,t,o),e.elementType=P,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:h=10;break e;case I:h=9;break e;case le:h=11;break e;case ne:h=14;break e;case C:h=16,i=null;break e}h=29,n=Error(l(130,e===null?"null":typeof e,"")),i=null}return t=Jn(h,n,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function Hi(e,t,n,i){return e=Jn(7,e,i,t),e.lanes=n,e}function zo(e,t,n){return e=Jn(6,e,null,t),e.lanes=n,e}function jd(e){var t=Jn(18,null,null,0);return t.stateNode=e,t}function Uo(e,t,n){return t=Jn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bd=new WeakMap;function ca(e,t){if(typeof e=="object"&&e!==null){var n=Bd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:wn(t)},Bd.set(e,t),t)}return{value:e,source:t,stack:wn(t)}}var cl=[],ul=0,ar=null,Wl=0,ua=[],fa=0,ci=null,Ra=1,Oa="";function Ga(e,t){cl[ul++]=Wl,cl[ul++]=ar,ar=e,Wl=t}function Id(e,t,n){ua[fa++]=Ra,ua[fa++]=Oa,ua[fa++]=ci,ci=e;var i=Ra;e=Oa;var o=32-jt(i)-1;i&=~(1<<o),n+=1;var c=32-jt(t)+o;if(30<c){var h=o-o%5;c=(i&(1<<h)-1).toString(32),i>>=h,o-=h,Ra=1<<32-jt(t)+o|n<<o|i,Oa=c+e}else Ra=1<<c|n<<o|i,Oa=e}function jo(e){e.return!==null&&(Ga(e,1),Id(e,1,0))}function Bo(e){for(;e===ar;)ar=cl[--ul],cl[ul]=null,Wl=cl[--ul],cl[ul]=null;for(;e===ci;)ci=ua[--fa],ua[fa]=null,Oa=ua[--fa],ua[fa]=null,Ra=ua[--fa],ua[fa]=null}function Hd(e,t){ua[fa++]=Ra,ua[fa++]=Oa,ua[fa++]=ci,Ra=t.id,Oa=t.overflow,ci=e}var vn=null,Ct=null,rt=!1,ui=null,da=!1,Io=Error(l(519));function fi(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jl(ca(t,e)),Io}function qd(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[Ot]=e,t[Y]=i,n){case"dialog":tt("cancel",t),tt("close",t);break;case"iframe":case"object":case"embed":tt("load",t);break;case"video":case"audio":for(n=0;n<_s.length;n++)tt(_s[n],t);break;case"source":tt("error",t);break;case"img":case"image":case"link":tt("error",t),tt("load",t);break;case"details":tt("toggle",t);break;case"input":tt("invalid",t),Ba(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":tt("invalid",t);break;case"textarea":tt("invalid",t),Aa(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||im(t.textContent,n)?(i.popover!=null&&(tt("beforetoggle",t),tt("toggle",t)),i.onScroll!=null&&tt("scroll",t),i.onScrollEnd!=null&&tt("scrollend",t),i.onClick!=null&&(t.onclick=oe),t=!0):t=!1,t||fi(e,!0)}function Gd(e){for(vn=e.return;vn;)switch(vn.tag){case 5:case 31:case 13:da=!1;return;case 27:case 3:da=!0;return;default:vn=vn.return}}function fl(e){if(e!==vn)return!1;if(!rt)return Gd(e),rt=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||au(e.type,e.memoizedProps)),n=!n),n&&Ct&&fi(e),Gd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Ct=hm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Ct=hm(e)}else t===27?(t=Ct,wi(e.type)?(e=ou,ou=null,Ct=e):Ct=t):Ct=vn?pa(e.stateNode.nextSibling):null;return!0}function qi(){Ct=vn=null,rt=!1}function Ho(){var e=ui;return e!==null&&(Zn===null?Zn=e:Zn.push.apply(Zn,e),ui=null),e}function Jl(e){ui===null?ui=[e]:ui.push(e)}var qo=S(null),Gi=null,$a=null;function di(e,t,n){H(qo,t._currentValue),t._currentValue=n}function Ya(e){e._currentValue=qo.current,D(qo)}function Go(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function $o(e,t,n,i){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 R=0;R<t.length;R++)if(E.context===t[R]){c.lanes|=n,E=c.alternate,E!==null&&(E.lanes|=n),Go(c.return,n,e),i||(h=null);break e}c=E.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(l(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),Go(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 dl(e,t,n,i){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(l(387));if(h=h.memoizedProps,h!==null){var E=o.type;Wn(o.pendingProps.value,h.value)||(e!==null?e.push(E):e=[E])}}else if(o===ge.current){if(h=o.alternate,h===null)throw Error(l(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(xs):e=[xs])}o=o.return}e!==null&&$o(t,e,n,i),t.flags|=262144}function ir(e){for(e=e.firstContext;e!==null;){if(!Wn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $i(e){Gi=e,$a=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function En(e){return $d(Gi,e)}function lr(e,t){return Gi===null&&$i(e),$d(e,t)}function $d(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},$a===null){if(e===null)throw Error(l(308));$a=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else $a=$a.next=t;return n}var lv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},sv=s.unstable_scheduleCallback,rv=s.unstable_NormalPriority,Jt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yo(){return{controller:new lv,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&sv(rv,function(){e.controller.abort()})}var ts=null,Fo=0,hl=0,pl=null;function ov(e,t){if(ts===null){var n=ts=[];Fo=0,hl=Zc(),pl={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Fo++,t.then(Yd,Yd),t}function Yd(){if(--Fo===0&&ts!==null){pl!==null&&(pl.status="fulfilled");var e=ts;ts=null,hl=0,pl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function cv(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),i}var Fd=j.S;j.S=function(e,t){Rp=st(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ov(e,t),Fd!==null&&Fd(e,t)};var Yi=S(null);function Ko(){var e=Yi.current;return e!==null?e:At.pooledCache}function sr(e,t){t===null?H(Yi,Yi.current):H(Yi,t.pool)}function Kd(){var e=Ko();return e===null?null:{parent:Jt._currentValue,pool:e}}var ml=Error(l(460)),Po=Error(l(474)),rr=Error(l(542)),or={then:function(){}};function Pd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Zd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(oe,oe),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Qd(e),e;default:if(typeof t.status=="string")t.then(oe,oe);else{if(e=At,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Qd(e),e}throw Ki=t,ml}}function Fi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ki=n,ml):n}}var Ki=null;function Xd(){if(Ki===null)throw Error(l(459));var e=Ki;return Ki=null,e}function Qd(e){if(e===ml||e===rr)throw Error(l(483))}var gl=null,ns=0;function cr(e){var t=ns;return ns+=1,gl===null&&(gl=[]),Zd(gl,e,t)}function as(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ur(e,t){throw t.$$typeof===_?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Vd(e){function t(B,M){if(e){var G=B.deletions;G===null?(B.deletions=[M],B.flags|=16):G.push(M)}}function n(B,M){if(!e)return null;for(;M!==null;)t(B,M),M=M.sibling;return null}function i(B){for(var M=new Map;B!==null;)B.key!==null?M.set(B.key,B):M.set(B.index,B),B=B.sibling;return M}function o(B,M){return B=qa(B,M),B.index=0,B.sibling=null,B}function c(B,M,G){return B.index=G,e?(G=B.alternate,G!==null?(G=G.index,G<M?(B.flags|=67108866,M):G):(B.flags|=67108866,M)):(B.flags|=1048576,M)}function h(B){return e&&B.alternate===null&&(B.flags|=67108866),B}function E(B,M,G,ie){return M===null||M.tag!==6?(M=zo(G,B.mode,ie),M.return=B,M):(M=o(M,G),M.return=B,M)}function R(B,M,G,ie){var De=G.type;return De===A?te(B,M,G.props.children,ie,G.key):M!==null&&(M.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===C&&Fi(De)===M.type)?(M=o(M,G.props),as(M,G),M.return=B,M):(M=nr(G.type,G.key,G.props,null,B.mode,ie),as(M,G),M.return=B,M)}function $(B,M,G,ie){return M===null||M.tag!==4||M.stateNode.containerInfo!==G.containerInfo||M.stateNode.implementation!==G.implementation?(M=Uo(G,B.mode,ie),M.return=B,M):(M=o(M,G.children||[]),M.return=B,M)}function te(B,M,G,ie,De){return M===null||M.tag!==7?(M=Hi(G,B.mode,ie,De),M.return=B,M):(M=o(M,G),M.return=B,M)}function se(B,M,G){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=zo(""+M,B.mode,G),M.return=B,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case w:return G=nr(M.type,M.key,M.props,null,B.mode,G),as(G,M),G.return=B,G;case T:return M=Uo(M,B.mode,G),M.return=B,M;case C:return M=Fi(M),se(B,M,G)}if(pe(M)||de(M))return M=Hi(M,B.mode,G,null),M.return=B,M;if(typeof M.then=="function")return se(B,cr(M),G);if(M.$$typeof===L)return se(B,lr(B,M),G);ur(B,M)}return null}function F(B,M,G,ie){var De=M!==null?M.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return De!==null?null:E(B,M,""+G,ie);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case w:return G.key===De?R(B,M,G,ie):null;case T:return G.key===De?$(B,M,G,ie):null;case C:return G=Fi(G),F(B,M,G,ie)}if(pe(G)||de(G))return De!==null?null:te(B,M,G,ie,null);if(typeof G.then=="function")return F(B,M,cr(G),ie);if(G.$$typeof===L)return F(B,M,lr(B,G),ie);ur(B,G)}return null}function Q(B,M,G,ie,De){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return B=B.get(G)||null,E(M,B,""+ie,De);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case w:return B=B.get(ie.key===null?G:ie.key)||null,R(M,B,ie,De);case T:return B=B.get(ie.key===null?G:ie.key)||null,$(M,B,ie,De);case C:return ie=Fi(ie),Q(B,M,G,ie,De)}if(pe(ie)||de(ie))return B=B.get(G)||null,te(M,B,ie,De,null);if(typeof ie.then=="function")return Q(B,M,G,cr(ie),De);if(ie.$$typeof===L)return Q(B,M,G,lr(M,ie),De);ur(M,ie)}return null}function xe(B,M,G,ie){for(var De=null,ht=null,Re=M,Ze=M=0,lt=null;Re!==null&&Ze<G.length;Ze++){Re.index>Ze?(lt=Re,Re=null):lt=Re.sibling;var pt=F(B,Re,G[Ze],ie);if(pt===null){Re===null&&(Re=lt);break}e&&Re&&pt.alternate===null&&t(B,Re),M=c(pt,M,Ze),ht===null?De=pt:ht.sibling=pt,ht=pt,Re=lt}if(Ze===G.length)return n(B,Re),rt&&Ga(B,Ze),De;if(Re===null){for(;Ze<G.length;Ze++)Re=se(B,G[Ze],ie),Re!==null&&(M=c(Re,M,Ze),ht===null?De=Re:ht.sibling=Re,ht=Re);return rt&&Ga(B,Ze),De}for(Re=i(Re);Ze<G.length;Ze++)lt=Q(Re,B,Ze,G[Ze],ie),lt!==null&&(e&&lt.alternate!==null&&Re.delete(lt.key===null?Ze:lt.key),M=c(lt,M,Ze),ht===null?De=lt:ht.sibling=lt,ht=lt);return e&&Re.forEach(function(ki){return t(B,ki)}),rt&&Ga(B,Ze),De}function je(B,M,G,ie){if(G==null)throw Error(l(151));for(var De=null,ht=null,Re=M,Ze=M=0,lt=null,pt=G.next();Re!==null&&!pt.done;Ze++,pt=G.next()){Re.index>Ze?(lt=Re,Re=null):lt=Re.sibling;var ki=F(B,Re,pt.value,ie);if(ki===null){Re===null&&(Re=lt);break}e&&Re&&ki.alternate===null&&t(B,Re),M=c(ki,M,Ze),ht===null?De=ki:ht.sibling=ki,ht=ki,Re=lt}if(pt.done)return n(B,Re),rt&&Ga(B,Ze),De;if(Re===null){for(;!pt.done;Ze++,pt=G.next())pt=se(B,pt.value,ie),pt!==null&&(M=c(pt,M,Ze),ht===null?De=pt:ht.sibling=pt,ht=pt);return rt&&Ga(B,Ze),De}for(Re=i(Re);!pt.done;Ze++,pt=G.next())pt=Q(Re,B,Ze,pt.value,ie),pt!==null&&(e&&pt.alternate!==null&&Re.delete(pt.key===null?Ze:pt.key),M=c(pt,M,Ze),ht===null?De=pt:ht.sibling=pt,ht=pt);return e&&Re.forEach(function(EE){return t(B,EE)}),rt&&Ga(B,Ze),De}function wt(B,M,G,ie){if(typeof G=="object"&&G!==null&&G.type===A&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case w:e:{for(var De=G.key;M!==null;){if(M.key===De){if(De=G.type,De===A){if(M.tag===7){n(B,M.sibling),ie=o(M,G.props.children),ie.return=B,B=ie;break e}}else if(M.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===C&&Fi(De)===M.type){n(B,M.sibling),ie=o(M,G.props),as(ie,G),ie.return=B,B=ie;break e}n(B,M);break}else t(B,M);M=M.sibling}G.type===A?(ie=Hi(G.props.children,B.mode,ie,G.key),ie.return=B,B=ie):(ie=nr(G.type,G.key,G.props,null,B.mode,ie),as(ie,G),ie.return=B,B=ie)}return h(B);case T:e:{for(De=G.key;M!==null;){if(M.key===De)if(M.tag===4&&M.stateNode.containerInfo===G.containerInfo&&M.stateNode.implementation===G.implementation){n(B,M.sibling),ie=o(M,G.children||[]),ie.return=B,B=ie;break e}else{n(B,M);break}else t(B,M);M=M.sibling}ie=Uo(G,B.mode,ie),ie.return=B,B=ie}return h(B);case C:return G=Fi(G),wt(B,M,G,ie)}if(pe(G))return xe(B,M,G,ie);if(de(G)){if(De=de(G),typeof De!="function")throw Error(l(150));return G=De.call(G),je(B,M,G,ie)}if(typeof G.then=="function")return wt(B,M,cr(G),ie);if(G.$$typeof===L)return wt(B,M,lr(B,G),ie);ur(B,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,M!==null&&M.tag===6?(n(B,M.sibling),ie=o(M,G),ie.return=B,B=ie):(n(B,M),ie=zo(G,B.mode,ie),ie.return=B,B=ie),h(B)):n(B,M)}return function(B,M,G,ie){try{ns=0;var De=wt(B,M,G,ie);return gl=null,De}catch(Re){if(Re===ml||Re===rr)throw Re;var ht=Jn(29,Re,null,B.mode);return ht.lanes=ie,ht.return=B,ht}finally{}}}var Pi=Vd(!0),Wd=Vd(!1),hi=!1;function Zo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xo(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 pi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function mi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(gt&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=tr(e),zd(e,null,n),t}return er(e,i,t,n),tr(e)}function is(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ue(e,n)}}function Qo(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){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:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Vo=!1;function ls(){if(Vo){var e=pl;if(e!==null)throw e}}function ss(e,t,n,i){Vo=!1;var o=e.updateQueue;hi=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var R=E,$=R.next;R.next=null,h===null?c=$:h.next=$,h=R;var te=e.alternate;te!==null&&(te=te.updateQueue,E=te.lastBaseUpdate,E!==h&&(E===null?te.firstBaseUpdate=$:E.next=$,te.lastBaseUpdate=R))}if(c!==null){var se=o.baseState;h=0,te=$=R=null,E=c;do{var F=E.lane&-536870913,Q=F!==E.lane;if(Q?(it&F)===F:(i&F)===F){F!==0&&F===hl&&(Vo=!0),te!==null&&(te=te.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var xe=e,je=E;F=t;var wt=n;switch(je.tag){case 1:if(xe=je.payload,typeof xe=="function"){se=xe.call(wt,se,F);break e}se=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=je.payload,F=typeof xe=="function"?xe.call(wt,se,F):xe,F==null)break e;se=v({},se,F);break e;case 2:hi=!0}}F=E.callback,F!==null&&(e.flags|=64,Q&&(e.flags|=8192),Q=o.callbacks,Q===null?o.callbacks=[F]:Q.push(F))}else Q={lane:F,tag:E.tag,payload:E.payload,callback:E.callback,next:null},te===null?($=te=Q,R=se):te=te.next=Q,h|=F;if(E=E.next,E===null){if(E=o.shared.pending,E===null)break;Q=E,E=Q.next,Q.next=null,o.lastBaseUpdate=Q,o.shared.pending=null}}while(!0);te===null&&(R=se),o.baseState=R,o.firstBaseUpdate=$,o.lastBaseUpdate=te,c===null&&(o.shared.lanes=0),Ei|=h,e.lanes=h,e.memoizedState=se}}function Jd(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function eh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Jd(n[e],t)}var bl=S(null),fr=S(0);function th(e,t){e=Ja,H(fr,e),H(bl,t),Ja=e|t.baseLanes}function Wo(){H(fr,Ja),H(bl,bl.current)}function Jo(){Ja=fr.current,D(bl),D(fr)}var ea=S(null),ha=null;function gi(e){var t=e.alternate;H(Ft,Ft.current&1),H(ea,e),ha===null&&(t===null||bl.current!==null||t.memoizedState!==null)&&(ha=e)}function ec(e){H(Ft,Ft.current),H(ea,e),ha===null&&(ha=e)}function nh(e){e.tag===22?(H(Ft,Ft.current),H(ea,e),ha===null&&(ha=e)):bi()}function bi(){H(Ft,Ft.current),H(ea,ea.current)}function ta(e){D(ea),ha===e&&(ha=null),D(Ft)}var Ft=S(0);function dr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||su(n)||ru(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 Fa=0,Ye=null,Nt=null,en=null,hr=!1,yl=!1,Zi=!1,pr=0,rs=0,vl=null,uv=0;function It(){throw Error(l(321))}function tc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Wn(e[n],t[n]))return!1;return!0}function nc(e,t,n,i,o,c){return Fa=c,Ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Ih:bc,Zi=!1,c=n(i,o),Zi=!1,yl&&(c=ih(t,n,i,o)),ah(e),c}function ah(e){j.H=us;var t=Nt!==null&&Nt.next!==null;if(Fa=0,en=Nt=Ye=null,hr=!1,rs=0,vl=null,t)throw Error(l(300));e===null||tn||(e=e.dependencies,e!==null&&ir(e)&&(tn=!0))}function ih(e,t,n,i){Ye=e;var o=0;do{if(yl&&(vl=null),rs=0,yl=!1,25<=o)throw Error(l(301));if(o+=1,en=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)}j.H=Hh,c=t(n,i)}while(yl);return c}function fv(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?os(t):t,e=e.useState()[0],(Nt!==null?Nt.memoizedState:null)!==e&&(Ye.flags|=1024),t}function ac(){var e=pr!==0;return pr=0,e}function ic(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function lc(e){if(hr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hr=!1}Fa=0,en=Nt=Ye=null,yl=!1,rs=pr=0,vl=null}function qn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return en===null?Ye.memoizedState=en=e:en=en.next=e,en}function Kt(){if(Nt===null){var e=Ye.alternate;e=e!==null?e.memoizedState:null}else e=Nt.next;var t=en===null?Ye.memoizedState:en.next;if(t!==null)en=t,Nt=e;else{if(e===null)throw Ye.alternate===null?Error(l(467)):Error(l(310));Nt=e,e={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},en===null?Ye.memoizedState=en=e:en=en.next=e}return en}function mr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=rs;return rs+=1,vl===null&&(vl=[]),e=Zd(vl,e,t),t=Ye,(en===null?t.memoizedState:en.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Ih:bc),e}function gr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===L)return En(e)}throw Error(l(438,String(e)))}function sc(e){var t=null,n=Ye.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ye.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=mr(),Ye.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=X;return t.index++,n}function Ka(e,t){return typeof t=="function"?t(e):t}function br(e){var t=Kt();return rc(t,Nt,e)}function rc(e,t,n){var i=e.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=n;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var E=h=null,R=null,$=t,te=!1;do{var se=$.lane&-536870913;if(se!==$.lane?(it&se)===se:(Fa&se)===se){var F=$.revertLane;if(F===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),se===hl&&(te=!0);else if((Fa&F)===F){$=$.next,F===hl&&(te=!0);continue}else se={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},R===null?(E=R=se,h=c):R=R.next=se,Ye.lanes|=F,Ei|=F;se=$.action,Zi&&n(c,se),c=$.hasEagerState?$.eagerState:n(c,se)}else F={lane:se,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},R===null?(E=R=F,h=c):R=R.next=F,Ye.lanes|=se,Ei|=se;$=$.next}while($!==null&&$!==t);if(R===null?h=c:R.next=E,!Wn(c,e.memoizedState)&&(tn=!0,te&&(n=pl,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=R,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function oc(e){var t=Kt(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var i=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);Wn(c,t.memoizedState)||(tn=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,i]}function lh(e,t,n){var i=Ye,o=Kt(),c=rt;if(c){if(n===void 0)throw Error(l(407));n=n()}else n=t();var h=!Wn((Nt||o).memoizedState,n);if(h&&(o.memoizedState=n,tn=!0),o=o.queue,fc(oh.bind(null,i,o,e),[e]),o.getSnapshot!==t||h||en!==null&&en.memoizedState.tag&1){if(i.flags|=2048,El(9,{destroy:void 0},rh.bind(null,i,o,n,t),null),At===null)throw Error(l(349));c||(Fa&127)!==0||sh(i,t,n)}return n}function sh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ye.updateQueue,t===null?(t=mr(),Ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function rh(e,t,n,i){t.value=n,t.getSnapshot=i,ch(t)&&uh(e)}function oh(e,t,n){return n(function(){ch(t)&&uh(e)})}function ch(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wn(e,n)}catch{return!0}}function uh(e){var t=Ii(e,2);t!==null&&Xn(t,e,2)}function cc(e){var t=qn();if(typeof e=="function"){var n=e;if(e=n(),Zi){fn(!0);try{n()}finally{fn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:e},t}function fh(e,t,n,i){return e.baseState=n,rc(e,Nt,typeof i=="function"?i:Ka)}function dv(e,t,n,i,o){if(Er(e))throw Error(l(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)}};j.T!==null?n(!0):c.isTransition=!1,i(c),n=t.pending,n===null?(c.next=t.pending=c,dh(t,c)):(c.next=n.next,t.pending=n.next=c)}}function dh(e,t){var n=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=j.T,h={};j.T=h;try{var E=n(o,i),R=j.S;R!==null&&R(h,E),hh(e,t,E)}catch($){uc(e,t,$)}finally{c!==null&&h.types!==null&&(c.types=h.types),j.T=c}}else try{c=n(o,i),hh(e,t,c)}catch($){uc(e,t,$)}}function hh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){ph(e,t,i)},function(i){return uc(e,t,i)}):ph(e,t,n)}function ph(e,t,n){t.status="fulfilled",t.value=n,mh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,dh(e,n)))}function uc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,mh(t),t=t.next;while(t!==i)}e.action=null}function mh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gh(e,t){return t}function bh(e,t){if(rt){var n=At.formState;if(n!==null){e:{var i=Ye;if(rt){if(Ct){t:{for(var o=Ct,c=da;o.nodeType!==8;){if(!c){o=null;break t}if(o=pa(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Ct=pa(o.nextSibling),i=o.data==="F!";break e}}fi(i)}i=!1}i&&(t=n[0])}}return n=qn(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gh,lastRenderedState:t},n.queue=i,n=Uh.bind(null,Ye,i),i.dispatch=n,i=cc(!1),c=gc.bind(null,Ye,!1,i.queue),i=qn(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,n=dv.bind(null,Ye,o,c,n),o.dispatch=n,i.memoizedState=e,[t,n,!1]}function yh(e){var t=Kt();return vh(t,Nt,e)}function vh(e,t,n){if(t=rc(e,t,gh)[0],e=br(Ka)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=os(t)}catch(h){throw h===ml?rr:h}else i=t;t=Kt();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(Ye.flags|=2048,El(9,{destroy:void 0},hv.bind(null,o,n),null)),[i,c,e]}function hv(e,t){e.action=t}function Eh(e){var t=Kt(),n=Nt;if(n!==null)return vh(t,n,e);Kt(),t=t.memoizedState,n=Kt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function El(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Ye.updateQueue,t===null&&(t=mr(),Ye.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function _h(){return Kt().memoizedState}function yr(e,t,n,i){var o=qn();Ye.flags|=e,o.memoizedState=El(1|t,{destroy:void 0},n,i===void 0?null:i)}function vr(e,t,n,i){var o=Kt();i=i===void 0?null:i;var c=o.memoizedState.inst;Nt!==null&&i!==null&&tc(i,Nt.memoizedState.deps)?o.memoizedState=El(t,c,n,i):(Ye.flags|=e,o.memoizedState=El(1|t,c,n,i))}function Sh(e,t){yr(8390656,8,e,t)}function fc(e,t){vr(2048,8,e,t)}function pv(e){Ye.flags|=4;var t=Ye.updateQueue;if(t===null)t=mr(),Ye.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Nh(e){var t=Kt().memoizedState;return pv({ref:t,nextImpl:e}),function(){if((gt&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function Th(e,t){return vr(4,2,e,t)}function wh(e,t){return vr(4,4,e,t)}function xh(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 Ah(e,t,n){n=n!=null?n.concat([e]):null,vr(4,4,xh.bind(null,t,e),n)}function dc(){}function Rh(e,t){var n=Kt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&tc(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Oh(e,t){var n=Kt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&tc(t,i[1]))return i[0];if(i=e(),Zi){fn(!0);try{e()}finally{fn(!1)}}return n.memoizedState=[i,t],i}function hc(e,t,n){return n===void 0||(Fa&1073741824)!==0&&(it&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=kp(),Ye.lanes|=e,Ei|=e,n)}function kh(e,t,n,i){return Wn(n,t)?n:bl.current!==null?(e=hc(e,n,i),Wn(e,t)||(tn=!0),e):(Fa&42)===0||(Fa&1073741824)!==0&&(it&261930)===0?(tn=!0,e.memoizedState=n):(e=kp(),Ye.lanes|=e,Ei|=e,t)}function Ch(e,t,n,i,o){var c=ae.p;ae.p=c!==0&&8>c?c:8;var h=j.T,E={};j.T=E,gc(e,!1,t,n);try{var R=o(),$=j.S;if($!==null&&$(E,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var te=cv(R,i);cs(e,t,te,ia(e))}else cs(e,t,i,ia(e))}catch(se){cs(e,t,{then:function(){},status:"rejected",reason:se},ia())}finally{ae.p=c,h!==null&&E.types!==null&&(h.types=E.types),j.T=h}}function mv(){}function pc(e,t,n,i){if(e.tag!==5)throw Error(l(476));var o=Mh(e).queue;Ch(e,o,t,ce,n===null?mv:function(){return Dh(e),n(i)})}function Mh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:ce},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 Dh(e){var t=Mh(e);t.next===null&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},ia())}function mc(){return En(xs)}function Lh(){return Kt().memoizedState}function zh(){return Kt().memoizedState}function gv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=ia();e=pi(n);var i=mi(t,e,n);i!==null&&(Xn(i,t,n),is(i,t,n)),t={cache:Yo()},e.payload=t;return}t=t.return}}function bv(e,t,n){var i=ia();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Er(e)?jh(t,n):(n=Do(e,t,n,i),n!==null&&(Xn(n,e,i),Bh(n,t,i)))}function Uh(e,t,n){var i=ia();cs(e,t,n,i)}function cs(e,t,n,i){var o={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Er(e))jh(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,Wn(E,h))return er(e,t,o,0),At===null&&Js(),!1}catch{}finally{}if(n=Do(e,t,o,i),n!==null)return Xn(n,e,i),Bh(n,t,i),!0}return!1}function gc(e,t,n,i){if(i={lane:2,revertLane:Zc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Er(e)){if(t)throw Error(l(479))}else t=Do(e,n,i,2),t!==null&&Xn(t,e,2)}function Er(e){var t=e.alternate;return e===Ye||t!==null&&t===Ye}function jh(e,t){yl=hr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bh(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ue(e,n)}}var us={readContext:En,use:gr,useCallback:It,useContext:It,useEffect:It,useImperativeHandle:It,useLayoutEffect:It,useInsertionEffect:It,useMemo:It,useReducer:It,useRef:It,useState:It,useDebugValue:It,useDeferredValue:It,useTransition:It,useSyncExternalStore:It,useId:It,useHostTransitionStatus:It,useFormState:It,useActionState:It,useOptimistic:It,useMemoCache:It,useCacheRefresh:It};us.useEffectEvent=It;var Ih={readContext:En,use:gr,useCallback:function(e,t){return qn().memoizedState=[e,t===void 0?null:t],e},useContext:En,useEffect:Sh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,yr(4194308,4,xh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yr(4194308,4,e,t)},useInsertionEffect:function(e,t){yr(4,2,e,t)},useMemo:function(e,t){var n=qn();t=t===void 0?null:t;var i=e();if(Zi){fn(!0);try{e()}finally{fn(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=qn();if(n!==void 0){var o=n(t);if(Zi){fn(!0);try{n(t)}finally{fn(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=bv.bind(null,Ye,e),[i.memoizedState,e]},useRef:function(e){var t=qn();return e={current:e},t.memoizedState=e},useState:function(e){e=cc(e);var t=e.queue,n=Uh.bind(null,Ye,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:dc,useDeferredValue:function(e,t){var n=qn();return hc(n,e,t)},useTransition:function(){var e=cc(!1);return e=Ch.bind(null,Ye,e.queue,!0,!1),qn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ye,o=qn();if(rt){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),At===null)throw Error(l(349));(it&127)!==0||sh(i,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,Sh(oh.bind(null,i,c,e),[e]),i.flags|=2048,El(9,{destroy:void 0},rh.bind(null,i,c,n,t),null),n},useId:function(){var e=qn(),t=At.identifierPrefix;if(rt){var n=Oa,i=Ra;n=(i&~(1<<32-jt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=pr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=uv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:mc,useFormState:bh,useActionState:bh,useOptimistic:function(e){var t=qn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=gc.bind(null,Ye,!0,n),n.dispatch=t,[e,t]},useMemoCache:sc,useCacheRefresh:function(){return qn().memoizedState=gv.bind(null,Ye)},useEffectEvent:function(e){var t=qn(),n={impl:e};return t.memoizedState=n,function(){if((gt&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}},bc={readContext:En,use:gr,useCallback:Rh,useContext:En,useEffect:fc,useImperativeHandle:Ah,useInsertionEffect:Th,useLayoutEffect:wh,useMemo:Oh,useReducer:br,useRef:_h,useState:function(){return br(Ka)},useDebugValue:dc,useDeferredValue:function(e,t){var n=Kt();return kh(n,Nt.memoizedState,e,t)},useTransition:function(){var e=br(Ka)[0],t=Kt().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:lh,useId:Lh,useHostTransitionStatus:mc,useFormState:yh,useActionState:yh,useOptimistic:function(e,t){var n=Kt();return fh(n,Nt,e,t)},useMemoCache:sc,useCacheRefresh:zh};bc.useEffectEvent=Nh;var Hh={readContext:En,use:gr,useCallback:Rh,useContext:En,useEffect:fc,useImperativeHandle:Ah,useInsertionEffect:Th,useLayoutEffect:wh,useMemo:Oh,useReducer:oc,useRef:_h,useState:function(){return oc(Ka)},useDebugValue:dc,useDeferredValue:function(e,t){var n=Kt();return Nt===null?hc(n,e,t):kh(n,Nt.memoizedState,e,t)},useTransition:function(){var e=oc(Ka)[0],t=Kt().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:lh,useId:Lh,useHostTransitionStatus:mc,useFormState:Eh,useActionState:Eh,useOptimistic:function(e,t){var n=Kt();return Nt!==null?fh(n,Nt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:sc,useCacheRefresh:zh};Hh.useEffectEvent=Nh;function yc(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vc={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=ia(),o=pi(i);o.payload=t,n!=null&&(o.callback=n),t=mi(e,o,i),t!==null&&(Xn(t,e,i),is(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=ia(),o=pi(i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=mi(e,o,i),t!==null&&(Xn(t,e,i),is(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ia(),i=pi(n);i.tag=2,t!=null&&(i.callback=t),t=mi(e,i,n),t!==null&&(Xn(t,e,n),is(t,e,n))}};function qh(e,t,n,i,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,h):t.prototype&&t.prototype.isPureReactComponent?!Ql(n,i)||!Ql(o,c):!0}function Gh(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&vc.enqueueReplaceState(t,t.state,null)}function Xi(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}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 $h(e){Ws(e)}function Yh(e){console.error(e)}function Fh(e){Ws(e)}function _r(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Kh(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Ec(e,t,n){return n=pi(n),n.tag=3,n.payload={element:null},n.callback=function(){_r(e,t)},n}function Ph(e){return e=pi(e),e.tag=3,e}function Zh(e,t,n,i){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){Kh(t,n,i)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Kh(t,n,i),typeof o!="function"&&(_i===null?_i=new Set([this]):_i.add(this));var E=i.stack;this.componentDidCatch(i.value,{componentStack:E!==null?E:""})})}function yv(e,t,n,i,o){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&dl(t,n,o,!0),n=ea.current,n!==null){switch(n.tag){case 31:case 13:return ha===null?Dr():n.alternate===null&&Ht===0&&(Ht=3),n.flags&=-257,n.flags|=65536,n.lanes=o,i===or?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Fc(e,i,o)),!1;case 22:return n.flags|=65536,i===or?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Fc(e,i,o)),!1}throw Error(l(435,n.tag))}return Fc(e,i,o),Dr(),!1}if(rt)return t=ea.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==Io&&(e=Error(l(422),{cause:i}),Jl(ca(e,n)))):(i!==Io&&(t=Error(l(423),{cause:i}),Jl(ca(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=ca(i,n),o=Ec(e.stateNode,i,o),Qo(e,o),Ht!==4&&(Ht=2)),!1;var c=Error(l(520),{cause:i});if(c=ca(c,n),ys===null?ys=[c]:ys.push(c),Ht!==4&&(Ht=2),t===null)return!0;i=ca(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Ec(n.stateNode,i,e),Qo(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"&&(_i===null||!_i.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Ph(o),Zh(o,e,n,i),Qo(n,o),!1}n=n.return}while(n!==null);return!1}var _c=Error(l(461)),tn=!1;function _n(e,t,n,i){t.child=e===null?Wd(t,null,n,i):Pi(t,e.child,n,i)}function Xh(e,t,n,i,o){n=n.render;var c=t.ref;if("ref"in i){var h={};for(var E in i)E!=="ref"&&(h[E]=i[E])}else h=i;return $i(t),i=nc(e,t,n,h,c,o),E=ac(),e!==null&&!tn?(ic(e,t,o),Pa(e,t,o)):(rt&&E&&jo(t),t.flags|=1,_n(e,t,i,o),t.child)}function Qh(e,t,n,i,o){if(e===null){var c=n.type;return typeof c=="function"&&!Lo(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Vh(e,t,c,i,o)):(e=nr(n.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Oc(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ql,n(h,i)&&e.ref===t.ref)return Pa(e,t,o)}return t.flags|=1,e=qa(c,i),e.ref=t.ref,e.return=t,t.child=e}function Vh(e,t,n,i,o){if(e!==null){var c=e.memoizedProps;if(Ql(c,i)&&e.ref===t.ref)if(tn=!1,t.pendingProps=i=c,Oc(e,o))(e.flags&131072)!==0&&(tn=!0);else return t.lanes=e.lanes,Pa(e,t,o)}return Sc(e,t,n,i,o)}function Wh(e,t,n,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return Jh(e,t,c,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&sr(t,c!==null?c.cachePool:null),c!==null?th(t,c):Wo(),nh(t);else return i=t.lanes=536870912,Jh(e,t,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(sr(t,c.cachePool),th(t,c),bi(),t.memoizedState=null):(e!==null&&sr(t,null),Wo(),bi());return _n(e,t,o,n),t.child}function fs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Jh(e,t,n,i,o){var c=Ko();return c=c===null?null:{parent:Jt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&sr(t,null),Wo(),nh(t),e!==null&&dl(e,t,i,!0),t.childLanes=o,null}function Sr(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 ep(e,t,n){return Pi(t,e.child,null,n),e=Sr(t,t.pendingProps),e.flags|=2,ta(t),t.memoizedState=null,e}function vv(e,t,n){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(rt){if(i.mode==="hidden")return e=Sr(t,i),t.lanes=536870912,fs(null,e);if(ec(t),(e=Ct)?(e=dm(e,da),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ci!==null?{id:Ra,overflow:Oa}:null,retryLane:536870912,hydrationErrors:null},n=jd(e),n.return=t,t.child=n,vn=t,Ct=null)):e=null,e===null)throw fi(t);return t.lanes=536870912,null}return Sr(t,i)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(ec(t),o)if(t.flags&256)t.flags&=-257,t=ep(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(tn||dl(e,t,n,!1),o=(n&e.childLanes)!==0,tn||o){if(i=At,i!==null&&(h=Rt(i,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,Ii(e,h),Xn(i,e,h),_c;Dr(),t=ep(e,t,n)}else e=c.treeContext,Ct=pa(h.nextSibling),vn=t,rt=!0,ui=null,da=!1,e!==null&&Hd(t,e),t=Sr(t,i),t.flags|=4096;return t}return e=qa(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Nr(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(l(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Sc(e,t,n,i,o){return $i(t),n=nc(e,t,n,i,void 0,o),i=ac(),e!==null&&!tn?(ic(e,t,o),Pa(e,t,o)):(rt&&i&&jo(t),t.flags|=1,_n(e,t,n,o),t.child)}function tp(e,t,n,i,o,c){return $i(t),t.updateQueue=null,n=ih(t,i,n,o),ah(e),i=ac(),e!==null&&!tn?(ic(e,t,c),Pa(e,t,c)):(rt&&i&&jo(t),t.flags|=1,_n(e,t,n,c),t.child)}function np(e,t,n,i,o){if($i(t),t.stateNode===null){var c=ol,h=n.contextType;typeof h=="object"&&h!==null&&(c=En(h)),c=new n(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=vc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Zo(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?En(h):ol,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(yc(t,n,h,i),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&&vc.enqueueReplaceState(c,c.state,null),ss(t,i,c,o),ls(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var E=t.memoizedProps,R=Xi(n,E);c.props=R;var $=c.context,te=n.contextType;h=ol,typeof te=="object"&&te!==null&&(h=En(te));var se=n.getDerivedStateFromProps;te=typeof se=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,te||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||$!==h)&&Gh(t,c,i,h),hi=!1;var F=t.memoizedState;c.state=F,ss(t,i,c,o),ls(),$=t.memoizedState,E||F!==$||hi?(typeof se=="function"&&(yc(t,n,se,i),$=t.memoizedState),(R=hi||qh(t,n,R,i,F,$,h))?(te||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=i,t.memoizedState=$),c.props=i,c.state=$,c.context=h,i=R):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,Xo(e,t),h=t.memoizedProps,te=Xi(n,h),c.props=te,se=t.pendingProps,F=c.context,$=n.contextType,R=ol,typeof $=="object"&&$!==null&&(R=En($)),E=n.getDerivedStateFromProps,($=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==se||F!==R)&&Gh(t,c,i,R),hi=!1,F=t.memoizedState,c.state=F,ss(t,i,c,o),ls();var Q=t.memoizedState;h!==se||F!==Q||hi||e!==null&&e.dependencies!==null&&ir(e.dependencies)?(typeof E=="function"&&(yc(t,n,E,i),Q=t.memoizedState),(te=hi||qh(t,n,te,i,F,Q,R)||e!==null&&e.dependencies!==null&&ir(e.dependencies))?($||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,Q,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,Q,R)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=Q),c.props=i,c.state=Q,c.context=R,i=te):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,Nr(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Pi(t,e.child,null,o),t.child=Pi(t,null,n,o)):_n(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Pa(e,t,o),e}function ap(e,t,n,i){return qi(),t.flags|=256,_n(e,t,n,i),t.child}var Nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tc(e){return{baseLanes:e,cachePool:Kd()}}function wc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=aa),e}function ip(e,t,n){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(Ft.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(rt){if(o?gi(t):bi(),(e=Ct)?(e=dm(e,da),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ci!==null?{id:Ra,overflow:Oa}:null,retryLane:536870912,hydrationErrors:null},n=jd(e),n.return=t,t.child=n,vn=t,Ct=null)):e=null,e===null)throw fi(t);return ru(e)?t.lanes=32:t.lanes=536870912,null}var E=i.children;return i=i.fallback,o?(bi(),o=t.mode,E=Tr({mode:"hidden",children:E},o),i=Hi(i,o,n,null),E.return=t,i.return=t,E.sibling=i,t.child=E,i=t.child,i.memoizedState=Tc(n),i.childLanes=wc(e,h,n),t.memoizedState=Nc,fs(null,i)):(gi(t),xc(t,E))}var R=e.memoizedState;if(R!==null&&(E=R.dehydrated,E!==null)){if(c)t.flags&256?(gi(t),t.flags&=-257,t=Ac(e,t,n)):t.memoizedState!==null?(bi(),t.child=e.child,t.flags|=128,t=null):(bi(),E=i.fallback,o=t.mode,i=Tr({mode:"visible",children:i.children},o),E=Hi(E,o,n,null),E.flags|=2,i.return=t,E.return=t,i.sibling=E,t.child=i,Pi(t,e.child,null,n),i=t.child,i.memoizedState=Tc(n),i.childLanes=wc(e,h,n),t.memoizedState=Nc,t=fs(null,i));else if(gi(t),ru(E)){if(h=E.nextSibling&&E.nextSibling.dataset,h)var $=h.dgst;h=$,i=Error(l(419)),i.stack="",i.digest=h,Jl({value:i,source:null,stack:null}),t=Ac(e,t,n)}else if(tn||dl(e,t,n,!1),h=(n&e.childLanes)!==0,tn||h){if(h=At,h!==null&&(i=Rt(h,n),i!==0&&i!==R.retryLane))throw R.retryLane=i,Ii(e,i),Xn(h,e,i),_c;su(E)||Dr(),t=Ac(e,t,n)}else su(E)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,Ct=pa(E.nextSibling),vn=t,rt=!0,ui=null,da=!1,e!==null&&Hd(t,e),t=xc(t,i.children),t.flags|=4096);return t}return o?(bi(),E=i.fallback,o=t.mode,R=e.child,$=R.sibling,i=qa(R,{mode:"hidden",children:i.children}),i.subtreeFlags=R.subtreeFlags&65011712,$!==null?E=qa($,E):(E=Hi(E,o,n,null),E.flags|=2),E.return=t,i.return=t,i.sibling=E,t.child=i,fs(null,i),i=t.child,E=e.child.memoizedState,E===null?E=Tc(n):(o=E.cachePool,o!==null?(R=Jt._currentValue,o=o.parent!==R?{parent:R,pool:R}:o):o=Kd(),E={baseLanes:E.baseLanes|n,cachePool:o}),i.memoizedState=E,i.childLanes=wc(e,h,n),t.memoizedState=Nc,fs(e.child,i)):(gi(t),n=e.child,e=n.sibling,n=qa(n,{mode:"visible",children:i.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 xc(e,t){return t=Tr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Tr(e,t){return e=Jn(22,e,null,t),e.lanes=0,e}function Ac(e,t,n){return Pi(t,e.child,null,n),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lp(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Go(e.return,t,n)}function Rc(e,t,n,i,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=i,h.tail=n,h.tailMode=o,h.treeForkCount=c)}function sp(e,t,n){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var h=Ft.current,E=(h&2)!==0;if(E?(h=h&1|2,t.flags|=128):h&=1,H(Ft,h),_n(e,t,i,n),i=rt?Wl:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lp(e,n,t);else if(e.tag===19)lp(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&&dr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Rc(t,!1,o,n,c,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&dr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Rc(t,!0,n,null,c,i);break;case"together":Rc(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Pa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ei|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(dl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,n=qa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=qa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Oc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ir(e)))}function Ev(e,t,n){switch(t.tag){case 3:Le(t,t.stateNode.containerInfo),di(t,Jt,e.memoizedState.cache),qi();break;case 27:case 5:$e(t);break;case 4:Le(t,t.stateNode.containerInfo);break;case 10:di(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ec(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(gi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?ip(e,t,n):(gi(t),e=Pa(e,t,n),e!==null?e.sibling:null);gi(t);break;case 19:var o=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(dl(e,t,n,!1),i=(n&t.childLanes)!==0),o){if(i)return sp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),H(Ft,Ft.current),i)break;return null;case 22:return t.lanes=0,Wh(e,t,n,t.pendingProps);case 24:di(t,Jt,e.memoizedState.cache)}return Pa(e,t,n)}function rp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)tn=!0;else{if(!Oc(e,n)&&(t.flags&128)===0)return tn=!1,Ev(e,t,n);tn=(e.flags&131072)!==0}else tn=!1,rt&&(t.flags&1048576)!==0&&Id(t,Wl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Fi(t.elementType),t.type=e,typeof e=="function")Lo(e)?(i=Xi(e,i),t.tag=1,t=np(null,t,e,i,n)):(t.tag=0,t=Sc(null,t,e,i,n));else{if(e!=null){var o=e.$$typeof;if(o===le){t.tag=11,t=Xh(null,t,e,i,n);break e}else if(o===ne){t.tag=14,t=Qh(null,t,e,i,n);break e}}throw t=_e(e)||e,Error(l(306,t,""))}}return t;case 0:return Sc(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,o=Xi(i,t.pendingProps),np(e,t,i,o,n);case 3:e:{if(Le(t,t.stateNode.containerInfo),e===null)throw Error(l(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,Xo(e,t),ss(t,i,null,n);var h=t.memoizedState;if(i=h.cache,di(t,Jt,i),i!==c.cache&&$o(t,[Jt],n,!0),ls(),i=h.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=ap(e,t,i,n);break e}else if(i!==o){o=ca(Error(l(424)),t),Jl(o),t=ap(e,t,i,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(Ct=pa(e.firstChild),vn=t,rt=!0,ui=null,da=!0,n=Wd(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qi(),i===o){t=Pa(e,t,n);break e}_n(e,t,i,n)}t=t.child}return t;case 26:return Nr(e,t),e===null?(n=ym(t.type,null,t.pendingProps,null))?t.memoizedState=n:rt||(n=t.type,e=t.pendingProps,i=Hr(be.current).createElement(n),i[Ot]=t,i[Y]=e,Sn(i,n,e),vt(i),t.stateNode=i):t.memoizedState=ym(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return $e(t),e===null&&rt&&(i=t.stateNode=mm(t.type,t.pendingProps,be.current),vn=t,da=!0,o=Ct,wi(t.type)?(ou=o,Ct=pa(i.firstChild)):Ct=o),_n(e,t,t.pendingProps.children,n),Nr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&rt&&((o=i=Ct)&&(i=Qv(i,t.type,t.pendingProps,da),i!==null?(t.stateNode=i,vn=t,Ct=pa(i.firstChild),da=!1,o=!0):o=!1),o||fi(t)),$e(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,i=c.children,au(o,c)?i=null:h!==null&&au(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=nc(e,t,fv,null,null,n),xs._currentValue=o),Nr(e,t),_n(e,t,i,n),t.child;case 6:return e===null&&rt&&((e=n=Ct)&&(n=Vv(n,t.pendingProps,da),n!==null?(t.stateNode=n,vn=t,Ct=null,e=!0):e=!1),e||fi(t)),null;case 13:return ip(e,t,n);case 4:return Le(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Pi(t,null,i,n):_n(e,t,i,n),t.child;case 11:return Xh(e,t,t.type,t.pendingProps,n);case 7:return _n(e,t,t.pendingProps,n),t.child;case 8:return _n(e,t,t.pendingProps.children,n),t.child;case 12:return _n(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,di(t,t.type,i.value),_n(e,t,i.children,n),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,$i(t),o=En(o),i=i(o),t.flags|=1,_n(e,t,i,n),t.child;case 14:return Qh(e,t,t.type,t.pendingProps,n);case 15:return Vh(e,t,t.type,t.pendingProps,n);case 19:return sp(e,t,n);case 31:return vv(e,t,n);case 22:return Wh(e,t,n,t.pendingProps);case 24:return $i(t),i=En(Jt),e===null?(o=Ko(),o===null&&(o=At,c=Yo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:i,cache:o},Zo(t),di(t,Jt,o)):((e.lanes&n)!==0&&(Xo(e,t),ss(t,null,null,n),ls()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),di(t,Jt,i)):(i=c.cache,di(t,Jt,i),i!==o.cache&&$o(t,[Jt],n,!0))),_n(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Za(e){e.flags|=4}function kc(e,t,n,i,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(Lp())e.flags|=8192;else throw Ki=or,Po}else e.flags&=-16777217}function op(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Nm(t))if(Lp())e.flags|=8192;else throw Ki=or,Po}function wr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Me():536870912,e.lanes|=t,Tl|=t)}function ds(e,t){if(!rt)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 i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function _v(e,t,n){var i=t.pendingProps;switch(Bo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mt(t),null;case 1:return Mt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Ya(Jt),ze(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(fl(t)?Za(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ho())),Mt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Za(t),c!==null?(Mt(t),op(t,c)):(Mt(t),kc(t,o,null,i,n))):c?c!==e.memoizedState?(Za(t),Mt(t),op(t,c)):(Mt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Za(t),Mt(t),kc(t,o,e,i,n)),null;case 27:if(at(t),n=be.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(!i){if(t.stateNode===null)throw Error(l(166));return Mt(t),null}e=ue.current,fl(t)?qd(t):(e=mm(o,i,n),t.stateNode=e,Za(t))}return Mt(t),null;case 5:if(at(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(!i){if(t.stateNode===null)throw Error(l(166));return Mt(t),null}if(c=ue.current,fl(t))qd(t);else{var h=Hr(be.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 i.is=="string"?h.createElement("select",{is:i.is}):h.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?h.createElement(o,{is:i.is}):h.createElement(o)}}c[Ot]=t,c[Y]=i;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(Sn(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Za(t)}}return Mt(t),kc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(l(166));if(e=be.current,fl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,o=vn,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[Ot]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||im(e.nodeValue,n)),e||fi(t,!0)}else e=Hr(e).createTextNode(i),e[Ot]=t,t.stateNode=e}return Mt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=fl(t),n!==null){if(e===null){if(!i)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[Ot]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Mt(t),e=!1}else n=Ho(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ta(t),t):(ta(t),null);if((t.flags&128)!==0)throw Error(l(558))}return Mt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=fl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[Ot]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Mt(t),o=!1}else o=Ho(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(ta(t),t):(ta(t),null)}return ta(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),wr(t,t.updateQueue),Mt(t),null);case 4:return ze(),e===null&&Wc(t.stateNode.containerInfo),Mt(t),null;case 10:return Ya(t.type),Mt(t),null;case 19:if(D(Ft),i=t.memoizedState,i===null)return Mt(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)ds(i,!1);else{if(Ht!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=dr(e),c!==null){for(t.flags|=128,ds(i,!1),e=c.updateQueue,t.updateQueue=e,wr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ud(n,e),n=n.sibling;return H(Ft,Ft.current&1|2),rt&&Ga(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&st()>kr&&(t.flags|=128,o=!0,ds(i,!1),t.lanes=4194304)}else{if(!o)if(e=dr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,wr(t,e),ds(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!rt)return Mt(t),null}else 2*st()-i.renderingStartTime>kr&&n!==536870912&&(t.flags|=128,o=!0,ds(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=st(),e.sibling=null,n=Ft.current,H(Ft,o?n&1|2:n&1),rt&&Ga(t,i.treeForkCount),e):(Mt(t),null);case 22:case 23:return ta(t),Jo(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Mt(t),t.subtreeFlags&6&&(t.flags|=8192)):Mt(t),n=t.updateQueue,n!==null&&wr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&D(Yi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ya(Jt),Mt(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function Sv(e,t){switch(Bo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ya(Jt),ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return at(t),null;case 31:if(t.memoizedState!==null){if(ta(t),t.alternate===null)throw Error(l(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ta(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(Ft),null;case 4:return ze(),null;case 10:return Ya(t.type),null;case 22:case 23:return ta(t),Jo(),e!==null&&D(Yi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ya(Jt),null;case 25:return null;default:return null}}function cp(e,t){switch(Bo(t),t.tag){case 3:Ya(Jt),ze();break;case 26:case 27:case 5:at(t);break;case 4:ze();break;case 31:t.memoizedState!==null&&ta(t);break;case 13:ta(t);break;case 19:D(Ft);break;case 10:Ya(t.type);break;case 22:case 23:ta(t),Jo(),e!==null&&D(Yi);break;case 24:Ya(Jt)}}function hs(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var o=i.next;n=o;do{if((n.tag&e)===e){i=void 0;var c=n.create,h=n.inst;i=c(),h.destroy=i}n=n.next}while(n!==o)}}catch(E){_t(t,t.return,E)}}function yi(e,t,n){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var h=i.inst,E=h.destroy;if(E!==void 0){h.destroy=void 0,o=t;var R=n,$=E;try{$()}catch(te){_t(o,R,te)}}}i=i.next}while(i!==c)}}catch(te){_t(t,t.return,te)}}function up(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{eh(t,n)}catch(i){_t(e,e.return,i)}}}function fp(e,t,n){n.props=Xi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){_t(e,t,i)}}function ps(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(o){_t(e,t,o)}}function ka(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}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 dp(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(o){_t(e,e.return,o)}}function Cc(e,t,n){try{var i=e.stateNode;Yv(i,e.type,n,t),i[Y]=t}catch(o){_t(e,e.return,o)}}function hp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&wi(e.type)||e.tag===4}function Mc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hp(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&&wi(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 Dc(e,t,n){var i=e.tag;if(i===5||i===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=oe));else if(i!==4&&(i===27&&wi(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Dc(e,t,n),e=e.sibling;e!==null;)Dc(e,t,n),e=e.sibling}function xr(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&wi(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(xr(e,t,n),e=e.sibling;e!==null;)xr(e,t,n),e=e.sibling}function pp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Sn(t,i,n),t[Ot]=e,t[Y]=n}catch(c){_t(e,e.return,c)}}var Xa=!1,nn=!1,Lc=!1,mp=typeof WeakSet=="function"?WeakSet:Set,mn=null;function Nv(e,t){if(e=e.containerInfo,tu=Pr,e=Ad(e),Ao(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,E=-1,R=-1,$=0,te=0,se=e,F=null;t:for(;;){for(var Q;se!==n||o!==0&&se.nodeType!==3||(E=h+o),se!==c||i!==0&&se.nodeType!==3||(R=h+i),se.nodeType===3&&(h+=se.nodeValue.length),(Q=se.firstChild)!==null;)F=se,se=Q;for(;;){if(se===e)break t;if(F===n&&++$===o&&(E=h),F===c&&++te===i&&(R=h),(Q=se.nextSibling)!==null)break;se=F,F=se.parentNode}se=Q}n=E===-1||R===-1?null:{start:E,end:R}}else n=null}n=n||{start:0,end:0}}else n=null;for(nu={focusedElem:e,selectionRange:n},Pr=!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,i=n.stateNode;try{var xe=Xi(n.type,o);e=i.getSnapshotBeforeUpdate(xe,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(je){_t(n,n.return,je)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)lu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":lu(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(l(163))}if(e=t.sibling,e!==null){e.return=t.return,mn=e;break}mn=t.return}}function gp(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Va(e,n),i&4&&hs(5,n);break;case 1:if(Va(e,n),i&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)}}i&64&&up(n),i&512&&ps(n,n.return);break;case 3:if(Va(e,n),i&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{eh(e,t)}catch(h){_t(n,n.return,h)}}break;case 27:t===null&&i&4&&pp(n);case 26:case 5:Va(e,n),t===null&&i&4&&dp(n),i&512&&ps(n,n.return);break;case 12:Va(e,n);break;case 31:Va(e,n),i&4&&vp(e,n);break;case 13:Va(e,n),i&4&&Ep(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Mv.bind(null,n),Wv(e,n))));break;case 22:if(i=n.memoizedState!==null||Xa,!i){t=t!==null&&t.memoizedState!==null||nn,o=Xa;var c=nn;Xa=i,(nn=t)&&!c?Wa(e,n,(n.subtreeFlags&8772)!==0):Va(e,n),Xa=o,nn=c}break;case 30:break;default:Va(e,n)}}function bp(e){var t=e.alternate;t!==null&&(e.alternate=null,bp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$n(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 zt=null,Fn=!1;function Qa(e,t,n){for(n=n.child;n!==null;)yp(e,t,n),n=n.sibling}function yp(e,t,n){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(yn,n)}catch{}switch(n.tag){case 26:nn||ka(n,t),Qa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:nn||ka(n,t);var i=zt,o=Fn;wi(n.type)&&(zt=n.stateNode,Fn=!1),Qa(e,t,n),Ns(n.stateNode),zt=i,Fn=o;break;case 5:nn||ka(n,t);case 6:if(i=zt,o=Fn,zt=null,Qa(e,t,n),zt=i,Fn=o,zt!==null)if(Fn)try{(zt.nodeType===9?zt.body:zt.nodeName==="HTML"?zt.ownerDocument.body:zt).removeChild(n.stateNode)}catch(c){_t(n,t,c)}else try{zt.removeChild(n.stateNode)}catch(c){_t(n,t,c)}break;case 18:zt!==null&&(Fn?(e=zt,um(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ml(e)):um(zt,n.stateNode));break;case 4:i=zt,o=Fn,zt=n.stateNode.containerInfo,Fn=!0,Qa(e,t,n),zt=i,Fn=o;break;case 0:case 11:case 14:case 15:yi(2,n,t),nn||yi(4,n,t),Qa(e,t,n);break;case 1:nn||(ka(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&fp(n,t,i)),Qa(e,t,n);break;case 21:Qa(e,t,n);break;case 22:nn=(i=nn)||n.memoizedState!==null,Qa(e,t,n),nn=i;break;default:Qa(e,t,n)}}function vp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ml(e)}catch(n){_t(t,t.return,n)}}}function Ep(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ml(e)}catch(n){_t(t,t.return,n)}}function Tv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new mp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new mp),t;default:throw Error(l(435,e.tag))}}function Ar(e,t){var n=Tv(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var o=Dv.bind(null,e,i);i.then(o,o)}})}function Kn(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i],c=e,h=t,E=h;e:for(;E!==null;){switch(E.tag){case 27:if(wi(E.type)){zt=E.stateNode,Fn=!1;break e}break;case 5:zt=E.stateNode,Fn=!1;break e;case 3:case 4:zt=E.stateNode.containerInfo,Fn=!0;break e}E=E.return}if(zt===null)throw Error(l(160));yp(c,h,o),zt=null,Fn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_p(t,e),t=t.sibling}var Ea=null;function _p(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Kn(t,e),Pn(e),i&4&&(yi(3,e,e.return),hs(3,e),yi(5,e,e.return));break;case 1:Kn(t,e),Pn(e),i&512&&(nn||n===null||ka(n,n.return)),i&64&&Xa&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var o=Ea;if(Kn(t,e),Pn(e),i&512&&(nn||n===null||ka(n,n.return)),i&4){var c=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[$t]||c[Ot]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),Sn(c,i,n),c[Ot]=e,vt(c),i=c;break e;case"link":var h=_m("link","href",o).get(i+(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(i),Sn(c,i,n),o.head.appendChild(c);break;case"meta":if(h=_m("meta","content",o).get(i+(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(i),Sn(c,i,n),o.head.appendChild(c);break;default:throw Error(l(468,i))}c[Ot]=e,vt(c),i=c}e.stateNode=i}else Sm(o,e.type,e.stateNode);else e.stateNode=Em(o,i,e.memoizedProps);else c!==i?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,i===null?Sm(o,e.type,e.stateNode):Em(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Cc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Kn(t,e),Pn(e),i&512&&(nn||n===null||ka(n,n.return)),n!==null&&i&4&&Cc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Kn(t,e),Pn(e),i&512&&(nn||n===null||ka(n,n.return)),e.flags&32){o=e.stateNode;try{V(o,"")}catch(xe){_t(e,e.return,xe)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Cc(e,o,n!==null?n.memoizedProps:o)),i&1024&&(Lc=!0);break;case 6:if(Kn(t,e),Pn(e),i&4){if(e.stateNode===null)throw Error(l(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(xe){_t(e,e.return,xe)}}break;case 3:if($r=null,o=Ea,Ea=qr(t.containerInfo),Kn(t,e),Ea=o,Pn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ml(t.containerInfo)}catch(xe){_t(e,e.return,xe)}Lc&&(Lc=!1,Sp(e));break;case 4:i=Ea,Ea=qr(e.stateNode.containerInfo),Kn(t,e),Pn(e),Ea=i;break;case 12:Kn(t,e),Pn(e);break;case 31:Kn(t,e),Pn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 13:Kn(t,e),Pn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Or=st()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 22:o=e.memoizedState!==null;var R=n!==null&&n.memoizedState!==null,$=Xa,te=nn;if(Xa=$||o,nn=te||R,Kn(t,e),nn=te,Xa=$,Pn(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||R||Xa||nn||Qi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){R=n=t;try{if(c=R.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{E=R.stateNode;var se=R.memoizedProps.style,F=se!=null&&se.hasOwnProperty("display")?se.display:null;E.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(xe){_t(R,R.return,xe)}}}else if(t.tag===6){if(n===null){R=t;try{R.stateNode.nodeValue=o?"":R.memoizedProps}catch(xe){_t(R,R.return,xe)}}}else if(t.tag===18){if(n===null){R=t;try{var Q=R.stateNode;o?fm(Q,!0):fm(R.stateNode,!1)}catch(xe){_t(R,R.return,xe)}}}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}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Ar(e,n))));break;case 19:Kn(t,e),Pn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 30:break;case 21:break;default:Kn(t,e),Pn(e)}}function Pn(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(hp(i)){n=i;break}i=i.return}if(n==null)throw Error(l(160));switch(n.tag){case 27:var o=n.stateNode,c=Mc(e);xr(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(V(h,""),n.flags&=-33);var E=Mc(e);xr(e,E,h);break;case 3:case 4:var R=n.stateNode.containerInfo,$=Mc(e);Dc(e,$,R);break;default:throw Error(l(161))}}catch(te){_t(e,e.return,te)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Va(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gp(e,t.alternate,t),t=t.sibling}function Qi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:yi(4,t,t.return),Qi(t);break;case 1:ka(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&fp(t,t.return,n),Qi(t);break;case 27:Ns(t.stateNode);case 26:case 5:ka(t,t.return),Qi(t);break;case 22:t.memoizedState===null&&Qi(t);break;case 30:Qi(t);break;default:Qi(t)}e=e.sibling}}function Wa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Wa(o,c,n),hs(4,c);break;case 1:if(Wa(o,c,n),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch($){_t(i,i.return,$)}if(i=c,o=i.updateQueue,o!==null){var E=i.stateNode;try{var R=o.shared.hiddenCallbacks;if(R!==null)for(o.shared.hiddenCallbacks=null,o=0;o<R.length;o++)Jd(R[o],E)}catch($){_t(i,i.return,$)}}n&&h&64&&up(c),ps(c,c.return);break;case 27:pp(c);case 26:case 5:Wa(o,c,n),n&&i===null&&h&4&&dp(c),ps(c,c.return);break;case 12:Wa(o,c,n);break;case 31:Wa(o,c,n),n&&h&4&&vp(o,c);break;case 13:Wa(o,c,n),n&&h&4&&Ep(o,c);break;case 22:c.memoizedState===null&&Wa(o,c,n),ps(c,c.return);break;case 30:break;default:Wa(o,c,n)}t=t.sibling}}function zc(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&&es(n))}function Uc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&es(e))}function _a(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Np(e,t,n,i),t=t.sibling}function Np(e,t,n,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:_a(e,t,n,i),o&2048&&hs(9,t);break;case 1:_a(e,t,n,i);break;case 3:_a(e,t,n,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&es(e)));break;case 12:if(o&2048){_a(e,t,n,i),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(R){_t(t,t.return,R)}}else _a(e,t,n,i);break;case 31:_a(e,t,n,i);break;case 13:_a(e,t,n,i);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?_a(e,t,n,i):ms(e,t):c._visibility&2?_a(e,t,n,i):(c._visibility|=2,_l(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&zc(h,t);break;case 24:_a(e,t,n,i),o&2048&&Uc(t.alternate,t);break;default:_a(e,t,n,i)}}function _l(e,t,n,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,E=n,R=i,$=h.flags;switch(h.tag){case 0:case 11:case 15:_l(c,h,E,R,o),hs(8,h);break;case 23:break;case 22:var te=h.stateNode;h.memoizedState!==null?te._visibility&2?_l(c,h,E,R,o):ms(c,h):(te._visibility|=2,_l(c,h,E,R,o)),o&&$&2048&&zc(h.alternate,h);break;case 24:_l(c,h,E,R,o),o&&$&2048&&Uc(h.alternate,h);break;default:_l(c,h,E,R,o)}t=t.sibling}}function ms(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,o=i.flags;switch(i.tag){case 22:ms(n,i),o&2048&&zc(i.alternate,i);break;case 24:ms(n,i),o&2048&&Uc(i.alternate,i);break;default:ms(n,i)}t=t.sibling}}var gs=8192;function Sl(e,t,n){if(e.subtreeFlags&gs)for(e=e.child;e!==null;)Tp(e,t,n),e=e.sibling}function Tp(e,t,n){switch(e.tag){case 26:Sl(e,t,n),e.flags&gs&&e.memoizedState!==null&&uE(n,Ea,e.memoizedState,e.memoizedProps);break;case 5:Sl(e,t,n);break;case 3:case 4:var i=Ea;Ea=qr(e.stateNode.containerInfo),Sl(e,t,n),Ea=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=gs,gs=16777216,Sl(e,t,n),gs=i):Sl(e,t,n));break;default:Sl(e,t,n)}}function wp(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 bs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];mn=i,Ap(i,e)}wp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)xp(e),e=e.sibling}function xp(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&yi(9,e,e.return);break;case 3:bs(e);break;case 12:bs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rr(e)):bs(e);break;default:bs(e)}}function Rr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];mn=i,Ap(i,e)}wp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:yi(8,t,t.return),Rr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rr(t));break;default:Rr(t)}e=e.sibling}}function Ap(e,t){for(;mn!==null;){var n=mn;switch(n.tag){case 0:case 11:case 15:yi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:es(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,mn=i;else e:for(n=e;mn!==null;){i=mn;var o=i.sibling,c=i.return;if(bp(i),i===n){mn=null;break e}if(o!==null){o.return=c,mn=o;break e}mn=c}}}var wv={getCacheForType:function(e){var t=En(Jt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return En(Jt).controller.signal}},xv=typeof WeakMap=="function"?WeakMap:Map,gt=0,At=null,et=null,it=0,Et=0,na=null,vi=!1,Nl=!1,jc=!1,Ja=0,Ht=0,Ei=0,Vi=0,Bc=0,aa=0,Tl=0,ys=null,Zn=null,Ic=!1,Or=0,Rp=0,kr=1/0,Cr=null,_i=null,on=0,Si=null,wl=null,ei=0,Hc=0,qc=null,Op=null,vs=0,Gc=null;function ia(){return(gt&2)!==0&&it!==0?it&-it:j.T!==null?Zc():Vn()}function kp(){if(aa===0)if((it&536870912)===0||rt){var e=dn;dn<<=1,(dn&3932160)===0&&(dn=262144),aa=e}else aa=536870912;return e=ea.current,e!==null&&(e.flags|=32),aa}function Xn(e,t,n){(e===At&&(Et===2||Et===9)||e.cancelPendingCommit!==null)&&(xl(e,0),Ni(e,it,aa,!1)),Qe(e,n),((gt&2)===0||e!==At)&&(e===At&&((gt&2)===0&&(Vi|=n),Ht===4&&Ni(e,it,aa,!1)),Ca(e))}function Cp(e,t,n){if((gt&6)!==0)throw Error(l(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ee(e,t),o=i?Ov(e,t):Yc(e,t,!0),c=i;do{if(o===0){Nl&&!i&&Ni(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Av(n)){o=Yc(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=ys;var R=E.current.memoizedState.isDehydrated;if(R&&(xl(E,h).flags|=256),h=Yc(E,h,!1),h!==2){if(jc&&!R){E.errorRecoveryDisabledLanes|=c,Vi|=c,o=4;break e}c=Zn,Zn=o,c!==null&&(Zn===null?Zn=c:Zn.push.apply(Zn,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){xl(e,0),Ni(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:Ni(i,t,aa,!vi);break e;case 2:Zn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=Or+300-st(),10<o)){if(Ni(i,t,aa,!vi),O(i,0,!0)!==0)break e;ei=t,i.timeoutHandle=om(Mp.bind(null,i,n,Zn,Cr,Ic,t,aa,Vi,Tl,vi,c,"Throttled",-0,0),o);break e}Mp(i,n,Zn,Cr,Ic,t,aa,Vi,Tl,vi,c,null,-0,0)}}break}while(!0);Ca(e)}function Mp(e,t,n,i,o,c,h,E,R,$,te,se,F,Q){if(e.timeoutHandle=-1,se=t.subtreeFlags,se&8192||(se&16785408)===16785408){se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:oe},Tp(t,c,se);var xe=(c&62914560)===c?Or-st():(c&4194048)===c?Rp-st():0;if(xe=fE(se,xe),xe!==null){ei=c,e.cancelPendingCommit=xe(Hp.bind(null,e,t,c,n,i,o,h,E,R,te,se,null,F,Q)),Ni(e,c,h,!$);return}}Hp(e,t,c,n,i,o,h,E,R)}function Av(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 i=0;i<n.length;i++){var o=n[i],c=o.getSnapshot;o=o.value;try{if(!Wn(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,i){t&=~Bc,t&=~Vi,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-jt(o),h=1<<c;i[c]=-1,o&=~h}n!==0&&Ee(e,n,t)}function Mr(){return(gt&6)===0?(Es(0),!1):!0}function $c(){if(et!==null){if(Et===0)var e=et.return;else e=et,$a=Gi=null,lc(e),gl=null,ns=0,e=et;for(;e!==null;)cp(e.alternate,e),e=e.return;et=null}}function xl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Pv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ei=0,$c(),At=e,et=n=qa(e.current,null),it=t,Et=0,na=null,vi=!1,Nl=ee(e,t),jc=!1,Tl=aa=Bc=Vi=Ei=Ht=0,Zn=ys=null,Ic=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-jt(i),c=1<<o;t|=e[o],i&=~c}return Ja=t,Js(),n}function Dp(e,t){Ye=null,j.H=us,t===ml||t===rr?(t=Xd(),Et=3):t===Po?(t=Xd(),Et=4):Et=t===_c?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,na=t,et===null&&(Ht=1,_r(e,ca(t,e.current)))}function Lp(){var e=ea.current;return e===null?!0:(it&4194048)===it?ha===null:(it&62914560)===it||(it&536870912)!==0?e===ha:!1}function zp(){var e=j.H;return j.H=us,e===null?us:e}function Up(){var e=j.A;return j.A=wv,e}function Dr(){Ht=4,vi||(it&4194048)!==it&&ea.current!==null||(Nl=!0),(Ei&134217727)===0&&(Vi&134217727)===0||At===null||Ni(At,it,aa,!1)}function Yc(e,t,n){var i=gt;gt|=2;var o=zp(),c=Up();(At!==e||it!==t)&&(Cr=null,xl(e,t)),t=!1;var h=Ht;e:do try{if(Et!==0&&et!==null){var E=et,R=na;switch(Et){case 8:$c(),h=6;break e;case 3:case 2:case 9:case 6:ea.current===null&&(t=!0);var $=Et;if(Et=0,na=null,Al(e,E,R,$),n&&Nl){h=0;break e}break;default:$=Et,Et=0,na=null,Al(e,E,R,$)}}Rv(),h=Ht;break}catch(te){Dp(e,te)}while(!0);return t&&e.shellSuspendCounter++,$a=Gi=null,gt=i,j.H=o,j.A=c,et===null&&(At=null,it=0,Js()),h}function Rv(){for(;et!==null;)jp(et)}function Ov(e,t){var n=gt;gt|=2;var i=zp(),o=Up();At!==e||it!==t?(Cr=null,kr=st()+500,xl(e,t)):Nl=ee(e,t);e:do try{if(Et!==0&&et!==null){t=et;var c=na;t:switch(Et){case 1:Et=0,na=null,Al(e,t,c,1);break;case 2:case 9:if(Pd(c)){Et=0,na=null,Bp(t);break}t=function(){Et!==2&&Et!==9||At!==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:Pd(c)?(Et=0,na=null,Bp(t)):(Et=0,na=null,Al(e,t,c,7));break;case 5:var h=null;switch(et.tag){case 26:h=et.memoizedState;case 5:case 27:var E=et;if(h?Nm(h):E.stateNode.complete){Et=0,na=null;var R=E.sibling;if(R!==null)et=R;else{var $=E.return;$!==null?(et=$,Lr($)):et=null}break t}}Et=0,na=null,Al(e,t,c,5);break;case 6:Et=0,na=null,Al(e,t,c,6);break;case 8:$c(),Ht=6;break e;default:throw Error(l(462))}}kv();break}catch(te){Dp(e,te)}while(!0);return $a=Gi=null,j.H=i,j.A=o,gt=n,et!==null?0:(At=null,it=0,Js(),Ht)}function kv(){for(;et!==null&&!sa();)jp(et)}function jp(e){var t=rp(e.alternate,e,Ja);e.memoizedProps=e.pendingProps,t===null?Lr(e):et=t}function Bp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=tp(n,t,t.pendingProps,t.type,void 0,it);break;case 11:t=tp(n,t,t.pendingProps,t.type.render,t.ref,it);break;case 5:lc(t);default:cp(n,t),t=et=Ud(t,Ja),t=rp(n,t,Ja)}e.memoizedProps=e.pendingProps,t===null?Lr(e):et=t}function Al(e,t,n,i){$a=Gi=null,lc(t),gl=null,ns=0;var o=t.return;try{if(yv(e,o,t,n,it)){Ht=1,_r(e,ca(n,e.current)),et=null;return}}catch(c){if(o!==null)throw et=o,c;Ht=1,_r(e,ca(n,e.current)),et=null;return}t.flags&32768?(rt||i===1?e=!0:Nl||(it&536870912)!==0?e=!1:(vi=e=!0,(i===2||i===9||i===3||i===6)&&(i=ea.current,i!==null&&i.tag===13&&(i.flags|=16384))),Ip(t,e)):Lr(t)}function Lr(e){var t=e;do{if((t.flags&32768)!==0){Ip(t,vi);return}e=t.return;var n=_v(t.alternate,t,Ja);if(n!==null){et=n;return}if(t=t.sibling,t!==null){et=t;return}et=t=e}while(t!==null);Ht===0&&(Ht=5)}function Ip(e,t){do{var n=Sv(e.alternate,e);if(n!==null){n.flags&=32767,et=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){et=e;return}et=e=n}while(e!==null);Ht=6,et=null}function Hp(e,t,n,i,o,c,h,E,R){e.cancelPendingCommit=null;do zr();while(on!==0);if((gt&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(c=t.lanes|t.childLanes,c|=Mo,Ne(e,n,c,h,E,R),e===At&&(et=At=null,it=0),wl=t,Si=e,ei=n,Hc=c,qc=o,Op=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Lv(xn,function(){return Fp(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=j.T,j.T=null,o=ae.p,ae.p=2,h=gt,gt|=4;try{Nv(e,t,n)}finally{gt=h,ae.p=o,j.T=i}}on=1,qp(),Gp(),$p()}}function qp(){if(on===1){on=0;var e=Si,t=wl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=j.T,j.T=null;var i=ae.p;ae.p=2;var o=gt;gt|=4;try{_p(t,e);var c=nu,h=Ad(e.containerInfo),E=c.focusedElem,R=c.selectionRange;if(h!==E&&E&&E.ownerDocument&&xd(E.ownerDocument.documentElement,E)){if(R!==null&&Ao(E)){var $=R.start,te=R.end;if(te===void 0&&(te=$),"selectionStart"in E)E.selectionStart=$,E.selectionEnd=Math.min(te,E.value.length);else{var se=E.ownerDocument||document,F=se&&se.defaultView||window;if(F.getSelection){var Q=F.getSelection(),xe=E.textContent.length,je=Math.min(R.start,xe),wt=R.end===void 0?je:Math.min(R.end,xe);!Q.extend&&je>wt&&(h=wt,wt=je,je=h);var B=wd(E,je),M=wd(E,wt);if(B&&M&&(Q.rangeCount!==1||Q.anchorNode!==B.node||Q.anchorOffset!==B.offset||Q.focusNode!==M.node||Q.focusOffset!==M.offset)){var G=se.createRange();G.setStart(B.node,B.offset),Q.removeAllRanges(),je>wt?(Q.addRange(G),Q.extend(M.node,M.offset)):(G.setEnd(M.node,M.offset),Q.addRange(G))}}}}for(se=[],Q=E;Q=Q.parentNode;)Q.nodeType===1&&se.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<se.length;E++){var ie=se[E];ie.element.scrollLeft=ie.left,ie.element.scrollTop=ie.top}}Pr=!!tu,nu=tu=null}finally{gt=o,ae.p=i,j.T=n}}e.current=t,on=2}}function Gp(){if(on===2){on=0;var e=Si,t=wl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=j.T,j.T=null;var i=ae.p;ae.p=2;var o=gt;gt|=4;try{gp(e,t.alternate,t)}finally{gt=o,ae.p=i,j.T=n}}on=3}}function $p(){if(on===4||on===3){on=0,Qn();var e=Si,t=wl,n=ei,i=Op;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?on=5:(on=0,wl=Si=null,Yp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(_i=null),In(n),t=t.stateNode,Ut&&typeof Ut.onCommitFiberRoot=="function")try{Ut.onCommitFiberRoot(yn,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=j.T,o=ae.p,ae.p=2,j.T=null;try{for(var c=e.onRecoverableError,h=0;h<i.length;h++){var E=i[h];c(E.value,{componentStack:E.stack})}}finally{j.T=t,ae.p=o}}(ei&3)!==0&&zr(),Ca(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Gc?vs++:(vs=0,Gc=e):vs=0,Es(0)}}function Yp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,es(t)))}function zr(){return qp(),Gp(),$p(),Fp()}function Fp(){if(on!==5)return!1;var e=Si,t=Hc;Hc=0;var n=In(ei),i=j.T,o=ae.p;try{ae.p=32>n?32:n,j.T=null,n=qc,qc=null;var c=Si,h=ei;if(on=0,wl=Si=null,ei=0,(gt&6)!==0)throw Error(l(331));var E=gt;if(gt|=4,xp(c.current),Np(c,c.current,h,n),gt=E,Es(0,!1),Ut&&typeof Ut.onPostCommitFiberRoot=="function")try{Ut.onPostCommitFiberRoot(yn,c)}catch{}return!0}finally{ae.p=o,j.T=i,Yp(e,t)}}function Kp(e,t,n){t=ca(n,t),t=Ec(e.stateNode,t,2),e=mi(e,t,2),e!==null&&(Qe(e,2),Ca(e))}function _t(e,t,n){if(e.tag===3)Kp(e,e,n);else for(;t!==null;){if(t.tag===3){Kp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(_i===null||!_i.has(i))){e=ca(n,e),n=Ph(2),i=mi(t,n,2),i!==null&&(Zh(n,i,t,e),Qe(i,2),Ca(i));break}}t=t.return}}function Fc(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new xv;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(n)||(jc=!0,o.add(n),e=Cv.bind(null,e,t,n),t.then(e,e))}function Cv(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,At===e&&(it&n)===n&&(Ht===4||Ht===3&&(it&62914560)===it&&300>st()-Or?(gt&2)===0&&xl(e,0):Bc|=n,Tl===it&&(Tl=0)),Ca(e)}function Pp(e,t){t===0&&(t=Me()),e=Ii(e,t),e!==null&&(Qe(e,t),Ca(e))}function Mv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pp(e,n)}function Dv(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(l(314))}i!==null&&i.delete(t),Pp(e,n)}function Lv(e,t){return Dt(e,t)}var Ur=null,Rl=null,Kc=!1,jr=!1,Pc=!1,Ti=0;function Ca(e){e!==Rl&&e.next===null&&(Rl===null?Ur=Rl=e:Rl=Rl.next=e),jr=!0,Kc||(Kc=!0,Uv())}function Es(e,t){if(!Pc&&jr){Pc=!0;do for(var n=!1,i=Ur;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var h=i.suspendedLanes,E=i.pingedLanes;c=(1<<31-jt(42|e)+1)-1,c&=o&~(h&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Vp(i,c))}else c=it,c=O(i,i===At?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||ee(i,c)||(n=!0,Vp(i,c));i=i.next}while(n);Pc=!1}}function zv(){Zp()}function Zp(){jr=Kc=!1;var e=0;Ti!==0&&Kv()&&(e=Ti);for(var t=st(),n=null,i=Ur;i!==null;){var o=i.next,c=Xp(i,t);c===0?(i.next=null,n===null?Ur=o:n.next=o,o===null&&(Rl=n)):(n=i,(e!==0||(c&3)!==0)&&(jr=!0)),i=o}on!==0&&on!==5||Es(e),Ti!==0&&(Ti=0)}function Xp(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-jt(c),E=1<<h,R=o[h];R===-1?((E&n)===0||(E&i)!==0)&&(o[h]=me(E,t)):R<=t&&(e.expiredLanes|=E),c&=~E}if(t=At,n=it,n=O(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Et===2||Et===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Ln(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ee(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Ln(i),In(n)){case 2:case 8:n=cn;break;case 32:n=xn;break;case 268435456:n=zn;break;default:n=xn}return i=Qp.bind(null,e),n=Dt(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Ln(i),e.callbackPriority=2,e.callbackNode=null,2}function Qp(e,t){if(on!==0&&on!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(zr()&&e.callbackNode!==n)return null;var i=it;return i=O(e,e===At?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Cp(e,i,t),Xp(e,st()),e.callbackNode!=null&&e.callbackNode===n?Qp.bind(null,e):null)}function Vp(e,t){if(zr())return null;Cp(e,t,!0)}function Uv(){Zv(function(){(gt&6)!==0?Dt(ut,zv):Zp()})}function Zc(){if(Ti===0){var e=hl;e===0&&(e=Ie,Ie<<=1,(Ie&261888)===0&&(Ie=256)),Ti=e}return Ti}function Wp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Je(""+e)}function Jp(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,i,o){if(t==="submit"&&n&&n.stateNode===o){var c=Wp((o[Y]||null).action),h=i.submitter;h&&(t=(t=h[Y]||null)?Wp(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var E=new Xs("action","action",null,i,o);e.push({event:E,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Ti!==0){var R=h?Jp(o,h):new FormData(o);pc(n,{pending:!0,data:R,method:o.method,action:c},null,R)}}else typeof c=="function"&&(E.preventDefault(),R=h?Jp(o,h):new FormData(o),pc(n,{pending:!0,data:R,method:o.method,action:c},c,R))},currentTarget:o}]})}}for(var Xc=0;Xc<Co.length;Xc++){var Qc=Co[Xc],Bv=Qc.toLowerCase(),Iv=Qc[0].toUpperCase()+Qc.slice(1);va(Bv,"on"+Iv)}va(kd,"onAnimationEnd"),va(Cd,"onAnimationIteration"),va(Md,"onAnimationStart"),va("dblclick","onDoubleClick"),va("focusin","onFocus"),va("focusout","onBlur"),va(tv,"onTransitionRun"),va(nv,"onTransitionStart"),va(av,"onTransitionCancel"),va(Dd,"onTransitionEnd"),fe("onMouseEnter",["mouseout","mouseover"]),fe("onMouseLeave",["mouseout","mouseover"]),fe("onPointerEnter",["pointerout","pointerover"]),fe("onPointerLeave",["pointerout","pointerover"]),ya("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ya("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ya("onBeforeInput",["compositionend","keypress","textInput","paste"]),ya("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ya("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ya("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _s="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(" "),Hv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_s));function em(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var h=i.length-1;0<=h;h--){var E=i[h],R=E.instance,$=E.currentTarget;if(E=E.listener,R!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=$;try{c(o)}catch(te){Ws(te)}o.currentTarget=null,c=R}else for(h=0;h<i.length;h++){if(E=i[h],R=E.instance,$=E.currentTarget,E=E.listener,R!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=$;try{c(o)}catch(te){Ws(te)}o.currentTarget=null,c=R}}}}function tt(e,t){var n=t[we];n===void 0&&(n=t[we]=new Set);var i=e+"__bubble";n.has(i)||(tm(t,e,2,!1),n.add(i))}function Vc(e,t,n){var i=0;t&&(i|=4),tm(n,e,i,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Wc(e){if(!e[Br]){e[Br]=!0,Ua.forEach(function(n){n!=="selectionchange"&&(Hv.has(n)||Vc(n,!1,e),Vc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Br]||(t[Br]=!0,Vc("selectionchange",!1,t))}}function tm(e,t,n,i){switch(km(t)){case 2:var o=pE;break;case 8:o=mE;break;default:o=hu}n=o.bind(null,t,n,e),o=void 0,!yo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?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 Jc(e,t,n,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var E=i.stateNode.containerInfo;if(E===o)break;if(h===4)for(h=i.return;h!==null;){var R=h.tag;if((R===3||R===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;E!==null;){if(h=St(E),h===null)return;if(R=h.tag,R===5||R===6||R===26||R===27){i=c=h;continue e}E=E.parentNode}}i=i.return}Fs(function(){var $=c,te=ke(n),se=[];e:{var F=Ld.get(e);if(F!==void 0){var Q=Xs,xe=e;switch(e){case"keypress":if(Ps(n)===0)break e;case"keydown":case"keyup":Q=Dy;break;case"focusin":xe="focus",Q=So;break;case"focusout":xe="blur",Q=So;break;case"beforeblur":case"afterblur":Q=So;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":Q=cd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=_y;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=Uy;break;case kd:case Cd:case Md:Q=Ty;break;case Dd:Q=By;break;case"scroll":case"scrollend":Q=vy;break;case"wheel":Q=Hy;break;case"copy":case"cut":case"paste":Q=xy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=fd;break;case"toggle":case"beforetoggle":Q=Gy}var je=(t&4)!==0,wt=!je&&(e==="scroll"||e==="scrollend"),B=je?F!==null?F+"Capture":null:F;je=[];for(var M=$,G;M!==null;){var ie=M;if(G=ie.stateNode,ie=ie.tag,ie!==5&&ie!==26&&ie!==27||G===null||B===null||(ie=$l(M,B),ie!=null&&je.push(Ss(M,ie,G))),wt)break;M=M.return}0<je.length&&(F=new Q(F,xe,null,n,te),se.push({event:F,listeners:je}))}}if((t&7)===0){e:{if(F=e==="mouseover"||e==="pointerover",Q=e==="mouseout"||e==="pointerout",F&&n!==ye&&(xe=n.relatedTarget||n.fromElement)&&(St(xe)||xe[re]))break e;if((Q||F)&&(F=te.window===te?te:(F=te.ownerDocument)?F.defaultView||F.parentWindow:window,Q?(xe=n.relatedTarget||n.toElement,Q=$,xe=xe?St(xe):null,xe!==null&&(wt=d(xe),je=xe.tag,xe!==wt||je!==5&&je!==27&&je!==6)&&(xe=null)):(Q=null,xe=$),Q!==xe)){if(je=cd,ie="onMouseLeave",B="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(je=fd,ie="onPointerLeave",B="onPointerEnter",M="pointer"),wt=Q==null?F:wa(Q),G=xe==null?F:wa(xe),F=new je(ie,M+"leave",Q,n,te),F.target=wt,F.relatedTarget=G,ie=null,St(te)===$&&(je=new je(B,M+"enter",xe,n,te),je.target=G,je.relatedTarget=wt,ie=je),wt=ie,Q&&xe)t:{for(je=qv,B=Q,M=xe,G=0,ie=B;ie;ie=je(ie))G++;ie=0;for(var De=M;De;De=je(De))ie++;for(;0<G-ie;)B=je(B),G--;for(;0<ie-G;)M=je(M),ie--;for(;G--;){if(B===M||M!==null&&B===M.alternate){je=B;break t}B=je(B),M=je(M)}je=null}else je=null;Q!==null&&nm(se,F,Q,je,!1),xe!==null&&wt!==null&&nm(se,wt,xe,je,!0)}}e:{if(F=$?wa($):window,Q=F.nodeName&&F.nodeName.toLowerCase(),Q==="select"||Q==="input"&&F.type==="file")var ht=vd;else if(bd(F))if(Ed)ht=Wy;else{ht=Qy;var Re=Xy}else Q=F.nodeName,!Q||Q.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?$&&Te($.elementType)&&(ht=vd):ht=Vy;if(ht&&(ht=ht(e,$))){yd(se,ht,n,te);break e}Re&&Re(e,F,$),e==="focusout"&&$&&F.type==="number"&&$.memoizedProps.value!=null&&ri(F,"number",F.value)}switch(Re=$?wa($):window,e){case"focusin":(bd(Re)||Re.contentEditable==="true")&&(ll=Re,Ro=$,Vl=null);break;case"focusout":Vl=Ro=ll=null;break;case"mousedown":Oo=!0;break;case"contextmenu":case"mouseup":case"dragend":Oo=!1,Rd(se,n,te);break;case"selectionchange":if(ev)break;case"keydown":case"keyup":Rd(se,n,te)}var Ze;if(To)e:{switch(e){case"compositionstart":var lt="onCompositionStart";break e;case"compositionend":lt="onCompositionEnd";break e;case"compositionupdate":lt="onCompositionUpdate";break e}lt=void 0}else il?md(e,n)&&(lt="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(lt="onCompositionStart");lt&&(dd&&n.locale!=="ko"&&(il||lt!=="onCompositionStart"?lt==="onCompositionEnd"&&il&&(Ze=rd()):(oi=te,vo="value"in oi?oi.value:oi.textContent,il=!0)),Re=Ir($,lt),0<Re.length&&(lt=new ud(lt,e,null,n,te),se.push({event:lt,listeners:Re}),Ze?lt.data=Ze:(Ze=gd(n),Ze!==null&&(lt.data=Ze)))),(Ze=Yy?Fy(e,n):Ky(e,n))&&(lt=Ir($,"onBeforeInput"),0<lt.length&&(Re=new ud("onBeforeInput","beforeinput",null,n,te),se.push({event:Re,listeners:lt}),Re.data=Ze)),jv(se,e,$,n,te)}em(se,t)})}function Ss(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ir(e,t){for(var n=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=$l(e,n),o!=null&&i.unshift(Ss(e,o,c)),o=$l(e,t),o!=null&&i.push(Ss(e,o,c))),e.tag===3)return i;e=e.return}return[]}function qv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function nm(e,t,n,i,o){for(var c=t._reactName,h=[];n!==null&&n!==i;){var E=n,R=E.alternate,$=E.stateNode;if(E=E.tag,R!==null&&R===i)break;E!==5&&E!==26&&E!==27||$===null||(R=$,o?($=$l(n,c),$!=null&&h.unshift(Ss(n,$,R))):o||($=$l(n,c),$!=null&&h.push(Ss(n,$,R)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var Gv=/\r\n?/g,$v=/\u0000|\uFFFD/g;function am(e){return(typeof e=="string"?e:""+e).replace(Gv,`
49
- `).replace($v,"")}function im(e,t){return t=am(t),am(e)===t}function Tt(e,t,n,i,o,c){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||V(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&V(e,""+i);break;case"className":pn(e,"class",i);break;case"tabIndex":pn(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":pn(e,n,i);break;case"style":J(e,i,c);break;case"data":if(t!=="object"){pn(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Je(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="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"&&Tt(e,t,"name",o.name,o,null),Tt(e,t,"formEncType",o.formEncType,o,null),Tt(e,t,"formMethod",o.formMethod,o,null),Tt(e,t,"formTarget",o.formTarget,o,null)):(Tt(e,t,"encType",o.encType,o,null),Tt(e,t,"method",o.method,o,null),Tt(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Je(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=oe);break;case"onScroll":i!=null&&tt("scroll",e);break;case"onScrollEnd":i!=null&&tt("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Je(""+i),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":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":tt("beforetoggle",e),tt("toggle",e),Vt(e,"popover",i);break;case"xlinkActuate":Yt(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Yt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Yt(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Yt(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Yt(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Yt(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Vt(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Ae.get(n)||n,Vt(e,n,i))}}function eu(e,t,n,i,o,c){switch(n){case"style":J(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"children":typeof i=="string"?V(e,i):(typeof i=="number"||typeof i=="bigint")&&V(e,""+i);break;case"onScroll":i!=null&&tt("scroll",e);break;case"onScrollEnd":i!=null&&tt("scrollend",e);break;case"onClick":i!=null&&(e.onclick=oe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hn.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[Y]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,o);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Vt(e,n,i)}}}function Sn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":tt("error",e),tt("load",e);var i=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Tt(e,t,c,h,n,null)}}o&&Tt(e,t,"srcSet",n.srcSet,n,null),i&&Tt(e,t,"src",n.src,n,null);return;case"input":tt("invalid",e);var E=c=h=o=null,R=null,$=null;for(i in n)if(n.hasOwnProperty(i)){var te=n[i];if(te!=null)switch(i){case"name":o=te;break;case"type":h=te;break;case"checked":R=te;break;case"defaultChecked":$=te;break;case"value":c=te;break;case"defaultValue":E=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(l(137,t));break;default:Tt(e,t,i,te,n,null)}}Ba(e,c,E,R,$,h,o,!1);return;case"select":tt("invalid",e),i=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":i=E;default:Tt(e,t,o,E,n,null)}t=c,n=h,e.multiple=!!i,t!=null?Wt(e,!!i,t,!1):n!=null&&Wt(e,!!i,n,!0);return;case"textarea":tt("invalid",e),c=o=i=null;for(h in n)if(n.hasOwnProperty(h)&&(E=n[h],E!=null))switch(h){case"value":i=E;break;case"defaultValue":o=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(l(91));break;default:Tt(e,t,h,E,n,null)}Aa(e,i,o,c);return;case"option":for(R in n)if(n.hasOwnProperty(R)&&(i=n[R],i!=null))switch(R){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Tt(e,t,R,i,n,null)}return;case"dialog":tt("beforetoggle",e),tt("toggle",e),tt("cancel",e),tt("close",e);break;case"iframe":case"object":tt("load",e);break;case"video":case"audio":for(i=0;i<_s.length;i++)tt(_s[i],e);break;case"image":tt("error",e),tt("load",e);break;case"details":tt("toggle",e);break;case"embed":case"source":case"link":tt("error",e),tt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for($ in n)if(n.hasOwnProperty($)&&(i=n[$],i!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Tt(e,t,$,i,n,null)}return;default:if(Te(t)){for(te in n)n.hasOwnProperty(te)&&(i=n[te],i!==void 0&&eu(e,t,te,i,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(i=n[E],i!=null&&Tt(e,t,E,i,n,null))}function Yv(e,t,n,i){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,R=null,$=null,te=null;for(Q in n){var se=n[Q];if(n.hasOwnProperty(Q)&&se!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":R=se;default:i.hasOwnProperty(Q)||Tt(e,t,Q,null,i,se)}}for(var F in i){var Q=i[F];if(se=n[F],i.hasOwnProperty(F)&&(Q!=null||se!=null))switch(F){case"type":c=Q;break;case"name":o=Q;break;case"checked":$=Q;break;case"defaultChecked":te=Q;break;case"value":h=Q;break;case"defaultValue":E=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(l(137,t));break;default:Q!==se&&Tt(e,t,F,Q,i,se)}}si(e,h,E,R,$,te,c,o);return;case"select":Q=h=E=F=null;for(c in n)if(R=n[c],n.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":Q=R;default:i.hasOwnProperty(c)||Tt(e,t,c,null,i,R)}for(o in i)if(c=i[o],R=n[o],i.hasOwnProperty(o)&&(c!=null||R!=null))switch(o){case"value":F=c;break;case"defaultValue":E=c;break;case"multiple":h=c;default:c!==R&&Tt(e,t,o,c,i,R)}t=E,n=h,i=Q,F!=null?Wt(e,!!n,F,!1):!!i!=!!n&&(t!=null?Wt(e,!!n,t,!0):Wt(e,!!n,n?[]:"",!1));return;case"textarea":Q=F=null;for(E in n)if(o=n[E],n.hasOwnProperty(E)&&o!=null&&!i.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Tt(e,t,E,null,i,o)}for(h in i)if(o=i[h],c=n[h],i.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":F=o;break;case"defaultValue":Q=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&Tt(e,t,h,o,i,c)}Ia(e,F,Q);return;case"option":for(var xe in n)if(F=n[xe],n.hasOwnProperty(xe)&&F!=null&&!i.hasOwnProperty(xe))switch(xe){case"selected":e.selected=!1;break;default:Tt(e,t,xe,null,i,F)}for(R in i)if(F=i[R],Q=n[R],i.hasOwnProperty(R)&&F!==Q&&(F!=null||Q!=null))switch(R){case"selected":e.selected=F&&typeof F!="function"&&typeof F!="symbol";break;default:Tt(e,t,R,F,i,Q)}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 je in n)F=n[je],n.hasOwnProperty(je)&&F!=null&&!i.hasOwnProperty(je)&&Tt(e,t,je,null,i,F);for($ in i)if(F=i[$],Q=n[$],i.hasOwnProperty($)&&F!==Q&&(F!=null||Q!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(l(137,t));break;default:Tt(e,t,$,F,i,Q)}return;default:if(Te(t)){for(var wt in n)F=n[wt],n.hasOwnProperty(wt)&&F!==void 0&&!i.hasOwnProperty(wt)&&eu(e,t,wt,void 0,i,F);for(te in i)F=i[te],Q=n[te],!i.hasOwnProperty(te)||F===Q||F===void 0&&Q===void 0||eu(e,t,te,F,i,Q);return}}for(var B in n)F=n[B],n.hasOwnProperty(B)&&F!=null&&!i.hasOwnProperty(B)&&Tt(e,t,B,null,i,F);for(se in i)F=i[se],Q=n[se],!i.hasOwnProperty(se)||F===Q||F==null&&Q==null||Tt(e,t,se,F,i,Q)}function lm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Fv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var o=n[i],c=o.transferSize,h=o.initiatorType,E=o.duration;if(c&&E&&lm(h)){for(h=0,E=o.responseEnd,i+=1;i<n.length;i++){var R=n[i],$=R.startTime;if($>E)break;var te=R.transferSize,se=R.initiatorType;te&&lm(se)&&(R=R.responseEnd,h+=te*(R<E?1:(E-$)/(R-$)))}if(--i,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 tu=null,nu=null;function Hr(e){return e.nodeType===9?e:e.ownerDocument}function sm(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 rm(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 au(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 iu=null;function Kv(){var e=window.event;return e&&e.type==="popstate"?e===iu?!1:(iu=e,!0):(iu=null,!1)}var om=typeof setTimeout=="function"?setTimeout:void 0,Pv=typeof clearTimeout=="function"?clearTimeout:void 0,cm=typeof Promise=="function"?Promise:void 0,Zv=typeof queueMicrotask=="function"?queueMicrotask:typeof cm<"u"?function(e){return cm.resolve(null).then(e).catch(Xv)}:om;function Xv(e){setTimeout(function(){throw e})}function wi(e){return e==="head"}function um(e,t){var n=t,i=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(o),Ml(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Ns(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ns(n);for(var c=n.firstChild;c;){var h=c.nextSibling,E=c.nodeName;c[$t]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&Ns(e.ownerDocument.body);n=o}while(n);Ml(t)}function fm(e,t){var n=e;e=0;do{var i=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||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function lu(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":lu(n),$n(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Qv(e,t,n,i){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[$t])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=pa(e.nextSibling),e===null)break}return null}function Vv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=pa(e.nextSibling),e===null))return null;return e}function dm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=pa(e.nextSibling),e===null))return null;return e}function su(e){return e.data==="$?"||e.data==="$~"}function ru(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Wv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function pa(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 ou=null;function hm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return pa(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function pm(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 mm(e,t,n){switch(t=Hr(n),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Ns(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$n(e)}var ma=new Map,gm=new Set;function qr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ti=ae.d;ae.d={f:Jv,r:eE,D:tE,C:nE,L:aE,m:iE,X:sE,S:lE,M:rE};function Jv(){var e=ti.f(),t=Mr();return e||t}function eE(e){var t=On(e);t!==null&&t.tag===5&&t.type==="form"?Dh(t):ti.r(e)}var Ol=typeof document>"u"?null:document;function bm(e,t,n){var i=Ol;if(i&&typeof t=="string"&&t){var o=kn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),gm.has(o)||(gm.add(o),e={rel:e,crossOrigin:n,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),Sn(t,"link",e),vt(t),i.head.appendChild(t)))}}function tE(e){ti.D(e),bm("dns-prefetch",e,null)}function nE(e,t){ti.C(e,t),bm("preconnect",e,t)}function aE(e,t,n){ti.L(e,t,n);var i=Ol;if(i&&e&&t){var o='link[rel="preload"][as="'+kn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+kn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+kn(n.imageSizes)+'"]')):o+='[href="'+kn(e)+'"]';var c=o;switch(t){case"style":c=kl(e);break;case"script":c=Cl(e)}ma.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ma.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(Ts(c))||t==="script"&&i.querySelector(ws(c))||(t=i.createElement("link"),Sn(t,"link",e),vt(t),i.head.appendChild(t)))}}function iE(e,t){ti.m(e,t);var n=Ol;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+kn(i)+'"][href="'+kn(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Cl(e)}if(!ma.has(c)&&(e=v({rel:"modulepreload",href:e},t),ma.set(c,e),n.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ws(c)))return}i=n.createElement("link"),Sn(i,"link",e),vt(i),n.head.appendChild(i)}}}function lE(e,t,n){ti.S(e,t,n);var i=Ol;if(i&&e){var o=xa(i).hoistableStyles,c=kl(e);t=t||"default";var h=o.get(c);if(!h){var E={loading:0,preload:null};if(h=i.querySelector(Ts(c)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ma.get(c))&&cu(e,n);var R=h=i.createElement("link");vt(R),Sn(R,"link",e),R._p=new Promise(function($,te){R.onload=$,R.onerror=te}),R.addEventListener("load",function(){E.loading|=1}),R.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Gr(h,t,i)}h={type:"stylesheet",instance:h,count:1,state:E},o.set(c,h)}}}function sE(e,t){ti.X(e,t);var n=Ol;if(n&&e){var i=xa(n).hoistableScripts,o=Cl(e),c=i.get(o);c||(c=n.querySelector(ws(o)),c||(e=v({src:e,async:!0},t),(t=ma.get(o))&&uu(e,t),c=n.createElement("script"),vt(c),Sn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function rE(e,t){ti.M(e,t);var n=Ol;if(n&&e){var i=xa(n).hoistableScripts,o=Cl(e),c=i.get(o);c||(c=n.querySelector(ws(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=ma.get(o))&&uu(e,t),c=n.createElement("script"),vt(c),Sn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function ym(e,t,n,i){var o=(o=be.current)?qr(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=kl(n.href),n=xa(o).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=kl(n.href);var c=xa(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),ma.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},ma.set(e,n),c||oE(o,e,n,h.state))),t&&i===null)throw Error(l(528,""));return h}if(t&&i!==null)throw Error(l(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Cl(n),n=xa(o).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function kl(e){return'href="'+kn(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function vm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function oE(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Sn(t,"link",n),vt(t),e.head.appendChild(t))}function Cl(e){return'[src="'+kn(e)+'"]'}function ws(e){return"script[async]"+e}function Em(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+kn(n.href)+'"]');if(i)return t.instance=i,vt(i),i;var o=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),vt(i),Sn(i,"style",o),Gr(i,n.precedence,e),t.instance=i;case"stylesheet":o=kl(n.href);var c=e.querySelector(Ts(o));if(c)return t.state.loading|=4,t.instance=c,vt(c),c;i=vm(n),(o=ma.get(o))&&cu(i,o),c=(e.ownerDocument||e).createElement("link"),vt(c);var h=c;return h._p=new Promise(function(E,R){h.onload=E,h.onerror=R}),Sn(c,"link",i),t.state.loading|=4,Gr(c,n.precedence,e),t.instance=c;case"script":return c=Cl(n.src),(o=e.querySelector(ws(c)))?(t.instance=o,vt(o),o):(i=n,(o=ma.get(c))&&(i=v({},n),uu(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),vt(o),Sn(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Gr(i,n.precedence,e));return t.instance}function Gr(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,h=0;h<i.length;h++){var E=i[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 cu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function uu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $r=null;function _m(e,t,n){if($r===null){var i=new Map,o=$r=new Map;o.set(n,i)}else o=$r,i=o.get(n),i||(i=new Map,o.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[$t]||c[Ot]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var E=i.get(h);E?E.push(c):i.set(h,[c])}}return i}function Sm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function cE(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 Nm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function uE(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=kl(i.href),c=t.querySelector(Ts(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Yr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,vt(c);return}c=t.ownerDocument||t,i=vm(i),(o=ma.get(o))&&cu(i,o),c=c.createElement("link"),vt(c);var h=c;h._p=new Promise(function(E,R){h.onload=E,h.onerror=R}),Sn(c,"link",i),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=Yr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var fu=0;function fE(e,t){return e.stylesheets&&e.count===0&&Kr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Kr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&fu===0&&(fu=62500*Fv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Kr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>fu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function Yr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Kr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fr=null;function Kr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fr=new Map,t.forEach(dE,e),Fr=null,Yr.call(e))}function dE(e,t){if(!(t.state.loading&4)){var n=Fr.get(e);if(n)var i=n.get(null);else{n=new Map,Fr.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),i=h)}i&&n.set(null,i)}o=t.instance,h=o.getAttribute("data-precedence"),c=n.get(h)||i,c===i&&n.set(null,o),n.set(h,o),this.count++,i=Yr.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var xs={$$typeof:L,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function hE(e,t,n,i,o,c,h,E,R){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=Ke(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ke(0),this.hiddenUpdates=Ke(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Tm(e,t,n,i,o,c,h,E,R,$,te,se){return e=new hE(e,t,n,h,R,$,te,se,E),t=1,c===!0&&(t|=24),c=Jn(3,null,null,t),e.current=c,c.stateNode=e,t=Yo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:t},Zo(c),e}function wm(e){return e?(e=ol,e):ol}function xm(e,t,n,i,o,c){o=wm(o),i.context===null?i.context=o:i.pendingContext=o,i=pi(t),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=mi(e,i,t),n!==null&&(Xn(n,e,t),is(n,e,t))}function Am(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function du(e,t){Am(e,t),(e=e.alternate)&&Am(e,t)}function Rm(e){if(e.tag===13||e.tag===31){var t=Ii(e,67108864);t!==null&&Xn(t,e,67108864),du(e,67108864)}}function Om(e){if(e.tag===13||e.tag===31){var t=ia();t=bt(t);var n=Ii(e,t);n!==null&&Xn(n,e,t),du(e,t)}}var Pr=!0;function pE(e,t,n,i){var o=j.T;j.T=null;var c=ae.p;try{ae.p=2,hu(e,t,n,i)}finally{ae.p=c,j.T=o}}function mE(e,t,n,i){var o=j.T;j.T=null;var c=ae.p;try{ae.p=8,hu(e,t,n,i)}finally{ae.p=c,j.T=o}}function hu(e,t,n,i){if(Pr){var o=pu(i);if(o===null)Jc(e,t,i,Zr,n),Cm(e,i);else if(bE(o,e,t,n,i))i.stopPropagation();else if(Cm(e,i),t&4&&-1<gE.indexOf(e)){for(;o!==null;){var c=On(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 R=1<<31-jt(h);E.entanglements[1]|=R,h&=~R}Ca(c),(gt&6)===0&&(kr=st()+500,Es(0))}}break;case 31:case 13:E=Ii(c,2),E!==null&&Xn(E,c,2),Mr(),du(c,2)}if(c=pu(i),c===null&&Jc(e,t,i,Zr,n),c===o)break;o=c}o!==null&&i.stopPropagation()}else Jc(e,t,i,null,n)}}function pu(e){return e=ke(e),mu(e)}var Zr=null;function mu(e){if(Zr=null,e=St(e),e!==null){var t=d(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=b(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 Zr=e,null}function km(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(qt()){case ut:return 2;case cn:return 8;case xn:case An:return 32;case zn:return 268435456;default:return 32}default:return 32}}var gu=!1,xi=null,Ai=null,Ri=null,As=new Map,Rs=new Map,Oi=[],gE="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 Cm(e,t){switch(e){case"focusin":case"focusout":xi=null;break;case"dragenter":case"dragleave":Ai=null;break;case"mouseover":case"mouseout":Ri=null;break;case"pointerover":case"pointerout":As.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rs.delete(t.pointerId)}}function Os(e,t,n,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=On(t),t!==null&&Rm(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function bE(e,t,n,i,o){switch(t){case"focusin":return xi=Os(xi,e,t,n,i,o),!0;case"dragenter":return Ai=Os(Ai,e,t,n,i,o),!0;case"mouseover":return Ri=Os(Ri,e,t,n,i,o),!0;case"pointerover":var c=o.pointerId;return As.set(c,Os(As.get(c)||null,e,t,n,i,o)),!0;case"gotpointercapture":return c=o.pointerId,Rs.set(c,Os(Rs.get(c)||null,e,t,n,i,o)),!0}return!1}function Mm(e){var t=St(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,ba(e.priority,function(){Om(n)});return}}else if(t===31){if(t=b(n),t!==null){e.blockedOn=t,ba(e.priority,function(){Om(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 Xr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pu(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);ye=i,n.target.dispatchEvent(i),ye=null}else return t=On(n),t!==null&&Rm(t),e.blockedOn=n,!1;t.shift()}return!0}function Dm(e,t,n){Xr(e)&&n.delete(t)}function yE(){gu=!1,xi!==null&&Xr(xi)&&(xi=null),Ai!==null&&Xr(Ai)&&(Ai=null),Ri!==null&&Xr(Ri)&&(Ri=null),As.forEach(Dm),Rs.forEach(Dm)}function Qr(e,t){e.blockedOn===t&&(e.blockedOn=null,gu||(gu=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,yE)))}var Vr=null;function Lm(e){Vr!==e&&(Vr=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Vr===e&&(Vr=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(mu(i||n)===null)continue;break}var c=On(n);c!==null&&(e.splice(t,3),t-=3,pc(c,{pending:!0,data:o,method:n.method,action:i},i,o))}}))}function Ml(e){function t(R){return Qr(R,e)}xi!==null&&Qr(xi,e),Ai!==null&&Qr(Ai,e),Ri!==null&&Qr(Ri,e),As.forEach(t),Rs.forEach(t);for(var n=0;n<Oi.length;n++){var i=Oi[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Oi.length&&(n=Oi[0],n.blockedOn===null);)Mm(n),n.blockedOn===null&&Oi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var o=n[i],c=n[i+1],h=o[Y]||null;if(typeof c=="function")h||Lm(n);else if(h){var E=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[Y]||null)E=h.formAction;else if(mu(o)!==null)continue}else E=h.action;typeof E=="function"?n[i+1]=E:(n.splice(i,3),i-=3),Lm(n)}}}function zm(){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),i||setTimeout(n,20)}function n(){if(!i&&!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 i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function bu(e){this._internalRoot=e}Wr.prototype.render=bu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var n=t.current,i=ia();xm(n,i,e,t,null,null)},Wr.prototype.unmount=bu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xm(e.current,2,null,e,null,null),Mr(),t[re]=null}};function Wr(e){this._internalRoot=e}Wr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vn();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&&Mm(e)}};var Um=a.version;if(Um!=="19.2.8")throw Error(l(527,Um,"19.2.8"));ae.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=m(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var vE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jr.isDisabled&&Jr.supportsFiber)try{yn=Jr.inject(vE),Ut=Jr}catch{}}return Cs.createRoot=function(e,t){if(!u(e))throw Error(l(299));var n=!1,i="",o=$h,c=Yh,h=Fh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Tm(e,1,!1,null,null,n,i,null,o,c,h,zm),e[re]=t.current,Wc(e),new bu(t)},Cs.hydrateRoot=function(e,t,n){if(!u(e))throw Error(l(299));var i=!1,o="",c=$h,h=Yh,E=Fh,R=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!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&&(R=n.formState)),t=Tm(e,1,!0,t,n??null,i,o,R,c,h,E,zm),t.context=wm(null),n=t.current,i=ia(),i=bt(i),o=pi(i),o.callback=null,mi(n,o,i),n=i,t.current.lanes=n,Qe(t,n),Ca(t),e[re]=t.current,Wc(e),new Wr(t)},Cs.version="19.2.8",Cs}var Km;function CE(){if(Km)return Eu.exports;Km=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(a){console.error(a)}}return s(),Eu.exports=kE(),Eu.exports}var ME=CE(),an;(function(s){s.INSERT="insert",s.DELETE="delete",s.CONTEXT="context"})(an||(an={}));const DE={LINE_BY_LINE:"line-by-line"},LE={NONE:"none"},zE={WORD:"word"};var Bl;(function(s){s.AUTO="auto",s.DARK="dark",s.LIGHT="light"})(Bl||(Bl={}));const UE=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],jE=RegExp("["+UE.join("\\")+"]","g");function BE(s){return s.replace(jE,"\\$&")}function Pm(s){return s&&s.replace(/\\/g,"/")}function IE(s){let a,r,l,u=0;for(a=0,l=s.length;a<l;a++)r=s.charCodeAt(a),u=(u<<5)-u+r,u|=0;return u}function Rb(s){const a=s.length;let r=-1/0;for(let l=0;l<a;l++)r=Math.max(r,s[l]);return r}function Zm(s,a){const r=s.split(".");return r.length>1?r[r.length-1]:a}function Xm(s,a){return a.reduce((r,l)=>r||s.startsWith(l),!1)}const Qm=["a/","b/","i/","w/","c/","o/"];function Di(s,a,r){const l=r!==void 0?[...Qm,r]:Qm,u=a?new RegExp(`^${BE(a)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,d=""]=u.exec(s)||[],p=l.find(g=>d.indexOf(g)===0);return(p?d.slice(p.length):d).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function HE(s,a){return Di(s,"---",a)}function qE(s,a){return Di(s,"+++",a)}function GE(s,a={}){const r=[];let l=null,u=null,d=null,p=null,b=null,g=null,m=null;const y="--- ",v="+++ ",_="@@",w=/^old mode (\d{6})/,T=/^new mode (\d{6})/,A=/^deleted file mode (\d{6})/,x=/^new file mode (\d{6})/,k=/^copy from "?(.+)"?/,I=/^copy to "?(.+)"?/,L=/^rename from "?(.+)"?/,le=/^rename to "?(.+)"?/,K=/^similarity index (\d+)%/,P=/^dissimilarity index (\d+)%/,ne=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,C=/^Binary files (.*) and (.*) differ/,z=/^GIT binary patch/,X=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,q=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,de=/^new file mode (\d{6})/,he=/^deleted file mode (\d{6}),(\d{6})/,_e=s.replace(/\/g,"").replace(/\r\n?/g,`
50
- `).split(`
51
- `);function pe(){u!==null&&l!==null&&(l.blocks.push(u),u=null)}function j(){l!==null&&(!l.oldName&&g!==null&&(l.oldName=g),!l.newName&&m!==null&&(l.newName=m),l.newName&&(r.push(l),l=null)),g=null,m=null}function ae(){pe(),j(),l={blocks:[],deletedLines:0,addedLines:0}}function ce(S){pe();let D;l!==null&&((D=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(S))?(l.isCombined=!1,d=parseInt(D[1],10),b=parseInt(D[2],10)):(D=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(S))?(l.isCombined=!0,d=parseInt(D[1],10),p=parseInt(D[2],10),b=parseInt(D[3],10)):(S.startsWith(_)&&console.error("Failed to parse lines, starting in 0!"),d=0,b=0,l.isCombined=!1)),u={lines:[],oldStartLine:d,oldStartLine2:p,newStartLine:b,header:S}}function ve(S){if(l===null||u===null||d===null||b===null)return;const D={content:S},H=l.isCombined?["+ "," +","++"]:["+"],ue=l.isCombined?["- "," -","--"]:["-"];Xm(S,H)?(l.addedLines++,D.type=an.INSERT,D.oldNumber=void 0,D.newNumber=b++):Xm(S,ue)?(l.deletedLines++,D.type=an.DELETE,D.oldNumber=d++,D.newNumber=void 0):(D.type=an.CONTEXT,D.oldNumber=d++,D.newNumber=b++),u.lines.push(D)}function Se(S,D){let H=D;for(;H<_e.length-3;){if(S.startsWith("diff"))return!1;if(_e[H].startsWith(y)&&_e[H+1].startsWith(v)&&_e[H+2].startsWith(_))return!0;H++}return!1}return _e.forEach((S,D)=>{if(!S||S.startsWith("*"))return;let H;const ue=_e[D-1],W=_e[D+1],be=_e[D+2];if(S.startsWith("diff --git")||S.startsWith("diff --combined")){if(ae(),(H=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(S))&&(g=Di(H[1],void 0,a.dstPrefix),m=Di(H[2],void 0,a.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isGitDiff=!0;return}if(S.startsWith("Binary files")&&!(l!=null&&l.isGitDiff)){if(ae(),(H=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(S))&&(g=Di(H[1],void 0,a.dstPrefix),m=Di(H[2],void 0,a.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isBinary=!0;return}if((!l||!l.isGitDiff&&l&&S.startsWith(y)&&W.startsWith(v)&&be.startsWith(_))&&ae(),l!=null&&l.isTooBig)return;if(l&&(typeof a.diffMaxChanges=="number"&&l.addedLines+l.deletedLines>a.diffMaxChanges||typeof a.diffMaxLineLength=="number"&&S.length>a.diffMaxLineLength)){l.isTooBig=!0,l.addedLines=0,l.deletedLines=0,l.blocks=[],u=null;const Le=typeof a.diffTooBigMessage=="function"?a.diffTooBigMessage(r.length):"Diff too big to be displayed";ce(Le);return}if(S.startsWith(y)&&W.startsWith(v)||S.startsWith(v)&&ue.startsWith(y)){if(l&&!l.oldName&&S.startsWith("--- ")&&(H=HE(S,a.srcPrefix))){l.oldName=H,l.language=Zm(l.oldName,l.language);return}if(l&&!l.newName&&S.startsWith("+++ ")&&(H=qE(S,a.dstPrefix))){l.newName=H,l.language=Zm(l.newName,l.language);return}}if(l&&(S.startsWith(_)||l.isGitDiff&&l.oldName&&l.newName&&!u)){ce(S);return}if(u&&(S.startsWith("+")||S.startsWith("-")||S.startsWith(" "))){ve(S);return}const ge=!Se(S,D);if(l===null)throw new Error("Where is my file !!!");(H=w.exec(S))?l.oldMode=H[1]:(H=T.exec(S))?l.newMode=H[1]:(H=A.exec(S))?(l.deletedFileMode=H[1],l.isDeleted=!0):(H=x.exec(S))?(l.newFileMode=H[1],l.isNew=!0):(H=k.exec(S))?(ge&&(l.oldName=H[1]),l.isCopy=!0):(H=I.exec(S))?(ge&&(l.newName=H[1]),l.isCopy=!0):(H=L.exec(S))?(ge&&(l.oldName=H[1]),l.isRename=!0):(H=le.exec(S))?(ge&&(l.newName=H[1]),l.isRename=!0):(H=C.exec(S))?(l.isBinary=!0,l.oldName=Di(H[1],void 0,a.srcPrefix),l.newName=Di(H[2],void 0,a.dstPrefix),ce("Binary file")):z.test(S)?(l.isBinary=!0,ce(S)):(H=K.exec(S))?l.unchangedPercentage=parseInt(H[1],10):(H=P.exec(S))?l.changedPercentage=parseInt(H[1],10):(H=ne.exec(S))?(l.checksumBefore=H[1],l.checksumAfter=H[2],H[3]&&(l.mode=H[3])):(H=X.exec(S))?(l.checksumBefore=[H[2],H[3]],l.checksumAfter=H[1]):(H=q.exec(S))?(l.oldMode=[H[2],H[3]],l.newMode=H[1]):(H=de.exec(S))?(l.newFileMode=H[1],l.isNew=!0):(H=he.exec(S))&&(l.deletedFileMode=H[1],l.isDeleted=!0)}),pe(),j(),r}class Ob{diff(a,r,l={}){let u;typeof l=="function"?(u=l,l={}):"callback"in l&&(u=l.callback);const d=this.castInput(a,l),p=this.castInput(r,l),b=this.removeEmpty(this.tokenize(d,l)),g=this.removeEmpty(this.tokenize(p,l));return this.diffWithOptionsObj(b,g,l,u)}diffWithOptionsObj(a,r,l,u){var d;const p=I=>{if(I=this.postProcess(I,l),u){setTimeout(function(){u(I)},0);return}else return I},b=r.length,g=a.length;let m=1,y=b+g;l.maxEditLength!=null&&(y=Math.min(y,l.maxEditLength));const v=(d=l.timeout)!==null&&d!==void 0?d:1/0,_=Date.now()+v,w=[{oldPos:-1,lastComponent:void 0}];let T=this.extractCommon(w[0],r,a,0,l);if(w[0].oldPos+1>=g&&T+1>=b)return p(this.buildValues(w[0].lastComponent,r,a));let A=-1/0,x=1/0;const k=()=>{for(let I=Math.max(A,-m);I<=Math.min(x,m);I+=2){let L;const le=w[I-1],K=w[I+1];le&&(w[I-1]=void 0);let P=!1;if(K){const C=K.oldPos-I;P=K&&0<=C&&C<b}const ne=le&&le.oldPos+1<g;if(!P&&!ne){w[I]=void 0;continue}if(!ne||P&&le.oldPos<K.oldPos?L=this.addToPath(K,!0,!1,0,l):L=this.addToPath(le,!1,!0,1,l),T=this.extractCommon(L,r,a,I,l),L.oldPos+1>=g&&T+1>=b)return p(this.buildValues(L.lastComponent,r,a))||!0;w[I]=L,L.oldPos+1>=g&&(x=Math.min(x,I-1)),T+1>=b&&(A=Math.max(A,I+1))}m++};if(u)(function I(){setTimeout(function(){if(m>y||Date.now()>_)return u(void 0);k()||I()},0)})();else for(;m<=y&&Date.now()<=_;){const I=k();if(I)return I}}addToPath(a,r,l,u,d){const p=a.lastComponent;return p&&!d.oneChangePerToken&&p.added===r&&p.removed===l?{oldPos:a.oldPos+u,lastComponent:{count:p.count+1,added:r,removed:l,previousComponent:p.previousComponent}}:{oldPos:a.oldPos+u,lastComponent:{count:1,added:r,removed:l,previousComponent:p}}}extractCommon(a,r,l,u,d){const p=r.length,b=l.length;let g=a.oldPos,m=g-u,y=0;for(;m+1<p&&g+1<b&&this.equals(l[g+1],r[m+1],d);)m++,g++,y++,d.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return y&&!d.oneChangePerToken&&(a.lastComponent={count:y,previousComponent:a.lastComponent,added:!1,removed:!1}),a.oldPos=g,m}equals(a,r,l){return l.comparator?l.comparator(a,r):a===r||!!l.ignoreCase&&a.toLowerCase()===r.toLowerCase()}removeEmpty(a){const r=[];for(let l=0;l<a.length;l++)a[l]&&r.push(a[l]);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,l){const u=[];let d;for(;a;)u.push(a),d=a.previousComponent,delete a.previousComponent,a=d;u.reverse();const p=u.length;let b=0,g=0,m=0;for(;b<p;b++){const y=u[b];if(y.removed)y.value=this.join(l.slice(m,m+y.count)),m+=y.count;else{if(!y.added&&this.useLongestToken){let v=r.slice(g,g+y.count);v=v.map(function(_,w){const T=l[m+w];return T.length>_.length?T:_}),y.value=this.join(v)}else y.value=this.join(r.slice(g,g+y.count));g+=y.count,y.added||(m+=y.count)}}return u}}class $E extends Ob{}const YE=new $E;function FE(s,a,r){return YE.diff(s,a,r)}const Vm="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 KE extends Ob{tokenize(a){const r=new RegExp(`(\\r?\\n)|[${Vm}]+|[^\\S\\n\\r]+|[^${Vm}]`,"ug");return a.match(r)||[]}}const PE=new KE;function ZE(s,a,r){return PE.diff(s,a,r)}function XE(s,a){if(s.length===0)return a.length;if(a.length===0)return s.length;const r=[];let l;for(l=0;l<=a.length;l++)r[l]=[l];let u;for(u=0;u<=s.length;u++)r[0][u]=u;for(l=1;l<=a.length;l++)for(u=1;u<=s.length;u++)a.charAt(l-1)===s.charAt(u-1)?r[l][u]=r[l-1][u-1]:r[l][u]=Math.min(r[l-1][u-1]+1,Math.min(r[l][u-1]+1,r[l-1][u]+1));return r[a.length][s.length]}function Gf(s){return(a,r)=>{const l=s(a).trim(),u=s(r).trim();return XE(l,u)/(l.length+u.length)}}function $f(s){function a(l,u,d=new Map){let p=1/0,b;for(let g=0;g<l.length;++g)for(let m=0;m<u.length;++m){const y=JSON.stringify([l[g],u[m]]);let v;d.has(y)&&(v=d.get(y))||(v=s(l[g],u[m]),d.set(y,v)),v<p&&(p=v,b={indexA:g,indexB:m,score:p})}return b}function r(l,u,d=0,p=new Map){const b=a(l,u,p);if(!b||l.length+u.length<3)return[[l,u]];const g=l.slice(0,b.indexA),m=u.slice(0,b.indexB),y=[l[b.indexA]],v=[u[b.indexB]],_=b.indexA+1,w=b.indexB+1,T=l.slice(_),A=u.slice(w),x=r(g,m,d+1,p),k=r(y,v,d+1,p),I=r(T,A,d+1,p);let L=k;return(b.indexA>0||b.indexB>0)&&(L=x.concat(L)),(l.length>_||u.length>w)&&(L=L.concat(I)),L}return r}const Gn={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},mo={matching:LE.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:zE.WORD,colorScheme:Bl.LIGHT},Ma="/",kb=Gf(s=>s.value),QE=$f(kb);function Tu(s){return s.indexOf("dev/null")!==-1}function VE(s){return s.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function WE(s){return s.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function oo(s){switch(s){case an.CONTEXT:return Gn.CONTEXT;case an.INSERT:return Gn.INSERTS;case an.DELETE:return Gn.DELETES}}function Yf(s){switch(s){case Bl.DARK:return"d2h-dark-color-scheme";case Bl.AUTO:return"d2h-auto-color-scheme";case Bl.LIGHT:default:return"d2h-light-color-scheme"}}function JE(s){return s?2:1}function Il(s){return s.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function La(s,a,r=!0){const l=JE(a);return{prefix:s.substring(0,l),content:r?Il(s.substring(l)):s.substring(l)}}function go(s){const a=Pm(s.oldName),r=Pm(s.newName);if(a!==r&&!Tu(a)&&!Tu(r)){const l=[],u=[],d=a.split(Ma),p=r.split(Ma),b=d.length,g=p.length;let m=0,y=b-1,v=g-1;for(;m<y&&m<v&&d[m]===p[m];)l.push(p[m]),m+=1;for(;y>m&&v>m&&d[y]===p[v];)u.unshift(p[v]),y-=1,v-=1;const _=l.join(Ma),w=u.join(Ma),T=d.slice(m,y+1).join(Ma),A=p.slice(m,v+1).join(Ma);return _.length&&w.length?_+Ma+"{"+T+" → "+A+"}"+Ma+w:_.length?_+Ma+"{"+T+" → "+A+"}":w.length?"{"+T+" → "+A+"}"+Ma+w:a+" → "+r}else return Tu(r)?a:r}function Ff(s){return`d2h-${IE(go(s)).toString().slice(-6)}`}function Kf(s){let a="file-changed";return s.isRename||s.isCopy?a="file-renamed":s.isNew?a="file-added":s.isDeleted?a="file-deleted":s.newName!==s.oldName&&(a="file-renamed"),a}function Cb(s,a,r,l={}){const{matching:u,maxLineLengthHighlight:d,matchWordsThreshold:p,diffStyle:b}=Object.assign(Object.assign({},mo),l),g=La(s,r,!1),m=La(a,r,!1);if(g.content.length>d||m.content.length>d)return{oldLine:{prefix:g.prefix,content:Il(g.content)},newLine:{prefix:m.prefix,content:Il(m.content)}};const y=b==="char"?FE(g.content,m.content):ZE(g.content,m.content),v=[];if(b==="word"&&u==="words"){const w=y.filter(x=>x.removed),T=y.filter(x=>x.added);QE(T,w).forEach(x=>{x[0].length===1&&x[1].length===1&&kb(x[0][0],x[1][0])<p&&(v.push(x[0][0]),v.push(x[1][0]))})}const _=y.reduce((w,T)=>{const A=T.added?"ins":T.removed?"del":null,x=v.indexOf(T)>-1?' class="d2h-change"':"",k=Il(T.value);return A!==null?`${w}<${A}${x}>${k}</${A}>`:`${w}${k}`},"");return{oldLine:{prefix:g.prefix,content:VE(_)},newLine:{prefix:m.prefix,content:WE(_)}}}const Wm="file-summary",e_="icon",t_={colorScheme:mo.colorScheme};class n_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},t_),r)}render(a){const r=a.map(l=>this.hoganUtils.render(Wm,"line",{fileHtmlId:Ff(l),oldName:l.oldName,newName:l.newName,fileName:go(l),deletedLines:"-"+l.deletedLines,addedLines:"+"+l.addedLines},{fileIcon:this.hoganUtils.template(e_,Kf(l))})).join(`
52
- `);return this.hoganUtils.render(Wm,"wrapper",{colorScheme:Yf(this.config.colorScheme),filesNumber:a.length,files:r})}}const Mb=Object.assign(Object.assign({},mo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ms="generic",Jm="line-by-line",a_="icon",i_="tag";class l_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},Mb),r)}render(a){const r=a.map(l=>{let u;return l.blocks.length?u=this.generateFileHtml(l):u=this.generateEmptyDiff(),this.makeFileDiffHtml(l,u)}).join(`
53
- `);return this.hoganUtils.render(Ms,"wrapper",{colorScheme:Yf(this.config.colorScheme),content:r})}makeFileDiffHtml(a,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(a.blocks)&&a.blocks.length===0)return"";const l=this.hoganUtils.template(Jm,"file-diff"),u=this.hoganUtils.template(Ms,"file-path"),d=this.hoganUtils.template(a_,"file"),p=this.hoganUtils.template(i_,Kf(a));return l.render({file:a,fileHtmlId:Ff(a),diffs:r,filePath:u.render({fileDiffName:go(a)},{fileIcon:d,fileTag:p})})}generateEmptyDiff(){return this.hoganUtils.render(Ms,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:Gn})}generateFileHtml(a){const r=$f(Gf(l=>La(l.content,a.isCombined).content));return a.blocks.map(l=>{let u=this.hoganUtils.render(Ms,"block-header",{CSSLineClass:Gn,blockHeader:a.isTooBig?l.header:Il(l.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(l).forEach(([d,p,b])=>{if(p.length&&b.length&&!d.length)this.applyRematchMatching(p,b,r).map(([g,m])=>{const{left:y,right:v}=this.processChangedLines(a,a.isCombined,g,m);u+=y,u+=v});else if(d.length)d.forEach(g=>{const{prefix:m,content:y}=La(g.content,a.isCombined);u+=this.generateSingleLineHtml(a,{type:Gn.CONTEXT,prefix:m,content:y,oldNumber:g.oldNumber,newNumber:g.newNumber})});else if(p.length||b.length){const{left:g,right:m}=this.processChangedLines(a,a.isCombined,p,b);u+=g,u+=m}else console.error("Unknown state reached while processing groups of lines",d,p,b)}),u}).join(`
54
- `)}applyLineGroupping(a){const r=[];let l=[],u=[];for(let d=0;d<a.lines.length;d++){const p=a.lines[d];(p.type!==an.INSERT&&u.length||p.type===an.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),p.type===an.CONTEXT?r.push([[p],[],[]]):p.type===an.INSERT&&l.length===0?r.push([[],[],[p]]):p.type===an.INSERT&&l.length>0?u.push(p):p.type===an.DELETE&&l.push(p)}return(l.length||u.length)&&(r.push([[],l,u]),l=[],u=[]),r}applyRematchMatching(a,r,l){const u=a.length*r.length,d=Rb(a.concat(r).map(b=>b.content.length));return u<this.config.matchingMaxComparisons&&d<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?l(a,r):[[a,r]]}processChangedLines(a,r,l,u){const d={right:"",left:""},p=Math.max(l.length,u.length);for(let b=0;b<p;b++){const g=l[b],m=u[b],y=g!==void 0&&m!==void 0?Cb(g.content,m.content,r,this.config):void 0,v=g!==void 0&&g.oldNumber!==void 0?Object.assign(Object.assign({},y!==void 0?{prefix:y.oldLine.prefix,content:y.oldLine.content,type:Gn.DELETE_CHANGES}:Object.assign(Object.assign({},La(g.content,r)),{type:oo(g.type)})),{oldNumber:g.oldNumber,newNumber:g.newNumber}):void 0,_=m!==void 0&&m.newNumber!==void 0?Object.assign(Object.assign({},y!==void 0?{prefix:y.newLine.prefix,content:y.newLine.content,type:Gn.INSERT_CHANGES}:Object.assign(Object.assign({},La(m.content,r)),{type:oo(m.type)})),{oldNumber:m.oldNumber,newNumber:m.newNumber}):void 0,{left:w,right:T}=this.generateLineHtml(a,v,_);d.left+=w,d.right+=T}return d}generateLineHtml(a,r,l){return{left:this.generateSingleLineHtml(a,r),right:this.generateSingleLineHtml(a,l)}}generateSingleLineHtml(a,r){if(r===void 0)return"";const l=this.hoganUtils.render(Jm,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(Ms,"line",{type:r.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:r.prefix===" "?"&nbsp;":r.prefix,content:r.content,lineNumber:l,line:r,file:a})}}const Db=Object.assign(Object.assign({},mo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ds="generic",s_="side-by-side",r_="icon",o_="tag";class c_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},Db),r)}render(a){const r=a.map(l=>{let u;return l.blocks.length?u=this.generateFileHtml(l):u=this.generateEmptyDiff(),this.makeFileDiffHtml(l,u)}).join(`
55
- `);return this.hoganUtils.render(Ds,"wrapper",{colorScheme:Yf(this.config.colorScheme),content:r})}makeFileDiffHtml(a,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(a.blocks)&&a.blocks.length===0)return"";const l=this.hoganUtils.template(s_,"file-diff"),u=this.hoganUtils.template(Ds,"file-path"),d=this.hoganUtils.template(r_,"file"),p=this.hoganUtils.template(o_,Kf(a));return l.render({file:a,fileHtmlId:Ff(a),diffs:r,filePath:u.render({fileDiffName:go(a)},{fileIcon:d,fileTag:p})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Ds,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:Gn})}}generateFileHtml(a){const r=$f(Gf(l=>La(l.content,a.isCombined).content));return a.blocks.map(l=>{const u={left:this.makeHeaderHtml(l.header,a),right:this.makeHeaderHtml("")};return this.applyLineGroupping(l).forEach(([d,p,b])=>{if(p.length&&b.length&&!d.length)this.applyRematchMatching(p,b,r).map(([g,m])=>{const{left:y,right:v}=this.processChangedLines(a.isCombined,g,m);u.left+=y,u.right+=v});else if(d.length)d.forEach(g=>{const{prefix:m,content:y}=La(g.content,a.isCombined),{left:v,right:_}=this.generateLineHtml({type:Gn.CONTEXT,prefix:m,content:y,number:g.oldNumber},{type:Gn.CONTEXT,prefix:m,content:y,number:g.newNumber});u.left+=v,u.right+=_});else if(p.length||b.length){const{left:g,right:m}=this.processChangedLines(a.isCombined,p,b);u.left+=g,u.right+=m}else console.error("Unknown state reached while processing groups of lines",d,p,b)}),u}).reduce((l,u)=>({left:l.left+u.left,right:l.right+u.right}),{left:"",right:""})}applyLineGroupping(a){const r=[];let l=[],u=[];for(let d=0;d<a.lines.length;d++){const p=a.lines[d];(p.type!==an.INSERT&&u.length||p.type===an.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),p.type===an.CONTEXT?r.push([[p],[],[]]):p.type===an.INSERT&&l.length===0?r.push([[],[],[p]]):p.type===an.INSERT&&l.length>0?u.push(p):p.type===an.DELETE&&l.push(p)}return(l.length||u.length)&&(r.push([[],l,u]),l=[],u=[]),r}applyRematchMatching(a,r,l){const u=a.length*r.length,d=Rb(a.concat(r).map(b=>b.content.length));return u<this.config.matchingMaxComparisons&&d<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?l(a,r):[[a,r]]}makeHeaderHtml(a,r){return this.hoganUtils.render(Ds,"block-header",{CSSLineClass:Gn,blockHeader:r!=null&&r.isTooBig?a:Il(a),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(a,r,l){const u={right:"",left:""},d=Math.max(r.length,l.length);for(let p=0;p<d;p++){const b=r[p],g=l[p],m=b!==void 0&&g!==void 0?Cb(b.content,g.content,a,this.config):void 0,y=b!==void 0&&b.oldNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.oldLine.prefix,content:m.oldLine.content,type:Gn.DELETE_CHANGES}:Object.assign(Object.assign({},La(b.content,a)),{type:oo(b.type)})),{number:b.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:Gn.INSERT_CHANGES}:Object.assign(Object.assign({},La(g.content,a)),{type:oo(g.type)})),{number:g.newNumber}):void 0,{left:_,right:w}=this.generateLineHtml(y,v);u.left+=_,u.right+=w}return u}generateLineHtml(a,r){return{left:this.generateSingleHtml(a),right:this.generateSingleHtml(r)}}generateSingleHtml(a){const r="d2h-code-side-linenumber",l="d2h-code-side-line";return this.hoganUtils.render(Ds,"line",{type:(a==null?void 0:a.type)||`${Gn.CONTEXT} d2h-emptyplaceholder`,lineClass:a!==void 0?r:`${r} d2h-code-side-emptyplaceholder`,contentClass:a!==void 0?l:`${l} 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 wu={},eg;function u_(){return eg||(eg=1,(function(s){(function(a){var r=/\S/,l=/\"/g,u=/\n/g,d=/\r/g,p=/\\/g,b=/\u2028/,g=/\u2029/;a.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},a.scan=function(z,X){var q=z.length,de=0,he=1,_e=2,pe=de,j=null,ae=null,ce="",ve=[],Se=!1,S=0,D=0,H="{{",ue="}}";function W(){ce.length>0&&(ve.push({tag:"_t",text:new String(ce)}),ce="")}function be(){for(var ze=!0,$e=D;$e<ve.length;$e++)if(ze=a.tags[ve[$e].tag]<a.tags._v||ve[$e].tag=="_t"&&ve[$e].text.match(r)===null,!ze)return!1;return ze}function ge(ze,$e){if(W(),ze&&be())for(var at=D,Ce;at<ve.length;at++)ve[at].text&&((Ce=ve[at+1])&&Ce.tag==">"&&(Ce.indent=ve[at].text.toString()),ve.splice(at,1));else $e||ve.push({tag:`
56
- `});Se=!1,D=ve.length}function Le(ze,$e){var at="="+ue,Ce=ze.indexOf(at,$e),We=y(ze.substring(ze.indexOf("=",$e)+1,Ce)).split(" ");return H=We[0],ue=We[We.length-1],Ce+at.length-1}for(X&&(X=X.split(" "),H=X[0],ue=X[1]),S=0;S<q;S++)pe==de?v(H,z,S)?(--S,W(),pe=he):z.charAt(S)==`
57
- `?ge(Se):ce+=z.charAt(S):pe==he?(S+=H.length-1,ae=a.tags[z.charAt(S+1)],j=ae?z.charAt(S+1):"_v",j=="="?(S=Le(z,S),pe=de):(ae&&S++,pe=_e),Se=S):v(ue,z,S)?(ve.push({tag:j,n:y(ce),otag:H,ctag:ue,i:j=="/"?Se-H.length:S+ue.length}),ce="",S+=ue.length-1,pe=de,j=="{"&&(ue=="}}"?S++:m(ve[ve.length-1]))):ce+=z.charAt(S);return ge(Se,!0),ve};function m(C){C.n.substr(C.n.length-1)==="}"&&(C.n=C.n.substring(0,C.n.length-1))}function y(C){return C.trim?C.trim():C.replace(/^\s*|\s*$/g,"")}function v(C,z,X){if(z.charAt(X)!=C.charAt(0))return!1;for(var q=1,de=C.length;q<de;q++)if(z.charAt(X+q)!=C.charAt(q))return!1;return!0}var _={_t:!0,"\n":!0,$:!0,"/":!0};function w(C,z,X,q){var de=[],he=null,_e=null,pe=null;for(_e=X[X.length-1];C.length>0;){if(pe=C.shift(),_e&&_e.tag=="<"&&!(pe.tag in _))throw new Error("Illegal content in < super tag.");if(a.tags[pe.tag]<=a.tags.$||T(pe,q))X.push(pe),pe.nodes=w(C,pe.tag,X,q);else if(pe.tag=="/"){if(X.length===0)throw new Error("Closing tag without opener: /"+pe.n);if(he=X.pop(),pe.n!=he.n&&!A(pe.n,he.n,q))throw new Error("Nesting error: "+he.n+" vs. "+pe.n);return he.end=pe.i,de}else pe.tag==`
58
- `&&(pe.last=C.length==0||C[0].tag==`
59
- `);de.push(pe)}if(X.length>0)throw new Error("missing closing tag: "+X.pop().n);return de}function T(C,z){for(var X=0,q=z.length;X<q;X++)if(z[X].o==C.n)return C.tag="#",!0}function A(C,z,X){for(var q=0,de=X.length;q<de;q++)if(X[q].c==C&&X[q].o==z)return!0}function x(C){var z=[];for(var X in C)z.push('"'+L(X)+'": function(c,p,t,i) {'+C[X]+"}");return"{ "+z.join(",")+" }"}function k(C){var z=[];for(var X in C.partials)z.push('"'+L(X)+'":{name:"'+L(C.partials[X].name)+'", '+k(C.partials[X])+"}");return"partials: {"+z.join(",")+"}, subs: "+x(C.subs)}a.stringify=function(C,z,X){return"{code: function (c,p,i) { "+a.wrapMain(C.code)+" },"+k(C)+"}"};var I=0;a.generate=function(C,z,X){I=0;var q={code:"",subs:{},partials:{}};return a.walk(C,q),X.asString?this.stringify(q,z,X):this.makeTemplate(q,z,X)},a.wrapMain=function(C){return'var t=this;t.b(i=i||"");'+C+"return t.fl();"},a.template=a.Template,a.makeTemplate=function(C,z,X){var q=this.makePartials(C);return q.code=new Function("c","p","i",this.wrapMain(C.code)),new this.template(q,z,this,X)},a.makePartials=function(C){var z,X={subs:{},partials:C.partials,name:C.name};for(z in X.partials)X.partials[z]=this.makePartials(X.partials[z]);for(z in C.subs)X.subs[z]=new Function("c","p","t","i",C.subs[z]);return X};function L(C){return C.replace(p,"\\\\").replace(l,'\\"').replace(u,"\\n").replace(d,"\\r").replace(b,"\\u2028").replace(g,"\\u2029")}function le(C){return~C.indexOf(".")?"d":"f"}function K(C,z){var X="<"+(z.prefix||""),q=X+C.n+I++;return z.partials[q]={name:C.n,partials:{}},z.code+='t.b(t.rp("'+L(q)+'",c,p,"'+(C.indent||"")+'"));',q}a.codegen={"#":function(C,z){z.code+="if(t.s(t."+le(C.n)+'("'+L(C.n)+'",c,p,1),c,p,0,'+C.i+","+C.end+',"'+C.otag+" "+C.ctag+'")){t.rs(c,p,function(c,p,t){',a.walk(C.nodes,z),z.code+="});c.pop();}"},"^":function(C,z){z.code+="if(!t.s(t."+le(C.n)+'("'+L(C.n)+'",c,p,1),c,p,1,0,0,"")){',a.walk(C.nodes,z),z.code+="};"},">":K,"<":function(C,z){var X={partials:{},code:"",subs:{},inPartial:!0};a.walk(C.nodes,X);var q=z.partials[K(C,z)];q.subs=X.subs,q.partials=X.partials},$:function(C,z){var X={subs:{},code:"",partials:z.partials,prefix:C.n};a.walk(C.nodes,X),z.subs[C.n]=X.code,z.inPartial||(z.code+='t.sub("'+L(C.n)+'",c,p,i);')},"\n":function(C,z){z.code+=ne('"\\n"'+(C.last?"":" + i"))},_v:function(C,z){z.code+="t.b(t.v(t."+le(C.n)+'("'+L(C.n)+'",c,p,0)));'},_t:function(C,z){z.code+=ne('"'+L(C.text)+'"')},"{":P,"&":P};function P(C,z){z.code+="t.b(t.t(t."+le(C.n)+'("'+L(C.n)+'",c,p,0)));'}function ne(C){return"t.b("+C+");"}a.walk=function(C,z){for(var X,q=0,de=C.length;q<de;q++)X=a.codegen[C[q].tag],X&&X(C[q],z);return z},a.parse=function(C,z,X){return X=X||{},w(C,"",[],X.sectionTags||[])},a.cache={},a.cacheKey=function(C,z){return[C,!!z.asString,!!z.disableLambda,z.delimiters,!!z.modelGet].join("||")},a.compile=function(C,z){z=z||{};var X=a.cacheKey(C,z),q=this.cache[X];if(q){var de=q.partials;for(var he in de)delete de[he].instance;return q}return q=this.generate(this.parse(this.scan(C,z.delimiters),C,z),C,z),this.cache[X]=q}})(s)})(wu)),wu}var xu={},tg;function f_(){return tg||(tg=1,(function(s){(function(a){a.Template=function(w,T,A,x){w=w||{},this.r=w.code||this.r,this.c=A,this.options=x||{},this.text=T||"",this.partials=w.partials||{},this.subs=w.subs||{},this.buf=""},a.Template.prototype={r:function(w,T,A){return""},v,t:y,render:function(T,A,x){return this.ri([T],A||{},x)},ri:function(w,T,A){return this.r(w,T,A)},ep:function(w,T){var A=this.partials[w],x=T[A.name];if(A.instance&&A.base==x)return A.instance;if(typeof x=="string"){if(!this.c)throw new Error("No compiler available.");x=this.c.compile(x,this.options)}if(!x)return null;if(this.partials[w].base=x,A.subs){T.stackText||(T.stackText={});for(key in A.subs)T.stackText[key]||(T.stackText[key]=this.activeSub!==void 0&&T.stackText[this.activeSub]?T.stackText[this.activeSub]:this.text);x=l(x,A.subs,A.partials,this.stackSubs,this.stackPartials,T.stackText)}return this.partials[w].instance=x,x},rp:function(w,T,A,x){var k=this.ep(w,A);return k?k.ri(T,A,x):""},rs:function(w,T,A){var x=w[w.length-1];if(!_(x)){A(w,T,this);return}for(var k=0;k<x.length;k++)w.push(x[k]),A(w,T,this),w.pop()},s:function(w,T,A,x,k,I,L){var le;return _(w)&&w.length===0?!1:(typeof w=="function"&&(w=this.ms(w,T,A,x,k,I,L)),le=!!w,!x&&le&&T&&T.push(typeof w=="object"?w:T[T.length-1]),le)},d:function(w,T,A,x){var k,I=w.split("."),L=this.f(I[0],T,A,x),le=this.options.modelGet,K=null;if(w==="."&&_(T[T.length-2]))L=T[T.length-1];else for(var P=1;P<I.length;P++)k=r(I[P],L,le),k!==void 0?(K=L,L=k):L="";return x&&!L?!1:(!x&&typeof L=="function"&&(T.push(K),L=this.mv(L,T,A),T.pop()),L)},f:function(w,T,A,x){for(var k=!1,I=null,L=!1,le=this.options.modelGet,K=T.length-1;K>=0;K--)if(I=T[K],k=r(w,I,le),k!==void 0){L=!0;break}return L?(!x&&typeof k=="function"&&(k=this.mv(k,T,A)),k):x?!1:""},ls:function(w,T,A,x,k,I){var L=this.options.delimiters;return this.options.delimiters=I,this.b(this.ct(y(w.call(T,k,A)),T,x)),this.options.delimiters=L,!1},ct:function(w,T,A){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(w,this.options).render(T,A)},b:function(w){this.buf+=w},fl:function(){var w=this.buf;return this.buf="",w},ms:function(w,T,A,x,k,I,L){var le,K=T[T.length-1],P=w.call(K);return typeof P=="function"?x?!0:(le=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(P,K,T,A,le.substring(k,I),L)):P},mv:function(w,T,A){var x=T[T.length-1],k=w.call(x);return typeof k=="function"?this.ct(y(k.call(x)),x,A):k},sub:function(w,T,A,x){var k=this.subs[w];k&&(this.activeSub=w,k(T,A,this,x),this.activeSub=!1)}};function r(w,T,A){var x;return T&&typeof T=="object"&&(T[w]!==void 0?x=T[w]:A&&T.get&&typeof T.get=="function"&&(x=T.get(w))),x}function l(w,T,A,x,k,I){function L(){}L.prototype=w;function le(){}le.prototype=w.subs;var K,P=new L;P.subs=new le,P.subsText={},P.buf="",x=x||{},P.stackSubs=x,P.subsText=I;for(K in T)x[K]||(x[K]=T[K]);for(K in x)P.subs[K]=x[K];k=k||{},P.stackPartials=k;for(K in A)k[K]||(k[K]=A[K]);for(K in k)P.partials[K]=k[K];return P}var u=/&/g,d=/</g,p=/>/g,b=/\'/g,g=/\"/g,m=/[&<>\"\']/;function y(w){return String(w??"")}function v(w){return w=y(w),m.test(w)?w.replace(u,"&amp;").replace(d,"&lt;").replace(p,"&gt;").replace(b,"&#39;").replace(g,"&quot;"):w}var _=Array.isArray||function(w){return Object.prototype.toString.call(w)==="[object Array]"}})(s)})(xu)),xu}var Au,ng;function d_(){if(ng)return Au;ng=1;var s=u_();return s.Template=f_().Template,s.template=s.Template,Au=s,Au}var Pt=d_();const sn={};sn["file-summary-line"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<li class="d2h-file-list-line">'),l.b(`
60
- `+r),l.b(' <span class="d2h-file-name-wrapper">'),l.b(`
61
- `+r),l.b(l.rp("<fileIcon0",s,a," ")),l.b(' <a href="#'),l.b(l.v(l.f("fileHtmlId",s,a,0))),l.b('" class="d2h-file-name">'),l.b(l.v(l.f("fileName",s,a,0))),l.b("</a>"),l.b(`
62
- `+r),l.b(' <span class="d2h-file-stats">'),l.b(`
63
- `+r),l.b(' <span class="d2h-lines-added">'),l.b(l.v(l.f("addedLines",s,a,0))),l.b("</span>"),l.b(`
64
- `+r),l.b(' <span class="d2h-lines-deleted">'),l.b(l.v(l.f("deletedLines",s,a,0))),l.b("</span>"),l.b(`
65
- `+r),l.b(" </span>"),l.b(`
66
- `+r),l.b(" </span>"),l.b(`
67
- `+r),l.b("</li>"),l.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}});sn["file-summary-wrapper"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<div class="d2h-file-list-wrapper '),l.b(l.v(l.f("colorScheme",s,a,0))),l.b('">'),l.b(`
68
- `+r),l.b(' <div class="d2h-file-list-header">'),l.b(`
69
- `+r),l.b(' <span class="d2h-file-list-title">Files changed ('),l.b(l.v(l.f("filesNumber",s,a,0))),l.b(")</span>"),l.b(`
70
- `+r),l.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),l.b(`
71
- `+r),l.b(' <a class="d2h-file-switch d2h-show">show</a>'),l.b(`
72
- `+r),l.b(" </div>"),l.b(`
73
- `+r),l.b(' <ol class="d2h-file-list">'),l.b(`
74
- `+r),l.b(" "),l.b(l.t(l.f("files",s,a,0))),l.b(`
75
- `+r),l.b(" </ol>"),l.b(`
76
- `+r),l.b("</div>"),l.fl()},partials:{},subs:{}});sn["generic-block-header"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
77
- `+r),l.b(' <td class="'),l.b(l.v(l.f("lineClass",s,a,0))),l.b(" "),l.b(l.v(l.d("CSSLineClass.INFO",s,a,0))),l.b('"></td>'),l.b(`
78
- `+r),l.b(' <td class="'),l.b(l.v(l.d("CSSLineClass.INFO",s,a,0))),l.b('">'),l.b(`
79
- `+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,a,0))),l.b('">'),l.s(l.f("blockHeader",s,a,1),s,a,0,156,173,"{{ }}")&&(l.rs(s,a,function(u,d,p){p.b(p.t(p.f("blockHeader",u,d,0)))}),s.pop()),l.s(l.f("blockHeader",s,a,1),s,a,1,0,0,"")||l.b("&nbsp;"),l.b("</div>"),l.b(`
80
- `+r),l.b(" </td>"),l.b(`
81
- `+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});sn["generic-empty-diff"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
82
- `+r),l.b(' <td class="'),l.b(l.v(l.d("CSSLineClass.INFO",s,a,0))),l.b('">'),l.b(`
83
- `+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,a,0))),l.b('">'),l.b(`
84
- `+r),l.b(" File without changes"),l.b(`
85
- `+r),l.b(" </div>"),l.b(`
86
- `+r),l.b(" </td>"),l.b(`
87
- `+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});sn["generic-file-path"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-file-name-wrapper">'),l.b(`
88
- `+r),l.b(l.rp("<fileIcon0",s,a," ")),l.b(' <span class="d2h-file-name">'),l.b(l.v(l.f("fileDiffName",s,a,0))),l.b("</span>"),l.b(`
89
- `+r),l.b(l.rp("<fileTag1",s,a," ")),l.b("</span>"),l.b(`
90
- `+r),l.b('<label class="d2h-file-collapse">'),l.b(`
91
- `+r),l.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),l.b(`
92
- `+r),l.b(" Viewed"),l.b(`
93
- `+r),l.b("</label>"),l.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}});sn["generic-line"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
94
- `+r),l.b(' <td class="'),l.b(l.v(l.f("lineClass",s,a,0))),l.b(" "),l.b(l.v(l.f("type",s,a,0))),l.b('">'),l.b(`
95
- `+r),l.b(" "),l.b(l.t(l.f("lineNumber",s,a,0))),l.b(`
96
- `+r),l.b(" </td>"),l.b(`
97
- `+r),l.b(' <td class="'),l.b(l.v(l.f("type",s,a,0))),l.b('">'),l.b(`
98
- `+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,a,0))),l.b('">'),l.b(`
99
- `+r),l.s(l.f("prefix",s,a,1),s,a,0,162,238,"{{ }}")&&(l.rs(s,a,function(u,d,p){p.b(' <span class="d2h-code-line-prefix">'),p.b(p.t(p.f("prefix",u,d,0))),p.b("</span>"),p.b(`
100
- `+r)}),s.pop()),l.s(l.f("prefix",s,a,1),s,a,1,0,0,"")||(l.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),l.b(`
101
- `+r)),l.s(l.f("content",s,a,1),s,a,0,371,445,"{{ }}")&&(l.rs(s,a,function(u,d,p){p.b(' <span class="d2h-code-line-ctn">'),p.b(p.t(p.f("content",u,d,0))),p.b("</span>"),p.b(`
102
- `+r)}),s.pop()),l.s(l.f("content",s,a,1),s,a,1,0,0,"")||(l.b(' <span class="d2h-code-line-ctn"><br></span>'),l.b(`
103
- `+r)),l.b(" </div>"),l.b(`
104
- `+r),l.b(" </td>"),l.b(`
105
- `+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});sn["generic-wrapper"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<div class="d2h-wrapper '),l.b(l.v(l.f("colorScheme",s,a,0))),l.b('">'),l.b(`
106
- `+r),l.b(" "),l.b(l.t(l.f("content",s,a,0))),l.b(`
107
- `+r),l.b("</div>"),l.fl()},partials:{},subs:{}});sn["icon-file-added"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),l.b(`
108
- `+r),l.b(' width="14">'),l.b(`
109
- `+r),l.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>'),l.b(`
110
- `+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});sn["icon-file-changed"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),l.b(`
111
- `+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
112
- `+r),l.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>'),l.b(`
113
- `+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});sn["icon-file-deleted"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),l.b(`
114
- `+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
115
- `+r),l.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>'),l.b(`
116
- `+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});sn["icon-file-renamed"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),l.b(`
117
- `+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
118
- `+r),l.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>'),l.b(`
119
- `+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});sn["icon-file"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),l.b(`
120
- `+r),l.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>'),l.b(`
121
- `+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});sn["line-by-line-file-diff"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<div id="'),l.b(l.v(l.f("fileHtmlId",s,a,0))),l.b('" class="d2h-file-wrapper" data-lang="'),l.b(l.v(l.d("file.language",s,a,0))),l.b('">'),l.b(`
122
- `+r),l.b(' <div class="d2h-file-header">'),l.b(`
123
- `+r),l.b(" "),l.b(l.t(l.f("filePath",s,a,0))),l.b(`
124
- `+r),l.b(" </div>"),l.b(`
125
- `+r),l.b(' <div class="d2h-file-diff">'),l.b(`
126
- `+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
127
- `+r),l.b(' <table class="d2h-diff-table">'),l.b(`
128
- `+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
129
- `+r),l.b(" "),l.b(l.t(l.f("diffs",s,a,0))),l.b(`
130
- `+r),l.b(" </tbody>"),l.b(`
131
- `+r),l.b(" </table>"),l.b(`
132
- `+r),l.b(" </div>"),l.b(`
133
- `+r),l.b(" </div>"),l.b(`
134
- `+r),l.b("</div>"),l.fl()},partials:{},subs:{}});sn["line-by-line-numbers"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<div class="line-num1">'),l.b(l.v(l.f("oldNumber",s,a,0))),l.b("</div>"),l.b(`
135
- `+r),l.b('<div class="line-num2">'),l.b(l.v(l.f("newNumber",s,a,0))),l.b("</div>"),l.fl()},partials:{},subs:{}});sn["side-by-side-file-diff"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<div id="'),l.b(l.v(l.f("fileHtmlId",s,a,0))),l.b('" class="d2h-file-wrapper" data-lang="'),l.b(l.v(l.d("file.language",s,a,0))),l.b('">'),l.b(`
136
- `+r),l.b(' <div class="d2h-file-header">'),l.b(`
137
- `+r),l.b(" "),l.b(l.t(l.f("filePath",s,a,0))),l.b(`
138
- `+r),l.b(" </div>"),l.b(`
139
- `+r),l.b(' <div class="d2h-files-diff">'),l.b(`
140
- `+r),l.b(' <div class="d2h-file-side-diff">'),l.b(`
141
- `+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
142
- `+r),l.b(' <table class="d2h-diff-table">'),l.b(`
143
- `+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
144
- `+r),l.b(" "),l.b(l.t(l.d("diffs.left",s,a,0))),l.b(`
145
- `+r),l.b(" </tbody>"),l.b(`
146
- `+r),l.b(" </table>"),l.b(`
147
- `+r),l.b(" </div>"),l.b(`
148
- `+r),l.b(" </div>"),l.b(`
149
- `+r),l.b(' <div class="d2h-file-side-diff">'),l.b(`
150
- `+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
151
- `+r),l.b(' <table class="d2h-diff-table">'),l.b(`
152
- `+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
153
- `+r),l.b(" "),l.b(l.t(l.d("diffs.right",s,a,0))),l.b(`
154
- `+r),l.b(" </tbody>"),l.b(`
155
- `+r),l.b(" </table>"),l.b(`
156
- `+r),l.b(" </div>"),l.b(`
157
- `+r),l.b(" </div>"),l.b(`
158
- `+r),l.b(" </div>"),l.b(`
159
- `+r),l.b("</div>"),l.fl()},partials:{},subs:{}});sn["tag-file-added"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),l.fl()},partials:{},subs:{}});sn["tag-file-changed"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),l.fl()},partials:{},subs:{}});sn["tag-file-deleted"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),l.fl()},partials:{},subs:{}});sn["tag-file-renamed"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),l.fl()},partials:{},subs:{}});class h_{constructor({compiledTemplates:a={},rawTemplates:r={}}){const l=Object.entries(r).reduce((u,[d,p])=>{const b=Pt.compile(p,{asString:!1});return Object.assign(Object.assign({},u),{[d]:b})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},sn),a),l)}static compile(a){return Pt.compile(a,{asString:!1})}render(a,r,l,u,d){const p=this.templateKey(a,r);try{return this.preCompiledTemplates[p].render(l,u,d)}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 p_=Object.assign(Object.assign(Object.assign({},Mb),Db),{outputFormat:DE.LINE_BY_LINE,drawFileList:!0});function m_(s,a={}){const r=Object.assign(Object.assign({},p_),a),l=typeof s=="string"?GE(s,r):s,u=new h_(r),{colorScheme:d}=r,p={colorScheme:d},b=r.drawFileList?new n_(u,p).render(l):"",g=r.outputFormat==="side-by-side"?new c_(u,r).render(l):new l_(u,r).render(l);return b+g}var Ru=Ab();function ni(s){const a=[],r=s.split(`
160
- `);let l=null,u=null;const d=()=>{l&&u&&a.push({path:u,patch:l.join(`
161
- `)}),l=null,u=null};for(const p of r)if(p.startsWith("diff --git ")){d(),l=[p];const b=p.match(/^diff --git a\/(.+?) b\/(.+)$/);u=b?b[2]:p.slice(11)}else if(l&&(l.push(p),p.startsWith("--- a/")&&u==="/dev/null"&&(u=p.slice(6)),p==="+++ /dev/null")){const b=l.find(g=>g.startsWith("--- a/"));b&&(u=b.slice(6))}return d(),a}function g_(s,a){const r=new Set(a);return ni(s).filter(l=>r.has(l.path)).map(l=>l.patch).join(`
162
- `)}function b_(s){return y_(s)}function y_(s,a){const l=new Map;for(const{path:u,patch:d}of ni(s)){const p=new Map;let b=0,g=!1;const m=d.split(`
163
- `);for(let y=0;y<m.length;y++){const v=m[y],_=v.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(_){b=Number(_[2]),g=!0;continue}g&&(v===""&&y===m.length-1||v.startsWith("\\")||(v.startsWith("+")||v.startsWith(" ")||v==="")&&(p.set(b,v===""?"":v.slice(1)),b++))}l.set(u,p)}return l}function v_(s){const a=new Map;for(const[r,l]of b_(s))a.set(r,new Set(l.keys()));return a}function E_(s,a){const r=new Set(a.flatMap(l=>l.files));return ni(s).map(l=>l.path).filter(l=>!r.has(l))}function __(s){return new Map(ni(s).map(a=>[a.path,a.patch.split(`
164
- `).length]))}const Lb={blocker:"🚨",minor:"⚠️",nit:"🎨"};function ag(s,a){return a?`${Lb[a]} **${a}** — ${s}`:s}const S_=["inbox","awaiting","drafted"],xf=["requests","settled","sent","archived"],Ou={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 ig(s){return s.status==="awaiting"||s.status==="running"?"awaiting":s.status==="sent"?"sent":"drafted"}const Hs=s=>!!s.pr.state&&s.pr.state!=="OPEN",lg=["ready","awaiting","running","failed","reviewed","skipped","sent"];function jl(s){return[...s].sort((a,r)=>lg.indexOf(a.status)-lg.indexOf(r.status)||r.updatedAt.localeCompare(a.updatedAt))}const zb=["sent","reviewed","skipped"];function qs(s){return jl(s.filter(a=>!Hs(a)&&!zb.includes(a.status)))}function N_(s,a,r){return qs(s).filter(l=>l.key===a||!r.has(l.key))}function T_(s,a){if(!(a!=null&&a.enabled)||a.awaiting.length===0)return[];const r=new Set(qs(s).map(u=>u.id)),l=new Set(a.awaiting.map(u=>u.id));return jl(s.filter(u=>l.has(u.id)&&!r.has(u.id)))}const w_=(s,a)=>a.some(r=>r.id===s.id);function x_(s,a){const r=s.filter(u=>!Hs(u)),l=jl(r.filter(u=>!zb.includes(u.status)));return{inbox:l,awaiting:l.filter(u=>ig(u)==="awaiting"),drafted:l.filter(u=>ig(u)==="drafted"),requests:T_(s,a),settled:jl(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:jl(r.filter(u=>u.status==="sent")),archived:jl(s.filter(Hs))}}function A_(s,a){return xf.includes(s)&&a[s].length===0?"inbox":s}function Ub(s){var a,r;return s.reason==="own-review"?((a=s.review)==null?void 0:a.at)??s.at:s.reason==="own-reply"?((r=s.reply)==null?void 0:r.at)??s.at:s.at}const co={"own-review":{tag:"reviewed on GitHub",meta:s=>`you reviewed this on GitHub on ${s}`,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:s=>`you replied on GitHub on ${s}`,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:s=>`nobody was asking for this any more on ${s}`,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 R_(s){var a;return Hs(s)?((a=s.pr.state)==null?void 0:a.toLowerCase())??null:s.handoff?`handed to @${s.handoff.to}`:s.filed?co[s.filed.reason].tag:s.status==="reviewed"||s.status==="skipped"?s.status:null}function O_(s,a){var r;return a!=null&&a.enabled?((r=a.awaiting.find(l=>l.id===s.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."}},C_=s=>k_[s];function M_(s){const a=Pf[s.event]??s.event,r=new Date(s.at).toLocaleDateString();return{label:s.auto?"auto-sent a review":"you replied with a review",title:`${s.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 D_(s){const a=co[s.reason],r=new Date(Ub(s)).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 L_(s){const a=new Date(s.at).toLocaleDateString();return{label:`handed to @${s.to}`,title:s.withdrewYours?`You handed this to @${s.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 @${s.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 z_=(s,a)=>s.handoff?L_(s.handoff):s.sent?M_(s.sent):s.filed?D_(s.filed):C_(a);function U_(s){const a=s.length,r=a===1?"1 review request":`${a} review requests`,l=s.some(Hs)?"settled or archived":"settled";return`Nothing new in the inbox — but GitHub still has ${r} open on you. You ${l} ${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 jb(s,a=Date.now()){const r=Math.max(0,Math.round((a-new Date(s).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 j_={approve:"approve",comment:"comment",request_changes:"changes"},Pf={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function B_(s){return s.status==="running"?{label:"reviewing…",tone:"running"}:s.status==="awaiting"?{label:"review now",tone:"awaiting"}:s.status==="failed"?{label:"run failed",tone:"failed"}:s.sent?{label:`sent · ${Pf[s.sent.event]??s.sent.event}`,tone:"sent"}:s.verdict?{label:`${s.verdict.recommendation.replace("_"," ")} ${s.verdict.confidence}%`,tone:j_[s.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function ku(s){return s.trusted?"ran the code":s.withSource?"read the full source":"read the diff only"}function I_(s){if(s.commentCount===0)return"no comments drafted";const a=[`${s.commentCount} comment${s.commentCount===1?"":"s"} drafted`];return s.driftedCount&&a.push(`${s.driftedCount} off-diff`),s.gradedCount&&a.push(s.blockerCount?`${s.blockerCount} blocker${s.blockerCount===1?"":"s"}`:"no blockers"),a.join(", ")}function H_(s,a,r=Date.now()){var u,d;if(s.status==="running")return{reasoning:"Claude is reading the current head. This row updates itself when the run lands.",meta:[`started ${jb(s.updatedAt,r)} ago`,ku(s)]};if(s.status==="awaiting")return{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(s.status==="failed")return{reasoning:s.runError??"The review run failed before it produced a draft.",meta:["press r to try again"]};if(s.sent)return{reasoning:`Sent to GitHub as ${Pf[s.sent.event]??s.sent.event} on ${new Date(s.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue.`+(s.handoff?` GitHub asks @${s.handoff.to} for it now.`:""),meta:[...s.handoff?[`you handed this to @${s.handoff.to}`]:[],s.sent.auto?"auto-sent by the daemon":"sent by you",ku(s)]};const l=[ku(s)];if(s.handoff?l.unshift(`you handed this to @${s.handoff.to} on ${new Date(s.handoff.at).toLocaleDateString()}`):s.filed?l.unshift(co[s.filed.reason].meta(new Date(Ub(s.filed)).toLocaleDateString())):s.status==="reviewed"?l.unshift("you marked this reviewed"):s.status==="skipped"&&l.unshift("you skipped this"),s.costUsd!=null&&l.push(`≈$${s.costUsd.toFixed(2)} at API rates`),l.push(I_(s)),a!=null&&a.enabled&&s.status==="ready"&&((u=s.verdict)==null?void 0:u.recommendation)==="approve"&&l.push(s.verdict.confidence>=a.autoSendThreshold?`auto-send candidate at ${s.verdict.confidence}%`:`below the ${a.autoSendThreshold}% auto-send bar`),s.handoff){const p=s.commentCount>0||s.verdict!=null;return{reasoning:`GitHub asks @${s.handoff.to} for this review now${s.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:l}}return s.filed?{reasoning:co[s.filed.reason].reasoning,meta:l}:{reasoning:((d=s.verdict)==null?void 0:d.reasoning)??"This review has a draft but no verdict.",meta:l}}const q_="/favicon.svg",G_="/favicon-dot.svg",$_=s=>qs(s).length>0,Y_=s=>s?G_:q_;function F_(s){const a=Y_($_(s)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===a||r.setAttribute("href",a)}async function Zt(s,a){const r=await fetch(s,{...a,headers:a!=null&&a.body?{"Content-Type":"application/json"}:void 0});if(!r.ok){let l=`${(a==null?void 0:a.method)??"GET"} ${s}: ${r.status}`;try{const u=await r.json();u.error&&(l=u.error)}catch{}throw new Error(l)}return r.json()}const Zf=async()=>{const s=await Zt("/api/reviews");return F_(s),s},Bb=()=>Zt("/api/daemon"),sg=s=>Zt(`/api/reviews/${encodeURIComponent(s)}`),io=(s,a)=>Zt(`/api/reviews/${encodeURIComponent(s)}`,{method:"PATCH",body:JSON.stringify(a)}),K_=(s,a,r)=>Zt(`/api/reviews/${encodeURIComponent(s)}/comments/${a}`,{method:"PATCH",body:JSON.stringify(r)}),P_=(s,a)=>Zt(`/api/reviews/${encodeURIComponent(s)}/comments`,{method:"POST",body:JSON.stringify(a)}),Z_=(s,a)=>Zt(`/api/reviews/${encodeURIComponent(s)}/comments/${a}`,{method:"DELETE"}),X_=s=>Zt("/api/reviews",{method:"POST",body:JSON.stringify({input:s})}),Q_=s=>Zt(`/api/reviews/${encodeURIComponent(s)}/refresh`,{method:"POST"}),Ib=(s,a)=>Zt(`/api/reviews/${encodeURIComponent(s)}/rerun`+(a===void 0?"":`?source=${a?"1":"0"}`),{method:"POST"}),Af=(s,a)=>Zt(`/api/reviews/${encodeURIComponent(s)}/chat`,{method:"POST",body:JSON.stringify(a)}),V_=s=>Zt(`/api/reviews/${encodeURIComponent(s)}/chat/pending`,{method:"DELETE"}),W_=s=>Zt(`/api/reviews/${encodeURIComponent(s)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),Hb=(s,a)=>Zt(`/api/reviews/${encodeURIComponent(s)}/send-preview?event=${a}`),J_=(s,a)=>Zt(`/api/reviews/${encodeURIComponent(s)}/send`,{method:"POST",body:JSON.stringify({event:a,confirm:!0})}),e0=s=>Zt(`/api/reviews/${encodeURIComponent(s)}/raised`,{method:"POST"}),t0=s=>Zt(`/api/reviews/${encodeURIComponent(s)}/reviewers`),n0=(s,a)=>Zt(`/api/reviews/${encodeURIComponent(s)}/handoff`,{method:"POST",body:JSON.stringify({...a,confirm:!0})}),a0=s=>`/api/reviews/${encodeURIComponent(s)}/export`,i0=()=>Zt("/api/config"),Cu=(s,a=!1)=>Zt("/api/config/trust",{method:"POST",body:JSON.stringify({rule:s,remove:a})}),Mu=s=>Zt("/api/config/daemon",{method:"POST",body:JSON.stringify(s)}),qb="cerber.handoff.recent",Gb=5,l0=/^[A-Za-z0-9](?:[A-Za-z0-9_-]{0,37}[A-Za-z0-9])?$/,$b=s=>l0.test(s);function s0(s){try{const a=JSON.parse(s??"");return Array.isArray(a)?a.filter(r=>typeof r=="string"&&$b(r)).slice(0,Gb):[]}catch{return[]}}function Yb(){try{return s0(localStorage.getItem(qb))}catch{return[]}}function r0(s,a){const r=s.filter(l=>l.toLowerCase()!==a.toLowerCase());return[a,...r].slice(0,Gb)}function o0(s){const a=r0(Yb(),s);try{localStorage.setItem(qb,JSON.stringify(a))}catch{}return a}const Rf=s=>s.trim().replace(/^@/,"");function c0(s,a){const r=new Set,l=[];for(const u of[...a,...s]){const d=u.toLowerCase();r.has(d)||(r.add(d),l.push({login:u,recent:a.some(p=>p.toLowerCase()===d)}))}return l}function u0(s,a){const r=Rf(a).toLowerCase();if(!r)return s;const l=s.filter(p=>p.login.toLowerCase().includes(r)),u=p=>p.login.toLowerCase()===r,d=p=>p.login.toLowerCase().startsWith(r);return[...l.filter(u),...l.filter(p=>!u(p)&&d(p)),...l.filter(p=>!d(p))]}function Du(s){return s.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function Of(s){return s.nodeName.toLowerCase()}function rg(s){const a=[],r=(l,u)=>{for(let d=l.firstChild;d;d=d.nextSibling)d.nodeType===3&&d.nodeValue!==null?u+=d.nodeValue.length:d.nodeType===1&&(a.push({event:"start",offset:u,node:d}),u=r(d,u),Of(d).match(/br|hr|img|input/)||a.push({event:"stop",offset:u,node:d}));return u};return r(s,0),a}function f0(s,a,r){let l=0,u="";const d=[];function p(v){return v!==null&&(v==null?void 0:v.attributes)!==void 0}function b(){return!s.length||!a.length?s.length?s:a:s[0].offset!==a[0].offset?s[0].offset<a[0].offset?s:a:a[0].event==="start"?s:a}function g(v){if(!p(v))throw new Error("Node is not an Element");u+=`<${Of(v)} ${Array().map.call(v.attributes,_=>`${_.nodeName}="${Du(_.value).replace(/"/g,"&quot;")}"`).join(" ")}>`}function m(v){u+="</"+Of(v)+">"}function y(v){(v.event==="start"?g:m)(v.node)}for(;s.length||a.length;){let v=b();if(u+=Du(r.substring(l,v[0].offset)),l=v[0].offset,v===s){d.reverse().forEach(m);do y(v.splice(0,1)[0]),v=b();while(v===s&&v.length&&v[0].offset===l);d.reverse().forEach(g)}else v[0].event==="start"?d.push(v[0].node):d.pop(),y(v.splice(0,1)[0])}return u+Du(r.substr(l))}const d0={"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 h0(s){var a;return(a=d0[s])!==null&&a!==void 0?a:"plaintext"}var Lu,og;function p0(){if(og)return Lu;og=1;function s(O){return O instanceof Map?O.clear=O.delete=O.set=function(){throw new Error("map is read-only")}:O instanceof Set&&(O.add=O.clear=O.delete=function(){throw new Error("set is read-only")}),Object.freeze(O),Object.getOwnPropertyNames(O).forEach(ee=>{const me=O[ee],Me=typeof me;(Me==="object"||Me==="function")&&!Object.isFrozen(me)&&s(me)}),O}class a{constructor(ee){ee.data===void 0&&(ee.data={}),this.data=ee.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(O){return O.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function l(O,...ee){const me=Object.create(null);for(const Me in O)me[Me]=O[Me];return ee.forEach(function(Me){for(const Ke in Me)me[Ke]=Me[Ke]}),me}const u="</span>",d=O=>!!O.scope,p=(O,{prefix:ee})=>{if(O.startsWith("language:"))return O.replace("language:","language-");if(O.includes(".")){const me=O.split(".");return[`${ee}${me.shift()}`,...me.map((Me,Ke)=>`${Me}${"_".repeat(Ke+1)}`)].join(" ")}return`${ee}${O}`};class b{constructor(ee,me){this.buffer="",this.classPrefix=me.classPrefix,ee.walk(this)}addText(ee){this.buffer+=r(ee)}openNode(ee){if(!d(ee))return;const me=p(ee.scope,{prefix:this.classPrefix});this.span(me)}closeNode(ee){d(ee)&&(this.buffer+=u)}value(){return this.buffer}span(ee){this.buffer+=`<span class="${ee}">`}}const g=(O={})=>{const ee={children:[]};return Object.assign(ee,O),ee};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(ee){this.top.children.push(ee)}openNode(ee){const me=g({scope:ee});this.add(me),this.stack.push(me)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ee){return this.constructor._walk(ee,this.rootNode)}static _walk(ee,me){return typeof me=="string"?ee.addText(me):me.children&&(ee.openNode(me),me.children.forEach(Me=>this._walk(ee,Me)),ee.closeNode(me)),ee}static _collapse(ee){typeof ee!="string"&&ee.children&&(ee.children.every(me=>typeof me=="string")?ee.children=[ee.children.join("")]:ee.children.forEach(me=>{m._collapse(me)}))}}class y extends m{constructor(ee){super(),this.options=ee}addText(ee){ee!==""&&this.add(ee)}startScope(ee){this.openNode(ee)}endScope(){this.closeNode()}__addSublanguage(ee,me){const Me=ee.root;me&&(Me.scope=`language:${me}`),this.add(Me)}toHTML(){return new b(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function v(O){return O?typeof O=="string"?O:O.source:null}function _(O){return A("(?=",O,")")}function w(O){return A("(?:",O,")*")}function T(O){return A("(?:",O,")?")}function A(...O){return O.map(me=>v(me)).join("")}function x(O){const ee=O[O.length-1];return typeof ee=="object"&&ee.constructor===Object?(O.splice(O.length-1,1),ee):{}}function k(...O){return"("+(x(O).capture?"":"?:")+O.map(Me=>v(Me)).join("|")+")"}function I(O){return new RegExp(O.toString()+"|").exec("").length-1}function L(O,ee){const me=O&&O.exec(ee);return me&&me.index===0}const le=new RegExp(k(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function K(O,{joinWith:ee}){let me=0;return O.map(Me=>{me+=1;const Ke=me;let Qe=v(Me),Ne="";for(;Qe.length>0;){const Ee=le.exec(Qe);if(!Ee){Ne+=Qe;break}Ne+=Qe.substring(0,Ee.index),Qe=Qe.substring(Ee.index+Ee[0].length),Ee[0][0]==="\\"&&Ee[1]?Ne+="\\"+String(Number(Ee[1])+Ke):(Ne+=Ee[0],(Ee[0]==="("||/^\(\?[<']/.test(Ee[0]))&&me++)}return Ne}).map(Me=>`(${Me})`).join(ee)}const P=/\b\B/,ne="[a-zA-Z]\\w*",C="[a-zA-Z_]\\w*",z="\\b\\d+(\\.\\d+)?",X="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",q="\\b(0b[01]+)",de="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",he=(O={})=>{const ee=/^#![ ]*\//;return O.binary&&(O.begin=A(ee,/.*\b/,O.binary,/\b.*/)),l({scope:"meta",begin:ee,end:/$/,relevance:0,"on:begin":(me,Me)=>{me.index!==0&&Me.ignoreMatch()}},O)},_e={begin:"\\\\[\\s\\S]",relevance:0},pe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[_e]},j={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[_e]},ae={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/},ce=function(O,ee,me={}){const Me=l({scope:"comment",begin:O,end:ee,contains:[]},me);Me.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 Ke=k("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 Me.contains.push({begin:A(/[ ]+/,"(",Ke,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Me},ve=ce("//","$"),Se=ce("/\\*","\\*/"),S=ce("#","$"),D={scope:"number",begin:z,relevance:0},H={scope:"number",begin:X,relevance:0},ue={scope:"number",begin:q,relevance:0},W={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[_e,{begin:/\[/,end:/\]/,relevance:0,contains:[_e]}]},be={scope:"title",begin:ne,relevance:0},ge={scope:"title",begin:C,relevance:0},Le={begin:"\\.\\s*"+C,relevance:0};var $e=Object.freeze({__proto__:null,APOS_STRING_MODE:pe,BACKSLASH_ESCAPE:_e,BINARY_NUMBER_MODE:ue,BINARY_NUMBER_RE:q,COMMENT:ce,C_BLOCK_COMMENT_MODE:Se,C_LINE_COMMENT_MODE:ve,C_NUMBER_MODE:H,C_NUMBER_RE:X,END_SAME_AS_BEGIN:function(O){return Object.assign(O,{"on:begin":(ee,me)=>{me.data._beginMatch=ee[1]},"on:end":(ee,me)=>{me.data._beginMatch!==ee[1]&&me.ignoreMatch()}})},HASH_COMMENT_MODE:S,IDENT_RE:ne,MATCH_NOTHING_RE:P,METHOD_GUARD:Le,NUMBER_MODE:D,NUMBER_RE:z,PHRASAL_WORDS_MODE:ae,QUOTE_STRING_MODE:j,REGEXP_MODE:W,RE_STARTERS_RE:de,SHEBANG:he,TITLE_MODE:be,UNDERSCORE_IDENT_RE:C,UNDERSCORE_TITLE_MODE:ge});function at(O,ee){O.input[O.index-1]==="."&&ee.ignoreMatch()}function Ce(O,ee){O.className!==void 0&&(O.scope=O.className,delete O.className)}function We(O,ee){ee&&O.beginKeywords&&(O.begin="\\b("+O.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",O.__beforeBegin=at,O.keywords=O.keywords||O.beginKeywords,delete O.beginKeywords,O.relevance===void 0&&(O.relevance=0))}function Ge(O,ee){Array.isArray(O.illegal)&&(O.illegal=k(...O.illegal))}function Xt(O,ee){if(O.match){if(O.begin||O.end)throw new Error("begin & end are not supported with match");O.begin=O.match,delete O.match}}function He(O,ee){O.relevance===void 0&&(O.relevance=1)}const ct=(O,ee)=>{if(!O.beforeMatch)return;if(O.starts)throw new Error("beforeMatch cannot be used with starts");const me=Object.assign({},O);Object.keys(O).forEach(Me=>{delete O[Me]}),O.keywords=me.keywords,O.begin=A(me.beforeMatch,_(me.begin)),O.starts={relevance:0,contains:[Object.assign(me,{endsParent:!0})]},O.relevance=0,delete me.beforeMatch},wn=["of","and","for","in","not","or","if","then","parent","list","value"],Qt="keyword";function Dt(O,ee,me=Qt){const Me=Object.create(null);return typeof O=="string"?Ke(me,O.split(" ")):Array.isArray(O)?Ke(me,O):Object.keys(O).forEach(function(Qe){Object.assign(Me,Dt(O[Qe],ee,Qe))}),Me;function Ke(Qe,Ne){ee&&(Ne=Ne.map(Ee=>Ee.toLowerCase())),Ne.forEach(function(Ee){const Ue=Ee.split("|");Me[Ue[0]]=[Qe,Ln(Ue[0],Ue[1])]})}}function Ln(O,ee){return ee?Number(ee):sa(O)?0:1}function sa(O){return wn.includes(O.toLowerCase())}const Qn={},st=O=>{console.error(O)},qt=(O,...ee)=>{console.log(`WARN: ${O}`,...ee)},ut=(O,ee)=>{Qn[`${O}/${ee}`]||(console.log(`Deprecated as of ${O}. ${ee}`),Qn[`${O}/${ee}`]=!0)},cn=new Error;function xn(O,ee,{key:me}){let Me=0;const Ke=O[me],Qe={},Ne={};for(let Ee=1;Ee<=ee.length;Ee++)Ne[Ee+Me]=Ke[Ee],Qe[Ee+Me]=!0,Me+=I(ee[Ee-1]);O[me]=Ne,O[me]._emit=Qe,O[me]._multi=!0}function An(O){if(Array.isArray(O.begin)){if(O.skip||O.excludeBegin||O.returnBegin)throw st("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),cn;if(typeof O.beginScope!="object"||O.beginScope===null)throw st("beginScope must be object"),cn;xn(O,O.begin,{key:"beginScope"}),O.begin=K(O.begin,{joinWith:""})}}function zn(O){if(Array.isArray(O.end)){if(O.skip||O.excludeEnd||O.returnEnd)throw st("skip, excludeEnd, returnEnd not compatible with endScope: {}"),cn;if(typeof O.endScope!="object"||O.endScope===null)throw st("endScope must be object"),cn;xn(O,O.end,{key:"endScope"}),O.end=K(O.end,{joinWith:""})}}function Un(O){O.scope&&typeof O.scope=="object"&&O.scope!==null&&(O.beginScope=O.scope,delete O.scope)}function un(O){Un(O),typeof O.beginScope=="string"&&(O.beginScope={_wrap:O.beginScope}),typeof O.endScope=="string"&&(O.endScope={_wrap:O.endScope}),An(O),zn(O)}function yn(O){function ee(Ne,Ee){return new RegExp(v(Ne),"m"+(O.case_insensitive?"i":"")+(O.unicodeRegex?"u":"")+(Ee?"g":""))}class me{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Ee,Ue){Ue.position=this.position++,this.matchIndexes[this.matchAt]=Ue,this.regexes.push([Ue,Ee]),this.matchAt+=I(Ee)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Ee=this.regexes.map(Ue=>Ue[1]);this.matcherRe=ee(K(Ee,{joinWith:"|"}),!0),this.lastIndex=0}exec(Ee){this.matcherRe.lastIndex=this.lastIndex;const Ue=this.matcherRe.exec(Ee);if(!Ue)return null;const Rt=Ue.findIndex((In,Vn)=>Vn>0&&In!==void 0),bt=this.matchIndexes[Rt];return Ue.splice(0,Rt),Object.assign(Ue,bt)}}class Me{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Ee){if(this.multiRegexes[Ee])return this.multiRegexes[Ee];const Ue=new me;return this.rules.slice(Ee).forEach(([Rt,bt])=>Ue.addRule(Rt,bt)),Ue.compile(),this.multiRegexes[Ee]=Ue,Ue}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Ee,Ue){this.rules.push([Ee,Ue]),Ue.type==="begin"&&this.count++}exec(Ee){const Ue=this.getMatcher(this.regexIndex);Ue.lastIndex=this.lastIndex;let Rt=Ue.exec(Ee);if(this.resumingScanAtSamePosition()&&!(Rt&&Rt.index===this.lastIndex)){const bt=this.getMatcher(0);bt.lastIndex=this.lastIndex+1,Rt=bt.exec(Ee)}return Rt&&(this.regexIndex+=Rt.position+1,this.regexIndex===this.count&&this.considerAll()),Rt}}function Ke(Ne){const Ee=new Me;return Ne.contains.forEach(Ue=>Ee.addRule(Ue.begin,{rule:Ue,type:"begin"})),Ne.terminatorEnd&&Ee.addRule(Ne.terminatorEnd,{type:"end"}),Ne.illegal&&Ee.addRule(Ne.illegal,{type:"illegal"}),Ee}function Qe(Ne,Ee){const Ue=Ne;if(Ne.isCompiled)return Ue;[Ce,Xt,un,ct].forEach(bt=>bt(Ne,Ee)),O.compilerExtensions.forEach(bt=>bt(Ne,Ee)),Ne.__beforeBegin=null,[We,Ge,He].forEach(bt=>bt(Ne,Ee)),Ne.isCompiled=!0;let Rt=null;return typeof Ne.keywords=="object"&&Ne.keywords.$pattern&&(Ne.keywords=Object.assign({},Ne.keywords),Rt=Ne.keywords.$pattern,delete Ne.keywords.$pattern),Rt=Rt||/\w+/,Ne.keywords&&(Ne.keywords=Dt(Ne.keywords,O.case_insensitive)),Ue.keywordPatternRe=ee(Rt,!0),Ee&&(Ne.begin||(Ne.begin=/\B|\b/),Ue.beginRe=ee(Ue.begin),!Ne.end&&!Ne.endsWithParent&&(Ne.end=/\B|\b/),Ne.end&&(Ue.endRe=ee(Ue.end)),Ue.terminatorEnd=v(Ue.end)||"",Ne.endsWithParent&&Ee.terminatorEnd&&(Ue.terminatorEnd+=(Ne.end?"|":"")+Ee.terminatorEnd)),Ne.illegal&&(Ue.illegalRe=ee(Ne.illegal)),Ne.contains||(Ne.contains=[]),Ne.contains=[].concat(...Ne.contains.map(function(bt){return fn(bt==="self"?Ne:bt)})),Ne.contains.forEach(function(bt){Qe(bt,Ue)}),Ne.starts&&Qe(Ne.starts,Ee),Ue.matcher=Ke(Ue),Ue}if(O.compilerExtensions||(O.compilerExtensions=[]),O.contains&&O.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return O.classNameAliases=l(O.classNameAliases||{}),Qe(O)}function Ut(O){return O?O.endsWithParent||Ut(O.starts):!1}function fn(O){return O.variants&&!O.cachedVariants&&(O.cachedVariants=O.variants.map(function(ee){return l(O,{variants:null},ee)})),O.cachedVariants?O.cachedVariants:Ut(O)?l(O,{starts:O.starts?l(O.starts):null}):Object.isFrozen(O)?l(O):O}var jt="11.12.0";class ga extends Error{constructor(ee,me){super(ee),this.name="HTMLInjectionError",this.html=me}}const jn=r,Bn=l,Ie=Symbol("nomatch"),dn=7,hn=function(O){const ee=Object.create(null),me=Object.create(null),Me=[];let Ke=!0;const Qe="Could not find the language '{}', did you forget to load/include a language module?",Ne={disableAutodetect:!0,name:"Plain text",contains:[]};let Ee={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:y};function Ue(fe){return Ee.noHighlightRe.test(fe)}function Rt(fe){let Oe=fe.className+" ";Oe+=fe.parentNode?fe.parentNode.className:"";const Pe=Ee.languageDetectRe.exec(Oe);if(Pe){const ft=St(Pe[1]);return ft||(qt(Qe.replace("{}",Pe[1])),qt("Falling back to no-highlight mode for this block.",fe)),ft?Pe[1]:"no-highlight"}return Oe.split(/\s+/).find(ft=>Ue(ft)||St(ft))}function bt(fe,Oe,Pe){let ft="",kt="";typeof Oe=="object"?(ft=fe,Pe=Oe.ignoreIllegals,kt=Oe.language):(ut("10.7.0","highlight(lang, code, ...args) has been deprecated."),ut("10.7.0",`Please use highlight(code, options) instead.
165
- https://github.com/highlightjs/highlight.js/issues/2277`),kt=fe,ft=Oe),Pe===void 0&&(Pe=!0);const Vt={code:ft,language:kt};Hn("before:highlight",Vt);const pn=Vt.result?Vt.result:In(Vt.language,Vt.code,Pe);return pn.code=Vt.code,Hn("after:highlight",pn),pn}function In(fe,Oe,Pe,ft){const kt=Object.create(null);function Vt(oe,ye){return oe.keywords[ye]}function pn(){if(!V.keywords){U.addText(J);return}let oe=0;V.keywordPatternRe.lastIndex=0;let ye=V.keywordPatternRe.exec(J),ke="";for(;ye;){ke+=J.substring(oe,ye.index);const Xe=Wt.case_insensitive?ye[0].toLowerCase():ye[0],Ve=Vt(V,Xe);if(Ve){const[ra,Gl]=Ve;if(U.addText(ke),ke="",kt[Xe]=(kt[Xe]||0)+1,kt[Xe]<=dn&&(Te+=Gl),ra.startsWith("_"))ke+=ye[0];else{const Fs=Wt.classNameAliases[ra]||ra;Lt(ye[0],Fs)}}else ke+=ye[0];oe=V.keywordPatternRe.lastIndex,ye=V.keywordPatternRe.exec(J)}ke+=J.substring(oe),U.addText(ke)}function Yt(){if(J==="")return;let oe=null;if(typeof V.subLanguage=="string"){if(!ee[V.subLanguage]){U.addText(J);return}oe=In(V.subLanguage,J,!0,N[V.subLanguage]),N[V.subLanguage]=oe._top}else oe=ba(J,V.subLanguage.length?V.subLanguage:null);V.relevance>0&&(Te+=oe.relevance),U.__addSublanguage(oe._emitter,oe.language)}function dt(){V.subLanguage!=null?Yt():pn(),J=""}function Lt(oe,ye){oe!==""&&(U.startScope(ye),U.addText(oe),U.endScope())}function nl(oe,ye){let ke=1;const Xe=ye.length-1;for(;ke<=Xe;){if(!oe._emit[ke]){ke++;continue}const Ve=Wt.classNameAliases[oe[ke]]||oe[ke],ra=ye[ke];Ve?Lt(ra,Ve):(J=ra,pn(),J=""),ke++}}function ii(oe,ye){return oe.scope&&typeof oe.scope=="string"&&U.openNode(Wt.classNameAliases[oe.scope]||oe.scope),oe.beginScope&&(oe.beginScope._wrap?(Lt(J,Wt.classNameAliases[oe.beginScope._wrap]||oe.beginScope._wrap),J=""):oe.beginScope._multi&&(nl(oe.beginScope,ye),J="")),V=Object.create(oe,{parent:{value:V}}),V}function li(oe,ye,ke){let Xe=L(oe.endRe,ke);if(Xe){if(oe["on:end"]){const Ve=new a(oe);oe["on:end"](ye,Ve),Ve.isMatchIgnored&&(Xe=!1)}if(Xe){for(;oe.endsParent&&oe.parent;)oe=oe.parent;return oe}}if(oe.endsWithParent)return li(oe.parent,ye,ke)}function ja(oe){return V.matcher.regexIndex===0?(J+=oe[0],1):(Je=!0,0)}function al(oe){const ye=oe[0],ke=oe.rule,Xe=new a(ke),Ve=[ke.__beforeBegin,ke["on:begin"]];for(const ra of Ve)if(ra&&(ra(oe,Xe),Xe.isMatchIgnored))return ja(ye);return ke.skip?J+=ye:(ke.excludeBegin&&(J+=ye),dt(),!ke.returnBegin&&!ke.excludeBegin&&(J=ye)),ii(ke,oe),ke.returnBegin?0:ye.length}function kn(oe){const ye=oe[0],ke=Oe.substring(oe.index),Xe=li(V,oe,ke);if(!Xe)return Ie;const Ve=V;V.endScope&&V.endScope._wrap?(dt(),Lt(ye,V.endScope._wrap)):V.endScope&&V.endScope._multi?(dt(),nl(V.endScope,oe)):Ve.skip?J+=ye:(Ve.returnEnd||Ve.excludeEnd||(J+=ye),dt(),Ve.excludeEnd&&(J=ye));do V.scope&&U.closeNode(),!V.skip&&!V.subLanguage&&(Te+=V.relevance),V=V.parent;while(V!==Xe.parent);return Xe.starts&&ii(Xe.starts,oe),Ve.returnEnd?0:ye.length}function si(){const oe=[];for(let ye=V;ye!==Wt;ye=ye.parent)ye.scope&&oe.unshift(ye.scope);oe.forEach(ye=>U.openNode(ye))}let Ba={};function ri(oe,ye){const ke=ye&&ye[0];if(J+=oe,ke==null)return dt(),0;if(Ba.type==="begin"&&ye.type==="end"&&Ba.index===ye.index&&ke===""){if(J+=Oe.slice(ye.index,ye.index+1),!Ke){const Xe=new Error(`0 width match regex (${fe})`);throw Xe.languageName=fe,Xe.badRule=Ba.rule,Xe}return 1}if(Ba=ye,ye.type==="begin")return al(ye);if(ye.type==="illegal"&&!Pe){const Xe=new Error('Illegal lexeme "'+ke+'" for mode "'+(V.scope||"<unnamed>")+'"');throw Xe.mode=V,Xe}else if(ye.type==="end"){const Xe=kn(ye);if(Xe!==Ie)return Xe}if(ye.type==="illegal"&&ke==="")return ye.index===Oe.length||(J+=`
166
- `),1;if(Be>1e5&&Be>ye.index*3)throw new Error("potential infinite loop, way more iterations than matches");return J+=ke,ke.length}const Wt=St(fe);if(!Wt)throw st(Qe.replace("{}",fe)),new Error('Unknown language: "'+fe+'"');const Ia=yn(Wt);let Aa="",V=ft||Ia;const N={},U=new Ee.__emitter(Ee);si();let J="",Te=0,Ae=0,Be=0,Je=!1;try{if(Wt.__emitTokens)Wt.__emitTokens(Oe,U);else{for(V.matcher.considerAll();;){Be++,Je?Je=!1:V.matcher.considerAll(),V.matcher.lastIndex=Ae;const oe=V.matcher.exec(Oe);if(!oe)break;const ye=Oe.substring(Ae,oe.index),ke=ri(ye,oe);Ae=oe.index+ke}ri(Oe.substring(Ae))}return U.finalize(),Aa=U.toHTML(),{language:fe,value:Aa,relevance:Te,illegal:!1,_emitter:U,_top:V}}catch(oe){if(oe.message&&oe.message.includes("Illegal"))return{language:fe,value:jn(Oe),illegal:!0,relevance:0,_illegalBy:{message:oe.message,index:Ae,context:Oe.slice(Ae-100,Ae+100),mode:oe.mode,resultSoFar:Aa},_emitter:U};if(Ke)return{language:fe,value:jn(Oe),illegal:!1,relevance:0,errorRaised:oe,_emitter:U,_top:V};throw oe}}function Vn(fe){const Oe={value:jn(fe),illegal:!1,relevance:0,_top:Ne,_emitter:new Ee.__emitter(Ee)};return Oe._emitter.addText(fe),Oe}function ba(fe,Oe){Oe=Oe||Ee.languages||Object.keys(ee);const Pe=Vn(fe),ft=Oe.filter(St).filter(wa).map(dt=>In(dt,fe,!1));ft.unshift(Pe);const kt=ft.sort((dt,Lt)=>{if(dt.relevance!==Lt.relevance)return Lt.relevance-dt.relevance;if(dt.language&&Lt.language){if(St(dt.language).supersetOf===Lt.language)return 1;if(St(Lt.language).supersetOf===dt.language)return-1}return 0}),[Vt,pn]=kt,Yt=Vt;return Yt.secondBest=pn,Yt}function rn(fe,Oe,Pe){const ft=Oe&&me[Oe]||Pe;fe.classList.add("hljs"),fe.classList.add(`language-${ft}`)}function Ot(fe){let Oe=null;const Pe=Rt(fe);if(Ue(Pe))return;if(Hn("before:highlightElement",{el:fe,language:Pe}),fe.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",fe);return}if(fe.children.length>0&&(Ee.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(fe)),Ee.throwUnescapedHTML))throw new ga("One of your code blocks includes unescaped HTML.",fe.innerHTML);Oe=fe;const ft=Oe.textContent,kt=Pe?bt(ft,{language:Pe,ignoreIllegals:!0}):ba(ft);fe.innerHTML=kt.value,fe.dataset.highlighted="yes",rn(fe,Pe,kt.language),fe.result={language:kt.language,re:kt.relevance,relevance:kt.relevance},kt.secondBest&&(fe.secondBest={language:kt.secondBest.language,relevance:kt.secondBest.relevance}),Hn("after:highlightElement",{el:fe,result:kt,text:ft})}function Y(fe){Ee=Bn(Ee,fe)}const re=()=>{Bt(),ut("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function we(){Bt(),ut("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let mt=!1;function Bt(){function fe(){Bt()}if(document.readyState==="loading"){mt||window.addEventListener("DOMContentLoaded",fe,!1),mt=!0;return}document.querySelectorAll(Ee.cssSelector).forEach(Ot)}function Rn(fe,Oe){let Pe=null;try{Pe=Oe(O)}catch(ft){if(st("Language definition for '{}' could not be registered.".replace("{}",fe)),Ke)st(ft);else throw ft;Pe=Ne}Pe.name||(Pe.name=fe),ee[fe]=Pe,Pe.rawDefinition=Oe.bind(null,O),Pe.aliases&&On(Pe.aliases,{languageName:fe})}function $t(fe){delete ee[fe];for(const Oe of Object.keys(me))me[Oe]===fe&&delete me[Oe]}function $n(){return Object.keys(ee)}function St(fe){return fe=(fe||"").toLowerCase(),ee[fe]||ee[me[fe]]}function On(fe,{languageName:Oe}){typeof fe=="string"&&(fe=[fe]),fe.forEach(Pe=>{me[Pe.toLowerCase()]=Oe})}function wa(fe){const Oe=St(fe);return Oe&&!Oe.disableAutodetect}function xa(fe){fe["before:highlightBlock"]&&!fe["before:highlightElement"]&&(fe["before:highlightElement"]=Oe=>{fe["before:highlightBlock"](Object.assign({block:Oe.el},Oe))}),fe["after:highlightBlock"]&&!fe["after:highlightElement"]&&(fe["after:highlightElement"]=Oe=>{fe["after:highlightBlock"](Object.assign({block:Oe.el},Oe))})}function vt(fe){xa(fe),Me.push(fe)}function Ua(fe){const Oe=Me.indexOf(fe);Oe!==-1&&Me.splice(Oe,1)}function Hn(fe,Oe){const Pe=fe;Me.forEach(function(ft){ft[Pe]&&ft[Pe](Oe)})}function ya(fe){return ut("10.7.0","highlightBlock will be removed entirely in v12.0"),ut("10.7.0","Please use highlightElement now."),Ot(fe)}Object.assign(O,{highlight:bt,highlightAuto:ba,highlightAll:Bt,highlightElement:Ot,highlightBlock:ya,configure:Y,initHighlighting:re,initHighlightingOnLoad:we,registerLanguage:Rn,unregisterLanguage:$t,listLanguages:$n,getLanguage:St,registerAliases:On,autoDetection:wa,inherit:Bn,addPlugin:vt,removePlugin:Ua}),O.debugMode=function(){Ke=!1},O.safeMode=function(){Ke=!0},O.versionString=jt,O.regex={concat:A,lookahead:_,either:k,optional:T,anyNumberOfTimes:w};for(const fe in $e)typeof $e[fe]=="object"&&s($e[fe]);return Object.assign(O,$e),O},Gt=hn({});return Gt.newInstance=()=>hn({}),Lu=Gt,Gt.HighlightJS=Gt,Gt.default=Gt,Lu}var zu,cg;function m0(){if(cg)return zu;cg=1;function s(a){const r=a.regex,l=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,d={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/}]},b=a.inherit(p,{begin:/\(/,end:/\)/}),g=a.inherit(a.APOS_STRING_MODE,{className:"string"}),m=a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),y={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:[d]},{begin:/'/,end:/'/,contains:[d]},{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,b,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[p,b,m,g]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},d,{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:[y],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[y],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(l,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:l,relevance:0,starts:y}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(l,/>/))),contains:[{className:"name",begin:l,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return zu=s,zu}var Uu,ug;function g0(){if(ug)return Uu;ug=1;function s(a){const r=a.regex,l={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[l]}]};Object.assign(l,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const d={className:"subst",begin:/\$\(/,end:/\)/,contains:[a.BACKSLASH_ESCAPE]},p=a.inherit(a.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),b={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,l,d]};d.contains.push(g);const m={match:/\\"/},y={className:"string",begin:/'/,end:/'/},v={match:/\\'/},_={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},a.NUMBER_MODE,l]},w=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],T=a.SHEBANG({binary:`(${w.join("|")})`,relevance:10}),A={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[a.inherit(a.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},x=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],k=["true","false"],I={match:/(\/[a-z._-]+)+/},L=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],le=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],K=["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"],P=["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:x,literal:k,built_in:[...L,...le,"set","shopt",...K,...P]},contains:[T,a.SHEBANG(),A,_,p,b,I,g,m,y,v,l]}}return Uu=s,Uu}var ju,fg;function b0(){if(fg)return ju;fg=1;function s(a){const r=a.regex,l=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",b="("+u+"|"+r.optional(d)+"[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})"/})]},_={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},w={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},v,{scope:"string",begin:/<.*?>/},l,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 elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(v,{className:"string"}),l,a.C_BLOCK_COMMENT_MODE]},A=[w,T],x={className:"title",begin:r.optional(d)+a.IDENT_RE,relevance:0},k=r.optional(d)+a.IDENT_RE+"\\s*\\(",I=12,K={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"},P=[...A,m,l,a.C_BLOCK_COMMENT_MODE,_,v],ne={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:K,contains:P.concat([{begin:/\(/,end:/\)/,keywords:K,contains:P.concat(["self"]),relevance:0}]),relevance:0},C={begin:"("+b+"[\\*&\\s]+){1,"+I+"}"+k,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:K,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:K,relevance:0},{begin:k,returnBegin:!0,contains:[a.inherit(x,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:K,relevance:0,contains:[l,a.C_BLOCK_COMMENT_MODE,v,_,m,{begin:/\(/,end:/\)/,keywords:K,relevance:0,contains:["self",l,a.C_BLOCK_COMMENT_MODE,v,_,m]}]},m,l,a.C_BLOCK_COMMENT_MODE,...A]};return{name:"C",aliases:["h"],keywords:K,disableAutodetect:!0,illegal:"</",contains:[].concat(ne,C,P,[...A,{begin:a.IDENT_RE+"::",keywords:K},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},a.TITLE_MODE]}]),exports:{preprocessor:T,strings:v,keywords:K}}}return ju=s,ju}var Bu,dg;function y0(){if(dg)return Bu;dg=1;function s(a){const r=a.regex,l=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",b="(?!struct)("+u+"|"+r.optional(d)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},y={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},_={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},y,{scope:"string",begin:/<.*?>/},l,a.C_BLOCK_COMMENT_MODE]},w={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(y,{className:"string"}),l,a.C_BLOCK_COMMENT_MODE]},T=[_,w],A={className:"title",begin:r.optional(d)+a.IDENT_RE,relevance:0},x=r.optional(d)+a.IDENT_RE+"\\s*\\(",k=12,I=["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"],L=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],le=["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"],K=["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"],C={type:L,keyword:I,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:le},z={className:"function.dispatch",relevance:0,keywords:{_hint:K},begin:r.concat(/\b/,`(?!${I.join("|")})`,a.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},X=[z,...T,g,l,a.C_BLOCK_COMMENT_MODE,v,y],q={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:X.concat([{begin:/\(/,end:/\)/,keywords:C,contains:X.concat(["self"]),relevance:0}]),relevance:0},de={className:"function",begin:"("+b+"[\\*&\\s]+){1,"+k+"}"+x,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:C,relevance:0},{begin:x,returnBegin:!0,contains:[A],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[y,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[l,a.C_BLOCK_COMMENT_MODE,y,v,g,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",l,a.C_BLOCK_COMMENT_MODE,y,v,g]}]},g,l,a.C_BLOCK_COMMENT_MODE,...T]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(q,de,z,X,[...T,{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:C,contains:["self",g]},{begin:a.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Bu=s,Bu}var Iu,hg;function v0(){if(hg)return Iu;hg=1;function s(a){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],l=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],u=["default","false","null","true"],d=["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"],b={keyword:d.concat(p),built_in:r,literal:u},g=a.inherit(a.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m="\\d(_*\\d)*",y="([uU][lL]?|[lL][uU]?)?",_={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+y},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+y},{begin:"(-?)(\\b"+m+"(\\.("+m+")?)?|\\."+m+")([eE][-+]?"+m+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},w={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},T={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},A=a.inherit(T,{illegal:/\n/}),x={className:"subst",begin:/\{/,end:/\}/,keywords:b},k=a.inherit(x,{illegal:/\n/}),I={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},a.BACKSLASH_ESCAPE,k]},L={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]},le=a.inherit(L,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},k]});x.contains=[L,I,T,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,_,a.C_BLOCK_COMMENT_MODE],k.contains=[le,I,A,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,_,a.inherit(a.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const K={variants:[w,L,I,T,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},P={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},ne=a.IDENT_RE+"(<"+a.IDENT_RE+"(\\s*,\\s*"+a.IDENT_RE+")*>)?(\\[\\])?",C={begin:"@"+a.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:b,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"}},K,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,P,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,P,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:"("+ne+"\\s+)+"+a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:b,contains:[{beginKeywords:l.join(" "),relevance:0},{begin:a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[a.TITLE_MODE,P],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,relevance:0,contains:[K,_,a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},C]}}return Iu=s,Iu}var Hu,pg;function E0(){if(pg)return Hu;pg=1;const s=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"],l=[...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(),d=["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(),b=["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 y=m.regex,v=s(m),_={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},w="and or not only",T=/@-?\w[\w]*(-\w+)*/,A="[a-zA-Z-][a-zA-Z0-9_-]*",x=[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,_,v.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+A,relevance:0},v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+d.join("|")+")"},{begin:":(:)?("+p.join("|")+")"}]},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+b.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[v.BLOCK_COMMENT,v.HEXCOLOR,v.IMPORTANT,v.CSS_NUMBER_MODE,v.UNICODE_RANGE,...x,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...x,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},v.FUNCTION_DISPATCH]},{begin:y.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:T},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:w,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...x,v.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b"}]}}return Hu=g,Hu}var qu,mg;function _0(){if(mg)return qu;mg=1;function s(a){const r=a.regex,l={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},u={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},d={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},b={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}]},y={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}]},_=a.inherit(y,{contains:[]}),w=a.inherit(v,{contains:[]});y.contains.push(w),v.contains.push(_);let T=[l,m];return[y,v,_,w].forEach(I=>{I.contains=I.contains.concat(T)}),T=T.concat(y,v),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:T},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:T}]}]},l,p,u,y,v,{className:"quote",begin:"^>\\s+",contains:T,end:"$"},d,m,b,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return qu=s,qu}var Gu,gg;function S0(){if(gg)return Gu;gg=1;function s(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 Gu=s,Gu}var $u,bg;function N0(){if(bg)return $u;bg=1;function s(a){const r=a.regex,l="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",u=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),d=r.concat(u,/(::\w+)*/),b={"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:">"},y=[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:b},_={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]})]}]},w="[1-9](_?[0-9])*|0",T="[0-9](_?[0-9])*",A={className:"number",relevance:0,variants:[{begin:`\\b(${w})(\\.(${T}))?([eE][+-]?(${T})|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"}]},x={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:b}]},ne=[_,{variants:[{match:[/class\s+/,d,/\s+<\s+/,d]},{match:[/\b(class|module)\s+/,d]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:b},{match:[/(include|extend)\s+/,d],scope:{2:"title.class"},keywords:b},{relevance:0,match:[d,/\.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+/,l],scope:{1:"keyword",3:"title.function"},contains:[x]},{begin:"::"},{className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[_,{begin:l}],relevance:0},A,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:b},{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,y),relevance:0}].concat(m,y);v.contains=ne,x.contains=ne;const q=[{begin:/^\s*=>/,starts:{end:"$",contains:ne}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:b,contains:ne}}];return y.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:b,illegal:/\/\*/,contains:[a.SHEBANG({binary:"ruby"})].concat(q).concat(y).concat(ne)}}return $u=s,$u}var Yu,yg;function T0(){if(yg)return Yu;yg=1;function s(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 Yu=s,Yu}var Fu,vg;function w0(){if(vg)return Fu;vg=1;function s(a){const r=a.regex,l=/[_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(l,r.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return Fu=s,Fu}var Ku,Eg;function x0(){if(Eg)return Ku;Eg=1;function s(a){const r=a.regex,l={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:a.NUMBER_RE}]},u=a.COMMENT();u.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const d={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},p={className:"literal",begin:/\bon|off|true|false|yes|no\b/},b={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,d,b,l,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,y=/"(\\"|[^"])*"/,v=/'[^']*'/,_=r.either(m,y,v),w=r.concat(_,"(\\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:w,className:"attr",starts:{end:/$/,contains:[u,g,p,d,b,l]}}]}}return Ku=s,Ku}var Pu,_g;function A0(){if(_g)return Pu;_g=1;var s="[0-9](_*[0-9])*",a=`\\.(${s})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",l={className:"number",variants:[{begin:`(\\b(${s})((${a})|\\.)?|(${a}))[eE][+-]?(${s})[fFdD]?\\b`},{begin:`\\b(${s})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${s})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${s})[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,b,g){return g===-1?"":p.replace(b,m=>u(p,b,g-1))}function d(p){const b=p.regex,g="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",m="(?:(?:\\s*\\[\\s*])+)?",y=g+"<@@@>"+m,_="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+y+")?")+"|"+y+")",w=u("(?:\\s*<\\s*"+_+"(?:\\s*,\\s*"+_+")*\\s*>)?",/<@@@>/g,2),I={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"]},L={className:"meta",begin:"@"+g,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},le={className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[p.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:I,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,b.concat(w,m,/\s+/),g,m,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,g],className:{1:"keyword",3:"title.class"},contains:[le,p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},{begin:[g,b.concat(w,m,/\s+/),g,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:I,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[L,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,l,p.C_BLOCK_COMMENT_MODE]},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},l,L]}}return Pu=d,Pu}var Zu,Sg;function R0(){if(Sg)return Zu;Sg=1;const s="[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"],l=["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"],d=["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"],b=[].concat(d,l,u);function g(m){const y=m.regex,v=(ge,{after:Le})=>{const ze="</"+ge[0].slice(1);return ge.input.indexOf(ze,Le)!==-1},_=s,w={begin:"<>",end:"</>"},T=/<[A-Za-z0-9\\._:-]+\s*\/>/,A={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ge,Le)=>{const ze=ge[0].length+ge.index,$e=ge.input[ze];if($e==="<"||$e===","){Le.ignoreMatch();return}$e===">"&&(v(ge,{after:ze})||Le.ignoreMatch());let at;const Ce=ge.input.substring(ze);if(at=Ce.match(/^\s*=/)){Le.ignoreMatch();return}if((at=Ce.match(/^\s+extends\s+/))&&at.index===0){Le.ignoreMatch();return}}},x={$pattern:s,keyword:a,literal:r,built_in:b,"variable.language":p},k="[0-9](_?[0-9])*",I=`\\.(${k})`,L="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",le={className:"number",variants:[{begin:`(\\b(${L})((${I})|\\.)?|(${I}))[eE][+-]?(${k})\\b`},{begin:`\\b(${L})\\b((${I})\\b|\\.)?|(${I})\\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},K={className:"subst",begin:"\\$\\{",end:"\\}",keywords:x,contains:[]},P={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,K],subLanguage:"xml"}},ne={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,K],subLanguage:"css"}},C={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,K],subLanguage:"graphql"}},z={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,K]},q={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*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),m.C_BLOCK_COMMENT_MODE,m.C_LINE_COMMENT_MODE]},de=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,P,ne,C,z,{match:/\$\d+/},le];K.contains=de.concat({begin:/\{/,end:/\}/,keywords:x,contains:["self"].concat(de)});const he=[].concat(q,K.contains),_e=he.concat([{begin:/(\s*)\(/,end:/\)/,keywords:x,contains:["self"].concat(he)}]),pe={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:x,contains:_e},j={variants:[{match:[/class/,/\s+/,_,/\s+/,/extends/,/\s+/,y.concat(_,"(",y.concat(/\./,_),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,_],scope:{1:"keyword",3:"title.class"}}]},ae={relevance:0,match:y.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:{_:[...l,...u]}},ce={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ve={variants:[{match:[/function/,/\s+/,_,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[pe],illegal:/%/},Se={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function S(ge){return y.concat("(?!",ge.join("|"),")")}const D={match:y.concat(/\b/,S([...d,"super","import","await"].map(ge=>`${ge}\\s*\\(`)),_,y.lookahead(/\s*\(/)),className:"title.function",relevance:0},H={begin:y.concat(/\./,y.lookahead(y.concat(_,/(?![0-9A-Za-z$_(])/))),end:_,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ue={match:[/get|set/,/\s+/,_,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},pe]},W="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",be={match:[/const|var|let/,/\s+/,_,/\s*/,/=\s*/,/(async\s*)?/,y.lookahead(W)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[pe]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:x,exports:{PARAMS_CONTAINS:_e,CLASS_REFERENCE:ae},illegal:/#(?![$_A-Za-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),ce,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,P,ne,C,z,q,{match:/\$\d+/},le,ae,{scope:"attr",match:_+y.lookahead(":"),relevance:0},be,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,m.REGEXP_MODE,{className:"function",begin:W,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:x,contains:_e}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:w.begin,end:w.end},{match:T},{begin:A.begin,"on:begin":A.isTrulyOpeningTag,end:A.end}],subLanguage:"xml",contains:[{begin:A.begin,end:A.end,skip:!0,contains:["self"]}]}]},ve,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[pe,m.inherit(m.TITLE_MODE,{begin:_,className:"title.function"})]},{match:/\.\.\./,relevance:0},H,{match:"\\$"+_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[pe]},D,Se,j,ue,{match:/\$[(.]/}]}}return Zu=g,Zu}var Xu,Ng;function O0(){if(Ng)return Xu;Ng=1;const a={scope:"number",match:"([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",relevance:0};function r(l){const u={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},d={match:/[{}[\],:]/,className:"punctuation",relevance:0},p=["true","false","null"],b={scope:"literal",beginKeywords:p.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:p},contains:[u,d,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,b,a,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Xu=r,Xu}var Qu,Tg;function k0(){if(Tg)return Qu;Tg=1;var s="[0-9](_*[0-9])*",a=`\\.(${s})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",l={className:"number",variants:[{begin:`(\\b(${s})((${a})|\\.)?|(${a}))[eE][+-]?(${s})[fFdD]?\\b`},{begin:`\\b(${s})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${s})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${s})[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(d){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"},b={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},g={className:"symbol",begin:d.UNDERSCORE_IDENT_RE+"@"},m={className:"subst",begin:/\$\{/,end:/\}/,contains:[d.C_NUMBER_MODE]},y={className:"variable",begin:"\\$"+d.UNDERSCORE_IDENT_RE},v={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[y,m]},{begin:"'",end:"'",illegal:/\n/,contains:[d.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[d.BACKSLASH_ESCAPE,y,m]}]};m.contains.push(v);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+d.UNDERSCORE_IDENT_RE+")?"},w={className:"meta",begin:"@"+d.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[d.inherit(v,{className:"string"}),"self"]}]},T=l,A=d.COMMENT("/\\*","\\*/",{contains:[d.C_BLOCK_COMMENT_MODE]}),x={variants:[{className:"type",begin:d.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},k=x;return k.variants[1].contains=[x],x.variants[1].contains=[k],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:p,contains:[d.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),d.C_LINE_COMMENT_MODE,A,b,g,_,w,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:p,relevance:5,contains:[{begin:d.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[d.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:[x,d.C_LINE_COMMENT_MODE,A],relevance:0},d.C_LINE_COMMENT_MODE,A,_,w,v,d.C_NUMBER_MODE]},A]},{begin:[/class|interface|trait/,/\s+/,d.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},d.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},_,w]},v,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
167
- `},T]}}return Qu=u,Qu}var Vu,wg;function C0(){if(wg)return Vu;wg=1;const s=y=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:y.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:[y.APOS_STRING_MODE,y.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:y.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"],l=[...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(),d=["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(),b=["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=d.concat(p).sort().reverse();function m(y){const v=s(y),_=g,w="and or not only",T="[\\w-]+",A="("+T+"|@\\{"+T+"\\})",x=[],k=[],I=function(he){return{className:"string",begin:"~?"+he+".*?"+he}},L=function(he,_e,pe){return{className:he,begin:_e,relevance:pe}},le={$pattern:/[a-z-]+/,keyword:w,attribute:u.join(" ")},K={begin:"\\(",end:"\\)",contains:k,keywords:le,relevance:0};k.push(y.C_LINE_COMMENT_MODE,y.C_BLOCK_COMMENT_MODE,I("'"),I('"'),v.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},v.UNICODE_RANGE,v.HEXCOLOR,K,L("variable","@@?"+T,10),L("variable","@\\{"+T+"\\}"),L("built_in","~?`[^`]*?`"),{className:"attribute",begin:T+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},v.IMPORTANT,{beginKeywords:"and not"},v.FUNCTION_DISPATCH);const P=k.concat({begin:/\{/,end:/\}/,contains:x}),ne={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(k)},C={begin:A+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+b.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:k}}]},z={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:le,returnEnd:!0,contains:k,relevance:0}},X={className:"variable",variants:[{begin:"@"+T+"\\s*:",relevance:15},{begin:"@"+T}],starts:{end:"[;}]",returnEnd:!0,contains:P}},q={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:A,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[y.C_LINE_COMMENT_MODE,y.C_BLOCK_COMMENT_MODE,ne,L("keyword","all\\b"),L("variable","@\\{"+T+"\\}"),{begin:"\\b("+l.join("|")+")\\b",className:"selector-tag"},v.CSS_NUMBER_MODE,L("selector-tag",A,0),L("selector-id","#"+A),L("selector-class","\\."+A,0),L("selector-tag","&",0),v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+d.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+p.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:P},{begin:"!important"},v.FUNCTION_DISPATCH]},de={begin:T+`:(:)?(${_.join("|")})`,returnBegin:!0,contains:[q]};return x.push(y.C_LINE_COMMENT_MODE,y.C_BLOCK_COMMENT_MODE,z,X,de,C,q,ne,v.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:x}}return Vu=m,Vu}var Wu,xg;function M0(){if(xg)return Wu;xg=1;function s(a){const r="\\[=*\\[",l="\\]=*\\]",u={begin:r,end:l,contains:["self"]},d=[a.COMMENT("--(?!"+r+")","$"),a.COMMENT("--"+r,l,{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:d.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:d}].concat(d)},a.C_NUMBER_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"string",begin:r,end:l,contains:[u],relevance:5}])}}return Wu=s,Wu}var Ju,Ag;function D0(){if(Ag)return Ju;Ag=1;function s(a){const r={className:"variable",variants:[{begin:"\\$\\("+a.UNDERSCORE_IDENT_RE+"\\)",contains:[a.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},l={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,l]},d={begin:"^"+a.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},p={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},b={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,l,u,d,p,b]}}return Ju=s,Ju}var ef,Rg;function L0(){if(Rg)return ef;Rg=1;function s(a){const r=a.regex,l=["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}/,d={$pattern:/[\w.]+/,keyword:l.join(" ")},p={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:d},b={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]},y={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],_=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],w=(x,k,I="\\1")=>{const L=I==="\\1"?I:r.concat(I,k);return r.concat(r.concat("(?:",x,")"),k,/(?:\\.|[^\\\/])*?/,L,/(?:\\.|[^\\\/])*?/,I,u)},T=(x,k,I)=>r.concat(r.concat("(?:",x,")"),k,/(?:\\.|[^\\\/])*?/,I,u),A=[m,a.HASH_COMMENT_MODE,a.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),b,{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}]},y,{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:w("s|tr|y",r.either(..._,{capture:!0}))},{begin:w("s|tr|y","\\(","\\)")},{begin:w("s|tr|y","\\[","\\]")},{begin:w("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:T("(?:m|qr)?",/\//,/\//)},{begin:T("m|qr",r.either(..._,{capture:!0}),/\1/)},{begin:T("m|qr",/\(/,/\)/)},{begin:T("m|qr",/\[/,/\]/)},{begin:T("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,y]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return p.contains=A,b.contains=A,{name:"Perl",aliases:["pl","pm"],keywords:d,contains:A}}return ef=s,ef}var tf,Og;function z0(){if(Og)return tf;Og=1;function s(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+"},l=/[a-zA-Z@][a-zA-Z0-9_]*/,g={"variable.language":["this","super"],$pattern:l,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:l,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 tf=s,tf}var nf,kg;function U0(){if(kg)return nf;kg=1;function s(a){const r=a.regex,l=/(?![A-Za-z0-9])(?![$])/,u=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,l),d=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,l),p=r.concat(/[A-Z]+/,l),b={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:/\}/}]},y=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)}),_={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:a.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(pe,j)=>{j.data._beginMatch=pe[1]||pe[2]},"on:end":(pe,j)=>{j.data._beginMatch!==pe[1]&&j.ignoreMatch()}},w=a.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),T=`[
168
- ]`,A={scope:"string",variants:[v,y,_,w]},x={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},k=["false","null","true"],I=["__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"],L=["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"],K={keyword:I,literal:(pe=>{const j=[];return pe.forEach(ae=>{j.push(ae),ae.toLowerCase()===ae?j.push(ae.toUpperCase()):j.push(ae.toLowerCase())}),j})(k),built_in:L},P=pe=>pe.map(j=>j.replace(/\|\d+$/,"")),ne={variants:[{match:[/new/,r.concat(T,"+"),r.concat("(?!",P(L).join("\\b|"),"\\b)"),d],scope:{1:"keyword",4:"title.class"}}]},C=r.concat(u,"\\b(?!\\()"),z={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),C],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[d,r.concat(/::/,r.lookahead(/(?!class\b)/)),C],scope:{1:"title.class",3:"variable.constant"}},{match:[d,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[d,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},X={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},q={relevance:0,begin:/\(/,end:/\)/,keywords:K,contains:[X,b,z,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,A,x,ne]},de={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",P(I).join("\\b|"),"|",P(L).join("\\b|"),"\\b)"),u,r.concat(T,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[q]};q.contains.push(de);const he=[X,z,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,A,x,ne],_e={begin:r.concat(/#\[\s*\\?/,r.either(d,p)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:k,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:k,keyword:["new","array"]},contains:["self",...he]},...he,{scope:"meta",variants:[{match:d},{match:p}]}]};return{case_insensitive:!1,keywords:K,contains:[_e,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/},b,de,z,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},ne,{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:K,contains:["self",_e,b,z,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,A,x]}]},{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]},A,x]}}return nf=s,nf}var af,Cg;function j0(){if(Cg)return af;Cg=1;function s(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 af=s,af}var lf,Mg;function B0(){if(Mg)return lf;Mg=1;function s(a){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return lf=s,lf}var sf,Dg;function I0(){if(Dg)return sf;Dg=1;function s(a){const r=a.regex,l=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:/^(>>>|\.\.\.) /},y={className:"subst",begin:/\{/,end:/\}/,keywords:g,illegal:/#/},v={begin:/\{\{/,relevance:0},_={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,y]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,m,v,y]},{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,y]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,v,y]},a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},w="[0-9](_?[0-9])*",T=`(\\b(${w}))?\\.(${w})|\\b(${w})\\.`,A=`\\b|${u.join("|")}`,x={className:"number",relevance:0,variants:[{begin:`(\\b(${w})|(${T}))[eE][+-]?(${w})[jJ]?(?=${A})`},{begin:`(${T})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${A})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${A})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${A})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${A})`},{begin:`\\b(${w})[jJ](?=${A})`}]},k={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:g,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},I={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",m,x,_,a.HASH_COMMENT_MODE]}]};return y.contains=[_,x,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:g,illegal:/(<\/|\?)|=>/,contains:[m,x,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},_,k,a.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[I]},{variants:[{match:[/\bclass/,/\s+/,l,/\s*/,/\(\s*/,l,/\s*\)/]},{match:[/\bclass/,/\s+/,l]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[x,I,_]}]}}return sf=s,sf}var rf,Lg;function H0(){if(Lg)return rf;Lg=1;function s(a){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return rf=s,rf}var of,zg;function q0(){if(zg)return of;zg=1;function s(a){const r=a.regex,l=/(?:(?:[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]?/),d=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,p=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:l,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:l},{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:[d,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:[l,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:d},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:p},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return of=s,of}var cf,Ug;function G0(){if(Ug)return cf;Ug=1;function s(a){const r=a.regex,l=/(r#)?/,u=r.concat(l,a.UNDERSCORE_IDENT_RE),d=r.concat(l,a.IDENT_RE),p={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,d,r.lookahead(/\s*\(/))},b="([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"],y=["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:y},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_]+)"+b},{begin:"\\b0o([0-7_]+)"+b},{begin:"\\b0x([A-Fa-f0-9_]+)"+b},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+b}],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:y,type:v}},{scope:"punctuation",begin:"->"},p]}}return cf=s,cf}var uf,jg;function $0(){if(jg)return uf;jg=1;const s=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"],l=[...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(),d=["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(),b=["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 y=s(m),v=p,_=d,w="@[a-z-]+",T="and or not only",x={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,y.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},y.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+_.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+v.join("|")+")"},x,{begin:/\(/,end:/\)/,contains:[y.CSS_NUMBER_MODE]},y.CSS_VARIABLE,{className:"attribute",begin:"\\b("+b.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:[y.BLOCK_COMMENT,x,y.HEXCOLOR,y.CSS_NUMBER_MODE,y.UNICODE_RANGE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,y.IMPORTANT,y.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:w,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:T,attribute:u.join(" ")},contains:[{begin:w,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},x,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,y.HEXCOLOR,y.CSS_NUMBER_MODE]},y.FUNCTION_DISPATCH]}}return uf=g,uf}var ff,Bg;function Y0(){if(Bg)return ff;Bg=1;function s(a){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return ff=s,ff}var df,Ig;function F0(){if(Ig)return df;Ig=1;function s(a){const r=a.regex,l=a.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},d={begin:/"/,end:/"/,contains:[{match:/""/}]},p=["true","false","unknown"],b=["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"],y=["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"],_=["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"],w=["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"],T=v,A=[...y,...m].filter(P=>!v.includes(P)),x={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},k={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},I={match:r.concat(/\b/,r.either(...T),/\s*\(/),relevance:0,keywords:{built_in:T}};function L(P){return r.concat(/\b/,r.either(...P.map(ne=>ne.replace(/\s+/,"\\s+"))),/\b/)}const le={scope:"keyword",match:L(w),relevance:0};function K(P,{exceptions:ne,when:C}={}){const z=C;return ne=ne||[],P.map(X=>X.match(/\|\d+$/)||ne.includes(X)?X:z(X)?`${X}|0`:X)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:K(A,{when:P=>P.length<3}),literal:p,type:g,built_in:_},contains:[{scope:"type",match:L(b)},le,I,x,u,d,a.C_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE,l,k]}}return df=s,df}var hf,Hg;function K0(){if(Hg)return hf;Hg=1;function s(C){return C?typeof C=="string"?C:C.source:null}function a(C){return r("(?=",C,")")}function r(...C){return C.map(X=>s(X)).join("")}function l(C){const z=C[C.length-1];return typeof z=="object"&&z.constructor===Object?(C.splice(C.length-1,1),z):{}}function u(...C){return"("+(l(C).capture?"":"?:")+C.map(q=>s(q)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const d=C=>r(/\b/,C,/\w$/.test(C)?/\b/:/\B/),p=["Protocol","Type"].map(d),b=["init","self"].map(d),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"],y=["false","nil","true"],v=["assignment","associativity","higherThan","left","lowerThan","none","right"],_=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],w=["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"],T=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]/),A=u(T,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),x=r(T,A,"*"),k=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]/),I=u(k,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),L=r(k,I,"*"),le=r(/[A-Z]/,I,"*"),K=["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\(/,L,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],P=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function ne(C){const z={match:/\s+/,relevance:0},X=C.COMMENT("/\\*","\\*/",{contains:["self"]}),q=[C.C_LINE_COMMENT_MODE,X],de={match:[/\./,u(...p,...b)],className:{2:"keyword"}},he={match:r(/\./,u(...m)),relevance:0},_e=m.filter(Ie=>typeof Ie=="string").concat(["_|0"]),pe=m.filter(Ie=>typeof Ie!="string").concat(g).map(d),j={variants:[{className:"keyword",match:u(...pe,...b)}]},ae={$pattern:u(/\b\w+/,/#\w+/),keyword:_e.concat(_),literal:y},ce=[de,he,j],ve={match:r(/\./,u(...w)),relevance:0},Se={className:"built_in",match:r(/\b/,u(...w),/(?=\()/)},S=[ve,Se],D={match:/->/,relevance:0},H={className:"operator",relevance:0,variants:[{match:x},{match:`\\.(\\.|${A})+`}]},ue=[D,H],W="([0-9]_*)+",be="([0-9a-fA-F]_*)+",ge={className:"number",relevance:0,variants:[{match:`\\b(${W})(\\.(${W}))?([eE][+-]?(${W}))?\\b`},{match:`\\b0x(${be})(\\.(${be}))?([pP][+-]?(${W}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},Le=(Ie="")=>({className:"subst",variants:[{match:r(/\\/,Ie,/[0\\tnr"']/)},{match:r(/\\/,Ie,/u\{[0-9a-fA-F]{1,8}\}/)}]}),ze=(Ie="")=>({className:"subst",match:r(/\\/,Ie,/[\t ]*(?:[\r\n]|\r\n)/)}),$e=(Ie="")=>({className:"subst",label:"interpol",begin:r(/\\/,Ie,/\(/),end:/\)/}),at=(Ie="")=>({begin:r(Ie,/"""/),end:r(/"""/,Ie),contains:[Le(Ie),ze(Ie),$e(Ie)]}),Ce=(Ie="")=>({begin:r(Ie,/"/),end:r(/"/,Ie),contains:[Le(Ie),$e(Ie)]}),We={className:"string",variants:[at(),at("#"),at("##"),at("###"),Ce(),Ce("#"),Ce("##"),Ce("###")]},Ge=[C.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[C.BACKSLASH_ESCAPE]}],Xt={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ge},He=Ie=>{const dn=r(Ie,/\//),hn=r(/\//,Ie);return{begin:dn,end:hn,contains:[...Ge,{scope:"comment",begin:`#(?!.*${hn})`,end:/$/}]}},ct={scope:"regexp",variants:[He("###"),He("##"),He("#"),Xt]},wn={match:r(/`/,L,/`/)},Qt={className:"variable",match:/\$\d+/},Dt={className:"variable",match:`\\$${I}+`},Ln=[wn,Qt,Dt],sa={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:P,contains:[...ue,ge,We]}]}},Qn={scope:"keyword",match:r(/@/,u(...K),a(u(/\(/,/\s+/)))},st={scope:"meta",match:r(/@/,L)},qt=[sa,Qn,st],ut={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)/,I,"+")},{className:"type",match:le,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,a(le)),relevance:0}]},cn={begin:/</,end:/>/,keywords:ae,contains:[...q,...ce,...qt,D,ut]};ut.contains.push(cn);const xn={match:r(L,/\s*:/),keywords:"_|0",relevance:0},An={begin:/\(/,end:/\)/,relevance:0,keywords:ae,contains:["self",xn,...q,ct,...ce,...S,...ue,ge,We,...Ln,...qt,ut]},zn={begin:/</,end:/>/,keywords:"repeat each",contains:[...q,ut]},Un={begin:u(a(r(L,/\s*:/)),a(r(L,/\s+/,L,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:L}]},un={begin:/\(/,end:/\)/,keywords:ae,contains:[Un,...q,...ce,...ue,ge,We,...qt,ut,An],endsParent:!0,illegal:/["']/},yn={match:[/(func|macro)/,/\s+/,u(wn.match,L,x)],className:{1:"keyword",3:"title.function"},contains:[zn,un,z],illegal:[/\[/,/%/]},Ut={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[zn,un,z],illegal:/\[|%/},fn={match:[/operator/,/\s+/,x],className:{1:"keyword",3:"title"}},jt={begin:[/precedencegroup/,/\s+/,le],className:{1:"keyword",3:"title"},contains:[ut],keywords:[...v,...y],end:/}/},ga={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},jn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Bn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,L,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:ae,contains:[zn,...ce,{begin:/:/,end:/\{/,keywords:ae,contains:[{scope:"title.class.inherited",match:le},...ce],relevance:0}]};for(const Ie of We.variants){const dn=Ie.contains.find(Gt=>Gt.label==="interpol");dn.keywords=ae;const hn=[...ce,...S,...ue,ge,We,...Ln];dn.contains=[...hn,{begin:/\(/,end:/\)/,contains:["self",...hn]}]}return{name:"Swift",keywords:ae,contains:[...q,yn,Ut,ga,jn,Bn,fn,jt,{beginKeywords:"import",end:/$/,contains:[...q],relevance:0},ct,...ce,...S,...ue,ge,We,...Ln,...qt,ut,An]}}return hf=ne,hf}var pf,qg;function P0(){if(qg)return pf;qg=1;function s(a){const r="true false yes no null",l="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},d={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},p={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},b={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[a.BACKSLASH_ESCAPE,d]},g=a.inherit(b,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),w={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"},T={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},A={begin:/\{/,end:/\}/,contains:[T],illegal:"\\n",relevance:0},x={begin:"\\[",end:"\\]",contains:[T],illegal:"\\n",relevance:0},k=[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+!"+l},{className:"type",begin:"!<"+l+">"},{className:"type",begin:"!"+l},{className:"type",begin:"!!"+l},{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}},w,{className:"number",begin:a.C_NUMBER_RE+"\\b",relevance:0},A,x,p,b],I=[...k];return I.pop(),I.push(g),T.contains=I,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:k}}return pf=s,pf}var mf,Gg;function Z0(){if(Gg)return mf;Gg=1;const s="[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"],l=["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"],d=["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"],b=[].concat(d,l,u);function g(y){const v=y.regex,_=(Le,{after:ze})=>{const $e="</"+Le[0].slice(1);return Le.input.indexOf($e,ze)!==-1},w=s,T={begin:"<>",end:"</>"},A=/<[A-Za-z0-9\\._:-]+\s*\/>/,x={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Le,ze)=>{const $e=Le[0].length+Le.index,at=Le.input[$e];if(at==="<"||at===","){ze.ignoreMatch();return}at===">"&&(_(Le,{after:$e})||ze.ignoreMatch());let Ce;const We=Le.input.substring($e);if(Ce=We.match(/^\s*=/)){ze.ignoreMatch();return}if((Ce=We.match(/^\s+extends\s+/))&&Ce.index===0){ze.ignoreMatch();return}}},k={$pattern:s,keyword:a,literal:r,built_in:b,"variable.language":p},I="[0-9](_?[0-9])*",L=`\\.(${I})`,le="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",K={className:"number",variants:[{begin:`(\\b(${le})((${L})|\\.)?|(${L}))[eE][+-]?(${I})\\b`},{begin:`\\b(${le})\\b((${L})\\b|\\.)?|(${L})\\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},P={className:"subst",begin:"\\$\\{",end:"\\}",keywords:k,contains:[]},ne={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[y.BACKSLASH_ESCAPE,P],subLanguage:"xml"}},C={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[y.BACKSLASH_ESCAPE,P],subLanguage:"css"}},z={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[y.BACKSLASH_ESCAPE,P],subLanguage:"graphql"}},X={className:"string",begin:"`",end:"`",contains:[y.BACKSLASH_ESCAPE,P]},de={className:"comment",variants:[y.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:w+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),y.C_BLOCK_COMMENT_MODE,y.C_LINE_COMMENT_MODE]},he=[y.APOS_STRING_MODE,y.QUOTE_STRING_MODE,ne,C,z,X,{match:/\$\d+/},K];P.contains=he.concat({begin:/\{/,end:/\}/,keywords:k,contains:["self"].concat(he)});const _e=[].concat(de,P.contains),pe=_e.concat([{begin:/(\s*)\(/,end:/\)/,keywords:k,contains:["self"].concat(_e)}]),j={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:k,contains:pe},ae={variants:[{match:[/class/,/\s+/,w,/\s+/,/extends/,/\s+/,v.concat(w,"(",v.concat(/\./,w),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,w],scope:{1:"keyword",3:"title.class"}}]},ce={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:{_:[...l,...u]}},ve={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Se={variants:[{match:[/function/,/\s+/,w,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[j],illegal:/%/},S={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function D(Le){return v.concat("(?!",Le.join("|"),")")}const H={match:v.concat(/\b/,D([...d,"super","import","await"].map(Le=>`${Le}\\s*\\(`)),w,v.lookahead(/\s*\(/)),className:"title.function",relevance:0},ue={begin:v.concat(/\./,v.lookahead(v.concat(w,/(?![0-9A-Za-z$_(])/))),end:w,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},W={match:[/get|set/,/\s+/,w,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},j]},be="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+y.UNDERSCORE_IDENT_RE+")\\s*=>",ge={match:[/const|var|let/,/\s+/,w,/\s*/,/=\s*/,/(async\s*)?/,v.lookahead(be)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[j]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:k,exports:{PARAMS_CONTAINS:pe,CLASS_REFERENCE:ce},illegal:/#(?![$_A-Za-z])/,contains:[y.SHEBANG({label:"shebang",binary:"node",relevance:5}),ve,y.APOS_STRING_MODE,y.QUOTE_STRING_MODE,ne,C,z,X,de,{match:/\$\d+/},K,ce,{scope:"attr",match:w+v.lookahead(":"),relevance:0},ge,{begin:"("+y.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[de,y.REGEXP_MODE,{className:"function",begin:be,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:y.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:k,contains:pe}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:T.begin,end:T.end},{match:A},{begin:x.begin,"on:begin":x.isTrulyOpeningTag,end:x.end}],subLanguage:"xml",contains:[{begin:x.begin,end:x.end,skip:!0,contains:["self"]}]}]},Se,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+y.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[j,y.inherit(y.TITLE_MODE,{begin:w,className:"title.function"})]},{match:/\.\.\./,relevance:0},ue,{match:"\\$"+w,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[j]},H,S,ae,W,{match:/\$[(.]/}]}}function m(y){const v=y.regex,_=g(y),w=s,T=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],A={begin:[/namespace/,/\s+/,y.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},x={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:T},contains:[_.exports.CLASS_REFERENCE]},k={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},I=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],L={$pattern:s,keyword:a.concat(I),literal:r,built_in:b.concat(T),"variable.language":p},le={className:"meta",begin:"@"+w},K=(z,X,q)=>{const de=z.contains.findIndex(he=>he.label===X);if(de===-1)throw new Error("can not find mode to replace");z.contains.splice(de,1,q)};Object.assign(_.keywords,L),_.exports.PARAMS_CONTAINS.push(le);const P=_.contains.find(z=>z.scope==="attr"),ne=Object.assign({},P,{match:v.concat(w,v.lookahead(/\s*\?:/))});_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,P,ne]),_.contains=_.contains.concat([le,A,x,ne]),K(_,"shebang",y.SHEBANG()),K(_,"use_strict",k);const C=_.contains.find(z=>z.label==="func.def");return C.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return mf=m,mf}var gf,$g;function X0(){if($g)return gf;$g=1;function s(a){const r=a.regex,l={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},d=/\d{1,2}\/\d{1,2}\/\d{4}/,p=/\d{4}-\d{1,2}-\d{1,2}/,b=/(\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,d),/ *#/)},{begin:r.concat(/# */,g,/ *#/)},{begin:r.concat(/# */,b,/ *#/)},{begin:r.concat(/# */,r.either(p,d),/ +/,r.either(b,g),/ *#/)}]},y={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+:/},_=a.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),w=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:[l,u,m,y,v,_,w,{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:[w]}]}}return gf=s,gf}var bf,Yg;function Q0(){if(Yg)return bf;Yg=1;function s(a){a.regex;const r=a.COMMENT(/\(;/,/;\)/);r.contains.push("self");const l=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"],d={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},p={className:"variable",begin:/\$[\w_]+/},b={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"},y={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:[l,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},p,b,d,a.QUOTE_STRING_MODE,m,y,g]}}return bf=s,bf}var yf,Fg;function V0(){if(Fg)return yf;Fg=1;var s=p0();return s.registerLanguage("xml",m0()),s.registerLanguage("bash",g0()),s.registerLanguage("c",b0()),s.registerLanguage("cpp",y0()),s.registerLanguage("csharp",v0()),s.registerLanguage("css",E0()),s.registerLanguage("markdown",_0()),s.registerLanguage("diff",S0()),s.registerLanguage("ruby",N0()),s.registerLanguage("go",T0()),s.registerLanguage("graphql",w0()),s.registerLanguage("ini",x0()),s.registerLanguage("java",A0()),s.registerLanguage("javascript",R0()),s.registerLanguage("json",O0()),s.registerLanguage("kotlin",k0()),s.registerLanguage("less",C0()),s.registerLanguage("lua",M0()),s.registerLanguage("makefile",D0()),s.registerLanguage("perl",L0()),s.registerLanguage("objectivec",z0()),s.registerLanguage("php",U0()),s.registerLanguage("php-template",j0()),s.registerLanguage("plaintext",B0()),s.registerLanguage("python",I0()),s.registerLanguage("python-repl",H0()),s.registerLanguage("r",q0()),s.registerLanguage("rust",G0()),s.registerLanguage("scss",$0()),s.registerLanguage("shell",Y0()),s.registerLanguage("sql",F0()),s.registerLanguage("swift",K0()),s.registerLanguage("yaml",P0()),s.registerLanguage("typescript",Z0()),s.registerLanguage("vbnet",X0()),s.registerLanguage("wasm",Q0()),s.HighlightJS=s,s.default=s,yf=s,yf}var W0=V0();const Xf=xb(W0),J0={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},eS=2e5,Fb="http://www.w3.org/1999/xhtml";function tS(s){for(const a of s.querySelectorAll(".d2h-file-wrapper")){const r=nS(a.dataset.lang??"");if(r)for(const l of aS(a))Kg(l.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),Kg(l.filter(u=>u.kind!=="del"),()=>!0,r)}}function nS(s){const a=J0[s]??h0(s);return a==="plaintext"||!Xf.getLanguage(a)?null:a}function aS(s){const a=[];let r=[];for(const l of s.querySelectorAll(".d2h-diff-tbody > tr")){const u=l.querySelector("td:last-child"),d=u==null?void 0:u.querySelector(".d2h-code-line-ctn");if(!u||!d){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:d})}return r.length&&a.push(r),a}function Kg(s,a,r){if(s.filter(a).length===0)return;const u=s.map(b=>b.ctn.textContent??"").join(`
169
- `);if(!u.trim()||u.length>eS)return;const d=lS(u)&&sS(r)?`/**
170
- `:"",p=oS(Xf.highlight(d+u,{language:r,ignoreIllegals:!0}).value).slice(d?1:0);s.forEach((b,g)=>{const m=p[g];m===void 0||!a(b)||rS(b.ctn,m)})}const iS=/(^|\s)\*\//m,Pg=/^\s*\*(\s|$)/;function lS(s){const a=s.search(iS);if(a===-1){const l=s.split(`
171
- `).filter(u=>u.trim());return l.length>0&&l.every(u=>Pg.test(u))}return s.slice(0,a).split(`
172
- `).every(l=>Pg.test(l)||!l.includes("/*"))}function sS(s){return Xf.highlight("/* */",{language:s,ignoreIllegals:!0}).value.startsWith('<span class="hljs-comment">')}function rS(s,a){const r=rg(s);let l=a;if(r.length){const u=document.createElementNS(Fb,"div");u.innerHTML=a,l=f0(r,rg(u),s.textContent??"")}s.classList.add("hljs"),s.innerHTML=l}function oS(s){const a=document.createElementNS(Fb,"div");a.innerHTML=s;const r=[],l=[];let u="";const d=p=>{if(p.nodeType===Node.TEXT_NODE){(p.textContent??"").split(`
173
- `).forEach((m,y)=>{y>0&&(u+="</span>".repeat(l.length),r.push(u),u=l.join("")),u+=cS(m)});return}const b=`<span class="${p.className}">`;u+=b,l.push(b),p.childNodes.forEach(d),l.pop(),u+="</span>"};return a.childNodes.forEach(d),r.push(u),r}function cS(s){return s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const uS={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"]},fS={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}]},dS={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function Fe({name:s,size:a=13}){const r=[...uS[s]??[],...dS[s]??[]];return f.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:[(fS[s]??[]).map((l,u)=>f.jsx("circle",{cx:l.cx,cy:l.cy,r:l.r},u)),r.map((l,u)=>f.jsx("path",{d:l},u))]})}function hS({size:s=17}){return f.jsxs("svg",{className:"logo",width:s,height:s,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[f.jsx("circle",{cx:"6.1",cy:"8.9",r:"2.5"}),f.jsx("circle",{cx:"12",cy:"6.7",r:"2.7"}),f.jsx("circle",{cx:"17.9",cy:"8.9",r:"2.5"}),f.jsx("ellipse",{cx:"12",cy:"16.6",rx:"5.4",ry:"4.3"})]})}function za({children:s}){return f.jsx("span",{className:"key",children:s})}/*! @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 Zg(s,a){(a==null||a>s.length)&&(a=s.length);for(var r=0,l=Array(a);r<a;r++)l[r]=s[r];return l}function pS(s){if(Array.isArray(s))return s}function mS(s,a){var r=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(r!=null){var l,u,d,p,b=[],g=!0,m=!1;try{if(d=(r=r.call(s)).next,a!==0)for(;!(g=(l=d.call(r)).done)&&(b.push(l.value),b.length!==a);g=!0);}catch(y){m=!0,u=y}finally{try{if(!g&&r.return!=null&&(p=r.return(),Object(p)!==p))return}finally{if(m)throw u}}return b}}function gS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
174
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bS(s,a){return pS(s)||mS(s,a)||yS(s,a)||gS()}function yS(s,a){if(s){if(typeof s=="string")return Zg(s,a);var r={}.toString.call(s).slice(8,-1);return r==="Object"&&s.constructor&&(r=s.constructor.name),r==="Map"||r==="Set"?Array.from(s):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zg(s,a):void 0}}const Kb=Object.entries,Xg=Object.setPrototypeOf,vS=Object.isFrozen,ES=Object.getPrototypeOf,_S=Object.getOwnPropertyDescriptor;let Nn=Object.freeze,Tn=Object.seal,Ul=Object.create,Pb=typeof Reflect<"u"&&Reflect,kf=Pb.apply,Cf=Pb.construct;Nn||(Nn=function(a){return a});Tn||(Tn=function(a){return a});kf||(kf=function(a,r){for(var l=arguments.length,u=new Array(l>2?l-2:0),d=2;d<l;d++)u[d-2]=arguments[d];return a.apply(r,u)});Cf||(Cf=function(a){for(var r=arguments.length,l=new Array(r>1?r-1:0),u=1;u<r;u++)l[u-1]=arguments[u];return new a(...l)});const Dl=ln(Array.prototype.forEach),SS=ln(Array.prototype.lastIndexOf),Qg=ln(Array.prototype.pop),Ll=ln(Array.prototype.push),NS=ln(Array.prototype.splice),Li=Array.isArray,js=ln(String.prototype.toLowerCase),vf=ln(String.prototype.toString),Vg=ln(String.prototype.match),Ls=ln(String.prototype.replace),Wg=ln(String.prototype.indexOf),TS=ln(String.prototype.trim),wS=ln(Number.prototype.toString),xS=ln(Boolean.prototype.toString),Jg=typeof BigInt>"u"?null:ln(BigInt.prototype.toString),eb=typeof Symbol>"u"?null:ln(Symbol.prototype.toString),bn=ln(Object.prototype.hasOwnProperty),zs=ln(Object.prototype.toString),gn=ln(RegExp.prototype.test),Wi=AS(TypeError);function ln(s){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var r=arguments.length,l=new Array(r>1?r-1:0),u=1;u<r;u++)l[u-1]=arguments[u];return kf(s,a,l)}}function AS(s){return function(){for(var a=arguments.length,r=new Array(a),l=0;l<a;l++)r[l]=arguments[l];return Cf(s,r)}}function ot(s,a){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:js;if(Xg&&Xg(s,null),!Li(a))return s;let l=a.length;for(;l--;){let u=a[l];if(typeof u=="string"){const d=r(u);d!==u&&(vS(a)||(a[l]=d),u=d)}s[u]=!0}return s}function RS(s){for(let a=0;a<s.length;a++)bn(s,a)||(s[a]=null);return s}function Mn(s){const a=Ul(null);for(const l of Kb(s)){var r=bS(l,2);const u=r[0],d=r[1];bn(s,u)&&(Li(d)?a[u]=RS(d):d&&typeof d=="object"&&d.constructor===Object?a[u]=Mn(d):a[u]=d)}return a}function OS(s){switch(typeof s){case"string":return s;case"number":return wS(s);case"boolean":return xS(s);case"bigint":return Jg?Jg(s):"0";case"symbol":return eb?eb(s):"Symbol()";case"undefined":return zs(s);case"function":case"object":{if(s===null)return zs(s);const a=s,r=Sa(a,"toString");if(typeof r=="function"){const l=r(a);return typeof l=="string"?l:zs(l)}return zs(s)}default:return zs(s)}}function Sa(s,a){for(;s!==null;){const l=_S(s,a);if(l){if(l.get)return ln(l.get);if(typeof l.value=="function")return ln(l.value)}s=ES(s)}function r(){return null}return r}function kS(s){try{return gn(s,""),!0}catch{return!1}}const tb=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"]),Ef=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"]),_f=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"]),CS=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"]),Sf=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"]),MS=Nn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),nb=Nn(["#text"]),ab=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"]),Nf=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"]),ib=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"]),eo=Nn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),DS=Tn(/{{[\w\W]*|^[\w\W]*}}/g),LS=Tn(/<%[\w\W]*|^[\w\W]*%>/g),zS=Tn(/\${[\w\W]*/g),US=Tn(/^data-[\-\w.\u00B7-\uFFFF]+$/),jS=Tn(/^aria-[\-\w]+$/),lb=Tn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),BS=Tn(/^(?:\w+script|data):/i),IS=Tn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),HS=Tn(/^html$/i),qS=Tn(/^[a-z][.\w]*(-[.\w]+)+$/i),sb=Tn(/<[/\w!]/g),rb=Tn(/<[/\w]/g),GS=Tn(/<\/no(script|embed|frames)/i),$S=Tn(/\/>/i),la={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},YS=function(){return typeof window>"u"?null:window},FS=function(a,r){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let l=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(l=r.getAttribute(u));const d="dompurify"+(l?"#"+l:"");try{return a.createPolicy(d,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},ob=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ci=function(a,r,l,u){return bn(a,r)&&Li(a[r])?ot(u.base?Mn(u.base):{},a[r],u.transform):l};function Zb(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:YS();const a=V=>Zb(V);if(a.version="3.4.13",a.removed=[],!s||!s.document||s.document.nodeType!==la.document||!s.Element)return a.isSupported=!1,a;let r=s.document;const l=r,u=l.currentScript;s.DocumentFragment;const d=s.HTMLTemplateElement,p=s.Node,b=s.Element,g=s.NodeFilter,m=s.NamedNodeMap;m===void 0&&(s.NamedNodeMap||s.MozNamedAttrMap),s.HTMLFormElement;const y=s.DOMParser,v=s.trustedTypes,_=b.prototype,w=Sa(_,"cloneNode"),T=Sa(_,"remove"),A=Sa(_,"nextSibling"),x=Sa(_,"childNodes"),k=Sa(_,"parentNode"),I=Sa(_,"shadowRoot"),L=Sa(_,"attributes"),le=p&&p.prototype?Sa(p.prototype,"nodeType"):null,K=p&&p.prototype?Sa(p.prototype,"nodeName"):null,P=p&&p.prototype?Sa(p.prototype,"ownerDocument"):null;if(typeof d=="function"){const V=r.createElement("template");V.content&&V.content.ownerDocument&&(r=V.content.ownerDocument)}let ne,C="",z,X=!1,q=0;const de=function(){if(q>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.')},he=function(N){de(),q++;try{return ne.createHTML(N)}finally{q--}},_e=function(N){de(),q++;try{return ne.createScriptURL(N)}finally{q--}},pe=function(){return X||(z=FS(v,u),X=!0),z},j=r,ae=j.implementation,ce=j.createNodeIterator,ve=j.createDocumentFragment,Se=j.getElementsByTagName,S=l.importNode;let D=ob();a.isSupported=typeof Kb=="function"&&typeof k=="function"&&ae&&ae.createHTMLDocument!==void 0;const H=DS,ue=LS,W=zS,be=US,ge=jS,Le=BS,ze=IS,$e=qS;let at=lb,Ce=null;const We=ot({},[...tb,...Ef,..._f,...Sf,...nb]);let Ge=null;const Xt=ot({},[...ab,...Nf,...ib,...eo]);let He=Object.seal(Ul(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}})),ct=null,wn=null;const Qt=Object.seal(Ul(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Dt=!0,Ln=!0,sa=!1,Qn=!0,st=!1,qt=!0,ut=!1,cn=!1,xn=null,An=null,zn=!1,Un=!1,un=!1,yn=!1,Ut=!0,fn=!1;const jt="user-content-";let ga=!0,jn=!1,Bn={},Ie=null;const dn=ot({},["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 hn=null;const Gt=ot({},["audio","video","img","source","image","track"]);let O=null;const ee=ot({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",Me="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let Qe=Ke,Ne=!1,Ee=null;const Ue=ot({},[me,Me,Ke],vf),Rt=Nn(["mi","mo","mn","ms","mtext"]);let bt=ot({},Rt);const In=Nn(["annotation-xml"]);let Vn=ot({},In);const ba=ot({},["title","style","font","a","script"]);let rn=null;const Ot=["application/xhtml+xml","text/html"],Y="text/html";let re=null,we=null;const mt=r.createElement("form"),Bt=function(N){return N instanceof RegExp||N instanceof Function},Rn=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(we&&we===N)return;(!N||typeof N!="object")&&(N={}),N=Mn(N),rn=Ot.indexOf(N.PARSER_MEDIA_TYPE)===-1?Y:N.PARSER_MEDIA_TYPE,re=rn==="application/xhtml+xml"?vf:js,Ce=Ci(N,"ALLOWED_TAGS",We,{transform:re}),Ge=Ci(N,"ALLOWED_ATTR",Xt,{transform:re}),Ee=Ci(N,"ALLOWED_NAMESPACES",Ue,{transform:vf}),O=Ci(N,"ADD_URI_SAFE_ATTR",ee,{transform:re,base:ee}),hn=Ci(N,"ADD_DATA_URI_TAGS",Gt,{transform:re,base:Gt}),Ie=Ci(N,"FORBID_CONTENTS",dn,{transform:re}),ct=Ci(N,"FORBID_TAGS",Mn({}),{transform:re}),wn=Ci(N,"FORBID_ATTR",Mn({}),{transform:re}),Bn=bn(N,"USE_PROFILES")?N.USE_PROFILES&&typeof N.USE_PROFILES=="object"?Mn(N.USE_PROFILES):N.USE_PROFILES:!1,Dt=N.ALLOW_ARIA_ATTR!==!1,Ln=N.ALLOW_DATA_ATTR!==!1,sa=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Qn=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,st=N.SAFE_FOR_TEMPLATES||!1,qt=N.SAFE_FOR_XML!==!1,ut=N.WHOLE_DOCUMENT||!1,Un=N.RETURN_DOM||!1,un=N.RETURN_DOM_FRAGMENT||!1,yn=N.RETURN_TRUSTED_TYPE||!1,zn=N.FORCE_BODY||!1,Ut=N.SANITIZE_DOM!==!1,fn=N.SANITIZE_NAMED_PROPS||!1,ga=N.KEEP_CONTENT!==!1,jn=N.IN_PLACE||!1,at=kS(N.ALLOWED_URI_REGEXP)?N.ALLOWED_URI_REGEXP:lb,Qe=typeof N.NAMESPACE=="string"?N.NAMESPACE:Ke,bt=bn(N,"MATHML_TEXT_INTEGRATION_POINTS")&&N.MATHML_TEXT_INTEGRATION_POINTS&&typeof N.MATHML_TEXT_INTEGRATION_POINTS=="object"?Mn(N.MATHML_TEXT_INTEGRATION_POINTS):ot({},Rt),Vn=bn(N,"HTML_INTEGRATION_POINTS")&&N.HTML_INTEGRATION_POINTS&&typeof N.HTML_INTEGRATION_POINTS=="object"?Mn(N.HTML_INTEGRATION_POINTS):ot({},In);const U=bn(N,"CUSTOM_ELEMENT_HANDLING")&&N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING=="object"?Mn(N.CUSTOM_ELEMENT_HANDLING):Ul(null);if(He=Ul(null),bn(U,"tagNameCheck")&&Bt(U.tagNameCheck)&&(He.tagNameCheck=U.tagNameCheck),bn(U,"attributeNameCheck")&&Bt(U.attributeNameCheck)&&(He.attributeNameCheck=U.attributeNameCheck),bn(U,"allowCustomizedBuiltInElements")&&typeof U.allowCustomizedBuiltInElements=="boolean"&&(He.allowCustomizedBuiltInElements=U.allowCustomizedBuiltInElements),Tn(He),st&&(Ln=!1),un&&(Un=!0),Bn&&(Ce=ot({},nb),Ge=Ul(null),Bn.html===!0&&(ot(Ce,tb),ot(Ge,ab)),Bn.svg===!0&&(ot(Ce,Ef),ot(Ge,Nf),ot(Ge,eo)),Bn.svgFilters===!0&&(ot(Ce,_f),ot(Ge,Nf),ot(Ge,eo)),Bn.mathMl===!0&&(ot(Ce,Sf),ot(Ge,ib),ot(Ge,eo))),Qt.tagCheck=null,Qt.attributeCheck=null,bn(N,"ADD_TAGS")&&(typeof N.ADD_TAGS=="function"?Qt.tagCheck=N.ADD_TAGS:Li(N.ADD_TAGS)&&(Ce===We&&(Ce=Mn(Ce)),ot(Ce,N.ADD_TAGS,re))),bn(N,"ADD_ATTR")&&(typeof N.ADD_ATTR=="function"?Qt.attributeCheck=N.ADD_ATTR:Li(N.ADD_ATTR)&&(Ge===Xt&&(Ge=Mn(Ge)),ot(Ge,N.ADD_ATTR,re))),bn(N,"ADD_URI_SAFE_ATTR")&&Li(N.ADD_URI_SAFE_ATTR)&&ot(O,N.ADD_URI_SAFE_ATTR,re),bn(N,"FORBID_CONTENTS")&&Li(N.FORBID_CONTENTS)&&(Ie===dn&&(Ie=Mn(Ie)),ot(Ie,N.FORBID_CONTENTS,re)),bn(N,"ADD_FORBID_CONTENTS")&&Li(N.ADD_FORBID_CONTENTS)&&(Ie===dn&&(Ie=Mn(Ie)),ot(Ie,N.ADD_FORBID_CONTENTS,re)),ga&&(Ce["#text"]=!0),ut&&ot(Ce,["html","head","body"]),Ce.table&&(ot(Ce,["tbody"]),delete ct.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 J=ne;ne=N.TRUSTED_TYPES_POLICY;try{C=he("")}catch(Te){throw ne=J,Te}}else N.TRUSTED_TYPES_POLICY===null?(ne=void 0,C=""):(ne===void 0&&(ne=pe()),ne&&typeof C=="string"&&(C=he("")));Nn&&Nn(N),we=N},$t=ot({},[...Ef,..._f,...CS]),$n=ot({},[...Sf,...MS]),St=function(N,U,J){return U.namespaceURI===Ke?N==="svg":U.namespaceURI===me?N==="svg"&&(J==="annotation-xml"||bt[J]):!!$t[N]},On=function(N,U,J){return U.namespaceURI===Ke?N==="math":U.namespaceURI===Me?N==="math"&&Vn[J]:!!$n[N]},wa=function(N,U,J){return U.namespaceURI===Me&&!Vn[J]||U.namespaceURI===me&&!bt[J]?!1:!$n[N]&&(ba[N]||!$t[N])},xa=function(N){let U=k(N);(!U||!U.tagName)&&(U={namespaceURI:Qe,tagName:"template"});const J=js(N.tagName),Te=js(U.tagName);return Ee[N.namespaceURI]?N.namespaceURI===Me?St(J,U,Te):N.namespaceURI===me?On(J,U,Te):N.namespaceURI===Ke?wa(J,U,Te):!!(rn==="application/xhtml+xml"&&Ee[N.namespaceURI]):!1},vt=function(N){Ll(a.removed,{element:N});try{k(N).removeChild(N)}catch{if(T(N),!k(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")}},Ua=function(N){fe(N);const U=x(N);if(U){const Te=[];Dl(U,Ae=>{Ll(Te,Ae)}),Dl(Te,Ae=>{try{T(Ae)}catch{}})}const J=L(N);if(J)for(let Te=J.length-1;Te>=0;--Te){const Ae=J[Te],Be=Ae&&Ae.name;if(typeof Be=="string")try{N.removeAttribute(Be)}catch{}}},Hn=function(N,U){try{Ll(a.removed,{attribute:U.getAttributeNode(N),from:U})}catch{Ll(a.removed,{attribute:null,from:U})}if(U.removeAttribute(N),N==="is")if(Un||un)try{vt(U)}catch{}else try{U.setAttribute(N,"")}catch{}},ya=function(N){const U=L(N);if(U)for(let J=U.length-1;J>=0;--J){const Te=U[J],Ae=Te&&Te.name;if(!(typeof Ae!="string"||Ge[re(Ae)]))try{N.removeAttribute(Ae)}catch{}}},fe=function(N){const U=[N];for(;U.length>0;){const J=U.pop();(le?le(J):J.nodeType)===la.element&&ya(J);const Ae=x(J);if(Ae)for(let Be=Ae.length-1;Be>=0;--Be)U.push(Ae[Be])}},Oe=function(N){if(!qt)return;const U=[N];for(;U.length>0;){const J=U.pop(),Te=le?le(J):J.nodeType;if(Te===la.processingInstruction||Te===la.comment&&gn(rb,J.data)){try{T(J)}catch{}continue}if(Te===la.element){const Be=J,Je=re(K?K(J):J.nodeName);try{Be.hasAttribute&&Be.hasAttribute("patchsrc")&&Be.removeAttribute("patchsrc"),Be.hasAttribute&&Be.hasAttribute("for")&&Je!=="label"&&Je!=="output"&&Be.removeAttribute("for")}catch{}}const Ae=x(J);if(Ae)for(let Be=Ae.length-1;Be>=0;--Be)U.push(Ae[Be])}},Pe=function(N){let U=null,J=null;if(zn)N="<remove></remove>"+N;else{const Be=Vg(N,/^[\r\n\t ]+/);J=Be&&Be[0]}rn==="application/xhtml+xml"&&Qe===Ke&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Te=ne?he(N):N;if(Qe===Ke)try{U=new y().parseFromString(Te,rn)}catch{}if(!U||!U.documentElement){U=ae.createDocument(Qe,"template",null);try{U.documentElement.innerHTML=Ne?C:Te}catch{}}const Ae=U.body||U.documentElement;return N&&J&&Ae.insertBefore(r.createTextNode(J),Ae.childNodes[0]||null),Qe===Ke?Se.call(U,ut?"html":"body")[0]:ut?U.documentElement:Ae},ft=function(N){const U=P?P(N):N.ownerDocument;return ce.call(U||N,N,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},kt=function(N){return N=Ls(N,H," "),N=Ls(N,ue," "),N=Ls(N,W," "),N},Vt=function(N){var U;N.normalize();const J=P?P(N):N.ownerDocument,Te=ce.call(J||N,N,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let Ae=Te.nextNode();for(;Ae;)Ae.data=kt(Ae.data),Ae=Te.nextNode();const Be=(U=N.querySelectorAll)===null||U===void 0?void 0:U.call(N,"template");Be&&Dl(Be,Je=>{Yt(Je.content)&&Vt(Je.content)})},pn=function(N){const U=K?K(N):null;return typeof U!="string"||re(U)!=="form"?!1:typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||N.attributes!==L(N)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function"||N.nodeType!==le(N)||N.childNodes!==x(N)},Yt=function(N){if(!le||typeof N!="object"||N===null)return!1;try{return le(N)===la.documentFragment}catch{return!1}},dt=function(N){if(!le||typeof N!="object"||N===null)return!1;try{return typeof le(N)=="number"}catch{return!1}};function Lt(V,N,U){V.length!==0&&Dl(V,J=>{J.call(a,N,U,we)})}const nl=function(N,U){return!!(qt&&N.hasChildNodes()&&!dt(N.firstElementChild)&&gn(sb,N.textContent)&&gn(sb,N.innerHTML)||qt&&N.namespaceURI===Ke&&U==="style"&&dt(N.firstElementChild)||N.nodeType===la.processingInstruction||qt&&N.nodeType===la.comment&&gn(rb,N.data))},ii=function(N,U,J){if(!ct[U]&&si(U)&&(He.tagNameCheck instanceof RegExp&&gn(He.tagNameCheck,U)||He.tagNameCheck instanceof Function&&He.tagNameCheck(U)))return!1;if(ga&&!Ie[U]){const Te=k(N),Ae=x(N);if(Ae&&Te){const Be=Ae.length;for(let Je=Be-1;Je>=0;--Je){const oe=N===J?w(Ae[Je],!0):Ae[Je];Te.insertBefore(oe,A(N))}}}return vt(N),!0},li=function(N,U,J,Te){return N.length===0?U:U===J||U===Te?Mn(U):U},ja=function(N,U){if(Lt(D.beforeSanitizeElements,N,null),N!==U&&k(N)===null)return jn&&fe(N),!0;if(pn(N))return vt(N),!0;const J=re(K?K(N):N.nodeName);if(Ce=li(D.uponSanitizeElement,Ce,We,xn),Lt(D.uponSanitizeElement,N,{tagName:J,allowedTags:Ce}),N!==U&&k(N)===null)return jn&&fe(N),!0;if(nl(N,J))return vt(N),!0;if(ct[J]||!(Qt.tagCheck instanceof Function&&Qt.tagCheck(J))&&!Ce[J]){const Ae=ii(N,J,U);return Ae===!1&&Lt(D.afterSanitizeElements,N,null),Ae}if((le?le(N):N.nodeType)===la.element&&!xa(N)||(J==="noscript"||J==="noembed"||J==="noframes")&&gn(GS,N.innerHTML))return vt(N),!0;if(st&&N.nodeType===la.text){const Ae=kt(N.textContent);N.textContent!==Ae&&(Ll(a.removed,{element:N.cloneNode()}),N.textContent=Ae)}return Lt(D.afterSanitizeElements,N,null),!1},al=function(N,U,J){if(wn[U]||qt&&U==="patchsrc"||qt&&U==="for"&&N!=="label"&&N!=="output"||Ut&&(U==="id"||U==="name")&&(J in r||J in mt))return!1;const Te=Ge[U]||Qt.attributeCheck instanceof Function&&Qt.attributeCheck(U,N);if(!(Ln&&gn(be,U))){if(!(Dt&&gn(ge,U))){if(Te){if(!O[U]){if(!gn(at,Ls(J,ze,""))){if(!((U==="src"||U==="xlink:href"||U==="href")&&N!=="script"&&Wg(J,"data:")===0&&hn[N])){if(!(sa&&!gn(Le,Ls(J,ze,"")))){if(J)return!1}}}}}else if(!(si(N)&&(He.tagNameCheck instanceof RegExp&&gn(He.tagNameCheck,N)||He.tagNameCheck instanceof Function&&He.tagNameCheck(N))&&(He.attributeNameCheck instanceof RegExp&&gn(He.attributeNameCheck,U)||He.attributeNameCheck instanceof Function&&He.attributeNameCheck(U,N))||U==="is"&&He.allowCustomizedBuiltInElements&&(He.tagNameCheck instanceof RegExp&&gn(He.tagNameCheck,J)||He.tagNameCheck instanceof Function&&He.tagNameCheck(J))))return!1}}return!0},kn=ot({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),si=function(N){return!kn[js(N)]&&gn($e,N)},Ba=function(N,U,J,Te){if(ne&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!J)switch(v.getAttributeType(N,U)){case"TrustedHTML":return he(Te);case"TrustedScriptURL":return _e(Te)}return Te},ri=function(N,U,J,Te){try{J?N.setAttributeNS(J,U,Te):N.setAttribute(U,Te),pn(N)?vt(N):Qg(a.removed)}catch{Hn(U,N)}},Wt=function(N){Lt(D.beforeSanitizeAttributes,N,null);const U=N.attributes;if(!U||pn(N))return;Ge=li(D.uponSanitizeAttribute,Ge,Xt,An);const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ge,forceKeepAttr:void 0};let Te=U.length;const Ae=re(N.nodeName);for(;Te--;){const Be=U[Te],Je=Be.name,oe=Be.namespaceURI,ye=Be.value,ke=re(Je),Xe=ye;let Ve=Je==="value"?Xe:TS(Xe);if(J.attrName=ke,J.attrValue=Ve,J.keepAttr=!0,J.forceKeepAttr=void 0,Lt(D.uponSanitizeAttribute,N,J),Ve=J.attrValue,fn&&(ke==="id"||ke==="name")&&Wg(Ve,jt)!==0&&(Hn(Je,N),Ve=jt+Ve),qt&&gn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ve)){Hn(Je,N);continue}if(ke==="attributename"&&Vg(Ve,"href")){Hn(Je,N);continue}if(!J.forceKeepAttr){if(!J.keepAttr){Hn(Je,N);continue}if(!Qn&&gn($S,Ve)){Hn(Je,N);continue}if(st&&(Ve=kt(Ve)),!al(Ae,ke,Ve)){Hn(Je,N);continue}Ve=Ba(Ae,ke,oe,Ve),Ve!==Xe&&ri(N,Je,oe,Ve)}}Lt(D.afterSanitizeAttributes,N,null)},Ia=function(N){let U=null;const J=ft(N);for(Lt(D.beforeSanitizeShadowDOM,N,null);U=J.nextNode();)if(Lt(D.uponSanitizeShadowNode,U,null),ja(U,N),Wt(U),Yt(U.content)&&Ia(U.content),(le?le(U):U.nodeType)===la.element){const Ae=I(U);Yt(Ae)&&(Aa(Ae),Ia(Ae))}Lt(D.afterSanitizeShadowDOM,N,null)},Aa=function(N){const U=[{node:N,shadow:null}];for(;U.length>0;){const J=U.pop();if(J.shadow){Ia(J.shadow);continue}const Te=J.node,Be=(le?le(Te):Te.nodeType)===la.element,Je=x(Te);if(Je)for(let oe=Je.length-1;oe>=0;--oe)U.push({node:Je[oe],shadow:null});if(Be){const oe=K?K(Te):null;if(typeof oe=="string"&&re(oe)==="template"){const ye=Te.content;Yt(ye)&&U.push({node:ye,shadow:null})}}if(Be){const oe=I(Te);Yt(oe)&&U.push({node:null,shadow:oe},{node:oe,shadow:null})}}};return a.sanitize=function(V){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=null,J=null,Te=null,Ae=null;if(Ne=!V,Ne&&(V="<!-->"),typeof V!="string"&&!dt(V)&&(V=OS(V),typeof V!="string"))throw Wi("dirty is not a string, aborting");if(!a.isSupported)return V;cn?(Ce=xn,Ge=An):Rn(N),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(Ce=Mn(Ce)),D.uponSanitizeAttribute.length>0&&(Ge=Mn(Ge)),a.removed=[];const Be=jn&&typeof V!="string"&&dt(V);if(Be){Oe(V);const ye=K?K(V):V.nodeName;if(typeof ye=="string"){const ke=re(ye);if(!Ce[ke]||ct[ke])throw Ua(V),Wi("root node is forbidden and cannot be sanitized in-place")}if(pn(V))throw Ua(V),Wi("root node is clobbered and cannot be sanitized in-place");try{Aa(V)}catch(ke){throw Ua(V),ke}}else if(dt(V))U=Pe("<!---->"),J=U.ownerDocument.importNode(V,!0),J.nodeType===la.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?U=J:U.appendChild(J),Aa(J);else{if(!Un&&!st&&!ut&&V.indexOf("<")===-1)return ne&&yn?he(V):V;if(U=Pe(V),!U)return Un?null:yn?C:""}U&&zn&&vt(U.firstChild);const Je=Be?V:U;try{const ye=ft(Je);for(;Te=ye.nextNode();)ja(Te,Je),Wt(Te),Yt(Te.content)&&Ia(Te.content)}catch(ye){throw Be&&(Ua(V),Dl(a.removed,ke=>{ke.element&&fe(ke.element)})),ye}if(Be)return Dl(a.removed,ye=>{ye.element&&fe(ye.element)}),st&&Vt(V),V;if(Un){if(st&&Vt(U),un)for(Ae=ve.call(U.ownerDocument);U.firstChild;)Ae.appendChild(U.firstChild);else Ae=U;return(Ge.shadowroot||Ge.shadowrootmode)&&(Ae=S.call(l,Ae,!0)),Ae}let oe=ut?U.outerHTML:U.innerHTML;return ut&&Ce["!doctype"]&&U.ownerDocument&&U.ownerDocument.doctype&&U.ownerDocument.doctype.name&&gn(HS,U.ownerDocument.doctype.name)&&(oe="<!DOCTYPE "+U.ownerDocument.doctype.name+`>
175
- `+oe),st&&(oe=kt(oe)),ne&&yn?he(oe):oe},a.setConfig=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rn(V),cn=!0,xn=Ce,An=Ge},a.clearConfig=function(){we=null,cn=!1,xn=null,An=null,ne=z,C=""},a.isValidAttribute=function(V,N,U){we||Rn({});const J=re(V),Te=re(N);return al(J,Te,U)},a.addHook=function(V,N){typeof N=="function"&&bn(D,V)&&Ll(D[V],N)},a.removeHook=function(V,N){if(bn(D,V)){if(N!==void 0){const U=SS(D[V],N);return U===-1?void 0:NS(D[V],U,1)[0]}return Qg(D[V])}},a.removeHooks=function(V){bn(D,V)&&(D[V]=[])},a.removeAllHooks=function(){D=ob()},a}var KS=Zb();function Qf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var tl=Qf();function Xb(s){tl=s}var Ji={exec:()=>null};function zl(s){let a=[];return r=>{let l=Math.max(0,Math.min(3,r-1)),u=a[l];return u||(u=s(l),a[l]=u),u}}function nt(s,a=""){let r=typeof s=="string"?s:s.source,l={replace:(u,d)=>{let p=typeof d=="string"?d:d.source;return p=p.replace(Dn.caret,"$1"),r=r.replace(u,p),l},getRegex:()=>new RegExp(r,a)};return l}var PS=((s="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+s)}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:s=>new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:zl(s=>new RegExp(`^ {0,${s}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:zl(s=>new RegExp(`^ {0,${s}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:zl(s=>new RegExp(`^ {0,${s}}(?:\`\`\`|~~~)`)),headingBeginRegex:zl(s=>new RegExp(`^ {0,${s}}#`)),htmlBeginRegex:zl(s=>new RegExp(`^ {0,${s}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:zl(s=>new RegExp(`^ {0,${s}}>`))},ZS=/^(?:[ \t]*(?:\n|$))+/,XS=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,QS=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Gs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,VS=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Vf=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Qb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Vb=nt(Qb).replace(/bull/g,Vf).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(),WS=nt(Qb).replace(/bull/g,Vf).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(),Wf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,JS=/^[^\n]+/,Jf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,eN=nt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Jf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),tN=nt(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Vf).getRegex(),bo="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",ed=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,nN=nt("^ {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",ed).replace("tag",bo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Wb=s=>nt(Wf).replace("hr",Gs).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",s).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bo).getRegex(),aN=Wb(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),iN=Wb(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),lN=nt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",iN).getRegex(),td={blockquote:lN,code:XS,def:eN,fences:QS,heading:VS,hr:Gs,html:nN,lheading:Vb,list:tN,newline:ZS,paragraph:aN,table:Ji,text:JS},cb=nt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Gs).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",bo).getRegex(),sN={...td,lheading:WS,table:cb,paragraph:nt(Wf).replace("hr",Gs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",cb).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",bo).getRegex()},rN={...td,html:nt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ed).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:Ji,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:nt(Wf).replace("hr",Gs).replace("heading",` *#{1,6} *[^
176
- ]`).replace("lheading",Vb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},oN=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,cN=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Jb=/^( {2,}|\\)\n(?!\s*$)/,uN=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ai=/[\p{P}\p{S}]/u,ql=/[\s\p{P}\p{S}]/u,$s=/[^\s\p{P}\p{S}]/u,fN=nt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ql).getRegex(),dN=/[\p{Pi}\p{Ps}"']/u,ey=/(?!~)[\p{P}\p{S}]/u,hN=/(?!~)[\s\p{P}\p{S}]/u,pN=/(?:[^\s\p{P}\p{S}]|~)/u,mN=nt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",PS?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ty=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,gN=nt(ty,"u").replace(/punct/g,ai).getRegex(),bN=nt(ty,"u").replace(/punct/g,ey).getRegex(),yN=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,vN=nt(yN,"u").replace(/openQuote/g,dN).replace(/punct/g,ai).getRegex(),ny="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",EN=nt(ny,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ai).getRegex(),_N=nt(ny,"gu").replace(/notPunctSpace/g,pN).replace(/punctSpace/g,hN).replace(/punct/g,ey).getRegex(),SN="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",NN=nt(SN,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ai).getRegex(),TN=nt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ai).getRegex(),wN="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",xN=nt(wN,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ai).getRegex(),AN=nt(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ai).getRegex(),RN="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",ON=nt(RN,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ai).getRegex(),kN=nt(/\\(punct)/,"gu").replace(/punct/g,ai).getRegex(),CN=nt(/^<(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(),MN=nt(ed).replace("(?:-->|$)","-->").getRegex(),DN=nt("^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",MN).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),uo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,LN=nt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",uo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ay=nt(/^!?\[(label)\]\[(ref)\]/).replace("label",uo).replace("ref",Jf).getRegex(),iy=nt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Jf).getRegex(),zN=nt("reflink|nolink(?!\\()","g").replace("reflink",ay).replace("nolink",iy).getRegex(),ub=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,nd={_backpedal:Ji,anyPunctuation:kN,autolink:CN,blockSkip:mN,br:Jb,code:cN,del:Ji,delLDelim:Ji,delRDelim:Ji,emStrongLDelim:gN,emStrongRDelimAst:EN,emStrongRDelimUnd:TN,escape:oN,link:LN,nolink:iy,punctuation:fN,reflink:ay,reflinkSearch:zN,tag:DN,text:uN,url:Ji},UN={...nd,emStrongLDelim:vN,emStrongRDelimAst:NN,emStrongRDelimUnd:xN,link:nt(/^!?\[(label)\]\((.*?)\)/).replace("label",uo).getRegex(),reflink:nt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",uo).getRegex()},Mf={...nd,emStrongRDelimAst:_N,emStrongLDelim:bN,delLDelim:AN,delRDelim:ON,url:nt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ub).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:nt(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ub).getRegex()},jN={...Mf,br:nt(Jb).replace("{2,}","*").getRegex(),text:nt(Mf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},to={normal:td,gfm:sN,pedantic:rN},Us={normal:nd,gfm:Mf,breaks:jN,pedantic:UN},BN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fb=s=>BN[s];function Da(s,a){if(a){if(Dn.escapeTest.test(s))return s.replace(Dn.escapeReplace,fb)}else if(Dn.escapeTestNoEncode.test(s))return s.replace(Dn.escapeReplaceNoEncode,fb);return s}function db(s){try{s=encodeURI(s).replace(Dn.percentDecode,"%")}catch{return null}return s}function hb(s,a){var d;let r=s.replace(Dn.findPipe,(p,b,g)=>{let m=!1,y=b;for(;--y>=0&&g[y]==="\\";)m=!m;return m?"|":" |"}),l=r.split(Dn.splitPipe),u=0;if(l[0].trim()||l.shift(),l.length>0&&!((d=l.at(-1))!=null&&d.trim())&&l.pop(),a)if(l.length>a)l.splice(a);else for(;l.length<a;)l.push("");for(;u<l.length;u++)l[u]=l[u].trim().replace(Dn.slashPipe,"|");return l}function Mi(s,a,r){let l=s.length;if(l===0)return"";let u=0;for(;u<l&&s.charAt(l-u-1)===a;)u++;return s.slice(0,l-u)}function pb(s){let a=s.split(`
177
- `),r=a.length-1;for(;r>=0&&Dn.blankLine.test(a[r]);)r--;return a.length-r<=2?s:a.slice(0,r+1).join(`
178
- `)}function IN(s,a){if(s.indexOf(a[1])===-1)return-1;let r=0;for(let l=0;l<s.length;l++)if(s[l]==="\\")l++;else if(s[l]===a[0])r++;else if(s[l]===a[1]&&(r--,r<0))return l;return r>0?-2:-1}function HN(s,a=0){let r=a,l="";for(let u of s)if(u===" "){let d=4-r%4;l+=" ".repeat(d),r+=d}else l+=u,r++;return l}function mb(s,a,r,l,u){let d=a.href,p=a.title||null,b=s[1].replace(u.other.outputLinkReplace,"$1");l.state.inLink=!0;let g={type:s[0].charAt(0)==="!"?"image":"link",raw:r,href:d,title:p,text:b,tokens:l.inlineTokens(b)};return l.state.inLink=!1,g}function qN(s,a,r){let l=s.match(r.other.indentCodeCompensation);if(l===null)return a;let u=l[1];return a.split(`
179
- `).map(d=>{let p=d.match(r.other.beginningSpace);if(p===null)return d;let[b]=p;return b.length>=u.length?d.slice(u.length):d}).join(`
180
- `)}var fo=class{constructor(s){xt(this,"options");xt(this,"rules");xt(this,"lexer");this.options=s||tl}space(s){let a=this.rules.block.newline.exec(s);if(a&&a[0].length>0)return{type:"space",raw:a[0]}}code(s){let a=this.rules.block.code.exec(s);if(a){let r=this.options.pedantic?a[0]:pb(a[0]),l=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:l}}}fences(s){let a=this.rules.block.fences.exec(s);if(a){let r=a[0],l=qN(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:l}}}heading(s){let a=this.rules.block.heading.exec(s);if(a){let r=a[2].trim();if(this.rules.other.endingHash.test(r)){let l=Mi(r,"#");(this.options.pedantic||!l||this.rules.other.endingSpaceChar.test(l))&&(r=l.trim())}return{type:"heading",raw:Mi(a[0],`
181
- `),depth:a[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(s){let a=this.rules.block.hr.exec(s);if(a)return{type:"hr",raw:Mi(a[0],`
182
- `)}}blockquote(s){let a=this.rules.block.blockquote.exec(s);if(a){let r=Mi(a[0],`
183
- `).split(`
184
- `),l="",u="",d=[];for(;r.length>0;){let p=!1,b=[],g;for(g=0;g<r.length;g++)if(this.rules.other.blockquoteStart.test(r[g]))b.push(r[g]),p=!0;else if(!p)b.push(r[g]);else break;r=r.slice(g);let m=b.join(`
185
- `),y=m.replace(this.rules.other.blockquoteSetextReplace,`
186
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");l=l?`${l}
187
- ${m}`:m,u=u?`${u}
188
- ${y}`:y;let v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(y,d,!0),this.lexer.state.top=v,r.length===0)break;let _=d.at(-1);if((_==null?void 0:_.type)==="code")break;if((_==null?void 0:_.type)==="blockquote"){let w=_,T=r.join(`
189
- `),A=w.raw+`
190
- `+T.replace(this.rules.other.blockquoteSetextReplace2,""),x=this.blockquote(A);d[d.length-1]=x,l=`${l}
191
- ${T}`,u=u.substring(0,u.length-w.text.length)+x.text;break}else if((_==null?void 0:_.type)==="list"){let w=_,T=w.raw+`
192
- `+r.join(`
193
- `),A=this.list(T);d[d.length-1]=A,l=l.substring(0,l.length-_.raw.length)+A.raw,u=u.substring(0,u.length-w.raw.length)+A.raw,r=T.substring(d.at(-1).raw.length).split(`
194
- `);continue}}return{type:"blockquote",raw:l,tokens:d,text:u}}}list(s){let a=this.rules.block.list.exec(s);if(a){let r=a[1].trim(),l=r.length>1,u={type:"list",raw:"",ordered:l,start:l?+r.slice(0,-1):"",loose:!1,items:[]};r=l?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=l?r:"[*+-]");let d=this.rules.other.listItemRegex(r),p=!1;for(;s;){let g=!1,m="",y="";if(!(a=d.exec(s))||this.rules.block.hr.test(s))break;m=a[0],s=s.substring(m.length);let v=HN(a[2].split(`
195
- `,1)[0],a[1].length),_=s.split(`
196
- `,1)[0],w=!v.trim(),T=0;if(this.options.pedantic?(T=2,y=v.trimStart()):w?T=a[1].length+1:(T=v.search(this.rules.other.nonSpaceChar),T=T>4?1:T,y=v.slice(T),T+=a[1].length),w&&this.rules.other.blankLine.test(_)&&(m+=_+`
197
- `,s=s.substring(_.length+1),g=!0),!g){let A=this.rules.other.nextBulletRegex(T),x=this.rules.other.hrRegex(T),k=this.rules.other.fencesBeginRegex(T),I=this.rules.other.headingBeginRegex(T),L=this.rules.other.htmlBeginRegex(T),le=this.rules.other.blockquoteBeginRegex(T);for(;s;){let K=s.split(`
198
- `,1)[0],P;if(_=K,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting," "),P=_):P=_.replace(this.rules.other.tabCharGlobal," "),k.test(_)||I.test(_)||L.test(_)||le.test(_)||A.test(_)||x.test(_))break;if(P.search(this.rules.other.nonSpaceChar)>=T||!_.trim())y+=`
199
- `+P.slice(T);else{if(w||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(v)||I.test(v)||x.test(v))break;y+=`
200
- `+_}w=!_.trim(),m+=K+`
201
- `,s=s.substring(K.length+1),v=P.slice(T)}}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(y),loose:!1,text:y,tokens:[]}),u.raw+=m}let b=u.items.at(-1);if(b)b.raw=b.raw.trimEnd(),b.text=b.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"),y=m.length>0&&m.some(v=>this.rules.other.anyLine.test(v.raw));u.loose=y}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 y=this.rules.other.listTaskCheckbox.exec(g.raw);if(y){let v={type:"checkbox",raw:y[0]+" ",checked:y[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(s){let a=this.rules.block.html.exec(s);if(a){let r=pb(a[0]);return{type:"html",block:!0,raw:r,pre:a[1]==="pre"||a[1]==="script"||a[1]==="style",text:r}}}def(s){let a=this.rules.block.def.exec(s);if(a){let r=a[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),l=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:Mi(a[0],`
202
- `),href:l,title:u}}}table(s){var p;let a=this.rules.block.table.exec(s);if(!a||!this.rules.other.tableDelimiter.test(a[2]))return;let r=hb(a[1]),l=a[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=(p=a[3])!=null&&p.trim()?a[3].replace(this.rules.other.tableRowBlankLine,"").split(`
203
- `):[],d={type:"table",raw:Mi(a[0],`
204
- `),header:[],align:[],rows:[]};if(r.length===l.length){for(let b of l)this.rules.other.tableAlignRight.test(b)?d.align.push("right"):this.rules.other.tableAlignCenter.test(b)?d.align.push("center"):this.rules.other.tableAlignLeft.test(b)?d.align.push("left"):d.align.push(null);for(let b=0;b<r.length;b++)d.header.push({text:r[b],tokens:this.lexer.inline(r[b]),header:!0,align:d.align[b]});for(let b of u)d.rows.push(hb(b,d.header.length).map((g,m)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:d.align[m]})));return d}}lheading(s){let a=this.rules.block.lheading.exec(s);if(a){let r=a[1].trim();return{type:"heading",raw:Mi(a[0],`
205
- `),depth:a[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(s){let a=this.rules.block.paragraph.exec(s);if(a){let r=a[1].charAt(a[1].length-1)===`
206
- `?a[1].slice(0,-1):a[1];return{type:"paragraph",raw:a[0],text:r,tokens:this.lexer.inline(r)}}}text(s){let a=this.rules.block.text.exec(s);if(a)return{type:"text",raw:a[0],text:a[0],tokens:this.lexer.inline(a[0])}}escape(s){let a=this.rules.inline.escape.exec(s);if(a)return{type:"escape",raw:a[0],text:a[1]}}tag(s){let a=this.rules.inline.tag.exec(s);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(s){let a=this.rules.inline.link.exec(s);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 d=Mi(r.slice(0,-1),"\\");if((r.length-d.length)%2===0)return}else{let d=IN(a[2],"()");if(d===-2)return;if(d>-1){let p=(a[0].indexOf("!")===0?5:4)+a[1].length+d;a[2]=a[2].substring(0,d),a[0]=a[0].substring(0,p).trim(),a[3]=""}}let l=a[2],u="";if(this.options.pedantic){let d=this.rules.other.pedanticHrefTitle.exec(l);d&&(l=d[1],u=d[3])}else u=a[3]?a[3].slice(1,-1):"";return l=l.trim(),this.rules.other.startAngleBracket.test(l)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?l=l.slice(1):l=l.slice(1,-1)),mb(a,{href:l&&l.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},a[0],this.lexer,this.rules)}}reflink(s,a){let r;if((r=this.rules.inline.reflink.exec(s))||(r=this.rules.inline.nolink.exec(s))){let l=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=a[l.toLowerCase()];if(!u){let d=r[0].charAt(0);return{type:"text",raw:d,text:d}}return mb(r,u,r[0],this.lexer,this.rules)}}emStrong(s,a,r=""){let l=this.rules.inline.emStrongLDelim.exec(s);if(!(!l||!l[1]&&!l[2]&&!l[3]&&!l[4]||l[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(l[1]||l[3])||!r||this.rules.inline.punctuation.exec(r))){let u=[...l[0]].length-1,d,p,b=u,g=0,m=l[0][0],y=r===m,v=m==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,a=a.slice(-1*s.length+u);(l=v.exec(a))!==null;){if(d=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!d)continue;if(p=[...d].length,l[3]||l[4]){b+=p;continue}else if(l[5]||l[6]){if(u%3&&!((u+p)%3)){g+=p;continue}if(y)break}if(b-=p,b>0)continue;p=Math.min(p,p+b+g);let _=[...l[0]][0].length,w=s.slice(0,u+l.index+_+p);if(Math.min(u,p)%2){let A=w.slice(1,-1);return{type:"em",raw:w,text:A,tokens:this.lexer.inlineTokens(A)}}let T=w.slice(2,-2);return{type:"strong",raw:w,text:T,tokens:this.lexer.inlineTokens(T)}}}}codespan(s){let a=this.rules.inline.code.exec(s);if(a){let r=a[2].replace(this.rules.other.newLineCharGlobal," "),l=this.rules.other.nonSpaceChar.test(r),u=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return l&&u&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:a[0],text:r}}}br(s){let a=this.rules.inline.br.exec(s);if(a)return{type:"br",raw:a[0]}}del(s,a,r=""){let l=this.rules.inline.delLDelim.exec(s);if(l&&(!l[1]||!r||this.rules.inline.punctuation.exec(r))){let u=[...l[0]].length-1,d,p,b=u,g=this.rules.inline.delRDelim;for(g.lastIndex=0,a=a.slice(-1*s.length+u);(l=g.exec(a))!==null;){if(d=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!d||(p=[...d].length,p!==u))continue;if(l[3]||l[4]){b+=p;continue}if(b-=p,b>0)continue;p=Math.min(p,p+b);let m=[...l[0]][0].length,y=s.slice(0,u+l.index+m+p),v=y.slice(u,-u);return{type:"del",raw:y,text:v,tokens:this.lexer.inlineTokens(v)}}}}autolink(s){let a=this.rules.inline.autolink.exec(s);if(a){let r,l;return a[2]==="@"?(r=a[1],l="mailto:"+r):(r=a[1],l=r),{type:"link",raw:a[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}url(s){var r;let a;if(a=this.rules.inline.url.exec(s)){let l,u;if(a[2]==="@")l=a[0],u="mailto:"+l;else{let d;do d=a[0],a[0]=((r=this.rules.inline._backpedal.exec(a[0]))==null?void 0:r[0])??"";while(d!==a[0]);l=a[0],a[1]==="www."?u="http://"+a[0]:u=a[0]}return{type:"link",raw:a[0],text:l,href:u,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(s){let a=this.rules.inline.text.exec(s);if(a){let r=this.lexer.state.inRawBlock;return{type:"text",raw:a[0],text:a[0],escaped:r}}}},Na=class Df{constructor(a){xt(this,"tokens");xt(this,"options");xt(this,"state");xt(this,"inlineQueue");xt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=a||tl,this.options.tokenizer=this.options.tokenizer||new fo,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:to.normal,inline:Us.normal};this.options.pedantic?(r.block=to.pedantic,r.inline=Us.pedantic):this.options.gfm&&(r.block=to.gfm,this.options.breaks?r.inline=Us.breaks:r.inline=Us.gfm),this.tokenizer.rules=r}static get rules(){return{block:to,inline:Us}}static lex(a,r){return new Df(r).lex(a)}static lexInline(a,r){return new Df(r).inlineTokens(a)}lex(a){a=a.replace(Dn.carriageReturn,`
207
- `),this.blockTokens(a,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let l=this.inlineQueue[r];this.inlineTokens(l.src,l.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(a,r=[],l=!1){var d,p,b;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=(d=this.options.extensions)==null?void 0:d.block)!=null&&p.some(y=>(g=y.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 y=r.at(-1);g.raw.length===1&&y!==void 0?y.raw+=`
208
- `:r.push(g);continue}if(g=this.tokenizer.code(a)){a=a.substring(g.raw.length);let y=r.at(-1);(y==null?void 0:y.type)==="paragraph"||(y==null?void 0:y.type)==="text"?(y.raw+=(y.raw.endsWith(`
209
- `)?"":`
210
- `)+g.raw,y.text+=`
211
- `+g.text,this.inlineQueue.at(-1).src=y.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 y=r.at(-1);(y==null?void 0:y.type)==="paragraph"||(y==null?void 0:y.type)==="text"?(y.raw+=(y.raw.endsWith(`
212
- `)?"":`
213
- `)+g.raw,y.text+=`
214
- `+g.raw,this.inlineQueue.at(-1).src=y.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((b=this.options.extensions)!=null&&b.startBlock){let y=1/0,v=a.slice(1),_;this.options.extensions.startBlock.forEach(w=>{_=w.call({lexer:this},v),typeof _=="number"&&_>=0&&(y=Math.min(y,_))}),y<1/0&&y>=0&&(m=a.substring(0,y+1))}if(this.state.top&&(g=this.tokenizer.paragraph(m))){let y=r.at(-1);l&&(y==null?void 0:y.type)==="paragraph"?(y.raw+=(y.raw.endsWith(`
215
- `)?"":`
216
- `)+g.raw,y.text+=`
217
- `+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=y.text):r.push(g),l=m.length!==a.length,a=a.substring(g.raw.length);continue}if(g=this.tokenizer.text(a)){a=a.substring(g.raw.length);let y=r.at(-1);(y==null?void 0:y.type)==="text"?(y.raw+=(y.raw.endsWith(`
218
- `)?"":`
219
- `)+g.raw,y.text+=`
220
- `+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=y.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 b,g,m,y,v;this.tokenizer.lexer=this;let l=a;if(this.tokens.links){let _=Object.keys(this.tokens.links);_.length>0&&(l=l.replace(this.tokenizer.rules.inline.reflinkSearch,w=>_.includes(w.slice(w.lastIndexOf("[")+1,-1))?"["+"a".repeat(w.length-2)+"]":w))}l=l.replace(this.tokenizer.rules.inline.anyPunctuation,_=>"+".repeat(_.length)),l=l.replace(this.tokenizer.rules.inline.blockSkip,(_,w,T)=>{let A=T?T.length:0;return _.slice(0,A)+"["+"a".repeat(_.length-A-2)+"]"}),l=((g=(b=this.options.hooks)==null?void 0:b.emStrongMask)==null?void 0:g.call({lexer:this},l))??l;let u=!1,d="",p=1/0;for(;a;){if(a.length<p)p=a.length;else{this.infiniteLoopError(a.charCodeAt(0));break}u||(d=""),u=!1;let _;if((y=(m=this.options.extensions)==null?void 0:m.inline)!=null&&y.some(T=>(_=T.call({lexer:this},a,r))?(a=a.substring(_.raw.length),r.push(_),!0):!1))continue;if(_=this.tokenizer.escape(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.tag(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.link(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.reflink(a,this.tokens.links)){a=a.substring(_.raw.length);let T=r.at(-1);_.type==="text"&&(T==null?void 0:T.type)==="text"?(T.raw+=_.raw,T.text+=_.text):r.push(_);continue}if(_=this.tokenizer.emStrong(a,l,d)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.codespan(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.br(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.del(a,l,d)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.autolink(a)){a=a.substring(_.raw.length),r.push(_);continue}if(!this.state.inLink&&(_=this.tokenizer.url(a))){a=a.substring(_.raw.length),r.push(_);continue}let w=a;if((v=this.options.extensions)!=null&&v.startInline){let T=1/0,A=a.slice(1),x;this.options.extensions.startInline.forEach(k=>{x=k.call({lexer:this},A),typeof x=="number"&&x>=0&&(T=Math.min(T,x))}),T<1/0&&T>=0&&(w=a.substring(0,T+1))}if(_=this.tokenizer.inlineText(w)){a=a.substring(_.raw.length),_.raw.slice(-1)!=="_"&&(d=_.raw.slice(-1)),u=!0;let T=r.at(-1);(T==null?void 0:T.type)==="text"?(T.raw+=_.raw,T.text+=_.text):r.push(_);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)}},ho=class{constructor(s){xt(this,"options");xt(this,"parser");this.options=s||tl}space(s){return""}code({text:s,lang:a,escaped:r}){var d;let l=(d=(a||"").match(Dn.notSpaceStart))==null?void 0:d[0],u=s.replace(Dn.endingNewline,"")+`
221
- `;return l?'<pre><code class="language-'+Da(l)+'">'+(r?u:Da(u,!0))+`</code></pre>
222
- `:"<pre><code>"+(r?u:Da(u,!0))+`</code></pre>
223
- `}blockquote({tokens:s}){return`<blockquote>
224
- ${this.parser.parse(s)}</blockquote>
225
- `}html({text:s}){return s}def(s){return""}heading({tokens:s,depth:a}){return`<h${a}>${this.parser.parseInline(s)}</h${a}>
226
- `}hr(s){return`<hr>
227
- `}list(s){let a=s.ordered,r=s.start,l="";for(let p=0;p<s.items.length;p++){let b=s.items[p];l+=this.listitem(b)}let u=a?"ol":"ul",d=a&&r!==1?' start="'+r+'"':"";return"<"+u+d+`>
228
- `+l+"</"+u+`>
229
- `}listitem(s){return`<li>${this.parser.parse(s.tokens)}</li>
230
- `}checkbox({checked:s}){return"<input "+(s?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:s}){return`<p>${this.parser.parseInline(s)}</p>
231
- `}table(s){let a="",r="";for(let u=0;u<s.header.length;u++)r+=this.tablecell(s.header[u]);a+=this.tablerow({text:r});let l="";for(let u=0;u<s.rows.length;u++){let d=s.rows[u];r="";for(let p=0;p<d.length;p++)r+=this.tablecell(d[p]);l+=this.tablerow({text:r})}return l&&(l=`<tbody>${l}</tbody>`),`<table>
232
- <thead>
233
- `+a+`</thead>
234
- `+l+`</table>
235
- `}tablerow({text:s}){return`<tr>
236
- ${s}</tr>
237
- `}tablecell(s){let a=this.parser.parseInline(s.tokens),r=s.header?"th":"td";return(s.align?`<${r} align="${s.align}">`:`<${r}>`)+a+`</${r}>
238
- `}strong({tokens:s}){return`<strong>${this.parser.parseInline(s)}</strong>`}em({tokens:s}){return`<em>${this.parser.parseInline(s)}</em>`}codespan({text:s}){return`<code>${Da(s,!0)}</code>`}br(s){return"<br>"}del({tokens:s}){return`<del>${this.parser.parseInline(s)}</del>`}link({href:s,title:a,tokens:r}){let l=this.parser.parseInline(r),u=db(s);if(u===null)return l;s=u;let d='<a href="'+s+'"';return a&&(d+=' title="'+Da(a)+'"'),d+=">"+l+"</a>",d}image({href:s,title:a,text:r,tokens:l}){l&&(r=this.parser.parseInline(l,this.parser.textRenderer));let u=db(s);if(u===null)return Da(r);s=u;let d=`<img src="${s}" alt="${Da(r)}"`;return a&&(d+=` title="${Da(a)}"`),d+=">",d}text(s){return"tokens"in s&&s.tokens?this.parser.parseInline(s.tokens):"escaped"in s&&s.escaped?s.text:Da(s.text)}},ad=class{strong({text:s}){return s}em({text:s}){return s}codespan({text:s}){return s}del({text:s}){return s}html({text:s}){return s}text({text:s}){return s}link({text:s}){return""+s}image({text:s}){return""+s}br(){return""}checkbox({raw:s}){return s}},Ta=class Lf{constructor(a){xt(this,"options");xt(this,"renderer");xt(this,"textRenderer");this.options=a||tl,this.options.renderer=this.options.renderer||new ho,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ad}static parse(a,r){return new Lf(r).parse(a)}static parseInline(a,r){return new Lf(r).parseInline(a)}parse(a){var l,u;this.renderer.parser=this;let r="";for(let d=0;d<a.length;d++){let p=a[d];if((u=(l=this.options.extensions)==null?void 0:l.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 b=p;switch(b.type){case"space":{r+=this.renderer.space(b);break}case"hr":{r+=this.renderer.hr(b);break}case"heading":{r+=this.renderer.heading(b);break}case"code":{r+=this.renderer.code(b);break}case"table":{r+=this.renderer.table(b);break}case"blockquote":{r+=this.renderer.blockquote(b);break}case"list":{r+=this.renderer.list(b);break}case"checkbox":{r+=this.renderer.checkbox(b);break}case"html":{r+=this.renderer.html(b);break}case"def":{r+=this.renderer.def(b);break}case"paragraph":{r+=this.renderer.paragraph(b);break}case"text":{r+=this.renderer.text(b);break}default:{let g='Token with "'+b.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,d;this.renderer.parser=this;let l="";for(let p=0;p<a.length;p++){let b=a[p];if((d=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&d[b.type]){let m=this.options.extensions.renderers[b.type].call({parser:this},b);if(m!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(b.type)){l+=m||"";continue}}let g=b;switch(g.type){case"escape":{l+=r.text(g);break}case"html":{l+=r.html(g);break}case"link":{l+=r.link(g);break}case"image":{l+=r.image(g);break}case"checkbox":{l+=r.checkbox(g);break}case"strong":{l+=r.strong(g);break}case"em":{l+=r.em(g);break}case"codespan":{l+=r.codespan(g);break}case"br":{l+=r.br(g);break}case"del":{l+=r.del(g);break}case"text":{l+=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 l}},ao,Bs=(ao=class{constructor(s){xt(this,"options");xt(this,"block");this.options=s||tl}preprocess(s){return s}postprocess(s){return s}processAllTokens(s){return s}emStrongMask(s){return s}provideLexer(s=this.block){return s?Na.lex:Na.lexInline}provideParser(s=this.block){return s?Ta.parse:Ta.parseInline}},xt(ao,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),xt(ao,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ao),GN=class{constructor(...s){xt(this,"defaults",Qf());xt(this,"options",this.setOptions);xt(this,"parse",this.parseMarkdown(!0));xt(this,"parseInline",this.parseMarkdown(!1));xt(this,"Parser",Ta);xt(this,"Renderer",ho);xt(this,"TextRenderer",ad);xt(this,"Lexer",Na);xt(this,"Tokenizer",fo);xt(this,"Hooks",Bs);this.use(...s)}walkTokens(s,a){var l,u;let r=[];for(let d of s)switch(r=r.concat(a.call(this,d)),d.type){case"table":{let p=d;for(let b of p.header)r=r.concat(this.walkTokens(b.tokens,a));for(let b of p.rows)for(let g of b)r=r.concat(this.walkTokens(g.tokens,a));break}case"list":{let p=d;r=r.concat(this.walkTokens(p.items,a));break}default:{let p=d;(u=(l=this.defaults.extensions)==null?void 0:l.childTokens)!=null&&u[p.type]?this.defaults.extensions.childTokens[p.type].forEach(b=>{let g=p[b].flat(1/0);r=r.concat(this.walkTokens(g,a))}):p.tokens&&(r=r.concat(this.walkTokens(p.tokens,a)))}}return r}use(...s){let a=this.defaults.extensions||{renderers:{},childTokens:{}};return s.forEach(r=>{let l={...r};if(l.async=this.defaults.async||l.async||!1,r.extensions&&(r.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){let d=a.renderers[u.name];d?a.renderers[u.name]=function(...p){let b=u.renderer.apply(this,p);return b===!1&&(b=d.apply(this,p)),b}: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 d=a[u.level];d?d.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)}),l.extensions=a),r.renderer){let u=this.defaults.renderer||new ho(this.defaults);for(let d in r.renderer){if(!(d in u))throw new Error(`renderer '${d}' does not exist`);if(["options","parser"].includes(d))continue;let p=d,b=r.renderer[p],g=u[p];u[p]=(...m)=>{let y=b.apply(u,m);return y===!1&&(y=g.apply(u,m)),y||""}}l.renderer=u}if(r.tokenizer){let u=this.defaults.tokenizer||new fo(this.defaults);for(let d in r.tokenizer){if(!(d in u))throw new Error(`tokenizer '${d}' does not exist`);if(["options","rules","lexer"].includes(d))continue;let p=d,b=r.tokenizer[p],g=u[p];u[p]=(...m)=>{let y=b.apply(u,m);return y===!1&&(y=g.apply(u,m)),y}}l.tokenizer=u}if(r.hooks){let u=this.defaults.hooks||new Bs;for(let d in r.hooks){if(!(d in u))throw new Error(`hook '${d}' does not exist`);if(["options","block"].includes(d))continue;let p=d,b=r.hooks[p],g=u[p];Bs.passThroughHooks.has(d)?u[p]=m=>{if(this.defaults.async&&Bs.passThroughHooksRespectAsync.has(d))return(async()=>{let v=await b.call(u,m);return g.call(u,v)})();let y=b.call(u,m);return g.call(u,y)}:u[p]=(...m)=>{if(this.defaults.async)return(async()=>{let v=await b.apply(u,m);return v===!1&&(v=await g.apply(u,m)),v})();let y=b.apply(u,m);return y===!1&&(y=g.apply(u,m)),y}}l.hooks=u}if(r.walkTokens){let u=this.defaults.walkTokens,d=r.walkTokens;l.walkTokens=function(p){let b=[];return b.push(d.call(this,p)),u&&(b=b.concat(u.call(this,p))),b}}this.defaults={...this.defaults,...l}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,a){return Na.lex(s,a??this.defaults)}parser(s,a){return Ta.parse(s,a??this.defaults)}parseMarkdown(s){return(a,r)=>{let l={...r},u={...this.defaults,...l},d=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&l.async===!1)return d(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 d(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return d(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=s),u.async)return(async()=>{let p=u.hooks?await u.hooks.preprocess(a):a,b=await(u.hooks?await u.hooks.provideLexer(s):s?Na.lex:Na.lexInline)(p,u),g=u.hooks?await u.hooks.processAllTokens(b):b;u.walkTokens&&await Promise.all(this.walkTokens(g,u.walkTokens));let m=await(u.hooks?await u.hooks.provideParser(s):s?Ta.parse:Ta.parseInline)(g,u);return u.hooks?await u.hooks.postprocess(m):m})().catch(d);try{u.hooks&&(a=u.hooks.preprocess(a));let p=(u.hooks?u.hooks.provideLexer(s):s?Na.lex:Na.lexInline)(a,u);u.hooks&&(p=u.hooks.processAllTokens(p)),u.walkTokens&&this.walkTokens(p,u.walkTokens);let b=(u.hooks?u.hooks.provideParser(s):s?Ta.parse:Ta.parseInline)(p,u);return u.hooks&&(b=u.hooks.postprocess(b)),b}catch(p){return d(p)}}}onError(s,a){return r=>{if(r.message+=`
239
- Please report this to https://github.com/markedjs/marked.`,s){let l="<p>An error occurred:</p><pre>"+Da(r.message+"",!0)+"</pre>";return a?Promise.resolve(l):l}if(a)return Promise.reject(r);throw r}}},el=new GN;function yt(s,a){return el.parse(s,a)}yt.options=yt.setOptions=function(s){return el.setOptions(s),yt.defaults=el.defaults,Xb(yt.defaults),yt};yt.getDefaults=Qf;yt.defaults=tl;function $N(...s){return el.use(...s),yt.defaults=el.defaults,Xb(yt.defaults),yt}yt.use=$N;yt.walkTokens=function(s,a){return el.walkTokens(s,a)};yt.parseInline=el.parseInline;yt.Parser=Ta;yt.parser=Ta.parse;yt.Renderer=ho;yt.TextRenderer=ad;yt.Lexer=Na;yt.lexer=Na.lex;yt.Tokenizer=fo;yt.Hooks=Bs;yt.parse=yt;yt.options;yt.setOptions;yt.walkTokens;yt.parseInline;Ta.parse;Na.lex;yt.setOptions({gfm:!0,breaks:!1});function id(s){const a=yt.parse(s??"",{async:!1});return KS.sanitize(a)}function zi({text:s,className:a}){const r=Z.useMemo(()=>id(s),[s]);return s!=null&&s.trim()?f.jsx("div",{className:`md ${a??""}`,dangerouslySetInnerHTML:{__html:r}}):null}const YN={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'"};function FN(s){return s.replace(/<[^>]*>/g," ").replace(/&([a-z]+|#\d+);/gi,(a,r)=>YN[r.toLowerCase()]??a).replace(/\s+/g," ").trim()}function KN(s,a){return FN(a)!==s.replace(/\s+/g," ").trim()}function Ys({text:s,className:a}){const r=Z.useMemo(()=>s!=null&&s.trim()?id(s):"",[s]);return!r||!KN(s,r)?null:f.jsxs("div",{className:"md-preview",children:[f.jsx("div",{className:"lab",children:"preview"}),f.jsx("div",{className:`md prose ${a??""}`,dangerouslySetInnerHTML:{__html:r}})]})}const PN=/\.(md|markdown)$/i;function ld(s){return PN.test(s)}function ZN(s){return/^new file mode /m.test(s)||/^--- \/dev\/null$/m.test(s)}function XN(s){const a=[];let r=0,l=!1;const u=s.split(`
240
- `);for(let d=0;d<u.length;d++){const p=u[d],b=p.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(b){r=Number(b[1]),l=!0;continue}l&&(p===""&&d===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 no=s=>(s.match(/\n/g)??[]).length;function sd(s){const a=XN(s),r=ZN(s),l=[];let u=[];const d=()=>{if(u.length===0)return;const p=u[0].n,b=new Set(u.filter(y=>y.added).map(y=>y.n)),g=u.map(y=>y.text).join(`
241
- `)+`
242
- `;let m=p;for(const y of yt.lexer(g)){const v=y.raw,_=v.trimEnd();if(_===""){m+=no(v);continue}const w=v.length-v.trimStart().length,T=m+no(v.slice(0,w)),A=T+no(_.slice(w));let x=!1;for(let k=T;k<=A&&!x;k++)x=b.has(k);l.push({kind:"block",raw:_.slice(w),from:T,to:A,changed:x}),m+=no(v)}u=[]};for(const p of a){const b=u[u.length-1];if(b&&p.n!==b.n+1){const g=p.n-b.n-1;d(),l.push({kind:"gap",lines:g})}u.push(p)}return d(),{items:l,isNew:r,lines:a.length}}const zf="cerber.stickyChapters";function QN(s){return s!=="off"}function VN(){try{return QN(localStorage.getItem(zf))}catch{return!0}}function ly(){const[s,a]=Z.useState(VN);return[s,l=>{try{l?localStorage.removeItem(zf):localStorage.setItem(zf,"off")}catch{}a(l)}]}function lo(s){const a=s.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 gb={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},WN={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function JN(s){return(s==null?void 0:s.recommendation)==="approve"?"APPROVE":(s==null?void 0:s.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function sy(s,a){const r=v_(s);return a.filter(l=>{var u;return!l.drifted&&l.line!=null&&((u=r.get(l.path))==null?void 0:u.has(l.line))})}function bb(s,a){const r=d=>{const p=Number((d??"").trim());return Number.isInteger(p)&&p>0?p:null},l=r(a);if(l!=null)return{line:l,side:"new"};const u=r(s);return u!=null?{line:u,side:"old"}:null}function ry(s){const a=s.comments.filter(b=>b.status==="dropped"),r=s.comments.filter(b=>b.status!=="dropped"),l=r.filter(b=>lo(b)==="reply"),u=r.filter(b=>lo(b)==="hold"),d=r.filter(b=>lo(b)==="post"),p=sy(s.diff,d);return{inline:p,folded:d.filter(b=>!p.includes(b)),dropped:a,replies:l,held:u}}function eT(s,a){const r=s.alreadyRaised;if(!r)return null;if(s.status==="dropped")return a?"dropped — not posted":"dropped — never posts";if(r.replied)return"replied in their thread";const l=lo(s);return a?l==="reply"?"the reply in their thread did not post":l==="hold"?"left out of the review":"posted as a comment of its own":l==="reply"?"replies in their thread when you send":l==="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 tT(s){return s.where.kind==="thread"?`${s.where.state} thread`:"review"}function Tf(s){const a=s.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:a.filter(d=>d.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:d})=>`${Lb[u]} ${d} ${u}${d===1?"":"s"}`).join(" · ")}function nT(s){if(!s.comments.some(l=>l.severity!=null))return null;const r=s.comments.filter(l=>l.status!=="dropped"&&l.severity==="blocker").length;return r===0?"no blockers":`${r} blocker${r===1?"":"s"}`}function aT(s){if(!s.verdict||!s.comments.some(u=>u.severity!=null))return null;const r=s.comments.filter(u=>u.status!=="dropped"&&u.severity==="blocker").length,l=s.verdict.recommendation;return l==="approve"&&r>0?`the verdict says approve, but ${r} blocker${r===1?"":"s"} still stand${r===1?"s":""}`:l==="request_changes"&&r===0?"the verdict says request changes, but no blocker still stands":null}function Uf(s){const{inline:a,folded:r,replies:l,held:u}=ry(s),d=[l.length>0?`${l.length} ${l.length===1?"reply":"replies"} in another reviewer's thread`:"",u.length>0?`${u.length} already raised, left out`:""].filter(Boolean);return[iT(s,a,r),...d].join(" · ")}function iT(s,a,r){if(s.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 l=[`${a.length} inline`];return r.length>0&&l.push(`${r.length} folded into the body`),l.join(" · ")}const yb={approve:"approve",comment:"comment",request_changes:"changes"},lT={approve:"approve",comment:"comment",request_changes:"changes"};function sT(s,a){return s.status==="dropped"?"none":s.drifted?"comment":s.origin==="user"?"awaiting":a}function oy(s,a=20){const r=document.getElementById(`c-${s}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}a>0&&requestAnimationFrame(()=>oy(s,a-1))}function rT(s){const a=s,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function vb(s,a){const r=document.createElement("tr");r.className=a;const l=document.createElement("td");l.colSpan=2;const u=document.createElement("div");return l.appendChild(u),r.appendChild(l),s.after(r),{tr:r,holder:u}}function cy({pick:s,chatBusy:a,onAdd:r,onAsk:l,onClose:u}){const[d,p]=Z.useState(""),b=Z.useRef(null);Z.useEffect(()=>{var m;return(m=b.current)==null?void 0:m.focus()},[]);const g=d.trim();return f.jsxs("div",{className:"line-composer",children:[f.jsxs("div",{className:"line-composer-head",children:[f.jsxs("span",{className:"comment-loc",children:[s.path,":",s.line]}),s.side==="old"&&f.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"})]}),f.jsx("textarea",{ref:b,className:"comment-edit",rows:3,placeholder:"what about this line?",value:d,onChange:m=>p(m.target.value),onKeyDown:m=>{m.key==="Escape"&&u(),m.key==="Enter"&&(m.metaKey||m.ctrlKey)&&g&&(m.preventDefault(),r(g))}}),f.jsx(Ys,{className:"comment-body",text:d}),f.jsxs("div",{className:"line-composer-actions",children:[f.jsxs("button",{className:"btn",disabled:!g,onClick:()=>r(g),children:[f.jsx(Fe,{name:"plus"}),"add comment",f.jsx(za,{children:"⌘↵"})]}),f.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:()=>l(g),children:[f.jsx(Fe,{name:"comment"}),"ask the reviewer"]}),f.jsx("span",{className:"grow"}),f.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function oT({patch:s,comments:a,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onRead:b}){const g=Z.useMemo(()=>s.trim()?m_(s,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[s]),m=Z.useMemo(()=>ni(s).map(z=>z.path),[s]),y=Z.useMemo(()=>new Set(ni(s).filter(z=>ld(z.path)&&sd(z.patch).lines>0).map(z=>z.path)),[s]),v=Z.useMemo(()=>a.map(z=>`${z.id}@${z.path}:${z.line}`).join("|"),[a]),_=Z.useRef(null),w=Z.useRef(b);w.current=b;const[T,A]=Z.useState([]),[x,k]=Z.useState([]),[I,L]=Z.useState(null),[le,K]=Z.useState(null);Z.useEffect(()=>{var j,ae;const z=_.current;if(!z)return;z.innerHTML=g,tS(z);const X=new Map,q=[];z.querySelectorAll(".d2h-file-wrapper").forEach((ce,ve)=>{var D,H,ue,W;const Se=(H=(D=ce.querySelector(".d2h-file-name"))==null?void 0:D.textContent)==null?void 0:H.trim(),S=Se&&m.includes(Se)?Se:m[ve];if(Se&&X.set(Se,ce),S){X.set(S,ce),ce.dataset.path=S;const be=document.createElement("div");if(be.className="file-comments",(ue=ce.querySelector(".d2h-file-header"))==null||ue.after(be),q.push({path:S,el:be}),y.has(S)){const ge=document.createElement("button");ge.type="button",ge.className="btn btn-sm md-read-toggle",ge.dataset.readPath=S,ge.textContent="read as a document",ge.title="Render this markdown instead of showing it line by line",(W=ce.querySelector(".d2h-file-header"))==null||W.appendChild(ge)}}});const de=[],he=new Map;for(const ce of a){if(ce.line==null)continue;const ve=X.get(ce.path);if(!ve)continue;const Se=Array.from(ve.querySelectorAll(".d2h-diff-tbody > tr")).find(D=>{var H,ue;return((ue=(H=D.querySelector(".line-num2"))==null?void 0:H.textContent)==null?void 0:ue.trim())===String(ce.line)});if(!Se)continue;const S=vb(he.get(Se)??Se,"inline-comment-row");he.set(Se,S.tr),de.push({id:ce.id,el:S.holder})}A(de),k(q);const _e=ce=>{const ve=ce.target.closest(".md-read-toggle");if(ve!=null&&ve.dataset.readPath){w.current(ve.dataset.readPath);return}const Se=ce.target.closest(".line-add");if(!Se)return;const{path:S,line:D,side:H}=Se.dataset;!S||!D||L({path:S,line:Number(D),side:H==="old"?"old":"new"})};z.addEventListener("click",_e);const pe=()=>z.removeEventListener("click",_e);if(l)return L(null),K(null),pe;for(const ce of z.querySelectorAll(".d2h-file-wrapper")){const ve=ce.dataset.path;if(ve)for(const Se of ce.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const S=bb((j=Se.querySelector(".line-num1"))==null?void 0:j.textContent,(ae=Se.querySelector(".line-num2"))==null?void 0:ae.textContent);if(!S)continue;const D=document.createElement("button");D.type="button",D.className="line-add";const H=`Say something about ${ve}:${S.line}`;D.title=H,D.setAttribute("aria-label",H),D.tabIndex=-1,D.dataset.path=ve,D.dataset.line=String(S.line),D.dataset.side=S.side,Se.appendChild(D)}}return K(null),pe},[g,v,m,y,l]),Z.useEffect(()=>{const z=_.current;if(!z||!I||l){K(null);return}const X=Array.from(z.querySelectorAll(".d2h-file-wrapper")).find(he=>he.dataset.path===I.path),q=Array.from((X==null?void 0:X.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(he=>{var j,ae;const _e=he.querySelector(".d2h-code-linenumber"),pe=bb((j=_e==null?void 0:_e.querySelector(".line-num1"))==null?void 0:j.textContent,(ae=_e==null?void 0:_e.querySelector(".line-num2"))==null?void 0:ae.textContent);return(pe==null?void 0:pe.line)===I.line&&pe.side===I.side});if(!q){L(null);return}const de=vb(q,"line-composer-row");return K(de.holder),()=>de.tr.remove()},[I,T,l]);const P=a.filter(z=>!T.some(X=>X.id===z.id)),ne=x.map(z=>({...z,comments:P.filter(X=>X.path===z.path)})).filter(z=>z.comments.length>0),C=P.filter(z=>!x.some(X=>X.path===z.path));return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"diff",ref:_}),T.map(({id:z,el:X})=>{const q=a.find(de=>de.id===z);return q?Ru.createPortal(r(q),X,z):null}),ne.map(({path:z,el:X,comments:q})=>Ru.createPortal(f.jsx(f.Fragment,{children:q.map(r)}),X,`file:${z}`)),I&&le&&Ru.createPortal(f.jsx(cy,{pick:I,chatBusy:u,onAdd:z=>{d(I,z),L(null)},onAsk:z=>{p(I,z),L(null)},onClose:()=>L(null)}),le,`pick-${I.path}-${I.side}-${I.line}`),C.map(z=>r(z))]})}function cT({block:s,path:a,changed:r,readOnly:l,onPick:u}){const d=Z.useMemo(()=>id(s.raw),[s.raw]),p=`Say something about ${a}:${s.from}`;return f.jsxs("div",{className:`md-block${r?" md-block-changed":""}`,children:[!l&&f.jsx("button",{type:"button",className:"md-block-add",title:p,"aria-label":p,tabIndex:-1,onClick:u,children:f.jsx(Fe,{name:"plus"})}),f.jsx("div",{className:"md md-doc prose",dangerouslySetInnerHTML:{__html:d}})]})}function uT({path:s,doc:a,comments:r,renderComment:l,readOnly:u,chatBusy:d,onAddLineComment:p,onAskAboutLine:b,onShowDiff:g}){const[m,y]=Z.useState(null),v=Z.useMemo(()=>{const _=new Map,w=a.items.flatMap((A,x)=>A.kind==="block"?[{item:A,i:x}]:[]),T=[];for(const A of r){const x=A.line==null?void 0:w.filter(k=>k.item.from<=A.line).pop()??w[0];if(!x){T.push(A);continue}_.set(x.i,[..._.get(x.i)??[],A])}return{at:_,rest:T}},[a,r]);return f.jsxs("div",{className:"md-file",children:[f.jsxs("div",{className:"md-file-head",children:[f.jsx(Fe,{name:"file"}),f.jsx("span",{className:"md-file-name",children:s}),a.isNew?f.jsx("span",{className:"tag tag-added",children:"new file"}):f.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"}),f.jsx("span",{className:"grow"}),f.jsx("button",{className:"btn btn-sm",onClick:g,title:"Back to the line-by-line diff",children:"show the diff"})]}),v.rest.length>0&&f.jsx("div",{className:"file-comments",children:v.rest.map(l)}),a.items.map((_,w)=>f.jsxs(Z.Fragment,{children:[_.kind==="gap"?f.jsxs("div",{className:"md-gap",title:"These lines are in the file but not in the diff.",children:["⋯ ",_.lines.toLocaleString()," line",_.lines===1?"":"s"," the diff skips"]}):f.jsx(cT,{block:_,path:s,changed:_.changed&&!a.isNew,readOnly:u,onPick:()=>y({path:s,line:_.from,side:"new"})}),(v.at.get(w)??[]).map(l),_.kind==="block"&&(m==null?void 0:m.line)===_.from&&f.jsx(cy,{pick:m,chatBusy:d,onAdd:T=>{p(m,T),y(null)},onAsk:T=>{b(m,T),y(null)},onClose:()=>y(null)})]},w))]})}function fT({patch:s,comments:a,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p}){const b=Z.useMemo(()=>s.trim()?ni(s):[],[s]),g=Z.useMemo(()=>new Map(b.filter(A=>ld(A.path)).map(A=>[A.path,sd(A.patch)]).filter(([,A])=>A.lines>0)),[b]),[m,y]=Z.useState({}),v=A=>{var x;return m[A]??((x=g.get(A))==null?void 0:x.isNew)??!1},_=[];for(const A of b){const x=_[_.length-1];if(g.has(A.path)&&v(A.path)){_.push({kind:"read",paths:[A.path],patch:A.patch});continue}(x==null?void 0:x.kind)==="diff"?(x.paths.push(A.path),x.patch+=`
243
- ${A.patch}`):_.push({kind:"diff",paths:[A.path],patch:A.patch})}if(b.length===0)return f.jsx("p",{className:"muted",children:"No diff for this chapter."});const w=new Set(b.map(A=>A.path)),T=A=>a.filter(x=>A(x.path));return f.jsxs(f.Fragment,{children:[_.map(A=>{const x=new Set(A.paths);if(A.kind==="read"){const k=A.paths[0];return f.jsx(uT,{path:k,doc:g.get(k),comments:T(I=>I===k),renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onShowDiff:()=>y(I=>({...I,[k]:!1}))},`read:${k}`)}return f.jsx(oT,{patch:A.patch,comments:T(k=>x.has(k)),renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onRead:k=>y(I=>({...I,[k]:!0}))},`diff:${A.paths[0]}`)}),T(A=>!w.has(A)).map(r)]})}function dT({check:s,raised:a,held:r,replies:l}){if(!s)return null;const u=[r>0&&`${r} left out`,l>0&&`${l} as replies`].filter(Boolean),d=a>0?f.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 s.checkingSince?f.jsxs(f.Fragment,{children:[d,f.jsx("div",{className:"faint",children:"checking what others already raised…"})]}):s.error?f.jsxs(f.Fragment,{children:[d,f.jsx("div",{className:"warn",title:s.error,children:"couldn't check what others already raised"})]}):d||(s.remarks.length>0?f.jsx("div",{className:"faint",children:"none already raised by others"}):null)}function hT({comment:s,readOnly:a,onDecide:r}){var b;const l=s.alreadyRaised;if(!l)return null;const u=eT(s,a),d=l.where.kind==="thread",p=!a&&s.status!=="dropped";return f.jsxs("div",{className:"raised",children:[f.jsxs("div",{className:"raised-head",children:[f.jsxs("span",{className:"tag tag-raised",children:[f.jsx(Fe,{name:"comment"}),"already raised by @",l.by," · ",tT(l)]}),l.url&&f.jsxs("a",{href:l.url,target:"_blank",rel:"noreferrer",className:"faint",children:["see it on GitHub ",f.jsx(Fe,{name:"external"})]}),f.jsx("span",{className:"grow"}),p&&f.jsxs(f.Fragment,{children:[d&&f.jsx("button",{className:`btn btn-sm${l.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(l.decision==="reply"?null:"reply"),children:"reply in their thread"}),f.jsx("button",{className:`btn btn-sm${l.decision==="send"?" btn-keep-on":""}`,title:"Send posts it as a comment of its own all the same",onClick:()=>r(l.decision==="send"?null:"send"),children:"send anyway"})]})]}),f.jsxs("p",{className:"raised-reason",children:[l.reason,u&&f.jsxs("span",{className:"raised-fate",children:[" — ",(b=l.replied)!=null&&b.url?f.jsx("a",{href:l.replied.url,target:"_blank",rel:"noreferrer",children:u}):u,"."]})]})]})}function uy({comment:s,onUpdate:a,onDelete:r,onDiscuss:l,readOnly:u,flash:d}){const[p,b]=Z.useState(!1),[g,m]=Z.useState(s.body),y=s.status==="approved",v=s.status==="dropped",_=s.origin==="user"?"yours":v?"dropped":y?"kept":"drafted";return f.jsxs("div",{id:`c-${s.id}`,className:`comment comment-${s.status}${d?" comment-flash":""}`,children:[f.jsxs("div",{className:"comment-head",children:[f.jsxs("span",{className:"comment-loc",children:[s.path,s.line!=null?`:${s.line}`:""]}),f.jsx("span",{className:`tag tag-${s.origin==="user"?"yours":_}`,children:_}),s.drifted?f.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"}):s.line==null&&f.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"}),!s.drifted&&s.originalLine!=null&&s.originalLine!==s.line&&f.jsxs("span",{className:"faint",title:"This comment followed its code to a new line.",children:["was :",s.originalLine]}),f.jsx("span",{className:"grow"}),!u&&(p?f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"btn btn-sm",onClick:()=>{a({body:g}),b(!1)},children:"save"}),f.jsx("button",{className:"btn btn-sm",onClick:()=>{m(s.body),b(!1)},children:"cancel"})]}):f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:`btn btn-sm${y?" btn-keep-on":""}`,title:"Keep this comment — it posts with the review",onClick:()=>a({status:y?"draft":"approved"}),children:[f.jsx(Fe,{name:"check"}),"keep"]}),f.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>b(!0),children:[f.jsx(Fe,{name:"edit"}),"edit"]}),f.jsxs("button",{className:`btn btn-sm${v?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>a({status:v?"draft":"dropped"}),children:[f.jsx(Fe,{name:"drop"}),v?"dropped":"drop"]}),l&&f.jsxs("button",{className:"btn btn-sm btn-accent",title:"Point the chat at this comment",onClick:l,children:[f.jsx(Fe,{name:"comment"}),"discuss"]}),s.origin==="user"&&f.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),f.jsx(hT,{comment:s,readOnly:u,onDecide:w=>a({raisedDecision:w})}),p?f.jsxs(f.Fragment,{children:[f.jsx("textarea",{className:"comment-edit",value:g,onChange:w=>m(w.target.value),rows:Math.max(3,g.split(`
244
- `).length)}),f.jsx(Ys,{className:"comment-body",text:ag(g,s.severity??null)})]}):f.jsx(zi,{className:"comment-body prose",text:ag(s.body,s.severity??null)})]})}function pT({files:s,chapterId:a,onAdd:r}){const[l,u]=Z.useState(!1),[d,p]=Z.useState(s[0]??""),[b,g]=Z.useState(""),[m,y]=Z.useState("");return l?f.jsxs("div",{className:"add-comment",children:[f.jsxs("div",{className:"add-comment-row",children:[f.jsx("select",{value:d,onChange:v=>p(v.target.value),children:s.map(v=>f.jsx("option",{value:v,children:v},v))}),f.jsx("input",{placeholder:"line (optional)",value:b,onChange:v=>g(v.target.value.replace(/\D/g,"")),size:12})]}),f.jsx("textarea",{placeholder:"Your comment…",value:m,onChange:v=>y(v.target.value),rows:3}),f.jsx(Ys,{className:"comment-body",text:m}),f.jsxs("div",{className:"add-comment-row",children:[f.jsx("button",{className:"btn",disabled:!m.trim()||!d,onClick:()=>{r({path:d,line:b?Number(b):null,body:m.trim(),chapterId:a}),y(""),g(""),u(!1)},children:"add"}),f.jsx("button",{className:"btn",onClick:()=>u(!1),children:"cancel"})]})]}):f.jsxs("button",{className:"btn btn-dashed",onClick:()=>u(!0),children:[f.jsx(Fe,{name:"plus"}),"add a comment of your own"]})}const mT=2e3;function gT({chapter:s,n:a,diff:r,comments:l,open:u,heavy:d,onToggle:p,onUpdateComment:b,onDeleteComment:g,onAddComment:m,onDiscuss:y,onAskAboutLine:v,chatBusy:_,readOnly:w,anchorRef:T,flash:A,sticky:x,stuck:k}){const[I,L]=Z.useState(!1);Z.useEffect(()=>{k||L(!1)},[k]);const le=x&&k&&u,K=Z.useRef(null),P=()=>{p(),le&&requestAnimationFrame(()=>{var he;return(he=K.current)==null?void 0:he.scrollIntoView({block:"start"})})},ne=Z.useMemo(()=>g_(r,s.files),[r,s.files]),C=Z.useMemo(()=>sy(ne,l),[ne,l]),z=Z.useMemo(()=>new Set(ni(ne).map(he=>he.path)),[ne]),X=l.filter(he=>!C.includes(he)&&!z.has(he.path)),q=l.filter(he=>C.includes(he)||z.has(he.path)),de=he=>f.jsx(uy,{comment:he,onUpdate:_e=>b(he.id,_e),onDelete:()=>g(he.id),onDiscuss:y&&(()=>y({target:"comment",id:he.id})),readOnly:w,flash:A===he.id},he.id);return f.jsxs("section",{className:`chapter${x?" chapter-sticky":""}`,ref:he=>{K.current=he,T(he)},children:[f.jsxs("header",{className:`chapter-head${x?" chapter-head-sticky":""}${le?" chapter-head-stuck":""}`,onClick:P,children:[f.jsx("span",{className:"faint",children:u?"▾":"▸"}),f.jsxs("h3",{children:[a," · ",s.title]}),f.jsxs("span",{className:"faint chapter-meta",children:[s.files.length," file",s.files.length===1?"":"s",l.length>0?` · ${l.length} comment${l.length===1?"":"s"}`:" · no comments",d!=null&&!u&&f.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:` · ${d.toLocaleString()} lines to draw, folded to keep the page quick`})]}),f.jsx("span",{className:"grow"}),x&&u&&f.jsx("button",{className:`btn btn-sm${le?"":" chapter-about-idle"}`,"aria-expanded":I,onClick:he=>{he.stopPropagation(),L(_e=>!_e)},children:I?"hide explanation":"what this chapter is about"}),y&&f.jsxs("button",{className:"btn btn-sm",onClick:he=>{he.stopPropagation(),y({target:"chapter",id:s.id})},children:[f.jsx(Fe,{name:"comment"}),"discuss"]}),le&&I&&f.jsx("div",{className:"chapter-head-about",onClick:he=>he.stopPropagation(),children:f.jsx(zi,{className:"prose",text:s.explanation})})]}),u&&f.jsxs("div",{className:"chapter-body",children:[f.jsx(zi,{className:"prose chapter-explanation",text:s.explanation}),X.map(de),f.jsx(fT,{patch:ne,comments:q,renderComment:de,readOnly:w,chatBusy:_,onAddLineComment:(he,_e)=>m({path:he.path,line:he.side==="new"?he.line:null,body:_e,chapterId:s.id}),onAskAboutLine:v}),!w&&s.files.length>0&&f.jsx(pT,{files:s.files,chapterId:s.id,onAdd:m})]})]})}function bT(s,a){switch(s.kind){case"summary":return"rewrote the summary";case"verdict":return`changed the verdict to ${s.verdict.recommendation.replace("_"," ")}`;case"chapter":{const r=a.chapters.find(l=>l.id===s.chapterId);return`rewrote the "${(r==null?void 0:r.title)??s.chapterId}" chapter`}case"comment-edit":{const r=a.comments.find(l=>l.id===s.commentId);return r?`rewrote the comment on ${r.path}:${r.line??"file"}`:"rewrote a comment"}case"comment-drop":{const r=a.comments.find(l=>l.id===s.commentId);return r?`dropped the comment on ${r.path}:${r.line??"file"}`:"dropped a comment"}case"comment-add":return`added a comment on ${s.path}:${s.line??"file"}`}}function jf(s,a){var l;if(s.target==="summary")return"the summary";if(s.target==="verdict")return"the verdict";if(s.target==="chapter")return((l=a.chapters.find(u=>u.id===s.id))==null?void 0:l.title)??"a chapter";if(s.target==="line")return s.path==null||s.line==null?"a line of the diff":`${s.path}:${s.line}${s.side==="old"?" (removed)":""}`;const r=a.comments.find(u=>u.id===s.id);return r?`${r.path}:${r.line??"file"}`:"a comment"}function yT({turn:s,artifact:a}){return f.jsxs("div",{className:`chat-turn chat-turn-${s.role}`,children:[f.jsx("div",{className:"chat-turn-who",children:s.role==="user"?"You":"Reviewer"}),s.refs.length>0&&f.jsx("div",{className:"chat-refs",children:s.refs.map((r,l)=>f.jsx("span",{className:"chat-ref",children:jf(r,a)},l))}),f.jsx(zi,{className:"chat-turn-body prose",text:s.body}),s.revisions.map((r,l)=>f.jsxs("div",{className:"chat-revision",children:["↳ ",bT(r,a)]},l)),s.refused.map((r,l)=>f.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},l))]})}function vT({artifact:s,reviewKey:a,refs:r,onClearRefs:l,onDropRef:u,onArtifact:d,readOnly:p,inputRef:b,anchorRef:g}){const[m,y]=Z.useState(""),[v,_]=Z.useState(!1),[w,T]=Z.useState(null),A=s.chat??[],x=s.pendingChat??null,k=x!=null&&x.error==null,I=v||k,L=(K,P,ne)=>{!K||I||(_(!0),T(null),Af(a,{message:K,refs:P}).then(C=>{d(C),ne==null||ne()}).catch(C=>T(String(C.message??C))).finally(()=>_(!1)))},le=()=>L(m.trim(),r,()=>{y(""),l()});return f.jsxs("section",{className:"card chat-panel",ref:g,children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"talk to the reviewer"}),f.jsx("span",{className:"faint",children:"it revises the draft as you go · nothing here reaches GitHub — only send does"})]}),f.jsxs("div",{className:"card-body",children:[(A.length>0||x)&&f.jsxs("div",{className:"chat-log",children:[A.map(K=>f.jsx(yT,{turn:K,artifact:s},K.id)),x&&f.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[f.jsx("div",{className:"chat-turn-who",children:"You"}),x.refs.length>0&&f.jsx("div",{className:"chat-refs",children:x.refs.map((K,P)=>f.jsx("span",{className:"chat-ref",children:jf(K,s)},P))}),f.jsx(zi,{className:"chat-turn-body prose",text:x.message}),x.error?f.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",x.error,!p&&f.jsxs(f.Fragment,{children:[" ",f.jsx("button",{className:"btn btn-sm",onClick:()=>L(x.message,x.refs),children:"ask again"})," ",f.jsx("button",{className:"btn btn-sm",onClick:()=>V_(a).then(d).catch(K=>T(String(K.message??K))),children:"dismiss"})]})]}):f.jsx("div",{className:"chat-waiting",children:x.progress.length>0?f.jsx("ol",{className:"chat-progress",children:x.progress.map((K,P)=>f.jsx("li",{className:P===x.progress.length-1?"now":void 0,children:K},P))}):"Thinking… it re-reads the code before answering."})]})]}),p?f.jsx("p",{className:"faint",children:"This review was sent — the conversation is kept as a record, but it can't continue."}):f.jsxs(f.Fragment,{children:[r.length>0&&f.jsxs("div",{className:"chat-refs chat-refs-pending",children:[f.jsx("span",{className:"faint",children:"about:"}),r.map((K,P)=>f.jsxs("button",{className:"chat-ref",onClick:()=>u(P),title:"Remove",children:[jf(K,s)," ✕"]},P))]}),f.jsx("textarea",{ref:b,className:"chat-input",rows:2,value:m,disabled:v,placeholder:A.length===0?"the summary restates the author's claims — say what you actually verified":"say more…",onChange:K=>y(K.target.value),onKeyDown:K=>{K.key==="Enter"&&(K.metaKey||K.ctrlKey)&&le()}}),f.jsx(Ys,{className:"chat-turn-body",text:m}),f.jsxs("div",{className:"chat-actions",children:[f.jsxs("button",{className:"btn btn-dark",onClick:le,disabled:I||m.trim()==="",children:[f.jsx(Fe,{name:"send"}),k?"waiting for the answer…":v?"sending…":"send message",f.jsx(za,{children:"⌘↵"})]}),f.jsx("span",{className:"grow"}),s.preChat&&f.jsx("button",{className:"btn btn-sm",disabled:I,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{_(!0),W_(a).then(d).catch(K=>T(String(K.message??K))).finally(()=>_(!1))},children:"reset the review"})]})]}),w&&f.jsx("div",{className:"error",children:w})]})]})}function fy(s){const a=Z.useRef(null),r=Z.useCallback(()=>{const l=a.current;l&&(l.style.height="auto",l.style.height=`${Math.min(l.scrollHeight+2,window.innerHeight*.7)}px`)},[]);return Z.useEffect(r,[s,r]),Z.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),a}function ET({initial:s,onSave:a,onCancel:r}){const[l,u]=Z.useState(s),[d,p]=Z.useState(!1),[b,g]=Z.useState(null),m=fy(l),y=()=>{d||(p(!0),g(null),a(l).catch(v=>{g(String((v==null?void 0:v.message)??v)),p(!1)}))};return f.jsxs("div",{className:"body-edit-wrap",children:[f.jsx("textarea",{ref:m,className:"body-edit",autoFocus:!0,value:l,onChange:v=>u(v.target.value),rows:10,onKeyDown:v=>{v.key==="Enter"&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),y()),v.key==="Escape"&&!d&&r()}}),f.jsx(Ys,{className:"body-md",text:l}),b&&f.jsx("p",{className:"error",children:b}),f.jsxs("div",{className:"card-actions",children:[f.jsxs("button",{className:"btn btn-sm",onClick:y,disabled:d,children:[d?"saving…":"save this body",f.jsx(za,{children:"⌘↵"})]}),f.jsx("button",{className:"btn btn-sm",onClick:r,disabled:d,children:"cancel"}),f.jsx("span",{className:"faint",children:"this is exactly what posts — the review above stays as it reads"})]})]})}const _T=s=>s?`@${s} — handing this review over to you.`:"";function ST({artifact:s,reviewKey:a,onConfirm:r,onCancel:l}){const[u]=Z.useState(Yb),[d,p]=Z.useState(""),[b,g]=Z.useState(""),[m,y]=Z.useState(!1),[v,_]=Z.useState(!1),[w,T]=Z.useState(null),[A,x]=Z.useState(null),[k,I]=Z.useState(null),[L,le]=Z.useState(!1),[K,P]=Z.useState(null),[ne,C]=Z.useState(null),[z,X]=Z.useState(!1),[q,de]=Z.useState(-1),he=fy(b),_e=Z.useRef(null),pe=Rf(d),j=$b(pe),ae=!s.sent&&(s.summary!==""||s.comments.length>0),ce=L?JSON.stringify([s.bodyOverride,s.summary,s.chapters.map(W=>[W.title,W.explanation]),s.comments.map(W=>{var be,ge;return[W.path,W.line,W.body,W.severity,W.status,W.drifted,(be=W.alreadyRaised)==null?void 0:be.decision,(ge=W.alreadyRaised)==null?void 0:ge.where]})]):"";Z.useEffect(()=>{if(!L)return;let W=!1;return C(null),P(null),Hb(a,"COMMENT").then(be=>!W&&P(be)).catch(be=>{W||(P(null),C(String((be==null?void 0:be.message)??be)))}),()=>{W=!0}},[L,a,ce]);const ve=!L||K!=null;Z.useEffect(()=>{var W;q<0||(W=document.getElementById(`handoff-option-${q}`))==null||W.scrollIntoView({block:"nearest"})},[q]);const Se=Z.useMemo(()=>c0(A??[],u),[A,u]),S=Z.useMemo(()=>u0(Se,d),[Se,d]);Z.useEffect(()=>{let W=!1;return t0(a).then(be=>!W&&x(be.logins)).catch(be=>!W&&I(String((be==null?void 0:be.message)??be))),()=>{W=!0}},[a]);const D=W=>{p(W),m||g(_T(Rf(W)))},H=W=>{D(W),X(!1),de(-1)};Z.useLayoutEffect(()=>{var W;(W=_e.current)==null||W.showModal()},[]);const ue=()=>{v||!j||!ve||(_(!0),T(null),r(pe,b.trim(),L).catch(W=>{T(String((W==null?void 0:W.message)??W)),_(!1)}))};return f.jsx("dialog",{className:"handoff-dialog",ref:_e,"aria-label":`Hand off ${s.id}`,onCancel:W=>{W.preventDefault(),v||l()},onClick:W=>{W.target===_e.current&&!v&&l()},children:f.jsxs("div",{className:"handoff-body",children:[f.jsxs("div",{className:"send-top",children:[f.jsx("span",{className:"lab",children:"hand off"}),f.jsx("span",{className:"grow"}),f.jsx("span",{className:"faint",children:s.id})]}),f.jsxs("div",{className:"handoff-who",children:[f.jsx("span",{className:"handoff-at",children:"@"}),f.jsxs("div",{className:"handoff-combo",children:[f.jsx("input",{className:"handoff-login",autoFocus:!0,value:d,spellCheck:!1,placeholder:"github login",role:"combobox","aria-expanded":z&&S.length>0,"aria-controls":"handoff-options","aria-autocomplete":"list","aria-activedescendant":q>=0?`handoff-option-${q}`:void 0,onFocus:()=>X(!0),onBlur:()=>X(!1),onChange:W=>{D(W.target.value),X(!0),de(0)},onKeyDown:W=>{const be=z&&S.length>0;if(W.key==="ArrowDown"||W.key==="ArrowUp"){if(W.preventDefault(),!be)return X(!0);const ge=W.key==="ArrowDown"?1:-1;de(Le=>(Le+ge+S.length)%S.length);return}if(W.key==="Enter"){const ge=be&&q>=0?S[q]:void 0;ge&&ge.login.toLowerCase()!==pe.toLowerCase()?H(ge.login):ue();return}W.key==="Escape"&&be&&(W.preventDefault(),X(!1),de(-1))}}),z&&S.length>0&&f.jsx("ul",{className:"handoff-options",id:"handoff-options",role:"listbox",children:S.map((W,be)=>f.jsxs("li",{id:`handoff-option-${be}`,role:"option","aria-selected":be===q,className:be===q?"on":void 0,onMouseEnter:()=>de(be),onMouseDown:ge=>{ge.preventDefault(),H(W.login)},children:[f.jsxs("span",{className:"handoff-option-login",children:["@",W.login]}),W.recent&&f.jsx("span",{className:"faint",children:"handed to before"})]},W.login))})]})]}),k&&f.jsx("p",{className:"faint handoff-who-note",children:"cerber could not read who this repo takes reviews from — type the login instead."}),f.jsx("textarea",{ref:he,className:"body-edit",rows:2,value:b,onChange:W=>{y(!0),g(W.target.value)},onKeyDown:W=>{W.key==="Enter"&&(W.metaKey||W.ctrlKey)&&(W.preventDefault(),ue())}}),f.jsxs("div",{className:"body-source",children:[f.jsx("span",{className:"faint",children:b.trim()?"goes on the PR as a plain comment, not a review":"nothing will be posted — only the review request moves"}),b.trim()!==""&&f.jsx("button",{className:"link",onClick:()=>{y(!0),g("")},disabled:v,children:"post no note"})]}),ae&&f.jsxs("div",{className:"handoff-with-review",children:[f.jsxs("label",{children:[f.jsx("input",{type:"checkbox",checked:L,disabled:v,onChange:W=>le(W.target.checked)}),f.jsxs("span",{children:["also post the review — ",f.jsx("span",{className:"faint",children:Uf(s)})]})]}),L&&f.jsxs(f.Fragment,{children:[f.jsxs("p",{className:"faint",children:["Posts as a ",f.jsx("strong",{children:"comment"}),", never an approval or a change request: you are handing over the verdict, so it is @",j?pe:"them","'s to make. The findings keep their grades."]}),ne?f.jsxs("p",{className:"error",children:["cerber could not build the body this would post, so it will not post one:"," ",ne]}):K?f.jsx("pre",{className:"body-preview",children:K.body}):f.jsx("p",{className:"faint",children:"building the body…"})]})]}),w&&f.jsx("p",{className:"error",children:w}),f.jsxs("p",{className:"faint handoff-says",children:[j?f.jsxs(f.Fragment,{children:["@",pe]}):"They"," will be asked for this review and you will be taken off it."," ",L?"This row goes under sent, with the review on the PR.":s.sent?"This row stays under sent.":"This row is filed under settled, and comes back if anybody asks you again."]}),f.jsxs("div",{className:"card-actions",children:[f.jsxs("button",{className:"btn btn-sm",onClick:ue,disabled:v||!j||!ve,children:[f.jsx(Fe,{name:"arrowRight"}),v?"handing over…":j?`hand off to @${pe}`:"hand off",f.jsx(za,{children:"⌘↵"})]}),f.jsx("button",{className:"btn btn-sm",onClick:l,disabled:v,children:"cancel"})]})]})})}function NT({artifact:s,reviewKey:a,event:r,sending:l,checking:u,onSend:d,error:p,footer:b,next:g,onAdvance:m,onBody:y,anchorRef:v}){const[_,w]=Z.useState(null),[T,A]=Z.useState(null),[x,k]=Z.useState(s.bodyOverride!=null),[I,L]=Z.useState(!1),le=s.bodyOverride!=null;Z.useEffect(()=>{le&&k(!0)},[le]);const K=x&&!I?JSON.stringify([s.bodyOverride,s.summary,s.chapters.map(P=>[P.title,P.explanation]),s.comments.map(P=>{var ne,C;return[P.path,P.line,P.body,P.severity,P.status,P.drifted,(ne=P.alreadyRaised)==null?void 0:ne.decision,(C=P.alreadyRaised)==null?void 0:C.where]})]):"";return Z.useEffect(()=>{if(!x||I)return;let P=!1;return w(null),A(null),Hb(a,r).then(ne=>{P||(w(ne),A(null))}).catch(ne=>{P||A(String(ne))}),()=>{P=!0}},[a,r,K,x,I]),s.sent?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"sent-strip",ref:v,children:[f.jsxs("strong",{children:["✔ sent as ",gb[s.sent.event]]}),f.jsxs("span",{className:"faint",children:[new Date(s.sent.at).toLocaleString()," · ",Uf(s),s.sent.auto?" · auto-sent by the daemon":""]}),f.jsx("span",{className:"grow"}),s.sent.url&&f.jsxs("a",{href:s.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",f.jsx(Fe,{name:"external"})]}),f.jsxs("button",{className:"btn",onClick:m,children:[g?`next review: ${g.pr.repo}#${g.pr.number}`:"back to the queue",f.jsx(Fe,{name:"arrowRight"})]})]}),f.jsx("div",{className:"post-actions",children:b})]}):f.jsxs("div",{className:"send-panel",ref:v,children:[f.jsxs("div",{className:"send-top",children:[f.jsx("span",{className:"lab",children:"send to github"}),f.jsx("span",{className:"grow"}),f.jsx("span",{className:"faint",children:Uf(s)}),f.jsxs("button",{className:"link",onClick:()=>k(!x),disabled:I,title:I?"save or cancel the body you are writing first":void 0,children:[f.jsx(Fe,{name:"eye"}),x?"hide what gets posted":"see what gets posted"]})]}),f.jsx("div",{className:"send-action",children:f.jsxs("button",{className:`send-btn tone-bg-${WN[r]}`,disabled:l||u,onClick:d,children:[f.jsx(Fe,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),l?"sending…":u?"checking what others already raised…":`${gb[r]} on ${s.id}`," ",f.jsx(za,{children:"s"})]})}),p&&f.jsx("p",{className:"error",children:p}),x&&f.jsxs(f.Fragment,{children:[T&&f.jsx("p",{className:"error",children:T}),_?I?f.jsx(ET,{initial:_.body,onSave:P=>y(P).then(()=>L(!1)),onCancel:()=>L(!1)}):f.jsxs(f.Fragment,{children:[f.jsx("pre",{className:"body-preview",children:_.body}),f.jsxs("div",{className:"body-source",children:[le?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"faint",children:"you wrote this body — it no longer follows the summary or the comments"}),f.jsx("button",{className:"link",onClick:()=>y(null).catch(P=>A(String((P==null?void 0:P.message)??P))),children:"build it from the review again"})]}):f.jsx("span",{className:"faint",children:"built from the summary, the walkthrough and the folded comments"}),f.jsxs("button",{className:"link",onClick:()=>L(!0),children:[f.jsx(Fe,{name:"edit"}),le?"keep editing it":"write it yourself"]})]})]}):!T&&f.jsx("p",{className:"faint",children:"building the body…"})]}),f.jsx("div",{className:"send-footer",children:b})]})}function TT({filed:s}){var l,u,d;const a=((l=s.review)==null?void 0:l.url)??((u=s.reply)==null?void 0:u.url)??null,r=p=>new Date(p).toLocaleDateString();return s.reason==="own-reply"&&s.reply?f.jsxs("div",{children:[f.jsxs("strong",{children:["You answered on this PR on ",r(s.reply.at),", and nobody has replied since."]})," ","So cerber filed this draft under settled: GitHub does not count a"," ",a?f.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."]}):s.reason==="request-withdrawn"?f.jsxs("div",{children:[f.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(s.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."]}):f.jsxs("div",{children:[f.jsxs("strong",{children:["You reviewed this PR on GitHub on ",r(((d=s.review)==null?void 0:d.at)??s.at),"."]})," ","So cerber filed this draft under settled, GitHub having stopped asking you for a review and shown one of your own"," ",a?f.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 wT({entries:s,open:a,onToggle:r,anchorRef:l}){const u=d=>{const p=new Date(d);return Number.isNaN(p.getTime())?d:`${p.toLocaleDateString(void 0,{month:"short",day:"2-digit"})} ${p.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}`};return f.jsxs("section",{className:"card",ref:l,children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"history"}),f.jsx("span",{className:"faint",children:s.length>0?`${s.length} entr${s.length===1?"y":"ies"} — what cerber did to this row, and when`:"nothing recorded"}),f.jsx("span",{className:"grow"}),f.jsxs("button",{className:"btn btn-sm","aria-expanded":a,onClick:r,children:[f.jsx(Fe,{name:a?"up":"down",size:12}),a?"hide":"show"]})]}),a&&f.jsx("div",{className:"card-body",children:s.length===0?f.jsx("div",{className:"faint",children:"This review predates cerber keeping a history — it starts at the next thing that happens to it."}):f.jsx("ol",{className:"history",children:s.map((d,p)=>({e:d,i:p})).reverse().map(({e:d,i:p})=>f.jsxs("li",{className:"history-row",title:d.at,children:[f.jsx("span",{className:"history-at",children:u(d.at)}),f.jsx("span",{className:"history-by",children:d.by}),f.jsx("span",{className:"history-what",children:d.what}),d.cause&&f.jsx("span",{className:"history-cause",children:d.cause})]},`${p}-${d.at}`))})})]})}function xT({handoff:s,sent:a,hasDraft:r}){const l=new Date(s.at).toLocaleDateString();return f.jsxs("div",{children:[f.jsxs("strong",{children:["You handed this to @",s.to," on ",l,"."]})," ","GitHub asks them for this review now",s.withdrewYours?" and no longer asks you":" — but cerber could not take your own request off, so it is asking both of you","."," ",s.note?s.note.url?f.jsxs(f.Fragment,{children:["A"," ",f.jsx("a",{href:s.note.url,target:"_blank",rel:"noreferrer",children:"note"})," ","on the PR says so."]}):f.jsx(f.Fragment,{children:"A note on the PR says so."}):f.jsx(f.Fragment,{children:"No note was posted — only the request moved."})," ",a?f.jsx(f.Fragment,{children:"Your review of it is on the PR — the draft below is what went."}):r?f.jsx(f.Fragment,{children:"The draft below was never sent. It is still yours to read, or to send."}):f.jsx(f.Fragment,{children:"Nothing was drafted here, and nothing was sent."})]})}function AT({artifact:s,freshness:a,rerunning:r,onRerun:l}){const u=s.status==="running",d=(a==null?void 0:a.prState)??s.pr.state,p=d==="CLOSED"||d==="MERGED",b=s.refresh,g=a!=null&&a.changed?b:null;if(u)return f.jsxs("div",{className:"freshness freshness-running",children:[f.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 m=s.filed,y=s.handoff;return!p&&!g&&!m&&!y?null:f.jsxs("div",{className:"freshness",children:[y&&f.jsx(xT,{handoff:y,sent:s.sent,hasDraft:s.summary!==""||s.comments.length>0}),m&&f.jsx(TT,{filed:m}),p&&f.jsxs("div",{children:[f.jsxs("strong",{children:["This PR is ",d==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),g&&f.jsxs("div",{children:[f.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",f.jsx("code",{children:g.toSha.slice(0,7)}),", reviewed at"," ",f.jsx("code",{children:g.fromSha.slice(0,7)}),"."," ",g.moved>0&&f.jsxs(f.Fragment,{children:[g.moved," comment(s) followed the code. "]}),g.drifted>0&&f.jsxs(f.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.",!s.sent&&f.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>l(),children:r?"starting…":"re-review at the new head"})]})]})}function RT({reviewKey:s}){var In,Vn,ba,rn,Ot;const[a,r]=Z.useState(null),[l,u]=Z.useState(null),[d,p]=Z.useState(null),[b,g]=Z.useState(null),[m,y]=Z.useState(!1),[v,_]=Z.useState([]),[w,T]=Z.useState(new Set),A=Y=>T(re=>new Set(re).add(Y)),[x,k]=Z.useState(!1),[I,L]=Z.useState([]),le=Z.useRef(null),[K,P]=Z.useState(new Set),[ne,C]=Z.useState(0),z=Z.useRef(new Map),[X]=ly(),[q,de]=Z.useState(null),he=Z.useRef(null),_e=Z.useRef(null),pe=Z.useRef(null),j=Z.useRef(null),ae=Z.useRef(null),ce=Z.useRef(null),[ve,Se]=Z.useState(!1),S=Z.useRef(null),[D,H]=Z.useState(!1),[ue,W]=Z.useState(!1),[be,ge]=Z.useState(null),[Le,ze]=Z.useState(null);Z.useEffect(()=>{if(!Le)return;const Y=setTimeout(()=>ze(null),1800);return()=>clearTimeout(Y)},[Le]);const $e=Y=>{var re,we;L(mt=>mt.some(Bt=>Bt.target===Y.target&&Bt.id===Y.id)?mt:[...mt,Y]),(re=le.current)==null||re.scrollIntoView({behavior:"smooth",block:"center"}),(we=le.current)==null||we.focus()};Z.useEffect(()=>{let Y=!1;return window.scrollTo({top:0}),r(null),u(null),p(null),g(null),ge(null),W(!1),sg(s).then(re=>{if(!Y)return r(re),Q_(s).then(we=>{Y||(p(we),we.changed&&r(we.artifact))}).catch(we=>!Y&&g(String(we.message??we))).then(()=>{if(!(Y||re.sent||re.status==="running"||re.comments.length===0))return W(!0),e0(s).then(we=>!Y&&r(we)).catch(()=>{}).finally(()=>!Y&&W(!1))})}).catch(re=>!Y&&u(String(re))),()=>{Y=!0}},[s]),Z.useEffect(()=>{Zf().then(_).catch(()=>{})},[]),Z.useEffect(()=>{const Y=S.current;if(!Y)return;const re=()=>document.documentElement.style.setProperty("--top-h",`${Y.offsetHeight}px`);re();const we=new ResizeObserver(re);return we.observe(Y),()=>{we.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[a==null?void 0:a.id]);const at=(a==null?void 0:a.pendingChat)!=null&&a.pendingChat.error==null,Ce=((In=a==null?void 0:a.raisedCheck)==null?void 0:In.checkingSince)!=null||ue;Z.useEffect(()=>{if((a==null?void 0:a.status)!=="running"&&!at&&!Ce)return;const Y=setInterval(()=>{sg(s).then(re=>{r(re),re.status!=="running"&&y(!1)}).catch(()=>{})},3e3);return()=>clearInterval(Y)},[a==null?void 0:a.status,at,Ce,s]);const We=(a==null?void 0:a.sent)!=null,Ge=Z.useMemo(()=>N_(v,s,w),[v,s,w]),Xt=Ge.findIndex(Y=>Y.key===s),He=(Xt>0?Ge[Xt-1]:null)??null,ct=(Xt>=0&&Xt<Ge.length-1?Ge[Xt+1]:null)??null,wn=Y=>{window.location.hash=`#/r/${encodeURIComponent(Y)}`},Qt=()=>{ct?wn(ct.key):window.location.hash="#/"},Dt=Z.useMemo(()=>{if(!a)return[];const Y=E_(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]);Z.useEffect(()=>{let Y=0;const re=()=>{var $n;Y=0;const Bt=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--top-h"))||0,Rn=Bt+16;let $t=null;for(const St of Dt){const On=($n=z.current.get(St.id))==null?void 0:$n.getBoundingClientRect();On&&On.top<=Rn&&On.bottom>Rn&&($t={id:St.id,stuck:On.top<Bt-1})}de(St=>(St==null?void 0:St.id)===($t==null?void 0:$t.id)&&(St==null?void 0:St.stuck)===($t==null?void 0:$t.stuck)?St:$t)},we=()=>{Y||(Y=requestAnimationFrame(re))};re(),window.addEventListener("scroll",we,{passive:!0}),window.addEventListener("resize",we);const mt=new ResizeObserver(we);return mt.observe(document.body),()=>{cancelAnimationFrame(Y),window.removeEventListener("scroll",we),window.removeEventListener("resize",we),mt.disconnect()}},[Dt]);const Ln=Z.useMemo(()=>{const Y=__((a==null?void 0:a.diff)??""),re=new Set(ni((a==null?void 0:a.diff)??"").filter(mt=>ld(mt.path)&&sd(mt.patch).isNew).map(mt=>mt.path)),we=mt=>{const Bt=Y.get(mt)??0;return re.has(mt)?Math.round(Bt/4):Bt};return new Map(Dt.map(mt=>[mt.id,mt.files.reduce((Bt,Rn)=>Bt+we(Rn),0)]))},[a==null?void 0:a.diff,Dt]),sa=Y=>{const re=Ln.get(Y)??0;return re>mT?re:null},Qn=Y=>K.has(Y)?sa(Y)!=null:sa(Y)==null,st=Y=>P(re=>{const we=new Set(re);return we.has(Y)?we.delete(Y):we.add(Y),we});Z.useEffect(()=>P(new Set),[s]);const qt=Y=>{const re=Dt[Y];return re?(C(Y),Qn(re.id)||st(re.id),re):null},ut=(...Y)=>{for(const re of Y)if(re.current)return re.current.scrollIntoView({behavior:"smooth",block:"start"})},cn=Y=>{var we;const re=qt(Y);re&&((we=z.current.get(re.id))==null||we.scrollIntoView({behavior:"smooth",block:"start"}))},xn=(Y,re)=>{qt(Y),ze(re),oy(re)},An=JN(a==null?void 0:a.verdict);Z.useEffect(()=>ge(null),[An]);const zn=()=>{!a||a.sent||D||Ce||(H(!0),ge(null),J_(s,An).then(({replyError:Y,...re})=>{r(re),Y&&ge(`Sent — but ${Y}`),A(s)}).catch(Y=>ge(String(Y.message??Y))).finally(()=>H(!1)))};if(Z.useEffect(()=>{const Y=re=>{rT(re.target)||re.metaKey||re.ctrlKey||re.altKey||(re.key==="["&&He?wn(He.key):re.key==="]"&&ct?wn(ct.key):re.key==="n"?cn(Math.min(Dt.length-1,ne+1)):re.key==="N"?cn(Math.max(0,ne-1)):re.key==="s"&&!We&&zn())};return window.addEventListener("keydown",Y),()=>window.removeEventListener("keydown",Y)},[He==null?void 0:He.key,ct==null?void 0:ct.key,Dt,ne,We,An,a==null?void 0:a.sent,D,Ce]),l&&!a)return f.jsx("p",{className:"error pad",children:l});if(!a)return f.jsx("p",{className:"muted pad",children:"Loading…"});const Un=Y=>{y(!0),u(null),Ib(s,Y).then(r).catch(re=>{u(String(re)),y(!1)})},un=Y=>Y.then(r).catch(re=>u(String(re))),yn=Y=>io(s,{status:Y}).then(()=>{A(s),Qt()}).catch(re=>u(String(re))),Ut=(Y,re,we)=>n0(s,{to:Y,note:re,postReview:we}).then(({artifact:mt,noteError:Bt,sendError:Rn,replyError:$t})=>{o0(Y),r(mt),k(!1),A(s);const $n=[Rn&&`the review did not post: ${Rn}`,$t,Bt&&`the note did not post: ${Bt}`].filter(Boolean);$n.length>0?u(`Handed to @${Y}, but ${$n.join("; and ")}`):Qt()}),fn=(Y,re)=>un(K_(s,Y,re)),jt=Y=>un(Z_(s,Y)),ga=Y=>un(P_(s,Y)),jn=a.comments.filter(Y=>!Y.chapterId||!Dt.some(re=>re.id===Y.chapterId)),{inline:Bn,folded:Ie,dropped:dn,held:hn,replies:Gt}=ry(a),O=a.comments.filter(Y=>Y.alreadyRaised&&Y.status!=="dropped").length,ee=a.comments.filter(Y=>Y.status!=="dropped"&&Y.drifted).length,me=a.verdict?yb[a.verdict.recommendation]:"none",Me=aT(a),Ke=nT(a),Qe=a.pendingChat!=null&&a.pendingChat.error==null,Ne=a.status==="running"||Qe,Ee=()=>un(Af(s,{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}]})),Ue=(Y,re)=>{un(Af(s,{message:re,refs:[{target:"line",id:null,path:Y.path,line:Y.line,side:Y.side}]}).then(we=>{var mt;return(mt=j.current)==null||mt.scrollIntoView({behavior:"smooth",block:"start"}),we}))},Rt=(Vn=a.run)!=null&&Vn.trusted?"ran the code":(ba=a.run)!=null&&ba.withSource?"read the full source":a.run?"read the diff only":"no run yet",bt=Y=>{var re;return f.jsxs("button",{className:`verdict-pick${((re=a.verdict)==null?void 0:re.recommendation)===Y?` verdict-pick-on tone-${yb[Y]}`:""}`,title:Y==="approve"?"Approve":Y==="comment"?"Comment without blocking":"Request changes",onClick:()=>un(io(s,{verdictRecommendation:Y})),children:[f.jsx(Fe,{name:lT[Y]}),Y.replace("_"," ")]},Y)};return f.jsxs("div",{className:"review",children:[f.jsxs("div",{className:"review-top",ref:S,children:[f.jsx("div",{className:"crumb",children:f.jsxs("div",{className:"bar-inner",children:[f.jsx("a",{href:"#/",children:"← queue"}),f.jsx("span",{className:"crumb-sep",children:"/"}),f.jsx("span",{className:"crumb-slug",children:a.id}),f.jsxs("span",{className:"walk",children:[f.jsx("button",{className:"walk-btn",disabled:!He,title:He?`[ — ${He.id}: ${He.pr.title}`:"no more reviews this way",onClick:()=>He&&wn(He.key),children:f.jsx(Fe,{name:"chevronLeft"})}),f.jsx("button",{className:"walk-btn",disabled:!ct,title:ct?`] — ${ct.id}: ${ct.pr.title}`:"no more reviews this way",onClick:()=>ct&&wn(ct.key),children:f.jsx(Fe,{name:"chevronRight"})})]}),Xt>=0&&f.jsxs("span",{className:"faint",children:[Xt+1," of ",Ge.length," awaiting"]}),f.jsx("span",{className:"faint crumb-next",children:ct?`next: ${ct.pr.title}`:Xt>=0?"last in the queue":""}),f.jsx("span",{className:"grow"}),f.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:f.jsx(Fe,{name:"settings",size:15})})]})}),f.jsx("div",{className:"review-head",children:f.jsxs("div",{className:"wrap",children:[f.jsxs("div",{className:"review-head-top",children:[f.jsx("a",{className:"review-title",href:a.pr.url,target:"_blank",rel:"noreferrer",children:a.pr.title}),f.jsx("span",{className:"grow"}),a.verdict&&(We?f.jsxs("span",{className:`chip tone-${me}`,children:[a.verdict.recommendation.replace("_"," "),Ke&&` · ${Ke}`," · ",a.verdict.confidence,"%"]}):f.jsxs("button",{className:`chip chip-btn tone-${me}`,title:"change it, or send — both are at the foot of the page",onClick:()=>ut(he,ae),children:[a.verdict.recommendation.replace("_"," "),Ke&&` · ${Ke}`," · ",a.verdict.confidence,"%",f.jsx(Fe,{name:"down",size:12})]})),!We&&a.status!=="running"&&f.jsxs("button",{className:"btn btn-sm",disabled:m,title:a.run?"Review the current head again — this draft is replaced, your own comments are kept":"Draft a review of this PR",onClick:()=>Un(!0),children:[f.jsx(Fe,{name:"rerun"}),m?"starting…":a.run?"re-review at head":"review now"]})]}),f.jsxs("div",{className:"review-head-meta",children:[f.jsx("span",{children:a.pr.author}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[a.pr.headRefName," → ",a.pr.baseRefName,a.pr.headSha?` · ${a.pr.headSha.slice(0,7)}`:""]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[a.pr.changedFiles,"f ",f.jsxs("span",{className:"add",children:["+",a.pr.additions]})," ",f.jsxs("span",{className:"del",children:["−",a.pr.deletions]})]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:Rt}),((rn=a.run)==null?void 0:rn.costUsd)!=null&&f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"crumb-sep",children:"·"}),f.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"]})]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsx("span",{title:"Where this review has got to: drafted, settled locally, or sent.",children:a.status})]})]})})]}),f.jsxs("div",{className:"wrap review-body",children:[f.jsxs("aside",{className:"rail",children:[f.jsxs("div",{className:"rail-jumps",children:[f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>ut(_e),children:"summary"}),a.verdict&&f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>ut(pe),children:"why"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var Y;ut(j),(Y=le.current)==null||Y.focus()},children:"chat"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{Se(!0),ut(ce)},children:"history"})]}),Dt.length>0&&f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>cn(0),children:"changes"}),Dt.map((Y,re)=>f.jsxs("div",{className:"rail-group",children:[f.jsxs("button",{className:`rail-item${Qn(Y.id)?" rail-item-on":""}${(q==null?void 0:q.id)===Y.id?" rail-item-here":""}`,onClick:()=>cn(re),children:[f.jsxs("span",{className:"grow",children:[re+1," · ",Y.title]}),f.jsxs("span",{className:"rail-count",children:[Y.files.length,"f"]})]}),a.comments.filter(we=>we.chapterId===Y.id).map(we=>f.jsxs("button",{className:`rail-comment${we.status==="dropped"?" rail-comment-dropped":""}`,title:`${we.path}${we.line!=null?`:${we.line}`:""} — ${we.body}`,onClick:()=>xn(re,we.id),children:[f.jsx("span",{className:`rail-dot tone-${sT(we,me)}`,children:"●"}),f.jsxs("span",{className:"rail-comment-loc",children:[we.path.split("/").pop(),we.line!=null?`:${we.drifted?"~":""}${we.line}`:""]})]},we.id))]},Y.id))]}),f.jsx("button",{className:`lab rail-lab-btn${Dt.length>0?" rail-lab":""}`,onClick:()=>ut(he,ae),children:"verdict"}),f.jsxs("div",{className:"rail-facts",children:[f.jsxs("div",{children:[a.comments.length-dn.length," keeping · ",dn.length," dropped"]}),f.jsxs("div",{children:[Bn.length," inline · ",Ie.length," folded into body"]}),ee>0&&f.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[ee," drifted"]}),f.jsx(dT,{check:a.raisedCheck??null,raised:O,held:hn.length,replies:Gt.length})]})]}),f.jsxs("div",{className:"main",children:[f.jsx(AT,{artifact:a,freshness:d,rerunning:m,onRerun:Un}),b&&f.jsxs("div",{className:"freshness",title:b,children:[f.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."]}),l&&f.jsx("div",{className:"error",children:l}),((Ot=a.run)==null?void 0:Ot.error)&&f.jsxs("div",{className:"error",children:["Run failed: ",a.run.error]}),f.jsx("div",{className:"card card-summary",ref:_e,children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"lab",children:"summary"}),f.jsx(zi,{className:"prose lead",text:a.summary||"(no summary)"}),!We&&f.jsxs("button",{className:"btn btn-sm",onClick:()=>$e({target:"summary",id:null}),children:[f.jsx(Fe,{name:"comment"}),"discuss the summary"]})]})}),a.verdict&&f.jsx("div",{className:`card card-why tone-border-${me}`,ref:pe,children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"lab",children:"why"}),f.jsxs("div",{className:"sev-counts",children:[Tf(a)&&f.jsx("span",{title:"Live findings by grade. Only blockers block.",children:Tf(a)}),Tf(a)&&f.jsx("span",{className:"crumb-sep",children:"·"}),f.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"]})]}),f.jsx(zi,{className:"prose lead",text:a.verdict.reasoning}),!We&&f.jsxs("button",{className:"btn btn-sm",onClick:()=>$e({target:"verdict",id:null}),children:[f.jsx(Fe,{name:"comment"}),"discuss the verdict"]})]})}),Dt.map((Y,re)=>f.jsx(gT,{chapter:Y,n:re+1,diff:a.diff,comments:a.comments.filter(we=>we.chapterId===Y.id),open:Qn(Y.id),heavy:sa(Y.id),onToggle:()=>st(Y.id),onUpdateComment:fn,onDeleteComment:jt,onAddComment:ga,onDiscuss:We?void 0:$e,onAskAboutLine:Ue,chatBusy:Qe,readOnly:We,flash:Le,sticky:X,stuck:(q==null?void 0:q.id)===Y.id&&q.stuck,anchorRef:we=>{we?z.current.set(Y.id,we):z.current.delete(Y.id)}},Y.id)),jn.length>0&&f.jsxs("section",{className:"card",children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"unattached comments"}),f.jsx("span",{className:"faint",children:"not part of any chapter — they post in the body"})]}),f.jsx("div",{className:"card-body",children:jn.map(Y=>f.jsx(uy,{comment:Y,onUpdate:re=>fn(Y.id,re),onDelete:()=>jt(Y.id),onDiscuss:We?void 0:()=>$e({target:"comment",id:Y.id}),readOnly:We},Y.id))})]}),f.jsx(wT,{entries:a.history??[],open:ve,onToggle:()=>Se(Y=>!Y),anchorRef:ce})]}),f.jsxs("aside",{className:"cockpit",children:[f.jsx(vT,{artifact:a,reviewKey:s,refs:I,onClearRefs:()=>L([]),onDropRef:Y=>L(re=>re.filter((we,mt)=>mt!==Y)),onArtifact:r,readOnly:We,inputRef:le,anchorRef:j}),f.jsxs("div",{className:"cockpit-decide",children:[!We&&Me&&f.jsxs("div",{className:"verdict-hint",children:[f.jsxs("span",{children:[f.jsx("strong",{children:Me})," — the verdict was written before those edits."]}),f.jsxs("button",{className:"btn btn-sm",onClick:Ee,disabled:Qe,children:[f.jsx(Fe,{name:"comment"}),Qe?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),a.verdict&&!We&&f.jsxs("div",{className:"verdict-bar",ref:he,children:[f.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(bt)]}),f.jsx(NT,{artifact:a,reviewKey:s,event:An,sending:D,checking:Ce,onSend:zn,error:be,next:ct,onAdvance:Qt,onBody:Y=>io(s,{bodyOverride:Y}).then(r),anchorRef:ae,footer:f.jsxs(f.Fragment,{children:[!We&&f.jsx("span",{className:"faint",children:"not sending?"}),!We&&f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:"btn btn-sm",title:ct?`Settle it locally and go to ${ct.id}`:"Settle it locally and go back to the queue",onClick:()=>yn("reviewed"),children:[f.jsx(Fe,{name:"check"}),"mark reviewed"]}),f.jsxs("button",{className:"btn btn-sm",title:ct?`Leave it and go to ${ct.id}`:"Leave it and go back to the queue",onClick:()=>yn("skipped"),children:[f.jsx(Fe,{name:"skip"}),"skip"]})]}),f.jsxs("button",{className:"btn btn-sm",title:Ne?"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:()=>k(!0),disabled:x||Ne,children:[f.jsx(Fe,{name:"arrowRight"}),"hand off"]}),f.jsxs("a",{className:"btn btn-sm",href:a0(s),children:[f.jsx(Fe,{name:"download"}),"export .md"]})]})}),x&&f.jsx(ST,{artifact:a,reviewKey:s,onConfirm:Ut,onCancel:()=>k(!1)})]})]})]})]})}const Eb="cerber.notify.seen.v2",OT="cerber.notify.seen",Bf="cerber.notify",kT=1e4,Is=s=>s.status==="ready",If=s=>{try{return localStorage.getItem(s)}catch{return null}},Hf=(s,a)=>{try{localStorage.setItem(s,a)}catch{}};function CT(s,a){return s?!!(s.enabled&&s.pollEnabled&&s.autoReview):a}function dy(s,a){return s.announceable===!1||s.status==="running"?!1:s.status==="awaiting"?!a:!0}const hy=":draft",so=s=>`${s.key}${hy}`,py=s=>Is(s)?so(s):s.key;function MT(s,a,r){const l=new Set(a);return qs(s).filter(u=>dy(u,r)&&!l.has(py(u)))}function DT(s,a,r=[]){const l=new Set(r),u=new Set(qs(s).map(p=>p.key)),d=[];for(const p of s){if(u.has(p.key)&&!dy(p,a)){for(const b of[p.key,so(p)])l.has(b)&&d.push(b);continue}d.push(p.key),(Is(p)||!u.has(p.key)||l.has(so(p)))&&d.push(so(p))}return d}const wf=s=>`${s.pr.repo}#${s.pr.number}`,LT={approve:"approves",comment:"comments",request_changes:"requests changes"};function zT(s){const a=s.verdict?LT[s.verdict.recommendation]:"drafted",r=s.blockerCount??0;return r===0?a:`${a} · ${r} blocker${r===1?"":"s"}`}function UT(s){if(s.length===0)return null;const a=`cerber:${s.map(py).sort().join("|")}`;if(s.length===1){const u=s[0];return{title:Is(u)?`${wf(u)} draft ready`:`${wf(u)} awaits your review`,body:Is(u)?`${zT(u)} — ${u.pr.title}`:`${u.pr.title} — ${u.pr.author}`,tag:a,key:u.key}}const r=s.slice(0,3).map(wf),l=s.length-r.length;return{title:s.every(Is)?`${s.length} drafts ready`:`${s.length} PRs await your review`,body:l>0?`${r.join(", ")} and ${l} more`:r.join(", "),tag:a,key:null}}const jT=new Set(["127.0.0.1","localhost","::1","[::1]"]);function BT(s,a=window.location.hostname){return!(s!=null&&s.enabled)||!s.notify?!1:jT.has(a)}function Hl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":If(Bf)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function IT(){const s=Hl();if(s==="unsupported"||s==="blocked")return s;if(s==="on")return Hf(Bf,"off"),Hl();if(Hf(Bf,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return Hl()}function HT(s){const a=new Notification(s.title,{body:s.body,tag:s.tag,icon:"/favicon.svg"});a.onclick=()=>{window.focus(),window.location.hash=s.key?`#/r/${encodeURIComponent(s.key)}`:"#/",a.close()}}function qT(s,a){const r=s??a;if(!r)return null;let l;try{l=JSON.parse(r)}catch{return null}if(!Array.isArray(l))return null;const u=l.filter(d=>typeof d=="string");return s?u:u.flatMap(d=>[d,`${d}${hy}`])}function GT(){const s=Z.useRef(null),a=Z.useRef(!0),[r,l]=Z.useState(!1);return Z.useEffect(()=>{let u=!0;s.current=qT(If(Eb),If(OT));const d=()=>Promise.all([Zf(),Bb().catch(()=>null)]).then(([b,g])=>{if(!u)return;const m=BT(g);l(m),a.current=CT(g,a.current);const y=a.current,v=s.current;if(s.current=DT(b,y,v??[]),Hf(Eb,JSON.stringify(s.current)),!v||Hl()!=="on"||m||document.visibilityState==="visible"&&document.hasFocus())return;const _=UT(MT(b,v,y));_&&HT(_)}).catch(()=>{});d();const p=setInterval(d,kT);return()=>{u=!1,clearInterval(p)}},[]),r}function my(){const[s,a]=Z.useState(Hl);return Z.useEffect(()=>{const r=()=>a(Hl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[s,()=>void IT().then(a)]}const ro=s=>{window.location.hash=`#/r/${encodeURIComponent(s)}`};function $T(s){const a=s,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function YT({daemon:s}){return s!=null&&s.enabled?f.jsx("div",{className:"daemon-bar",children:f.jsxs("div",{className:"bar-inner",children:[s.pollEnabled?f.jsxs("span",{className:"daemon-live",children:[f.jsx("span",{className:"dot"}),s.repos.length>0?s.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(s.intervalMs/6e4),"m"]}):f.jsxs("span",{className:"daemon-live",children:[f.jsx("span",{className:"dot dot-off"}),"polling off (settings) — local reviews only"]}),f.jsxs("span",{children:["auto-review ",f.jsx("b",{children:s.autoReview?"on":"off"})]}),f.jsxs("span",{children:["auto-send ",f.jsx("b",{children:s.autoSend==="on"?"on":"shadow"})," ≥",s.autoSendThreshold,"%",s.autoSend==="on"?` · ${s.autoSent} sent`:` · ${s.autoSendCandidates} candidate${s.autoSendCandidates===1?"":"s"}`]}),s.trustedRuns&&f.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:[f.jsx(Fe,{name:"zap",size:12})," trusted PRs run with Bash"]}),f.jsx("span",{className:"grow"}),s.lastPollError?f.jsx("span",{className:"danger",title:s.lastPollError,children:"discovery offline — showing local reviews only"}):f.jsx("span",{className:"faint",children:s.polling?"polling now…":[s.lastSummary?`last: ${s.lastSummary}`:null,s.nextPollAt?`next ${new Date(s.nextPollAt).toLocaleTimeString()}`:null].filter(Boolean).join(" · ")})]})}):null}function FT({r:s,selected:a,onSelect:r,onOpen:l,awaiting:u}){const d=B_(s),p=R_(s),b=u?z_(s,u):null;return f.jsxs("div",{className:`row${a?" row-on":""}`,onClick:l,onMouseEnter:r,role:"button",tabIndex:-1,children:[f.jsx("span",{className:"col-caret",children:"›"}),f.jsxs("span",{className:"col-slug",title:`${s.pr.owner}/${s.pr.repo}#${s.pr.number}`,children:[s.pr.repo,"#",s.pr.number]}),f.jsx("span",{className:"col-author",title:s.pr.author,children:s.pr.author}),f.jsx("span",{className:"col-title",title:s.pr.title,children:s.pr.title}),s.pr.isDraft&&f.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),b&&f.jsx("span",{className:"tag tag-awaiting",title:b.title,children:b.label}),p&&f.jsx("span",{className:"tag tag-done",children:p}),f.jsx("span",{className:"col-comments",children:s.commentCount||""}),f.jsx("span",{className:"col-size",children:s.pr.changedFiles>0?f.jsxs(f.Fragment,{children:[s.pr.changedFiles,"f ",f.jsxs("span",{className:"add",children:["+",s.pr.additions]})," ",f.jsxs("span",{className:"del",children:["−",s.pr.deletions]})]}):"—"}),f.jsx("span",{className:`col-verdict tone-${d.tone}`,children:d.label}),f.jsx("span",{className:"col-age",children:jb(s.updatedAt)})]})}function _b({autoFocus:s}){const[a,r]=Z.useState(""),[l,u]=Z.useState(!1),[d,p]=Z.useState(null),b=g=>{g.preventDefault();const m=a.trim();!m||l||(u(!0),p(null),X_(m).then(y=>ro(y.key)).catch(y=>{p(String(y instanceof Error?y.message:y)),u(!1)}))};return f.jsxs("form",{className:"pull",onSubmit:b,children:[f.jsx(Fe,{name:"plus"}),f.jsx("input",{className:"pull-input",value:a,autoFocus:s,disabled:l,onChange:g=>{r(g.target.value),d&&p(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),a.trim()&&f.jsx("button",{className:"btn btn-small",type:"submit",disabled:l,children:l?"starting…":"review"}),d&&f.jsx("span",{className:"pull-error",children:d})]})}function KT({text:s}){const a=Z.useRef(null),[r,l]=Z.useState(!1);return Z.useLayoutEffect(()=>{const u=a.current;if(!u)return;const d=()=>l(u.scrollHeight-u.clientHeight>4);d();const p=new ResizeObserver(d);return p.observe(u),()=>p.disconnect()},[s]),f.jsx("div",{ref:a,className:`strip-prose${r?" strip-prose-clipped":""}`,children:f.jsx(zi,{className:"prose",text:s})})}function PT(){var X;const[s,a]=Z.useState(null),[r,l]=Z.useState(null),[u,d]=Z.useState(null),[p,b]=Z.useState(new Set),[g,m]=Z.useState("inbox"),[y,v]=Z.useState(null),_=Z.useRef(!0);Z.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const w=()=>{Zf().then(q=>_.current&&a(q)).catch(q=>_.current&&d(String(q))),Bb().then(q=>_.current&&l(q)).catch(()=>{})};Z.useEffect(()=>{w();const q=setInterval(w,1e4);return()=>clearInterval(q)},[]);const T=s??[],A=Z.useMemo(()=>x_(T,r),[T,r]),x=A.requests,k=A_(g,A),I=A[k];Z.useEffect(()=>{k!==g&&m(k)},[k,g]);const L=I.find(q=>q.key===y)??I[0]??null,le=q=>{b(de=>new Set(de).add(q)),Ib(q).then(()=>w()).catch(de=>_.current&&d(String(de))).finally(()=>{_.current&&b(de=>{const he=new Set(de);return he.delete(q),he})})};if(Z.useEffect(()=>{const q=de=>{if($T(de.target)||de.metaKey||de.ctrlKey||de.altKey)return;const he=I.findIndex(pe=>pe.key===(L==null?void 0:L.key)),_e=pe=>{const j=I[Math.min(I.length-1,Math.max(0,he+pe))];j&&v(j.key)};de.key==="j"||de.key==="ArrowDown"?(de.preventDefault(),_e(1)):de.key==="k"||de.key==="ArrowUp"?(de.preventDefault(),_e(-1)):de.key==="Enter"&&L?ro(L.key):de.key==="r"&&L&&L.status!=="sent"&&L.status!=="running"&&le(L.key)};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[I,L==null?void 0:L.key]),u&&!s)return f.jsx("p",{className:"error",children:u});if(!s)return f.jsx("p",{className:"muted pad",children:"Loading…"});const K=I.reduce((q,de)=>q+(de.costUsd??0),0),P=L?H_(L,r):null,ne=L?p.has(L.key):!1,C=xf.filter(q=>A[q].length>0),z=q=>f.jsxs("button",{className:`tab${k===q?" tab-on":""}${xf.includes(q)?" tab-filed":""}${q==="requests"?" tab-requests":""}`,title:Ou[q].title,onClick:()=>m(q),children:[Ou[q].label," ",f.jsx("span",{className:"tab-count",children:A[q].length})]},q);return f.jsxs(f.Fragment,{children:[f.jsx(YT,{daemon:r}),u&&f.jsx("div",{className:"wrap",children:f.jsx("p",{className:"error",children:u})}),T.length===0?f.jsx("div",{className:"wrap",children:f.jsxs("div",{className:"empty",children:[r!=null&&r.enabled?f.jsxs("p",{children:["Inbox empty — nothing awaits your review.",r.lastPollError?" (Discovery is offline; check gh auth.)":""]}):f.jsx("p",{children:"No reviews yet."}),f.jsx(_b,{autoFocus:!0})]})}):f.jsxs("div",{className:"wrap",children:[f.jsxs("div",{className:"tabs",children:[S_.map(z),C.length>0&&f.jsx("span",{className:"tab-split","aria-hidden":"true"}),C.map(z),f.jsx("span",{className:"grow"}),f.jsx(_b,{}),K>0&&f.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:["≈$",K.toFixed(2)," at API rates"]})]}),f.jsxs("div",{className:"table-head",children:[f.jsx("span",{className:"col-caret"}),f.jsx("span",{className:"col-slug",children:"repo#pr"}),f.jsx("span",{className:"col-author",children:"author"}),f.jsx("span",{className:"col-title",children:"title"}),f.jsx("span",{className:"col-comments",children:"c"}),f.jsx("span",{className:"col-size",children:"size"}),f.jsx("span",{className:"col-verdict",children:"verdict"}),f.jsx("span",{className:"col-age",children:"upd"})]}),I.length===0?f.jsx("div",{className:"empty-tab",children:k==="inbox"&&x.length>0?f.jsxs(f.Fragment,{children:[f.jsx("p",{children:U_(x)}),f.jsxs("button",{className:"btn",onClick:()=>m("requests"),children:[f.jsx(Fe,{name:"arrowRight"}),"show ",x.length===1?"it":`all ${x.length}`]})]}):f.jsx("p",{className:"muted",children:k==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${Ou[k].label} right now.`})}):I.map(q=>f.jsx(FT,{r:q,selected:q.key===(L==null?void 0:L.key),onSelect:()=>v(q.key),onOpen:()=>ro(q.key),awaiting:w_(q,x)?O_(q,r):null},q.key)),L&&P&&f.jsxs("div",{className:"cursor-strip",children:[f.jsxs("div",{className:"cursor-strip-body",children:[f.jsxs("div",{className:"lab",children:[L.pr.owner,"/",L.pr.repo,"#",L.pr.number,L.pr.headRefName&&L.pr.baseRefName?` · ${L.pr.headRefName} → ${L.pr.baseRefName}`:""]}),f.jsx(KT,{text:P.reasoning}),f.jsxs("div",{className:"cursor-strip-meta",children:[P.meta.join(" · "),((X=L.sent)==null?void 0:X.url)&&f.jsxs(f.Fragment,{children:[" · ",f.jsx("a",{href:L.sent.url,target:"_blank",rel:"noreferrer",children:"view on GitHub"})]})]})]}),f.jsxs("div",{className:"cursor-strip-actions",children:[f.jsxs("button",{className:"btn-primary",onClick:()=>ro(L.key),children:[f.jsx(Fe,{name:"arrowRight"}),"open review ",f.jsx(za,{children:"↵"})]}),f.jsxs("div",{className:"cursor-strip-row",children:[f.jsxs("button",{className:"btn",disabled:L.status==="sent"||L.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>io(L.key,{status:"skipped"}).then(w).catch(q=>d(String(q))),children:[f.jsx(Fe,{name:"skip"}),"skip"]}),f.jsxs("button",{className:"btn",disabled:ne||L.status==="running"||L.status==="sent",title:L.status==="sent"?"This review was sent — it is a record now.":"Draft a review of the PR's current head.",onClick:()=>le(L.key),children:[f.jsx(Fe,{name:"rerun"}),ne?"starting…":L.status==="awaiting"||L.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const po="cerber.theme";function gy(s){return s==="light"||s==="dark"?s:"system"}function ZT(){try{return gy(localStorage.getItem(po))}catch{return"system"}}function by(s,a=document.documentElement){s==="system"?delete a.dataset.theme:a.dataset.theme=s}function XT(s,a){try{const r=a??localStorage;s==="system"?r.removeItem(po):r.setItem(po,s)}catch{}}function QT(){yy(by)}function yy(s){const a=r=>{(r.key===po||r.key===null)&&s(gy(r.newValue))};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)}function VT(){const[s,a]=Z.useState(ZT);return Z.useEffect(()=>yy(a),[]),[s,l=>{XT(l),by(l),a(l)}]}const WT=[{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"}],Sb=s=>s instanceof Error?s.message:String(s),JT={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"},ew=[{choice:"system",label:"follow this machine"},{choice:"light",label:"light"},{choice:"dark",label:"dark"}];function tw({daemonAnnounces:s}){const[a,r]=my(),[l,u]=VT(),[d,p]=ly(),[b,g]=Z.useState(null),[m,y]=Z.useState(""),[v,_]=Z.useState(null),[w,T]=Z.useState(!1);Z.useEffect(()=>{i0().then(g).catch(k=>_(Sb(k)))},[]);const A=k=>{T(!0),_(null),k.then(g).catch(I=>_(Sb(I))).finally(()=>T(!1))};if(v&&!b)return f.jsx("p",{className:"error",children:v});if(!b)return f.jsx("p",{className:"muted",children:"Loading…"});const x=s&&b.daemon.poll&&b.daemon.notify;return f.jsxs("div",{className:"settings",children:[f.jsx("a",{href:"#/",className:"back",children:"← queue"}),f.jsx("h1",{children:"Inbox"}),f.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."}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:b.daemon.poll,disabled:w,onChange:k=>A(Mu({poll:k.target.checked}))})," ","poll GitHub for PRs awaiting my review (every ",b.daemon.intervalMinutes,"m)"]}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:b.daemon.autoReview,disabled:w||!b.daemon.poll,onChange:k=>A(Mu({autoReview:k.target.checked}))})," ","draft a review automatically (off: awaiting PRs wait for a click)"]}),f.jsxs("p",{className:"muted",children:["Interval, concurrency and a repo filter live in ",f.jsx("code",{children:b.path})," under"," ",f.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),f.jsx("h1",{children:"Notifications"}),f.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.'}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:b.daemon.notify,disabled:w||!b.daemon.poll,onChange:k=>A(Mu({notify:k.target.checked}))})," ","tell this machine when a review is ready for you (no cockpit tab required)"]}),f.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 ",f.jsx("code",{children:"serve"})," itself. It hands the notification to whatever this machine already has — Notification Centre on macOS,"," ",f.jsx("code",{children:"notify-send"})," on Linux — and stays quiet where there is neither. On macOS it"," ",f.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'," ",f.jsx("code",{children:"notify-send"})," tap announces the PR but has no click to give."]}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:a==="on",disabled:a==="unsupported"||a==="blocked"||x,onChange:r})," ",x?"let this browser announce them instead":JT[a]]}),f.jsx("p",{className:"muted",children:x?f.jsx(f.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."}):f.jsxs(f.Fragment,{children:["Per-browser, not per-machine: the permission belongs to this browser, so the switch lives here rather than in ",f.jsx("code",{children:b.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."]})}),f.jsx("h1",{id:"appearance",children:"Appearance"}),f.jsx("div",{role:"radiogroup","aria-labelledby":"appearance",children:ew.map(({choice:k,label:I})=>f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"radio",name:"theme",checked:l===k,onChange:()=>u(k)})," ",I]},k))}),f.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 ",f.jsx("code",{children:b.path}),"."]}),f.jsx("h1",{children:"Review page"}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:d,onChange:k=>p(k.target.checked)})," ","keep the chapter title pinned while scrolling through it"]}),f.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. Per-browser, like the theme."}),f.jsx("h1",{children:"Trusted PRs"}),f.jsxs("p",{children:["Every review reads the PR's code. A ",f.jsx("strong",{children:"trusted"})," review may also run it — the test that covers the change, a typecheck, ",f.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."]}),f.jsxs("p",{className:"muted",children:["Trust the people, not the code: nothing about a PR can earn it. Rules live in"," ",f.jsx("code",{children:b.path}),"."]}),f.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".'}),f.jsxs("div",{className:"trust-add",children:[f.jsx("input",{value:m,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:w,onChange:k=>y(k.target.value),onKeyDown:k=>{k.key==="Enter"&&!w&&m.trim()&&(A(Cu(m.trim())),y(""))}}),f.jsx("button",{className:"btn",disabled:w||!m.trim(),onClick:()=>{A(Cu(m.trim())),y("")},children:"trust"})]}),v&&f.jsx("p",{className:"error",children:v}),b.trust.length===0?f.jsx("p",{className:"muted",children:"Nobody is trusted yet — every review reads the checkout and runs nothing."}):f.jsx("table",{className:"trust-table",children:f.jsx("tbody",{children:b.trust.map(k=>f.jsxs("tr",{className:k.denies?"trust-deny":void 0,children:[f.jsx("td",{children:f.jsx("code",{children:k.rule})}),f.jsx("td",{className:"muted",children:k.explanation}),f.jsx("td",{className:"trust-actions",children:f.jsx("button",{className:"btn",disabled:w,onClick:()=>A(Cu(k.rule,!0)),children:"remove"})})]},k.rule))})}),f.jsx("h2",{children:"Rule syntax"}),f.jsx("table",{className:"trust-table",children:f.jsx("tbody",{children:WT.map(k=>f.jsxs("tr",{children:[f.jsx("td",{children:f.jsx("code",{children:k.rule})}),f.jsx("td",{className:"muted",children:k.meaning})]},k.rule))})}),f.jsxs("p",{className:"muted",children:["A trusted review is handed no GitHub credentials — no token, no ",f.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 ",f.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 ",f.jsx("code",{children:"--no-trust"})," to prevent that."]})]})}function Nb(){const s=window.location.hash,a=s.match(/^#\/r\/(.+)$/);return a?{view:"detail",key:decodeURIComponent(a[1])}:s==="#/settings"?{view:"settings"}:{view:"queue"}}const Tb={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."},wb="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 nw({daemonAnnounces:s}){const[a,r]=my();return s?f.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:wb,"aria-label":wb,children:f.jsx(Fe,{name:"bell",size:15})}):a==="unsupported"?null:f.jsx("button",{className:`topbar-link bell bell-${a}`,title:Tb[a],"aria-label":Tb[a],"aria-pressed":a==="on",onClick:r,children:f.jsx(Fe,{name:a==="on"?"bell":"bellOff",size:15})})}function aw(){const[s,a]=Z.useState(Nb()),r=GT();return Z.useEffect(()=>{const l=()=>a(Nb());return window.addEventListener("hashchange",l),()=>window.removeEventListener("hashchange",l)},[]),s.view==="detail"?f.jsx("div",{className:"app",children:f.jsx(RT,{reviewKey:s.key})}):f.jsxs("div",{className:"app",children:[f.jsx("header",{className:"topbar",children:f.jsxs("div",{className:"bar-inner",children:[f.jsxs("a",{href:"#/",className:"brand",children:[f.jsx(hS,{}),"cerber"]}),f.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"}),f.jsx("span",{className:"grow"}),s.view==="queue"&&f.jsxs(f.Fragment,{children:[f.jsxs("span",{className:"hint",children:[f.jsx(za,{children:"j"}),f.jsx(za,{children:"k"}),"move"]}),f.jsxs("span",{className:"hint",children:[f.jsx(za,{children:"↵"}),"open"]}),f.jsxs("span",{className:"hint",children:[f.jsx(za,{children:"r"}),"review now"]})]}),f.jsx(nw,{daemonAnnounces:r}),f.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:f.jsx(Fe,{name:"settings",size:15})})]})}),s.view==="queue"?f.jsx(PT,{}):f.jsx(tw,{daemonAnnounces:r})]})}QT();ME.createRoot(document.getElementById("root")).render(f.jsx(xE.StrictMode,{children:f.jsx(aw,{})}));