@fullstackhouse/cerber 0.32.0 → 0.33.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,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var rE=Object.defineProperty;var oE=(s,i,r)=>i in s?rE(s,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[i]=r;var Et=(s,i,r)=>oE(s,typeof i!="symbol"?i+"":i,r);(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.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 _b(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var gu={exports:{}},ks={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var sE=Object.defineProperty;var rE=(s,i,r)=>i in s?sE(s,i,{enumerable:!0,config
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Cm;function cE(){if(Cm)return ks;Cm=1;var s=Symbol.for("react.transitional.element"),i=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 y in u)y!=="key"&&(d[y]=u[y])}else d=u;return u=d.ref,{$$typeof:s,type:l,key:p,ref:u!==void 0?u:null,props:d}}return ks.Fragment=i,ks.jsx=r,ks.jsxs=r,ks}var Dm;function uE(){return Dm||(Dm=1,gu.exports=cE()),gu.exports}var f=uE(),bu={exports:{}},Ie={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var sE=Object.defineProperty;var rE=(s,i,r)=>i in s?sE(s,i,{enumerable:!0,config
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var Lm;function fE(){if(Lm)return Ie;Lm=1;var s=Symbol.for("react.transitional.element"),i=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"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function x(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(){}},w=Object.assign,A={};function U(S,D,q){this.props=S,this.context=D,this.refs=A,this.updater=q||T}U.prototype.isReactComponent={},U.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")},U.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function G(){}G.prototype=U.prototype;function L(S,D,q){this.props=S,this.context=D,this.refs=A,this.updater=q||T}var re=L.prototype=new G;re.constructor=L,w(re,U.prototype),re.isPureReactComponent=!0;var H=Array.isArray;function P(){}var le={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function z(S,D,q){var ue=q.ref;return{$$typeof:s,type:S,key:D,ref:ue!==void 0?ue:null,props:q}}function Q(S,D){return z(S.type,D,S.props)}function K(S){return typeof S=="object"&&S!==null&&S.$$typeof===s}function fe(S){var D={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(q){return D[q]})}var we=/\/+/g;function Ae(S,D){return typeof S=="object"&&S!==null&&S.key!=null?fe(""+S.key):D.toString(36)}function he(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 I(S,D,q,ue,pe){var xe=typeof S;(xe==="undefined"||xe==="boolean")&&(S=null);var me=!1;if(S===null)me=!0;else switch(xe){case"bigint":case"string":case"number":me=!0;break;case"object":switch(S.$$typeof){case s:case i:me=!0;break;case b:return me=S._init,I(me(S._payload),D,q,ue,pe)}}if(me)return pe=pe(S),me=ue===""?"."+Ae(S,0):ue,H(pe)?(q="",me!=null&&(q=me.replace(we,"$&/")+"/"),I(pe,D,q,"",function(He){return He})):pe!=null&&(K(pe)&&(pe=Q(pe,q+(pe.key==null||S&&S.key===pe.key?"":(""+pe.key).replace(we,"$&/")+"/")+me)),D.push(pe)),1;me=0;var Oe=ue===""?".":ue+":";if(H(S))for(var Ee=0;Ee<S.length;Ee++)ue=S[Ee],xe=Oe+Ae(ue,Ee),me+=I(ue,D,q,xe,pe);else if(Ee=x(S),typeof Ee=="function")for(S=Ee.call(S),Ee=0;!(ue=S.next()).done;)ue=ue.value,xe=Oe+Ae(ue,Ee++),me+=I(ue,D,q,xe,pe);else if(xe==="object"){if(typeof S.then=="function")return I(he(S),D,q,ue,pe);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 me}function ne(S,D,q){if(S==null)return S;var ue=[],pe=0;return I(S,ue,"","",function(xe){return D.call(q,xe,pe++)}),ue}function oe(S){if(S._status===-1){var D=S._result;D=D(),D.then(function(q){(S._status===0||S._status===-1)&&(S._status=1,S._result=q)},function(q){(S._status===0||S._status===-1)&&(S._status=2,S._result=q)}),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:ne,forEach:function(S,D,q){ne(S,function(){D.apply(this,arguments)},q)},count:function(S){var D=0;return ne(S,function(){D++}),D},toArray:function(S){return ne(S,function(D){return D})||[]},only:function(S){if(!K(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return Ie.Activity=v,Ie.Children=Se,Ie.Component=U,Ie.Fragment=r,Ie.Profiler=u,Ie.PureComponent=L,Ie.StrictMode=l,Ie.Suspense=g,Ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=le,Ie.__COMPILER_RUNTIME={__proto__:null,c:function(S){return le.H.useMemoCache(S)}},Ie.cache=function(S){return function(){return S.apply(null,arguments)}},Ie.cacheSignal=function(){return null},Ie.cloneElement=function(S,D,q){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var ue=w({},S.props),pe=S.key;if(D!=null)for(xe in D.key!==void 0&&(pe=""+D.key),D)!k.call(D,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&D.ref===void 0||(ue[xe]=D[xe]);var xe=arguments.length-2;if(xe===1)ue.children=q;else if(1<xe){for(var me=Array(xe),Oe=0;Oe<xe;Oe++)me[Oe]=arguments[Oe+2];ue.children=me}return z(S.type,pe,ue)},Ie.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},Ie.createElement=function(S,D,q){var ue,pe={},xe=null;if(D!=null)for(ue in D.key!==void 0&&(xe=""+D.key),D)k.call(D,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(pe[ue]=D[ue]);var me=arguments.length-2;if(me===1)pe.children=q;else if(1<me){for(var Oe=Array(me),Ee=0;Ee<me;Ee++)Oe[Ee]=arguments[Ee+2];pe.children=Oe}if(S&&S.defaultProps)for(ue in me=S.defaultProps,me)pe[ue]===void 0&&(pe[ue]=me[ue]);return z(S,xe,pe)},Ie.createRef=function(){return{current:null}},Ie.forwardRef=function(S){return{$$typeof:y,render:S}},Ie.isValidElement=K,Ie.lazy=function(S){return{$$typeof:b,_payload:{_status:-1,_result:S},_init:oe}},Ie.memo=function(S,D){return{$$typeof:m,type:S,compare:D===void 0?null:D}},Ie.startTransition=function(S){var D=le.T,q={};le.T=q;try{var ue=S(),pe=le.S;pe!==null&&pe(q,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(P,ve)}catch(xe){ve(xe)}finally{D!==null&&q.types!==null&&(D.types=q.types),le.T=D}},Ie.unstable_useCacheRefresh=function(){return le.H.useCacheRefresh()},Ie.use=function(S){return le.H.use(S)},Ie.useActionState=function(S,D,q){return le.H.useActionState(S,D,q)},Ie.useCallback=function(S,D){return le.H.useCallback(S,D)},Ie.useContext=function(S){return le.H.useContext(S)},Ie.useDebugValue=function(){},Ie.useDeferredValue=function(S,D){return le.H.useDeferredValue(S,D)},Ie.useEffect=function(S,D){return le.H.useEffect(S,D)},Ie.useEffectEvent=function(S){return le.H.useEffectEvent(S)},Ie.useId=function(){return le.H.useId()},Ie.useImperativeHandle=function(S,D,q){return le.H.useImperativeHandle(S,D,q)},Ie.useInsertionEffect=function(S,D){return le.H.useInsertionEffect(S,D)},Ie.useLayoutEffect=function(S,D){return le.H.useLayoutEffect(S,D)},Ie.useMemo=function(S,D){return le.H.useMemo(S,D)},Ie.useOptimistic=function(S,D){return le.H.useOptimistic(S,D)},Ie.useReducer=function(S,D,q){return le.H.useReducer(S,D,q)},Ie.useRef=function(S){return le.H.useRef(S)},Ie.useState=function(S){return le.H.useState(S)},Ie.useSyncExternalStore=function(S,D,q){return le.H.useSyncExternalStore(S,D,q)},Ie.useTransition=function(){return le.H.useTransition()},Ie.version="19.2.8",Ie}var zm;function Bf(){return zm||(zm=1,bu.exports=fE()),bu.exports}var ae=Bf();const dE=_b(ae);var yu={exports:{}},Ms={},vu={exports:{}},Eu={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ var sE=Object.defineProperty;var rE=(s,i,r)=>i in s?sE(s,i,{enumerable:!0,config
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var
|
|
25
|
+
*/var Um;function hE(){return Um||(Um=1,(function(s){function i(I,ne){var oe=I.length;I.push(ne);e:for(;0<oe;){var ve=oe-1>>>1,Se=I[ve];if(0<u(Se,ne))I[ve]=ne,I[oe]=Se,oe=ve;else break e}}function r(I){return I.length===0?null:I[0]}function l(I){if(I.length===0)return null;var ne=I[0],oe=I.pop();if(oe!==ne){I[0]=oe;e:for(var ve=0,Se=I.length,S=Se>>>1;ve<S;){var D=2*(ve+1)-1,q=I[D],ue=D+1,pe=I[ue];if(0>u(q,oe))ue<Se&&0>u(pe,q)?(I[ve]=pe,I[ue]=oe,ve=ue):(I[ve]=q,I[D]=oe,ve=D);else if(ue<Se&&0>u(pe,oe))I[ve]=pe,I[ue]=oe,ve=ue;else break e}}return ne}function u(I,ne){var oe=I.sortIndex-ne.sortIndex;return oe!==0?oe:I.id-ne.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,y=p.now();s.unstable_now=function(){return p.now()-y}}var g=[],m=[],b=1,v=null,_=3,x=!1,T=!1,w=!1,A=!1,U=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function re(I){for(var ne=r(m);ne!==null;){if(ne.callback===null)l(m);else if(ne.startTime<=I)l(m),ne.sortIndex=ne.expirationTime,i(g,ne);else break;ne=r(m)}}function H(I){if(w=!1,re(I),!T)if(r(g)!==null)T=!0,P||(P=!0,fe());else{var ne=r(m);ne!==null&&he(H,ne.startTime-I)}}var P=!1,le=-1,k=5,z=-1;function Q(){return A?!0:!(s.unstable_now()-z<k)}function K(){if(A=!1,P){var I=s.unstable_now();z=I;var ne=!0;try{e:{T=!1,w&&(w=!1,G(le),le=-1),x=!0;var oe=_;try{t:{for(re(I),v=r(g);v!==null&&!(v.expirationTime>I&&Q());){var ve=v.callback;if(typeof ve=="function"){v.callback=null,_=v.priorityLevel;var Se=ve(v.expirationTime<=I);if(I=s.unstable_now(),typeof Se=="function"){v.callback=Se,re(I),ne=!0;break t}v===r(g)&&l(g),re(I)}else l(g);v=r(g)}if(v!==null)ne=!0;else{var S=r(m);S!==null&&he(H,S.startTime-I),ne=!1}}break e}finally{v=null,_=oe,x=!1}ne=void 0}}finally{ne?fe():P=!1}}}var fe;if(typeof L=="function")fe=function(){L(K)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,Ae=we.port2;we.port1.onmessage=K,fe=function(){Ae.postMessage(null)}}else fe=function(){U(K,0)};function he(I,ne){le=U(function(){I(s.unstable_now())},ne)}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(I){I.callback=null},s.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<I?Math.floor(1e3/I):5},s.unstable_getCurrentPriorityLevel=function(){return _},s.unstable_next=function(I){switch(_){case 1:case 2:case 3:var ne=3;break;default:ne=_}var oe=_;_=ne;try{return I()}finally{_=oe}},s.unstable_requestPaint=function(){A=!0},s.unstable_runWithPriority=function(I,ne){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var oe=_;_=I;try{return ne()}finally{_=oe}},s.unstable_scheduleCallback=function(I,ne,oe){var ve=s.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?ve+oe:ve):oe=ve,I){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=oe+Se,I={id:b++,callback:ne,priorityLevel:I,startTime:oe,expirationTime:Se,sortIndex:-1},oe>ve?(I.sortIndex=oe,i(m,I),r(g)===null&&I===r(m)&&(w?(G(le),le=-1):w=!0,he(H,oe-ve))):(I.sortIndex=Se,i(g,I),T||x||(T=!0,P||(P=!0,fe()))),I},s.unstable_shouldYield=Q,s.unstable_wrapCallback=function(I){var ne=_;return function(){var oe=_;_=ne;try{return I.apply(this,arguments)}finally{_=oe}}}})(Eu)),Eu}var Bm;function pE(){return Bm||(Bm=1,vu.exports=hE()),vu.exports}var _u={exports:{}},_n={};/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.js
|
|
28
28
|
*
|
|
@@ -30,7 +30,7 @@ var sE=Object.defineProperty;var rE=(s,i,r)=>i in s?sE(s,i,{enumerable:!0,config
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var
|
|
33
|
+
*/var jm;function mE(){if(jm)return _n;jm=1;var s=Bf();function i(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var l={d:{f:r,r:function(){throw Error(i(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,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:g,containerInfo:m,implementation:b}}var p=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return _n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,_n.createPortal=function(g,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return d(g,m,null,b)},_n.flushSync=function(g){var m=p.T,b=l.p;try{if(p.T=null,l.p=2,g)return g()}finally{p.T=m,l.p=b,l.d.f()}},_n.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))},_n.prefetchDNS=function(g){typeof g=="string"&&l.d.D(g)},_n.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin),_=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?l.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:x}):b==="script"&&l.d.X(g,{crossOrigin:v,integrity:_,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},_n.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=y(m.as,m.crossOrigin);l.d.M(g,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&l.d.M(g)},_n.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin);l.d.L(g,b,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},_n.preloadModule=function(g,m){if(typeof g=="string")if(m){var b=y(m.as,m.crossOrigin);l.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else l.d.m(g)},_n.requestFormReset=function(g){l.d.r(g)},_n.unstable_batchedUpdates=function(g,m){return g(m)},_n.useFormState=function(g,m,b){return p.H.useFormState(g,m,b)},_n.useFormStatus=function(){return p.H.useHostTransitionStatus()},_n.version="19.2.8",_n}var Im;function Sb(){if(Im)return _u.exports;Im=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(i){console.error(i)}}return s(),_u.exports=mE(),_u.exports}/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-dom-client.production.js
|
|
36
36
|
*
|
|
@@ -38,25 +38,25 @@ var sE=Object.defineProperty;var rE=(s,i,r)=>i in s?sE(s,i,{enumerable:!0,config
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var
|
|
41
|
+
*/var Hm;function gE(){if(Hm)return Ms;Hm=1;var s=pE(),i=Bf(),r=Sb();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 y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(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,a=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return g(o),e;if(c===a)return g(o),t;c=c.sibling}throw Error(l(188))}if(n.return!==a.return)n=o,a=c;else{for(var h=!1,E=o.child;E;){if(E===n){h=!0,n=o,a=c;break}if(E===a){h=!0,a=o,n=c;break}E=E.sibling}if(!h){for(E=c.child;E;){if(E===n){h=!0,n=c,a=o;break}if(E===a){h=!0,a=c,n=o;break}E=E.sibling}if(!h)throw Error(l(189))}}if(n.alternate!==a)throw Error(l(190))}if(n.tag!==3)throw Error(l(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,_=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),L=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),Q=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=K&&e[K]||e["@@iterator"],typeof e=="function"?e:null)}var we=Symbol.for("react.client.reference");function Ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===we?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case U:return"Profiler";case A:return"StrictMode";case H: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 G:return(e._context.displayName||"Context")+".Consumer";case re:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case le:return t=e.displayName||null,t!==null?t:Ae(e.type)||"Memo";case k:t=e._payload,e=e._init;try{return Ae(e(t))}catch{}}return null}var he=Array.isArray,I=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={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 q(e,t){Se++,ve[Se]=e.current,e.current=t}var ue=S(null),pe=S(null),xe=S(null),me=S(null);function Oe(e,t){switch(q(xe,t),q(pe,e),q(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?tm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=tm(t),e=nm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(ue),q(ue,e)}function Ee(){D(ue),D(pe),D(xe)}function He(e){e.memoizedState!==null&&q(me,e);var t=ue.current,n=nm(t,e.type);t!==n&&(q(pe,e),q(ue,n))}function We(e){pe.current===e&&(D(ue),D(pe)),me.current===e&&(D(me),ws._currentValue=oe)}var ke,At;function Ge(e){if(ke===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ke=t&&t[1]||"",At=-1<n.stack.indexOf(`
|
|
42
42
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+ke+e+At}var Nn=!1;function nt(e,t){if(!e||Nn)return"";Nn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var
|
|
43
|
+
`+ke+e+At}var Nn=!1;function nt(e,t){if(!e||Nn)return"";Nn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(Z){var F=Z}Reflect.construct(e,[],ie)}else{try{ie.call()}catch(Z){F=Z}e.call(ie.prototype)}}else{try{throw Error()}catch(Z){F=Z}(ie=e())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(Z){if(Z&&F&&typeof Z.stack=="string")return[Z.stack,F.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),h=c[0],E=c[1];if(h&&E){var O=h.split(`
|
|
44
44
|
`),Y=E.split(`
|
|
45
45
|
`);for(o=a=0;a<O.length&&!O[a].includes("DetermineComponentFrameRoot");)a++;for(;o<Y.length&&!Y[o].includes("DetermineComponentFrameRoot");)o++;if(a===O.length||o===Y.length)for(a=O.length-1,o=Y.length-1;1<=a&&0<=o&&O[a]!==Y[o];)o--;for(;1<=a&&0<=o;a--,o--)if(O[a]!==Y[o]){if(a!==1||o!==1)do if(a--,o--,0>o||O[a]!==Y[o]){var W=`
|
|
46
46
|
`+O[a].replace(" at new "," at ");return e.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",e.displayName)),W}while(1<=a&&0<=o);break}}}finally{Nn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ge(n):""}function xn(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 nt(e.type,!1);case 11:return nt(e.type.render,!1);case 1:return nt(e.type,!0);case 31:return Ge("Activity");default:return""}}function rn(e){try{var t="",n=null;do t+=xn(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
47
|
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var zt=Object.prototype.hasOwnProperty,qn=s.unstable_scheduleCallback,Jt=s.unstable_cancelCallback,ca=s.unstable_shouldYield,Vn=s.unstable_requestPaint,Ke=s.unstable_now,Ut=s.unstable_getCurrentPriorityLevel,mt=s.unstable_ImmediatePriority,bn=s.unstable_UserBlockingPriority,yn=s.unstable_NormalPriority,kn=s.unstable_LowPriority,Mn=s.unstable_IdlePriority,Cn=s.log,Dn=s.unstable_setDisableYieldValue,on=null,St=null;function Wt(e){if(typeof Cn=="function"&&Dn(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(on,e)}catch{}}var Nt=Math.clz32?Math.clz32:wn,Gn=Math.log,Ln=Math.LN2;function wn(e){return e>>>=0,e===0?32:31-(Gn(e)/Ln|0)|0}var je=256,cn=262144,Qt=4194304;function Ct(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 R(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var E=a&134217727;return E!==0?(a=E&~c,a!==0?o=Ct(a):(h&=E,h!==0?o=Ct(h):n||(n=E&~e,n!==0&&(o=Ct(n))))):(E=a&~c,E!==0?o=Ct(E):h!==0?o=Ct(h):n||(n=a&~e,n!==0&&(o=Ct(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 J(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function C(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 ee(){var e=Qt;return Qt<<=1,(Qt&62914560)===0&&(Qt=4194304),e}function de(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Le(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ye(e,t,n,a,o,c){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var E=e.entanglements,O=e.expirationTimes,Y=e.hiddenUpdates;for(n=h&~n;0<n;){var W=31-Nt(n),ae=1<<W;E[W]=0,O[W]=-1;var F=Y[W];if(F!==null)for(Y[W]=null,W=0;W<F.length;W++){var Z=F[W];Z!==null&&(Z.lane&=-536870913)}n&=~ae}a!==0&&be(e,a,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function be(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Nt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function ze(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Nt(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function Rt(e,t){var n=t&-t;return n=(n&42)!==0?1:gt(n),(n&(e.suspendedLanes|t))!==0?0:n}function gt(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 Jn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ya(){var e=ne.p;return e!==0?e:(e=window.event,e===void 0?32:Nm(e.type))}function ei(e,t){var n=ne.p;try{return ne.p=e,t()}finally{ne.p=n}}var vn=Math.random().toString(36).slice(2),Mt="__reactFiber$"+vn,en="__reactProps$"+vn,lt="__reactContainer$"+vn,Wn="__reactEvents$"+vn,tl="__reactListeners$"+vn,ka="__reactHandles$"+vn,ti="__reactResources$"+vn,va="__reactMarker$"+vn;function ni(e){delete e[Mt],delete e[en],delete e[Wn],delete e[tl],delete e[ka]}function un(e){var t=e[Mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[lt]||n[Mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=om(e);e!==null;){if(n=e[Mt])return n;e=om(e)}return t}e=n,n=e.parentNode}return null}function ua(e){if(e=e[Mt]||e[lt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ea(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function _a(e){var t=e[ti];return t||(t=e[ti]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[va]=!0}var Ma=new Set,An={};function fa(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(An[e]=t,e=0;e<t.length;e++)Ma.add(t[e])}var Me=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]*$"),$e={},st={};function Tt(e){return zt.call(st,e)?!0:zt.call($e,e)?!1:Me.test(e)?st[e]=!0:($e[e]=!0,!1)}function qt(e,t,n){if(Tt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function tn(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 Bt(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function rt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ot(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nl(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.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:a.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ai(e){if(!e._valueTracker){var t=Ot(e)?"checked":"value";e._valueTracker=nl(e,t,""+e[t])}}function ii(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Ot(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Ca(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 En(e){return e.replace(al,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function li(e,t,n,a,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=""+rt(t)):e.value!==""+rt(t)&&(e.value=""+rt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?si(e,h,rt(t)):n!=null?si(e,h,rt(n)):a!=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=""+rt(E):e.removeAttribute("name")}function Da(e,t,n,a,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)){ai(e);return}n=n!=null?""+rt(n):"",t=t!=null?""+rt(t):n,E||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=E?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),ai(e)}function si(e,t,n){t==="number"&&Ca(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Gt(e,t,n,a){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&&a&&(e[n].defaultSelected=!0)}else{for(n=""+rt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function La(e,t,n){if(t!=null&&(t=""+rt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+rt(n):""}function Sa(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(l(92));if(he(a)){if(1<a.length)throw Error(l(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=rt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),ai(e)}function X(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var T=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function B(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||T.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function V(e,t,n){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&B(e,o,a)}else for(var c in t)t.hasOwnProperty(c)&&B(e,c,t[c])}function _e(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 Ne=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 Xe(e){return Be.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function se(){}var ge=null;function Ce(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fe=null,Pe=null;function ea(e){var t=ua(e);if(t&&(e=t.stateNode)){var n=e[en]||null;e:switch(e=t.stateNode,t.type){case"input":if(li(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="'+En(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[en]||null;if(!o)throw Error(l(90));li(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&ii(a)}break e;case"textarea":La(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Gt(e,!!n.multiple,t,!1)}}}var Gl=!1;function Fs(e,t,n){if(Gl)return e(t,n);Gl=!0;try{var a=e(t);return a}finally{if(Gl=!1,(Fe!==null||Pe!==null)&&(Cr(),Fe&&(t=Fe,e=Pe,Pe=Fe=null,ea(t),e)))for(t=0;t<e.length;t++)ea(e[t])}}function $l(e,t){var n=e.stateNode;if(n===null)return null;var a=n[en]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(l(231,t,typeof n));return n}var za=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),go=!1;if(za)try{var Yl={};Object.defineProperty(Yl,"passive",{get:function(){go=!0}}),window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{go=!1}var ri=null,bo=null,Ks=null;function td(){if(Ks)return Ks;var e,t=bo,n=t.length,a,o="value"in ri?ri.value:ri.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var h=n-e;for(a=1;a<=h&&t[n-a]===o[c-a];a++);return Ks=o.slice(e,1<a?1-a: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 nd(){return!1}function zn(e){function t(n,a,o,c,h){this._reactName=n,this._targetInst=o,this.type=a,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:nd,this.isPropagationStopped=nd,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 Li={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xs=zn(Li),Fl=v({},Li,{view:0,detail:0}),iy=zn(Fl),yo,vo,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:_o,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"?(yo=e.screenX-Kl.screenX,vo=e.screenY-Kl.screenY):vo=yo=0,Kl=e),yo)},movementY:function(e){return"movementY"in e?e.movementY:vo}}),ad=zn(Qs),ly=v({},Qs,{dataTransfer:0}),sy=zn(ly),ry=v({},Fl,{relatedTarget:0}),Eo=zn(ry),oy=v({},Li,{animationName:0,elapsedTime:0,pseudoElement:0}),cy=zn(oy),uy=v({},Li,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fy=zn(uy),dy=v({},Li,{data:0}),id=zn(dy),hy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},py={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"},my={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=my[e])?!!t[e]:!1}function _o(){return gy}var by=v({},Fl,{key:function(e){if(e.key){var t=hy[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"?py[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_o,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}}),yy=zn(by),vy=v({},Qs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ld=zn(vy),Ey=v({},Fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_o}),_y=zn(Ey),Sy=v({},Li,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ty=zn(Sy),Ny=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}),xy=zn(Ny),wy=v({},Li,{newState:0,oldState:0}),Ay=zn(wy),Ry=[9,13,27,32],So=za&&"CompositionEvent"in window,Pl=null;za&&"documentMode"in document&&(Pl=document.documentMode);var Oy=za&&"TextEvent"in window&&!Pl,sd=za&&(!So||Pl&&8<Pl&&11>=Pl),rd=" ",od=!1;function cd(e,t){switch(e){case"keyup":return Ry.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ud(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var il=!1;function ky(e,t){switch(e){case"compositionend":return ud(t);case"keypress":return t.which!==32?null:(od=!0,rd);case"textInput":return e=t.data,e===rd&&od?null:e;default:return null}}function My(e,t){if(il)return e==="compositionend"||!So&&cd(e,t)?(e=td(),Ks=bo=ri=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 sd&&t.locale!=="ko"?null:t.data;default:return null}}var Cy={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 fd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cy[e.type]:t==="textarea"}function dd(e,t,n,a){Fe?Pe?Pe.push(a):Pe=[a]:Fe=a,t=Ir(t,"onChange"),0<t.length&&(n=new Xs("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Zl=null,Xl=null;function Dy(e){Zp(e,0)}function Vs(e){var t=Ea(e);if(ii(t))return e}function hd(e,t){if(e==="change")return t}var pd=!1;if(za){var To;if(za){var No="oninput"in document;if(!No){var md=document.createElement("div");md.setAttribute("oninput","return;"),No=typeof md.oninput=="function"}To=No}else To=!1;pd=To&&(!document.documentMode||9<document.documentMode)}function gd(){Zl&&(Zl.detachEvent("onpropertychange",bd),Xl=Zl=null)}function bd(e){if(e.propertyName==="value"&&Vs(Xl)){var t=[];dd(t,Xl,e,Ce(e)),Fs(Dy,t)}}function Ly(e,t,n){e==="focusin"?(gd(),Zl=t,Xl=n,Zl.attachEvent("onpropertychange",bd)):e==="focusout"&&gd()}function zy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Vs(Xl)}function Uy(e,t){if(e==="click")return Vs(t)}function By(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 $n=typeof Object.is=="function"?Object.is:jy;function Ql(e,t){if($n(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!zt.call(t,o)||!$n(e[o],t[o]))return!1}return!0}function yd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function vd(e,t){var n=yd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=yd(n)}}function Ed(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ed(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _d(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ca(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=Ca(e.document)}return t}function xo(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 Iy=za&&"documentMode"in document&&11>=document.documentMode,ll=null,wo=null,Vl=null,Ao=!1;function Sd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ao||ll==null||ll!==Ca(a)||(a=ll,"selectionStart"in a&&xo(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Vl&&Ql(Vl,a)||(Vl=a,a=Ir(wo,"onSelect"),0<a.length&&(t=new Xs("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ll)))}function zi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sl={animationend:zi("Animation","AnimationEnd"),animationiteration:zi("Animation","AnimationIteration"),animationstart:zi("Animation","AnimationStart"),transitionrun:zi("Transition","TransitionRun"),transitionstart:zi("Transition","TransitionStart"),transitioncancel:zi("Transition","TransitionCancel"),transitionend:zi("Transition","TransitionEnd")},Ro={},Td={};za&&(Td=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 Ui(e){if(Ro[e])return Ro[e];if(!sl[e])return e;var t=sl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Td)return Ro[e]=t[n];return e}var Nd=Ui("animationend"),xd=Ui("animationiteration"),wd=Ui("animationstart"),Hy=Ui("transitionrun"),qy=Ui("transitionstart"),Gy=Ui("transitioncancel"),Ad=Ui("transitionend"),Rd=new Map,Oo="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(" ");Oo.push("scrollEnd");function da(e,t){Rd.set(e,t),fa(t,[e])}var Js=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)},ta=[],rl=0,ko=0;function Ws(){for(var e=rl,t=ko=rl=0;t<e;){var n=ta[t];ta[t++]=null;var a=ta[t];ta[t++]=null;var o=ta[t];ta[t++]=null;var c=ta[t];if(ta[t++]=null,a!==null&&o!==null){var h=a.pending;h===null?o.next=o:(o.next=h.next,h.next=o),a.pending=o}c!==0&&Od(n,o,c)}}function er(e,t,n,a){ta[rl++]=e,ta[rl++]=t,ta[rl++]=n,ta[rl++]=a,ko|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Mo(e,t,n,a){return er(e,t,n,a),tr(e)}function Bi(e,t){return er(e,null,null,t),tr(e)}function Od(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.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-Nt(n),e=c.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),c):null}function tr(e){if(50<vs)throw vs=0,Hc=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 $y(e,t,n,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yn(e,t,n,a){return new $y(e,t,n,a)}function Co(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ua(e,t){var n=e.alternate;return n===null?(n=Yn(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 kd(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,a,o,c){var h=0;if(a=e,typeof e=="function")Co(e)&&(h=1);else if(typeof e=="string")h=Zv(e,n,ue.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case z:return e=Yn(31,n,t,o),e.elementType=z,e.lanes=c,e;case A:return ji(n.children,o,c,t);case w:h=8,o|=24;break;case U:return e=Yn(12,n,t,o|2),e.elementType=U,e.lanes=c,e;case H:return e=Yn(13,n,t,o),e.elementType=H,e.lanes=c,e;case P:return e=Yn(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 G:h=9;break e;case re:h=11;break e;case le:h=14;break e;case k:h=16,a=null;break e}h=29,n=Error(l(130,e===null?"null":typeof e,"")),a=null}return t=Yn(h,n,t,o),t.elementType=e,t.type=a,t.lanes=c,t}function ji(e,t,n,a){return e=Yn(7,e,a,t),e.lanes=n,e}function Do(e,t,n){return e=Yn(6,e,null,t),e.lanes=n,e}function Md(e){var t=Yn(18,null,null,0);return t.stateNode=e,t}function Lo(e,t,n){return t=Yn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Cd=new WeakMap;function na(e,t){if(typeof e=="object"&&e!==null){var n=Cd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:rn(t)},Cd.set(e,t),t)}return{value:e,source:t,stack:rn(t)}}var cl=[],ul=0,ar=null,Jl=0,aa=[],ia=0,oi=null,Ta=1,Na="";function Ba(e,t){cl[ul++]=Jl,cl[ul++]=ar,ar=e,Jl=t}function Dd(e,t,n){aa[ia++]=Ta,aa[ia++]=Na,aa[ia++]=oi,oi=e;var a=Ta;e=Na;var o=32-Nt(a)-1;a&=~(1<<o),n+=1;var c=32-Nt(t)+o;if(30<c){var h=o-o%5;c=(a&(1<<h)-1).toString(32),a>>=h,o-=h,Ta=1<<32-Nt(t)+o|n<<o|a,Na=c+e}else Ta=1<<c|n<<o|a,Na=e}function zo(e){e.return!==null&&(Ba(e,1),Dd(e,1,0))}function Uo(e){for(;e===ar;)ar=cl[--ul],cl[ul]=null,Jl=cl[--ul],cl[ul]=null;for(;e===oi;)oi=aa[--ia],aa[ia]=null,Na=aa[--ia],aa[ia]=null,Ta=aa[--ia],aa[ia]=null}function Ld(e,t){aa[ia++]=Ta,aa[ia++]=Na,aa[ia++]=oi,Ta=t.id,Na=t.overflow,oi=e}var fn=null,xt=null,at=!1,ci=null,la=!1,Bo=Error(l(519));function ui(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wl(na(t,e)),Bo}function zd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Mt]=e,t[en]=a,n){case"dialog":Ve("cancel",t),Ve("close",t);break;case"iframe":case"object":case"embed":Ve("load",t);break;case"video":case"audio":for(n=0;n<_s.length;n++)Ve(_s[n],t);break;case"source":Ve("error",t);break;case"img":case"image":case"link":Ve("error",t),Ve("load",t);break;case"details":Ve("toggle",t);break;case"input":Ve("invalid",t),Da(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ve("invalid",t);break;case"textarea":Ve("invalid",t),Sa(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Jp(t.textContent,n)?(a.popover!=null&&(Ve("beforetoggle",t),Ve("toggle",t)),a.onScroll!=null&&Ve("scroll",t),a.onScrollEnd!=null&&Ve("scrollend",t),a.onClick!=null&&(t.onclick=se),t=!0):t=!1,t||ui(e,!0)}function Ud(e){for(fn=e.return;fn;)switch(fn.tag){case 5:case 31:case 13:la=!1;return;case 27:case 3:la=!0;return;default:fn=fn.return}}function fl(e){if(e!==fn)return!1;if(!at)return Ud(e),at=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||tu(e.type,e.memoizedProps)),n=!n),n&&xt&&ui(e),Ud(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));xt=rm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));xt=rm(e)}else t===27?(t=xt,Ni(e.type)?(e=su,su=null,xt=e):xt=t):xt=fn?ra(e.stateNode.nextSibling):null;return!0}function Ii(){xt=fn=null,at=!1}function jo(){var e=ci;return e!==null&&(In===null?In=e:In.push.apply(In,e),ci=null),e}function Wl(e){ci===null?ci=[e]:ci.push(e)}var Io=S(null),Hi=null,ja=null;function fi(e,t,n){q(Io,t._currentValue),t._currentValue=n}function Ia(e){e._currentValue=Io.current,D(Io)}function Ho(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function qo(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var E=c;c=o;for(var O=0;O<t.length;O++)if(E.context===t[O]){c.lanes|=n,E=c.alternate,E!==null&&(E.lanes|=n),Ho(c.return,n,e),a||(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),Ho(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,a){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;$n(o.pendingProps.value,h.value)||(e!==null?e.push(E):e=[E])}}else if(o===me.current){if(h=o.alternate,h===null)throw Error(l(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ws):e=[ws])}o=o.return}e!==null&&qo(t,e,n,a),t.flags|=262144}function ir(e){for(e=e.firstContext;e!==null;){if(!$n(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qi(e){Hi=e,ja=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function dn(e){return Bd(Hi,e)}function lr(e,t){return Hi===null&&qi(e),Bd(e,t)}function Bd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ja===null){if(e===null)throw Error(l(308));ja=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ja=ja.next=t;return n}var Yy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Fy=s.unstable_scheduleCallback,Ky=s.unstable_NormalPriority,$t={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Go(){return{controller:new Yy,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&Fy(Ky,function(){e.controller.abort()})}var ts=null,$o=0,hl=0,pl=null;function Py(e,t){if(ts===null){var n=ts=[];$o=0,hl=Kc(),pl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return $o++,t.then(jd,jd),t}function jd(){if(--$o===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 Zy(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var Id=I.S;I.S=function(e,t){Sp=Ke(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Py(e,t),Id!==null&&Id(e,t)};var Gi=S(null);function Yo(){var e=Gi.current;return e!==null?e:_t.pooledCache}function sr(e,t){t===null?q(Gi,Gi.current):q(Gi,t.pool)}function Hd(){var e=Yo();return e===null?null:{parent:$t._currentValue,pool:e}}var ml=Error(l(460)),Fo=Error(l(474)),rr=Error(l(542)),or={then:function(){}};function qd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Gd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(se,se),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Yd(e),e;default:if(typeof t.status=="string")t.then(se,se);else{if(e=_t,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Yd(e),e}throw Yi=t,ml}}function $i(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Yi=n,ml):n}}var Yi=null;function $d(){if(Yi===null)throw Error(l(459));var e=Yi;return Yi=null,e}function Yd(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=[]),Gd(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 Fd(e){function t(j,M){if(e){var $=j.deletions;$===null?(j.deletions=[M],j.flags|=16):$.push(M)}}function n(j,M){if(!e)return null;for(;M!==null;)t(j,M),M=M.sibling;return null}function a(j){for(var M=new Map;j!==null;)j.key!==null?M.set(j.key,j):M.set(j.index,j),j=j.sibling;return M}function o(j,M){return j=Ua(j,M),j.index=0,j.sibling=null,j}function c(j,M,$){return j.index=$,e?($=j.alternate,$!==null?($=$.index,$<M?(j.flags|=67108866,M):$):(j.flags|=67108866,M)):(j.flags|=1048576,M)}function h(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function E(j,M,$,te){return M===null||M.tag!==6?(M=Do($,j.mode,te),M.return=j,M):(M=o(M,$),M.return=j,M)}function O(j,M,$,te){var De=$.type;return De===A?W(j,M,$.props.children,te,$.key):M!==null&&(M.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===k&&$i(De)===M.type)?(M=o(M,$.props),as(M,$),M.return=j,M):(M=nr($.type,$.key,$.props,null,j.mode,te),as(M,$),M.return=j,M)}function Y(j,M,$,te){return M===null||M.tag!==4||M.stateNode.containerInfo!==$.containerInfo||M.stateNode.implementation!==$.implementation?(M=Lo($,j.mode,te),M.return=j,M):(M=o(M,$.children||[]),M.return=j,M)}function W(j,M,$,te,De){return M===null||M.tag!==7?(M=ji($,j.mode,te,De),M.return=j,M):(M=o(M,$),M.return=j,M)}function ae(j,M,$){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Do(""+M,j.mode,$),M.return=j,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return $=nr(M.type,M.key,M.props,null,j.mode,$),as($,M),$.return=j,$;case N:return M=Lo(M,j.mode,$),M.return=j,M;case k:return M=$i(M),ae(j,M,$)}if(he(M)||fe(M))return M=ji(M,j.mode,$,null),M.return=j,M;if(typeof M.then=="function")return ae(j,cr(M),$);if(M.$$typeof===L)return ae(j,lr(j,M),$);ur(j,M)}return null}function F(j,M,$,te){var De=M!==null?M.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return De!==null?null:E(j,M,""+$,te);if(typeof $=="object"&&$!==null){switch($.$$typeof){case x:return $.key===De?O(j,M,$,te):null;case N:return $.key===De?Y(j,M,$,te):null;case k:return $=$i($),F(j,M,$,te)}if(he($)||fe($))return De!==null?null:W(j,M,$,te,null);if(typeof $.then=="function")return F(j,M,cr($),te);if($.$$typeof===L)return F(j,M,lr(j,$),te);ur(j,$)}return null}function Z(j,M,$,te,De){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return j=j.get($)||null,E(M,j,""+te,De);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case x:return j=j.get(te.key===null?$:te.key)||null,O(M,j,te,De);case N:return j=j.get(te.key===null?$:te.key)||null,Y(M,j,te,De);case k:return te=$i(te),Z(j,M,$,te,De)}if(he(te)||fe(te))return j=j.get($)||null,W(M,j,te,De,null);if(typeof te.then=="function")return Z(j,M,$,cr(te),De);if(te.$$typeof===L)return Z(j,M,$,lr(M,te),De);ur(M,te)}return null}function Te(j,M,$,te){for(var De=null,ot=null,Re=M,Ye=M=0,tt=null;Re!==null&&Ye<$.length;Ye++){Re.index>Ye?(tt=Re,Re=null):tt=Re.sibling;var ct=F(j,Re,$[Ye],te);if(ct===null){Re===null&&(Re=tt);break}e&&Re&&ct.alternate===null&&t(j,Re),M=c(ct,M,Ye),ot===null?De=ct:ot.sibling=ct,ot=ct,Re=tt}if(Ye===$.length)return n(j,Re),at&&Ba(j,Ye),De;if(Re===null){for(;Ye<$.length;Ye++)Re=ae(j,$[Ye],te),Re!==null&&(M=c(Re,M,Ye),ot===null?De=Re:ot.sibling=Re,ot=Re);return at&&Ba(j,Ye),De}for(Re=a(Re);Ye<$.length;Ye++)tt=Z(Re,j,Ye,$[Ye],te),tt!==null&&(e&&tt.alternate!==null&&Re.delete(tt.key===null?Ye:tt.key),M=c(tt,M,Ye),ot===null?De=tt:ot.sibling=tt,ot=tt);return e&&Re.forEach(function(Oi){return t(j,Oi)}),at&&Ba(j,Ye),De}function Ue(j,M,$,te){if($==null)throw Error(l(151));for(var De=null,ot=null,Re=M,Ye=M=0,tt=null,ct=$.next();Re!==null&&!ct.done;Ye++,ct=$.next()){Re.index>Ye?(tt=Re,Re=null):tt=Re.sibling;var Oi=F(j,Re,ct.value,te);if(Oi===null){Re===null&&(Re=tt);break}e&&Re&&Oi.alternate===null&&t(j,Re),M=c(Oi,M,Ye),ot===null?De=Oi:ot.sibling=Oi,ot=Oi,Re=tt}if(ct.done)return n(j,Re),at&&Ba(j,Ye),De;if(Re===null){for(;!ct.done;Ye++,ct=$.next())ct=ae(j,ct.value,te),ct!==null&&(M=c(ct,M,Ye),ot===null?De=ct:ot.sibling=ct,ot=ct);return at&&Ba(j,Ye),De}for(Re=a(Re);!ct.done;Ye++,ct=$.next())ct=Z(Re,j,Ye,ct.value,te),ct!==null&&(e&&ct.alternate!==null&&Re.delete(ct.key===null?Ye:ct.key),M=c(ct,M,Ye),ot===null?De=ct:ot.sibling=ct,ot=ct);return e&&Re.forEach(function(lE){return t(j,lE)}),at&&Ba(j,Ye),De}function vt(j,M,$,te){if(typeof $=="object"&&$!==null&&$.type===A&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case x:e:{for(var De=$.key;M!==null;){if(M.key===De){if(De=$.type,De===A){if(M.tag===7){n(j,M.sibling),te=o(M,$.props.children),te.return=j,j=te;break e}}else if(M.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===k&&$i(De)===M.type){n(j,M.sibling),te=o(M,$.props),as(te,$),te.return=j,j=te;break e}n(j,M);break}else t(j,M);M=M.sibling}$.type===A?(te=ji($.props.children,j.mode,te,$.key),te.return=j,j=te):(te=nr($.type,$.key,$.props,null,j.mode,te),as(te,$),te.return=j,j=te)}return h(j);case N:e:{for(De=$.key;M!==null;){if(M.key===De)if(M.tag===4&&M.stateNode.containerInfo===$.containerInfo&&M.stateNode.implementation===$.implementation){n(j,M.sibling),te=o(M,$.children||[]),te.return=j,j=te;break e}else{n(j,M);break}else t(j,M);M=M.sibling}te=Lo($,j.mode,te),te.return=j,j=te}return h(j);case k:return $=$i($),vt(j,M,$,te)}if(he($))return Te(j,M,$,te);if(fe($)){if(De=fe($),typeof De!="function")throw Error(l(150));return $=De.call($),Ue(j,M,$,te)}if(typeof $.then=="function")return vt(j,M,cr($),te);if($.$$typeof===L)return vt(j,M,lr(j,$),te);ur(j,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,M!==null&&M.tag===6?(n(j,M.sibling),te=o(M,$),te.return=j,j=te):(n(j,M),te=Do($,j.mode,te),te.return=j,j=te),h(j)):n(j,M)}return function(j,M,$,te){try{ns=0;var De=vt(j,M,$,te);return gl=null,De}catch(Re){if(Re===ml||Re===rr)throw Re;var ot=Yn(29,Re,null,j.mode);return ot.lanes=te,ot.return=j,ot}finally{}}}var Fi=Fd(!0),Kd=Fd(!1),di=!1;function Ko(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Po(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 hi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function pi(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ut&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=tr(e),Od(e,null,n),t}return er(e,a,t,n),tr(e)}function is(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ze(e,n)}}function Zo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){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:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Xo=!1;function ls(){if(Xo){var e=pl;if(e!==null)throw e}}function ss(e,t,n,a){Xo=!1;var o=e.updateQueue;di=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var O=E,Y=O.next;O.next=null,h===null?c=Y:h.next=Y,h=O;var W=e.alternate;W!==null&&(W=W.updateQueue,E=W.lastBaseUpdate,E!==h&&(E===null?W.firstBaseUpdate=Y:E.next=Y,W.lastBaseUpdate=O))}if(c!==null){var ae=o.baseState;h=0,W=Y=O=null,E=c;do{var F=E.lane&-536870913,Z=F!==E.lane;if(Z?(et&F)===F:(a&F)===F){F!==0&&F===hl&&(Xo=!0),W!==null&&(W=W.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var Te=e,Ue=E;F=t;var vt=n;switch(Ue.tag){case 1:if(Te=Ue.payload,typeof Te=="function"){ae=Te.call(vt,ae,F);break e}ae=Te;break e;case 3:Te.flags=Te.flags&-65537|128;case 0:if(Te=Ue.payload,F=typeof Te=="function"?Te.call(vt,ae,F):Te,F==null)break e;ae=v({},ae,F);break e;case 2:di=!0}}F=E.callback,F!==null&&(e.flags|=64,Z&&(e.flags|=8192),Z=o.callbacks,Z===null?o.callbacks=[F]:Z.push(F))}else Z={lane:F,tag:E.tag,payload:E.payload,callback:E.callback,next:null},W===null?(Y=W=Z,O=ae):W=W.next=Z,h|=F;if(E=E.next,E===null){if(E=o.shared.pending,E===null)break;Z=E,E=Z.next,Z.next=null,o.lastBaseUpdate=Z,o.shared.pending=null}}while(!0);W===null&&(O=ae),o.baseState=O,o.firstBaseUpdate=Y,o.lastBaseUpdate=W,c===null&&(o.shared.lanes=0),vi|=h,e.lanes=h,e.memoizedState=ae}}function Pd(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function Zd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Pd(n[e],t)}var bl=S(null),fr=S(0);function Xd(e,t){e=Za,q(fr,e),q(bl,t),Za=e|t.baseLanes}function Qo(){q(fr,Za),q(bl,bl.current)}function Vo(){Za=fr.current,D(bl),D(fr)}var Fn=S(null),sa=null;function mi(e){var t=e.alternate;q(jt,jt.current&1),q(Fn,e),sa===null&&(t===null||bl.current!==null||t.memoizedState!==null)&&(sa=e)}function Jo(e){q(jt,jt.current),q(Fn,e),sa===null&&(sa=e)}function Qd(e){e.tag===22?(q(jt,jt.current),q(Fn,e),sa===null&&(sa=e)):gi()}function gi(){q(jt,jt.current),q(Fn,Fn.current)}function Kn(e){D(Fn),sa===e&&(sa=null),D(jt)}var jt=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||iu(n)||lu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ha=0,qe=null,bt=null,Yt=null,hr=!1,yl=!1,Ki=!1,pr=0,rs=0,vl=null,Xy=0;function Dt(){throw Error(l(321))}function Wo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$n(e[n],t[n]))return!1;return!0}function ec(e,t,n,a,o,c){return Ha=c,qe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Dh:mc,Ki=!1,c=n(a,o),Ki=!1,yl&&(c=Jd(t,n,a,o)),Vd(e),c}function Vd(e){I.H=us;var t=bt!==null&&bt.next!==null;if(Ha=0,Yt=bt=qe=null,hr=!1,rs=0,vl=null,t)throw Error(l(300));e===null||Ft||(e=e.dependencies,e!==null&&ir(e)&&(Ft=!0))}function Jd(e,t,n,a){qe=e;var o=0;do{if(yl&&(vl=null),rs=0,yl=!1,25<=o)throw Error(l(301));if(o+=1,Yt=bt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}I.H=Lh,c=t(n,a)}while(yl);return c}function Qy(){var e=I.H,t=e.useState()[0];return t=typeof t.then=="function"?os(t):t,e=e.useState()[0],(bt!==null?bt.memoizedState:null)!==e&&(qe.flags|=1024),t}function tc(){var e=pr!==0;return pr=0,e}function nc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ac(e){if(hr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hr=!1}Ha=0,Yt=bt=qe=null,yl=!1,rs=pr=0,vl=null}function Rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?qe.memoizedState=Yt=e:Yt=Yt.next=e,Yt}function It(){if(bt===null){var e=qe.alternate;e=e!==null?e.memoizedState:null}else e=bt.next;var t=Yt===null?qe.memoizedState:Yt.next;if(t!==null)Yt=t,bt=e;else{if(e===null)throw qe.alternate===null?Error(l(467)):Error(l(310));bt=e,e={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},Yt===null?qe.memoizedState=Yt=e:Yt=Yt.next=e}return Yt}function mr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=rs;return rs+=1,vl===null&&(vl=[]),e=Gd(vl,e,t),t=qe,(Yt===null?t.memoizedState:Yt.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Dh:mc),e}function gr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===L)return dn(e)}throw Error(l(438,String(e)))}function ic(e){var t=null,n=qe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=qe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=mr(),qe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=Q;return t.index++,n}function qa(e,t){return typeof t=="function"?t(e):t}function br(e){var t=It();return lc(t,bt,e)}function lc(e,t,n){var a=e.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=n;var o=e.baseQueue,c=a.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,a.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var E=h=null,O=null,Y=t,W=!1;do{var ae=Y.lane&-536870913;if(ae!==Y.lane?(et&ae)===ae:(Ha&ae)===ae){var F=Y.revertLane;if(F===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),ae===hl&&(W=!0);else if((Ha&F)===F){Y=Y.next,F===hl&&(W=!0);continue}else ae={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},O===null?(E=O=ae,h=c):O=O.next=ae,qe.lanes|=F,vi|=F;ae=Y.action,Ki&&n(c,ae),c=Y.hasEagerState?Y.eagerState:n(c,ae)}else F={lane:ae,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},O===null?(E=O=F,h=c):O=O.next=F,qe.lanes|=ae,vi|=ae;Y=Y.next}while(Y!==null&&Y!==t);if(O===null?h=c:O.next=E,!$n(c,e.memoizedState)&&(Ft=!0,W&&(n=pl,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=O,a.lastRenderedState=c}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function sc(e){var t=It(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var a=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);$n(c,t.memoizedState)||(Ft=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function Wd(e,t,n){var a=qe,o=It(),c=at;if(c){if(n===void 0)throw Error(l(407));n=n()}else n=t();var h=!$n((bt||o).memoizedState,n);if(h&&(o.memoizedState=n,Ft=!0),o=o.queue,cc(nh.bind(null,a,o,e),[e]),o.getSnapshot!==t||h||Yt!==null&&Yt.memoizedState.tag&1){if(a.flags|=2048,El(9,{destroy:void 0},th.bind(null,a,o,n,t),null),_t===null)throw Error(l(349));c||(Ha&127)!==0||eh(a,t,n)}return n}function eh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=qe.updateQueue,t===null?(t=mr(),qe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function th(e,t,n,a){t.value=n,t.getSnapshot=a,ah(t)&&ih(e)}function nh(e,t,n){return n(function(){ah(t)&&ih(e)})}function ah(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$n(e,n)}catch{return!0}}function ih(e){var t=Bi(e,2);t!==null&&Hn(t,e,2)}function rc(e){var t=Rn();if(typeof e=="function"){var n=e;if(e=n(),Ki){Wt(!0);try{n()}finally{Wt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:e},t}function lh(e,t,n,a){return e.baseState=n,lc(e,bt,typeof a=="function"?a:qa)}function Vy(e,t,n,a,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)}};I.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,sh(t,c)):(c.next=n.next,t.pending=n.next=c)}}function sh(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var c=I.T,h={};I.T=h;try{var E=n(o,a),O=I.S;O!==null&&O(h,E),rh(e,t,E)}catch(Y){oc(e,t,Y)}finally{c!==null&&h.types!==null&&(c.types=h.types),I.T=c}}else try{c=n(o,a),rh(e,t,c)}catch(Y){oc(e,t,Y)}}function rh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){oh(e,t,a)},function(a){return oc(e,t,a)}):oh(e,t,n)}function oh(e,t,n){t.status="fulfilled",t.value=n,ch(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,sh(e,n)))}function oc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,ch(t),t=t.next;while(t!==a)}e.action=null}function ch(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function uh(e,t){return t}function fh(e,t){if(at){var n=_t.formState;if(n!==null){e:{var a=qe;if(at){if(xt){t:{for(var o=xt,c=la;o.nodeType!==8;){if(!c){o=null;break t}if(o=ra(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){xt=ra(o.nextSibling),a=o.data==="F!";break e}}ui(a)}a=!1}a&&(t=n[0])}}return n=Rn(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:uh,lastRenderedState:t},n.queue=a,n=kh.bind(null,qe,a),a.dispatch=n,a=rc(!1),c=pc.bind(null,qe,!1,a.queue),a=Rn(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=Vy.bind(null,qe,o,c,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function dh(e){var t=It();return hh(t,bt,e)}function hh(e,t,n){if(t=lc(e,t,uh)[0],e=br(qa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=os(t)}catch(h){throw h===ml?rr:h}else a=t;t=It();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(qe.flags|=2048,El(9,{destroy:void 0},Jy.bind(null,o,n),null)),[a,c,e]}function Jy(e,t){e.action=t}function ph(e){var t=It(),n=bt;if(n!==null)return hh(t,n,e);It(),t=t.memoizedState,n=It();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function El(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=qe.updateQueue,t===null&&(t=mr(),qe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function mh(){return It().memoizedState}function yr(e,t,n,a){var o=Rn();qe.flags|=e,o.memoizedState=El(1|t,{destroy:void 0},n,a===void 0?null:a)}function vr(e,t,n,a){var o=It();a=a===void 0?null:a;var c=o.memoizedState.inst;bt!==null&&a!==null&&Wo(a,bt.memoizedState.deps)?o.memoizedState=El(t,c,n,a):(qe.flags|=e,o.memoizedState=El(1|t,c,n,a))}function gh(e,t){yr(8390656,8,e,t)}function cc(e,t){vr(2048,8,e,t)}function Wy(e){qe.flags|=4;var t=qe.updateQueue;if(t===null)t=mr(),qe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function bh(e){var t=It().memoizedState;return Wy({ref:t,nextImpl:e}),function(){if((ut&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function yh(e,t){return vr(4,2,e,t)}function vh(e,t){return vr(4,4,e,t)}function Eh(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 _h(e,t,n){n=n!=null?n.concat([e]):null,vr(4,4,Eh.bind(null,t,e),n)}function uc(){}function Sh(e,t){var n=It();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Wo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Th(e,t){var n=It();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Wo(t,a[1]))return a[0];if(a=e(),Ki){Wt(!0);try{e()}finally{Wt(!1)}}return n.memoizedState=[a,t],a}function fc(e,t,n){return n===void 0||(Ha&1073741824)!==0&&(et&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Np(),qe.lanes|=e,vi|=e,n)}function Nh(e,t,n,a){return $n(n,t)?n:bl.current!==null?(e=fc(e,n,a),$n(e,t)||(Ft=!0),e):(Ha&42)===0||(Ha&1073741824)!==0&&(et&261930)===0?(Ft=!0,e.memoizedState=n):(e=Np(),qe.lanes|=e,vi|=e,t)}function xh(e,t,n,a,o){var c=ne.p;ne.p=c!==0&&8>c?c:8;var h=I.T,E={};I.T=E,pc(e,!1,t,n);try{var O=o(),Y=I.S;if(Y!==null&&Y(E,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var W=Zy(O,a);cs(e,t,W,Xn(e))}else cs(e,t,a,Xn(e))}catch(ae){cs(e,t,{then:function(){},status:"rejected",reason:ae},Xn())}finally{ne.p=c,h!==null&&E.types!==null&&(h.types=E.types),I.T=h}}function ev(){}function dc(e,t,n,a){if(e.tag!==5)throw Error(l(476));var o=wh(e).queue;xh(e,o,t,oe,n===null?ev:function(){return Ah(e),n(a)})}function wh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ah(e){var t=wh(e);t.next===null&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},Xn())}function hc(){return dn(ws)}function Rh(){return It().memoizedState}function Oh(){return It().memoizedState}function tv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Xn();e=hi(n);var a=pi(t,e,n);a!==null&&(Hn(a,t,n),is(a,t,n)),t={cache:Go()},e.payload=t;return}t=t.return}}function nv(e,t,n){var a=Xn();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Er(e)?Mh(t,n):(n=Mo(e,t,n,a),n!==null&&(Hn(n,e,a),Ch(n,t,a)))}function kh(e,t,n){var a=Xn();cs(e,t,n,a)}function cs(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Er(e))Mh(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,$n(E,h))return er(e,t,o,0),_t===null&&Ws(),!1}catch{}finally{}if(n=Mo(e,t,o,a),n!==null)return Hn(n,e,a),Ch(n,t,a),!0}return!1}function pc(e,t,n,a){if(a={lane:2,revertLane:Kc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Er(e)){if(t)throw Error(l(479))}else t=Mo(e,n,a,2),t!==null&&Hn(t,e,2)}function Er(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function Mh(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 Ch(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ze(e,n)}}var us={readContext:dn,use:gr,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useLayoutEffect:Dt,useInsertionEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useSyncExternalStore:Dt,useId:Dt,useHostTransitionStatus:Dt,useFormState:Dt,useActionState:Dt,useOptimistic:Dt,useMemoCache:Dt,useCacheRefresh:Dt};us.useEffectEvent=Dt;var Dh={readContext:dn,use:gr,useCallback:function(e,t){return Rn().memoizedState=[e,t===void 0?null:t],e},useContext:dn,useEffect:gh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,yr(4194308,4,Eh.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=Rn();t=t===void 0?null:t;var a=e();if(Ki){Wt(!0);try{e()}finally{Wt(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Rn();if(n!==void 0){var o=n(t);if(Ki){Wt(!0);try{n(t)}finally{Wt(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=nv.bind(null,qe,e),[a.memoizedState,e]},useRef:function(e){var t=Rn();return e={current:e},t.memoizedState=e},useState:function(e){e=rc(e);var t=e.queue,n=kh.bind(null,qe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:uc,useDeferredValue:function(e,t){var n=Rn();return fc(n,e,t)},useTransition:function(){var e=rc(!1);return e=xh.bind(null,qe,e.queue,!0,!1),Rn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=qe,o=Rn();if(at){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),_t===null)throw Error(l(349));(et&127)!==0||eh(a,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,gh(nh.bind(null,a,c,e),[e]),a.flags|=2048,El(9,{destroy:void 0},th.bind(null,a,c,n,t),null),n},useId:function(){var e=Rn(),t=_t.identifierPrefix;if(at){var n=Na,a=Ta;n=(a&~(1<<32-Nt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=pr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Xy++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:hc,useFormState:fh,useActionState:fh,useOptimistic:function(e){var t=Rn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=pc.bind(null,qe,!0,n),n.dispatch=t,[e,t]},useMemoCache:ic,useCacheRefresh:function(){return Rn().memoizedState=tv.bind(null,qe)},useEffectEvent:function(e){var t=Rn(),n={impl:e};return t.memoizedState=n,function(){if((ut&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}},mc={readContext:dn,use:gr,useCallback:Sh,useContext:dn,useEffect:cc,useImperativeHandle:_h,useInsertionEffect:yh,useLayoutEffect:vh,useMemo:Th,useReducer:br,useRef:mh,useState:function(){return br(qa)},useDebugValue:uc,useDeferredValue:function(e,t){var n=It();return Nh(n,bt.memoizedState,e,t)},useTransition:function(){var e=br(qa)[0],t=It().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:Wd,useId:Rh,useHostTransitionStatus:hc,useFormState:dh,useActionState:dh,useOptimistic:function(e,t){var n=It();return lh(n,bt,e,t)},useMemoCache:ic,useCacheRefresh:Oh};mc.useEffectEvent=bh;var Lh={readContext:dn,use:gr,useCallback:Sh,useContext:dn,useEffect:cc,useImperativeHandle:_h,useInsertionEffect:yh,useLayoutEffect:vh,useMemo:Th,useReducer:sc,useRef:mh,useState:function(){return sc(qa)},useDebugValue:uc,useDeferredValue:function(e,t){var n=It();return bt===null?fc(n,e,t):Nh(n,bt.memoizedState,e,t)},useTransition:function(){var e=sc(qa)[0],t=It().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:Wd,useId:Rh,useHostTransitionStatus:hc,useFormState:ph,useActionState:ph,useOptimistic:function(e,t){var n=It();return bt!==null?lh(n,bt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ic,useCacheRefresh:Oh};Lh.useEffectEvent=bh;function gc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Xn(),o=hi(a);o.payload=t,n!=null&&(o.callback=n),t=pi(e,o,a),t!==null&&(Hn(t,e,a),is(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Xn(),o=hi(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=pi(e,o,a),t!==null&&(Hn(t,e,a),is(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xn(),a=hi(n);a.tag=2,t!=null&&(a.callback=t),t=pi(e,a,n),t!==null&&(Hn(t,e,n),is(t,e,n))}};function zh(e,t,n,a,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,h):t.prototype&&t.prototype.isPureReactComponent?!Ql(n,a)||!Ql(o,c):!0}function Uh(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&bc.enqueueReplaceState(t,t.state,null)}function Pi(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}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 Bh(e){Js(e)}function jh(e){console.error(e)}function Ih(e){Js(e)}function _r(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Hh(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function yc(e,t,n){return n=hi(n),n.tag=3,n.payload={element:null},n.callback=function(){_r(e,t)},n}function qh(e){return e=hi(e),e.tag=3,e}function Gh(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=a.value;e.payload=function(){return o(c)},e.callback=function(){Hh(t,n,a)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Hh(t,n,a),typeof o!="function"&&(Ei===null?Ei=new Set([this]):Ei.add(this));var E=a.stack;this.componentDidCatch(a.value,{componentStack:E!==null?E:""})})}function av(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&dl(t,n,o,!0),n=Fn.current,n!==null){switch(n.tag){case 31:case 13:return sa===null?Dr():n.alternate===null&&Lt===0&&(Lt=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===or?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),$c(e,a,o)),!1;case 22:return n.flags|=65536,a===or?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),$c(e,a,o)),!1}throw Error(l(435,n.tag))}return $c(e,a,o),Dr(),!1}if(at)return t=Fn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==Bo&&(e=Error(l(422),{cause:a}),Wl(na(e,n)))):(a!==Bo&&(t=Error(l(423),{cause:a}),Wl(na(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=na(a,n),o=yc(e.stateNode,a,o),Zo(e,o),Lt!==4&&(Lt=2)),!1;var c=Error(l(520),{cause:a});if(c=na(c,n),ys===null?ys=[c]:ys.push(c),Lt!==4&&(Lt=2),t===null)return!0;a=na(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=yc(n.stateNode,a,e),Zo(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"&&(Ei===null||!Ei.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=qh(o),Gh(o,e,n,a),Zo(n,o),!1}n=n.return}while(n!==null);return!1}var vc=Error(l(461)),Ft=!1;function hn(e,t,n,a){t.child=e===null?Kd(t,null,n,a):Fi(t,e.child,n,a)}function $h(e,t,n,a,o){n=n.render;var c=t.ref;if("ref"in a){var h={};for(var E in a)E!=="ref"&&(h[E]=a[E])}else h=a;return qi(t),a=ec(e,t,n,h,c,o),E=tc(),e!==null&&!Ft?(nc(e,t,o),Ga(e,t,o)):(at&&E&&zo(t),t.flags|=1,hn(e,t,a,o),t.child)}function Yh(e,t,n,a,o){if(e===null){var c=n.type;return typeof c=="function"&&!Co(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Fh(e,t,c,a,o)):(e=nr(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Ac(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ql,n(h,a)&&e.ref===t.ref)return Ga(e,t,o)}return t.flags|=1,e=Ua(c,a),e.ref=t.ref,e.return=t,t.child=e}function Fh(e,t,n,a,o){if(e!==null){var c=e.memoizedProps;if(Ql(c,a)&&e.ref===t.ref)if(Ft=!1,t.pendingProps=a=c,Ac(e,o))(e.flags&131072)!==0&&(Ft=!0);else return t.lanes=e.lanes,Ga(e,t,o)}return Ec(e,t,n,a,o)}function Kh(e,t,n,a){var o=a.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~c}else a=0,t.child=null;return Ph(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&sr(t,c!==null?c.cachePool:null),c!==null?Xd(t,c):Qo(),Qd(t);else return a=t.lanes=536870912,Ph(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(sr(t,c.cachePool),Xd(t,c),gi(),t.memoizedState=null):(e!==null&&sr(t,null),Qo(),gi());return hn(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 Ph(e,t,n,a,o){var c=Yo();return c=c===null?null:{parent:$t._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&sr(t,null),Qo(),Qd(t),e!==null&&dl(e,t,a,!0),t.childLanes=o,null}function Sr(e,t){return t=Nr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zh(e,t,n){return Fi(t,e.child,null,n),e=Sr(t,t.pendingProps),e.flags|=2,Kn(t),t.memoizedState=null,e}function iv(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(at){if(a.mode==="hidden")return e=Sr(t,a),t.lanes=536870912,fs(null,e);if(Jo(t),(e=xt)?(e=sm(e,la),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:oi!==null?{id:Ta,overflow:Na}:null,retryLane:536870912,hydrationErrors:null},n=Md(e),n.return=t,t.child=n,fn=t,xt=null)):e=null,e===null)throw ui(t);return t.lanes=536870912,null}return Sr(t,a)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(Jo(t),o)if(t.flags&256)t.flags&=-257,t=Zh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(Ft||dl(e,t,n,!1),o=(n&e.childLanes)!==0,Ft||o){if(a=_t,a!==null&&(h=Rt(a,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,Bi(e,h),Hn(a,e,h),vc;Dr(),t=Zh(e,t,n)}else e=c.treeContext,xt=ra(h.nextSibling),fn=t,at=!0,ci=null,la=!1,e!==null&&Ld(t,e),t=Sr(t,a),t.flags|=4096;return t}return e=Ua(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tr(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 Ec(e,t,n,a,o){return qi(t),n=ec(e,t,n,a,void 0,o),a=tc(),e!==null&&!Ft?(nc(e,t,o),Ga(e,t,o)):(at&&a&&zo(t),t.flags|=1,hn(e,t,n,o),t.child)}function Xh(e,t,n,a,o,c){return qi(t),t.updateQueue=null,n=Jd(t,a,n,o),Vd(e),a=tc(),e!==null&&!Ft?(nc(e,t,c),Ga(e,t,c)):(at&&a&&zo(t),t.flags|=1,hn(e,t,n,c),t.child)}function Qh(e,t,n,a,o){if(qi(t),t.stateNode===null){var c=ol,h=n.contextType;typeof h=="object"&&h!==null&&(c=dn(h)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=bc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},Ko(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?dn(h):ol,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(gc(t,n,h,a),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&&bc.enqueueReplaceState(c,c.state,null),ss(t,a,c,o),ls(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var E=t.memoizedProps,O=Pi(n,E);c.props=O;var Y=c.context,W=n.contextType;h=ol,typeof W=="object"&&W!==null&&(h=dn(W));var ae=n.getDerivedStateFromProps;W=typeof ae=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,W||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||Y!==h)&&Uh(t,c,a,h),di=!1;var F=t.memoizedState;c.state=F,ss(t,a,c,o),ls(),Y=t.memoizedState,E||F!==Y||di?(typeof ae=="function"&&(gc(t,n,ae,a),Y=t.memoizedState),(O=di||zh(t,n,O,a,F,Y,h))?(W||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=a,t.memoizedState=Y),c.props=a,c.state=Y,c.context=h,a=O):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,Po(e,t),h=t.memoizedProps,W=Pi(n,h),c.props=W,ae=t.pendingProps,F=c.context,Y=n.contextType,O=ol,typeof Y=="object"&&Y!==null&&(O=dn(Y)),E=n.getDerivedStateFromProps,(Y=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==ae||F!==O)&&Uh(t,c,a,O),di=!1,F=t.memoizedState,c.state=F,ss(t,a,c,o),ls();var Z=t.memoizedState;h!==ae||F!==Z||di||e!==null&&e.dependencies!==null&&ir(e.dependencies)?(typeof E=="function"&&(gc(t,n,E,a),Z=t.memoizedState),(W=di||zh(t,n,W,a,F,Z,O)||e!==null&&e.dependencies!==null&&ir(e.dependencies))?(Y||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,Z,O),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,Z,O)),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=a,t.memoizedState=Z),c.props=a,c.state=Z,c.context=O,a=W):(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),a=!1)}return c=a,Tr(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=Fi(t,e.child,null,o),t.child=Fi(t,null,n,o)):hn(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Ga(e,t,o),e}function Vh(e,t,n,a){return Ii(),t.flags|=256,hn(e,t,n,a),t.child}var _c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sc(e){return{baseLanes:e,cachePool:Hd()}}function Tc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zn),e}function Jh(e,t,n){var a=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(jt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(at){if(o?mi(t):gi(),(e=xt)?(e=sm(e,la),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:oi!==null?{id:Ta,overflow:Na}:null,retryLane:536870912,hydrationErrors:null},n=Md(e),n.return=t,t.child=n,fn=t,xt=null)):e=null,e===null)throw ui(t);return lu(e)?t.lanes=32:t.lanes=536870912,null}var E=a.children;return a=a.fallback,o?(gi(),o=t.mode,E=Nr({mode:"hidden",children:E},o),a=ji(a,o,n,null),E.return=t,a.return=t,E.sibling=a,t.child=E,a=t.child,a.memoizedState=Sc(n),a.childLanes=Tc(e,h,n),t.memoizedState=_c,fs(null,a)):(mi(t),Nc(t,E))}var O=e.memoizedState;if(O!==null&&(E=O.dehydrated,E!==null)){if(c)t.flags&256?(mi(t),t.flags&=-257,t=xc(e,t,n)):t.memoizedState!==null?(gi(),t.child=e.child,t.flags|=128,t=null):(gi(),E=a.fallback,o=t.mode,a=Nr({mode:"visible",children:a.children},o),E=ji(E,o,n,null),E.flags|=2,a.return=t,E.return=t,a.sibling=E,t.child=a,Fi(t,e.child,null,n),a=t.child,a.memoizedState=Sc(n),a.childLanes=Tc(e,h,n),t.memoizedState=_c,t=fs(null,a));else if(mi(t),lu(E)){if(h=E.nextSibling&&E.nextSibling.dataset,h)var Y=h.dgst;h=Y,a=Error(l(419)),a.stack="",a.digest=h,Wl({value:a,source:null,stack:null}),t=xc(e,t,n)}else if(Ft||dl(e,t,n,!1),h=(n&e.childLanes)!==0,Ft||h){if(h=_t,h!==null&&(a=Rt(h,n),a!==0&&a!==O.retryLane))throw O.retryLane=a,Bi(e,a),Hn(h,e,a),vc;iu(E)||Dr(),t=xc(e,t,n)}else iu(E)?(t.flags|=192,t.child=e.child,t=null):(e=O.treeContext,xt=ra(E.nextSibling),fn=t,at=!0,ci=null,la=!1,e!==null&&Ld(t,e),t=Nc(t,a.children),t.flags|=4096);return t}return o?(gi(),E=a.fallback,o=t.mode,O=e.child,Y=O.sibling,a=Ua(O,{mode:"hidden",children:a.children}),a.subtreeFlags=O.subtreeFlags&65011712,Y!==null?E=Ua(Y,E):(E=ji(E,o,n,null),E.flags|=2),E.return=t,a.return=t,a.sibling=E,t.child=a,fs(null,a),a=t.child,E=e.child.memoizedState,E===null?E=Sc(n):(o=E.cachePool,o!==null?(O=$t._currentValue,o=o.parent!==O?{parent:O,pool:O}:o):o=Hd(),E={baseLanes:E.baseLanes|n,cachePool:o}),a.memoizedState=E,a.childLanes=Tc(e,h,n),t.memoizedState=_c,fs(e.child,a)):(mi(t),n=e.child,e=n.sibling,n=Ua(n,{mode:"visible",children:a.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 Nc(e,t){return t=Nr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Nr(e,t){return e=Yn(22,e,null,t),e.lanes=0,e}function xc(e,t,n){return Fi(t,e.child,null,n),e=Nc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Wh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Ho(e.return,t,n)}function wc(e,t,n,a,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=n,h.tailMode=o,h.treeForkCount=c)}function ep(e,t,n){var a=t.pendingProps,o=a.revealOrder,c=a.tail;a=a.children;var h=jt.current,E=(h&2)!==0;if(E?(h=h&1|2,t.flags|=128):h&=1,q(jt,h),hn(e,t,a,n),a=at?Jl:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wh(e,n,t);else if(e.tag===19)Wh(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),wc(t,!1,o,n,c,a);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}wc(t,!0,n,null,c,a);break;case"together":wc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Ga(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),vi|=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=Ua(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ua(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ac(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ir(e)))}function lv(e,t,n){switch(t.tag){case 3:Oe(t,t.stateNode.containerInfo),fi(t,$t,e.memoizedState.cache),Ii();break;case 27:case 5:He(t);break;case 4:Oe(t,t.stateNode.containerInfo);break;case 10:fi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Jo(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(mi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Jh(e,t,n):(mi(t),e=Ga(e,t,n),e!==null?e.sibling:null);mi(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(dl(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return ep(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),q(jt,jt.current),a)break;return null;case 22:return t.lanes=0,Kh(e,t,n,t.pendingProps);case 24:fi(t,$t,e.memoizedState.cache)}return Ga(e,t,n)}function tp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ft=!0;else{if(!Ac(e,n)&&(t.flags&128)===0)return Ft=!1,lv(e,t,n);Ft=(e.flags&131072)!==0}else Ft=!1,at&&(t.flags&1048576)!==0&&Dd(t,Jl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=$i(t.elementType),t.type=e,typeof e=="function")Co(e)?(a=Pi(e,a),t.tag=1,t=Qh(null,t,e,a,n)):(t.tag=0,t=Ec(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===re){t.tag=11,t=$h(null,t,e,a,n);break e}else if(o===le){t.tag=14,t=Yh(null,t,e,a,n);break e}}throw t=Ae(e)||e,Error(l(306,t,""))}}return t;case 0:return Ec(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Pi(a,t.pendingProps),Qh(e,t,a,o,n);case 3:e:{if(Oe(t,t.stateNode.containerInfo),e===null)throw Error(l(387));a=t.pendingProps;var c=t.memoizedState;o=c.element,Po(e,t),ss(t,a,null,n);var h=t.memoizedState;if(a=h.cache,fi(t,$t,a),a!==c.cache&&qo(t,[$t],n,!0),ls(),a=h.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Vh(e,t,a,n);break e}else if(a!==o){o=na(Error(l(424)),t),Wl(o),t=Vh(e,t,a,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(xt=ra(e.firstChild),fn=t,at=!0,ci=null,la=!0,n=Kd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ii(),a===o){t=Ga(e,t,n);break e}hn(e,t,a,n)}t=t.child}return t;case 26:return Tr(e,t),e===null?(n=dm(t.type,null,t.pendingProps,null))?t.memoizedState=n:at||(n=t.type,e=t.pendingProps,a=Hr(xe.current).createElement(n),a[Mt]=t,a[en]=e,pn(a,n,e),dt(a),t.stateNode=a):t.memoizedState=dm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return He(t),e===null&&at&&(a=t.stateNode=cm(t.type,t.pendingProps,xe.current),fn=t,la=!0,o=xt,Ni(t.type)?(su=o,xt=ra(a.firstChild)):xt=o),hn(e,t,t.pendingProps.children,n),Tr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&at&&((o=a=xt)&&(a=zv(a,t.type,t.pendingProps,la),a!==null?(t.stateNode=a,fn=t,xt=ra(a.firstChild),la=!1,o=!0):o=!1),o||ui(t)),He(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,a=c.children,tu(o,c)?a=null:h!==null&&tu(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=ec(e,t,Qy,null,null,n),ws._currentValue=o),Tr(e,t),hn(e,t,a,n),t.child;case 6:return e===null&&at&&((e=n=xt)&&(n=Uv(n,t.pendingProps,la),n!==null?(t.stateNode=n,fn=t,xt=null,e=!0):e=!1),e||ui(t)),null;case 13:return Jh(e,t,n);case 4:return Oe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Fi(t,null,a,n):hn(e,t,a,n),t.child;case 11:return $h(e,t,t.type,t.pendingProps,n);case 7:return hn(e,t,t.pendingProps,n),t.child;case 8:return hn(e,t,t.pendingProps.children,n),t.child;case 12:return hn(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,fi(t,t.type,a.value),hn(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,qi(t),o=dn(o),a=a(o),t.flags|=1,hn(e,t,a,n),t.child;case 14:return Yh(e,t,t.type,t.pendingProps,n);case 15:return Fh(e,t,t.type,t.pendingProps,n);case 19:return ep(e,t,n);case 31:return iv(e,t,n);case 22:return Kh(e,t,n,t.pendingProps);case 24:return qi(t),a=dn($t),e===null?(o=Yo(),o===null&&(o=_t,c=Go(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:a,cache:o},Ko(t),fi(t,$t,o)):((e.lanes&n)!==0&&(Po(e,t),ss(t,null,null,n),ls()),o=e.memoizedState,c=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),fi(t,$t,a)):(a=c.cache,fi(t,$t,a),a!==o.cache&&qo(t,[$t],n,!0))),hn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function $a(e){e.flags|=4}function Rc(e,t,n,a,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(Rp())e.flags|=8192;else throw Yi=or,Fo}else e.flags&=-16777217}function np(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!bm(t))if(Rp())e.flags|=8192;else throw Yi=or,Fo}function xr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ee():536870912,e.lanes|=t,Nl|=t)}function ds(e,t){if(!at)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function wt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function sv(e,t,n){var a=t.pendingProps;switch(Uo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wt(t),null;case 1:return wt(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ia($t),Ee(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(fl(t)?$a(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,jo())),wt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?($a(t),c!==null?(wt(t),np(t,c)):(wt(t),Rc(t,o,null,a,n))):c?c!==e.memoizedState?($a(t),wt(t),np(t,c)):(wt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&$a(t),wt(t),Rc(t,o,e,a,n)),null;case 27:if(We(t),n=xe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$a(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return wt(t),null}e=ue.current,fl(t)?zd(t):(e=cm(o,a,n),t.stateNode=e,$a(t))}return wt(t),null;case 5:if(We(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$a(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return wt(t),null}if(c=ue.current,fl(t))zd(t);else{var h=Hr(xe.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 a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(o,{is:a.is}):h.createElement(o)}}c[Mt]=t,c[en]=a;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(pn(c,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&$a(t)}}return wt(t),Rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&$a(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(l(166));if(e=xe.current,fl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=fn,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[Mt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Jp(e.nodeValue,n)),e||ui(t,!0)}else e=Hr(e).createTextNode(a),e[Mt]=t,t.stateNode=e}return wt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=fl(t),n!==null){if(e===null){if(!a)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[Mt]=t}else Ii(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;wt(t),e=!1}else n=jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Kn(t),t):(Kn(t),null);if((t.flags&128)!==0)throw Error(l(558))}return wt(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=fl(t),a!==null&&a.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[Mt]=t}else Ii(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;wt(t),o=!1}else o=jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Kn(t),t):(Kn(t),null)}return Kn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),xr(t,t.updateQueue),wt(t),null);case 4:return Ee(),e===null&&Qc(t.stateNode.containerInfo),wt(t),null;case 10:return Ia(t.type),wt(t),null;case 19:if(D(jt),a=t.memoizedState,a===null)return wt(t),null;if(o=(t.flags&128)!==0,c=a.rendering,c===null)if(o)ds(a,!1);else{if(Lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=dr(e),c!==null){for(t.flags|=128,ds(a,!1),e=c.updateQueue,t.updateQueue=e,xr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)kd(n,e),n=n.sibling;return q(jt,jt.current&1|2),at&&Ba(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Ke()>kr&&(t.flags|=128,o=!0,ds(a,!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,xr(t,e),ds(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!at)return wt(t),null}else 2*Ke()-a.renderingStartTime>kr&&n!==536870912&&(t.flags|=128,o=!0,ds(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Ke(),e.sibling=null,n=jt.current,q(jt,o?n&1|2:n&1),at&&Ba(t,a.treeForkCount),e):(wt(t),null);case 22:case 23:return Kn(t),Vo(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(wt(t),t.subtreeFlags&6&&(t.flags|=8192)):wt(t),n=t.updateQueue,n!==null&&xr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&D(Gi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ia($t),wt(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function rv(e,t){switch(Uo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ia($t),Ee(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return We(t),null;case 31:if(t.memoizedState!==null){if(Kn(t),t.alternate===null)throw Error(l(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Kn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(jt),null;case 4:return Ee(),null;case 10:return Ia(t.type),null;case 22:case 23:return Kn(t),Vo(),e!==null&&D(Gi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ia($t),null;case 25:return null;default:return null}}function ap(e,t){switch(Uo(t),t.tag){case 3:Ia($t),Ee();break;case 26:case 27:case 5:We(t);break;case 4:Ee();break;case 31:t.memoizedState!==null&&Kn(t);break;case 13:Kn(t);break;case 19:D(jt);break;case 10:Ia(t.type);break;case 22:case 23:Kn(t),Vo(),e!==null&&D(Gi);break;case 24:Ia($t)}}function hs(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var c=n.create,h=n.inst;a=c(),h.destroy=a}n=n.next}while(n!==o)}}catch(E){pt(t,t.return,E)}}function bi(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var c=o.next;a=c;do{if((a.tag&e)===e){var h=a.inst,E=h.destroy;if(E!==void 0){h.destroy=void 0,o=t;var O=n,Y=E;try{Y()}catch(W){pt(o,O,W)}}}a=a.next}while(a!==c)}}catch(W){pt(t,t.return,W)}}function ip(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Zd(t,n)}catch(a){pt(e,e.return,a)}}}function lp(e,t,n){n.props=Pi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){pt(e,t,a)}}function ps(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){pt(e,t,o)}}function xa(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){pt(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){pt(e,t,o)}else n.current=null}function sp(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){pt(e,e.return,o)}}function Oc(e,t,n){try{var a=e.stateNode;Ov(a,e.type,n,t),a[en]=t}catch(o){pt(e,e.return,o)}}function rp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ni(e.type)||e.tag===4}function kc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rp(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&&Ni(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 Mc(e,t,n){var a=e.tag;if(a===5||a===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=se));else if(a!==4&&(a===27&&Ni(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}function wr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Ni(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(wr(e,t,n),e=e.sibling;e!==null;)wr(e,t,n),e=e.sibling}function op(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);pn(t,a,n),t[Mt]=e,t[en]=n}catch(c){pt(e,e.return,c)}}var Ya=!1,Kt=!1,Cc=!1,cp=typeof WeakSet=="function"?WeakSet:Set,nn=null;function ov(e,t){if(e=e.containerInfo,Wc=Pr,e=_d(e),xo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,E=-1,O=-1,Y=0,W=0,ae=e,F=null;t:for(;;){for(var Z;ae!==n||o!==0&&ae.nodeType!==3||(E=h+o),ae!==c||a!==0&&ae.nodeType!==3||(O=h+a),ae.nodeType===3&&(h+=ae.nodeValue.length),(Z=ae.firstChild)!==null;)F=ae,ae=Z;for(;;){if(ae===e)break t;if(F===n&&++Y===o&&(E=h),F===c&&++W===a&&(O=h),(Z=ae.nextSibling)!==null)break;ae=F,F=ae.parentNode}ae=Z}n=E===-1||O===-1?null:{start:E,end:O}}else n=null}n=n||{start:0,end:0}}else n=null;for(eu={focusedElem:e,selectionRange:n},Pr=!1,nn=t;nn!==null;)if(t=nn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nn=e;else for(;nn!==null;){switch(t=nn,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,a=n.stateNode;try{var Te=Pi(n.type,o);e=a.getSnapshotBeforeUpdate(Te,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(Ue){pt(n,n.return,Ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)au(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":au(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,nn=e;break}nn=t.return}}function up(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Ka(e,n),a&4&&hs(5,n);break;case 1:if(Ka(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){pt(n,n.return,h)}else{var o=Pi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){pt(n,n.return,h)}}a&64&&ip(n),a&512&&ps(n,n.return);break;case 3:if(Ka(e,n),a&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{Zd(e,t)}catch(h){pt(n,n.return,h)}}break;case 27:t===null&&a&4&&op(n);case 26:case 5:Ka(e,n),t===null&&a&4&&sp(n),a&512&&ps(n,n.return);break;case 12:Ka(e,n);break;case 31:Ka(e,n),a&4&&hp(e,n);break;case 13:Ka(e,n),a&4&&pp(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=bv.bind(null,n),Bv(e,n))));break;case 22:if(a=n.memoizedState!==null||Ya,!a){t=t!==null&&t.memoizedState!==null||Kt,o=Ya;var c=Kt;Ya=a,(Kt=t)&&!c?Pa(e,n,(n.subtreeFlags&8772)!==0):Ka(e,n),Ya=o,Kt=c}break;case 30:break;default:Ka(e,n)}}function fp(e){var t=e.alternate;t!==null&&(e.alternate=null,fp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ni(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 kt=null,Un=!1;function Fa(e,t,n){for(n=n.child;n!==null;)dp(e,t,n),n=n.sibling}function dp(e,t,n){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(on,n)}catch{}switch(n.tag){case 26:Kt||xa(n,t),Fa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Kt||xa(n,t);var a=kt,o=Un;Ni(n.type)&&(kt=n.stateNode,Un=!1),Fa(e,t,n),Ts(n.stateNode),kt=a,Un=o;break;case 5:Kt||xa(n,t);case 6:if(a=kt,o=Un,kt=null,Fa(e,t,n),kt=a,Un=o,kt!==null)if(Un)try{(kt.nodeType===9?kt.body:kt.nodeName==="HTML"?kt.ownerDocument.body:kt).removeChild(n.stateNode)}catch(c){pt(n,t,c)}else try{kt.removeChild(n.stateNode)}catch(c){pt(n,t,c)}break;case 18:kt!==null&&(Un?(e=kt,im(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Cl(e)):im(kt,n.stateNode));break;case 4:a=kt,o=Un,kt=n.stateNode.containerInfo,Un=!0,Fa(e,t,n),kt=a,Un=o;break;case 0:case 11:case 14:case 15:bi(2,n,t),Kt||bi(4,n,t),Fa(e,t,n);break;case 1:Kt||(xa(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&lp(n,t,a)),Fa(e,t,n);break;case 21:Fa(e,t,n);break;case 22:Kt=(a=Kt)||n.memoizedState!==null,Fa(e,t,n),Kt=a;break;default:Fa(e,t,n)}}function hp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Cl(e)}catch(n){pt(t,t.return,n)}}}function pp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Cl(e)}catch(n){pt(t,t.return,n)}}function cv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cp),t;default:throw Error(l(435,e.tag))}}function Ar(e,t){var n=cv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=yv.bind(null,e,a);a.then(o,o)}})}function Bn(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],c=e,h=t,E=h;e:for(;E!==null;){switch(E.tag){case 27:if(Ni(E.type)){kt=E.stateNode,Un=!1;break e}break;case 5:kt=E.stateNode,Un=!1;break e;case 3:case 4:kt=E.stateNode.containerInfo,Un=!0;break e}E=E.return}if(kt===null)throw Error(l(160));dp(c,h,o),kt=null,Un=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)mp(t,e),t=t.sibling}var ha=null;function mp(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Bn(t,e),jn(e),a&4&&(bi(3,e,e.return),hs(3,e),bi(5,e,e.return));break;case 1:Bn(t,e),jn(e),a&512&&(Kt||n===null||xa(n,n.return)),a&64&&Ya&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=ha;if(Bn(t,e),jn(e),a&512&&(Kt||n===null||xa(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":c=o.getElementsByTagName("title")[0],(!c||c[va]||c[Mt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(a),o.head.insertBefore(c,o.querySelector("head > title"))),pn(c,a,n),c[Mt]=e,dt(c),a=c;break e;case"link":var h=mm("link","href",o).get(a+(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(a),pn(c,a,n),o.head.appendChild(c);break;case"meta":if(h=mm("meta","content",o).get(a+(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(a),pn(c,a,n),o.head.appendChild(c);break;default:throw Error(l(468,a))}c[Mt]=e,dt(c),a=c}e.stateNode=a}else gm(o,e.type,e.stateNode);else e.stateNode=pm(o,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?gm(o,e.type,e.stateNode):pm(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Oc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Bn(t,e),jn(e),a&512&&(Kt||n===null||xa(n,n.return)),n!==null&&a&4&&Oc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Bn(t,e),jn(e),a&512&&(Kt||n===null||xa(n,n.return)),e.flags&32){o=e.stateNode;try{X(o,"")}catch(Te){pt(e,e.return,Te)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Oc(e,o,n!==null?n.memoizedProps:o)),a&1024&&(Cc=!0);break;case 6:if(Bn(t,e),jn(e),a&4){if(e.stateNode===null)throw Error(l(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(Te){pt(e,e.return,Te)}}break;case 3:if($r=null,o=ha,ha=qr(t.containerInfo),Bn(t,e),ha=o,jn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Cl(t.containerInfo)}catch(Te){pt(e,e.return,Te)}Cc&&(Cc=!1,gp(e));break;case 4:a=ha,ha=qr(e.stateNode.containerInfo),Bn(t,e),jn(e),ha=a;break;case 12:Bn(t,e),jn(e);break;case 31:Bn(t,e),jn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ar(e,a)));break;case 13:Bn(t,e),jn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Or=Ke()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ar(e,a)));break;case 22:o=e.memoizedState!==null;var O=n!==null&&n.memoizedState!==null,Y=Ya,W=Kt;if(Ya=Y||o,Kt=W||O,Bn(t,e),Kt=W,Ya=Y,jn(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||O||Ya||Kt||Zi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){O=n=t;try{if(c=O.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{E=O.stateNode;var ae=O.memoizedProps.style,F=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;E.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(Te){pt(O,O.return,Te)}}}else if(t.tag===6){if(n===null){O=t;try{O.stateNode.nodeValue=o?"":O.memoizedProps}catch(Te){pt(O,O.return,Te)}}}else if(t.tag===18){if(n===null){O=t;try{var Z=O.stateNode;o?lm(Z,!0):lm(O.stateNode,!1)}catch(Te){pt(O,O.return,Te)}}}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}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Ar(e,n))));break;case 19:Bn(t,e),jn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ar(e,a)));break;case 30:break;case 21:break;default:Bn(t,e),jn(e)}}function jn(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(rp(a)){n=a;break}a=a.return}if(n==null)throw Error(l(160));switch(n.tag){case 27:var o=n.stateNode,c=kc(e);wr(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(X(h,""),n.flags&=-33);var E=kc(e);wr(e,E,h);break;case 3:case 4:var O=n.stateNode.containerInfo,Y=kc(e);Mc(e,Y,O);break;default:throw Error(l(161))}}catch(W){pt(e,e.return,W)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;gp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ka(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)up(e,t.alternate,t),t=t.sibling}function Zi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:bi(4,t,t.return),Zi(t);break;case 1:xa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&lp(t,t.return,n),Zi(t);break;case 27:Ts(t.stateNode);case 26:case 5:xa(t,t.return),Zi(t);break;case 22:t.memoizedState===null&&Zi(t);break;case 30:Zi(t);break;default:Zi(t)}e=e.sibling}}function Pa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Pa(o,c,n),hs(4,c);break;case 1:if(Pa(o,c,n),a=c,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(Y){pt(a,a.return,Y)}if(a=c,o=a.updateQueue,o!==null){var E=a.stateNode;try{var O=o.shared.hiddenCallbacks;if(O!==null)for(o.shared.hiddenCallbacks=null,o=0;o<O.length;o++)Pd(O[o],E)}catch(Y){pt(a,a.return,Y)}}n&&h&64&&ip(c),ps(c,c.return);break;case 27:op(c);case 26:case 5:Pa(o,c,n),n&&a===null&&h&4&&sp(c),ps(c,c.return);break;case 12:Pa(o,c,n);break;case 31:Pa(o,c,n),n&&h&4&&hp(o,c);break;case 13:Pa(o,c,n),n&&h&4&&pp(o,c);break;case 22:c.memoizedState===null&&Pa(o,c,n),ps(c,c.return);break;case 30:break;default:Pa(o,c,n)}t=t.sibling}}function Dc(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 Lc(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 pa(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bp(e,t,n,a),t=t.sibling}function bp(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:pa(e,t,n,a),o&2048&&hs(9,t);break;case 1:pa(e,t,n,a);break;case 3:pa(e,t,n,a),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){pa(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,E=c.onPostCommit;typeof E=="function"&&E(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){pt(t,t.return,O)}}else pa(e,t,n,a);break;case 31:pa(e,t,n,a);break;case 13:pa(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?pa(e,t,n,a):ms(e,t):c._visibility&2?pa(e,t,n,a):(c._visibility|=2,_l(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Dc(h,t);break;case 24:pa(e,t,n,a),o&2048&&Lc(t.alternate,t);break;default:pa(e,t,n,a)}}function _l(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,E=n,O=a,Y=h.flags;switch(h.tag){case 0:case 11:case 15:_l(c,h,E,O,o),hs(8,h);break;case 23:break;case 22:var W=h.stateNode;h.memoizedState!==null?W._visibility&2?_l(c,h,E,O,o):ms(c,h):(W._visibility|=2,_l(c,h,E,O,o)),o&&Y&2048&&Dc(h.alternate,h);break;case 24:_l(c,h,E,O,o),o&&Y&2048&&Lc(h.alternate,h);break;default:_l(c,h,E,O,o)}t=t.sibling}}function ms(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:ms(n,a),o&2048&&Dc(a.alternate,a);break;case 24:ms(n,a),o&2048&&Lc(a.alternate,a);break;default:ms(n,a)}t=t.sibling}}var gs=8192;function Sl(e,t,n){if(e.subtreeFlags&gs)for(e=e.child;e!==null;)yp(e,t,n),e=e.sibling}function yp(e,t,n){switch(e.tag){case 26:Sl(e,t,n),e.flags&gs&&e.memoizedState!==null&&Xv(n,ha,e.memoizedState,e.memoizedProps);break;case 5:Sl(e,t,n);break;case 3:case 4:var a=ha;ha=qr(e.stateNode.containerInfo),Sl(e,t,n),ha=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=gs,gs=16777216,Sl(e,t,n),gs=a):Sl(e,t,n));break;default:Sl(e,t,n)}}function vp(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 a=t[n];nn=a,_p(a,e)}vp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ep(e),e=e.sibling}function Ep(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&bi(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 a=t[n];nn=a,_p(a,e)}vp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:bi(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 _p(e,t){for(;nn!==null;){var n=nn;switch(n.tag){case 0:case 11:case 15:bi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:es(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,nn=a;else e:for(n=e;nn!==null;){a=nn;var o=a.sibling,c=a.return;if(fp(a),a===n){nn=null;break e}if(o!==null){o.return=c,nn=o;break e}nn=c}}}var uv={getCacheForType:function(e){var t=dn($t),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return dn($t).controller.signal}},fv=typeof WeakMap=="function"?WeakMap:Map,ut=0,_t=null,Qe=null,et=0,ht=0,Pn=null,yi=!1,Tl=!1,zc=!1,Za=0,Lt=0,vi=0,Xi=0,Uc=0,Zn=0,Nl=0,ys=null,In=null,Bc=!1,Or=0,Sp=0,kr=1/0,Mr=null,Ei=null,Vt=0,_i=null,xl=null,Xa=0,jc=0,Ic=null,Tp=null,vs=0,Hc=null;function Xn(){return(ut&2)!==0&&et!==0?et&-et:I.T!==null?Kc():ya()}function Np(){if(Zn===0)if((et&536870912)===0||at){var e=cn;cn<<=1,(cn&3932160)===0&&(cn=262144),Zn=e}else Zn=536870912;return e=Fn.current,e!==null&&(e.flags|=32),Zn}function Hn(e,t,n){(e===_t&&(ht===2||ht===9)||e.cancelPendingCommit!==null)&&(wl(e,0),Si(e,et,Zn,!1)),Le(e,n),((ut&2)===0||e!==_t)&&(e===_t&&((ut&2)===0&&(Xi|=n),Lt===4&&Si(e,et,Zn,!1)),wa(e))}function xp(e,t,n){if((ut&6)!==0)throw Error(l(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||J(e,t),o=a?pv(e,t):Gc(e,t,!0),c=a;do{if(o===0){Tl&&!a&&Si(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!dv(n)){o=Gc(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 O=E.current.memoizedState.isDehydrated;if(O&&(wl(E,h).flags|=256),h=Gc(E,h,!1),h!==2){if(zc&&!O){E.errorRecoveryDisabledLanes|=c,Xi|=c,o=4;break e}c=In,In=o,c!==null&&(In===null?In=c:In.push.apply(In,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){wl(e,0),Si(e,t,0,!0);break}e:{switch(a=e,c=o,c){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:Si(a,t,Zn,!yi);break e;case 2:In=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=Or+300-Ke(),10<o)){if(Si(a,t,Zn,!yi),R(a,0,!0)!==0)break e;Xa=t,a.timeoutHandle=nm(wp.bind(null,a,n,In,Mr,Bc,t,Zn,Xi,Nl,yi,c,"Throttled",-0,0),o);break e}wp(a,n,In,Mr,Bc,t,Zn,Xi,Nl,yi,c,null,-0,0)}}break}while(!0);wa(e)}function wp(e,t,n,a,o,c,h,E,O,Y,W,ae,F,Z){if(e.timeoutHandle=-1,ae=t.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:se},yp(t,c,ae);var Te=(c&62914560)===c?Or-Ke():(c&4194048)===c?Sp-Ke():0;if(Te=Qv(ae,Te),Te!==null){Xa=c,e.cancelPendingCommit=Te(Lp.bind(null,e,t,c,n,a,o,h,E,O,W,ae,null,F,Z)),Si(e,c,h,!Y);return}}Lp(e,t,c,n,a,o,h,E,O)}function dv(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 a=0;a<n.length;a++){var o=n[a],c=o.getSnapshot;o=o.value;try{if(!$n(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 Si(e,t,n,a){t&=~Uc,t&=~Xi,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var c=31-Nt(o),h=1<<c;a[c]=-1,o&=~h}n!==0&&be(e,n,t)}function Cr(){return(ut&6)===0?(Es(0),!1):!0}function qc(){if(Qe!==null){if(ht===0)var e=Qe.return;else e=Qe,ja=Hi=null,ac(e),gl=null,ns=0,e=Qe;for(;e!==null;)ap(e.alternate,e),e=e.return;Qe=null}}function wl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Cv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Xa=0,qc(),_t=e,Qe=n=Ua(e.current,null),et=t,ht=0,Pn=null,yi=!1,Tl=J(e,t),zc=!1,Nl=Zn=Uc=Xi=vi=Lt=0,In=ys=null,Bc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-Nt(a),c=1<<o;t|=e[o],a&=~c}return Za=t,Ws(),n}function Ap(e,t){qe=null,I.H=us,t===ml||t===rr?(t=$d(),ht=3):t===Fo?(t=$d(),ht=4):ht=t===vc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Pn=t,Qe===null&&(Lt=1,_r(e,na(t,e.current)))}function Rp(){var e=Fn.current;return e===null?!0:(et&4194048)===et?sa===null:(et&62914560)===et||(et&536870912)!==0?e===sa:!1}function Op(){var e=I.H;return I.H=us,e===null?us:e}function kp(){var e=I.A;return I.A=uv,e}function Dr(){Lt=4,yi||(et&4194048)!==et&&Fn.current!==null||(Tl=!0),(vi&134217727)===0&&(Xi&134217727)===0||_t===null||Si(_t,et,Zn,!1)}function Gc(e,t,n){var a=ut;ut|=2;var o=Op(),c=kp();(_t!==e||et!==t)&&(Mr=null,wl(e,t)),t=!1;var h=Lt;e:do try{if(ht!==0&&Qe!==null){var E=Qe,O=Pn;switch(ht){case 8:qc(),h=6;break e;case 3:case 2:case 9:case 6:Fn.current===null&&(t=!0);var Y=ht;if(ht=0,Pn=null,Al(e,E,O,Y),n&&Tl){h=0;break e}break;default:Y=ht,ht=0,Pn=null,Al(e,E,O,Y)}}hv(),h=Lt;break}catch(W){Ap(e,W)}while(!0);return t&&e.shellSuspendCounter++,ja=Hi=null,ut=a,I.H=o,I.A=c,Qe===null&&(_t=null,et=0,Ws()),h}function hv(){for(;Qe!==null;)Mp(Qe)}function pv(e,t){var n=ut;ut|=2;var a=Op(),o=kp();_t!==e||et!==t?(Mr=null,kr=Ke()+500,wl(e,t)):Tl=J(e,t);e:do try{if(ht!==0&&Qe!==null){t=Qe;var c=Pn;t:switch(ht){case 1:ht=0,Pn=null,Al(e,t,c,1);break;case 2:case 9:if(qd(c)){ht=0,Pn=null,Cp(t);break}t=function(){ht!==2&&ht!==9||_t!==e||(ht=7),wa(e)},c.then(t,t);break e;case 3:ht=7;break e;case 4:ht=5;break e;case 7:qd(c)?(ht=0,Pn=null,Cp(t)):(ht=0,Pn=null,Al(e,t,c,7));break;case 5:var h=null;switch(Qe.tag){case 26:h=Qe.memoizedState;case 5:case 27:var E=Qe;if(h?bm(h):E.stateNode.complete){ht=0,Pn=null;var O=E.sibling;if(O!==null)Qe=O;else{var Y=E.return;Y!==null?(Qe=Y,Lr(Y)):Qe=null}break t}}ht=0,Pn=null,Al(e,t,c,5);break;case 6:ht=0,Pn=null,Al(e,t,c,6);break;case 8:qc(),Lt=6;break e;default:throw Error(l(462))}}mv();break}catch(W){Ap(e,W)}while(!0);return ja=Hi=null,I.H=a,I.A=o,ut=n,Qe!==null?0:(_t=null,et=0,Ws(),Lt)}function mv(){for(;Qe!==null&&!ca();)Mp(Qe)}function Mp(e){var t=tp(e.alternate,e,Za);e.memoizedProps=e.pendingProps,t===null?Lr(e):Qe=t}function Cp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Xh(n,t,t.pendingProps,t.type,void 0,et);break;case 11:t=Xh(n,t,t.pendingProps,t.type.render,t.ref,et);break;case 5:ac(t);default:ap(n,t),t=Qe=kd(t,Za),t=tp(n,t,Za)}e.memoizedProps=e.pendingProps,t===null?Lr(e):Qe=t}function Al(e,t,n,a){ja=Hi=null,ac(t),gl=null,ns=0;var o=t.return;try{if(av(e,o,t,n,et)){Lt=1,_r(e,na(n,e.current)),Qe=null;return}}catch(c){if(o!==null)throw Qe=o,c;Lt=1,_r(e,na(n,e.current)),Qe=null;return}t.flags&32768?(at||a===1?e=!0:Tl||(et&536870912)!==0?e=!1:(yi=e=!0,(a===2||a===9||a===3||a===6)&&(a=Fn.current,a!==null&&a.tag===13&&(a.flags|=16384))),Dp(t,e)):Lr(t)}function Lr(e){var t=e;do{if((t.flags&32768)!==0){Dp(t,yi);return}e=t.return;var n=sv(t.alternate,t,Za);if(n!==null){Qe=n;return}if(t=t.sibling,t!==null){Qe=t;return}Qe=t=e}while(t!==null);Lt===0&&(Lt=5)}function Dp(e,t){do{var n=rv(e.alternate,e);if(n!==null){n.flags&=32767,Qe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Qe=e;return}Qe=e=n}while(e!==null);Lt=6,Qe=null}function Lp(e,t,n,a,o,c,h,E,O){e.cancelPendingCommit=null;do zr();while(Vt!==0);if((ut&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(c=t.lanes|t.childLanes,c|=ko,ye(e,n,c,h,E,O),e===_t&&(Qe=_t=null,et=0),xl=t,_i=e,Xa=n,jc=c,Ic=o,Tp=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,vv(yn,function(){return Ip(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=I.T,I.T=null,o=ne.p,ne.p=2,h=ut,ut|=4;try{ov(e,t,n)}finally{ut=h,ne.p=o,I.T=a}}Vt=1,zp(),Up(),Bp()}}function zp(){if(Vt===1){Vt=0;var e=_i,t=xl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=I.T,I.T=null;var a=ne.p;ne.p=2;var o=ut;ut|=4;try{mp(t,e);var c=eu,h=_d(e.containerInfo),E=c.focusedElem,O=c.selectionRange;if(h!==E&&E&&E.ownerDocument&&Ed(E.ownerDocument.documentElement,E)){if(O!==null&&xo(E)){var Y=O.start,W=O.end;if(W===void 0&&(W=Y),"selectionStart"in E)E.selectionStart=Y,E.selectionEnd=Math.min(W,E.value.length);else{var ae=E.ownerDocument||document,F=ae&&ae.defaultView||window;if(F.getSelection){var Z=F.getSelection(),Te=E.textContent.length,Ue=Math.min(O.start,Te),vt=O.end===void 0?Ue:Math.min(O.end,Te);!Z.extend&&Ue>vt&&(h=vt,vt=Ue,Ue=h);var j=vd(E,Ue),M=vd(E,vt);if(j&&M&&(Z.rangeCount!==1||Z.anchorNode!==j.node||Z.anchorOffset!==j.offset||Z.focusNode!==M.node||Z.focusOffset!==M.offset)){var $=ae.createRange();$.setStart(j.node,j.offset),Z.removeAllRanges(),Ue>vt?(Z.addRange($),Z.extend(M.node,M.offset)):($.setEnd(M.node,M.offset),Z.addRange($))}}}}for(ae=[],Z=E;Z=Z.parentNode;)Z.nodeType===1&&ae.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ae.length;E++){var te=ae[E];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Pr=!!Wc,eu=Wc=null}finally{ut=o,ne.p=a,I.T=n}}e.current=t,Vt=2}}function Up(){if(Vt===2){Vt=0;var e=_i,t=xl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=I.T,I.T=null;var a=ne.p;ne.p=2;var o=ut;ut|=4;try{up(e,t.alternate,t)}finally{ut=o,ne.p=a,I.T=n}}Vt=3}}function Bp(){if(Vt===4||Vt===3){Vt=0,Vn();var e=_i,t=xl,n=Xa,a=Tp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Vt=5:(Vt=0,xl=_i=null,jp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Ei=null),Jn(n),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(on,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=I.T,o=ne.p,ne.p=2,I.T=null;try{for(var c=e.onRecoverableError,h=0;h<a.length;h++){var E=a[h];c(E.value,{componentStack:E.stack})}}finally{I.T=t,ne.p=o}}(Xa&3)!==0&&zr(),wa(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Hc?vs++:(vs=0,Hc=e):vs=0,Es(0)}}function jp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,es(t)))}function zr(){return zp(),Up(),Bp(),Ip()}function Ip(){if(Vt!==5)return!1;var e=_i,t=jc;jc=0;var n=Jn(Xa),a=I.T,o=ne.p;try{ne.p=32>n?32:n,I.T=null,n=Ic,Ic=null;var c=_i,h=Xa;if(Vt=0,xl=_i=null,Xa=0,(ut&6)!==0)throw Error(l(331));var E=ut;if(ut|=4,Ep(c.current),bp(c,c.current,h,n),ut=E,Es(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(on,c)}catch{}return!0}finally{ne.p=o,I.T=a,jp(e,t)}}function Hp(e,t,n){t=na(n,t),t=yc(e.stateNode,t,2),e=pi(e,t,2),e!==null&&(Le(e,2),wa(e))}function pt(e,t,n){if(e.tag===3)Hp(e,e,n);else for(;t!==null;){if(t.tag===3){Hp(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ei===null||!Ei.has(a))){e=na(n,e),n=qh(2),a=pi(t,n,2),a!==null&&(Gh(n,a,t,e),Le(a,2),wa(a));break}}t=t.return}}function $c(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new fv;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(zc=!0,o.add(n),e=gv.bind(null,e,t,n),t.then(e,e))}function gv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,_t===e&&(et&n)===n&&(Lt===4||Lt===3&&(et&62914560)===et&&300>Ke()-Or?(ut&2)===0&&wl(e,0):Uc|=n,Nl===et&&(Nl=0)),wa(e)}function qp(e,t){t===0&&(t=ee()),e=Bi(e,t),e!==null&&(Le(e,t),wa(e))}function bv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qp(e,n)}function yv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(l(314))}a!==null&&a.delete(t),qp(e,n)}function vv(e,t){return qn(e,t)}var Ur=null,Rl=null,Yc=!1,Br=!1,Fc=!1,Ti=0;function wa(e){e!==Rl&&e.next===null&&(Rl===null?Ur=Rl=e:Rl=Rl.next=e),Br=!0,Yc||(Yc=!0,_v())}function Es(e,t){if(!Fc&&Br){Fc=!0;do for(var n=!1,a=Ur;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var c=0;else{var h=a.suspendedLanes,E=a.pingedLanes;c=(1<<31-Nt(42|e)+1)-1,c&=o&~(h&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Fp(a,c))}else c=et,c=R(a,a===_t?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||J(a,c)||(n=!0,Fp(a,c));a=a.next}while(n);Fc=!1}}function Ev(){Gp()}function Gp(){Br=Yc=!1;var e=0;Ti!==0&&Mv()&&(e=Ti);for(var t=Ke(),n=null,a=Ur;a!==null;){var o=a.next,c=$p(a,t);c===0?(a.next=null,n===null?Ur=o:n.next=o,o===null&&(Rl=n)):(n=a,(e!==0||(c&3)!==0)&&(Br=!0)),a=o}Vt!==0&&Vt!==5||Es(e),Ti!==0&&(Ti=0)}function $p(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Nt(c),E=1<<h,O=o[h];O===-1?((E&n)===0||(E&a)!==0)&&(o[h]=C(E,t)):O<=t&&(e.expiredLanes|=E),c&=~E}if(t=_t,n=et,n=R(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ht===2||ht===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Jt(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||J(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Jt(a),Jn(n)){case 2:case 8:n=bn;break;case 32:n=yn;break;case 268435456:n=Mn;break;default:n=yn}return a=Yp.bind(null,e),n=qn(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Jt(a),e.callbackPriority=2,e.callbackNode=null,2}function Yp(e,t){if(Vt!==0&&Vt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(zr()&&e.callbackNode!==n)return null;var a=et;return a=R(e,e===_t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(xp(e,a,t),$p(e,Ke()),e.callbackNode!=null&&e.callbackNode===n?Yp.bind(null,e):null)}function Fp(e,t){if(zr())return null;xp(e,t,!0)}function _v(){Dv(function(){(ut&6)!==0?qn(mt,Ev):Gp()})}function Kc(){if(Ti===0){var e=hl;e===0&&(e=je,je<<=1,(je&261888)===0&&(je=256)),Ti=e}return Ti}function Kp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xe(""+e)}function Pp(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 Sv(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var c=Kp((o[en]||null).action),h=a.submitter;h&&(t=(t=h[en]||null)?Kp(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var E=new Xs("action","action",null,a,o);e.push({event:E,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ti!==0){var O=h?Pp(o,h):new FormData(o);dc(n,{pending:!0,data:O,method:o.method,action:c},null,O)}}else typeof c=="function"&&(E.preventDefault(),O=h?Pp(o,h):new FormData(o),dc(n,{pending:!0,data:O,method:o.method,action:c},c,O))},currentTarget:o}]})}}for(var Pc=0;Pc<Oo.length;Pc++){var Zc=Oo[Pc],Tv=Zc.toLowerCase(),Nv=Zc[0].toUpperCase()+Zc.slice(1);da(Tv,"on"+Nv)}da(Nd,"onAnimationEnd"),da(xd,"onAnimationIteration"),da(wd,"onAnimationStart"),da("dblclick","onDoubleClick"),da("focusin","onFocus"),da("focusout","onBlur"),da(Hy,"onTransitionRun"),da(qy,"onTransitionStart"),da(Gy,"onTransitionCancel"),da(Ad,"onTransitionEnd"),ce("onMouseEnter",["mouseout","mouseover"]),ce("onMouseLeave",["mouseout","mouseover"]),ce("onPointerEnter",["pointerout","pointerover"]),ce("onPointerLeave",["pointerout","pointerover"]),fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fa("onBeforeInput",["compositionend","keypress","textInput","paste"]),fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fa("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(" "),xv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_s));function Zp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var h=a.length-1;0<=h;h--){var E=a[h],O=E.instance,Y=E.currentTarget;if(E=E.listener,O!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=Y;try{c(o)}catch(W){Js(W)}o.currentTarget=null,c=O}else for(h=0;h<a.length;h++){if(E=a[h],O=E.instance,Y=E.currentTarget,E=E.listener,O!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=Y;try{c(o)}catch(W){Js(W)}o.currentTarget=null,c=O}}}}function Ve(e,t){var n=t[Wn];n===void 0&&(n=t[Wn]=new Set);var a=e+"__bubble";n.has(a)||(Xp(t,e,2,!1),n.add(a))}function Xc(e,t,n){var a=0;t&&(a|=4),Xp(n,e,a,t)}var jr="_reactListening"+Math.random().toString(36).slice(2);function Qc(e){if(!e[jr]){e[jr]=!0,Ma.forEach(function(n){n!=="selectionchange"&&(xv.has(n)||Xc(n,!1,e),Xc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jr]||(t[jr]=!0,Xc("selectionchange",!1,t))}}function Xp(e,t,n,a){switch(Nm(t)){case 2:var o=Wv;break;case 8:o=eE;break;default:o=fu}n=o.bind(null,t,n,e),o=void 0,!go||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?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 Vc(e,t,n,a,o){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var h=a.tag;if(h===3||h===4){var E=a.stateNode.containerInfo;if(E===o)break;if(h===4)for(h=a.return;h!==null;){var O=h.tag;if((O===3||O===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;E!==null;){if(h=un(E),h===null)return;if(O=h.tag,O===5||O===6||O===26||O===27){a=c=h;continue e}E=E.parentNode}}a=a.return}Fs(function(){var Y=c,W=Ce(n),ae=[];e:{var F=Rd.get(e);if(F!==void 0){var Z=Xs,Te=e;switch(e){case"keypress":if(Ps(n)===0)break e;case"keydown":case"keyup":Z=yy;break;case"focusin":Te="focus",Z=Eo;break;case"focusout":Te="blur",Z=Eo;break;case"beforeblur":case"afterblur":Z=Eo;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":Z=ad;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=sy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=_y;break;case Nd:case xd:case wd:Z=cy;break;case Ad:Z=Ty;break;case"scroll":case"scrollend":Z=iy;break;case"wheel":Z=xy;break;case"copy":case"cut":case"paste":Z=fy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=ld;break;case"toggle":case"beforetoggle":Z=Ay}var Ue=(t&4)!==0,vt=!Ue&&(e==="scroll"||e==="scrollend"),j=Ue?F!==null?F+"Capture":null:F;Ue=[];for(var M=Y,$;M!==null;){var te=M;if($=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||$===null||j===null||(te=$l(M,j),te!=null&&Ue.push(Ss(M,te,$))),vt)break;M=M.return}0<Ue.length&&(F=new Z(F,Te,null,n,W),ae.push({event:F,listeners:Ue}))}}if((t&7)===0){e:{if(F=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",F&&n!==ge&&(Te=n.relatedTarget||n.fromElement)&&(un(Te)||Te[lt]))break e;if((Z||F)&&(F=W.window===W?W:(F=W.ownerDocument)?F.defaultView||F.parentWindow:window,Z?(Te=n.relatedTarget||n.toElement,Z=Y,Te=Te?un(Te):null,Te!==null&&(vt=d(Te),Ue=Te.tag,Te!==vt||Ue!==5&&Ue!==27&&Ue!==6)&&(Te=null)):(Z=null,Te=Y),Z!==Te)){if(Ue=ad,te="onMouseLeave",j="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(Ue=ld,te="onPointerLeave",j="onPointerEnter",M="pointer"),vt=Z==null?F:Ea(Z),$=Te==null?F:Ea(Te),F=new Ue(te,M+"leave",Z,n,W),F.target=vt,F.relatedTarget=$,te=null,un(W)===Y&&(Ue=new Ue(j,M+"enter",Te,n,W),Ue.target=$,Ue.relatedTarget=vt,te=Ue),vt=te,Z&&Te)t:{for(Ue=wv,j=Z,M=Te,$=0,te=j;te;te=Ue(te))$++;te=0;for(var De=M;De;De=Ue(De))te++;for(;0<$-te;)j=Ue(j),$--;for(;0<te-$;)M=Ue(M),te--;for(;$--;){if(j===M||M!==null&&j===M.alternate){Ue=j;break t}j=Ue(j),M=Ue(M)}Ue=null}else Ue=null;Z!==null&&Qp(ae,F,Z,Ue,!1),Te!==null&&vt!==null&&Qp(ae,vt,Te,Ue,!0)}}e:{if(F=Y?Ea(Y):window,Z=F.nodeName&&F.nodeName.toLowerCase(),Z==="select"||Z==="input"&&F.type==="file")var ot=hd;else if(fd(F))if(pd)ot=By;else{ot=zy;var Re=Ly}else Z=F.nodeName,!Z||Z.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?Y&&_e(Y.elementType)&&(ot=hd):ot=Uy;if(ot&&(ot=ot(e,Y))){dd(ae,ot,n,W);break e}Re&&Re(e,F,Y),e==="focusout"&&Y&&F.type==="number"&&Y.memoizedProps.value!=null&&si(F,"number",F.value)}switch(Re=Y?Ea(Y):window,e){case"focusin":(fd(Re)||Re.contentEditable==="true")&&(ll=Re,wo=Y,Vl=null);break;case"focusout":Vl=wo=ll=null;break;case"mousedown":Ao=!0;break;case"contextmenu":case"mouseup":case"dragend":Ao=!1,Sd(ae,n,W);break;case"selectionchange":if(Iy)break;case"keydown":case"keyup":Sd(ae,n,W)}var Ye;if(So)e:{switch(e){case"compositionstart":var tt="onCompositionStart";break e;case"compositionend":tt="onCompositionEnd";break e;case"compositionupdate":tt="onCompositionUpdate";break e}tt=void 0}else il?cd(e,n)&&(tt="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(tt="onCompositionStart");tt&&(sd&&n.locale!=="ko"&&(il||tt!=="onCompositionStart"?tt==="onCompositionEnd"&&il&&(Ye=td()):(ri=W,bo="value"in ri?ri.value:ri.textContent,il=!0)),Re=Ir(Y,tt),0<Re.length&&(tt=new id(tt,e,null,n,W),ae.push({event:tt,listeners:Re}),Ye?tt.data=Ye:(Ye=ud(n),Ye!==null&&(tt.data=Ye)))),(Ye=Oy?ky(e,n):My(e,n))&&(tt=Ir(Y,"onBeforeInput"),0<tt.length&&(Re=new id("onBeforeInput","beforeinput",null,n,W),ae.push({event:Re,listeners:tt}),Re.data=Ye)),Sv(ae,e,Y,n,W)}Zp(ae,t)})}function Ss(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ir(e,t){for(var n=t+"Capture",a=[];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&&a.unshift(Ss(e,o,c)),o=$l(e,t),o!=null&&a.push(Ss(e,o,c))),e.tag===3)return a;e=e.return}return[]}function wv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Qp(e,t,n,a,o){for(var c=t._reactName,h=[];n!==null&&n!==a;){var E=n,O=E.alternate,Y=E.stateNode;if(E=E.tag,O!==null&&O===a)break;E!==5&&E!==26&&E!==27||Y===null||(O=Y,o?(Y=$l(n,c),Y!=null&&h.unshift(Ss(n,Y,O))):o||(Y=$l(n,c),Y!=null&&h.push(Ss(n,Y,O)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var Av=/\r\n?/g,Rv=/\u0000|\uFFFD/g;function Vp(e){return(typeof e=="string"?e:""+e).replace(Av,`
|
|
49
|
-
`).replace(Rv,"")}function Jp(e,t){return t=Vp(t),Vp(e)===t}function yt(e,t,n,a,o,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||X(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&X(e,""+a);break;case"className":tn(e,"class",a);break;case"tabIndex":tn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":tn(e,n,a);break;case"style":V(e,a,c);break;case"data":if(t!=="object"){tn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Xe(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="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"&&yt(e,t,"name",o.name,o,null),yt(e,t,"formEncType",o.formEncType,o,null),yt(e,t,"formMethod",o.formMethod,o,null),yt(e,t,"formTarget",o.formTarget,o,null)):(yt(e,t,"encType",o.encType,o,null),yt(e,t,"method",o.method,o,null),yt(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Xe(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=se);break;case"onScroll":a!=null&&Ve("scroll",e);break;case"onScrollEnd":a!=null&&Ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Xe(""+a),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":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ve("beforetoggle",e),Ve("toggle",e),qt(e,"popover",a);break;case"xlinkActuate":Bt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Bt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Bt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Bt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Bt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Bt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":qt(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Ne.get(n)||n,qt(e,n,a))}}function Jc(e,t,n,a,o,c){switch(n){case"style":V(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"children":typeof a=="string"?X(e,a):(typeof a=="number"||typeof a=="bigint")&&X(e,""+a);break;case"onScroll":a!=null&&Ve("scroll",e);break;case"onScrollEnd":a!=null&&Ve("scrollend",e);break;case"onClick":a!=null&&(e.onclick=se);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!An.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[en]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):qt(e,n,a)}}}function pn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ve("error",e),Ve("load",e);var a=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:yt(e,t,c,h,n,null)}}o&&yt(e,t,"srcSet",n.srcSet,n,null),a&&yt(e,t,"src",n.src,n,null);return;case"input":Ve("invalid",e);var E=c=h=o=null,O=null,Y=null;for(a in n)if(n.hasOwnProperty(a)){var W=n[a];if(W!=null)switch(a){case"name":o=W;break;case"type":h=W;break;case"checked":O=W;break;case"defaultChecked":Y=W;break;case"value":c=W;break;case"defaultValue":E=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(l(137,t));break;default:yt(e,t,a,W,n,null)}}Da(e,c,E,O,Y,h,o,!1);return;case"select":Ve("invalid",e),a=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":a=E;default:yt(e,t,o,E,n,null)}t=c,n=h,e.multiple=!!a,t!=null?Gt(e,!!a,t,!1):n!=null&&Gt(e,!!a,n,!0);return;case"textarea":Ve("invalid",e),c=o=a=null;for(h in n)if(n.hasOwnProperty(h)&&(E=n[h],E!=null))switch(h){case"value":a=E;break;case"defaultValue":o=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(l(91));break;default:yt(e,t,h,E,n,null)}Sa(e,a,o,c);return;case"option":for(O in n)if(n.hasOwnProperty(O)&&(a=n[O],a!=null))switch(O){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:yt(e,t,O,a,n,null)}return;case"dialog":Ve("beforetoggle",e),Ve("toggle",e),Ve("cancel",e),Ve("close",e);break;case"iframe":case"object":Ve("load",e);break;case"video":case"audio":for(a=0;a<_s.length;a++)Ve(_s[a],e);break;case"image":Ve("error",e),Ve("load",e);break;case"details":Ve("toggle",e);break;case"embed":case"source":case"link":Ve("error",e),Ve("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(Y in n)if(n.hasOwnProperty(Y)&&(a=n[Y],a!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:yt(e,t,Y,a,n,null)}return;default:if(_e(t)){for(W in n)n.hasOwnProperty(W)&&(a=n[W],a!==void 0&&Jc(e,t,W,a,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(a=n[E],a!=null&&yt(e,t,E,a,n,null))}function Ov(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,E=null,O=null,Y=null,W=null;for(Z in n){var ae=n[Z];if(n.hasOwnProperty(Z)&&ae!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":O=ae;default:a.hasOwnProperty(Z)||yt(e,t,Z,null,a,ae)}}for(var F in a){var Z=a[F];if(ae=n[F],a.hasOwnProperty(F)&&(Z!=null||ae!=null))switch(F){case"type":c=Z;break;case"name":o=Z;break;case"checked":Y=Z;break;case"defaultChecked":W=Z;break;case"value":h=Z;break;case"defaultValue":E=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(l(137,t));break;default:Z!==ae&&yt(e,t,F,Z,a,ae)}}li(e,h,E,O,Y,W,c,o);return;case"select":Z=h=E=F=null;for(c in n)if(O=n[c],n.hasOwnProperty(c)&&O!=null)switch(c){case"value":break;case"multiple":Z=O;default:a.hasOwnProperty(c)||yt(e,t,c,null,a,O)}for(o in a)if(c=a[o],O=n[o],a.hasOwnProperty(o)&&(c!=null||O!=null))switch(o){case"value":F=c;break;case"defaultValue":E=c;break;case"multiple":h=c;default:c!==O&&yt(e,t,o,c,a,O)}t=E,n=h,a=Z,F!=null?Gt(e,!!n,F,!1):!!a!=!!n&&(t!=null?Gt(e,!!n,t,!0):Gt(e,!!n,n?[]:"",!1));return;case"textarea":Z=F=null;for(E in n)if(o=n[E],n.hasOwnProperty(E)&&o!=null&&!a.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:yt(e,t,E,null,a,o)}for(h in a)if(o=a[h],c=n[h],a.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":F=o;break;case"defaultValue":Z=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&yt(e,t,h,o,a,c)}La(e,F,Z);return;case"option":for(var Te in n)if(F=n[Te],n.hasOwnProperty(Te)&&F!=null&&!a.hasOwnProperty(Te))switch(Te){case"selected":e.selected=!1;break;default:yt(e,t,Te,null,a,F)}for(O in a)if(F=a[O],Z=n[O],a.hasOwnProperty(O)&&F!==Z&&(F!=null||Z!=null))switch(O){case"selected":e.selected=F&&typeof F!="function"&&typeof F!="symbol";break;default:yt(e,t,O,F,a,Z)}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 Ue in n)F=n[Ue],n.hasOwnProperty(Ue)&&F!=null&&!a.hasOwnProperty(Ue)&&yt(e,t,Ue,null,a,F);for(Y in a)if(F=a[Y],Z=n[Y],a.hasOwnProperty(Y)&&F!==Z&&(F!=null||Z!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(l(137,t));break;default:yt(e,t,Y,F,a,Z)}return;default:if(_e(t)){for(var vt in n)F=n[vt],n.hasOwnProperty(vt)&&F!==void 0&&!a.hasOwnProperty(vt)&&Jc(e,t,vt,void 0,a,F);for(W in a)F=a[W],Z=n[W],!a.hasOwnProperty(W)||F===Z||F===void 0&&Z===void 0||Jc(e,t,W,F,a,Z);return}}for(var j in n)F=n[j],n.hasOwnProperty(j)&&F!=null&&!a.hasOwnProperty(j)&&yt(e,t,j,null,a,F);for(ae in a)F=a[ae],Z=n[ae],!a.hasOwnProperty(ae)||F===Z||F==null&&Z==null||yt(e,t,ae,F,a,Z)}function Wp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],c=o.transferSize,h=o.initiatorType,E=o.duration;if(c&&E&&Wp(h)){for(h=0,E=o.responseEnd,a+=1;a<n.length;a++){var O=n[a],Y=O.startTime;if(Y>E)break;var W=O.transferSize,ae=O.initiatorType;W&&Wp(ae)&&(O=O.responseEnd,h+=W*(O<E?1:(E-Y)/(O-Y)))}if(--a,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 Wc=null,eu=null;function Hr(e){return e.nodeType===9?e:e.ownerDocument}function em(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 tm(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 tu(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 nu=null;function Mv(){var e=window.event;return e&&e.type==="popstate"?e===nu?!1:(nu=e,!0):(nu=null,!1)}var nm=typeof setTimeout=="function"?setTimeout:void 0,Cv=typeof clearTimeout=="function"?clearTimeout:void 0,am=typeof Promise=="function"?Promise:void 0,Dv=typeof queueMicrotask=="function"?queueMicrotask:typeof am<"u"?function(e){return am.resolve(null).then(e).catch(Lv)}:nm;function Lv(e){setTimeout(function(){throw e})}function Ni(e){return e==="head"}function im(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),Cl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Ts(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ts(n);for(var c=n.firstChild;c;){var h=c.nextSibling,E=c.nodeName;c[va]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&Ts(e.ownerDocument.body);n=o}while(n);Cl(t)}function lm(e,t){var n=e;e=0;do{var a=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||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function au(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":au(n),ni(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function zv(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[va])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(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=ra(e.nextSibling),e===null)break}return null}function Uv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ra(e.nextSibling),e===null))return null;return e}function sm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ra(e.nextSibling),e===null))return null;return e}function iu(e){return e.data==="$?"||e.data==="$~"}function lu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Bv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function ra(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 su=null;function rm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ra(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function om(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 cm(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 Ts(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ni(e)}var oa=new Map,um=new Set;function qr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Qa=ne.d;ne.d={f:jv,r:Iv,D:Hv,C:qv,L:Gv,m:$v,X:Fv,S:Yv,M:Kv};function jv(){var e=Qa.f(),t=Cr();return e||t}function Iv(e){var t=ua(e);t!==null&&t.tag===5&&t.type==="form"?Ah(t):Qa.r(e)}var Ol=typeof document>"u"?null:document;function fm(e,t,n){var a=Ol;if(a&&typeof t=="string"&&t){var o=En(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),um.has(o)||(um.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),pn(t,"link",e),dt(t),a.head.appendChild(t)))}}function Hv(e){Qa.D(e),fm("dns-prefetch",e,null)}function qv(e,t){Qa.C(e,t),fm("preconnect",e,t)}function Gv(e,t,n){Qa.L(e,t,n);var a=Ol;if(a&&e&&t){var o='link[rel="preload"][as="'+En(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+En(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+En(n.imageSizes)+'"]')):o+='[href="'+En(e)+'"]';var c=o;switch(t){case"style":c=kl(e);break;case"script":c=Ml(e)}oa.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),oa.set(c,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(Ns(c))||t==="script"&&a.querySelector(xs(c))||(t=a.createElement("link"),pn(t,"link",e),dt(t),a.head.appendChild(t)))}}function $v(e,t){Qa.m(e,t);var n=Ol;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+En(a)+'"][href="'+En(e)+'"]',c=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ml(e)}if(!oa.has(c)&&(e=v({rel:"modulepreload",href:e},t),oa.set(c,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(xs(c)))return}a=n.createElement("link"),pn(a,"link",e),dt(a),n.head.appendChild(a)}}}function Yv(e,t,n){Qa.S(e,t,n);var a=Ol;if(a&&e){var o=_a(a).hoistableStyles,c=kl(e);t=t||"default";var h=o.get(c);if(!h){var E={loading:0,preload:null};if(h=a.querySelector(Ns(c)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=oa.get(c))&&ru(e,n);var O=h=a.createElement("link");dt(O),pn(O,"link",e),O._p=new Promise(function(Y,W){O.onload=Y,O.onerror=W}),O.addEventListener("load",function(){E.loading|=1}),O.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Gr(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:E},o.set(c,h)}}}function Fv(e,t){Qa.X(e,t);var n=Ol;if(n&&e){var a=_a(n).hoistableScripts,o=Ml(e),c=a.get(o);c||(c=n.querySelector(xs(o)),c||(e=v({src:e,async:!0},t),(t=oa.get(o))&&ou(e,t),c=n.createElement("script"),dt(c),pn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function Kv(e,t){Qa.M(e,t);var n=Ol;if(n&&e){var a=_a(n).hoistableScripts,o=Ml(e),c=a.get(o);c||(c=n.querySelector(xs(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=oa.get(o))&&ou(e,t),c=n.createElement("script"),dt(c),pn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function dm(e,t,n,a){var o=(o=xe.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=_a(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{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=_a(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(Ns(e)))&&!c._p&&(h.instance=c,h.state.loading=5),oa.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},oa.set(e,n),c||Pv(o,e,n,h.state))),t&&a===null)throw Error(l(528,""));return h}if(t&&a!==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=Ml(n),n=_a(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function kl(e){return'href="'+En(e)+'"'}function Ns(e){return'link[rel="stylesheet"]['+e+"]"}function hm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Pv(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),pn(t,"link",n),dt(t),e.head.appendChild(t))}function Ml(e){return'[src="'+En(e)+'"]'}function xs(e){return"script[async]"+e}function pm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+En(n.href)+'"]');if(a)return t.instance=a,dt(a),a;var o=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),dt(a),pn(a,"style",o),Gr(a,n.precedence,e),t.instance=a;case"stylesheet":o=kl(n.href);var c=e.querySelector(Ns(o));if(c)return t.state.loading|=4,t.instance=c,dt(c),c;a=hm(n),(o=oa.get(o))&&ru(a,o),c=(e.ownerDocument||e).createElement("link"),dt(c);var h=c;return h._p=new Promise(function(E,O){h.onload=E,h.onerror=O}),pn(c,"link",a),t.state.loading|=4,Gr(c,n.precedence,e),t.instance=c;case"script":return c=Ml(n.src),(o=e.querySelector(xs(c)))?(t.instance=o,dt(o),o):(a=n,(o=oa.get(c))&&(a=v({},n),ou(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),dt(o),pn(o,"link",a),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&&(a=t.instance,t.state.loading|=4,Gr(a,n.precedence,e));return t.instance}function Gr(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,c=o,h=0;h<a.length;h++){var E=a[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 ru(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ou(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 mm(e,t,n){if($r===null){var a=new Map,o=$r=new Map;o.set(n,a)}else o=$r,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[va]||c[Mt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var E=a.get(h);E?E.push(c):a.set(h,[c])}}return a}function gm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Zv(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 bm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Xv(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=kl(a.href),c=t.querySelector(Ns(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,dt(c);return}c=t.ownerDocument||t,a=hm(a),(o=oa.get(o))&&ru(a,o),c=c.createElement("link"),dt(c);var h=c;h._p=new Promise(function(E,O){h.onload=E,h.onerror=O}),pn(c,"link",a),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 cu=0;function Qv(e,t){return e.stylesheets&&e.count===0&&Kr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Kr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&cu===0&&(cu=62500*kv());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>cu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),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(Vv,e),Fr=null,Yr.call(e))}function Vv(e,t){if(!(t.state.loading&4)){var n=Fr.get(e);if(n)var a=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),a=h)}a&&n.set(null,a)}o=t.instance,h=o.getAttribute("data-precedence"),c=n.get(h)||a,c===a&&n.set(null,o),n.set(h,o),this.count++,a=Yr.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var ws={$$typeof:L,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function Jv(e,t,n,a,o,c,h,E,O){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=de(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=de(0),this.hiddenUpdates=de(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function ym(e,t,n,a,o,c,h,E,O,Y,W,ae){return e=new Jv(e,t,n,h,O,Y,W,ae,E),t=1,c===!0&&(t|=24),c=Yn(3,null,null,t),e.current=c,c.stateNode=e,t=Go(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},Ko(c),e}function vm(e){return e?(e=ol,e):ol}function Em(e,t,n,a,o,c){o=vm(o),a.context===null?a.context=o:a.pendingContext=o,a=hi(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=pi(e,a,t),n!==null&&(Hn(n,e,t),is(n,e,t))}function _m(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function uu(e,t){_m(e,t),(e=e.alternate)&&_m(e,t)}function Sm(e){if(e.tag===13||e.tag===31){var t=Bi(e,67108864);t!==null&&Hn(t,e,67108864),uu(e,67108864)}}function Tm(e){if(e.tag===13||e.tag===31){var t=Xn();t=gt(t);var n=Bi(e,t);n!==null&&Hn(n,e,t),uu(e,t)}}var Pr=!0;function Wv(e,t,n,a){var o=I.T;I.T=null;var c=ne.p;try{ne.p=2,fu(e,t,n,a)}finally{ne.p=c,I.T=o}}function eE(e,t,n,a){var o=I.T;I.T=null;var c=ne.p;try{ne.p=8,fu(e,t,n,a)}finally{ne.p=c,I.T=o}}function fu(e,t,n,a){if(Pr){var o=du(a);if(o===null)Vc(e,t,a,Zr,n),xm(e,a);else if(nE(o,e,t,n,a))a.stopPropagation();else if(xm(e,a),t&4&&-1<tE.indexOf(e)){for(;o!==null;){var c=ua(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=Ct(c.pendingLanes);if(h!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;h;){var O=1<<31-Nt(h);E.entanglements[1]|=O,h&=~O}wa(c),(ut&6)===0&&(kr=Ke()+500,Es(0))}}break;case 31:case 13:E=Bi(c,2),E!==null&&Hn(E,c,2),Cr(),uu(c,2)}if(c=du(a),c===null&&Vc(e,t,a,Zr,n),c===o)break;o=c}o!==null&&a.stopPropagation()}else Vc(e,t,a,null,n)}}function du(e){return e=Ce(e),hu(e)}var Zr=null;function hu(e){if(Zr=null,e=un(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=y(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Zr=e,null}function Nm(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(Ut()){case mt:return 2;case bn:return 8;case yn:case kn:return 32;case Mn:return 268435456;default:return 32}default:return 32}}var pu=!1,xi=null,wi=null,Ai=null,As=new Map,Rs=new Map,Ri=[],tE="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 xm(e,t){switch(e){case"focusin":case"focusout":xi=null;break;case"dragenter":case"dragleave":wi=null;break;case"mouseover":case"mouseout":Ai=null;break;case"pointerover":case"pointerout":As.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rs.delete(t.pointerId)}}function Os(e,t,n,a,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[o]},t!==null&&(t=ua(t),t!==null&&Sm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function nE(e,t,n,a,o){switch(t){case"focusin":return xi=Os(xi,e,t,n,a,o),!0;case"dragenter":return wi=Os(wi,e,t,n,a,o),!0;case"mouseover":return Ai=Os(Ai,e,t,n,a,o),!0;case"pointerover":var c=o.pointerId;return As.set(c,Os(As.get(c)||null,e,t,n,a,o)),!0;case"gotpointercapture":return c=o.pointerId,Rs.set(c,Os(Rs.get(c)||null,e,t,n,a,o)),!0}return!1}function wm(e){var t=un(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,ei(e.priority,function(){Tm(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,ei(e.priority,function(){Tm(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=du(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);ge=a,n.target.dispatchEvent(a),ge=null}else return t=ua(n),t!==null&&Sm(t),e.blockedOn=n,!1;t.shift()}return!0}function Am(e,t,n){Xr(e)&&n.delete(t)}function aE(){pu=!1,xi!==null&&Xr(xi)&&(xi=null),wi!==null&&Xr(wi)&&(wi=null),Ai!==null&&Xr(Ai)&&(Ai=null),As.forEach(Am),Rs.forEach(Am)}function Qr(e,t){e.blockedOn===t&&(e.blockedOn=null,pu||(pu=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,aE)))}var Vr=null;function Rm(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],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(hu(a||n)===null)continue;break}var c=ua(n);c!==null&&(e.splice(t,3),t-=3,dc(c,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function Cl(e){function t(O){return Qr(O,e)}xi!==null&&Qr(xi,e),wi!==null&&Qr(wi,e),Ai!==null&&Qr(Ai,e),As.forEach(t),Rs.forEach(t);for(var n=0;n<Ri.length;n++){var a=Ri[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ri.length&&(n=Ri[0],n.blockedOn===null);)wm(n),n.blockedOn===null&&Ri.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],c=n[a+1],h=o[en]||null;if(typeof c=="function")h||Rm(n);else if(h){var E=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[en]||null)E=h.formAction;else if(hu(o)!==null)continue}else E=h.action;typeof E=="function"?n[a+1]=E:(n.splice(a,3),a-=3),Rm(n)}}}function Om(){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),a||setTimeout(n,20)}function n(){if(!a&&!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 a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function mu(e){this._internalRoot=e}Jr.prototype.render=mu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var n=t.current,a=Xn();Em(n,a,e,t,null,null)},Jr.prototype.unmount=mu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Em(e.current,2,null,e,null,null),Cr(),t[lt]=null}};function Jr(e){this._internalRoot=e}Jr.prototype.unstable_scheduleHydration=function(e){if(e){var t=ya();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ri.length&&t!==0&&t<Ri[n].priority;n++);Ri.splice(n,0,e),n===0&&wm(e)}};var km=i.version;if(km!=="19.2.8")throw Error(l(527,km,"19.2.8"));ne.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?b(e):null,e=e===null?null:e.stateNode,e};var iE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wr.isDisabled&&Wr.supportsFiber)try{on=Wr.inject(iE),St=Wr}catch{}}return Ms.createRoot=function(e,t){if(!u(e))throw Error(l(299));var n=!1,a="",o=Bh,c=jh,h=Ih;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=ym(e,1,!1,null,null,n,a,null,o,c,h,Om),e[lt]=t.current,Qc(e),new mu(t)},Ms.hydrateRoot=function(e,t,n){if(!u(e))throw Error(l(299));var a=!1,o="",c=Bh,h=jh,E=Ih,O=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(E=n.onRecoverableError),n.formState!==void 0&&(O=n.formState)),t=ym(e,1,!0,t,n??null,a,o,O,c,h,E,Om),t.context=vm(null),n=t.current,a=Xn(),a=gt(a),o=hi(a),o.callback=null,pi(n,o,a),n=a,t.current.lanes=n,Le(t,n),wa(t),e[lt]=t.current,Qc(e),new Jr(t)},Ms.version="19.2.8",Ms}var Hm;function gE(){if(Hm)return yu.exports;Hm=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(i){console.error(i)}}return s(),yu.exports=mE(),yu.exports}var bE=gE(),Pt;(function(s){s.INSERT="insert",s.DELETE="delete",s.CONTEXT="context"})(Pt||(Pt={}));const yE={LINE_BY_LINE:"line-by-line"},vE={NONE:"none"},EE={WORD:"word"};var jl;(function(s){s.AUTO="auto",s.DARK="dark",s.LIGHT="light"})(jl||(jl={}));const _E=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],SE=RegExp("["+_E.join("\\")+"]","g");function TE(s){return s.replace(SE,"\\$&")}function qm(s){return s&&s.replace(/\\/g,"/")}function NE(s){let i,r,l,u=0;for(i=0,l=s.length;i<l;i++)r=s.charCodeAt(i),u=(u<<5)-u+r,u|=0;return u}function Sb(s){const i=s.length;let r=-1/0;for(let l=0;l<i;l++)r=Math.max(r,s[l]);return r}function Gm(s,i){const r=s.split(".");return r.length>1?r[r.length-1]:i}function $m(s,i){return i.reduce((r,l)=>r||s.startsWith(l),!1)}const Ym=["a/","b/","i/","w/","c/","o/"];function Ci(s,i,r){const l=r!==void 0?[...Ym,r]:Ym,u=i?new RegExp(`^${TE(i)} "?(.+?)"?$`):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 xE(s,i){return Ci(s,"---",i)}function wE(s,i){return Ci(s,"+++",i)}function AE(s,i={}){const r=[];let l=null,u=null,d=null,p=null,y=null,g=null,m=null;const b="--- ",v="+++ ",_="@@",x=/^old mode (\d{6})/,N=/^new mode (\d{6})/,A=/^deleted file mode (\d{6})/,w=/^new file mode (\d{6})/,U=/^copy from "?(.+)"?/,G=/^copy to "?(.+)"?/,L=/^rename from "?(.+)"?/,re=/^rename to "?(.+)"?/,H=/^similarity index (\d+)%/,P=/^dissimilarity index (\d+)%/,le=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,k=/^Binary files (.*) and (.*) differ/,z=/^GIT binary patch/,Q=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,K=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,fe=/^new file mode (\d{6})/,we=/^deleted file mode (\d{6}),(\d{6})/,Ae=s.replace(/\/g,"").replace(/\r\n?/g,`
|
|
48
|
+
`+a.stack}}var zt=Object.prototype.hasOwnProperty,qn=s.unstable_scheduleCallback,Jt=s.unstable_cancelCallback,ca=s.unstable_shouldYield,Vn=s.unstable_requestPaint,Ke=s.unstable_now,Ut=s.unstable_getCurrentPriorityLevel,mt=s.unstable_ImmediatePriority,bn=s.unstable_UserBlockingPriority,yn=s.unstable_NormalPriority,kn=s.unstable_LowPriority,Mn=s.unstable_IdlePriority,Cn=s.log,Dn=s.unstable_setDisableYieldValue,on=null,St=null;function Wt(e){if(typeof Cn=="function"&&Dn(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(on,e)}catch{}}var Nt=Math.clz32?Math.clz32:wn,Gn=Math.log,Ln=Math.LN2;function wn(e){return e>>>=0,e===0?32:31-(Gn(e)/Ln|0)|0}var je=256,cn=262144,Qt=4194304;function Ct(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 R(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var E=a&134217727;return E!==0?(a=E&~c,a!==0?o=Ct(a):(h&=E,h!==0?o=Ct(h):n||(n=E&~e,n!==0&&(o=Ct(n))))):(E=a&~c,E!==0?o=Ct(E):h!==0?o=Ct(h):n||(n=a&~e,n!==0&&(o=Ct(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 J(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function C(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 ee(){var e=Qt;return Qt<<=1,(Qt&62914560)===0&&(Qt=4194304),e}function de(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Le(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ye(e,t,n,a,o,c){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var E=e.entanglements,O=e.expirationTimes,Y=e.hiddenUpdates;for(n=h&~n;0<n;){var W=31-Nt(n),ie=1<<W;E[W]=0,O[W]=-1;var F=Y[W];if(F!==null)for(Y[W]=null,W=0;W<F.length;W++){var Z=F[W];Z!==null&&(Z.lane&=-536870913)}n&=~ie}a!==0&&be(e,a,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function be(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Nt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function ze(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Nt(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function Rt(e,t){var n=t&-t;return n=(n&42)!==0?1:gt(n),(n&(e.suspendedLanes|t))!==0?0:n}function gt(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 Jn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ya(){var e=ne.p;return e!==0?e:(e=window.event,e===void 0?32:xm(e.type))}function ei(e,t){var n=ne.p;try{return ne.p=e,t()}finally{ne.p=n}}var vn=Math.random().toString(36).slice(2),Mt="__reactFiber$"+vn,en="__reactProps$"+vn,lt="__reactContainer$"+vn,Wn="__reactEvents$"+vn,tl="__reactListeners$"+vn,ka="__reactHandles$"+vn,ti="__reactResources$"+vn,va="__reactMarker$"+vn;function ni(e){delete e[Mt],delete e[en],delete e[Wn],delete e[tl],delete e[ka]}function un(e){var t=e[Mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[lt]||n[Mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cm(e);e!==null;){if(n=e[Mt])return n;e=cm(e)}return t}e=n,n=e.parentNode}return null}function ua(e){if(e=e[Mt]||e[lt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ea(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function _a(e){var t=e[ti];return t||(t=e[ti]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[va]=!0}var Ma=new Set,An={};function fa(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(An[e]=t,e=0;e<t.length;e++)Ma.add(t[e])}var Me=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]*$"),$e={},st={};function Tt(e){return zt.call(st,e)?!0:zt.call($e,e)?!1:Me.test(e)?st[e]=!0:($e[e]=!0,!1)}function qt(e,t,n){if(Tt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function tn(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 Bt(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function rt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ot(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nl(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.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:a.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ai(e){if(!e._valueTracker){var t=Ot(e)?"checked":"value";e._valueTracker=nl(e,t,""+e[t])}}function ii(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Ot(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Ca(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 En(e){return e.replace(al,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function li(e,t,n,a,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=""+rt(t)):e.value!==""+rt(t)&&(e.value=""+rt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?si(e,h,rt(t)):n!=null?si(e,h,rt(n)):a!=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=""+rt(E):e.removeAttribute("name")}function Da(e,t,n,a,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)){ai(e);return}n=n!=null?""+rt(n):"",t=t!=null?""+rt(t):n,E||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=E?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),ai(e)}function si(e,t,n){t==="number"&&Ca(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Gt(e,t,n,a){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&&a&&(e[n].defaultSelected=!0)}else{for(n=""+rt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function La(e,t,n){if(t!=null&&(t=""+rt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+rt(n):""}function Sa(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(l(92));if(he(a)){if(1<a.length)throw Error(l(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=rt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),ai(e)}function X(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var N=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function B(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?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 V(e,t,n){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&B(e,o,a)}else for(var c in t)t.hasOwnProperty(c)&&B(e,c,t[c])}function _e(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 Ne=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 Xe(e){return Be.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function se(){}var ge=null;function Ce(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fe=null,Pe=null;function ea(e){var t=ua(e);if(t&&(e=t.stateNode)){var n=e[en]||null;e:switch(e=t.stateNode,t.type){case"input":if(li(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="'+En(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[en]||null;if(!o)throw Error(l(90));li(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&ii(a)}break e;case"textarea":La(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Gt(e,!!n.multiple,t,!1)}}}var Gl=!1;function Fs(e,t,n){if(Gl)return e(t,n);Gl=!0;try{var a=e(t);return a}finally{if(Gl=!1,(Fe!==null||Pe!==null)&&(Cr(),Fe&&(t=Fe,e=Pe,Pe=Fe=null,ea(t),e)))for(t=0;t<e.length;t++)ea(e[t])}}function $l(e,t){var n=e.stateNode;if(n===null)return null;var a=n[en]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(l(231,t,typeof n));return n}var za=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),go=!1;if(za)try{var Yl={};Object.defineProperty(Yl,"passive",{get:function(){go=!0}}),window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{go=!1}var ri=null,bo=null,Ks=null;function nd(){if(Ks)return Ks;var e,t=bo,n=t.length,a,o="value"in ri?ri.value:ri.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var h=n-e;for(a=1;a<=h&&t[n-a]===o[c-a];a++);return Ks=o.slice(e,1<a?1-a: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 ad(){return!1}function zn(e){function t(n,a,o,c,h){this._reactName=n,this._targetInst=o,this.type=a,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:ad,this.isPropagationStopped=ad,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 Li={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xs=zn(Li),Fl=v({},Li,{view:0,detail:0}),ly=zn(Fl),yo,vo,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:_o,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"?(yo=e.screenX-Kl.screenX,vo=e.screenY-Kl.screenY):vo=yo=0,Kl=e),yo)},movementY:function(e){return"movementY"in e?e.movementY:vo}}),id=zn(Qs),sy=v({},Qs,{dataTransfer:0}),ry=zn(sy),oy=v({},Fl,{relatedTarget:0}),Eo=zn(oy),cy=v({},Li,{animationName:0,elapsedTime:0,pseudoElement:0}),uy=zn(cy),fy=v({},Li,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dy=zn(fy),hy=v({},Li,{data:0}),ld=zn(hy),py={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},my={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"},gy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function by(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=gy[e])?!!t[e]:!1}function _o(){return by}var yy=v({},Fl,{key:function(e){if(e.key){var t=py[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"?my[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_o,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}}),vy=zn(yy),Ey=v({},Qs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sd=zn(Ey),_y=v({},Fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_o}),Sy=zn(_y),Ty=v({},Li,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ny=zn(Ty),xy=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}),wy=zn(xy),Ay=v({},Li,{newState:0,oldState:0}),Ry=zn(Ay),Oy=[9,13,27,32],So=za&&"CompositionEvent"in window,Pl=null;za&&"documentMode"in document&&(Pl=document.documentMode);var ky=za&&"TextEvent"in window&&!Pl,rd=za&&(!So||Pl&&8<Pl&&11>=Pl),od=" ",cd=!1;function ud(e,t){switch(e){case"keyup":return Oy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var il=!1;function My(e,t){switch(e){case"compositionend":return fd(t);case"keypress":return t.which!==32?null:(cd=!0,od);case"textInput":return e=t.data,e===od&&cd?null:e;default:return null}}function Cy(e,t){if(il)return e==="compositionend"||!So&&ud(e,t)?(e=nd(),Ks=bo=ri=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 rd&&t.locale!=="ko"?null:t.data;default:return null}}var Dy={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 dd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Dy[e.type]:t==="textarea"}function hd(e,t,n,a){Fe?Pe?Pe.push(a):Pe=[a]:Fe=a,t=Ir(t,"onChange"),0<t.length&&(n=new Xs("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Zl=null,Xl=null;function Ly(e){Xp(e,0)}function Vs(e){var t=Ea(e);if(ii(t))return e}function pd(e,t){if(e==="change")return t}var md=!1;if(za){var To;if(za){var No="oninput"in document;if(!No){var gd=document.createElement("div");gd.setAttribute("oninput","return;"),No=typeof gd.oninput=="function"}To=No}else To=!1;md=To&&(!document.documentMode||9<document.documentMode)}function bd(){Zl&&(Zl.detachEvent("onpropertychange",yd),Xl=Zl=null)}function yd(e){if(e.propertyName==="value"&&Vs(Xl)){var t=[];hd(t,Xl,e,Ce(e)),Fs(Ly,t)}}function zy(e,t,n){e==="focusin"?(bd(),Zl=t,Xl=n,Zl.attachEvent("onpropertychange",yd)):e==="focusout"&&bd()}function Uy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Vs(Xl)}function By(e,t){if(e==="click")return Vs(t)}function jy(e,t){if(e==="input"||e==="change")return Vs(t)}function Iy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $n=typeof Object.is=="function"?Object.is:Iy;function Ql(e,t){if($n(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!zt.call(t,o)||!$n(e[o],t[o]))return!1}return!0}function vd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ed(e,t){var n=vd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=vd(n)}}function _d(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_d(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ca(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=Ca(e.document)}return t}function xo(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 Hy=za&&"documentMode"in document&&11>=document.documentMode,ll=null,wo=null,Vl=null,Ao=!1;function Td(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ao||ll==null||ll!==Ca(a)||(a=ll,"selectionStart"in a&&xo(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Vl&&Ql(Vl,a)||(Vl=a,a=Ir(wo,"onSelect"),0<a.length&&(t=new Xs("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ll)))}function zi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sl={animationend:zi("Animation","AnimationEnd"),animationiteration:zi("Animation","AnimationIteration"),animationstart:zi("Animation","AnimationStart"),transitionrun:zi("Transition","TransitionRun"),transitionstart:zi("Transition","TransitionStart"),transitioncancel:zi("Transition","TransitionCancel"),transitionend:zi("Transition","TransitionEnd")},Ro={},Nd={};za&&(Nd=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 Ui(e){if(Ro[e])return Ro[e];if(!sl[e])return e;var t=sl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Nd)return Ro[e]=t[n];return e}var xd=Ui("animationend"),wd=Ui("animationiteration"),Ad=Ui("animationstart"),qy=Ui("transitionrun"),Gy=Ui("transitionstart"),$y=Ui("transitioncancel"),Rd=Ui("transitionend"),Od=new Map,Oo="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(" ");Oo.push("scrollEnd");function da(e,t){Od.set(e,t),fa(t,[e])}var Js=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)},ta=[],rl=0,ko=0;function Ws(){for(var e=rl,t=ko=rl=0;t<e;){var n=ta[t];ta[t++]=null;var a=ta[t];ta[t++]=null;var o=ta[t];ta[t++]=null;var c=ta[t];if(ta[t++]=null,a!==null&&o!==null){var h=a.pending;h===null?o.next=o:(o.next=h.next,h.next=o),a.pending=o}c!==0&&kd(n,o,c)}}function er(e,t,n,a){ta[rl++]=e,ta[rl++]=t,ta[rl++]=n,ta[rl++]=a,ko|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Mo(e,t,n,a){return er(e,t,n,a),tr(e)}function Bi(e,t){return er(e,null,null,t),tr(e)}function kd(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.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-Nt(n),e=c.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),c):null}function tr(e){if(50<vs)throw vs=0,Hc=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 Yy(e,t,n,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yn(e,t,n,a){return new Yy(e,t,n,a)}function Co(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ua(e,t){var n=e.alternate;return n===null?(n=Yn(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 Md(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,a,o,c){var h=0;if(a=e,typeof e=="function")Co(e)&&(h=1);else if(typeof e=="string")h=Xv(e,n,ue.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case z:return e=Yn(31,n,t,o),e.elementType=z,e.lanes=c,e;case w:return ji(n.children,o,c,t);case A:h=8,o|=24;break;case U:return e=Yn(12,n,t,o|2),e.elementType=U,e.lanes=c,e;case H:return e=Yn(13,n,t,o),e.elementType=H,e.lanes=c,e;case P:return e=Yn(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 G:h=9;break e;case re:h=11;break e;case le:h=14;break e;case k:h=16,a=null;break e}h=29,n=Error(l(130,e===null?"null":typeof e,"")),a=null}return t=Yn(h,n,t,o),t.elementType=e,t.type=a,t.lanes=c,t}function ji(e,t,n,a){return e=Yn(7,e,a,t),e.lanes=n,e}function Do(e,t,n){return e=Yn(6,e,null,t),e.lanes=n,e}function Cd(e){var t=Yn(18,null,null,0);return t.stateNode=e,t}function Lo(e,t,n){return t=Yn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Dd=new WeakMap;function na(e,t){if(typeof e=="object"&&e!==null){var n=Dd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:rn(t)},Dd.set(e,t),t)}return{value:e,source:t,stack:rn(t)}}var cl=[],ul=0,ar=null,Jl=0,aa=[],ia=0,oi=null,Ta=1,Na="";function Ba(e,t){cl[ul++]=Jl,cl[ul++]=ar,ar=e,Jl=t}function Ld(e,t,n){aa[ia++]=Ta,aa[ia++]=Na,aa[ia++]=oi,oi=e;var a=Ta;e=Na;var o=32-Nt(a)-1;a&=~(1<<o),n+=1;var c=32-Nt(t)+o;if(30<c){var h=o-o%5;c=(a&(1<<h)-1).toString(32),a>>=h,o-=h,Ta=1<<32-Nt(t)+o|n<<o|a,Na=c+e}else Ta=1<<c|n<<o|a,Na=e}function zo(e){e.return!==null&&(Ba(e,1),Ld(e,1,0))}function Uo(e){for(;e===ar;)ar=cl[--ul],cl[ul]=null,Jl=cl[--ul],cl[ul]=null;for(;e===oi;)oi=aa[--ia],aa[ia]=null,Na=aa[--ia],aa[ia]=null,Ta=aa[--ia],aa[ia]=null}function zd(e,t){aa[ia++]=Ta,aa[ia++]=Na,aa[ia++]=oi,Ta=t.id,Na=t.overflow,oi=e}var fn=null,xt=null,at=!1,ci=null,la=!1,Bo=Error(l(519));function ui(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wl(na(t,e)),Bo}function Ud(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Mt]=e,t[en]=a,n){case"dialog":Ve("cancel",t),Ve("close",t);break;case"iframe":case"object":case"embed":Ve("load",t);break;case"video":case"audio":for(n=0;n<_s.length;n++)Ve(_s[n],t);break;case"source":Ve("error",t);break;case"img":case"image":case"link":Ve("error",t),Ve("load",t);break;case"details":Ve("toggle",t);break;case"input":Ve("invalid",t),Da(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ve("invalid",t);break;case"textarea":Ve("invalid",t),Sa(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Wp(t.textContent,n)?(a.popover!=null&&(Ve("beforetoggle",t),Ve("toggle",t)),a.onScroll!=null&&Ve("scroll",t),a.onScrollEnd!=null&&Ve("scrollend",t),a.onClick!=null&&(t.onclick=se),t=!0):t=!1,t||ui(e,!0)}function Bd(e){for(fn=e.return;fn;)switch(fn.tag){case 5:case 31:case 13:la=!1;return;case 27:case 3:la=!0;return;default:fn=fn.return}}function fl(e){if(e!==fn)return!1;if(!at)return Bd(e),at=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||tu(e.type,e.memoizedProps)),n=!n),n&&xt&&ui(e),Bd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));xt=om(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));xt=om(e)}else t===27?(t=xt,Ni(e.type)?(e=su,su=null,xt=e):xt=t):xt=fn?ra(e.stateNode.nextSibling):null;return!0}function Ii(){xt=fn=null,at=!1}function jo(){var e=ci;return e!==null&&(In===null?In=e:In.push.apply(In,e),ci=null),e}function Wl(e){ci===null?ci=[e]:ci.push(e)}var Io=S(null),Hi=null,ja=null;function fi(e,t,n){q(Io,t._currentValue),t._currentValue=n}function Ia(e){e._currentValue=Io.current,D(Io)}function Ho(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function qo(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var E=c;c=o;for(var O=0;O<t.length;O++)if(E.context===t[O]){c.lanes|=n,E=c.alternate,E!==null&&(E.lanes|=n),Ho(c.return,n,e),a||(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),Ho(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,a){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;$n(o.pendingProps.value,h.value)||(e!==null?e.push(E):e=[E])}}else if(o===me.current){if(h=o.alternate,h===null)throw Error(l(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ws):e=[ws])}o=o.return}e!==null&&qo(t,e,n,a),t.flags|=262144}function ir(e){for(e=e.firstContext;e!==null;){if(!$n(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qi(e){Hi=e,ja=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function dn(e){return jd(Hi,e)}function lr(e,t){return Hi===null&&qi(e),jd(e,t)}function jd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ja===null){if(e===null)throw Error(l(308));ja=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ja=ja.next=t;return n}var Fy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Ky=s.unstable_scheduleCallback,Py=s.unstable_NormalPriority,$t={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Go(){return{controller:new Fy,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&Ky(Py,function(){e.controller.abort()})}var ts=null,$o=0,hl=0,pl=null;function Zy(e,t){if(ts===null){var n=ts=[];$o=0,hl=Kc(),pl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return $o++,t.then(Id,Id),t}function Id(){if(--$o===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 Xy(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var Hd=I.S;I.S=function(e,t){Tp=Ke(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Zy(e,t),Hd!==null&&Hd(e,t)};var Gi=S(null);function Yo(){var e=Gi.current;return e!==null?e:_t.pooledCache}function sr(e,t){t===null?q(Gi,Gi.current):q(Gi,t.pool)}function qd(){var e=Yo();return e===null?null:{parent:$t._currentValue,pool:e}}var ml=Error(l(460)),Fo=Error(l(474)),rr=Error(l(542)),or={then:function(){}};function Gd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $d(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(se,se),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fd(e),e;default:if(typeof t.status=="string")t.then(se,se);else{if(e=_t,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fd(e),e}throw Yi=t,ml}}function $i(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Yi=n,ml):n}}var Yi=null;function Yd(){if(Yi===null)throw Error(l(459));var e=Yi;return Yi=null,e}function Fd(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=[]),$d(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 Kd(e){function t(j,M){if(e){var $=j.deletions;$===null?(j.deletions=[M],j.flags|=16):$.push(M)}}function n(j,M){if(!e)return null;for(;M!==null;)t(j,M),M=M.sibling;return null}function a(j){for(var M=new Map;j!==null;)j.key!==null?M.set(j.key,j):M.set(j.index,j),j=j.sibling;return M}function o(j,M){return j=Ua(j,M),j.index=0,j.sibling=null,j}function c(j,M,$){return j.index=$,e?($=j.alternate,$!==null?($=$.index,$<M?(j.flags|=67108866,M):$):(j.flags|=67108866,M)):(j.flags|=1048576,M)}function h(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function E(j,M,$,te){return M===null||M.tag!==6?(M=Do($,j.mode,te),M.return=j,M):(M=o(M,$),M.return=j,M)}function O(j,M,$,te){var De=$.type;return De===w?W(j,M,$.props.children,te,$.key):M!==null&&(M.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===k&&$i(De)===M.type)?(M=o(M,$.props),as(M,$),M.return=j,M):(M=nr($.type,$.key,$.props,null,j.mode,te),as(M,$),M.return=j,M)}function Y(j,M,$,te){return M===null||M.tag!==4||M.stateNode.containerInfo!==$.containerInfo||M.stateNode.implementation!==$.implementation?(M=Lo($,j.mode,te),M.return=j,M):(M=o(M,$.children||[]),M.return=j,M)}function W(j,M,$,te,De){return M===null||M.tag!==7?(M=ji($,j.mode,te,De),M.return=j,M):(M=o(M,$),M.return=j,M)}function ie(j,M,$){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Do(""+M,j.mode,$),M.return=j,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return $=nr(M.type,M.key,M.props,null,j.mode,$),as($,M),$.return=j,$;case T:return M=Lo(M,j.mode,$),M.return=j,M;case k:return M=$i(M),ie(j,M,$)}if(he(M)||fe(M))return M=ji(M,j.mode,$,null),M.return=j,M;if(typeof M.then=="function")return ie(j,cr(M),$);if(M.$$typeof===L)return ie(j,lr(j,M),$);ur(j,M)}return null}function F(j,M,$,te){var De=M!==null?M.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return De!==null?null:E(j,M,""+$,te);if(typeof $=="object"&&$!==null){switch($.$$typeof){case x:return $.key===De?O(j,M,$,te):null;case T:return $.key===De?Y(j,M,$,te):null;case k:return $=$i($),F(j,M,$,te)}if(he($)||fe($))return De!==null?null:W(j,M,$,te,null);if(typeof $.then=="function")return F(j,M,cr($),te);if($.$$typeof===L)return F(j,M,lr(j,$),te);ur(j,$)}return null}function Z(j,M,$,te,De){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return j=j.get($)||null,E(M,j,""+te,De);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case x:return j=j.get(te.key===null?$:te.key)||null,O(M,j,te,De);case T:return j=j.get(te.key===null?$:te.key)||null,Y(M,j,te,De);case k:return te=$i(te),Z(j,M,$,te,De)}if(he(te)||fe(te))return j=j.get($)||null,W(M,j,te,De,null);if(typeof te.then=="function")return Z(j,M,$,cr(te),De);if(te.$$typeof===L)return Z(j,M,$,lr(M,te),De);ur(M,te)}return null}function Te(j,M,$,te){for(var De=null,ot=null,Re=M,Ye=M=0,tt=null;Re!==null&&Ye<$.length;Ye++){Re.index>Ye?(tt=Re,Re=null):tt=Re.sibling;var ct=F(j,Re,$[Ye],te);if(ct===null){Re===null&&(Re=tt);break}e&&Re&&ct.alternate===null&&t(j,Re),M=c(ct,M,Ye),ot===null?De=ct:ot.sibling=ct,ot=ct,Re=tt}if(Ye===$.length)return n(j,Re),at&&Ba(j,Ye),De;if(Re===null){for(;Ye<$.length;Ye++)Re=ie(j,$[Ye],te),Re!==null&&(M=c(Re,M,Ye),ot===null?De=Re:ot.sibling=Re,ot=Re);return at&&Ba(j,Ye),De}for(Re=a(Re);Ye<$.length;Ye++)tt=Z(Re,j,Ye,$[Ye],te),tt!==null&&(e&&tt.alternate!==null&&Re.delete(tt.key===null?Ye:tt.key),M=c(tt,M,Ye),ot===null?De=tt:ot.sibling=tt,ot=tt);return e&&Re.forEach(function(Oi){return t(j,Oi)}),at&&Ba(j,Ye),De}function Ue(j,M,$,te){if($==null)throw Error(l(151));for(var De=null,ot=null,Re=M,Ye=M=0,tt=null,ct=$.next();Re!==null&&!ct.done;Ye++,ct=$.next()){Re.index>Ye?(tt=Re,Re=null):tt=Re.sibling;var Oi=F(j,Re,ct.value,te);if(Oi===null){Re===null&&(Re=tt);break}e&&Re&&Oi.alternate===null&&t(j,Re),M=c(Oi,M,Ye),ot===null?De=Oi:ot.sibling=Oi,ot=Oi,Re=tt}if(ct.done)return n(j,Re),at&&Ba(j,Ye),De;if(Re===null){for(;!ct.done;Ye++,ct=$.next())ct=ie(j,ct.value,te),ct!==null&&(M=c(ct,M,Ye),ot===null?De=ct:ot.sibling=ct,ot=ct);return at&&Ba(j,Ye),De}for(Re=a(Re);!ct.done;Ye++,ct=$.next())ct=Z(Re,j,Ye,ct.value,te),ct!==null&&(e&&ct.alternate!==null&&Re.delete(ct.key===null?Ye:ct.key),M=c(ct,M,Ye),ot===null?De=ct:ot.sibling=ct,ot=ct);return e&&Re.forEach(function(sE){return t(j,sE)}),at&&Ba(j,Ye),De}function vt(j,M,$,te){if(typeof $=="object"&&$!==null&&$.type===w&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case x:e:{for(var De=$.key;M!==null;){if(M.key===De){if(De=$.type,De===w){if(M.tag===7){n(j,M.sibling),te=o(M,$.props.children),te.return=j,j=te;break e}}else if(M.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===k&&$i(De)===M.type){n(j,M.sibling),te=o(M,$.props),as(te,$),te.return=j,j=te;break e}n(j,M);break}else t(j,M);M=M.sibling}$.type===w?(te=ji($.props.children,j.mode,te,$.key),te.return=j,j=te):(te=nr($.type,$.key,$.props,null,j.mode,te),as(te,$),te.return=j,j=te)}return h(j);case T:e:{for(De=$.key;M!==null;){if(M.key===De)if(M.tag===4&&M.stateNode.containerInfo===$.containerInfo&&M.stateNode.implementation===$.implementation){n(j,M.sibling),te=o(M,$.children||[]),te.return=j,j=te;break e}else{n(j,M);break}else t(j,M);M=M.sibling}te=Lo($,j.mode,te),te.return=j,j=te}return h(j);case k:return $=$i($),vt(j,M,$,te)}if(he($))return Te(j,M,$,te);if(fe($)){if(De=fe($),typeof De!="function")throw Error(l(150));return $=De.call($),Ue(j,M,$,te)}if(typeof $.then=="function")return vt(j,M,cr($),te);if($.$$typeof===L)return vt(j,M,lr(j,$),te);ur(j,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,M!==null&&M.tag===6?(n(j,M.sibling),te=o(M,$),te.return=j,j=te):(n(j,M),te=Do($,j.mode,te),te.return=j,j=te),h(j)):n(j,M)}return function(j,M,$,te){try{ns=0;var De=vt(j,M,$,te);return gl=null,De}catch(Re){if(Re===ml||Re===rr)throw Re;var ot=Yn(29,Re,null,j.mode);return ot.lanes=te,ot.return=j,ot}finally{}}}var Fi=Kd(!0),Pd=Kd(!1),di=!1;function Ko(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Po(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 hi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function pi(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ut&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=tr(e),kd(e,null,n),t}return er(e,a,t,n),tr(e)}function is(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ze(e,n)}}function Zo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){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:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Xo=!1;function ls(){if(Xo){var e=pl;if(e!==null)throw e}}function ss(e,t,n,a){Xo=!1;var o=e.updateQueue;di=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var O=E,Y=O.next;O.next=null,h===null?c=Y:h.next=Y,h=O;var W=e.alternate;W!==null&&(W=W.updateQueue,E=W.lastBaseUpdate,E!==h&&(E===null?W.firstBaseUpdate=Y:E.next=Y,W.lastBaseUpdate=O))}if(c!==null){var ie=o.baseState;h=0,W=Y=O=null,E=c;do{var F=E.lane&-536870913,Z=F!==E.lane;if(Z?(et&F)===F:(a&F)===F){F!==0&&F===hl&&(Xo=!0),W!==null&&(W=W.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var Te=e,Ue=E;F=t;var vt=n;switch(Ue.tag){case 1:if(Te=Ue.payload,typeof Te=="function"){ie=Te.call(vt,ie,F);break e}ie=Te;break e;case 3:Te.flags=Te.flags&-65537|128;case 0:if(Te=Ue.payload,F=typeof Te=="function"?Te.call(vt,ie,F):Te,F==null)break e;ie=v({},ie,F);break e;case 2:di=!0}}F=E.callback,F!==null&&(e.flags|=64,Z&&(e.flags|=8192),Z=o.callbacks,Z===null?o.callbacks=[F]:Z.push(F))}else Z={lane:F,tag:E.tag,payload:E.payload,callback:E.callback,next:null},W===null?(Y=W=Z,O=ie):W=W.next=Z,h|=F;if(E=E.next,E===null){if(E=o.shared.pending,E===null)break;Z=E,E=Z.next,Z.next=null,o.lastBaseUpdate=Z,o.shared.pending=null}}while(!0);W===null&&(O=ie),o.baseState=O,o.firstBaseUpdate=Y,o.lastBaseUpdate=W,c===null&&(o.shared.lanes=0),vi|=h,e.lanes=h,e.memoizedState=ie}}function Zd(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function Xd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Zd(n[e],t)}var bl=S(null),fr=S(0);function Qd(e,t){e=Za,q(fr,e),q(bl,t),Za=e|t.baseLanes}function Qo(){q(fr,Za),q(bl,bl.current)}function Vo(){Za=fr.current,D(bl),D(fr)}var Fn=S(null),sa=null;function mi(e){var t=e.alternate;q(jt,jt.current&1),q(Fn,e),sa===null&&(t===null||bl.current!==null||t.memoizedState!==null)&&(sa=e)}function Jo(e){q(jt,jt.current),q(Fn,e),sa===null&&(sa=e)}function Vd(e){e.tag===22?(q(jt,jt.current),q(Fn,e),sa===null&&(sa=e)):gi()}function gi(){q(jt,jt.current),q(Fn,Fn.current)}function Kn(e){D(Fn),sa===e&&(sa=null),D(jt)}var jt=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||iu(n)||lu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ha=0,qe=null,bt=null,Yt=null,hr=!1,yl=!1,Ki=!1,pr=0,rs=0,vl=null,Qy=0;function Dt(){throw Error(l(321))}function Wo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$n(e[n],t[n]))return!1;return!0}function ec(e,t,n,a,o,c){return Ha=c,qe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Lh:mc,Ki=!1,c=n(a,o),Ki=!1,yl&&(c=Wd(t,n,a,o)),Jd(e),c}function Jd(e){I.H=us;var t=bt!==null&&bt.next!==null;if(Ha=0,Yt=bt=qe=null,hr=!1,rs=0,vl=null,t)throw Error(l(300));e===null||Ft||(e=e.dependencies,e!==null&&ir(e)&&(Ft=!0))}function Wd(e,t,n,a){qe=e;var o=0;do{if(yl&&(vl=null),rs=0,yl=!1,25<=o)throw Error(l(301));if(o+=1,Yt=bt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}I.H=zh,c=t(n,a)}while(yl);return c}function Vy(){var e=I.H,t=e.useState()[0];return t=typeof t.then=="function"?os(t):t,e=e.useState()[0],(bt!==null?bt.memoizedState:null)!==e&&(qe.flags|=1024),t}function tc(){var e=pr!==0;return pr=0,e}function nc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ac(e){if(hr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hr=!1}Ha=0,Yt=bt=qe=null,yl=!1,rs=pr=0,vl=null}function Rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?qe.memoizedState=Yt=e:Yt=Yt.next=e,Yt}function It(){if(bt===null){var e=qe.alternate;e=e!==null?e.memoizedState:null}else e=bt.next;var t=Yt===null?qe.memoizedState:Yt.next;if(t!==null)Yt=t,bt=e;else{if(e===null)throw qe.alternate===null?Error(l(467)):Error(l(310));bt=e,e={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},Yt===null?qe.memoizedState=Yt=e:Yt=Yt.next=e}return Yt}function mr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=rs;return rs+=1,vl===null&&(vl=[]),e=$d(vl,e,t),t=qe,(Yt===null?t.memoizedState:Yt.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Lh:mc),e}function gr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===L)return dn(e)}throw Error(l(438,String(e)))}function ic(e){var t=null,n=qe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=qe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=mr(),qe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=Q;return t.index++,n}function qa(e,t){return typeof t=="function"?t(e):t}function br(e){var t=It();return lc(t,bt,e)}function lc(e,t,n){var a=e.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=n;var o=e.baseQueue,c=a.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,a.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var E=h=null,O=null,Y=t,W=!1;do{var ie=Y.lane&-536870913;if(ie!==Y.lane?(et&ie)===ie:(Ha&ie)===ie){var F=Y.revertLane;if(F===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),ie===hl&&(W=!0);else if((Ha&F)===F){Y=Y.next,F===hl&&(W=!0);continue}else ie={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},O===null?(E=O=ie,h=c):O=O.next=ie,qe.lanes|=F,vi|=F;ie=Y.action,Ki&&n(c,ie),c=Y.hasEagerState?Y.eagerState:n(c,ie)}else F={lane:ie,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},O===null?(E=O=F,h=c):O=O.next=F,qe.lanes|=ie,vi|=ie;Y=Y.next}while(Y!==null&&Y!==t);if(O===null?h=c:O.next=E,!$n(c,e.memoizedState)&&(Ft=!0,W&&(n=pl,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=O,a.lastRenderedState=c}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function sc(e){var t=It(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var a=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);$n(c,t.memoizedState)||(Ft=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function eh(e,t,n){var a=qe,o=It(),c=at;if(c){if(n===void 0)throw Error(l(407));n=n()}else n=t();var h=!$n((bt||o).memoizedState,n);if(h&&(o.memoizedState=n,Ft=!0),o=o.queue,cc(ah.bind(null,a,o,e),[e]),o.getSnapshot!==t||h||Yt!==null&&Yt.memoizedState.tag&1){if(a.flags|=2048,El(9,{destroy:void 0},nh.bind(null,a,o,n,t),null),_t===null)throw Error(l(349));c||(Ha&127)!==0||th(a,t,n)}return n}function th(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=qe.updateQueue,t===null?(t=mr(),qe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function nh(e,t,n,a){t.value=n,t.getSnapshot=a,ih(t)&&lh(e)}function ah(e,t,n){return n(function(){ih(t)&&lh(e)})}function ih(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$n(e,n)}catch{return!0}}function lh(e){var t=Bi(e,2);t!==null&&Hn(t,e,2)}function rc(e){var t=Rn();if(typeof e=="function"){var n=e;if(e=n(),Ki){Wt(!0);try{n()}finally{Wt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:e},t}function sh(e,t,n,a){return e.baseState=n,lc(e,bt,typeof a=="function"?a:qa)}function Jy(e,t,n,a,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)}};I.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,rh(t,c)):(c.next=n.next,t.pending=n.next=c)}}function rh(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var c=I.T,h={};I.T=h;try{var E=n(o,a),O=I.S;O!==null&&O(h,E),oh(e,t,E)}catch(Y){oc(e,t,Y)}finally{c!==null&&h.types!==null&&(c.types=h.types),I.T=c}}else try{c=n(o,a),oh(e,t,c)}catch(Y){oc(e,t,Y)}}function oh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){ch(e,t,a)},function(a){return oc(e,t,a)}):ch(e,t,n)}function ch(e,t,n){t.status="fulfilled",t.value=n,uh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,rh(e,n)))}function oc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,uh(t),t=t.next;while(t!==a)}e.action=null}function uh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function fh(e,t){return t}function dh(e,t){if(at){var n=_t.formState;if(n!==null){e:{var a=qe;if(at){if(xt){t:{for(var o=xt,c=la;o.nodeType!==8;){if(!c){o=null;break t}if(o=ra(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){xt=ra(o.nextSibling),a=o.data==="F!";break e}}ui(a)}a=!1}a&&(t=n[0])}}return n=Rn(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fh,lastRenderedState:t},n.queue=a,n=Mh.bind(null,qe,a),a.dispatch=n,a=rc(!1),c=pc.bind(null,qe,!1,a.queue),a=Rn(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=Jy.bind(null,qe,o,c,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function hh(e){var t=It();return ph(t,bt,e)}function ph(e,t,n){if(t=lc(e,t,fh)[0],e=br(qa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=os(t)}catch(h){throw h===ml?rr:h}else a=t;t=It();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(qe.flags|=2048,El(9,{destroy:void 0},Wy.bind(null,o,n),null)),[a,c,e]}function Wy(e,t){e.action=t}function mh(e){var t=It(),n=bt;if(n!==null)return ph(t,n,e);It(),t=t.memoizedState,n=It();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function El(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=qe.updateQueue,t===null&&(t=mr(),qe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function gh(){return It().memoizedState}function yr(e,t,n,a){var o=Rn();qe.flags|=e,o.memoizedState=El(1|t,{destroy:void 0},n,a===void 0?null:a)}function vr(e,t,n,a){var o=It();a=a===void 0?null:a;var c=o.memoizedState.inst;bt!==null&&a!==null&&Wo(a,bt.memoizedState.deps)?o.memoizedState=El(t,c,n,a):(qe.flags|=e,o.memoizedState=El(1|t,c,n,a))}function bh(e,t){yr(8390656,8,e,t)}function cc(e,t){vr(2048,8,e,t)}function ev(e){qe.flags|=4;var t=qe.updateQueue;if(t===null)t=mr(),qe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function yh(e){var t=It().memoizedState;return ev({ref:t,nextImpl:e}),function(){if((ut&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function vh(e,t){return vr(4,2,e,t)}function Eh(e,t){return vr(4,4,e,t)}function _h(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 Sh(e,t,n){n=n!=null?n.concat([e]):null,vr(4,4,_h.bind(null,t,e),n)}function uc(){}function Th(e,t){var n=It();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Wo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Nh(e,t){var n=It();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Wo(t,a[1]))return a[0];if(a=e(),Ki){Wt(!0);try{e()}finally{Wt(!1)}}return n.memoizedState=[a,t],a}function fc(e,t,n){return n===void 0||(Ha&1073741824)!==0&&(et&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=xp(),qe.lanes|=e,vi|=e,n)}function xh(e,t,n,a){return $n(n,t)?n:bl.current!==null?(e=fc(e,n,a),$n(e,t)||(Ft=!0),e):(Ha&42)===0||(Ha&1073741824)!==0&&(et&261930)===0?(Ft=!0,e.memoizedState=n):(e=xp(),qe.lanes|=e,vi|=e,t)}function wh(e,t,n,a,o){var c=ne.p;ne.p=c!==0&&8>c?c:8;var h=I.T,E={};I.T=E,pc(e,!1,t,n);try{var O=o(),Y=I.S;if(Y!==null&&Y(E,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var W=Xy(O,a);cs(e,t,W,Xn(e))}else cs(e,t,a,Xn(e))}catch(ie){cs(e,t,{then:function(){},status:"rejected",reason:ie},Xn())}finally{ne.p=c,h!==null&&E.types!==null&&(h.types=E.types),I.T=h}}function tv(){}function dc(e,t,n,a){if(e.tag!==5)throw Error(l(476));var o=Ah(e).queue;wh(e,o,t,oe,n===null?tv:function(){return Rh(e),n(a)})}function Ah(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Rh(e){var t=Ah(e);t.next===null&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},Xn())}function hc(){return dn(ws)}function Oh(){return It().memoizedState}function kh(){return It().memoizedState}function nv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Xn();e=hi(n);var a=pi(t,e,n);a!==null&&(Hn(a,t,n),is(a,t,n)),t={cache:Go()},e.payload=t;return}t=t.return}}function av(e,t,n){var a=Xn();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Er(e)?Ch(t,n):(n=Mo(e,t,n,a),n!==null&&(Hn(n,e,a),Dh(n,t,a)))}function Mh(e,t,n){var a=Xn();cs(e,t,n,a)}function cs(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Er(e))Ch(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,$n(E,h))return er(e,t,o,0),_t===null&&Ws(),!1}catch{}finally{}if(n=Mo(e,t,o,a),n!==null)return Hn(n,e,a),Dh(n,t,a),!0}return!1}function pc(e,t,n,a){if(a={lane:2,revertLane:Kc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Er(e)){if(t)throw Error(l(479))}else t=Mo(e,n,a,2),t!==null&&Hn(t,e,2)}function Er(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function Ch(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 Dh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ze(e,n)}}var us={readContext:dn,use:gr,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useLayoutEffect:Dt,useInsertionEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useSyncExternalStore:Dt,useId:Dt,useHostTransitionStatus:Dt,useFormState:Dt,useActionState:Dt,useOptimistic:Dt,useMemoCache:Dt,useCacheRefresh:Dt};us.useEffectEvent=Dt;var Lh={readContext:dn,use:gr,useCallback:function(e,t){return Rn().memoizedState=[e,t===void 0?null:t],e},useContext:dn,useEffect:bh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,yr(4194308,4,_h.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=Rn();t=t===void 0?null:t;var a=e();if(Ki){Wt(!0);try{e()}finally{Wt(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Rn();if(n!==void 0){var o=n(t);if(Ki){Wt(!0);try{n(t)}finally{Wt(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=av.bind(null,qe,e),[a.memoizedState,e]},useRef:function(e){var t=Rn();return e={current:e},t.memoizedState=e},useState:function(e){e=rc(e);var t=e.queue,n=Mh.bind(null,qe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:uc,useDeferredValue:function(e,t){var n=Rn();return fc(n,e,t)},useTransition:function(){var e=rc(!1);return e=wh.bind(null,qe,e.queue,!0,!1),Rn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=qe,o=Rn();if(at){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),_t===null)throw Error(l(349));(et&127)!==0||th(a,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,bh(ah.bind(null,a,c,e),[e]),a.flags|=2048,El(9,{destroy:void 0},nh.bind(null,a,c,n,t),null),n},useId:function(){var e=Rn(),t=_t.identifierPrefix;if(at){var n=Na,a=Ta;n=(a&~(1<<32-Nt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=pr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Qy++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:hc,useFormState:dh,useActionState:dh,useOptimistic:function(e){var t=Rn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=pc.bind(null,qe,!0,n),n.dispatch=t,[e,t]},useMemoCache:ic,useCacheRefresh:function(){return Rn().memoizedState=nv.bind(null,qe)},useEffectEvent:function(e){var t=Rn(),n={impl:e};return t.memoizedState=n,function(){if((ut&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}},mc={readContext:dn,use:gr,useCallback:Th,useContext:dn,useEffect:cc,useImperativeHandle:Sh,useInsertionEffect:vh,useLayoutEffect:Eh,useMemo:Nh,useReducer:br,useRef:gh,useState:function(){return br(qa)},useDebugValue:uc,useDeferredValue:function(e,t){var n=It();return xh(n,bt.memoizedState,e,t)},useTransition:function(){var e=br(qa)[0],t=It().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:eh,useId:Oh,useHostTransitionStatus:hc,useFormState:hh,useActionState:hh,useOptimistic:function(e,t){var n=It();return sh(n,bt,e,t)},useMemoCache:ic,useCacheRefresh:kh};mc.useEffectEvent=yh;var zh={readContext:dn,use:gr,useCallback:Th,useContext:dn,useEffect:cc,useImperativeHandle:Sh,useInsertionEffect:vh,useLayoutEffect:Eh,useMemo:Nh,useReducer:sc,useRef:gh,useState:function(){return sc(qa)},useDebugValue:uc,useDeferredValue:function(e,t){var n=It();return bt===null?fc(n,e,t):xh(n,bt.memoizedState,e,t)},useTransition:function(){var e=sc(qa)[0],t=It().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:eh,useId:Oh,useHostTransitionStatus:hc,useFormState:mh,useActionState:mh,useOptimistic:function(e,t){var n=It();return bt!==null?sh(n,bt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ic,useCacheRefresh:kh};zh.useEffectEvent=yh;function gc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Xn(),o=hi(a);o.payload=t,n!=null&&(o.callback=n),t=pi(e,o,a),t!==null&&(Hn(t,e,a),is(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Xn(),o=hi(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=pi(e,o,a),t!==null&&(Hn(t,e,a),is(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xn(),a=hi(n);a.tag=2,t!=null&&(a.callback=t),t=pi(e,a,n),t!==null&&(Hn(t,e,n),is(t,e,n))}};function Uh(e,t,n,a,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,h):t.prototype&&t.prototype.isPureReactComponent?!Ql(n,a)||!Ql(o,c):!0}function Bh(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&bc.enqueueReplaceState(t,t.state,null)}function Pi(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}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 jh(e){Js(e)}function Ih(e){console.error(e)}function Hh(e){Js(e)}function _r(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function qh(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function yc(e,t,n){return n=hi(n),n.tag=3,n.payload={element:null},n.callback=function(){_r(e,t)},n}function Gh(e){return e=hi(e),e.tag=3,e}function $h(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=a.value;e.payload=function(){return o(c)},e.callback=function(){qh(t,n,a)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){qh(t,n,a),typeof o!="function"&&(Ei===null?Ei=new Set([this]):Ei.add(this));var E=a.stack;this.componentDidCatch(a.value,{componentStack:E!==null?E:""})})}function iv(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&dl(t,n,o,!0),n=Fn.current,n!==null){switch(n.tag){case 31:case 13:return sa===null?Dr():n.alternate===null&&Lt===0&&(Lt=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===or?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),$c(e,a,o)),!1;case 22:return n.flags|=65536,a===or?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),$c(e,a,o)),!1}throw Error(l(435,n.tag))}return $c(e,a,o),Dr(),!1}if(at)return t=Fn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==Bo&&(e=Error(l(422),{cause:a}),Wl(na(e,n)))):(a!==Bo&&(t=Error(l(423),{cause:a}),Wl(na(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=na(a,n),o=yc(e.stateNode,a,o),Zo(e,o),Lt!==4&&(Lt=2)),!1;var c=Error(l(520),{cause:a});if(c=na(c,n),ys===null?ys=[c]:ys.push(c),Lt!==4&&(Lt=2),t===null)return!0;a=na(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=yc(n.stateNode,a,e),Zo(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"&&(Ei===null||!Ei.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Gh(o),$h(o,e,n,a),Zo(n,o),!1}n=n.return}while(n!==null);return!1}var vc=Error(l(461)),Ft=!1;function hn(e,t,n,a){t.child=e===null?Pd(t,null,n,a):Fi(t,e.child,n,a)}function Yh(e,t,n,a,o){n=n.render;var c=t.ref;if("ref"in a){var h={};for(var E in a)E!=="ref"&&(h[E]=a[E])}else h=a;return qi(t),a=ec(e,t,n,h,c,o),E=tc(),e!==null&&!Ft?(nc(e,t,o),Ga(e,t,o)):(at&&E&&zo(t),t.flags|=1,hn(e,t,a,o),t.child)}function Fh(e,t,n,a,o){if(e===null){var c=n.type;return typeof c=="function"&&!Co(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Kh(e,t,c,a,o)):(e=nr(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Ac(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ql,n(h,a)&&e.ref===t.ref)return Ga(e,t,o)}return t.flags|=1,e=Ua(c,a),e.ref=t.ref,e.return=t,t.child=e}function Kh(e,t,n,a,o){if(e!==null){var c=e.memoizedProps;if(Ql(c,a)&&e.ref===t.ref)if(Ft=!1,t.pendingProps=a=c,Ac(e,o))(e.flags&131072)!==0&&(Ft=!0);else return t.lanes=e.lanes,Ga(e,t,o)}return Ec(e,t,n,a,o)}function Ph(e,t,n,a){var o=a.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~c}else a=0,t.child=null;return Zh(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&sr(t,c!==null?c.cachePool:null),c!==null?Qd(t,c):Qo(),Vd(t);else return a=t.lanes=536870912,Zh(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(sr(t,c.cachePool),Qd(t,c),gi(),t.memoizedState=null):(e!==null&&sr(t,null),Qo(),gi());return hn(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 Zh(e,t,n,a,o){var c=Yo();return c=c===null?null:{parent:$t._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&sr(t,null),Qo(),Vd(t),e!==null&&dl(e,t,a,!0),t.childLanes=o,null}function Sr(e,t){return t=Nr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Xh(e,t,n){return Fi(t,e.child,null,n),e=Sr(t,t.pendingProps),e.flags|=2,Kn(t),t.memoizedState=null,e}function lv(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(at){if(a.mode==="hidden")return e=Sr(t,a),t.lanes=536870912,fs(null,e);if(Jo(t),(e=xt)?(e=rm(e,la),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:oi!==null?{id:Ta,overflow:Na}:null,retryLane:536870912,hydrationErrors:null},n=Cd(e),n.return=t,t.child=n,fn=t,xt=null)):e=null,e===null)throw ui(t);return t.lanes=536870912,null}return Sr(t,a)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(Jo(t),o)if(t.flags&256)t.flags&=-257,t=Xh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(Ft||dl(e,t,n,!1),o=(n&e.childLanes)!==0,Ft||o){if(a=_t,a!==null&&(h=Rt(a,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,Bi(e,h),Hn(a,e,h),vc;Dr(),t=Xh(e,t,n)}else e=c.treeContext,xt=ra(h.nextSibling),fn=t,at=!0,ci=null,la=!1,e!==null&&zd(t,e),t=Sr(t,a),t.flags|=4096;return t}return e=Ua(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tr(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 Ec(e,t,n,a,o){return qi(t),n=ec(e,t,n,a,void 0,o),a=tc(),e!==null&&!Ft?(nc(e,t,o),Ga(e,t,o)):(at&&a&&zo(t),t.flags|=1,hn(e,t,n,o),t.child)}function Qh(e,t,n,a,o,c){return qi(t),t.updateQueue=null,n=Wd(t,a,n,o),Jd(e),a=tc(),e!==null&&!Ft?(nc(e,t,c),Ga(e,t,c)):(at&&a&&zo(t),t.flags|=1,hn(e,t,n,c),t.child)}function Vh(e,t,n,a,o){if(qi(t),t.stateNode===null){var c=ol,h=n.contextType;typeof h=="object"&&h!==null&&(c=dn(h)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=bc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},Ko(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?dn(h):ol,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(gc(t,n,h,a),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&&bc.enqueueReplaceState(c,c.state,null),ss(t,a,c,o),ls(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var E=t.memoizedProps,O=Pi(n,E);c.props=O;var Y=c.context,W=n.contextType;h=ol,typeof W=="object"&&W!==null&&(h=dn(W));var ie=n.getDerivedStateFromProps;W=typeof ie=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,W||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||Y!==h)&&Bh(t,c,a,h),di=!1;var F=t.memoizedState;c.state=F,ss(t,a,c,o),ls(),Y=t.memoizedState,E||F!==Y||di?(typeof ie=="function"&&(gc(t,n,ie,a),Y=t.memoizedState),(O=di||Uh(t,n,O,a,F,Y,h))?(W||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=a,t.memoizedState=Y),c.props=a,c.state=Y,c.context=h,a=O):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,Po(e,t),h=t.memoizedProps,W=Pi(n,h),c.props=W,ie=t.pendingProps,F=c.context,Y=n.contextType,O=ol,typeof Y=="object"&&Y!==null&&(O=dn(Y)),E=n.getDerivedStateFromProps,(Y=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==ie||F!==O)&&Bh(t,c,a,O),di=!1,F=t.memoizedState,c.state=F,ss(t,a,c,o),ls();var Z=t.memoizedState;h!==ie||F!==Z||di||e!==null&&e.dependencies!==null&&ir(e.dependencies)?(typeof E=="function"&&(gc(t,n,E,a),Z=t.memoizedState),(W=di||Uh(t,n,W,a,F,Z,O)||e!==null&&e.dependencies!==null&&ir(e.dependencies))?(Y||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,Z,O),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,Z,O)),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=a,t.memoizedState=Z),c.props=a,c.state=Z,c.context=O,a=W):(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),a=!1)}return c=a,Tr(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=Fi(t,e.child,null,o),t.child=Fi(t,null,n,o)):hn(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Ga(e,t,o),e}function Jh(e,t,n,a){return Ii(),t.flags|=256,hn(e,t,n,a),t.child}var _c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sc(e){return{baseLanes:e,cachePool:qd()}}function Tc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zn),e}function Wh(e,t,n){var a=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(jt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(at){if(o?mi(t):gi(),(e=xt)?(e=rm(e,la),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:oi!==null?{id:Ta,overflow:Na}:null,retryLane:536870912,hydrationErrors:null},n=Cd(e),n.return=t,t.child=n,fn=t,xt=null)):e=null,e===null)throw ui(t);return lu(e)?t.lanes=32:t.lanes=536870912,null}var E=a.children;return a=a.fallback,o?(gi(),o=t.mode,E=Nr({mode:"hidden",children:E},o),a=ji(a,o,n,null),E.return=t,a.return=t,E.sibling=a,t.child=E,a=t.child,a.memoizedState=Sc(n),a.childLanes=Tc(e,h,n),t.memoizedState=_c,fs(null,a)):(mi(t),Nc(t,E))}var O=e.memoizedState;if(O!==null&&(E=O.dehydrated,E!==null)){if(c)t.flags&256?(mi(t),t.flags&=-257,t=xc(e,t,n)):t.memoizedState!==null?(gi(),t.child=e.child,t.flags|=128,t=null):(gi(),E=a.fallback,o=t.mode,a=Nr({mode:"visible",children:a.children},o),E=ji(E,o,n,null),E.flags|=2,a.return=t,E.return=t,a.sibling=E,t.child=a,Fi(t,e.child,null,n),a=t.child,a.memoizedState=Sc(n),a.childLanes=Tc(e,h,n),t.memoizedState=_c,t=fs(null,a));else if(mi(t),lu(E)){if(h=E.nextSibling&&E.nextSibling.dataset,h)var Y=h.dgst;h=Y,a=Error(l(419)),a.stack="",a.digest=h,Wl({value:a,source:null,stack:null}),t=xc(e,t,n)}else if(Ft||dl(e,t,n,!1),h=(n&e.childLanes)!==0,Ft||h){if(h=_t,h!==null&&(a=Rt(h,n),a!==0&&a!==O.retryLane))throw O.retryLane=a,Bi(e,a),Hn(h,e,a),vc;iu(E)||Dr(),t=xc(e,t,n)}else iu(E)?(t.flags|=192,t.child=e.child,t=null):(e=O.treeContext,xt=ra(E.nextSibling),fn=t,at=!0,ci=null,la=!1,e!==null&&zd(t,e),t=Nc(t,a.children),t.flags|=4096);return t}return o?(gi(),E=a.fallback,o=t.mode,O=e.child,Y=O.sibling,a=Ua(O,{mode:"hidden",children:a.children}),a.subtreeFlags=O.subtreeFlags&65011712,Y!==null?E=Ua(Y,E):(E=ji(E,o,n,null),E.flags|=2),E.return=t,a.return=t,a.sibling=E,t.child=a,fs(null,a),a=t.child,E=e.child.memoizedState,E===null?E=Sc(n):(o=E.cachePool,o!==null?(O=$t._currentValue,o=o.parent!==O?{parent:O,pool:O}:o):o=qd(),E={baseLanes:E.baseLanes|n,cachePool:o}),a.memoizedState=E,a.childLanes=Tc(e,h,n),t.memoizedState=_c,fs(e.child,a)):(mi(t),n=e.child,e=n.sibling,n=Ua(n,{mode:"visible",children:a.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 Nc(e,t){return t=Nr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Nr(e,t){return e=Yn(22,e,null,t),e.lanes=0,e}function xc(e,t,n){return Fi(t,e.child,null,n),e=Nc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ep(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Ho(e.return,t,n)}function wc(e,t,n,a,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=n,h.tailMode=o,h.treeForkCount=c)}function tp(e,t,n){var a=t.pendingProps,o=a.revealOrder,c=a.tail;a=a.children;var h=jt.current,E=(h&2)!==0;if(E?(h=h&1|2,t.flags|=128):h&=1,q(jt,h),hn(e,t,a,n),a=at?Jl:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ep(e,n,t);else if(e.tag===19)ep(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),wc(t,!1,o,n,c,a);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}wc(t,!0,n,null,c,a);break;case"together":wc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Ga(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),vi|=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=Ua(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ua(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ac(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ir(e)))}function sv(e,t,n){switch(t.tag){case 3:Oe(t,t.stateNode.containerInfo),fi(t,$t,e.memoizedState.cache),Ii();break;case 27:case 5:He(t);break;case 4:Oe(t,t.stateNode.containerInfo);break;case 10:fi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Jo(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(mi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Wh(e,t,n):(mi(t),e=Ga(e,t,n),e!==null?e.sibling:null);mi(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(dl(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return tp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),q(jt,jt.current),a)break;return null;case 22:return t.lanes=0,Ph(e,t,n,t.pendingProps);case 24:fi(t,$t,e.memoizedState.cache)}return Ga(e,t,n)}function np(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ft=!0;else{if(!Ac(e,n)&&(t.flags&128)===0)return Ft=!1,sv(e,t,n);Ft=(e.flags&131072)!==0}else Ft=!1,at&&(t.flags&1048576)!==0&&Ld(t,Jl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=$i(t.elementType),t.type=e,typeof e=="function")Co(e)?(a=Pi(e,a),t.tag=1,t=Vh(null,t,e,a,n)):(t.tag=0,t=Ec(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===re){t.tag=11,t=Yh(null,t,e,a,n);break e}else if(o===le){t.tag=14,t=Fh(null,t,e,a,n);break e}}throw t=Ae(e)||e,Error(l(306,t,""))}}return t;case 0:return Ec(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Pi(a,t.pendingProps),Vh(e,t,a,o,n);case 3:e:{if(Oe(t,t.stateNode.containerInfo),e===null)throw Error(l(387));a=t.pendingProps;var c=t.memoizedState;o=c.element,Po(e,t),ss(t,a,null,n);var h=t.memoizedState;if(a=h.cache,fi(t,$t,a),a!==c.cache&&qo(t,[$t],n,!0),ls(),a=h.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Jh(e,t,a,n);break e}else if(a!==o){o=na(Error(l(424)),t),Wl(o),t=Jh(e,t,a,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(xt=ra(e.firstChild),fn=t,at=!0,ci=null,la=!0,n=Pd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ii(),a===o){t=Ga(e,t,n);break e}hn(e,t,a,n)}t=t.child}return t;case 26:return Tr(e,t),e===null?(n=hm(t.type,null,t.pendingProps,null))?t.memoizedState=n:at||(n=t.type,e=t.pendingProps,a=Hr(xe.current).createElement(n),a[Mt]=t,a[en]=e,pn(a,n,e),dt(a),t.stateNode=a):t.memoizedState=hm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return He(t),e===null&&at&&(a=t.stateNode=um(t.type,t.pendingProps,xe.current),fn=t,la=!0,o=xt,Ni(t.type)?(su=o,xt=ra(a.firstChild)):xt=o),hn(e,t,t.pendingProps.children,n),Tr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&at&&((o=a=xt)&&(a=Uv(a,t.type,t.pendingProps,la),a!==null?(t.stateNode=a,fn=t,xt=ra(a.firstChild),la=!1,o=!0):o=!1),o||ui(t)),He(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,a=c.children,tu(o,c)?a=null:h!==null&&tu(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=ec(e,t,Vy,null,null,n),ws._currentValue=o),Tr(e,t),hn(e,t,a,n),t.child;case 6:return e===null&&at&&((e=n=xt)&&(n=Bv(n,t.pendingProps,la),n!==null?(t.stateNode=n,fn=t,xt=null,e=!0):e=!1),e||ui(t)),null;case 13:return Wh(e,t,n);case 4:return Oe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Fi(t,null,a,n):hn(e,t,a,n),t.child;case 11:return Yh(e,t,t.type,t.pendingProps,n);case 7:return hn(e,t,t.pendingProps,n),t.child;case 8:return hn(e,t,t.pendingProps.children,n),t.child;case 12:return hn(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,fi(t,t.type,a.value),hn(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,qi(t),o=dn(o),a=a(o),t.flags|=1,hn(e,t,a,n),t.child;case 14:return Fh(e,t,t.type,t.pendingProps,n);case 15:return Kh(e,t,t.type,t.pendingProps,n);case 19:return tp(e,t,n);case 31:return lv(e,t,n);case 22:return Ph(e,t,n,t.pendingProps);case 24:return qi(t),a=dn($t),e===null?(o=Yo(),o===null&&(o=_t,c=Go(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:a,cache:o},Ko(t),fi(t,$t,o)):((e.lanes&n)!==0&&(Po(e,t),ss(t,null,null,n),ls()),o=e.memoizedState,c=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),fi(t,$t,a)):(a=c.cache,fi(t,$t,a),a!==o.cache&&qo(t,[$t],n,!0))),hn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function $a(e){e.flags|=4}function Rc(e,t,n,a,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(Op())e.flags|=8192;else throw Yi=or,Fo}else e.flags&=-16777217}function ap(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ym(t))if(Op())e.flags|=8192;else throw Yi=or,Fo}function xr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ee():536870912,e.lanes|=t,Nl|=t)}function ds(e,t){if(!at)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function wt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function rv(e,t,n){var a=t.pendingProps;switch(Uo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wt(t),null;case 1:return wt(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ia($t),Ee(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(fl(t)?$a(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,jo())),wt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?($a(t),c!==null?(wt(t),ap(t,c)):(wt(t),Rc(t,o,null,a,n))):c?c!==e.memoizedState?($a(t),wt(t),ap(t,c)):(wt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&$a(t),wt(t),Rc(t,o,e,a,n)),null;case 27:if(We(t),n=xe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$a(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return wt(t),null}e=ue.current,fl(t)?Ud(t):(e=um(o,a,n),t.stateNode=e,$a(t))}return wt(t),null;case 5:if(We(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$a(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return wt(t),null}if(c=ue.current,fl(t))Ud(t);else{var h=Hr(xe.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 a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(o,{is:a.is}):h.createElement(o)}}c[Mt]=t,c[en]=a;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(pn(c,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&$a(t)}}return wt(t),Rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&$a(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(l(166));if(e=xe.current,fl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=fn,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[Mt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Wp(e.nodeValue,n)),e||ui(t,!0)}else e=Hr(e).createTextNode(a),e[Mt]=t,t.stateNode=e}return wt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=fl(t),n!==null){if(e===null){if(!a)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[Mt]=t}else Ii(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;wt(t),e=!1}else n=jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Kn(t),t):(Kn(t),null);if((t.flags&128)!==0)throw Error(l(558))}return wt(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=fl(t),a!==null&&a.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[Mt]=t}else Ii(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;wt(t),o=!1}else o=jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Kn(t),t):(Kn(t),null)}return Kn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),xr(t,t.updateQueue),wt(t),null);case 4:return Ee(),e===null&&Qc(t.stateNode.containerInfo),wt(t),null;case 10:return Ia(t.type),wt(t),null;case 19:if(D(jt),a=t.memoizedState,a===null)return wt(t),null;if(o=(t.flags&128)!==0,c=a.rendering,c===null)if(o)ds(a,!1);else{if(Lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=dr(e),c!==null){for(t.flags|=128,ds(a,!1),e=c.updateQueue,t.updateQueue=e,xr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Md(n,e),n=n.sibling;return q(jt,jt.current&1|2),at&&Ba(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Ke()>kr&&(t.flags|=128,o=!0,ds(a,!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,xr(t,e),ds(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!at)return wt(t),null}else 2*Ke()-a.renderingStartTime>kr&&n!==536870912&&(t.flags|=128,o=!0,ds(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Ke(),e.sibling=null,n=jt.current,q(jt,o?n&1|2:n&1),at&&Ba(t,a.treeForkCount),e):(wt(t),null);case 22:case 23:return Kn(t),Vo(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(wt(t),t.subtreeFlags&6&&(t.flags|=8192)):wt(t),n=t.updateQueue,n!==null&&xr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&D(Gi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ia($t),wt(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function ov(e,t){switch(Uo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ia($t),Ee(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return We(t),null;case 31:if(t.memoizedState!==null){if(Kn(t),t.alternate===null)throw Error(l(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Kn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(jt),null;case 4:return Ee(),null;case 10:return Ia(t.type),null;case 22:case 23:return Kn(t),Vo(),e!==null&&D(Gi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ia($t),null;case 25:return null;default:return null}}function ip(e,t){switch(Uo(t),t.tag){case 3:Ia($t),Ee();break;case 26:case 27:case 5:We(t);break;case 4:Ee();break;case 31:t.memoizedState!==null&&Kn(t);break;case 13:Kn(t);break;case 19:D(jt);break;case 10:Ia(t.type);break;case 22:case 23:Kn(t),Vo(),e!==null&&D(Gi);break;case 24:Ia($t)}}function hs(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var c=n.create,h=n.inst;a=c(),h.destroy=a}n=n.next}while(n!==o)}}catch(E){pt(t,t.return,E)}}function bi(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var c=o.next;a=c;do{if((a.tag&e)===e){var h=a.inst,E=h.destroy;if(E!==void 0){h.destroy=void 0,o=t;var O=n,Y=E;try{Y()}catch(W){pt(o,O,W)}}}a=a.next}while(a!==c)}}catch(W){pt(t,t.return,W)}}function lp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Xd(t,n)}catch(a){pt(e,e.return,a)}}}function sp(e,t,n){n.props=Pi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){pt(e,t,a)}}function ps(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){pt(e,t,o)}}function xa(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){pt(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){pt(e,t,o)}else n.current=null}function rp(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){pt(e,e.return,o)}}function Oc(e,t,n){try{var a=e.stateNode;kv(a,e.type,n,t),a[en]=t}catch(o){pt(e,e.return,o)}}function op(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ni(e.type)||e.tag===4}function kc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||op(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&&Ni(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 Mc(e,t,n){var a=e.tag;if(a===5||a===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=se));else if(a!==4&&(a===27&&Ni(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}function wr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Ni(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(wr(e,t,n),e=e.sibling;e!==null;)wr(e,t,n),e=e.sibling}function cp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);pn(t,a,n),t[Mt]=e,t[en]=n}catch(c){pt(e,e.return,c)}}var Ya=!1,Kt=!1,Cc=!1,up=typeof WeakSet=="function"?WeakSet:Set,nn=null;function cv(e,t){if(e=e.containerInfo,Wc=Pr,e=Sd(e),xo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,E=-1,O=-1,Y=0,W=0,ie=e,F=null;t:for(;;){for(var Z;ie!==n||o!==0&&ie.nodeType!==3||(E=h+o),ie!==c||a!==0&&ie.nodeType!==3||(O=h+a),ie.nodeType===3&&(h+=ie.nodeValue.length),(Z=ie.firstChild)!==null;)F=ie,ie=Z;for(;;){if(ie===e)break t;if(F===n&&++Y===o&&(E=h),F===c&&++W===a&&(O=h),(Z=ie.nextSibling)!==null)break;ie=F,F=ie.parentNode}ie=Z}n=E===-1||O===-1?null:{start:E,end:O}}else n=null}n=n||{start:0,end:0}}else n=null;for(eu={focusedElem:e,selectionRange:n},Pr=!1,nn=t;nn!==null;)if(t=nn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nn=e;else for(;nn!==null;){switch(t=nn,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,a=n.stateNode;try{var Te=Pi(n.type,o);e=a.getSnapshotBeforeUpdate(Te,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(Ue){pt(n,n.return,Ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)au(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":au(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,nn=e;break}nn=t.return}}function fp(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Ka(e,n),a&4&&hs(5,n);break;case 1:if(Ka(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){pt(n,n.return,h)}else{var o=Pi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){pt(n,n.return,h)}}a&64&&lp(n),a&512&&ps(n,n.return);break;case 3:if(Ka(e,n),a&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{Xd(e,t)}catch(h){pt(n,n.return,h)}}break;case 27:t===null&&a&4&&cp(n);case 26:case 5:Ka(e,n),t===null&&a&4&&rp(n),a&512&&ps(n,n.return);break;case 12:Ka(e,n);break;case 31:Ka(e,n),a&4&&pp(e,n);break;case 13:Ka(e,n),a&4&&mp(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=yv.bind(null,n),jv(e,n))));break;case 22:if(a=n.memoizedState!==null||Ya,!a){t=t!==null&&t.memoizedState!==null||Kt,o=Ya;var c=Kt;Ya=a,(Kt=t)&&!c?Pa(e,n,(n.subtreeFlags&8772)!==0):Ka(e,n),Ya=o,Kt=c}break;case 30:break;default:Ka(e,n)}}function dp(e){var t=e.alternate;t!==null&&(e.alternate=null,dp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ni(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 kt=null,Un=!1;function Fa(e,t,n){for(n=n.child;n!==null;)hp(e,t,n),n=n.sibling}function hp(e,t,n){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(on,n)}catch{}switch(n.tag){case 26:Kt||xa(n,t),Fa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Kt||xa(n,t);var a=kt,o=Un;Ni(n.type)&&(kt=n.stateNode,Un=!1),Fa(e,t,n),Ts(n.stateNode),kt=a,Un=o;break;case 5:Kt||xa(n,t);case 6:if(a=kt,o=Un,kt=null,Fa(e,t,n),kt=a,Un=o,kt!==null)if(Un)try{(kt.nodeType===9?kt.body:kt.nodeName==="HTML"?kt.ownerDocument.body:kt).removeChild(n.stateNode)}catch(c){pt(n,t,c)}else try{kt.removeChild(n.stateNode)}catch(c){pt(n,t,c)}break;case 18:kt!==null&&(Un?(e=kt,lm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Cl(e)):lm(kt,n.stateNode));break;case 4:a=kt,o=Un,kt=n.stateNode.containerInfo,Un=!0,Fa(e,t,n),kt=a,Un=o;break;case 0:case 11:case 14:case 15:bi(2,n,t),Kt||bi(4,n,t),Fa(e,t,n);break;case 1:Kt||(xa(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&sp(n,t,a)),Fa(e,t,n);break;case 21:Fa(e,t,n);break;case 22:Kt=(a=Kt)||n.memoizedState!==null,Fa(e,t,n),Kt=a;break;default:Fa(e,t,n)}}function pp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Cl(e)}catch(n){pt(t,t.return,n)}}}function mp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Cl(e)}catch(n){pt(t,t.return,n)}}function uv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new up),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new up),t;default:throw Error(l(435,e.tag))}}function Ar(e,t){var n=uv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=vv.bind(null,e,a);a.then(o,o)}})}function Bn(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],c=e,h=t,E=h;e:for(;E!==null;){switch(E.tag){case 27:if(Ni(E.type)){kt=E.stateNode,Un=!1;break e}break;case 5:kt=E.stateNode,Un=!1;break e;case 3:case 4:kt=E.stateNode.containerInfo,Un=!0;break e}E=E.return}if(kt===null)throw Error(l(160));hp(c,h,o),kt=null,Un=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)gp(t,e),t=t.sibling}var ha=null;function gp(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Bn(t,e),jn(e),a&4&&(bi(3,e,e.return),hs(3,e),bi(5,e,e.return));break;case 1:Bn(t,e),jn(e),a&512&&(Kt||n===null||xa(n,n.return)),a&64&&Ya&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=ha;if(Bn(t,e),jn(e),a&512&&(Kt||n===null||xa(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":c=o.getElementsByTagName("title")[0],(!c||c[va]||c[Mt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(a),o.head.insertBefore(c,o.querySelector("head > title"))),pn(c,a,n),c[Mt]=e,dt(c),a=c;break e;case"link":var h=gm("link","href",o).get(a+(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(a),pn(c,a,n),o.head.appendChild(c);break;case"meta":if(h=gm("meta","content",o).get(a+(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(a),pn(c,a,n),o.head.appendChild(c);break;default:throw Error(l(468,a))}c[Mt]=e,dt(c),a=c}e.stateNode=a}else bm(o,e.type,e.stateNode);else e.stateNode=mm(o,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?bm(o,e.type,e.stateNode):mm(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Oc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Bn(t,e),jn(e),a&512&&(Kt||n===null||xa(n,n.return)),n!==null&&a&4&&Oc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Bn(t,e),jn(e),a&512&&(Kt||n===null||xa(n,n.return)),e.flags&32){o=e.stateNode;try{X(o,"")}catch(Te){pt(e,e.return,Te)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Oc(e,o,n!==null?n.memoizedProps:o)),a&1024&&(Cc=!0);break;case 6:if(Bn(t,e),jn(e),a&4){if(e.stateNode===null)throw Error(l(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(Te){pt(e,e.return,Te)}}break;case 3:if($r=null,o=ha,ha=qr(t.containerInfo),Bn(t,e),ha=o,jn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Cl(t.containerInfo)}catch(Te){pt(e,e.return,Te)}Cc&&(Cc=!1,bp(e));break;case 4:a=ha,ha=qr(e.stateNode.containerInfo),Bn(t,e),jn(e),ha=a;break;case 12:Bn(t,e),jn(e);break;case 31:Bn(t,e),jn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ar(e,a)));break;case 13:Bn(t,e),jn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Or=Ke()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ar(e,a)));break;case 22:o=e.memoizedState!==null;var O=n!==null&&n.memoizedState!==null,Y=Ya,W=Kt;if(Ya=Y||o,Kt=W||O,Bn(t,e),Kt=W,Ya=Y,jn(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||O||Ya||Kt||Zi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){O=n=t;try{if(c=O.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{E=O.stateNode;var ie=O.memoizedProps.style,F=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;E.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(Te){pt(O,O.return,Te)}}}else if(t.tag===6){if(n===null){O=t;try{O.stateNode.nodeValue=o?"":O.memoizedProps}catch(Te){pt(O,O.return,Te)}}}else if(t.tag===18){if(n===null){O=t;try{var Z=O.stateNode;o?sm(Z,!0):sm(O.stateNode,!1)}catch(Te){pt(O,O.return,Te)}}}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}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Ar(e,n))));break;case 19:Bn(t,e),jn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ar(e,a)));break;case 30:break;case 21:break;default:Bn(t,e),jn(e)}}function jn(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(op(a)){n=a;break}a=a.return}if(n==null)throw Error(l(160));switch(n.tag){case 27:var o=n.stateNode,c=kc(e);wr(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(X(h,""),n.flags&=-33);var E=kc(e);wr(e,E,h);break;case 3:case 4:var O=n.stateNode.containerInfo,Y=kc(e);Mc(e,Y,O);break;default:throw Error(l(161))}}catch(W){pt(e,e.return,W)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;bp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ka(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fp(e,t.alternate,t),t=t.sibling}function Zi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:bi(4,t,t.return),Zi(t);break;case 1:xa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&sp(t,t.return,n),Zi(t);break;case 27:Ts(t.stateNode);case 26:case 5:xa(t,t.return),Zi(t);break;case 22:t.memoizedState===null&&Zi(t);break;case 30:Zi(t);break;default:Zi(t)}e=e.sibling}}function Pa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Pa(o,c,n),hs(4,c);break;case 1:if(Pa(o,c,n),a=c,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(Y){pt(a,a.return,Y)}if(a=c,o=a.updateQueue,o!==null){var E=a.stateNode;try{var O=o.shared.hiddenCallbacks;if(O!==null)for(o.shared.hiddenCallbacks=null,o=0;o<O.length;o++)Zd(O[o],E)}catch(Y){pt(a,a.return,Y)}}n&&h&64&&lp(c),ps(c,c.return);break;case 27:cp(c);case 26:case 5:Pa(o,c,n),n&&a===null&&h&4&&rp(c),ps(c,c.return);break;case 12:Pa(o,c,n);break;case 31:Pa(o,c,n),n&&h&4&&pp(o,c);break;case 13:Pa(o,c,n),n&&h&4&&mp(o,c);break;case 22:c.memoizedState===null&&Pa(o,c,n),ps(c,c.return);break;case 30:break;default:Pa(o,c,n)}t=t.sibling}}function Dc(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 Lc(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 pa(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)yp(e,t,n,a),t=t.sibling}function yp(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:pa(e,t,n,a),o&2048&&hs(9,t);break;case 1:pa(e,t,n,a);break;case 3:pa(e,t,n,a),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){pa(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,E=c.onPostCommit;typeof E=="function"&&E(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){pt(t,t.return,O)}}else pa(e,t,n,a);break;case 31:pa(e,t,n,a);break;case 13:pa(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?pa(e,t,n,a):ms(e,t):c._visibility&2?pa(e,t,n,a):(c._visibility|=2,_l(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Dc(h,t);break;case 24:pa(e,t,n,a),o&2048&&Lc(t.alternate,t);break;default:pa(e,t,n,a)}}function _l(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,E=n,O=a,Y=h.flags;switch(h.tag){case 0:case 11:case 15:_l(c,h,E,O,o),hs(8,h);break;case 23:break;case 22:var W=h.stateNode;h.memoizedState!==null?W._visibility&2?_l(c,h,E,O,o):ms(c,h):(W._visibility|=2,_l(c,h,E,O,o)),o&&Y&2048&&Dc(h.alternate,h);break;case 24:_l(c,h,E,O,o),o&&Y&2048&&Lc(h.alternate,h);break;default:_l(c,h,E,O,o)}t=t.sibling}}function ms(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:ms(n,a),o&2048&&Dc(a.alternate,a);break;case 24:ms(n,a),o&2048&&Lc(a.alternate,a);break;default:ms(n,a)}t=t.sibling}}var gs=8192;function Sl(e,t,n){if(e.subtreeFlags&gs)for(e=e.child;e!==null;)vp(e,t,n),e=e.sibling}function vp(e,t,n){switch(e.tag){case 26:Sl(e,t,n),e.flags&gs&&e.memoizedState!==null&&Qv(n,ha,e.memoizedState,e.memoizedProps);break;case 5:Sl(e,t,n);break;case 3:case 4:var a=ha;ha=qr(e.stateNode.containerInfo),Sl(e,t,n),ha=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=gs,gs=16777216,Sl(e,t,n),gs=a):Sl(e,t,n));break;default:Sl(e,t,n)}}function Ep(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 a=t[n];nn=a,Sp(a,e)}Ep(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_p(e),e=e.sibling}function _p(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&bi(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 a=t[n];nn=a,Sp(a,e)}Ep(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:bi(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 Sp(e,t){for(;nn!==null;){var n=nn;switch(n.tag){case 0:case 11:case 15:bi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:es(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,nn=a;else e:for(n=e;nn!==null;){a=nn;var o=a.sibling,c=a.return;if(dp(a),a===n){nn=null;break e}if(o!==null){o.return=c,nn=o;break e}nn=c}}}var fv={getCacheForType:function(e){var t=dn($t),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return dn($t).controller.signal}},dv=typeof WeakMap=="function"?WeakMap:Map,ut=0,_t=null,Qe=null,et=0,ht=0,Pn=null,yi=!1,Tl=!1,zc=!1,Za=0,Lt=0,vi=0,Xi=0,Uc=0,Zn=0,Nl=0,ys=null,In=null,Bc=!1,Or=0,Tp=0,kr=1/0,Mr=null,Ei=null,Vt=0,_i=null,xl=null,Xa=0,jc=0,Ic=null,Np=null,vs=0,Hc=null;function Xn(){return(ut&2)!==0&&et!==0?et&-et:I.T!==null?Kc():ya()}function xp(){if(Zn===0)if((et&536870912)===0||at){var e=cn;cn<<=1,(cn&3932160)===0&&(cn=262144),Zn=e}else Zn=536870912;return e=Fn.current,e!==null&&(e.flags|=32),Zn}function Hn(e,t,n){(e===_t&&(ht===2||ht===9)||e.cancelPendingCommit!==null)&&(wl(e,0),Si(e,et,Zn,!1)),Le(e,n),((ut&2)===0||e!==_t)&&(e===_t&&((ut&2)===0&&(Xi|=n),Lt===4&&Si(e,et,Zn,!1)),wa(e))}function wp(e,t,n){if((ut&6)!==0)throw Error(l(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||J(e,t),o=a?mv(e,t):Gc(e,t,!0),c=a;do{if(o===0){Tl&&!a&&Si(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!hv(n)){o=Gc(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 O=E.current.memoizedState.isDehydrated;if(O&&(wl(E,h).flags|=256),h=Gc(E,h,!1),h!==2){if(zc&&!O){E.errorRecoveryDisabledLanes|=c,Xi|=c,o=4;break e}c=In,In=o,c!==null&&(In===null?In=c:In.push.apply(In,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){wl(e,0),Si(e,t,0,!0);break}e:{switch(a=e,c=o,c){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:Si(a,t,Zn,!yi);break e;case 2:In=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=Or+300-Ke(),10<o)){if(Si(a,t,Zn,!yi),R(a,0,!0)!==0)break e;Xa=t,a.timeoutHandle=am(Ap.bind(null,a,n,In,Mr,Bc,t,Zn,Xi,Nl,yi,c,"Throttled",-0,0),o);break e}Ap(a,n,In,Mr,Bc,t,Zn,Xi,Nl,yi,c,null,-0,0)}}break}while(!0);wa(e)}function Ap(e,t,n,a,o,c,h,E,O,Y,W,ie,F,Z){if(e.timeoutHandle=-1,ie=t.subtreeFlags,ie&8192||(ie&16785408)===16785408){ie={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:se},vp(t,c,ie);var Te=(c&62914560)===c?Or-Ke():(c&4194048)===c?Tp-Ke():0;if(Te=Vv(ie,Te),Te!==null){Xa=c,e.cancelPendingCommit=Te(zp.bind(null,e,t,c,n,a,o,h,E,O,W,ie,null,F,Z)),Si(e,c,h,!Y);return}}zp(e,t,c,n,a,o,h,E,O)}function hv(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 a=0;a<n.length;a++){var o=n[a],c=o.getSnapshot;o=o.value;try{if(!$n(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 Si(e,t,n,a){t&=~Uc,t&=~Xi,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var c=31-Nt(o),h=1<<c;a[c]=-1,o&=~h}n!==0&&be(e,n,t)}function Cr(){return(ut&6)===0?(Es(0),!1):!0}function qc(){if(Qe!==null){if(ht===0)var e=Qe.return;else e=Qe,ja=Hi=null,ac(e),gl=null,ns=0,e=Qe;for(;e!==null;)ip(e.alternate,e),e=e.return;Qe=null}}function wl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Dv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Xa=0,qc(),_t=e,Qe=n=Ua(e.current,null),et=t,ht=0,Pn=null,yi=!1,Tl=J(e,t),zc=!1,Nl=Zn=Uc=Xi=vi=Lt=0,In=ys=null,Bc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-Nt(a),c=1<<o;t|=e[o],a&=~c}return Za=t,Ws(),n}function Rp(e,t){qe=null,I.H=us,t===ml||t===rr?(t=Yd(),ht=3):t===Fo?(t=Yd(),ht=4):ht=t===vc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Pn=t,Qe===null&&(Lt=1,_r(e,na(t,e.current)))}function Op(){var e=Fn.current;return e===null?!0:(et&4194048)===et?sa===null:(et&62914560)===et||(et&536870912)!==0?e===sa:!1}function kp(){var e=I.H;return I.H=us,e===null?us:e}function Mp(){var e=I.A;return I.A=fv,e}function Dr(){Lt=4,yi||(et&4194048)!==et&&Fn.current!==null||(Tl=!0),(vi&134217727)===0&&(Xi&134217727)===0||_t===null||Si(_t,et,Zn,!1)}function Gc(e,t,n){var a=ut;ut|=2;var o=kp(),c=Mp();(_t!==e||et!==t)&&(Mr=null,wl(e,t)),t=!1;var h=Lt;e:do try{if(ht!==0&&Qe!==null){var E=Qe,O=Pn;switch(ht){case 8:qc(),h=6;break e;case 3:case 2:case 9:case 6:Fn.current===null&&(t=!0);var Y=ht;if(ht=0,Pn=null,Al(e,E,O,Y),n&&Tl){h=0;break e}break;default:Y=ht,ht=0,Pn=null,Al(e,E,O,Y)}}pv(),h=Lt;break}catch(W){Rp(e,W)}while(!0);return t&&e.shellSuspendCounter++,ja=Hi=null,ut=a,I.H=o,I.A=c,Qe===null&&(_t=null,et=0,Ws()),h}function pv(){for(;Qe!==null;)Cp(Qe)}function mv(e,t){var n=ut;ut|=2;var a=kp(),o=Mp();_t!==e||et!==t?(Mr=null,kr=Ke()+500,wl(e,t)):Tl=J(e,t);e:do try{if(ht!==0&&Qe!==null){t=Qe;var c=Pn;t:switch(ht){case 1:ht=0,Pn=null,Al(e,t,c,1);break;case 2:case 9:if(Gd(c)){ht=0,Pn=null,Dp(t);break}t=function(){ht!==2&&ht!==9||_t!==e||(ht=7),wa(e)},c.then(t,t);break e;case 3:ht=7;break e;case 4:ht=5;break e;case 7:Gd(c)?(ht=0,Pn=null,Dp(t)):(ht=0,Pn=null,Al(e,t,c,7));break;case 5:var h=null;switch(Qe.tag){case 26:h=Qe.memoizedState;case 5:case 27:var E=Qe;if(h?ym(h):E.stateNode.complete){ht=0,Pn=null;var O=E.sibling;if(O!==null)Qe=O;else{var Y=E.return;Y!==null?(Qe=Y,Lr(Y)):Qe=null}break t}}ht=0,Pn=null,Al(e,t,c,5);break;case 6:ht=0,Pn=null,Al(e,t,c,6);break;case 8:qc(),Lt=6;break e;default:throw Error(l(462))}}gv();break}catch(W){Rp(e,W)}while(!0);return ja=Hi=null,I.H=a,I.A=o,ut=n,Qe!==null?0:(_t=null,et=0,Ws(),Lt)}function gv(){for(;Qe!==null&&!ca();)Cp(Qe)}function Cp(e){var t=np(e.alternate,e,Za);e.memoizedProps=e.pendingProps,t===null?Lr(e):Qe=t}function Dp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Qh(n,t,t.pendingProps,t.type,void 0,et);break;case 11:t=Qh(n,t,t.pendingProps,t.type.render,t.ref,et);break;case 5:ac(t);default:ip(n,t),t=Qe=Md(t,Za),t=np(n,t,Za)}e.memoizedProps=e.pendingProps,t===null?Lr(e):Qe=t}function Al(e,t,n,a){ja=Hi=null,ac(t),gl=null,ns=0;var o=t.return;try{if(iv(e,o,t,n,et)){Lt=1,_r(e,na(n,e.current)),Qe=null;return}}catch(c){if(o!==null)throw Qe=o,c;Lt=1,_r(e,na(n,e.current)),Qe=null;return}t.flags&32768?(at||a===1?e=!0:Tl||(et&536870912)!==0?e=!1:(yi=e=!0,(a===2||a===9||a===3||a===6)&&(a=Fn.current,a!==null&&a.tag===13&&(a.flags|=16384))),Lp(t,e)):Lr(t)}function Lr(e){var t=e;do{if((t.flags&32768)!==0){Lp(t,yi);return}e=t.return;var n=rv(t.alternate,t,Za);if(n!==null){Qe=n;return}if(t=t.sibling,t!==null){Qe=t;return}Qe=t=e}while(t!==null);Lt===0&&(Lt=5)}function Lp(e,t){do{var n=ov(e.alternate,e);if(n!==null){n.flags&=32767,Qe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Qe=e;return}Qe=e=n}while(e!==null);Lt=6,Qe=null}function zp(e,t,n,a,o,c,h,E,O){e.cancelPendingCommit=null;do zr();while(Vt!==0);if((ut&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(c=t.lanes|t.childLanes,c|=ko,ye(e,n,c,h,E,O),e===_t&&(Qe=_t=null,et=0),xl=t,_i=e,Xa=n,jc=c,Ic=o,Np=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ev(yn,function(){return Hp(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=I.T,I.T=null,o=ne.p,ne.p=2,h=ut,ut|=4;try{cv(e,t,n)}finally{ut=h,ne.p=o,I.T=a}}Vt=1,Up(),Bp(),jp()}}function Up(){if(Vt===1){Vt=0;var e=_i,t=xl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=I.T,I.T=null;var a=ne.p;ne.p=2;var o=ut;ut|=4;try{gp(t,e);var c=eu,h=Sd(e.containerInfo),E=c.focusedElem,O=c.selectionRange;if(h!==E&&E&&E.ownerDocument&&_d(E.ownerDocument.documentElement,E)){if(O!==null&&xo(E)){var Y=O.start,W=O.end;if(W===void 0&&(W=Y),"selectionStart"in E)E.selectionStart=Y,E.selectionEnd=Math.min(W,E.value.length);else{var ie=E.ownerDocument||document,F=ie&&ie.defaultView||window;if(F.getSelection){var Z=F.getSelection(),Te=E.textContent.length,Ue=Math.min(O.start,Te),vt=O.end===void 0?Ue:Math.min(O.end,Te);!Z.extend&&Ue>vt&&(h=vt,vt=Ue,Ue=h);var j=Ed(E,Ue),M=Ed(E,vt);if(j&&M&&(Z.rangeCount!==1||Z.anchorNode!==j.node||Z.anchorOffset!==j.offset||Z.focusNode!==M.node||Z.focusOffset!==M.offset)){var $=ie.createRange();$.setStart(j.node,j.offset),Z.removeAllRanges(),Ue>vt?(Z.addRange($),Z.extend(M.node,M.offset)):($.setEnd(M.node,M.offset),Z.addRange($))}}}}for(ie=[],Z=E;Z=Z.parentNode;)Z.nodeType===1&&ie.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ie.length;E++){var te=ie[E];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Pr=!!Wc,eu=Wc=null}finally{ut=o,ne.p=a,I.T=n}}e.current=t,Vt=2}}function Bp(){if(Vt===2){Vt=0;var e=_i,t=xl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=I.T,I.T=null;var a=ne.p;ne.p=2;var o=ut;ut|=4;try{fp(e,t.alternate,t)}finally{ut=o,ne.p=a,I.T=n}}Vt=3}}function jp(){if(Vt===4||Vt===3){Vt=0,Vn();var e=_i,t=xl,n=Xa,a=Np;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Vt=5:(Vt=0,xl=_i=null,Ip(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Ei=null),Jn(n),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(on,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=I.T,o=ne.p,ne.p=2,I.T=null;try{for(var c=e.onRecoverableError,h=0;h<a.length;h++){var E=a[h];c(E.value,{componentStack:E.stack})}}finally{I.T=t,ne.p=o}}(Xa&3)!==0&&zr(),wa(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Hc?vs++:(vs=0,Hc=e):vs=0,Es(0)}}function Ip(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,es(t)))}function zr(){return Up(),Bp(),jp(),Hp()}function Hp(){if(Vt!==5)return!1;var e=_i,t=jc;jc=0;var n=Jn(Xa),a=I.T,o=ne.p;try{ne.p=32>n?32:n,I.T=null,n=Ic,Ic=null;var c=_i,h=Xa;if(Vt=0,xl=_i=null,Xa=0,(ut&6)!==0)throw Error(l(331));var E=ut;if(ut|=4,_p(c.current),yp(c,c.current,h,n),ut=E,Es(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(on,c)}catch{}return!0}finally{ne.p=o,I.T=a,Ip(e,t)}}function qp(e,t,n){t=na(n,t),t=yc(e.stateNode,t,2),e=pi(e,t,2),e!==null&&(Le(e,2),wa(e))}function pt(e,t,n){if(e.tag===3)qp(e,e,n);else for(;t!==null;){if(t.tag===3){qp(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ei===null||!Ei.has(a))){e=na(n,e),n=Gh(2),a=pi(t,n,2),a!==null&&($h(n,a,t,e),Le(a,2),wa(a));break}}t=t.return}}function $c(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new dv;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(zc=!0,o.add(n),e=bv.bind(null,e,t,n),t.then(e,e))}function bv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,_t===e&&(et&n)===n&&(Lt===4||Lt===3&&(et&62914560)===et&&300>Ke()-Or?(ut&2)===0&&wl(e,0):Uc|=n,Nl===et&&(Nl=0)),wa(e)}function Gp(e,t){t===0&&(t=ee()),e=Bi(e,t),e!==null&&(Le(e,t),wa(e))}function yv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gp(e,n)}function vv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(l(314))}a!==null&&a.delete(t),Gp(e,n)}function Ev(e,t){return qn(e,t)}var Ur=null,Rl=null,Yc=!1,Br=!1,Fc=!1,Ti=0;function wa(e){e!==Rl&&e.next===null&&(Rl===null?Ur=Rl=e:Rl=Rl.next=e),Br=!0,Yc||(Yc=!0,Sv())}function Es(e,t){if(!Fc&&Br){Fc=!0;do for(var n=!1,a=Ur;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var c=0;else{var h=a.suspendedLanes,E=a.pingedLanes;c=(1<<31-Nt(42|e)+1)-1,c&=o&~(h&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Kp(a,c))}else c=et,c=R(a,a===_t?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||J(a,c)||(n=!0,Kp(a,c));a=a.next}while(n);Fc=!1}}function _v(){$p()}function $p(){Br=Yc=!1;var e=0;Ti!==0&&Cv()&&(e=Ti);for(var t=Ke(),n=null,a=Ur;a!==null;){var o=a.next,c=Yp(a,t);c===0?(a.next=null,n===null?Ur=o:n.next=o,o===null&&(Rl=n)):(n=a,(e!==0||(c&3)!==0)&&(Br=!0)),a=o}Vt!==0&&Vt!==5||Es(e),Ti!==0&&(Ti=0)}function Yp(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Nt(c),E=1<<h,O=o[h];O===-1?((E&n)===0||(E&a)!==0)&&(o[h]=C(E,t)):O<=t&&(e.expiredLanes|=E),c&=~E}if(t=_t,n=et,n=R(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ht===2||ht===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Jt(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||J(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Jt(a),Jn(n)){case 2:case 8:n=bn;break;case 32:n=yn;break;case 268435456:n=Mn;break;default:n=yn}return a=Fp.bind(null,e),n=qn(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Jt(a),e.callbackPriority=2,e.callbackNode=null,2}function Fp(e,t){if(Vt!==0&&Vt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(zr()&&e.callbackNode!==n)return null;var a=et;return a=R(e,e===_t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(wp(e,a,t),Yp(e,Ke()),e.callbackNode!=null&&e.callbackNode===n?Fp.bind(null,e):null)}function Kp(e,t){if(zr())return null;wp(e,t,!0)}function Sv(){Lv(function(){(ut&6)!==0?qn(mt,_v):$p()})}function Kc(){if(Ti===0){var e=hl;e===0&&(e=je,je<<=1,(je&261888)===0&&(je=256)),Ti=e}return Ti}function Pp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xe(""+e)}function Zp(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 Tv(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var c=Pp((o[en]||null).action),h=a.submitter;h&&(t=(t=h[en]||null)?Pp(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var E=new Xs("action","action",null,a,o);e.push({event:E,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ti!==0){var O=h?Zp(o,h):new FormData(o);dc(n,{pending:!0,data:O,method:o.method,action:c},null,O)}}else typeof c=="function"&&(E.preventDefault(),O=h?Zp(o,h):new FormData(o),dc(n,{pending:!0,data:O,method:o.method,action:c},c,O))},currentTarget:o}]})}}for(var Pc=0;Pc<Oo.length;Pc++){var Zc=Oo[Pc],Nv=Zc.toLowerCase(),xv=Zc[0].toUpperCase()+Zc.slice(1);da(Nv,"on"+xv)}da(xd,"onAnimationEnd"),da(wd,"onAnimationIteration"),da(Ad,"onAnimationStart"),da("dblclick","onDoubleClick"),da("focusin","onFocus"),da("focusout","onBlur"),da(qy,"onTransitionRun"),da(Gy,"onTransitionStart"),da($y,"onTransitionCancel"),da(Rd,"onTransitionEnd"),ce("onMouseEnter",["mouseout","mouseover"]),ce("onMouseLeave",["mouseout","mouseover"]),ce("onPointerEnter",["pointerout","pointerover"]),ce("onPointerLeave",["pointerout","pointerover"]),fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fa("onBeforeInput",["compositionend","keypress","textInput","paste"]),fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fa("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(" "),wv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_s));function Xp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var h=a.length-1;0<=h;h--){var E=a[h],O=E.instance,Y=E.currentTarget;if(E=E.listener,O!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=Y;try{c(o)}catch(W){Js(W)}o.currentTarget=null,c=O}else for(h=0;h<a.length;h++){if(E=a[h],O=E.instance,Y=E.currentTarget,E=E.listener,O!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=Y;try{c(o)}catch(W){Js(W)}o.currentTarget=null,c=O}}}}function Ve(e,t){var n=t[Wn];n===void 0&&(n=t[Wn]=new Set);var a=e+"__bubble";n.has(a)||(Qp(t,e,2,!1),n.add(a))}function Xc(e,t,n){var a=0;t&&(a|=4),Qp(n,e,a,t)}var jr="_reactListening"+Math.random().toString(36).slice(2);function Qc(e){if(!e[jr]){e[jr]=!0,Ma.forEach(function(n){n!=="selectionchange"&&(wv.has(n)||Xc(n,!1,e),Xc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jr]||(t[jr]=!0,Xc("selectionchange",!1,t))}}function Qp(e,t,n,a){switch(xm(t)){case 2:var o=eE;break;case 8:o=tE;break;default:o=fu}n=o.bind(null,t,n,e),o=void 0,!go||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?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 Vc(e,t,n,a,o){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var h=a.tag;if(h===3||h===4){var E=a.stateNode.containerInfo;if(E===o)break;if(h===4)for(h=a.return;h!==null;){var O=h.tag;if((O===3||O===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;E!==null;){if(h=un(E),h===null)return;if(O=h.tag,O===5||O===6||O===26||O===27){a=c=h;continue e}E=E.parentNode}}a=a.return}Fs(function(){var Y=c,W=Ce(n),ie=[];e:{var F=Od.get(e);if(F!==void 0){var Z=Xs,Te=e;switch(e){case"keypress":if(Ps(n)===0)break e;case"keydown":case"keyup":Z=vy;break;case"focusin":Te="focus",Z=Eo;break;case"focusout":Te="blur",Z=Eo;break;case"beforeblur":case"afterblur":Z=Eo;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":Z=id;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=ry;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=Sy;break;case xd:case wd:case Ad:Z=uy;break;case Rd:Z=Ny;break;case"scroll":case"scrollend":Z=ly;break;case"wheel":Z=wy;break;case"copy":case"cut":case"paste":Z=dy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=sd;break;case"toggle":case"beforetoggle":Z=Ry}var Ue=(t&4)!==0,vt=!Ue&&(e==="scroll"||e==="scrollend"),j=Ue?F!==null?F+"Capture":null:F;Ue=[];for(var M=Y,$;M!==null;){var te=M;if($=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||$===null||j===null||(te=$l(M,j),te!=null&&Ue.push(Ss(M,te,$))),vt)break;M=M.return}0<Ue.length&&(F=new Z(F,Te,null,n,W),ie.push({event:F,listeners:Ue}))}}if((t&7)===0){e:{if(F=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",F&&n!==ge&&(Te=n.relatedTarget||n.fromElement)&&(un(Te)||Te[lt]))break e;if((Z||F)&&(F=W.window===W?W:(F=W.ownerDocument)?F.defaultView||F.parentWindow:window,Z?(Te=n.relatedTarget||n.toElement,Z=Y,Te=Te?un(Te):null,Te!==null&&(vt=d(Te),Ue=Te.tag,Te!==vt||Ue!==5&&Ue!==27&&Ue!==6)&&(Te=null)):(Z=null,Te=Y),Z!==Te)){if(Ue=id,te="onMouseLeave",j="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(Ue=sd,te="onPointerLeave",j="onPointerEnter",M="pointer"),vt=Z==null?F:Ea(Z),$=Te==null?F:Ea(Te),F=new Ue(te,M+"leave",Z,n,W),F.target=vt,F.relatedTarget=$,te=null,un(W)===Y&&(Ue=new Ue(j,M+"enter",Te,n,W),Ue.target=$,Ue.relatedTarget=vt,te=Ue),vt=te,Z&&Te)t:{for(Ue=Av,j=Z,M=Te,$=0,te=j;te;te=Ue(te))$++;te=0;for(var De=M;De;De=Ue(De))te++;for(;0<$-te;)j=Ue(j),$--;for(;0<te-$;)M=Ue(M),te--;for(;$--;){if(j===M||M!==null&&j===M.alternate){Ue=j;break t}j=Ue(j),M=Ue(M)}Ue=null}else Ue=null;Z!==null&&Vp(ie,F,Z,Ue,!1),Te!==null&&vt!==null&&Vp(ie,vt,Te,Ue,!0)}}e:{if(F=Y?Ea(Y):window,Z=F.nodeName&&F.nodeName.toLowerCase(),Z==="select"||Z==="input"&&F.type==="file")var ot=pd;else if(dd(F))if(md)ot=jy;else{ot=Uy;var Re=zy}else Z=F.nodeName,!Z||Z.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?Y&&_e(Y.elementType)&&(ot=pd):ot=By;if(ot&&(ot=ot(e,Y))){hd(ie,ot,n,W);break e}Re&&Re(e,F,Y),e==="focusout"&&Y&&F.type==="number"&&Y.memoizedProps.value!=null&&si(F,"number",F.value)}switch(Re=Y?Ea(Y):window,e){case"focusin":(dd(Re)||Re.contentEditable==="true")&&(ll=Re,wo=Y,Vl=null);break;case"focusout":Vl=wo=ll=null;break;case"mousedown":Ao=!0;break;case"contextmenu":case"mouseup":case"dragend":Ao=!1,Td(ie,n,W);break;case"selectionchange":if(Hy)break;case"keydown":case"keyup":Td(ie,n,W)}var Ye;if(So)e:{switch(e){case"compositionstart":var tt="onCompositionStart";break e;case"compositionend":tt="onCompositionEnd";break e;case"compositionupdate":tt="onCompositionUpdate";break e}tt=void 0}else il?ud(e,n)&&(tt="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(tt="onCompositionStart");tt&&(rd&&n.locale!=="ko"&&(il||tt!=="onCompositionStart"?tt==="onCompositionEnd"&&il&&(Ye=nd()):(ri=W,bo="value"in ri?ri.value:ri.textContent,il=!0)),Re=Ir(Y,tt),0<Re.length&&(tt=new ld(tt,e,null,n,W),ie.push({event:tt,listeners:Re}),Ye?tt.data=Ye:(Ye=fd(n),Ye!==null&&(tt.data=Ye)))),(Ye=ky?My(e,n):Cy(e,n))&&(tt=Ir(Y,"onBeforeInput"),0<tt.length&&(Re=new ld("onBeforeInput","beforeinput",null,n,W),ie.push({event:Re,listeners:tt}),Re.data=Ye)),Tv(ie,e,Y,n,W)}Xp(ie,t)})}function Ss(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ir(e,t){for(var n=t+"Capture",a=[];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&&a.unshift(Ss(e,o,c)),o=$l(e,t),o!=null&&a.push(Ss(e,o,c))),e.tag===3)return a;e=e.return}return[]}function Av(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vp(e,t,n,a,o){for(var c=t._reactName,h=[];n!==null&&n!==a;){var E=n,O=E.alternate,Y=E.stateNode;if(E=E.tag,O!==null&&O===a)break;E!==5&&E!==26&&E!==27||Y===null||(O=Y,o?(Y=$l(n,c),Y!=null&&h.unshift(Ss(n,Y,O))):o||(Y=$l(n,c),Y!=null&&h.push(Ss(n,Y,O)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var Rv=/\r\n?/g,Ov=/\u0000|\uFFFD/g;function Jp(e){return(typeof e=="string"?e:""+e).replace(Rv,`
|
|
49
|
+
`).replace(Ov,"")}function Wp(e,t){return t=Jp(t),Jp(e)===t}function yt(e,t,n,a,o,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||X(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&X(e,""+a);break;case"className":tn(e,"class",a);break;case"tabIndex":tn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":tn(e,n,a);break;case"style":V(e,a,c);break;case"data":if(t!=="object"){tn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Xe(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="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"&&yt(e,t,"name",o.name,o,null),yt(e,t,"formEncType",o.formEncType,o,null),yt(e,t,"formMethod",o.formMethod,o,null),yt(e,t,"formTarget",o.formTarget,o,null)):(yt(e,t,"encType",o.encType,o,null),yt(e,t,"method",o.method,o,null),yt(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Xe(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=se);break;case"onScroll":a!=null&&Ve("scroll",e);break;case"onScrollEnd":a!=null&&Ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Xe(""+a),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":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ve("beforetoggle",e),Ve("toggle",e),qt(e,"popover",a);break;case"xlinkActuate":Bt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Bt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Bt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Bt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Bt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Bt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":qt(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Ne.get(n)||n,qt(e,n,a))}}function Jc(e,t,n,a,o,c){switch(n){case"style":V(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"children":typeof a=="string"?X(e,a):(typeof a=="number"||typeof a=="bigint")&&X(e,""+a);break;case"onScroll":a!=null&&Ve("scroll",e);break;case"onScrollEnd":a!=null&&Ve("scrollend",e);break;case"onClick":a!=null&&(e.onclick=se);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!An.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[en]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):qt(e,n,a)}}}function pn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ve("error",e),Ve("load",e);var a=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:yt(e,t,c,h,n,null)}}o&&yt(e,t,"srcSet",n.srcSet,n,null),a&&yt(e,t,"src",n.src,n,null);return;case"input":Ve("invalid",e);var E=c=h=o=null,O=null,Y=null;for(a in n)if(n.hasOwnProperty(a)){var W=n[a];if(W!=null)switch(a){case"name":o=W;break;case"type":h=W;break;case"checked":O=W;break;case"defaultChecked":Y=W;break;case"value":c=W;break;case"defaultValue":E=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(l(137,t));break;default:yt(e,t,a,W,n,null)}}Da(e,c,E,O,Y,h,o,!1);return;case"select":Ve("invalid",e),a=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":a=E;default:yt(e,t,o,E,n,null)}t=c,n=h,e.multiple=!!a,t!=null?Gt(e,!!a,t,!1):n!=null&&Gt(e,!!a,n,!0);return;case"textarea":Ve("invalid",e),c=o=a=null;for(h in n)if(n.hasOwnProperty(h)&&(E=n[h],E!=null))switch(h){case"value":a=E;break;case"defaultValue":o=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(l(91));break;default:yt(e,t,h,E,n,null)}Sa(e,a,o,c);return;case"option":for(O in n)if(n.hasOwnProperty(O)&&(a=n[O],a!=null))switch(O){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:yt(e,t,O,a,n,null)}return;case"dialog":Ve("beforetoggle",e),Ve("toggle",e),Ve("cancel",e),Ve("close",e);break;case"iframe":case"object":Ve("load",e);break;case"video":case"audio":for(a=0;a<_s.length;a++)Ve(_s[a],e);break;case"image":Ve("error",e),Ve("load",e);break;case"details":Ve("toggle",e);break;case"embed":case"source":case"link":Ve("error",e),Ve("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(Y in n)if(n.hasOwnProperty(Y)&&(a=n[Y],a!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:yt(e,t,Y,a,n,null)}return;default:if(_e(t)){for(W in n)n.hasOwnProperty(W)&&(a=n[W],a!==void 0&&Jc(e,t,W,a,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(a=n[E],a!=null&&yt(e,t,E,a,n,null))}function kv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,E=null,O=null,Y=null,W=null;for(Z in n){var ie=n[Z];if(n.hasOwnProperty(Z)&&ie!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":O=ie;default:a.hasOwnProperty(Z)||yt(e,t,Z,null,a,ie)}}for(var F in a){var Z=a[F];if(ie=n[F],a.hasOwnProperty(F)&&(Z!=null||ie!=null))switch(F){case"type":c=Z;break;case"name":o=Z;break;case"checked":Y=Z;break;case"defaultChecked":W=Z;break;case"value":h=Z;break;case"defaultValue":E=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(l(137,t));break;default:Z!==ie&&yt(e,t,F,Z,a,ie)}}li(e,h,E,O,Y,W,c,o);return;case"select":Z=h=E=F=null;for(c in n)if(O=n[c],n.hasOwnProperty(c)&&O!=null)switch(c){case"value":break;case"multiple":Z=O;default:a.hasOwnProperty(c)||yt(e,t,c,null,a,O)}for(o in a)if(c=a[o],O=n[o],a.hasOwnProperty(o)&&(c!=null||O!=null))switch(o){case"value":F=c;break;case"defaultValue":E=c;break;case"multiple":h=c;default:c!==O&&yt(e,t,o,c,a,O)}t=E,n=h,a=Z,F!=null?Gt(e,!!n,F,!1):!!a!=!!n&&(t!=null?Gt(e,!!n,t,!0):Gt(e,!!n,n?[]:"",!1));return;case"textarea":Z=F=null;for(E in n)if(o=n[E],n.hasOwnProperty(E)&&o!=null&&!a.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:yt(e,t,E,null,a,o)}for(h in a)if(o=a[h],c=n[h],a.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":F=o;break;case"defaultValue":Z=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&yt(e,t,h,o,a,c)}La(e,F,Z);return;case"option":for(var Te in n)if(F=n[Te],n.hasOwnProperty(Te)&&F!=null&&!a.hasOwnProperty(Te))switch(Te){case"selected":e.selected=!1;break;default:yt(e,t,Te,null,a,F)}for(O in a)if(F=a[O],Z=n[O],a.hasOwnProperty(O)&&F!==Z&&(F!=null||Z!=null))switch(O){case"selected":e.selected=F&&typeof F!="function"&&typeof F!="symbol";break;default:yt(e,t,O,F,a,Z)}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 Ue in n)F=n[Ue],n.hasOwnProperty(Ue)&&F!=null&&!a.hasOwnProperty(Ue)&&yt(e,t,Ue,null,a,F);for(Y in a)if(F=a[Y],Z=n[Y],a.hasOwnProperty(Y)&&F!==Z&&(F!=null||Z!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(l(137,t));break;default:yt(e,t,Y,F,a,Z)}return;default:if(_e(t)){for(var vt in n)F=n[vt],n.hasOwnProperty(vt)&&F!==void 0&&!a.hasOwnProperty(vt)&&Jc(e,t,vt,void 0,a,F);for(W in a)F=a[W],Z=n[W],!a.hasOwnProperty(W)||F===Z||F===void 0&&Z===void 0||Jc(e,t,W,F,a,Z);return}}for(var j in n)F=n[j],n.hasOwnProperty(j)&&F!=null&&!a.hasOwnProperty(j)&&yt(e,t,j,null,a,F);for(ie in a)F=a[ie],Z=n[ie],!a.hasOwnProperty(ie)||F===Z||F==null&&Z==null||yt(e,t,ie,F,a,Z)}function em(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Mv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],c=o.transferSize,h=o.initiatorType,E=o.duration;if(c&&E&&em(h)){for(h=0,E=o.responseEnd,a+=1;a<n.length;a++){var O=n[a],Y=O.startTime;if(Y>E)break;var W=O.transferSize,ie=O.initiatorType;W&&em(ie)&&(O=O.responseEnd,h+=W*(O<E?1:(E-Y)/(O-Y)))}if(--a,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 Wc=null,eu=null;function Hr(e){return e.nodeType===9?e:e.ownerDocument}function tm(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 nm(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 tu(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 nu=null;function Cv(){var e=window.event;return e&&e.type==="popstate"?e===nu?!1:(nu=e,!0):(nu=null,!1)}var am=typeof setTimeout=="function"?setTimeout:void 0,Dv=typeof clearTimeout=="function"?clearTimeout:void 0,im=typeof Promise=="function"?Promise:void 0,Lv=typeof queueMicrotask=="function"?queueMicrotask:typeof im<"u"?function(e){return im.resolve(null).then(e).catch(zv)}:am;function zv(e){setTimeout(function(){throw e})}function Ni(e){return e==="head"}function lm(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),Cl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Ts(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ts(n);for(var c=n.firstChild;c;){var h=c.nextSibling,E=c.nodeName;c[va]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&Ts(e.ownerDocument.body);n=o}while(n);Cl(t)}function sm(e,t){var n=e;e=0;do{var a=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||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function au(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":au(n),ni(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Uv(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[va])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(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=ra(e.nextSibling),e===null)break}return null}function Bv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ra(e.nextSibling),e===null))return null;return e}function rm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ra(e.nextSibling),e===null))return null;return e}function iu(e){return e.data==="$?"||e.data==="$~"}function lu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function jv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function ra(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 su=null;function om(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ra(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function cm(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 um(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 Ts(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ni(e)}var oa=new Map,fm=new Set;function qr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Qa=ne.d;ne.d={f:Iv,r:Hv,D:qv,C:Gv,L:$v,m:Yv,X:Kv,S:Fv,M:Pv};function Iv(){var e=Qa.f(),t=Cr();return e||t}function Hv(e){var t=ua(e);t!==null&&t.tag===5&&t.type==="form"?Rh(t):Qa.r(e)}var Ol=typeof document>"u"?null:document;function dm(e,t,n){var a=Ol;if(a&&typeof t=="string"&&t){var o=En(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),fm.has(o)||(fm.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),pn(t,"link",e),dt(t),a.head.appendChild(t)))}}function qv(e){Qa.D(e),dm("dns-prefetch",e,null)}function Gv(e,t){Qa.C(e,t),dm("preconnect",e,t)}function $v(e,t,n){Qa.L(e,t,n);var a=Ol;if(a&&e&&t){var o='link[rel="preload"][as="'+En(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+En(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+En(n.imageSizes)+'"]')):o+='[href="'+En(e)+'"]';var c=o;switch(t){case"style":c=kl(e);break;case"script":c=Ml(e)}oa.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),oa.set(c,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(Ns(c))||t==="script"&&a.querySelector(xs(c))||(t=a.createElement("link"),pn(t,"link",e),dt(t),a.head.appendChild(t)))}}function Yv(e,t){Qa.m(e,t);var n=Ol;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+En(a)+'"][href="'+En(e)+'"]',c=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ml(e)}if(!oa.has(c)&&(e=v({rel:"modulepreload",href:e},t),oa.set(c,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(xs(c)))return}a=n.createElement("link"),pn(a,"link",e),dt(a),n.head.appendChild(a)}}}function Fv(e,t,n){Qa.S(e,t,n);var a=Ol;if(a&&e){var o=_a(a).hoistableStyles,c=kl(e);t=t||"default";var h=o.get(c);if(!h){var E={loading:0,preload:null};if(h=a.querySelector(Ns(c)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=oa.get(c))&&ru(e,n);var O=h=a.createElement("link");dt(O),pn(O,"link",e),O._p=new Promise(function(Y,W){O.onload=Y,O.onerror=W}),O.addEventListener("load",function(){E.loading|=1}),O.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Gr(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:E},o.set(c,h)}}}function Kv(e,t){Qa.X(e,t);var n=Ol;if(n&&e){var a=_a(n).hoistableScripts,o=Ml(e),c=a.get(o);c||(c=n.querySelector(xs(o)),c||(e=v({src:e,async:!0},t),(t=oa.get(o))&&ou(e,t),c=n.createElement("script"),dt(c),pn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function Pv(e,t){Qa.M(e,t);var n=Ol;if(n&&e){var a=_a(n).hoistableScripts,o=Ml(e),c=a.get(o);c||(c=n.querySelector(xs(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=oa.get(o))&&ou(e,t),c=n.createElement("script"),dt(c),pn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function hm(e,t,n,a){var o=(o=xe.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=_a(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{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=_a(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(Ns(e)))&&!c._p&&(h.instance=c,h.state.loading=5),oa.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},oa.set(e,n),c||Zv(o,e,n,h.state))),t&&a===null)throw Error(l(528,""));return h}if(t&&a!==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=Ml(n),n=_a(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function kl(e){return'href="'+En(e)+'"'}function Ns(e){return'link[rel="stylesheet"]['+e+"]"}function pm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Zv(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),pn(t,"link",n),dt(t),e.head.appendChild(t))}function Ml(e){return'[src="'+En(e)+'"]'}function xs(e){return"script[async]"+e}function mm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+En(n.href)+'"]');if(a)return t.instance=a,dt(a),a;var o=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),dt(a),pn(a,"style",o),Gr(a,n.precedence,e),t.instance=a;case"stylesheet":o=kl(n.href);var c=e.querySelector(Ns(o));if(c)return t.state.loading|=4,t.instance=c,dt(c),c;a=pm(n),(o=oa.get(o))&&ru(a,o),c=(e.ownerDocument||e).createElement("link"),dt(c);var h=c;return h._p=new Promise(function(E,O){h.onload=E,h.onerror=O}),pn(c,"link",a),t.state.loading|=4,Gr(c,n.precedence,e),t.instance=c;case"script":return c=Ml(n.src),(o=e.querySelector(xs(c)))?(t.instance=o,dt(o),o):(a=n,(o=oa.get(c))&&(a=v({},n),ou(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),dt(o),pn(o,"link",a),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&&(a=t.instance,t.state.loading|=4,Gr(a,n.precedence,e));return t.instance}function Gr(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,c=o,h=0;h<a.length;h++){var E=a[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 ru(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ou(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 gm(e,t,n){if($r===null){var a=new Map,o=$r=new Map;o.set(n,a)}else o=$r,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[va]||c[Mt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var E=a.get(h);E?E.push(c):a.set(h,[c])}}return a}function bm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Xv(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 ym(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Qv(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=kl(a.href),c=t.querySelector(Ns(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,dt(c);return}c=t.ownerDocument||t,a=pm(a),(o=oa.get(o))&&ru(a,o),c=c.createElement("link"),dt(c);var h=c;h._p=new Promise(function(E,O){h.onload=E,h.onerror=O}),pn(c,"link",a),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 cu=0;function Vv(e,t){return e.stylesheets&&e.count===0&&Kr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Kr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&cu===0&&(cu=62500*Mv());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>cu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),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(Jv,e),Fr=null,Yr.call(e))}function Jv(e,t){if(!(t.state.loading&4)){var n=Fr.get(e);if(n)var a=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),a=h)}a&&n.set(null,a)}o=t.instance,h=o.getAttribute("data-precedence"),c=n.get(h)||a,c===a&&n.set(null,o),n.set(h,o),this.count++,a=Yr.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var ws={$$typeof:L,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function Wv(e,t,n,a,o,c,h,E,O){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=de(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=de(0),this.hiddenUpdates=de(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function vm(e,t,n,a,o,c,h,E,O,Y,W,ie){return e=new Wv(e,t,n,h,O,Y,W,ie,E),t=1,c===!0&&(t|=24),c=Yn(3,null,null,t),e.current=c,c.stateNode=e,t=Go(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},Ko(c),e}function Em(e){return e?(e=ol,e):ol}function _m(e,t,n,a,o,c){o=Em(o),a.context===null?a.context=o:a.pendingContext=o,a=hi(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=pi(e,a,t),n!==null&&(Hn(n,e,t),is(n,e,t))}function Sm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function uu(e,t){Sm(e,t),(e=e.alternate)&&Sm(e,t)}function Tm(e){if(e.tag===13||e.tag===31){var t=Bi(e,67108864);t!==null&&Hn(t,e,67108864),uu(e,67108864)}}function Nm(e){if(e.tag===13||e.tag===31){var t=Xn();t=gt(t);var n=Bi(e,t);n!==null&&Hn(n,e,t),uu(e,t)}}var Pr=!0;function eE(e,t,n,a){var o=I.T;I.T=null;var c=ne.p;try{ne.p=2,fu(e,t,n,a)}finally{ne.p=c,I.T=o}}function tE(e,t,n,a){var o=I.T;I.T=null;var c=ne.p;try{ne.p=8,fu(e,t,n,a)}finally{ne.p=c,I.T=o}}function fu(e,t,n,a){if(Pr){var o=du(a);if(o===null)Vc(e,t,a,Zr,n),wm(e,a);else if(aE(o,e,t,n,a))a.stopPropagation();else if(wm(e,a),t&4&&-1<nE.indexOf(e)){for(;o!==null;){var c=ua(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=Ct(c.pendingLanes);if(h!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;h;){var O=1<<31-Nt(h);E.entanglements[1]|=O,h&=~O}wa(c),(ut&6)===0&&(kr=Ke()+500,Es(0))}}break;case 31:case 13:E=Bi(c,2),E!==null&&Hn(E,c,2),Cr(),uu(c,2)}if(c=du(a),c===null&&Vc(e,t,a,Zr,n),c===o)break;o=c}o!==null&&a.stopPropagation()}else Vc(e,t,a,null,n)}}function du(e){return e=Ce(e),hu(e)}var Zr=null;function hu(e){if(Zr=null,e=un(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=y(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Zr=e,null}function xm(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(Ut()){case mt:return 2;case bn:return 8;case yn:case kn:return 32;case Mn:return 268435456;default:return 32}default:return 32}}var pu=!1,xi=null,wi=null,Ai=null,As=new Map,Rs=new Map,Ri=[],nE="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 wm(e,t){switch(e){case"focusin":case"focusout":xi=null;break;case"dragenter":case"dragleave":wi=null;break;case"mouseover":case"mouseout":Ai=null;break;case"pointerover":case"pointerout":As.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rs.delete(t.pointerId)}}function Os(e,t,n,a,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[o]},t!==null&&(t=ua(t),t!==null&&Tm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function aE(e,t,n,a,o){switch(t){case"focusin":return xi=Os(xi,e,t,n,a,o),!0;case"dragenter":return wi=Os(wi,e,t,n,a,o),!0;case"mouseover":return Ai=Os(Ai,e,t,n,a,o),!0;case"pointerover":var c=o.pointerId;return As.set(c,Os(As.get(c)||null,e,t,n,a,o)),!0;case"gotpointercapture":return c=o.pointerId,Rs.set(c,Os(Rs.get(c)||null,e,t,n,a,o)),!0}return!1}function Am(e){var t=un(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,ei(e.priority,function(){Nm(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,ei(e.priority,function(){Nm(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=du(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);ge=a,n.target.dispatchEvent(a),ge=null}else return t=ua(n),t!==null&&Tm(t),e.blockedOn=n,!1;t.shift()}return!0}function Rm(e,t,n){Xr(e)&&n.delete(t)}function iE(){pu=!1,xi!==null&&Xr(xi)&&(xi=null),wi!==null&&Xr(wi)&&(wi=null),Ai!==null&&Xr(Ai)&&(Ai=null),As.forEach(Rm),Rs.forEach(Rm)}function Qr(e,t){e.blockedOn===t&&(e.blockedOn=null,pu||(pu=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,iE)))}var Vr=null;function Om(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],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(hu(a||n)===null)continue;break}var c=ua(n);c!==null&&(e.splice(t,3),t-=3,dc(c,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function Cl(e){function t(O){return Qr(O,e)}xi!==null&&Qr(xi,e),wi!==null&&Qr(wi,e),Ai!==null&&Qr(Ai,e),As.forEach(t),Rs.forEach(t);for(var n=0;n<Ri.length;n++){var a=Ri[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ri.length&&(n=Ri[0],n.blockedOn===null);)Am(n),n.blockedOn===null&&Ri.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],c=n[a+1],h=o[en]||null;if(typeof c=="function")h||Om(n);else if(h){var E=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[en]||null)E=h.formAction;else if(hu(o)!==null)continue}else E=h.action;typeof E=="function"?n[a+1]=E:(n.splice(a,3),a-=3),Om(n)}}}function km(){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),a||setTimeout(n,20)}function n(){if(!a&&!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 a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function mu(e){this._internalRoot=e}Jr.prototype.render=mu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var n=t.current,a=Xn();_m(n,a,e,t,null,null)},Jr.prototype.unmount=mu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_m(e.current,2,null,e,null,null),Cr(),t[lt]=null}};function Jr(e){this._internalRoot=e}Jr.prototype.unstable_scheduleHydration=function(e){if(e){var t=ya();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ri.length&&t!==0&&t<Ri[n].priority;n++);Ri.splice(n,0,e),n===0&&Am(e)}};var Mm=i.version;if(Mm!=="19.2.8")throw Error(l(527,Mm,"19.2.8"));ne.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?b(e):null,e=e===null?null:e.stateNode,e};var lE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wr.isDisabled&&Wr.supportsFiber)try{on=Wr.inject(lE),St=Wr}catch{}}return Ms.createRoot=function(e,t){if(!u(e))throw Error(l(299));var n=!1,a="",o=jh,c=Ih,h=Hh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=vm(e,1,!1,null,null,n,a,null,o,c,h,km),e[lt]=t.current,Qc(e),new mu(t)},Ms.hydrateRoot=function(e,t,n){if(!u(e))throw Error(l(299));var a=!1,o="",c=jh,h=Ih,E=Hh,O=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(E=n.onRecoverableError),n.formState!==void 0&&(O=n.formState)),t=vm(e,1,!0,t,n??null,a,o,O,c,h,E,km),t.context=Em(null),n=t.current,a=Xn(),a=gt(a),o=hi(a),o.callback=null,pi(n,o,a),n=a,t.current.lanes=n,Le(t,n),wa(t),e[lt]=t.current,Qc(e),new Jr(t)},Ms.version="19.2.8",Ms}var qm;function bE(){if(qm)return yu.exports;qm=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(i){console.error(i)}}return s(),yu.exports=gE(),yu.exports}var yE=bE(),Pt;(function(s){s.INSERT="insert",s.DELETE="delete",s.CONTEXT="context"})(Pt||(Pt={}));const vE={LINE_BY_LINE:"line-by-line"},EE={NONE:"none"},_E={WORD:"word"};var jl;(function(s){s.AUTO="auto",s.DARK="dark",s.LIGHT="light"})(jl||(jl={}));const SE=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],TE=RegExp("["+SE.join("\\")+"]","g");function NE(s){return s.replace(TE,"\\$&")}function Gm(s){return s&&s.replace(/\\/g,"/")}function xE(s){let i,r,l,u=0;for(i=0,l=s.length;i<l;i++)r=s.charCodeAt(i),u=(u<<5)-u+r,u|=0;return u}function Tb(s){const i=s.length;let r=-1/0;for(let l=0;l<i;l++)r=Math.max(r,s[l]);return r}function $m(s,i){const r=s.split(".");return r.length>1?r[r.length-1]:i}function Ym(s,i){return i.reduce((r,l)=>r||s.startsWith(l),!1)}const Fm=["a/","b/","i/","w/","c/","o/"];function Ci(s,i,r){const l=r!==void 0?[...Fm,r]:Fm,u=i?new RegExp(`^${NE(i)} "?(.+?)"?$`):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 wE(s,i){return Ci(s,"---",i)}function AE(s,i){return Ci(s,"+++",i)}function RE(s,i={}){const r=[];let l=null,u=null,d=null,p=null,y=null,g=null,m=null;const b="--- ",v="+++ ",_="@@",x=/^old mode (\d{6})/,T=/^new mode (\d{6})/,w=/^deleted file mode (\d{6})/,A=/^new file mode (\d{6})/,U=/^copy from "?(.+)"?/,G=/^copy to "?(.+)"?/,L=/^rename from "?(.+)"?/,re=/^rename to "?(.+)"?/,H=/^similarity index (\d+)%/,P=/^dissimilarity index (\d+)%/,le=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,k=/^Binary files (.*) and (.*) differ/,z=/^GIT binary patch/,Q=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,K=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,fe=/^new file mode (\d{6})/,we=/^deleted file mode (\d{6}),(\d{6})/,Ae=s.replace(/\/g,"").replace(/\r\n?/g,`
|
|
50
50
|
`).split(`
|
|
51
|
-
`);function he(){u!==null&&l!==null&&(l.blocks.push(u),u=null)}function I(){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 ne(){he(),I(),l={blocks:[],deletedLines:0,addedLines:0}}function oe(S){he();let D;l!==null&&((D=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(S))?(l.isCombined=!1,d=parseInt(D[1],10),y=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),y=parseInt(D[3],10)):(S.startsWith(_)&&console.error("Failed to parse lines, starting in 0!"),d=0,y=0,l.isCombined=!1)),u={lines:[],oldStartLine:d,oldStartLine2:p,newStartLine:y,header:S}}function ve(S){if(l===null||u===null||d===null||y===null)return;const D={content:S},q=l.isCombined?["+ "," +","++"]:["+"],ue=l.isCombined?["- "," -","--"]:["-"];$m(S,q)?(l.addedLines++,D.type=Pt.INSERT,D.oldNumber=void 0,D.newNumber=y++):$m(S,ue)?(l.deletedLines++,D.type=Pt.DELETE,D.oldNumber=d++,D.newNumber=void 0):(D.type=Pt.CONTEXT,D.oldNumber=d++,D.newNumber=y++),u.lines.push(D)}function Se(S,D){let q=D;for(;q<Ae.length-3;){if(S.startsWith("diff"))return!1;if(Ae[q].startsWith(b)&&Ae[q+1].startsWith(v)&&Ae[q+2].startsWith(_))return!0;q++}return!1}return Ae.forEach((S,D)=>{if(!S||S.startsWith("*"))return;let q;const ue=Ae[D-1],pe=Ae[D+1],xe=Ae[D+2];if(S.startsWith("diff --git")||S.startsWith("diff --combined")){if(ne(),(q=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(S))&&(g=Ci(q[1],void 0,i.dstPrefix),m=Ci(q[2],void 0,i.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isGitDiff=!0;return}if(S.startsWith("Binary files")&&!(l!=null&&l.isGitDiff)){if(ne(),(q=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(S))&&(g=Ci(q[1],void 0,i.dstPrefix),m=Ci(q[2],void 0,i.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isBinary=!0;return}if((!l||!l.isGitDiff&&l&&S.startsWith(b)&&pe.startsWith(v)&&xe.startsWith(_))&&ne(),l!=null&&l.isTooBig)return;if(l&&(typeof i.diffMaxChanges=="number"&&l.addedLines+l.deletedLines>i.diffMaxChanges||typeof i.diffMaxLineLength=="number"&&S.length>i.diffMaxLineLength)){l.isTooBig=!0,l.addedLines=0,l.deletedLines=0,l.blocks=[],u=null;const Oe=typeof i.diffTooBigMessage=="function"?i.diffTooBigMessage(r.length):"Diff too big to be displayed";oe(Oe);return}if(S.startsWith(b)&&pe.startsWith(v)||S.startsWith(v)&&ue.startsWith(b)){if(l&&!l.oldName&&S.startsWith("--- ")&&(q=xE(S,i.srcPrefix))){l.oldName=q,l.language=Gm(l.oldName,l.language);return}if(l&&!l.newName&&S.startsWith("+++ ")&&(q=wE(S,i.dstPrefix))){l.newName=q,l.language=Gm(l.newName,l.language);return}}if(l&&(S.startsWith(_)||l.isGitDiff&&l.oldName&&l.newName&&!u)){oe(S);return}if(u&&(S.startsWith("+")||S.startsWith("-")||S.startsWith(" "))){ve(S);return}const me=!Se(S,D);if(l===null)throw new Error("Where is my file !!!");(q=x.exec(S))?l.oldMode=q[1]:(q=N.exec(S))?l.newMode=q[1]:(q=A.exec(S))?(l.deletedFileMode=q[1],l.isDeleted=!0):(q=w.exec(S))?(l.newFileMode=q[1],l.isNew=!0):(q=U.exec(S))?(me&&(l.oldName=q[1]),l.isCopy=!0):(q=G.exec(S))?(me&&(l.newName=q[1]),l.isCopy=!0):(q=L.exec(S))?(me&&(l.oldName=q[1]),l.isRename=!0):(q=re.exec(S))?(me&&(l.newName=q[1]),l.isRename=!0):(q=k.exec(S))?(l.isBinary=!0,l.oldName=Ci(q[1],void 0,i.srcPrefix),l.newName=Ci(q[2],void 0,i.dstPrefix),oe("Binary file")):z.test(S)?(l.isBinary=!0,oe(S)):(q=H.exec(S))?l.unchangedPercentage=parseInt(q[1],10):(q=P.exec(S))?l.changedPercentage=parseInt(q[1],10):(q=le.exec(S))?(l.checksumBefore=q[1],l.checksumAfter=q[2],q[3]&&(l.mode=q[3])):(q=Q.exec(S))?(l.checksumBefore=[q[2],q[3]],l.checksumAfter=q[1]):(q=K.exec(S))?(l.oldMode=[q[2],q[3]],l.newMode=q[1]):(q=fe.exec(S))?(l.newFileMode=q[1],l.isNew=!0):(q=we.exec(S))&&(l.deletedFileMode=q[1],l.isDeleted=!0)}),he(),I(),r}class Tb{diff(i,r,l={}){let u;typeof l=="function"?(u=l,l={}):"callback"in l&&(u=l.callback);const d=this.castInput(i,l),p=this.castInput(r,l),y=this.removeEmpty(this.tokenize(d,l)),g=this.removeEmpty(this.tokenize(p,l));return this.diffWithOptionsObj(y,g,l,u)}diffWithOptionsObj(i,r,l,u){var d;const p=G=>{if(G=this.postProcess(G,l),u){setTimeout(function(){u(G)},0);return}else return G},y=r.length,g=i.length;let m=1,b=y+g;l.maxEditLength!=null&&(b=Math.min(b,l.maxEditLength));const v=(d=l.timeout)!==null&&d!==void 0?d:1/0,_=Date.now()+v,x=[{oldPos:-1,lastComponent:void 0}];let N=this.extractCommon(x[0],r,i,0,l);if(x[0].oldPos+1>=g&&N+1>=y)return p(this.buildValues(x[0].lastComponent,r,i));let A=-1/0,w=1/0;const U=()=>{for(let G=Math.max(A,-m);G<=Math.min(w,m);G+=2){let L;const re=x[G-1],H=x[G+1];re&&(x[G-1]=void 0);let P=!1;if(H){const k=H.oldPos-G;P=H&&0<=k&&k<y}const le=re&&re.oldPos+1<g;if(!P&&!le){x[G]=void 0;continue}if(!le||P&&re.oldPos<H.oldPos?L=this.addToPath(H,!0,!1,0,l):L=this.addToPath(re,!1,!0,1,l),N=this.extractCommon(L,r,i,G,l),L.oldPos+1>=g&&N+1>=y)return p(this.buildValues(L.lastComponent,r,i))||!0;x[G]=L,L.oldPos+1>=g&&(w=Math.min(w,G-1)),N+1>=y&&(A=Math.max(A,G+1))}m++};if(u)(function G(){setTimeout(function(){if(m>b||Date.now()>_)return u(void 0);U()||G()},0)})();else for(;m<=b&&Date.now()<=_;){const G=U();if(G)return G}}addToPath(i,r,l,u,d){const p=i.lastComponent;return p&&!d.oneChangePerToken&&p.added===r&&p.removed===l?{oldPos:i.oldPos+u,lastComponent:{count:p.count+1,added:r,removed:l,previousComponent:p.previousComponent}}:{oldPos:i.oldPos+u,lastComponent:{count:1,added:r,removed:l,previousComponent:p}}}extractCommon(i,r,l,u,d){const p=r.length,y=l.length;let g=i.oldPos,m=g-u,b=0;for(;m+1<p&&g+1<y&&this.equals(l[g+1],r[m+1],d);)m++,g++,b++,d.oneChangePerToken&&(i.lastComponent={count:1,previousComponent:i.lastComponent,added:!1,removed:!1});return b&&!d.oneChangePerToken&&(i.lastComponent={count:b,previousComponent:i.lastComponent,added:!1,removed:!1}),i.oldPos=g,m}equals(i,r,l){return l.comparator?l.comparator(i,r):i===r||!!l.ignoreCase&&i.toLowerCase()===r.toLowerCase()}removeEmpty(i){const r=[];for(let l=0;l<i.length;l++)i[l]&&r.push(i[l]);return r}castInput(i,r){return i}tokenize(i,r){return Array.from(i)}join(i){return i.join("")}postProcess(i,r){return i}get useLongestToken(){return!1}buildValues(i,r,l){const u=[];let d;for(;i;)u.push(i),d=i.previousComponent,delete i.previousComponent,i=d;u.reverse();const p=u.length;let y=0,g=0,m=0;for(;y<p;y++){const b=u[y];if(b.removed)b.value=this.join(l.slice(m,m+b.count)),m+=b.count;else{if(!b.added&&this.useLongestToken){let v=r.slice(g,g+b.count);v=v.map(function(_,x){const N=l[m+x];return N.length>_.length?N:_}),b.value=this.join(v)}else b.value=this.join(r.slice(g,g+b.count));g+=b.count,b.added||(m+=b.count)}}return u}}class RE extends Tb{}const OE=new RE;function kE(s,i,r){return OE.diff(s,i,r)}const Fm="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 ME extends Tb{tokenize(i){const r=new RegExp(`(\\r?\\n)|[${Fm}]+|[^\\S\\n\\r]+|[^${Fm}]`,"ug");return i.match(r)||[]}}const CE=new ME;function DE(s,i,r){return CE.diff(s,i,r)}function LE(s,i){if(s.length===0)return i.length;if(i.length===0)return s.length;const r=[];let l;for(l=0;l<=i.length;l++)r[l]=[l];let u;for(u=0;u<=s.length;u++)r[0][u]=u;for(l=1;l<=i.length;l++)for(u=1;u<=s.length;u++)i.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[i.length][s.length]}function Bf(s){return(i,r)=>{const l=s(i).trim(),u=s(r).trim();return LE(l,u)/(l.length+u.length)}}function jf(s){function i(l,u,d=new Map){let p=1/0,y;for(let g=0;g<l.length;++g)for(let m=0;m<u.length;++m){const b=JSON.stringify([l[g],u[m]]);let v;d.has(b)&&(v=d.get(b))||(v=s(l[g],u[m]),d.set(b,v)),v<p&&(p=v,y={indexA:g,indexB:m,score:p})}return y}function r(l,u,d=0,p=new Map){const y=i(l,u,p);if(!y||l.length+u.length<3)return[[l,u]];const g=l.slice(0,y.indexA),m=u.slice(0,y.indexB),b=[l[y.indexA]],v=[u[y.indexB]],_=y.indexA+1,x=y.indexB+1,N=l.slice(_),A=u.slice(x),w=r(g,m,d+1,p),U=r(b,v,d+1,p),G=r(N,A,d+1,p);let L=U;return(y.indexA>0||y.indexB>0)&&(L=w.concat(L)),(l.length>_||u.length>x)&&(L=L.concat(G)),L}return r}const On={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},ho={matching:vE.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:EE.WORD,colorScheme:jl.LIGHT},Aa="/",Nb=Bf(s=>s.value),zE=jf(Nb);function Su(s){return s.indexOf("dev/null")!==-1}function UE(s){return s.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function BE(s){return s.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function ro(s){switch(s){case Pt.CONTEXT:return On.CONTEXT;case Pt.INSERT:return On.INSERTS;case Pt.DELETE:return On.DELETES}}function If(s){switch(s){case jl.DARK:return"d2h-dark-color-scheme";case jl.AUTO:return"d2h-auto-color-scheme";case jl.LIGHT:default:return"d2h-light-color-scheme"}}function jE(s){return s?2:1}function Il(s){return s.slice(0).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function Oa(s,i,r=!0){const l=jE(i);return{prefix:s.substring(0,l),content:r?Il(s.substring(l)):s.substring(l)}}function po(s){const i=qm(s.oldName),r=qm(s.newName);if(i!==r&&!Su(i)&&!Su(r)){const l=[],u=[],d=i.split(Aa),p=r.split(Aa),y=d.length,g=p.length;let m=0,b=y-1,v=g-1;for(;m<b&&m<v&&d[m]===p[m];)l.push(p[m]),m+=1;for(;b>m&&v>m&&d[b]===p[v];)u.unshift(p[v]),b-=1,v-=1;const _=l.join(Aa),x=u.join(Aa),N=d.slice(m,b+1).join(Aa),A=p.slice(m,v+1).join(Aa);return _.length&&x.length?_+Aa+"{"+N+" → "+A+"}"+Aa+x:_.length?_+Aa+"{"+N+" → "+A+"}":x.length?"{"+N+" → "+A+"}"+Aa+x:i+" → "+r}else return Su(r)?i:r}function Hf(s){return`d2h-${NE(po(s)).toString().slice(-6)}`}function qf(s){let i="file-changed";return s.isRename||s.isCopy?i="file-renamed":s.isNew?i="file-added":s.isDeleted?i="file-deleted":s.newName!==s.oldName&&(i="file-renamed"),i}function xb(s,i,r,l={}){const{matching:u,maxLineLengthHighlight:d,matchWordsThreshold:p,diffStyle:y}=Object.assign(Object.assign({},ho),l),g=Oa(s,r,!1),m=Oa(i,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 b=y==="char"?kE(g.content,m.content):DE(g.content,m.content),v=[];if(y==="word"&&u==="words"){const x=b.filter(w=>w.removed),N=b.filter(w=>w.added);zE(N,x).forEach(w=>{w[0].length===1&&w[1].length===1&&Nb(w[0][0],w[1][0])<p&&(v.push(w[0][0]),v.push(w[1][0]))})}const _=b.reduce((x,N)=>{const A=N.added?"ins":N.removed?"del":null,w=v.indexOf(N)>-1?' class="d2h-change"':"",U=Il(N.value);return A!==null?`${x}<${A}${w}>${U}</${A}>`:`${x}${U}`},"");return{oldLine:{prefix:g.prefix,content:UE(_)},newLine:{prefix:m.prefix,content:BE(_)}}}const Km="file-summary",IE="icon",HE={colorScheme:ho.colorScheme};class qE{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},HE),r)}render(i){const r=i.map(l=>this.hoganUtils.render(Km,"line",{fileHtmlId:Hf(l),oldName:l.oldName,newName:l.newName,fileName:po(l),deletedLines:"-"+l.deletedLines,addedLines:"+"+l.addedLines},{fileIcon:this.hoganUtils.template(IE,qf(l))})).join(`
|
|
52
|
-
`);return this.hoganUtils.render(
|
|
53
|
-
`);return this.hoganUtils.render(Cs,"wrapper",{colorScheme:
|
|
54
|
-
`)}applyLineGroupping(i){const r=[];let l=[],u=[];for(let d=0;d<i.lines.length;d++){const p=i.lines[d];(p.type!==Pt.INSERT&&u.length||p.type===Pt.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),p.type===Pt.CONTEXT?r.push([[p],[],[]]):p.type===Pt.INSERT&&l.length===0?r.push([[],[],[p]]):p.type===Pt.INSERT&&l.length>0?u.push(p):p.type===Pt.DELETE&&l.push(p)}return(l.length||u.length)&&(r.push([[],l,u]),l=[],u=[]),r}applyRematchMatching(i,r,l){const u=i.length*r.length,d=
|
|
55
|
-
`);return this.hoganUtils.render(Ds,"wrapper",{colorScheme:
|
|
51
|
+
`);function he(){u!==null&&l!==null&&(l.blocks.push(u),u=null)}function I(){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 ne(){he(),I(),l={blocks:[],deletedLines:0,addedLines:0}}function oe(S){he();let D;l!==null&&((D=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(S))?(l.isCombined=!1,d=parseInt(D[1],10),y=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),y=parseInt(D[3],10)):(S.startsWith(_)&&console.error("Failed to parse lines, starting in 0!"),d=0,y=0,l.isCombined=!1)),u={lines:[],oldStartLine:d,oldStartLine2:p,newStartLine:y,header:S}}function ve(S){if(l===null||u===null||d===null||y===null)return;const D={content:S},q=l.isCombined?["+ "," +","++"]:["+"],ue=l.isCombined?["- "," -","--"]:["-"];Ym(S,q)?(l.addedLines++,D.type=Pt.INSERT,D.oldNumber=void 0,D.newNumber=y++):Ym(S,ue)?(l.deletedLines++,D.type=Pt.DELETE,D.oldNumber=d++,D.newNumber=void 0):(D.type=Pt.CONTEXT,D.oldNumber=d++,D.newNumber=y++),u.lines.push(D)}function Se(S,D){let q=D;for(;q<Ae.length-3;){if(S.startsWith("diff"))return!1;if(Ae[q].startsWith(b)&&Ae[q+1].startsWith(v)&&Ae[q+2].startsWith(_))return!0;q++}return!1}return Ae.forEach((S,D)=>{if(!S||S.startsWith("*"))return;let q;const ue=Ae[D-1],pe=Ae[D+1],xe=Ae[D+2];if(S.startsWith("diff --git")||S.startsWith("diff --combined")){if(ne(),(q=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(S))&&(g=Ci(q[1],void 0,i.dstPrefix),m=Ci(q[2],void 0,i.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isGitDiff=!0;return}if(S.startsWith("Binary files")&&!(l!=null&&l.isGitDiff)){if(ne(),(q=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(S))&&(g=Ci(q[1],void 0,i.dstPrefix),m=Ci(q[2],void 0,i.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isBinary=!0;return}if((!l||!l.isGitDiff&&l&&S.startsWith(b)&&pe.startsWith(v)&&xe.startsWith(_))&&ne(),l!=null&&l.isTooBig)return;if(l&&(typeof i.diffMaxChanges=="number"&&l.addedLines+l.deletedLines>i.diffMaxChanges||typeof i.diffMaxLineLength=="number"&&S.length>i.diffMaxLineLength)){l.isTooBig=!0,l.addedLines=0,l.deletedLines=0,l.blocks=[],u=null;const Oe=typeof i.diffTooBigMessage=="function"?i.diffTooBigMessage(r.length):"Diff too big to be displayed";oe(Oe);return}if(S.startsWith(b)&&pe.startsWith(v)||S.startsWith(v)&&ue.startsWith(b)){if(l&&!l.oldName&&S.startsWith("--- ")&&(q=wE(S,i.srcPrefix))){l.oldName=q,l.language=$m(l.oldName,l.language);return}if(l&&!l.newName&&S.startsWith("+++ ")&&(q=AE(S,i.dstPrefix))){l.newName=q,l.language=$m(l.newName,l.language);return}}if(l&&(S.startsWith(_)||l.isGitDiff&&l.oldName&&l.newName&&!u)){oe(S);return}if(u&&(S.startsWith("+")||S.startsWith("-")||S.startsWith(" "))){ve(S);return}const me=!Se(S,D);if(l===null)throw new Error("Where is my file !!!");(q=x.exec(S))?l.oldMode=q[1]:(q=T.exec(S))?l.newMode=q[1]:(q=w.exec(S))?(l.deletedFileMode=q[1],l.isDeleted=!0):(q=A.exec(S))?(l.newFileMode=q[1],l.isNew=!0):(q=U.exec(S))?(me&&(l.oldName=q[1]),l.isCopy=!0):(q=G.exec(S))?(me&&(l.newName=q[1]),l.isCopy=!0):(q=L.exec(S))?(me&&(l.oldName=q[1]),l.isRename=!0):(q=re.exec(S))?(me&&(l.newName=q[1]),l.isRename=!0):(q=k.exec(S))?(l.isBinary=!0,l.oldName=Ci(q[1],void 0,i.srcPrefix),l.newName=Ci(q[2],void 0,i.dstPrefix),oe("Binary file")):z.test(S)?(l.isBinary=!0,oe(S)):(q=H.exec(S))?l.unchangedPercentage=parseInt(q[1],10):(q=P.exec(S))?l.changedPercentage=parseInt(q[1],10):(q=le.exec(S))?(l.checksumBefore=q[1],l.checksumAfter=q[2],q[3]&&(l.mode=q[3])):(q=Q.exec(S))?(l.checksumBefore=[q[2],q[3]],l.checksumAfter=q[1]):(q=K.exec(S))?(l.oldMode=[q[2],q[3]],l.newMode=q[1]):(q=fe.exec(S))?(l.newFileMode=q[1],l.isNew=!0):(q=we.exec(S))&&(l.deletedFileMode=q[1],l.isDeleted=!0)}),he(),I(),r}class Nb{diff(i,r,l={}){let u;typeof l=="function"?(u=l,l={}):"callback"in l&&(u=l.callback);const d=this.castInput(i,l),p=this.castInput(r,l),y=this.removeEmpty(this.tokenize(d,l)),g=this.removeEmpty(this.tokenize(p,l));return this.diffWithOptionsObj(y,g,l,u)}diffWithOptionsObj(i,r,l,u){var d;const p=G=>{if(G=this.postProcess(G,l),u){setTimeout(function(){u(G)},0);return}else return G},y=r.length,g=i.length;let m=1,b=y+g;l.maxEditLength!=null&&(b=Math.min(b,l.maxEditLength));const v=(d=l.timeout)!==null&&d!==void 0?d:1/0,_=Date.now()+v,x=[{oldPos:-1,lastComponent:void 0}];let T=this.extractCommon(x[0],r,i,0,l);if(x[0].oldPos+1>=g&&T+1>=y)return p(this.buildValues(x[0].lastComponent,r,i));let w=-1/0,A=1/0;const U=()=>{for(let G=Math.max(w,-m);G<=Math.min(A,m);G+=2){let L;const re=x[G-1],H=x[G+1];re&&(x[G-1]=void 0);let P=!1;if(H){const k=H.oldPos-G;P=H&&0<=k&&k<y}const le=re&&re.oldPos+1<g;if(!P&&!le){x[G]=void 0;continue}if(!le||P&&re.oldPos<H.oldPos?L=this.addToPath(H,!0,!1,0,l):L=this.addToPath(re,!1,!0,1,l),T=this.extractCommon(L,r,i,G,l),L.oldPos+1>=g&&T+1>=y)return p(this.buildValues(L.lastComponent,r,i))||!0;x[G]=L,L.oldPos+1>=g&&(A=Math.min(A,G-1)),T+1>=y&&(w=Math.max(w,G+1))}m++};if(u)(function G(){setTimeout(function(){if(m>b||Date.now()>_)return u(void 0);U()||G()},0)})();else for(;m<=b&&Date.now()<=_;){const G=U();if(G)return G}}addToPath(i,r,l,u,d){const p=i.lastComponent;return p&&!d.oneChangePerToken&&p.added===r&&p.removed===l?{oldPos:i.oldPos+u,lastComponent:{count:p.count+1,added:r,removed:l,previousComponent:p.previousComponent}}:{oldPos:i.oldPos+u,lastComponent:{count:1,added:r,removed:l,previousComponent:p}}}extractCommon(i,r,l,u,d){const p=r.length,y=l.length;let g=i.oldPos,m=g-u,b=0;for(;m+1<p&&g+1<y&&this.equals(l[g+1],r[m+1],d);)m++,g++,b++,d.oneChangePerToken&&(i.lastComponent={count:1,previousComponent:i.lastComponent,added:!1,removed:!1});return b&&!d.oneChangePerToken&&(i.lastComponent={count:b,previousComponent:i.lastComponent,added:!1,removed:!1}),i.oldPos=g,m}equals(i,r,l){return l.comparator?l.comparator(i,r):i===r||!!l.ignoreCase&&i.toLowerCase()===r.toLowerCase()}removeEmpty(i){const r=[];for(let l=0;l<i.length;l++)i[l]&&r.push(i[l]);return r}castInput(i,r){return i}tokenize(i,r){return Array.from(i)}join(i){return i.join("")}postProcess(i,r){return i}get useLongestToken(){return!1}buildValues(i,r,l){const u=[];let d;for(;i;)u.push(i),d=i.previousComponent,delete i.previousComponent,i=d;u.reverse();const p=u.length;let y=0,g=0,m=0;for(;y<p;y++){const b=u[y];if(b.removed)b.value=this.join(l.slice(m,m+b.count)),m+=b.count;else{if(!b.added&&this.useLongestToken){let v=r.slice(g,g+b.count);v=v.map(function(_,x){const T=l[m+x];return T.length>_.length?T:_}),b.value=this.join(v)}else b.value=this.join(r.slice(g,g+b.count));g+=b.count,b.added||(m+=b.count)}}return u}}class OE extends Nb{}const kE=new OE;function ME(s,i,r){return kE.diff(s,i,r)}const Km="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 CE extends Nb{tokenize(i){const r=new RegExp(`(\\r?\\n)|[${Km}]+|[^\\S\\n\\r]+|[^${Km}]`,"ug");return i.match(r)||[]}}const DE=new CE;function LE(s,i,r){return DE.diff(s,i,r)}function zE(s,i){if(s.length===0)return i.length;if(i.length===0)return s.length;const r=[];let l;for(l=0;l<=i.length;l++)r[l]=[l];let u;for(u=0;u<=s.length;u++)r[0][u]=u;for(l=1;l<=i.length;l++)for(u=1;u<=s.length;u++)i.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[i.length][s.length]}function jf(s){return(i,r)=>{const l=s(i).trim(),u=s(r).trim();return zE(l,u)/(l.length+u.length)}}function If(s){function i(l,u,d=new Map){let p=1/0,y;for(let g=0;g<l.length;++g)for(let m=0;m<u.length;++m){const b=JSON.stringify([l[g],u[m]]);let v;d.has(b)&&(v=d.get(b))||(v=s(l[g],u[m]),d.set(b,v)),v<p&&(p=v,y={indexA:g,indexB:m,score:p})}return y}function r(l,u,d=0,p=new Map){const y=i(l,u,p);if(!y||l.length+u.length<3)return[[l,u]];const g=l.slice(0,y.indexA),m=u.slice(0,y.indexB),b=[l[y.indexA]],v=[u[y.indexB]],_=y.indexA+1,x=y.indexB+1,T=l.slice(_),w=u.slice(x),A=r(g,m,d+1,p),U=r(b,v,d+1,p),G=r(T,w,d+1,p);let L=U;return(y.indexA>0||y.indexB>0)&&(L=A.concat(L)),(l.length>_||u.length>x)&&(L=L.concat(G)),L}return r}const On={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},ho={matching:EE.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:_E.WORD,colorScheme:jl.LIGHT},Aa="/",xb=jf(s=>s.value),UE=If(xb);function Su(s){return s.indexOf("dev/null")!==-1}function BE(s){return s.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function jE(s){return s.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function ro(s){switch(s){case Pt.CONTEXT:return On.CONTEXT;case Pt.INSERT:return On.INSERTS;case Pt.DELETE:return On.DELETES}}function Hf(s){switch(s){case jl.DARK:return"d2h-dark-color-scheme";case jl.AUTO:return"d2h-auto-color-scheme";case jl.LIGHT:default:return"d2h-light-color-scheme"}}function IE(s){return s?2:1}function Il(s){return s.slice(0).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function Oa(s,i,r=!0){const l=IE(i);return{prefix:s.substring(0,l),content:r?Il(s.substring(l)):s.substring(l)}}function po(s){const i=Gm(s.oldName),r=Gm(s.newName);if(i!==r&&!Su(i)&&!Su(r)){const l=[],u=[],d=i.split(Aa),p=r.split(Aa),y=d.length,g=p.length;let m=0,b=y-1,v=g-1;for(;m<b&&m<v&&d[m]===p[m];)l.push(p[m]),m+=1;for(;b>m&&v>m&&d[b]===p[v];)u.unshift(p[v]),b-=1,v-=1;const _=l.join(Aa),x=u.join(Aa),T=d.slice(m,b+1).join(Aa),w=p.slice(m,v+1).join(Aa);return _.length&&x.length?_+Aa+"{"+T+" → "+w+"}"+Aa+x:_.length?_+Aa+"{"+T+" → "+w+"}":x.length?"{"+T+" → "+w+"}"+Aa+x:i+" → "+r}else return Su(r)?i:r}function qf(s){return`d2h-${xE(po(s)).toString().slice(-6)}`}function Gf(s){let i="file-changed";return s.isRename||s.isCopy?i="file-renamed":s.isNew?i="file-added":s.isDeleted?i="file-deleted":s.newName!==s.oldName&&(i="file-renamed"),i}function wb(s,i,r,l={}){const{matching:u,maxLineLengthHighlight:d,matchWordsThreshold:p,diffStyle:y}=Object.assign(Object.assign({},ho),l),g=Oa(s,r,!1),m=Oa(i,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 b=y==="char"?ME(g.content,m.content):LE(g.content,m.content),v=[];if(y==="word"&&u==="words"){const x=b.filter(A=>A.removed),T=b.filter(A=>A.added);UE(T,x).forEach(A=>{A[0].length===1&&A[1].length===1&&xb(A[0][0],A[1][0])<p&&(v.push(A[0][0]),v.push(A[1][0]))})}const _=b.reduce((x,T)=>{const w=T.added?"ins":T.removed?"del":null,A=v.indexOf(T)>-1?' class="d2h-change"':"",U=Il(T.value);return w!==null?`${x}<${w}${A}>${U}</${w}>`:`${x}${U}`},"");return{oldLine:{prefix:g.prefix,content:BE(_)},newLine:{prefix:m.prefix,content:jE(_)}}}const Pm="file-summary",HE="icon",qE={colorScheme:ho.colorScheme};class GE{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},qE),r)}render(i){const r=i.map(l=>this.hoganUtils.render(Pm,"line",{fileHtmlId:qf(l),oldName:l.oldName,newName:l.newName,fileName:po(l),deletedLines:"-"+l.deletedLines,addedLines:"+"+l.addedLines},{fileIcon:this.hoganUtils.template(HE,Gf(l))})).join(`
|
|
52
|
+
`);return this.hoganUtils.render(Pm,"wrapper",{colorScheme:Hf(this.config.colorScheme),filesNumber:i.length,files:r})}}const Ab=Object.assign(Object.assign({},ho),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Cs="generic",Zm="line-by-line",$E="icon",YE="tag";class FE{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},Ab),r)}render(i){const r=i.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(Cs,"wrapper",{colorScheme:Hf(this.config.colorScheme),content:r})}makeFileDiffHtml(i,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(i.blocks)&&i.blocks.length===0)return"";const l=this.hoganUtils.template(Zm,"file-diff"),u=this.hoganUtils.template(Cs,"file-path"),d=this.hoganUtils.template($E,"file"),p=this.hoganUtils.template(YE,Gf(i));return l.render({file:i,fileHtmlId:qf(i),diffs:r,filePath:u.render({fileDiffName:po(i)},{fileIcon:d,fileTag:p})})}generateEmptyDiff(){return this.hoganUtils.render(Cs,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:On})}generateFileHtml(i){const r=If(jf(l=>Oa(l.content,i.isCombined).content));return i.blocks.map(l=>{let u=this.hoganUtils.render(Cs,"block-header",{CSSLineClass:On,blockHeader:i.isTooBig?l.header:Il(l.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(l).forEach(([d,p,y])=>{if(p.length&&y.length&&!d.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(i,i.isCombined,g,m);u+=b,u+=v});else if(d.length)d.forEach(g=>{const{prefix:m,content:b}=Oa(g.content,i.isCombined);u+=this.generateSingleLineHtml(i,{type:On.CONTEXT,prefix:m,content:b,oldNumber:g.oldNumber,newNumber:g.newNumber})});else if(p.length||y.length){const{left:g,right:m}=this.processChangedLines(i,i.isCombined,p,y);u+=g,u+=m}else console.error("Unknown state reached while processing groups of lines",d,p,y)}),u}).join(`
|
|
54
|
+
`)}applyLineGroupping(i){const r=[];let l=[],u=[];for(let d=0;d<i.lines.length;d++){const p=i.lines[d];(p.type!==Pt.INSERT&&u.length||p.type===Pt.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),p.type===Pt.CONTEXT?r.push([[p],[],[]]):p.type===Pt.INSERT&&l.length===0?r.push([[],[],[p]]):p.type===Pt.INSERT&&l.length>0?u.push(p):p.type===Pt.DELETE&&l.push(p)}return(l.length||u.length)&&(r.push([[],l,u]),l=[],u=[]),r}applyRematchMatching(i,r,l){const u=i.length*r.length,d=Tb(i.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&d<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?l(i,r):[[i,r]]}processChangedLines(i,r,l,u){const d={right:"",left:""},p=Math.max(l.length,u.length);for(let y=0;y<p;y++){const g=l[y],m=u[y],b=g!==void 0&&m!==void 0?wb(g.content,m.content,r,this.config):void 0,v=g!==void 0&&g.oldNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.oldLine.prefix,content:b.oldLine.content,type:On.DELETE_CHANGES}:Object.assign(Object.assign({},Oa(g.content,r)),{type:ro(g.type)})),{oldNumber:g.oldNumber,newNumber:g.newNumber}):void 0,_=m!==void 0&&m.newNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.newLine.prefix,content:b.newLine.content,type:On.INSERT_CHANGES}:Object.assign(Object.assign({},Oa(m.content,r)),{type:ro(m.type)})),{oldNumber:m.oldNumber,newNumber:m.newNumber}):void 0,{left:x,right:T}=this.generateLineHtml(i,v,_);d.left+=x,d.right+=T}return d}generateLineHtml(i,r,l){return{left:this.generateSingleLineHtml(i,r),right:this.generateSingleLineHtml(i,l)}}generateSingleLineHtml(i,r){if(r===void 0)return"";const l=this.hoganUtils.render(Zm,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(Cs,"line",{type:r.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:r.prefix===" "?" ":r.prefix,content:r.content,lineNumber:l,line:r,file:i})}}const Rb=Object.assign(Object.assign({},ho),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ds="generic",KE="side-by-side",PE="icon",ZE="tag";class XE{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},Rb),r)}render(i){const r=i.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:Hf(this.config.colorScheme),content:r})}makeFileDiffHtml(i,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(i.blocks)&&i.blocks.length===0)return"";const l=this.hoganUtils.template(KE,"file-diff"),u=this.hoganUtils.template(Ds,"file-path"),d=this.hoganUtils.template(PE,"file"),p=this.hoganUtils.template(ZE,Gf(i));return l.render({file:i,fileHtmlId:qf(i),diffs:r,filePath:u.render({fileDiffName:po(i)},{fileIcon:d,fileTag:p})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Ds,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:On})}}generateFileHtml(i){const r=If(jf(l=>Oa(l.content,i.isCombined).content));return i.blocks.map(l=>{const u={left:this.makeHeaderHtml(l.header,i),right:this.makeHeaderHtml("")};return this.applyLineGroupping(l).forEach(([d,p,y])=>{if(p.length&&y.length&&!d.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(i.isCombined,g,m);u.left+=b,u.right+=v});else if(d.length)d.forEach(g=>{const{prefix:m,content:b}=Oa(g.content,i.isCombined),{left:v,right:_}=this.generateLineHtml({type:On.CONTEXT,prefix:m,content:b,number:g.oldNumber},{type:On.CONTEXT,prefix:m,content:b,number:g.newNumber});u.left+=v,u.right+=_});else if(p.length||y.length){const{left:g,right:m}=this.processChangedLines(i.isCombined,p,y);u.left+=g,u.right+=m}else console.error("Unknown state reached while processing groups of lines",d,p,y)}),u}).reduce((l,u)=>({left:l.left+u.left,right:l.right+u.right}),{left:"",right:""})}applyLineGroupping(i){const r=[];let l=[],u=[];for(let d=0;d<i.lines.length;d++){const p=i.lines[d];(p.type!==Pt.INSERT&&u.length||p.type===Pt.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),p.type===Pt.CONTEXT?r.push([[p],[],[]]):p.type===Pt.INSERT&&l.length===0?r.push([[],[],[p]]):p.type===Pt.INSERT&&l.length>0?u.push(p):p.type===Pt.DELETE&&l.push(p)}return(l.length||u.length)&&(r.push([[],l,u]),l=[],u=[]),r}applyRematchMatching(i,r,l){const u=i.length*r.length,d=Tb(i.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&d<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?l(i,r):[[i,r]]}makeHeaderHtml(i,r){return this.hoganUtils.render(Ds,"block-header",{CSSLineClass:On,blockHeader:r!=null&&r.isTooBig?i:Il(i),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(i,r,l){const u={right:"",left:""},d=Math.max(r.length,l.length);for(let p=0;p<d;p++){const y=r[p],g=l[p],m=y!==void 0&&g!==void 0?wb(y.content,g.content,i,this.config):void 0,b=y!==void 0&&y.oldNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.oldLine.prefix,content:m.oldLine.content,type:On.DELETE_CHANGES}:Object.assign(Object.assign({},Oa(y.content,i)),{type:ro(y.type)})),{number:y.oldNumber}):void 0,v=g!==void 0&&g.newNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.newLine.prefix,content:m.newLine.content,type:On.INSERT_CHANGES}:Object.assign(Object.assign({},Oa(g.content,i)),{type:ro(g.type)})),{number:g.newNumber}):void 0,{left:_,right:x}=this.generateLineHtml(b,v);u.left+=_,u.right+=x}return u}generateLineHtml(i,r){return{left:this.generateSingleHtml(i),right:this.generateSingleHtml(r)}}generateSingleHtml(i){const r="d2h-code-side-linenumber",l="d2h-code-side-line";return this.hoganUtils.render(Ds,"line",{type:(i==null?void 0:i.type)||`${On.CONTEXT} d2h-emptyplaceholder`,lineClass:i!==void 0?r:`${r} d2h-code-side-emptyplaceholder`,contentClass:i!==void 0?l:`${l} d2h-code-side-emptyplaceholder`,prefix:(i==null?void 0:i.prefix)===" "?" ":i==null?void 0:i.prefix,content:i==null?void 0:i.content,lineNumber:i==null?void 0:i.number})}}var Tu={},Xm;function QE(){return Xm||(Xm=1,(function(s){(function(i){var r=/\S/,l=/\"/g,u=/\n/g,d=/\r/g,p=/\\/g,y=/\u2028/,g=/\u2029/;i.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},i.scan=function(z,Q){var K=z.length,fe=0,we=1,Ae=2,he=fe,I=null,ne=null,oe="",ve=[],Se=!1,S=0,D=0,q="{{",ue="}}";function pe(){oe.length>0&&(ve.push({tag:"_t",text:new String(oe)}),oe="")}function xe(){for(var Ee=!0,He=D;He<ve.length;He++)if(Ee=i.tags[ve[He].tag]<i.tags._v||ve[He].tag=="_t"&&ve[He].text.match(r)===null,!Ee)return!1;return Ee}function me(Ee,He){if(pe(),Ee&&xe())for(var We=D,ke;We<ve.length;We++)ve[We].text&&((ke=ve[We+1])&&ke.tag==">"&&(ke.indent=ve[We].text.toString()),ve.splice(We,1));else He||ve.push({tag:`
|
|
56
56
|
`});Se=!1,D=ve.length}function Oe(Ee,He){var We="="+ue,ke=Ee.indexOf(We,He),At=b(Ee.substring(Ee.indexOf("=",He)+1,ke)).split(" ");return q=At[0],ue=At[At.length-1],ke+We.length-1}for(Q&&(Q=Q.split(" "),q=Q[0],ue=Q[1]),S=0;S<K;S++)he==fe?v(q,z,S)?(--S,pe(),he=we):z.charAt(S)==`
|
|
57
|
-
`?me(Se):oe+=z.charAt(S):he==we?(S+=q.length-1,ne=i.tags[z.charAt(S+1)],I=ne?z.charAt(S+1):"_v",I=="="?(S=Oe(z,S),he=fe):(ne&&S++,he=Ae),Se=S):v(ue,z,S)?(ve.push({tag:I,n:b(oe),otag:q,ctag:ue,i:I=="/"?Se-q.length:S+ue.length}),oe="",S+=ue.length-1,he=fe,I=="{"&&(ue=="}}"?S++:m(ve[ve.length-1]))):oe+=z.charAt(S);return me(Se,!0),ve};function m(k){k.n.substr(k.n.length-1)==="}"&&(k.n=k.n.substring(0,k.n.length-1))}function b(k){return k.trim?k.trim():k.replace(/^\s*|\s*$/g,"")}function v(k,z,Q){if(z.charAt(Q)!=k.charAt(0))return!1;for(var K=1,fe=k.length;K<fe;K++)if(z.charAt(Q+K)!=k.charAt(K))return!1;return!0}var _={_t:!0,"\n":!0,$:!0,"/":!0};function x(k,z,Q,K){var fe=[],we=null,Ae=null,he=null;for(Ae=Q[Q.length-1];k.length>0;){if(he=k.shift(),Ae&&Ae.tag=="<"&&!(he.tag in _))throw new Error("Illegal content in < super tag.");if(i.tags[he.tag]<=i.tags.$||
|
|
57
|
+
`?me(Se):oe+=z.charAt(S):he==we?(S+=q.length-1,ne=i.tags[z.charAt(S+1)],I=ne?z.charAt(S+1):"_v",I=="="?(S=Oe(z,S),he=fe):(ne&&S++,he=Ae),Se=S):v(ue,z,S)?(ve.push({tag:I,n:b(oe),otag:q,ctag:ue,i:I=="/"?Se-q.length:S+ue.length}),oe="",S+=ue.length-1,he=fe,I=="{"&&(ue=="}}"?S++:m(ve[ve.length-1]))):oe+=z.charAt(S);return me(Se,!0),ve};function m(k){k.n.substr(k.n.length-1)==="}"&&(k.n=k.n.substring(0,k.n.length-1))}function b(k){return k.trim?k.trim():k.replace(/^\s*|\s*$/g,"")}function v(k,z,Q){if(z.charAt(Q)!=k.charAt(0))return!1;for(var K=1,fe=k.length;K<fe;K++)if(z.charAt(Q+K)!=k.charAt(K))return!1;return!0}var _={_t:!0,"\n":!0,$:!0,"/":!0};function x(k,z,Q,K){var fe=[],we=null,Ae=null,he=null;for(Ae=Q[Q.length-1];k.length>0;){if(he=k.shift(),Ae&&Ae.tag=="<"&&!(he.tag in _))throw new Error("Illegal content in < super tag.");if(i.tags[he.tag]<=i.tags.$||T(he,K))Q.push(he),he.nodes=x(k,he.tag,Q,K);else if(he.tag=="/"){if(Q.length===0)throw new Error("Closing tag without opener: /"+he.n);if(we=Q.pop(),he.n!=we.n&&!w(he.n,we.n,K))throw new Error("Nesting error: "+we.n+" vs. "+he.n);return we.end=he.i,fe}else he.tag==`
|
|
58
58
|
`&&(he.last=k.length==0||k[0].tag==`
|
|
59
|
-
`);fe.push(he)}if(Q.length>0)throw new Error("missing closing tag: "+Q.pop().n);return fe}function
|
|
59
|
+
`);fe.push(he)}if(Q.length>0)throw new Error("missing closing tag: "+Q.pop().n);return fe}function T(k,z){for(var Q=0,K=z.length;Q<K;Q++)if(z[Q].o==k.n)return k.tag="#",!0}function w(k,z,Q){for(var K=0,fe=Q.length;K<fe;K++)if(Q[K].c==k&&Q[K].o==z)return!0}function A(k){var z=[];for(var Q in k)z.push('"'+L(Q)+'": function(c,p,t,i) {'+k[Q]+"}");return"{ "+z.join(",")+" }"}function U(k){var z=[];for(var Q in k.partials)z.push('"'+L(Q)+'":{name:"'+L(k.partials[Q].name)+'", '+U(k.partials[Q])+"}");return"partials: {"+z.join(",")+"}, subs: "+A(k.subs)}i.stringify=function(k,z,Q){return"{code: function (c,p,i) { "+i.wrapMain(k.code)+" },"+U(k)+"}"};var G=0;i.generate=function(k,z,Q){G=0;var K={code:"",subs:{},partials:{}};return i.walk(k,K),Q.asString?this.stringify(K,z,Q):this.makeTemplate(K,z,Q)},i.wrapMain=function(k){return'var t=this;t.b(i=i||"");'+k+"return t.fl();"},i.template=i.Template,i.makeTemplate=function(k,z,Q){var K=this.makePartials(k);return K.code=new Function("c","p","i",this.wrapMain(k.code)),new this.template(K,z,this,Q)},i.makePartials=function(k){var z,Q={subs:{},partials:k.partials,name:k.name};for(z in Q.partials)Q.partials[z]=this.makePartials(Q.partials[z]);for(z in k.subs)Q.subs[z]=new Function("c","p","t","i",k.subs[z]);return Q};function L(k){return k.replace(p,"\\\\").replace(l,'\\"').replace(u,"\\n").replace(d,"\\r").replace(y,"\\u2028").replace(g,"\\u2029")}function re(k){return~k.indexOf(".")?"d":"f"}function H(k,z){var Q="<"+(z.prefix||""),K=Q+k.n+G++;return z.partials[K]={name:k.n,partials:{}},z.code+='t.b(t.rp("'+L(K)+'",c,p,"'+(k.indent||"")+'"));',K}i.codegen={"#":function(k,z){z.code+="if(t.s(t."+re(k.n)+'("'+L(k.n)+'",c,p,1),c,p,0,'+k.i+","+k.end+',"'+k.otag+" "+k.ctag+'")){t.rs(c,p,function(c,p,t){',i.walk(k.nodes,z),z.code+="});c.pop();}"},"^":function(k,z){z.code+="if(!t.s(t."+re(k.n)+'("'+L(k.n)+'",c,p,1),c,p,1,0,0,"")){',i.walk(k.nodes,z),z.code+="};"},">":H,"<":function(k,z){var Q={partials:{},code:"",subs:{},inPartial:!0};i.walk(k.nodes,Q);var K=z.partials[H(k,z)];K.subs=Q.subs,K.partials=Q.partials},$:function(k,z){var Q={subs:{},code:"",partials:z.partials,prefix:k.n};i.walk(k.nodes,Q),z.subs[k.n]=Q.code,z.inPartial||(z.code+='t.sub("'+L(k.n)+'",c,p,i);')},"\n":function(k,z){z.code+=le('"\\n"'+(k.last?"":" + i"))},_v:function(k,z){z.code+="t.b(t.v(t."+re(k.n)+'("'+L(k.n)+'",c,p,0)));'},_t:function(k,z){z.code+=le('"'+L(k.text)+'"')},"{":P,"&":P};function P(k,z){z.code+="t.b(t.t(t."+re(k.n)+'("'+L(k.n)+'",c,p,0)));'}function le(k){return"t.b("+k+");"}i.walk=function(k,z){for(var Q,K=0,fe=k.length;K<fe;K++)Q=i.codegen[k[K].tag],Q&&Q(k[K],z);return z},i.parse=function(k,z,Q){return Q=Q||{},x(k,"",[],Q.sectionTags||[])},i.cache={},i.cacheKey=function(k,z){return[k,!!z.asString,!!z.disableLambda,z.delimiters,!!z.modelGet].join("||")},i.compile=function(k,z){z=z||{};var Q=i.cacheKey(k,z),K=this.cache[Q];if(K){var fe=K.partials;for(var we in fe)delete fe[we].instance;return K}return K=this.generate(this.parse(this.scan(k,z.delimiters),k,z),k,z),this.cache[Q]=K}})(s)})(Tu)),Tu}var Nu={},Qm;function VE(){return Qm||(Qm=1,(function(s){(function(i){i.Template=function(x,T,w,A){x=x||{},this.r=x.code||this.r,this.c=w,this.options=A||{},this.text=T||"",this.partials=x.partials||{},this.subs=x.subs||{},this.buf=""},i.Template.prototype={r:function(x,T,w){return""},v,t:b,render:function(T,w,A){return this.ri([T],w||{},A)},ri:function(x,T,w){return this.r(x,T,w)},ep:function(x,T){var w=this.partials[x],A=T[w.name];if(w.instance&&w.base==A)return w.instance;if(typeof A=="string"){if(!this.c)throw new Error("No compiler available.");A=this.c.compile(A,this.options)}if(!A)return null;if(this.partials[x].base=A,w.subs){T.stackText||(T.stackText={});for(key in w.subs)T.stackText[key]||(T.stackText[key]=this.activeSub!==void 0&&T.stackText[this.activeSub]?T.stackText[this.activeSub]:this.text);A=l(A,w.subs,w.partials,this.stackSubs,this.stackPartials,T.stackText)}return this.partials[x].instance=A,A},rp:function(x,T,w,A){var U=this.ep(x,w);return U?U.ri(T,w,A):""},rs:function(x,T,w){var A=x[x.length-1];if(!_(A)){w(x,T,this);return}for(var U=0;U<A.length;U++)x.push(A[U]),w(x,T,this),x.pop()},s:function(x,T,w,A,U,G,L){var re;return _(x)&&x.length===0?!1:(typeof x=="function"&&(x=this.ms(x,T,w,A,U,G,L)),re=!!x,!A&&re&&T&&T.push(typeof x=="object"?x:T[T.length-1]),re)},d:function(x,T,w,A){var U,G=x.split("."),L=this.f(G[0],T,w,A),re=this.options.modelGet,H=null;if(x==="."&&_(T[T.length-2]))L=T[T.length-1];else for(var P=1;P<G.length;P++)U=r(G[P],L,re),U!==void 0?(H=L,L=U):L="";return A&&!L?!1:(!A&&typeof L=="function"&&(T.push(H),L=this.mv(L,T,w),T.pop()),L)},f:function(x,T,w,A){for(var U=!1,G=null,L=!1,re=this.options.modelGet,H=T.length-1;H>=0;H--)if(G=T[H],U=r(x,G,re),U!==void 0){L=!0;break}return L?(!A&&typeof U=="function"&&(U=this.mv(U,T,w)),U):A?!1:""},ls:function(x,T,w,A,U,G){var L=this.options.delimiters;return this.options.delimiters=G,this.b(this.ct(b(x.call(T,U,w)),T,A)),this.options.delimiters=L,!1},ct:function(x,T,w){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(x,this.options).render(T,w)},b:function(x){this.buf+=x},fl:function(){var x=this.buf;return this.buf="",x},ms:function(x,T,w,A,U,G,L){var re,H=T[T.length-1],P=x.call(H);return typeof P=="function"?A?!0:(re=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(P,H,T,w,re.substring(U,G),L)):P},mv:function(x,T,w){var A=T[T.length-1],U=x.call(A);return typeof U=="function"?this.ct(b(U.call(A)),A,w):U},sub:function(x,T,w,A){var U=this.subs[x];U&&(this.activeSub=x,U(T,w,this,A),this.activeSub=!1)}};function r(x,T,w){var A;return T&&typeof T=="object"&&(T[x]!==void 0?A=T[x]:w&&T.get&&typeof T.get=="function"&&(A=T.get(x))),A}function l(x,T,w,A,U,G){function L(){}L.prototype=x;function re(){}re.prototype=x.subs;var H,P=new L;P.subs=new re,P.subsText={},P.buf="",A=A||{},P.stackSubs=A,P.subsText=G;for(H in T)A[H]||(A[H]=T[H]);for(H in A)P.subs[H]=A[H];U=U||{},P.stackPartials=U;for(H in w)U[H]||(U[H]=w[H]);for(H in U)P.partials[H]=U[H];return P}var u=/&/g,d=/</g,p=/>/g,y=/\'/g,g=/\"/g,m=/[&<>\"\']/;function b(x){return String(x??"")}function v(x){return x=b(x),m.test(x)?x.replace(u,"&").replace(d,"<").replace(p,">").replace(y,"'").replace(g,"""):x}var _=Array.isArray||function(x){return Object.prototype.toString.call(x)==="[object Array]"}})(s)})(Nu)),Nu}var xu,Vm;function JE(){if(Vm)return xu;Vm=1;var s=QE();return s.Template=VE().Template,s.template=s.Template,xu=s,xu}var Ht=JE();const Xt={};Xt["file-summary-line"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<li class="d2h-file-list-line">'),l.b(`
|
|
60
60
|
`+r),l.b(' <span class="d2h-file-name-wrapper">'),l.b(`
|
|
61
61
|
`+r),l.b(l.rp("<fileIcon0",s,i," ")),l.b(' <a href="#'),l.b(l.v(l.f("fileHtmlId",s,i,0))),l.b('" class="d2h-file-name">'),l.b(l.v(l.f("fileName",s,i,0))),l.b("</a>"),l.b(`
|
|
62
62
|
`+r),l.b(' <span class="d2h-file-stats">'),l.b(`
|
|
@@ -156,25 +156,25 @@ Error generating stack: `+a.message+`
|
|
|
156
156
|
`+r),l.b(" </div>"),l.b(`
|
|
157
157
|
`+r),l.b(" </div>"),l.b(`
|
|
158
158
|
`+r),l.b(" </div>"),l.b(`
|
|
159
|
-
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Xt["tag-file-added"]=new Ht.Template({code:function(s,i,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:{}});Xt["tag-file-changed"]=new Ht.Template({code:function(s,i,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:{}});Xt["tag-file-deleted"]=new Ht.Template({code:function(s,i,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:{}});Xt["tag-file-renamed"]=new Ht.Template({code:function(s,i,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
|
|
159
|
+
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Xt["tag-file-added"]=new Ht.Template({code:function(s,i,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:{}});Xt["tag-file-changed"]=new Ht.Template({code:function(s,i,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:{}});Xt["tag-file-deleted"]=new Ht.Template({code:function(s,i,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:{}});Xt["tag-file-renamed"]=new Ht.Template({code:function(s,i,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 WE{constructor({compiledTemplates:i={},rawTemplates:r={}}){const l=Object.entries(r).reduce((u,[d,p])=>{const y=Ht.compile(p,{asString:!1});return Object.assign(Object.assign({},u),{[d]:y})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},Xt),i),l)}static compile(i){return Ht.compile(i,{asString:!1})}render(i,r,l,u,d){const p=this.templateKey(i,r);try{return this.preCompiledTemplates[p].render(l,u,d)}catch{throw new Error(`Could not find template to render '${p}'`)}}template(i,r){return this.preCompiledTemplates[this.templateKey(i,r)]}templateKey(i,r){return`${i}-${r}`}}const e_=Object.assign(Object.assign(Object.assign({},Ab),Rb),{outputFormat:vE.LINE_BY_LINE,drawFileList:!0});function t_(s,i={}){const r=Object.assign(Object.assign({},e_),i),l=typeof s=="string"?RE(s,r):s,u=new WE(r),{colorScheme:d}=r,p={colorScheme:d},y=r.drawFileList?new GE(u,p).render(l):"",g=r.outputFormat==="side-by-side"?new XE(u,r).render(l):new FE(u,r).render(l);return y+g}var wu=Sb();function Ja(s){const i=[],r=s.split(`
|
|
160
160
|
`);let l=null,u=null;const d=()=>{l&&u&&i.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 y=p.match(/^diff --git a\/(.+?) b\/(.+)$/);u=y?y[2]:p.slice(11)}else if(l&&(l.push(p),p.startsWith("--- a/")&&u==="/dev/null"&&(u=p.slice(6)),p==="+++ /dev/null")){const y=l.find(g=>g.startsWith("--- a/"));y&&(u=y.slice(6))}return d(),i}function
|
|
162
|
-
`)}function
|
|
163
|
-
`);for(let b=0;b<m.length;b++){const v=m[b],_=v.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(_){y=Number(_[2]),g=!0;continue}g&&(v===""&&b===m.length-1||v.startsWith("\\")||(v.startsWith("+")||v.startsWith(" ")||v==="")&&(p.set(y,v===""?"":v.slice(1)),y++))}l.set(u,p)}return l}function
|
|
164
|
-
`).length]))}const Rb={blocker:"🚨",minor:"⚠️",nit:"🎨"};function Vm(s,i){return i?`${Rb[i]} **${i}** — ${s}`:s}const r_=["inbox","awaiting","drafted"],Nf=["requests","settled","sent","archived"],Au={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. Nothing 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 Jm(s){return s.status==="awaiting"||s.status==="running"?"awaiting":s.status==="sent"?"sent":"drafted"}const Hs=s=>!!s.pr.state&&s.pr.state!=="OPEN",Wm=["ready","awaiting","running","failed","reviewed","skipped","sent"];function Bl(s){return[...s].sort((i,r)=>Wm.indexOf(i.status)-Wm.indexOf(r.status)||r.updatedAt.localeCompare(i.updatedAt))}const Ob=["sent","reviewed","skipped"];function qs(s){return Bl(s.filter(i=>!Hs(i)&&!Ob.includes(i.status)))}function o_(s,i,r){return qs(s).filter(l=>l.key===i||!r.has(l.key))}function c_(s,i){if(!(i!=null&&i.enabled)||i.awaiting.length===0)return[];const r=new Set(qs(s).map(u=>u.id)),l=new Set(i.awaiting.map(u=>u.id));return Bl(s.filter(u=>l.has(u.id)&&!r.has(u.id)))}const u_=(s,i)=>i.some(r=>r.id===s.id);function f_(s,i){const r=s.filter(u=>!Hs(u)),l=Bl(r.filter(u=>!Ob.includes(u.status)));return{inbox:l,awaiting:l.filter(u=>Jm(u)==="awaiting"),drafted:l.filter(u=>Jm(u)==="drafted"),requests:c_(s,i),settled:Bl(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:Bl(r.filter(u=>u.status==="sent")),archived:Bl(s.filter(Hs))}}function d_(s,i){return Nf.includes(s)&&i[s].length===0?"inbox":s}function kb(s){var i,r;return s.reason==="own-review"?((i=s.review)==null?void 0:i.at)??s.at:s.reason==="own-reply"?((r=s.reply)==null?void 0:r.at)??s.at:s.at}const oo={"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 h_(s){var i;return Hs(s)?((i=s.pr.state)==null?void 0:i.toLowerCase())??null:s.filed?oo[s.filed.reason].tag:s.status==="reviewed"||s.status==="skipped"?s.status:null}function p_(s,i){var r;return i!=null&&i.enabled?((r=i.awaiting.find(l=>l.id===s.id))==null?void 0:r.reply)??"unknown":"unknown"}const m_={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."}},g_=s=>m_[s];function b_(s){const i=Gf[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 ${i}. 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 y_(s){const i=oo[s.reason],r=new Date(kb(s)).toLocaleDateString();return{label:i.tag,title:`${i.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.`}}const v_=(s,i)=>s.sent?b_(s.sent):s.filed?y_(s.filed):g_(i);function E_(s){const i=s.length,r=i===1?"1 review request":`${i} 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} ${i===1?"it":"them"} here without submitting a review, so ${i===1?"it is":"they are"} under open requests, tagged with whose move it is.`}function Mb(s,i=Date.now()){const r=Math.max(0,Math.round((i-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 __={approve:"approve",comment:"comment",request_changes:"changes"},Gf={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function S_(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 · ${Gf[s.sent.event]??s.sent.event}`,tone:"sent"}:s.verdict?{label:`${s.verdict.recommendation.replace("_"," ")} ${s.verdict.confidence}%`,tone:__[s.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function Ru(s){return s.trusted?"ran the code":s.withSource?"read the full source":"read the diff only"}function T_(s){if(s.commentCount===0)return"no comments drafted";const i=[`${s.commentCount} comment${s.commentCount===1?"":"s"} drafted`];return s.driftedCount&&i.push(`${s.driftedCount} off-diff`),s.gradedCount&&i.push(s.blockerCount?`${s.blockerCount} blocker${s.blockerCount===1?"":"s"}`:"no blockers"),i.join(", ")}function N_(s,i,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 ${Mb(s.updatedAt,r)} ago`,Ru(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 ${Gf[s.sent.event]??s.sent.event} on ${new Date(s.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue.`,meta:[s.sent.auto?"auto-sent by the daemon":"sent by you",Ru(s)]};const l=[Ru(s)];return s.filed?l.unshift(oo[s.filed.reason].meta(new Date(kb(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(T_(s)),i!=null&&i.enabled&&s.status==="ready"&&((u=s.verdict)==null?void 0:u.recommendation)==="approve"&&l.push(s.verdict.confidence>=i.autoSendThreshold?`auto-send candidate at ${s.verdict.confidence}%`:`below the ${i.autoSendThreshold}% auto-send bar`),s.filed?{reasoning:oo[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 x_="/favicon.svg",w_="/favicon-dot.svg",A_=s=>qs(s).length>0,R_=s=>s?w_:x_;function O_(s){const i=R_(A_(s)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===i||r.setAttribute("href",i)}async function sn(s,i){const r=await fetch(s,{...i,headers:i!=null&&i.body?{"Content-Type":"application/json"}:void 0});if(!r.ok){let l=`${(i==null?void 0:i.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 $f=async()=>{const s=await sn("/api/reviews");return O_(s),s},Cb=()=>sn("/api/daemon"),eg=s=>sn(`/api/reviews/${encodeURIComponent(s)}`),io=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}`,{method:"PATCH",body:JSON.stringify(i)}),k_=(s,i,r)=>sn(`/api/reviews/${encodeURIComponent(s)}/comments/${i}`,{method:"PATCH",body:JSON.stringify(r)}),M_=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/comments`,{method:"POST",body:JSON.stringify(i)}),C_=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/comments/${i}`,{method:"DELETE"}),D_=s=>sn("/api/reviews",{method:"POST",body:JSON.stringify({input:s})}),L_=s=>sn(`/api/reviews/${encodeURIComponent(s)}/refresh`,{method:"POST"}),Db=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/rerun`+(i===void 0?"":`?source=${i?"1":"0"}`),{method:"POST"}),xf=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/chat`,{method:"POST",body:JSON.stringify(i)}),z_=s=>sn(`/api/reviews/${encodeURIComponent(s)}/chat/pending`,{method:"DELETE"}),U_=s=>sn(`/api/reviews/${encodeURIComponent(s)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),B_=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/send-preview?event=${i}`),j_=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/send`,{method:"POST",body:JSON.stringify({event:i,confirm:!0})}),I_=s=>`/api/reviews/${encodeURIComponent(s)}/export`,H_=()=>sn("/api/config"),Ou=(s,i=!1)=>sn("/api/config/trust",{method:"POST",body:JSON.stringify({rule:s,remove:i})}),ku=s=>sn("/api/config/daemon",{method:"POST",body:JSON.stringify(s)});function Mu(s){return s.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")}function wf(s){return s.nodeName.toLowerCase()}function tg(s){const i=[],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&&(i.push({event:"start",offset:u,node:d}),u=r(d,u),wf(d).match(/br|hr|img|input/)||i.push({event:"stop",offset:u,node:d}));return u};return r(s,0),i}function q_(s,i,r){let l=0,u="";const d=[];function p(v){return v!==null&&(v==null?void 0:v.attributes)!==void 0}function y(){return!s.length||!i.length?s.length?s:i:s[0].offset!==i[0].offset?s[0].offset<i[0].offset?s:i:i[0].event==="start"?s:i}function g(v){if(!p(v))throw new Error("Node is not an Element");u+=`<${wf(v)} ${Array().map.call(v.attributes,_=>`${_.nodeName}="${Mu(_.value).replace(/"/g,""")}"`).join(" ")}>`}function m(v){u+="</"+wf(v)+">"}function b(v){(v.event==="start"?g:m)(v.node)}for(;s.length||i.length;){let v=y();if(u+=Mu(r.substring(l,v[0].offset)),l=v[0].offset,v===s){d.reverse().forEach(m);do b(v.splice(0,1)[0]),v=y();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(),b(v.splice(0,1)[0])}return u+Mu(r.substr(l))}const G_={"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 $_(s){var i;return(i=G_[s])!==null&&i!==void 0?i:"plaintext"}var Cu,ng;function Y_(){if(ng)return Cu;ng=1;function s(R){return R instanceof Map?R.clear=R.delete=R.set=function(){throw new Error("map is read-only")}:R instanceof Set&&(R.add=R.clear=R.delete=function(){throw new Error("set is read-only")}),Object.freeze(R),Object.getOwnPropertyNames(R).forEach(J=>{const C=R[J],ee=typeof C;(ee==="object"||ee==="function")&&!Object.isFrozen(C)&&s(C)}),R}class i{constructor(J){J.data===void 0&&(J.data={}),this.data=J.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(R){return R.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(R,...J){const C=Object.create(null);for(const ee in R)C[ee]=R[ee];return J.forEach(function(ee){for(const de in ee)C[de]=ee[de]}),C}const u="</span>",d=R=>!!R.scope,p=(R,{prefix:J})=>{if(R.startsWith("language:"))return R.replace("language:","language-");if(R.includes(".")){const C=R.split(".");return[`${J}${C.shift()}`,...C.map((ee,de)=>`${ee}${"_".repeat(de+1)}`)].join(" ")}return`${J}${R}`};class y{constructor(J,C){this.buffer="",this.classPrefix=C.classPrefix,J.walk(this)}addText(J){this.buffer+=r(J)}openNode(J){if(!d(J))return;const C=p(J.scope,{prefix:this.classPrefix});this.span(C)}closeNode(J){d(J)&&(this.buffer+=u)}value(){return this.buffer}span(J){this.buffer+=`<span class="${J}">`}}const g=(R={})=>{const J={children:[]};return Object.assign(J,R),J};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(J){this.top.children.push(J)}openNode(J){const C=g({scope:J});this.add(C),this.stack.push(C)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(J){return this.constructor._walk(J,this.rootNode)}static _walk(J,C){return typeof C=="string"?J.addText(C):C.children&&(J.openNode(C),C.children.forEach(ee=>this._walk(J,ee)),J.closeNode(C)),J}static _collapse(J){typeof J!="string"&&J.children&&(J.children.every(C=>typeof C=="string")?J.children=[J.children.join("")]:J.children.forEach(C=>{m._collapse(C)}))}}class b extends m{constructor(J){super(),this.options=J}addText(J){J!==""&&this.add(J)}startScope(J){this.openNode(J)}endScope(){this.closeNode()}__addSublanguage(J,C){const ee=J.root;C&&(ee.scope=`language:${C}`),this.add(ee)}toHTML(){return new y(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function v(R){return R?typeof R=="string"?R:R.source:null}function _(R){return A("(?=",R,")")}function x(R){return A("(?:",R,")*")}function N(R){return A("(?:",R,")?")}function A(...R){return R.map(C=>v(C)).join("")}function w(R){const J=R[R.length-1];return typeof J=="object"&&J.constructor===Object?(R.splice(R.length-1,1),J):{}}function U(...R){return"("+(w(R).capture?"":"?:")+R.map(ee=>v(ee)).join("|")+")"}function G(R){return new RegExp(R.toString()+"|").exec("").length-1}function L(R,J){const C=R&&R.exec(J);return C&&C.index===0}const re=new RegExp(U(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function H(R,{joinWith:J}){let C=0;return R.map(ee=>{C+=1;const de=C;let Le=v(ee),ye="";for(;Le.length>0;){const be=re.exec(Le);if(!be){ye+=Le;break}ye+=Le.substring(0,be.index),Le=Le.substring(be.index+be[0].length),be[0][0]==="\\"&&be[1]?ye+="\\"+String(Number(be[1])+de):(ye+=be[0],(be[0]==="("||/^\(\?[<']/.test(be[0]))&&C++)}return ye}).map(ee=>`(${ee})`).join(J)}const P=/\b\B/,le="[a-zA-Z]\\w*",k="[a-zA-Z_]\\w*",z="\\b\\d+(\\.\\d+)?",Q="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K="\\b(0b[01]+)",fe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",we=(R={})=>{const J=/^#![ ]*\//;return R.binary&&(R.begin=A(J,/.*\b/,R.binary,/\b.*/)),l({scope:"meta",begin:J,end:/$/,relevance:0,"on:begin":(C,ee)=>{C.index!==0&&ee.ignoreMatch()}},R)},Ae={begin:"\\\\[\\s\\S]",relevance:0},he={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ae]},I={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ae]},ne={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/},oe=function(R,J,C={}){const ee=l({scope:"comment",begin:R,end:J,contains:[]},C);ee.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 de=U("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 ee.contains.push({begin:A(/[ ]+/,"(",de,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ee},ve=oe("//","$"),Se=oe("/\\*","\\*/"),S=oe("#","$"),D={scope:"number",begin:z,relevance:0},q={scope:"number",begin:Q,relevance:0},ue={scope:"number",begin:K,relevance:0},pe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ae,{begin:/\[/,end:/\]/,relevance:0,contains:[Ae]}]},xe={scope:"title",begin:le,relevance:0},me={scope:"title",begin:k,relevance:0},Oe={begin:"\\.\\s*"+k,relevance:0};var He=Object.freeze({__proto__:null,APOS_STRING_MODE:he,BACKSLASH_ESCAPE:Ae,BINARY_NUMBER_MODE:ue,BINARY_NUMBER_RE:K,COMMENT:oe,C_BLOCK_COMMENT_MODE:Se,C_LINE_COMMENT_MODE:ve,C_NUMBER_MODE:q,C_NUMBER_RE:Q,END_SAME_AS_BEGIN:function(R){return Object.assign(R,{"on:begin":(J,C)=>{C.data._beginMatch=J[1]},"on:end":(J,C)=>{C.data._beginMatch!==J[1]&&C.ignoreMatch()}})},HASH_COMMENT_MODE:S,IDENT_RE:le,MATCH_NOTHING_RE:P,METHOD_GUARD:Oe,NUMBER_MODE:D,NUMBER_RE:z,PHRASAL_WORDS_MODE:ne,QUOTE_STRING_MODE:I,REGEXP_MODE:pe,RE_STARTERS_RE:fe,SHEBANG:we,TITLE_MODE:xe,UNDERSCORE_IDENT_RE:k,UNDERSCORE_TITLE_MODE:me});function We(R,J){R.input[R.index-1]==="."&&J.ignoreMatch()}function ke(R,J){R.className!==void 0&&(R.scope=R.className,delete R.className)}function At(R,J){J&&R.beginKeywords&&(R.begin="\\b("+R.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",R.__beforeBegin=We,R.keywords=R.keywords||R.beginKeywords,delete R.beginKeywords,R.relevance===void 0&&(R.relevance=0))}function Ge(R,J){Array.isArray(R.illegal)&&(R.illegal=U(...R.illegal))}function Nn(R,J){if(R.match){if(R.begin||R.end)throw new Error("begin & end are not supported with match");R.begin=R.match,delete R.match}}function nt(R,J){R.relevance===void 0&&(R.relevance=1)}const xn=(R,J)=>{if(!R.beforeMatch)return;if(R.starts)throw new Error("beforeMatch cannot be used with starts");const C=Object.assign({},R);Object.keys(R).forEach(ee=>{delete R[ee]}),R.keywords=C.keywords,R.begin=A(C.beforeMatch,_(C.begin)),R.starts={relevance:0,contains:[Object.assign(C,{endsParent:!0})]},R.relevance=0,delete C.beforeMatch},rn=["of","and","for","in","not","or","if","then","parent","list","value"],zt="keyword";function qn(R,J,C=zt){const ee=Object.create(null);return typeof R=="string"?de(C,R.split(" ")):Array.isArray(R)?de(C,R):Object.keys(R).forEach(function(Le){Object.assign(ee,qn(R[Le],J,Le))}),ee;function de(Le,ye){J&&(ye=ye.map(be=>be.toLowerCase())),ye.forEach(function(be){const ze=be.split("|");ee[ze[0]]=[Le,Jt(ze[0],ze[1])]})}}function Jt(R,J){return J?Number(J):ca(R)?0:1}function ca(R){return rn.includes(R.toLowerCase())}const Vn={},Ke=R=>{console.error(R)},Ut=(R,...J)=>{console.log(`WARN: ${R}`,...J)},mt=(R,J)=>{Vn[`${R}/${J}`]||(console.log(`Deprecated as of ${R}. ${J}`),Vn[`${R}/${J}`]=!0)},bn=new Error;function yn(R,J,{key:C}){let ee=0;const de=R[C],Le={},ye={};for(let be=1;be<=J.length;be++)ye[be+ee]=de[be],Le[be+ee]=!0,ee+=G(J[be-1]);R[C]=ye,R[C]._emit=Le,R[C]._multi=!0}function kn(R){if(Array.isArray(R.begin)){if(R.skip||R.excludeBegin||R.returnBegin)throw Ke("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),bn;if(typeof R.beginScope!="object"||R.beginScope===null)throw Ke("beginScope must be object"),bn;yn(R,R.begin,{key:"beginScope"}),R.begin=H(R.begin,{joinWith:""})}}function Mn(R){if(Array.isArray(R.end)){if(R.skip||R.excludeEnd||R.returnEnd)throw Ke("skip, excludeEnd, returnEnd not compatible with endScope: {}"),bn;if(typeof R.endScope!="object"||R.endScope===null)throw Ke("endScope must be object"),bn;yn(R,R.end,{key:"endScope"}),R.end=H(R.end,{joinWith:""})}}function Cn(R){R.scope&&typeof R.scope=="object"&&R.scope!==null&&(R.beginScope=R.scope,delete R.scope)}function Dn(R){Cn(R),typeof R.beginScope=="string"&&(R.beginScope={_wrap:R.beginScope}),typeof R.endScope=="string"&&(R.endScope={_wrap:R.endScope}),kn(R),Mn(R)}function on(R){function J(ye,be){return new RegExp(v(ye),"m"+(R.case_insensitive?"i":"")+(R.unicodeRegex?"u":"")+(be?"g":""))}class C{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(be,ze){ze.position=this.position++,this.matchIndexes[this.matchAt]=ze,this.regexes.push([ze,be]),this.matchAt+=G(be)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const be=this.regexes.map(ze=>ze[1]);this.matcherRe=J(H(be,{joinWith:"|"}),!0),this.lastIndex=0}exec(be){this.matcherRe.lastIndex=this.lastIndex;const ze=this.matcherRe.exec(be);if(!ze)return null;const Rt=ze.findIndex((Jn,ya)=>ya>0&&Jn!==void 0),gt=this.matchIndexes[Rt];return ze.splice(0,Rt),Object.assign(ze,gt)}}class ee{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(be){if(this.multiRegexes[be])return this.multiRegexes[be];const ze=new C;return this.rules.slice(be).forEach(([Rt,gt])=>ze.addRule(Rt,gt)),ze.compile(),this.multiRegexes[be]=ze,ze}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(be,ze){this.rules.push([be,ze]),ze.type==="begin"&&this.count++}exec(be){const ze=this.getMatcher(this.regexIndex);ze.lastIndex=this.lastIndex;let Rt=ze.exec(be);if(this.resumingScanAtSamePosition()&&!(Rt&&Rt.index===this.lastIndex)){const gt=this.getMatcher(0);gt.lastIndex=this.lastIndex+1,Rt=gt.exec(be)}return Rt&&(this.regexIndex+=Rt.position+1,this.regexIndex===this.count&&this.considerAll()),Rt}}function de(ye){const be=new ee;return ye.contains.forEach(ze=>be.addRule(ze.begin,{rule:ze,type:"begin"})),ye.terminatorEnd&&be.addRule(ye.terminatorEnd,{type:"end"}),ye.illegal&&be.addRule(ye.illegal,{type:"illegal"}),be}function Le(ye,be){const ze=ye;if(ye.isCompiled)return ze;[ke,Nn,Dn,xn].forEach(gt=>gt(ye,be)),R.compilerExtensions.forEach(gt=>gt(ye,be)),ye.__beforeBegin=null,[At,Ge,nt].forEach(gt=>gt(ye,be)),ye.isCompiled=!0;let Rt=null;return typeof ye.keywords=="object"&&ye.keywords.$pattern&&(ye.keywords=Object.assign({},ye.keywords),Rt=ye.keywords.$pattern,delete ye.keywords.$pattern),Rt=Rt||/\w+/,ye.keywords&&(ye.keywords=qn(ye.keywords,R.case_insensitive)),ze.keywordPatternRe=J(Rt,!0),be&&(ye.begin||(ye.begin=/\B|\b/),ze.beginRe=J(ze.begin),!ye.end&&!ye.endsWithParent&&(ye.end=/\B|\b/),ye.end&&(ze.endRe=J(ze.end)),ze.terminatorEnd=v(ze.end)||"",ye.endsWithParent&&be.terminatorEnd&&(ze.terminatorEnd+=(ye.end?"|":"")+be.terminatorEnd)),ye.illegal&&(ze.illegalRe=J(ye.illegal)),ye.contains||(ye.contains=[]),ye.contains=[].concat(...ye.contains.map(function(gt){return Wt(gt==="self"?ye:gt)})),ye.contains.forEach(function(gt){Le(gt,ze)}),ye.starts&&Le(ye.starts,be),ze.matcher=de(ze),ze}if(R.compilerExtensions||(R.compilerExtensions=[]),R.contains&&R.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return R.classNameAliases=l(R.classNameAliases||{}),Le(R)}function St(R){return R?R.endsWithParent||St(R.starts):!1}function Wt(R){return R.variants&&!R.cachedVariants&&(R.cachedVariants=R.variants.map(function(J){return l(R,{variants:null},J)})),R.cachedVariants?R.cachedVariants:St(R)?l(R,{starts:R.starts?l(R.starts):null}):Object.isFrozen(R)?l(R):R}var Nt="11.12.0";class Gn extends Error{constructor(J,C){super(J),this.name="HTMLInjectionError",this.html=C}}const Ln=r,wn=l,je=Symbol("nomatch"),cn=7,Qt=function(R){const J=Object.create(null),C=Object.create(null),ee=[];let de=!0;const Le="Could not find the language '{}', did you forget to load/include a language module?",ye={disableAutodetect:!0,name:"Plain text",contains:[]};let be={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function ze(ce){return be.noHighlightRe.test(ce)}function Rt(ce){let Me=ce.className+" ";Me+=ce.parentNode?ce.parentNode.className:"";const $e=be.languageDetectRe.exec(Me);if($e){const st=un($e[1]);return st||(Ut(Le.replace("{}",$e[1])),Ut("Falling back to no-highlight mode for this block.",ce)),st?$e[1]:"no-highlight"}return Me.split(/\s+/).find(st=>ze(st)||un(st))}function gt(ce,Me,$e){let st="",Tt="";typeof Me=="object"?(st=ce,$e=Me.ignoreIllegals,Tt=Me.language):(mt("10.7.0","highlight(lang, code, ...args) has been deprecated."),mt("10.7.0",`Please use highlight(code, options) instead.
|
|
165
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),Tt=ce,st=Me),$e===void 0&&($e=!0);const qt={code:st,language:Tt};An("before:highlight",qt);const tn=qt.result?qt.result:Jn(qt.language,qt.code,$e);return tn.code=qt.code,An("after:highlight",tn),tn}function Jn(ce,Me,$e,st){const Tt=Object.create(null);function qt(se,ge){return se.keywords[ge]}function tn(){if(!X.keywords){B.addText(V);return}let se=0;X.keywordPatternRe.lastIndex=0;let ge=X.keywordPatternRe.exec(V),Ce="";for(;ge;){Ce+=V.substring(se,ge.index);const Fe=Gt.case_insensitive?ge[0].toLowerCase():ge[0],Pe=qt(X,Fe);if(Pe){const[ea,Gl]=Pe;if(B.addText(Ce),Ce="",Tt[Fe]=(Tt[Fe]||0)+1,Tt[Fe]<=cn&&(_e+=Gl),ea.startsWith("_"))Ce+=ge[0];else{const Fs=Gt.classNameAliases[ea]||ea;Ot(ge[0],Fs)}}else Ce+=ge[0];se=X.keywordPatternRe.lastIndex,ge=X.keywordPatternRe.exec(V)}Ce+=V.substring(se),B.addText(Ce)}function Bt(){if(V==="")return;let se=null;if(typeof X.subLanguage=="string"){if(!J[X.subLanguage]){B.addText(V);return}se=Jn(X.subLanguage,V,!0,
|
|
166
|
-
`),1;if(Be>1e5&&Be>ge.index*3)throw new Error("potential infinite loop, way more iterations than matches");return V+=Ce,Ce.length}const Gt=un(ce);if(!Gt)throw Ke(Le.replace("{}",ce)),new Error('Unknown language: "'+ce+'"');const La=on(Gt);let Sa="",X=st||La;const T={},B=new be.__emitter(be);li();let V="",_e=0,Ne=0,Be=0,Xe=!1;try{if(Gt.__emitTokens)Gt.__emitTokens(Me,B);else{for(X.matcher.considerAll();;){Be++,Xe?Xe=!1:X.matcher.considerAll(),X.matcher.lastIndex=Ne;const se=X.matcher.exec(Me);if(!se)break;const ge=Me.substring(Ne,se.index),Ce=si(ge,se);Ne=se.index+Ce}si(Me.substring(Ne))}return B.finalize(),Sa=B.toHTML(),{language:ce,value:Sa,relevance:_e,illegal:!1,_emitter:B,_top:X}}catch(se){if(se.message&&se.message.includes("Illegal"))return{language:ce,value:Ln(Me),illegal:!0,relevance:0,_illegalBy:{message:se.message,index:Ne,context:Me.slice(Ne-100,Ne+100),mode:se.mode,resultSoFar:Sa},_emitter:B};if(de)return{language:ce,value:Ln(Me),illegal:!1,relevance:0,errorRaised:se,_emitter:B,_top:X};throw se}}function ya(ce){const Me={value:Ln(ce),illegal:!1,relevance:0,_top:ye,_emitter:new be.__emitter(be)};return Me._emitter.addText(ce),Me}function ei(ce,Me){Me=Me||be.languages||Object.keys(J);const $e=ya(ce),st=Me.filter(un).filter(Ea).map(rt=>Jn(rt,ce,!1));st.unshift($e);const Tt=st.sort((rt,Ot)=>{if(rt.relevance!==Ot.relevance)return Ot.relevance-rt.relevance;if(rt.language&&Ot.language){if(un(rt.language).supersetOf===Ot.language)return 1;if(un(Ot.language).supersetOf===rt.language)return-1}return 0}),[qt,tn]=Tt,Bt=qt;return Bt.secondBest=tn,Bt}function vn(ce,Me,$e){const st=Me&&C[Me]||$e;ce.classList.add("hljs"),ce.classList.add(`language-${st}`)}function Mt(ce){let Me=null;const $e=Rt(ce);if(ze($e))return;if(An("before:highlightElement",{el:ce,language:$e}),ce.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ce);return}if(ce.children.length>0&&(be.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(ce)),be.throwUnescapedHTML))throw new Gn("One of your code blocks includes unescaped HTML.",ce.innerHTML);Me=ce;const st=Me.textContent,Tt=$e?gt(st,{language:$e,ignoreIllegals:!0}):ei(st);ce.innerHTML=Tt.value,ce.dataset.highlighted="yes",vn(ce,$e,Tt.language),ce.result={language:Tt.language,re:Tt.relevance,relevance:Tt.relevance},Tt.secondBest&&(ce.secondBest={language:Tt.secondBest.language,relevance:Tt.secondBest.relevance}),An("after:highlightElement",{el:ce,result:Tt,text:st})}function en(ce){be=wn(be,ce)}const lt=()=>{ka(),mt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Wn(){ka(),mt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let tl=!1;function ka(){function ce(){ka()}if(document.readyState==="loading"){tl||window.addEventListener("DOMContentLoaded",ce,!1),tl=!0;return}document.querySelectorAll(be.cssSelector).forEach(Mt)}function ti(ce,Me){let $e=null;try{$e=Me(R)}catch(st){if(Ke("Language definition for '{}' could not be registered.".replace("{}",ce)),de)Ke(st);else throw st;$e=ye}$e.name||($e.name=ce),J[ce]=$e,$e.rawDefinition=Me.bind(null,R),$e.aliases&&ua($e.aliases,{languageName:ce})}function va(ce){delete J[ce];for(const Me of Object.keys(C))C[Me]===ce&&delete C[Me]}function ni(){return Object.keys(J)}function un(ce){return ce=(ce||"").toLowerCase(),J[ce]||J[C[ce]]}function ua(ce,{languageName:Me}){typeof ce=="string"&&(ce=[ce]),ce.forEach($e=>{C[$e.toLowerCase()]=Me})}function Ea(ce){const Me=un(ce);return Me&&!Me.disableAutodetect}function _a(ce){ce["before:highlightBlock"]&&!ce["before:highlightElement"]&&(ce["before:highlightElement"]=Me=>{ce["before:highlightBlock"](Object.assign({block:Me.el},Me))}),ce["after:highlightBlock"]&&!ce["after:highlightElement"]&&(ce["after:highlightElement"]=Me=>{ce["after:highlightBlock"](Object.assign({block:Me.el},Me))})}function dt(ce){_a(ce),ee.push(ce)}function Ma(ce){const Me=ee.indexOf(ce);Me!==-1&&ee.splice(Me,1)}function An(ce,Me){const $e=ce;ee.forEach(function(st){st[$e]&&st[$e](Me)})}function fa(ce){return mt("10.7.0","highlightBlock will be removed entirely in v12.0"),mt("10.7.0","Please use highlightElement now."),Mt(ce)}Object.assign(R,{highlight:gt,highlightAuto:ei,highlightAll:ka,highlightElement:Mt,highlightBlock:fa,configure:en,initHighlighting:lt,initHighlightingOnLoad:Wn,registerLanguage:ti,unregisterLanguage:va,listLanguages:ni,getLanguage:un,registerAliases:ua,autoDetection:Ea,inherit:wn,addPlugin:dt,removePlugin:Ma}),R.debugMode=function(){de=!1},R.safeMode=function(){de=!0},R.versionString=Nt,R.regex={concat:A,lookahead:_,either:U,optional:N,anyNumberOfTimes:x};for(const ce in He)typeof He[ce]=="object"&&s(He[ce]);return Object.assign(R,He),R},Ct=Qt({});return Ct.newInstance=()=>Qt({}),Cu=Ct,Ct.HighlightJS=Ct,Ct.default=Ct,Cu}var Du,ag;function F_(){if(ag)return Du;ag=1;function s(i){const r=i.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/}]},y=i.inherit(p,{begin:/\(/,end:/\)/}),g=i.inherit(i.APOS_STRING_MODE,{className:"string"}),m=i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),b={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[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,y,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[p,y,m,g]}]}]},i.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:[b],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[b],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(l,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:l,relevance:0,starts:b}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(l,/>/))),contains:[{className:"name",begin:l,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Du=s,Du}var Lu,ig;function K_(){if(ig)return Lu;ig=1;function s(i){const r=i.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:[i.BACKSLASH_ESCAPE]},p=i.inherit(i.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),y={begin:/<<-?\s*(?=\w+)/,starts:{contains:[i.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},g={className:"string",begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,l,d]};d.contains.push(g);const m={match:/\\"/},b={className:"string",begin:/'/,end:/'/},v={match:/\\'/},_={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},i.NUMBER_MODE,l]},x=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],N=i.SHEBANG({binary:`(${x.join("|")})`,relevance:10}),A={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[i.inherit(i.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},w=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],U=["true","false"],G={match:/(\/[a-z._-]+)+/},L=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],re=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],H=["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:w,literal:U,built_in:[...L,...re,"set","shopt",...H,...P]},contains:[N,i.SHEBANG(),A,_,p,y,G,g,m,b,v,l]}}return Lu=s,Lu}var zu,lg;function P_(){if(lg)return zu;lg=1;function s(i){const r=i.regex,l=i.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",y="("+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:[i.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:"."},i.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},x={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},v,{scope:"string",begin:/<.*?>/},l,i.C_BLOCK_COMMENT_MODE]},N={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},i.inherit(v,{className:"string"}),l,i.C_BLOCK_COMMENT_MODE]},A=[x,N],w={className:"title",begin:r.optional(d)+i.IDENT_RE,relevance:0},U=r.optional(d)+i.IDENT_RE+"\\s*\\(",G=12,H={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,i.C_BLOCK_COMMENT_MODE,_,v],le={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:H,contains:P.concat([{begin:/\(/,end:/\)/,keywords:H,contains:P.concat(["self"]),relevance:0}]),relevance:0},k={begin:"("+y+"[\\*&\\s]+){1,"+G+"}"+U,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:H,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:H,relevance:0},{begin:U,returnBegin:!0,contains:[i.inherit(w,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:[l,i.C_BLOCK_COMMENT_MODE,v,_,m,{begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:["self",l,i.C_BLOCK_COMMENT_MODE,v,_,m]}]},m,l,i.C_BLOCK_COMMENT_MODE,...A]};return{name:"C",aliases:["h"],keywords:H,disableAutodetect:!0,illegal:"</",contains:[].concat(le,k,P,[...A,{begin:i.IDENT_RE+"::",keywords:H},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},i.TITLE_MODE]}]),exports:{preprocessor:N,strings:v,keywords:H}}}return zu=s,zu}var Uu,sg;function Z_(){if(sg)return Uu;sg=1;function s(i){const r=i.regex,l=i.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",y="(?!struct)("+u+"|"+r.optional(d)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},b={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[i.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:"."},i.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/},b,{scope:"string",begin:/<.*?>/},l,i.C_BLOCK_COMMENT_MODE]},x={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},i.inherit(b,{className:"string"}),l,i.C_BLOCK_COMMENT_MODE]},N=[_,x],A={className:"title",begin:r.optional(d)+i.IDENT_RE,relevance:0},w=r.optional(d)+i.IDENT_RE+"\\s*\\(",U=12,G=["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"],re=["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"],H=["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"],k={type:L,keyword:G,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:re},z={className:"function.dispatch",relevance:0,keywords:{_hint:H},begin:r.concat(/\b/,`(?!${G.join("|")})`,i.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},Q=[z,...N,g,l,i.C_BLOCK_COMMENT_MODE,v,b],K={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:Q.concat([{begin:/\(/,end:/\)/,keywords:k,contains:Q.concat(["self"]),relevance:0}]),relevance:0},fe={className:"function",begin:"("+y+"[\\*&\\s]+){1,"+U+"}"+w,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:k,relevance:0},{begin:w,returnBegin:!0,contains:[A],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[l,i.C_BLOCK_COMMENT_MODE,b,v,g,{begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:["self",l,i.C_BLOCK_COMMENT_MODE,b,v,g]}]},g,l,i.C_BLOCK_COMMENT_MODE,...N]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:k,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(K,fe,z,Q,[...N,{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:k,contains:["self",g]},{begin:i.IDENT_RE+"::",keywords:k},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Uu=s,Uu}var Bu,rg;function X_(){if(rg)return Bu;rg=1;function s(i){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"],y={keyword:d.concat(p),built_in:r,literal:u},g=i.inherit(i.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m="\\d(_*\\d)*",b="([uU][lL]?|[lL][uU]?)?",_={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+b},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+b},{begin:"(-?)(\\b"+m+"(\\.("+m+")?)?|\\."+m+")([eE][-+]?"+m+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},x={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},N={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},A=i.inherit(N,{illegal:/\n/}),w={className:"subst",begin:/\{/,end:/\}/,keywords:y},U=i.inherit(w,{illegal:/\n/}),G={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},i.BACKSLASH_ESCAPE,U]},L={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},w]},re=i.inherit(L,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},U]});w.contains=[L,G,N,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,i.C_BLOCK_COMMENT_MODE],U.contains=[re,G,A,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,i.inherit(i.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const H={variants:[x,L,G,N,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},P={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},le=i.IDENT_RE+"(<"+i.IDENT_RE+"(\\s*,\\s*"+i.IDENT_RE+")*>)?(\\[\\])?",k={begin:"@"+i.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:y,illegal:/::/,contains:[i.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},H,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,P,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,P,i.C_LINE_COMMENT_MODE,i.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:"("+le+"\\s+)+"+i.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:y,contains:[{beginKeywords:l.join(" "),relevance:0},{begin:i.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[i.TITLE_MODE,P],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,relevance:0,contains:[H,_,i.C_BLOCK_COMMENT_MODE]},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},k]}}return Bu=s,Bu}var ju,og;function Q_(){if(og)return ju;og=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_-]*/}}),i=["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=[...i,...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(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=m.regex,v=s(m),_={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},x="and or not only",N=/@-?\w[\w]*(-\w+)*/,A="[a-zA-Z-][a-zA-Z0-9_-]*",w=[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("+y.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[v.BLOCK_COMMENT,v.HEXCOLOR,v.IMPORTANT,v.CSS_NUMBER_MODE,v.UNICODE_RANGE,...w,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...w,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},v.FUNCTION_DISPATCH]},{begin:b.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:N},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:x,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...w,v.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b"}]}}return ju=g,ju}var Iu,cg;function V_(){if(cg)return Iu;cg=1;function s(i){const r=i.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},y={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},g=/[A-Za-z][A-Za-z0-9+.-]*/,m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,g,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},v={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},_=i.inherit(b,{contains:[]}),x=i.inherit(v,{contains:[]});b.contains.push(x),v.contains.push(_);let N=[l,m];return[b,v,_,x].forEach(G=>{G.contains=G.contains.concat(N)}),N=N.concat(b,v),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:N},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:N}]}]},l,p,u,b,v,{className:"quote",begin:"^>\\s+",contains:N,end:"$"},d,m,y,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Iu=s,Iu}var Hu,ug;function J_(){if(ug)return Hu;ug=1;function s(i){const r=i.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 Hu=s,Hu}var qu,fg;function W_(){if(fg)return qu;fg=1;function s(i){const r=i.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+)*/),y={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},g={className:"doctag",begin:"@[A-Za-z]+"},m={begin:"#<",end:">"},b=[i.COMMENT("#","$",{contains:[g]}),i.COMMENT("^=begin","^=end",{contains:[g],relevance:10}),i.COMMENT("^__END__",i.MATCH_NOTHING_RE)],v={className:"subst",begin:/#\{/,end:/\}/,keywords:y},_={className:"string",contains:[i.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:[i.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[i.BACKSLASH_ESCAPE,v]})]}]},x="[1-9](_?[0-9])*|0",N="[0-9](_?[0-9])*",A={className:"number",relevance:0,variants:[{begin:`\\b(${x})(\\.(${N}))?([eE][+-]?(${N})|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"}]},w={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:y}]},le=[_,{variants:[{match:[/class\s+/,d,/\s+<\s+/,d]},{match:[/\b(class|module)\s+/,d]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:y},{match:[/(include|extend)\s+/,d],scope:{2:"title.class"},keywords:y},{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:[w]},{begin:"::"},{className:"symbol",begin:i.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:y},{begin:"("+i.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[i.BACKSLASH_ESCAPE,v],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(m,b),relevance:0}].concat(m,b);v.contains=le,w.contains=le;const K=[{begin:/^\s*=>/,starts:{end:"$",contains:le}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:y,contains:le}}];return b.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:y,illegal:/\/\*/,contains:[i.SHEBANG({binary:"ruby"})].concat(K).concat(b).concat(le)}}return qu=s,qu}var Gu,dg;function e0(){if(dg)return Gu;dg=1;function s(i){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:[i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,{className:"string",variants:[i.QUOTE_STRING_MODE,i.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:[i.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:p,illegal:/["']/}]}]}}return Gu=s,Gu}var $u,hg;function t0(){if(hg)return $u;hg=1;function s(i){const r=i.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:[i.HASH_COMMENT_MODE,i.QUOTE_STRING_MODE,i.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 $u=s,$u}var Yu,pg;function n0(){if(pg)return Yu;pg=1;function s(i){const r=i.regex,l={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:i.NUMBER_RE}]},u=i.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/},y={className:"string",contains:[i.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},g={begin:/\[/,end:/\]/,contains:[u,p,d,y,l,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,v=/'[^']*'/,_=r.either(m,b,v),x=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:x,className:"attr",starts:{end:/$/,contains:[u,g,p,d,y,l]}}]}}return Yu=s,Yu}var Fu,mg;function a0(){if(mg)return Fu;mg=1;var s="[0-9](_*[0-9])*",i=`\\.(${s})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",l={className:"number",variants:[{begin:`(\\b(${s})((${i})|\\.)?|(${i}))[eE][+-]?(${s})[fFdD]?\\b`},{begin:`\\b(${s})((${i})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${i})[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,y,g){return g===-1?"":p.replace(y,m=>u(p,y,g-1))}function d(p){const y=p.regex,g="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",m="(?:(?:\\s*\\[\\s*])+)?",b=g+"<@@@>"+m,_="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+b+")?")+"|"+b+")",x=u("(?:\\s*<\\s*"+_+"(?:\\s*,\\s*"+_+")*\\s*>)?",/<@@@>/g,2),G={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"]}]},re={className:"params",begin:/\(/,end:/\)/,keywords:G,relevance:0,contains:[p.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:G,illegal:/<\/|#/,contains:[p.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[p.BACKSLASH_ESCAPE]},p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,g],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[g,y.concat(x,m,/\s+/),g,m,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,g],className:{1:"keyword",3:"title.class"},contains:[re,p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},{begin:[g,y.concat(x,m,/\s+/),g,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:G,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:G,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 Fu=d,Fu}var Ku,gg;function i0(){if(gg)return Ku;gg=1;const s="[A-Za-z$_][0-9A-Za-z$_]*",i=["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"],y=[].concat(d,l,u);function g(m){const b=m.regex,v=(me,{after:Oe})=>{const Ee="</"+me[0].slice(1);return me.input.indexOf(Ee,Oe)!==-1},_=s,x={begin:"<>",end:"</>"},N=/<[A-Za-z0-9\\._:-]+\s*\/>/,A={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(me,Oe)=>{const Ee=me[0].length+me.index,He=me.input[Ee];if(He==="<"||He===","){Oe.ignoreMatch();return}He===">"&&(v(me,{after:Ee})||Oe.ignoreMatch());let We;const ke=me.input.substring(Ee);if(We=ke.match(/^\s*=/)){Oe.ignoreMatch();return}if((We=ke.match(/^\s+extends\s+/))&&We.index===0){Oe.ignoreMatch();return}}},w={$pattern:s,keyword:i,literal:r,built_in:y,"variable.language":p},U="[0-9](_?[0-9])*",G=`\\.(${U})`,L="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",re={className:"number",variants:[{begin:`(\\b(${L})((${G})|\\.)?|(${G}))[eE][+-]?(${U})\\b`},{begin:`\\b(${L})\\b((${G})\\b|\\.)?|(${G})\\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},H={className:"subst",begin:"\\$\\{",end:"\\}",keywords:w,contains:[]},P={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,H],subLanguage:"xml"}},le={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,H],subLanguage:"css"}},k={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,H],subLanguage:"graphql"}},z={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,H]},K={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]},fe=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,P,le,k,z,{match:/\$\d+/},re];H.contains=fe.concat({begin:/\{/,end:/\}/,keywords:w,contains:["self"].concat(fe)});const we=[].concat(K,H.contains),Ae=we.concat([{begin:/(\s*)\(/,end:/\)/,keywords:w,contains:["self"].concat(we)}]),he={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:Ae},I={variants:[{match:[/class/,/\s+/,_,/\s+/,/extends/,/\s+/,b.concat(_,"(",b.concat(/\./,_),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,_],scope:{1:"keyword",3:"title.class"}}]},ne={relevance:0,match:b.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...l,...u]}},oe={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:[he],illegal:/%/},Se={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function S(me){return b.concat("(?!",me.join("|"),")")}const D={match:b.concat(/\b/,S([...d,"super","import","await"].map(me=>`${me}\\s*\\(`)),_,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},q={begin:b.concat(/\./,b.lookahead(b.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:/\(\)/},he]},pe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",xe={match:[/const|var|let/,/\s+/,_,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(pe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[he]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:w,exports:{PARAMS_CONTAINS:Ae,CLASS_REFERENCE:ne},illegal:/#(?![$_A-Za-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),oe,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,P,le,k,z,K,{match:/\$\d+/},re,ne,{scope:"attr",match:_+b.lookahead(":"),relevance:0},xe,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[K,m.REGEXP_MODE,{className:"function",begin:pe,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:w,contains:Ae}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:x.begin,end:x.end},{match:N},{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:[he,m.inherit(m.TITLE_MODE,{begin:_,className:"title.function"})]},{match:/\.\.\./,relevance:0},q,{match:"\\$"+_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[he]},D,Se,I,ue,{match:/\$[(.]/}]}}return Ku=g,Ku}var Pu,bg;function l0(){if(bg)return Pu;bg=1;const i={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"],y={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,y,i,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Pu=r,Pu}var Zu,yg;function s0(){if(yg)return Zu;yg=1;var s="[0-9](_*[0-9])*",i=`\\.(${s})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",l={className:"number",variants:[{begin:`(\\b(${s})((${i})|\\.)?|(${i}))[eE][+-]?(${s})[fFdD]?\\b`},{begin:`\\b(${s})((${i})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${i})[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"},y={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]},b={className:"variable",begin:"\\$"+d.UNDERSCORE_IDENT_RE},v={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,m]},{begin:"'",end:"'",illegal:/\n/,contains:[d.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[d.BACKSLASH_ESCAPE,b,m]}]};m.contains.push(v);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+d.UNDERSCORE_IDENT_RE+")?"},x={className:"meta",begin:"@"+d.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[d.inherit(v,{className:"string"}),"self"]}]},N=l,A=d.COMMENT("/\\*","\\*/",{contains:[d.C_BLOCK_COMMENT_MODE]}),w={variants:[{className:"type",begin:d.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},U=w;return U.variants[1].contains=[w],w.variants[1].contains=[U],{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,y,g,_,x,{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:[w,d.C_LINE_COMMENT_MODE,A],relevance:0},d.C_LINE_COMMENT_MODE,A,_,x,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},_,x]},v,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
167
|
-
`},N]}}return Zu=u,Zu}var Xu,vg;function r0(){if(vg)return Xu;vg=1;const s=b=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:b.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:b.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),i=["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=[...i,...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(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),g=d.concat(p).sort().reverse();function m(b){const v=s(b),_=g,x="and or not only",N="[\\w-]+",A="("+N+"|@\\{"+N+"\\})",w=[],U=[],G=function(we){return{className:"string",begin:"~?"+we+".*?"+we}},L=function(we,Ae,he){return{className:we,begin:Ae,relevance:he}},re={$pattern:/[a-z-]+/,keyword:x,attribute:u.join(" ")},H={begin:"\\(",end:"\\)",contains:U,keywords:re,relevance:0};U.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,G("'"),G('"'),v.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},v.UNICODE_RANGE,v.HEXCOLOR,H,L("variable","@@?"+N,10),L("variable","@\\{"+N+"\\}"),L("built_in","~?`[^`]*?`"),{className:"attribute",begin:N+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},v.IMPORTANT,{beginKeywords:"and not"},v.FUNCTION_DISPATCH);const P=U.concat({begin:/\{/,end:/\}/,contains:w}),le={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(U)},k={begin:A+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:U}}]},z={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:re,returnEnd:!0,contains:U,relevance:0}},Q={className:"variable",variants:[{begin:"@"+N+"\\s*:",relevance:15},{begin:"@"+N}],starts:{end:"[;}]",returnEnd:!0,contains:P}},K={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:A,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,le,L("keyword","all\\b"),L("variable","@\\{"+N+"\\}"),{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]},fe={begin:N+`:(:)?(${_.join("|")})`,returnBegin:!0,contains:[K]};return w.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,z,Q,fe,k,K,le,v.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:w}}return Xu=m,Xu}var Qu,Eg;function o0(){if(Eg)return Qu;Eg=1;function s(i){const r="\\[=*\\[",l="\\]=*\\]",u={begin:r,end:l,contains:["self"]},d=[i.COMMENT("--(?!"+r+")","$"),i.COMMENT("--"+r,l,{contains:[u],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:i.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:[i.inherit(i.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:d}].concat(d)},i.C_NUMBER_MODE,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,{className:"string",begin:r,end:l,contains:[u],relevance:5}])}}return Qu=s,Qu}var Vu,_g;function c0(){if(_g)return Vu;_g=1;function s(i){const r={className:"variable",variants:[{begin:"\\$\\("+i.UNDERSCORE_IDENT_RE+"\\)",contains:[i.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},l={className:"string",begin:/"/,end:/"/,contains:[i.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:"^"+i.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},p={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},y={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[i.HASH_COMMENT_MODE,r,l,u,d,p,y]}}return Vu=s,Vu}var Ju,Sg;function u0(){if(Sg)return Ju;Sg=1;function s(i){const r=i.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},y={begin:/->\{/,end:/\}/},g={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},m={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[g]},b={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},v=[i.BACKSLASH_ESCAPE,p,m],_=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],x=(w,U,G="\\1")=>{const L=G==="\\1"?G:r.concat(G,U);return r.concat(r.concat("(?:",w,")"),U,/(?:\\.|[^\\\/])*?/,L,/(?:\\.|[^\\\/])*?/,G,u)},N=(w,U,G)=>r.concat(r.concat("(?:",w,")"),U,/(?:\\.|[^\\\/])*?/,G,u),A=[m,i.HASH_COMMENT_MODE,i.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),y,{className:"string",contains:v,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[i.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},b,{begin:"(\\/\\/|"+i.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[i.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:x("s|tr|y",r.either(..._,{capture:!0}))},{begin:x("s|tr|y","\\(","\\)")},{begin:x("s|tr|y","\\[","\\]")},{begin:x("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:N("(?:m|qr)?",/\//,/\//)},{begin:N("m|qr",r.either(..._,{capture:!0}),/\1/)},{begin:N("m|qr",/\(/,/\)/)},{begin:N("m|qr",/\[/,/\]/)},{begin:N("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[i.TITLE_MODE,g]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[i.TITLE_MODE,g,b]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return p.contains=A,y.contains=A,{name:"Perl",aliases:["pl","pm"],keywords:d,contains:A}}return Ju=s,Ju}var Wu,Tg;function f0(){if(Tg)return Wu;Tg=1;function s(i){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,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,i.C_NUMBER_MODE,i.QUOTE_STRING_MODE,i.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[i.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},i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+m.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:m,contains:[i.UNDERSCORE_TITLE_MODE]},{begin:"\\."+i.UNDERSCORE_IDENT_RE,relevance:0}]}}return Wu=s,Wu}var ef,Ng;function d0(){if(Ng)return ef;Ng=1;function s(i){const r=i.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),y={scope:"variable",match:"\\$+"+u},g={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},m={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},b=i.inherit(i.APOS_STRING_MODE,{illegal:null}),v=i.inherit(i.QUOTE_STRING_MODE,{illegal:null,contains:i.QUOTE_STRING_MODE.contains.concat(m)}),_={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:i.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(he,I)=>{I.data._beginMatch=he[1]||he[2]},"on:end":(he,I)=>{I.data._beginMatch!==he[1]&&I.ignoreMatch()}},x=i.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),N=`[
|
|
168
|
-
]`,A={scope:"string",variants:[v,b,_,x]},w={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},U=["false","null","true"],G=["__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"],H={keyword:G,literal:(he=>{const I=[];return he.forEach(ne=>{I.push(ne),ne.toLowerCase()===ne?I.push(ne.toUpperCase()):I.push(ne.toLowerCase())}),I})(U),built_in:L},P=he=>he.map(I=>I.replace(/\|\d+$/,"")),le={variants:[{match:[/new/,r.concat(N,"+"),r.concat("(?!",P(L).join("\\b|"),"\\b)"),d],scope:{1:"keyword",4:"title.class"}}]},k=r.concat(u,"\\b(?!\\()"),z={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),k],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[d,r.concat(/::/,r.lookahead(/(?!class\b)/)),k],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"}}]},Q={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},K={relevance:0,begin:/\(/,end:/\)/,keywords:H,contains:[Q,y,z,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,A,w,le]},fe={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",P(G).join("\\b|"),"|",P(L).join("\\b|"),"\\b)"),u,r.concat(N,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[K]};K.contains.push(fe);const we=[Q,z,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,A,w,le],Ae={begin:r.concat(/#\[\s*\\?/,r.either(d,p)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:U,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:U,keyword:["new","array"]},contains:["self",...we]},...we,{scope:"meta",variants:[{match:d},{match:p}]}]};return{case_insensitive:!1,keywords:H,contains:[Ae,i.HASH_COMMENT_MODE,i.COMMENT("//","$"),i.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:i.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},g,{scope:"variable.language",match:/\$this\b/},y,fe,z,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},le,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},i.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:H,contains:["self",Ae,y,z,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,A,w]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},i.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[i.inherit(i.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},i.UNDERSCORE_TITLE_MODE]},A,w]}}return ef=s,ef}var tf,xg;function h0(){if(xg)return tf;xg=1;function s(i){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},i.inherit(i.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),i.inherit(i.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return tf=s,tf}var nf,wg;function p0(){if(wg)return nf;wg=1;function s(i){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return nf=s,nf}var af,Ag;function m0(){if(Ag)return af;Ag=1;function s(i){const r=i.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:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:g,illegal:/#/},v={begin:/\{\{/,relevance:0},_={className:"string",contains:[i.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE,m,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,m,v,b]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[i.BACKSLASH_ESCAPE,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,v,b]},i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},x="[0-9](_?[0-9])*",N=`(\\b(${x}))?\\.(${x})|\\b(${x})\\.`,A=`\\b|${u.join("|")}`,w={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${N}))[eE][+-]?(${x})[jJ]?(?=${A})`},{begin:`(${N})[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(${x})[jJ](?=${A})`}]},U={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:g,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},G={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",m,w,_,i.HASH_COMMENT_MODE]}]};return b.contains=[_,w,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:g,illegal:/(<\/|\?)|=>/,contains:[m,w,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},_,U,i.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[G]},{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:[w,G,_]}]}}return af=s,af}var lf,Rg;function g0(){if(Rg)return lf;Rg=1;function s(i){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return lf=s,lf}var sf,Og;function b0(){if(Og)return sf;Og=1;function s(i){const r=i.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:[i.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]+/}]}),i.HASH_COMMENT_MODE,{scope:"string",contains:[i.BACKSLASH_ESCAPE],variants:[i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),i.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 sf=s,sf}var rf,kg;function y0(){if(kg)return rf;kg=1;function s(i){const r=i.regex,l=/(r#)?/,u=r.concat(l,i.UNDERSCORE_IDENT_RE),d=r.concat(l,i.IDENT_RE),p={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,d,r.lookahead(/\s*\(/))},y="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",g=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],m=["true","false","Some","None","Ok","Err"],b=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],v=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f16","f32","f64","f128","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:i.IDENT_RE+"!?",type:v,keyword:g,literal:m,built_in:b},illegal:"</",contains:[i.C_LINE_COMMENT_MODE,i.COMMENT("/\\*","\\*/",{contains:["self"]}),i.inherit(i.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+y},{begin:"\\b0o([0-7_]+)"+y},{begin:"\\b0x([A-Fa-f0-9_]+)"+y},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+y}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,u],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[i.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:i.IDENT_RE+"::",keywords:{keyword:"Self",built_in:b,type:v}},{scope:"punctuation",begin:"->"},p]}}return rf=s,rf}var of,Mg;function v0(){if(Mg)return of;Mg=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_-]*/}}),i=["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=[...i,...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(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=s(m),v=p,_=d,x="@[a-z-]+",N="and or not only",w={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,b.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},b.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+_.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+v.join("|")+")"},w,{begin:/\(/,end:/\)/,contains:[b.CSS_NUMBER_MODE]},b.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[b.BLOCK_COMMENT,w,b.HEXCOLOR,b.CSS_NUMBER_MODE,b.UNICODE_RANGE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.IMPORTANT,b.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:x,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:N,attribute:u.join(" ")},contains:[{begin:x,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},w,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return of=g,of}var cf,Cg;function E0(){if(Cg)return cf;Cg=1;function s(i){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return cf=s,cf}var uf,Dg;function _0(){if(Dg)return uf;Dg=1;function s(i){const r=i.regex,l=i.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},d={begin:/"/,end:/"/,contains:[{match:/""/}]},p=["true","false","unknown"],y=["double precision","large object","with timezone","without timezone"],g=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],m=["add","asc","collation","desc","final","first","last","view"],b=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],v=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],_=["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"],x=["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"],N=v,A=[...b,...m].filter(P=>!v.includes(P)),w={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},U={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},G={match:r.concat(/\b/,r.either(...N),/\s*\(/),relevance:0,keywords:{built_in:N}};function L(P){return r.concat(/\b/,r.either(...P.map(le=>le.replace(/\s+/,"\\s+"))),/\b/)}const re={scope:"keyword",match:L(x),relevance:0};function H(P,{exceptions:le,when:k}={}){const z=k;return le=le||[],P.map(Q=>Q.match(/\|\d+$/)||le.includes(Q)?Q:z(Q)?`${Q}|0`:Q)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:H(A,{when:P=>P.length<3}),literal:p,type:g,built_in:_},contains:[{scope:"type",match:L(y)},re,G,w,u,d,i.C_NUMBER_MODE,i.C_BLOCK_COMMENT_MODE,l,U]}}return uf=s,uf}var ff,Lg;function S0(){if(Lg)return ff;Lg=1;function s(k){return k?typeof k=="string"?k:k.source:null}function i(k){return r("(?=",k,")")}function r(...k){return k.map(Q=>s(Q)).join("")}function l(k){const z=k[k.length-1];return typeof z=="object"&&z.constructor===Object?(k.splice(k.length-1,1),z):{}}function u(...k){return"("+(l(k).capture?"":"?:")+k.map(K=>s(K)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const d=k=>r(/\b/,k,/\w$/.test(k)?/\b/:/\B/),p=["Protocol","Type"].map(d),y=["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"],b=["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"],x=["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"],N=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(N,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),w=r(N,A,"*"),U=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]/),G=u(U,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),L=r(U,G,"*"),re=r(/[A-Z]/,G,"*"),H=["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 le(k){const z={match:/\s+/,relevance:0},Q=k.COMMENT("/\\*","\\*/",{contains:["self"]}),K=[k.C_LINE_COMMENT_MODE,Q],fe={match:[/\./,u(...p,...y)],className:{2:"keyword"}},we={match:r(/\./,u(...m)),relevance:0},Ae=m.filter(je=>typeof je=="string").concat(["_|0"]),he=m.filter(je=>typeof je!="string").concat(g).map(d),I={variants:[{className:"keyword",match:u(...he,...y)}]},ne={$pattern:u(/\b\w+/,/#\w+/),keyword:Ae.concat(_),literal:b},oe=[fe,we,I],ve={match:r(/\./,u(...x)),relevance:0},Se={className:"built_in",match:r(/\b/,u(...x),/(?=\()/)},S=[ve,Se],D={match:/->/,relevance:0},q={className:"operator",relevance:0,variants:[{match:w},{match:`\\.(\\.|${A})+`}]},ue=[D,q],pe="([0-9]_*)+",xe="([0-9a-fA-F]_*)+",me={className:"number",relevance:0,variants:[{match:`\\b(${pe})(\\.(${pe}))?([eE][+-]?(${pe}))?\\b`},{match:`\\b0x(${xe})(\\.(${xe}))?([pP][+-]?(${pe}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},Oe=(je="")=>({className:"subst",variants:[{match:r(/\\/,je,/[0\\tnr"']/)},{match:r(/\\/,je,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Ee=(je="")=>({className:"subst",match:r(/\\/,je,/[\t ]*(?:[\r\n]|\r\n)/)}),He=(je="")=>({className:"subst",label:"interpol",begin:r(/\\/,je,/\(/),end:/\)/}),We=(je="")=>({begin:r(je,/"""/),end:r(/"""/,je),contains:[Oe(je),Ee(je),He(je)]}),ke=(je="")=>({begin:r(je,/"/),end:r(/"/,je),contains:[Oe(je),He(je)]}),At={className:"string",variants:[We(),We("#"),We("##"),We("###"),ke(),ke("#"),ke("##"),ke("###")]},Ge=[k.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[k.BACKSLASH_ESCAPE]}],Nn={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ge},nt=je=>{const cn=r(je,/\//),Qt=r(/\//,je);return{begin:cn,end:Qt,contains:[...Ge,{scope:"comment",begin:`#(?!.*${Qt})`,end:/$/}]}},xn={scope:"regexp",variants:[nt("###"),nt("##"),nt("#"),Nn]},rn={match:r(/`/,L,/`/)},zt={className:"variable",match:/\$\d+/},qn={className:"variable",match:`\\$${G}+`},Jt=[rn,zt,qn],ca={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:P,contains:[...ue,me,At]}]}},Vn={scope:"keyword",match:r(/@/,u(...H),i(u(/\(/,/\s+/)))},Ke={scope:"meta",match:r(/@/,L)},Ut=[ca,Vn,Ke],mt={match:i(/\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)/,G,"+")},{className:"type",match:re,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,i(re)),relevance:0}]},bn={begin:/</,end:/>/,keywords:ne,contains:[...K,...oe,...Ut,D,mt]};mt.contains.push(bn);const yn={match:r(L,/\s*:/),keywords:"_|0",relevance:0},kn={begin:/\(/,end:/\)/,relevance:0,keywords:ne,contains:["self",yn,...K,xn,...oe,...S,...ue,me,At,...Jt,...Ut,mt]},Mn={begin:/</,end:/>/,keywords:"repeat each",contains:[...K,mt]},Cn={begin:u(i(r(L,/\s*:/)),i(r(L,/\s+/,L,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:L}]},Dn={begin:/\(/,end:/\)/,keywords:ne,contains:[Cn,...K,...oe,...ue,me,At,...Ut,mt,kn],endsParent:!0,illegal:/["']/},on={match:[/(func|macro)/,/\s+/,u(rn.match,L,w)],className:{1:"keyword",3:"title.function"},contains:[Mn,Dn,z],illegal:[/\[/,/%/]},St={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Mn,Dn,z],illegal:/\[|%/},Wt={match:[/operator/,/\s+/,w],className:{1:"keyword",3:"title"}},Nt={begin:[/precedencegroup/,/\s+/,re],className:{1:"keyword",3:"title"},contains:[mt],keywords:[...v,...b],end:/}/},Gn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Ln={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},wn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,L,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:ne,contains:[Mn,...oe,{begin:/:/,end:/\{/,keywords:ne,contains:[{scope:"title.class.inherited",match:re},...oe],relevance:0}]};for(const je of At.variants){const cn=je.contains.find(Ct=>Ct.label==="interpol");cn.keywords=ne;const Qt=[...oe,...S,...ue,me,At,...Jt];cn.contains=[...Qt,{begin:/\(/,end:/\)/,contains:["self",...Qt]}]}return{name:"Swift",keywords:ne,contains:[...K,on,St,Gn,Ln,wn,Wt,Nt,{beginKeywords:"import",end:/$/,contains:[...K],relevance:0},xn,...oe,...S,...ue,me,At,...Jt,...Ut,mt,kn]}}return ff=le,ff}var df,zg;function T0(){if(zg)return df;zg=1;function s(i){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}]},y={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[i.BACKSLASH_ESCAPE,d]},g=i.inherit(y,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),x={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"},N={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},A={begin:/\{/,end:/\}/,contains:[N],illegal:"\\n",relevance:0},w={begin:"\\[",end:"\\]",contains:[N],illegal:"\\n",relevance:0},U=[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:"&"+i.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+i.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},i.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},x,{className:"number",begin:i.C_NUMBER_RE+"\\b",relevance:0},A,w,p,y],G=[...U];return G.pop(),G.push(g),N.contains=G,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:U}}return df=s,df}var hf,Ug;function N0(){if(Ug)return hf;Ug=1;const s="[A-Za-z$_][0-9A-Za-z$_]*",i=["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"],y=[].concat(d,l,u);function g(b){const v=b.regex,_=(Oe,{after:Ee})=>{const He="</"+Oe[0].slice(1);return Oe.input.indexOf(He,Ee)!==-1},x=s,N={begin:"<>",end:"</>"},A=/<[A-Za-z0-9\\._:-]+\s*\/>/,w={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Oe,Ee)=>{const He=Oe[0].length+Oe.index,We=Oe.input[He];if(We==="<"||We===","){Ee.ignoreMatch();return}We===">"&&(_(Oe,{after:He})||Ee.ignoreMatch());let ke;const At=Oe.input.substring(He);if(ke=At.match(/^\s*=/)){Ee.ignoreMatch();return}if((ke=At.match(/^\s+extends\s+/))&&ke.index===0){Ee.ignoreMatch();return}}},U={$pattern:s,keyword:i,literal:r,built_in:y,"variable.language":p},G="[0-9](_?[0-9])*",L=`\\.(${G})`,re="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",H={className:"number",variants:[{begin:`(\\b(${re})((${L})|\\.)?|(${L}))[eE][+-]?(${G})\\b`},{begin:`\\b(${re})\\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:U,contains:[]},le={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,P],subLanguage:"xml"}},k={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,P],subLanguage:"css"}},z={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,P],subLanguage:"graphql"}},Q={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,P]},fe={className:"comment",variants:[b.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:x+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),b.C_BLOCK_COMMENT_MODE,b.C_LINE_COMMENT_MODE]},we=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,le,k,z,Q,{match:/\$\d+/},H];P.contains=we.concat({begin:/\{/,end:/\}/,keywords:U,contains:["self"].concat(we)});const Ae=[].concat(fe,P.contains),he=Ae.concat([{begin:/(\s*)\(/,end:/\)/,keywords:U,contains:["self"].concat(Ae)}]),I={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:U,contains:he},ne={variants:[{match:[/class/,/\s+/,x,/\s+/,/extends/,/\s+/,v.concat(x,"(",v.concat(/\./,x),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,x],scope:{1:"keyword",3:"title.class"}}]},oe={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+/,x,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[I],illegal:/%/},S={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function D(Oe){return v.concat("(?!",Oe.join("|"),")")}const q={match:v.concat(/\b/,D([...d,"super","import","await"].map(Oe=>`${Oe}\\s*\\(`)),x,v.lookahead(/\s*\(/)),className:"title.function",relevance:0},ue={begin:v.concat(/\./,v.lookahead(v.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},pe={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},I]},xe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",me={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,v.lookahead(xe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[I]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:U,exports:{PARAMS_CONTAINS:he,CLASS_REFERENCE:oe},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),ve,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,le,k,z,Q,fe,{match:/\$\d+/},H,oe,{scope:"attr",match:x+v.lookahead(":"),relevance:0},me,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[fe,b.REGEXP_MODE,{className:"function",begin:xe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:b.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:U,contains:he}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:N.begin,end:N.end},{match:A},{begin:w.begin,"on:begin":w.isTrulyOpeningTag,end:w.end}],subLanguage:"xml",contains:[{begin:w.begin,end:w.end,skip:!0,contains:["self"]}]}]},Se,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+b.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[I,b.inherit(b.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},ue,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[I]},q,S,ne,pe,{match:/\$[(.]/}]}}function m(b){const v=b.regex,_=g(b),x=s,N=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],A={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},w={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:N},contains:[_.exports.CLASS_REFERENCE]},U={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},G=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],L={$pattern:s,keyword:i.concat(G),literal:r,built_in:y.concat(N),"variable.language":p},re={className:"meta",begin:"@"+x},H=(z,Q,K)=>{const fe=z.contains.findIndex(we=>we.label===Q);if(fe===-1)throw new Error("can not find mode to replace");z.contains.splice(fe,1,K)};Object.assign(_.keywords,L),_.exports.PARAMS_CONTAINS.push(re);const P=_.contains.find(z=>z.scope==="attr"),le=Object.assign({},P,{match:v.concat(x,v.lookahead(/\s*\?:/))});_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,P,le]),_.contains=_.contains.concat([re,A,w,le]),H(_,"shebang",b.SHEBANG()),H(_,"use_strict",U);const k=_.contains.find(z=>z.label==="func.def");return k.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return hf=m,hf}var pf,Bg;function x0(){if(Bg)return pf;Bg=1;function s(i){const r=i.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}/,y=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,g=/\d{1,2}(:\d{1,2}){1,2}/,m={className:"literal",variants:[{begin:r.concat(/# */,r.either(p,d),/ *#/)},{begin:r.concat(/# */,g,/ *#/)},{begin:r.concat(/# */,y,/ *#/)},{begin:r.concat(/# */,r.either(p,d),/ +/,r.either(y,g),/ *#/)}]},b={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},v={className:"label",begin:/^\w+:/},_=i.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),x=i.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,b,v,_,x,{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:[x]}]}}return pf=s,pf}var mf,jg;function w0(){if(jg)return mf;jg=1;function s(i){i.regex;const r=i.COMMENT(/\(;/,/;\)/);r.contains.push("self");const l=i.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_]+/},y={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},g={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},m={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},b={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:u},contains:[l,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},p,y,d,i.QUOTE_STRING_MODE,m,b,g]}}return mf=s,mf}var gf,Ig;function A0(){if(Ig)return gf;Ig=1;var s=Y_();return s.registerLanguage("xml",F_()),s.registerLanguage("bash",K_()),s.registerLanguage("c",P_()),s.registerLanguage("cpp",Z_()),s.registerLanguage("csharp",X_()),s.registerLanguage("css",Q_()),s.registerLanguage("markdown",V_()),s.registerLanguage("diff",J_()),s.registerLanguage("ruby",W_()),s.registerLanguage("go",e0()),s.registerLanguage("graphql",t0()),s.registerLanguage("ini",n0()),s.registerLanguage("java",a0()),s.registerLanguage("javascript",i0()),s.registerLanguage("json",l0()),s.registerLanguage("kotlin",s0()),s.registerLanguage("less",r0()),s.registerLanguage("lua",o0()),s.registerLanguage("makefile",c0()),s.registerLanguage("perl",u0()),s.registerLanguage("objectivec",f0()),s.registerLanguage("php",d0()),s.registerLanguage("php-template",h0()),s.registerLanguage("plaintext",p0()),s.registerLanguage("python",m0()),s.registerLanguage("python-repl",g0()),s.registerLanguage("r",b0()),s.registerLanguage("rust",y0()),s.registerLanguage("scss",v0()),s.registerLanguage("shell",E0()),s.registerLanguage("sql",_0()),s.registerLanguage("swift",S0()),s.registerLanguage("yaml",T0()),s.registerLanguage("typescript",N0()),s.registerLanguage("vbnet",x0()),s.registerLanguage("wasm",w0()),s.HighlightJS=s,s.default=s,gf=s,gf}var R0=A0();const Lb=Eb(R0),O0={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},k0=2e5,zb="http://www.w3.org/1999/xhtml";function M0(s){for(const i of s.querySelectorAll(".d2h-file-wrapper")){const r=C0(i.dataset.lang??"");if(r)for(const l of D0(i))Hg(l.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),Hg(l.filter(u=>u.kind!=="del"),()=>!0,r)}}function C0(s){const i=O0[s]??$_(s);return i==="plaintext"||!Lb.getLanguage(i)?null:i}function D0(s){const i=[];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&&i.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&&i.push(r),i}function Hg(s,i,r){if(s.filter(i).length===0)return;const u=s.map(p=>p.ctn.textContent??"").join(`
|
|
169
|
-
`);if(!u.trim()||u.length>
|
|
170
|
-
`).forEach((m,b)=>{b>0&&(u+="</span>".repeat(l.length),r.push(u),u=l.join("")),u+=
|
|
171
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y0(s,i){return q0(s)||G0(s,i)||F0(s,i)||$0()}function F0(s,i){if(s){if(typeof s=="string")return qg(s,i);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)?qg(s,i):void 0}}const Ub=Object.entries,Gg=Object.setPrototypeOf,K0=Object.isFrozen,P0=Object.getPrototypeOf,Z0=Object.getOwnPropertyDescriptor;let mn=Object.freeze,gn=Object.seal,Ul=Object.create,Bb=typeof Reflect<"u"&&Reflect,Af=Bb.apply,Rf=Bb.construct;mn||(mn=function(i){return i});gn||(gn=function(i){return i});Af||(Af=function(i,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 i.apply(r,u)});Rf||(Rf=function(i){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 i(...l)});const Dl=Zt(Array.prototype.forEach),X0=Zt(Array.prototype.lastIndexOf),$g=Zt(Array.prototype.pop),Ll=Zt(Array.prototype.push),Q0=Zt(Array.prototype.splice),Di=Array.isArray,Bs=Zt(String.prototype.toLowerCase),bf=Zt(String.prototype.toString),Yg=Zt(String.prototype.match),Ls=Zt(String.prototype.replace),Fg=Zt(String.prototype.indexOf),V0=Zt(String.prototype.trim),J0=Zt(Number.prototype.toString),W0=Zt(Boolean.prototype.toString),Kg=typeof BigInt>"u"?null:Zt(BigInt.prototype.toString),Pg=typeof Symbol>"u"?null:Zt(Symbol.prototype.toString),ln=Zt(Object.prototype.hasOwnProperty),zs=Zt(Object.prototype.toString),an=Zt(RegExp.prototype.test),Qi=eS(TypeError);function Zt(s){return function(i){i instanceof RegExp&&(i.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 Af(s,i,l)}}function eS(s){return function(){for(var i=arguments.length,r=new Array(i),l=0;l<i;l++)r[l]=arguments[l];return Rf(s,r)}}function it(s,i){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bs;if(Gg&&Gg(s,null),!Di(i))return s;let l=i.length;for(;l--;){let u=i[l];if(typeof u=="string"){const d=r(u);d!==u&&(K0(i)||(i[l]=d),u=d)}s[u]=!0}return s}function tS(s){for(let i=0;i<s.length;i++)ln(s,i)||(s[i]=null);return s}function Sn(s){const i=Ul(null);for(const l of Ub(s)){var r=Y0(l,2);const u=r[0],d=r[1];ln(s,u)&&(Di(d)?i[u]=tS(d):d&&typeof d=="object"&&d.constructor===Object?i[u]=Sn(d):i[u]=d)}return i}function nS(s){switch(typeof s){case"string":return s;case"number":return J0(s);case"boolean":return W0(s);case"bigint":return Kg?Kg(s):"0";case"symbol":return Pg?Pg(s):"Symbol()";case"undefined":return zs(s);case"function":case"object":{if(s===null)return zs(s);const i=s,r=ma(i,"toString");if(typeof r=="function"){const l=r(i);return typeof l=="string"?l:zs(l)}return zs(s)}default:return zs(s)}}function ma(s,i){for(;s!==null;){const l=Z0(s,i);if(l){if(l.get)return Zt(l.get);if(typeof l.value=="function")return Zt(l.value)}s=P0(s)}function r(){return null}return r}function aS(s){try{return an(s,""),!0}catch{return!1}}const Zg=mn(["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"]),yf=mn(["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"]),vf=mn(["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"]),iS=mn(["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"]),Ef=mn(["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"]),lS=mn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Xg=mn(["#text"]),Qg=mn(["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"]),_f=mn(["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"]),Vg=mn(["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=mn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),sS=gn(/{{[\w\W]*|^[\w\W]*}}/g),rS=gn(/<%[\w\W]*|^[\w\W]*%>/g),oS=gn(/\${[\w\W]*/g),cS=gn(/^data-[\-\w.\u00B7-\uFFFF]+$/),uS=gn(/^aria-[\-\w]+$/),Jg=gn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fS=gn(/^(?:\w+script|data):/i),dS=gn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),hS=gn(/^html$/i),pS=gn(/^[a-z][.\w]*(-[.\w]+)+$/i),Wg=gn(/<[/\w!]/g),eb=gn(/<[/\w]/g),mS=gn(/<\/no(script|embed|frames)/i),gS=gn(/\/>/i),Qn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},bS=function(){return typeof window>"u"?null:window},yS=function(i,r){if(typeof i!="object"||typeof i.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 i.createPolicy(d,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},tb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ki=function(i,r,l,u){return ln(i,r)&&Di(i[r])?it(u.base?Sn(u.base):{},i[r],u.transform):l};function jb(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bS();const i=X=>jb(X);if(i.version="3.4.13",i.removed=[],!s||!s.document||s.document.nodeType!==Qn.document||!s.Element)return i.isSupported=!1,i;let r=s.document;const l=r,u=l.currentScript;s.DocumentFragment;const d=s.HTMLTemplateElement,p=s.Node,y=s.Element,g=s.NodeFilter,m=s.NamedNodeMap;m===void 0&&(s.NamedNodeMap||s.MozNamedAttrMap),s.HTMLFormElement;const b=s.DOMParser,v=s.trustedTypes,_=y.prototype,x=ma(_,"cloneNode"),N=ma(_,"remove"),A=ma(_,"nextSibling"),w=ma(_,"childNodes"),U=ma(_,"parentNode"),G=ma(_,"shadowRoot"),L=ma(_,"attributes"),re=p&&p.prototype?ma(p.prototype,"nodeType"):null,H=p&&p.prototype?ma(p.prototype,"nodeName"):null,P=p&&p.prototype?ma(p.prototype,"ownerDocument"):null;if(typeof d=="function"){const X=r.createElement("template");X.content&&X.content.ownerDocument&&(r=X.content.ownerDocument)}let le,k="",z,Q=!1,K=0;const fe=function(){if(K>0)throw Qi('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.')},we=function(T){fe(),K++;try{return le.createHTML(T)}finally{K--}},Ae=function(T){fe(),K++;try{return le.createScriptURL(T)}finally{K--}},he=function(){return Q||(z=yS(v,u),Q=!0),z},I=r,ne=I.implementation,oe=I.createNodeIterator,ve=I.createDocumentFragment,Se=I.getElementsByTagName,S=l.importNode;let D=tb();i.isSupported=typeof Ub=="function"&&typeof U=="function"&&ne&&ne.createHTMLDocument!==void 0;const q=sS,ue=rS,pe=oS,xe=cS,me=uS,Oe=fS,Ee=dS,He=pS;let We=Jg,ke=null;const At=it({},[...Zg,...yf,...vf,...Ef,...Xg]);let Ge=null;const Nn=it({},[...Qg,..._f,...Vg,...eo]);let nt=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}})),xn=null,rn=null;const zt=Object.seal(Ul(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let qn=!0,Jt=!0,ca=!1,Vn=!0,Ke=!1,Ut=!0,mt=!1,bn=!1,yn=null,kn=null,Mn=!1,Cn=!1,Dn=!1,on=!1,St=!0,Wt=!1;const Nt="user-content-";let Gn=!0,Ln=!1,wn={},je=null;const cn=it({},["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 Qt=null;const Ct=it({},["audio","video","img","source","image","track"]);let R=null;const J=it({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),C="http://www.w3.org/1998/Math/MathML",ee="http://www.w3.org/2000/svg",de="http://www.w3.org/1999/xhtml";let Le=de,ye=!1,be=null;const ze=it({},[C,ee,de],bf),Rt=mn(["mi","mo","mn","ms","mtext"]);let gt=it({},Rt);const Jn=mn(["annotation-xml"]);let ya=it({},Jn);const ei=it({},["title","style","font","a","script"]);let vn=null;const Mt=["application/xhtml+xml","text/html"],en="text/html";let lt=null,Wn=null;const tl=r.createElement("form"),ka=function(T){return T instanceof RegExp||T instanceof Function},ti=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Wn&&Wn===T)return;(!T||typeof T!="object")&&(T={}),T=Sn(T),vn=Mt.indexOf(T.PARSER_MEDIA_TYPE)===-1?en:T.PARSER_MEDIA_TYPE,lt=vn==="application/xhtml+xml"?bf:Bs,ke=ki(T,"ALLOWED_TAGS",At,{transform:lt}),Ge=ki(T,"ALLOWED_ATTR",Nn,{transform:lt}),be=ki(T,"ALLOWED_NAMESPACES",ze,{transform:bf}),R=ki(T,"ADD_URI_SAFE_ATTR",J,{transform:lt,base:J}),Qt=ki(T,"ADD_DATA_URI_TAGS",Ct,{transform:lt,base:Ct}),je=ki(T,"FORBID_CONTENTS",cn,{transform:lt}),xn=ki(T,"FORBID_TAGS",Sn({}),{transform:lt}),rn=ki(T,"FORBID_ATTR",Sn({}),{transform:lt}),wn=ln(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?Sn(T.USE_PROFILES):T.USE_PROFILES:!1,qn=T.ALLOW_ARIA_ATTR!==!1,Jt=T.ALLOW_DATA_ATTR!==!1,ca=T.ALLOW_UNKNOWN_PROTOCOLS||!1,Vn=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ke=T.SAFE_FOR_TEMPLATES||!1,Ut=T.SAFE_FOR_XML!==!1,mt=T.WHOLE_DOCUMENT||!1,Cn=T.RETURN_DOM||!1,Dn=T.RETURN_DOM_FRAGMENT||!1,on=T.RETURN_TRUSTED_TYPE||!1,Mn=T.FORCE_BODY||!1,St=T.SANITIZE_DOM!==!1,Wt=T.SANITIZE_NAMED_PROPS||!1,Gn=T.KEEP_CONTENT!==!1,Ln=T.IN_PLACE||!1,We=aS(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:Jg,Le=typeof T.NAMESPACE=="string"?T.NAMESPACE:de,gt=ln(T,"MATHML_TEXT_INTEGRATION_POINTS")&&T.MATHML_TEXT_INTEGRATION_POINTS&&typeof T.MATHML_TEXT_INTEGRATION_POINTS=="object"?Sn(T.MATHML_TEXT_INTEGRATION_POINTS):it({},Rt),ya=ln(T,"HTML_INTEGRATION_POINTS")&&T.HTML_INTEGRATION_POINTS&&typeof T.HTML_INTEGRATION_POINTS=="object"?Sn(T.HTML_INTEGRATION_POINTS):it({},Jn);const B=ln(T,"CUSTOM_ELEMENT_HANDLING")&&T.CUSTOM_ELEMENT_HANDLING&&typeof T.CUSTOM_ELEMENT_HANDLING=="object"?Sn(T.CUSTOM_ELEMENT_HANDLING):Ul(null);if(nt=Ul(null),ln(B,"tagNameCheck")&&ka(B.tagNameCheck)&&(nt.tagNameCheck=B.tagNameCheck),ln(B,"attributeNameCheck")&&ka(B.attributeNameCheck)&&(nt.attributeNameCheck=B.attributeNameCheck),ln(B,"allowCustomizedBuiltInElements")&&typeof B.allowCustomizedBuiltInElements=="boolean"&&(nt.allowCustomizedBuiltInElements=B.allowCustomizedBuiltInElements),gn(nt),Ke&&(Jt=!1),Dn&&(Cn=!0),wn&&(ke=it({},Xg),Ge=Ul(null),wn.html===!0&&(it(ke,Zg),it(Ge,Qg)),wn.svg===!0&&(it(ke,yf),it(Ge,_f),it(Ge,eo)),wn.svgFilters===!0&&(it(ke,vf),it(Ge,_f),it(Ge,eo)),wn.mathMl===!0&&(it(ke,Ef),it(Ge,Vg),it(Ge,eo))),zt.tagCheck=null,zt.attributeCheck=null,ln(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?zt.tagCheck=T.ADD_TAGS:Di(T.ADD_TAGS)&&(ke===At&&(ke=Sn(ke)),it(ke,T.ADD_TAGS,lt))),ln(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?zt.attributeCheck=T.ADD_ATTR:Di(T.ADD_ATTR)&&(Ge===Nn&&(Ge=Sn(Ge)),it(Ge,T.ADD_ATTR,lt))),ln(T,"ADD_URI_SAFE_ATTR")&&Di(T.ADD_URI_SAFE_ATTR)&&it(R,T.ADD_URI_SAFE_ATTR,lt),ln(T,"FORBID_CONTENTS")&&Di(T.FORBID_CONTENTS)&&(je===cn&&(je=Sn(je)),it(je,T.FORBID_CONTENTS,lt)),ln(T,"ADD_FORBID_CONTENTS")&&Di(T.ADD_FORBID_CONTENTS)&&(je===cn&&(je=Sn(je)),it(je,T.ADD_FORBID_CONTENTS,lt)),Gn&&(ke["#text"]=!0),mt&&it(ke,["html","head","body"]),ke.table&&(it(ke,["tbody"]),delete xn.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const V=le;le=T.TRUSTED_TYPES_POLICY;try{k=we("")}catch(_e){throw le=V,_e}}else T.TRUSTED_TYPES_POLICY===null?(le=void 0,k=""):(le===void 0&&(le=he()),le&&typeof k=="string"&&(k=we("")));mn&&mn(T),Wn=T},va=it({},[...yf,...vf,...iS]),ni=it({},[...Ef,...lS]),un=function(T,B,V){return B.namespaceURI===de?T==="svg":B.namespaceURI===C?T==="svg"&&(V==="annotation-xml"||gt[V]):!!va[T]},ua=function(T,B,V){return B.namespaceURI===de?T==="math":B.namespaceURI===ee?T==="math"&&ya[V]:!!ni[T]},Ea=function(T,B,V){return B.namespaceURI===ee&&!ya[V]||B.namespaceURI===C&&!gt[V]?!1:!ni[T]&&(ei[T]||!va[T])},_a=function(T){let B=U(T);(!B||!B.tagName)&&(B={namespaceURI:Le,tagName:"template"});const V=Bs(T.tagName),_e=Bs(B.tagName);return be[T.namespaceURI]?T.namespaceURI===ee?un(V,B,_e):T.namespaceURI===C?ua(V,B,_e):T.namespaceURI===de?Ea(V,B,_e):!!(vn==="application/xhtml+xml"&&be[T.namespaceURI]):!1},dt=function(T){Ll(i.removed,{element:T});try{U(T).removeChild(T)}catch{if(N(T),!U(T))throw Qi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ma=function(T){ce(T);const B=w(T);if(B){const _e=[];Dl(B,Ne=>{Ll(_e,Ne)}),Dl(_e,Ne=>{try{N(Ne)}catch{}})}const V=L(T);if(V)for(let _e=V.length-1;_e>=0;--_e){const Ne=V[_e],Be=Ne&&Ne.name;if(typeof Be=="string")try{T.removeAttribute(Be)}catch{}}},An=function(T,B){try{Ll(i.removed,{attribute:B.getAttributeNode(T),from:B})}catch{Ll(i.removed,{attribute:null,from:B})}if(B.removeAttribute(T),T==="is")if(Cn||Dn)try{dt(B)}catch{}else try{B.setAttribute(T,"")}catch{}},fa=function(T){const B=L(T);if(B)for(let V=B.length-1;V>=0;--V){const _e=B[V],Ne=_e&&_e.name;if(!(typeof Ne!="string"||Ge[lt(Ne)]))try{T.removeAttribute(Ne)}catch{}}},ce=function(T){const B=[T];for(;B.length>0;){const V=B.pop();(re?re(V):V.nodeType)===Qn.element&&fa(V);const Ne=w(V);if(Ne)for(let Be=Ne.length-1;Be>=0;--Be)B.push(Ne[Be])}},Me=function(T){if(!Ut)return;const B=[T];for(;B.length>0;){const V=B.pop(),_e=re?re(V):V.nodeType;if(_e===Qn.processingInstruction||_e===Qn.comment&&an(eb,V.data)){try{N(V)}catch{}continue}if(_e===Qn.element){const Be=V,Xe=lt(H?H(V):V.nodeName);try{Be.hasAttribute&&Be.hasAttribute("patchsrc")&&Be.removeAttribute("patchsrc"),Be.hasAttribute&&Be.hasAttribute("for")&&Xe!=="label"&&Xe!=="output"&&Be.removeAttribute("for")}catch{}}const Ne=w(V);if(Ne)for(let Be=Ne.length-1;Be>=0;--Be)B.push(Ne[Be])}},$e=function(T){let B=null,V=null;if(Mn)T="<remove></remove>"+T;else{const Be=Yg(T,/^[\r\n\t ]+/);V=Be&&Be[0]}vn==="application/xhtml+xml"&&Le===de&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const _e=le?we(T):T;if(Le===de)try{B=new b().parseFromString(_e,vn)}catch{}if(!B||!B.documentElement){B=ne.createDocument(Le,"template",null);try{B.documentElement.innerHTML=ye?k:_e}catch{}}const Ne=B.body||B.documentElement;return T&&V&&Ne.insertBefore(r.createTextNode(V),Ne.childNodes[0]||null),Le===de?Se.call(B,mt?"html":"body")[0]:mt?B.documentElement:Ne},st=function(T){const B=P?P(T):T.ownerDocument;return oe.call(B||T,T,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},Tt=function(T){return T=Ls(T,q," "),T=Ls(T,ue," "),T=Ls(T,pe," "),T},qt=function(T){var B;T.normalize();const V=P?P(T):T.ownerDocument,_e=oe.call(V||T,T,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let Ne=_e.nextNode();for(;Ne;)Ne.data=Tt(Ne.data),Ne=_e.nextNode();const Be=(B=T.querySelectorAll)===null||B===void 0?void 0:B.call(T,"template");Be&&Dl(Be,Xe=>{Bt(Xe.content)&&qt(Xe.content)})},tn=function(T){const B=H?H(T):null;return typeof B!="string"||lt(B)!=="form"?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||T.attributes!==L(T)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function"||T.nodeType!==re(T)||T.childNodes!==w(T)},Bt=function(T){if(!re||typeof T!="object"||T===null)return!1;try{return re(T)===Qn.documentFragment}catch{return!1}},rt=function(T){if(!re||typeof T!="object"||T===null)return!1;try{return typeof re(T)=="number"}catch{return!1}};function Ot(X,T,B){X.length!==0&&Dl(X,V=>{V.call(i,T,B,Wn)})}const nl=function(T,B){return!!(Ut&&T.hasChildNodes()&&!rt(T.firstElementChild)&&an(Wg,T.textContent)&&an(Wg,T.innerHTML)||Ut&&T.namespaceURI===de&&B==="style"&&rt(T.firstElementChild)||T.nodeType===Qn.processingInstruction||Ut&&T.nodeType===Qn.comment&&an(eb,T.data))},ai=function(T,B,V){if(!xn[B]&&li(B)&&(nt.tagNameCheck instanceof RegExp&&an(nt.tagNameCheck,B)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(B)))return!1;if(Gn&&!je[B]){const _e=U(T),Ne=w(T);if(Ne&&_e){const Be=Ne.length;for(let Xe=Be-1;Xe>=0;--Xe){const se=T===V?x(Ne[Xe],!0):Ne[Xe];_e.insertBefore(se,A(T))}}}return dt(T),!0},ii=function(T,B,V,_e){return T.length===0?B:B===V||B===_e?Sn(B):B},Ca=function(T,B){if(Ot(D.beforeSanitizeElements,T,null),T!==B&&U(T)===null)return Ln&&ce(T),!0;if(tn(T))return dt(T),!0;const V=lt(H?H(T):T.nodeName);if(ke=ii(D.uponSanitizeElement,ke,At,yn),Ot(D.uponSanitizeElement,T,{tagName:V,allowedTags:ke}),T!==B&&U(T)===null)return Ln&&ce(T),!0;if(nl(T,V))return dt(T),!0;if(xn[V]||!(zt.tagCheck instanceof Function&&zt.tagCheck(V))&&!ke[V]){const Ne=ai(T,V,B);return Ne===!1&&Ot(D.afterSanitizeElements,T,null),Ne}if((re?re(T):T.nodeType)===Qn.element&&!_a(T)||(V==="noscript"||V==="noembed"||V==="noframes")&&an(mS,T.innerHTML))return dt(T),!0;if(Ke&&T.nodeType===Qn.text){const Ne=Tt(T.textContent);T.textContent!==Ne&&(Ll(i.removed,{element:T.cloneNode()}),T.textContent=Ne)}return Ot(D.afterSanitizeElements,T,null),!1},al=function(T,B,V){if(rn[B]||Ut&&B==="patchsrc"||Ut&&B==="for"&&T!=="label"&&T!=="output"||St&&(B==="id"||B==="name")&&(V in r||V in tl))return!1;const _e=Ge[B]||zt.attributeCheck instanceof Function&&zt.attributeCheck(B,T);if(!(Jt&&an(xe,B))){if(!(qn&&an(me,B))){if(_e){if(!R[B]){if(!an(We,Ls(V,Ee,""))){if(!((B==="src"||B==="xlink:href"||B==="href")&&T!=="script"&&Fg(V,"data:")===0&&Qt[T])){if(!(ca&&!an(Oe,Ls(V,Ee,"")))){if(V)return!1}}}}}else if(!(li(T)&&(nt.tagNameCheck instanceof RegExp&&an(nt.tagNameCheck,T)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(T))&&(nt.attributeNameCheck instanceof RegExp&&an(nt.attributeNameCheck,B)||nt.attributeNameCheck instanceof Function&&nt.attributeNameCheck(B,T))||B==="is"&&nt.allowCustomizedBuiltInElements&&(nt.tagNameCheck instanceof RegExp&&an(nt.tagNameCheck,V)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(V))))return!1}}return!0},En=it({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),li=function(T){return!En[Bs(T)]&&an(He,T)},Da=function(T,B,V,_e){if(le&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!V)switch(v.getAttributeType(T,B)){case"TrustedHTML":return we(_e);case"TrustedScriptURL":return Ae(_e)}return _e},si=function(T,B,V,_e){try{V?T.setAttributeNS(V,B,_e):T.setAttribute(B,_e),tn(T)?dt(T):$g(i.removed)}catch{An(B,T)}},Gt=function(T){Ot(D.beforeSanitizeAttributes,T,null);const B=T.attributes;if(!B||tn(T))return;Ge=ii(D.uponSanitizeAttribute,Ge,Nn,kn);const V={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ge,forceKeepAttr:void 0};let _e=B.length;const Ne=lt(T.nodeName);for(;_e--;){const Be=B[_e],Xe=Be.name,se=Be.namespaceURI,ge=Be.value,Ce=lt(Xe),Fe=ge;let Pe=Xe==="value"?Fe:V0(Fe);if(V.attrName=Ce,V.attrValue=Pe,V.keepAttr=!0,V.forceKeepAttr=void 0,Ot(D.uponSanitizeAttribute,T,V),Pe=V.attrValue,Wt&&(Ce==="id"||Ce==="name")&&Fg(Pe,Nt)!==0&&(An(Xe,T),Pe=Nt+Pe),Ut&&an(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Pe)){An(Xe,T);continue}if(Ce==="attributename"&&Yg(Pe,"href")){An(Xe,T);continue}if(!V.forceKeepAttr){if(!V.keepAttr){An(Xe,T);continue}if(!Vn&&an(gS,Pe)){An(Xe,T);continue}if(Ke&&(Pe=Tt(Pe)),!al(Ne,Ce,Pe)){An(Xe,T);continue}Pe=Da(Ne,Ce,se,Pe),Pe!==Fe&&si(T,Xe,se,Pe)}}Ot(D.afterSanitizeAttributes,T,null)},La=function(T){let B=null;const V=st(T);for(Ot(D.beforeSanitizeShadowDOM,T,null);B=V.nextNode();)if(Ot(D.uponSanitizeShadowNode,B,null),Ca(B,T),Gt(B),Bt(B.content)&&La(B.content),(re?re(B):B.nodeType)===Qn.element){const Ne=G(B);Bt(Ne)&&(Sa(Ne),La(Ne))}Ot(D.afterSanitizeShadowDOM,T,null)},Sa=function(T){const B=[{node:T,shadow:null}];for(;B.length>0;){const V=B.pop();if(V.shadow){La(V.shadow);continue}const _e=V.node,Be=(re?re(_e):_e.nodeType)===Qn.element,Xe=w(_e);if(Xe)for(let se=Xe.length-1;se>=0;--se)B.push({node:Xe[se],shadow:null});if(Be){const se=H?H(_e):null;if(typeof se=="string"&<(se)==="template"){const ge=_e.content;Bt(ge)&&B.push({node:ge,shadow:null})}}if(Be){const se=G(_e);Bt(se)&&B.push({node:null,shadow:se},{node:se,shadow:null})}}};return i.sanitize=function(X){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=null,V=null,_e=null,Ne=null;if(ye=!X,ye&&(X="<!-->"),typeof X!="string"&&!rt(X)&&(X=nS(X),typeof X!="string"))throw Qi("dirty is not a string, aborting");if(!i.isSupported)return X;bn?(ke=yn,Ge=kn):ti(T),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(ke=Sn(ke)),D.uponSanitizeAttribute.length>0&&(Ge=Sn(Ge)),i.removed=[];const Be=Ln&&typeof X!="string"&&rt(X);if(Be){Me(X);const ge=H?H(X):X.nodeName;if(typeof ge=="string"){const Ce=lt(ge);if(!ke[Ce]||xn[Ce])throw Ma(X),Qi("root node is forbidden and cannot be sanitized in-place")}if(tn(X))throw Ma(X),Qi("root node is clobbered and cannot be sanitized in-place");try{Sa(X)}catch(Ce){throw Ma(X),Ce}}else if(rt(X))B=$e("<!---->"),V=B.ownerDocument.importNode(X,!0),V.nodeType===Qn.element&&V.nodeName==="BODY"||V.nodeName==="HTML"?B=V:B.appendChild(V),Sa(V);else{if(!Cn&&!Ke&&!mt&&X.indexOf("<")===-1)return le&&on?we(X):X;if(B=$e(X),!B)return Cn?null:on?k:""}B&&Mn&&dt(B.firstChild);const Xe=Be?X:B;try{const ge=st(Xe);for(;_e=ge.nextNode();)Ca(_e,Xe),Gt(_e),Bt(_e.content)&&La(_e.content)}catch(ge){throw Be&&(Ma(X),Dl(i.removed,Ce=>{Ce.element&&ce(Ce.element)})),ge}if(Be)return Dl(i.removed,ge=>{ge.element&&ce(ge.element)}),Ke&&qt(X),X;if(Cn){if(Ke&&qt(B),Dn)for(Ne=ve.call(B.ownerDocument);B.firstChild;)Ne.appendChild(B.firstChild);else Ne=B;return(Ge.shadowroot||Ge.shadowrootmode)&&(Ne=S.call(l,Ne,!0)),Ne}let se=mt?B.outerHTML:B.innerHTML;return mt&&ke["!doctype"]&&B.ownerDocument&&B.ownerDocument.doctype&&B.ownerDocument.doctype.name&&an(hS,B.ownerDocument.doctype.name)&&(se="<!DOCTYPE "+B.ownerDocument.doctype.name+`>
|
|
172
|
-
`+se),Ke&&(se=Tt(se)),le&&on?we(se):se},i.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ti(X),bn=!0,yn=ke,kn=Ge},i.clearConfig=function(){Wn=null,bn=!1,yn=null,kn=null,le=z,k=""},i.isValidAttribute=function(X,
|
|
173
|
-
]`).replace("lheading",
|
|
161
|
+
`)}),l=null,u=null};for(const p of r)if(p.startsWith("diff --git ")){d(),l=[p];const y=p.match(/^diff --git a\/(.+?) b\/(.+)$/);u=y?y[2]:p.slice(11)}else if(l&&(l.push(p),p.startsWith("--- a/")&&u==="/dev/null"&&(u=p.slice(6)),p==="+++ /dev/null")){const y=l.find(g=>g.startsWith("--- a/"));y&&(u=y.slice(6))}return d(),i}function n_(s,i){const r=new Set(i);return Ja(s).filter(l=>r.has(l.path)).map(l=>l.patch).join(`
|
|
162
|
+
`)}function a_(s){return i_(s)}function i_(s,i){const l=new Map;for(const{path:u,patch:d}of Ja(s)){const p=new Map;let y=0,g=!1;const m=d.split(`
|
|
163
|
+
`);for(let b=0;b<m.length;b++){const v=m[b],_=v.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(_){y=Number(_[2]),g=!0;continue}g&&(v===""&&b===m.length-1||v.startsWith("\\")||(v.startsWith("+")||v.startsWith(" ")||v==="")&&(p.set(y,v===""?"":v.slice(1)),y++))}l.set(u,p)}return l}function l_(s){const i=new Map;for(const[r,l]of a_(s))i.set(r,new Set(l.keys()));return i}function s_(s,i){const r=new Set(i.flatMap(l=>l.files));return Ja(s).map(l=>l.path).filter(l=>!r.has(l))}function r_(s){return new Map(Ja(s).map(i=>[i.path,i.patch.split(`
|
|
164
|
+
`).length]))}const Ob={blocker:"🚨",minor:"⚠️",nit:"🎨"};function Jm(s,i){return i?`${Ob[i]} **${i}** — ${s}`:s}const o_=["inbox","awaiting","drafted"],Nf=["requests","settled","sent","archived"],Au={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. Nothing 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 Wm(s){return s.status==="awaiting"||s.status==="running"?"awaiting":s.status==="sent"?"sent":"drafted"}const Hs=s=>!!s.pr.state&&s.pr.state!=="OPEN",eg=["ready","awaiting","running","failed","reviewed","skipped","sent"];function Bl(s){return[...s].sort((i,r)=>eg.indexOf(i.status)-eg.indexOf(r.status)||r.updatedAt.localeCompare(i.updatedAt))}const kb=["sent","reviewed","skipped"];function qs(s){return Bl(s.filter(i=>!Hs(i)&&!kb.includes(i.status)))}function c_(s,i,r){return qs(s).filter(l=>l.key===i||!r.has(l.key))}function u_(s,i){if(!(i!=null&&i.enabled)||i.awaiting.length===0)return[];const r=new Set(qs(s).map(u=>u.id)),l=new Set(i.awaiting.map(u=>u.id));return Bl(s.filter(u=>l.has(u.id)&&!r.has(u.id)))}const f_=(s,i)=>i.some(r=>r.id===s.id);function d_(s,i){const r=s.filter(u=>!Hs(u)),l=Bl(r.filter(u=>!kb.includes(u.status)));return{inbox:l,awaiting:l.filter(u=>Wm(u)==="awaiting"),drafted:l.filter(u=>Wm(u)==="drafted"),requests:u_(s,i),settled:Bl(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:Bl(r.filter(u=>u.status==="sent")),archived:Bl(s.filter(Hs))}}function h_(s,i){return Nf.includes(s)&&i[s].length===0?"inbox":s}function Mb(s){var i,r;return s.reason==="own-review"?((i=s.review)==null?void 0:i.at)??s.at:s.reason==="own-reply"?((r=s.reply)==null?void 0:r.at)??s.at:s.at}const oo={"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 p_(s){var i;return Hs(s)?((i=s.pr.state)==null?void 0:i.toLowerCase())??null:s.filed?oo[s.filed.reason].tag:s.status==="reviewed"||s.status==="skipped"?s.status:null}function m_(s,i){var r;return i!=null&&i.enabled?((r=i.awaiting.find(l=>l.id===s.id))==null?void 0:r.reply)??"unknown":"unknown"}const g_={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."}},b_=s=>g_[s];function y_(s){const i=$f[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 ${i}. The last inbox poll still listed a review request for you — a request can lag a send, and GitHub holds some open even after one.`}}function v_(s){const i=oo[s.reason],r=new Date(Mb(s)).toLocaleDateString();return{label:i.tag,title:`${i.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.`}}const E_=(s,i)=>s.sent?y_(s.sent):s.filed?v_(s.filed):b_(i);function __(s){const i=s.length,r=i===1?"1 review request":`${i} 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} ${i===1?"it":"them"} here without submitting a review, so ${i===1?"it is":"they are"} under open requests, tagged with whose move it is.`}function Cb(s,i=Date.now()){const r=Math.max(0,Math.round((i-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 S_={approve:"approve",comment:"comment",request_changes:"changes"},$f={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function T_(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 · ${$f[s.sent.event]??s.sent.event}`,tone:"sent"}:s.verdict?{label:`${s.verdict.recommendation.replace("_"," ")} ${s.verdict.confidence}%`,tone:S_[s.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function Ru(s){return s.trusted?"ran the code":s.withSource?"read the full source":"read the diff only"}function N_(s){if(s.commentCount===0)return"no comments drafted";const i=[`${s.commentCount} comment${s.commentCount===1?"":"s"} drafted`];return s.driftedCount&&i.push(`${s.driftedCount} off-diff`),s.gradedCount&&i.push(s.blockerCount?`${s.blockerCount} blocker${s.blockerCount===1?"":"s"}`:"no blockers"),i.join(", ")}function x_(s,i,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 ${Cb(s.updatedAt,r)} ago`,Ru(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 ${$f[s.sent.event]??s.sent.event} on ${new Date(s.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue.`,meta:[s.sent.auto?"auto-sent by the daemon":"sent by you",Ru(s)]};const l=[Ru(s)];return s.filed?l.unshift(oo[s.filed.reason].meta(new Date(Mb(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(N_(s)),i!=null&&i.enabled&&s.status==="ready"&&((u=s.verdict)==null?void 0:u.recommendation)==="approve"&&l.push(s.verdict.confidence>=i.autoSendThreshold?`auto-send candidate at ${s.verdict.confidence}%`:`below the ${i.autoSendThreshold}% auto-send bar`),s.filed?{reasoning:oo[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 w_="/favicon.svg",A_="/favicon-dot.svg",R_=s=>qs(s).length>0,O_=s=>s?A_:w_;function k_(s){const i=O_(R_(s)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===i||r.setAttribute("href",i)}async function sn(s,i){const r=await fetch(s,{...i,headers:i!=null&&i.body?{"Content-Type":"application/json"}:void 0});if(!r.ok){let l=`${(i==null?void 0:i.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 Yf=async()=>{const s=await sn("/api/reviews");return k_(s),s},Db=()=>sn("/api/daemon"),tg=s=>sn(`/api/reviews/${encodeURIComponent(s)}`),io=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}`,{method:"PATCH",body:JSON.stringify(i)}),M_=(s,i,r)=>sn(`/api/reviews/${encodeURIComponent(s)}/comments/${i}`,{method:"PATCH",body:JSON.stringify(r)}),C_=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/comments`,{method:"POST",body:JSON.stringify(i)}),D_=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/comments/${i}`,{method:"DELETE"}),L_=s=>sn("/api/reviews",{method:"POST",body:JSON.stringify({input:s})}),z_=s=>sn(`/api/reviews/${encodeURIComponent(s)}/refresh`,{method:"POST"}),Lb=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/rerun`+(i===void 0?"":`?source=${i?"1":"0"}`),{method:"POST"}),xf=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/chat`,{method:"POST",body:JSON.stringify(i)}),U_=s=>sn(`/api/reviews/${encodeURIComponent(s)}/chat/pending`,{method:"DELETE"}),B_=s=>sn(`/api/reviews/${encodeURIComponent(s)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),j_=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/send-preview?event=${i}`),I_=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/send`,{method:"POST",body:JSON.stringify({event:i,confirm:!0})}),H_=s=>`/api/reviews/${encodeURIComponent(s)}/export`,q_=()=>sn("/api/config"),Ou=(s,i=!1)=>sn("/api/config/trust",{method:"POST",body:JSON.stringify({rule:s,remove:i})}),ku=s=>sn("/api/config/daemon",{method:"POST",body:JSON.stringify(s)});function Mu(s){return s.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")}function wf(s){return s.nodeName.toLowerCase()}function ng(s){const i=[],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&&(i.push({event:"start",offset:u,node:d}),u=r(d,u),wf(d).match(/br|hr|img|input/)||i.push({event:"stop",offset:u,node:d}));return u};return r(s,0),i}function G_(s,i,r){let l=0,u="";const d=[];function p(v){return v!==null&&(v==null?void 0:v.attributes)!==void 0}function y(){return!s.length||!i.length?s.length?s:i:s[0].offset!==i[0].offset?s[0].offset<i[0].offset?s:i:i[0].event==="start"?s:i}function g(v){if(!p(v))throw new Error("Node is not an Element");u+=`<${wf(v)} ${Array().map.call(v.attributes,_=>`${_.nodeName}="${Mu(_.value).replace(/"/g,""")}"`).join(" ")}>`}function m(v){u+="</"+wf(v)+">"}function b(v){(v.event==="start"?g:m)(v.node)}for(;s.length||i.length;){let v=y();if(u+=Mu(r.substring(l,v[0].offset)),l=v[0].offset,v===s){d.reverse().forEach(m);do b(v.splice(0,1)[0]),v=y();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(),b(v.splice(0,1)[0])}return u+Mu(r.substr(l))}const $_={"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 Y_(s){var i;return(i=$_[s])!==null&&i!==void 0?i:"plaintext"}var Cu,ag;function F_(){if(ag)return Cu;ag=1;function s(R){return R instanceof Map?R.clear=R.delete=R.set=function(){throw new Error("map is read-only")}:R instanceof Set&&(R.add=R.clear=R.delete=function(){throw new Error("set is read-only")}),Object.freeze(R),Object.getOwnPropertyNames(R).forEach(J=>{const C=R[J],ee=typeof C;(ee==="object"||ee==="function")&&!Object.isFrozen(C)&&s(C)}),R}class i{constructor(J){J.data===void 0&&(J.data={}),this.data=J.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(R){return R.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(R,...J){const C=Object.create(null);for(const ee in R)C[ee]=R[ee];return J.forEach(function(ee){for(const de in ee)C[de]=ee[de]}),C}const u="</span>",d=R=>!!R.scope,p=(R,{prefix:J})=>{if(R.startsWith("language:"))return R.replace("language:","language-");if(R.includes(".")){const C=R.split(".");return[`${J}${C.shift()}`,...C.map((ee,de)=>`${ee}${"_".repeat(de+1)}`)].join(" ")}return`${J}${R}`};class y{constructor(J,C){this.buffer="",this.classPrefix=C.classPrefix,J.walk(this)}addText(J){this.buffer+=r(J)}openNode(J){if(!d(J))return;const C=p(J.scope,{prefix:this.classPrefix});this.span(C)}closeNode(J){d(J)&&(this.buffer+=u)}value(){return this.buffer}span(J){this.buffer+=`<span class="${J}">`}}const g=(R={})=>{const J={children:[]};return Object.assign(J,R),J};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(J){this.top.children.push(J)}openNode(J){const C=g({scope:J});this.add(C),this.stack.push(C)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(J){return this.constructor._walk(J,this.rootNode)}static _walk(J,C){return typeof C=="string"?J.addText(C):C.children&&(J.openNode(C),C.children.forEach(ee=>this._walk(J,ee)),J.closeNode(C)),J}static _collapse(J){typeof J!="string"&&J.children&&(J.children.every(C=>typeof C=="string")?J.children=[J.children.join("")]:J.children.forEach(C=>{m._collapse(C)}))}}class b extends m{constructor(J){super(),this.options=J}addText(J){J!==""&&this.add(J)}startScope(J){this.openNode(J)}endScope(){this.closeNode()}__addSublanguage(J,C){const ee=J.root;C&&(ee.scope=`language:${C}`),this.add(ee)}toHTML(){return new y(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function v(R){return R?typeof R=="string"?R:R.source:null}function _(R){return w("(?=",R,")")}function x(R){return w("(?:",R,")*")}function T(R){return w("(?:",R,")?")}function w(...R){return R.map(C=>v(C)).join("")}function A(R){const J=R[R.length-1];return typeof J=="object"&&J.constructor===Object?(R.splice(R.length-1,1),J):{}}function U(...R){return"("+(A(R).capture?"":"?:")+R.map(ee=>v(ee)).join("|")+")"}function G(R){return new RegExp(R.toString()+"|").exec("").length-1}function L(R,J){const C=R&&R.exec(J);return C&&C.index===0}const re=new RegExp(U(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function H(R,{joinWith:J}){let C=0;return R.map(ee=>{C+=1;const de=C;let Le=v(ee),ye="";for(;Le.length>0;){const be=re.exec(Le);if(!be){ye+=Le;break}ye+=Le.substring(0,be.index),Le=Le.substring(be.index+be[0].length),be[0][0]==="\\"&&be[1]?ye+="\\"+String(Number(be[1])+de):(ye+=be[0],(be[0]==="("||/^\(\?[<']/.test(be[0]))&&C++)}return ye}).map(ee=>`(${ee})`).join(J)}const P=/\b\B/,le="[a-zA-Z]\\w*",k="[a-zA-Z_]\\w*",z="\\b\\d+(\\.\\d+)?",Q="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K="\\b(0b[01]+)",fe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",we=(R={})=>{const J=/^#![ ]*\//;return R.binary&&(R.begin=w(J,/.*\b/,R.binary,/\b.*/)),l({scope:"meta",begin:J,end:/$/,relevance:0,"on:begin":(C,ee)=>{C.index!==0&&ee.ignoreMatch()}},R)},Ae={begin:"\\\\[\\s\\S]",relevance:0},he={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ae]},I={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ae]},ne={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/},oe=function(R,J,C={}){const ee=l({scope:"comment",begin:R,end:J,contains:[]},C);ee.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 de=U("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 ee.contains.push({begin:w(/[ ]+/,"(",de,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ee},ve=oe("//","$"),Se=oe("/\\*","\\*/"),S=oe("#","$"),D={scope:"number",begin:z,relevance:0},q={scope:"number",begin:Q,relevance:0},ue={scope:"number",begin:K,relevance:0},pe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ae,{begin:/\[/,end:/\]/,relevance:0,contains:[Ae]}]},xe={scope:"title",begin:le,relevance:0},me={scope:"title",begin:k,relevance:0},Oe={begin:"\\.\\s*"+k,relevance:0};var He=Object.freeze({__proto__:null,APOS_STRING_MODE:he,BACKSLASH_ESCAPE:Ae,BINARY_NUMBER_MODE:ue,BINARY_NUMBER_RE:K,COMMENT:oe,C_BLOCK_COMMENT_MODE:Se,C_LINE_COMMENT_MODE:ve,C_NUMBER_MODE:q,C_NUMBER_RE:Q,END_SAME_AS_BEGIN:function(R){return Object.assign(R,{"on:begin":(J,C)=>{C.data._beginMatch=J[1]},"on:end":(J,C)=>{C.data._beginMatch!==J[1]&&C.ignoreMatch()}})},HASH_COMMENT_MODE:S,IDENT_RE:le,MATCH_NOTHING_RE:P,METHOD_GUARD:Oe,NUMBER_MODE:D,NUMBER_RE:z,PHRASAL_WORDS_MODE:ne,QUOTE_STRING_MODE:I,REGEXP_MODE:pe,RE_STARTERS_RE:fe,SHEBANG:we,TITLE_MODE:xe,UNDERSCORE_IDENT_RE:k,UNDERSCORE_TITLE_MODE:me});function We(R,J){R.input[R.index-1]==="."&&J.ignoreMatch()}function ke(R,J){R.className!==void 0&&(R.scope=R.className,delete R.className)}function At(R,J){J&&R.beginKeywords&&(R.begin="\\b("+R.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",R.__beforeBegin=We,R.keywords=R.keywords||R.beginKeywords,delete R.beginKeywords,R.relevance===void 0&&(R.relevance=0))}function Ge(R,J){Array.isArray(R.illegal)&&(R.illegal=U(...R.illegal))}function Nn(R,J){if(R.match){if(R.begin||R.end)throw new Error("begin & end are not supported with match");R.begin=R.match,delete R.match}}function nt(R,J){R.relevance===void 0&&(R.relevance=1)}const xn=(R,J)=>{if(!R.beforeMatch)return;if(R.starts)throw new Error("beforeMatch cannot be used with starts");const C=Object.assign({},R);Object.keys(R).forEach(ee=>{delete R[ee]}),R.keywords=C.keywords,R.begin=w(C.beforeMatch,_(C.begin)),R.starts={relevance:0,contains:[Object.assign(C,{endsParent:!0})]},R.relevance=0,delete C.beforeMatch},rn=["of","and","for","in","not","or","if","then","parent","list","value"],zt="keyword";function qn(R,J,C=zt){const ee=Object.create(null);return typeof R=="string"?de(C,R.split(" ")):Array.isArray(R)?de(C,R):Object.keys(R).forEach(function(Le){Object.assign(ee,qn(R[Le],J,Le))}),ee;function de(Le,ye){J&&(ye=ye.map(be=>be.toLowerCase())),ye.forEach(function(be){const ze=be.split("|");ee[ze[0]]=[Le,Jt(ze[0],ze[1])]})}}function Jt(R,J){return J?Number(J):ca(R)?0:1}function ca(R){return rn.includes(R.toLowerCase())}const Vn={},Ke=R=>{console.error(R)},Ut=(R,...J)=>{console.log(`WARN: ${R}`,...J)},mt=(R,J)=>{Vn[`${R}/${J}`]||(console.log(`Deprecated as of ${R}. ${J}`),Vn[`${R}/${J}`]=!0)},bn=new Error;function yn(R,J,{key:C}){let ee=0;const de=R[C],Le={},ye={};for(let be=1;be<=J.length;be++)ye[be+ee]=de[be],Le[be+ee]=!0,ee+=G(J[be-1]);R[C]=ye,R[C]._emit=Le,R[C]._multi=!0}function kn(R){if(Array.isArray(R.begin)){if(R.skip||R.excludeBegin||R.returnBegin)throw Ke("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),bn;if(typeof R.beginScope!="object"||R.beginScope===null)throw Ke("beginScope must be object"),bn;yn(R,R.begin,{key:"beginScope"}),R.begin=H(R.begin,{joinWith:""})}}function Mn(R){if(Array.isArray(R.end)){if(R.skip||R.excludeEnd||R.returnEnd)throw Ke("skip, excludeEnd, returnEnd not compatible with endScope: {}"),bn;if(typeof R.endScope!="object"||R.endScope===null)throw Ke("endScope must be object"),bn;yn(R,R.end,{key:"endScope"}),R.end=H(R.end,{joinWith:""})}}function Cn(R){R.scope&&typeof R.scope=="object"&&R.scope!==null&&(R.beginScope=R.scope,delete R.scope)}function Dn(R){Cn(R),typeof R.beginScope=="string"&&(R.beginScope={_wrap:R.beginScope}),typeof R.endScope=="string"&&(R.endScope={_wrap:R.endScope}),kn(R),Mn(R)}function on(R){function J(ye,be){return new RegExp(v(ye),"m"+(R.case_insensitive?"i":"")+(R.unicodeRegex?"u":"")+(be?"g":""))}class C{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(be,ze){ze.position=this.position++,this.matchIndexes[this.matchAt]=ze,this.regexes.push([ze,be]),this.matchAt+=G(be)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const be=this.regexes.map(ze=>ze[1]);this.matcherRe=J(H(be,{joinWith:"|"}),!0),this.lastIndex=0}exec(be){this.matcherRe.lastIndex=this.lastIndex;const ze=this.matcherRe.exec(be);if(!ze)return null;const Rt=ze.findIndex((Jn,ya)=>ya>0&&Jn!==void 0),gt=this.matchIndexes[Rt];return ze.splice(0,Rt),Object.assign(ze,gt)}}class ee{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(be){if(this.multiRegexes[be])return this.multiRegexes[be];const ze=new C;return this.rules.slice(be).forEach(([Rt,gt])=>ze.addRule(Rt,gt)),ze.compile(),this.multiRegexes[be]=ze,ze}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(be,ze){this.rules.push([be,ze]),ze.type==="begin"&&this.count++}exec(be){const ze=this.getMatcher(this.regexIndex);ze.lastIndex=this.lastIndex;let Rt=ze.exec(be);if(this.resumingScanAtSamePosition()&&!(Rt&&Rt.index===this.lastIndex)){const gt=this.getMatcher(0);gt.lastIndex=this.lastIndex+1,Rt=gt.exec(be)}return Rt&&(this.regexIndex+=Rt.position+1,this.regexIndex===this.count&&this.considerAll()),Rt}}function de(ye){const be=new ee;return ye.contains.forEach(ze=>be.addRule(ze.begin,{rule:ze,type:"begin"})),ye.terminatorEnd&&be.addRule(ye.terminatorEnd,{type:"end"}),ye.illegal&&be.addRule(ye.illegal,{type:"illegal"}),be}function Le(ye,be){const ze=ye;if(ye.isCompiled)return ze;[ke,Nn,Dn,xn].forEach(gt=>gt(ye,be)),R.compilerExtensions.forEach(gt=>gt(ye,be)),ye.__beforeBegin=null,[At,Ge,nt].forEach(gt=>gt(ye,be)),ye.isCompiled=!0;let Rt=null;return typeof ye.keywords=="object"&&ye.keywords.$pattern&&(ye.keywords=Object.assign({},ye.keywords),Rt=ye.keywords.$pattern,delete ye.keywords.$pattern),Rt=Rt||/\w+/,ye.keywords&&(ye.keywords=qn(ye.keywords,R.case_insensitive)),ze.keywordPatternRe=J(Rt,!0),be&&(ye.begin||(ye.begin=/\B|\b/),ze.beginRe=J(ze.begin),!ye.end&&!ye.endsWithParent&&(ye.end=/\B|\b/),ye.end&&(ze.endRe=J(ze.end)),ze.terminatorEnd=v(ze.end)||"",ye.endsWithParent&&be.terminatorEnd&&(ze.terminatorEnd+=(ye.end?"|":"")+be.terminatorEnd)),ye.illegal&&(ze.illegalRe=J(ye.illegal)),ye.contains||(ye.contains=[]),ye.contains=[].concat(...ye.contains.map(function(gt){return Wt(gt==="self"?ye:gt)})),ye.contains.forEach(function(gt){Le(gt,ze)}),ye.starts&&Le(ye.starts,be),ze.matcher=de(ze),ze}if(R.compilerExtensions||(R.compilerExtensions=[]),R.contains&&R.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return R.classNameAliases=l(R.classNameAliases||{}),Le(R)}function St(R){return R?R.endsWithParent||St(R.starts):!1}function Wt(R){return R.variants&&!R.cachedVariants&&(R.cachedVariants=R.variants.map(function(J){return l(R,{variants:null},J)})),R.cachedVariants?R.cachedVariants:St(R)?l(R,{starts:R.starts?l(R.starts):null}):Object.isFrozen(R)?l(R):R}var Nt="11.12.0";class Gn extends Error{constructor(J,C){super(J),this.name="HTMLInjectionError",this.html=C}}const Ln=r,wn=l,je=Symbol("nomatch"),cn=7,Qt=function(R){const J=Object.create(null),C=Object.create(null),ee=[];let de=!0;const Le="Could not find the language '{}', did you forget to load/include a language module?",ye={disableAutodetect:!0,name:"Plain text",contains:[]};let be={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function ze(ce){return be.noHighlightRe.test(ce)}function Rt(ce){let Me=ce.className+" ";Me+=ce.parentNode?ce.parentNode.className:"";const $e=be.languageDetectRe.exec(Me);if($e){const st=un($e[1]);return st||(Ut(Le.replace("{}",$e[1])),Ut("Falling back to no-highlight mode for this block.",ce)),st?$e[1]:"no-highlight"}return Me.split(/\s+/).find(st=>ze(st)||un(st))}function gt(ce,Me,$e){let st="",Tt="";typeof Me=="object"?(st=ce,$e=Me.ignoreIllegals,Tt=Me.language):(mt("10.7.0","highlight(lang, code, ...args) has been deprecated."),mt("10.7.0",`Please use highlight(code, options) instead.
|
|
165
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),Tt=ce,st=Me),$e===void 0&&($e=!0);const qt={code:st,language:Tt};An("before:highlight",qt);const tn=qt.result?qt.result:Jn(qt.language,qt.code,$e);return tn.code=qt.code,An("after:highlight",tn),tn}function Jn(ce,Me,$e,st){const Tt=Object.create(null);function qt(se,ge){return se.keywords[ge]}function tn(){if(!X.keywords){B.addText(V);return}let se=0;X.keywordPatternRe.lastIndex=0;let ge=X.keywordPatternRe.exec(V),Ce="";for(;ge;){Ce+=V.substring(se,ge.index);const Fe=Gt.case_insensitive?ge[0].toLowerCase():ge[0],Pe=qt(X,Fe);if(Pe){const[ea,Gl]=Pe;if(B.addText(Ce),Ce="",Tt[Fe]=(Tt[Fe]||0)+1,Tt[Fe]<=cn&&(_e+=Gl),ea.startsWith("_"))Ce+=ge[0];else{const Fs=Gt.classNameAliases[ea]||ea;Ot(ge[0],Fs)}}else Ce+=ge[0];se=X.keywordPatternRe.lastIndex,ge=X.keywordPatternRe.exec(V)}Ce+=V.substring(se),B.addText(Ce)}function Bt(){if(V==="")return;let se=null;if(typeof X.subLanguage=="string"){if(!J[X.subLanguage]){B.addText(V);return}se=Jn(X.subLanguage,V,!0,N[X.subLanguage]),N[X.subLanguage]=se._top}else se=ei(V,X.subLanguage.length?X.subLanguage:null);X.relevance>0&&(_e+=se.relevance),B.__addSublanguage(se._emitter,se.language)}function rt(){X.subLanguage!=null?Bt():tn(),V=""}function Ot(se,ge){se!==""&&(B.startScope(ge),B.addText(se),B.endScope())}function nl(se,ge){let Ce=1;const Fe=ge.length-1;for(;Ce<=Fe;){if(!se._emit[Ce]){Ce++;continue}const Pe=Gt.classNameAliases[se[Ce]]||se[Ce],ea=ge[Ce];Pe?Ot(ea,Pe):(V=ea,tn(),V=""),Ce++}}function ai(se,ge){return se.scope&&typeof se.scope=="string"&&B.openNode(Gt.classNameAliases[se.scope]||se.scope),se.beginScope&&(se.beginScope._wrap?(Ot(V,Gt.classNameAliases[se.beginScope._wrap]||se.beginScope._wrap),V=""):se.beginScope._multi&&(nl(se.beginScope,ge),V="")),X=Object.create(se,{parent:{value:X}}),X}function ii(se,ge,Ce){let Fe=L(se.endRe,Ce);if(Fe){if(se["on:end"]){const Pe=new i(se);se["on:end"](ge,Pe),Pe.isMatchIgnored&&(Fe=!1)}if(Fe){for(;se.endsParent&&se.parent;)se=se.parent;return se}}if(se.endsWithParent)return ii(se.parent,ge,Ce)}function Ca(se){return X.matcher.regexIndex===0?(V+=se[0],1):(Xe=!0,0)}function al(se){const ge=se[0],Ce=se.rule,Fe=new i(Ce),Pe=[Ce.__beforeBegin,Ce["on:begin"]];for(const ea of Pe)if(ea&&(ea(se,Fe),Fe.isMatchIgnored))return Ca(ge);return Ce.skip?V+=ge:(Ce.excludeBegin&&(V+=ge),rt(),!Ce.returnBegin&&!Ce.excludeBegin&&(V=ge)),ai(Ce,se),Ce.returnBegin?0:ge.length}function En(se){const ge=se[0],Ce=Me.substring(se.index),Fe=ii(X,se,Ce);if(!Fe)return je;const Pe=X;X.endScope&&X.endScope._wrap?(rt(),Ot(ge,X.endScope._wrap)):X.endScope&&X.endScope._multi?(rt(),nl(X.endScope,se)):Pe.skip?V+=ge:(Pe.returnEnd||Pe.excludeEnd||(V+=ge),rt(),Pe.excludeEnd&&(V=ge));do X.scope&&B.closeNode(),!X.skip&&!X.subLanguage&&(_e+=X.relevance),X=X.parent;while(X!==Fe.parent);return Fe.starts&&ai(Fe.starts,se),Pe.returnEnd?0:ge.length}function li(){const se=[];for(let ge=X;ge!==Gt;ge=ge.parent)ge.scope&&se.unshift(ge.scope);se.forEach(ge=>B.openNode(ge))}let Da={};function si(se,ge){const Ce=ge&&ge[0];if(V+=se,Ce==null)return rt(),0;if(Da.type==="begin"&&ge.type==="end"&&Da.index===ge.index&&Ce===""){if(V+=Me.slice(ge.index,ge.index+1),!de){const Fe=new Error(`0 width match regex (${ce})`);throw Fe.languageName=ce,Fe.badRule=Da.rule,Fe}return 1}if(Da=ge,ge.type==="begin")return al(ge);if(ge.type==="illegal"&&!$e){const Fe=new Error('Illegal lexeme "'+Ce+'" for mode "'+(X.scope||"<unnamed>")+'"');throw Fe.mode=X,Fe}else if(ge.type==="end"){const Fe=En(ge);if(Fe!==je)return Fe}if(ge.type==="illegal"&&Ce==="")return ge.index===Me.length||(V+=`
|
|
166
|
+
`),1;if(Be>1e5&&Be>ge.index*3)throw new Error("potential infinite loop, way more iterations than matches");return V+=Ce,Ce.length}const Gt=un(ce);if(!Gt)throw Ke(Le.replace("{}",ce)),new Error('Unknown language: "'+ce+'"');const La=on(Gt);let Sa="",X=st||La;const N={},B=new be.__emitter(be);li();let V="",_e=0,Ne=0,Be=0,Xe=!1;try{if(Gt.__emitTokens)Gt.__emitTokens(Me,B);else{for(X.matcher.considerAll();;){Be++,Xe?Xe=!1:X.matcher.considerAll(),X.matcher.lastIndex=Ne;const se=X.matcher.exec(Me);if(!se)break;const ge=Me.substring(Ne,se.index),Ce=si(ge,se);Ne=se.index+Ce}si(Me.substring(Ne))}return B.finalize(),Sa=B.toHTML(),{language:ce,value:Sa,relevance:_e,illegal:!1,_emitter:B,_top:X}}catch(se){if(se.message&&se.message.includes("Illegal"))return{language:ce,value:Ln(Me),illegal:!0,relevance:0,_illegalBy:{message:se.message,index:Ne,context:Me.slice(Ne-100,Ne+100),mode:se.mode,resultSoFar:Sa},_emitter:B};if(de)return{language:ce,value:Ln(Me),illegal:!1,relevance:0,errorRaised:se,_emitter:B,_top:X};throw se}}function ya(ce){const Me={value:Ln(ce),illegal:!1,relevance:0,_top:ye,_emitter:new be.__emitter(be)};return Me._emitter.addText(ce),Me}function ei(ce,Me){Me=Me||be.languages||Object.keys(J);const $e=ya(ce),st=Me.filter(un).filter(Ea).map(rt=>Jn(rt,ce,!1));st.unshift($e);const Tt=st.sort((rt,Ot)=>{if(rt.relevance!==Ot.relevance)return Ot.relevance-rt.relevance;if(rt.language&&Ot.language){if(un(rt.language).supersetOf===Ot.language)return 1;if(un(Ot.language).supersetOf===rt.language)return-1}return 0}),[qt,tn]=Tt,Bt=qt;return Bt.secondBest=tn,Bt}function vn(ce,Me,$e){const st=Me&&C[Me]||$e;ce.classList.add("hljs"),ce.classList.add(`language-${st}`)}function Mt(ce){let Me=null;const $e=Rt(ce);if(ze($e))return;if(An("before:highlightElement",{el:ce,language:$e}),ce.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ce);return}if(ce.children.length>0&&(be.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(ce)),be.throwUnescapedHTML))throw new Gn("One of your code blocks includes unescaped HTML.",ce.innerHTML);Me=ce;const st=Me.textContent,Tt=$e?gt(st,{language:$e,ignoreIllegals:!0}):ei(st);ce.innerHTML=Tt.value,ce.dataset.highlighted="yes",vn(ce,$e,Tt.language),ce.result={language:Tt.language,re:Tt.relevance,relevance:Tt.relevance},Tt.secondBest&&(ce.secondBest={language:Tt.secondBest.language,relevance:Tt.secondBest.relevance}),An("after:highlightElement",{el:ce,result:Tt,text:st})}function en(ce){be=wn(be,ce)}const lt=()=>{ka(),mt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Wn(){ka(),mt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let tl=!1;function ka(){function ce(){ka()}if(document.readyState==="loading"){tl||window.addEventListener("DOMContentLoaded",ce,!1),tl=!0;return}document.querySelectorAll(be.cssSelector).forEach(Mt)}function ti(ce,Me){let $e=null;try{$e=Me(R)}catch(st){if(Ke("Language definition for '{}' could not be registered.".replace("{}",ce)),de)Ke(st);else throw st;$e=ye}$e.name||($e.name=ce),J[ce]=$e,$e.rawDefinition=Me.bind(null,R),$e.aliases&&ua($e.aliases,{languageName:ce})}function va(ce){delete J[ce];for(const Me of Object.keys(C))C[Me]===ce&&delete C[Me]}function ni(){return Object.keys(J)}function un(ce){return ce=(ce||"").toLowerCase(),J[ce]||J[C[ce]]}function ua(ce,{languageName:Me}){typeof ce=="string"&&(ce=[ce]),ce.forEach($e=>{C[$e.toLowerCase()]=Me})}function Ea(ce){const Me=un(ce);return Me&&!Me.disableAutodetect}function _a(ce){ce["before:highlightBlock"]&&!ce["before:highlightElement"]&&(ce["before:highlightElement"]=Me=>{ce["before:highlightBlock"](Object.assign({block:Me.el},Me))}),ce["after:highlightBlock"]&&!ce["after:highlightElement"]&&(ce["after:highlightElement"]=Me=>{ce["after:highlightBlock"](Object.assign({block:Me.el},Me))})}function dt(ce){_a(ce),ee.push(ce)}function Ma(ce){const Me=ee.indexOf(ce);Me!==-1&&ee.splice(Me,1)}function An(ce,Me){const $e=ce;ee.forEach(function(st){st[$e]&&st[$e](Me)})}function fa(ce){return mt("10.7.0","highlightBlock will be removed entirely in v12.0"),mt("10.7.0","Please use highlightElement now."),Mt(ce)}Object.assign(R,{highlight:gt,highlightAuto:ei,highlightAll:ka,highlightElement:Mt,highlightBlock:fa,configure:en,initHighlighting:lt,initHighlightingOnLoad:Wn,registerLanguage:ti,unregisterLanguage:va,listLanguages:ni,getLanguage:un,registerAliases:ua,autoDetection:Ea,inherit:wn,addPlugin:dt,removePlugin:Ma}),R.debugMode=function(){de=!1},R.safeMode=function(){de=!0},R.versionString=Nt,R.regex={concat:w,lookahead:_,either:U,optional:T,anyNumberOfTimes:x};for(const ce in He)typeof He[ce]=="object"&&s(He[ce]);return Object.assign(R,He),R},Ct=Qt({});return Ct.newInstance=()=>Qt({}),Cu=Ct,Ct.HighlightJS=Ct,Ct.default=Ct,Cu}var Du,ig;function K_(){if(ig)return Du;ig=1;function s(i){const r=i.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/}]},y=i.inherit(p,{begin:/\(/,end:/\)/}),g=i.inherit(i.APOS_STRING_MODE,{className:"string"}),m=i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),b={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[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,y,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[p,y,m,g]}]}]},i.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:[b],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[b],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(l,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:l,relevance:0,starts:b}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(l,/>/))),contains:[{className:"name",begin:l,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Du=s,Du}var Lu,lg;function P_(){if(lg)return Lu;lg=1;function s(i){const r=i.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:[i.BACKSLASH_ESCAPE]},p=i.inherit(i.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),y={begin:/<<-?\s*(?=\w+)/,starts:{contains:[i.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},g={className:"string",begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,l,d]};d.contains.push(g);const m={match:/\\"/},b={className:"string",begin:/'/,end:/'/},v={match:/\\'/},_={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},i.NUMBER_MODE,l]},x=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],T=i.SHEBANG({binary:`(${x.join("|")})`,relevance:10}),w={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[i.inherit(i.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},A=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],U=["true","false"],G={match:/(\/[a-z._-]+)+/},L=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],re=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],H=["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:A,literal:U,built_in:[...L,...re,"set","shopt",...H,...P]},contains:[T,i.SHEBANG(),w,_,p,y,G,g,m,b,v,l]}}return Lu=s,Lu}var zu,sg;function Z_(){if(sg)return zu;sg=1;function s(i){const r=i.regex,l=i.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",y="("+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:[i.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:"."},i.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},x={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},v,{scope:"string",begin:/<.*?>/},l,i.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},i.inherit(v,{className:"string"}),l,i.C_BLOCK_COMMENT_MODE]},w=[x,T],A={className:"title",begin:r.optional(d)+i.IDENT_RE,relevance:0},U=r.optional(d)+i.IDENT_RE+"\\s*\\(",G=12,H={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=[...w,m,l,i.C_BLOCK_COMMENT_MODE,_,v],le={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:H,contains:P.concat([{begin:/\(/,end:/\)/,keywords:H,contains:P.concat(["self"]),relevance:0}]),relevance:0},k={begin:"("+y+"[\\*&\\s]+){1,"+G+"}"+U,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:H,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:H,relevance:0},{begin:U,returnBegin:!0,contains:[i.inherit(A,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:[l,i.C_BLOCK_COMMENT_MODE,v,_,m,{begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:["self",l,i.C_BLOCK_COMMENT_MODE,v,_,m]}]},m,l,i.C_BLOCK_COMMENT_MODE,...w]};return{name:"C",aliases:["h"],keywords:H,disableAutodetect:!0,illegal:"</",contains:[].concat(le,k,P,[...w,{begin:i.IDENT_RE+"::",keywords:H},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},i.TITLE_MODE]}]),exports:{preprocessor:T,strings:v,keywords:H}}}return zu=s,zu}var Uu,rg;function X_(){if(rg)return Uu;rg=1;function s(i){const r=i.regex,l=i.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",y="(?!struct)("+u+"|"+r.optional(d)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},b={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[i.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:"."},i.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/},b,{scope:"string",begin:/<.*?>/},l,i.C_BLOCK_COMMENT_MODE]},x={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},i.inherit(b,{className:"string"}),l,i.C_BLOCK_COMMENT_MODE]},T=[_,x],w={className:"title",begin:r.optional(d)+i.IDENT_RE,relevance:0},A=r.optional(d)+i.IDENT_RE+"\\s*\\(",U=12,G=["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"],re=["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"],H=["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"],k={type:L,keyword:G,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:re},z={className:"function.dispatch",relevance:0,keywords:{_hint:H},begin:r.concat(/\b/,`(?!${G.join("|")})`,i.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},Q=[z,...T,g,l,i.C_BLOCK_COMMENT_MODE,v,b],K={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:Q.concat([{begin:/\(/,end:/\)/,keywords:k,contains:Q.concat(["self"]),relevance:0}]),relevance:0},fe={className:"function",begin:"("+y+"[\\*&\\s]+){1,"+U+"}"+A,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:k,relevance:0},{begin:A,returnBegin:!0,contains:[w],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[l,i.C_BLOCK_COMMENT_MODE,b,v,g,{begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:["self",l,i.C_BLOCK_COMMENT_MODE,b,v,g]}]},g,l,i.C_BLOCK_COMMENT_MODE,...T]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:k,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(K,fe,z,Q,[...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:k,contains:["self",g]},{begin:i.IDENT_RE+"::",keywords:k},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Uu=s,Uu}var Bu,og;function Q_(){if(og)return Bu;og=1;function s(i){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"],y={keyword:d.concat(p),built_in:r,literal:u},g=i.inherit(i.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m="\\d(_*\\d)*",b="([uU][lL]?|[lL][uU]?)?",_={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+b},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+b},{begin:"(-?)(\\b"+m+"(\\.("+m+")?)?|\\."+m+")([eE][-+]?"+m+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},x={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},T={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},w=i.inherit(T,{illegal:/\n/}),A={className:"subst",begin:/\{/,end:/\}/,keywords:y},U=i.inherit(A,{illegal:/\n/}),G={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},i.BACKSLASH_ESCAPE,U]},L={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},A]},re=i.inherit(L,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},U]});A.contains=[L,G,T,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,i.C_BLOCK_COMMENT_MODE],U.contains=[re,G,w,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,i.inherit(i.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const H={variants:[x,L,G,T,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},P={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},le=i.IDENT_RE+"(<"+i.IDENT_RE+"(\\s*,\\s*"+i.IDENT_RE+")*>)?(\\[\\])?",k={begin:"@"+i.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:y,illegal:/::/,contains:[i.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},H,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,P,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,P,i.C_LINE_COMMENT_MODE,i.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:"("+le+"\\s+)+"+i.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:y,contains:[{beginKeywords:l.join(" "),relevance:0},{begin:i.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[i.TITLE_MODE,P],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,relevance:0,contains:[H,_,i.C_BLOCK_COMMENT_MODE]},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},k]}}return Bu=s,Bu}var ju,cg;function V_(){if(cg)return ju;cg=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_-]*/}}),i=["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=[...i,...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(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=m.regex,v=s(m),_={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},x="and or not only",T=/@-?\w[\w]*(-\w+)*/,w="[a-zA-Z-][a-zA-Z0-9_-]*",A=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[v.BLOCK_COMMENT,_,v.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+w,relevance:0},v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+d.join("|")+")"},{begin:":(:)?("+p.join("|")+")"}]},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[v.BLOCK_COMMENT,v.HEXCOLOR,v.IMPORTANT,v.CSS_NUMBER_MODE,v.UNICODE_RANGE,...A,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...A,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},v.FUNCTION_DISPATCH]},{begin:b.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:T},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:x,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...A,v.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b"}]}}return ju=g,ju}var Iu,ug;function J_(){if(ug)return Iu;ug=1;function s(i){const r=i.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},y={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},g=/[A-Za-z][A-Za-z0-9+.-]*/,m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,g,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},v={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},_=i.inherit(b,{contains:[]}),x=i.inherit(v,{contains:[]});b.contains.push(x),v.contains.push(_);let T=[l,m];return[b,v,_,x].forEach(G=>{G.contains=G.contains.concat(T)}),T=T.concat(b,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,b,v,{className:"quote",begin:"^>\\s+",contains:T,end:"$"},d,m,y,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Iu=s,Iu}var Hu,fg;function W_(){if(fg)return Hu;fg=1;function s(i){const r=i.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 Hu=s,Hu}var qu,dg;function e0(){if(dg)return qu;dg=1;function s(i){const r=i.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+)*/),y={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},g={className:"doctag",begin:"@[A-Za-z]+"},m={begin:"#<",end:">"},b=[i.COMMENT("#","$",{contains:[g]}),i.COMMENT("^=begin","^=end",{contains:[g],relevance:10}),i.COMMENT("^__END__",i.MATCH_NOTHING_RE)],v={className:"subst",begin:/#\{/,end:/\}/,keywords:y},_={className:"string",contains:[i.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:[i.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[i.BACKSLASH_ESCAPE,v]})]}]},x="[1-9](_?[0-9])*|0",T="[0-9](_?[0-9])*",w={className:"number",relevance:0,variants:[{begin:`\\b(${x})(\\.(${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"}]},A={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:y}]},le=[_,{variants:[{match:[/class\s+/,d,/\s+<\s+/,d]},{match:[/\b(class|module)\s+/,d]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:y},{match:[/(include|extend)\s+/,d],scope:{2:"title.class"},keywords:y},{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:[A]},{begin:"::"},{className:"symbol",begin:i.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[_,{begin:l}],relevance:0},w,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:y},{begin:"("+i.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[i.BACKSLASH_ESCAPE,v],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(m,b),relevance:0}].concat(m,b);v.contains=le,A.contains=le;const K=[{begin:/^\s*=>/,starts:{end:"$",contains:le}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:y,contains:le}}];return b.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:y,illegal:/\/\*/,contains:[i.SHEBANG({binary:"ruby"})].concat(K).concat(b).concat(le)}}return qu=s,qu}var Gu,hg;function t0(){if(hg)return Gu;hg=1;function s(i){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:[i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,{className:"string",variants:[i.QUOTE_STRING_MODE,i.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:[i.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:p,illegal:/["']/}]}]}}return Gu=s,Gu}var $u,pg;function n0(){if(pg)return $u;pg=1;function s(i){const r=i.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:[i.HASH_COMMENT_MODE,i.QUOTE_STRING_MODE,i.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 $u=s,$u}var Yu,mg;function a0(){if(mg)return Yu;mg=1;function s(i){const r=i.regex,l={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:i.NUMBER_RE}]},u=i.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/},y={className:"string",contains:[i.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},g={begin:/\[/,end:/\]/,contains:[u,p,d,y,l,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,v=/'[^']*'/,_=r.either(m,b,v),x=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:x,className:"attr",starts:{end:/$/,contains:[u,g,p,d,y,l]}}]}}return Yu=s,Yu}var Fu,gg;function i0(){if(gg)return Fu;gg=1;var s="[0-9](_*[0-9])*",i=`\\.(${s})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",l={className:"number",variants:[{begin:`(\\b(${s})((${i})|\\.)?|(${i}))[eE][+-]?(${s})[fFdD]?\\b`},{begin:`\\b(${s})((${i})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${i})[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,y,g){return g===-1?"":p.replace(y,m=>u(p,y,g-1))}function d(p){const y=p.regex,g="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",m="(?:(?:\\s*\\[\\s*])+)?",b=g+"<@@@>"+m,_="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+b+")?")+"|"+b+")",x=u("(?:\\s*<\\s*"+_+"(?:\\s*,\\s*"+_+")*\\s*>)?",/<@@@>/g,2),G={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"]}]},re={className:"params",begin:/\(/,end:/\)/,keywords:G,relevance:0,contains:[p.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:G,illegal:/<\/|#/,contains:[p.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[p.BACKSLASH_ESCAPE]},p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,g],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[g,y.concat(x,m,/\s+/),g,m,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,g],className:{1:"keyword",3:"title.class"},contains:[re,p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},{begin:[g,y.concat(x,m,/\s+/),g,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:G,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:G,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 Fu=d,Fu}var Ku,bg;function l0(){if(bg)return Ku;bg=1;const s="[A-Za-z$_][0-9A-Za-z$_]*",i=["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"],y=[].concat(d,l,u);function g(m){const b=m.regex,v=(me,{after:Oe})=>{const Ee="</"+me[0].slice(1);return me.input.indexOf(Ee,Oe)!==-1},_=s,x={begin:"<>",end:"</>"},T=/<[A-Za-z0-9\\._:-]+\s*\/>/,w={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(me,Oe)=>{const Ee=me[0].length+me.index,He=me.input[Ee];if(He==="<"||He===","){Oe.ignoreMatch();return}He===">"&&(v(me,{after:Ee})||Oe.ignoreMatch());let We;const ke=me.input.substring(Ee);if(We=ke.match(/^\s*=/)){Oe.ignoreMatch();return}if((We=ke.match(/^\s+extends\s+/))&&We.index===0){Oe.ignoreMatch();return}}},A={$pattern:s,keyword:i,literal:r,built_in:y,"variable.language":p},U="[0-9](_?[0-9])*",G=`\\.(${U})`,L="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",re={className:"number",variants:[{begin:`(\\b(${L})((${G})|\\.)?|(${G}))[eE][+-]?(${U})\\b`},{begin:`\\b(${L})\\b((${G})\\b|\\.)?|(${G})\\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},H={className:"subst",begin:"\\$\\{",end:"\\}",keywords:A,contains:[]},P={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,H],subLanguage:"xml"}},le={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,H],subLanguage:"css"}},k={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,H],subLanguage:"graphql"}},z={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,H]},K={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]},fe=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,P,le,k,z,{match:/\$\d+/},re];H.contains=fe.concat({begin:/\{/,end:/\}/,keywords:A,contains:["self"].concat(fe)});const we=[].concat(K,H.contains),Ae=we.concat([{begin:/(\s*)\(/,end:/\)/,keywords:A,contains:["self"].concat(we)}]),he={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:A,contains:Ae},I={variants:[{match:[/class/,/\s+/,_,/\s+/,/extends/,/\s+/,b.concat(_,"(",b.concat(/\./,_),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,_],scope:{1:"keyword",3:"title.class"}}]},ne={relevance:0,match:b.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...l,...u]}},oe={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:[he],illegal:/%/},Se={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function S(me){return b.concat("(?!",me.join("|"),")")}const D={match:b.concat(/\b/,S([...d,"super","import","await"].map(me=>`${me}\\s*\\(`)),_,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},q={begin:b.concat(/\./,b.lookahead(b.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:/\(\)/},he]},pe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",xe={match:[/const|var|let/,/\s+/,_,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(pe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[he]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:A,exports:{PARAMS_CONTAINS:Ae,CLASS_REFERENCE:ne},illegal:/#(?![$_A-Za-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),oe,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,P,le,k,z,K,{match:/\$\d+/},re,ne,{scope:"attr",match:_+b.lookahead(":"),relevance:0},xe,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[K,m.REGEXP_MODE,{className:"function",begin:pe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:m.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:A,contains:Ae}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:x.begin,end:x.end},{match:T},{begin:w.begin,"on:begin":w.isTrulyOpeningTag,end:w.end}],subLanguage:"xml",contains:[{begin:w.begin,end:w.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:[he,m.inherit(m.TITLE_MODE,{begin:_,className:"title.function"})]},{match:/\.\.\./,relevance:0},q,{match:"\\$"+_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[he]},D,Se,I,ue,{match:/\$[(.]/}]}}return Ku=g,Ku}var Pu,yg;function s0(){if(yg)return Pu;yg=1;const i={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"],y={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,y,i,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Pu=r,Pu}var Zu,vg;function r0(){if(vg)return Zu;vg=1;var s="[0-9](_*[0-9])*",i=`\\.(${s})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",l={className:"number",variants:[{begin:`(\\b(${s})((${i})|\\.)?|(${i}))[eE][+-]?(${s})[fFdD]?\\b`},{begin:`\\b(${s})((${i})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${i})[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"},y={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]},b={className:"variable",begin:"\\$"+d.UNDERSCORE_IDENT_RE},v={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,m]},{begin:"'",end:"'",illegal:/\n/,contains:[d.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[d.BACKSLASH_ESCAPE,b,m]}]};m.contains.push(v);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+d.UNDERSCORE_IDENT_RE+")?"},x={className:"meta",begin:"@"+d.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[d.inherit(v,{className:"string"}),"self"]}]},T=l,w=d.COMMENT("/\\*","\\*/",{contains:[d.C_BLOCK_COMMENT_MODE]}),A={variants:[{className:"type",begin:d.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},U=A;return U.variants[1].contains=[A],A.variants[1].contains=[U],{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,w,y,g,_,x,{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:[A,d.C_LINE_COMMENT_MODE,w],relevance:0},d.C_LINE_COMMENT_MODE,w,_,x,v,d.C_NUMBER_MODE]},w]},{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},_,x]},v,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
167
|
+
`},T]}}return Zu=u,Zu}var Xu,Eg;function o0(){if(Eg)return Xu;Eg=1;const s=b=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:b.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:b.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),i=["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=[...i,...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(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),g=d.concat(p).sort().reverse();function m(b){const v=s(b),_=g,x="and or not only",T="[\\w-]+",w="("+T+"|@\\{"+T+"\\})",A=[],U=[],G=function(we){return{className:"string",begin:"~?"+we+".*?"+we}},L=function(we,Ae,he){return{className:we,begin:Ae,relevance:he}},re={$pattern:/[a-z-]+/,keyword:x,attribute:u.join(" ")},H={begin:"\\(",end:"\\)",contains:U,keywords:re,relevance:0};U.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,G("'"),G('"'),v.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},v.UNICODE_RANGE,v.HEXCOLOR,H,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=U.concat({begin:/\{/,end:/\}/,contains:A}),le={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(U)},k={begin:w+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:U}}]},z={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:re,returnEnd:!0,contains:U,relevance:0}},Q={className:"variable",variants:[{begin:"@"+T+"\\s*:",relevance:15},{begin:"@"+T}],starts:{end:"[;}]",returnEnd:!0,contains:P}},K={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:w,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,le,L("keyword","all\\b"),L("variable","@\\{"+T+"\\}"),{begin:"\\b("+l.join("|")+")\\b",className:"selector-tag"},v.CSS_NUMBER_MODE,L("selector-tag",w,0),L("selector-id","#"+w),L("selector-class","\\."+w,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]},fe={begin:T+`:(:)?(${_.join("|")})`,returnBegin:!0,contains:[K]};return A.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,z,Q,fe,k,K,le,v.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:A}}return Xu=m,Xu}var Qu,_g;function c0(){if(_g)return Qu;_g=1;function s(i){const r="\\[=*\\[",l="\\]=*\\]",u={begin:r,end:l,contains:["self"]},d=[i.COMMENT("--(?!"+r+")","$"),i.COMMENT("--"+r,l,{contains:[u],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:i.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:[i.inherit(i.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:d}].concat(d)},i.C_NUMBER_MODE,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,{className:"string",begin:r,end:l,contains:[u],relevance:5}])}}return Qu=s,Qu}var Vu,Sg;function u0(){if(Sg)return Vu;Sg=1;function s(i){const r={className:"variable",variants:[{begin:"\\$\\("+i.UNDERSCORE_IDENT_RE+"\\)",contains:[i.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},l={className:"string",begin:/"/,end:/"/,contains:[i.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:"^"+i.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},p={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},y={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[i.HASH_COMMENT_MODE,r,l,u,d,p,y]}}return Vu=s,Vu}var Ju,Tg;function f0(){if(Tg)return Ju;Tg=1;function s(i){const r=i.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},y={begin:/->\{/,end:/\}/},g={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},m={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[g]},b={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},v=[i.BACKSLASH_ESCAPE,p,m],_=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],x=(A,U,G="\\1")=>{const L=G==="\\1"?G:r.concat(G,U);return r.concat(r.concat("(?:",A,")"),U,/(?:\\.|[^\\\/])*?/,L,/(?:\\.|[^\\\/])*?/,G,u)},T=(A,U,G)=>r.concat(r.concat("(?:",A,")"),U,/(?:\\.|[^\\\/])*?/,G,u),w=[m,i.HASH_COMMENT_MODE,i.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),y,{className:"string",contains:v,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[i.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},b,{begin:"(\\/\\/|"+i.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[i.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:x("s|tr|y",r.either(..._,{capture:!0}))},{begin:x("s|tr|y","\\(","\\)")},{begin:x("s|tr|y","\\[","\\]")},{begin:x("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:[i.TITLE_MODE,g]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[i.TITLE_MODE,g,b]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return p.contains=w,y.contains=w,{name:"Perl",aliases:["pl","pm"],keywords:d,contains:w}}return Ju=s,Ju}var Wu,Ng;function d0(){if(Ng)return Wu;Ng=1;function s(i){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,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,i.C_NUMBER_MODE,i.QUOTE_STRING_MODE,i.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[i.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},i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+m.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:m,contains:[i.UNDERSCORE_TITLE_MODE]},{begin:"\\."+i.UNDERSCORE_IDENT_RE,relevance:0}]}}return Wu=s,Wu}var ef,xg;function h0(){if(xg)return ef;xg=1;function s(i){const r=i.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),y={scope:"variable",match:"\\$+"+u},g={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},m={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},b=i.inherit(i.APOS_STRING_MODE,{illegal:null}),v=i.inherit(i.QUOTE_STRING_MODE,{illegal:null,contains:i.QUOTE_STRING_MODE.contains.concat(m)}),_={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:i.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(he,I)=>{I.data._beginMatch=he[1]||he[2]},"on:end":(he,I)=>{I.data._beginMatch!==he[1]&&I.ignoreMatch()}},x=i.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),T=`[
|
|
168
|
+
]`,w={scope:"string",variants:[v,b,_,x]},A={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},U=["false","null","true"],G=["__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"],H={keyword:G,literal:(he=>{const I=[];return he.forEach(ne=>{I.push(ne),ne.toLowerCase()===ne?I.push(ne.toUpperCase()):I.push(ne.toLowerCase())}),I})(U),built_in:L},P=he=>he.map(I=>I.replace(/\|\d+$/,"")),le={variants:[{match:[/new/,r.concat(T,"+"),r.concat("(?!",P(L).join("\\b|"),"\\b)"),d],scope:{1:"keyword",4:"title.class"}}]},k=r.concat(u,"\\b(?!\\()"),z={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),k],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[d,r.concat(/::/,r.lookahead(/(?!class\b)/)),k],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"}}]},Q={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},K={relevance:0,begin:/\(/,end:/\)/,keywords:H,contains:[Q,y,z,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,w,A,le]},fe={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",P(G).join("\\b|"),"|",P(L).join("\\b|"),"\\b)"),u,r.concat(T,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[K]};K.contains.push(fe);const we=[Q,z,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,w,A,le],Ae={begin:r.concat(/#\[\s*\\?/,r.either(d,p)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:U,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:U,keyword:["new","array"]},contains:["self",...we]},...we,{scope:"meta",variants:[{match:d},{match:p}]}]};return{case_insensitive:!1,keywords:H,contains:[Ae,i.HASH_COMMENT_MODE,i.COMMENT("//","$"),i.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:i.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},g,{scope:"variable.language",match:/\$this\b/},y,fe,z,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},le,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},i.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:H,contains:["self",Ae,y,z,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,w,A]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},i.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[i.inherit(i.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},i.UNDERSCORE_TITLE_MODE]},w,A]}}return ef=s,ef}var tf,wg;function p0(){if(wg)return tf;wg=1;function s(i){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},i.inherit(i.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),i.inherit(i.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return tf=s,tf}var nf,Ag;function m0(){if(Ag)return nf;Ag=1;function s(i){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return nf=s,nf}var af,Rg;function g0(){if(Rg)return af;Rg=1;function s(i){const r=i.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:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:g,illegal:/#/},v={begin:/\{\{/,relevance:0},_={className:"string",contains:[i.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE,m,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,m,v,b]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[i.BACKSLASH_ESCAPE,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,v,b]},i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},x="[0-9](_?[0-9])*",T=`(\\b(${x}))?\\.(${x})|\\b(${x})\\.`,w=`\\b|${u.join("|")}`,A={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${T}))[eE][+-]?(${x})[jJ]?(?=${w})`},{begin:`(${T})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${w})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${w})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${w})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${w})`},{begin:`\\b(${x})[jJ](?=${w})`}]},U={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:g,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},G={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",m,A,_,i.HASH_COMMENT_MODE]}]};return b.contains=[_,A,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:g,illegal:/(<\/|\?)|=>/,contains:[m,A,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},_,U,i.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[G]},{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:[A,G,_]}]}}return af=s,af}var lf,Og;function b0(){if(Og)return lf;Og=1;function s(i){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return lf=s,lf}var sf,kg;function y0(){if(kg)return sf;kg=1;function s(i){const r=i.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:[i.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]+/}]}),i.HASH_COMMENT_MODE,{scope:"string",contains:[i.BACKSLASH_ESCAPE],variants:[i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),i.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 sf=s,sf}var rf,Mg;function v0(){if(Mg)return rf;Mg=1;function s(i){const r=i.regex,l=/(r#)?/,u=r.concat(l,i.UNDERSCORE_IDENT_RE),d=r.concat(l,i.IDENT_RE),p={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,d,r.lookahead(/\s*\(/))},y="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",g=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],m=["true","false","Some","None","Ok","Err"],b=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],v=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f16","f32","f64","f128","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:i.IDENT_RE+"!?",type:v,keyword:g,literal:m,built_in:b},illegal:"</",contains:[i.C_LINE_COMMENT_MODE,i.COMMENT("/\\*","\\*/",{contains:["self"]}),i.inherit(i.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+y},{begin:"\\b0o([0-7_]+)"+y},{begin:"\\b0x([A-Fa-f0-9_]+)"+y},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+y}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,u],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[i.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:i.IDENT_RE+"::",keywords:{keyword:"Self",built_in:b,type:v}},{scope:"punctuation",begin:"->"},p]}}return rf=s,rf}var of,Cg;function E0(){if(Cg)return of;Cg=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_-]*/}}),i=["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=[...i,...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(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=s(m),v=p,_=d,x="@[a-z-]+",T="and or not only",A={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,b.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},b.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+_.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+v.join("|")+")"},A,{begin:/\(/,end:/\)/,contains:[b.CSS_NUMBER_MODE]},b.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[b.BLOCK_COMMENT,A,b.HEXCOLOR,b.CSS_NUMBER_MODE,b.UNICODE_RANGE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.IMPORTANT,b.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:x,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:T,attribute:u.join(" ")},contains:[{begin:x,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},A,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return of=g,of}var cf,Dg;function _0(){if(Dg)return cf;Dg=1;function s(i){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return cf=s,cf}var uf,Lg;function S0(){if(Lg)return uf;Lg=1;function s(i){const r=i.regex,l=i.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},d={begin:/"/,end:/"/,contains:[{match:/""/}]},p=["true","false","unknown"],y=["double precision","large object","with timezone","without timezone"],g=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],m=["add","asc","collation","desc","final","first","last","view"],b=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],v=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],_=["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"],x=["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,w=[...b,...m].filter(P=>!v.includes(P)),A={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},U={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},G={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(le=>le.replace(/\s+/,"\\s+"))),/\b/)}const re={scope:"keyword",match:L(x),relevance:0};function H(P,{exceptions:le,when:k}={}){const z=k;return le=le||[],P.map(Q=>Q.match(/\|\d+$/)||le.includes(Q)?Q:z(Q)?`${Q}|0`:Q)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:H(w,{when:P=>P.length<3}),literal:p,type:g,built_in:_},contains:[{scope:"type",match:L(y)},re,G,A,u,d,i.C_NUMBER_MODE,i.C_BLOCK_COMMENT_MODE,l,U]}}return uf=s,uf}var ff,zg;function T0(){if(zg)return ff;zg=1;function s(k){return k?typeof k=="string"?k:k.source:null}function i(k){return r("(?=",k,")")}function r(...k){return k.map(Q=>s(Q)).join("")}function l(k){const z=k[k.length-1];return typeof z=="object"&&z.constructor===Object?(k.splice(k.length-1,1),z):{}}function u(...k){return"("+(l(k).capture?"":"?:")+k.map(K=>s(K)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const d=k=>r(/\b/,k,/\w$/.test(k)?/\b/:/\B/),p=["Protocol","Type"].map(d),y=["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"],b=["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"],x=["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]/),w=u(T,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),A=r(T,w,"*"),U=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]/),G=u(U,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),L=r(U,G,"*"),re=r(/[A-Z]/,G,"*"),H=["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 le(k){const z={match:/\s+/,relevance:0},Q=k.COMMENT("/\\*","\\*/",{contains:["self"]}),K=[k.C_LINE_COMMENT_MODE,Q],fe={match:[/\./,u(...p,...y)],className:{2:"keyword"}},we={match:r(/\./,u(...m)),relevance:0},Ae=m.filter(je=>typeof je=="string").concat(["_|0"]),he=m.filter(je=>typeof je!="string").concat(g).map(d),I={variants:[{className:"keyword",match:u(...he,...y)}]},ne={$pattern:u(/\b\w+/,/#\w+/),keyword:Ae.concat(_),literal:b},oe=[fe,we,I],ve={match:r(/\./,u(...x)),relevance:0},Se={className:"built_in",match:r(/\b/,u(...x),/(?=\()/)},S=[ve,Se],D={match:/->/,relevance:0},q={className:"operator",relevance:0,variants:[{match:A},{match:`\\.(\\.|${w})+`}]},ue=[D,q],pe="([0-9]_*)+",xe="([0-9a-fA-F]_*)+",me={className:"number",relevance:0,variants:[{match:`\\b(${pe})(\\.(${pe}))?([eE][+-]?(${pe}))?\\b`},{match:`\\b0x(${xe})(\\.(${xe}))?([pP][+-]?(${pe}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},Oe=(je="")=>({className:"subst",variants:[{match:r(/\\/,je,/[0\\tnr"']/)},{match:r(/\\/,je,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Ee=(je="")=>({className:"subst",match:r(/\\/,je,/[\t ]*(?:[\r\n]|\r\n)/)}),He=(je="")=>({className:"subst",label:"interpol",begin:r(/\\/,je,/\(/),end:/\)/}),We=(je="")=>({begin:r(je,/"""/),end:r(/"""/,je),contains:[Oe(je),Ee(je),He(je)]}),ke=(je="")=>({begin:r(je,/"/),end:r(/"/,je),contains:[Oe(je),He(je)]}),At={className:"string",variants:[We(),We("#"),We("##"),We("###"),ke(),ke("#"),ke("##"),ke("###")]},Ge=[k.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[k.BACKSLASH_ESCAPE]}],Nn={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ge},nt=je=>{const cn=r(je,/\//),Qt=r(/\//,je);return{begin:cn,end:Qt,contains:[...Ge,{scope:"comment",begin:`#(?!.*${Qt})`,end:/$/}]}},xn={scope:"regexp",variants:[nt("###"),nt("##"),nt("#"),Nn]},rn={match:r(/`/,L,/`/)},zt={className:"variable",match:/\$\d+/},qn={className:"variable",match:`\\$${G}+`},Jt=[rn,zt,qn],ca={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:P,contains:[...ue,me,At]}]}},Vn={scope:"keyword",match:r(/@/,u(...H),i(u(/\(/,/\s+/)))},Ke={scope:"meta",match:r(/@/,L)},Ut=[ca,Vn,Ke],mt={match:i(/\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)/,G,"+")},{className:"type",match:re,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,i(re)),relevance:0}]},bn={begin:/</,end:/>/,keywords:ne,contains:[...K,...oe,...Ut,D,mt]};mt.contains.push(bn);const yn={match:r(L,/\s*:/),keywords:"_|0",relevance:0},kn={begin:/\(/,end:/\)/,relevance:0,keywords:ne,contains:["self",yn,...K,xn,...oe,...S,...ue,me,At,...Jt,...Ut,mt]},Mn={begin:/</,end:/>/,keywords:"repeat each",contains:[...K,mt]},Cn={begin:u(i(r(L,/\s*:/)),i(r(L,/\s+/,L,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:L}]},Dn={begin:/\(/,end:/\)/,keywords:ne,contains:[Cn,...K,...oe,...ue,me,At,...Ut,mt,kn],endsParent:!0,illegal:/["']/},on={match:[/(func|macro)/,/\s+/,u(rn.match,L,A)],className:{1:"keyword",3:"title.function"},contains:[Mn,Dn,z],illegal:[/\[/,/%/]},St={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Mn,Dn,z],illegal:/\[|%/},Wt={match:[/operator/,/\s+/,A],className:{1:"keyword",3:"title"}},Nt={begin:[/precedencegroup/,/\s+/,re],className:{1:"keyword",3:"title"},contains:[mt],keywords:[...v,...b],end:/}/},Gn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Ln={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},wn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,L,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:ne,contains:[Mn,...oe,{begin:/:/,end:/\{/,keywords:ne,contains:[{scope:"title.class.inherited",match:re},...oe],relevance:0}]};for(const je of At.variants){const cn=je.contains.find(Ct=>Ct.label==="interpol");cn.keywords=ne;const Qt=[...oe,...S,...ue,me,At,...Jt];cn.contains=[...Qt,{begin:/\(/,end:/\)/,contains:["self",...Qt]}]}return{name:"Swift",keywords:ne,contains:[...K,on,St,Gn,Ln,wn,Wt,Nt,{beginKeywords:"import",end:/$/,contains:[...K],relevance:0},xn,...oe,...S,...ue,me,At,...Jt,...Ut,mt,kn]}}return ff=le,ff}var df,Ug;function N0(){if(Ug)return df;Ug=1;function s(i){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}]},y={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[i.BACKSLASH_ESCAPE,d]},g=i.inherit(y,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),x={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},w={begin:/\{/,end:/\}/,contains:[T],illegal:"\\n",relevance:0},A={begin:"\\[",end:"\\]",contains:[T],illegal:"\\n",relevance:0},U=[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:"&"+i.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+i.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},i.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},x,{className:"number",begin:i.C_NUMBER_RE+"\\b",relevance:0},w,A,p,y],G=[...U];return G.pop(),G.push(g),T.contains=G,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:U}}return df=s,df}var hf,Bg;function x0(){if(Bg)return hf;Bg=1;const s="[A-Za-z$_][0-9A-Za-z$_]*",i=["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"],y=[].concat(d,l,u);function g(b){const v=b.regex,_=(Oe,{after:Ee})=>{const He="</"+Oe[0].slice(1);return Oe.input.indexOf(He,Ee)!==-1},x=s,T={begin:"<>",end:"</>"},w=/<[A-Za-z0-9\\._:-]+\s*\/>/,A={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Oe,Ee)=>{const He=Oe[0].length+Oe.index,We=Oe.input[He];if(We==="<"||We===","){Ee.ignoreMatch();return}We===">"&&(_(Oe,{after:He})||Ee.ignoreMatch());let ke;const At=Oe.input.substring(He);if(ke=At.match(/^\s*=/)){Ee.ignoreMatch();return}if((ke=At.match(/^\s+extends\s+/))&&ke.index===0){Ee.ignoreMatch();return}}},U={$pattern:s,keyword:i,literal:r,built_in:y,"variable.language":p},G="[0-9](_?[0-9])*",L=`\\.(${G})`,re="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",H={className:"number",variants:[{begin:`(\\b(${re})((${L})|\\.)?|(${L}))[eE][+-]?(${G})\\b`},{begin:`\\b(${re})\\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:U,contains:[]},le={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,P],subLanguage:"xml"}},k={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,P],subLanguage:"css"}},z={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,P],subLanguage:"graphql"}},Q={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,P]},fe={className:"comment",variants:[b.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:x+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),b.C_BLOCK_COMMENT_MODE,b.C_LINE_COMMENT_MODE]},we=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,le,k,z,Q,{match:/\$\d+/},H];P.contains=we.concat({begin:/\{/,end:/\}/,keywords:U,contains:["self"].concat(we)});const Ae=[].concat(fe,P.contains),he=Ae.concat([{begin:/(\s*)\(/,end:/\)/,keywords:U,contains:["self"].concat(Ae)}]),I={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:U,contains:he},ne={variants:[{match:[/class/,/\s+/,x,/\s+/,/extends/,/\s+/,v.concat(x,"(",v.concat(/\./,x),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,x],scope:{1:"keyword",3:"title.class"}}]},oe={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+/,x,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[I],illegal:/%/},S={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function D(Oe){return v.concat("(?!",Oe.join("|"),")")}const q={match:v.concat(/\b/,D([...d,"super","import","await"].map(Oe=>`${Oe}\\s*\\(`)),x,v.lookahead(/\s*\(/)),className:"title.function",relevance:0},ue={begin:v.concat(/\./,v.lookahead(v.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},pe={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},I]},xe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",me={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,v.lookahead(xe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[I]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:U,exports:{PARAMS_CONTAINS:he,CLASS_REFERENCE:oe},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),ve,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,le,k,z,Q,fe,{match:/\$\d+/},H,oe,{scope:"attr",match:x+v.lookahead(":"),relevance:0},me,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[fe,b.REGEXP_MODE,{className:"function",begin:xe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:b.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:U,contains:he}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:T.begin,end:T.end},{match:w},{begin:A.begin,"on:begin":A.isTrulyOpeningTag,end:A.end}],subLanguage:"xml",contains:[{begin:A.begin,end:A.end,skip:!0,contains:["self"]}]}]},Se,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+b.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[I,b.inherit(b.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},ue,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[I]},q,S,ne,pe,{match:/\$[(.]/}]}}function m(b){const v=b.regex,_=g(b),x=s,T=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],w={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},A={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:T},contains:[_.exports.CLASS_REFERENCE]},U={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},G=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],L={$pattern:s,keyword:i.concat(G),literal:r,built_in:y.concat(T),"variable.language":p},re={className:"meta",begin:"@"+x},H=(z,Q,K)=>{const fe=z.contains.findIndex(we=>we.label===Q);if(fe===-1)throw new Error("can not find mode to replace");z.contains.splice(fe,1,K)};Object.assign(_.keywords,L),_.exports.PARAMS_CONTAINS.push(re);const P=_.contains.find(z=>z.scope==="attr"),le=Object.assign({},P,{match:v.concat(x,v.lookahead(/\s*\?:/))});_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,P,le]),_.contains=_.contains.concat([re,w,A,le]),H(_,"shebang",b.SHEBANG()),H(_,"use_strict",U);const k=_.contains.find(z=>z.label==="func.def");return k.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return hf=m,hf}var pf,jg;function w0(){if(jg)return pf;jg=1;function s(i){const r=i.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}/,y=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,g=/\d{1,2}(:\d{1,2}){1,2}/,m={className:"literal",variants:[{begin:r.concat(/# */,r.either(p,d),/ *#/)},{begin:r.concat(/# */,g,/ *#/)},{begin:r.concat(/# */,y,/ *#/)},{begin:r.concat(/# */,r.either(p,d),/ +/,r.either(y,g),/ *#/)}]},b={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},v={className:"label",begin:/^\w+:/},_=i.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),x=i.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,b,v,_,x,{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:[x]}]}}return pf=s,pf}var mf,Ig;function A0(){if(Ig)return mf;Ig=1;function s(i){i.regex;const r=i.COMMENT(/\(;/,/;\)/);r.contains.push("self");const l=i.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_]+/},y={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},g={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},m={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},b={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:u},contains:[l,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},p,y,d,i.QUOTE_STRING_MODE,m,b,g]}}return mf=s,mf}var gf,Hg;function R0(){if(Hg)return gf;Hg=1;var s=F_();return s.registerLanguage("xml",K_()),s.registerLanguage("bash",P_()),s.registerLanguage("c",Z_()),s.registerLanguage("cpp",X_()),s.registerLanguage("csharp",Q_()),s.registerLanguage("css",V_()),s.registerLanguage("markdown",J_()),s.registerLanguage("diff",W_()),s.registerLanguage("ruby",e0()),s.registerLanguage("go",t0()),s.registerLanguage("graphql",n0()),s.registerLanguage("ini",a0()),s.registerLanguage("java",i0()),s.registerLanguage("javascript",l0()),s.registerLanguage("json",s0()),s.registerLanguage("kotlin",r0()),s.registerLanguage("less",o0()),s.registerLanguage("lua",c0()),s.registerLanguage("makefile",u0()),s.registerLanguage("perl",f0()),s.registerLanguage("objectivec",d0()),s.registerLanguage("php",h0()),s.registerLanguage("php-template",p0()),s.registerLanguage("plaintext",m0()),s.registerLanguage("python",g0()),s.registerLanguage("python-repl",b0()),s.registerLanguage("r",y0()),s.registerLanguage("rust",v0()),s.registerLanguage("scss",E0()),s.registerLanguage("shell",_0()),s.registerLanguage("sql",S0()),s.registerLanguage("swift",T0()),s.registerLanguage("yaml",N0()),s.registerLanguage("typescript",x0()),s.registerLanguage("vbnet",w0()),s.registerLanguage("wasm",A0()),s.HighlightJS=s,s.default=s,gf=s,gf}var O0=R0();const zb=_b(O0),k0={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},M0=2e5,Ub="http://www.w3.org/1999/xhtml";function C0(s){for(const i of s.querySelectorAll(".d2h-file-wrapper")){const r=D0(i.dataset.lang??"");if(r)for(const l of L0(i))qg(l.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),qg(l.filter(u=>u.kind!=="del"),()=>!0,r)}}function D0(s){const i=k0[s]??Y_(s);return i==="plaintext"||!zb.getLanguage(i)?null:i}function L0(s){const i=[];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&&i.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&&i.push(r),i}function qg(s,i,r){if(s.filter(i).length===0)return;const u=s.map(p=>p.ctn.textContent??"").join(`
|
|
169
|
+
`);if(!u.trim()||u.length>M0)return;const d=U0(zb.highlight(u,{language:r,ignoreIllegals:!0}).value);s.forEach((p,y)=>{const g=d[y];g===void 0||!i(p)||z0(p.ctn,g)})}function z0(s,i){const r=ng(s);let l=i;if(r.length){const u=document.createElementNS(Ub,"div");u.innerHTML=i,l=G_(r,ng(u),s.textContent??"")}s.classList.add("hljs"),s.innerHTML=l}function U0(s){const i=document.createElementNS(Ub,"div");i.innerHTML=s;const r=[],l=[];let u="";const d=p=>{if(p.nodeType===Node.TEXT_NODE){(p.textContent??"").split(`
|
|
170
|
+
`).forEach((m,b)=>{b>0&&(u+="</span>".repeat(l.length),r.push(u),u=l.join("")),u+=B0(m)});return}const y=`<span class="${p.className}">`;u+=y,l.push(y),p.childNodes.forEach(d),l.pop(),u+="</span>"};return i.childNodes.forEach(d),r.push(u),r}function B0(s){return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}const j0={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"]},I0={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}]},H0={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function Ze({name:s,size:i=13}){const r=[...j0[s]??[],...H0[s]??[]];return f.jsxs("svg",{className:"icon",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(I0[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 q0({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 Va({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 Gg(s,i){(i==null||i>s.length)&&(i=s.length);for(var r=0,l=Array(i);r<i;r++)l[r]=s[r];return l}function G0(s){if(Array.isArray(s))return s}function $0(s,i){var r=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(r!=null){var l,u,d,p,y=[],g=!0,m=!1;try{if(d=(r=r.call(s)).next,i!==0)for(;!(g=(l=d.call(r)).done)&&(y.push(l.value),y.length!==i);g=!0);}catch(b){m=!0,u=b}finally{try{if(!g&&r.return!=null&&(p=r.return(),Object(p)!==p))return}finally{if(m)throw u}}return y}}function Y0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
171
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F0(s,i){return G0(s)||$0(s,i)||K0(s,i)||Y0()}function K0(s,i){if(s){if(typeof s=="string")return Gg(s,i);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)?Gg(s,i):void 0}}const Bb=Object.entries,$g=Object.setPrototypeOf,P0=Object.isFrozen,Z0=Object.getPrototypeOf,X0=Object.getOwnPropertyDescriptor;let mn=Object.freeze,gn=Object.seal,Ul=Object.create,jb=typeof Reflect<"u"&&Reflect,Af=jb.apply,Rf=jb.construct;mn||(mn=function(i){return i});gn||(gn=function(i){return i});Af||(Af=function(i,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 i.apply(r,u)});Rf||(Rf=function(i){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 i(...l)});const Dl=Zt(Array.prototype.forEach),Q0=Zt(Array.prototype.lastIndexOf),Yg=Zt(Array.prototype.pop),Ll=Zt(Array.prototype.push),V0=Zt(Array.prototype.splice),Di=Array.isArray,Bs=Zt(String.prototype.toLowerCase),bf=Zt(String.prototype.toString),Fg=Zt(String.prototype.match),Ls=Zt(String.prototype.replace),Kg=Zt(String.prototype.indexOf),J0=Zt(String.prototype.trim),W0=Zt(Number.prototype.toString),eS=Zt(Boolean.prototype.toString),Pg=typeof BigInt>"u"?null:Zt(BigInt.prototype.toString),Zg=typeof Symbol>"u"?null:Zt(Symbol.prototype.toString),ln=Zt(Object.prototype.hasOwnProperty),zs=Zt(Object.prototype.toString),an=Zt(RegExp.prototype.test),Qi=tS(TypeError);function Zt(s){return function(i){i instanceof RegExp&&(i.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 Af(s,i,l)}}function tS(s){return function(){for(var i=arguments.length,r=new Array(i),l=0;l<i;l++)r[l]=arguments[l];return Rf(s,r)}}function it(s,i){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bs;if($g&&$g(s,null),!Di(i))return s;let l=i.length;for(;l--;){let u=i[l];if(typeof u=="string"){const d=r(u);d!==u&&(P0(i)||(i[l]=d),u=d)}s[u]=!0}return s}function nS(s){for(let i=0;i<s.length;i++)ln(s,i)||(s[i]=null);return s}function Sn(s){const i=Ul(null);for(const l of Bb(s)){var r=F0(l,2);const u=r[0],d=r[1];ln(s,u)&&(Di(d)?i[u]=nS(d):d&&typeof d=="object"&&d.constructor===Object?i[u]=Sn(d):i[u]=d)}return i}function aS(s){switch(typeof s){case"string":return s;case"number":return W0(s);case"boolean":return eS(s);case"bigint":return Pg?Pg(s):"0";case"symbol":return Zg?Zg(s):"Symbol()";case"undefined":return zs(s);case"function":case"object":{if(s===null)return zs(s);const i=s,r=ma(i,"toString");if(typeof r=="function"){const l=r(i);return typeof l=="string"?l:zs(l)}return zs(s)}default:return zs(s)}}function ma(s,i){for(;s!==null;){const l=X0(s,i);if(l){if(l.get)return Zt(l.get);if(typeof l.value=="function")return Zt(l.value)}s=Z0(s)}function r(){return null}return r}function iS(s){try{return an(s,""),!0}catch{return!1}}const Xg=mn(["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"]),yf=mn(["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"]),vf=mn(["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"]),lS=mn(["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"]),Ef=mn(["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"]),sS=mn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qg=mn(["#text"]),Vg=mn(["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"]),_f=mn(["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"]),Jg=mn(["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=mn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),rS=gn(/{{[\w\W]*|^[\w\W]*}}/g),oS=gn(/<%[\w\W]*|^[\w\W]*%>/g),cS=gn(/\${[\w\W]*/g),uS=gn(/^data-[\-\w.\u00B7-\uFFFF]+$/),fS=gn(/^aria-[\-\w]+$/),Wg=gn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),dS=gn(/^(?:\w+script|data):/i),hS=gn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pS=gn(/^html$/i),mS=gn(/^[a-z][.\w]*(-[.\w]+)+$/i),eb=gn(/<[/\w!]/g),tb=gn(/<[/\w]/g),gS=gn(/<\/no(script|embed|frames)/i),bS=gn(/\/>/i),Qn={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},vS=function(i,r){if(typeof i!="object"||typeof i.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 i.createPolicy(d,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},nb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ki=function(i,r,l,u){return ln(i,r)&&Di(i[r])?it(u.base?Sn(u.base):{},i[r],u.transform):l};function Ib(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yS();const i=X=>Ib(X);if(i.version="3.4.13",i.removed=[],!s||!s.document||s.document.nodeType!==Qn.document||!s.Element)return i.isSupported=!1,i;let r=s.document;const l=r,u=l.currentScript;s.DocumentFragment;const d=s.HTMLTemplateElement,p=s.Node,y=s.Element,g=s.NodeFilter,m=s.NamedNodeMap;m===void 0&&(s.NamedNodeMap||s.MozNamedAttrMap),s.HTMLFormElement;const b=s.DOMParser,v=s.trustedTypes,_=y.prototype,x=ma(_,"cloneNode"),T=ma(_,"remove"),w=ma(_,"nextSibling"),A=ma(_,"childNodes"),U=ma(_,"parentNode"),G=ma(_,"shadowRoot"),L=ma(_,"attributes"),re=p&&p.prototype?ma(p.prototype,"nodeType"):null,H=p&&p.prototype?ma(p.prototype,"nodeName"):null,P=p&&p.prototype?ma(p.prototype,"ownerDocument"):null;if(typeof d=="function"){const X=r.createElement("template");X.content&&X.content.ownerDocument&&(r=X.content.ownerDocument)}let le,k="",z,Q=!1,K=0;const fe=function(){if(K>0)throw Qi('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.')},we=function(N){fe(),K++;try{return le.createHTML(N)}finally{K--}},Ae=function(N){fe(),K++;try{return le.createScriptURL(N)}finally{K--}},he=function(){return Q||(z=vS(v,u),Q=!0),z},I=r,ne=I.implementation,oe=I.createNodeIterator,ve=I.createDocumentFragment,Se=I.getElementsByTagName,S=l.importNode;let D=nb();i.isSupported=typeof Bb=="function"&&typeof U=="function"&&ne&&ne.createHTMLDocument!==void 0;const q=rS,ue=oS,pe=cS,xe=uS,me=fS,Oe=dS,Ee=hS,He=mS;let We=Wg,ke=null;const At=it({},[...Xg,...yf,...vf,...Ef,...Qg]);let Ge=null;const Nn=it({},[...Vg,..._f,...Jg,...eo]);let nt=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}})),xn=null,rn=null;const zt=Object.seal(Ul(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let qn=!0,Jt=!0,ca=!1,Vn=!0,Ke=!1,Ut=!0,mt=!1,bn=!1,yn=null,kn=null,Mn=!1,Cn=!1,Dn=!1,on=!1,St=!0,Wt=!1;const Nt="user-content-";let Gn=!0,Ln=!1,wn={},je=null;const cn=it({},["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 Qt=null;const Ct=it({},["audio","video","img","source","image","track"]);let R=null;const J=it({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),C="http://www.w3.org/1998/Math/MathML",ee="http://www.w3.org/2000/svg",de="http://www.w3.org/1999/xhtml";let Le=de,ye=!1,be=null;const ze=it({},[C,ee,de],bf),Rt=mn(["mi","mo","mn","ms","mtext"]);let gt=it({},Rt);const Jn=mn(["annotation-xml"]);let ya=it({},Jn);const ei=it({},["title","style","font","a","script"]);let vn=null;const Mt=["application/xhtml+xml","text/html"],en="text/html";let lt=null,Wn=null;const tl=r.createElement("form"),ka=function(N){return N instanceof RegExp||N instanceof Function},ti=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Wn&&Wn===N)return;(!N||typeof N!="object")&&(N={}),N=Sn(N),vn=Mt.indexOf(N.PARSER_MEDIA_TYPE)===-1?en:N.PARSER_MEDIA_TYPE,lt=vn==="application/xhtml+xml"?bf:Bs,ke=ki(N,"ALLOWED_TAGS",At,{transform:lt}),Ge=ki(N,"ALLOWED_ATTR",Nn,{transform:lt}),be=ki(N,"ALLOWED_NAMESPACES",ze,{transform:bf}),R=ki(N,"ADD_URI_SAFE_ATTR",J,{transform:lt,base:J}),Qt=ki(N,"ADD_DATA_URI_TAGS",Ct,{transform:lt,base:Ct}),je=ki(N,"FORBID_CONTENTS",cn,{transform:lt}),xn=ki(N,"FORBID_TAGS",Sn({}),{transform:lt}),rn=ki(N,"FORBID_ATTR",Sn({}),{transform:lt}),wn=ln(N,"USE_PROFILES")?N.USE_PROFILES&&typeof N.USE_PROFILES=="object"?Sn(N.USE_PROFILES):N.USE_PROFILES:!1,qn=N.ALLOW_ARIA_ATTR!==!1,Jt=N.ALLOW_DATA_ATTR!==!1,ca=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Vn=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ke=N.SAFE_FOR_TEMPLATES||!1,Ut=N.SAFE_FOR_XML!==!1,mt=N.WHOLE_DOCUMENT||!1,Cn=N.RETURN_DOM||!1,Dn=N.RETURN_DOM_FRAGMENT||!1,on=N.RETURN_TRUSTED_TYPE||!1,Mn=N.FORCE_BODY||!1,St=N.SANITIZE_DOM!==!1,Wt=N.SANITIZE_NAMED_PROPS||!1,Gn=N.KEEP_CONTENT!==!1,Ln=N.IN_PLACE||!1,We=iS(N.ALLOWED_URI_REGEXP)?N.ALLOWED_URI_REGEXP:Wg,Le=typeof N.NAMESPACE=="string"?N.NAMESPACE:de,gt=ln(N,"MATHML_TEXT_INTEGRATION_POINTS")&&N.MATHML_TEXT_INTEGRATION_POINTS&&typeof N.MATHML_TEXT_INTEGRATION_POINTS=="object"?Sn(N.MATHML_TEXT_INTEGRATION_POINTS):it({},Rt),ya=ln(N,"HTML_INTEGRATION_POINTS")&&N.HTML_INTEGRATION_POINTS&&typeof N.HTML_INTEGRATION_POINTS=="object"?Sn(N.HTML_INTEGRATION_POINTS):it({},Jn);const B=ln(N,"CUSTOM_ELEMENT_HANDLING")&&N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING=="object"?Sn(N.CUSTOM_ELEMENT_HANDLING):Ul(null);if(nt=Ul(null),ln(B,"tagNameCheck")&&ka(B.tagNameCheck)&&(nt.tagNameCheck=B.tagNameCheck),ln(B,"attributeNameCheck")&&ka(B.attributeNameCheck)&&(nt.attributeNameCheck=B.attributeNameCheck),ln(B,"allowCustomizedBuiltInElements")&&typeof B.allowCustomizedBuiltInElements=="boolean"&&(nt.allowCustomizedBuiltInElements=B.allowCustomizedBuiltInElements),gn(nt),Ke&&(Jt=!1),Dn&&(Cn=!0),wn&&(ke=it({},Qg),Ge=Ul(null),wn.html===!0&&(it(ke,Xg),it(Ge,Vg)),wn.svg===!0&&(it(ke,yf),it(Ge,_f),it(Ge,eo)),wn.svgFilters===!0&&(it(ke,vf),it(Ge,_f),it(Ge,eo)),wn.mathMl===!0&&(it(ke,Ef),it(Ge,Jg),it(Ge,eo))),zt.tagCheck=null,zt.attributeCheck=null,ln(N,"ADD_TAGS")&&(typeof N.ADD_TAGS=="function"?zt.tagCheck=N.ADD_TAGS:Di(N.ADD_TAGS)&&(ke===At&&(ke=Sn(ke)),it(ke,N.ADD_TAGS,lt))),ln(N,"ADD_ATTR")&&(typeof N.ADD_ATTR=="function"?zt.attributeCheck=N.ADD_ATTR:Di(N.ADD_ATTR)&&(Ge===Nn&&(Ge=Sn(Ge)),it(Ge,N.ADD_ATTR,lt))),ln(N,"ADD_URI_SAFE_ATTR")&&Di(N.ADD_URI_SAFE_ATTR)&&it(R,N.ADD_URI_SAFE_ATTR,lt),ln(N,"FORBID_CONTENTS")&&Di(N.FORBID_CONTENTS)&&(je===cn&&(je=Sn(je)),it(je,N.FORBID_CONTENTS,lt)),ln(N,"ADD_FORBID_CONTENTS")&&Di(N.ADD_FORBID_CONTENTS)&&(je===cn&&(je=Sn(je)),it(je,N.ADD_FORBID_CONTENTS,lt)),Gn&&(ke["#text"]=!0),mt&&it(ke,["html","head","body"]),ke.table&&(it(ke,["tbody"]),delete xn.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const V=le;le=N.TRUSTED_TYPES_POLICY;try{k=we("")}catch(_e){throw le=V,_e}}else N.TRUSTED_TYPES_POLICY===null?(le=void 0,k=""):(le===void 0&&(le=he()),le&&typeof k=="string"&&(k=we("")));mn&&mn(N),Wn=N},va=it({},[...yf,...vf,...lS]),ni=it({},[...Ef,...sS]),un=function(N,B,V){return B.namespaceURI===de?N==="svg":B.namespaceURI===C?N==="svg"&&(V==="annotation-xml"||gt[V]):!!va[N]},ua=function(N,B,V){return B.namespaceURI===de?N==="math":B.namespaceURI===ee?N==="math"&&ya[V]:!!ni[N]},Ea=function(N,B,V){return B.namespaceURI===ee&&!ya[V]||B.namespaceURI===C&&!gt[V]?!1:!ni[N]&&(ei[N]||!va[N])},_a=function(N){let B=U(N);(!B||!B.tagName)&&(B={namespaceURI:Le,tagName:"template"});const V=Bs(N.tagName),_e=Bs(B.tagName);return be[N.namespaceURI]?N.namespaceURI===ee?un(V,B,_e):N.namespaceURI===C?ua(V,B,_e):N.namespaceURI===de?Ea(V,B,_e):!!(vn==="application/xhtml+xml"&&be[N.namespaceURI]):!1},dt=function(N){Ll(i.removed,{element:N});try{U(N).removeChild(N)}catch{if(T(N),!U(N))throw Qi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ma=function(N){ce(N);const B=A(N);if(B){const _e=[];Dl(B,Ne=>{Ll(_e,Ne)}),Dl(_e,Ne=>{try{T(Ne)}catch{}})}const V=L(N);if(V)for(let _e=V.length-1;_e>=0;--_e){const Ne=V[_e],Be=Ne&&Ne.name;if(typeof Be=="string")try{N.removeAttribute(Be)}catch{}}},An=function(N,B){try{Ll(i.removed,{attribute:B.getAttributeNode(N),from:B})}catch{Ll(i.removed,{attribute:null,from:B})}if(B.removeAttribute(N),N==="is")if(Cn||Dn)try{dt(B)}catch{}else try{B.setAttribute(N,"")}catch{}},fa=function(N){const B=L(N);if(B)for(let V=B.length-1;V>=0;--V){const _e=B[V],Ne=_e&&_e.name;if(!(typeof Ne!="string"||Ge[lt(Ne)]))try{N.removeAttribute(Ne)}catch{}}},ce=function(N){const B=[N];for(;B.length>0;){const V=B.pop();(re?re(V):V.nodeType)===Qn.element&&fa(V);const Ne=A(V);if(Ne)for(let Be=Ne.length-1;Be>=0;--Be)B.push(Ne[Be])}},Me=function(N){if(!Ut)return;const B=[N];for(;B.length>0;){const V=B.pop(),_e=re?re(V):V.nodeType;if(_e===Qn.processingInstruction||_e===Qn.comment&&an(tb,V.data)){try{T(V)}catch{}continue}if(_e===Qn.element){const Be=V,Xe=lt(H?H(V):V.nodeName);try{Be.hasAttribute&&Be.hasAttribute("patchsrc")&&Be.removeAttribute("patchsrc"),Be.hasAttribute&&Be.hasAttribute("for")&&Xe!=="label"&&Xe!=="output"&&Be.removeAttribute("for")}catch{}}const Ne=A(V);if(Ne)for(let Be=Ne.length-1;Be>=0;--Be)B.push(Ne[Be])}},$e=function(N){let B=null,V=null;if(Mn)N="<remove></remove>"+N;else{const Be=Fg(N,/^[\r\n\t ]+/);V=Be&&Be[0]}vn==="application/xhtml+xml"&&Le===de&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const _e=le?we(N):N;if(Le===de)try{B=new b().parseFromString(_e,vn)}catch{}if(!B||!B.documentElement){B=ne.createDocument(Le,"template",null);try{B.documentElement.innerHTML=ye?k:_e}catch{}}const Ne=B.body||B.documentElement;return N&&V&&Ne.insertBefore(r.createTextNode(V),Ne.childNodes[0]||null),Le===de?Se.call(B,mt?"html":"body")[0]:mt?B.documentElement:Ne},st=function(N){const B=P?P(N):N.ownerDocument;return oe.call(B||N,N,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},Tt=function(N){return N=Ls(N,q," "),N=Ls(N,ue," "),N=Ls(N,pe," "),N},qt=function(N){var B;N.normalize();const V=P?P(N):N.ownerDocument,_e=oe.call(V||N,N,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let Ne=_e.nextNode();for(;Ne;)Ne.data=Tt(Ne.data),Ne=_e.nextNode();const Be=(B=N.querySelectorAll)===null||B===void 0?void 0:B.call(N,"template");Be&&Dl(Be,Xe=>{Bt(Xe.content)&&qt(Xe.content)})},tn=function(N){const B=H?H(N):null;return typeof B!="string"||lt(B)!=="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!==re(N)||N.childNodes!==A(N)},Bt=function(N){if(!re||typeof N!="object"||N===null)return!1;try{return re(N)===Qn.documentFragment}catch{return!1}},rt=function(N){if(!re||typeof N!="object"||N===null)return!1;try{return typeof re(N)=="number"}catch{return!1}};function Ot(X,N,B){X.length!==0&&Dl(X,V=>{V.call(i,N,B,Wn)})}const nl=function(N,B){return!!(Ut&&N.hasChildNodes()&&!rt(N.firstElementChild)&&an(eb,N.textContent)&&an(eb,N.innerHTML)||Ut&&N.namespaceURI===de&&B==="style"&&rt(N.firstElementChild)||N.nodeType===Qn.processingInstruction||Ut&&N.nodeType===Qn.comment&&an(tb,N.data))},ai=function(N,B,V){if(!xn[B]&&li(B)&&(nt.tagNameCheck instanceof RegExp&&an(nt.tagNameCheck,B)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(B)))return!1;if(Gn&&!je[B]){const _e=U(N),Ne=A(N);if(Ne&&_e){const Be=Ne.length;for(let Xe=Be-1;Xe>=0;--Xe){const se=N===V?x(Ne[Xe],!0):Ne[Xe];_e.insertBefore(se,w(N))}}}return dt(N),!0},ii=function(N,B,V,_e){return N.length===0?B:B===V||B===_e?Sn(B):B},Ca=function(N,B){if(Ot(D.beforeSanitizeElements,N,null),N!==B&&U(N)===null)return Ln&&ce(N),!0;if(tn(N))return dt(N),!0;const V=lt(H?H(N):N.nodeName);if(ke=ii(D.uponSanitizeElement,ke,At,yn),Ot(D.uponSanitizeElement,N,{tagName:V,allowedTags:ke}),N!==B&&U(N)===null)return Ln&&ce(N),!0;if(nl(N,V))return dt(N),!0;if(xn[V]||!(zt.tagCheck instanceof Function&&zt.tagCheck(V))&&!ke[V]){const Ne=ai(N,V,B);return Ne===!1&&Ot(D.afterSanitizeElements,N,null),Ne}if((re?re(N):N.nodeType)===Qn.element&&!_a(N)||(V==="noscript"||V==="noembed"||V==="noframes")&&an(gS,N.innerHTML))return dt(N),!0;if(Ke&&N.nodeType===Qn.text){const Ne=Tt(N.textContent);N.textContent!==Ne&&(Ll(i.removed,{element:N.cloneNode()}),N.textContent=Ne)}return Ot(D.afterSanitizeElements,N,null),!1},al=function(N,B,V){if(rn[B]||Ut&&B==="patchsrc"||Ut&&B==="for"&&N!=="label"&&N!=="output"||St&&(B==="id"||B==="name")&&(V in r||V in tl))return!1;const _e=Ge[B]||zt.attributeCheck instanceof Function&&zt.attributeCheck(B,N);if(!(Jt&&an(xe,B))){if(!(qn&&an(me,B))){if(_e){if(!R[B]){if(!an(We,Ls(V,Ee,""))){if(!((B==="src"||B==="xlink:href"||B==="href")&&N!=="script"&&Kg(V,"data:")===0&&Qt[N])){if(!(ca&&!an(Oe,Ls(V,Ee,"")))){if(V)return!1}}}}}else if(!(li(N)&&(nt.tagNameCheck instanceof RegExp&&an(nt.tagNameCheck,N)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(N))&&(nt.attributeNameCheck instanceof RegExp&&an(nt.attributeNameCheck,B)||nt.attributeNameCheck instanceof Function&&nt.attributeNameCheck(B,N))||B==="is"&&nt.allowCustomizedBuiltInElements&&(nt.tagNameCheck instanceof RegExp&&an(nt.tagNameCheck,V)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(V))))return!1}}return!0},En=it({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),li=function(N){return!En[Bs(N)]&&an(He,N)},Da=function(N,B,V,_e){if(le&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!V)switch(v.getAttributeType(N,B)){case"TrustedHTML":return we(_e);case"TrustedScriptURL":return Ae(_e)}return _e},si=function(N,B,V,_e){try{V?N.setAttributeNS(V,B,_e):N.setAttribute(B,_e),tn(N)?dt(N):Yg(i.removed)}catch{An(B,N)}},Gt=function(N){Ot(D.beforeSanitizeAttributes,N,null);const B=N.attributes;if(!B||tn(N))return;Ge=ii(D.uponSanitizeAttribute,Ge,Nn,kn);const V={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ge,forceKeepAttr:void 0};let _e=B.length;const Ne=lt(N.nodeName);for(;_e--;){const Be=B[_e],Xe=Be.name,se=Be.namespaceURI,ge=Be.value,Ce=lt(Xe),Fe=ge;let Pe=Xe==="value"?Fe:J0(Fe);if(V.attrName=Ce,V.attrValue=Pe,V.keepAttr=!0,V.forceKeepAttr=void 0,Ot(D.uponSanitizeAttribute,N,V),Pe=V.attrValue,Wt&&(Ce==="id"||Ce==="name")&&Kg(Pe,Nt)!==0&&(An(Xe,N),Pe=Nt+Pe),Ut&&an(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Pe)){An(Xe,N);continue}if(Ce==="attributename"&&Fg(Pe,"href")){An(Xe,N);continue}if(!V.forceKeepAttr){if(!V.keepAttr){An(Xe,N);continue}if(!Vn&&an(bS,Pe)){An(Xe,N);continue}if(Ke&&(Pe=Tt(Pe)),!al(Ne,Ce,Pe)){An(Xe,N);continue}Pe=Da(Ne,Ce,se,Pe),Pe!==Fe&&si(N,Xe,se,Pe)}}Ot(D.afterSanitizeAttributes,N,null)},La=function(N){let B=null;const V=st(N);for(Ot(D.beforeSanitizeShadowDOM,N,null);B=V.nextNode();)if(Ot(D.uponSanitizeShadowNode,B,null),Ca(B,N),Gt(B),Bt(B.content)&&La(B.content),(re?re(B):B.nodeType)===Qn.element){const Ne=G(B);Bt(Ne)&&(Sa(Ne),La(Ne))}Ot(D.afterSanitizeShadowDOM,N,null)},Sa=function(N){const B=[{node:N,shadow:null}];for(;B.length>0;){const V=B.pop();if(V.shadow){La(V.shadow);continue}const _e=V.node,Be=(re?re(_e):_e.nodeType)===Qn.element,Xe=A(_e);if(Xe)for(let se=Xe.length-1;se>=0;--se)B.push({node:Xe[se],shadow:null});if(Be){const se=H?H(_e):null;if(typeof se=="string"&<(se)==="template"){const ge=_e.content;Bt(ge)&&B.push({node:ge,shadow:null})}}if(Be){const se=G(_e);Bt(se)&&B.push({node:null,shadow:se},{node:se,shadow:null})}}};return i.sanitize=function(X){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=null,V=null,_e=null,Ne=null;if(ye=!X,ye&&(X="<!-->"),typeof X!="string"&&!rt(X)&&(X=aS(X),typeof X!="string"))throw Qi("dirty is not a string, aborting");if(!i.isSupported)return X;bn?(ke=yn,Ge=kn):ti(N),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(ke=Sn(ke)),D.uponSanitizeAttribute.length>0&&(Ge=Sn(Ge)),i.removed=[];const Be=Ln&&typeof X!="string"&&rt(X);if(Be){Me(X);const ge=H?H(X):X.nodeName;if(typeof ge=="string"){const Ce=lt(ge);if(!ke[Ce]||xn[Ce])throw Ma(X),Qi("root node is forbidden and cannot be sanitized in-place")}if(tn(X))throw Ma(X),Qi("root node is clobbered and cannot be sanitized in-place");try{Sa(X)}catch(Ce){throw Ma(X),Ce}}else if(rt(X))B=$e("<!---->"),V=B.ownerDocument.importNode(X,!0),V.nodeType===Qn.element&&V.nodeName==="BODY"||V.nodeName==="HTML"?B=V:B.appendChild(V),Sa(V);else{if(!Cn&&!Ke&&!mt&&X.indexOf("<")===-1)return le&&on?we(X):X;if(B=$e(X),!B)return Cn?null:on?k:""}B&&Mn&&dt(B.firstChild);const Xe=Be?X:B;try{const ge=st(Xe);for(;_e=ge.nextNode();)Ca(_e,Xe),Gt(_e),Bt(_e.content)&&La(_e.content)}catch(ge){throw Be&&(Ma(X),Dl(i.removed,Ce=>{Ce.element&&ce(Ce.element)})),ge}if(Be)return Dl(i.removed,ge=>{ge.element&&ce(ge.element)}),Ke&&qt(X),X;if(Cn){if(Ke&&qt(B),Dn)for(Ne=ve.call(B.ownerDocument);B.firstChild;)Ne.appendChild(B.firstChild);else Ne=B;return(Ge.shadowroot||Ge.shadowrootmode)&&(Ne=S.call(l,Ne,!0)),Ne}let se=mt?B.outerHTML:B.innerHTML;return mt&&ke["!doctype"]&&B.ownerDocument&&B.ownerDocument.doctype&&B.ownerDocument.doctype.name&&an(pS,B.ownerDocument.doctype.name)&&(se="<!DOCTYPE "+B.ownerDocument.doctype.name+`>
|
|
172
|
+
`+se),Ke&&(se=Tt(se)),le&&on?we(se):se},i.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ti(X),bn=!0,yn=ke,kn=Ge},i.clearConfig=function(){Wn=null,bn=!1,yn=null,kn=null,le=z,k=""},i.isValidAttribute=function(X,N,B){Wn||ti({});const V=lt(X),_e=lt(N);return al(V,_e,B)},i.addHook=function(X,N){typeof N=="function"&&ln(D,X)&&Ll(D[X],N)},i.removeHook=function(X,N){if(ln(D,X)){if(N!==void 0){const B=Q0(D[X],N);return B===-1?void 0:V0(D[X],B,1)[0]}return Yg(D[X])}},i.removeHooks=function(X){ln(D,X)&&(D[X]=[])},i.removeAllHooks=function(){D=nb()},i}var ES=Ib();function Ff(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var el=Ff();function Hb(s){el=s}var Vi={exec:()=>null};function zl(s){let i=[];return r=>{let l=Math.max(0,Math.min(3,r-1)),u=i[l];return u||(u=s(l),i[l]=u),u}}function Je(s,i=""){let r=typeof s=="string"?s:s.source,l={replace:(u,d)=>{let p=typeof d=="string"?d:d.source;return p=p.replace(Tn.caret,"$1"),r=r.replace(u,p),l},getRegex:()=>new RegExp(r,i)};return l}var _S=((s="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+s)}catch{return!1}})(),Tn={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}}>`))},SS=/^(?:[ \t]*(?:\n|$))+/,TS=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,NS=/^ {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+|$)/,xS=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Kf=/ {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+|$)/,Gb=Je(qb).replace(/bull/g,Kf).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=Je(qb).replace(/bull/g,Kf).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(),Pf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,AS=/^[^\n]+/,Zf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,RS=Je(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Zf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),OS=Je(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Kf).getRegex(),mo="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",Xf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,kS=Je("^ {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",Xf).replace("tag",mo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$b=s=>Je(Pf).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",mo).getRegex(),MS=$b(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),CS=$b(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),DS=Je(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",CS).getRegex(),Qf={blockquote:DS,code:TS,def:RS,fences:NS,heading:xS,hr:Gs,html:kS,lheading:Gb,list:OS,newline:SS,paragraph:MS,table:Vi,text:AS},ab=Je("^ *([^\\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",mo).getRegex(),LS={...Qf,lheading:wS,table:ab,paragraph:Je(Pf).replace("hr",Gs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ab).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",mo).getRegex()},zS={...Qf,html:Je(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Xf).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:Vi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Je(Pf).replace("hr",Gs).replace("heading",` *#{1,6} *[^
|
|
173
|
+
]`).replace("lheading",Gb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},US=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,BS=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Yb=/^( {2,}|\\)\n(?!\s*$)/,jS=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Wa=/[\p{P}\p{S}]/u,ql=/[\s\p{P}\p{S}]/u,$s=/[^\s\p{P}\p{S}]/u,IS=Je(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ql).getRegex(),HS=/[\p{Pi}\p{Ps}"']/u,Fb=/(?!~)[\p{P}\p{S}]/u,qS=/(?!~)[\s\p{P}\p{S}]/u,GS=/(?:[^\s\p{P}\p{S}]|~)/u,$S=Je(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",_S?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Kb=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,YS=Je(Kb,"u").replace(/punct/g,Wa).getRegex(),FS=Je(Kb,"u").replace(/punct/g,Fb).getRegex(),KS=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,PS=Je(KS,"u").replace(/openQuote/g,HS).replace(/punct/g,Wa).getRegex(),Pb="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ZS=Je(Pb,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,Wa).getRegex(),XS=Je(Pb,"gu").replace(/notPunctSpace/g,GS).replace(/punctSpace/g,qS).replace(/punct/g,Fb).getRegex(),QS="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",VS=Je(QS,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,Wa).getRegex(),JS=Je("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,Wa).getRegex(),WS="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",eT=Je(WS,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,Wa).getRegex(),tT=Je(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Wa).getRegex(),nT="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",aT=Je(nT,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,Wa).getRegex(),iT=Je(/\\(punct)/,"gu").replace(/punct/g,Wa).getRegex(),lT=Je(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),sT=Je(Xf).replace("(?:-->|$)","-->").getRegex(),rT=Je("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",sT).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),co=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,oT=Je(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",co).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Zb=Je(/^!?\[(label)\]\[(ref)\]/).replace("label",co).replace("ref",Zf).getRegex(),Xb=Je(/^!?\[(ref)\](?:\[\])?/).replace("ref",Zf).getRegex(),cT=Je("reflink|nolink(?!\\()","g").replace("reflink",Zb).replace("nolink",Xb).getRegex(),ib=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Vf={_backpedal:Vi,anyPunctuation:iT,autolink:lT,blockSkip:$S,br:Yb,code:BS,del:Vi,delLDelim:Vi,delRDelim:Vi,emStrongLDelim:YS,emStrongRDelimAst:ZS,emStrongRDelimUnd:JS,escape:US,link:oT,nolink:Xb,punctuation:IS,reflink:Zb,reflinkSearch:cT,tag:rT,text:jS,url:Vi},uT={...Vf,emStrongLDelim:PS,emStrongRDelimAst:VS,emStrongRDelimUnd:eT,link:Je(/^!?\[(label)\]\((.*?)\)/).replace("label",co).getRegex(),reflink:Je(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",co).getRegex()},Of={...Vf,emStrongRDelimAst:XS,emStrongLDelim:FS,delLDelim:tT,delRDelim:aT,url:Je(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ib).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Je(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ib).getRegex()},fT={...Of,br:Je(Yb).replace("{2,}","*").getRegex(),text:Je(Of.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},to={normal:Qf,gfm:LS,pedantic:zS},Us={normal:Vf,gfm:Of,breaks:fT,pedantic:uT},dT={"&":"&","<":"<",">":">",'"':""","'":"'"},lb=s=>dT[s];function Ra(s,i){if(i){if(Tn.escapeTest.test(s))return s.replace(Tn.escapeReplace,lb)}else if(Tn.escapeTestNoEncode.test(s))return s.replace(Tn.escapeReplaceNoEncode,lb);return s}function sb(s){try{s=encodeURI(s).replace(Tn.percentDecode,"%")}catch{return null}return s}function rb(s,i){var d;let r=s.replace(Tn.findPipe,(p,y,g)=>{let m=!1,b=y;for(;--b>=0&&g[b]==="\\";)m=!m;return m?"|":" |"}),l=r.split(Tn.splitPipe),u=0;if(l[0].trim()||l.shift(),l.length>0&&!((d=l.at(-1))!=null&&d.trim())&&l.pop(),i)if(l.length>i)l.splice(i);else for(;l.length<i;)l.push("");for(;u<l.length;u++)l[u]=l[u].trim().replace(Tn.slashPipe,"|");return l}function Mi(s,i,r){let l=s.length;if(l===0)return"";let u=0;for(;u<l&&s.charAt(l-u-1)===i;)u++;return s.slice(0,l-u)}function ob(s){let i=s.split(`
|
|
174
174
|
`),r=i.length-1;for(;r>=0&&Tn.blankLine.test(i[r]);)r--;return i.length-r<=2?s:i.slice(0,r+1).join(`
|
|
175
|
-
`)}function
|
|
175
|
+
`)}function hT(s,i){if(s.indexOf(i[1])===-1)return-1;let r=0;for(let l=0;l<s.length;l++)if(s[l]==="\\")l++;else if(s[l]===i[0])r++;else if(s[l]===i[1]&&(r--,r<0))return l;return r>0?-2:-1}function pT(s,i=0){let r=i,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 cb(s,i,r,l,u){let d=i.href,p=i.title||null,y=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:y,tokens:l.inlineTokens(y)};return l.state.inLink=!1,g}function mT(s,i,r){let l=s.match(r.other.indentCodeCompensation);if(l===null)return i;let u=l[1];return i.split(`
|
|
176
176
|
`).map(d=>{let p=d.match(r.other.beginningSpace);if(p===null)return d;let[y]=p;return y.length>=u.length?d.slice(u.length):d}).join(`
|
|
177
|
-
`)}var uo=class{constructor(s){Et(this,"options");Et(this,"rules");Et(this,"lexer");this.options=s||el}space(s){let i=this.rules.block.newline.exec(s);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(s){let i=this.rules.block.code.exec(s);if(i){let r=this.options.pedantic?i[0]:
|
|
177
|
+
`)}var uo=class{constructor(s){Et(this,"options");Et(this,"rules");Et(this,"lexer");this.options=s||el}space(s){let i=this.rules.block.newline.exec(s);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(s){let i=this.rules.block.code.exec(s);if(i){let r=this.options.pedantic?i[0]:ob(i[0]),l=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:l}}}fences(s){let i=this.rules.block.fences.exec(s);if(i){let r=i[0],l=mT(r,i[3]||"",this.rules);return{type:"code",raw:r,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:l}}}heading(s){let i=this.rules.block.heading.exec(s);if(i){let r=i[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(i[0],`
|
|
178
178
|
`),depth:i[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(s){let i=this.rules.block.hr.exec(s);if(i)return{type:"hr",raw:Mi(i[0],`
|
|
179
179
|
`)}}blockquote(s){let i=this.rules.block.blockquote.exec(s);if(i){let r=Mi(i[0],`
|
|
180
180
|
`).split(`
|
|
@@ -182,25 +182,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
182
182
|
`),b=m.replace(this.rules.other.blockquoteSetextReplace,`
|
|
183
183
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");l=l?`${l}
|
|
184
184
|
${m}`:m,u=u?`${u}
|
|
185
|
-
${b}`:b;let v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(b,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 x=_,
|
|
186
|
-
`),
|
|
187
|
-
`+
|
|
188
|
-
${
|
|
185
|
+
${b}`:b;let v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(b,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 x=_,T=r.join(`
|
|
186
|
+
`),w=x.raw+`
|
|
187
|
+
`+T.replace(this.rules.other.blockquoteSetextReplace2,""),A=this.blockquote(w);d[d.length-1]=A,l=`${l}
|
|
188
|
+
${T}`,u=u.substring(0,u.length-x.text.length)+A.text;break}else if((_==null?void 0:_.type)==="list"){let x=_,T=x.raw+`
|
|
189
189
|
`+r.join(`
|
|
190
|
-
`),
|
|
191
|
-
`);continue}}return{type:"blockquote",raw:l,tokens:d,text:u}}}list(s){let i=this.rules.block.list.exec(s);if(i){let r=i[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="",b="";if(!(i=d.exec(s))||this.rules.block.hr.test(s))break;m=i[0],s=s.substring(m.length);let v=
|
|
190
|
+
`),w=this.list(T);d[d.length-1]=w,l=l.substring(0,l.length-_.raw.length)+w.raw,u=u.substring(0,u.length-x.raw.length)+w.raw,r=T.substring(d.at(-1).raw.length).split(`
|
|
191
|
+
`);continue}}return{type:"blockquote",raw:l,tokens:d,text:u}}}list(s){let i=this.rules.block.list.exec(s);if(i){let r=i[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="",b="";if(!(i=d.exec(s))||this.rules.block.hr.test(s))break;m=i[0],s=s.substring(m.length);let v=pT(i[2].split(`
|
|
192
192
|
`,1)[0],i[1].length),_=s.split(`
|
|
193
|
-
`,1)[0],x=!v.trim(),
|
|
194
|
-
`,s=s.substring(_.length+1),g=!0),!g){let
|
|
195
|
-
`,1)[0],P;if(_=H,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting," "),P=_):P=_.replace(this.rules.other.tabCharGlobal," "),U.test(_)||G.test(_)||L.test(_)||re.test(_)||
|
|
196
|
-
`+P.slice(
|
|
193
|
+
`,1)[0],x=!v.trim(),T=0;if(this.options.pedantic?(T=2,b=v.trimStart()):x?T=i[1].length+1:(T=v.search(this.rules.other.nonSpaceChar),T=T>4?1:T,b=v.slice(T),T+=i[1].length),x&&this.rules.other.blankLine.test(_)&&(m+=_+`
|
|
194
|
+
`,s=s.substring(_.length+1),g=!0),!g){let w=this.rules.other.nextBulletRegex(T),A=this.rules.other.hrRegex(T),U=this.rules.other.fencesBeginRegex(T),G=this.rules.other.headingBeginRegex(T),L=this.rules.other.htmlBeginRegex(T),re=this.rules.other.blockquoteBeginRegex(T);for(;s;){let H=s.split(`
|
|
195
|
+
`,1)[0],P;if(_=H,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting," "),P=_):P=_.replace(this.rules.other.tabCharGlobal," "),U.test(_)||G.test(_)||L.test(_)||re.test(_)||w.test(_)||A.test(_))break;if(P.search(this.rules.other.nonSpaceChar)>=T||!_.trim())b+=`
|
|
196
|
+
`+P.slice(T);else{if(x||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||U.test(v)||G.test(v)||A.test(v))break;b+=`
|
|
197
197
|
`+_}x=!_.trim(),m+=H+`
|
|
198
|
-
`,s=s.substring(H.length+1),v=P.slice(
|
|
199
|
-
`),href:l,title:u}}}table(s){var p;let i=this.rules.block.table.exec(s);if(!i||!this.rules.other.tableDelimiter.test(i[2]))return;let r=
|
|
198
|
+
`,s=s.substring(H.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(b),loose:!1,text:b,tokens:[]}),u.raw+=m}let y=u.items.at(-1);if(y)y.raw=y.raw.trimEnd(),y.text=y.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let g of u.items)if(this.lexer.state.top=!1,g.tokens=this.lexer.blockTokens(g.text,[]),!u.loose){let m=g.tokens.filter(v=>v.type==="space"),b=m.length>0&&m.some(v=>this.rules.other.anyLine.test(v.raw));u.loose=b}for(let g of u.items){let m=g.tokens[0];if(g.task&&((m==null?void 0:m.type)==="text"||(m==null?void 0:m.type)==="paragraph")){g.text=g.text.replace(this.rules.other.listReplaceTask,""),m.raw=m.raw.replace(this.rules.other.listReplaceTask,""),m.text=m.text.replace(this.rules.other.listReplaceTask,"");for(let v=this.lexer.inlineQueue.length-1;v>=0;v--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[v].src)){this.lexer.inlineQueue[v].src=this.lexer.inlineQueue[v].src.replace(this.rules.other.listReplaceTask,"");break}let b=this.rules.other.listTaskCheckbox.exec(g.raw);if(b){let v={type:"checkbox",raw:b[0]+" ",checked:b[0]!=="[ ]"};g.checked=v.checked,u.loose?g.tokens[0]&&["paragraph","text"].includes(g.tokens[0].type)&&"tokens"in g.tokens[0]&&g.tokens[0].tokens?(g.tokens[0].raw=v.raw+g.tokens[0].raw,g.tokens[0].text=v.raw+g.tokens[0].text,g.tokens[0].tokens.unshift(v)):g.tokens.unshift({type:"paragraph",raw:v.raw,text:v.raw,tokens:[v]}):g.tokens.unshift(v)}}else g.task&&(g.task=!1)}if(u.loose)for(let g of u.items){g.loose=!0;for(let m of g.tokens)m.type==="text"&&(m.type="paragraph")}return u}}html(s){let i=this.rules.block.html.exec(s);if(i){let r=ob(i[0]);return{type:"html",block:!0,raw:r,pre:i[1]==="pre"||i[1]==="script"||i[1]==="style",text:r}}}def(s){let i=this.rules.block.def.exec(s);if(i){let r=i[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),l=i[2]?i[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):i[3];return{type:"def",tag:r,raw:Mi(i[0],`
|
|
199
|
+
`),href:l,title:u}}}table(s){var p;let i=this.rules.block.table.exec(s);if(!i||!this.rules.other.tableDelimiter.test(i[2]))return;let r=rb(i[1]),l=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=(p=i[3])!=null&&p.trim()?i[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
200
200
|
`):[],d={type:"table",raw:Mi(i[0],`
|
|
201
|
-
`),header:[],align:[],rows:[]};if(r.length===l.length){for(let y of l)this.rules.other.tableAlignRight.test(y)?d.align.push("right"):this.rules.other.tableAlignCenter.test(y)?d.align.push("center"):this.rules.other.tableAlignLeft.test(y)?d.align.push("left"):d.align.push(null);for(let y=0;y<r.length;y++)d.header.push({text:r[y],tokens:this.lexer.inline(r[y]),header:!0,align:d.align[y]});for(let y of u)d.rows.push(
|
|
201
|
+
`),header:[],align:[],rows:[]};if(r.length===l.length){for(let y of l)this.rules.other.tableAlignRight.test(y)?d.align.push("right"):this.rules.other.tableAlignCenter.test(y)?d.align.push("center"):this.rules.other.tableAlignLeft.test(y)?d.align.push("left"):d.align.push(null);for(let y=0;y<r.length;y++)d.header.push({text:r[y],tokens:this.lexer.inline(r[y]),header:!0,align:d.align[y]});for(let y of u)d.rows.push(rb(y,d.header.length).map((g,m)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:d.align[m]})));return d}}lheading(s){let i=this.rules.block.lheading.exec(s);if(i){let r=i[1].trim();return{type:"heading",raw:Mi(i[0],`
|
|
202
202
|
`),depth:i[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(s){let i=this.rules.block.paragraph.exec(s);if(i){let r=i[1].charAt(i[1].length-1)===`
|
|
203
|
-
`?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:r,tokens:this.lexer.inline(r)}}}text(s){let i=this.rules.block.text.exec(s);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}escape(s){let i=this.rules.inline.escape.exec(s);if(i)return{type:"escape",raw:i[0],text:i[1]}}tag(s){let i=this.rules.inline.tag.exec(s);if(i)return!this.lexer.state.inLink&&this.rules.other.startATag.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:i[0]}}link(s){let i=this.rules.inline.link.exec(s);if(i){let r=i[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=
|
|
203
|
+
`?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:r,tokens:this.lexer.inline(r)}}}text(s){let i=this.rules.block.text.exec(s);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}escape(s){let i=this.rules.inline.escape.exec(s);if(i)return{type:"escape",raw:i[0],text:i[1]}}tag(s){let i=this.rules.inline.tag.exec(s);if(i)return!this.lexer.state.inLink&&this.rules.other.startATag.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:i[0]}}link(s){let i=this.rules.inline.link.exec(s);if(i){let r=i[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=hT(i[2],"()");if(d===-2)return;if(d>-1){let p=(i[0].indexOf("!")===0?5:4)+i[1].length+d;i[2]=i[2].substring(0,d),i[0]=i[0].substring(0,p).trim(),i[3]=""}}let l=i[2],u="";if(this.options.pedantic){let d=this.rules.other.pedanticHrefTitle.exec(l);d&&(l=d[1],u=d[3])}else u=i[3]?i[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)),cb(i,{href:l&&l.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},i[0],this.lexer,this.rules)}}reflink(s,i){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=i[l.toLowerCase()];if(!u){let d=r[0].charAt(0);return{type:"text",raw:d,text:d}}return cb(r,u,r[0],this.lexer,this.rules)}}emStrong(s,i,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,y=u,g=0,m=l[0][0],b=r===m,v=m==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,i=i.slice(-1*s.length+u);(l=v.exec(i))!==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]){y+=p;continue}else if(l[5]||l[6]){if(u%3&&!((u+p)%3)){g+=p;continue}if(b)break}if(y-=p,y>0)continue;p=Math.min(p,p+y+g);let _=[...l[0]][0].length,x=s.slice(0,u+l.index+_+p);if(Math.min(u,p)%2){let w=x.slice(1,-1);return{type:"em",raw:x,text:w,tokens:this.lexer.inlineTokens(w)}}let T=x.slice(2,-2);return{type:"strong",raw:x,text:T,tokens:this.lexer.inlineTokens(T)}}}}codespan(s){let i=this.rules.inline.code.exec(s);if(i){let r=i[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:i[0],text:r}}}br(s){let i=this.rules.inline.br.exec(s);if(i)return{type:"br",raw:i[0]}}del(s,i,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,y=u,g=this.rules.inline.delRDelim;for(g.lastIndex=0,i=i.slice(-1*s.length+u);(l=g.exec(i))!==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]){y+=p;continue}if(y-=p,y>0)continue;p=Math.min(p,p+y);let m=[...l[0]][0].length,b=s.slice(0,u+l.index+m+p),v=b.slice(u,-u);return{type:"del",raw:b,text:v,tokens:this.lexer.inlineTokens(v)}}}}autolink(s){let i=this.rules.inline.autolink.exec(s);if(i){let r,l;return i[2]==="@"?(r=i[1],l="mailto:"+r):(r=i[1],l=r),{type:"link",raw:i[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}url(s){var r;let i;if(i=this.rules.inline.url.exec(s)){let l,u;if(i[2]==="@")l=i[0],u="mailto:"+l;else{let d;do d=i[0],i[0]=((r=this.rules.inline._backpedal.exec(i[0]))==null?void 0:r[0])??"";while(d!==i[0]);l=i[0],i[1]==="www."?u="http://"+i[0]:u=i[0]}return{type:"link",raw:i[0],text:l,href:u,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(s){let i=this.rules.inline.text.exec(s);if(i){let r=this.lexer.state.inRawBlock;return{type:"text",raw:i[0],text:i[0],escaped:r}}}},ga=class kf{constructor(i){Et(this,"tokens");Et(this,"options");Et(this,"state");Et(this,"inlineQueue");Et(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=i||el,this.options.tokenizer=this.options.tokenizer||new uo,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:Tn,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(i,r){return new kf(r).lex(i)}static lexInline(i,r){return new kf(r).inlineTokens(i)}lex(i){i=i.replace(Tn.carriageReturn,`
|
|
204
204
|
`),this.blockTokens(i,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(i,r=[],l=!1){var d,p,y;this.tokenizer.lexer=this,this.options.pedantic&&(i=i.replace(Tn.tabCharGlobal," ").replace(Tn.spaceLine,""));let u=1/0;for(;i;){if(i.length<u)u=i.length;else{this.infiniteLoopError(i.charCodeAt(0));break}let g;if((p=(d=this.options.extensions)==null?void 0:d.block)!=null&&p.some(b=>(g=b.call({lexer:this},i,r))?(i=i.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.space(i)){i=i.substring(g.raw.length);let b=r.at(-1);g.raw.length===1&&b!==void 0?b.raw+=`
|
|
205
205
|
`:r.push(g);continue}if(g=this.tokenizer.code(i)){i=i.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
|
|
206
206
|
`)?"":`
|
|
@@ -214,7 +214,7 @@ ${N}`,u=u.substring(0,u.length-x.text.length)+w.text;break}else if((_==null?void
|
|
|
214
214
|
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(g),l=m.length!==i.length,i=i.substring(g.raw.length);continue}if(g=this.tokenizer.text(i)){i=i.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
|
|
215
215
|
`)?"":`
|
|
216
216
|
`)+g.raw,b.text+=`
|
|
217
|
-
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(g);continue}if(i){this.infiniteLoopError(i.charCodeAt(0));break}}return this.state.top=!0,r}inline(i,r=[]){return this.inlineQueue.push({src:i,tokens:r}),r}inlineTokens(i,r=[]){var y,g,m,b,v;this.tokenizer.lexer=this;let l=i;if(this.tokens.links){let _=Object.keys(this.tokens.links);_.length>0&&(l=l.replace(this.tokenizer.rules.inline.reflinkSearch,x=>_.includes(x.slice(x.lastIndexOf("[")+1,-1))?"["+"a".repeat(x.length-2)+"]":x))}l=l.replace(this.tokenizer.rules.inline.anyPunctuation,_=>"+".repeat(_.length)),l=l.replace(this.tokenizer.rules.inline.blockSkip,(_,x,
|
|
217
|
+
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(g);continue}if(i){this.infiniteLoopError(i.charCodeAt(0));break}}return this.state.top=!0,r}inline(i,r=[]){return this.inlineQueue.push({src:i,tokens:r}),r}inlineTokens(i,r=[]){var y,g,m,b,v;this.tokenizer.lexer=this;let l=i;if(this.tokens.links){let _=Object.keys(this.tokens.links);_.length>0&&(l=l.replace(this.tokenizer.rules.inline.reflinkSearch,x=>_.includes(x.slice(x.lastIndexOf("[")+1,-1))?"["+"a".repeat(x.length-2)+"]":x))}l=l.replace(this.tokenizer.rules.inline.anyPunctuation,_=>"+".repeat(_.length)),l=l.replace(this.tokenizer.rules.inline.blockSkip,(_,x,T)=>{let w=T?T.length:0;return _.slice(0,w)+"["+"a".repeat(_.length-w-2)+"]"}),l=((g=(y=this.options.hooks)==null?void 0:y.emStrongMask)==null?void 0:g.call({lexer:this},l))??l;let u=!1,d="",p=1/0;for(;i;){if(i.length<p)p=i.length;else{this.infiniteLoopError(i.charCodeAt(0));break}u||(d=""),u=!1;let _;if((b=(m=this.options.extensions)==null?void 0:m.inline)!=null&&b.some(T=>(_=T.call({lexer:this},i,r))?(i=i.substring(_.raw.length),r.push(_),!0):!1))continue;if(_=this.tokenizer.escape(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.tag(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.link(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.reflink(i,this.tokens.links)){i=i.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(i,l,d)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.codespan(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.br(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.del(i,l,d)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.autolink(i)){i=i.substring(_.raw.length),r.push(_);continue}if(!this.state.inLink&&(_=this.tokenizer.url(i))){i=i.substring(_.raw.length),r.push(_);continue}let x=i;if((v=this.options.extensions)!=null&&v.startInline){let T=1/0,w=i.slice(1),A;this.options.extensions.startInline.forEach(U=>{A=U.call({lexer:this},w),typeof A=="number"&&A>=0&&(T=Math.min(T,A))}),T<1/0&&T>=0&&(x=i.substring(0,T+1))}if(_=this.tokenizer.inlineText(x)){i=i.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(i){this.infiniteLoopError(i.charCodeAt(0));break}}return r}infiniteLoopError(i){let r="Infinite loop on byte: "+i;if(this.options.silent)console.error(r);else throw new Error(r)}},fo=class{constructor(s){Et(this,"options");Et(this,"parser");this.options=s||el}space(s){return""}code({text:s,lang:i,escaped:r}){var d;let l=(d=(i||"").match(Tn.notSpaceStart))==null?void 0:d[0],u=s.replace(Tn.endingNewline,"")+`
|
|
218
218
|
`;return l?'<pre><code class="language-'+Ra(l)+'">'+(r?u:Ra(u,!0))+`</code></pre>
|
|
219
219
|
`:"<pre><code>"+(r?u:Ra(u,!0))+`</code></pre>
|
|
220
220
|
`}blockquote({tokens:s}){return`<blockquote>
|
|
@@ -232,10 +232,10 @@ ${this.parser.parse(s)}</blockquote>
|
|
|
232
232
|
`}tablerow({text:s}){return`<tr>
|
|
233
233
|
${s}</tr>
|
|
234
234
|
`}tablecell(s){let i=this.parser.parseInline(s.tokens),r=s.header?"th":"td";return(s.align?`<${r} align="${s.align}">`:`<${r}>`)+i+`</${r}>
|
|
235
|
-
`}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>${Ra(s,!0)}</code>`}br(s){return"<br>"}del({tokens:s}){return`<del>${this.parser.parseInline(s)}</del>`}link({href:s,title:i,tokens:r}){let l=this.parser.parseInline(r),u=
|
|
236
|
-
Please report this to https://github.com/markedjs/marked.`,s){let l="<p>An error occurred:</p><pre>"+Ra(r.message+"",!0)+"</pre>";return i?Promise.resolve(l):l}if(i)return Promise.reject(r);throw r}}},Ji=new
|
|
237
|
-
`);for(let d=0;d<u.length;d++){const p=u[d],y=p.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(y){r=Number(y[1]),l=!0;continue}l&&(p===""&&d===u.length-1||p.startsWith("\\")||p.startsWith("-")||(p.startsWith("+")||p.startsWith(" ")||p==="")&&(i.push({n:r,text:p===""?"":p.slice(1),added:p.startsWith("+")}),r++))}return i}const no=s=>(s.match(/\n/g)??[]).length;function
|
|
235
|
+
`}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>${Ra(s,!0)}</code>`}br(s){return"<br>"}del({tokens:s}){return`<del>${this.parser.parseInline(s)}</del>`}link({href:s,title:i,tokens:r}){let l=this.parser.parseInline(r),u=sb(s);if(u===null)return l;s=u;let d='<a href="'+s+'"';return i&&(d+=' title="'+Ra(i)+'"'),d+=">"+l+"</a>",d}image({href:s,title:i,text:r,tokens:l}){l&&(r=this.parser.parseInline(l,this.parser.textRenderer));let u=sb(s);if(u===null)return Ra(r);s=u;let d=`<img src="${s}" alt="${Ra(r)}"`;return i&&(d+=` title="${Ra(i)}"`),d+=">",d}text(s){return"tokens"in s&&s.tokens?this.parser.parseInline(s.tokens):"escaped"in s&&s.escaped?s.text:Ra(s.text)}},Jf=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}},ba=class Mf{constructor(i){Et(this,"options");Et(this,"renderer");Et(this,"textRenderer");this.options=i||el,this.options.renderer=this.options.renderer||new fo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Jf}static parse(i,r){return new Mf(r).parse(i)}static parseInline(i,r){return new Mf(r).parseInline(i)}parse(i){var l,u;this.renderer.parser=this;let r="";for(let d=0;d<i.length;d++){let p=i[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 y=p;switch(y.type){case"space":{r+=this.renderer.space(y);break}case"hr":{r+=this.renderer.hr(y);break}case"heading":{r+=this.renderer.heading(y);break}case"code":{r+=this.renderer.code(y);break}case"table":{r+=this.renderer.table(y);break}case"blockquote":{r+=this.renderer.blockquote(y);break}case"list":{r+=this.renderer.list(y);break}case"checkbox":{r+=this.renderer.checkbox(y);break}case"html":{r+=this.renderer.html(y);break}case"def":{r+=this.renderer.def(y);break}case"paragraph":{r+=this.renderer.paragraph(y);break}case"text":{r+=this.renderer.text(y);break}default:{let g='Token with "'+y.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return r}parseInline(i,r=this.renderer){var u,d;this.renderer.parser=this;let l="";for(let p=0;p<i.length;p++){let y=i[p];if((d=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&d[y.type]){let m=this.options.extensions.renderers[y.type].call({parser:this},y);if(m!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(y.type)){l+=m||"";continue}}let g=y;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,js=(ao=class{constructor(s){Et(this,"options");Et(this,"block");this.options=s||el}preprocess(s){return s}postprocess(s){return s}processAllTokens(s){return s}emStrongMask(s){return s}provideLexer(s=this.block){return s?ga.lex:ga.lexInline}provideParser(s=this.block){return s?ba.parse:ba.parseInline}},Et(ao,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Et(ao,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ao),gT=class{constructor(...s){Et(this,"defaults",Ff());Et(this,"options",this.setOptions);Et(this,"parse",this.parseMarkdown(!0));Et(this,"parseInline",this.parseMarkdown(!1));Et(this,"Parser",ba);Et(this,"Renderer",fo);Et(this,"TextRenderer",Jf);Et(this,"Lexer",ga);Et(this,"Tokenizer",uo);Et(this,"Hooks",js);this.use(...s)}walkTokens(s,i){var l,u;let r=[];for(let d of s)switch(r=r.concat(i.call(this,d)),d.type){case"table":{let p=d;for(let y of p.header)r=r.concat(this.walkTokens(y.tokens,i));for(let y of p.rows)for(let g of y)r=r.concat(this.walkTokens(g.tokens,i));break}case"list":{let p=d;r=r.concat(this.walkTokens(p.items,i));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(y=>{let g=p[y].flat(1/0);r=r.concat(this.walkTokens(g,i))}):p.tokens&&(r=r.concat(this.walkTokens(p.tokens,i)))}}return r}use(...s){let i=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=i.renderers[u.name];d?i.renderers[u.name]=function(...p){let y=u.renderer.apply(this,p);return y===!1&&(y=d.apply(this,p)),y}:i.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=i[u.level];d?d.unshift(u.tokenizer):i[u.level]=[u.tokenizer],u.start&&(u.level==="block"?i.startBlock?i.startBlock.push(u.start):i.startBlock=[u.start]:u.level==="inline"&&(i.startInline?i.startInline.push(u.start):i.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(i.childTokens[u.name]=u.childTokens)}),l.extensions=i),r.renderer){let u=this.defaults.renderer||new fo(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,y=r.renderer[p],g=u[p];u[p]=(...m)=>{let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b||""}}l.renderer=u}if(r.tokenizer){let u=this.defaults.tokenizer||new uo(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,y=r.tokenizer[p],g=u[p];u[p]=(...m)=>{let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b}}l.tokenizer=u}if(r.hooks){let u=this.defaults.hooks||new js;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,y=r.hooks[p],g=u[p];js.passThroughHooks.has(d)?u[p]=m=>{if(this.defaults.async&&js.passThroughHooksRespectAsync.has(d))return(async()=>{let v=await y.call(u,m);return g.call(u,v)})();let b=y.call(u,m);return g.call(u,b)}:u[p]=(...m)=>{if(this.defaults.async)return(async()=>{let v=await y.apply(u,m);return v===!1&&(v=await g.apply(u,m)),v})();let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b}}l.hooks=u}if(r.walkTokens){let u=this.defaults.walkTokens,d=r.walkTokens;l.walkTokens=function(p){let y=[];return y.push(d.call(this,p)),u&&(y=y.concat(u.call(this,p))),y}}this.defaults={...this.defaults,...l}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,i){return ga.lex(s,i??this.defaults)}parser(s,i){return ba.parse(s,i??this.defaults)}parseMarkdown(s){return(i,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 i>"u"||i===null)return d(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return d(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", 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(i):i,y=await(u.hooks?await u.hooks.provideLexer(s):s?ga.lex:ga.lexInline)(p,u),g=u.hooks?await u.hooks.processAllTokens(y):y;u.walkTokens&&await Promise.all(this.walkTokens(g,u.walkTokens));let m=await(u.hooks?await u.hooks.provideParser(s):s?ba.parse:ba.parseInline)(g,u);return u.hooks?await u.hooks.postprocess(m):m})().catch(d);try{u.hooks&&(i=u.hooks.preprocess(i));let p=(u.hooks?u.hooks.provideLexer(s):s?ga.lex:ga.lexInline)(i,u);u.hooks&&(p=u.hooks.processAllTokens(p)),u.walkTokens&&this.walkTokens(p,u.walkTokens);let y=(u.hooks?u.hooks.provideParser(s):s?ba.parse:ba.parseInline)(p,u);return u.hooks&&(y=u.hooks.postprocess(y)),y}catch(p){return d(p)}}}onError(s,i){return r=>{if(r.message+=`
|
|
236
|
+
Please report this to https://github.com/markedjs/marked.`,s){let l="<p>An error occurred:</p><pre>"+Ra(r.message+"",!0)+"</pre>";return i?Promise.resolve(l):l}if(i)return Promise.reject(r);throw r}}},Ji=new gT;function ft(s,i){return Ji.parse(s,i)}ft.options=ft.setOptions=function(s){return Ji.setOptions(s),ft.defaults=Ji.defaults,Hb(ft.defaults),ft};ft.getDefaults=Ff;ft.defaults=el;function bT(...s){return Ji.use(...s),ft.defaults=Ji.defaults,Hb(ft.defaults),ft}ft.use=bT;ft.walkTokens=function(s,i){return Ji.walkTokens(s,i)};ft.parseInline=Ji.parseInline;ft.Parser=ba;ft.parser=ba.parse;ft.Renderer=fo;ft.TextRenderer=Jf;ft.Lexer=ga;ft.lexer=ga.lex;ft.Tokenizer=uo;ft.Hooks=js;ft.parse=ft;ft.options;ft.setOptions;ft.walkTokens;ft.parseInline;ba.parse;ga.lex;ft.setOptions({gfm:!0,breaks:!1});function Wf(s){const i=ft.parse(s??"",{async:!1});return ES.sanitize(i)}function Wi({text:s,className:i}){const r=ae.useMemo(()=>Wf(s),[s]);return s!=null&&s.trim()?f.jsx("div",{className:`md ${i??""}`,dangerouslySetInnerHTML:{__html:r}}):null}const yT={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'"};function vT(s){return s.replace(/<[^>]*>/g," ").replace(/&([a-z]+|#\d+);/gi,(i,r)=>yT[r.toLowerCase()]??i).replace(/\s+/g," ").trim()}function ET(s,i){return vT(i)!==s.replace(/\s+/g," ").trim()}function Ys({text:s,className:i}){const r=ae.useMemo(()=>s!=null&&s.trim()?Wf(s):"",[s]);return!r||!ET(s,r)?null:f.jsxs("div",{className:"md-preview",children:[f.jsx("div",{className:"lab",children:"preview"}),f.jsx("div",{className:`md prose ${i??""}`,dangerouslySetInnerHTML:{__html:r}})]})}const _T=/\.(md|markdown)$/i;function ed(s){return _T.test(s)}function ST(s){return/^new file mode /m.test(s)||/^--- \/dev\/null$/m.test(s)}function TT(s){const i=[];let r=0,l=!1;const u=s.split(`
|
|
237
|
+
`);for(let d=0;d<u.length;d++){const p=u[d],y=p.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(y){r=Number(y[1]),l=!0;continue}l&&(p===""&&d===u.length-1||p.startsWith("\\")||p.startsWith("-")||(p.startsWith("+")||p.startsWith(" ")||p==="")&&(i.push({n:r,text:p===""?"":p.slice(1),added:p.startsWith("+")}),r++))}return i}const no=s=>(s.match(/\n/g)??[]).length;function td(s){const i=TT(s),r=ST(s),l=[];let u=[];const d=()=>{if(u.length===0)return;const p=u[0].n,y=new Set(u.filter(b=>b.added).map(b=>b.n)),g=u.map(b=>b.text).join(`
|
|
238
238
|
`)+`
|
|
239
|
-
`;let m=p;for(const b of ft.lexer(g)){const v=b.raw,_=v.trimEnd();if(_===""){m+=no(v);continue}const x=v.length-v.trimStart().length,N=m+no(v.slice(0,x)),A=N+no(_.slice(x));let w=!1;for(let U=N;U<=A&&!w;U++)w=y.has(U);l.push({kind:"block",raw:_.slice(x),from:N,to:A,changed:w}),m+=no(v)}u=[]};for(const p of i){const y=u[u.length-1];if(y&&p.n!==y.n+1){const g=p.n-y.n-1;d(),l.push({kind:"gap",lines:g})}u.push(p)}return d(),{items:l,isNew:r,lines:i.length}}const cb={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},TT={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function NT(s){return(s==null?void 0:s.recommendation)==="approve"?"APPROVE":(s==null?void 0:s.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function Xb(s,i){const r=i_(s);return i.filter(l=>{var u;return!l.drifted&&l.line!=null&&((u=r.get(l.path))==null?void 0:u.has(l.line))})}function ub(s,i){const r=d=>{const p=Number((d??"").trim());return Number.isInteger(p)&&p>0?p:null},l=r(i);if(l!=null)return{line:l,side:"new"};const u=r(s);return u!=null?{line:u,side:"old"}:null}function Qb(s){const i=s.comments.filter(u=>u.status==="dropped"),r=s.comments.filter(u=>u.status!=="dropped"),l=Xb(s.diff,r);return{inline:l,folded:r.filter(u=>!l.includes(u)),dropped:i}}function Sf(s){const i=s.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:i.filter(d=>d.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:d})=>`${Rb[u]} ${d} ${u}${d===1?"":"s"}`).join(" · ")}function xT(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 wT(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 fb(s){const{inline:i,folded:r}=Qb(s);if(s.bodyOverride!=null)return`${i.length===0?"no inline comments":`${i.length} inline`} · body you wrote`;if(i.length===0&&r.length===0)return"no inline comments · body only";const l=[`${i.length} inline`];return r.length>0&&l.push(`${r.length} folded into the body`),l.join(" · ")}const db={approve:"approve",comment:"comment",request_changes:"changes"},AT={approve:"approve",comment:"comment",request_changes:"changes"};function RT(s,i){return s.status==="dropped"?"none":s.drifted?"comment":s.origin==="user"?"awaiting":i}function Vb(s,i=20){const r=document.getElementById(`c-${s}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}i>0&&requestAnimationFrame(()=>Vb(s,i-1))}function OT(s){const i=s,r=i==null?void 0:i.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(i==null?void 0:i.isContentEditable)===!0}function hb(s,i){const r=document.createElement("tr");r.className=i;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 Jb({pick:s,chatBusy:i,onAdd:r,onAsk:l,onClose:u}){const[d,p]=ie.useState(""),y=ie.useRef(null);ie.useEffect(()=>{var m;return(m=y.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:y,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(Ze,{name:"plus"}),"add comment",f.jsx(Va,{children:"⌘↵"})]}),f.jsxs("button",{className:"btn btn-accent",disabled:!g||i,title:i?"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(Ze,{name:"comment"}),"ask the reviewer"]}),f.jsx("span",{className:"grow"}),f.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function kT({patch:s,comments:i,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onRead:y}){const g=ie.useMemo(()=>s.trim()?e_(s,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[s]),m=ie.useMemo(()=>Ja(s).map(z=>z.path),[s]),b=ie.useMemo(()=>new Set(Ja(s).filter(z=>Wf(z.path)&&ed(z.patch).lines>0).map(z=>z.path)),[s]),v=ie.useMemo(()=>i.map(z=>`${z.id}@${z.path}:${z.line}`).join("|"),[i]),_=ie.useRef(null),x=ie.useRef(y);x.current=y;const[N,A]=ie.useState([]),[w,U]=ie.useState([]),[G,L]=ie.useState(null),[re,H]=ie.useState(null);ie.useEffect(()=>{var I,ne;const z=_.current;if(!z)return;z.innerHTML=g,M0(z);const Q=new Map,K=[];z.querySelectorAll(".d2h-file-wrapper").forEach((oe,ve)=>{var D,q,ue,pe;const Se=(q=(D=oe.querySelector(".d2h-file-name"))==null?void 0:D.textContent)==null?void 0:q.trim(),S=Se&&m.includes(Se)?Se:m[ve];if(Se&&Q.set(Se,oe),S){Q.set(S,oe),oe.dataset.path=S;const xe=document.createElement("div");if(xe.className="file-comments",(ue=oe.querySelector(".d2h-file-header"))==null||ue.after(xe),K.push({path:S,el:xe}),b.has(S)){const me=document.createElement("button");me.type="button",me.className="btn btn-sm md-read-toggle",me.dataset.readPath=S,me.textContent="read as a document",me.title="Render this markdown instead of showing it line by line",(pe=oe.querySelector(".d2h-file-header"))==null||pe.appendChild(me)}}});const fe=[],we=new Map;for(const oe of i){if(oe.line==null)continue;const ve=Q.get(oe.path);if(!ve)continue;const Se=Array.from(ve.querySelectorAll(".d2h-diff-tbody > tr")).find(D=>{var q,ue;return((ue=(q=D.querySelector(".line-num2"))==null?void 0:q.textContent)==null?void 0:ue.trim())===String(oe.line)});if(!Se)continue;const S=hb(we.get(Se)??Se,"inline-comment-row");we.set(Se,S.tr),fe.push({id:oe.id,el:S.holder})}A(fe),U(K);const Ae=oe=>{const ve=oe.target.closest(".md-read-toggle");if(ve!=null&&ve.dataset.readPath){x.current(ve.dataset.readPath);return}const Se=oe.target.closest(".line-add");if(!Se)return;const{path:S,line:D,side:q}=Se.dataset;!S||!D||L({path:S,line:Number(D),side:q==="old"?"old":"new"})};z.addEventListener("click",Ae);const he=()=>z.removeEventListener("click",Ae);if(l)return L(null),H(null),he;for(const oe of z.querySelectorAll(".d2h-file-wrapper")){const ve=oe.dataset.path;if(ve)for(const Se of oe.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const S=ub((I=Se.querySelector(".line-num1"))==null?void 0:I.textContent,(ne=Se.querySelector(".line-num2"))==null?void 0:ne.textContent);if(!S)continue;const D=document.createElement("button");D.type="button",D.className="line-add";const q=`Say something about ${ve}:${S.line}`;D.title=q,D.setAttribute("aria-label",q),D.tabIndex=-1,D.dataset.path=ve,D.dataset.line=String(S.line),D.dataset.side=S.side,Se.appendChild(D)}}return H(null),he},[g,v,m,b,l]),ie.useEffect(()=>{const z=_.current;if(!z||!G||l){H(null);return}const Q=Array.from(z.querySelectorAll(".d2h-file-wrapper")).find(we=>we.dataset.path===G.path),K=Array.from((Q==null?void 0:Q.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(we=>{var I,ne;const Ae=we.querySelector(".d2h-code-linenumber"),he=ub((I=Ae==null?void 0:Ae.querySelector(".line-num1"))==null?void 0:I.textContent,(ne=Ae==null?void 0:Ae.querySelector(".line-num2"))==null?void 0:ne.textContent);return(he==null?void 0:he.line)===G.line&&he.side===G.side});if(!K){L(null);return}const fe=hb(K,"line-composer-row");return H(fe.holder),()=>fe.tr.remove()},[G,N,l]);const P=i.filter(z=>!N.some(Q=>Q.id===z.id)),le=w.map(z=>({...z,comments:P.filter(Q=>Q.path===z.path)})).filter(z=>z.comments.length>0),k=P.filter(z=>!w.some(Q=>Q.path===z.path));return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"diff",ref:_}),N.map(({id:z,el:Q})=>{const K=i.find(fe=>fe.id===z);return K?wu.createPortal(r(K),Q,z):null}),le.map(({path:z,el:Q,comments:K})=>wu.createPortal(f.jsx(f.Fragment,{children:K.map(r)}),Q,`file:${z}`)),G&&re&&wu.createPortal(f.jsx(Jb,{pick:G,chatBusy:u,onAdd:z=>{d(G,z),L(null)},onAsk:z=>{p(G,z),L(null)},onClose:()=>L(null)}),re,`pick-${G.path}-${G.side}-${G.line}`),k.map(z=>r(z))]})}function MT({block:s,path:i,changed:r,readOnly:l,onPick:u}){const d=ie.useMemo(()=>Jf(s.raw),[s.raw]),p=`Say something about ${i}:${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(Ze,{name:"plus"})}),f.jsx("div",{className:"md md-doc prose",dangerouslySetInnerHTML:{__html:d}})]})}function CT({path:s,doc:i,comments:r,renderComment:l,readOnly:u,chatBusy:d,onAddLineComment:p,onAskAboutLine:y,onShowDiff:g}){const[m,b]=ie.useState(null),v=ie.useMemo(()=>{const _=new Map,x=i.items.flatMap((A,w)=>A.kind==="block"?[{item:A,i:w}]:[]),N=[];for(const A of r){const w=A.line==null?void 0:x.filter(U=>U.item.from<=A.line).pop()??x[0];if(!w){N.push(A);continue}_.set(w.i,[..._.get(w.i)??[],A])}return{at:_,rest:N}},[i,r]);return f.jsxs("div",{className:"md-file",children:[f.jsxs("div",{className:"md-file-head",children:[f.jsx(Ze,{name:"file"}),f.jsx("span",{className:"md-file-name",children:s}),i.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)}),i.items.map((_,x)=>f.jsxs(ie.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(MT,{block:_,path:s,changed:_.changed&&!i.isNew,readOnly:u,onPick:()=>b({path:s,line:_.from,side:"new"})}),(v.at.get(x)??[]).map(l),_.kind==="block"&&(m==null?void 0:m.line)===_.from&&f.jsx(Jb,{pick:m,chatBusy:d,onAdd:N=>{p(m,N),b(null)},onAsk:N=>{y(m,N),b(null)},onClose:()=>b(null)})]},x))]})}function DT({patch:s,comments:i,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p}){const y=ie.useMemo(()=>s.trim()?Ja(s):[],[s]),g=ie.useMemo(()=>new Map(y.filter(A=>Wf(A.path)).map(A=>[A.path,ed(A.patch)]).filter(([,A])=>A.lines>0)),[y]),[m,b]=ie.useState({}),v=A=>{var w;return m[A]??((w=g.get(A))==null?void 0:w.isNew)??!1},_=[];for(const A of y){const w=_[_.length-1];if(g.has(A.path)&&v(A.path)){_.push({kind:"read",paths:[A.path],patch:A.patch});continue}(w==null?void 0:w.kind)==="diff"?(w.paths.push(A.path),w.patch+=`
|
|
240
|
-
${
|
|
241
|
-
`).length)}),f.jsx(Ys,{className:"comment-body",text:Vm(g,s.severity??null)})]}):f.jsx(Wi,{className:"comment-body prose",text:Vm(s.body,s.severity??null)})]})}function LT({files:s,chapterId:i,onAdd:r}){const[l,u]=ie.useState(!1),[d,p]=ie.useState(s[0]??""),[y,g]=ie.useState(""),[m,b]=ie.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:y,onChange:v=>g(v.target.value.replace(/\D/g,"")),size:12})]}),f.jsx("textarea",{placeholder:"Your comment…",value:m,onChange:v=>b(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:y?Number(y):null,body:m.trim(),chapterId:i}),b(""),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(Ze,{name:"plus"}),"add a comment of your own"]})}const zT=2e3;function UT({chapter:s,n:i,diff:r,comments:l,open:u,heavy:d,onToggle:p,onUpdateComment:y,onDeleteComment:g,onAddComment:m,onDiscuss:b,onAskAboutLine:v,chatBusy:_,readOnly:x,anchorRef:N,flash:A}){const w=ie.useMemo(()=>t_(r,s.files),[r,s.files]),U=ie.useMemo(()=>Xb(w,l),[w,l]),G=ie.useMemo(()=>new Set(Ja(w).map(P=>P.path)),[w]),L=l.filter(P=>!U.includes(P)&&!G.has(P.path)),re=l.filter(P=>U.includes(P)||G.has(P.path)),H=P=>f.jsx(Wb,{comment:P,onUpdate:le=>y(P.id,le),onDelete:()=>g(P.id),onDiscuss:b&&(()=>b({target:"comment",id:P.id})),readOnly:x,flash:A===P.id},P.id);return f.jsxs("section",{className:"chapter",ref:N,children:[f.jsxs("header",{className:"chapter-head",onClick:p,children:[f.jsx("span",{className:"faint",children:u?"▾":"▸"}),f.jsxs("h3",{children:[i," · ",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"}),b&&f.jsxs("button",{className:"btn btn-sm",onClick:P=>{P.stopPropagation(),b({target:"chapter",id:s.id})},children:[f.jsx(Ze,{name:"comment"}),"discuss"]})]}),u&&f.jsxs("div",{className:"chapter-body",children:[f.jsx(Wi,{className:"prose chapter-explanation",text:s.explanation}),L.map(H),f.jsx(DT,{patch:w,comments:re,renderComment:H,readOnly:x,chatBusy:_,onAddLineComment:(P,le)=>m({path:P.path,line:P.side==="new"?P.line:null,body:le,chapterId:s.id}),onAskAboutLine:v}),!x&&s.files.length>0&&f.jsx(LT,{files:s.files,chapterId:s.id,onAdd:m})]})]})}function BT(s,i){switch(s.kind){case"summary":return"rewrote the summary";case"verdict":return`changed the verdict to ${s.verdict.recommendation.replace("_"," ")}`;case"chapter":{const r=i.chapters.find(l=>l.id===s.chapterId);return`rewrote the "${(r==null?void 0:r.title)??s.chapterId}" chapter`}case"comment-edit":{const r=i.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=i.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 Cf(s,i){var l;if(s.target==="summary")return"the summary";if(s.target==="verdict")return"the verdict";if(s.target==="chapter")return((l=i.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=i.comments.find(u=>u.id===s.id);return r?`${r.path}:${r.line??"file"}`:"a comment"}function jT({turn:s,artifact:i}){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:Cf(r,i)},l))}),f.jsx(Wi,{className:"chat-turn-body prose",text:s.body}),s.revisions.map((r,l)=>f.jsxs("div",{className:"chat-revision",children:["↳ ",BT(r,i)]},l)),s.refused.map((r,l)=>f.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},l))]})}function IT({artifact:s,reviewKey:i,refs:r,onClearRefs:l,onDropRef:u,onArtifact:d,readOnly:p,inputRef:y,anchorRef:g}){const[m,b]=ie.useState(""),[v,_]=ie.useState(!1),[x,N]=ie.useState(null),A=s.chat??[],w=s.pendingChat??null,U=w!=null&&w.error==null,G=v||U,L=(H,P,le)=>{!H||G||(_(!0),N(null),xf(i,{message:H,refs:P}).then(k=>{d(k),le==null||le()}).catch(k=>N(String(k.message??k))).finally(()=>_(!1)))},re=()=>L(m.trim(),r,()=>{b(""),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||w)&&f.jsxs("div",{className:"chat-log",children:[A.map(H=>f.jsx(jT,{turn:H,artifact:s},H.id)),w&&f.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[f.jsx("div",{className:"chat-turn-who",children:"You"}),w.refs.length>0&&f.jsx("div",{className:"chat-refs",children:w.refs.map((H,P)=>f.jsx("span",{className:"chat-ref",children:Cf(H,s)},P))}),f.jsx(Wi,{className:"chat-turn-body prose",text:w.message}),w.error?f.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",w.error,!p&&f.jsxs(f.Fragment,{children:[" ",f.jsx("button",{className:"btn btn-sm",onClick:()=>L(w.message,w.refs),children:"ask again"})," ",f.jsx("button",{className:"btn btn-sm",onClick:()=>z_(i).then(d).catch(H=>N(String(H.message??H))),children:"dismiss"})]})]}):f.jsx("div",{className:"chat-waiting",children:w.progress.length>0?f.jsx("ol",{className:"chat-progress",children:w.progress.map((H,P)=>f.jsx("li",{className:P===w.progress.length-1?"now":void 0,children:H},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((H,P)=>f.jsxs("button",{className:"chat-ref",onClick:()=>u(P),title:"Remove",children:[Cf(H,s)," ✕"]},P))]}),f.jsx("textarea",{ref:y,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:H=>b(H.target.value),onKeyDown:H=>{H.key==="Enter"&&(H.metaKey||H.ctrlKey)&&re()}}),f.jsx(Ys,{className:"chat-turn-body",text:m}),f.jsxs("div",{className:"chat-actions",children:[f.jsxs("button",{className:"btn btn-dark",onClick:re,disabled:G||m.trim()==="",children:[f.jsx(Ze,{name:"send"}),U?"waiting for the answer…":v?"sending…":"send message",f.jsx(Va,{children:"⌘↵"})]}),f.jsx("span",{className:"grow"}),s.preChat&&f.jsx("button",{className:"btn btn-sm",disabled:G,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{_(!0),U_(i).then(d).catch(H=>N(String(H.message??H))).finally(()=>_(!1))},children:"reset the review"})]})]}),x&&f.jsx("div",{className:"error",children:x})]})]})}function HT(s){const i=ie.useRef(null),r=ie.useCallback(()=>{const l=i.current;l&&(l.style.height="auto",l.style.height=`${Math.min(l.scrollHeight+2,window.innerHeight*.7)}px`)},[]);return ie.useEffect(r,[s,r]),ie.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),i}function qT({initial:s,onSave:i,onCancel:r}){const[l,u]=ie.useState(s),[d,p]=ie.useState(!1),[y,g]=ie.useState(null),m=HT(l),b=()=>{d||(p(!0),g(null),i(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(),b()),v.key==="Escape"&&!d&&r()}}),f.jsx(Ys,{className:"body-md",text:l}),y&&f.jsx("p",{className:"error",children:y}),f.jsxs("div",{className:"card-actions",children:[f.jsxs("button",{className:"btn btn-sm",onClick:b,disabled:d,children:[d?"saving…":"save this body",f.jsx(Va,{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"})]})]})}function GT({artifact:s,reviewKey:i,event:r,sending:l,onSend:u,error:d,footer:p,next:y,onAdvance:g,onBody:m,anchorRef:b}){const[v,_]=ie.useState(null),[x,N]=ie.useState(null),[A,w]=ie.useState(s.bodyOverride!=null),[U,G]=ie.useState(!1),L=s.bodyOverride!=null;ie.useEffect(()=>{L&&w(!0)},[L]);const re=A&&!U?JSON.stringify([s.bodyOverride,s.summary,s.chapters.map(H=>[H.title,H.explanation]),s.comments.map(H=>[H.path,H.line,H.body,H.severity,H.status,H.drifted])]):"";return ie.useEffect(()=>{if(!A||U)return;let H=!1;return _(null),N(null),B_(i,r).then(P=>{H||(_(P),N(null))}).catch(P=>{H||N(String(P))}),()=>{H=!0}},[i,r,re,A,U]),s.sent?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"sent-strip",ref:b,children:[f.jsxs("strong",{children:["✔ sent as ",cb[s.sent.event]]}),f.jsxs("span",{className:"faint",children:[new Date(s.sent.at).toLocaleString()," · ",fb(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(Ze,{name:"external"})]}),f.jsxs("button",{className:"btn",onClick:g,children:[y?`next review: ${y.pr.repo}#${y.pr.number}`:"back to the queue",f.jsx(Ze,{name:"arrowRight"})]})]}),f.jsx("div",{className:"post-actions",children:p})]}):f.jsxs("div",{className:"send-panel",ref:b,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:fb(s)}),f.jsxs("button",{className:"link",onClick:()=>w(!A),disabled:U,title:U?"save or cancel the body you are writing first":void 0,children:[f.jsx(Ze,{name:"eye"}),A?"hide what gets posted":"see what gets posted"]})]}),f.jsx("div",{className:"send-action",children:f.jsxs("button",{className:`send-btn tone-bg-${TT[r]}`,disabled:l,onClick:u,children:[f.jsx(Ze,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),l?"sending…":`${cb[r]} on ${s.id}`," ",f.jsx(Va,{children:"s"})]})}),d&&f.jsx("p",{className:"error",children:d}),A&&f.jsxs(f.Fragment,{children:[x&&f.jsx("p",{className:"error",children:x}),v?U?f.jsx(qT,{initial:v.body,onSave:H=>m(H).then(()=>G(!1)),onCancel:()=>G(!1)}):f.jsxs(f.Fragment,{children:[f.jsx("pre",{className:"body-preview",children:v.body}),f.jsxs("div",{className:"body-source",children:[L?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:()=>m(null).catch(H=>N(String((H==null?void 0:H.message)??H))),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:()=>G(!0),children:[f.jsx(Ze,{name:"edit"}),L?"keep editing it":"write it yourself"]})]})]}):!x&&f.jsx("p",{className:"faint",children:"building the body…"})]}),f.jsx("div",{className:"send-footer",children:p})]})}function $T({filed:s}){var l,u,d;const i=((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"," ",i?f.jsx("a",{href:i,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"," ",i?f.jsx("a",{href:i,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 YT({entries:s,open:i,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":i,onClick:r,children:[f.jsx(Ze,{name:i?"up":"down",size:12}),i?"hide":"show"]})]}),i&&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 FT({artifact:s,freshness:i,rerunning:r,onRerun:l}){const u=s.status==="running",d=(i==null?void 0:i.prState)??s.pr.state,p=d==="CLOSED"||d==="MERGED",y=s.refresh,g=i!=null&&i.changed?y: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;return!p&&!g&&!m?null:f.jsxs("div",{className:"freshness",children:[m&&f.jsx($T,{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 KT({reviewKey:s}){var Qt,Ct,R,J;const[i,r]=ie.useState(null),[l,u]=ie.useState(null),[d,p]=ie.useState(null),[y,g]=ie.useState(null),[m,b]=ie.useState(!1),[v,_]=ie.useState([]),[x,N]=ie.useState(new Set),A=C=>N(ee=>new Set(ee).add(C)),[w,U]=ie.useState([]),G=ie.useRef(null),[L,re]=ie.useState(new Set),[H,P]=ie.useState(0),le=ie.useRef(new Map),k=ie.useRef(null),z=ie.useRef(null),Q=ie.useRef(null),K=ie.useRef(null),fe=ie.useRef(null),we=ie.useRef(null),[Ae,he]=ie.useState(!1),I=ie.useRef(null),[ne,oe]=ie.useState(!1),[ve,Se]=ie.useState(null),[S,D]=ie.useState(null);ie.useEffect(()=>{if(!S)return;const C=setTimeout(()=>D(null),1800);return()=>clearTimeout(C)},[S]);const q=C=>{var ee,de;U(Le=>Le.some(ye=>ye.target===C.target&&ye.id===C.id)?Le:[...Le,C]),(ee=G.current)==null||ee.scrollIntoView({behavior:"smooth",block:"center"}),(de=G.current)==null||de.focus()};ie.useEffect(()=>{let C=!1;return window.scrollTo({top:0}),r(null),u(null),p(null),g(null),Se(null),eg(s).then(ee=>{if(!C)return r(ee),L_(s).then(de=>{C||(p(de),de.changed&&r(de.artifact))}).catch(de=>!C&&g(String(de.message??de)))}).catch(ee=>!C&&u(String(ee))),()=>{C=!0}},[s]),ie.useEffect(()=>{$f().then(_).catch(()=>{})},[]),ie.useEffect(()=>{const C=I.current;if(!C)return;const ee=()=>document.documentElement.style.setProperty("--top-h",`${C.offsetHeight}px`);ee();const de=new ResizeObserver(ee);return de.observe(C),()=>{de.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[i==null?void 0:i.id]);const ue=(i==null?void 0:i.pendingChat)!=null&&i.pendingChat.error==null;ie.useEffect(()=>{if((i==null?void 0:i.status)!=="running"&&!ue)return;const C=setInterval(()=>{eg(s).then(ee=>{r(ee),ee.status!=="running"&&b(!1)}).catch(()=>{})},3e3);return()=>clearInterval(C)},[i==null?void 0:i.status,ue,s]);const pe=(i==null?void 0:i.sent)!=null,xe=ie.useMemo(()=>o_(v,s,x),[v,s,x]),me=xe.findIndex(C=>C.key===s),Oe=(me>0?xe[me-1]:null)??null,Ee=(me>=0&&me<xe.length-1?xe[me+1]:null)??null,He=C=>{window.location.hash=`#/r/${encodeURIComponent(C)}`},We=()=>{Ee?He(Ee.key):window.location.hash="#/"},ke=ie.useMemo(()=>{if(!i)return[];const C=l_(i.diff,i.chapters);return C.length>0?[...i.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:C}]:i.chapters},[i]),At=ie.useMemo(()=>{const C=s_((i==null?void 0:i.diff)??""),ee=new Set(Ja((i==null?void 0:i.diff)??"").filter(Le=>Wf(Le.path)&&ed(Le.patch).isNew).map(Le=>Le.path)),de=Le=>{const ye=C.get(Le)??0;return ee.has(Le)?Math.round(ye/4):ye};return new Map(ke.map(Le=>[Le.id,Le.files.reduce((ye,be)=>ye+de(be),0)]))},[i==null?void 0:i.diff,ke]),Ge=C=>{const ee=At.get(C)??0;return ee>zT?ee:null},Nn=C=>L.has(C)?Ge(C)!=null:Ge(C)==null,nt=C=>re(ee=>{const de=new Set(ee);return de.has(C)?de.delete(C):de.add(C),de});ie.useEffect(()=>re(new Set),[s]);const xn=C=>{const ee=ke[C];return ee?(P(C),Nn(ee.id)||nt(ee.id),ee):null},rn=(...C)=>{for(const ee of C)if(ee.current)return ee.current.scrollIntoView({behavior:"smooth",block:"start"})},zt=C=>{var de;const ee=xn(C);ee&&((de=le.current.get(ee.id))==null||de.scrollIntoView({behavior:"smooth",block:"start"}))},qn=(C,ee)=>{xn(C),D(ee),Vb(ee)},Jt=NT(i==null?void 0:i.verdict);ie.useEffect(()=>Se(null),[Jt]);const ca=()=>{!i||i.sent||ne||(oe(!0),Se(null),j_(s,Jt).then(C=>{r(C),A(s)}).catch(C=>Se(String(C.message??C))).finally(()=>oe(!1)))};if(ie.useEffect(()=>{const C=ee=>{OT(ee.target)||ee.metaKey||ee.ctrlKey||ee.altKey||(ee.key==="["&&Oe?He(Oe.key):ee.key==="]"&&Ee?He(Ee.key):ee.key==="n"?zt(Math.min(ke.length-1,H+1)):ee.key==="N"?zt(Math.max(0,H-1)):ee.key==="s"&&!pe&&ca())};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[Oe==null?void 0:Oe.key,Ee==null?void 0:Ee.key,ke,H,pe,Jt,i==null?void 0:i.sent,ne]),l&&!i)return f.jsx("p",{className:"error pad",children:l});if(!i)return f.jsx("p",{className:"muted pad",children:"Loading…"});const Vn=C=>{b(!0),u(null),Db(s,C).then(r).catch(ee=>{u(String(ee)),b(!1)})},Ke=C=>C.then(r).catch(ee=>u(String(ee))),Ut=C=>io(s,{status:C}).then(()=>{A(s),We()}).catch(ee=>u(String(ee))),mt=(C,ee)=>Ke(k_(s,C,ee)),bn=C=>Ke(C_(s,C)),yn=C=>Ke(M_(s,C)),kn=i.comments.filter(C=>!C.chapterId||!ke.some(ee=>ee.id===C.chapterId)),{inline:Mn,folded:Cn,dropped:Dn}=Qb(i),on=i.comments.filter(C=>C.status!=="dropped"&&C.drifted).length,St=i.verdict?db[i.verdict.recommendation]:"none",Wt=wT(i),Nt=xT(i),Gn=i.pendingChat!=null&&i.pendingChat.error==null,Ln=()=>Ke(xf(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}]})),wn=(C,ee)=>{Ke(xf(s,{message:ee,refs:[{target:"line",id:null,path:C.path,line:C.line,side:C.side}]}).then(de=>{var Le;return(Le=K.current)==null||Le.scrollIntoView({behavior:"smooth",block:"start"}),de}))},je=(Qt=i.run)!=null&&Qt.trusted?"ran the code":(Ct=i.run)!=null&&Ct.withSource?"read the full source":i.run?"read the diff only":"no run yet",cn=C=>{var ee;return f.jsxs("button",{className:`verdict-pick${((ee=i.verdict)==null?void 0:ee.recommendation)===C?` verdict-pick-on tone-${db[C]}`:""}`,title:C==="approve"?"Approve":C==="comment"?"Comment without blocking":"Request changes",onClick:()=>Ke(io(s,{verdictRecommendation:C})),children:[f.jsx(Ze,{name:AT[C]}),C.replace("_"," ")]},C)};return f.jsxs("div",{className:"review",children:[f.jsxs("div",{className:"review-top",ref:I,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:i.id}),f.jsxs("span",{className:"walk",children:[f.jsx("button",{className:"walk-btn",disabled:!Oe,title:Oe?`[ — ${Oe.id}: ${Oe.pr.title}`:"no more reviews this way",onClick:()=>Oe&&He(Oe.key),children:f.jsx(Ze,{name:"chevronLeft"})}),f.jsx("button",{className:"walk-btn",disabled:!Ee,title:Ee?`] — ${Ee.id}: ${Ee.pr.title}`:"no more reviews this way",onClick:()=>Ee&&He(Ee.key),children:f.jsx(Ze,{name:"chevronRight"})})]}),me>=0&&f.jsxs("span",{className:"faint",children:[me+1," of ",xe.length," awaiting"]}),f.jsx("span",{className:"faint crumb-next",children:Ee?`next: ${Ee.pr.title}`:me>=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(Ze,{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:i.pr.url,target:"_blank",rel:"noreferrer",children:i.pr.title}),f.jsx("span",{className:"grow"}),i.verdict&&(pe?f.jsxs("span",{className:`chip tone-${St}`,children:[i.verdict.recommendation.replace("_"," "),Nt&&` · ${Nt}`," · ",i.verdict.confidence,"%"]}):f.jsxs("button",{className:`chip chip-btn tone-${St}`,title:"change it, or send — both are at the foot of the page",onClick:()=>rn(k,fe),children:[i.verdict.recommendation.replace("_"," "),Nt&&` · ${Nt}`," · ",i.verdict.confidence,"%",f.jsx(Ze,{name:"down",size:12})]})),!pe&&i.status!=="running"&&f.jsxs("button",{className:"btn btn-sm",disabled:m,title:i.run?"Review the current head again — this draft is replaced, your own comments are kept":"Draft a review of this PR",onClick:()=>Vn(!0),children:[f.jsx(Ze,{name:"rerun"}),m?"starting…":i.run?"re-review at head":"review now"]})]}),f.jsxs("div",{className:"review-head-meta",children:[f.jsx("span",{children:i.pr.author}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[i.pr.headRefName," → ",i.pr.baseRefName,i.pr.headSha?` · ${i.pr.headSha.slice(0,7)}`:""]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[i.pr.changedFiles,"f ",f.jsxs("span",{className:"add",children:["+",i.pr.additions]})," ",f.jsxs("span",{className:"del",children:["−",i.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:je}),((R=i.run)==null?void 0:R.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:["≈$",i.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:i.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:()=>rn(z),children:"summary"}),i.verdict&&f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>rn(Q),children:"why"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var C;rn(K),(C=G.current)==null||C.focus()},children:"chat"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{he(!0),rn(we)},children:"history"})]}),ke.length>0&&f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>zt(0),children:"changes"}),ke.map((C,ee)=>f.jsxs("div",{className:"rail-group",children:[f.jsxs("button",{className:`rail-item${Nn(C.id)?" rail-item-on":""}`,onClick:()=>zt(ee),children:[f.jsxs("span",{className:"grow",children:[ee+1," · ",C.title]}),f.jsxs("span",{className:"rail-count",children:[C.files.length,"f"]})]}),i.comments.filter(de=>de.chapterId===C.id).map(de=>f.jsxs("button",{className:`rail-comment${de.status==="dropped"?" rail-comment-dropped":""}`,title:`${de.path}${de.line!=null?`:${de.line}`:""} — ${de.body}`,onClick:()=>qn(ee,de.id),children:[f.jsx("span",{className:`rail-dot tone-${RT(de,St)}`,children:"●"}),f.jsxs("span",{className:"rail-comment-loc",children:[de.path.split("/").pop(),de.line!=null?`:${de.drifted?"~":""}${de.line}`:""]})]},de.id))]},C.id))]}),f.jsx("button",{className:`lab rail-lab-btn${ke.length>0?" rail-lab":""}`,onClick:()=>rn(k,fe),children:"verdict"}),f.jsxs("div",{className:"rail-facts",children:[f.jsxs("div",{children:[i.comments.length-Dn.length," keeping · ",Dn.length," dropped"]}),f.jsxs("div",{children:[Mn.length," inline · ",Cn.length," folded into body"]}),on>0&&f.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[on," drifted"]})]})]}),f.jsxs("div",{className:"main",children:[f.jsx(FT,{artifact:i,freshness:d,rerunning:m,onRerun:Vn}),y&&f.jsxs("div",{className:"freshness",title:y,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}),((J=i.run)==null?void 0:J.error)&&f.jsxs("div",{className:"error",children:["Run failed: ",i.run.error]}),f.jsx("div",{className:"card card-summary",ref:z,children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"lab",children:"summary"}),f.jsx(Wi,{className:"prose lead",text:i.summary||"(no summary)"}),!pe&&f.jsxs("button",{className:"btn btn-sm",onClick:()=>q({target:"summary",id:null}),children:[f.jsx(Ze,{name:"comment"}),"discuss the summary"]})]})}),i.verdict&&f.jsx("div",{className:`card card-why tone-border-${St}`,ref:Q,children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"lab",children:"why"}),f.jsxs("div",{className:"sev-counts",children:[Sf(i)&&f.jsx("span",{title:"Live findings by grade. Only blockers block.",children:Sf(i)}),Sf(i)&&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:[i.verdict.confidence,"% sure of the findings"]})]}),f.jsx(Wi,{className:"prose lead",text:i.verdict.reasoning}),!pe&&f.jsxs("button",{className:"btn btn-sm",onClick:()=>q({target:"verdict",id:null}),children:[f.jsx(Ze,{name:"comment"}),"discuss the verdict"]})]})}),ke.map((C,ee)=>f.jsx(UT,{chapter:C,n:ee+1,diff:i.diff,comments:i.comments.filter(de=>de.chapterId===C.id),open:Nn(C.id),heavy:Ge(C.id),onToggle:()=>nt(C.id),onUpdateComment:mt,onDeleteComment:bn,onAddComment:yn,onDiscuss:pe?void 0:q,onAskAboutLine:wn,chatBusy:Gn,readOnly:pe,flash:S,anchorRef:de=>{de?le.current.set(C.id,de):le.current.delete(C.id)}},C.id)),kn.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:kn.map(C=>f.jsx(Wb,{comment:C,onUpdate:ee=>mt(C.id,ee),onDelete:()=>bn(C.id),onDiscuss:pe?void 0:()=>q({target:"comment",id:C.id}),readOnly:pe},C.id))})]}),f.jsx(YT,{entries:i.history??[],open:Ae,onToggle:()=>he(C=>!C),anchorRef:we})]}),f.jsxs("aside",{className:"cockpit",children:[f.jsx(IT,{artifact:i,reviewKey:s,refs:w,onClearRefs:()=>U([]),onDropRef:C=>U(ee=>ee.filter((de,Le)=>Le!==C)),onArtifact:r,readOnly:pe,inputRef:G,anchorRef:K}),f.jsxs("div",{className:"cockpit-decide",children:[!pe&&Wt&&f.jsxs("div",{className:"verdict-hint",children:[f.jsxs("span",{children:[f.jsx("strong",{children:Wt})," — the verdict was written before those edits."]}),f.jsxs("button",{className:"btn btn-sm",onClick:Ln,disabled:Gn,children:[f.jsx(Ze,{name:"comment"}),Gn?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),i.verdict&&!pe&&f.jsxs("div",{className:"verdict-bar",ref:k,children:[f.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(cn)]}),f.jsx(GT,{artifact:i,reviewKey:s,event:Jt,sending:ne,onSend:ca,error:ve,next:Ee,onAdvance:We,onBody:C=>io(s,{bodyOverride:C}).then(r),anchorRef:fe,footer:f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"faint",children:"not sending?"}),!pe&&f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:"btn btn-sm",title:Ee?`Settle it locally and go to ${Ee.id}`:"Settle it locally and go back to the queue",onClick:()=>Ut("reviewed"),children:[f.jsx(Ze,{name:"check"}),"mark reviewed"]}),f.jsxs("button",{className:"btn btn-sm",title:Ee?`Leave it and go to ${Ee.id}`:"Leave it and go back to the queue",onClick:()=>Ut("skipped"),children:[f.jsx(Ze,{name:"skip"}),"skip"]})]}),f.jsxs("a",{className:"btn btn-sm",href:I_(s),children:[f.jsx(Ze,{name:"download"}),"export .md"]})]})})]})]})]})]})}const pb="cerber.notify.seen.v2",PT="cerber.notify.seen",Df="cerber.notify",ZT=1e4,Is=s=>s.status==="ready",Lf=s=>{try{return localStorage.getItem(s)}catch{return null}},zf=(s,i)=>{try{localStorage.setItem(s,i)}catch{}};function XT(s,i){return s?!!(s.enabled&&s.pollEnabled&&s.autoReview):i}function ey(s,i){return s.announceable===!1||s.status==="running"?!1:s.status==="awaiting"?!i:!0}const ty=":draft",lo=s=>`${s.key}${ty}`,ny=s=>Is(s)?lo(s):s.key;function QT(s,i,r){const l=new Set(i);return qs(s).filter(u=>ey(u,r)&&!l.has(ny(u)))}function VT(s,i,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)&&!ey(p,i)){for(const y of[p.key,lo(p)])l.has(y)&&d.push(y);continue}d.push(p.key),(Is(p)||!u.has(p.key)||l.has(lo(p)))&&d.push(lo(p))}return d}const Tf=s=>`${s.pr.repo}#${s.pr.number}`,JT={approve:"approves",comment:"comments",request_changes:"requests changes"};function WT(s){const i=s.verdict?JT[s.verdict.recommendation]:"drafted",r=s.blockerCount??0;return r===0?i:`${i} · ${r} blocker${r===1?"":"s"}`}function eN(s){if(s.length===0)return null;const i=`cerber:${s.map(ny).sort().join("|")}`;if(s.length===1){const u=s[0];return{title:Is(u)?`${Tf(u)} draft ready`:`${Tf(u)} awaits your review`,body:Is(u)?`${WT(u)} — ${u.pr.title}`:`${u.pr.title} — ${u.pr.author}`,tag:i,key:u.key}}const r=s.slice(0,3).map(Tf),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:i,key:null}}const tN=new Set(["127.0.0.1","localhost","::1","[::1]"]);function nN(s,i=window.location.hostname){return!(s!=null&&s.enabled)||!s.notify?!1:tN.has(i)}function Hl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":Lf(Df)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function aN(){const s=Hl();if(s==="unsupported"||s==="blocked")return s;if(s==="on")return zf(Df,"off"),Hl();if(zf(Df,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return Hl()}function iN(s){const i=new Notification(s.title,{body:s.body,tag:s.tag,icon:"/favicon.svg"});i.onclick=()=>{window.focus(),window.location.hash=s.key?`#/r/${encodeURIComponent(s.key)}`:"#/",i.close()}}function lN(s,i){const r=s??i;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}${ty}`])}function sN(){const s=ie.useRef(null),i=ie.useRef(!0),[r,l]=ie.useState(!1);return ie.useEffect(()=>{let u=!0;s.current=lN(Lf(pb),Lf(PT));const d=()=>Promise.all([$f(),Cb().catch(()=>null)]).then(([y,g])=>{if(!u)return;const m=nN(g);l(m),i.current=XT(g,i.current);const b=i.current,v=s.current;if(s.current=VT(y,b,v??[]),zf(pb,JSON.stringify(s.current)),!v||Hl()!=="on"||m||document.visibilityState==="visible"&&document.hasFocus())return;const _=eN(QT(y,v,b));_&&iN(_)}).catch(()=>{});d();const p=setInterval(d,ZT);return()=>{u=!1,clearInterval(p)}},[]),r}function ay(){const[s,i]=ie.useState(Hl);return ie.useEffect(()=>{const r=()=>i(Hl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[s,()=>void aN().then(i)]}const so=s=>{window.location.hash=`#/r/${encodeURIComponent(s)}`};function rN(s){const i=s,r=i==null?void 0:i.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(i==null?void 0:i.isContentEditable)===!0}function oN({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(Ze,{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 cN({r:s,selected:i,onSelect:r,onOpen:l,awaiting:u}){const d=S_(s),p=h_(s),y=u?v_(s,u):null;return f.jsxs("div",{className:`row${i?" 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"}),y&&f.jsx("span",{className:"tag tag-awaiting",title:y.title,children:y.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:Mb(s.updatedAt)})]})}function mb({autoFocus:s}){const[i,r]=ie.useState(""),[l,u]=ie.useState(!1),[d,p]=ie.useState(null),y=g=>{g.preventDefault();const m=i.trim();!m||l||(u(!0),p(null),D_(m).then(b=>so(b.key)).catch(b=>{p(String(b instanceof Error?b.message:b)),u(!1)}))};return f.jsxs("form",{className:"pull",onSubmit:y,children:[f.jsx(Ze,{name:"plus"}),f.jsx("input",{className:"pull-input",value:i,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"}),i.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 uN({text:s}){const i=ie.useRef(null),[r,l]=ie.useState(!1);return ie.useLayoutEffect(()=>{const u=i.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:i,className:`strip-prose${r?" strip-prose-clipped":""}`,children:f.jsx(Wi,{className:"prose",text:s})})}function fN(){var Q;const[s,i]=ie.useState(null),[r,l]=ie.useState(null),[u,d]=ie.useState(null),[p,y]=ie.useState(new Set),[g,m]=ie.useState("inbox"),[b,v]=ie.useState(null),_=ie.useRef(!0);ie.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const x=()=>{$f().then(K=>_.current&&i(K)).catch(K=>_.current&&d(String(K))),Cb().then(K=>_.current&&l(K)).catch(()=>{})};ie.useEffect(()=>{x();const K=setInterval(x,1e4);return()=>clearInterval(K)},[]);const N=s??[],A=ie.useMemo(()=>f_(N,r),[N,r]),w=A.requests,U=d_(g,A),G=A[U];ie.useEffect(()=>{U!==g&&m(U)},[U,g]);const L=G.find(K=>K.key===b)??G[0]??null,re=K=>{y(fe=>new Set(fe).add(K)),Db(K).then(()=>x()).catch(fe=>_.current&&d(String(fe))).finally(()=>{_.current&&y(fe=>{const we=new Set(fe);return we.delete(K),we})})};if(ie.useEffect(()=>{const K=fe=>{if(rN(fe.target)||fe.metaKey||fe.ctrlKey||fe.altKey)return;const we=G.findIndex(he=>he.key===(L==null?void 0:L.key)),Ae=he=>{const I=G[Math.min(G.length-1,Math.max(0,we+he))];I&&v(I.key)};fe.key==="j"||fe.key==="ArrowDown"?(fe.preventDefault(),Ae(1)):fe.key==="k"||fe.key==="ArrowUp"?(fe.preventDefault(),Ae(-1)):fe.key==="Enter"&&L?so(L.key):fe.key==="r"&&L&&L.status!=="sent"&&L.status!=="running"&&re(L.key)};return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[G,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 H=G.reduce((K,fe)=>K+(fe.costUsd??0),0),P=L?N_(L,r):null,le=L?p.has(L.key):!1,k=Nf.filter(K=>A[K].length>0),z=K=>f.jsxs("button",{className:`tab${U===K?" tab-on":""}${Nf.includes(K)?" tab-filed":""}${K==="requests"?" tab-requests":""}`,title:Au[K].title,onClick:()=>m(K),children:[Au[K].label," ",f.jsx("span",{className:"tab-count",children:A[K].length})]},K);return f.jsxs(f.Fragment,{children:[f.jsx(oN,{daemon:r}),u&&f.jsx("div",{className:"wrap",children:f.jsx("p",{className:"error",children:u})}),N.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(mb,{autoFocus:!0})]})}):f.jsxs("div",{className:"wrap",children:[f.jsxs("div",{className:"tabs",children:[r_.map(z),k.length>0&&f.jsx("span",{className:"tab-split","aria-hidden":"true"}),k.map(z),f.jsx("span",{className:"grow"}),f.jsx(mb,{}),H>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:["≈$",H.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"})]}),G.length===0?f.jsx("div",{className:"empty-tab",children:U==="inbox"&&w.length>0?f.jsxs(f.Fragment,{children:[f.jsx("p",{children:E_(w)}),f.jsxs("button",{className:"btn",onClick:()=>m("requests"),children:[f.jsx(Ze,{name:"arrowRight"}),"show ",w.length===1?"it":`all ${w.length}`]})]}):f.jsx("p",{className:"muted",children:U==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${Au[U].label} right now.`})}):G.map(K=>f.jsx(cN,{r:K,selected:K.key===(L==null?void 0:L.key),onSelect:()=>v(K.key),onOpen:()=>so(K.key),awaiting:u_(K,w)?p_(K,r):null},K.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(uN,{text:P.reasoning}),f.jsxs("div",{className:"cursor-strip-meta",children:[P.meta.join(" · "),((Q=L.sent)==null?void 0:Q.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:()=>so(L.key),children:[f.jsx(Ze,{name:"arrowRight"}),"open review ",f.jsx(Va,{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(x).catch(K=>d(String(K))),children:[f.jsx(Ze,{name:"skip"}),"skip"]}),f.jsxs("button",{className:"btn",disabled:le||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:()=>re(L.key),children:[f.jsx(Ze,{name:"rerun"}),le?"starting…":L.status==="awaiting"||L.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const dN=[{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"}],gb=s=>s instanceof Error?s.message:String(s),hN={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"};function pN({daemonAnnounces:s}){const[i,r]=ay(),[l,u]=ie.useState(null),[d,p]=ie.useState(""),[y,g]=ie.useState(null),[m,b]=ie.useState(!1);ie.useEffect(()=>{H_().then(u).catch(_=>g(gb(_)))},[]);const v=_=>{b(!0),g(null),_.then(u).catch(x=>g(gb(x))).finally(()=>b(!1))};return y&&!l?f.jsx("p",{className:"error",children:y}):l?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:l.daemon.poll,disabled:m,onChange:_=>v(ku({poll:_.target.checked}))})," ","poll GitHub for PRs awaiting my review (every ",l.daemon.intervalMinutes,"m)"]}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:l.daemon.autoReview,disabled:m||!l.daemon.poll,onChange:_=>v(ku({autoReview:_.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:l.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:l.daemon.notify,disabled:m||!l.daemon.poll,onChange:_=>v(ku({notify:_.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:i==="on",disabled:i==="unsupported"||i==="blocked"||s,onChange:r})," ",s?"let this browser announce them instead":hN[i]]}),f.jsx("p",{className:"muted",children:s?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:l.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",{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:l.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:d,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:m,onChange:_=>p(_.target.value),onKeyDown:_=>{_.key==="Enter"&&!m&&d.trim()&&(v(Ou(d.trim())),p(""))}}),f.jsx("button",{className:"btn",disabled:m||!d.trim(),onClick:()=>{v(Ou(d.trim())),p("")},children:"trust"})]}),y&&f.jsx("p",{className:"error",children:y}),l.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:l.trust.map(_=>f.jsxs("tr",{className:_.denies?"trust-deny":void 0,children:[f.jsx("td",{children:f.jsx("code",{children:_.rule})}),f.jsx("td",{className:"muted",children:_.explanation}),f.jsx("td",{className:"trust-actions",children:f.jsx("button",{className:"btn",disabled:m,onClick:()=>v(Ou(_.rule,!0)),children:"remove"})})]},_.rule))})}),f.jsx("h2",{children:"Rule syntax"}),f.jsx("table",{className:"trust-table",children:f.jsx("tbody",{children:dN.map(_=>f.jsxs("tr",{children:[f.jsx("td",{children:f.jsx("code",{children:_.rule})}),f.jsx("td",{className:"muted",children:_.meaning})]},_.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."]})]}):f.jsx("p",{className:"muted",children:"Loading…"})}function bb(){const s=window.location.hash,i=s.match(/^#\/r\/(.+)$/);return i?{view:"detail",key:decodeURIComponent(i[1])}:s==="#/settings"?{view:"settings"}:{view:"queue"}}const yb={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."},vb="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 mN({daemonAnnounces:s}){const[i,r]=ay();return s?f.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:vb,"aria-label":vb,children:f.jsx(Ze,{name:"bell",size:15})}):i==="unsupported"?null:f.jsx("button",{className:`topbar-link bell bell-${i}`,title:yb[i],"aria-label":yb[i],"aria-pressed":i==="on",onClick:r,children:f.jsx(Ze,{name:i==="on"?"bell":"bellOff",size:15})})}function gN(){const[s,i]=ie.useState(bb()),r=sN();return ie.useEffect(()=>{const l=()=>i(bb());return window.addEventListener("hashchange",l),()=>window.removeEventListener("hashchange",l)},[]),s.view==="detail"?f.jsx("div",{className:"app",children:f.jsx(KT,{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(H0,{}),"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(Va,{children:"j"}),f.jsx(Va,{children:"k"}),"move"]}),f.jsxs("span",{className:"hint",children:[f.jsx(Va,{children:"↵"}),"open"]}),f.jsxs("span",{className:"hint",children:[f.jsx(Va,{children:"r"}),"review now"]})]}),f.jsx(mN,{daemonAnnounces:r}),f.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:f.jsx(Ze,{name:"settings",size:15})})]})}),s.view==="queue"?f.jsx(fN,{}):f.jsx(pN,{daemonAnnounces:r})]})}bE.createRoot(document.getElementById("root")).render(f.jsx(fE.StrictMode,{children:f.jsx(gN,{})}));
|
|
239
|
+
`;let m=p;for(const b of ft.lexer(g)){const v=b.raw,_=v.trimEnd();if(_===""){m+=no(v);continue}const x=v.length-v.trimStart().length,T=m+no(v.slice(0,x)),w=T+no(_.slice(x));let A=!1;for(let U=T;U<=w&&!A;U++)A=y.has(U);l.push({kind:"block",raw:_.slice(x),from:T,to:w,changed:A}),m+=no(v)}u=[]};for(const p of i){const y=u[u.length-1];if(y&&p.n!==y.n+1){const g=p.n-y.n-1;d(),l.push({kind:"gap",lines:g})}u.push(p)}return d(),{items:l,isNew:r,lines:i.length}}const ub={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},NT={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function xT(s){return(s==null?void 0:s.recommendation)==="approve"?"APPROVE":(s==null?void 0:s.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function Qb(s,i){const r=l_(s);return i.filter(l=>{var u;return!l.drifted&&l.line!=null&&((u=r.get(l.path))==null?void 0:u.has(l.line))})}function fb(s,i){const r=d=>{const p=Number((d??"").trim());return Number.isInteger(p)&&p>0?p:null},l=r(i);if(l!=null)return{line:l,side:"new"};const u=r(s);return u!=null?{line:u,side:"old"}:null}function Vb(s){const i=s.comments.filter(u=>u.status==="dropped"),r=s.comments.filter(u=>u.status!=="dropped"),l=Qb(s.diff,r);return{inline:l,folded:r.filter(u=>!l.includes(u)),dropped:i}}function Sf(s){const i=s.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:i.filter(d=>d.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:d})=>`${Ob[u]} ${d} ${u}${d===1?"":"s"}`).join(" · ")}function wT(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 db(s){const{inline:i,folded:r}=Vb(s);if(s.bodyOverride!=null)return`${i.length===0?"no inline comments":`${i.length} inline`} · body you wrote`;if(i.length===0&&r.length===0)return"no inline comments · body only";const l=[`${i.length} inline`];return r.length>0&&l.push(`${r.length} folded into the body`),l.join(" · ")}const hb={approve:"approve",comment:"comment",request_changes:"changes"},RT={approve:"approve",comment:"comment",request_changes:"changes"};function OT(s,i){return s.status==="dropped"?"none":s.drifted?"comment":s.origin==="user"?"awaiting":i}function Jb(s,i=20){const r=document.getElementById(`c-${s}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}i>0&&requestAnimationFrame(()=>Jb(s,i-1))}function kT(s){const i=s,r=i==null?void 0:i.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(i==null?void 0:i.isContentEditable)===!0}function pb(s,i){const r=document.createElement("tr");r.className=i;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 Wb({pick:s,chatBusy:i,onAdd:r,onAsk:l,onClose:u}){const[d,p]=ae.useState(""),y=ae.useRef(null);ae.useEffect(()=>{var m;return(m=y.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:y,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(Ze,{name:"plus"}),"add comment",f.jsx(Va,{children:"⌘↵"})]}),f.jsxs("button",{className:"btn btn-accent",disabled:!g||i,title:i?"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(Ze,{name:"comment"}),"ask the reviewer"]}),f.jsx("span",{className:"grow"}),f.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function MT({patch:s,comments:i,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onRead:y}){const g=ae.useMemo(()=>s.trim()?t_(s,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[s]),m=ae.useMemo(()=>Ja(s).map(z=>z.path),[s]),b=ae.useMemo(()=>new Set(Ja(s).filter(z=>ed(z.path)&&td(z.patch).lines>0).map(z=>z.path)),[s]),v=ae.useMemo(()=>i.map(z=>`${z.id}@${z.path}:${z.line}`).join("|"),[i]),_=ae.useRef(null),x=ae.useRef(y);x.current=y;const[T,w]=ae.useState([]),[A,U]=ae.useState([]),[G,L]=ae.useState(null),[re,H]=ae.useState(null);ae.useEffect(()=>{var I,ne;const z=_.current;if(!z)return;z.innerHTML=g,C0(z);const Q=new Map,K=[];z.querySelectorAll(".d2h-file-wrapper").forEach((oe,ve)=>{var D,q,ue,pe;const Se=(q=(D=oe.querySelector(".d2h-file-name"))==null?void 0:D.textContent)==null?void 0:q.trim(),S=Se&&m.includes(Se)?Se:m[ve];if(Se&&Q.set(Se,oe),S){Q.set(S,oe),oe.dataset.path=S;const xe=document.createElement("div");if(xe.className="file-comments",(ue=oe.querySelector(".d2h-file-header"))==null||ue.after(xe),K.push({path:S,el:xe}),b.has(S)){const me=document.createElement("button");me.type="button",me.className="btn btn-sm md-read-toggle",me.dataset.readPath=S,me.textContent="read as a document",me.title="Render this markdown instead of showing it line by line",(pe=oe.querySelector(".d2h-file-header"))==null||pe.appendChild(me)}}});const fe=[],we=new Map;for(const oe of i){if(oe.line==null)continue;const ve=Q.get(oe.path);if(!ve)continue;const Se=Array.from(ve.querySelectorAll(".d2h-diff-tbody > tr")).find(D=>{var q,ue;return((ue=(q=D.querySelector(".line-num2"))==null?void 0:q.textContent)==null?void 0:ue.trim())===String(oe.line)});if(!Se)continue;const S=pb(we.get(Se)??Se,"inline-comment-row");we.set(Se,S.tr),fe.push({id:oe.id,el:S.holder})}w(fe),U(K);const Ae=oe=>{const ve=oe.target.closest(".md-read-toggle");if(ve!=null&&ve.dataset.readPath){x.current(ve.dataset.readPath);return}const Se=oe.target.closest(".line-add");if(!Se)return;const{path:S,line:D,side:q}=Se.dataset;!S||!D||L({path:S,line:Number(D),side:q==="old"?"old":"new"})};z.addEventListener("click",Ae);const he=()=>z.removeEventListener("click",Ae);if(l)return L(null),H(null),he;for(const oe of z.querySelectorAll(".d2h-file-wrapper")){const ve=oe.dataset.path;if(ve)for(const Se of oe.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const S=fb((I=Se.querySelector(".line-num1"))==null?void 0:I.textContent,(ne=Se.querySelector(".line-num2"))==null?void 0:ne.textContent);if(!S)continue;const D=document.createElement("button");D.type="button",D.className="line-add";const q=`Say something about ${ve}:${S.line}`;D.title=q,D.setAttribute("aria-label",q),D.tabIndex=-1,D.dataset.path=ve,D.dataset.line=String(S.line),D.dataset.side=S.side,Se.appendChild(D)}}return H(null),he},[g,v,m,b,l]),ae.useEffect(()=>{const z=_.current;if(!z||!G||l){H(null);return}const Q=Array.from(z.querySelectorAll(".d2h-file-wrapper")).find(we=>we.dataset.path===G.path),K=Array.from((Q==null?void 0:Q.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(we=>{var I,ne;const Ae=we.querySelector(".d2h-code-linenumber"),he=fb((I=Ae==null?void 0:Ae.querySelector(".line-num1"))==null?void 0:I.textContent,(ne=Ae==null?void 0:Ae.querySelector(".line-num2"))==null?void 0:ne.textContent);return(he==null?void 0:he.line)===G.line&&he.side===G.side});if(!K){L(null);return}const fe=pb(K,"line-composer-row");return H(fe.holder),()=>fe.tr.remove()},[G,T,l]);const P=i.filter(z=>!T.some(Q=>Q.id===z.id)),le=A.map(z=>({...z,comments:P.filter(Q=>Q.path===z.path)})).filter(z=>z.comments.length>0),k=P.filter(z=>!A.some(Q=>Q.path===z.path));return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"diff",ref:_}),T.map(({id:z,el:Q})=>{const K=i.find(fe=>fe.id===z);return K?wu.createPortal(r(K),Q,z):null}),le.map(({path:z,el:Q,comments:K})=>wu.createPortal(f.jsx(f.Fragment,{children:K.map(r)}),Q,`file:${z}`)),G&&re&&wu.createPortal(f.jsx(Wb,{pick:G,chatBusy:u,onAdd:z=>{d(G,z),L(null)},onAsk:z=>{p(G,z),L(null)},onClose:()=>L(null)}),re,`pick-${G.path}-${G.side}-${G.line}`),k.map(z=>r(z))]})}function CT({block:s,path:i,changed:r,readOnly:l,onPick:u}){const d=ae.useMemo(()=>Wf(s.raw),[s.raw]),p=`Say something about ${i}:${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(Ze,{name:"plus"})}),f.jsx("div",{className:"md md-doc prose",dangerouslySetInnerHTML:{__html:d}})]})}function DT({path:s,doc:i,comments:r,renderComment:l,readOnly:u,chatBusy:d,onAddLineComment:p,onAskAboutLine:y,onShowDiff:g}){const[m,b]=ae.useState(null),v=ae.useMemo(()=>{const _=new Map,x=i.items.flatMap((w,A)=>w.kind==="block"?[{item:w,i:A}]:[]),T=[];for(const w of r){const A=w.line==null?void 0:x.filter(U=>U.item.from<=w.line).pop()??x[0];if(!A){T.push(w);continue}_.set(A.i,[..._.get(A.i)??[],w])}return{at:_,rest:T}},[i,r]);return f.jsxs("div",{className:"md-file",children:[f.jsxs("div",{className:"md-file-head",children:[f.jsx(Ze,{name:"file"}),f.jsx("span",{className:"md-file-name",children:s}),i.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)}),i.items.map((_,x)=>f.jsxs(ae.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&&!i.isNew,readOnly:u,onPick:()=>b({path:s,line:_.from,side:"new"})}),(v.at.get(x)??[]).map(l),_.kind==="block"&&(m==null?void 0:m.line)===_.from&&f.jsx(Wb,{pick:m,chatBusy:d,onAdd:T=>{p(m,T),b(null)},onAsk:T=>{y(m,T),b(null)},onClose:()=>b(null)})]},x))]})}function LT({patch:s,comments:i,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p}){const y=ae.useMemo(()=>s.trim()?Ja(s):[],[s]),g=ae.useMemo(()=>new Map(y.filter(w=>ed(w.path)).map(w=>[w.path,td(w.patch)]).filter(([,w])=>w.lines>0)),[y]),[m,b]=ae.useState({}),v=w=>{var A;return m[w]??((A=g.get(w))==null?void 0:A.isNew)??!1},_=[];for(const w of y){const A=_[_.length-1];if(g.has(w.path)&&v(w.path)){_.push({kind:"read",paths:[w.path],patch:w.patch});continue}(A==null?void 0:A.kind)==="diff"?(A.paths.push(w.path),A.patch+=`
|
|
240
|
+
${w.patch}`):_.push({kind:"diff",paths:[w.path],patch:w.patch})}if(y.length===0)return f.jsx("p",{className:"muted",children:"No diff for this chapter."});const x=new Set(y.map(w=>w.path)),T=w=>i.filter(A=>w(A.path));return f.jsxs(f.Fragment,{children:[_.map(w=>{const A=new Set(w.paths);if(w.kind==="read"){const U=w.paths[0];return f.jsx(DT,{path:U,doc:g.get(U),comments:T(G=>G===U),renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onShowDiff:()=>b(G=>({...G,[U]:!1}))},`read:${U}`)}return f.jsx(MT,{patch:w.patch,comments:T(U=>A.has(U)),renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onRead:U=>b(G=>({...G,[U]:!0}))},`diff:${w.paths[0]}`)}),T(w=>!x.has(w)).map(r)]})}function ey({comment:s,onUpdate:i,onDelete:r,onDiscuss:l,readOnly:u,flash:d}){const[p,y]=ae.useState(!1),[g,m]=ae.useState(s.body),b=s.status==="approved",v=s.status==="dropped",_=s.origin==="user"?"yours":v?"dropped":b?"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:()=>{i({body:g}),y(!1)},children:"save"}),f.jsx("button",{className:"btn btn-sm",onClick:()=>{m(s.body),y(!1)},children:"cancel"})]}):f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:`btn btn-sm${b?" btn-keep-on":""}`,title:"Keep this comment — it posts with the review",onClick:()=>i({status:b?"draft":"approved"}),children:[f.jsx(Ze,{name:"check"}),"keep"]}),f.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>y(!0),children:[f.jsx(Ze,{name:"edit"}),"edit"]}),f.jsxs("button",{className:`btn btn-sm${v?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>i({status:v?"draft":"dropped"}),children:[f.jsx(Ze,{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(Ze,{name:"comment"}),"discuss"]}),s.origin==="user"&&f.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),p?f.jsxs(f.Fragment,{children:[f.jsx("textarea",{className:"comment-edit",value:g,onChange:x=>m(x.target.value),rows:Math.max(3,g.split(`
|
|
241
|
+
`).length)}),f.jsx(Ys,{className:"comment-body",text:Jm(g,s.severity??null)})]}):f.jsx(Wi,{className:"comment-body prose",text:Jm(s.body,s.severity??null)})]})}function zT({files:s,chapterId:i,onAdd:r}){const[l,u]=ae.useState(!1),[d,p]=ae.useState(s[0]??""),[y,g]=ae.useState(""),[m,b]=ae.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:y,onChange:v=>g(v.target.value.replace(/\D/g,"")),size:12})]}),f.jsx("textarea",{placeholder:"Your comment…",value:m,onChange:v=>b(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:y?Number(y):null,body:m.trim(),chapterId:i}),b(""),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(Ze,{name:"plus"}),"add a comment of your own"]})}const UT=2e3;function BT({chapter:s,n:i,diff:r,comments:l,open:u,heavy:d,onToggle:p,onUpdateComment:y,onDeleteComment:g,onAddComment:m,onDiscuss:b,onAskAboutLine:v,chatBusy:_,readOnly:x,anchorRef:T,flash:w}){const A=ae.useMemo(()=>n_(r,s.files),[r,s.files]),U=ae.useMemo(()=>Qb(A,l),[A,l]),G=ae.useMemo(()=>new Set(Ja(A).map(P=>P.path)),[A]),L=l.filter(P=>!U.includes(P)&&!G.has(P.path)),re=l.filter(P=>U.includes(P)||G.has(P.path)),H=P=>f.jsx(ey,{comment:P,onUpdate:le=>y(P.id,le),onDelete:()=>g(P.id),onDiscuss:b&&(()=>b({target:"comment",id:P.id})),readOnly:x,flash:w===P.id},P.id);return f.jsxs("section",{className:"chapter",ref:T,children:[f.jsxs("header",{className:"chapter-head",onClick:p,children:[f.jsx("span",{className:"faint",children:u?"▾":"▸"}),f.jsxs("h3",{children:[i," · ",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"}),b&&f.jsxs("button",{className:"btn btn-sm",onClick:P=>{P.stopPropagation(),b({target:"chapter",id:s.id})},children:[f.jsx(Ze,{name:"comment"}),"discuss"]})]}),u&&f.jsxs("div",{className:"chapter-body",children:[f.jsx(Wi,{className:"prose chapter-explanation",text:s.explanation}),L.map(H),f.jsx(LT,{patch:A,comments:re,renderComment:H,readOnly:x,chatBusy:_,onAddLineComment:(P,le)=>m({path:P.path,line:P.side==="new"?P.line:null,body:le,chapterId:s.id}),onAskAboutLine:v}),!x&&s.files.length>0&&f.jsx(zT,{files:s.files,chapterId:s.id,onAdd:m})]})]})}function jT(s,i){switch(s.kind){case"summary":return"rewrote the summary";case"verdict":return`changed the verdict to ${s.verdict.recommendation.replace("_"," ")}`;case"chapter":{const r=i.chapters.find(l=>l.id===s.chapterId);return`rewrote the "${(r==null?void 0:r.title)??s.chapterId}" chapter`}case"comment-edit":{const r=i.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=i.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 Cf(s,i){var l;if(s.target==="summary")return"the summary";if(s.target==="verdict")return"the verdict";if(s.target==="chapter")return((l=i.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=i.comments.find(u=>u.id===s.id);return r?`${r.path}:${r.line??"file"}`:"a comment"}function IT({turn:s,artifact:i}){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:Cf(r,i)},l))}),f.jsx(Wi,{className:"chat-turn-body prose",text:s.body}),s.revisions.map((r,l)=>f.jsxs("div",{className:"chat-revision",children:["↳ ",jT(r,i)]},l)),s.refused.map((r,l)=>f.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},l))]})}function HT({artifact:s,reviewKey:i,refs:r,onClearRefs:l,onDropRef:u,onArtifact:d,readOnly:p,inputRef:y,anchorRef:g}){const[m,b]=ae.useState(""),[v,_]=ae.useState(!1),[x,T]=ae.useState(null),w=s.chat??[],A=s.pendingChat??null,U=A!=null&&A.error==null,G=v||U,L=(H,P,le)=>{!H||G||(_(!0),T(null),xf(i,{message:H,refs:P}).then(k=>{d(k),le==null||le()}).catch(k=>T(String(k.message??k))).finally(()=>_(!1)))},re=()=>L(m.trim(),r,()=>{b(""),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:[(w.length>0||A)&&f.jsxs("div",{className:"chat-log",children:[w.map(H=>f.jsx(IT,{turn:H,artifact:s},H.id)),A&&f.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[f.jsx("div",{className:"chat-turn-who",children:"You"}),A.refs.length>0&&f.jsx("div",{className:"chat-refs",children:A.refs.map((H,P)=>f.jsx("span",{className:"chat-ref",children:Cf(H,s)},P))}),f.jsx(Wi,{className:"chat-turn-body prose",text:A.message}),A.error?f.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",A.error,!p&&f.jsxs(f.Fragment,{children:[" ",f.jsx("button",{className:"btn btn-sm",onClick:()=>L(A.message,A.refs),children:"ask again"})," ",f.jsx("button",{className:"btn btn-sm",onClick:()=>U_(i).then(d).catch(H=>T(String(H.message??H))),children:"dismiss"})]})]}):f.jsx("div",{className:"chat-waiting",children:A.progress.length>0?f.jsx("ol",{className:"chat-progress",children:A.progress.map((H,P)=>f.jsx("li",{className:P===A.progress.length-1?"now":void 0,children:H},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((H,P)=>f.jsxs("button",{className:"chat-ref",onClick:()=>u(P),title:"Remove",children:[Cf(H,s)," ✕"]},P))]}),f.jsx("textarea",{ref:y,className:"chat-input",rows:2,value:m,disabled:v,placeholder:w.length===0?"the summary restates the author's claims — say what you actually verified":"say more…",onChange:H=>b(H.target.value),onKeyDown:H=>{H.key==="Enter"&&(H.metaKey||H.ctrlKey)&&re()}}),f.jsx(Ys,{className:"chat-turn-body",text:m}),f.jsxs("div",{className:"chat-actions",children:[f.jsxs("button",{className:"btn btn-dark",onClick:re,disabled:G||m.trim()==="",children:[f.jsx(Ze,{name:"send"}),U?"waiting for the answer…":v?"sending…":"send message",f.jsx(Va,{children:"⌘↵"})]}),f.jsx("span",{className:"grow"}),s.preChat&&f.jsx("button",{className:"btn btn-sm",disabled:G,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{_(!0),B_(i).then(d).catch(H=>T(String(H.message??H))).finally(()=>_(!1))},children:"reset the review"})]})]}),x&&f.jsx("div",{className:"error",children:x})]})]})}function qT(s){const i=ae.useRef(null),r=ae.useCallback(()=>{const l=i.current;l&&(l.style.height="auto",l.style.height=`${Math.min(l.scrollHeight+2,window.innerHeight*.7)}px`)},[]);return ae.useEffect(r,[s,r]),ae.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),i}function GT({initial:s,onSave:i,onCancel:r}){const[l,u]=ae.useState(s),[d,p]=ae.useState(!1),[y,g]=ae.useState(null),m=qT(l),b=()=>{d||(p(!0),g(null),i(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(),b()),v.key==="Escape"&&!d&&r()}}),f.jsx(Ys,{className:"body-md",text:l}),y&&f.jsx("p",{className:"error",children:y}),f.jsxs("div",{className:"card-actions",children:[f.jsxs("button",{className:"btn btn-sm",onClick:b,disabled:d,children:[d?"saving…":"save this body",f.jsx(Va,{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"})]})]})}function $T({artifact:s,reviewKey:i,event:r,sending:l,onSend:u,error:d,footer:p,next:y,onAdvance:g,onBody:m,anchorRef:b}){const[v,_]=ae.useState(null),[x,T]=ae.useState(null),[w,A]=ae.useState(s.bodyOverride!=null),[U,G]=ae.useState(!1),L=s.bodyOverride!=null;ae.useEffect(()=>{L&&A(!0)},[L]);const re=w&&!U?JSON.stringify([s.bodyOverride,s.summary,s.chapters.map(H=>[H.title,H.explanation]),s.comments.map(H=>[H.path,H.line,H.body,H.severity,H.status,H.drifted])]):"";return ae.useEffect(()=>{if(!w||U)return;let H=!1;return _(null),T(null),j_(i,r).then(P=>{H||(_(P),T(null))}).catch(P=>{H||T(String(P))}),()=>{H=!0}},[i,r,re,w,U]),s.sent?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"sent-strip",ref:b,children:[f.jsxs("strong",{children:["✔ sent as ",ub[s.sent.event]]}),f.jsxs("span",{className:"faint",children:[new Date(s.sent.at).toLocaleString()," · ",db(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(Ze,{name:"external"})]}),f.jsxs("button",{className:"btn",onClick:g,children:[y?`next review: ${y.pr.repo}#${y.pr.number}`:"back to the queue",f.jsx(Ze,{name:"arrowRight"})]})]}),f.jsx("div",{className:"post-actions",children:p})]}):f.jsxs("div",{className:"send-panel",ref:b,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:db(s)}),f.jsxs("button",{className:"link",onClick:()=>A(!w),disabled:U,title:U?"save or cancel the body you are writing first":void 0,children:[f.jsx(Ze,{name:"eye"}),w?"hide what gets posted":"see what gets posted"]})]}),f.jsx("div",{className:"send-action",children:f.jsxs("button",{className:`send-btn tone-bg-${NT[r]}`,disabled:l,onClick:u,children:[f.jsx(Ze,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),l?"sending…":`${ub[r]} on ${s.id}`," ",f.jsx(Va,{children:"s"})]})}),d&&f.jsx("p",{className:"error",children:d}),w&&f.jsxs(f.Fragment,{children:[x&&f.jsx("p",{className:"error",children:x}),v?U?f.jsx(GT,{initial:v.body,onSave:H=>m(H).then(()=>G(!1)),onCancel:()=>G(!1)}):f.jsxs(f.Fragment,{children:[f.jsx("pre",{className:"body-preview",children:v.body}),f.jsxs("div",{className:"body-source",children:[L?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:()=>m(null).catch(H=>T(String((H==null?void 0:H.message)??H))),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:()=>G(!0),children:[f.jsx(Ze,{name:"edit"}),L?"keep editing it":"write it yourself"]})]})]}):!x&&f.jsx("p",{className:"faint",children:"building the body…"})]}),f.jsx("div",{className:"send-footer",children:p})]})}function YT({filed:s}){var l,u,d;const i=((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"," ",i?f.jsx("a",{href:i,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"," ",i?f.jsx("a",{href:i,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 FT({entries:s,open:i,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":i,onClick:r,children:[f.jsx(Ze,{name:i?"up":"down",size:12}),i?"hide":"show"]})]}),i&&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 KT({artifact:s,freshness:i,rerunning:r,onRerun:l}){const u=s.status==="running",d=(i==null?void 0:i.prState)??s.pr.state,p=d==="CLOSED"||d==="MERGED",y=s.refresh,g=i!=null&&i.changed?y: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;return!p&&!g&&!m?null:f.jsxs("div",{className:"freshness",children:[m&&f.jsx(YT,{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 PT({reviewKey:s}){var Qt,Ct,R,J;const[i,r]=ae.useState(null),[l,u]=ae.useState(null),[d,p]=ae.useState(null),[y,g]=ae.useState(null),[m,b]=ae.useState(!1),[v,_]=ae.useState([]),[x,T]=ae.useState(new Set),w=C=>T(ee=>new Set(ee).add(C)),[A,U]=ae.useState([]),G=ae.useRef(null),[L,re]=ae.useState(new Set),[H,P]=ae.useState(0),le=ae.useRef(new Map),k=ae.useRef(null),z=ae.useRef(null),Q=ae.useRef(null),K=ae.useRef(null),fe=ae.useRef(null),we=ae.useRef(null),[Ae,he]=ae.useState(!1),I=ae.useRef(null),[ne,oe]=ae.useState(!1),[ve,Se]=ae.useState(null),[S,D]=ae.useState(null);ae.useEffect(()=>{if(!S)return;const C=setTimeout(()=>D(null),1800);return()=>clearTimeout(C)},[S]);const q=C=>{var ee,de;U(Le=>Le.some(ye=>ye.target===C.target&&ye.id===C.id)?Le:[...Le,C]),(ee=G.current)==null||ee.scrollIntoView({behavior:"smooth",block:"center"}),(de=G.current)==null||de.focus()};ae.useEffect(()=>{let C=!1;return window.scrollTo({top:0}),r(null),u(null),p(null),g(null),Se(null),tg(s).then(ee=>{if(!C)return r(ee),z_(s).then(de=>{C||(p(de),de.changed&&r(de.artifact))}).catch(de=>!C&&g(String(de.message??de)))}).catch(ee=>!C&&u(String(ee))),()=>{C=!0}},[s]),ae.useEffect(()=>{Yf().then(_).catch(()=>{})},[]),ae.useEffect(()=>{const C=I.current;if(!C)return;const ee=()=>document.documentElement.style.setProperty("--top-h",`${C.offsetHeight}px`);ee();const de=new ResizeObserver(ee);return de.observe(C),()=>{de.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[i==null?void 0:i.id]);const ue=(i==null?void 0:i.pendingChat)!=null&&i.pendingChat.error==null;ae.useEffect(()=>{if((i==null?void 0:i.status)!=="running"&&!ue)return;const C=setInterval(()=>{tg(s).then(ee=>{r(ee),ee.status!=="running"&&b(!1)}).catch(()=>{})},3e3);return()=>clearInterval(C)},[i==null?void 0:i.status,ue,s]);const pe=(i==null?void 0:i.sent)!=null,xe=ae.useMemo(()=>c_(v,s,x),[v,s,x]),me=xe.findIndex(C=>C.key===s),Oe=(me>0?xe[me-1]:null)??null,Ee=(me>=0&&me<xe.length-1?xe[me+1]:null)??null,He=C=>{window.location.hash=`#/r/${encodeURIComponent(C)}`},We=()=>{Ee?He(Ee.key):window.location.hash="#/"},ke=ae.useMemo(()=>{if(!i)return[];const C=s_(i.diff,i.chapters);return C.length>0?[...i.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:C}]:i.chapters},[i]),At=ae.useMemo(()=>{const C=r_((i==null?void 0:i.diff)??""),ee=new Set(Ja((i==null?void 0:i.diff)??"").filter(Le=>ed(Le.path)&&td(Le.patch).isNew).map(Le=>Le.path)),de=Le=>{const ye=C.get(Le)??0;return ee.has(Le)?Math.round(ye/4):ye};return new Map(ke.map(Le=>[Le.id,Le.files.reduce((ye,be)=>ye+de(be),0)]))},[i==null?void 0:i.diff,ke]),Ge=C=>{const ee=At.get(C)??0;return ee>UT?ee:null},Nn=C=>L.has(C)?Ge(C)!=null:Ge(C)==null,nt=C=>re(ee=>{const de=new Set(ee);return de.has(C)?de.delete(C):de.add(C),de});ae.useEffect(()=>re(new Set),[s]);const xn=C=>{const ee=ke[C];return ee?(P(C),Nn(ee.id)||nt(ee.id),ee):null},rn=(...C)=>{for(const ee of C)if(ee.current)return ee.current.scrollIntoView({behavior:"smooth",block:"start"})},zt=C=>{var de;const ee=xn(C);ee&&((de=le.current.get(ee.id))==null||de.scrollIntoView({behavior:"smooth",block:"start"}))},qn=(C,ee)=>{xn(C),D(ee),Jb(ee)},Jt=xT(i==null?void 0:i.verdict);ae.useEffect(()=>Se(null),[Jt]);const ca=()=>{!i||i.sent||ne||(oe(!0),Se(null),I_(s,Jt).then(C=>{r(C),w(s)}).catch(C=>Se(String(C.message??C))).finally(()=>oe(!1)))};if(ae.useEffect(()=>{const C=ee=>{kT(ee.target)||ee.metaKey||ee.ctrlKey||ee.altKey||(ee.key==="["&&Oe?He(Oe.key):ee.key==="]"&&Ee?He(Ee.key):ee.key==="n"?zt(Math.min(ke.length-1,H+1)):ee.key==="N"?zt(Math.max(0,H-1)):ee.key==="s"&&!pe&&ca())};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[Oe==null?void 0:Oe.key,Ee==null?void 0:Ee.key,ke,H,pe,Jt,i==null?void 0:i.sent,ne]),l&&!i)return f.jsx("p",{className:"error pad",children:l});if(!i)return f.jsx("p",{className:"muted pad",children:"Loading…"});const Vn=C=>{b(!0),u(null),Lb(s,C).then(r).catch(ee=>{u(String(ee)),b(!1)})},Ke=C=>C.then(r).catch(ee=>u(String(ee))),Ut=C=>io(s,{status:C}).then(()=>{w(s),We()}).catch(ee=>u(String(ee))),mt=(C,ee)=>Ke(M_(s,C,ee)),bn=C=>Ke(D_(s,C)),yn=C=>Ke(C_(s,C)),kn=i.comments.filter(C=>!C.chapterId||!ke.some(ee=>ee.id===C.chapterId)),{inline:Mn,folded:Cn,dropped:Dn}=Vb(i),on=i.comments.filter(C=>C.status!=="dropped"&&C.drifted).length,St=i.verdict?hb[i.verdict.recommendation]:"none",Wt=AT(i),Nt=wT(i),Gn=i.pendingChat!=null&&i.pendingChat.error==null,Ln=()=>Ke(xf(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}]})),wn=(C,ee)=>{Ke(xf(s,{message:ee,refs:[{target:"line",id:null,path:C.path,line:C.line,side:C.side}]}).then(de=>{var Le;return(Le=K.current)==null||Le.scrollIntoView({behavior:"smooth",block:"start"}),de}))},je=(Qt=i.run)!=null&&Qt.trusted?"ran the code":(Ct=i.run)!=null&&Ct.withSource?"read the full source":i.run?"read the diff only":"no run yet",cn=C=>{var ee;return f.jsxs("button",{className:`verdict-pick${((ee=i.verdict)==null?void 0:ee.recommendation)===C?` verdict-pick-on tone-${hb[C]}`:""}`,title:C==="approve"?"Approve":C==="comment"?"Comment without blocking":"Request changes",onClick:()=>Ke(io(s,{verdictRecommendation:C})),children:[f.jsx(Ze,{name:RT[C]}),C.replace("_"," ")]},C)};return f.jsxs("div",{className:"review",children:[f.jsxs("div",{className:"review-top",ref:I,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:i.id}),f.jsxs("span",{className:"walk",children:[f.jsx("button",{className:"walk-btn",disabled:!Oe,title:Oe?`[ — ${Oe.id}: ${Oe.pr.title}`:"no more reviews this way",onClick:()=>Oe&&He(Oe.key),children:f.jsx(Ze,{name:"chevronLeft"})}),f.jsx("button",{className:"walk-btn",disabled:!Ee,title:Ee?`] — ${Ee.id}: ${Ee.pr.title}`:"no more reviews this way",onClick:()=>Ee&&He(Ee.key),children:f.jsx(Ze,{name:"chevronRight"})})]}),me>=0&&f.jsxs("span",{className:"faint",children:[me+1," of ",xe.length," awaiting"]}),f.jsx("span",{className:"faint crumb-next",children:Ee?`next: ${Ee.pr.title}`:me>=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(Ze,{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:i.pr.url,target:"_blank",rel:"noreferrer",children:i.pr.title}),f.jsx("span",{className:"grow"}),i.verdict&&(pe?f.jsxs("span",{className:`chip tone-${St}`,children:[i.verdict.recommendation.replace("_"," "),Nt&&` · ${Nt}`," · ",i.verdict.confidence,"%"]}):f.jsxs("button",{className:`chip chip-btn tone-${St}`,title:"change it, or send — both are at the foot of the page",onClick:()=>rn(k,fe),children:[i.verdict.recommendation.replace("_"," "),Nt&&` · ${Nt}`," · ",i.verdict.confidence,"%",f.jsx(Ze,{name:"down",size:12})]})),!pe&&i.status!=="running"&&f.jsxs("button",{className:"btn btn-sm",disabled:m,title:i.run?"Review the current head again — this draft is replaced, your own comments are kept":"Draft a review of this PR",onClick:()=>Vn(!0),children:[f.jsx(Ze,{name:"rerun"}),m?"starting…":i.run?"re-review at head":"review now"]})]}),f.jsxs("div",{className:"review-head-meta",children:[f.jsx("span",{children:i.pr.author}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[i.pr.headRefName," → ",i.pr.baseRefName,i.pr.headSha?` · ${i.pr.headSha.slice(0,7)}`:""]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[i.pr.changedFiles,"f ",f.jsxs("span",{className:"add",children:["+",i.pr.additions]})," ",f.jsxs("span",{className:"del",children:["−",i.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:je}),((R=i.run)==null?void 0:R.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:["≈$",i.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:i.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:()=>rn(z),children:"summary"}),i.verdict&&f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>rn(Q),children:"why"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var C;rn(K),(C=G.current)==null||C.focus()},children:"chat"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{he(!0),rn(we)},children:"history"})]}),ke.length>0&&f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>zt(0),children:"changes"}),ke.map((C,ee)=>f.jsxs("div",{className:"rail-group",children:[f.jsxs("button",{className:`rail-item${Nn(C.id)?" rail-item-on":""}`,onClick:()=>zt(ee),children:[f.jsxs("span",{className:"grow",children:[ee+1," · ",C.title]}),f.jsxs("span",{className:"rail-count",children:[C.files.length,"f"]})]}),i.comments.filter(de=>de.chapterId===C.id).map(de=>f.jsxs("button",{className:`rail-comment${de.status==="dropped"?" rail-comment-dropped":""}`,title:`${de.path}${de.line!=null?`:${de.line}`:""} — ${de.body}`,onClick:()=>qn(ee,de.id),children:[f.jsx("span",{className:`rail-dot tone-${OT(de,St)}`,children:"●"}),f.jsxs("span",{className:"rail-comment-loc",children:[de.path.split("/").pop(),de.line!=null?`:${de.drifted?"~":""}${de.line}`:""]})]},de.id))]},C.id))]}),f.jsx("button",{className:`lab rail-lab-btn${ke.length>0?" rail-lab":""}`,onClick:()=>rn(k,fe),children:"verdict"}),f.jsxs("div",{className:"rail-facts",children:[f.jsxs("div",{children:[i.comments.length-Dn.length," keeping · ",Dn.length," dropped"]}),f.jsxs("div",{children:[Mn.length," inline · ",Cn.length," folded into body"]}),on>0&&f.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[on," drifted"]})]})]}),f.jsxs("div",{className:"main",children:[f.jsx(KT,{artifact:i,freshness:d,rerunning:m,onRerun:Vn}),y&&f.jsxs("div",{className:"freshness",title:y,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}),((J=i.run)==null?void 0:J.error)&&f.jsxs("div",{className:"error",children:["Run failed: ",i.run.error]}),f.jsx("div",{className:"card card-summary",ref:z,children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"lab",children:"summary"}),f.jsx(Wi,{className:"prose lead",text:i.summary||"(no summary)"}),!pe&&f.jsxs("button",{className:"btn btn-sm",onClick:()=>q({target:"summary",id:null}),children:[f.jsx(Ze,{name:"comment"}),"discuss the summary"]})]})}),i.verdict&&f.jsx("div",{className:`card card-why tone-border-${St}`,ref:Q,children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"lab",children:"why"}),f.jsxs("div",{className:"sev-counts",children:[Sf(i)&&f.jsx("span",{title:"Live findings by grade. Only blockers block.",children:Sf(i)}),Sf(i)&&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:[i.verdict.confidence,"% sure of the findings"]})]}),f.jsx(Wi,{className:"prose lead",text:i.verdict.reasoning}),!pe&&f.jsxs("button",{className:"btn btn-sm",onClick:()=>q({target:"verdict",id:null}),children:[f.jsx(Ze,{name:"comment"}),"discuss the verdict"]})]})}),ke.map((C,ee)=>f.jsx(BT,{chapter:C,n:ee+1,diff:i.diff,comments:i.comments.filter(de=>de.chapterId===C.id),open:Nn(C.id),heavy:Ge(C.id),onToggle:()=>nt(C.id),onUpdateComment:mt,onDeleteComment:bn,onAddComment:yn,onDiscuss:pe?void 0:q,onAskAboutLine:wn,chatBusy:Gn,readOnly:pe,flash:S,anchorRef:de=>{de?le.current.set(C.id,de):le.current.delete(C.id)}},C.id)),kn.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:kn.map(C=>f.jsx(ey,{comment:C,onUpdate:ee=>mt(C.id,ee),onDelete:()=>bn(C.id),onDiscuss:pe?void 0:()=>q({target:"comment",id:C.id}),readOnly:pe},C.id))})]}),f.jsx(FT,{entries:i.history??[],open:Ae,onToggle:()=>he(C=>!C),anchorRef:we})]}),f.jsxs("aside",{className:"cockpit",children:[f.jsx(HT,{artifact:i,reviewKey:s,refs:A,onClearRefs:()=>U([]),onDropRef:C=>U(ee=>ee.filter((de,Le)=>Le!==C)),onArtifact:r,readOnly:pe,inputRef:G,anchorRef:K}),f.jsxs("div",{className:"cockpit-decide",children:[!pe&&Wt&&f.jsxs("div",{className:"verdict-hint",children:[f.jsxs("span",{children:[f.jsx("strong",{children:Wt})," — the verdict was written before those edits."]}),f.jsxs("button",{className:"btn btn-sm",onClick:Ln,disabled:Gn,children:[f.jsx(Ze,{name:"comment"}),Gn?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),i.verdict&&!pe&&f.jsxs("div",{className:"verdict-bar",ref:k,children:[f.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(cn)]}),f.jsx($T,{artifact:i,reviewKey:s,event:Jt,sending:ne,onSend:ca,error:ve,next:Ee,onAdvance:We,onBody:C=>io(s,{bodyOverride:C}).then(r),anchorRef:fe,footer:f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"faint",children:"not sending?"}),!pe&&f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:"btn btn-sm",title:Ee?`Settle it locally and go to ${Ee.id}`:"Settle it locally and go back to the queue",onClick:()=>Ut("reviewed"),children:[f.jsx(Ze,{name:"check"}),"mark reviewed"]}),f.jsxs("button",{className:"btn btn-sm",title:Ee?`Leave it and go to ${Ee.id}`:"Leave it and go back to the queue",onClick:()=>Ut("skipped"),children:[f.jsx(Ze,{name:"skip"}),"skip"]})]}),f.jsxs("a",{className:"btn btn-sm",href:H_(s),children:[f.jsx(Ze,{name:"download"}),"export .md"]})]})})]})]})]})]})}const mb="cerber.notify.seen.v2",ZT="cerber.notify.seen",Df="cerber.notify",XT=1e4,Is=s=>s.status==="ready",Lf=s=>{try{return localStorage.getItem(s)}catch{return null}},zf=(s,i)=>{try{localStorage.setItem(s,i)}catch{}};function QT(s,i){return s?!!(s.enabled&&s.pollEnabled&&s.autoReview):i}function ty(s,i){return s.announceable===!1||s.status==="running"?!1:s.status==="awaiting"?!i:!0}const ny=":draft",lo=s=>`${s.key}${ny}`,ay=s=>Is(s)?lo(s):s.key;function VT(s,i,r){const l=new Set(i);return qs(s).filter(u=>ty(u,r)&&!l.has(ay(u)))}function JT(s,i,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)&&!ty(p,i)){for(const y of[p.key,lo(p)])l.has(y)&&d.push(y);continue}d.push(p.key),(Is(p)||!u.has(p.key)||l.has(lo(p)))&&d.push(lo(p))}return d}const Tf=s=>`${s.pr.repo}#${s.pr.number}`,WT={approve:"approves",comment:"comments",request_changes:"requests changes"};function eN(s){const i=s.verdict?WT[s.verdict.recommendation]:"drafted",r=s.blockerCount??0;return r===0?i:`${i} · ${r} blocker${r===1?"":"s"}`}function tN(s){if(s.length===0)return null;const i=`cerber:${s.map(ay).sort().join("|")}`;if(s.length===1){const u=s[0];return{title:Is(u)?`${Tf(u)} draft ready`:`${Tf(u)} awaits your review`,body:Is(u)?`${eN(u)} — ${u.pr.title}`:`${u.pr.title} — ${u.pr.author}`,tag:i,key:u.key}}const r=s.slice(0,3).map(Tf),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:i,key:null}}const nN=new Set(["127.0.0.1","localhost","::1","[::1]"]);function aN(s,i=window.location.hostname){return!(s!=null&&s.enabled)||!s.notify?!1:nN.has(i)}function Hl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":Lf(Df)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function iN(){const s=Hl();if(s==="unsupported"||s==="blocked")return s;if(s==="on")return zf(Df,"off"),Hl();if(zf(Df,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return Hl()}function lN(s){const i=new Notification(s.title,{body:s.body,tag:s.tag,icon:"/favicon.svg"});i.onclick=()=>{window.focus(),window.location.hash=s.key?`#/r/${encodeURIComponent(s.key)}`:"#/",i.close()}}function sN(s,i){const r=s??i;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}${ny}`])}function rN(){const s=ae.useRef(null),i=ae.useRef(!0),[r,l]=ae.useState(!1);return ae.useEffect(()=>{let u=!0;s.current=sN(Lf(mb),Lf(ZT));const d=()=>Promise.all([Yf(),Db().catch(()=>null)]).then(([y,g])=>{if(!u)return;const m=aN(g);l(m),i.current=QT(g,i.current);const b=i.current,v=s.current;if(s.current=JT(y,b,v??[]),zf(mb,JSON.stringify(s.current)),!v||Hl()!=="on"||m||document.visibilityState==="visible"&&document.hasFocus())return;const _=tN(VT(y,v,b));_&&lN(_)}).catch(()=>{});d();const p=setInterval(d,XT);return()=>{u=!1,clearInterval(p)}},[]),r}function iy(){const[s,i]=ae.useState(Hl);return ae.useEffect(()=>{const r=()=>i(Hl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[s,()=>void iN().then(i)]}const so=s=>{window.location.hash=`#/r/${encodeURIComponent(s)}`};function oN(s){const i=s,r=i==null?void 0:i.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(i==null?void 0:i.isContentEditable)===!0}function cN({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(Ze,{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 uN({r:s,selected:i,onSelect:r,onOpen:l,awaiting:u}){const d=T_(s),p=p_(s),y=u?E_(s,u):null;return f.jsxs("div",{className:`row${i?" 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"}),y&&f.jsx("span",{className:"tag tag-awaiting",title:y.title,children:y.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:Cb(s.updatedAt)})]})}function gb({autoFocus:s}){const[i,r]=ae.useState(""),[l,u]=ae.useState(!1),[d,p]=ae.useState(null),y=g=>{g.preventDefault();const m=i.trim();!m||l||(u(!0),p(null),L_(m).then(b=>so(b.key)).catch(b=>{p(String(b instanceof Error?b.message:b)),u(!1)}))};return f.jsxs("form",{className:"pull",onSubmit:y,children:[f.jsx(Ze,{name:"plus"}),f.jsx("input",{className:"pull-input",value:i,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"}),i.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 fN({text:s}){const i=ae.useRef(null),[r,l]=ae.useState(!1);return ae.useLayoutEffect(()=>{const u=i.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:i,className:`strip-prose${r?" strip-prose-clipped":""}`,children:f.jsx(Wi,{className:"prose",text:s})})}function dN(){var Q;const[s,i]=ae.useState(null),[r,l]=ae.useState(null),[u,d]=ae.useState(null),[p,y]=ae.useState(new Set),[g,m]=ae.useState("inbox"),[b,v]=ae.useState(null),_=ae.useRef(!0);ae.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const x=()=>{Yf().then(K=>_.current&&i(K)).catch(K=>_.current&&d(String(K))),Db().then(K=>_.current&&l(K)).catch(()=>{})};ae.useEffect(()=>{x();const K=setInterval(x,1e4);return()=>clearInterval(K)},[]);const T=s??[],w=ae.useMemo(()=>d_(T,r),[T,r]),A=w.requests,U=h_(g,w),G=w[U];ae.useEffect(()=>{U!==g&&m(U)},[U,g]);const L=G.find(K=>K.key===b)??G[0]??null,re=K=>{y(fe=>new Set(fe).add(K)),Lb(K).then(()=>x()).catch(fe=>_.current&&d(String(fe))).finally(()=>{_.current&&y(fe=>{const we=new Set(fe);return we.delete(K),we})})};if(ae.useEffect(()=>{const K=fe=>{if(oN(fe.target)||fe.metaKey||fe.ctrlKey||fe.altKey)return;const we=G.findIndex(he=>he.key===(L==null?void 0:L.key)),Ae=he=>{const I=G[Math.min(G.length-1,Math.max(0,we+he))];I&&v(I.key)};fe.key==="j"||fe.key==="ArrowDown"?(fe.preventDefault(),Ae(1)):fe.key==="k"||fe.key==="ArrowUp"?(fe.preventDefault(),Ae(-1)):fe.key==="Enter"&&L?so(L.key):fe.key==="r"&&L&&L.status!=="sent"&&L.status!=="running"&&re(L.key)};return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[G,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 H=G.reduce((K,fe)=>K+(fe.costUsd??0),0),P=L?x_(L,r):null,le=L?p.has(L.key):!1,k=Nf.filter(K=>w[K].length>0),z=K=>f.jsxs("button",{className:`tab${U===K?" tab-on":""}${Nf.includes(K)?" tab-filed":""}${K==="requests"?" tab-requests":""}`,title:Au[K].title,onClick:()=>m(K),children:[Au[K].label," ",f.jsx("span",{className:"tab-count",children:w[K].length})]},K);return f.jsxs(f.Fragment,{children:[f.jsx(cN,{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(gb,{autoFocus:!0})]})}):f.jsxs("div",{className:"wrap",children:[f.jsxs("div",{className:"tabs",children:[o_.map(z),k.length>0&&f.jsx("span",{className:"tab-split","aria-hidden":"true"}),k.map(z),f.jsx("span",{className:"grow"}),f.jsx(gb,{}),H>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:["≈$",H.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"})]}),G.length===0?f.jsx("div",{className:"empty-tab",children:U==="inbox"&&A.length>0?f.jsxs(f.Fragment,{children:[f.jsx("p",{children:__(A)}),f.jsxs("button",{className:"btn",onClick:()=>m("requests"),children:[f.jsx(Ze,{name:"arrowRight"}),"show ",A.length===1?"it":`all ${A.length}`]})]}):f.jsx("p",{className:"muted",children:U==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${Au[U].label} right now.`})}):G.map(K=>f.jsx(uN,{r:K,selected:K.key===(L==null?void 0:L.key),onSelect:()=>v(K.key),onOpen:()=>so(K.key),awaiting:f_(K,A)?m_(K,r):null},K.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(fN,{text:P.reasoning}),f.jsxs("div",{className:"cursor-strip-meta",children:[P.meta.join(" · "),((Q=L.sent)==null?void 0:Q.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:()=>so(L.key),children:[f.jsx(Ze,{name:"arrowRight"}),"open review ",f.jsx(Va,{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(x).catch(K=>d(String(K))),children:[f.jsx(Ze,{name:"skip"}),"skip"]}),f.jsxs("button",{className:"btn",disabled:le||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:()=>re(L.key),children:[f.jsx(Ze,{name:"rerun"}),le?"starting…":L.status==="awaiting"||L.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const Uf="cerber.theme";function hN(s){return s==="light"||s==="dark"?s:"system"}function pN(){try{return hN(localStorage.getItem(Uf))}catch{return"system"}}function mN(s,i=document.documentElement){s==="system"?delete i.dataset.theme:i.dataset.theme=s}function gN(){const[s,i]=ae.useState(pN);return[s,l=>{try{l==="system"?localStorage.removeItem(Uf):localStorage.setItem(Uf,l)}catch{}mN(l),i(l)}]}const bN=[{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"}],bb=s=>s instanceof Error?s.message:String(s),yN={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"},vN=[{choice:"system",label:"follow this machine"},{choice:"light",label:"light"},{choice:"dark",label:"dark"}];function EN({daemonAnnounces:s}){const[i,r]=iy(),[l,u]=gN(),[d,p]=ae.useState(null),[y,g]=ae.useState(""),[m,b]=ae.useState(null),[v,_]=ae.useState(!1);ae.useEffect(()=>{q_().then(p).catch(T=>b(bb(T)))},[]);const x=T=>{_(!0),b(null),T.then(p).catch(w=>b(bb(w))).finally(()=>_(!1))};return m&&!d?f.jsx("p",{className:"error",children:m}):d?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:d.daemon.poll,disabled:v,onChange:T=>x(ku({poll:T.target.checked}))})," ","poll GitHub for PRs awaiting my review (every ",d.daemon.intervalMinutes,"m)"]}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:d.daemon.autoReview,disabled:v||!d.daemon.poll,onChange:T=>x(ku({autoReview:T.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:d.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:d.daemon.notify,disabled:v||!d.daemon.poll,onChange:T=>x(ku({notify:T.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:i==="on",disabled:i==="unsupported"||i==="blocked"||s,onChange:r})," ",s?"let this browser announce them instead":yN[i]]}),f.jsx("p",{className:"muted",children:s?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:d.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",{children:"Appearance"}),vN.map(({choice:T,label:w})=>f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"radio",name:"theme",checked:l===T,onChange:()=>u(T)})," ",w]},T)),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:d.path}),"."]}),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:d.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:y,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:v,onChange:T=>g(T.target.value),onKeyDown:T=>{T.key==="Enter"&&!v&&y.trim()&&(x(Ou(y.trim())),g(""))}}),f.jsx("button",{className:"btn",disabled:v||!y.trim(),onClick:()=>{x(Ou(y.trim())),g("")},children:"trust"})]}),m&&f.jsx("p",{className:"error",children:m}),d.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:d.trust.map(T=>f.jsxs("tr",{className:T.denies?"trust-deny":void 0,children:[f.jsx("td",{children:f.jsx("code",{children:T.rule})}),f.jsx("td",{className:"muted",children:T.explanation}),f.jsx("td",{className:"trust-actions",children:f.jsx("button",{className:"btn",disabled:v,onClick:()=>x(Ou(T.rule,!0)),children:"remove"})})]},T.rule))})}),f.jsx("h2",{children:"Rule syntax"}),f.jsx("table",{className:"trust-table",children:f.jsx("tbody",{children:bN.map(T=>f.jsxs("tr",{children:[f.jsx("td",{children:f.jsx("code",{children:T.rule})}),f.jsx("td",{className:"muted",children:T.meaning})]},T.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."]})]}):f.jsx("p",{className:"muted",children:"Loading…"})}function yb(){const s=window.location.hash,i=s.match(/^#\/r\/(.+)$/);return i?{view:"detail",key:decodeURIComponent(i[1])}:s==="#/settings"?{view:"settings"}:{view:"queue"}}const vb={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."},Eb="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 _N({daemonAnnounces:s}){const[i,r]=iy();return s?f.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:Eb,"aria-label":Eb,children:f.jsx(Ze,{name:"bell",size:15})}):i==="unsupported"?null:f.jsx("button",{className:`topbar-link bell bell-${i}`,title:vb[i],"aria-label":vb[i],"aria-pressed":i==="on",onClick:r,children:f.jsx(Ze,{name:i==="on"?"bell":"bellOff",size:15})})}function SN(){const[s,i]=ae.useState(yb()),r=rN();return ae.useEffect(()=>{const l=()=>i(yb());return window.addEventListener("hashchange",l),()=>window.removeEventListener("hashchange",l)},[]),s.view==="detail"?f.jsx("div",{className:"app",children:f.jsx(PT,{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(q0,{}),"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(Va,{children:"j"}),f.jsx(Va,{children:"k"}),"move"]}),f.jsxs("span",{className:"hint",children:[f.jsx(Va,{children:"↵"}),"open"]}),f.jsxs("span",{className:"hint",children:[f.jsx(Va,{children:"r"}),"review now"]})]}),f.jsx(_N,{daemonAnnounces:r}),f.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:f.jsx(Ze,{name:"settings",size:15})})]})}),s.view==="queue"?f.jsx(dN,{}):f.jsx(EN,{daemonAnnounces:r})]})}yE.createRoot(document.getElementById("root")).render(f.jsx(dE.StrictMode,{children:f.jsx(SN,{})}));
|