@ccjr1120/memory-one 0.1.13 → 0.1.14
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.
- package/README.md +11 -10
- package/dist/app.js +3 -1
- package/dist/app.js.map +1 -1
- package/dist/integrations/claude.js +107 -0
- package/dist/integrations/claude.js.map +1 -0
- package/dist/routes/integrations.js +20 -1
- package/dist/routes/integrations.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/{highlighted-body-KPVGNVTW-jxw5D7vG.js → highlighted-body-KPVGNVTW-DC5Gthqr.js} +1 -1
- package/public/assets/index-BA7CLyps.js +190 -0
- package/public/index.html +1 -1
- package/public/assets/index-DWgbu5Rx.js +0 -190
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
var $E=e=>{throw TypeError(e)};var GE=(e,t,n)=>t.has(e)||$E("Cannot "+n);var on=(e,t,n)=>(GE(e,t,"read from private field"),n?n.call(e):t.get(e)),KE=(e,t,n)=>t.has(e)?$E("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Pm=(e,t,n,a)=>(GE(e,t,"write to private field"),a?a.call(e,n):t.set(e,n),n);function nN(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(a,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&a(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();function D0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bm={exports:{}},xo={};var XE;function rN(){if(XE)return xo;XE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(a,s,l){var u=null;if(l!==void 0&&(u=""+l),s.key!==void 0&&(u=""+s.key),"key"in s){l={};for(var c in s)c!=="key"&&(l[c]=s[c])}else l=s;return s=l.ref,{$$typeof:e,type:a,key:u,ref:s!==void 0?s:null,props:l}}return xo.Fragment=t,xo.jsx=n,xo.jsxs=n,xo}var QE;function aN(){return QE||(QE=1,Bm.exports=rN()),Bm.exports}var y=aN(),jm={exports:{}},je={};var WE;function iN(){if(WE)return je;WE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),E=Symbol.iterator;function x(z){return z===null||typeof z!="object"?null:(z=E&&z[E]||z["@@iterator"],typeof z=="function"?z:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,_={};function k(z,X,O){this.props=z,this.context=X,this.refs=_,this.updater=O||v}k.prototype.isReactComponent={},k.prototype.setState=function(z,X){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,X,"setState")},k.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function N(){}N.prototype=k.prototype;function w(z,X,O){this.props=z,this.context=X,this.refs=_,this.updater=O||v}var I=w.prototype=new N;I.constructor=w,S(I,k.prototype),I.isPureReactComponent=!0;var F=Array.isArray;function R(){}var M={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function Y(z,X,O){var Z=O.ref;return{$$typeof:e,type:z,key:X,ref:Z!==void 0?Z:null,props:O}}function U(z,X){return Y(z.type,X,z.props)}function J(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function Q(z){var X={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(O){return X[O]})}var se=/\/+/g;function ue(z,X){return typeof z=="object"&&z!==null&&z.key!=null?Q(""+z.key):X.toString(36)}function ae(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(R,R):(z.status="pending",z.then(function(X){z.status==="pending"&&(z.status="fulfilled",z.value=X)},function(X){z.status==="pending"&&(z.status="rejected",z.reason=X)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function B(z,X,O,Z,de){var pe=typeof z;(pe==="undefined"||pe==="boolean")&&(z=null);var Se=!1;if(z===null)Se=!0;else switch(pe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(z.$$typeof){case e:case t:Se=!0;break;case m:return Se=z._init,B(Se(z._payload),X,O,Z,de)}}if(Se)return de=de(z),Se=Z===""?"."+ue(z,0):Z,F(de)?(O="",Se!=null&&(O=Se.replace(se,"$&/")+"/"),B(de,X,O,"",function(Pe){return Pe})):de!=null&&(J(de)&&(de=U(de,O+(de.key==null||z&&z.key===de.key?"":(""+de.key).replace(se,"$&/")+"/")+Se)),X.push(de)),1;Se=0;var Te=Z===""?".":Z+":";if(F(z))for(var Ee=0;Ee<z.length;Ee++)Z=z[Ee],pe=Te+ue(Z,Ee),Se+=B(Z,X,O,pe,de);else if(Ee=x(z),typeof Ee=="function")for(z=Ee.call(z),Ee=0;!(Z=z.next()).done;)Z=Z.value,pe=Te+ue(Z,Ee++),Se+=B(Z,X,O,pe,de);else if(pe==="object"){if(typeof z.then=="function")return B(ae(z),X,O,Z,de);throw X=String(z),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Se}function G(z,X,O){if(z==null)return z;var Z=[],de=0;return B(z,Z,"","",function(pe){return X.call(O,pe,de++)}),Z}function oe(z){if(z._status===-1){var X=z._result;X=X(),X.then(function(O){(z._status===0||z._status===-1)&&(z._status=1,z._result=O)},function(O){(z._status===0||z._status===-1)&&(z._status=2,z._result=O)}),z._status===-1&&(z._status=0,z._result=X)}if(z._status===1)return z._result.default;throw z._result}var xe=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},D={map:G,forEach:function(z,X,O){G(z,function(){X.apply(this,arguments)},O)},count:function(z){var X=0;return G(z,function(){X++}),X},toArray:function(z){return G(z,function(X){return X})||[]},only:function(z){if(!J(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return je.Activity=p,je.Children=D,je.Component=k,je.Fragment=n,je.Profiler=s,je.PureComponent=w,je.StrictMode=a,je.Suspense=d,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,je.__COMPILER_RUNTIME={__proto__:null,c:function(z){return M.H.useMemoCache(z)}},je.cache=function(z){return function(){return z.apply(null,arguments)}},je.cacheSignal=function(){return null},je.cloneElement=function(z,X,O){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var Z=S({},z.props),de=z.key;if(X!=null)for(pe in X.key!==void 0&&(de=""+X.key),X)!H.call(X,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&X.ref===void 0||(Z[pe]=X[pe]);var pe=arguments.length-2;if(pe===1)Z.children=O;else if(1<pe){for(var Se=Array(pe),Te=0;Te<pe;Te++)Se[Te]=arguments[Te+2];Z.children=Se}return Y(z.type,de,Z)},je.createContext=function(z){return z={$$typeof:u,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:l,_context:z},z},je.createElement=function(z,X,O){var Z,de={},pe=null;if(X!=null)for(Z in X.key!==void 0&&(pe=""+X.key),X)H.call(X,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(de[Z]=X[Z]);var Se=arguments.length-2;if(Se===1)de.children=O;else if(1<Se){for(var Te=Array(Se),Ee=0;Ee<Se;Ee++)Te[Ee]=arguments[Ee+2];de.children=Te}if(z&&z.defaultProps)for(Z in Se=z.defaultProps,Se)de[Z]===void 0&&(de[Z]=Se[Z]);return Y(z,pe,de)},je.createRef=function(){return{current:null}},je.forwardRef=function(z){return{$$typeof:c,render:z}},je.isValidElement=J,je.lazy=function(z){return{$$typeof:m,_payload:{_status:-1,_result:z},_init:oe}},je.memo=function(z,X){return{$$typeof:h,type:z,compare:X===void 0?null:X}},je.startTransition=function(z){var X=M.T,O={};M.T=O;try{var Z=z(),de=M.S;de!==null&&de(O,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(R,xe)}catch(pe){xe(pe)}finally{X!==null&&O.types!==null&&(X.types=O.types),M.T=X}},je.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},je.use=function(z){return M.H.use(z)},je.useActionState=function(z,X,O){return M.H.useActionState(z,X,O)},je.useCallback=function(z,X){return M.H.useCallback(z,X)},je.useContext=function(z){return M.H.useContext(z)},je.useDebugValue=function(){},je.useDeferredValue=function(z,X){return M.H.useDeferredValue(z,X)},je.useEffect=function(z,X){return M.H.useEffect(z,X)},je.useEffectEvent=function(z){return M.H.useEffectEvent(z)},je.useId=function(){return M.H.useId()},je.useImperativeHandle=function(z,X,O){return M.H.useImperativeHandle(z,X,O)},je.useInsertionEffect=function(z,X){return M.H.useInsertionEffect(z,X)},je.useLayoutEffect=function(z,X){return M.H.useLayoutEffect(z,X)},je.useMemo=function(z,X){return M.H.useMemo(z,X)},je.useOptimistic=function(z,X){return M.H.useOptimistic(z,X)},je.useReducer=function(z,X,O){return M.H.useReducer(z,X,O)},je.useRef=function(z){return M.H.useRef(z)},je.useState=function(z){return M.H.useState(z)},je.useSyncExternalStore=function(z,X,O){return M.H.useSyncExternalStore(z,X,O)},je.useTransition=function(){return M.H.useTransition()},je.version="19.2.8",je}var ZE;function iu(){return ZE||(ZE=1,jm.exports=iN()),jm.exports}var C=iu();const yl=D0(C),su=nN({__proto__:null,default:yl},[C]);var Hm={exports:{}},To={},Um={exports:{}},zm={};var JE;function sN(){return JE||(JE=1,(function(e){function t(B,G){var oe=B.length;B.push(G);e:for(;0<oe;){var xe=oe-1>>>1,D=B[xe];if(0<s(D,G))B[xe]=G,B[oe]=D,oe=xe;else break e}}function n(B){return B.length===0?null:B[0]}function a(B){if(B.length===0)return null;var G=B[0],oe=B.pop();if(oe!==G){B[0]=oe;e:for(var xe=0,D=B.length,z=D>>>1;xe<z;){var X=2*(xe+1)-1,O=B[X],Z=X+1,de=B[Z];if(0>s(O,oe))Z<D&&0>s(de,O)?(B[xe]=de,B[Z]=oe,xe=Z):(B[xe]=O,B[X]=oe,xe=X);else if(Z<D&&0>s(de,oe))B[xe]=de,B[Z]=oe,xe=Z;else break e}}return G}function s(B,G){var oe=B.sortIndex-G.sortIndex;return oe!==0?oe:B.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}var d=[],h=[],m=1,p=null,E=3,x=!1,v=!1,S=!1,_=!1,k=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function I(B){for(var G=n(h);G!==null;){if(G.callback===null)a(h);else if(G.startTime<=B)a(h),G.sortIndex=G.expirationTime,t(d,G);else break;G=n(h)}}function F(B){if(S=!1,I(B),!v)if(n(d)!==null)v=!0,R||(R=!0,Q());else{var G=n(h);G!==null&&ae(F,G.startTime-B)}}var R=!1,M=-1,H=5,Y=-1;function U(){return _?!0:!(e.unstable_now()-Y<H)}function J(){if(_=!1,R){var B=e.unstable_now();Y=B;var G=!0;try{e:{v=!1,S&&(S=!1,N(M),M=-1),x=!0;var oe=E;try{t:{for(I(B),p=n(d);p!==null&&!(p.expirationTime>B&&U());){var xe=p.callback;if(typeof xe=="function"){p.callback=null,E=p.priorityLevel;var D=xe(p.expirationTime<=B);if(B=e.unstable_now(),typeof D=="function"){p.callback=D,I(B),G=!0;break t}p===n(d)&&a(d),I(B)}else a(d);p=n(d)}if(p!==null)G=!0;else{var z=n(h);z!==null&&ae(F,z.startTime-B),G=!1}}break e}finally{p=null,E=oe,x=!1}G=void 0}}finally{G?Q():R=!1}}}var Q;if(typeof w=="function")Q=function(){w(J)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ue=se.port2;se.port1.onmessage=J,Q=function(){ue.postMessage(null)}}else Q=function(){k(J,0)};function ae(B,G){M=k(function(){B(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(B){switch(E){case 1:case 2:case 3:var G=3;break;default:G=E}var oe=E;E=G;try{return B()}finally{E=oe}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(B,G){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var oe=E;E=B;try{return G()}finally{E=oe}},e.unstable_scheduleCallback=function(B,G,oe){var xe=e.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?xe+oe:xe):oe=xe,B){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=oe+D,B={id:m++,callback:G,priorityLevel:B,startTime:oe,expirationTime:D,sortIndex:-1},oe>xe?(B.sortIndex=oe,t(h,B),n(d)===null&&B===n(h)&&(S?(N(M),M=-1):S=!0,ae(F,oe-xe))):(B.sortIndex=D,t(d,B),v||x||(v=!0,R||(R=!0,Q()))),B},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(B){var G=E;return function(){var oe=E;E=G;try{return B.apply(this,arguments)}finally{E=oe}}}})(zm)),zm}var ex;function lN(){return ex||(ex=1,Um.exports=sN()),Um.exports}var Fm={exports:{}},un={};var tx;function oN(){if(tx)return un;tx=1;var e=iu();function t(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var a={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(d,h,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:p==null?null:""+p,children:d,containerInfo:h,implementation:m}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return un.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,un.createPortal=function(d,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(d,h,null,m)},un.flushSync=function(d){var h=u.T,m=a.p;try{if(u.T=null,a.p=2,d)return d()}finally{u.T=h,a.p=m,a.d.f()}},un.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,a.d.C(d,h))},un.prefetchDNS=function(d){typeof d=="string"&&a.d.D(d)},un.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var m=h.as,p=c(m,h.crossOrigin),E=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?a.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:E,fetchPriority:x}):m==="script"&&a.d.X(d,{crossOrigin:p,integrity:E,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},un.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=c(h.as,h.crossOrigin);a.d.M(d,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&a.d.M(d)},un.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,p=c(m,h.crossOrigin);a.d.L(d,m,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},un.preloadModule=function(d,h){if(typeof d=="string")if(h){var m=c(h.as,h.crossOrigin);a.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else a.d.m(d)},un.requestFormReset=function(d){a.d.r(d)},un.unstable_batchedUpdates=function(d,h){return d(h)},un.useFormState=function(d,h,m){return u.H.useFormState(d,h,m)},un.useFormStatus=function(){return u.H.useHostTransitionStatus()},un.version="19.2.8",un}var nx;function lv(){if(nx)return Fm.exports;nx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Fm.exports=oN(),Fm.exports}var rx;function uN(){if(rx)return To;rx=1;var e=lN(),t=iu(),n=lv();function a(r){var i="https://react.dev/errors/"+r;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function l(r){var i=r,o=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(o=i.return),r=i.return;while(r)}return i.tag===3?o:null}function u(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function c(r){if(r.tag===31){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function d(r){if(l(r)!==r)throw Error(a(188))}function h(r){var i=r.alternate;if(!i){if(i=l(r),i===null)throw Error(a(188));return i!==r?null:r}for(var o=r,f=i;;){var g=o.return;if(g===null)break;var b=g.alternate;if(b===null){if(f=g.return,f!==null){o=f;continue}break}if(g.child===b.child){for(b=g.child;b;){if(b===o)return d(g),r;if(b===f)return d(g),i;b=b.sibling}throw Error(a(188))}if(o.return!==f.return)o=g,f=b;else{for(var A=!1,L=g.child;L;){if(L===o){A=!0,o=g,f=b;break}if(L===f){A=!0,f=g,o=b;break}L=L.sibling}if(!A){for(L=b.child;L;){if(L===o){A=!0,o=b,f=g;break}if(L===f){A=!0,f=b,o=g;break}L=L.sibling}if(!A)throw Error(a(189))}}if(o.alternate!==f)throw Error(a(190))}if(o.tag!==3)throw Error(a(188));return o.stateNode.current===o?r:i}function m(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r;for(r=r.child;r!==null;){if(i=m(r),i!==null)return i;r=r.sibling}return null}var p=Object.assign,E=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),w=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function Q(r){return r===null||typeof r!="object"?null:(r=J&&r[J]||r["@@iterator"],typeof r=="function"?r:null)}var se=Symbol.for("react.client.reference");function ue(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===se?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case S:return"Fragment";case k:return"Profiler";case _:return"StrictMode";case F:return"Suspense";case R:return"SuspenseList";case Y:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case v:return"Portal";case w:return r.displayName||"Context";case N:return(r._context.displayName||"Context")+".Consumer";case I:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case M:return i=r.displayName||null,i!==null?i:ue(r.type)||"Memo";case H:i=r._payload,r=r._init;try{return ue(r(i))}catch{}}return null}var ae=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},xe=[],D=-1;function z(r){return{current:r}}function X(r){0>D||(r.current=xe[D],xe[D]=null,D--)}function O(r,i){D++,xe[D]=r.current,r.current=i}var Z=z(null),de=z(null),pe=z(null),Se=z(null);function Te(r,i){switch(O(pe,i),O(de,r),O(Z,null),i.nodeType){case 9:case 11:r=(r=i.documentElement)&&(r=r.namespaceURI)?pE(r):0;break;default:if(r=i.tagName,i=i.namespaceURI)i=pE(i),r=gE(i,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}X(Z),O(Z,r)}function Ee(){X(Z),X(de),X(pe)}function Pe(r){r.memoizedState!==null&&O(Se,r);var i=Z.current,o=gE(i,r.type);i!==o&&(O(de,r),O(Z,o))}function Le(r){de.current===r&&(X(Z),X(de)),Se.current===r&&(X(Se),go._currentValue=oe)}var Re,He;function ze(r){if(Re===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);Re=i&&i[1]||"",He=-1<o.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+Re+r+He}var tt=!1;function Xe(r,i){if(!r||tt)return"";tt=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(i){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(ie){var re=ie}Reflect.construct(r,[],me)}else{try{me.call()}catch(ie){re=ie}r.call(me.prototype)}}else{try{throw Error()}catch(ie){re=ie}(me=r())&&typeof me.catch=="function"&&me.catch(function(){})}}catch(ie){if(ie&&re&&typeof ie.stack=="string")return[ie.stack,re.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=f.DetermineComponentFrameRoot(),A=b[0],L=b[1];if(A&&L){var V=A.split(`
|
|
4
|
-
`),ne=L.split(`
|
|
5
|
-
`);for(g=f=0;f<V.length&&!V[f].includes("DetermineComponentFrameRoot");)f++;for(;g<ne.length&&!ne[g].includes("DetermineComponentFrameRoot");)g++;if(f===V.length||g===ne.length)for(f=V.length-1,g=ne.length-1;1<=f&&0<=g&&V[f]!==ne[g];)g--;for(;1<=f&&0<=g;f--,g--)if(V[f]!==ne[g]){if(f!==1||g!==1)do if(f--,g--,0>g||V[f]!==ne[g]){var fe=`
|
|
6
|
-
`+V[f].replace(" at new "," at ");return r.displayName&&fe.includes("<anonymous>")&&(fe=fe.replace("<anonymous>",r.displayName)),fe}while(1<=f&&0<=g);break}}}finally{tt=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?ze(o):""}function Rt(r,i){switch(r.tag){case 26:case 27:case 5:return ze(r.type);case 16:return ze("Lazy");case 13:return r.child!==i&&i!==null?ze("Suspense Fallback"):ze("Suspense");case 19:return ze("SuspenseList");case 0:case 15:return Xe(r.type,!1);case 11:return Xe(r.type.render,!1);case 1:return Xe(r.type,!0);case 31:return ze("Activity");default:return""}}function kt(r){try{var i="",o=null;do i+=Rt(r,o),o=r,r=r.return;while(r);return i}catch(f){return`
|
|
7
|
-
Error generating stack: `+f.message+`
|
|
8
|
-
`+f.stack}}var Ft=Object.prototype.hasOwnProperty,ke=e.unstable_scheduleCallback,Ie=e.unstable_cancelCallback,dt=e.unstable_shouldYield,qe=e.unstable_requestPaint,Ye=e.unstable_now,ln=e.unstable_getCurrentPriorityLevel,ce=e.unstable_ImmediatePriority,W=e.unstable_UserBlockingPriority,ve=e.unstable_NormalPriority,Me=e.unstable_LowPriority,$e=e.unstable_IdlePriority,$t=e.log,Pr=e.unstable_setDisableYieldValue,hn=null,qt=null;function Tn(r){if(typeof $t=="function"&&Pr(r),qt&&typeof qt.setStrictMode=="function")try{qt.setStrictMode(hn,r)}catch{}}var bt=Math.clz32?Math.clz32:FA,pa=Math.log,sr=Math.LN2;function FA(r){return r>>>=0,r===0?32:31-(pa(r)/sr|0)|0}var Eu=256,xu=262144,Tu=4194304;function oi(r){var i=r&42;if(i!==0)return i;switch(r&-r){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 r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function vu(r,i,o){var f=r.pendingLanes;if(f===0)return 0;var g=0,b=r.suspendedLanes,A=r.pingedLanes;r=r.warmLanes;var L=f&134217727;return L!==0?(f=L&~b,f!==0?g=oi(f):(A&=L,A!==0?g=oi(A):o||(o=L&~r,o!==0&&(g=oi(o))))):(L=f&~b,L!==0?g=oi(L):A!==0?g=oi(A):o||(o=f&~r,o!==0&&(g=oi(o)))),g===0?0:i!==0&&i!==g&&(i&b)===0&&(b=g&-g,o=i&-i,b>=o||b===32&&(o&4194048)!==0)?i:g}function wl(r,i){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&i)===0}function qA(r,i){switch(r){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 Qg(){var r=Tu;return Tu<<=1,(Tu&62914560)===0&&(Tu=4194304),r}function Cd(r){for(var i=[],o=0;31>o;o++)i.push(r);return i}function Nl(r,i){r.pendingLanes|=i,i!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function VA(r,i,o,f,g,b){var A=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var L=r.entanglements,V=r.expirationTimes,ne=r.hiddenUpdates;for(o=A&~o;0<o;){var fe=31-bt(o),me=1<<fe;L[fe]=0,V[fe]=-1;var re=ne[fe];if(re!==null)for(ne[fe]=null,fe=0;fe<re.length;fe++){var ie=re[fe];ie!==null&&(ie.lane&=-536870913)}o&=~me}f!==0&&Wg(r,f,0),b!==0&&g===0&&r.tag!==0&&(r.suspendedLanes|=b&~(A&~i))}function Wg(r,i,o){r.pendingLanes|=i,r.suspendedLanes&=~i;var f=31-bt(i);r.entangledLanes|=i,r.entanglements[f]=r.entanglements[f]|1073741824|o&261930}function Zg(r,i){var o=r.entangledLanes|=i;for(r=r.entanglements;o;){var f=31-bt(o),g=1<<f;g&i|r[f]&i&&(r[f]|=i),o&=~g}}function Jg(r,i){var o=i&-i;return o=(o&42)!==0?1:_d(o),(o&(r.suspendedLanes|i))!==0?0:o}function _d(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Ad(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function e1(){var r=G.p;return r!==0?r:(r=window.event,r===void 0?32:HE(r.type))}function t1(r,i){var o=G.p;try{return G.p=r,i()}finally{G.p=o}}var ga=Math.random().toString(36).slice(2),en="__reactFiber$"+ga,vn="__reactProps$"+ga,os="__reactContainer$"+ga,kd="__reactEvents$"+ga,YA="__reactListeners$"+ga,$A="__reactHandles$"+ga,n1="__reactResources$"+ga,Rl="__reactMarker$"+ga;function wd(r){delete r[en],delete r[vn],delete r[kd],delete r[YA],delete r[$A]}function us(r){var i=r[en];if(i)return i;for(var o=r.parentNode;o;){if(i=o[os]||o[en]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(r=SE(r);r!==null;){if(o=r[en])return o;r=SE(r)}return i}r=o,o=r.parentNode}return null}function cs(r){if(r=r[en]||r[os]){var i=r.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return r}return null}function Ol(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r.stateNode;throw Error(a(33))}function fs(r){var i=r[n1];return i||(i=r[n1]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Gt(r){r[Rl]=!0}var r1=new Set,a1={};function ui(r,i){ds(r,i),ds(r+"Capture",i)}function ds(r,i){for(a1[r]=i,r=0;r<i.length;r++)r1.add(i[r])}var GA=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]*$"),i1={},s1={};function KA(r){return Ft.call(s1,r)?!0:Ft.call(i1,r)?!1:GA.test(r)?s1[r]=!0:(i1[r]=!0,!1)}function Su(r,i,o){if(KA(i))if(o===null)r.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":r.removeAttribute(i);return;case"boolean":var f=i.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){r.removeAttribute(i);return}}r.setAttribute(i,""+o)}}function Cu(r,i,o){if(o===null)r.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(i);return}r.setAttribute(i,""+o)}}function Br(r,i,o,f){if(f===null)r.removeAttribute(o);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttributeNS(i,o,""+f)}}function Yn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function l1(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function XA(r,i,o){var f=Object.getOwnPropertyDescriptor(r.constructor.prototype,i);if(!r.hasOwnProperty(i)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var g=f.get,b=f.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return g.call(this)},set:function(A){o=""+A,b.call(this,A)}}),Object.defineProperty(r,i,{enumerable:f.enumerable}),{getValue:function(){return o},setValue:function(A){o=""+A},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function Nd(r){if(!r._valueTracker){var i=l1(r)?"checked":"value";r._valueTracker=XA(r,i,""+r[i])}}function o1(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var o=i.getValue(),f="";return r&&(f=l1(r)?r.checked?"true":"false":r.value),r=f,r!==o?(i.setValue(r),!0):!1}function _u(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var QA=/[\n"\\]/g;function $n(r){return r.replace(QA,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Rd(r,i,o,f,g,b,A,L){r.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?r.type=A:r.removeAttribute("type"),i!=null?A==="number"?(i===0&&r.value===""||r.value!=i)&&(r.value=""+Yn(i)):r.value!==""+Yn(i)&&(r.value=""+Yn(i)):A!=="submit"&&A!=="reset"||r.removeAttribute("value"),i!=null?Od(r,A,Yn(i)):o!=null?Od(r,A,Yn(o)):f!=null&&r.removeAttribute("value"),g==null&&b!=null&&(r.defaultChecked=!!b),g!=null&&(r.checked=g&&typeof g!="function"&&typeof g!="symbol"),L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?r.name=""+Yn(L):r.removeAttribute("name")}function u1(r,i,o,f,g,b,A,L){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(r.type=b),i!=null||o!=null){if(!(b!=="submit"&&b!=="reset"||i!=null)){Nd(r);return}o=o!=null?""+Yn(o):"",i=i!=null?""+Yn(i):o,L||i===r.value||(r.value=i),r.defaultValue=i}f=f??g,f=typeof f!="function"&&typeof f!="symbol"&&!!f,r.checked=L?r.checked:!!f,r.defaultChecked=!!f,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(r.name=A),Nd(r)}function Od(r,i,o){i==="number"&&_u(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function hs(r,i,o,f){if(r=r.options,i){i={};for(var g=0;g<o.length;g++)i["$"+o[g]]=!0;for(o=0;o<r.length;o++)g=i.hasOwnProperty("$"+r[o].value),r[o].selected!==g&&(r[o].selected=g),g&&f&&(r[o].defaultSelected=!0)}else{for(o=""+Yn(o),i=null,g=0;g<r.length;g++){if(r[g].value===o){r[g].selected=!0,f&&(r[g].defaultSelected=!0);return}i!==null||r[g].disabled||(i=r[g])}i!==null&&(i.selected=!0)}}function c1(r,i,o){if(i!=null&&(i=""+Yn(i),i!==r.value&&(r.value=i),o==null)){r.defaultValue!==i&&(r.defaultValue=i);return}r.defaultValue=o!=null?""+Yn(o):""}function f1(r,i,o,f){if(i==null){if(f!=null){if(o!=null)throw Error(a(92));if(ae(f)){if(1<f.length)throw Error(a(93));f=f[0]}o=f}o==null&&(o=""),i=o}o=Yn(i),r.defaultValue=o,f=r.textContent,f===o&&f!==""&&f!==null&&(r.value=f),Nd(r)}function ms(r,i){if(i){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=i;return}}r.textContent=i}var WA=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 d1(r,i,o){var f=i.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?f?r.setProperty(i,""):i==="float"?r.cssFloat="":r[i]="":f?r.setProperty(i,o):typeof o!="number"||o===0||WA.has(i)?i==="float"?r.cssFloat=o:r[i]=(""+o).trim():r[i]=o+"px"}function h1(r,i,o){if(i!=null&&typeof i!="object")throw Error(a(62));if(r=r.style,o!=null){for(var f in o)!o.hasOwnProperty(f)||i!=null&&i.hasOwnProperty(f)||(f.indexOf("--")===0?r.setProperty(f,""):f==="float"?r.cssFloat="":r[f]="");for(var g in i)f=i[g],i.hasOwnProperty(g)&&o[g]!==f&&d1(r,g,f)}else for(var b in i)i.hasOwnProperty(b)&&d1(r,b,i[b])}function Ld(r){if(r.indexOf("-")===-1)return!1;switch(r){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 ZA=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"]]),JA=/^[\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 Au(r){return JA.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function jr(){}var Dd=null;function Id(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ps=null,gs=null;function m1(r){var i=cs(r);if(i&&(r=i.stateNode)){var o=r[vn]||null;e:switch(r=i.stateNode,i.type){case"input":if(Rd(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),i=o.name,o.type==="radio"&&i!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+$n(""+i)+'"][type="radio"]'),i=0;i<o.length;i++){var f=o[i];if(f!==r&&f.form===r.form){var g=f[vn]||null;if(!g)throw Error(a(90));Rd(f,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(i=0;i<o.length;i++)f=o[i],f.form===r.form&&o1(f)}break e;case"textarea":c1(r,o.value,o.defaultValue);break e;case"select":i=o.value,i!=null&&hs(r,!!o.multiple,i,!1)}}}var Md=!1;function p1(r,i,o){if(Md)return r(i,o);Md=!0;try{var f=r(i);return f}finally{if(Md=!1,(ps!==null||gs!==null)&&(hc(),ps&&(i=ps,r=gs,gs=ps=null,m1(i),r)))for(i=0;i<r.length;i++)m1(r[i])}}function Ll(r,i){var o=r.stateNode;if(o===null)return null;var f=o[vn]||null;if(f===null)return null;o=f[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(r=r.type,f=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!f;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(a(231,i,typeof o));return o}var Hr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pd=!1;if(Hr)try{var Dl={};Object.defineProperty(Dl,"passive",{get:function(){Pd=!0}}),window.addEventListener("test",Dl,Dl),window.removeEventListener("test",Dl,Dl)}catch{Pd=!1}var ba=null,Bd=null,ku=null;function g1(){if(ku)return ku;var r,i=Bd,o=i.length,f,g="value"in ba?ba.value:ba.textContent,b=g.length;for(r=0;r<o&&i[r]===g[r];r++);var A=o-r;for(f=1;f<=A&&i[o-f]===g[b-f];f++);return ku=g.slice(r,1<f?1-f:void 0)}function wu(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function Nu(){return!0}function b1(){return!1}function Sn(r){function i(o,f,g,b,A){this._reactName=o,this._targetInst=g,this.type=f,this.nativeEvent=b,this.target=A,this.currentTarget=null;for(var L in r)r.hasOwnProperty(L)&&(o=r[L],this[L]=o?o(b):b[L]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Nu:b1,this.isPropagationStopped=b1,this}return p(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Nu)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Nu)},persist:function(){},isPersistent:Nu}),i}var ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ru=Sn(ci),Il=p({},ci,{view:0,detail:0}),ek=Sn(Il),jd,Hd,Ml,Ou=p({},Il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Ml&&(Ml&&r.type==="mousemove"?(jd=r.screenX-Ml.screenX,Hd=r.screenY-Ml.screenY):Hd=jd=0,Ml=r),jd)},movementY:function(r){return"movementY"in r?r.movementY:Hd}}),y1=Sn(Ou),tk=p({},Ou,{dataTransfer:0}),nk=Sn(tk),rk=p({},Il,{relatedTarget:0}),Ud=Sn(rk),ak=p({},ci,{animationName:0,elapsedTime:0,pseudoElement:0}),ik=Sn(ak),sk=p({},ci,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),lk=Sn(sk),ok=p({},ci,{data:0}),E1=Sn(ok),uk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ck={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"},fk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dk(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=fk[r])?!!i[r]:!1}function zd(){return dk}var hk=p({},Il,{key:function(r){if(r.key){var i=uk[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=wu(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?ck[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(r){return r.type==="keypress"?wu(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?wu(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),mk=Sn(hk),pk=p({},Ou,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),x1=Sn(pk),gk=p({},Il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),bk=Sn(gk),yk=p({},ci,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ek=Sn(yk),xk=p({},Ou,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Tk=Sn(xk),vk=p({},ci,{newState:0,oldState:0}),Sk=Sn(vk),Ck=[9,13,27,32],Fd=Hr&&"CompositionEvent"in window,Pl=null;Hr&&"documentMode"in document&&(Pl=document.documentMode);var _k=Hr&&"TextEvent"in window&&!Pl,T1=Hr&&(!Fd||Pl&&8<Pl&&11>=Pl),v1=" ",S1=!1;function C1(r,i){switch(r){case"keyup":return Ck.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _1(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var bs=!1;function Ak(r,i){switch(r){case"compositionend":return _1(i);case"keypress":return i.which!==32?null:(S1=!0,v1);case"textInput":return r=i.data,r===v1&&S1?null:r;default:return null}}function kk(r,i){if(bs)return r==="compositionend"||!Fd&&C1(r,i)?(r=g1(),ku=Bd=ba=null,bs=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return T1&&i.locale!=="ko"?null:i.data;default:return null}}var wk={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 A1(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!wk[r.type]:i==="textarea"}function k1(r,i,o,f){ps?gs?gs.push(f):gs=[f]:ps=f,i=xc(i,"onChange"),0<i.length&&(o=new Ru("onChange","change",null,o,f),r.push({event:o,listeners:i}))}var Bl=null,jl=null;function Nk(r){uE(r,0)}function Lu(r){var i=Ol(r);if(o1(i))return r}function w1(r,i){if(r==="change")return i}var N1=!1;if(Hr){var qd;if(Hr){var Vd="oninput"in document;if(!Vd){var R1=document.createElement("div");R1.setAttribute("oninput","return;"),Vd=typeof R1.oninput=="function"}qd=Vd}else qd=!1;N1=qd&&(!document.documentMode||9<document.documentMode)}function O1(){Bl&&(Bl.detachEvent("onpropertychange",L1),jl=Bl=null)}function L1(r){if(r.propertyName==="value"&&Lu(jl)){var i=[];k1(i,jl,r,Id(r)),p1(Nk,i)}}function Rk(r,i,o){r==="focusin"?(O1(),Bl=i,jl=o,Bl.attachEvent("onpropertychange",L1)):r==="focusout"&&O1()}function Ok(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Lu(jl)}function Lk(r,i){if(r==="click")return Lu(i)}function Dk(r,i){if(r==="input"||r==="change")return Lu(i)}function Ik(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var In=typeof Object.is=="function"?Object.is:Ik;function Hl(r,i){if(In(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var o=Object.keys(r),f=Object.keys(i);if(o.length!==f.length)return!1;for(f=0;f<o.length;f++){var g=o[f];if(!Ft.call(i,g)||!In(r[g],i[g]))return!1}return!0}function D1(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function I1(r,i){var o=D1(r);r=0;for(var f;o;){if(o.nodeType===3){if(f=r+o.textContent.length,r<=i&&f>=i)return{node:o,offset:i-r};r=f}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=D1(o)}}function M1(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?M1(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function P1(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var i=_u(r.document);i instanceof r.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)r=i.contentWindow;else break;i=_u(r.document)}return i}function Yd(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}var Mk=Hr&&"documentMode"in document&&11>=document.documentMode,ys=null,$d=null,Ul=null,Gd=!1;function B1(r,i,o){var f=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Gd||ys==null||ys!==_u(f)||(f=ys,"selectionStart"in f&&Yd(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),Ul&&Hl(Ul,f)||(Ul=f,f=xc($d,"onSelect"),0<f.length&&(i=new Ru("onSelect","select",null,i,o),r.push({event:i,listeners:f}),i.target=ys)))}function fi(r,i){var o={};return o[r.toLowerCase()]=i.toLowerCase(),o["Webkit"+r]="webkit"+i,o["Moz"+r]="moz"+i,o}var Es={animationend:fi("Animation","AnimationEnd"),animationiteration:fi("Animation","AnimationIteration"),animationstart:fi("Animation","AnimationStart"),transitionrun:fi("Transition","TransitionRun"),transitionstart:fi("Transition","TransitionStart"),transitioncancel:fi("Transition","TransitionCancel"),transitionend:fi("Transition","TransitionEnd")},Kd={},j1={};Hr&&(j1=document.createElement("div").style,"AnimationEvent"in window||(delete Es.animationend.animation,delete Es.animationiteration.animation,delete Es.animationstart.animation),"TransitionEvent"in window||delete Es.transitionend.transition);function di(r){if(Kd[r])return Kd[r];if(!Es[r])return r;var i=Es[r],o;for(o in i)if(i.hasOwnProperty(o)&&o in j1)return Kd[r]=i[o];return r}var H1=di("animationend"),U1=di("animationiteration"),z1=di("animationstart"),Pk=di("transitionrun"),Bk=di("transitionstart"),jk=di("transitioncancel"),F1=di("transitionend"),q1=new Map,Xd="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(" ");Xd.push("scrollEnd");function lr(r,i){q1.set(r,i),ui(i,[r])}var Du=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Gn=[],xs=0,Qd=0;function Iu(){for(var r=xs,i=Qd=xs=0;i<r;){var o=Gn[i];Gn[i++]=null;var f=Gn[i];Gn[i++]=null;var g=Gn[i];Gn[i++]=null;var b=Gn[i];if(Gn[i++]=null,f!==null&&g!==null){var A=f.pending;A===null?g.next=g:(g.next=A.next,A.next=g),f.pending=g}b!==0&&V1(o,g,b)}}function Mu(r,i,o,f){Gn[xs++]=r,Gn[xs++]=i,Gn[xs++]=o,Gn[xs++]=f,Qd|=f,r.lanes|=f,r=r.alternate,r!==null&&(r.lanes|=f)}function Wd(r,i,o,f){return Mu(r,i,o,f),Pu(r)}function hi(r,i){return Mu(r,null,null,i),Pu(r)}function V1(r,i,o){r.lanes|=o;var f=r.alternate;f!==null&&(f.lanes|=o);for(var g=!1,b=r.return;b!==null;)b.childLanes|=o,f=b.alternate,f!==null&&(f.childLanes|=o),b.tag===22&&(r=b.stateNode,r===null||r._visibility&1||(g=!0)),r=b,b=b.return;return r.tag===3?(b=r.stateNode,g&&i!==null&&(g=31-bt(o),r=b.hiddenUpdates,f=r[g],f===null?r[g]=[i]:f.push(i),i.lane=o|536870912),b):null}function Pu(r){if(50<oo)throw oo=0,sm=null,Error(a(185));for(var i=r.return;i!==null;)r=i,i=r.return;return r.tag===3?r.stateNode:null}var Ts={};function Hk(r,i,o,f){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mn(r,i,o,f){return new Hk(r,i,o,f)}function Zd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Ur(r,i){var o=r.alternate;return o===null?(o=Mn(r.tag,i,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=i,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&65011712,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,i=r.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o.refCleanup=r.refCleanup,o}function Y1(r,i){r.flags&=65011714;var o=r.alternate;return o===null?(r.childLanes=0,r.lanes=i,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,i=o.dependencies,r.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),r}function Bu(r,i,o,f,g,b){var A=0;if(f=r,typeof r=="function")Zd(r)&&(A=1);else if(typeof r=="string")A=Vw(r,o,Z.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case Y:return r=Mn(31,o,i,g),r.elementType=Y,r.lanes=b,r;case S:return mi(o.children,g,b,i);case _:A=8,g|=24;break;case k:return r=Mn(12,o,i,g|2),r.elementType=k,r.lanes=b,r;case F:return r=Mn(13,o,i,g),r.elementType=F,r.lanes=b,r;case R:return r=Mn(19,o,i,g),r.elementType=R,r.lanes=b,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case w:A=10;break e;case N:A=9;break e;case I:A=11;break e;case M:A=14;break e;case H:A=16,f=null;break e}A=29,o=Error(a(130,r===null?"null":typeof r,"")),f=null}return i=Mn(A,o,i,g),i.elementType=r,i.type=f,i.lanes=b,i}function mi(r,i,o,f){return r=Mn(7,r,f,i),r.lanes=o,r}function Jd(r,i,o){return r=Mn(6,r,null,i),r.lanes=o,r}function $1(r){var i=Mn(18,null,null,0);return i.stateNode=r,i}function eh(r,i,o){return i=Mn(4,r.children!==null?r.children:[],r.key,i),i.lanes=o,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}var G1=new WeakMap;function Kn(r,i){if(typeof r=="object"&&r!==null){var o=G1.get(r);return o!==void 0?o:(i={value:r,source:i,stack:kt(i)},G1.set(r,i),i)}return{value:r,source:i,stack:kt(i)}}var vs=[],Ss=0,ju=null,zl=0,Xn=[],Qn=0,ya=null,yr=1,Er="";function zr(r,i){vs[Ss++]=zl,vs[Ss++]=ju,ju=r,zl=i}function K1(r,i,o){Xn[Qn++]=yr,Xn[Qn++]=Er,Xn[Qn++]=ya,ya=r;var f=yr;r=Er;var g=32-bt(f)-1;f&=~(1<<g),o+=1;var b=32-bt(i)+g;if(30<b){var A=g-g%5;b=(f&(1<<A)-1).toString(32),f>>=A,g-=A,yr=1<<32-bt(i)+g|o<<g|f,Er=b+r}else yr=1<<b|o<<g|f,Er=r}function th(r){r.return!==null&&(zr(r,1),K1(r,1,0))}function nh(r){for(;r===ju;)ju=vs[--Ss],vs[Ss]=null,zl=vs[--Ss],vs[Ss]=null;for(;r===ya;)ya=Xn[--Qn],Xn[Qn]=null,Er=Xn[--Qn],Xn[Qn]=null,yr=Xn[--Qn],Xn[Qn]=null}function X1(r,i){Xn[Qn++]=yr,Xn[Qn++]=Er,Xn[Qn++]=ya,yr=i.id,Er=i.overflow,ya=r}var tn=null,Tt=null,nt=!1,Ea=null,Wn=!1,rh=Error(a(519));function xa(r){var i=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Fl(Kn(i,r)),rh}function Q1(r){var i=r.stateNode,o=r.type,f=r.memoizedProps;switch(i[en]=r,i[vn]=f,o){case"dialog":We("cancel",i),We("close",i);break;case"iframe":case"object":case"embed":We("load",i);break;case"video":case"audio":for(o=0;o<co.length;o++)We(co[o],i);break;case"source":We("error",i);break;case"img":case"image":case"link":We("error",i),We("load",i);break;case"details":We("toggle",i);break;case"input":We("invalid",i),u1(i,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0);break;case"select":We("invalid",i);break;case"textarea":We("invalid",i),f1(i,f.value,f.defaultValue,f.children)}o=f.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||i.textContent===""+o||f.suppressHydrationWarning===!0||hE(i.textContent,o)?(f.popover!=null&&(We("beforetoggle",i),We("toggle",i)),f.onScroll!=null&&We("scroll",i),f.onScrollEnd!=null&&We("scrollend",i),f.onClick!=null&&(i.onclick=jr),i=!0):i=!1,i||xa(r,!0)}function W1(r){for(tn=r.return;tn;)switch(tn.tag){case 5:case 31:case 13:Wn=!1;return;case 27:case 3:Wn=!0;return;default:tn=tn.return}}function Cs(r){if(r!==tn)return!1;if(!nt)return W1(r),nt=!0,!1;var i=r.tag,o;if((o=i!==3&&i!==27)&&((o=i===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||Tm(r.type,r.memoizedProps)),o=!o),o&&Tt&&xa(r),W1(r),i===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));Tt=vE(r)}else if(i===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));Tt=vE(r)}else i===27?(i=Tt,Ia(r.type)?(r=Am,Am=null,Tt=r):Tt=i):Tt=tn?Jn(r.stateNode.nextSibling):null;return!0}function pi(){Tt=tn=null,nt=!1}function ah(){var r=Ea;return r!==null&&(kn===null?kn=r:kn.push.apply(kn,r),Ea=null),r}function Fl(r){Ea===null?Ea=[r]:Ea.push(r)}var ih=z(null),gi=null,Fr=null;function Ta(r,i,o){O(ih,i._currentValue),i._currentValue=o}function qr(r){r._currentValue=ih.current,X(ih)}function sh(r,i,o){for(;r!==null;){var f=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,f!==null&&(f.childLanes|=i)):f!==null&&(f.childLanes&i)!==i&&(f.childLanes|=i),r===o)break;r=r.return}}function lh(r,i,o,f){var g=r.child;for(g!==null&&(g.return=r);g!==null;){var b=g.dependencies;if(b!==null){var A=g.child;b=b.firstContext;e:for(;b!==null;){var L=b;b=g;for(var V=0;V<i.length;V++)if(L.context===i[V]){b.lanes|=o,L=b.alternate,L!==null&&(L.lanes|=o),sh(b.return,o,r),f||(A=null);break e}b=L.next}}else if(g.tag===18){if(A=g.return,A===null)throw Error(a(341));A.lanes|=o,b=A.alternate,b!==null&&(b.lanes|=o),sh(A,o,r),A=null}else A=g.child;if(A!==null)A.return=g;else for(A=g;A!==null;){if(A===r){A=null;break}if(g=A.sibling,g!==null){g.return=A.return,A=g;break}A=A.return}g=A}}function _s(r,i,o,f){r=null;for(var g=i,b=!1;g!==null;){if(!b){if((g.flags&524288)!==0)b=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var A=g.alternate;if(A===null)throw Error(a(387));if(A=A.memoizedProps,A!==null){var L=g.type;In(g.pendingProps.value,A.value)||(r!==null?r.push(L):r=[L])}}else if(g===Se.current){if(A=g.alternate,A===null)throw Error(a(387));A.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(r!==null?r.push(go):r=[go])}g=g.return}r!==null&&lh(i,r,o,f),i.flags|=262144}function Hu(r){for(r=r.firstContext;r!==null;){if(!In(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function bi(r){gi=r,Fr=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function nn(r){return Z1(gi,r)}function Uu(r,i){return gi===null&&bi(r),Z1(r,i)}function Z1(r,i){var o=i._currentValue;if(i={context:i,memoizedValue:o,next:null},Fr===null){if(r===null)throw Error(a(308));Fr=i,r.dependencies={lanes:0,firstContext:i},r.flags|=524288}else Fr=Fr.next=i;return o}var Uk=typeof AbortController<"u"?AbortController:function(){var r=[],i=this.signal={aborted:!1,addEventListener:function(o,f){r.push(f)}};this.abort=function(){i.aborted=!0,r.forEach(function(o){return o()})}},zk=e.unstable_scheduleCallback,Fk=e.unstable_NormalPriority,Pt={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oh(){return{controller:new Uk,data:new Map,refCount:0}}function ql(r){r.refCount--,r.refCount===0&&zk(Fk,function(){r.controller.abort()})}var Vl=null,uh=0,As=0,ks=null;function qk(r,i){if(Vl===null){var o=Vl=[];uh=0,As=dm(),ks={status:"pending",value:void 0,then:function(f){o.push(f)}}}return uh++,i.then(J1,J1),i}function J1(){if(--uh===0&&Vl!==null){ks!==null&&(ks.status="fulfilled");var r=Vl;Vl=null,As=0,ks=null;for(var i=0;i<r.length;i++)(0,r[i])()}}function Vk(r,i){var o=[],f={status:"pending",value:null,reason:null,then:function(g){o.push(g)}};return r.then(function(){f.status="fulfilled",f.value=i;for(var g=0;g<o.length;g++)(0,o[g])(i)},function(g){for(f.status="rejected",f.reason=g,g=0;g<o.length;g++)(0,o[g])(void 0)}),f}var eb=B.S;B.S=function(r,i){By=Ye(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&qk(r,i),eb!==null&&eb(r,i)};var yi=z(null);function ch(){var r=yi.current;return r!==null?r:yt.pooledCache}function zu(r,i){i===null?O(yi,yi.current):O(yi,i.pool)}function tb(){var r=ch();return r===null?null:{parent:Pt._currentValue,pool:r}}var ws=Error(a(460)),fh=Error(a(474)),Fu=Error(a(542)),qu={then:function(){}};function nb(r){return r=r.status,r==="fulfilled"||r==="rejected"}function rb(r,i,o){switch(o=r[o],o===void 0?r.push(i):o!==i&&(i.then(jr,jr),i=o),i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,ib(r),r;default:if(typeof i.status=="string")i.then(jr,jr);else{if(r=yt,r!==null&&100<r.shellSuspendCounter)throw Error(a(482));r=i,r.status="pending",r.then(function(f){if(i.status==="pending"){var g=i;g.status="fulfilled",g.value=f}},function(f){if(i.status==="pending"){var g=i;g.status="rejected",g.reason=f}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,ib(r),r}throw xi=i,ws}}function Ei(r){try{var i=r._init;return i(r._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(xi=o,ws):o}}var xi=null;function ab(){if(xi===null)throw Error(a(459));var r=xi;return xi=null,r}function ib(r){if(r===ws||r===Fu)throw Error(a(483))}var Ns=null,Yl=0;function Vu(r){var i=Yl;return Yl+=1,Ns===null&&(Ns=[]),rb(Ns,r,i)}function $l(r,i){i=i.props.ref,r.ref=i!==void 0?i:null}function Yu(r,i){throw i.$$typeof===E?Error(a(525)):(r=Object.prototype.toString.call(i),Error(a(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r)))}function sb(r){function i(K,$){if(r){var te=K.deletions;te===null?(K.deletions=[$],K.flags|=16):te.push($)}}function o(K,$){if(!r)return null;for(;$!==null;)i(K,$),$=$.sibling;return null}function f(K){for(var $=new Map;K!==null;)K.key!==null?$.set(K.key,K):$.set(K.index,K),K=K.sibling;return $}function g(K,$){return K=Ur(K,$),K.index=0,K.sibling=null,K}function b(K,$,te){return K.index=te,r?(te=K.alternate,te!==null?(te=te.index,te<$?(K.flags|=67108866,$):te):(K.flags|=67108866,$)):(K.flags|=1048576,$)}function A(K){return r&&K.alternate===null&&(K.flags|=67108866),K}function L(K,$,te,he){return $===null||$.tag!==6?($=Jd(te,K.mode,he),$.return=K,$):($=g($,te),$.return=K,$)}function V(K,$,te,he){var Ne=te.type;return Ne===S?fe(K,$,te.props.children,he,te.key):$!==null&&($.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===H&&Ei(Ne)===$.type)?($=g($,te.props),$l($,te),$.return=K,$):($=Bu(te.type,te.key,te.props,null,K.mode,he),$l($,te),$.return=K,$)}function ne(K,$,te,he){return $===null||$.tag!==4||$.stateNode.containerInfo!==te.containerInfo||$.stateNode.implementation!==te.implementation?($=eh(te,K.mode,he),$.return=K,$):($=g($,te.children||[]),$.return=K,$)}function fe(K,$,te,he,Ne){return $===null||$.tag!==7?($=mi(te,K.mode,he,Ne),$.return=K,$):($=g($,te),$.return=K,$)}function me(K,$,te){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=Jd(""+$,K.mode,te),$.return=K,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case x:return te=Bu($.type,$.key,$.props,null,K.mode,te),$l(te,$),te.return=K,te;case v:return $=eh($,K.mode,te),$.return=K,$;case H:return $=Ei($),me(K,$,te)}if(ae($)||Q($))return $=mi($,K.mode,te,null),$.return=K,$;if(typeof $.then=="function")return me(K,Vu($),te);if($.$$typeof===w)return me(K,Uu(K,$),te);Yu(K,$)}return null}function re(K,$,te,he){var Ne=$!==null?$.key:null;if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return Ne!==null?null:L(K,$,""+te,he);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case x:return te.key===Ne?V(K,$,te,he):null;case v:return te.key===Ne?ne(K,$,te,he):null;case H:return te=Ei(te),re(K,$,te,he)}if(ae(te)||Q(te))return Ne!==null?null:fe(K,$,te,he,null);if(typeof te.then=="function")return re(K,$,Vu(te),he);if(te.$$typeof===w)return re(K,$,Uu(K,te),he);Yu(K,te)}return null}function ie(K,$,te,he,Ne){if(typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint")return K=K.get(te)||null,L($,K,""+he,Ne);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case x:return K=K.get(he.key===null?te:he.key)||null,V($,K,he,Ne);case v:return K=K.get(he.key===null?te:he.key)||null,ne($,K,he,Ne);case H:return he=Ei(he),ie(K,$,te,he,Ne)}if(ae(he)||Q(he))return K=K.get(te)||null,fe($,K,he,Ne,null);if(typeof he.then=="function")return ie(K,$,te,Vu(he),Ne);if(he.$$typeof===w)return ie(K,$,te,Uu($,he),Ne);Yu($,he)}return null}function Ae(K,$,te,he){for(var Ne=null,st=null,we=$,Fe=$=0,et=null;we!==null&&Fe<te.length;Fe++){we.index>Fe?(et=we,we=null):et=we.sibling;var lt=re(K,we,te[Fe],he);if(lt===null){we===null&&(we=et);break}r&&we&<.alternate===null&&i(K,we),$=b(lt,$,Fe),st===null?Ne=lt:st.sibling=lt,st=lt,we=et}if(Fe===te.length)return o(K,we),nt&&zr(K,Fe),Ne;if(we===null){for(;Fe<te.length;Fe++)we=me(K,te[Fe],he),we!==null&&($=b(we,$,Fe),st===null?Ne=we:st.sibling=we,st=we);return nt&&zr(K,Fe),Ne}for(we=f(we);Fe<te.length;Fe++)et=ie(we,K,Fe,te[Fe],he),et!==null&&(r&&et.alternate!==null&&we.delete(et.key===null?Fe:et.key),$=b(et,$,Fe),st===null?Ne=et:st.sibling=et,st=et);return r&&we.forEach(function(Ha){return i(K,Ha)}),nt&&zr(K,Fe),Ne}function De(K,$,te,he){if(te==null)throw Error(a(151));for(var Ne=null,st=null,we=$,Fe=$=0,et=null,lt=te.next();we!==null&&!lt.done;Fe++,lt=te.next()){we.index>Fe?(et=we,we=null):et=we.sibling;var Ha=re(K,we,lt.value,he);if(Ha===null){we===null&&(we=et);break}r&&we&&Ha.alternate===null&&i(K,we),$=b(Ha,$,Fe),st===null?Ne=Ha:st.sibling=Ha,st=Ha,we=et}if(lt.done)return o(K,we),nt&&zr(K,Fe),Ne;if(we===null){for(;!lt.done;Fe++,lt=te.next())lt=me(K,lt.value,he),lt!==null&&($=b(lt,$,Fe),st===null?Ne=lt:st.sibling=lt,st=lt);return nt&&zr(K,Fe),Ne}for(we=f(we);!lt.done;Fe++,lt=te.next())lt=ie(we,K,Fe,lt.value,he),lt!==null&&(r&<.alternate!==null&&we.delete(lt.key===null?Fe:lt.key),$=b(lt,$,Fe),st===null?Ne=lt:st.sibling=lt,st=lt);return r&&we.forEach(function(tN){return i(K,tN)}),nt&&zr(K,Fe),Ne}function pt(K,$,te,he){if(typeof te=="object"&&te!==null&&te.type===S&&te.key===null&&(te=te.props.children),typeof te=="object"&&te!==null){switch(te.$$typeof){case x:e:{for(var Ne=te.key;$!==null;){if($.key===Ne){if(Ne=te.type,Ne===S){if($.tag===7){o(K,$.sibling),he=g($,te.props.children),he.return=K,K=he;break e}}else if($.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===H&&Ei(Ne)===$.type){o(K,$.sibling),he=g($,te.props),$l(he,te),he.return=K,K=he;break e}o(K,$);break}else i(K,$);$=$.sibling}te.type===S?(he=mi(te.props.children,K.mode,he,te.key),he.return=K,K=he):(he=Bu(te.type,te.key,te.props,null,K.mode,he),$l(he,te),he.return=K,K=he)}return A(K);case v:e:{for(Ne=te.key;$!==null;){if($.key===Ne)if($.tag===4&&$.stateNode.containerInfo===te.containerInfo&&$.stateNode.implementation===te.implementation){o(K,$.sibling),he=g($,te.children||[]),he.return=K,K=he;break e}else{o(K,$);break}else i(K,$);$=$.sibling}he=eh(te,K.mode,he),he.return=K,K=he}return A(K);case H:return te=Ei(te),pt(K,$,te,he)}if(ae(te))return Ae(K,$,te,he);if(Q(te)){if(Ne=Q(te),typeof Ne!="function")throw Error(a(150));return te=Ne.call(te),De(K,$,te,he)}if(typeof te.then=="function")return pt(K,$,Vu(te),he);if(te.$$typeof===w)return pt(K,$,Uu(K,te),he);Yu(K,te)}return typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint"?(te=""+te,$!==null&&$.tag===6?(o(K,$.sibling),he=g($,te),he.return=K,K=he):(o(K,$),he=Jd(te,K.mode,he),he.return=K,K=he),A(K)):o(K,$)}return function(K,$,te,he){try{Yl=0;var Ne=pt(K,$,te,he);return Ns=null,Ne}catch(we){if(we===ws||we===Fu)throw we;var st=Mn(29,we,null,K.mode);return st.lanes=he,st.return=K,st}}}var Ti=sb(!0),lb=sb(!1),va=!1;function dh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hh(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Sa(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Ca(r,i,o){var f=r.updateQueue;if(f===null)return null;if(f=f.shared,(ot&2)!==0){var g=f.pending;return g===null?i.next=i:(i.next=g.next,g.next=i),f.pending=i,i=Pu(r),V1(r,null,o),i}return Mu(r,f,i,o),Pu(r)}function Gl(r,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var f=i.lanes;f&=r.pendingLanes,o|=f,i.lanes=o,Zg(r,o)}}function mh(r,i){var o=r.updateQueue,f=r.alternate;if(f!==null&&(f=f.updateQueue,o===f)){var g=null,b=null;if(o=o.firstBaseUpdate,o!==null){do{var A={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};b===null?g=b=A:b=b.next=A,o=o.next}while(o!==null);b===null?g=b=i:b=b.next=i}else g=b=i;o={baseState:f.baseState,firstBaseUpdate:g,lastBaseUpdate:b,shared:f.shared,callbacks:f.callbacks},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=i:r.next=i,o.lastBaseUpdate=i}var ph=!1;function Kl(){if(ph){var r=ks;if(r!==null)throw r}}function Xl(r,i,o,f){ph=!1;var g=r.updateQueue;va=!1;var b=g.firstBaseUpdate,A=g.lastBaseUpdate,L=g.shared.pending;if(L!==null){g.shared.pending=null;var V=L,ne=V.next;V.next=null,A===null?b=ne:A.next=ne,A=V;var fe=r.alternate;fe!==null&&(fe=fe.updateQueue,L=fe.lastBaseUpdate,L!==A&&(L===null?fe.firstBaseUpdate=ne:L.next=ne,fe.lastBaseUpdate=V))}if(b!==null){var me=g.baseState;A=0,fe=ne=V=null,L=b;do{var re=L.lane&-536870913,ie=re!==L.lane;if(ie?(Je&re)===re:(f&re)===re){re!==0&&re===As&&(ph=!0),fe!==null&&(fe=fe.next={lane:0,tag:L.tag,payload:L.payload,callback:null,next:null});e:{var Ae=r,De=L;re=i;var pt=o;switch(De.tag){case 1:if(Ae=De.payload,typeof Ae=="function"){me=Ae.call(pt,me,re);break e}me=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=De.payload,re=typeof Ae=="function"?Ae.call(pt,me,re):Ae,re==null)break e;me=p({},me,re);break e;case 2:va=!0}}re=L.callback,re!==null&&(r.flags|=64,ie&&(r.flags|=8192),ie=g.callbacks,ie===null?g.callbacks=[re]:ie.push(re))}else ie={lane:re,tag:L.tag,payload:L.payload,callback:L.callback,next:null},fe===null?(ne=fe=ie,V=me):fe=fe.next=ie,A|=re;if(L=L.next,L===null){if(L=g.shared.pending,L===null)break;ie=L,L=ie.next,ie.next=null,g.lastBaseUpdate=ie,g.shared.pending=null}}while(!0);fe===null&&(V=me),g.baseState=V,g.firstBaseUpdate=ne,g.lastBaseUpdate=fe,b===null&&(g.shared.lanes=0),Na|=A,r.lanes=A,r.memoizedState=me}}function ob(r,i){if(typeof r!="function")throw Error(a(191,r));r.call(i)}function ub(r,i){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)ob(o[r],i)}var Rs=z(null),$u=z(0);function cb(r,i){r=Zr,O($u,r),O(Rs,i),Zr=r|i.baseLanes}function gh(){O($u,Zr),O(Rs,Rs.current)}function bh(){Zr=$u.current,X(Rs),X($u)}var Pn=z(null),Zn=null;function _a(r){var i=r.alternate;O(Ot,Ot.current&1),O(Pn,r),Zn===null&&(i===null||Rs.current!==null||i.memoizedState!==null)&&(Zn=r)}function yh(r){O(Ot,Ot.current),O(Pn,r),Zn===null&&(Zn=r)}function fb(r){r.tag===22?(O(Ot,Ot.current),O(Pn,r),Zn===null&&(Zn=r)):Aa()}function Aa(){O(Ot,Ot.current),O(Pn,Pn.current)}function Bn(r){X(Pn),Zn===r&&(Zn=null),X(Ot)}var Ot=z(0);function Gu(r){for(var i=r;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Cm(o)||_m(o)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Vr=0,Ue=null,ht=null,Bt=null,Ku=!1,Os=!1,vi=!1,Xu=0,Ql=0,Ls=null,Yk=0;function wt(){throw Error(a(321))}function Eh(r,i){if(i===null)return!1;for(var o=0;o<i.length&&o<r.length;o++)if(!In(r[o],i[o]))return!1;return!0}function xh(r,i,o,f,g,b){return Vr=b,Ue=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,B.H=r===null||r.memoizedState===null?Kb:Mh,vi=!1,b=o(f,g),vi=!1,Os&&(b=hb(i,o,f,g)),db(r),b}function db(r){B.H=Jl;var i=ht!==null&&ht.next!==null;if(Vr=0,Bt=ht=Ue=null,Ku=!1,Ql=0,Ls=null,i)throw Error(a(300));r===null||jt||(r=r.dependencies,r!==null&&Hu(r)&&(jt=!0))}function hb(r,i,o,f){Ue=r;var g=0;do{if(Os&&(Ls=null),Ql=0,Os=!1,25<=g)throw Error(a(301));if(g+=1,Bt=ht=null,r.updateQueue!=null){var b=r.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}B.H=Xb,b=i(o,f)}while(Os);return b}function $k(){var r=B.H,i=r.useState()[0];return i=typeof i.then=="function"?Wl(i):i,r=r.useState()[0],(ht!==null?ht.memoizedState:null)!==r&&(Ue.flags|=1024),i}function Th(){var r=Xu!==0;return Xu=0,r}function vh(r,i,o){i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~o}function Sh(r){if(Ku){for(r=r.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Ku=!1}Vr=0,Bt=ht=Ue=null,Os=!1,Ql=Xu=0,Ls=null}function mn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bt===null?Ue.memoizedState=Bt=r:Bt=Bt.next=r,Bt}function Lt(){if(ht===null){var r=Ue.alternate;r=r!==null?r.memoizedState:null}else r=ht.next;var i=Bt===null?Ue.memoizedState:Bt.next;if(i!==null)Bt=i,ht=r;else{if(r===null)throw Ue.alternate===null?Error(a(467)):Error(a(310));ht=r,r={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},Bt===null?Ue.memoizedState=Bt=r:Bt=Bt.next=r}return Bt}function Qu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Wl(r){var i=Ql;return Ql+=1,Ls===null&&(Ls=[]),r=rb(Ls,r,i),i=Ue,(Bt===null?i.memoizedState:Bt.next)===null&&(i=i.alternate,B.H=i===null||i.memoizedState===null?Kb:Mh),r}function Wu(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Wl(r);if(r.$$typeof===w)return nn(r)}throw Error(a(438,String(r)))}function Ch(r){var i=null,o=Ue.updateQueue;if(o!==null&&(i=o.memoCache),i==null){var f=Ue.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(i={data:f.data.map(function(g){return g.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),o===null&&(o=Qu(),Ue.updateQueue=o),o.memoCache=i,o=i.data[i.index],o===void 0)for(o=i.data[i.index]=Array(r),f=0;f<r;f++)o[f]=U;return i.index++,o}function Yr(r,i){return typeof i=="function"?i(r):i}function Zu(r){var i=Lt();return _h(i,ht,r)}function _h(r,i,o){var f=r.queue;if(f===null)throw Error(a(311));f.lastRenderedReducer=o;var g=r.baseQueue,b=f.pending;if(b!==null){if(g!==null){var A=g.next;g.next=b.next,b.next=A}i.baseQueue=g=b,f.pending=null}if(b=r.baseState,g===null)r.memoizedState=b;else{i=g.next;var L=A=null,V=null,ne=i,fe=!1;do{var me=ne.lane&-536870913;if(me!==ne.lane?(Je&me)===me:(Vr&me)===me){var re=ne.revertLane;if(re===0)V!==null&&(V=V.next={lane:0,revertLane:0,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null}),me===As&&(fe=!0);else if((Vr&re)===re){ne=ne.next,re===As&&(fe=!0);continue}else me={lane:0,revertLane:ne.revertLane,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},V===null?(L=V=me,A=b):V=V.next=me,Ue.lanes|=re,Na|=re;me=ne.action,vi&&o(b,me),b=ne.hasEagerState?ne.eagerState:o(b,me)}else re={lane:me,revertLane:ne.revertLane,gesture:ne.gesture,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},V===null?(L=V=re,A=b):V=V.next=re,Ue.lanes|=me,Na|=me;ne=ne.next}while(ne!==null&&ne!==i);if(V===null?A=b:V.next=L,!In(b,r.memoizedState)&&(jt=!0,fe&&(o=ks,o!==null)))throw o;r.memoizedState=b,r.baseState=A,r.baseQueue=V,f.lastRenderedState=b}return g===null&&(f.lanes=0),[r.memoizedState,f.dispatch]}function Ah(r){var i=Lt(),o=i.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=r;var f=o.dispatch,g=o.pending,b=i.memoizedState;if(g!==null){o.pending=null;var A=g=g.next;do b=r(b,A.action),A=A.next;while(A!==g);In(b,i.memoizedState)||(jt=!0),i.memoizedState=b,i.baseQueue===null&&(i.baseState=b),o.lastRenderedState=b}return[b,f]}function mb(r,i,o){var f=Ue,g=Lt(),b=nt;if(b){if(o===void 0)throw Error(a(407));o=o()}else o=i();var A=!In((ht||g).memoizedState,o);if(A&&(g.memoizedState=o,jt=!0),g=g.queue,Nh(bb.bind(null,f,g,r),[r]),g.getSnapshot!==i||A||Bt!==null&&Bt.memoizedState.tag&1){if(f.flags|=2048,Ds(9,{destroy:void 0},gb.bind(null,f,g,o,i),null),yt===null)throw Error(a(349));b||(Vr&127)!==0||pb(f,i,o)}return o}function pb(r,i,o){r.flags|=16384,r={getSnapshot:i,value:o},i=Ue.updateQueue,i===null?(i=Qu(),Ue.updateQueue=i,i.stores=[r]):(o=i.stores,o===null?i.stores=[r]:o.push(r))}function gb(r,i,o,f){i.value=o,i.getSnapshot=f,yb(i)&&Eb(r)}function bb(r,i,o){return o(function(){yb(i)&&Eb(r)})}function yb(r){var i=r.getSnapshot;r=r.value;try{var o=i();return!In(r,o)}catch{return!0}}function Eb(r){var i=hi(r,2);i!==null&&wn(i,r,2)}function kh(r){var i=mn();if(typeof r=="function"){var o=r;if(r=o(),vi){Tn(!0);try{o()}finally{Tn(!1)}}}return i.memoizedState=i.baseState=r,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yr,lastRenderedState:r},i}function xb(r,i,o,f){return r.baseState=o,_h(r,ht,typeof f=="function"?f:Yr)}function Gk(r,i,o,f,g){if(tc(r))throw Error(a(485));if(r=i.action,r!==null){var b={payload:g,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){b.listeners.push(A)}};B.T!==null?o(!0):b.isTransition=!1,f(b),o=i.pending,o===null?(b.next=i.pending=b,Tb(i,b)):(b.next=o.next,i.pending=o.next=b)}}function Tb(r,i){var o=i.action,f=i.payload,g=r.state;if(i.isTransition){var b=B.T,A={};B.T=A;try{var L=o(g,f),V=B.S;V!==null&&V(A,L),vb(r,i,L)}catch(ne){wh(r,i,ne)}finally{b!==null&&A.types!==null&&(b.types=A.types),B.T=b}}else try{b=o(g,f),vb(r,i,b)}catch(ne){wh(r,i,ne)}}function vb(r,i,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(f){Sb(r,i,f)},function(f){return wh(r,i,f)}):Sb(r,i,o)}function Sb(r,i,o){i.status="fulfilled",i.value=o,Cb(i),r.state=o,i=r.pending,i!==null&&(o=i.next,o===i?r.pending=null:(o=o.next,i.next=o,Tb(r,o)))}function wh(r,i,o){var f=r.pending;if(r.pending=null,f!==null){f=f.next;do i.status="rejected",i.reason=o,Cb(i),i=i.next;while(i!==f)}r.action=null}function Cb(r){r=r.listeners;for(var i=0;i<r.length;i++)(0,r[i])()}function _b(r,i){return i}function Ab(r,i){if(nt){var o=yt.formState;if(o!==null){e:{var f=Ue;if(nt){if(Tt){t:{for(var g=Tt,b=Wn;g.nodeType!==8;){if(!b){g=null;break t}if(g=Jn(g.nextSibling),g===null){g=null;break t}}b=g.data,g=b==="F!"||b==="F"?g:null}if(g){Tt=Jn(g.nextSibling),f=g.data==="F!";break e}}xa(f)}f=!1}f&&(i=o[0])}}return o=mn(),o.memoizedState=o.baseState=i,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_b,lastRenderedState:i},o.queue=f,o=Yb.bind(null,Ue,f),f.dispatch=o,f=kh(!1),b=Ih.bind(null,Ue,!1,f.queue),f=mn(),g={state:i,dispatch:null,action:r,pending:null},f.queue=g,o=Gk.bind(null,Ue,g,b,o),g.dispatch=o,f.memoizedState=r,[i,o,!1]}function kb(r){var i=Lt();return wb(i,ht,r)}function wb(r,i,o){if(i=_h(r,i,_b)[0],r=Zu(Yr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var f=Wl(i)}catch(A){throw A===ws?Fu:A}else f=i;i=Lt();var g=i.queue,b=g.dispatch;return o!==i.memoizedState&&(Ue.flags|=2048,Ds(9,{destroy:void 0},Kk.bind(null,g,o),null)),[f,b,r]}function Kk(r,i){r.action=i}function Nb(r){var i=Lt(),o=ht;if(o!==null)return wb(i,o,r);Lt(),i=i.memoizedState,o=Lt();var f=o.queue.dispatch;return o.memoizedState=r,[i,f,!1]}function Ds(r,i,o,f){return r={tag:r,create:o,deps:f,inst:i,next:null},i=Ue.updateQueue,i===null&&(i=Qu(),Ue.updateQueue=i),o=i.lastEffect,o===null?i.lastEffect=r.next=r:(f=o.next,o.next=r,r.next=f,i.lastEffect=r),r}function Rb(){return Lt().memoizedState}function Ju(r,i,o,f){var g=mn();Ue.flags|=r,g.memoizedState=Ds(1|i,{destroy:void 0},o,f===void 0?null:f)}function ec(r,i,o,f){var g=Lt();f=f===void 0?null:f;var b=g.memoizedState.inst;ht!==null&&f!==null&&Eh(f,ht.memoizedState.deps)?g.memoizedState=Ds(i,b,o,f):(Ue.flags|=r,g.memoizedState=Ds(1|i,b,o,f))}function Ob(r,i){Ju(8390656,8,r,i)}function Nh(r,i){ec(2048,8,r,i)}function Xk(r){Ue.flags|=4;var i=Ue.updateQueue;if(i===null)i=Qu(),Ue.updateQueue=i,i.events=[r];else{var o=i.events;o===null?i.events=[r]:o.push(r)}}function Lb(r){var i=Lt().memoizedState;return Xk({ref:i,nextImpl:r}),function(){if((ot&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}function Db(r,i){return ec(4,2,r,i)}function Ib(r,i){return ec(4,4,r,i)}function Mb(r,i){if(typeof i=="function"){r=r();var o=i(r);return function(){typeof o=="function"?o():i(null)}}if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function Pb(r,i,o){o=o!=null?o.concat([r]):null,ec(4,4,Mb.bind(null,i,r),o)}function Rh(){}function Bb(r,i){var o=Lt();i=i===void 0?null:i;var f=o.memoizedState;return i!==null&&Eh(i,f[1])?f[0]:(o.memoizedState=[r,i],r)}function jb(r,i){var o=Lt();i=i===void 0?null:i;var f=o.memoizedState;if(i!==null&&Eh(i,f[1]))return f[0];if(f=r(),vi){Tn(!0);try{r()}finally{Tn(!1)}}return o.memoizedState=[f,i],f}function Oh(r,i,o){return o===void 0||(Vr&1073741824)!==0&&(Je&261930)===0?r.memoizedState=i:(r.memoizedState=o,r=Hy(),Ue.lanes|=r,Na|=r,o)}function Hb(r,i,o,f){return In(o,i)?o:Rs.current!==null?(r=Oh(r,o,f),In(r,i)||(jt=!0),r):(Vr&42)===0||(Vr&1073741824)!==0&&(Je&261930)===0?(jt=!0,r.memoizedState=o):(r=Hy(),Ue.lanes|=r,Na|=r,i)}function Ub(r,i,o,f,g){var b=G.p;G.p=b!==0&&8>b?b:8;var A=B.T,L={};B.T=L,Ih(r,!1,i,o);try{var V=g(),ne=B.S;if(ne!==null&&ne(L,V),V!==null&&typeof V=="object"&&typeof V.then=="function"){var fe=Vk(V,f);Zl(r,i,fe,Un(r))}else Zl(r,i,f,Un(r))}catch(me){Zl(r,i,{then:function(){},status:"rejected",reason:me},Un())}finally{G.p=b,A!==null&&L.types!==null&&(A.types=L.types),B.T=A}}function Qk(){}function Lh(r,i,o,f){if(r.tag!==5)throw Error(a(476));var g=zb(r).queue;Ub(r,g,i,oe,o===null?Qk:function(){return Fb(r),o(f)})}function zb(r){var i=r.memoizedState;if(i!==null)return i;i={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yr,lastRenderedState:oe},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yr,lastRenderedState:o},next:null},r.memoizedState=i,r=r.alternate,r!==null&&(r.memoizedState=i),i}function Fb(r){var i=zb(r);i.next===null&&(i=r.alternate.memoizedState),Zl(r,i.next.queue,{},Un())}function Dh(){return nn(go)}function qb(){return Lt().memoizedState}function Vb(){return Lt().memoizedState}function Wk(r){for(var i=r.return;i!==null;){switch(i.tag){case 24:case 3:var o=Un();r=Sa(o);var f=Ca(i,r,o);f!==null&&(wn(f,i,o),Gl(f,i,o)),i={cache:oh()},r.payload=i;return}i=i.return}}function Zk(r,i,o){var f=Un();o={lane:f,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},tc(r)?$b(i,o):(o=Wd(r,i,o,f),o!==null&&(wn(o,r,f),Gb(o,i,f)))}function Yb(r,i,o){var f=Un();Zl(r,i,o,f)}function Zl(r,i,o,f){var g={lane:f,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(tc(r))$b(i,g);else{var b=r.alternate;if(r.lanes===0&&(b===null||b.lanes===0)&&(b=i.lastRenderedReducer,b!==null))try{var A=i.lastRenderedState,L=b(A,o);if(g.hasEagerState=!0,g.eagerState=L,In(L,A))return Mu(r,i,g,0),yt===null&&Iu(),!1}catch{}if(o=Wd(r,i,g,f),o!==null)return wn(o,r,f),Gb(o,i,f),!0}return!1}function Ih(r,i,o,f){if(f={lane:2,revertLane:dm(),gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},tc(r)){if(i)throw Error(a(479))}else i=Wd(r,o,f,2),i!==null&&wn(i,r,2)}function tc(r){var i=r.alternate;return r===Ue||i!==null&&i===Ue}function $b(r,i){Os=Ku=!0;var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}function Gb(r,i,o){if((o&4194048)!==0){var f=i.lanes;f&=r.pendingLanes,o|=f,i.lanes=o,Zg(r,o)}}var Jl={readContext:nn,use:Wu,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt,useHostTransitionStatus:wt,useFormState:wt,useActionState:wt,useOptimistic:wt,useMemoCache:wt,useCacheRefresh:wt};Jl.useEffectEvent=wt;var Kb={readContext:nn,use:Wu,useCallback:function(r,i){return mn().memoizedState=[r,i===void 0?null:i],r},useContext:nn,useEffect:Ob,useImperativeHandle:function(r,i,o){o=o!=null?o.concat([r]):null,Ju(4194308,4,Mb.bind(null,i,r),o)},useLayoutEffect:function(r,i){return Ju(4194308,4,r,i)},useInsertionEffect:function(r,i){Ju(4,2,r,i)},useMemo:function(r,i){var o=mn();i=i===void 0?null:i;var f=r();if(vi){Tn(!0);try{r()}finally{Tn(!1)}}return o.memoizedState=[f,i],f},useReducer:function(r,i,o){var f=mn();if(o!==void 0){var g=o(i);if(vi){Tn(!0);try{o(i)}finally{Tn(!1)}}}else g=i;return f.memoizedState=f.baseState=g,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:g},f.queue=r,r=r.dispatch=Zk.bind(null,Ue,r),[f.memoizedState,r]},useRef:function(r){var i=mn();return r={current:r},i.memoizedState=r},useState:function(r){r=kh(r);var i=r.queue,o=Yb.bind(null,Ue,i);return i.dispatch=o,[r.memoizedState,o]},useDebugValue:Rh,useDeferredValue:function(r,i){var o=mn();return Oh(o,r,i)},useTransition:function(){var r=kh(!1);return r=Ub.bind(null,Ue,r.queue,!0,!1),mn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,i,o){var f=Ue,g=mn();if(nt){if(o===void 0)throw Error(a(407));o=o()}else{if(o=i(),yt===null)throw Error(a(349));(Je&127)!==0||pb(f,i,o)}g.memoizedState=o;var b={value:o,getSnapshot:i};return g.queue=b,Ob(bb.bind(null,f,b,r),[r]),f.flags|=2048,Ds(9,{destroy:void 0},gb.bind(null,f,b,o,i),null),o},useId:function(){var r=mn(),i=yt.identifierPrefix;if(nt){var o=Er,f=yr;o=(f&~(1<<32-bt(f)-1)).toString(32)+o,i="_"+i+"R_"+o,o=Xu++,0<o&&(i+="H"+o.toString(32)),i+="_"}else o=Yk++,i="_"+i+"r_"+o.toString(32)+"_";return r.memoizedState=i},useHostTransitionStatus:Dh,useFormState:Ab,useActionState:Ab,useOptimistic:function(r){var i=mn();i.memoizedState=i.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=o,i=Ih.bind(null,Ue,!0,o),o.dispatch=i,[r,i]},useMemoCache:Ch,useCacheRefresh:function(){return mn().memoizedState=Wk.bind(null,Ue)},useEffectEvent:function(r){var i=mn(),o={impl:r};return i.memoizedState=o,function(){if((ot&2)!==0)throw Error(a(440));return o.impl.apply(void 0,arguments)}}},Mh={readContext:nn,use:Wu,useCallback:Bb,useContext:nn,useEffect:Nh,useImperativeHandle:Pb,useInsertionEffect:Db,useLayoutEffect:Ib,useMemo:jb,useReducer:Zu,useRef:Rb,useState:function(){return Zu(Yr)},useDebugValue:Rh,useDeferredValue:function(r,i){var o=Lt();return Hb(o,ht.memoizedState,r,i)},useTransition:function(){var r=Zu(Yr)[0],i=Lt().memoizedState;return[typeof r=="boolean"?r:Wl(r),i]},useSyncExternalStore:mb,useId:qb,useHostTransitionStatus:Dh,useFormState:kb,useActionState:kb,useOptimistic:function(r,i){var o=Lt();return xb(o,ht,r,i)},useMemoCache:Ch,useCacheRefresh:Vb};Mh.useEffectEvent=Lb;var Xb={readContext:nn,use:Wu,useCallback:Bb,useContext:nn,useEffect:Nh,useImperativeHandle:Pb,useInsertionEffect:Db,useLayoutEffect:Ib,useMemo:jb,useReducer:Ah,useRef:Rb,useState:function(){return Ah(Yr)},useDebugValue:Rh,useDeferredValue:function(r,i){var o=Lt();return ht===null?Oh(o,r,i):Hb(o,ht.memoizedState,r,i)},useTransition:function(){var r=Ah(Yr)[0],i=Lt().memoizedState;return[typeof r=="boolean"?r:Wl(r),i]},useSyncExternalStore:mb,useId:qb,useHostTransitionStatus:Dh,useFormState:Nb,useActionState:Nb,useOptimistic:function(r,i){var o=Lt();return ht!==null?xb(o,ht,r,i):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:Ch,useCacheRefresh:Vb};Xb.useEffectEvent=Lb;function Ph(r,i,o,f){i=r.memoizedState,o=o(f,i),o=o==null?i:p({},i,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var Bh={enqueueSetState:function(r,i,o){r=r._reactInternals;var f=Un(),g=Sa(f);g.payload=i,o!=null&&(g.callback=o),i=Ca(r,g,f),i!==null&&(wn(i,r,f),Gl(i,r,f))},enqueueReplaceState:function(r,i,o){r=r._reactInternals;var f=Un(),g=Sa(f);g.tag=1,g.payload=i,o!=null&&(g.callback=o),i=Ca(r,g,f),i!==null&&(wn(i,r,f),Gl(i,r,f))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var o=Un(),f=Sa(o);f.tag=2,i!=null&&(f.callback=i),i=Ca(r,f,o),i!==null&&(wn(i,r,o),Gl(i,r,o))}};function Qb(r,i,o,f,g,b,A){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(f,b,A):i.prototype&&i.prototype.isPureReactComponent?!Hl(o,f)||!Hl(g,b):!0}function Wb(r,i,o,f){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,f),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,f),i.state!==r&&Bh.enqueueReplaceState(i,i.state,null)}function Si(r,i){var o=i;if("ref"in i){o={};for(var f in i)f!=="ref"&&(o[f]=i[f])}if(r=r.defaultProps){o===i&&(o=p({},o));for(var g in r)o[g]===void 0&&(o[g]=r[g])}return o}function Zb(r){Du(r)}function Jb(r){console.error(r)}function ey(r){Du(r)}function nc(r,i){try{var o=r.onUncaughtError;o(i.value,{componentStack:i.stack})}catch(f){setTimeout(function(){throw f})}}function ty(r,i,o){try{var f=r.onCaughtError;f(o.value,{componentStack:o.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function jh(r,i,o){return o=Sa(o),o.tag=3,o.payload={element:null},o.callback=function(){nc(r,i)},o}function ny(r){return r=Sa(r),r.tag=3,r}function ry(r,i,o,f){var g=o.type.getDerivedStateFromError;if(typeof g=="function"){var b=f.value;r.payload=function(){return g(b)},r.callback=function(){ty(i,o,f)}}var A=o.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(r.callback=function(){ty(i,o,f),typeof g!="function"&&(Ra===null?Ra=new Set([this]):Ra.add(this));var L=f.stack;this.componentDidCatch(f.value,{componentStack:L!==null?L:""})})}function Jk(r,i,o,f,g){if(o.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(i=o.alternate,i!==null&&_s(i,o,g,!0),o=Pn.current,o!==null){switch(o.tag){case 31:case 13:return Zn===null?mc():o.alternate===null&&Nt===0&&(Nt=3),o.flags&=-257,o.flags|=65536,o.lanes=g,f===qu?o.flags|=16384:(i=o.updateQueue,i===null?o.updateQueue=new Set([f]):i.add(f),um(r,f,g)),!1;case 22:return o.flags|=65536,f===qu?o.flags|=16384:(i=o.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([f])},o.updateQueue=i):(o=i.retryQueue,o===null?i.retryQueue=new Set([f]):o.add(f)),um(r,f,g)),!1}throw Error(a(435,o.tag))}return um(r,f,g),mc(),!1}if(nt)return i=Pn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=g,f!==rh&&(r=Error(a(422),{cause:f}),Fl(Kn(r,o)))):(f!==rh&&(i=Error(a(423),{cause:f}),Fl(Kn(i,o))),r=r.current.alternate,r.flags|=65536,g&=-g,r.lanes|=g,f=Kn(f,o),g=jh(r.stateNode,f,g),mh(r,g),Nt!==4&&(Nt=2)),!1;var b=Error(a(520),{cause:f});if(b=Kn(b,o),lo===null?lo=[b]:lo.push(b),Nt!==4&&(Nt=2),i===null)return!0;f=Kn(f,o),o=i;do{switch(o.tag){case 3:return o.flags|=65536,r=g&-g,o.lanes|=r,r=jh(o.stateNode,f,r),mh(o,r),!1;case 1:if(i=o.type,b=o.stateNode,(o.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Ra===null||!Ra.has(b))))return o.flags|=65536,g&=-g,o.lanes|=g,g=ny(g),ry(g,r,o,f),mh(o,g),!1}o=o.return}while(o!==null);return!1}var Hh=Error(a(461)),jt=!1;function rn(r,i,o,f){i.child=r===null?lb(i,null,o,f):Ti(i,r.child,o,f)}function ay(r,i,o,f,g){o=o.render;var b=i.ref;if("ref"in f){var A={};for(var L in f)L!=="ref"&&(A[L]=f[L])}else A=f;return bi(i),f=xh(r,i,o,A,b,g),L=Th(),r!==null&&!jt?(vh(r,i,g),$r(r,i,g)):(nt&&L&&th(i),i.flags|=1,rn(r,i,f,g),i.child)}function iy(r,i,o,f,g){if(r===null){var b=o.type;return typeof b=="function"&&!Zd(b)&&b.defaultProps===void 0&&o.compare===null?(i.tag=15,i.type=b,sy(r,i,b,f,g)):(r=Bu(o.type,null,f,i,i.mode,g),r.ref=i.ref,r.return=i,i.child=r)}if(b=r.child,!Gh(r,g)){var A=b.memoizedProps;if(o=o.compare,o=o!==null?o:Hl,o(A,f)&&r.ref===i.ref)return $r(r,i,g)}return i.flags|=1,r=Ur(b,f),r.ref=i.ref,r.return=i,i.child=r}function sy(r,i,o,f,g){if(r!==null){var b=r.memoizedProps;if(Hl(b,f)&&r.ref===i.ref)if(jt=!1,i.pendingProps=f=b,Gh(r,g))(r.flags&131072)!==0&&(jt=!0);else return i.lanes=r.lanes,$r(r,i,g)}return Uh(r,i,o,f,g)}function ly(r,i,o,f){var g=f.children,b=r!==null?r.memoizedState:null;if(r===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.mode==="hidden"){if((i.flags&128)!==0){if(b=b!==null?b.baseLanes|o:o,r!==null){for(f=i.child=r.child,g=0;f!==null;)g=g|f.lanes|f.childLanes,f=f.sibling;f=g&~b}else f=0,i.child=null;return oy(r,i,b,o,f)}if((o&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},r!==null&&zu(i,b!==null?b.cachePool:null),b!==null?cb(i,b):gh(),fb(i);else return f=i.lanes=536870912,oy(r,i,b!==null?b.baseLanes|o:o,o,f)}else b!==null?(zu(i,b.cachePool),cb(i,b),Aa(),i.memoizedState=null):(r!==null&&zu(i,null),gh(),Aa());return rn(r,i,g,o),i.child}function eo(r,i){return r!==null&&r.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function oy(r,i,o,f,g){var b=ch();return b=b===null?null:{parent:Pt._currentValue,pool:b},i.memoizedState={baseLanes:o,cachePool:b},r!==null&&zu(i,null),gh(),fb(i),r!==null&&_s(r,i,f,!0),i.childLanes=g,null}function rc(r,i){return i=ic({mode:i.mode,children:i.children},r.mode),i.ref=r.ref,r.child=i,i.return=r,i}function uy(r,i,o){return Ti(i,r.child,null,o),r=rc(i,i.pendingProps),r.flags|=2,Bn(i),i.memoizedState=null,r}function ew(r,i,o){var f=i.pendingProps,g=(i.flags&128)!==0;if(i.flags&=-129,r===null){if(nt){if(f.mode==="hidden")return r=rc(i,f),i.lanes=536870912,eo(null,r);if(yh(i),(r=Tt)?(r=TE(r,Wn),r=r!==null&&r.data==="&"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:ya!==null?{id:yr,overflow:Er}:null,retryLane:536870912,hydrationErrors:null},o=$1(r),o.return=i,i.child=o,tn=i,Tt=null)):r=null,r===null)throw xa(i);return i.lanes=536870912,null}return rc(i,f)}var b=r.memoizedState;if(b!==null){var A=b.dehydrated;if(yh(i),g)if(i.flags&256)i.flags&=-257,i=uy(r,i,o);else if(i.memoizedState!==null)i.child=r.child,i.flags|=128,i=null;else throw Error(a(558));else if(jt||_s(r,i,o,!1),g=(o&r.childLanes)!==0,jt||g){if(f=yt,f!==null&&(A=Jg(f,o),A!==0&&A!==b.retryLane))throw b.retryLane=A,hi(r,A),wn(f,r,A),Hh;mc(),i=uy(r,i,o)}else r=b.treeContext,Tt=Jn(A.nextSibling),tn=i,nt=!0,Ea=null,Wn=!1,r!==null&&X1(i,r),i=rc(i,f),i.flags|=4096;return i}return r=Ur(r.child,{mode:f.mode,children:f.children}),r.ref=i.ref,i.child=r,r.return=i,r}function ac(r,i){var o=i.ref;if(o===null)r!==null&&r.ref!==null&&(i.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(a(284));(r===null||r.ref!==o)&&(i.flags|=4194816)}}function Uh(r,i,o,f,g){return bi(i),o=xh(r,i,o,f,void 0,g),f=Th(),r!==null&&!jt?(vh(r,i,g),$r(r,i,g)):(nt&&f&&th(i),i.flags|=1,rn(r,i,o,g),i.child)}function cy(r,i,o,f,g,b){return bi(i),i.updateQueue=null,o=hb(i,f,o,g),db(r),f=Th(),r!==null&&!jt?(vh(r,i,b),$r(r,i,b)):(nt&&f&&th(i),i.flags|=1,rn(r,i,o,b),i.child)}function fy(r,i,o,f,g){if(bi(i),i.stateNode===null){var b=Ts,A=o.contextType;typeof A=="object"&&A!==null&&(b=nn(A)),b=new o(f,b),i.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Bh,i.stateNode=b,b._reactInternals=i,b=i.stateNode,b.props=f,b.state=i.memoizedState,b.refs={},dh(i),A=o.contextType,b.context=typeof A=="object"&&A!==null?nn(A):Ts,b.state=i.memoizedState,A=o.getDerivedStateFromProps,typeof A=="function"&&(Ph(i,o,A,f),b.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(A=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),A!==b.state&&Bh.enqueueReplaceState(b,b.state,null),Xl(i,f,b,g),Kl(),b.state=i.memoizedState),typeof b.componentDidMount=="function"&&(i.flags|=4194308),f=!0}else if(r===null){b=i.stateNode;var L=i.memoizedProps,V=Si(o,L);b.props=V;var ne=b.context,fe=o.contextType;A=Ts,typeof fe=="object"&&fe!==null&&(A=nn(fe));var me=o.getDerivedStateFromProps;fe=typeof me=="function"||typeof b.getSnapshotBeforeUpdate=="function",L=i.pendingProps!==L,fe||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(L||ne!==A)&&Wb(i,b,f,A),va=!1;var re=i.memoizedState;b.state=re,Xl(i,f,b,g),Kl(),ne=i.memoizedState,L||re!==ne||va?(typeof me=="function"&&(Ph(i,o,me,f),ne=i.memoizedState),(V=va||Qb(i,o,V,f,re,ne,A))?(fe||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(i.flags|=4194308)):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=f,i.memoizedState=ne),b.props=f,b.state=ne,b.context=A,f=V):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),f=!1)}else{b=i.stateNode,hh(r,i),A=i.memoizedProps,fe=Si(o,A),b.props=fe,me=i.pendingProps,re=b.context,ne=o.contextType,V=Ts,typeof ne=="object"&&ne!==null&&(V=nn(ne)),L=o.getDerivedStateFromProps,(ne=typeof L=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(A!==me||re!==V)&&Wb(i,b,f,V),va=!1,re=i.memoizedState,b.state=re,Xl(i,f,b,g),Kl();var ie=i.memoizedState;A!==me||re!==ie||va||r!==null&&r.dependencies!==null&&Hu(r.dependencies)?(typeof L=="function"&&(Ph(i,o,L,f),ie=i.memoizedState),(fe=va||Qb(i,o,fe,f,re,ie,V)||r!==null&&r.dependencies!==null&&Hu(r.dependencies))?(ne||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(f,ie,V),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(f,ie,V)),typeof b.componentDidUpdate=="function"&&(i.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof b.componentDidUpdate!="function"||A===r.memoizedProps&&re===r.memoizedState||(i.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||A===r.memoizedProps&&re===r.memoizedState||(i.flags|=1024),i.memoizedProps=f,i.memoizedState=ie),b.props=f,b.state=ie,b.context=V,f=fe):(typeof b.componentDidUpdate!="function"||A===r.memoizedProps&&re===r.memoizedState||(i.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||A===r.memoizedProps&&re===r.memoizedState||(i.flags|=1024),f=!1)}return b=f,ac(r,i),f=(i.flags&128)!==0,b||f?(b=i.stateNode,o=f&&typeof o.getDerivedStateFromError!="function"?null:b.render(),i.flags|=1,r!==null&&f?(i.child=Ti(i,r.child,null,g),i.child=Ti(i,null,o,g)):rn(r,i,o,g),i.memoizedState=b.state,r=i.child):r=$r(r,i,g),r}function dy(r,i,o,f){return pi(),i.flags|=256,rn(r,i,o,f),i.child}var zh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fh(r){return{baseLanes:r,cachePool:tb()}}function qh(r,i,o){return r=r!==null?r.childLanes&~o:0,i&&(r|=Hn),r}function hy(r,i,o){var f=i.pendingProps,g=!1,b=(i.flags&128)!==0,A;if((A=b)||(A=r!==null&&r.memoizedState===null?!1:(Ot.current&2)!==0),A&&(g=!0,i.flags&=-129),A=(i.flags&32)!==0,i.flags&=-33,r===null){if(nt){if(g?_a(i):Aa(),(r=Tt)?(r=TE(r,Wn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:ya!==null?{id:yr,overflow:Er}:null,retryLane:536870912,hydrationErrors:null},o=$1(r),o.return=i,i.child=o,tn=i,Tt=null)):r=null,r===null)throw xa(i);return _m(r)?i.lanes=32:i.lanes=536870912,null}var L=f.children;return f=f.fallback,g?(Aa(),g=i.mode,L=ic({mode:"hidden",children:L},g),f=mi(f,g,o,null),L.return=i,f.return=i,L.sibling=f,i.child=L,f=i.child,f.memoizedState=Fh(o),f.childLanes=qh(r,A,o),i.memoizedState=zh,eo(null,f)):(_a(i),Vh(i,L))}var V=r.memoizedState;if(V!==null&&(L=V.dehydrated,L!==null)){if(b)i.flags&256?(_a(i),i.flags&=-257,i=Yh(r,i,o)):i.memoizedState!==null?(Aa(),i.child=r.child,i.flags|=128,i=null):(Aa(),L=f.fallback,g=i.mode,f=ic({mode:"visible",children:f.children},g),L=mi(L,g,o,null),L.flags|=2,f.return=i,L.return=i,f.sibling=L,i.child=f,Ti(i,r.child,null,o),f=i.child,f.memoizedState=Fh(o),f.childLanes=qh(r,A,o),i.memoizedState=zh,i=eo(null,f));else if(_a(i),_m(L)){if(A=L.nextSibling&&L.nextSibling.dataset,A)var ne=A.dgst;A=ne,f=Error(a(419)),f.stack="",f.digest=A,Fl({value:f,source:null,stack:null}),i=Yh(r,i,o)}else if(jt||_s(r,i,o,!1),A=(o&r.childLanes)!==0,jt||A){if(A=yt,A!==null&&(f=Jg(A,o),f!==0&&f!==V.retryLane))throw V.retryLane=f,hi(r,f),wn(A,r,f),Hh;Cm(L)||mc(),i=Yh(r,i,o)}else Cm(L)?(i.flags|=192,i.child=r.child,i=null):(r=V.treeContext,Tt=Jn(L.nextSibling),tn=i,nt=!0,Ea=null,Wn=!1,r!==null&&X1(i,r),i=Vh(i,f.children),i.flags|=4096);return i}return g?(Aa(),L=f.fallback,g=i.mode,V=r.child,ne=V.sibling,f=Ur(V,{mode:"hidden",children:f.children}),f.subtreeFlags=V.subtreeFlags&65011712,ne!==null?L=Ur(ne,L):(L=mi(L,g,o,null),L.flags|=2),L.return=i,f.return=i,f.sibling=L,i.child=f,eo(null,f),f=i.child,L=r.child.memoizedState,L===null?L=Fh(o):(g=L.cachePool,g!==null?(V=Pt._currentValue,g=g.parent!==V?{parent:V,pool:V}:g):g=tb(),L={baseLanes:L.baseLanes|o,cachePool:g}),f.memoizedState=L,f.childLanes=qh(r,A,o),i.memoizedState=zh,eo(r.child,f)):(_a(i),o=r.child,r=o.sibling,o=Ur(o,{mode:"visible",children:f.children}),o.return=i,o.sibling=null,r!==null&&(A=i.deletions,A===null?(i.deletions=[r],i.flags|=16):A.push(r)),i.child=o,i.memoizedState=null,o)}function Vh(r,i){return i=ic({mode:"visible",children:i},r.mode),i.return=r,r.child=i}function ic(r,i){return r=Mn(22,r,null,i),r.lanes=0,r}function Yh(r,i,o){return Ti(i,r.child,null,o),r=Vh(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function my(r,i,o){r.lanes|=i;var f=r.alternate;f!==null&&(f.lanes|=i),sh(r.return,i,o)}function $h(r,i,o,f,g,b){var A=r.memoizedState;A===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:f,tail:o,tailMode:g,treeForkCount:b}:(A.isBackwards=i,A.rendering=null,A.renderingStartTime=0,A.last=f,A.tail=o,A.tailMode=g,A.treeForkCount=b)}function py(r,i,o){var f=i.pendingProps,g=f.revealOrder,b=f.tail;f=f.children;var A=Ot.current,L=(A&2)!==0;if(L?(A=A&1|2,i.flags|=128):A&=1,O(Ot,A),rn(r,i,f,o),f=nt?zl:0,!L&&r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&my(r,o,i);else if(r.tag===19)my(r,o,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(g){case"forwards":for(o=i.child,g=null;o!==null;)r=o.alternate,r!==null&&Gu(r)===null&&(g=o),o=o.sibling;o=g,o===null?(g=i.child,i.child=null):(g=o.sibling,o.sibling=null),$h(i,!1,g,o,b,f);break;case"backwards":case"unstable_legacy-backwards":for(o=null,g=i.child,i.child=null;g!==null;){if(r=g.alternate,r!==null&&Gu(r)===null){i.child=g;break}r=g.sibling,g.sibling=o,o=g,g=r}$h(i,!0,o,null,b,f);break;case"together":$h(i,!1,null,null,void 0,f);break;default:i.memoizedState=null}return i.child}function $r(r,i,o){if(r!==null&&(i.dependencies=r.dependencies),Na|=i.lanes,(o&i.childLanes)===0)if(r!==null){if(_s(r,i,o,!1),(o&i.childLanes)===0)return null}else return null;if(r!==null&&i.child!==r.child)throw Error(a(153));if(i.child!==null){for(r=i.child,o=Ur(r,r.pendingProps),i.child=o,o.return=i;r.sibling!==null;)r=r.sibling,o=o.sibling=Ur(r,r.pendingProps),o.return=i;o.sibling=null}return i.child}function Gh(r,i){return(r.lanes&i)!==0?!0:(r=r.dependencies,!!(r!==null&&Hu(r)))}function tw(r,i,o){switch(i.tag){case 3:Te(i,i.stateNode.containerInfo),Ta(i,Pt,r.memoizedState.cache),pi();break;case 27:case 5:Pe(i);break;case 4:Te(i,i.stateNode.containerInfo);break;case 10:Ta(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,yh(i),null;break;case 13:var f=i.memoizedState;if(f!==null)return f.dehydrated!==null?(_a(i),i.flags|=128,null):(o&i.child.childLanes)!==0?hy(r,i,o):(_a(i),r=$r(r,i,o),r!==null?r.sibling:null);_a(i);break;case 19:var g=(r.flags&128)!==0;if(f=(o&i.childLanes)!==0,f||(_s(r,i,o,!1),f=(o&i.childLanes)!==0),g){if(f)return py(r,i,o);i.flags|=128}if(g=i.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),O(Ot,Ot.current),f)break;return null;case 22:return i.lanes=0,ly(r,i,o,i.pendingProps);case 24:Ta(i,Pt,r.memoizedState.cache)}return $r(r,i,o)}function gy(r,i,o){if(r!==null)if(r.memoizedProps!==i.pendingProps)jt=!0;else{if(!Gh(r,o)&&(i.flags&128)===0)return jt=!1,tw(r,i,o);jt=(r.flags&131072)!==0}else jt=!1,nt&&(i.flags&1048576)!==0&&K1(i,zl,i.index);switch(i.lanes=0,i.tag){case 16:e:{var f=i.pendingProps;if(r=Ei(i.elementType),i.type=r,typeof r=="function")Zd(r)?(f=Si(r,f),i.tag=1,i=fy(null,i,r,f,o)):(i.tag=0,i=Uh(null,i,r,f,o));else{if(r!=null){var g=r.$$typeof;if(g===I){i.tag=11,i=ay(null,i,r,f,o);break e}else if(g===M){i.tag=14,i=iy(null,i,r,f,o);break e}}throw i=ue(r)||r,Error(a(306,i,""))}}return i;case 0:return Uh(r,i,i.type,i.pendingProps,o);case 1:return f=i.type,g=Si(f,i.pendingProps),fy(r,i,f,g,o);case 3:e:{if(Te(i,i.stateNode.containerInfo),r===null)throw Error(a(387));f=i.pendingProps;var b=i.memoizedState;g=b.element,hh(r,i),Xl(i,f,null,o);var A=i.memoizedState;if(f=A.cache,Ta(i,Pt,f),f!==b.cache&&lh(i,[Pt],o,!0),Kl(),f=A.element,b.isDehydrated)if(b={element:f,isDehydrated:!1,cache:A.cache},i.updateQueue.baseState=b,i.memoizedState=b,i.flags&256){i=dy(r,i,f,o);break e}else if(f!==g){g=Kn(Error(a(424)),i),Fl(g),i=dy(r,i,f,o);break e}else for(r=i.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,Tt=Jn(r.firstChild),tn=i,nt=!0,Ea=null,Wn=!0,o=lb(i,null,f,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(pi(),f===g){i=$r(r,i,o);break e}rn(r,i,f,o)}i=i.child}return i;case 26:return ac(r,i),r===null?(o=kE(i.type,null,i.pendingProps,null))?i.memoizedState=o:nt||(o=i.type,r=i.pendingProps,f=Tc(pe.current).createElement(o),f[en]=i,f[vn]=r,an(f,o,r),Gt(f),i.stateNode=f):i.memoizedState=kE(i.type,r.memoizedProps,i.pendingProps,r.memoizedState),null;case 27:return Pe(i),r===null&&nt&&(f=i.stateNode=CE(i.type,i.pendingProps,pe.current),tn=i,Wn=!0,g=Tt,Ia(i.type)?(Am=g,Tt=Jn(f.firstChild)):Tt=g),rn(r,i,i.pendingProps.children,o),ac(r,i),r===null&&(i.flags|=4194304),i.child;case 5:return r===null&&nt&&((g=f=Tt)&&(f=Ow(f,i.type,i.pendingProps,Wn),f!==null?(i.stateNode=f,tn=i,Tt=Jn(f.firstChild),Wn=!1,g=!0):g=!1),g||xa(i)),Pe(i),g=i.type,b=i.pendingProps,A=r!==null?r.memoizedProps:null,f=b.children,Tm(g,b)?f=null:A!==null&&Tm(g,A)&&(i.flags|=32),i.memoizedState!==null&&(g=xh(r,i,$k,null,null,o),go._currentValue=g),ac(r,i),rn(r,i,f,o),i.child;case 6:return r===null&&nt&&((r=o=Tt)&&(o=Lw(o,i.pendingProps,Wn),o!==null?(i.stateNode=o,tn=i,Tt=null,r=!0):r=!1),r||xa(i)),null;case 13:return hy(r,i,o);case 4:return Te(i,i.stateNode.containerInfo),f=i.pendingProps,r===null?i.child=Ti(i,null,f,o):rn(r,i,f,o),i.child;case 11:return ay(r,i,i.type,i.pendingProps,o);case 7:return rn(r,i,i.pendingProps,o),i.child;case 8:return rn(r,i,i.pendingProps.children,o),i.child;case 12:return rn(r,i,i.pendingProps.children,o),i.child;case 10:return f=i.pendingProps,Ta(i,i.type,f.value),rn(r,i,f.children,o),i.child;case 9:return g=i.type._context,f=i.pendingProps.children,bi(i),g=nn(g),f=f(g),i.flags|=1,rn(r,i,f,o),i.child;case 14:return iy(r,i,i.type,i.pendingProps,o);case 15:return sy(r,i,i.type,i.pendingProps,o);case 19:return py(r,i,o);case 31:return ew(r,i,o);case 22:return ly(r,i,o,i.pendingProps);case 24:return bi(i),f=nn(Pt),r===null?(g=ch(),g===null&&(g=yt,b=oh(),g.pooledCache=b,b.refCount++,b!==null&&(g.pooledCacheLanes|=o),g=b),i.memoizedState={parent:f,cache:g},dh(i),Ta(i,Pt,g)):((r.lanes&o)!==0&&(hh(r,i),Xl(i,null,null,o),Kl()),g=r.memoizedState,b=i.memoizedState,g.parent!==f?(g={parent:f,cache:f},i.memoizedState=g,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=g),Ta(i,Pt,f)):(f=b.cache,Ta(i,Pt,f),f!==g.cache&&lh(i,[Pt],o,!0))),rn(r,i,i.pendingProps.children,o),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function Gr(r){r.flags|=4}function Kh(r,i,o,f,g){if((i=(r.mode&32)!==0)&&(i=!1),i){if(r.flags|=16777216,(g&335544128)===g)if(r.stateNode.complete)r.flags|=8192;else if(qy())r.flags|=8192;else throw xi=qu,fh}else r.flags&=-16777217}function by(r,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!LE(i))if(qy())r.flags|=8192;else throw xi=qu,fh}function sc(r,i){i!==null&&(r.flags|=4),r.flags&16384&&(i=r.tag!==22?Qg():536870912,r.lanes|=i,Bs|=i)}function to(r,i){if(!nt)switch(r.tailMode){case"hidden":i=r.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:f.sibling=null}}function vt(r){var i=r.alternate!==null&&r.alternate.child===r.child,o=0,f=0;if(i)for(var g=r.child;g!==null;)o|=g.lanes|g.childLanes,f|=g.subtreeFlags&65011712,f|=g.flags&65011712,g.return=r,g=g.sibling;else for(g=r.child;g!==null;)o|=g.lanes|g.childLanes,f|=g.subtreeFlags,f|=g.flags,g.return=r,g=g.sibling;return r.subtreeFlags|=f,r.childLanes=o,i}function nw(r,i,o){var f=i.pendingProps;switch(nh(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(i),null;case 1:return vt(i),null;case 3:return o=i.stateNode,f=null,r!==null&&(f=r.memoizedState.cache),i.memoizedState.cache!==f&&(i.flags|=2048),qr(Pt),Ee(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(Cs(i)?Gr(i):r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,ah())),vt(i),null;case 26:var g=i.type,b=i.memoizedState;return r===null?(Gr(i),b!==null?(vt(i),by(i,b)):(vt(i),Kh(i,g,null,f,o))):b?b!==r.memoizedState?(Gr(i),vt(i),by(i,b)):(vt(i),i.flags&=-16777217):(r=r.memoizedProps,r!==f&&Gr(i),vt(i),Kh(i,g,r,f,o)),null;case 27:if(Le(i),o=pe.current,g=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==f&&Gr(i);else{if(!f){if(i.stateNode===null)throw Error(a(166));return vt(i),null}r=Z.current,Cs(i)?Q1(i):(r=CE(g,f,o),i.stateNode=r,Gr(i))}return vt(i),null;case 5:if(Le(i),g=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==f&&Gr(i);else{if(!f){if(i.stateNode===null)throw Error(a(166));return vt(i),null}if(b=Z.current,Cs(i))Q1(i);else{var A=Tc(pe.current);switch(b){case 1:b=A.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:b=A.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":b=A.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":b=A.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":b=A.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof f.is=="string"?A.createElement("select",{is:f.is}):A.createElement("select"),f.multiple?b.multiple=!0:f.size&&(b.size=f.size);break;default:b=typeof f.is=="string"?A.createElement(g,{is:f.is}):A.createElement(g)}}b[en]=i,b[vn]=f;e:for(A=i.child;A!==null;){if(A.tag===5||A.tag===6)b.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===i)break e;for(;A.sibling===null;){if(A.return===null||A.return===i)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}i.stateNode=b;e:switch(an(b,g,f),g){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}f&&Gr(i)}}return vt(i),Kh(i,i.type,r===null?null:r.memoizedProps,i.pendingProps,o),null;case 6:if(r&&i.stateNode!=null)r.memoizedProps!==f&&Gr(i);else{if(typeof f!="string"&&i.stateNode===null)throw Error(a(166));if(r=pe.current,Cs(i)){if(r=i.stateNode,o=i.memoizedProps,f=null,g=tn,g!==null)switch(g.tag){case 27:case 5:f=g.memoizedProps}r[en]=i,r=!!(r.nodeValue===o||f!==null&&f.suppressHydrationWarning===!0||hE(r.nodeValue,o)),r||xa(i,!0)}else r=Tc(r).createTextNode(f),r[en]=i,i.stateNode=r}return vt(i),null;case 31:if(o=i.memoizedState,r===null||r.memoizedState!==null){if(f=Cs(i),o!==null){if(r===null){if(!f)throw Error(a(318));if(r=i.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(557));r[en]=i}else pi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;vt(i),r=!1}else o=ah(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=o),r=!0;if(!r)return i.flags&256?(Bn(i),i):(Bn(i),null);if((i.flags&128)!==0)throw Error(a(558))}return vt(i),null;case 13:if(f=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(g=Cs(i),f!==null&&f.dehydrated!==null){if(r===null){if(!g)throw Error(a(318));if(g=i.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(a(317));g[en]=i}else pi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;vt(i),g=!1}else g=ah(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=g),g=!0;if(!g)return i.flags&256?(Bn(i),i):(Bn(i),null)}return Bn(i),(i.flags&128)!==0?(i.lanes=o,i):(o=f!==null,r=r!==null&&r.memoizedState!==null,o&&(f=i.child,g=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(g=f.alternate.memoizedState.cachePool.pool),b=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(b=f.memoizedState.cachePool.pool),b!==g&&(f.flags|=2048)),o!==r&&o&&(i.child.flags|=8192),sc(i,i.updateQueue),vt(i),null);case 4:return Ee(),r===null&&gm(i.stateNode.containerInfo),vt(i),null;case 10:return qr(i.type),vt(i),null;case 19:if(X(Ot),f=i.memoizedState,f===null)return vt(i),null;if(g=(i.flags&128)!==0,b=f.rendering,b===null)if(g)to(f,!1);else{if(Nt!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(b=Gu(r),b!==null){for(i.flags|=128,to(f,!1),r=b.updateQueue,i.updateQueue=r,sc(i,r),i.subtreeFlags=0,r=o,o=i.child;o!==null;)Y1(o,r),o=o.sibling;return O(Ot,Ot.current&1|2),nt&&zr(i,f.treeForkCount),i.child}r=r.sibling}f.tail!==null&&Ye()>fc&&(i.flags|=128,g=!0,to(f,!1),i.lanes=4194304)}else{if(!g)if(r=Gu(b),r!==null){if(i.flags|=128,g=!0,r=r.updateQueue,i.updateQueue=r,sc(i,r),to(f,!0),f.tail===null&&f.tailMode==="hidden"&&!b.alternate&&!nt)return vt(i),null}else 2*Ye()-f.renderingStartTime>fc&&o!==536870912&&(i.flags|=128,g=!0,to(f,!1),i.lanes=4194304);f.isBackwards?(b.sibling=i.child,i.child=b):(r=f.last,r!==null?r.sibling=b:i.child=b,f.last=b)}return f.tail!==null?(r=f.tail,f.rendering=r,f.tail=r.sibling,f.renderingStartTime=Ye(),r.sibling=null,o=Ot.current,O(Ot,g?o&1|2:o&1),nt&&zr(i,f.treeForkCount),r):(vt(i),null);case 22:case 23:return Bn(i),bh(),f=i.memoizedState!==null,r!==null?r.memoizedState!==null!==f&&(i.flags|=8192):f&&(i.flags|=8192),f?(o&536870912)!==0&&(i.flags&128)===0&&(vt(i),i.subtreeFlags&6&&(i.flags|=8192)):vt(i),o=i.updateQueue,o!==null&&sc(i,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),f=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==o&&(i.flags|=2048),r!==null&&X(yi),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),qr(Pt),vt(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function rw(r,i){switch(nh(i),i.tag){case 1:return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return qr(Pt),Ee(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 26:case 27:case 5:return Le(i),null;case 31:if(i.memoizedState!==null){if(Bn(i),i.alternate===null)throw Error(a(340));pi()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 13:if(Bn(i),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(a(340));pi()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return X(Ot),null;case 4:return Ee(),null;case 10:return qr(i.type),null;case 22:case 23:return Bn(i),bh(),r!==null&&X(yi),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 24:return qr(Pt),null;case 25:return null;default:return null}}function yy(r,i){switch(nh(i),i.tag){case 3:qr(Pt),Ee();break;case 26:case 27:case 5:Le(i);break;case 4:Ee();break;case 31:i.memoizedState!==null&&Bn(i);break;case 13:Bn(i);break;case 19:X(Ot);break;case 10:qr(i.type);break;case 22:case 23:Bn(i),bh(),r!==null&&X(yi);break;case 24:qr(Pt)}}function no(r,i){try{var o=i.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var g=f.next;o=g;do{if((o.tag&r)===r){f=void 0;var b=o.create,A=o.inst;f=b(),A.destroy=f}o=o.next}while(o!==g)}}catch(L){ft(i,i.return,L)}}function ka(r,i,o){try{var f=i.updateQueue,g=f!==null?f.lastEffect:null;if(g!==null){var b=g.next;f=b;do{if((f.tag&r)===r){var A=f.inst,L=A.destroy;if(L!==void 0){A.destroy=void 0,g=i;var V=o,ne=L;try{ne()}catch(fe){ft(g,V,fe)}}}f=f.next}while(f!==b)}}catch(fe){ft(i,i.return,fe)}}function Ey(r){var i=r.updateQueue;if(i!==null){var o=r.stateNode;try{ub(i,o)}catch(f){ft(r,r.return,f)}}}function xy(r,i,o){o.props=Si(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(f){ft(r,i,f)}}function ro(r,i){try{var o=r.ref;if(o!==null){switch(r.tag){case 26:case 27:case 5:var f=r.stateNode;break;case 30:f=r.stateNode;break;default:f=r.stateNode}typeof o=="function"?r.refCleanup=o(f):o.current=f}}catch(g){ft(r,i,g)}}function xr(r,i){var o=r.ref,f=r.refCleanup;if(o!==null)if(typeof f=="function")try{f()}catch(g){ft(r,i,g)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(g){ft(r,i,g)}else o.current=null}function Ty(r){var i=r.type,o=r.memoizedProps,f=r.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&f.focus();break e;case"img":o.src?f.src=o.src:o.srcSet&&(f.srcset=o.srcSet)}}catch(g){ft(r,r.return,g)}}function Xh(r,i,o){try{var f=r.stateNode;_w(f,r.type,o,i),f[vn]=i}catch(g){ft(r,r.return,g)}}function vy(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Ia(r.type)||r.tag===4}function Qh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||vy(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Ia(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Wh(r,i,o){var f=r.tag;if(f===5||f===6)r=r.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(r,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(r),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=jr));else if(f!==4&&(f===27&&Ia(r.type)&&(o=r.stateNode,i=null),r=r.child,r!==null))for(Wh(r,i,o),r=r.sibling;r!==null;)Wh(r,i,o),r=r.sibling}function lc(r,i,o){var f=r.tag;if(f===5||f===6)r=r.stateNode,i?o.insertBefore(r,i):o.appendChild(r);else if(f!==4&&(f===27&&Ia(r.type)&&(o=r.stateNode),r=r.child,r!==null))for(lc(r,i,o),r=r.sibling;r!==null;)lc(r,i,o),r=r.sibling}function Sy(r){var i=r.stateNode,o=r.memoizedProps;try{for(var f=r.type,g=i.attributes;g.length;)i.removeAttributeNode(g[0]);an(i,f,o),i[en]=r,i[vn]=o}catch(b){ft(r,r.return,b)}}var Kr=!1,Ht=!1,Zh=!1,Cy=typeof WeakSet=="function"?WeakSet:Set,Kt=null;function aw(r,i){if(r=r.containerInfo,Em=wc,r=P1(r),Yd(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var f=o.getSelection&&o.getSelection();if(f&&f.rangeCount!==0){o=f.anchorNode;var g=f.anchorOffset,b=f.focusNode;f=f.focusOffset;try{o.nodeType,b.nodeType}catch{o=null;break e}var A=0,L=-1,V=-1,ne=0,fe=0,me=r,re=null;t:for(;;){for(var ie;me!==o||g!==0&&me.nodeType!==3||(L=A+g),me!==b||f!==0&&me.nodeType!==3||(V=A+f),me.nodeType===3&&(A+=me.nodeValue.length),(ie=me.firstChild)!==null;)re=me,me=ie;for(;;){if(me===r)break t;if(re===o&&++ne===g&&(L=A),re===b&&++fe===f&&(V=A),(ie=me.nextSibling)!==null)break;me=re,re=me.parentNode}me=ie}o=L===-1||V===-1?null:{start:L,end:V}}else o=null}o=o||{start:0,end:0}}else o=null;for(xm={focusedElem:r,selectionRange:o},wc=!1,Kt=i;Kt!==null;)if(i=Kt,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,Kt=r;else for(;Kt!==null;){switch(i=Kt,b=i.alternate,r=i.flags,i.tag){case 0:if((r&4)!==0&&(r=i.updateQueue,r=r!==null?r.events:null,r!==null))for(o=0;o<r.length;o++)g=r[o],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&b!==null){r=void 0,o=i,g=b.memoizedProps,b=b.memoizedState,f=o.stateNode;try{var Ae=Si(o.type,g);r=f.getSnapshotBeforeUpdate(Ae,b),f.__reactInternalSnapshotBeforeUpdate=r}catch(De){ft(o,o.return,De)}}break;case 3:if((r&1024)!==0){if(r=i.stateNode.containerInfo,o=r.nodeType,o===9)Sm(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Sm(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(a(163))}if(r=i.sibling,r!==null){r.return=i.return,Kt=r;break}Kt=i.return}}function _y(r,i,o){var f=o.flags;switch(o.tag){case 0:case 11:case 15:Qr(r,o),f&4&&no(5,o);break;case 1:if(Qr(r,o),f&4)if(r=o.stateNode,i===null)try{r.componentDidMount()}catch(A){ft(o,o.return,A)}else{var g=Si(o.type,i.memoizedProps);i=i.memoizedState;try{r.componentDidUpdate(g,i,r.__reactInternalSnapshotBeforeUpdate)}catch(A){ft(o,o.return,A)}}f&64&&Ey(o),f&512&&ro(o,o.return);break;case 3:if(Qr(r,o),f&64&&(r=o.updateQueue,r!==null)){if(i=null,o.child!==null)switch(o.child.tag){case 27:case 5:i=o.child.stateNode;break;case 1:i=o.child.stateNode}try{ub(r,i)}catch(A){ft(o,o.return,A)}}break;case 27:i===null&&f&4&&Sy(o);case 26:case 5:Qr(r,o),i===null&&f&4&&Ty(o),f&512&&ro(o,o.return);break;case 12:Qr(r,o);break;case 31:Qr(r,o),f&4&&wy(r,o);break;case 13:Qr(r,o),f&4&&Ny(r,o),f&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=hw.bind(null,o),Dw(r,o))));break;case 22:if(f=o.memoizedState!==null||Kr,!f){i=i!==null&&i.memoizedState!==null||Ht,g=Kr;var b=Ht;Kr=f,(Ht=i)&&!b?Wr(r,o,(o.subtreeFlags&8772)!==0):Qr(r,o),Kr=g,Ht=b}break;case 30:break;default:Qr(r,o)}}function Ay(r){var i=r.alternate;i!==null&&(r.alternate=null,Ay(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&wd(i)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Ct=null,Cn=!1;function Xr(r,i,o){for(o=o.child;o!==null;)ky(r,i,o),o=o.sibling}function ky(r,i,o){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(hn,o)}catch{}switch(o.tag){case 26:Ht||xr(o,i),Xr(r,i,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Ht||xr(o,i);var f=Ct,g=Cn;Ia(o.type)&&(Ct=o.stateNode,Cn=!1),Xr(r,i,o),ho(o.stateNode),Ct=f,Cn=g;break;case 5:Ht||xr(o,i);case 6:if(f=Ct,g=Cn,Ct=null,Xr(r,i,o),Ct=f,Cn=g,Ct!==null)if(Cn)try{(Ct.nodeType===9?Ct.body:Ct.nodeName==="HTML"?Ct.ownerDocument.body:Ct).removeChild(o.stateNode)}catch(b){ft(o,i,b)}else try{Ct.removeChild(o.stateNode)}catch(b){ft(o,i,b)}break;case 18:Ct!==null&&(Cn?(r=Ct,EE(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),Ys(r)):EE(Ct,o.stateNode));break;case 4:f=Ct,g=Cn,Ct=o.stateNode.containerInfo,Cn=!0,Xr(r,i,o),Ct=f,Cn=g;break;case 0:case 11:case 14:case 15:ka(2,o,i),Ht||ka(4,o,i),Xr(r,i,o);break;case 1:Ht||(xr(o,i),f=o.stateNode,typeof f.componentWillUnmount=="function"&&xy(o,i,f)),Xr(r,i,o);break;case 21:Xr(r,i,o);break;case 22:Ht=(f=Ht)||o.memoizedState!==null,Xr(r,i,o),Ht=f;break;default:Xr(r,i,o)}}function wy(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Ys(r)}catch(o){ft(i,i.return,o)}}}function Ny(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Ys(r)}catch(o){ft(i,i.return,o)}}function iw(r){switch(r.tag){case 31:case 13:case 19:var i=r.stateNode;return i===null&&(i=r.stateNode=new Cy),i;case 22:return r=r.stateNode,i=r._retryCache,i===null&&(i=r._retryCache=new Cy),i;default:throw Error(a(435,r.tag))}}function oc(r,i){var o=iw(r);i.forEach(function(f){if(!o.has(f)){o.add(f);var g=mw.bind(null,r,f);f.then(g,g)}})}function _n(r,i){var o=i.deletions;if(o!==null)for(var f=0;f<o.length;f++){var g=o[f],b=r,A=i,L=A;e:for(;L!==null;){switch(L.tag){case 27:if(Ia(L.type)){Ct=L.stateNode,Cn=!1;break e}break;case 5:Ct=L.stateNode,Cn=!1;break e;case 3:case 4:Ct=L.stateNode.containerInfo,Cn=!0;break e}L=L.return}if(Ct===null)throw Error(a(160));ky(b,A,g),Ct=null,Cn=!1,b=g.alternate,b!==null&&(b.return=null),g.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Ry(i,r),i=i.sibling}var or=null;function Ry(r,i){var o=r.alternate,f=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:_n(i,r),An(r),f&4&&(ka(3,r,r.return),no(3,r),ka(5,r,r.return));break;case 1:_n(i,r),An(r),f&512&&(Ht||o===null||xr(o,o.return)),f&64&&Kr&&(r=r.updateQueue,r!==null&&(f=r.callbacks,f!==null&&(o=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=o===null?f:o.concat(f))));break;case 26:var g=or;if(_n(i,r),An(r),f&512&&(Ht||o===null||xr(o,o.return)),f&4){var b=o!==null?o.memoizedState:null;if(f=r.memoizedState,o===null)if(f===null)if(r.stateNode===null){e:{f=r.type,o=r.memoizedProps,g=g.ownerDocument||g;t:switch(f){case"title":b=g.getElementsByTagName("title")[0],(!b||b[Rl]||b[en]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=g.createElement(f),g.head.insertBefore(b,g.querySelector("head > title"))),an(b,f,o),b[en]=r,Gt(b),f=b;break e;case"link":var A=RE("link","href",g).get(f+(o.href||""));if(A){for(var L=0;L<A.length;L++)if(b=A[L],b.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&b.getAttribute("rel")===(o.rel==null?null:o.rel)&&b.getAttribute("title")===(o.title==null?null:o.title)&&b.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){A.splice(L,1);break t}}b=g.createElement(f),an(b,f,o),g.head.appendChild(b);break;case"meta":if(A=RE("meta","content",g).get(f+(o.content||""))){for(L=0;L<A.length;L++)if(b=A[L],b.getAttribute("content")===(o.content==null?null:""+o.content)&&b.getAttribute("name")===(o.name==null?null:o.name)&&b.getAttribute("property")===(o.property==null?null:o.property)&&b.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&b.getAttribute("charset")===(o.charSet==null?null:o.charSet)){A.splice(L,1);break t}}b=g.createElement(f),an(b,f,o),g.head.appendChild(b);break;default:throw Error(a(468,f))}b[en]=r,Gt(b),f=b}r.stateNode=f}else OE(g,r.type,r.stateNode);else r.stateNode=NE(g,f,r.memoizedProps);else b!==f?(b===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):b.count--,f===null?OE(g,r.type,r.stateNode):NE(g,f,r.memoizedProps)):f===null&&r.stateNode!==null&&Xh(r,r.memoizedProps,o.memoizedProps)}break;case 27:_n(i,r),An(r),f&512&&(Ht||o===null||xr(o,o.return)),o!==null&&f&4&&Xh(r,r.memoizedProps,o.memoizedProps);break;case 5:if(_n(i,r),An(r),f&512&&(Ht||o===null||xr(o,o.return)),r.flags&32){g=r.stateNode;try{ms(g,"")}catch(Ae){ft(r,r.return,Ae)}}f&4&&r.stateNode!=null&&(g=r.memoizedProps,Xh(r,g,o!==null?o.memoizedProps:g)),f&1024&&(Zh=!0);break;case 6:if(_n(i,r),An(r),f&4){if(r.stateNode===null)throw Error(a(162));f=r.memoizedProps,o=r.stateNode;try{o.nodeValue=f}catch(Ae){ft(r,r.return,Ae)}}break;case 3:if(Cc=null,g=or,or=vc(i.containerInfo),_n(i,r),or=g,An(r),f&4&&o!==null&&o.memoizedState.isDehydrated)try{Ys(i.containerInfo)}catch(Ae){ft(r,r.return,Ae)}Zh&&(Zh=!1,Oy(r));break;case 4:f=or,or=vc(r.stateNode.containerInfo),_n(i,r),An(r),or=f;break;case 12:_n(i,r),An(r);break;case 31:_n(i,r),An(r),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,oc(r,f)));break;case 13:_n(i,r),An(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(cc=Ye()),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,oc(r,f)));break;case 22:g=r.memoizedState!==null;var V=o!==null&&o.memoizedState!==null,ne=Kr,fe=Ht;if(Kr=ne||g,Ht=fe||V,_n(i,r),Ht=fe,Kr=ne,An(r),f&8192)e:for(i=r.stateNode,i._visibility=g?i._visibility&-2:i._visibility|1,g&&(o===null||V||Kr||Ht||Ci(r)),o=null,i=r;;){if(i.tag===5||i.tag===26){if(o===null){V=o=i;try{if(b=V.stateNode,g)A=b.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{L=V.stateNode;var me=V.memoizedProps.style,re=me!=null&&me.hasOwnProperty("display")?me.display:null;L.style.display=re==null||typeof re=="boolean"?"":(""+re).trim()}}catch(Ae){ft(V,V.return,Ae)}}}else if(i.tag===6){if(o===null){V=i;try{V.stateNode.nodeValue=g?"":V.memoizedProps}catch(Ae){ft(V,V.return,Ae)}}}else if(i.tag===18){if(o===null){V=i;try{var ie=V.stateNode;g?xE(ie,!0):xE(V.stateNode,!1)}catch(Ae){ft(V,V.return,Ae)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===r)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break e;for(;i.sibling===null;){if(i.return===null||i.return===r)break e;o===i&&(o=null),i=i.return}o===i&&(o=null),i.sibling.return=i.return,i=i.sibling}f&4&&(f=r.updateQueue,f!==null&&(o=f.retryQueue,o!==null&&(f.retryQueue=null,oc(r,o))));break;case 19:_n(i,r),An(r),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,oc(r,f)));break;case 30:break;case 21:break;default:_n(i,r),An(r)}}function An(r){var i=r.flags;if(i&2){try{for(var o,f=r.return;f!==null;){if(vy(f)){o=f;break}f=f.return}if(o==null)throw Error(a(160));switch(o.tag){case 27:var g=o.stateNode,b=Qh(r);lc(r,b,g);break;case 5:var A=o.stateNode;o.flags&32&&(ms(A,""),o.flags&=-33);var L=Qh(r);lc(r,L,A);break;case 3:case 4:var V=o.stateNode.containerInfo,ne=Qh(r);Wh(r,ne,V);break;default:throw Error(a(161))}}catch(fe){ft(r,r.return,fe)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function Oy(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var i=r;Oy(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),r=r.sibling}}function Qr(r,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)_y(r,i.alternate,i),i=i.sibling}function Ci(r){for(r=r.child;r!==null;){var i=r;switch(i.tag){case 0:case 11:case 14:case 15:ka(4,i,i.return),Ci(i);break;case 1:xr(i,i.return);var o=i.stateNode;typeof o.componentWillUnmount=="function"&&xy(i,i.return,o),Ci(i);break;case 27:ho(i.stateNode);case 26:case 5:xr(i,i.return),Ci(i);break;case 22:i.memoizedState===null&&Ci(i);break;case 30:Ci(i);break;default:Ci(i)}r=r.sibling}}function Wr(r,i,o){for(o=o&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var f=i.alternate,g=r,b=i,A=b.flags;switch(b.tag){case 0:case 11:case 15:Wr(g,b,o),no(4,b);break;case 1:if(Wr(g,b,o),f=b,g=f.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(ne){ft(f,f.return,ne)}if(f=b,g=f.updateQueue,g!==null){var L=f.stateNode;try{var V=g.shared.hiddenCallbacks;if(V!==null)for(g.shared.hiddenCallbacks=null,g=0;g<V.length;g++)ob(V[g],L)}catch(ne){ft(f,f.return,ne)}}o&&A&64&&Ey(b),ro(b,b.return);break;case 27:Sy(b);case 26:case 5:Wr(g,b,o),o&&f===null&&A&4&&Ty(b),ro(b,b.return);break;case 12:Wr(g,b,o);break;case 31:Wr(g,b,o),o&&A&4&&wy(g,b);break;case 13:Wr(g,b,o),o&&A&4&&Ny(g,b);break;case 22:b.memoizedState===null&&Wr(g,b,o),ro(b,b.return);break;case 30:break;default:Wr(g,b,o)}i=i.sibling}}function Jh(r,i){var o=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),r=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==o&&(r!=null&&r.refCount++,o!=null&&ql(o))}function em(r,i){r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&ql(r))}function ur(r,i,o,f){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Ly(r,i,o,f),i=i.sibling}function Ly(r,i,o,f){var g=i.flags;switch(i.tag){case 0:case 11:case 15:ur(r,i,o,f),g&2048&&no(9,i);break;case 1:ur(r,i,o,f);break;case 3:ur(r,i,o,f),g&2048&&(r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&ql(r)));break;case 12:if(g&2048){ur(r,i,o,f),r=i.stateNode;try{var b=i.memoizedProps,A=b.id,L=b.onPostCommit;typeof L=="function"&&L(A,i.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(V){ft(i,i.return,V)}}else ur(r,i,o,f);break;case 31:ur(r,i,o,f);break;case 13:ur(r,i,o,f);break;case 23:break;case 22:b=i.stateNode,A=i.alternate,i.memoizedState!==null?b._visibility&2?ur(r,i,o,f):ao(r,i):b._visibility&2?ur(r,i,o,f):(b._visibility|=2,Is(r,i,o,f,(i.subtreeFlags&10256)!==0||!1)),g&2048&&Jh(A,i);break;case 24:ur(r,i,o,f),g&2048&&em(i.alternate,i);break;default:ur(r,i,o,f)}}function Is(r,i,o,f,g){for(g=g&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var b=r,A=i,L=o,V=f,ne=A.flags;switch(A.tag){case 0:case 11:case 15:Is(b,A,L,V,g),no(8,A);break;case 23:break;case 22:var fe=A.stateNode;A.memoizedState!==null?fe._visibility&2?Is(b,A,L,V,g):ao(b,A):(fe._visibility|=2,Is(b,A,L,V,g)),g&&ne&2048&&Jh(A.alternate,A);break;case 24:Is(b,A,L,V,g),g&&ne&2048&&em(A.alternate,A);break;default:Is(b,A,L,V,g)}i=i.sibling}}function ao(r,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var o=r,f=i,g=f.flags;switch(f.tag){case 22:ao(o,f),g&2048&&Jh(f.alternate,f);break;case 24:ao(o,f),g&2048&&em(f.alternate,f);break;default:ao(o,f)}i=i.sibling}}var io=8192;function Ms(r,i,o){if(r.subtreeFlags&io)for(r=r.child;r!==null;)Dy(r,i,o),r=r.sibling}function Dy(r,i,o){switch(r.tag){case 26:Ms(r,i,o),r.flags&io&&r.memoizedState!==null&&Yw(o,or,r.memoizedState,r.memoizedProps);break;case 5:Ms(r,i,o);break;case 3:case 4:var f=or;or=vc(r.stateNode.containerInfo),Ms(r,i,o),or=f;break;case 22:r.memoizedState===null&&(f=r.alternate,f!==null&&f.memoizedState!==null?(f=io,io=16777216,Ms(r,i,o),io=f):Ms(r,i,o));break;default:Ms(r,i,o)}}function Iy(r){var i=r.alternate;if(i!==null&&(r=i.child,r!==null)){i.child=null;do i=r.sibling,r.sibling=null,r=i;while(r!==null)}}function so(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var f=i[o];Kt=f,Py(f,r)}Iy(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)My(r),r=r.sibling}function My(r){switch(r.tag){case 0:case 11:case 15:so(r),r.flags&2048&&ka(9,r,r.return);break;case 3:so(r);break;case 12:so(r);break;case 22:var i=r.stateNode;r.memoizedState!==null&&i._visibility&2&&(r.return===null||r.return.tag!==13)?(i._visibility&=-3,uc(r)):so(r);break;default:so(r)}}function uc(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var f=i[o];Kt=f,Py(f,r)}Iy(r)}for(r=r.child;r!==null;){switch(i=r,i.tag){case 0:case 11:case 15:ka(8,i,i.return),uc(i);break;case 22:o=i.stateNode,o._visibility&2&&(o._visibility&=-3,uc(i));break;default:uc(i)}r=r.sibling}}function Py(r,i){for(;Kt!==null;){var o=Kt;switch(o.tag){case 0:case 11:case 15:ka(8,o,i);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var f=o.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:ql(o.memoizedState.cache)}if(f=o.child,f!==null)f.return=o,Kt=f;else e:for(o=r;Kt!==null;){f=Kt;var g=f.sibling,b=f.return;if(Ay(f),f===o){Kt=null;break e}if(g!==null){g.return=b,Kt=g;break e}Kt=b}}}var sw={getCacheForType:function(r){var i=nn(Pt),o=i.data.get(r);return o===void 0&&(o=r(),i.data.set(r,o)),o},cacheSignal:function(){return nn(Pt).controller.signal}},lw=typeof WeakMap=="function"?WeakMap:Map,ot=0,yt=null,Qe=null,Je=0,ct=0,jn=null,wa=!1,Ps=!1,tm=!1,Zr=0,Nt=0,Na=0,_i=0,nm=0,Hn=0,Bs=0,lo=null,kn=null,rm=!1,cc=0,By=0,fc=1/0,dc=null,Ra=null,Vt=0,Oa=null,js=null,Jr=0,am=0,im=null,jy=null,oo=0,sm=null;function Un(){return(ot&2)!==0&&Je!==0?Je&-Je:B.T!==null?dm():e1()}function Hy(){if(Hn===0)if((Je&536870912)===0||nt){var r=xu;xu<<=1,(xu&3932160)===0&&(xu=262144),Hn=r}else Hn=536870912;return r=Pn.current,r!==null&&(r.flags|=32),Hn}function wn(r,i,o){(r===yt&&(ct===2||ct===9)||r.cancelPendingCommit!==null)&&(Hs(r,0),La(r,Je,Hn,!1)),Nl(r,o),((ot&2)===0||r!==yt)&&(r===yt&&((ot&2)===0&&(_i|=o),Nt===4&&La(r,Je,Hn,!1)),Tr(r))}function Uy(r,i,o){if((ot&6)!==0)throw Error(a(327));var f=!o&&(i&127)===0&&(i&r.expiredLanes)===0||wl(r,i),g=f?cw(r,i):om(r,i,!0),b=f;do{if(g===0){Ps&&!f&&La(r,i,0,!1);break}else{if(o=r.current.alternate,b&&!ow(o)){g=om(r,i,!1),b=!1;continue}if(g===2){if(b=i,r.errorRecoveryDisabledLanes&b)var A=0;else A=r.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){i=A;e:{var L=r;g=lo;var V=L.current.memoizedState.isDehydrated;if(V&&(Hs(L,A).flags|=256),A=om(L,A,!1),A!==2){if(tm&&!V){L.errorRecoveryDisabledLanes|=b,_i|=b,g=4;break e}b=kn,kn=g,b!==null&&(kn===null?kn=b:kn.push.apply(kn,b))}g=A}if(b=!1,g!==2)continue}}if(g===1){Hs(r,0),La(r,i,0,!0);break}e:{switch(f=r,b=g,b){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:La(f,i,Hn,!wa);break e;case 2:kn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(g=cc+300-Ye(),10<g)){if(La(f,i,Hn,!wa),vu(f,0,!0)!==0)break e;Jr=i,f.timeoutHandle=bE(zy.bind(null,f,o,kn,dc,rm,i,Hn,_i,Bs,wa,b,"Throttled",-0,0),g);break e}zy(f,o,kn,dc,rm,i,Hn,_i,Bs,wa,b,null,-0,0)}}break}while(!0);Tr(r)}function zy(r,i,o,f,g,b,A,L,V,ne,fe,me,re,ie){if(r.timeoutHandle=-1,me=i.subtreeFlags,me&8192||(me&16785408)===16785408){me={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:jr},Dy(i,b,me);var Ae=(b&62914560)===b?cc-Ye():(b&4194048)===b?By-Ye():0;if(Ae=$w(me,Ae),Ae!==null){Jr=b,r.cancelPendingCommit=Ae(Xy.bind(null,r,i,b,o,f,g,A,L,V,fe,me,null,re,ie)),La(r,b,A,!ne);return}}Xy(r,i,b,o,f,g,A,L,V)}function ow(r){for(var i=r;;){var o=i.tag;if((o===0||o===11||o===15)&&i.flags&16384&&(o=i.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var f=0;f<o.length;f++){var g=o[f],b=g.getSnapshot;g=g.value;try{if(!In(b(),g))return!1}catch{return!1}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function La(r,i,o,f){i&=~nm,i&=~_i,r.suspendedLanes|=i,r.pingedLanes&=~i,f&&(r.warmLanes|=i),f=r.expirationTimes;for(var g=i;0<g;){var b=31-bt(g),A=1<<b;f[b]=-1,g&=~A}o!==0&&Wg(r,o,i)}function hc(){return(ot&6)===0?(uo(0),!1):!0}function lm(){if(Qe!==null){if(ct===0)var r=Qe.return;else r=Qe,Fr=gi=null,Sh(r),Ns=null,Yl=0,r=Qe;for(;r!==null;)yy(r.alternate,r),r=r.return;Qe=null}}function Hs(r,i){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,ww(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),Jr=0,lm(),yt=r,Qe=o=Ur(r.current,null),Je=i,ct=0,jn=null,wa=!1,Ps=wl(r,i),tm=!1,Bs=Hn=nm=_i=Na=Nt=0,kn=lo=null,rm=!1,(i&8)!==0&&(i|=i&32);var f=r.entangledLanes;if(f!==0)for(r=r.entanglements,f&=i;0<f;){var g=31-bt(f),b=1<<g;i|=r[g],f&=~b}return Zr=i,Iu(),o}function Fy(r,i){Ue=null,B.H=Jl,i===ws||i===Fu?(i=ab(),ct=3):i===fh?(i=ab(),ct=4):ct=i===Hh?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,jn=i,Qe===null&&(Nt=1,nc(r,Kn(i,r.current)))}function qy(){var r=Pn.current;return r===null?!0:(Je&4194048)===Je?Zn===null:(Je&62914560)===Je||(Je&536870912)!==0?r===Zn:!1}function Vy(){var r=B.H;return B.H=Jl,r===null?Jl:r}function Yy(){var r=B.A;return B.A=sw,r}function mc(){Nt=4,wa||(Je&4194048)!==Je&&Pn.current!==null||(Ps=!0),(Na&134217727)===0&&(_i&134217727)===0||yt===null||La(yt,Je,Hn,!1)}function om(r,i,o){var f=ot;ot|=2;var g=Vy(),b=Yy();(yt!==r||Je!==i)&&(dc=null,Hs(r,i)),i=!1;var A=Nt;e:do try{if(ct!==0&&Qe!==null){var L=Qe,V=jn;switch(ct){case 8:lm(),A=6;break e;case 3:case 2:case 9:case 6:Pn.current===null&&(i=!0);var ne=ct;if(ct=0,jn=null,Us(r,L,V,ne),o&&Ps){A=0;break e}break;default:ne=ct,ct=0,jn=null,Us(r,L,V,ne)}}uw(),A=Nt;break}catch(fe){Fy(r,fe)}while(!0);return i&&r.shellSuspendCounter++,Fr=gi=null,ot=f,B.H=g,B.A=b,Qe===null&&(yt=null,Je=0,Iu()),A}function uw(){for(;Qe!==null;)$y(Qe)}function cw(r,i){var o=ot;ot|=2;var f=Vy(),g=Yy();yt!==r||Je!==i?(dc=null,fc=Ye()+500,Hs(r,i)):Ps=wl(r,i);e:do try{if(ct!==0&&Qe!==null){i=Qe;var b=jn;t:switch(ct){case 1:ct=0,jn=null,Us(r,i,b,1);break;case 2:case 9:if(nb(b)){ct=0,jn=null,Gy(i);break}i=function(){ct!==2&&ct!==9||yt!==r||(ct=7),Tr(r)},b.then(i,i);break e;case 3:ct=7;break e;case 4:ct=5;break e;case 7:nb(b)?(ct=0,jn=null,Gy(i)):(ct=0,jn=null,Us(r,i,b,7));break;case 5:var A=null;switch(Qe.tag){case 26:A=Qe.memoizedState;case 5:case 27:var L=Qe;if(A?LE(A):L.stateNode.complete){ct=0,jn=null;var V=L.sibling;if(V!==null)Qe=V;else{var ne=L.return;ne!==null?(Qe=ne,pc(ne)):Qe=null}break t}}ct=0,jn=null,Us(r,i,b,5);break;case 6:ct=0,jn=null,Us(r,i,b,6);break;case 8:lm(),Nt=6;break e;default:throw Error(a(462))}}fw();break}catch(fe){Fy(r,fe)}while(!0);return Fr=gi=null,B.H=f,B.A=g,ot=o,Qe!==null?0:(yt=null,Je=0,Iu(),Nt)}function fw(){for(;Qe!==null&&!dt();)$y(Qe)}function $y(r){var i=gy(r.alternate,r,Zr);r.memoizedProps=r.pendingProps,i===null?pc(r):Qe=i}function Gy(r){var i=r,o=i.alternate;switch(i.tag){case 15:case 0:i=cy(o,i,i.pendingProps,i.type,void 0,Je);break;case 11:i=cy(o,i,i.pendingProps,i.type.render,i.ref,Je);break;case 5:Sh(i);default:yy(o,i),i=Qe=Y1(i,Zr),i=gy(o,i,Zr)}r.memoizedProps=r.pendingProps,i===null?pc(r):Qe=i}function Us(r,i,o,f){Fr=gi=null,Sh(i),Ns=null,Yl=0;var g=i.return;try{if(Jk(r,g,i,o,Je)){Nt=1,nc(r,Kn(o,r.current)),Qe=null;return}}catch(b){if(g!==null)throw Qe=g,b;Nt=1,nc(r,Kn(o,r.current)),Qe=null;return}i.flags&32768?(nt||f===1?r=!0:Ps||(Je&536870912)!==0?r=!1:(wa=r=!0,(f===2||f===9||f===3||f===6)&&(f=Pn.current,f!==null&&f.tag===13&&(f.flags|=16384))),Ky(i,r)):pc(i)}function pc(r){var i=r;do{if((i.flags&32768)!==0){Ky(i,wa);return}r=i.return;var o=nw(i.alternate,i,Zr);if(o!==null){Qe=o;return}if(i=i.sibling,i!==null){Qe=i;return}Qe=i=r}while(i!==null);Nt===0&&(Nt=5)}function Ky(r,i){do{var o=rw(r.alternate,r);if(o!==null){o.flags&=32767,Qe=o;return}if(o=r.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!i&&(r=r.sibling,r!==null)){Qe=r;return}Qe=r=o}while(r!==null);Nt=6,Qe=null}function Xy(r,i,o,f,g,b,A,L,V){r.cancelPendingCommit=null;do gc();while(Vt!==0);if((ot&6)!==0)throw Error(a(327));if(i!==null){if(i===r.current)throw Error(a(177));if(b=i.lanes|i.childLanes,b|=Qd,VA(r,o,b,A,L,V),r===yt&&(Qe=yt=null,Je=0),js=i,Oa=r,Jr=o,am=b,im=g,jy=f,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,pw(ve,function(){return eE(),null})):(r.callbackNode=null,r.callbackPriority=0),f=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||f){f=B.T,B.T=null,g=G.p,G.p=2,A=ot,ot|=4;try{aw(r,i,o)}finally{ot=A,G.p=g,B.T=f}}Vt=1,Qy(),Wy(),Zy()}}function Qy(){if(Vt===1){Vt=0;var r=Oa,i=js,o=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||o){o=B.T,B.T=null;var f=G.p;G.p=2;var g=ot;ot|=4;try{Ry(i,r);var b=xm,A=P1(r.containerInfo),L=b.focusedElem,V=b.selectionRange;if(A!==L&&L&&L.ownerDocument&&M1(L.ownerDocument.documentElement,L)){if(V!==null&&Yd(L)){var ne=V.start,fe=V.end;if(fe===void 0&&(fe=ne),"selectionStart"in L)L.selectionStart=ne,L.selectionEnd=Math.min(fe,L.value.length);else{var me=L.ownerDocument||document,re=me&&me.defaultView||window;if(re.getSelection){var ie=re.getSelection(),Ae=L.textContent.length,De=Math.min(V.start,Ae),pt=V.end===void 0?De:Math.min(V.end,Ae);!ie.extend&&De>pt&&(A=pt,pt=De,De=A);var K=I1(L,De),$=I1(L,pt);if(K&&$&&(ie.rangeCount!==1||ie.anchorNode!==K.node||ie.anchorOffset!==K.offset||ie.focusNode!==$.node||ie.focusOffset!==$.offset)){var te=me.createRange();te.setStart(K.node,K.offset),ie.removeAllRanges(),De>pt?(ie.addRange(te),ie.extend($.node,$.offset)):(te.setEnd($.node,$.offset),ie.addRange(te))}}}}for(me=[],ie=L;ie=ie.parentNode;)ie.nodeType===1&&me.push({element:ie,left:ie.scrollLeft,top:ie.scrollTop});for(typeof L.focus=="function"&&L.focus(),L=0;L<me.length;L++){var he=me[L];he.element.scrollLeft=he.left,he.element.scrollTop=he.top}}wc=!!Em,xm=Em=null}finally{ot=g,G.p=f,B.T=o}}r.current=i,Vt=2}}function Wy(){if(Vt===2){Vt=0;var r=Oa,i=js,o=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||o){o=B.T,B.T=null;var f=G.p;G.p=2;var g=ot;ot|=4;try{_y(r,i.alternate,i)}finally{ot=g,G.p=f,B.T=o}}Vt=3}}function Zy(){if(Vt===4||Vt===3){Vt=0,qe();var r=Oa,i=js,o=Jr,f=jy;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Vt=5:(Vt=0,js=Oa=null,Jy(r,r.pendingLanes));var g=r.pendingLanes;if(g===0&&(Ra=null),Ad(o),i=i.stateNode,qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(hn,i,void 0,(i.current.flags&128)===128)}catch{}if(f!==null){i=B.T,g=G.p,G.p=2,B.T=null;try{for(var b=r.onRecoverableError,A=0;A<f.length;A++){var L=f[A];b(L.value,{componentStack:L.stack})}}finally{B.T=i,G.p=g}}(Jr&3)!==0&&gc(),Tr(r),g=r.pendingLanes,(o&261930)!==0&&(g&42)!==0?r===sm?oo++:(oo=0,sm=r):oo=0,uo(0)}}function Jy(r,i){(r.pooledCacheLanes&=i)===0&&(i=r.pooledCache,i!=null&&(r.pooledCache=null,ql(i)))}function gc(){return Qy(),Wy(),Zy(),eE()}function eE(){if(Vt!==5)return!1;var r=Oa,i=am;am=0;var o=Ad(Jr),f=B.T,g=G.p;try{G.p=32>o?32:o,B.T=null,o=im,im=null;var b=Oa,A=Jr;if(Vt=0,js=Oa=null,Jr=0,(ot&6)!==0)throw Error(a(331));var L=ot;if(ot|=4,My(b.current),Ly(b,b.current,A,o),ot=L,uo(0,!1),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(hn,b)}catch{}return!0}finally{G.p=g,B.T=f,Jy(r,i)}}function tE(r,i,o){i=Kn(o,i),i=jh(r.stateNode,i,2),r=Ca(r,i,2),r!==null&&(Nl(r,2),Tr(r))}function ft(r,i,o){if(r.tag===3)tE(r,r,o);else for(;i!==null;){if(i.tag===3){tE(i,r,o);break}else if(i.tag===1){var f=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Ra===null||!Ra.has(f))){r=Kn(o,r),o=ny(2),f=Ca(i,o,2),f!==null&&(ry(o,f,i,r),Nl(f,2),Tr(f));break}}i=i.return}}function um(r,i,o){var f=r.pingCache;if(f===null){f=r.pingCache=new lw;var g=new Set;f.set(i,g)}else g=f.get(i),g===void 0&&(g=new Set,f.set(i,g));g.has(o)||(tm=!0,g.add(o),r=dw.bind(null,r,i,o),i.then(r,r))}function dw(r,i,o){var f=r.pingCache;f!==null&&f.delete(i),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,yt===r&&(Je&o)===o&&(Nt===4||Nt===3&&(Je&62914560)===Je&&300>Ye()-cc?(ot&2)===0&&Hs(r,0):nm|=o,Bs===Je&&(Bs=0)),Tr(r)}function nE(r,i){i===0&&(i=Qg()),r=hi(r,i),r!==null&&(Nl(r,i),Tr(r))}function hw(r){var i=r.memoizedState,o=0;i!==null&&(o=i.retryLane),nE(r,o)}function mw(r,i){var o=0;switch(r.tag){case 31:case 13:var f=r.stateNode,g=r.memoizedState;g!==null&&(o=g.retryLane);break;case 19:f=r.stateNode;break;case 22:f=r.stateNode._retryCache;break;default:throw Error(a(314))}f!==null&&f.delete(i),nE(r,o)}function pw(r,i){return ke(r,i)}var bc=null,zs=null,cm=!1,yc=!1,fm=!1,Da=0;function Tr(r){r!==zs&&r.next===null&&(zs===null?bc=zs=r:zs=zs.next=r),yc=!0,cm||(cm=!0,bw())}function uo(r,i){if(!fm&&yc){fm=!0;do for(var o=!1,f=bc;f!==null;){if(r!==0){var g=f.pendingLanes;if(g===0)var b=0;else{var A=f.suspendedLanes,L=f.pingedLanes;b=(1<<31-bt(42|r)+1)-1,b&=g&~(A&~L),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(o=!0,sE(f,b))}else b=Je,b=vu(f,f===yt?b:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(b&3)===0||wl(f,b)||(o=!0,sE(f,b));f=f.next}while(o);fm=!1}}function gw(){rE()}function rE(){yc=cm=!1;var r=0;Da!==0&&kw()&&(r=Da);for(var i=Ye(),o=null,f=bc;f!==null;){var g=f.next,b=aE(f,i);b===0?(f.next=null,o===null?bc=g:o.next=g,g===null&&(zs=o)):(o=f,(r!==0||(b&3)!==0)&&(yc=!0)),f=g}Vt!==0&&Vt!==5||uo(r),Da!==0&&(Da=0)}function aE(r,i){for(var o=r.suspendedLanes,f=r.pingedLanes,g=r.expirationTimes,b=r.pendingLanes&-62914561;0<b;){var A=31-bt(b),L=1<<A,V=g[A];V===-1?((L&o)===0||(L&f)!==0)&&(g[A]=qA(L,i)):V<=i&&(r.expiredLanes|=L),b&=~L}if(i=yt,o=Je,o=vu(r,r===i?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),f=r.callbackNode,o===0||r===i&&(ct===2||ct===9)||r.cancelPendingCommit!==null)return f!==null&&f!==null&&Ie(f),r.callbackNode=null,r.callbackPriority=0;if((o&3)===0||wl(r,o)){if(i=o&-o,i===r.callbackPriority)return i;switch(f!==null&&Ie(f),Ad(o)){case 2:case 8:o=W;break;case 32:o=ve;break;case 268435456:o=$e;break;default:o=ve}return f=iE.bind(null,r),o=ke(o,f),r.callbackPriority=i,r.callbackNode=o,i}return f!==null&&f!==null&&Ie(f),r.callbackPriority=2,r.callbackNode=null,2}function iE(r,i){if(Vt!==0&&Vt!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(gc()&&r.callbackNode!==o)return null;var f=Je;return f=vu(r,r===yt?f:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),f===0?null:(Uy(r,f,i),aE(r,Ye()),r.callbackNode!=null&&r.callbackNode===o?iE.bind(null,r):null)}function sE(r,i){if(gc())return null;Uy(r,i,!0)}function bw(){Nw(function(){(ot&6)!==0?ke(ce,gw):rE()})}function dm(){if(Da===0){var r=As;r===0&&(r=Eu,Eu<<=1,(Eu&261888)===0&&(Eu=256)),Da=r}return Da}function lE(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Au(""+r)}function oE(r,i){var o=i.ownerDocument.createElement("input");return o.name=i.name,o.value=i.value,r.id&&o.setAttribute("form",r.id),i.parentNode.insertBefore(o,i),r=new FormData(r),o.parentNode.removeChild(o),r}function yw(r,i,o,f,g){if(i==="submit"&&o&&o.stateNode===g){var b=lE((g[vn]||null).action),A=f.submitter;A&&(i=(i=A[vn]||null)?lE(i.formAction):A.getAttribute("formAction"),i!==null&&(b=i,A=null));var L=new Ru("action","action",null,f,g);r.push({event:L,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(Da!==0){var V=A?oE(g,A):new FormData(g);Lh(o,{pending:!0,data:V,method:g.method,action:b},null,V)}}else typeof b=="function"&&(L.preventDefault(),V=A?oE(g,A):new FormData(g),Lh(o,{pending:!0,data:V,method:g.method,action:b},b,V))},currentTarget:g}]})}}for(var hm=0;hm<Xd.length;hm++){var mm=Xd[hm],Ew=mm.toLowerCase(),xw=mm[0].toUpperCase()+mm.slice(1);lr(Ew,"on"+xw)}lr(H1,"onAnimationEnd"),lr(U1,"onAnimationIteration"),lr(z1,"onAnimationStart"),lr("dblclick","onDoubleClick"),lr("focusin","onFocus"),lr("focusout","onBlur"),lr(Pk,"onTransitionRun"),lr(Bk,"onTransitionStart"),lr(jk,"onTransitionCancel"),lr(F1,"onTransitionEnd"),ds("onMouseEnter",["mouseout","mouseover"]),ds("onMouseLeave",["mouseout","mouseover"]),ds("onPointerEnter",["pointerout","pointerover"]),ds("onPointerLeave",["pointerout","pointerover"]),ui("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ui("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ui("onBeforeInput",["compositionend","keypress","textInput","paste"]),ui("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ui("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ui("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var co="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(" "),Tw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(co));function uE(r,i){i=(i&4)!==0;for(var o=0;o<r.length;o++){var f=r[o],g=f.event;f=f.listeners;e:{var b=void 0;if(i)for(var A=f.length-1;0<=A;A--){var L=f[A],V=L.instance,ne=L.currentTarget;if(L=L.listener,V!==b&&g.isPropagationStopped())break e;b=L,g.currentTarget=ne;try{b(g)}catch(fe){Du(fe)}g.currentTarget=null,b=V}else for(A=0;A<f.length;A++){if(L=f[A],V=L.instance,ne=L.currentTarget,L=L.listener,V!==b&&g.isPropagationStopped())break e;b=L,g.currentTarget=ne;try{b(g)}catch(fe){Du(fe)}g.currentTarget=null,b=V}}}}function We(r,i){var o=i[kd];o===void 0&&(o=i[kd]=new Set);var f=r+"__bubble";o.has(f)||(cE(i,r,2,!1),o.add(f))}function pm(r,i,o){var f=0;i&&(f|=4),cE(o,r,f,i)}var Ec="_reactListening"+Math.random().toString(36).slice(2);function gm(r){if(!r[Ec]){r[Ec]=!0,r1.forEach(function(o){o!=="selectionchange"&&(Tw.has(o)||pm(o,!1,r),pm(o,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[Ec]||(i[Ec]=!0,pm("selectionchange",!1,i))}}function cE(r,i,o,f){switch(HE(i)){case 2:var g=Xw;break;case 8:g=Qw;break;default:g=Om}o=g.bind(null,i,o,r),g=void 0,!Pd||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(g=!0),f?g!==void 0?r.addEventListener(i,o,{capture:!0,passive:g}):r.addEventListener(i,o,!0):g!==void 0?r.addEventListener(i,o,{passive:g}):r.addEventListener(i,o,!1)}function bm(r,i,o,f,g){var b=f;if((i&1)===0&&(i&2)===0&&f!==null)e:for(;;){if(f===null)return;var A=f.tag;if(A===3||A===4){var L=f.stateNode.containerInfo;if(L===g)break;if(A===4)for(A=f.return;A!==null;){var V=A.tag;if((V===3||V===4)&&A.stateNode.containerInfo===g)return;A=A.return}for(;L!==null;){if(A=us(L),A===null)return;if(V=A.tag,V===5||V===6||V===26||V===27){f=b=A;continue e}L=L.parentNode}}f=f.return}p1(function(){var ne=b,fe=Id(o),me=[];e:{var re=q1.get(r);if(re!==void 0){var ie=Ru,Ae=r;switch(r){case"keypress":if(wu(o)===0)break e;case"keydown":case"keyup":ie=mk;break;case"focusin":Ae="focus",ie=Ud;break;case"focusout":Ae="blur",ie=Ud;break;case"beforeblur":case"afterblur":ie=Ud;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=y1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=nk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=bk;break;case H1:case U1:case z1:ie=ik;break;case F1:ie=Ek;break;case"scroll":case"scrollend":ie=ek;break;case"wheel":ie=Tk;break;case"copy":case"cut":case"paste":ie=lk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=x1;break;case"toggle":case"beforetoggle":ie=Sk}var De=(i&4)!==0,pt=!De&&(r==="scroll"||r==="scrollend"),K=De?re!==null?re+"Capture":null:re;De=[];for(var $=ne,te;$!==null;){var he=$;if(te=he.stateNode,he=he.tag,he!==5&&he!==26&&he!==27||te===null||K===null||(he=Ll($,K),he!=null&&De.push(fo($,he,te))),pt)break;$=$.return}0<De.length&&(re=new ie(re,Ae,null,o,fe),me.push({event:re,listeners:De}))}}if((i&7)===0){e:{if(re=r==="mouseover"||r==="pointerover",ie=r==="mouseout"||r==="pointerout",re&&o!==Dd&&(Ae=o.relatedTarget||o.fromElement)&&(us(Ae)||Ae[os]))break e;if((ie||re)&&(re=fe.window===fe?fe:(re=fe.ownerDocument)?re.defaultView||re.parentWindow:window,ie?(Ae=o.relatedTarget||o.toElement,ie=ne,Ae=Ae?us(Ae):null,Ae!==null&&(pt=l(Ae),De=Ae.tag,Ae!==pt||De!==5&&De!==27&&De!==6)&&(Ae=null)):(ie=null,Ae=ne),ie!==Ae)){if(De=y1,he="onMouseLeave",K="onMouseEnter",$="mouse",(r==="pointerout"||r==="pointerover")&&(De=x1,he="onPointerLeave",K="onPointerEnter",$="pointer"),pt=ie==null?re:Ol(ie),te=Ae==null?re:Ol(Ae),re=new De(he,$+"leave",ie,o,fe),re.target=pt,re.relatedTarget=te,he=null,us(fe)===ne&&(De=new De(K,$+"enter",Ae,o,fe),De.target=te,De.relatedTarget=pt,he=De),pt=he,ie&&Ae)t:{for(De=vw,K=ie,$=Ae,te=0,he=K;he;he=De(he))te++;he=0;for(var Ne=$;Ne;Ne=De(Ne))he++;for(;0<te-he;)K=De(K),te--;for(;0<he-te;)$=De($),he--;for(;te--;){if(K===$||$!==null&&K===$.alternate){De=K;break t}K=De(K),$=De($)}De=null}else De=null;ie!==null&&fE(me,re,ie,De,!1),Ae!==null&&pt!==null&&fE(me,pt,Ae,De,!0)}}e:{if(re=ne?Ol(ne):window,ie=re.nodeName&&re.nodeName.toLowerCase(),ie==="select"||ie==="input"&&re.type==="file")var st=w1;else if(A1(re))if(N1)st=Dk;else{st=Ok;var we=Rk}else ie=re.nodeName,!ie||ie.toLowerCase()!=="input"||re.type!=="checkbox"&&re.type!=="radio"?ne&&Ld(ne.elementType)&&(st=w1):st=Lk;if(st&&(st=st(r,ne))){k1(me,st,o,fe);break e}we&&we(r,re,ne),r==="focusout"&&ne&&re.type==="number"&&ne.memoizedProps.value!=null&&Od(re,"number",re.value)}switch(we=ne?Ol(ne):window,r){case"focusin":(A1(we)||we.contentEditable==="true")&&(ys=we,$d=ne,Ul=null);break;case"focusout":Ul=$d=ys=null;break;case"mousedown":Gd=!0;break;case"contextmenu":case"mouseup":case"dragend":Gd=!1,B1(me,o,fe);break;case"selectionchange":if(Mk)break;case"keydown":case"keyup":B1(me,o,fe)}var Fe;if(Fd)e:{switch(r){case"compositionstart":var et="onCompositionStart";break e;case"compositionend":et="onCompositionEnd";break e;case"compositionupdate":et="onCompositionUpdate";break e}et=void 0}else bs?C1(r,o)&&(et="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(et="onCompositionStart");et&&(T1&&o.locale!=="ko"&&(bs||et!=="onCompositionStart"?et==="onCompositionEnd"&&bs&&(Fe=g1()):(ba=fe,Bd="value"in ba?ba.value:ba.textContent,bs=!0)),we=xc(ne,et),0<we.length&&(et=new E1(et,r,null,o,fe),me.push({event:et,listeners:we}),Fe?et.data=Fe:(Fe=_1(o),Fe!==null&&(et.data=Fe)))),(Fe=_k?Ak(r,o):kk(r,o))&&(et=xc(ne,"onBeforeInput"),0<et.length&&(we=new E1("onBeforeInput","beforeinput",null,o,fe),me.push({event:we,listeners:et}),we.data=Fe)),yw(me,r,ne,o,fe)}uE(me,i)})}function fo(r,i,o){return{instance:r,listener:i,currentTarget:o}}function xc(r,i){for(var o=i+"Capture",f=[];r!==null;){var g=r,b=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||b===null||(g=Ll(r,o),g!=null&&f.unshift(fo(r,g,b)),g=Ll(r,i),g!=null&&f.push(fo(r,g,b))),r.tag===3)return f;r=r.return}return[]}function vw(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function fE(r,i,o,f,g){for(var b=i._reactName,A=[];o!==null&&o!==f;){var L=o,V=L.alternate,ne=L.stateNode;if(L=L.tag,V!==null&&V===f)break;L!==5&&L!==26&&L!==27||ne===null||(V=ne,g?(ne=Ll(o,b),ne!=null&&A.unshift(fo(o,ne,V))):g||(ne=Ll(o,b),ne!=null&&A.push(fo(o,ne,V)))),o=o.return}A.length!==0&&r.push({event:i,listeners:A})}var Sw=/\r\n?/g,Cw=/\u0000|\uFFFD/g;function dE(r){return(typeof r=="string"?r:""+r).replace(Sw,`
|
|
9
|
-
`).replace(Cw,"")}function hE(r,i){return i=dE(i),dE(r)===i}function mt(r,i,o,f,g,b){switch(o){case"children":typeof f=="string"?i==="body"||i==="textarea"&&f===""||ms(r,f):(typeof f=="number"||typeof f=="bigint")&&i!=="body"&&ms(r,""+f);break;case"className":Cu(r,"class",f);break;case"tabIndex":Cu(r,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":Cu(r,o,f);break;case"style":h1(r,f,b);break;case"data":if(i!=="object"){Cu(r,"data",f);break}case"src":case"href":if(f===""&&(i!=="a"||o!=="href")){r.removeAttribute(o);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){r.removeAttribute(o);break}f=Au(""+f),r.setAttribute(o,f);break;case"action":case"formAction":if(typeof f=="function"){r.setAttribute(o,"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 b=="function"&&(o==="formAction"?(i!=="input"&&mt(r,i,"name",g.name,g,null),mt(r,i,"formEncType",g.formEncType,g,null),mt(r,i,"formMethod",g.formMethod,g,null),mt(r,i,"formTarget",g.formTarget,g,null)):(mt(r,i,"encType",g.encType,g,null),mt(r,i,"method",g.method,g,null),mt(r,i,"target",g.target,g,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){r.removeAttribute(o);break}f=Au(""+f),r.setAttribute(o,f);break;case"onClick":f!=null&&(r.onclick=jr);break;case"onScroll":f!=null&&We("scroll",r);break;case"onScrollEnd":f!=null&&We("scrollend",r);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(a(61));if(o=f.__html,o!=null){if(g.children!=null)throw Error(a(60));r.innerHTML=o}}break;case"multiple":r.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":r.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){r.removeAttribute("xlink:href");break}o=Au(""+f),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?r.setAttribute(o,""+f):r.removeAttribute(o);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":f&&typeof f!="function"&&typeof f!="symbol"?r.setAttribute(o,""):r.removeAttribute(o);break;case"capture":case"download":f===!0?r.setAttribute(o,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?r.setAttribute(o,f):r.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?r.setAttribute(o,f):r.removeAttribute(o);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?r.removeAttribute(o):r.setAttribute(o,f);break;case"popover":We("beforetoggle",r),We("toggle",r),Su(r,"popover",f);break;case"xlinkActuate":Br(r,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":Br(r,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":Br(r,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":Br(r,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":Br(r,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":Br(r,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":Br(r,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":Br(r,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":Br(r,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":Su(r,"is",f);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=ZA.get(o)||o,Su(r,o,f))}}function ym(r,i,o,f,g,b){switch(o){case"style":h1(r,f,b);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(a(61));if(o=f.__html,o!=null){if(g.children!=null)throw Error(a(60));r.innerHTML=o}}break;case"children":typeof f=="string"?ms(r,f):(typeof f=="number"||typeof f=="bigint")&&ms(r,""+f);break;case"onScroll":f!=null&&We("scroll",r);break;case"onScrollEnd":f!=null&&We("scrollend",r);break;case"onClick":f!=null&&(r.onclick=jr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!a1.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(g=o.endsWith("Capture"),i=o.slice(2,g?o.length-7:void 0),b=r[vn]||null,b=b!=null?b[o]:null,typeof b=="function"&&r.removeEventListener(i,b,g),typeof f=="function")){typeof b!="function"&&b!==null&&(o in r?r[o]=null:r.hasAttribute(o)&&r.removeAttribute(o)),r.addEventListener(i,f,g);break e}o in r?r[o]=f:f===!0?r.setAttribute(o,""):Su(r,o,f)}}}function an(r,i,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":We("error",r),We("load",r);var f=!1,g=!1,b;for(b in o)if(o.hasOwnProperty(b)){var A=o[b];if(A!=null)switch(b){case"src":f=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:mt(r,i,b,A,o,null)}}g&&mt(r,i,"srcSet",o.srcSet,o,null),f&&mt(r,i,"src",o.src,o,null);return;case"input":We("invalid",r);var L=b=A=g=null,V=null,ne=null;for(f in o)if(o.hasOwnProperty(f)){var fe=o[f];if(fe!=null)switch(f){case"name":g=fe;break;case"type":A=fe;break;case"checked":V=fe;break;case"defaultChecked":ne=fe;break;case"value":b=fe;break;case"defaultValue":L=fe;break;case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(a(137,i));break;default:mt(r,i,f,fe,o,null)}}u1(r,b,L,V,ne,A,g,!1);return;case"select":We("invalid",r),f=A=b=null;for(g in o)if(o.hasOwnProperty(g)&&(L=o[g],L!=null))switch(g){case"value":b=L;break;case"defaultValue":A=L;break;case"multiple":f=L;default:mt(r,i,g,L,o,null)}i=b,o=A,r.multiple=!!f,i!=null?hs(r,!!f,i,!1):o!=null&&hs(r,!!f,o,!0);return;case"textarea":We("invalid",r),b=g=f=null;for(A in o)if(o.hasOwnProperty(A)&&(L=o[A],L!=null))switch(A){case"value":f=L;break;case"defaultValue":g=L;break;case"children":b=L;break;case"dangerouslySetInnerHTML":if(L!=null)throw Error(a(91));break;default:mt(r,i,A,L,o,null)}f1(r,f,g,b);return;case"option":for(V in o)o.hasOwnProperty(V)&&(f=o[V],f!=null)&&(V==="selected"?r.selected=f&&typeof f!="function"&&typeof f!="symbol":mt(r,i,V,f,o,null));return;case"dialog":We("beforetoggle",r),We("toggle",r),We("cancel",r),We("close",r);break;case"iframe":case"object":We("load",r);break;case"video":case"audio":for(f=0;f<co.length;f++)We(co[f],r);break;case"image":We("error",r),We("load",r);break;case"details":We("toggle",r);break;case"embed":case"source":case"link":We("error",r),We("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ne in o)if(o.hasOwnProperty(ne)&&(f=o[ne],f!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:mt(r,i,ne,f,o,null)}return;default:if(Ld(i)){for(fe in o)o.hasOwnProperty(fe)&&(f=o[fe],f!==void 0&&ym(r,i,fe,f,o,void 0));return}}for(L in o)o.hasOwnProperty(L)&&(f=o[L],f!=null&&mt(r,i,L,f,o,null))}function _w(r,i,o,f){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,b=null,A=null,L=null,V=null,ne=null,fe=null;for(ie in o){var me=o[ie];if(o.hasOwnProperty(ie)&&me!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":V=me;default:f.hasOwnProperty(ie)||mt(r,i,ie,null,f,me)}}for(var re in f){var ie=f[re];if(me=o[re],f.hasOwnProperty(re)&&(ie!=null||me!=null))switch(re){case"type":b=ie;break;case"name":g=ie;break;case"checked":ne=ie;break;case"defaultChecked":fe=ie;break;case"value":A=ie;break;case"defaultValue":L=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(a(137,i));break;default:ie!==me&&mt(r,i,re,ie,f,me)}}Rd(r,A,L,V,ne,fe,b,g);return;case"select":ie=A=L=re=null;for(b in o)if(V=o[b],o.hasOwnProperty(b)&&V!=null)switch(b){case"value":break;case"multiple":ie=V;default:f.hasOwnProperty(b)||mt(r,i,b,null,f,V)}for(g in f)if(b=f[g],V=o[g],f.hasOwnProperty(g)&&(b!=null||V!=null))switch(g){case"value":re=b;break;case"defaultValue":L=b;break;case"multiple":A=b;default:b!==V&&mt(r,i,g,b,f,V)}i=L,o=A,f=ie,re!=null?hs(r,!!o,re,!1):!!f!=!!o&&(i!=null?hs(r,!!o,i,!0):hs(r,!!o,o?[]:"",!1));return;case"textarea":ie=re=null;for(L in o)if(g=o[L],o.hasOwnProperty(L)&&g!=null&&!f.hasOwnProperty(L))switch(L){case"value":break;case"children":break;default:mt(r,i,L,null,f,g)}for(A in f)if(g=f[A],b=o[A],f.hasOwnProperty(A)&&(g!=null||b!=null))switch(A){case"value":re=g;break;case"defaultValue":ie=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(a(91));break;default:g!==b&&mt(r,i,A,g,f,b)}c1(r,re,ie);return;case"option":for(var Ae in o)re=o[Ae],o.hasOwnProperty(Ae)&&re!=null&&!f.hasOwnProperty(Ae)&&(Ae==="selected"?r.selected=!1:mt(r,i,Ae,null,f,re));for(V in f)re=f[V],ie=o[V],f.hasOwnProperty(V)&&re!==ie&&(re!=null||ie!=null)&&(V==="selected"?r.selected=re&&typeof re!="function"&&typeof re!="symbol":mt(r,i,V,re,f,ie));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 De in o)re=o[De],o.hasOwnProperty(De)&&re!=null&&!f.hasOwnProperty(De)&&mt(r,i,De,null,f,re);for(ne in f)if(re=f[ne],ie=o[ne],f.hasOwnProperty(ne)&&re!==ie&&(re!=null||ie!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(a(137,i));break;default:mt(r,i,ne,re,f,ie)}return;default:if(Ld(i)){for(var pt in o)re=o[pt],o.hasOwnProperty(pt)&&re!==void 0&&!f.hasOwnProperty(pt)&&ym(r,i,pt,void 0,f,re);for(fe in f)re=f[fe],ie=o[fe],!f.hasOwnProperty(fe)||re===ie||re===void 0&&ie===void 0||ym(r,i,fe,re,f,ie);return}}for(var K in o)re=o[K],o.hasOwnProperty(K)&&re!=null&&!f.hasOwnProperty(K)&&mt(r,i,K,null,f,re);for(me in f)re=f[me],ie=o[me],!f.hasOwnProperty(me)||re===ie||re==null&&ie==null||mt(r,i,me,re,f,ie)}function mE(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Aw(){if(typeof performance.getEntriesByType=="function"){for(var r=0,i=0,o=performance.getEntriesByType("resource"),f=0;f<o.length;f++){var g=o[f],b=g.transferSize,A=g.initiatorType,L=g.duration;if(b&&L&&mE(A)){for(A=0,L=g.responseEnd,f+=1;f<o.length;f++){var V=o[f],ne=V.startTime;if(ne>L)break;var fe=V.transferSize,me=V.initiatorType;fe&&mE(me)&&(V=V.responseEnd,A+=fe*(V<L?1:(L-ne)/(V-ne)))}if(--f,i+=8*(b+A)/(g.duration/1e3),r++,10<r)break}}if(0<r)return i/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Em=null,xm=null;function Tc(r){return r.nodeType===9?r:r.ownerDocument}function pE(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gE(r,i){if(r===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&i==="foreignObject"?0:r}function Tm(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var vm=null;function kw(){var r=window.event;return r&&r.type==="popstate"?r===vm?!1:(vm=r,!0):(vm=null,!1)}var bE=typeof setTimeout=="function"?setTimeout:void 0,ww=typeof clearTimeout=="function"?clearTimeout:void 0,yE=typeof Promise=="function"?Promise:void 0,Nw=typeof queueMicrotask=="function"?queueMicrotask:typeof yE<"u"?function(r){return yE.resolve(null).then(r).catch(Rw)}:bE;function Rw(r){setTimeout(function(){throw r})}function Ia(r){return r==="head"}function EE(r,i){var o=i,f=0;do{var g=o.nextSibling;if(r.removeChild(o),g&&g.nodeType===8)if(o=g.data,o==="/$"||o==="/&"){if(f===0){r.removeChild(g),Ys(i);return}f--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")f++;else if(o==="html")ho(r.ownerDocument.documentElement);else if(o==="head"){o=r.ownerDocument.head,ho(o);for(var b=o.firstChild;b;){var A=b.nextSibling,L=b.nodeName;b[Rl]||L==="SCRIPT"||L==="STYLE"||L==="LINK"&&b.rel.toLowerCase()==="stylesheet"||o.removeChild(b),b=A}}else o==="body"&&ho(r.ownerDocument.body);o=g}while(o);Ys(i)}function xE(r,i){var o=r;r=0;do{var f=o.nextSibling;if(o.nodeType===1?i?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(i?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),f&&f.nodeType===8)if(o=f.data,o==="/$"){if(r===0)break;r--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||r++;o=f}while(o)}function Sm(r){var i=r.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var o=i;switch(i=i.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Sm(o),wd(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function Ow(r,i,o,f){for(;r.nodeType===1;){var g=o;if(r.nodeName.toLowerCase()!==i.toLowerCase()){if(!f&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(f){if(!r[Rl])switch(i){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(b=r.getAttribute("rel"),b==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(b!==g.rel||r.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||r.getAttribute("title")!==(g.title==null?null:g.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(b=r.getAttribute("src"),(b!==(g.src==null?null:g.src)||r.getAttribute("type")!==(g.type==null?null:g.type)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&b&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(i==="input"&&r.type==="hidden"){var b=g.name==null?null:""+g.name;if(g.type==="hidden"&&r.getAttribute("name")===b)return r}else return r;if(r=Jn(r.nextSibling),r===null)break}return null}function Lw(r,i,o){if(i==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=Jn(r.nextSibling),r===null))return null;return r}function TE(r,i){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!i||(r=Jn(r.nextSibling),r===null))return null;return r}function Cm(r){return r.data==="$?"||r.data==="$~"}function _m(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function Dw(r,i){var o=r.ownerDocument;if(r.data==="$~")r._reactRetry=i;else if(r.data!=="$?"||o.readyState!=="loading")i();else{var f=function(){i(),o.removeEventListener("DOMContentLoaded",f)};o.addEventListener("DOMContentLoaded",f),r._reactRetry=f}}function Jn(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return r}var Am=null;function vE(r){r=r.nextSibling;for(var i=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"||o==="/&"){if(i===0)return Jn(r.nextSibling);i--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||i++}r=r.nextSibling}return null}function SE(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(i===0)return r;i--}else o!=="/$"&&o!=="/&"||i++}r=r.previousSibling}return null}function CE(r,i,o){switch(i=Tc(o),r){case"html":if(r=i.documentElement,!r)throw Error(a(452));return r;case"head":if(r=i.head,!r)throw Error(a(453));return r;case"body":if(r=i.body,!r)throw Error(a(454));return r;default:throw Error(a(451))}}function ho(r){for(var i=r.attributes;i.length;)r.removeAttributeNode(i[0]);wd(r)}var er=new Map,_E=new Set;function vc(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var ea=G.d;G.d={f:Iw,r:Mw,D:Pw,C:Bw,L:jw,m:Hw,X:zw,S:Uw,M:Fw};function Iw(){var r=ea.f(),i=hc();return r||i}function Mw(r){var i=cs(r);i!==null&&i.tag===5&&i.type==="form"?Fb(i):ea.r(r)}var Fs=typeof document>"u"?null:document;function AE(r,i,o){var f=Fs;if(f&&typeof i=="string"&&i){var g=$n(i);g='link[rel="'+r+'"][href="'+g+'"]',typeof o=="string"&&(g+='[crossorigin="'+o+'"]'),_E.has(g)||(_E.add(g),r={rel:r,crossOrigin:o,href:i},f.querySelector(g)===null&&(i=f.createElement("link"),an(i,"link",r),Gt(i),f.head.appendChild(i)))}}function Pw(r){ea.D(r),AE("dns-prefetch",r,null)}function Bw(r,i){ea.C(r,i),AE("preconnect",r,i)}function jw(r,i,o){ea.L(r,i,o);var f=Fs;if(f&&r&&i){var g='link[rel="preload"][as="'+$n(i)+'"]';i==="image"&&o&&o.imageSrcSet?(g+='[imagesrcset="'+$n(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(g+='[imagesizes="'+$n(o.imageSizes)+'"]')):g+='[href="'+$n(r)+'"]';var b=g;switch(i){case"style":b=qs(r);break;case"script":b=Vs(r)}er.has(b)||(r=p({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:r,as:i},o),er.set(b,r),f.querySelector(g)!==null||i==="style"&&f.querySelector(mo(b))||i==="script"&&f.querySelector(po(b))||(i=f.createElement("link"),an(i,"link",r),Gt(i),f.head.appendChild(i)))}}function Hw(r,i){ea.m(r,i);var o=Fs;if(o&&r){var f=i&&typeof i.as=="string"?i.as:"script",g='link[rel="modulepreload"][as="'+$n(f)+'"][href="'+$n(r)+'"]',b=g;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Vs(r)}if(!er.has(b)&&(r=p({rel:"modulepreload",href:r},i),er.set(b,r),o.querySelector(g)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(po(b)))return}f=o.createElement("link"),an(f,"link",r),Gt(f),o.head.appendChild(f)}}}function Uw(r,i,o){ea.S(r,i,o);var f=Fs;if(f&&r){var g=fs(f).hoistableStyles,b=qs(r);i=i||"default";var A=g.get(b);if(!A){var L={loading:0,preload:null};if(A=f.querySelector(mo(b)))L.loading=5;else{r=p({rel:"stylesheet",href:r,"data-precedence":i},o),(o=er.get(b))&&km(r,o);var V=A=f.createElement("link");Gt(V),an(V,"link",r),V._p=new Promise(function(ne,fe){V.onload=ne,V.onerror=fe}),V.addEventListener("load",function(){L.loading|=1}),V.addEventListener("error",function(){L.loading|=2}),L.loading|=4,Sc(A,i,f)}A={type:"stylesheet",instance:A,count:1,state:L},g.set(b,A)}}}function zw(r,i){ea.X(r,i);var o=Fs;if(o&&r){var f=fs(o).hoistableScripts,g=Vs(r),b=f.get(g);b||(b=o.querySelector(po(g)),b||(r=p({src:r,async:!0},i),(i=er.get(g))&&wm(r,i),b=o.createElement("script"),Gt(b),an(b,"link",r),o.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},f.set(g,b))}}function Fw(r,i){ea.M(r,i);var o=Fs;if(o&&r){var f=fs(o).hoistableScripts,g=Vs(r),b=f.get(g);b||(b=o.querySelector(po(g)),b||(r=p({src:r,async:!0,type:"module"},i),(i=er.get(g))&&wm(r,i),b=o.createElement("script"),Gt(b),an(b,"link",r),o.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},f.set(g,b))}}function kE(r,i,o,f){var g=(g=pe.current)?vc(g):null;if(!g)throw Error(a(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(i=qs(o.href),o=fs(g).hoistableStyles,f=o.get(i),f||(f={type:"style",instance:null,count:0,state:null},o.set(i,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){r=qs(o.href);var b=fs(g).hoistableStyles,A=b.get(r);if(A||(g=g.ownerDocument||g,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(r,A),(b=g.querySelector(mo(r)))&&!b._p&&(A.instance=b,A.state.loading=5),er.has(r)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},er.set(r,o),b||qw(g,r,o,A.state))),i&&f===null)throw Error(a(528,""));return A}if(i&&f!==null)throw Error(a(529,""));return null;case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Vs(o),o=fs(g).hoistableScripts,f=o.get(i),f||(f={type:"script",instance:null,count:0,state:null},o.set(i,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,r))}}function qs(r){return'href="'+$n(r)+'"'}function mo(r){return'link[rel="stylesheet"]['+r+"]"}function wE(r){return p({},r,{"data-precedence":r.precedence,precedence:null})}function qw(r,i,o,f){r.querySelector('link[rel="preload"][as="style"]['+i+"]")?f.loading=1:(i=r.createElement("link"),f.preload=i,i.addEventListener("load",function(){return f.loading|=1}),i.addEventListener("error",function(){return f.loading|=2}),an(i,"link",o),Gt(i),r.head.appendChild(i))}function Vs(r){return'[src="'+$n(r)+'"]'}function po(r){return"script[async]"+r}function NE(r,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var f=r.querySelector('style[data-href~="'+$n(o.href)+'"]');if(f)return i.instance=f,Gt(f),f;var g=p({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return f=(r.ownerDocument||r).createElement("style"),Gt(f),an(f,"style",g),Sc(f,o.precedence,r),i.instance=f;case"stylesheet":g=qs(o.href);var b=r.querySelector(mo(g));if(b)return i.state.loading|=4,i.instance=b,Gt(b),b;f=wE(o),(g=er.get(g))&&km(f,g),b=(r.ownerDocument||r).createElement("link"),Gt(b);var A=b;return A._p=new Promise(function(L,V){A.onload=L,A.onerror=V}),an(b,"link",f),i.state.loading|=4,Sc(b,o.precedence,r),i.instance=b;case"script":return b=Vs(o.src),(g=r.querySelector(po(b)))?(i.instance=g,Gt(g),g):(f=o,(g=er.get(b))&&(f=p({},o),wm(f,g)),r=r.ownerDocument||r,g=r.createElement("script"),Gt(g),an(g,"link",f),r.head.appendChild(g),i.instance=g);case"void":return null;default:throw Error(a(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(f=i.instance,i.state.loading|=4,Sc(f,o.precedence,r));return i.instance}function Sc(r,i,o){for(var f=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=f.length?f[f.length-1]:null,b=g,A=0;A<f.length;A++){var L=f[A];if(L.dataset.precedence===i)b=L;else if(b!==g)break}b?b.parentNode.insertBefore(r,b.nextSibling):(i=o.nodeType===9?o.head:o,i.insertBefore(r,i.firstChild))}function km(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.title==null&&(r.title=i.title)}function wm(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.integrity==null&&(r.integrity=i.integrity)}var Cc=null;function RE(r,i,o){if(Cc===null){var f=new Map,g=Cc=new Map;g.set(o,f)}else g=Cc,f=g.get(o),f||(f=new Map,g.set(o,f));if(f.has(r))return f;for(f.set(r,null),o=o.getElementsByTagName(r),g=0;g<o.length;g++){var b=o[g];if(!(b[Rl]||b[en]||r==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var A=b.getAttribute(i)||"";A=r+A;var L=f.get(A);L?L.push(b):f.set(A,[b])}}return f}function OE(r,i,o){r=r.ownerDocument||r,r.head.insertBefore(o,i==="title"?r.querySelector("head > title"):null)}function Vw(r,i,o){if(o===1||i.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(r=i.disabled,typeof i.precedence=="string"&&r==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function LE(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function Yw(r,i,o,f){if(o.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var g=qs(f.href),b=i.querySelector(mo(g));if(b){i=b._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(r.count++,r=_c.bind(r),i.then(r,r)),o.state.loading|=4,o.instance=b,Gt(b);return}b=i.ownerDocument||i,f=wE(f),(g=er.get(g))&&km(f,g),b=b.createElement("link"),Gt(b);var A=b;A._p=new Promise(function(L,V){A.onload=L,A.onerror=V}),an(b,"link",f),o.instance=b}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(r.count++,o=_c.bind(r),i.addEventListener("load",o),i.addEventListener("error",o))}}var Nm=0;function $w(r,i){return r.stylesheets&&r.count===0&&kc(r,r.stylesheets),0<r.count||0<r.imgCount?function(o){var f=setTimeout(function(){if(r.stylesheets&&kc(r,r.stylesheets),r.unsuspend){var b=r.unsuspend;r.unsuspend=null,b()}},6e4+i);0<r.imgBytes&&Nm===0&&(Nm=62500*Aw());var g=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&kc(r,r.stylesheets),r.unsuspend)){var b=r.unsuspend;r.unsuspend=null,b()}},(r.imgBytes>Nm?50:800)+i);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(f),clearTimeout(g)}}:null}function _c(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)kc(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Ac=null;function kc(r,i){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Ac=new Map,i.forEach(Gw,r),Ac=null,_c.call(r))}function Gw(r,i){if(!(i.state.loading&4)){var o=Ac.get(r);if(o)var f=o.get(null);else{o=new Map,Ac.set(r,o);for(var g=r.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<g.length;b++){var A=g[b];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(o.set(A.dataset.precedence,A),f=A)}f&&o.set(null,f)}g=i.instance,A=g.getAttribute("data-precedence"),b=o.get(A)||f,b===f&&o.set(null,g),o.set(A,g),this.count++,f=_c.bind(this),g.addEventListener("load",f),g.addEventListener("error",f),b?b.parentNode.insertBefore(g,b.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(g,r.firstChild)),i.state.loading|=4}}var go={$$typeof:w,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function Kw(r,i,o,f,g,b,A,L,V){this.tag=1,this.containerInfo=r,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=Cd(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cd(0),this.hiddenUpdates=Cd(null),this.identifierPrefix=f,this.onUncaughtError=g,this.onCaughtError=b,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=V,this.incompleteTransitions=new Map}function DE(r,i,o,f,g,b,A,L,V,ne,fe,me){return r=new Kw(r,i,o,A,V,ne,fe,me,L),i=1,b===!0&&(i|=24),b=Mn(3,null,null,i),r.current=b,b.stateNode=r,i=oh(),i.refCount++,r.pooledCache=i,i.refCount++,b.memoizedState={element:f,isDehydrated:o,cache:i},dh(b),r}function IE(r){return r?(r=Ts,r):Ts}function ME(r,i,o,f,g,b){g=IE(g),f.context===null?f.context=g:f.pendingContext=g,f=Sa(i),f.payload={element:o},b=b===void 0?null:b,b!==null&&(f.callback=b),o=Ca(r,f,i),o!==null&&(wn(o,r,i),Gl(o,r,i))}function PE(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<i?o:i}}function Rm(r,i){PE(r,i),(r=r.alternate)&&PE(r,i)}function BE(r){if(r.tag===13||r.tag===31){var i=hi(r,67108864);i!==null&&wn(i,r,67108864),Rm(r,67108864)}}function jE(r){if(r.tag===13||r.tag===31){var i=Un();i=_d(i);var o=hi(r,i);o!==null&&wn(o,r,i),Rm(r,i)}}var wc=!0;function Xw(r,i,o,f){var g=B.T;B.T=null;var b=G.p;try{G.p=2,Om(r,i,o,f)}finally{G.p=b,B.T=g}}function Qw(r,i,o,f){var g=B.T;B.T=null;var b=G.p;try{G.p=8,Om(r,i,o,f)}finally{G.p=b,B.T=g}}function Om(r,i,o,f){if(wc){var g=Lm(f);if(g===null)bm(r,i,f,Nc,o),UE(r,f);else if(Zw(g,r,i,o,f))f.stopPropagation();else if(UE(r,f),i&4&&-1<Ww.indexOf(r)){for(;g!==null;){var b=cs(g);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var A=oi(b.pendingLanes);if(A!==0){var L=b;for(L.pendingLanes|=2,L.entangledLanes|=2;A;){var V=1<<31-bt(A);L.entanglements[1]|=V,A&=~V}Tr(b),(ot&6)===0&&(fc=Ye()+500,uo(0))}}break;case 31:case 13:L=hi(b,2),L!==null&&wn(L,b,2),hc(),Rm(b,2)}if(b=Lm(f),b===null&&bm(r,i,f,Nc,o),b===g)break;g=b}g!==null&&f.stopPropagation()}else bm(r,i,f,null,o)}}function Lm(r){return r=Id(r),Dm(r)}var Nc=null;function Dm(r){if(Nc=null,r=us(r),r!==null){var i=l(r);if(i===null)r=null;else{var o=i.tag;if(o===13){if(r=u(i),r!==null)return r;r=null}else if(o===31){if(r=c(i),r!==null)return r;r=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return Nc=r,null}function HE(r){switch(r){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(ln()){case ce:return 2;case W:return 8;case ve:case Me:return 32;case $e:return 268435456;default:return 32}default:return 32}}var Im=!1,Ma=null,Pa=null,Ba=null,bo=new Map,yo=new Map,ja=[],Ww="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 UE(r,i){switch(r){case"focusin":case"focusout":Ma=null;break;case"dragenter":case"dragleave":Pa=null;break;case"mouseover":case"mouseout":Ba=null;break;case"pointerover":case"pointerout":bo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":yo.delete(i.pointerId)}}function Eo(r,i,o,f,g,b){return r===null||r.nativeEvent!==b?(r={blockedOn:i,domEventName:o,eventSystemFlags:f,nativeEvent:b,targetContainers:[g]},i!==null&&(i=cs(i),i!==null&&BE(i)),r):(r.eventSystemFlags|=f,i=r.targetContainers,g!==null&&i.indexOf(g)===-1&&i.push(g),r)}function Zw(r,i,o,f,g){switch(i){case"focusin":return Ma=Eo(Ma,r,i,o,f,g),!0;case"dragenter":return Pa=Eo(Pa,r,i,o,f,g),!0;case"mouseover":return Ba=Eo(Ba,r,i,o,f,g),!0;case"pointerover":var b=g.pointerId;return bo.set(b,Eo(bo.get(b)||null,r,i,o,f,g)),!0;case"gotpointercapture":return b=g.pointerId,yo.set(b,Eo(yo.get(b)||null,r,i,o,f,g)),!0}return!1}function zE(r){var i=us(r.target);if(i!==null){var o=l(i);if(o!==null){if(i=o.tag,i===13){if(i=u(o),i!==null){r.blockedOn=i,t1(r.priority,function(){jE(o)});return}}else if(i===31){if(i=c(o),i!==null){r.blockedOn=i,t1(r.priority,function(){jE(o)});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Rc(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var o=Lm(r.nativeEvent);if(o===null){o=r.nativeEvent;var f=new o.constructor(o.type,o);Dd=f,o.target.dispatchEvent(f),Dd=null}else return i=cs(o),i!==null&&BE(i),r.blockedOn=o,!1;i.shift()}return!0}function FE(r,i,o){Rc(r)&&o.delete(i)}function Jw(){Im=!1,Ma!==null&&Rc(Ma)&&(Ma=null),Pa!==null&&Rc(Pa)&&(Pa=null),Ba!==null&&Rc(Ba)&&(Ba=null),bo.forEach(FE),yo.forEach(FE)}function Oc(r,i){r.blockedOn===i&&(r.blockedOn=null,Im||(Im=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Jw)))}var Lc=null;function qE(r){Lc!==r&&(Lc=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Lc===r&&(Lc=null);for(var i=0;i<r.length;i+=3){var o=r[i],f=r[i+1],g=r[i+2];if(typeof f!="function"){if(Dm(f||o)===null)continue;break}var b=cs(o);b!==null&&(r.splice(i,3),i-=3,Lh(b,{pending:!0,data:g,method:o.method,action:f},f,g))}}))}function Ys(r){function i(V){return Oc(V,r)}Ma!==null&&Oc(Ma,r),Pa!==null&&Oc(Pa,r),Ba!==null&&Oc(Ba,r),bo.forEach(i),yo.forEach(i);for(var o=0;o<ja.length;o++){var f=ja[o];f.blockedOn===r&&(f.blockedOn=null)}for(;0<ja.length&&(o=ja[0],o.blockedOn===null);)zE(o),o.blockedOn===null&&ja.shift();if(o=(r.ownerDocument||r).$$reactFormReplay,o!=null)for(f=0;f<o.length;f+=3){var g=o[f],b=o[f+1],A=g[vn]||null;if(typeof b=="function")A||qE(o);else if(A){var L=null;if(b&&b.hasAttribute("formAction")){if(g=b,A=b[vn]||null)L=A.formAction;else if(Dm(g)!==null)continue}else L=A.action;typeof L=="function"?o[f+1]=L:(o.splice(f,3),f-=3),qE(o)}}}function VE(){function r(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(A){return g=A})},focusReset:"manual",scroll:"manual"})}function i(){g!==null&&(g(),g=null),f||setTimeout(o,20)}function o(){if(!f&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var f=!1,g=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(o,100),function(){f=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),g!==null&&(g(),g=null)}}}function Mm(r){this._internalRoot=r}Dc.prototype.render=Mm.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(a(409));var o=i.current,f=Un();ME(o,f,r,i,null,null)},Dc.prototype.unmount=Mm.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;ME(r.current,2,null,r,null,null),hc(),i[os]=null}};function Dc(r){this._internalRoot=r}Dc.prototype.unstable_scheduleHydration=function(r){if(r){var i=e1();r={blockedOn:null,target:r,priority:i};for(var o=0;o<ja.length&&i!==0&&i<ja[o].priority;o++);ja.splice(o,0,r),o===0&&zE(r)}};var YE=t.version;if(YE!=="19.2.8")throw Error(a(527,YE,"19.2.8"));G.findDOMNode=function(r){var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(a(188)):(r=Object.keys(r).join(","),Error(a(268,r)));return r=h(i),r=r!==null?m(r):null,r=r===null?null:r.stateNode,r};var eN={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ic.isDisabled&&Ic.supportsFiber)try{hn=Ic.inject(eN),qt=Ic}catch{}}return To.createRoot=function(r,i){if(!s(r))throw Error(a(299));var o=!1,f="",g=Zb,b=Jb,A=ey;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(g=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(A=i.onRecoverableError)),i=DE(r,1,!1,null,null,o,f,null,g,b,A,VE),r[os]=i.current,gm(r),new Mm(i)},To.hydrateRoot=function(r,i,o){if(!s(r))throw Error(a(299));var f=!1,g="",b=Zb,A=Jb,L=ey,V=null;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(g=o.identifierPrefix),o.onUncaughtError!==void 0&&(b=o.onUncaughtError),o.onCaughtError!==void 0&&(A=o.onCaughtError),o.onRecoverableError!==void 0&&(L=o.onRecoverableError),o.formState!==void 0&&(V=o.formState)),i=DE(r,1,!0,i,o??null,f,g,V,b,A,L,VE),i.context=IE(null),o=i.current,f=Un(),f=_d(f),g=Sa(f),g.callback=null,Ca(o,g,f),o=f,i.current.lanes=o,Nl(i,o),Tr(i),r[os]=i.current,gm(r),new Dc(i)},To.version="19.2.8",To}var ax;function cN(){if(ax)return Hm.exports;ax=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Hm.exports=uN(),Hm.exports}var fN=cN();const dN=!1;var ov=C.useLayoutEffect;function hN(e,t,n){C.useEffect(()=>{if(!e.current||n||typeof IntersectionObserver!="function")return()=>t();const a=new IntersectionObserver(s=>{t(s.pop())},{rootMargin:"100px"});return a.observe(e.current),()=>{a.disconnect(),t()}},[t,n,e])}function mN(e){const t=C.useRef(null);return C.useImperativeHandle(e,()=>t.current,[]),t}function Xo(e){return e[e.length-1]}function dl(e,t){return typeof e=="function"?e(t):e}const uv=Object.prototype.hasOwnProperty,pN=Object.prototype.propertyIsEnumerable;function cv(e){for(const t in e)if(uv.call(e,t))return!0;return!1}const gN=()=>Object.create(null),Ai=(e,t)=>Bi(e,t,gN);function Bi(e,t,n=()=>({}),a=0){if(e===t)return e;if(a>500)return t;const s=t,l=lx(e)&&lx(s);if(!l&&!(xf(e)&&xf(s)))return s;const u=l?e:ix(e);if(!u)return s;const c=l?s:ix(s);if(!c)return s;const d=u.length,h=c.length,m=l?new Array(h):n();let p=0;for(let E=0;E<h;E++){const x=l?E:c[E],v=e[x],S=s[x];if(v===S){m[x]=v,(l?E<d:uv.call(e,x))&&p++;continue}if(v===null||S===null||typeof v!="object"||typeof S!="object"){m[x]=S;continue}const _=Bi(v,S,n,a+1);m[x]=_,_===v&&p++}return d===h&&p===d?e:m}function ix(e){const t=Object.keys(e);if(t.length!==Object.getOwnPropertyNames(e).length)return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;for(const a of n){if(!pN.call(e,a))return!1;t.push(a)}return t}function xf(e){if(!sx(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!sx(n)||!n.hasOwnProperty("isPrototypeOf"))}function sx(e){return Object.prototype.toString.call(e)==="[object Object]"}function lx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Xa(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let a=0,s=e.length;a<s;a++)if(!Xa(e[a],t[a],n))return!1;return!0}if(xf(e)&&xf(t)){const a=n?.ignoreUndefined??!0;if(n?.partial){for(const u in t)if((!a||t[u]!==void 0)&&!Xa(e[u],t[u],n))return!1;return!0}let s=0;if(!a)s=Object.keys(e).length;else for(const u in e)e[u]!==void 0&&s++;let l=0;for(const u in t)if((!a||t[u]!==void 0)&&(l++,l>s||!Xa(e[u],t[u],n)))return!1;return s===l}return!1}const bN=/[\x00-\x1f\x7f"<>`{}]/g;function yN(e){return e.replace(bN,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function ox(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return yN(t)}const EN=["http:","https:","mailto:","tel:"];function Tf(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function vo(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,a="",s;for(;(s=t.exec(e))!==null;)a+=ox(e.slice(n,s.index))+s[0],n=t.lastIndex;a=a+ox(n?e.slice(n):e);let l=!1;return a.startsWith("//")&&(l=!0,a="/"+a.replace(/^\/+/,"")),{path:a,handledProtocolRelativeURL:l}}function xN(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function TN(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function I0(){throw new Error("Invariant failed")}function vf(e){const t=new Map;let n,a;const s=l=>{l.next&&(l.prev?(l.prev.next=l.next,l.next.prev=l.prev,l.next=void 0,a&&(a.next=l,l.prev=a)):(l.next.prev=void 0,n=l.next,l.next=void 0,a&&(l.prev=a,a.next=l)),a=l)};return{get(l){const u=t.get(l);if(u)return s(u),u.value},set(l,u){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===a&&(a=void 0)}const c=t.get(l);if(c)c.value=u,s(c);else{const d={key:l,value:u,prev:a};a&&(a.next=d),a=d,n||(n=d),t.set(l,d)}},clear(){t.clear(),n=void 0,a=void 0}}}const Ga=4,fv=5;function dv(e,t,n=new Uint16Array(6)){const a=e.indexOf("/",t),s=a===-1?e.length:a,l=e.substring(t,s);if(!l||!l.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n;if(l==="$"){const d=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=d,n[4]=d,n[5]=d,n}if(l.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=s,n[4]=s,n[5]=s,n;const u=l.indexOf("{");let c;if(u!==-1&&u+1<l.length&&(c=l.indexOf("}",u))!==-1){const d=l.charCodeAt(u+1);if(d===45){if(u+2<l.length&&l.charCodeAt(u+2)===36){const h=u+3,m=c;if(h<m)return n[0]=3,n[1]=t+u,n[2]=t+h,n[3]=t+m,n[4]=t+c+1,n[5]=s,n}}else if(d===36){const h=u+1,m=u+2;return m===c?(n[0]=2,n[1]=t+u,n[2]=t+h,n[3]=t+m,n[4]=t+c+1,n[5]=e.length,n):(n[0]=1,n[1]=t+u,n[2]=t+m,n[3]=t+c,n[4]=t+c+1,n[5]=s,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n}function $f(e,t,n,a,s,l,u,c){c?.(n);let d=a;{const h=n.fullPath??n.from,m=n.options,p=h.length,E=m?.caseSensitive??e,x=m?.params?.parse??m?.parseParams;for(;d<p;){const S=dv(h,d,t);let _;const k=d,N=S[5];d=N+1,l++;const w=S[0];switch(w){case 0:{const I=h.substring(S[2],S[3]);let F=I,R;E?R=s.static??=new Map:(F=I.toLowerCase(),R=s.staticInsensitive??=new Map);const M=R.get(F);if(M)_=M;else{const H=al(h);H.parent=s,H.depth=l,_=H,R.set(F,H)}break}case 1:case 3:case 2:{let I=h.substring(k,S[1]),F=h.substring(S[4],N);const R=E&&!!(I||F);E||(I=I.toLowerCase(),F=F.toLowerCase());const M=w===1?s.dynamic:w===3?s.optional:s.wildcard,H=w!==2&&!x&&M?.find(Y=>!Y.parse&&Y.caseSensitive===R&&Y.prefix===I&&Y.suffix===F);if(H)_=H;else{const Y=vN(w,h,R,I,F);_=Y,Y.parent=s,Y.depth=l;let U;w===1?U=s.dynamic??=[]:w===3?U=s.optional??=[]:U=s.wildcard??=[],U.push(Y),U.length===2&&u?.push(U)}break}}s=_}if(x&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const S=al(h);S.kind=fv,S.parent=s,l++,S.depth=l,s.pathless??=[],s.pathless.push(S),s=S}const v=(n.path||!n.children)&&!n.isRoot;if(v&&h.endsWith("/")){const S=al(h);S.kind=Ga,S.parent=s,l++,S.depth=l,s.index=S,s=S}s.parse=x??null,s.priority=m?.params?.priority??0,v&&!s.route&&(s.route=n,s.fullPath=h)}if(n.children)for(const h of n.children)$f(e,t,h,d,s,l,u,c)}function hv(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function al(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function vN(e,t,n,a,s){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:a,suffix:s}}function SN(e,t){const n=al("/"),a=new Uint16Array(6),s=[];for(const l of e)$f(!1,a,l,1,n,0,s);for(const l of s)l.sort(hv);t.masksTree=n,t.flatCache=vf(1e3)}function CN(e,t){e||="/";const n=t.flatCache.get(e);if(n!==void 0)return n;const a=M0(e,t.masksTree);return t.flatCache.set(e,a),a}function _N(e,t,n,a,s){e||="/",a||="/";const l=t?`case\0${e}`:e;let u=s.singleCache.get(l);return u||(u=al("/"),$f(t,new Uint16Array(6),{from:e},1,u,0),s.singleCache.set(l,u)),M0(a,u,n)}function AN(e,t,n=!1){const a=n?e:`nofuzz\0${e}`,s=t.matchCache.get(a);if(s!==void 0)return s;e||="/";let l;try{l=M0(e,t.segmentTree,n)}catch(u){if(u instanceof URIError)l=null;else throw u}return l&&(l.branch=pv(l.route)),t.matchCache.set(a,l),l}function kN(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function wN(e,t=!1,n){const a=al(e.fullPath),s=new Uint16Array(6),l=[],u={},c={};let d=0;$f(t,s,e,1,a,0,l,h=>{if(n?.(h,d),h.id in u&&I0(),u[h.id]=h,d!==0&&h.path){const m=kN(h.fullPath);(!c[m]||h.fullPath.endsWith("/"))&&(c[m]=h)}d++});for(const h of l)h.sort(hv);return{processedTree:{segmentTree:a,singleCache:vf(1e3),matchCache:vf(1e3),flatCache:null,masksTree:null},routesById:u,routesByPath:c}}function M0(e,t,n=!1){const a=e.split("/"),s=RN(e,a,t,n);if(!s)return null;const[l]=mv(e,a,s);return{route:s.node.route,rawParams:l}}function mv(e,t,n){const a=NN(n.node);let s=null;const l=Object.create(null);let u=n.extract?.part??0,c=n.extract?.node??0,d=n.extract?.path??0,h=n.extract?.segment??0;for(;c<a.length;u++,c++,d++,h++){const m=a[c];if(m.kind===Ga)break;if(m.kind===fv){h--,u--,d--;continue}const p=t[u],E=d;if(p&&(d+=p.length),m.kind===1){s??=n.node.fullPath.split("/");const x=s[h],v=m.prefix.length;if(x.charCodeAt(v)===123){const S=m.suffix.length,_=x.substring(v+2,x.length-S-1),k=p.substring(v,p.length-S);l[_]=decodeURIComponent(k)}else{const S=x.substring(1);l[S]=decodeURIComponent(p)}}else if(m.kind===3){if(n.skipped&1<<c){u--,d=E-1;continue}s??=n.node.fullPath.split("/");const x=s[h],v=m.prefix.length,S=m.suffix.length,_=x.substring(v+3,x.length-S-1),k=m.suffix||m.prefix?p.substring(v,p.length-S):p;k&&(l[_]=decodeURIComponent(k))}else if(m.kind===2){const x=m,v=e.substring(E+x.prefix.length,e.length-x.suffix.length),S=decodeURIComponent(v);l["*"]=S,l._splat=S;break}}return n.rawParams&&Object.assign(l,n.rawParams),[l,{part:u,node:c,path:d,segment:h}]}function pv(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function NN(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function RN(e,t,n,a){if(e==="/"&&n.index)return{node:n.index,skipped:0};const s=!Xo(t),l=s&&e!=="/",u=t.length-(s?1:0),c=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}];let d=null,h=null;for(;c.length;){const m=c.pop(),{node:p,index:E,skipped:x,statics:v,dynamics:S,optionals:_}=m;let{extract:k,rawParams:N}=m;if(p.kind===2&&p.route&&!Pc(h,m))continue;if(p.parse){if(!ux(e,t,m))continue;N=m.rawParams,k=m.extract}a&&p.route&&p.kind!==Ga&&Pc(d,m)&&(d=m);const w=E===u;if(w&&(p.route&&(!l||p.kind===Ga||p.kind===2)&&Pc(h,m)&&(h=m),!p.optional&&!p.wildcard&&!p.index&&!p.pathless))continue;const I=w?void 0:t[E];let F;if(w&&p.index){const R={node:p.index,index:E,skipped:x,statics:v,dynamics:S,optionals:_,extract:k,rawParams:N};let M=!0;if(p.index.parse&&(ux(e,t,R)||(M=!1)),M){if(!S&&!_&&!x&&ON(v,u))return R;Pc(h,R)&&(h=R)}}if(p.wildcard)for(let R=p.wildcard.length-1;R>=0;R--){const M=p.wildcard[R],{prefix:H,suffix:Y}=M;if(!(H&&(w||!(M.caseSensitive?I:F??=I.toLowerCase()).startsWith(H)))){if(Y){if(w)continue;const U=t.slice(E).join("/"),J=U.slice(-Y.length);if((M.caseSensitive?J:J.toLowerCase())!==Y||U.length-Y.length<H.length)continue}c.push({node:M,index:u,skipped:x,statics:v,dynamics:S,optionals:_,extract:k,rawParams:N})}}if(p.optional){const R=x|1<<p.depth+1;for(let M=p.optional.length-1;M>=0;M--){const H=p.optional[M];c.push({node:H,index:E,skipped:R,statics:v,dynamics:S,optionals:_,extract:k,rawParams:N})}if(!w)for(let M=p.optional.length-1;M>=0;M--){const H=p.optional[M],{prefix:Y,suffix:U}=H;if(Y||U){const J=H.caseSensitive?I:F??=I.toLowerCase();if(Y&&!J.startsWith(Y)||U&&J.indexOf(U,J.length-U.length)<Y.length)continue}c.push({node:H,index:E+1,skipped:x,statics:v,dynamics:S,optionals:_+Mc(u,E),extract:k,rawParams:N})}}if(!w&&p.dynamic&&I)for(let R=p.dynamic.length-1;R>=0;R--){const M=p.dynamic[R],{prefix:H,suffix:Y}=M;if(H||Y){const U=M.caseSensitive?I:F??=I.toLowerCase();if(H&&!U.startsWith(H)||Y&&U.indexOf(Y,U.length-Y.length)<H.length)continue}c.push({node:M,index:E+1,skipped:x,statics:v,dynamics:S+Mc(u,E),optionals:_,extract:k,rawParams:N})}if(!w&&p.staticInsensitive){const R=p.staticInsensitive.get(F??=I.toLowerCase());R&&c.push({node:R,index:E+1,skipped:x,statics:v+Mc(u,E),dynamics:S,optionals:_,extract:k,rawParams:N})}if(!w&&p.static){const R=p.static.get(I);R&&c.push({node:R,index:E+1,skipped:x,statics:v+Mc(u,E),dynamics:S,optionals:_,extract:k,rawParams:N})}if(p.pathless)for(let R=p.pathless.length-1;R>=0;R--){const M=p.pathless[R];c.push({node:M,index:E,skipped:x,statics:v,dynamics:S,optionals:_,extract:k,rawParams:N})}}if(h)return h;if(a&&d){let m=d.index;for(let E=0;E<d.index;E++)m+=t[E].length;const p=m===e.length?"/":e.slice(m);return d.rawParams??=Object.create(null),d.rawParams["**"]=decodeURIComponent(p),d}return null}function Mc(e,t){return 2**(e-t-1)}function ON(e,t){return e===2**(t-1)-1}function ux(e,t,n){let a,s;try{[a,s]=mv(e,t,n)}catch{return null}if(n.rawParams=a,n.extract=s,!n.node.parse)return!0;try{if(n.node.parse(a)===!1)return null}catch{}return!0}function Pc(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Ga)>(e.node.kind===Ga)||t.node.kind===Ga==(e.node.kind===Ga)&&t.node.depth>e.node.depth))):!0}function sf(e){return lf(e.filter(t=>t!==void 0).join("/"))}function lf(e){return e.replace(/\/{2,}/g,"/")}function gv(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function ra(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function bv(e){return ra(gv(e))}function Sf(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function LN(e,t,n){return Sf(e,n)===Sf(t,n)}function DN({base:e,to:t,trailingSlash:n="never",cache:a}){if(t.includes("//")&&(t=lf(t)),t.startsWith("/"))return t.length===1||n==="preserve"?t:n==="always"?t.endsWith("/")?t:`${t}/`:t.endsWith("/")?t.slice(0,-1):t;const s=t===".";let l;if(a){l=s?e:e+"\0"+t;const h=a.get(l);if(h)return h}let u;if(s)u=e.split("/");else{for(e.includes("//")&&(e=lf(e)),u=e.split("/");u.length>1&&Xo(u)==="";)u.pop();const h=t.split("/");for(let m=0,p=h.length;m<p;m++){const E=h[m];E===""?m?m===p-1&&u.push(E):u=[E]:E===".."?u.length>1?u.pop():u=[""]:E==="."||u.push(E)}}u.length>1&&(Xo(u)===""?n==="never"&&u.pop():n==="always"&&u.push(""));const c=u.join("/"),d=(s?lf(c):c)||"/";return l&&a&&a.set(l,d),d}function IN(e){const t=new Map(e.map(s=>[encodeURIComponent(s),s])),n=Array.from(t.keys()).map(s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),a=new RegExp(n,"g");return s=>s.replace(a,l=>t.get(l)??l)}function qm(e,t,n){const a=t[e];return typeof a!="string"?a:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(a)?a:a.split("/").map(s=>fx(s,n)).join("/"):fx(a,n)}function cx({path:e,params:t,decoder:n,...a}){let s=!1;const l=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:l,isMissingParams:s};if(!e.includes("$"))return{interpolatedPath:e,usedParams:l,isMissingParams:s};const u=e.length;let c=0,d,h="";for(;c<u;){const m=c;d=dv(e,m,d);const p=d[5];if(c=p+1,m===p)continue;const E=d[0];if(E===0){h+="/"+e.substring(m,p);continue}if(E===2){const x=t._splat;l._splat=x,l["*"]=x;const v=e.substring(m,d[1]),S=e.substring(d[4],p);if(!x){s=!0,(v||S)&&(h+="/"+v+S);continue}const _=qm("_splat",t,n);h+="/"+v+_+S;continue}if(E===1){const x=e.substring(d[2],d[3]);!s&&!(x in t)&&(s=!0),l[x]=t[x];const v=e.substring(m,d[1]),S=e.substring(d[4],p),_=qm(x,t,n)??"undefined";h+="/"+v+_+S;continue}if(E===3){const x=e.substring(d[2],d[3]),v=t[x];if(v==null)continue;l[x]=v;const S=e.substring(m,d[1]),_=e.substring(d[4],p),k=qm(x,t,n)??"";h+="/"+S+k+_;continue}}return e.endsWith("/")&&(h+="/"),{usedParams:l,interpolatedPath:h||"/",isMissingParams:s}}function fx(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function hl(e){return e?.isNotFound===!0}function MN(){try{return sessionStorage}catch{return}}const PN="tsr-scroll-restoration-v1_3",yv=MN();function BN(){try{return JSON.parse(yv?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function jN(){try{yv?.setItem(PN,JSON.stringify(Js))}catch{}}const Js=BN(),dx="data-scroll-restoration-id",HN=e=>e.state.__TSR_key||e.href;function UN(e){const t=e.getAttribute(dx);if(t)return`[${dx}="${t}"]`;let n="",a=e,s;for(;s=a.parentNode;){let l=1,u=a;for(;u=u.previousElementSibling;)l++;const c=`${a.localName}:nth-child(${l})`;n=n?`${c} > ${n}`:c,a=s}return n}let Bc=!1;const of="window";function Ip(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function hx(e){const t=new Set;for(const n of e){if(n===of)continue;const a=Ip(n);a&&t.add(a)}return t}function zN(e,t){const n=e.options.scrollRestoration,a=e._scroll;n&&(a.restoring=!0);const s=e.options.getScrollRestorationKey||HN,l=new Set,u=c=>{const d=Js[c]||={};for(const h of l)h===document?d[of]={scrollX,scrollY}:h.isConnected&&(d[UN(h)]={scrollX:h.scrollLeft,scrollY:h.scrollTop})};n&&!a.restoration&&(a.restoration=!0,Bc=!1,history.scrollRestoration="manual",document.addEventListener("scroll",c=>{Bc||l.add(c.target)},!0),e.subscribe("onBeforeLoad",c=>{c.fromLocation&&u(s(c.fromLocation)),l.clear()}),addEventListener("pagehide",()=>{u(s(e.stores.resolvedLocation.get()??e.stores.location.get())),jN()})),!a.reset&&(a.reset=!0,e.subscribe("onRendered",c=>{const d=e.options.scrollRestorationBehavior,h=e.options.scrollToTopSelectors,m=a.next,p=a.hash;let E;if(l.clear(),a.next=!0,a.hash=!1,typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const x=s(c.toLocation),v=c.fromLocation&&s(c.fromLocation);if(a.restoring&&v&&v!==x){const S=Js[v];if(S){let _=Js[x];for(const k in S){if(k===of){if(m)continue}else{const N=Ip(k);if(!N||m&&h&&(E??=hx(h),E.has(N)))continue}_||(_=Js[x]={}),_[k]??=S[k]}}}Bc=!0;try{const S=c.toLocation.hash,_=c.toLocation.state.__hashScrollIntoViewOptions??!0;let k=!1;if(m){!S&&h&&(E??=hx(h));const N=S&&_&&p,w=a.restoring?Js[x]:void 0;if(w)for(const I in w){const{scrollX:F,scrollY:R}=w[I];if(I===of){if(N)continue;scrollTo({top:R,left:F,behavior:d}),k=!0}else{const M=Ip(I);M&&(M.scrollLeft=F,M.scrollTop=R,E?.delete(M))}}if(!S){const I={top:0,left:0,behavior:d};if(k||scrollTo(I),E)for(const F of E)F.scrollTo(I)}}!k&&S&&_&&document.getElementById(S)?.scrollIntoView(_)}finally{Bc=!1}}))}function FN(e,t=String){const n=new URLSearchParams;for(const a in e){const s=e[a];s!==void 0&&n.set(a,t(s))}return n.toString()}function Vm(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function qN(e){const t=new URLSearchParams(e),n=Object.create(null);for(const[a,s]of t.entries()){const l=n[a];l==null?n[a]=Vm(s):Array.isArray(l)?l.push(Vm(s)):n[a]=[l,Vm(s)]}return n}const VN=/^(?:\s|["[{\d-]|fa|nu|tr)/,YN=GN(JSON.parse),$N=KN(JSON.stringify,JSON.parse);function GN(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=qN(t);for(const a in n){const s=n[a];if(typeof s=="string")try{n[a]=e(s)}catch{}}return n}}function KN(e,t){const n=t===JSON.parse;function a(s){if(s&&typeof s=="object")try{return e(s)}catch{}else if(t&&typeof s=="string"){if(n&&!VN.test(s))return s;try{return t(s),e(s)}catch{}}return s}return s=>{const l=FN(s,a);return l?`?${l}`:""}}const il="__root__";function XN(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Ev(e){return e instanceof Response&&!!e.options}function QN(e){return{input:({url:t})=>{for(const n of e)t=Mp(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=xv(e[n],t);return t}}}function WN(e){const t=bv(e.basepath),n=`/${t}`,a=e.caseSensitive?n:n.toLowerCase(),s=`${a}/`;return{input:({url:l})=>{const u=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return u===a?l.pathname="/":u.startsWith(s)&&(l.pathname=l.pathname.slice(n.length)),l},output:({url:l})=>(l.pathname=sf(["/",t,l.pathname]),l)}}function Mp(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function xv(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function ZN(e,t){const{createMutableStore:n,createReadonlyStore:a,batch:s}=t,l=new Map,u=n("idle"),c=n(e),d=n(void 0),h=n([]),m=a(()=>h.get().map(S=>l.get(S).get())),p=a(()=>({status:u.get(),isLoading:u.get()==="pending",matches:m.get(),location:c.get(),resolvedLocation:d.get()}));function E(S){let _=l.get(S);return _||(_=n(void 0),l.set(S,_)),_}const x={status:u,location:c,resolvedLocation:d,ids:h,matches:m,byRoute:l,__store:p,getMatchStore:E,setMatches:v};function v(S){const _=h.get(),k=S.map(N=>N.routeId);s(()=>{TN(_,k)||h.set(k);for(const N of _)k.includes(N)||l.get(N).set(()=>{});for(const N of S){const w=E(N.routeId);w.get()!==N&&w.set(N)}})}return x}var Qa="__TSR_index",mx="popstate",px="beforeunload";function JN(e){let t=e.getLocation();const n=new Set,a=u=>{t=e.getLocation(),n.forEach(c=>c({location:t,action:u}))},s=u=>{e.notifyOnIndexChange??!0?a(u):t=e.getLocation()},l=async({task:u,navigateOpts:c,...d})=>{if(c?.ignoreBlocker??!1){u();return}const h=e.getBlockers?.()??[],m=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&h.length&&m)for(const p of h){const E=Cf(d.path,d.state);if(await p.blockerFn({currentLocation:t,nextLocation:E,action:d.type})){e.onBlocked?.();return}}u()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:u=>(n.add(u),()=>{n.delete(u)}),push:(u,c,d)=>{const h=t.state[Qa];c=gx(h+1,c),l({task:()=>{e.pushState(u,c),a({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:u,state:c})},replace:(u,c,d)=>{const h=t.state[Qa];c=gx(h,c),l({task:()=>{e.replaceState(u,c),a({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:u,state:c})},go:(u,c)=>{l({task:()=>{e.go(u),s({type:"GO",index:u})},navigateOpts:c,type:"GO"})},back:u=>{l({task:()=>{e.back(u?.ignoreBlocker??!1),s({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{l({task:()=>{e.forward(u?.ignoreBlocker??!1),s({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>t.state[Qa]!==0,createHref:u=>e.createHref(u),block:u=>{if(!e.setBlockers)return()=>{};const c=e.getBlockers?.()??[];return e.setBlockers([...c,u]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(h=>h!==u))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:a}}function gx(e,t){t||(t={});const n=P0();return{...t,key:n,__TSR_key:n,[Qa]:e}}function e6(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,a=t.history.replaceState;let s=[];const l=()=>s,u=M=>s=M,c=(M=>M),d=(()=>Cf(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const M=P0();t.history.replaceState({[Qa]:0,key:M,__TSR_key:M},"")}let h=d(),m,p=!1,E=!1,x=!1,v=!1;const S=()=>h;let _;const k=()=>{_&&(R._ignoreSubscribers=!0,(_[2]?t.history.pushState:t.history.replaceState)(_[1],"",_[0]),R._ignoreSubscribers=!1,_=void 0,m=void 0)},N=(M,H,Y)=>{const U=c(H),J=!!_;J||(m=h),h=Cf(H,Y),_=[U,Y,_?.[2]||M],J||queueMicrotask(()=>k())},w=M=>{h=d(),R.notify({type:M})},I=async()=>{if(E){E=!1;return}const M=d(),H=M.state[Qa]-h.state[Qa],Y=H===1,U=H===-1,J=!Y&&!U||p;p=!1;const Q=J?"GO":U?"BACK":"FORWARD",se=J?{type:"GO",index:H}:{type:U?"BACK":"FORWARD"};if(x)x=!1;else{const ue=l();if(typeof document<"u"&&ue.length){for(const ae of ue)if(await ae.blockerFn({currentLocation:h,nextLocation:M,action:Q})){E=!0,t.history.go(1),R.notify(se);return}}}h=d(),R.notify(se)},F=M=>{if(v){v=!1;return}let H=!1;const Y=l();if(typeof document<"u"&&Y.length)for(const U of Y){const J=U.enableBeforeUnload??!0;if(J===!0){H=!0;break}if(typeof J=="function"&&J()===!0){H=!0;break}}if(H)return M.preventDefault(),M.returnValue=""},R=JN({getLocation:S,getLength:()=>t.history.length,pushState:(M,H)=>N(!0,M,H),replaceState:(M,H)=>N(!1,M,H),back:M=>(M&&(x=!0),v=!0,t.history.back()),forward:M=>{M&&(x=!0),v=!0,t.history.forward()},go:M=>{p=!0,t.history.go(M)},createHref:M=>c(M),flush:k,destroy:()=>{t.history.pushState=n,t.history.replaceState=a,t.removeEventListener(px,F,{capture:!0}),t.removeEventListener(mx,I)},onBlocked:()=>{m&&h!==m&&(h=m)},getBlockers:l,setBlockers:u,notifyOnIndexChange:!1});return t.addEventListener(px,F,{capture:!0}),t.addEventListener(mx,I),t.history.pushState=function(...M){const H=n.apply(t.history,M);return R._ignoreSubscribers||w("PUSH"),H},t.history.replaceState=function(...M){const H=a.apply(t.history,M);return R._ignoreSubscribers||w("REPLACE"),H},R}function t6(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Cf(e,t){const n=t6(e),a=n.indexOf("#"),s=n.indexOf("?"),l=P0();return{href:n,pathname:n.substring(0,a>0?s>0?Math.min(a,s):a:s>0?s:n.length),hash:a>-1?n.substring(a):"",search:s>-1?n.slice(s,a===-1?void 0:a):"",state:t||{[Qa]:0,key:l,__TSR_key:l}}}function P0(){return(Math.random()+1).toString(36).substring(7)}function bx(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function Gf(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function yx({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:a,...s}){return s}function n6(e,t,n,a){for(const s of t){if(a&&e._tx!==a)return;n.some(l=>l.routeId===s.routeId)||e.routesById[s.routeId].options.onLeave?.(s)}for(const s of n){if(a&&e._tx!==a)return;e.routesById[s.routeId].options[t.some(l=>l.routeId===s.routeId)?"onStay":"onEnter"]?.(s)}}var r6=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=async n=>(n(),!1),this.update=n=>{const a=this.options,s=this.basepath??a?.basepath??"/",l=this.basepath===void 0,u=a?.rewrite;if(this.options={...a,...n},this.isServer=this.options.isServer??dN??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=IN(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=e6()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let h;this.resolvePathCache=vf(1e3),h=this.buildRouteTree(),this.setRoutes(h)}if(!this.stores&&this.latestLocation){const h=this.getStoreConfig(this);this.batch=h.batch,this.stores=ZN(this.latestLocation,h),zN(this)}const c=this.options.basepath??"/",d=this.options.rewrite;if(l||s!==c||u!==d){this.basepath=c;const h=[],m=bv(c);m&&m!=="/"&&h.push(WN({basepath:c})),d&&h.push(d),this.rewrite=h.length===0?void 0:h.length===1?h[0]:QN(h),this.history&&this.updateLatestLocation(),this.stores&&this.stores.location.set(this.latestLocation)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=wN(this.routeTree,this.options.caseSensitive,(a,s)=>{a.init({originalIndex:s})});return this.options.routeMasks&&SN(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,a)=>{const s={eventType:n,fn:a};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=n=>{for(const a of this.subscribers)if(a.eventType===n.type)try{a.fn(n)}catch(s){console.error(s)}},this.parseLocation=(n,a)=>{const s=({pathname:d,search:h,hash:m,href:p,state:E})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(d)){const k=this.options.parseSearch(h),N=this.options.stringifySearch(k);return{href:d+N+m,publicHref:d+N+m,pathname:vo(d).path,external:!1,searchStr:N,search:Ai(a?.search,k),hash:vo(m.slice(1)).path,state:Bi(a?.state,E)}}const x=new URL(p,this.origin),v=Mp(this.rewrite,x),S=this.options.parseSearch(v.search),_=this.options.stringifySearch(S);return v.search=_,{href:v.href.replace(v.origin,""),publicHref:p,pathname:vo(v.pathname).path,external:!!this.rewrite&&v.origin!==this.origin,searchStr:_,search:Ai(a?.search,S),hash:vo(v.hash.slice(1)).path,state:Bi(a?.state,E)}},l=s(n),{__tempLocation:u,__tempKey:c}=l.state;if(u&&(!c||c===this.tempLocationKey)){const d=s(u);return d.state.key=l.state.key,d.state.__TSR_key=l.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:l}}return l},this.resolvePathWithBase=(n,a)=>DN({base:n,to:a,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,a,s)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:a},s):this.matchRoutesInternal(n,a),this.getMatchedRoutes=n=>{const a=Object.create(null),s=AN(ra(n),this.processedTree,!0);return s&&Object.assign(a,s.rawParams),[s?.branch||[this.routesById.__root__],a,s?.route]},this.buildLocation=n=>{const a=(l={})=>{if(l.href){const Y=Cf(l.href,{});l={...l,to:Mp(this.rewrite,new URL(Y.pathname,this.origin)).pathname,search:this.options.parseSearch(Y.search),hash:Y.hash.slice(1)}}const u=l._fromLocation||this._pendingLocation||this.latestLocation,c=this.matchRoutesLightweight(u);l.from;const d=l.unsafeRelative==="path"?u.pathname:l.from??c[1],h=c[2],m=c[3],p=this.resolvePathWithBase(d,l.to?`${l.to}`:".");let E=Ex(l.params,m);const x=this.routesByPath[ra(p)];let v;if(x)v=this.getRouteBranch(x);else if(p.includes("$"))v=[];else{const[Y,U,J]=this.getMatchedRoutes(p);v=Y,this.options.notFoundRoute&&(!J||J.path!=="/"&&U["**"])&&(v=[...v,this.options.notFoundRoute])}if(v.length&&cv(E))for(const Y of v){const U=Y.options.params?.stringify??Y.options.stringifyParams;if(U){E===m&&(E=Object.assign(Object.create(null),E));try{Object.assign(E,U(E))}catch{}}}const S=n.leaveParams?p:vo(cx({path:p,params:E,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let _=h;if(n._includeValidateSearch&&this.options.search?.strict){const Y={};v.forEach(U=>{if(U.options.validateSearch)try{Object.assign(Y,uf(U.options.validateSearch,{...Y,..._}))}catch{}}),_=Y}_=i6(_,l,v,n._includeValidateSearch),_=Ai(h,_);const k=this.options.stringifySearch(_),N=l.hash===!0?u.hash:l.hash?dl(l.hash,u.hash):void 0,w=N?`#${N}`:"";let I=l.state===!0?u.state:l.state?dl(l.state,u.state):{};l.state&&(I=Bi(u.state,I));const F=`${S}${k}${w}`;let R,M,H=!1;if(this.rewrite){const Y=new URL(F,this.origin),U=xv(this.rewrite,Y);R=Y.href.replace(Y.origin,""),U.origin!==this.origin?(M=U.href,H=!0):M=U.pathname+U.search+U.hash}else R=xN(F),M=R;return{publicHref:M,href:R,pathname:S,search:_,searchStr:k,state:I,hash:N??"",external:H,unmaskOnReload:l.unmaskOnReload}},s=a(n);if(n.mask)s.maskedLocation=a({from:n.from,...n.mask});else if(this.options.routeMasks){const l=CN(s.pathname,this.processedTree);if(l){const u=Object.assign(Object.create(null),l.rawParams),{from:c,params:d,...h}=l.route,m=Ex(d,u);s.maskedLocation=a({from:n.from,...h,params:m})}}return s},this.commitLocation=async({viewTransition:n,ignoreBlocker:a,...s})=>{let l;const u=ra(this.latestLocation.href)===ra(s.href)&&Xa(yx(s.state),yx(this.latestLocation.state)),c=this._commitPromise;let d;const h=new Promise(m=>{d=m});if(h.resolve=()=>{d(),c?.resolve()},this._commitPromise=h,u)this.load();else{let{maskedLocation:m,hashScrollIntoView:p,...E}=s;m&&(E={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...E,search:E.searchStr,state:{...E.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(E.unmaskOnReload??this.options.unmaskOnReload??!1)&&(E.state.__tempKey=this.tempLocationKey)),E.state.__hashScrollIntoViewOptions=p??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,l=s.replace?"REPLACE":"PUSH",this.history[l==="REPLACE"?"replace":"push"](E.publicHref,E.state,{ignoreBlocker:a}),this.history.subscribers.size||this.load({action:{type:l}})}return this._scroll.next=s.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:n,resetScroll:a,hashScrollIntoView:s,viewTransition:l,ignoreBlocker:u,...c}={})=>{const d=this.buildLocation({...c,_includeValidateSearch:!0});this._pendingLocation=d;const h=this.commitLocation({...d,viewTransition:l,replace:n,resetScroll:a,hashScrollIntoView:s,ignoreBlocker:u});return queueMicrotask(()=>{this._pendingLocation===d&&(this._pendingLocation=void 0)}),h},this.navigate=async({to:n,reloadDocument:a,href:s,publicHref:l,...u})=>{let c=!1;if(s)try{new URL(`${s}`),c=!0}catch{}if(c&&!a&&(a=!0),a){if(n!==void 0||!s){const h=this.buildLocation({to:n,...u});s=s??h.publicHref,l=l??h.publicHref}const d=!c&&l?l:s;if(Tf(d,this.protocolAllowlist))return;if(!u.ignoreBlocker){const h=this.history.getBlockers?.()??[];for(const m of h)if(m?.blockerFn&&await m.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return}u.replace?window.location.replace(d):window.location.href=d;return}return this.buildAndCommitLocation({...u,href:s,to:n,_isNavigate:!0})},this.load=async n=>{this.updateLatestLocation(),n?.action&&(this._scroll.hash=n.action.type==="PUSH"||n.action.type==="REPLACE"),await m6(this,n)},this.startViewTransition=n=>{const a=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,a&&typeof document.startViewTransition=="function"){let s;if(typeof a=="object"&&window.CSS?.supports?.("selector(:active-view-transition-type(a))")){const l=this.latestLocation,u=this.stores.resolvedLocation.get(),c=typeof a.types=="function"?a.types(Gf(l,u)):a.types;if(c===!1)return n();s={update:n,types:c}}else s=n;return document.startViewTransition(s).updateCallbackDone}return n()},this.invalidate=n=>{const a=this._committed,s=n?.filter,l=this._preloads,u=new Set([...a,...this._cache.values(),...[...l?.values()??[]].flat(),...this._tx?.[3]??[]].filter(h=>!s||s(h)).map(h=>h.id)),c=[];for(const[h,m]of l??[])m.some(p=>u.has(p.id))&&(l.delete(h),c.push(h));const d=h=>{if(u.has(h.id)){const m=this.routesById[h.routeId],p={...h,invalid:!0,...(n?.forcePending||h.status==="error"||h.status==="notFound")&&bx(m)?{status:"pending",error:void 0}:void 0};return h._flight=void 0,p}return h};this._committed=a.map(d);for(const[h,m]of this._cache)u.has(h)&&(m.invalid=!0,n?.forcePending&&(m.status="pending"));for(const h of u)this._flights?.delete(h);for(const h of c)h.abort();return this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.resolveRedirect=n=>{const a=n.headers.get("Location");if(n.options.href){if(a)try{const s=new URL(a);if(this.origin&&s.origin===this.origin){const l=s.pathname+s.search+s.hash;n.options.href=l,n.headers.set("Location",l)}}catch{}}else{const s=this.buildLocation(n.options).publicHref||"/";n.options.href=s,n.headers.set("Location",s)}if(n.options.href&&Tf(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const a=this._cache,s=this._preloads,l=n?.filter,u=[],c=[];for(const[h,m]of a)(!l||l(m))&&(c.push(h),u.push(m));const d=[];for(const[h,m]of s??[])(!l||m.some(l))&&(d.push(h),u.push(...m));for(const h of c)a.delete(h);for(const h of d)s.delete(h);for(const h of u){const m=h._flight;h._flight=void 0,m&&!--m[2]&&(this._flights?.get(h.id)===m&&this._flights.delete(h.id),d.push(m[1]))}for(const h of d)h.abort()},this.loadRouteChunk=sl,this.preloadRoute=n=>p6(this,n),this.matchRoute=(n,a)=>{const s={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},l=this.buildLocation(s),u=this.stores.status.get()==="pending";if(a?.pending&&!u)return!1;const c=a?.pending??!u?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),d=_N(l.pathname,a?.caseSensitive??!1,a?.fuzzy??!1,c.pathname,this.processedTree);return!d||n.params&&!Xa(d.rawParams,n.params,{partial:!0})?!1:a?.includeSearch??!0?Xa(c.search,l.search,{partial:!0})?d.rawParams:!1:d.rawParams},this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??$N,parseSearch:e.parseSearch??YN,protocolAllowlist:e.protocolAllowlist??EN}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;const a=this.options.notFoundRoute;a&&(a.init({originalIndex:99999999999}),this.routesById[a.id]=a)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=pv(e),this.routeBranchCache.set(e,t)),t}matchRoutesInternal(e,t){const[n,a,s]=this.getMatchedRoutes(e.pathname);let l=n,u=!1;(s?s.path!=="/"&&a["**"]:ra(e.pathname))&&(this.options.notFoundRoute?l=[...l,this.options.notFoundRoute]:u=!0);const c=u?s6(this.options.notFoundMode,l):void 0,d=new Array(l.length),h=this._committed,m=(E,x)=>{const v=h[x];return v?.routeId===E.id?v:E===this.options.notFoundRoute?h.find(S=>S.routeId===E.id):void 0};let p;for(let E=0;E<l.length;E++){const x=l[E],v=d[E-1];let S,_,k;{const se=v?.search??e.search,ue=v?._strictSearch??void 0;try{const ae=uf(x.options.validateSearch,{...se})??void 0;S={...se,...ae},_={...ue,...ae}}catch(ae){let B=ae;if(ae instanceof _f||(B=new _f(ae.message,{cause:ae})),t?.throwOnError)throw B;S=se,_={},k=B}}let N="",w="";try{N=x.options.loaderDeps?.({search:S})??"",w=N&&JSON.stringify(N)||""}catch(se){if(t?.throwOnError)throw se;k??=se}const{interpolatedPath:I,usedParams:F}=cx({path:x.fullPath,params:a,decoder:this.pathParamsDecoder,server:this.isServer}),R=x.id+I+w,M=m(x,E),H=this._cache.get(R)??(M?.id===R?M:void 0);p=H?._strictParams??Object.assign(F,p);let Y;if(!H)try{xx(x,p)}catch(se){if(hl(se)||Ev(se)?Y=se:Y=new a6(se.message,{cause:se}),t?.throwOnError)throw Y}const U=M?"stay":"enter";let J;if(H)J={...H,cause:U,search:Ai(M?M.search:H.search,S),_strictSearch:_,searchError:k};else{const se=bx(x)?"pending":"success";J={id:R,ssr:x.options.ssr,index:E,routeId:x.id,params:M?.params??p,_strictParams:p,pathname:I,updatedAt:Date.now(),search:M?Ai(M.search,S):S,_strictSearch:_,searchError:k,status:se,isFetching:!1,error:void 0,paramsError:Y,context:{},abortController:t?._controller??new AbortController,cause:U,loaderDeps:M?Bi(M.loaderDeps,N):N,invalid:!1,preload:!1,staticData:x.options.staticData||{},fullPath:x.fullPath}}const Q=c===x.id;J._notFound&&!Q&&(J.error=void 0),J._notFound=Q,d[E]=J}for(let E=0;E<d.length;E++){const x=d[E];x.params=x.cause==="stay"?Ai(x.params,p):p,t?._controller&&(x.context={})}return d}matchRoutesLightweight(e){const t=Xo(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,a=n?.id,s=this.lightweightCache.get(e);if(s&&s[0]===a)return s[1];const[l,u]=this.getMatchedRoutes(e.pathname),c=Xo(l),d={...e.search};for(const E of l)try{Object.assign(d,uf(E.options.validateSearch,d))}catch{}const h=n&&n.routeId===c.id&&n.pathname===e.pathname;let m;if(h)m=n.params;else{const E=Object.assign(Object.create(null),u);for(const x of l)try{xx(x,E)}catch{}m=E}const p=[l,c.fullPath,d,m];return this.lightweightCache.set(e,[a,p]),p}},_f=class extends Error{},a6=class extends Error{};function uf(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new _f("Async validation not supported");if(n.issues)throw new _f(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function i6(e,t,n,a){const s=[];for(const u of n){const c=u.options;if("search"in c)c.search?.middlewares&&s.push(...c.search.middlewares);else if(c.preSearchFilters||c.postSearchFilters){const h=({search:m,next:p})=>{const E=p(c.preSearchFilters?c.preSearchFilters.reduce((x,v)=>v(x),m):m);return c.postSearchFilters?c.postSearchFilters.reduce((x,v)=>v(x),E):E};s.push(h)}const d=c.validateSearch;if(a&&d){const h=({search:m,next:p,meta:E})=>{const x=p(m);try{const v=uf(d,x);if(E&&v)for(const S in v)S in x||(E.defaulted||=new Map).set(S,v[S]);return{...x,...v}}catch{}return x};s.push(h)}}const l=(u,c,d)=>{if(u>=s.length){if(!t.search)return{};if(t.search===!0)return c;const m=dl(t.search,c);return d&&(d.explicit=m),m}const h=(m,p)=>{if(p){const E=d||{};return{search:l(u+1,m,E),meta:E}}return l(u+1,m,d)};return s[u]({search:c,next:h,meta:d})};return l(0,e)}function s6(e,t){if(e!=="root"){let n;for(let a=t.length-1;a>=0;a--){const s=t[a];if(s.options.notFoundComponent)return s.id;n||=s.children&&s.id}if(n)return n}return il}function Ex(e,t){if(e===!1||e===null)return Object.create(null);if((e??!0)===!0)return t;const n=Object.assign(Object.create(null),t);return Object.assign(n,dl(e,n))}function xx(e,t){const n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Pp(e,t){return e.options[t]?.preload?.()}function l6(e,t){const n=Pp(e,"component");let a=Pp(e,"pendingComponent");return t&&(a?a=a.then(t):t()),n&&a?Promise.all([n,a]).then(()=>{}):n??a}function sl(e,t,n){const a=()=>t===!1?void 0:t?Pp(e,t):l6(e,n),s=e._lazy;if(s)return s===!0?a():s.then(a);if(!e.lazyFn)return a();const l=e.lazyFn().then(u=>{{const{id:c,...d}=u.options;Object.assign(e.options,d),e._lazy=!0}},u=>{throw e._lazy=void 0,u});return e._lazy=l,l.then(a)}function B0(e){const t=e.findIndex(n=>n.status!=="success"||n._notFound)+1;return t&&t<e.length?e.slice(0,t):e}const Nr=0,sa=1,Kf=2,qn=3,Za=[4];function Qo(e){return typeof e[0]=="number"}function Zi(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,a)=>{const s=()=>a(t);t.addEventListener("abort",s,{once:!0}),Promise.resolve(e).then(n,a).finally(()=>t.removeEventListener("abort",s))})}function Ji(e,t){return e.routesById[t.routeId]}function Wo(e,t,n){return Ev(e)?[qn,e]:hl(e)?(e.routeId||=n,[Kf,e]):t?(typeof e?.then=="function"&&(e=new Error("A Promise was thrown",{cause:e})),[sa,e]):[Nr,e]}function j0(e,t){let n=Wo(t,!0,e.id);if(n[0]!==sa)return n;try{e.options.onError?.(n[1])}catch(a){n=Wo(a,!0,e.id)}return n}function Bo(e,t,n,a,s){return s[0].signal.aborted?Za:z0(e,t,n,j0(n,a),s)}async function o6(e,t,n,a,s,l){const[u,c]=t,d=n[0].signal,h=!!n[3];for(let m=n[6]??0;m<a;m++){const p=c[m],E=Ji(e,p);p.abortController=n[0];const x=c[m-1]?.context??e.options.context??{},v={params:p.params,location:u,navigate:N=>e.navigate({...N,_fromLocation:u}),buildLocation:e.buildLocation,cause:h?"preload":p.cause,abortController:n[0],preload:h,matches:c,routeId:E.id};try{const N=p._ctx||=E.options.context?E.options.context({...v,deps:p.loaderDeps,context:x})||{}:void 0;p.context={...x,...N}}catch(N){return ia(e,p),[m,Bo(e,t,E,N,n)]}if(d.aborted)return[m,Za];const S=p.paramsError??p.searchError;if(S!==void 0)return ia(e,p),[m,Bo(e,t,E,S,n)];const _=E.options.beforeLoad;if(!_)continue;const k=p.status;m>=l&&(p.status="pending",n[7]?.());try{Zo(e,p,"beforeLoad",n[0]);const N=await Zi(_({...v,search:p.search,context:p.context,...e.options.additionalContext}),d);if(d.aborted)return[m,Za];const w=z0(e,t,E,Wo(N,!1,E.id),n);if(w[0]!==Nr)return ia(e,p),[m,w];p.context={...p.context,...N}}catch(N){return ia(e,p),[m,Bo(e,t,E,N,n)]}finally{p.status=k,Zo(e,p,!1,n[0])}}s()}function H0(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){const a=e._tx;if(a&&!a[0].signal.aborted&&!a[3].includes(t)&&a[3].some(s=>s.id===t.id)&&a[3].some(s=>s.isFetching==="beforeLoad"))return;e._flights.delete(t.id)}return n[1]}}function ia(e,t){const n=t._flight;t._flight=void 0,H0(e,t,n)?.abort()}function On(e,t,n,a){const s=[];for(const l of t)if(!n?.includes(l)){const u=l._flight;if(l._flight=void 0,a&&u?.[2]===1&&e._flights?.get(l.id)===u&&n?.some(c=>c.id===l.id))u[2]=0;else{const c=H0(e,l,u);c&&s.push(c)}}for(const l of s)l.abort()}function U0(e){for(const t of e){const n=t._flight;n&&n[2]++}}function Zo(e,t,n,a){if(t.isFetching=n,a&&e._tx?.[0]!==a)return;const s=e.stores.byRoute.get(t.routeId),l=s?.get();l?.id===t.id&&s.set({...l,isFetching:n})}function Tv(e,t,n,a,s,l,u){const c=t[0];return{params:n.params,location:c,navigate:d=>e.navigate({...d,_fromLocation:c}),cause:u?"preload":n.cause,abortController:s,preload:u,deps:n.loaderDeps,parentMatchPromise:l,context:n.context,route:a,...e.options.additionalContext}}async function Tx(e,t,n,a,s,l,u){const c=u[0],d=c.signal;if(d.aborted)return Za;if(!s)return[Nr,void 0];let h=n._flight;Zo(e,n,"loader",c);try{if(!h){const m=new AbortController;h=[Promise.resolve().then(()=>s(Tv(e,t,n,a,m,l,!!u[3]))).then(p=>Wo(p,!1,a.id),p=>Wo(p,!0,a.id)).then(p=>(p[0]!==Nr&&e._flights?.get(n.id)===h&&(e._flights.delete(n.id),h[2]||m.abort()),p[0]===sa&&h[2]?j0(a,p[1]):p)),m,1],(e._flights??=new Map).set(n.id,h)}return n._flight=h,n.abortController=h[1],z0(e,t,a,await Zi(h[0],d),u)}catch(m){if(m!==d||!d.aborted)throw m;return ia(e,n),Za}finally{Zo(e,n,!1,c)}}function vx(e,t,n){t[0]!==qn&&(e.status="success",e.error=void 0,t[0]===Nr?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function u6(e,t,n){const a=e._cache.get(t.id);if(a!==n||e._committed.some(l=>l.id===t.id&&l._flight===t._flight))return;const s={...t,_notFound:void 0,context:{}};s._flight&&s._flight[2]++,e._cache.set(t.id,s),a&&ia(e,a)}function Sx(e,t){return t[0]===sa||t[0]===Kf?{...e,status:t[0]===sa?"error":"notFound",error:t[1],_flight:void 0}:e}function c6(e,t,n,a,s,l,u){const c=t[1][n],d=Ji(e,c),h=!!l[3],m=e._cache.get(c.id);let p,E=!1,x;try{if(c.status==="success"&&(p=d.options.shouldReload,typeof p=="function"&&(p=p(Tv(e,t,c,d,l[0],s,h))),l[0].signal.aborted&&(x=Za)),!x)if(c.status!=="success")E=!0;else{const Q=h||c.preload?d.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.options.defaultStaleTime??0;E=!!(c.invalid||p||p===void 0&&Date.now()-c.updatedAt>=Q&&(l[5]||c.cause==="enter"||l[2].some(se=>se.routeId===c.routeId&&se.id!==c.id)))}}catch(Q){c.invalid=!0,ia(e,c),x=Bo(e,t,d,Q,l)}const v=d.options.loader,S=typeof v=="function",_=S?v:v?.handler,k=!h||d.options.preload!==!1;let N=k&&v?e._flights?.get(c.id):void 0;N===c._flight||x?N=void 0:N&&!E&&!h&&p===void 0?E=!0:E||(N=void 0);const w=!!(v&&E&&c.status==="success"&&!h&&!l[4]&&((S?void 0:v.staleReloadMode)??e.options.defaultStaleReloadMode)!=="blocking"),I=E&&k,F=I&&!w&&(c.status!=="success"||!!v),R=n>=u?l[7]:void 0,M=d.lazyFn&&d._lazy!==!0?R:void 0;if(I&&!v&&(c.invalid=!1,c.updatedAt=Date.now()),N&&N[2]++,F){const Q=c._flight;c._flight=N,H0(e,c,Q)?.abort(),n>=u&&(c.status="pending"),R?.()}I||(c.isFetching=!1);const H=(x?Promise.resolve(x):F?Tx(e,t,c,d,_,s,l):Promise.resolve([Nr,c.loaderData])).then(Q=>(F&&(vx(c,Q,h),Q[0]===Nr&&(v&&!l[0].signal.aborted&&u6(e,c,m),n>=u&&(c.status="pending"))),Q)),Y=Zi(Promise.resolve().then(()=>sl(d,void 0,M)),l[0].signal).then(()=>{},Q=>t[1].some((se,ue)=>ue<=n&&(se.status==="error"||se.status==="notFound"||se._notFound))?void 0:[n,Bo(e,t,d,Q,l)]).then(Q=>H.then(se=>(F&&!Q&&se[0]===Nr&&c.status==="pending"&&!l[0].signal.aborted&&(c.status="success",R?.()),Q)));if(a.push([n,H,Y]),!w)return H.then(Q=>Sx(c,Q));const U={...c,status:"pending",preload:!1,_flight:N};c.invalid=!1,c.isFetching="loader";const J=Tx(e,t,U,d,_,s,l).then(Q=>(c.isFetching=!1,vx(U,Q,!1),Q));return(t[2]??=[]).push([n,J,Y,U]),J.then(Q=>Sx(U,Q))}async function Bp(e,t,n,a,s=0){const l=n?.[1][1];let u=l?.routeId?t.findIndex(c=>c.routeId===l.routeId):n?.[0]??t.length-1;u<0&&(u=0);for(let c=u;c>=0;c--){const d=Ji(e,t[c]);try{const h=sl(d,!1);h&&await Zi(h,a)}catch(h){if(h===a&&a.aborted)throw h}if(d.options.notFoundComponent)return c}return l?.routeId?u:s}function Fi(e,t){t[2]&&(On(e,t[2].map(n=>n[3])),t[2]=void 0)}async function Cx(e,t,n,a){let s;try{await Promise.all(e.map(l=>l[1].then(async u=>{const c=l[0];if(!(a&&c>=await a)){if(u[0]>=qn)throw[c,u];!s&&u[0]!==Nr&&(s=[c,u],await Promise.all((n??[]).map(d=>{if(!(d[0]<=c))return d[1].then(h=>{if(h[0]===qn)throw[d[0],h]})})))}})))}catch(l){return l}return t??s}function z0(e,t,n,a,s,l){for(;a[0]===qn;){const u=a[1],c=u.options;if(c.reloadDocument?s[3]:s[1]>=20)return a;try{return c.href&&c.reloadDocument?(e.resolveRedirect(u),a):[qn,u,e.buildLocation({...c,_fromLocation:t[0],_includeValidateSearch:!0})]}catch(d){a=l?[sa,d]:j0(n,d),l=!0}}return a}async function vv(e,t,n,a,s,l){const u=t[1];let c=await s,d=!1;const h=u.findIndex(x=>x._notFound),m=x=>x[1][0]===Kf?Bp(e,u,x,a.signal):x[0];let p=h<0?u.length:h;if((c?.[1][0]??0)>=qn)p=0;else if(c){p=c[2]??=await m(c);for(const x of n){if(x[0]>=p)break;const v=await x[1];if(v[0]!==Nr&&v[0]<qn&&!("loaderData"in u[x[0]])){c=[x[0],v],p=c[2]=await m(c);break}}}for(const x of n){if(x[0]>=p)break;const v=await x[2];if(v){c=v;break}}if((c?.[1][0]??0)>=qn){const x=c[1];if(x[0]!==qn||x[1].options.reloadDocument||x[2])return Fi(e,t),x;d=!0,c=[0,[sa,new Error("Too many redirects")]]}const E=c?c[2]??await m(c):h;if(E>=0){const x=c?.[1],v=x?.[0],S=u[E],_=x?.[1],k=()=>{x&&(S._notFound=void 0,v===sa?S.status="error":(_.routeId=S.routeId,S.routeId===e.routeTree.id?(S.status="success",S._notFound=!0):S.status="notFound"),S.error=_,S.isFetching=!1)};k(),x||l?.();const N=Ji(e,S);try{await Zi(x?Promise.resolve().then(()=>sl(N,v===sa?"errorComponent":"notFoundComponent")):Promise.all([sl(N),sl(N,"notFoundComponent")]),a.signal)}catch(w){if(w===a.signal&&a.signal.aborted)return Fi(e,t),Za}x?d&&(a.abort(),await Promise.all([...n.map(w=>w[1]),...n.map(w=>w[2]),...(t[2]??[]).map(w=>w[1])]),Fi(e,t),On(e,u),k()):S.status="success"}return t}async function Sv(e,t,n,a=0,s=t[1].length){const l=t[1];for(let u=a;u<s;u++){const c=l[u],d=Ji(e,c).options;if(d.head||d.scripts)try{const h={ssr:e.options.ssr,matches:l,match:c,params:c.params,loaderData:c.loaderData},[m,p]=await Zi(Promise.all([d.head?.(h),d.scripts?.(h)]),n);c.meta=m?.meta,c.links=m?.links,c.headScripts=m?.scripts,c.styles=m?.styles,c.scripts=p}catch(h){if(h===n&&n.aborted)break;console.error(h)}if(c.status!=="success"||c._notFound)break}return t}async function Cv(e,t,n,a){const s=[t,n],l=a[0].signal;let u;try{const c=e.stores.matches.get();let d=n.findIndex(k=>k._notFound);if(e.options.notFoundMode!=="root"&&d>=0){const k=await Bp(e,n,void 0,l,d);n[d]._notFound=void 0,n[k]._notFound=!0,d=k}let h=d<0?n.length:d+1,m=0;for(;m<h&&m!==d;){const k=n[m],N=a[2][m],w=c[m];if(N?.id!==k.id||N.status!=="success"||N._notFound||k.preload||w?.id!==k.id||w.status!=="success"||w._notFound)break;m++}const p=[],E=a[6]??0;let x=E?Promise.resolve(n[E-1]):void 0;const v=()=>{for(let k=E;k<h&&!l.aborted;k++)x=c6(e,s,k,p,x,a,m)},S=await o6(e,s,a,h,v,m);if(S){if(a[4]=!0,h=S[0],S[1][0]===Kf){const k=await Bp(e,n,S,l);S[2]=k,h=Math.min(h,k+1)}else S[1][0]>=qn&&(h=0);v()}if(!l.aborted&&!a[3]){const k=[];for(const[N,w]of e._flights??[])w[2]||(e._flights.delete(N),k.push(w[1]));for(const N of k)N.abort()}const _=vv(e,s,p,a[0],Cx(p,S,s[2]),a[7]);s[2]?.length&&(s[3]=Cx(s[2],void 0,void 0,_.then(k=>Qo(k)?0:B0(n).length,()=>0))),u=await _}catch(c){if(Fi(e,s),c===l&&l.aborted)return Za;throw c}return Qo(u)?u:Sv(e,u,l,a[6]===n.length?a[6]:0)}function jp(e,t){if(e._tx!==t)return;const n=t[3],a=e.stores.matches.get();let s=e._pending;for(let l=0;l<n.length;l++){const u=n[l],c=u.status==="success"&&!u._notFound,d=a[l]?.id===u.id&&a[l]?.status==="pending";if(c&&!d)continue;const h=Ji(e,u),m=c||u.invalid?0:h.options.pendingMs??e.options.defaultPendingMs,p=h.options.pendingComponent??e.options.defaultPendingComponent;if(!p||typeof m!="number"||m===1/0){s&&(s[0]=t,s[2]=0,s[4]=!0);return}const E=h.options.pendingMinMs??e.options.defaultPendingMinMs??0;let x=!1;if(s?.[1]===u.id?(x=s[0]!==t,s[0]=t):(clearTimeout(s?.[3]),e._pending=s=void 0),s||(e._pending=s=[t,u.id,d?Date.now()+E:t[4]+m,void 0,d||void 0,p]),s[4]&&!x&&s[5]===p)return;if(s[5]=p,!s[4]){clearTimeout(s[3]);const _=s[2]-Date.now();if(_>0){s[3]=setTimeout(()=>jp(e,t),_);return}s[2]=0}const v=n.map(_=>({..._,_flight:void 0}));v[l].status="pending";const S=s[4]=e.startTransition(()=>e.stores.setMatches(v),v).then(_=>(_&&e._pending===s&&s[4]===S&&!s[2]&&(s[2]=Date.now()+E),_));return}}function So(e,t){const n=e._pending;(e._tx===t||!e._tx?.[3].some(a=>a.id===n?.[1]))&&(clearTimeout(n?.[3]),e._pending=void 0)}async function _x(e,t){const n=e._pending;if(!n)return;clearTimeout(n[3]);const a=n[2]-Date.now();if(!n[4]||a<=0||!B0(t[3]).some(l=>l.id===n[1]))return;let s;try{await Zi(new Promise(l=>{s=setTimeout(l,a)}),t[0].signal)}catch{}clearTimeout(s)}function _v(e,t){e._committed=t,e.stores.setMatches(t)}function f6(e,t,n,a){const s=e._committed,l=e._cache;for(const d of n)d.preload=!1,a&&(d._assetEnd=void 0);const u=B0(n).length,c=new Map;{const d=Date.now();for(const h of[...s,...l.values()]){if(h.status!=="success"||n.some((p,E)=>p.id===h.id&&(E<u||p.status==="success")))continue;const m=Ji(e,h);!m.options.loader||d-h.updatedAt>=(h.preload?m.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:m.options.gcTime??e.options.defaultGcTime??3e5)||c.set(h.id,l.get(h.id)===h?h:{...h,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c,_v(e,n),On(e,[...l.values(),...s],[...n,...c.values()]),n6(e,s,n,t)}async function jc(e,t){let n=e._tx;for(;n&&n!==t;){if(await n[5],e._tx===n)return;n=e._tx}}function Av(e,t,n){const a=n[1].options,s=n[2];if(!s)return e.navigate({...a,replace:!0,ignoreBlocker:!0});if(a.reloadDocument)return e.navigate({href:s.publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});s._redirects=t[1]+1,e._pendingLocation=s;const l=e.commitLocation({...s,viewTransition:a.viewTransition,replace:!0,resetScroll:a.resetScroll,hashScrollIntoView:a.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===s&&(e._pendingLocation=void 0)}),l}async function d6(e,t,n,a,s){const l=n.map(d=>({...d}));U0(l);for(const d of a)ia(e,l[d[0]]),l[d[0]]=d[3];const u=[t[2],l];let c;try{c=await vv(e,u,a,t[0],s)}catch(d){throw On(e,l),d}if(Qo(c)){On(e,l),c[0]===qn&&e._tx===t&&e._committed===n&&await Av(e,t,c);return}if(await Sv(e,c,t[0].signal),e._tx!==t||e._committed!==n){On(e,l);return}for(const d of l){const h=e._cache.get(d.id);h?._flight&&h._flight===d._flight&&(e._cache.delete(d.id),ia(e,h))}_v(e,l),On(e,n,l)}async function h6(e,t,n,a,s,l){const u=await Cv(e,t[2],t[3],[t[0],t[1],e._committed,void 0,s,n,l,a]);if(Qo(u)){const p=u[0]===qn&&e._tx===t;if((!p||u[1].options.reloadDocument)&&So(e,t),On(e,t[3]),t[3]=[],!p)return;if(e._tx!==t){So(e,t);return}await Av(e,t,u);return}const c=u[1];if(e._tx===t&&await _x(e,t),e._tx!==t){So(e,t),On(e,c),Fi(e,u);return}const d=t[2],h=Gf(d,e.stores.resolvedLocation.get()),m=u[2];await e.startViewTransition(async()=>{if(e._tx===t&&await _x(e,t),e._tx!==t){So(e,t),On(e,c),Fi(e,u);return}const p=()=>{So(e,t),f6(e,t,c,l),e._tx===t&&(e.emit({type:"onLoad",...h}),e._tx===t&&e.emit({type:"onBeforeRouteMount",...h}))},E=await e.startTransition(p,c);if(e._tx!==t){Fi(e,u);return}m?.length&&d6(e,t,c,m,u[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(d),e.stores.status.set("idle"),e._tx===t&&e.emit({type:"onResolved",...h}),E&&e._tx===t&&e.emit({type:"onRendered",...h})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function m6(e,t){const n=e._tx,a=e.stores.resolvedLocation.get(),s=a??e.stores.location.get(),l=e.latestLocation,u=e._pendingLocation,c=u?.href===l.href?u._redirects??0:0,d=e._handoff,h=d?.[0](),m=new AbortController,p=e._preflight;if(e._preflight=m,h||d?.[1](),p?.abort(),!m.signal.aborted){const I=Gf(l,a);e.emit({type:"onBeforeNavigate",...I}),m.signal.aborted||e.emit({type:"onBeforeLoad",...I})}if(m.signal.aborted){await jc(e,n);return}const E=s.href===l.href;let x=m;const v=e.matchRoutes(l,{_controller:m});U0(v);const S=h?d[1](v):void 0;if(S?x=h:h?.abort(),m.signal.aborted){On(e,v),await jc(e,n);return}e._preflight=void 0;let _;const k=()=>h6(e,w,E,()=>jp(e,w),t?.sync,S),N=t?.sync?new Promise(I=>_=I):Promise.resolve().then(k).then(),w=[x,c,l,v,Date.now(),N];if(e._tx=w,n){for(const I of e.stores.matches.get()){if(e._tx!==w)break;I.isFetching&&Zo(e,I,!1)}n[0].abort(),On(e,n[3],w[3],!0)}if(e._tx!==w){On(e,w[3]),w[3]=[],_?.(),await jc(e,w);return}e.batch(()=>{e.stores.status.set("pending"),e.stores.location.set(l)}),(S||!e._committed.length&&v[0]?.status!=="success"&&!v.some(I=>I._notFound))&&jp(e,w),_?.(k()),await N,await jc(e,w)}async function p6(e,t){let n=e.buildLocation(t);for(let a=0;;a++){const s=e._committed,l=new AbortController;let u,c,d;try{try{u=e.matchRoutes(n,{_controller:l}),U0(u),c=(e._preloads??=new Map).set(l,u),d=await Cv(e,n,u,[l,a,s,!0])}finally{c&&(c=c.delete(l),On(e,u)),l.abort()}if(!Qo(d))return d[1];if(!c||d.length<3)return;n=d[2]}catch(h){hl(h)||console.error(h);return}}}const g6="Error preloading route! ☝️";var kv=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const n=this.options,a=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),a?this._path=il:this.parentRoute||I0();let s=a?il:n?.path;s&&s!=="/"&&(s=gv(s));const l=n?.id||s;let u=a?il:sf([this.parentRoute.id==="__root__"?"":this.parentRoute.id,l]);s==="__root__"&&(s="/"),u!=="__root__"&&(u=sf(["/",u]));const c=u==="__root__"?"/":sf([this.parentRoute.fullPath,s]);this._path=s,this._id=u,this._fullPath=c,this._to=ra(c)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>XN({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},b6=class extends kv{constructor(e){super(e)}},F0=class extends C.Component{constructor(...e){super(...e),this.state={error:null},this.reset=()=>{this.setState({error:null})}}static getDerivedStateFromProps(e,t){const n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){const e=this.state.error;return e?C.createElement(this.props.errorComponent??y6,{error:e,reset:this.reset}):this.props.children}};function y6({error:e}){const[t,n]=C.useState(!1);return y.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[y.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),y.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(a=>!a),children:t?"Hide Error":"Show Error"})]}),y.jsx("div",{style:{height:".25rem"}}),t?y.jsx("div",{children:y.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?y.jsx("code",{children:e.message}):null})}):null]})}function E6({children:e,fallback:t=null}){return y.jsx(yl.Fragment,{children:wv()?e:t})}function wv(){return yl.useSyncExternalStore(x6,()=>!0,()=>!1)}function x6(){return()=>{}}var Nv=C.createContext(null);function mr(e){return C.useContext(Nv)}var Xf=C.createContext(void 0),T6=C.createContext(void 0),At=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(At||{});function v6({update:e,notify:t,unwatched:n}){return{link:a,unlink:s,propagate:l,checkDirty:u,shallowPropagate:c};function a(h,m,p){const E=m.depsTail;if(E!==void 0&&E.dep===h)return;const x=E!==void 0?E.nextDep:m.deps;if(x!==void 0&&x.dep===h){x.version=p,m.depsTail=x;return}const v=h.subsTail;if(v!==void 0&&v.version===p&&v.sub===m)return;const S=m.depsTail=h.subsTail={version:p,dep:h,sub:m,prevDep:E,nextDep:x,prevSub:v,nextSub:void 0};x!==void 0&&(x.prevDep=S),E!==void 0?E.nextDep=S:m.deps=S,v!==void 0?v.nextSub=S:h.subs=S}function s(h,m=h.sub){const p=h.dep,E=h.prevDep,x=h.nextDep,v=h.nextSub,S=h.prevSub;return x!==void 0?x.prevDep=E:m.depsTail=E,E!==void 0?E.nextDep=x:m.deps=x,v!==void 0?v.prevSub=S:p.subsTail=S,S!==void 0?S.nextSub=v:(p.subs=v)===void 0&&n(p),x}function l(h){let m=h.nextSub,p;e:do{const E=h.sub;let x=E.flags;if(x&60?x&12?x&4?!(x&48)&&d(h,E)?(E.flags=x|40,x&=1):x=0:E.flags=x&-9|32:x=0:E.flags=x|32,x&2&&t(E),x&1){const v=E.subs;if(v!==void 0){const S=(h=v).nextSub;S!==void 0&&(p={value:m,prev:p},m=S);continue}}if((h=m)!==void 0){m=h.nextSub;continue}for(;p!==void 0;)if(h=p.value,p=p.prev,h!==void 0){m=h.nextSub;continue e}break}while(!0)}function u(h,m){let p,E=0,x=!1;e:do{const v=h.dep,S=v.flags;if(m.flags&16)x=!0;else if((S&17)===17){if(e(v)){const _=v.subs;_.nextSub!==void 0&&c(_),x=!0}}else if((S&33)===33){(h.nextSub!==void 0||h.prevSub!==void 0)&&(p={value:h,prev:p}),h=v.deps,m=v,++E;continue}if(!x){const _=h.nextDep;if(_!==void 0){h=_;continue}}for(;E--;){const _=m.subs,k=_.nextSub!==void 0;if(k?(h=p.value,p=p.prev):h=_,x){if(e(m)){k&&c(_),m=h.sub;continue}x=!1}else m.flags&=-33;m=h.sub;const N=h.nextDep;if(N!==void 0){h=N;continue e}}return x}while(!0)}function c(h){do{const m=h.sub,p=m.flags;(p&48)===32&&(m.flags=p|16,(p&6)===2&&t(m))}while((h=h.nextSub)!==void 0)}function d(h,m){let p=m.depsTail;for(;p!==void 0;){if(p===h)return!0;p=p.prevDep}return!1}}function S6(e,t,n){const a=typeof e=="object",s=a?e:void 0;return{next:(a?e.next:e)?.bind(s),error:(a?e.error:t)?.bind(s),complete:(a?e.complete:n)?.bind(s)}}const Hp=[];let cf=0;const{link:Ax,unlink:C6,propagate:_6,checkDirty:Rv,shallowPropagate:kx}=v6({update(e){return e._update()},notify(e){Hp[Up++]=e,e.flags&=~At.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=At.Mutable|At.Dirty,Af(e))}});let Hc=0,Up=0,_r,zp=0;function A6(e){try{++zp,e()}finally{--zp||Ov()}}function Af(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=C6(n,e)}function Ov(){if(!(zp>0)){for(;Hc<Up;){const e=Hp[Hc];Hp[Hc++]=void 0,e.notify()}Hc=0,Up=0}}function wx(e,t){const n=typeof e=="function",a=e,s={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?At.None:At.Mutable,get(){return _r!==void 0&&Ax(s,_r,cf),s._snapshot},subscribe(l){const u=S6(l),c={current:!1},d=k6(()=>{s.get(),c.current?u.next?.(s._snapshot):c.current=!0});return{unsubscribe:()=>{d.stop()}}},_update(l){const u=_r,c=t?.compare??Object.is;if(n)_r=s,++cf,s.depsTail=void 0;else if(l===void 0)return!1;n&&(s.flags=At.Mutable|At.RecursedCheck);try{const d=s._snapshot,h=typeof l=="function"?l(d):l===void 0&&n?a(d):l;return d===void 0||!c(d,h)?(s._snapshot=h,!0):!1}finally{_r=u,n&&(s.flags&=~At.RecursedCheck),Af(s)}}};return n?(s.flags=At.Mutable|At.Dirty,s.get=function(){const l=s.flags;if(l&At.Dirty||l&At.Pending&&Rv(s.deps,s)){if(s._update()){const u=s.subs;u!==void 0&&kx(u)}}else l&At.Pending&&(s.flags=l&~At.Pending);return _r!==void 0&&Ax(s,_r,cf),s._snapshot}):s.set=function(l){if(s._update(l)){const u=s.subs;u!==void 0&&(_6(u),kx(u),Ov())}},s}function k6(e){const t=()=>{const a=_r;_r=n,++cf,n.depsTail=void 0,n.flags=At.Watching|At.RecursedCheck;try{return e()}finally{_r=a,n.flags&=~At.RecursedCheck,Af(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:At.Watching|At.RecursedCheck,notify(){const a=this.flags;a&At.Dirty||a&At.Pending&&Rv(this.deps,this)?t():this.flags=At.Watching},stop(){this.flags=At.None,this.depsTail=void 0,Af(this)}};return t(),n}var Ym={exports:{}},$m={},Gm={exports:{}},Km={};var Nx;function w6(){if(Nx)return Km;Nx=1;var e=iu();function t(p,E){return p===E&&(p!==0||1/p===1/E)||p!==p&&E!==E}var n=typeof Object.is=="function"?Object.is:t,a=e.useState,s=e.useEffect,l=e.useLayoutEffect,u=e.useDebugValue;function c(p,E){var x=E(),v=a({inst:{value:x,getSnapshot:E}}),S=v[0].inst,_=v[1];return l(function(){S.value=x,S.getSnapshot=E,d(S)&&_({inst:S})},[p,x,E]),s(function(){return d(S)&&_({inst:S}),p(function(){d(S)&&_({inst:S})})},[p]),u(x),x}function d(p){var E=p.getSnapshot;p=p.value;try{var x=E();return!n(p,x)}catch{return!0}}function h(p,E){return E()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:c;return Km.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Km}var Rx;function N6(){return Rx||(Rx=1,Gm.exports=w6()),Gm.exports}var Ox;function R6(){if(Ox)return $m;Ox=1;var e=iu(),t=N6();function n(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var a=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,l=e.useRef,u=e.useEffect,c=e.useMemo,d=e.useDebugValue;return $m.useSyncExternalStoreWithSelector=function(h,m,p,E,x){var v=l(null);if(v.current===null){var S={hasValue:!1,value:null};v.current=S}else S=v.current;v=c(function(){function k(R){if(!N){if(N=!0,w=R,R=E(R),x!==void 0&&S.hasValue){var M=S.value;if(x(M,R))return I=M}return I=R}if(M=I,a(w,R))return M;var H=E(R);return x!==void 0&&x(M,H)?(w=R,M):(w=R,I=H)}var N=!1,w,I,F=p===void 0?null:p;return[function(){return k(m())},F===null?void 0:function(){return k(F())}]},[m,p,E,x]);var _=s(h,v[0],v[1]);return u(function(){S.hasValue=!0,S.value=_},[_]),d(_),_},$m}var Lx;function O6(){return Lx||(Lx=1,Ym.exports=R6()),Ym.exports}var L6=O6();function D6(e,t){return e===t}function ua(e,t,n=D6){const a=C.useCallback(u=>{if(!e)return()=>{};const{unsubscribe:c}=e.subscribe(u);return c},[e]),s=C.useCallback(()=>e?.get(),[e]);return L6.useSyncExternalStoreWithSelector(a,s,s,t,n)}var Dx={};function Lv(e,t){const n=C.useRef();return a=>{const s=e?.select?e.select(a):a;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=Bi(n.current,s):s}}function es(e){const t=mr(),n=C.useContext(e.from?T6:Xf),a=e.from??n,s=t.stores.getMatchStore(a),l=Lv(e,t),u=ua(s,c=>c?l(c):Dx);if(u!==Dx)return u;(e.shouldThrow??!0)&&I0()}function Dv(e){return es({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Iv(e){const{select:t,...n}=e;return es({...n,select:a=>t?t(a.loaderDeps):a.loaderDeps})}function Mv(e){return es({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Pv(e){return es({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function q0(e){const t=mr();return C.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Bv(e){return es({...e,select:t=>e.select?e.select(t.context):t.context})}function Xm(e){const t=C.useRef(e);return Xa(t.current,e,{ignoreUndefined:!1})||(t.current=e),t.current}function I6(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function M6(e,t,n){if(e?.external)return Tf(e.href,n)?void 0:e.href;if(!F6(t)&&!(typeof t!="string"||t.indexOf(":")===-1))try{return new URL(t),Tf(t,n)?void 0:t}catch{}}function P6(e,t,n,a,s,l){if(l)return!1;if(n?.exact){if(!LN(e.pathname,t.pathname,a))return!1}else{const u=Sf(e.pathname,a),c=Sf(t.pathname,a);if(!(u.startsWith(c)&&(u.length===c.length||u[c.length]==="/")))return!1}return(n?.includeSearch??!0)&&!Xa(e.search,t.search,{partial:!n?.exact,ignoreUndefined:!n?.explicitUndefined})?!1:n?.includeHash?s&&e.hash===t.hash:!0}function B6(e,t){const n=mr(),a=mN(t),{activeProps:s,inactiveProps:l,activeOptions:u,to:c,preload:d,preloadDelay:h,preloadIntentProximity:m,hashScrollIntoView:p,replace:E,startTransition:x,resetScroll:v,viewTransition:S,children:_,target:k,disabled:N,style:w,className:I,onClick:F,onBlur:R,onFocus:M,onMouseEnter:H,onMouseLeave:Y,onTouchStart:U,ignoreBlocker:J,params:Q,search:se,hash:ue,state:ae,mask:B,reloadDocument:G,unsafeRelative:oe,from:xe,_fromLocation:D,...z}=e,X=wv(),O=Xm(e.search),Z=Xm(e.params),de=Xm(u),pe=C.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,O,Z,e.state,e.mask,e.unsafeRelative]),Se=C.useCallback(qe=>{const Ye=n.buildLocation({_fromLocation:qe,...pe}),ln=z6(Ye.maskedLocation?Ye.maskedLocation.publicHref:Ye.publicHref,Ye.maskedLocation?Ye.maskedLocation.external:Ye.external,n.history,N),ce=M6(ln,c,n.protocolAllowlist);return[ln?.href,ce,P6(qe,Ye,de,n.basepath,X,ce!==void 0)]},[de,N,X,pe,n,c]),[Te,Ee,Pe]=ua(n.stores.location,Se,I6),Le=Pe?dl(s,{})??j6:Qm,Re=Pe?Qm:dl(l,{})??Qm,He=[I,Le.className,Re.className].filter(Boolean).join(" "),ze=(w||Le.style||Re.style)&&{...w,...Le.style,...Re.style},tt=C.useRef(!1),Xe=e.reloadDocument||Ee||N?!1:d??n.options.defaultPreload,Rt=h??n.options.defaultPreloadDelay??0,kt=C.useCallback(()=>{n.preloadRoute(pe).catch(qe=>{console.warn(qe),console.warn(g6)})},[n,pe]),Ft=C.useCallback(qe=>{if(!qe){Wm(a);return}if(!(qe.isIntersecting??Xe==="intent")){qe.isIntersecting===!1&&Wm(a);return}if(!Rt){kt();return}jo.has(a)||jo.set(a,setTimeout(()=>{jo.delete(a),kt()},Rt))},[kt,a,Xe,Rt]);hN(a,Ft,Xe!=="viewport"),C.useEffect(()=>{tt.current||Xe==="render"&&(kt(),tt.current=!0)},[kt,Xe]);const ke=qe=>{const Ye=qe.currentTarget.getAttribute("target"),ln=k!==void 0?k:Ye;!N&&!(qe.metaKey||qe.altKey||qe.ctrlKey||qe.shiftKey)&&!qe.defaultPrevented&&(!ln||ln==="_self")&&qe.button===0&&(qe.preventDefault(),n.navigate({...pe,replace:E,resetScroll:v,hashScrollIntoView:p,startTransition:x,viewTransition:S,ignoreBlocker:J}))};if(Ee)return{...z,ref:a,href:Ee,..._&&{children:_},...k&&{target:k},...N&&{disabled:N},...w&&{style:w},...I&&{className:I},...F&&{onClick:F},...R&&{onBlur:R},...M&&{onFocus:M},...H&&{onMouseEnter:H},...Y&&{onMouseLeave:Y},...U&&{onTouchStart:U}};const Ie=()=>{Xe==="intent"&&kt()},dt=()=>{Xe==="intent"&&Wm(a)};return{...z,...Le,...Re,href:Te,ref:a,onClick:$s([F,ke]),onBlur:$s([R,dt]),onFocus:$s([M,Ft]),onMouseEnter:$s([H,Ft]),onMouseLeave:$s([Y,dt]),onTouchStart:$s([U,Ie]),disabled:!!N,target:k,...ze&&{style:ze},...He&&{className:He},...N&&H6,...Pe&&U6}}var Qm={},j6={className:"active"},H6={role:"link","aria-disabled":!0},U6={"data-status":"active","aria-current":"page"},jo=new WeakMap,Wm=e=>{clearTimeout(jo.get(e)),jo.delete(e)},$s=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function z6(e,t,n,a){if(!a)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function F6(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var jv=C.forwardRef((e,t)=>{const{_asChild:n,...a}=e,{type:s,...l}=B6(a,t),u=typeof a.children=="function"?a.children({isActive:l["data-status"]==="active"}):a.children;if(!n){const{disabled:c,...d}=l;return C.createElement("a",d,u)}return C.createElement(n,l,u)}),q6=class extends kv{constructor(e){super(e),this.useMatch=t=>es({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>Bv({...t,from:this.id}),this.useSearch=t=>Pv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Mv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Iv({...t,from:this.id}),this.useLoaderData=t=>Dv({...t,from:this.id}),this.useNavigate=()=>q0({from:this.fullPath}),this.Link=yl.forwardRef((t,n)=>y.jsx(jv,{ref:n,from:this.fullPath,...t}))}};function ki(e){return new q6(e)}var V6=class extends b6{constructor(e){super(e),this.useMatch=t=>es({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>Bv({...t,from:this.id}),this.useSearch=t=>Pv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Mv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Iv({...t,from:this.id}),this.useLoaderData=t=>Dv({...t,from:this.id}),this.useNavigate=()=>q0({from:this.fullPath}),this.Link=yl.forwardRef((t,n)=>y.jsx(jv,{ref:n,from:this.fullPath,...t}))}};function Y6(e){return new V6(e)}function $6(e){const t=mr(),n=`not-found-${ua(t.stores.location,a=>a.pathname)}-${ua(t.stores.status,a=>a)}`;return y.jsx(F0,{getResetKey:()=>n,onCatch:(a,s)=>{if(hl(a))e.onCatch?.(a,s);else throw a},errorComponent:({error:a})=>{if(hl(a))return e.fallback?.(a);throw a},children:e.children})}function G6(){return y.jsx("p",{children:"Not Found"})}function el(e){return y.jsx(y.Fragment,{children:e.children})}function Hv(e,t,n){return t.options.notFoundComponent?y.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?y.jsx(e.options.defaultNotFoundComponent,{...n}):y.jsx(G6,{})}function Qf(e,t){const n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?y.jsx(n,{}):null}var K6=(e,t)=>e[0]===t[0]&&e[1]===t[1],Uv=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n==="data-only"||!e.ssr,zv=C.memo(function({routeId:t}){const n=mr();return y.jsx(X6,{router:n,match:ua(n.stores.getMatchStore(t),a=>a)})});function X6({router:e,match:t}){const n=e.routesById[t.routeId],a=Qf(e,n),s=n.options.errorComponent??e.options.defaultErrorComponent,l=n.options.onCatch??e.options.defaultOnCatch,u=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,c=t.ssr===!1||t.ssr==="data-only",d=Uv(e,n,t.ssr)&&(n.options.wrapInSuspense??a??(n.options.errorComponent?.preload||c))?C.Suspense:el,h=s?F0:el,m=u?$6:el;return y.jsxs(n.isRoot?n.options.shellComponent??el:el,{children:[y.jsx(Xf.Provider,{value:t.routeId,children:y.jsx(d,{fallback:a,children:y.jsx(h,{getResetKey:()=>t,errorComponent:s,onCatch:(p,E)=>{if(hl(p))throw p.routeId??=t.routeId,p;l?.(p,E)},children:y.jsx(m,{fallback:p=>{if(p.routeId??=t.routeId,p.routeId!==t.routeId)throw p;return C.createElement(u,p)},children:c?y.jsx(E6,{fallback:a,children:y.jsx(Ix,{match:t})}):y.jsx(Ix,{match:t})})})})}),null]})}var Ix=C.memo(function({match:t}){const n=mr(),a=t.routeId,s=n.routesById[a],l=C.useMemo(()=>{const c=(s.options.remountDeps??n.options.defaultRemountDeps)?.({routeId:a,loaderDeps:t.loaderDeps,params:t._strictParams,search:t._strictSearch});return c?JSON.stringify(c):void 0},[a,t.loaderDeps,t._strictParams,t._strictSearch,s.options.remountDeps,n.options.defaultRemountDeps]),u=C.useMemo(()=>{const c=s.options.component??n.options.defaultComponent;return c?y.jsx(c,{},l):y.jsx(Fv,{})},[l,s.options.component,n.options.defaultComponent]);if(t.status==="pending"){if(n.ssr&&!Uv(n,s,t.ssr))return u;if(n._tx)throw n._tx[5];return Qf(n,s)}if(t.status==="notFound")return Hv(n,s,t.error);if(t.status==="error")throw t.error;return u}),Fv=C.memo(function(){const t=mr(),n=C.useContext(Xf);let a,s,l;{const c=t.stores.getMatchStore(n);[a,s]=ua(c,d=>[!!d._notFound,d.error],K6),l=ua(t.stores.ids,d=>d[d.indexOf(n)+1])}if(a)return Hv(t,t.routesById[n],s);if(!l)return null;const u=y.jsx(zv,{routeId:l});return n===il?y.jsx(C.Suspense,{fallback:Qf(t),children:u}):u});function qv(e,t){const n=e[1];e.length=0,n?.(t)}function Q6({t:e}){const t=mr(),n=t._rendered??=[];return t.startTransition=(a,s)=>new Promise(l=>{qv(n,!1),n.push(s,l),e(t),C.startTransition(a)}),ov(()=>{const a=t.history.subscribe(t.load);t.updateLatestLocation();const s=t.latestLocation,l=t.buildLocation({to:s.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(ra(s.publicHref)!==ra(l.publicHref))return t.commitLocation({...l,replace:!0,ignoreBlocker:!0}),a;const u=t.stores.resolvedLocation.get();return u?.href===s.href&&u.state.__TSR_key===s.state.__TSR_key?n.push(t.stores.matches.get(),c=>{c&&t.emit({type:"onRendered",...Gf(u,u)})}):t._tx||t.load({sync:!0}).catch(console.error),a},[t,t.history]),null}function W6(){const e=mr(),t=e.routesById[il],n=Qf(e,t),a=e.ssr?el:C.Suspense,s=y.jsxs(y.Fragment,{children:[y.jsx(Q6,{t:C.useState()[1]}),y.jsx(a,{fallback:n,children:y.jsx(Z6,{})})]});return e.options.InnerWrap?y.jsx(e.options.InnerWrap,{children:s}):s}function Z6(){const e=mr(),t=e._rendered,n=ua(e.stores.matches,u=>t[0]??u),a=n[0],s=a?.routeId;ov(()=>{t[0]===n&&qv(t,!0)},[t,n]);const l=s?y.jsx(zv,{routeId:s}):null;return y.jsx(Xf.Provider,{value:s,children:e.options.disableGlobalCatchBoundary?l:y.jsx(F0,{getResetKey:()=>a,onCatch:void 0,children:l})})}var J6=e=>({createMutableStore:wx,createReadonlyStore:wx,batch:A6}),eR=e=>new tR(e),tR=class extends r6{constructor(e){super(e,J6)}};function nR({router:e,children:t,...n}){cv(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const a=y.jsx(Nv.Provider,{value:e,children:t});return e.options.Wrap?y.jsx(e.options.Wrap,{children:a}):a}function rR({router:e,...t}){return y.jsx(nR,{router:e,...t,children:y.jsx(W6,{})})}function aR(e){const t=mr({warn:e?.router===void 0}),n=e?.router||t;return ua(n.stores.__store,Lv(e,n))}const iR=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vv=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim();var sR={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const lR=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:s="",children:l,iconNode:u,...c},d)=>C.createElement("svg",{ref:d,...sR,width:t,height:t,stroke:e,strokeWidth:a?Number(n)*24/Number(t):n,className:Vv("lucide",s),...c},[...u.map(([h,m])=>C.createElement(h,m)),...Array.isArray(l)?l:[l]]));const ut=(e,t)=>{const n=C.forwardRef(({className:a,...s},l)=>C.createElement(lR,{ref:l,iconNode:t,className:Vv(`lucide-${iR(e)}`,a),...s}));return n.displayName=`${e}`,n};const Mx=ut("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);const oR=ut("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const uR=ut("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);const cR=ut("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);const fR=ut("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);const dR=ut("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);const Yv=ut("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);const ji=ut("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const kf=ut("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const hR=ut("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const mR=ut("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const $v=ut("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);const pR=ut("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);const Zm=ut("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const wf=ut("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);const gR=ut("FileCog",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m3.2 12.9-.9-.4",key:"1i3dj5"}],["path",{d:"m3.2 15.1-.9.4",key:"1fvgj0"}],["path",{d:"M4.677 21.5a2 2 0 0 0 1.313.5H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2.5",key:"1yo3oz"}],["path",{d:"m4.9 11.2-.4-.9",key:"otmhb9"}],["path",{d:"m4.9 16.8-.4.9",key:"1b8z07"}],["path",{d:"m7.5 10.3-.4.9",key:"11k65u"}],["path",{d:"m7.5 17.7-.4-.9",key:"431x55"}],["path",{d:"m9.7 12.5-.9.4",key:"87sjan"}],["path",{d:"m9.7 15.5-.9-.4",key:"khqm91"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}]]);const Px=ut("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const bR=ut("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);const Uc=ut("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);const Gv=ut("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);const ll=ut("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const yR=ut("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);const Kv=ut("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);const ER=ut("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);const xR=ut("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);const ff=ut("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);const V0=ut("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);const Bx=ut("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);const Xv=ut("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);const Qv=ut("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);const Ho=ut("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var ni=lv(),TR=Object.defineProperty,vR=(e,t)=>TR(e,"name",{value:t,configurable:!0});function Fp(e,[t,n]){return Math.min(n,Math.max(t,e))}vR(Fp,"clamp");var SR=Object.defineProperty,El=(e,t)=>SR(e,"name",{value:t,configurable:!0}),Wv=!!(typeof window<"u"&&window.document&&window.document.createElement);function Dt(e,t,{checkForDefaultPrevented:n=!0}={}){return El(function(s){if(e?.(s),n===!1||!s||!s.defaultPrevented)return t?.(s)},"handleEvent")}El(Dt,"composeEventHandlers");function CR(e){if(!Wv)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}El(CR,"getOwnerWindow");function qp(e){if(!Wv)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}El(qp,"getOwnerDocument");function Zv(e,t=!1){const{activeElement:n}=qp(e);if(!n?.nodeName)return null;if(Jv(n)&&n.contentDocument)return Zv(n.contentDocument.body,t);if(t){const a=n.getAttribute("aria-activedescendant");if(a){const s=qp(n).getElementById(a);if(s)return s}}return n}El(Zv,"getActiveElement");function Jv(e){return e.tagName==="IFRAME"}El(Jv,"isFrame");var _R=Object.defineProperty,ar=(e,t)=>_R(e,"name",{value:t,configurable:!0});function AR(e,t){const n=C.createContext(t);n.displayName=e+"Context";const a=ar(l=>{const{children:u,...c}=l,d=C.useMemo(()=>c,Object.values(c));return y.jsx(n.Provider,{value:d,children:u})},"Provider");a.displayName=e+"Provider";function s(l,u={}){const{optional:c=!1}=u,d=C.useContext(n);if(d)return d;if(t!==void 0)return t;if(!c)throw new Error(`\`${l}\` must be used within \`${e}\``)}return ar(s,"useContext"),[a,s]}ar(AR,"createContext");function lu(e,t=[]){let n=[];function a(l,u){const c=C.createContext(u);c.displayName=l+"Context";const d=n.length;n=[...n,u];const h=ar(p=>{const{scope:E,children:x,...v}=p,S=E?.[e]?.[d]||c,_=C.useMemo(()=>v,Object.values(v));return y.jsx(S.Provider,{value:_,children:x})},"Provider");h.displayName=l+"Provider";function m(p,E,x={}){const{optional:v=!1}=x,S=E?.[e]?.[d]||c,_=C.useContext(S);if(_)return _;if(u!==void 0)return u;if(!v)throw new Error(`\`${p}\` must be used within \`${l}\``)}return ar(m,"useContext"),[h,m]}ar(a,"createContext");const s=ar(()=>{const l=n.map(u=>C.createContext(u));return ar(function(c){const d=c?.[e]||l;return C.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])},"useScope")},"createScope");return s.scopeName=e,[a,eS(s,...t)]}ar(lu,"createContextScope");function eS(...e){const t=e[0];if(e.length===1)return t;const n=ar(()=>{const a=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return ar(function(l){const u=a.reduce((c,{useScope:d,scopeName:h})=>{const p=d(l)[`__scope${h}`];return{...c,...p}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}ar(eS,"composeContextScopes");var kR=Object.defineProperty,Y0=(e,t)=>kR(e,"name",{value:t,configurable:!0});function Vp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Y0(Vp,"setRef");function tS(...e){return t=>{let n=!1;const a=e.map(s=>{const l=Vp(s,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let s=0;s<a.length;s++){const l=a[s];typeof l=="function"?l():Vp(e[s],null)}}}}Y0(tS,"composeRefs");function Mt(...e){return C.useCallback(tS(...e),e)}Y0(Mt,"useComposedRefs");var wR=Object.defineProperty,pr=(e,t)=>wR(e,"name",{value:t,configurable:!0});function Yi(e){const t=C.forwardRef((n,a)=>{let{children:s,...l}=n,u=null,c=!1;const d=[];Yp(s)&&typeof zc=="function"&&(s=zc(s._payload)),C.Children.forEach(s,E=>{if(iS(E)){c=!0;const x=E;let v="child"in x.props?x.props.child:x.props.children;Yp(v)&&typeof zc=="function"&&(v=zc(v._payload)),u=RR(x,v),d.push(u?.props?.children)}else d.push(E)}),u?u=C.cloneElement(u,void 0,d):!c&&C.Children.count(s)===1&&C.isValidElement(s)&&(u=s);const h=u?aS(u):void 0,m=Mt(a,h);if(!u){if(s||s===0)throw new Error(c?DR(e):LR(e));return s}const p=rS(l,u.props??{});return u.type!==C.Fragment&&(p.ref=a?m:h),C.cloneElement(u,p)});return t.displayName=`${e}.Slot`,t}pr(Yi,"createSlot");var nS=Symbol.for("radix.slottable");function NR(e){const t=pr(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=nS,t}pr(NR,"createSlottable");var RR=pr((e,t)=>{if("child"in e.props){const n=e.props.child;return C.isValidElement(n)?C.cloneElement(n,void 0,e.props.children(n.props.children)):null}return C.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function rS(e,t){const n={...t};for(const a in t){const s=e[a],l=t[a];/^on[A-Z]/.test(a)?s&&l?n[a]=(...c)=>{const d=l(...c);return s(...c),d}:s&&(n[a]=s):a==="style"?n[a]={...s,...l}:a==="className"&&(n[a]=[s,l].filter(Boolean).join(" "))}return{...e,...n}}pr(rS,"mergeProps");function aS(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}pr(aS,"getElementRef");function iS(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nS}pr(iS,"isSlottable");var OR=Symbol.for("react.lazy");function Yp(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===OR&&"_payload"in e&&sS(e._payload)}pr(Yp,"isLazyComponent");function sS(e){return typeof e=="object"&&e!==null&&"then"in e}pr(sS,"isPromiseLike");var LR=pr(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),DR=pr(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),zc=su[" use ".trim().toString()],IR=Object.defineProperty,Wt=(e,t)=>IR(e,"name",{value:t,configurable:!0});function lS(e){const t=e+"CollectionProvider",[n,a]=lu(t),[s,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=Wt(S=>{const{scope:_,children:k}=S,N=C.useRef(null),w=C.useRef(new Map).current;return y.jsx(s,{scope:_,itemMap:w,collectionRef:N,children:k})},"CollectionProvider");u.displayName=t;const c=e+"CollectionSlot",d=Yi(c),h=C.forwardRef((S,_)=>{const{scope:k,children:N}=S,w=l(c,k),I=Mt(_,w.collectionRef);return y.jsx(d,{ref:I,children:N})});h.displayName=c;const m=e+"CollectionItemSlot",p="data-radix-collection-item",E=Yi(m),x=C.forwardRef((S,_)=>{const{scope:k,children:N,...w}=S,I=C.useRef(null),F=Mt(_,I),R=l(m,k);return C.useEffect(()=>(R.itemMap.set(I,{ref:I,...w}),()=>{R.itemMap.delete(I)})),y.jsx(E,{[p]:"",ref:F,children:N})});x.displayName=m;function v(S){const _=l(e+"CollectionConsumer",S);return C.useCallback(()=>{const N=_.collectionRef.current;if(!N)return[];const w=Array.from(N.querySelectorAll(`[${p}]`));return Array.from(_.itemMap.values()).sort((R,M)=>w.indexOf(R.ref.current)-w.indexOf(M.ref.current))},[_.collectionRef,_.itemMap])}return Wt(v,"useCollection"),[{Provider:u,Slot:h,ItemSlot:x},v,a]}Wt(lS,"createCollection");var jx=new WeakMap,Ut,Fn,Jm=(Fn=class extends Map{constructor(n){super(n);KE(this,Ut);Pm(this,Ut,[...super.keys()]),jx.set(this,!0)}set(n,a){return jx.get(this)&&(this.has(n)?on(this,Ut)[on(this,Ut).indexOf(n)]=n:on(this,Ut).push(n)),super.set(n,a),this}insert(n,a,s){const l=this.has(a),u=on(this,Ut).length,c=$0(n);let d=c>=0?c:u+c;const h=d<0||d>=u?-1:d;if(h===this.size||l&&h===this.size-1||h===-1)return this.set(a,s),this;const m=this.size+(l?0:1);c<0&&d++;const p=[...on(this,Ut)];let E,x=!1;for(let v=d;v<m;v++)if(d===v){let S=p[v];p[v]===a&&(S=p[v+1]),l&&this.delete(a),E=this.get(S),this.set(a,s)}else{!x&&p[v-1]===a&&(x=!0);const S=p[x?v:v-1],_=E;E=this.get(S),this.delete(S),this.set(S,_)}return this}with(n,a,s){const l=new Fn(this);return l.insert(n,a,s),l}before(n){const a=on(this,Ut).indexOf(n)-1;if(!(a<0))return this.entryAt(a)}setBefore(n,a,s){const l=on(this,Ut).indexOf(n);return l===-1?this:this.insert(l,a,s)}after(n){let a=on(this,Ut).indexOf(n);if(a=a===-1||a===this.size-1?-1:a+1,a!==-1)return this.entryAt(a)}setAfter(n,a,s){const l=on(this,Ut).indexOf(n);return l===-1?this:this.insert(l+1,a,s)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Pm(this,Ut,[]),super.clear()}delete(n){const a=super.delete(n);return a&&on(this,Ut).splice(on(this,Ut).indexOf(n),1),a}deleteAt(n){const a=this.keyAt(n);return a!==void 0?this.delete(a):!1}at(n){const a=df(on(this,Ut),n);if(a!==void 0)return this.get(a)}entryAt(n){const a=df(on(this,Ut),n);if(a!==void 0)return[a,this.get(a)]}indexOf(n){return on(this,Ut).indexOf(n)}keyAt(n){return df(on(this,Ut),n)}from(n,a){const s=this.indexOf(n);if(s===-1)return;let l=s+a;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.at(l)}keyFrom(n,a){const s=this.indexOf(n);if(s===-1)return;let l=s+a;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.keyAt(l)}find(n,a){let s=0;for(const l of this){if(Reflect.apply(n,a,[l,s,this]))return l;s++}}findIndex(n,a){let s=0;for(const l of this){if(Reflect.apply(n,a,[l,s,this]))return s;s++}return-1}filter(n,a){const s=[];let l=0;for(const u of this)Reflect.apply(n,a,[u,l,this])&&s.push(u),l++;return new Fn(s)}map(n,a){const s=[];let l=0;for(const u of this)s.push([u[0],Reflect.apply(n,a,[u,l,this])]),l++;return new Fn(s)}reduce(...n){const[a,s]=n;let l=0,u=s??this.at(0);for(const c of this)l===0&&n.length===1?u=c:u=Reflect.apply(a,this,[u,c,l,this]),l++;return u}reduceRight(...n){const[a,s]=n;let l=s??this.at(-1);for(let u=this.size-1;u>=0;u--){const c=this.at(u);u===this.size-1&&n.length===1?l=c:l=Reflect.apply(a,this,[l,c,u,this])}return l}toSorted(n){const a=[...this.entries()].sort(n);return new Fn(a)}toReversed(){const n=new Fn;for(let a=this.size-1;a>=0;a--){const s=this.keyAt(a),l=this.get(s);n.set(s,l)}return n}toSpliced(...n){const a=[...this.entries()];return a.splice(...n),new Fn(a)}slice(n,a){const s=new Fn;let l=this.size-1;if(n===void 0)return s;n<0&&(n=n+this.size),a!==void 0&&a>0&&(l=a-1);for(let u=n;u<=l;u++){const c=this.keyAt(u),d=this.get(c);s.set(c,d)}return s}every(n,a){let s=0;for(const l of this){if(!Reflect.apply(n,a,[l,s,this]))return!1;s++}return!0}some(n,a){let s=0;for(const l of this){if(Reflect.apply(n,a,[l,s,this]))return!0;s++}return!1}},Ut=new WeakMap,Wt(Fn,"OrderedDict"),Fn);function df(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=oS(e,t);return n===-1?void 0:e[n]}Wt(df,"at");function oS(e,t){const n=e.length,a=$0(t),s=a>=0?a:n+a;return s<0||s>=n?-1:s}Wt(oS,"toSafeIndex");function $0(e){return e!==e||e===0?0:Math.trunc(e)}Wt($0,"toSafeInteger");function MR(e){const t=e+"CollectionProvider",[n,a]=lu(t),[s,l]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Jm,setItemMap:Wt(()=>{},"setItemMap")}),u=Wt(({state:w,...I})=>w?y.jsx(d,{...I,state:w}):y.jsx(c,{...I}),"CollectionProvider");u.displayName=t;const c=Wt(w=>{const I=_();return y.jsx(d,{...w,state:I})},"CollectionInit");c.displayName=t+"Init";const d=Wt(w=>{const{scope:I,children:F,state:R}=w,M=C.useRef(null),[H,Y]=C.useState(null),U=Mt(M,Y),[J,Q]=R;return C.useEffect(()=>{if(!H)return;const se=fS(()=>{});return se.observe(H,{childList:!0,subtree:!0}),()=>{se.disconnect()}},[H]),y.jsx(s,{scope:I,itemMap:J,setItemMap:Q,collectionRef:U,collectionRefObject:M,collectionElement:H,children:F})},"CollectionProviderImpl");d.displayName=t+"Impl";const h=e+"CollectionSlot",m=Yi(h),p=C.forwardRef((w,I)=>{const{scope:F,children:R}=w,M=l(h,F),H=Mt(I,M.collectionRef);return y.jsx(m,{ref:H,children:R})});p.displayName=h;const E=e+"CollectionItemSlot",x="data-radix-collection-item",v=Yi(E),S=C.forwardRef((w,I)=>{const{scope:F,children:R,...M}=w,H=C.useRef(null),[Y,U]=C.useState(null),J=Mt(I,H,U),Q=l(E,F),{setItemMap:se}=Q,ue=C.useRef(M);uS(ue.current,M)||(ue.current=M);const ae=ue.current;return C.useEffect(()=>{const B=ae;return se(G=>Y?G.has(Y)?G.set(Y,{...B,element:Y}).toSorted($p):(G.set(Y,{...B,element:Y}),G.toSorted($p)):G),()=>{se(G=>!Y||!G.has(Y)?G:(G.delete(Y),new Jm(G)))}},[Y,ae,se]),y.jsx(v,{[x]:"",ref:J,children:R})});S.displayName=E;function _(){return C.useState(new Jm)}Wt(_,"useInitCollection");function k(w){const{itemMap:I}=l(e+"CollectionConsumer",w);return I}return Wt(k,"useCollection"),[{Provider:u,Slot:p,ItemSlot:S},{createCollectionScope:a,useCollection:k,useInitCollection:_}]}Wt(MR,"createCollection");function uS(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(const s of n)if(!Object.prototype.hasOwnProperty.call(t,s)||e[s]!==t[s])return!1;return!0}Wt(uS,"shallowEqual");function cS(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Wt(cS,"isElementPreceding");function $p(e,t){return!e[1].element||!t[1].element?0:cS(e[1].element,t[1].element)?-1:1}Wt($p,"sortByDocumentPosition");function fS(e){return new MutationObserver(n=>{for(const a of n)if(a.type==="childList"){e();return}})}Wt(fS,"getChildListObserver");var PR=Object.defineProperty,BR=(e,t)=>PR(e,"name",{value:t,configurable:!0}),jR=C.createContext(void 0);function dS(e){const t=C.useContext(jR);return e||t||"ltr"}BR(dS,"useDirection");var HR=Object.defineProperty,UR=(e,t)=>HR(e,"name",{value:t,configurable:!0}),zR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xn=zR.reduce((e,t)=>{const n=Yi(`Primitive.${t}`),a=C.forwardRef((s,l)=>{const{asChild:u,...c}=s,d=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(d,{...c,ref:l})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function hS(e,t){e&&ni.flushSync(()=>e.dispatchEvent(t))}UR(hS,"dispatchDiscreteCustomEvent");var FR=Object.defineProperty,qR=(e,t)=>FR(e,"name",{value:t,configurable:!0});function Rr(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>((...n)=>t.current?.(...n)),[])}qR(Rr,"useCallbackRef");var VR=Object.defineProperty,Qt=(e,t)=>VR(e,"name",{value:t,configurable:!0}),Gp="dismissableLayer.update",YR="dismissableLayer.pointerDownOutside",$R="dismissableLayer.focusOutside",Hx,mS=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),GR=C.forwardRef(Qt(function(t,n){const{disableOutsidePointerEvents:a=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:h,...m}=t,p=C.useContext(mS),[E,x]=C.useState(null),v=E?.ownerDocument??globalThis?.document,[,S]=C.useState({}),_=Mt(n,x),k=Array.from(p.layers),[N]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),w=N?k.indexOf(N):-1,I=E?k.indexOf(E):-1,F=p.layersWithOutsidePointerEventsDisabled.size>0,R=I>=w,M=C.useRef(!1),H=pS(Q=>{u?.(Q),d?.(Q),Q.defaultPrevented||h?.()},{ownerDocument:v,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:M,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:C.useCallback(Q=>{if(!(Q instanceof Node))return!1;const se=[...p.branches].some(ue=>ue.contains(Q));return R&&!se},[p.branches,R])}),Y=gS(Q=>{if(s&&M.current)return;const se=Q.target;[...p.branches].some(ae=>ae.contains(se))||(c?.(Q),d?.(Q),Q.defaultPrevented||h?.())},v),U=E?I===k.length-1:!1,J=Rr(Q=>{Q.key==="Escape"&&(l?.(Q),!Q.defaultPrevented&&h&&(Q.preventDefault(),h()))});return C.useEffect(()=>{if(U)return v.addEventListener("keydown",J,{capture:!0}),()=>v.removeEventListener("keydown",J,{capture:!0})},[v,U,J]),C.useEffect(()=>{if(E)return a&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Hx=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(E)),p.layers.add(E),Kp(),()=>{a&&(p.layersWithOutsidePointerEventsDisabled.delete(E),p.layersWithOutsidePointerEventsDisabled.size===0&&(v.body.style.pointerEvents=Hx))}},[E,v,a,p]),C.useEffect(()=>()=>{E&&(p.layers.delete(E),p.layersWithOutsidePointerEventsDisabled.delete(E),Kp())},[E,p]),C.useEffect(()=>{const Q=Qt(()=>S({}),"handleUpdate");return document.addEventListener(Gp,Q),()=>document.removeEventListener(Gp,Q)},[]),y.jsx(xn.div,{...m,ref:_,style:{pointerEvents:F?R?"auto":"none":void 0,...t.style},onFocusCapture:Dt(t.onFocusCapture,Y.onFocusCapture),onBlurCapture:Dt(t.onBlurCapture,Y.onBlurCapture),onPointerDownCapture:Dt(t.onPointerDownCapture,H.onPointerDownCapture)})},"DismissableLayer"));function KR(){const e=C.useContext(mS),[t,n]=C.useState(null);return C.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Qt(KR,"useDismissableLayerSurface");var XR=Qt(()=>!0,"IS_TRUE");function pS(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:a=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:l,shouldHandlePointerDownOutside:u=XR}=t,c=Rr(e),d=C.useRef(!1),h=C.useRef(!1),m=C.useRef(new Map),p=C.useRef(()=>{});return C.useEffect(()=>{function E(){h.current=!1,s.current=!1,m.current.clear()}Qt(E,"resetOutsideInteraction");function x(){return Array.from(m.current.values()).some(Boolean)}Qt(x,"isOutsideInteractionIntercepted");function v(w){if(!h.current)return;const I=w.target;I instanceof Node&&[...l].some(R=>R.contains(I))||m.current.set(w.type,!0),w.type==="click"&&window.setTimeout(()=>{h.current&&p.current()},0)}Qt(v,"handleInteractionCapture");function S(w){h.current&&m.current.set(w.type,!1)}Qt(S,"handleInteractionBubble");const _=Qt(w=>{if(w.target&&!d.current){let I=function(){n.removeEventListener("click",p.current);const R=x();E(),R||G0(YR,c,F,{discrete:!0})};if(Qt(I,"handleAndDispatchPointerDownOutsideEvent"),!u(w.target)){n.removeEventListener("click",p.current),E(),d.current=!1;return}const F={originalEvent:w};h.current=!0,s.current=a&&w.button===0,m.current.clear(),!a||w.button!==0?I():(n.removeEventListener("click",p.current),p.current=I,n.addEventListener("click",p.current,{once:!0}))}else n.removeEventListener("click",p.current),E();d.current=!1},"handlePointerDown"),k=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const w of k)n.addEventListener(w,v,!0),n.addEventListener(w,S);const N=window.setTimeout(()=>{n.addEventListener("pointerdown",_)},0);return()=>{window.clearTimeout(N),n.removeEventListener("pointerdown",_),n.removeEventListener("click",p.current);for(const w of k)n.removeEventListener(w,v,!0),n.removeEventListener(w,S)}},[n,c,a,s,l,u]),{onPointerDownCapture:Qt(()=>d.current=!0,"onPointerDownCapture")}}Qt(pS,"usePointerDownOutside");function gS(e,t=globalThis?.document){const n=Rr(e),a=C.useRef(!1);return C.useEffect(()=>{const s=Qt(l=>{l.target&&!a.current&&G0($R,n,{originalEvent:l},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:Qt(()=>a.current=!0,"onFocusCapture"),onBlurCapture:Qt(()=>a.current=!1,"onBlurCapture")}}Qt(gS,"useFocusOutside");function Kp(){const e=new CustomEvent(Gp);document.dispatchEvent(e)}Qt(Kp,"dispatchUpdate");function G0(e,t,n,{discrete:a}){const s=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),a?hS(s,l):s.dispatchEvent(l)}Qt(G0,"handleAndDispatchCustomEvent");var QR=Object.defineProperty,K0=(e,t)=>QR(e,"name",{value:t,configurable:!0}),Fc=0,Gs=null;function WR(e){return X0(),e.children}K0(WR,"FocusGuards");function X0(){C.useEffect(()=>{Gs||(Gs={start:Xp(),end:Xp()});const{start:e,end:t}=Gs;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Fc++,()=>{Fc===1&&(Gs?.start.remove(),Gs?.end.remove(),Gs=null),Fc=Math.max(0,Fc-1)}},[])}K0(X0,"useFocusGuards");function Xp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}K0(Xp,"createFocusGuard");var ZR=Object.defineProperty,bn=(e,t)=>ZR(e,"name",{value:t,configurable:!0}),ep="focusScope.autoFocusOnMount",tp="focusScope.autoFocusOnUnmount",Ux={bubbles:!1,cancelable:!0},JR=C.forwardRef(bn(function(t,n){const{loop:a=!1,trapped:s=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...c}=t,[d,h]=C.useState(null),m=Rr(l),p=Rr(u),E=C.useRef(null),x=Mt(n,h),v=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(s){let _=function(I){if(v.paused||!d)return;const F=I.target;d.contains(F)?E.current=F:na(E.current,{select:!0})},k=function(I){if(v.paused||!d)return;const F=I.relatedTarget;F!==null&&(d.contains(F)||na(E.current,{select:!0}))},N=function(I){if(document.activeElement===document.body)for(const R of I)R.removedNodes.length>0&&na(d)};bn(_,"handleFocusIn"),bn(k,"handleFocusOut"),bn(N,"handleMutations"),document.addEventListener("focusin",_),document.addEventListener("focusout",k);const w=new MutationObserver(N);return d&&w.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",k),w.disconnect()}}},[s,d,v.paused]),C.useEffect(()=>{if(d){zx.add(v);const _=document.activeElement;if(!d.contains(_)){const N=new CustomEvent(ep,Ux);d.addEventListener(ep,m),d.dispatchEvent(N),N.defaultPrevented||(bS(vS(Q0(d)),{select:!0}),document.activeElement===_&&na(d))}return()=>{d.removeEventListener(ep,m),setTimeout(()=>{const N=new CustomEvent(tp,Ux);d.addEventListener(tp,p),d.dispatchEvent(N),N.defaultPrevented||na(_??document.body,{select:!0}),d.removeEventListener(tp,p),zx.remove(v)},0)}}},[d,m,p,v]);const S=C.useCallback(_=>{if(!a&&!s||v.paused)return;const k=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,N=document.activeElement;if(k&&N){const w=_.currentTarget,[I,F]=yS(w);I&&F?!_.shiftKey&&N===F?(_.preventDefault(),a&&na(I,{select:!0})):_.shiftKey&&N===I&&(_.preventDefault(),a&&na(F,{select:!0})):N===w&&_.preventDefault()}},[a,s,v.paused]);return y.jsx(xn.div,{tabIndex:-1,...c,ref:x,onKeyDown:S})},"FocusScope"));function bS(e,{select:t=!1}={}){const n=document.activeElement;for(const a of e)if(na(a,{select:t}),document.activeElement!==n)return}bn(bS,"focusFirst");function yS(e){const t=Q0(e),n=Qp(t,e),a=Qp(t.reverse(),e);return[n,a]}bn(yS,"getTabbableEdges");function Q0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:bn(a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}bn(Q0,"getTabbableCandidates");function Qp(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const a of e)if(!(n?!a.checkVisibility({checkVisibilityCSS:!0}):ES(a,{upTo:t})))return a}bn(Qp,"findVisible");function ES(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}bn(ES,"isHidden");function xS(e){return e instanceof HTMLInputElement&&"select"in e}bn(xS,"isSelectableInput");function na(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&xS(e)&&t&&e.select()}}bn(na,"focus");var zx=TS();function TS(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Wp(e,t),e.unshift(t)},remove(t){e=Wp(e,t),e[0]?.resume()}}}bn(TS,"createFocusScopesStack");function Wp(e,t){const n=[...e],a=n.indexOf(t);return a!==-1&&n.splice(a,1),n}bn(Wp,"arrayRemove");function vS(e){return e.filter(t=>t.tagName!=="A")}bn(vS,"removeLinks");var Jt=globalThis?.document?C.useLayoutEffect:()=>{},e4=Object.defineProperty,t4=(e,t)=>e4(e,"name",{value:t,configurable:!0}),n4=su[" useId ".trim().toString()]||(()=>{}),r4=0;function W0(e){const[t,n]=C.useState(n4());return Jt(()=>{e||n(a=>a??String(r4++))},[e]),e||(t?`radix-${t}`:"")}t4(W0,"useId");const a4=["top","right","bottom","left"],Ja=Math.min,la=Math.max,Nf=Math.round,qc=Math.floor,oa=e=>({x:e,y:e}),i4={left:"right",right:"left",bottom:"top",top:"bottom"};function SS(e,t,n){return la(e,Ja(t,n))}function ca(e,t){return typeof e=="function"?e(t):e}function ei(e){return e.split("-")[0]}function xl(e){return e.split("-")[1]}function Z0(e){return e==="x"?"y":"x"}function J0(e){return e==="y"?"height":"width"}function wr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function eg(e){return Z0(wr(e))}function s4(e,t,n){n===void 0&&(n=!1);const a=xl(e),s=eg(e),l=J0(s);let u=s==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=Rf(u)),[u,Rf(u)]}function l4(e){const t=Rf(e);return[Zp(e),t,Zp(t)]}function Zp(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Fx=["left","right"],qx=["right","left"],o4=["top","bottom"],u4=["bottom","top"];function c4(e,t,n){switch(e){case"top":case"bottom":return n?t?qx:Fx:t?Fx:qx;case"left":case"right":return t?o4:u4;default:return[]}}function f4(e,t,n,a){const s=xl(e);let l=c4(ei(e),n==="start",a);return s&&(l=l.map(u=>u+"-"+s),t&&(l=l.concat(l.map(Zp)))),l}function Rf(e){const t=ei(e);return i4[t]+e.slice(t.length)}function d4(e){var t,n,a,s;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(a=e.bottom)!=null?a:0,left:(s=e.left)!=null?s:0}}function CS(e){return typeof e!="number"?d4(e):{top:e,right:e,bottom:e,left:e}}function Of(e){const{x:t,y:n,width:a,height:s}=e;return{width:a,height:s,top:n,left:t,right:t+a,bottom:n+s,x:t,y:n}}function Vx(e,t,n){let{reference:a,floating:s}=e;const l=wr(t),u=eg(t),c=J0(u),d=ei(t),h=l==="y",m=a.x+a.width/2-s.width/2,p=a.y+a.height/2-s.height/2,E=a[c]/2-s[c]/2;let x;switch(d){case"top":x={x:m,y:a.y-s.height};break;case"bottom":x={x:m,y:a.y+a.height};break;case"right":x={x:a.x+a.width,y:p};break;case"left":x={x:a.x-s.width,y:p};break;default:x={x:a.x,y:a.y}}const v=xl(t);return v&&(x[u]+=E*(v==="end"?1:-1)*(n&&h?-1:1)),x}async function h4(e,t){var n;t===void 0&&(t={});const{x:a,y:s,platform:l,rects:u,elements:c,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:E=!1,padding:x=0}=ca(t,e),v=CS(x),_=c[E?p==="floating"?"reference":"floating":p],k=Of(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(_)))==null||n?_:_.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(c.floating)),boundary:h,rootBoundary:m,strategy:d})),N=p==="floating"?{x:a,y:s,width:u.floating.width,height:u.floating.height}:u.reference,w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c.floating)),I=await(l.isElement==null?void 0:l.isElement(w))&&await(l.getScale==null?void 0:l.getScale(w))||{x:1,y:1},F=Of(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:w,strategy:d}):N);return{top:(k.top-F.top+v.top)/I.y,bottom:(F.bottom-k.bottom+v.bottom)/I.y,left:(k.left-F.left+v.left)/I.x,right:(F.right-k.right+v.right)/I.x}}const m4=50,p4=async(e,t,n)=>{const{placement:a="bottom",strategy:s="absolute",middleware:l=[],platform:u}=n,c=u.detectOverflow?u:{...u,detectOverflow:h4},d=await(u.isRTL==null?void 0:u.isRTL(t));let h=await u.getElementRects({reference:e,floating:t,strategy:s}),{x:m,y:p}=Vx(h,a,d),E=a,x=0;const v={};for(let S=0;S<l.length;S++){const _=l[S];if(!_)continue;const{name:k,fn:N}=_,{x:w,y:I,data:F,reset:R}=await N({x:m,y:p,initialPlacement:a,placement:E,strategy:s,middlewareData:v,rects:h,platform:c,elements:{reference:e,floating:t}});m=w??m,p=I??p,v[k]={...v[k],...F},R&&x<m4&&(x++,typeof R=="object"&&(R.placement&&(E=R.placement),R.rects&&(h=R.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:s}):R.rects),{x:m,y:p}=Vx(h,E,d)),S=-1)}return{x:m,y:p,placement:E,strategy:s,middlewareData:v}},g4=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:s,rects:l,platform:u,elements:c,middlewareData:d}=t,{element:h,padding:m=0}=ca(e,t)||{};if(h==null)return{};const p=CS(m),E={x:n,y:a},x=eg(s),v=J0(x),S=await u.getDimensions(h),_=x==="y",k=_?"top":"left",N=_?"bottom":"right",w=_?"clientHeight":"clientWidth",I=l.reference[v]+l.reference[x]-E[x]-l.floating[v],F=E[x]-l.reference[x],R=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h));let M=R?R[w]:0;(!M||!await(u.isElement==null?void 0:u.isElement(R)))&&(M=c.floating[w]||l.floating[v]);const H=I/2-F/2,Y=M/2-S[v]/2-1,U=Ja(p[k],Y),J=Ja(p[N],Y),Q=M-S[v]-J,se=M/2-S[v]/2+H,ue=SS(U,se,Q),ae=!d.arrow&&xl(s)!=null&&se!==ue&&l.reference[v]/2-(se<U?U:J)-S[v]/2<0,B=ae?se<U?se-U:se-Q:0;return{[x]:E[x]+B,data:{[x]:ue,centerOffset:se-ue-B,...ae&&{alignmentOffset:B}},reset:ae}}}),b4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:h}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:E,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:S=!0,..._}=ca(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const k=ei(s),N=wr(c),w=ei(c)===c,I=await(d.isRTL==null?void 0:d.isRTL(h.floating)),F=E||(w||!S?[Rf(c)]:l4(c)),R=v!=="none";!E&&R&&F.push(...f4(c,S,v,I));const M=[c,...F],H=await d.detectOverflow(t,_),Y=[];let U=((a=l.flip)==null?void 0:a.overflows)||[];if(m&&Y.push(H[k]),p){const ue=s4(s,u,I);Y.push(H[ue[0]],H[ue[1]])}if(U=[...U,{placement:s,overflows:Y}],!Y.every(ue=>ue<=0)){var J,Q;const ue=(((J=l.flip)==null?void 0:J.index)||0)+1,ae=M[ue];if(ae&&(!(p==="alignment"?N!==wr(ae):!1)||U.every(oe=>wr(oe.placement)===N?oe.overflows[0]>0:!0)))return{data:{index:ue,overflows:U},reset:{placement:ae}};let B=(Q=U.filter(G=>G.overflows[0]<=0).sort((G,oe)=>G.overflows[1]-oe.overflows[1])[0])==null?void 0:Q.placement;if(!B)switch(x){case"bestFit":{var se;const G=(se=U.filter(oe=>{if(R){const xe=wr(oe.placement);return xe===N||xe==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(xe=>xe>0).reduce((xe,D)=>xe+D,0)]).sort((oe,xe)=>oe[1]-xe[1])[0])==null?void 0:se[0];G&&(B=G);break}case"initialPlacement":B=c;break}if(s!==B)return{reset:{placement:B}}}return{}}}};function Yx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $x(e){return a4.some(t=>e[t]>=0)}const y4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:a}=t,{strategy:s="referenceHidden",...l}=ca(e,t);switch(s){case"referenceHidden":{const u=await a.detectOverflow(t,{...l,elementContext:"reference"}),c=Yx(u,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:$x(c)}}}case"escaped":{const u=await a.detectOverflow(t,{...l,altBoundary:!0}),c=Yx(u,n.floating);return{data:{escapedOffsets:c,escaped:$x(c)}}}default:return{}}}}},_S=new Set(["left","top"]);async function E4(e,t){const{placement:n,platform:a,elements:s}=e,l=await(a.isRTL==null?void 0:a.isRTL(s.floating)),u=ei(n),c=xl(n),d=wr(n)==="y",h=_S.has(u)?-1:1,m=l&&d?-1:1,p=ca(t,e);let{mainAxis:E,crossAxis:x,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof v=="number"&&(x=c==="end"?v*-1:v),d?{x:x*m,y:E*h}:{x:E*h,y:x*m}}const x4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:s,y:l,placement:u,middlewareData:c}=t,d=await E4(t,e);return u===((n=c.offset)==null?void 0:n.placement)&&(a=c.arrow)!=null&&a.alignmentOffset?{}:{x:s+d.x,y:l+d.y,data:{...d,placement:u}}}}},T4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:s,platform:l}=t,{mainAxis:u=!0,crossAxis:c=!1,limiter:d={fn:N=>{let{x:w,y:I}=N;return{x:w,y:I}}},...h}=ca(e,t),m={x:n,y:a},p=await l.detectOverflow(t,h),E=wr(s),x=Z0(E);let v=m[x],S=m[E];const _=(N,w)=>SS(w+p[N==="y"?"top":"left"],w,w-p[N==="y"?"bottom":"right"]);u&&(v=_(x,v)),c&&(S=_(E,S));const k=d.fn({...t,[x]:v,[E]:S});return{...k,data:{x:k.x-n,y:k.y-a,enabled:{[x]:u,[E]:c}}}}}},v4=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,a;const{x:s,y:l,placement:u,rects:c,middlewareData:d}=t,{offset:h=0,mainAxis:m=!0,crossAxis:p=!0}=ca(e,t),E={x:s,y:l},x=wr(u),v=Z0(x);let S=E[v],_=E[x];const k=ca(h,t),N=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:(n=k.mainAxis)!=null?n:0,crossAxis:(a=k.crossAxis)!=null?a:0};if(m){const F=v==="y"?"height":"width",R=c.reference[v]-c.floating[F]+N.mainAxis,M=c.reference[v]+c.reference[F]-N.mainAxis;S<R?S=R:S>M&&(S=M)}if(p){var w,I;const F=v==="y"?"width":"height",R=_S.has(ei(u)),M=c.reference[x]-c.floating[F]+(R&&((w=d.offset)==null?void 0:w[x])||0)+(R?0:N.crossAxis),H=c.reference[x]+c.reference[F]+(R?0:((I=d.offset)==null?void 0:I[x])||0)-(R?N.crossAxis:0);_<M?_=M:_>H&&(_=H)}return{[v]:S,[x]:_}}}},S4=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:a,platform:s,elements:l}=t,{apply:u=()=>{},...c}=ca(e,t),d=await s.detectOverflow(t,c),h=ei(n),m=xl(n),p=wr(n)==="y",{width:E,height:x}=a.floating;let v,S;h==="top"||h==="bottom"?(v=h,S=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(S=h,v=m==="end"?"top":"bottom");const _=x-d.top-d.bottom,k=E-d.left-d.right,N=Ja(x-d[v],_),w=Ja(E-d[S],k),I=t.middlewareData.shift,F=!I;let R=N,M=w;I!=null&&I.enabled.x&&(M=k),I!=null&&I.enabled.y&&(R=_),F&&!m&&(p?M=E-2*la(d.left,d.right):R=x-2*la(d.top,d.bottom)),await u({...t,availableWidth:M,availableHeight:R});const H=await s.getDimensions(l.floating);return E!==H.width||x!==H.height?{reset:{rects:!0}}:{}}}};function Wf(){return typeof window<"u"}function Tl(e){return AS(e)?(e.nodeName||"").toLowerCase():"#document"}function Ln(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ha(e){var t;return(t=(AS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function AS(e){return Wf()?e instanceof Node||e instanceof Ln(e).Node:!1}function Or(e){return Wf()?e instanceof Element||e instanceof Ln(e).Element:!1}function ri(e){return Wf()?e instanceof HTMLElement||e instanceof Ln(e).HTMLElement:!1}function Gx(e){return!Wf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ln(e).ShadowRoot}function Zf(e){const{overflow:t,overflowX:n,overflowY:a,display:s}=Lr(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&s!=="inline"&&s!=="contents"}function C4(e){return/^(table|td|th)$/.test(Tl(e))}function Jf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const _4=/transform|translate|scale|rotate|perspective|filter/,A4=/paint|layout|strict|content/,wi=e=>!!e&&e!=="none";let np;function tg(e){const t=Or(e)?Lr(e):e;return wi(t.transform)||wi(t.translate)||wi(t.scale)||wi(t.rotate)||wi(t.perspective)||!ng()&&(wi(t.backdropFilter)||wi(t.filter))||_4.test(t.willChange||"")||A4.test(t.contain||"")}function k4(e){let t=$i(e);for(;ri(t)&&!Jo(t);){if(tg(t))return t;if(Jf(t))return null;t=$i(t)}return null}function ng(){return np==null&&(np=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),np}function Jo(e){return/^(html|body|#document)$/.test(Tl(e))}function Lr(e){return Ln(e).getComputedStyle(e)}function ed(e){return Or(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $i(e){if(Tl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gx(e)&&e.host||ha(e);return Gx(t)?t.host:t}function kS(e){const t=$i(e);return Jo(t)?(e.ownerDocument||e).body:ri(t)&&Zf(t)?t:kS(t)}function eu(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=kS(e),l=s===((a=e.ownerDocument)==null?void 0:a.body),u=Ln(s);if(l){const c=Jp(u);return t.concat(u,u.visualViewport||[],Zf(s)?s:[],c&&n?eu(c):[])}else return t.concat(s,eu(s,[],n))}function Jp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wS(e){const t=Lr(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const s=ri(e),l=s?e.offsetWidth:n,u=s?e.offsetHeight:a,c=Nf(n)!==l||Nf(a)!==u;return c&&(n=l,a=u),{width:n,height:a,$:c}}function rg(e){return Or(e)?e:e.contextElement}function ol(e){const t=rg(e);if(!ri(t))return oa(1);const n=t.getBoundingClientRect(),{width:a,height:s,$:l}=wS(t);let u=(l?Nf(n.width):n.width)/a,c=(l?Nf(n.height):n.height)/s;return(!u||!Number.isFinite(u))&&(u=1),(!c||!Number.isFinite(c))&&(c=1),{x:u,y:c}}const w4=oa(0);function NS(e){const t=Ln(e);return!ng()||!t.visualViewport?w4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function N4(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Ln(e)}function Gi(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),l=rg(e);let u=oa(1);t&&(a?Or(a)&&(u=ol(a)):u=ol(e));const c=N4(l,n,a)?NS(l):oa(0);let d=(s.left+c.x)/u.x,h=(s.top+c.y)/u.y,m=s.width/u.x,p=s.height/u.y;if(l&&a){const E=Ln(l),x=Or(a)?Ln(a):a;let v=E,S=Jp(v);for(;S&&x!==v;){const _=ol(S),k=S.getBoundingClientRect(),N=Lr(S),w=k.left+(S.clientLeft+parseFloat(N.paddingLeft))*_.x,I=k.top+(S.clientTop+parseFloat(N.paddingTop))*_.y;d*=_.x,h*=_.y,m*=_.x,p*=_.y,d+=w,h+=I,v=Ln(S),S=Jp(v)}}return Of({width:m,height:p,x:d,y:h})}function td(e,t){const n=ed(e).scrollLeft;return t?t.left+n:Gi(ha(e)).left+n}function RS(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-td(e,n),s=n.top+t.scrollTop;return{x:a,y:s}}function R4(e){let{elements:t,rect:n,offsetParent:a,strategy:s}=e;const l=s==="fixed",u=ha(a),c=t?Jf(t.floating):!1;if(a===u||c&&l)return n;let d={scrollLeft:0,scrollTop:0},h=oa(1);const m=oa(0),p=ri(a);if((p||!l)&&((Tl(a)!=="body"||Zf(u))&&(d=ed(a)),p)){const x=Gi(a);h=ol(a),m.x=x.x+a.clientLeft,m.y=x.y+a.clientTop}const E=u&&!p&&!l?RS(u,d):oa(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+m.x+E.x,y:n.y*h.y-d.scrollTop*h.y+m.y+E.y}}function O4(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function L4(e){const t=ed(e),n=e.ownerDocument.body,a=la(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=la(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let l=-t.scrollLeft+td(e);const u=-t.scrollTop;return Lr(n).direction==="rtl"&&(l+=la(e.clientWidth,n.clientWidth)-a),{width:a,height:s,x:l,y:u}}const D4=25;function I4(e,t,n){n===void 0&&(n="viewport");const a=n==="layoutViewport",s=Ln(e),l=ha(e),u=s.visualViewport;let c=l.clientWidth,d=l.clientHeight,h=0,m=0;if(u){const E=!ng()||t==="fixed";a?E||(h=-u.offsetLeft,m=-u.offsetTop):(c=u.width,d=u.height,E&&(h=u.offsetLeft,m=u.offsetTop))}if(td(l)<=0){const E=l.ownerDocument,x=E.body,v=getComputedStyle(x),S=E.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,_=Math.abs(l.clientWidth-x.clientWidth-S),k=getComputedStyle(l).scrollbarGutter==="stable both-edges"?_/2:_;k<=D4&&(c-=k)}return{width:c,height:d,x:h,y:m}}function M4(e,t){const n=Gi(e,!0,t==="fixed"),a=n.top+e.clientTop,s=n.left+e.clientLeft,l=ol(e),u=e.clientWidth*l.x,c=e.clientHeight*l.y,d=s*l.x,h=a*l.y;return{width:u,height:c,x:d,y:h}}function Kx(e,t,n){let a;if(t==="viewport"||t==="layoutViewport")a=I4(e,n,t);else if(t==="document")a=L4(ha(e));else if(Or(t))a=M4(t,n);else{const s=NS(e);a={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Of(a)}function P4(e,t){const n=t.get(e);if(n)return n;let a=eu(e,[],!1).filter(c=>Or(c)&&Tl(c)!=="body"),s=null;const l=Lr(e).position==="fixed";let u=l?$i(e):e;for(;Or(u)&&!Jo(u);){const c=Lr(u),d=tg(u),h=s?s.position:l?"fixed":"";!d&&(h==="fixed"||h==="absolute"&&c.position==="static")?a=a.filter(p=>p!==u):s=c,u=$i(u)}return t.set(e,a),a}function B4(e){let{element:t,boundary:n,rootBoundary:a,strategy:s}=e;const u=[...n==="clippingAncestors"?Jf(t)?[]:P4(t,this._c):[].concat(n),a],c=Kx(t,u[0],s);let d=c.top,h=c.right,m=c.bottom,p=c.left;for(let E=1;E<u.length;E++){const x=Kx(t,u[E],s);d=la(x.top,d),h=Ja(x.right,h),m=Ja(x.bottom,m),p=la(x.left,p)}return{width:h-p,height:m-d,x:p,y:d}}function j4(e){const{width:t,height:n}=wS(e);return{width:t,height:n}}function H4(e,t,n){const a=ri(t),s=ha(t),l=n==="fixed",u=Gi(e,!0,l,t);let c={scrollLeft:0,scrollTop:0};const d=oa(0);if((a||!l)&&((Tl(t)!=="body"||Zf(s))&&(c=ed(t)),a)){const E=Gi(t,!0,l,t);d.x=E.x+t.clientLeft,d.y=E.y+t.clientTop}!a&&s&&(d.x=td(s));const h=s&&!a&&!l?RS(s,c):oa(0),m=u.left+c.scrollLeft-d.x-h.x,p=u.top+c.scrollTop-d.y-h.y;return{x:m,y:p,width:u.width,height:u.height}}function rp(e){return Lr(e).position==="static"}function Xx(e,t){if(!ri(e)||Lr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ha(e)===n&&(n=n.ownerDocument.body),n}function OS(e,t){const n=Ln(e);if(Jf(e))return n;if(!ri(e)){let s=$i(e);for(;s&&!Jo(s);){if(Or(s)&&!rp(s))return s;s=$i(s)}return n}let a=Xx(e,t);for(;a&&C4(a)&&rp(a);)a=Xx(a,t);return a&&Jo(a)&&rp(a)&&!tg(a)?n:a||k4(e)||n}const U4=async function(e){const t=this.getOffsetParent||OS,n=this.getDimensions,a=await n(e.floating);return{reference:H4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function z4(e){return Lr(e).direction==="rtl"}const F4={convertOffsetParentRelativeRectToViewportRelativeRect:R4,getDocumentElement:ha,getClippingRect:B4,getOffsetParent:OS,getElementRects:U4,getClientRects:O4,getDimensions:j4,getScale:ol,isElement:Or,isRTL:z4};function LS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function q4(e,t,n){let a=null,s;const l=ha(e);function u(){var m;clearTimeout(s),(m=a)==null||m.disconnect(),a=null}function c(m,p){m===void 0&&(m=!1),p===void 0&&(p=1),u();const E=e.getBoundingClientRect(),{left:x,top:v,width:S,height:_}=E;if(m||t(),!S||!_)return;const k=qc(v),N=qc(l.clientWidth-(x+S)),w=qc(l.clientHeight-(v+_)),I=qc(x),R={rootMargin:-k+"px "+-N+"px "+-w+"px "+-I+"px",threshold:la(0,Ja(1,p))||1};let M=!0;function H(Y){const U=Y[0].intersectionRatio;if(!LS(E,e.getBoundingClientRect()))return c();if(U!==p){if(!M)return c();U?c(!1,U):s=setTimeout(()=>{c(!1,1e-7)},1e3)}M=!1}try{a=new IntersectionObserver(H,{...R,root:l.ownerDocument})}catch{a=new IntersectionObserver(H,R)}a.observe(e)}const d=Ln(e),h=()=>c(n);return d.addEventListener("resize",h),c(!0),()=>{d.removeEventListener("resize",h),u()}}function V4(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=a,h=rg(e),m=s||l?[...h?eu(h):[],...t?eu(t):[]]:[];m.forEach(k=>{s&&k.addEventListener("scroll",n),l&&k.addEventListener("resize",n)});const p=h&&c?q4(h,n,l):null;let E=-1,x=null;u&&(x=new ResizeObserver(k=>{let[N]=k;N&&N.target===h&&x&&t&&(x.unobserve(t),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var w;(w=x)==null||w.observe(t)})),n()}),h&&!d&&x.observe(h),t&&x.observe(t));let v,S=d?Gi(e):null;d&&_();function _(){const k=Gi(e);S&&!LS(S,k)&&n(),S=k,v=requestAnimationFrame(_)}return n(),()=>{var k;m.forEach(N=>{s&&N.removeEventListener("scroll",n),l&&N.removeEventListener("resize",n)}),p?.(),(k=x)==null||k.disconnect(),x=null,d&&cancelAnimationFrame(v)}}const Y4=x4,$4=T4,G4=b4,K4=S4,X4=y4,Qx=g4,Q4=v4,W4=(e,t,n)=>{const a=new Map,s=n??{},l={...F4,...s.platform,_c:a};return p4(e,t,{...s,platform:l})};var Z4=typeof document<"u",J4=function(){},hf=Z4?C.useLayoutEffect:J4;function Lf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,a,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(!Lf(e[a],t[a]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(t,s[a]))return!1;for(a=n;a--!==0;){const l=s[a];if(!(l==="_owner"&&e.$$typeof)&&!Lf(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function DS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wx(e,t){const n=DS(e);return Math.round(t*n)/n}function ap(e){const t=C.useRef(e);return hf(()=>{t.current=e}),t}function eO(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:s,elements:{reference:l,floating:u}={},transform:c=!0,whileElementsMounted:d,open:h}=e,[m,p]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[E,x]=C.useState(a);Lf(E,a)||x(a);const[v,S]=C.useState(null),[_,k]=C.useState(null),N=C.useCallback(oe=>{oe!==R.current&&(R.current=oe,S(oe))},[]),w=C.useCallback(oe=>{oe!==M.current&&(M.current=oe,k(oe))},[]),I=l||v,F=u||_,R=C.useRef(null),M=C.useRef(null),H=C.useRef(m),Y=d!=null,U=ap(d),J=ap(s),Q=ap(h),se=C.useCallback(()=>{if(!R.current||!M.current)return;const oe={placement:t,strategy:n,middleware:E};J.current&&(oe.platform=J.current),W4(R.current,M.current,oe).then(xe=>{const D={...xe,isPositioned:Q.current!==!1};ue.current&&!Lf(H.current,D)&&(H.current=D,ni.flushSync(()=>{p(D)}))})},[E,t,n,J,Q]);hf(()=>{h===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,p(oe=>({...oe,isPositioned:!1})))},[h]);const ue=C.useRef(!1);hf(()=>(ue.current=!0,()=>{ue.current=!1}),[]),hf(()=>{if(I&&(R.current=I),F&&(M.current=F),I&&F){if(U.current)return U.current(I,F,se);se()}},[I,F,se,U,Y]);const ae=C.useMemo(()=>({reference:R,floating:M,setReference:N,setFloating:w}),[N,w]),B=C.useMemo(()=>({reference:I,floating:F}),[I,F]),G=C.useMemo(()=>{const oe={position:n,left:0,top:0};if(!B.floating)return oe;const xe=Wx(B.floating,m.x),D=Wx(B.floating,m.y);return c?{...oe,transform:"translate("+xe+"px, "+D+"px)",...DS(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:xe,top:D}},[n,c,B.floating,m.x,m.y]);return C.useMemo(()=>({...m,update:se,refs:ae,elements:B,floatingStyles:G}),[m,se,ae,B,G])}const tO=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:a,padding:s}=typeof e=="function"?e(n):e;return a&&t(a)?a.current!=null?Qx({element:a.current,padding:s}).fn(n):{}:a?Qx({element:a,padding:s}).fn(n):{}}}},nO=(e,t)=>{const n=Y4(e);return{name:n.name,fn:n.fn,options:[e,t]}},rO=(e,t)=>{const n=$4(e);return{name:n.name,fn:n.fn,options:[e,t]}},aO=(e,t)=>({fn:Q4(e).fn,options:[e,t]}),iO=(e,t)=>{const n=G4(e);return{name:n.name,fn:n.fn,options:[e,t]}},sO=(e,t)=>{const n=K4(e);return{name:n.name,fn:n.fn,options:[e,t]}},lO=(e,t)=>{const n=X4(e);return{name:n.name,fn:n.fn,options:[e,t]}},oO=(e,t)=>{const n=tO(e);return{name:n.name,fn:n.fn,options:[e,t]}};var uO=Object.defineProperty,cO=(e,t)=>uO(e,"name",{value:t,configurable:!0});function IS(e){const[t,n]=C.useState(void 0);return Jt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let u,c;if("borderBoxSize"in l){const d=l.borderBoxSize,h=Array.isArray(d)?d[0]:d;u=h.inlineSize,c=h.blockSize}else u=e.offsetWidth,c=e.offsetHeight;n({width:u,height:c})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else n(void 0)},[e]),t}cO(IS,"useSize");var fO=Object.defineProperty,Wa=(e,t)=>fO(e,"name",{value:t,configurable:!0}),MS="Popper",[PS,BS]=lu(MS),[dO,jS]=PS(MS),hO=Wa(e=>{const{__scopePopper:t,children:n}=e,[a,s]=C.useState(null),[l,u]=C.useState(void 0);return y.jsx(dO,{scope:t,anchor:a,onAnchorChange:s,placementState:l,setPlacementState:u,children:n})},"Popper"),mO="PopperAnchor",pO=C.forwardRef(Wa(function(t,n){const{__scopePopper:a,virtualRef:s,...l}=t,u=jS(mO,a),c=C.useRef(null),d=u.onAnchorChange,h=C.useCallback(S=>{c.current=S,S&&d(S)},[d]),m=Mt(n,h),p=C.useRef(null);C.useEffect(()=>{if(!s)return;const S=p.current;p.current=s.current,S!==p.current&&d(p.current)});const E=u.placementState&&nd(u.placementState),x=E?.[0],v=E?.[1];return s?null:y.jsx(xn.div,{"data-radix-popper-side":x,"data-radix-popper-align":v,...l,ref:m})},"PopperAnchor")),HS="PopperContent",[gO,nV]=PS(HS),bO=C.forwardRef(Wa(function(t,n){const{__scopePopper:a,side:s="bottom",sideOffset:l=0,align:u="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:m=[],collisionPadding:p=0,sticky:E="partial",hideWhenDetached:x=!1,updatePositionStrategy:v="optimized",onPlaced:S,..._}=t,k=jS(HS,a),[N,w]=C.useState(null),I=Mt(n,w),[F,R]=C.useState(null),M=IS(F),H=M?.width??0,Y=M?.height??0,U=s+(u!=="center"?"-"+u:""),J=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},Q=Array.isArray(m)?m:[m],se=Q.length>0,ue={padding:J,boundary:Q.filter(US),altBoundary:se},{refs:ae,floatingStyles:B,placement:G,isPositioned:oe,middlewareData:xe}=eO({strategy:"fixed",placement:U,whileElementsMounted:Wa((...Ee)=>V4(...Ee,{animationFrame:v==="always"}),"whileElementsMounted"),elements:{reference:k.anchor},middleware:[nO({mainAxis:l+Y,alignmentAxis:c}),h&&rO({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?aO():void 0,...ue}),h&&iO({...ue}),sO({...ue,apply:Wa(({elements:Ee,rects:Pe,availableWidth:Le,availableHeight:Re})=>{const{width:He,height:ze}=Pe.reference,tt=Ee.floating.style;tt.setProperty("--radix-popper-available-width",`${Le}px`),tt.setProperty("--radix-popper-available-height",`${Re}px`),tt.setProperty("--radix-popper-anchor-width",`${He}px`),tt.setProperty("--radix-popper-anchor-height",`${ze}px`)},"apply")}),F&&oO({element:F,padding:d}),yO({arrowWidth:H,arrowHeight:Y}),x&&lO({strategy:"referenceHidden",...ue,boundary:se?ue.boundary:void 0})]}),D=k.setPlacementState;Jt(()=>(D(G),()=>{D(void 0)}),[G,D]);const[z,X]=nd(G),O=Rr(S);Jt(()=>{oe&&O?.()},[oe,O]);const Z=xe.arrow?.x,de=xe.arrow?.y,pe=xe.arrow?.centerOffset!==0,[Se,Te]=C.useState();return Jt(()=>{N&&Te(window.getComputedStyle(N).zIndex)},[N]),y.jsx("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:oe?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[xe.transformOrigin?.x,xe.transformOrigin?.y].join(" "),...xe.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:y.jsx(gO,{scope:a,placedSide:z,placedAlign:X,onArrowChange:R,arrowX:Z,arrowY:de,shouldHideArrow:pe,children:y.jsx(xn.div,{"data-side":z,"data-align":X,..._,ref:I,style:{..._.style,animation:oe?_.style?.animation:"none"}})})})},"PopperContent"));function US(e){return e!==null}Wa(US,"isNotNull");var yO=Wa(e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:a,middlewareData:s}=t,u=s.arrow?.centerOffset!==0,c=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[h,m]=nd(n),p={start:"0%",center:"50%",end:"100%"}[m],E=(s.arrow?.x??0)+c/2,x=(s.arrow?.y??0)+d/2;let v="",S="";return h==="bottom"?(v=u?p:`${E}px`,S=`${-d}px`):h==="top"?(v=u?p:`${E}px`,S=`${a.floating.height+d}px`):h==="right"?(v=`${-d}px`,S=u?p:`${x}px`):h==="left"&&(v=`${a.floating.width+d}px`,S=u?p:`${x}px`),{data:{x:v,y:S}}}}),"transformOrigin");function nd(e){const[t,n="center"]=e.split("-");return[t,n]}Wa(nd,"getSideAndAlignFromPlacement");var EO=hO,xO=pO,TO=bO,vO=Object.defineProperty,SO=(e,t)=>vO(e,"name",{value:t,configurable:!0}),CO=C.forwardRef(SO(function(t,n){const{container:a,...s}=t,[l,u]=C.useState(!1);Jt(()=>u(!0),[]);const c=a||l&&globalThis?.document?.body;return c?ni.createPortal(y.jsx(xn.div,{...s,ref:n}),c):null},"Portal")),_O=Object.defineProperty,fa=(e,t)=>_O(e,"name",{value:t,configurable:!0});function zS(e,t){return C.useReducer((n,a)=>t[n][a]??n,e)}fa(zS,"useStateMachine");var AO=fa(e=>{const{present:t,children:n}=e,a=FS(t),s=typeof n=="function"?n({present:a.isPresent}):C.Children.only(n),l=qS(a.ref,VS(s));return typeof n=="function"||a.isPresent?C.cloneElement(s,{ref:l}):null},"Presence");function FS(e){const[t,n]=C.useState(),a=C.useRef(null),s=C.useRef(e),l=C.useRef("none"),u=C.useRef(void 0),c=e?"mounted":"unmounted",[d,h]=zS(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{d==="mounted"?(l.current=u.current??tl(a.current),u.current=void 0):l.current="none"},[d]),Jt(()=>{const m=a.current,p=s.current;if(p!==e){const x=l.current,v=tl(m);e?(u.current=v,h("MOUNT")):v==="none"||m?.display==="none"?h("UNMOUNT"):h(p&&x!==v?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,h]),Jt(()=>{if(t){let m;const p=t.ownerDocument.defaultView??window,E=fa(v=>{const _=tl(a.current).includes(CSS.escape(v.animationName));if(v.target===t&&_&&(h("ANIMATION_END"),!s.current)){const k=t.style.animationFillMode;t.style.animationFillMode="forwards",m=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=k)})}},"handleAnimationEnd"),x=fa(v=>{v.target===t&&(l.current=tl(a.current))},"handleAnimationStart");return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",E),t.addEventListener("animationend",E),()=>{p.clearTimeout(m),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",E),t.removeEventListener("animationend",E)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:C.useCallback(m=>{if(m){const p=getComputedStyle(m);a.current=p,u.current=tl(p)}else a.current=null;n(m)},[])}}fa(FS,"usePresence");function e0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}fa(e0,"setRef");function qS(...e){const t=C.useRef(e);return t.current=e,C.useCallback(n=>{const a=t.current;let s=!1;const l=a.map(u=>{const c=e0(u,n);return!s&&typeof c=="function"&&(s=!0),c});if(s)return()=>{for(let u=0;u<l.length;u++){const c=l[u];typeof c=="function"?c():e0(a[u],null)}}},[])}fa(qS,"useStableComposedRefs");function tl(e){return e?.animationName||"none"}fa(tl,"getAnimationName");function VS(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}fa(VS,"getElementRef");var kO=Object.defineProperty,wO=(e,t)=>kO(e,"name",{value:t,configurable:!0}),Zx=su[" useEffectEvent ".trim().toString()],Jx=su[" useInsertionEffect ".trim().toString()];function YS(e){if(typeof Zx=="function")return Zx(e);const t=C.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Jx=="function"?Jx(()=>{t.current=e}):Jt(()=>{t.current=e}),C.useMemo(()=>((...n)=>t.current?.(...n)),[])}wO(YS,"useEffectEvent");var NO=Object.defineProperty,ou=(e,t)=>NO(e,"name",{value:t,configurable:!0}),RO=su[" useInsertionEffect ".trim().toString()]||Jt;function t0({prop:e,defaultProp:t,onChange:n=ou(()=>{},"onChange"),caller:a}){const[s,l,u]=$S({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:s,h=C.useCallback(m=>{if(c){const p=GS(m)?m(e):m;p!==e&&u.current?.(p)}else l(m)},[c,e,l,u]);return[d,h]}ou(t0,"useControllableState");function $S({defaultProp:e,onChange:t}){const[n,a]=C.useState(e),s=C.useRef(n),l=C.useRef(t);return RO(()=>{l.current=t},[t]),C.useEffect(()=>{s.current!==n&&(l.current?.(n),s.current=n)},[n,s]),[n,a,l]}ou($S,"useUncontrolledState");function GS(e){return typeof e=="function"}ou(GS,"isFunction");var eT=Symbol("RADIX:SYNC_STATE");function OO(e,t,n,a){const{prop:s,defaultProp:l,onChange:u,caller:c}=t,d=s!==void 0,h=YS(u),m=[{...n,state:l}];a&&m.push(a);const[p,E]=C.useReducer((_,k)=>{if(k.type===eT)return{..._,state:k.state};const N=e(_,k);return d&&!Object.is(N.state,_.state)&&h(N.state),N},...m),x=p.state,v=C.useRef(x);C.useEffect(()=>{v.current!==x&&(v.current=x,d||h(x))},[x,v,d]);const S=C.useMemo(()=>s!==void 0?{...p,state:s}:p,[p,s]);return C.useEffect(()=>{d&&!Object.is(s,p.state)&&E({type:eT,state:s})},[s,p.state,d]),[S,E]}ou(OO,"useControllableStateReducer");var LO=Object.defineProperty,DO=(e,t)=>LO(e,"name",{value:t,configurable:!0});function KS(e){const t=C.useRef({value:e,previous:e});return C.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}DO(KS,"usePrevious");var IO=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),MO=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ks=new WeakMap,Vc=new WeakMap,Yc={},ip=0,XS=function(e){return e&&(e.host||XS(e.parentNode))},PO=function(e,t){return t.map(function(n){if(e.contains(n))return n;var a=XS(n);return a&&e.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},BO=function(e,t,n,a){var s=PO(t,Array.isArray(e)?e:[e]);Yc[n]||(Yc[n]=new WeakMap);var l=Yc[n],u=[],c=new Set,d=new Set(s),h=function(p){!p||c.has(p)||(c.add(p),h(p.parentNode))};s.forEach(h);var m=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(E){if(c.has(E))m(E);else try{var x=E.getAttribute(a),v=x!==null&&x!=="false",S=(Ks.get(E)||0)+1,_=(l.get(E)||0)+1;Ks.set(E,S),l.set(E,_),u.push(E),S===1&&v&&Vc.set(E,!0),_===1&&E.setAttribute(n,"true"),v||E.setAttribute(a,"true")}catch(k){console.error("aria-hidden: cannot operate on ",E,k)}})};return m(t),c.clear(),ip++,function(){u.forEach(function(p){var E=Ks.get(p)-1,x=l.get(p)-1;Ks.set(p,E),l.set(p,x),E||(Vc.has(p)||p.removeAttribute(a),Vc.delete(p)),x||p.removeAttribute(n)}),ip--,ip||(Ks=new WeakMap,Ks=new WeakMap,Vc=new WeakMap,Yc={})}},jO=function(e,t,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),s=MO(e);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live], script"))),BO(a,s,n,"aria-hidden")):function(){return null}},kr=function(){return kr=Object.assign||function(t){for(var n,a=1,s=arguments.length;a<s;a++){n=arguments[a];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},kr.apply(this,arguments)};function QS(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]]);return n}function HO(e,t,n){if(n||arguments.length===2)for(var a=0,s=t.length,l;a<s;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))}var mf="right-scroll-bar-position",pf="width-before-scroll-bar",UO="with-scroll-bars-hidden",zO="--removed-body-scroll-bar-size";function sp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function FO(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(a){var s=n.value;s!==a&&(n.value=a,n.callback(a,s))}}}})[0];return n.callback=t,n.facade}var qO=typeof window<"u"?C.useLayoutEffect:C.useEffect,tT=new WeakMap;function VO(e,t){var n=FO(null,function(a){return e.forEach(function(s){return sp(s,a)})});return qO(function(){var a=tT.get(n);if(a){var s=new Set(a),l=new Set(e),u=n.current;s.forEach(function(c){l.has(c)||sp(c,null)}),l.forEach(function(c){s.has(c)||sp(c,u)})}tT.set(n,e)},[e]),n}function YO(e){return e}function $O(e,t){t===void 0&&(t=YO);var n=[],a=!1,s={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var u=t(l,a);return n.push(u),function(){n=n.filter(function(c){return c!==u})}},assignSyncMedium:function(l){for(a=!0;n.length;){var u=n;n=[],u.forEach(l)}n={push:function(c){return l(c)},filter:function(){return n}}},assignMedium:function(l){a=!0;var u=[];if(n.length){var c=n;n=[],c.forEach(l),u=n}var d=function(){var m=u;u=[],m.forEach(l)},h=function(){return Promise.resolve().then(d)};h(),n={push:function(m){u.push(m),h()},filter:function(m){return u=u.filter(m),n}}}};return s}function GO(e){e===void 0&&(e={});var t=$O(null);return t.options=kr({async:!0,ssr:!1},e),t}var WS=function(e){var t=e.sideCar,n=QS(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return C.createElement(a,kr({},n))};WS.isSideCarExport=!0;function KO(e,t){return e.useMedium(t),WS}var ZS=GO(),lp=function(){},rd=C.forwardRef(function(e,t){var n=C.useRef(null),a=C.useState({onScrollCapture:lp,onWheelCapture:lp,onTouchMoveCapture:lp}),s=a[0],l=a[1],u=e.forwardProps,c=e.children,d=e.className,h=e.removeScrollBar,m=e.enabled,p=e.shards,E=e.sideCar,x=e.noRelative,v=e.noIsolation,S=e.inert,_=e.allowPinchZoom,k=e.as,N=k===void 0?"div":k,w=e.gapMode,I=QS(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=E,R=VO([n,t]),M=kr(kr({},I),s);return C.createElement(C.Fragment,null,m&&C.createElement(F,{sideCar:ZS,removeScrollBar:h,shards:p,noRelative:x,noIsolation:v,inert:S,setCallbacks:l,allowPinchZoom:!!_,lockRef:n,gapMode:w}),u?C.cloneElement(C.Children.only(c),kr(kr({},M),{ref:R})):C.createElement(N,kr({},M,{className:d,ref:R}),c))});rd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};rd.classNames={fullWidth:pf,zeroRight:mf};var XO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function QO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=XO();return t&&e.setAttribute("nonce",t),e}function WO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ZO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var JO=function(){var e=0,t=null;return{add:function(n){e==0&&(t=QO())&&(WO(t,n),ZO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eL=function(){var e=JO();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},JS=function(){var e=eL(),t=function(n){var a=n.styles,s=n.dynamic;return e(a,s),null};return t},tL={left:0,top:0,right:0,gap:0},op=function(e){return parseInt(e||"",10)||0},nL=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[op(n),op(a),op(s)]},rL=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tL;var t=nL(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},aL=JS(),ul="data-scroll-locked",iL=function(e,t,n,a){var s=e.left,l=e.top,u=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
10
|
-
.`.concat(UO,` {
|
|
11
|
-
overflow: hidden `).concat(a,`;
|
|
12
|
-
padding-right: `).concat(c,"px ").concat(a,`;
|
|
13
|
-
}
|
|
14
|
-
body[`).concat(ul,`] {
|
|
15
|
-
overflow: hidden `).concat(a,`;
|
|
16
|
-
overscroll-behavior: contain;
|
|
17
|
-
`).concat([t&&"position: relative ".concat(a,";"),n==="margin"&&`
|
|
18
|
-
padding-left: `.concat(s,`px;
|
|
19
|
-
padding-top: `).concat(l,`px;
|
|
20
|
-
padding-right: `).concat(u,`px;
|
|
21
|
-
margin-left:0;
|
|
22
|
-
margin-top:0;
|
|
23
|
-
margin-right: `).concat(c,"px ").concat(a,`;
|
|
24
|
-
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(a,";")].filter(Boolean).join(""),`
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.`).concat(mf,` {
|
|
28
|
-
right: `).concat(c,"px ").concat(a,`;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.`).concat(pf,` {
|
|
32
|
-
margin-right: `).concat(c,"px ").concat(a,`;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.`).concat(mf," .").concat(mf,` {
|
|
36
|
-
right: 0 `).concat(a,`;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.`).concat(pf," .").concat(pf,` {
|
|
40
|
-
margin-right: 0 `).concat(a,`;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
body[`).concat(ul,`] {
|
|
44
|
-
`).concat(zO,": ").concat(c,`px;
|
|
45
|
-
}
|
|
46
|
-
`)},nT=function(){var e=parseInt(document.body.getAttribute(ul)||"0",10);return isFinite(e)?e:0},sL=function(){C.useEffect(function(){return document.body.setAttribute(ul,(nT()+1).toString()),function(){var e=nT()-1;e<=0?document.body.removeAttribute(ul):document.body.setAttribute(ul,e.toString())}},[])},lL=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,s=a===void 0?"margin":a;sL();var l=C.useMemo(function(){return rL(s)},[s]);return C.createElement(aL,{styles:iL(l,!t,s,n?"":"!important")})},n0=!1;if(typeof window<"u")try{var $c=Object.defineProperty({},"passive",{get:function(){return n0=!0,!0}});window.addEventListener("test",$c,$c),window.removeEventListener("test",$c,$c)}catch{n0=!1}var Xs=n0?{passive:!1}:!1,oL=function(e){return e.tagName==="TEXTAREA"},eC=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!oL(e)&&n[t]==="visible")},uL=function(e){return eC(e,"overflowY")},cL=function(e){return eC(e,"overflowX")},rT=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var s=tC(e,a);if(s){var l=nC(e,a),u=l[1],c=l[2];if(u>c)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},fL=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},dL=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},tC=function(e,t){return e==="v"?uL(t):cL(t)},nC=function(e,t){return e==="v"?fL(t):dL(t)},hL=function(e,t){return e==="h"&&t==="rtl"?-1:1},mL=function(e,t,n,a,s){var l=hL(e,window.getComputedStyle(t).direction),u=l*a,c=n.target,d=t.contains(c),h=!1,m=u>0,p=0,E=0;do{if(!c)break;var x=nC(e,c),v=x[0],S=x[1],_=x[2],k=S-_-l*v;(v||k)&&tC(e,c)&&(p+=k,E+=v);var N=c.parentNode;c=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(m&&Math.abs(p)<1||!m&&Math.abs(E)<1)&&(h=!0),h},Gc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},aT=function(e){return[e.deltaX,e.deltaY]},iT=function(e){return e&&"current"in e?e.current:e},pL=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gL=function(e){return`
|
|
47
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
48
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
49
|
-
`)},bL=0,Qs=[];function yL(e){var t=C.useRef([]),n=C.useRef([0,0]),a=C.useRef(),s=C.useState(bL++)[0],l=C.useState(JS)[0],u=C.useRef(e);C.useEffect(function(){u.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var S=HO([e.lockRef.current],(e.shards||[]).map(iT),!0).filter(Boolean);return S.forEach(function(_){return _.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=C.useCallback(function(S,_){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!u.current.allowPinchZoom;var k=Gc(S),N=n.current,w="deltaX"in S?S.deltaX:N[0]-k[0],I="deltaY"in S?S.deltaY:N[1]-k[1],F,R=S.target,M=Math.abs(w)>Math.abs(I)?"h":"v";if("touches"in S&&M==="h"&&R.type==="range")return!1;var H=window.getSelection(),Y=H&&H.anchorNode,U=Y?Y===R||Y.contains(R):!1;if(U)return!1;var J=rT(M,R);if(!J)return!0;if(J?F=M:(F=M==="v"?"h":"v",J=rT(M,R)),!J)return!1;if(!a.current&&"changedTouches"in S&&(w||I)&&(a.current=F),!F)return!0;var Q=a.current||F;return mL(Q,_,S,Q==="h"?w:I)},[]),d=C.useCallback(function(S){var _=S;if(!(!Qs.length||Qs[Qs.length-1]!==l)){var k="deltaY"in _?aT(_):Gc(_),N=t.current.filter(function(F){return F.name===_.type&&(F.target===_.target||_.target===F.shadowParent)&&pL(F.delta,k)})[0];if(N&&N.should){_.cancelable&&_.preventDefault();return}if(!N){var w=(u.current.shards||[]).map(iT).filter(Boolean).filter(function(F){return F.contains(_.target)}),I=w.length>0?c(_,w[0]):!u.current.noIsolation;I&&_.cancelable&&_.preventDefault()}}},[]),h=C.useCallback(function(S,_,k,N){var w={name:S,delta:_,target:k,should:N,shadowParent:EL(k)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(I){return I!==w})},1)},[]),m=C.useCallback(function(S){n.current=Gc(S),a.current=void 0},[]),p=C.useCallback(function(S){h(S.type,aT(S),S.target,c(S,e.lockRef.current))},[]),E=C.useCallback(function(S){h(S.type,Gc(S),S.target,c(S,e.lockRef.current))},[]);C.useEffect(function(){return Qs.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:E}),document.addEventListener("wheel",d,Xs),document.addEventListener("touchmove",d,Xs),document.addEventListener("touchstart",m,Xs),function(){Qs=Qs.filter(function(S){return S!==l}),document.removeEventListener("wheel",d,Xs),document.removeEventListener("touchmove",d,Xs),document.removeEventListener("touchstart",m,Xs)}},[]);var x=e.removeScrollBar,v=e.inert;return C.createElement(C.Fragment,null,v?C.createElement(l,{styles:gL(s)}):null,x?C.createElement(lL,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function EL(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xL=KO(ZS,yL);var rC=C.forwardRef(function(e,t){return C.createElement(rd,kr({},e,{ref:t,sideCar:xL}))});rC.classNames=rd.classNames;var TL=Object.defineProperty,it=(e,t)=>TL(e,"name",{value:t,configurable:!0}),vL=[" ","Enter","ArrowUp","ArrowDown"],SL=[" ","Enter"],ml="Select",[ad,id,CL]=lS(ml),[ts,rV]=lu(ml,[CL,BS]),ag=BS(),[_L,ai]=ts(ml),[AL,kL]=ts(ml);function aC(e){const{__scopeSelect:t,children:n,open:a,defaultOpen:s,onOpenChange:l,value:u,defaultValue:c,onValueChange:d,dir:h,name:m,autoComplete:p,disabled:E,required:x,form:v,internal_do_not_use_render:S}=e,_=ag(t),[k,N]=C.useState(null),[w,I]=C.useState(null),[F,R]=C.useState(!1),M=dS(h),[H,Y]=t0({prop:a,defaultProp:s??!1,onChange:l,caller:ml}),[U,J]=t0({prop:u,defaultProp:c,onChange:d,caller:ml}),Q=C.useRef(null),se=C.useRef(U);C.useEffect(()=>{const X=v?k?.ownerDocument.getElementById(v):k?.form;if(X instanceof HTMLFormElement){const O=it(()=>J(se.current),"reset");return X.addEventListener("reset",O),()=>X.removeEventListener("reset",O)}},[v,k,J]);const ue=k?!!v||!!k.closest("form"):!0,[ae,B]=C.useState(new Set),G=W0(),oe=Array.from(ae).map(X=>X.props.value).join(";"),xe=C.useCallback(X=>{B(O=>new Set(O).add(X))},[]),D=C.useCallback(X=>{B(O=>{const Z=new Set(O);return Z.delete(X),Z})},[]),z={required:x,trigger:k,onTriggerChange:N,valueNode:w,onValueNodeChange:I,valueNodeHasChildren:F,onValueNodeHasChildrenChange:R,contentId:G,value:U,onValueChange:J,open:H,onOpenChange:Y,dir:M,triggerPointerDownPosRef:Q,disabled:E,name:m,autoComplete:p,form:v,nativeOptions:ae,nativeSelectKey:oe,isFormControl:ue};return y.jsx(EO,{..._,children:y.jsx(_L,{scope:t,...z,children:y.jsx(ad.Provider,{scope:t,children:y.jsx(AL,{scope:t,onNativeOptionAdd:xe,onNativeOptionRemove:D,children:oC(S)?S(z):n})})})})}it(aC,"SelectProvider");var wL=it(e=>{const{__scopeSelect:t,children:n,...a}=e;return y.jsx(aC,{__scopeSelect:t,...a,internal_do_not_use_render:({isFormControl:s})=>y.jsxs(y.Fragment,{children:[n,s?y.jsx(e5,{__scopeSelect:t}):null]})})},"Select"),NL="SelectTrigger",RL=C.forwardRef(it(function(t,n){const{__scopeSelect:a,disabled:s=!1,...l}=t,u=ag(a),c=ai(NL,a),d=c.disabled||s,h=Mt(n,c.onTriggerChange),m=id(a),p=C.useRef("touch"),[E,x,v]=sg(_=>{const k=m().filter(I=>!I.disabled),N=k.find(I=>I.value===c.value),w=lg(k,_,N);w!==void 0&&c.onValueChange(w.value)}),S=it(_=>{d||(c.onOpenChange(!0),v()),_&&(c.triggerPointerDownPosRef.current={x:Math.round(_.pageX),y:Math.round(_.pageY)})},"handleOpen");return y.jsx(xO,{asChild:!0,...u,children:y.jsx(xn.button,{type:"button",role:"combobox","aria-controls":c.open?c.contentId:void 0,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":uu(c.value)?"":void 0,...l,ref:h,onClick:Dt(l.onClick,_=>{_.currentTarget.focus(),p.current!=="mouse"&&S(_)}),onPointerDown:Dt(l.onPointerDown,_=>{p.current=_.pointerType;const k=_.target;k.hasPointerCapture(_.pointerId)&&k.releasePointerCapture(_.pointerId),_.button===0&&_.ctrlKey===!1&&_.pointerType==="mouse"&&(S(_),_.preventDefault())}),onKeyDown:Dt(l.onKeyDown,_=>{const k=E.current!=="";!(_.ctrlKey||_.altKey||_.metaKey)&&_.key.length===1&&x(_.key),!(k&&_.key===" ")&&vL.includes(_.key)&&(S(),_.preventDefault())})})})},"SelectTrigger")),OL="SelectValue",LL=C.forwardRef(it(function(t,n){const{__scopeSelect:a,className:s,style:l,children:u,placeholder:c="",...d}=t,h=ai(OL,a),{onValueNodeHasChildrenChange:m}=h,p=u!==void 0,E=Mt(n,h.onValueNodeChange);Jt(()=>{m(p)},[m,p]);const x=uu(h.value);return y.jsx(xn.span,{...d,asChild:x?!1:d.asChild,ref:E,style:{pointerEvents:"none"},children:y.jsx(C.Fragment,{children:x?c:u},x?"placeholder":"value")})},"SelectValue")),DL=C.forwardRef(it(function(t,n){const{__scopeSelect:a,children:s,...l}=t;return y.jsx(xn.span,{"aria-hidden":!0,...l,ref:n,children:s||"▼"})},"SelectIcon")),IL="SelectPortal",[ML,PL]=ts(IL,{forceMount:void 0}),BL=it(e=>{const{__scopeSelect:t,forceMount:n,...a}=e;return y.jsx(ML,{scope:e.__scopeSelect,forceMount:n,children:y.jsx(CO,{asChild:!0,...a})})},"SelectPortal"),Ki="SelectContent",jL=C.forwardRef(it(function(t,n){const a=PL(Ki,t.__scopeSelect),{forceMount:s=a.forceMount,...l}=t,u=ai(Ki,t.__scopeSelect),[c,d]=C.useState();return Jt(()=>{d(new DocumentFragment)},[]),y.jsx(AO,{present:s||u.open,children:({present:h})=>h?y.jsx(zL,{...l,ref:n}):y.jsx(HL,{...l,fragment:c})})},"SelectContent")),HL=C.forwardRef(it(function(t,n){const{__scopeSelect:a,children:s,fragment:l}=t;return l?ni.createPortal(y.jsx(iC,{scope:a,children:y.jsx(ad.Slot,{scope:a,children:y.jsx("div",{ref:n,children:s})})}),l):null},"SelectContentFragment")),cr=10,[iC,ns]=ts(Ki),UL=Yi("SelectContent.RemoveScroll"),zL=C.forwardRef(it(function(t,n){const{__scopeSelect:a}=t,{position:s="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,side:d,sideOffset:h,align:m,alignOffset:p,arrowPadding:E,collisionBoundary:x,collisionPadding:v,sticky:S,hideWhenDetached:_,avoidCollisions:k,...N}=t,w=ai(Ki,a),[I,F]=C.useState(null),[R,M]=C.useState(null),H=Mt(n,F),[Y,U]=C.useState(null),[J,Q]=C.useState(null),se=id(a),[ue,ae]=C.useState(!1),B=C.useRef(!1);C.useEffect(()=>{if(I)return jO(I)},[I]),X0();const G=C.useCallback(Te=>{const[Ee,...Pe]=se().map(He=>He.ref.current),[Le]=Pe.slice(-1),Re=document.activeElement;for(const He of Te)if(He===Re||(He?.scrollIntoView({block:"nearest"}),He===Ee&&R&&(R.scrollTop=0),He===Le&&R&&(R.scrollTop=R.scrollHeight),He?.focus(),document.activeElement!==Re))return},[se,R]),oe=C.useCallback(()=>G([Y,I]),[G,Y,I]);C.useEffect(()=>{ue&&oe()},[ue,oe]);const{onOpenChange:xe,triggerPointerDownPosRef:D}=w;C.useEffect(()=>{if(I){let Te={x:0,y:0};const Ee=it(Le=>{Te={x:Math.abs(Math.round(Le.pageX)-(D.current?.x??0)),y:Math.abs(Math.round(Le.pageY)-(D.current?.y??0))}},"handlePointerMove"),Pe=it(Le=>{Te.x<=10&&Te.y<=10?Le.preventDefault():Le.composedPath().includes(I)||xe(!1),document.removeEventListener("pointermove",Ee),D.current=null},"handlePointerUp");return D.current!==null&&(document.addEventListener("pointermove",Ee),document.addEventListener("pointerup",Pe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ee),document.removeEventListener("pointerup",Pe,{capture:!0})}}},[I,xe,D]),C.useEffect(()=>{const Te=it(()=>xe(!1),"close");return window.addEventListener("blur",Te),window.addEventListener("resize",Te),()=>{window.removeEventListener("blur",Te),window.removeEventListener("resize",Te)}},[xe]);const[z,X]=sg(Te=>{const Ee=se().filter(Re=>!Re.disabled),Pe=Ee.find(Re=>Re.ref.current===document.activeElement),Le=lg(Ee,Te,Pe);Le&&setTimeout(()=>Le.ref.current?.focus())}),O=C.useCallback((Te,Ee,Pe)=>{const Le=!B.current&&!Pe;(w.value!==void 0&&w.value===Ee||Le)&&(U(Te),Le&&(B.current=!0))},[w.value]),Z=C.useCallback(()=>I?.focus(),[I]),de=C.useCallback((Te,Ee,Pe)=>{const Le=!B.current&&!Pe;(w.value!==void 0&&w.value===Ee||Le)&&Q(Te)},[w.value]),pe=s==="popper"?sT:FL,Se=pe===sT?{side:d,sideOffset:h,align:m,alignOffset:p,arrowPadding:E,collisionBoundary:x,collisionPadding:v,sticky:S,hideWhenDetached:_,avoidCollisions:k}:{};return y.jsx(iC,{scope:a,content:I,viewport:R,onViewportChange:M,itemRefCallback:O,selectedItem:Y,onItemLeave:Z,itemTextRefCallback:de,focusSelectedItem:oe,selectedItemText:J,position:s,isPositioned:ue,searchRef:z,children:y.jsx(rC,{as:UL,allowPinchZoom:!0,children:y.jsx(JR,{asChild:!0,trapped:w.open,onMountAutoFocus:Te=>{Te.preventDefault()},onUnmountAutoFocus:Dt(l,Te=>{w.trigger?.focus({preventScroll:!0}),Te.preventDefault()}),children:y.jsx(GR,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:Te=>Te.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:y.jsx(pe,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:Te=>Te.preventDefault(),...N,...Se,onPlaced:()=>ae(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:Dt(N.onKeyDown,Te=>{const Ee=Te.ctrlKey||Te.altKey||Te.metaKey;if(Te.key==="Tab"&&Te.preventDefault(),!Ee&&Te.key.length===1&&X(Te.key),["ArrowUp","ArrowDown","Home","End"].includes(Te.key)){let Le=se().filter(Re=>!Re.disabled).map(Re=>Re.ref.current);if(["ArrowUp","End"].includes(Te.key)&&(Le=Le.slice().reverse()),["ArrowUp","ArrowDown"].includes(Te.key)){const Re=Te.target,He=Le.indexOf(Re);Le=Le.slice(He+1)}setTimeout(()=>G(Le)),Te.preventDefault()}})})})})})})},"SelectContentImpl")),FL=C.forwardRef(it(function(t,n){const{__scopeSelect:a,onPlaced:s,...l}=t,u=ai(Ki,a),c=ns(Ki,a),[d,h]=C.useState(null),[m,p]=C.useState(null),E=Mt(n,p),x=id(a),v=C.useRef(!1),S=C.useRef(!0),{viewport:_,selectedItem:k,selectedItemText:N,focusSelectedItem:w}=c,I=C.useCallback(()=>{if(u.trigger&&u.valueNode&&d&&m&&_&&k&&N){const H=u.trigger.getBoundingClientRect(),Y=m.getBoundingClientRect(),U=u.valueNode.getBoundingClientRect(),J=N.getBoundingClientRect();if(u.dir!=="rtl"){const Re=J.left-Y.left,He=U.left-Re,ze=H.left-He,tt=H.width+ze,Xe=Math.max(tt,Y.width),Rt=window.innerWidth-cr,kt=Fp(He,[cr,Math.max(cr,Rt-Xe)]);d.style.minWidth=tt+"px",d.style.left=kt+"px"}else{const Re=Y.right-J.right,He=window.innerWidth-U.right-Re,ze=window.innerWidth-H.right-He,tt=H.width+ze,Xe=Math.max(tt,Y.width),Rt=window.innerWidth-cr,kt=Fp(He,[cr,Math.max(cr,Rt-Xe)]);d.style.minWidth=tt+"px",d.style.right=kt+"px"}const Q=x(),se=window.innerHeight-cr*2,ue=_.scrollHeight,ae=window.getComputedStyle(m),B=parseInt(ae.borderTopWidth,10),G=parseInt(ae.paddingTop,10),oe=parseInt(ae.borderBottomWidth,10),xe=parseInt(ae.paddingBottom,10),D=B+G+ue+xe+oe,z=Math.min(k.offsetHeight*5,D),X=window.getComputedStyle(_),O=parseInt(X.paddingTop,10),Z=parseInt(X.paddingBottom,10),de=H.top+H.height/2-cr,pe=se-de,Se=k.offsetHeight/2,Te=k.offsetTop+Se,Ee=B+G+Te,Pe=D-Ee;if(Ee<=de){const Re=Q.length>0&&k===Q[Q.length-1].ref.current;d.style.bottom="0px";const He=m.clientHeight-_.offsetTop-_.offsetHeight,ze=Math.max(pe,Se+(Re?Z:0)+He+oe),tt=Ee+ze;d.style.height=tt+"px"}else{const Re=Q.length>0&&k===Q[0].ref.current;d.style.top="0px";const ze=Math.max(de,B+_.offsetTop+(Re?O:0)+Se)+Pe;d.style.height=ze+"px",_.scrollTop=Ee-de+_.offsetTop}d.style.margin=`${cr}px 0`,d.style.minHeight=z+"px",d.style.maxHeight=se+"px",s?.(),requestAnimationFrame(()=>v.current=!0)}},[x,u.trigger,u.valueNode,d,m,_,k,N,u.dir,s]);Jt(()=>I(),[I]);const[F,R]=C.useState();Jt(()=>{m&&R(window.getComputedStyle(m).zIndex)},[m]);const M=C.useCallback(H=>{H&&S.current===!0&&(I(),w?.(),S.current=!1)},[I,w]);return y.jsx(qL,{scope:a,contentWrapper:d,shouldExpandOnScrollRef:v,onScrollButtonChange:M,children:y.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:F},children:y.jsx(xn.div,{...l,ref:E,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})},"SelectItemAlignedPosition")),sT=C.forwardRef(it(function(t,n){const{__scopeSelect:a,align:s="start",collisionPadding:l=cr,...u}=t,c=ag(a);return y.jsx(TO,{...c,...u,ref:n,align:s,collisionPadding:l,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[qL,ig]=ts(Ki,{}),lT="SelectViewport",VL=C.forwardRef(it(function(t,n){const{__scopeSelect:a,nonce:s,...l}=t,u=ns(lT,a),c=ig(lT,a),d=Mt(n,u.onViewportChange),h=C.useRef(0);return y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),y.jsx(ad.Slot,{scope:a,children:y.jsx(xn.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:Dt(l.onScroll,m=>{const p=m.currentTarget,{contentWrapper:E,shouldExpandOnScrollRef:x}=c;if(x?.current&&E){const v=Math.abs(h.current-p.scrollTop);if(v>0){const S=window.innerHeight-cr*2,_=parseFloat(E.style.minHeight),k=parseFloat(E.style.height),N=Math.max(_,k);if(N<S){const w=N+v,I=Math.min(S,w),F=w-I;E.style.height=I+"px",E.style.bottom==="0px"&&(p.scrollTop=F>0?F:0,E.style.justifyContent="flex-end")}}}h.current=p.scrollTop})})})]})},"SelectViewport")),YL="SelectGroup",[aV,iV]=ts(YL),r0="SelectItem",[$L,sC]=ts(r0),GL=C.forwardRef(it(function(t,n){const{__scopeSelect:a,value:s,disabled:l=!1,textValue:u,...c}=t,d=ai(r0,a),h=ns(r0,a),m=d.value===s,[p,E]=C.useState(u??""),[x,v]=C.useState(!1),S=Rr(I=>h.itemRefCallback?.(I,s,l)),_=Mt(n,S),k=W0(),N=C.useRef("touch"),w=it(()=>{l||(d.onValueChange(s),d.onOpenChange(!1))},"handleSelect");return y.jsx($L,{scope:a,value:s,disabled:l,textId:k,isSelected:m,onItemTextChange:C.useCallback(I=>{E(F=>F||(I?.textContent??"").trim())},[]),children:y.jsx(ad.ItemSlot,{scope:a,value:s,disabled:l,textValue:p,children:y.jsx(xn.div,{role:"option","aria-labelledby":k,"data-highlighted":x?"":void 0,"aria-selected":m&&x,"data-state":m?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...c,ref:_,onFocus:Dt(c.onFocus,()=>v(!0)),onBlur:Dt(c.onBlur,()=>v(!1)),onClick:Dt(c.onClick,()=>{N.current!=="mouse"&&w()}),onPointerUp:Dt(c.onPointerUp,()=>{N.current==="mouse"&&w()}),onPointerDown:Dt(c.onPointerDown,I=>{N.current=I.pointerType}),onPointerMove:Dt(c.onPointerMove,I=>{N.current=I.pointerType,l?h.onItemLeave?.():N.current==="mouse"&&I.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Dt(c.onPointerLeave,I=>{I.currentTarget===document.activeElement&&h.onItemLeave?.()}),onKeyDown:Dt(c.onKeyDown,I=>{l||I.target!==I.currentTarget||h.searchRef?.current!==""&&I.key===" "||(SL.includes(I.key)&&w(),I.key===" "&&I.preventDefault())})})})})},"SelectItem")),Kc="SelectItemText",KL=C.forwardRef(it(function(t,n){const{__scopeSelect:a,className:s,style:l,...u}=t,c=ai(Kc,a),d=ns(Kc,a),h=sC(Kc,a),m=kL(Kc,a),[p,E]=C.useState(null),x=Rr(w=>d.itemTextRefCallback?.(w,h.value,h.disabled)),v=Mt(n,E,h.onItemTextChange,x),S=p?.textContent,_=C.useMemo(()=>y.jsx("option",{value:h.value,disabled:h.disabled,children:S},h.value),[h.disabled,h.value,S]),{onNativeOptionAdd:k,onNativeOptionRemove:N}=m;return Jt(()=>(k(_),()=>N(_)),[k,N,_]),y.jsxs(y.Fragment,{children:[y.jsx(xn.span,{id:h.textId,...u,ref:v}),h.isSelected&&c.valueNode&&!c.valueNodeHasChildren&&!uu(c.value)?ni.createPortal(u.children,c.valueNode):null]})},"SelectItemText")),XL="SelectItemIndicator",QL=C.forwardRef(it(function(t,n){const{__scopeSelect:a,...s}=t;return sC(XL,a).isSelected?y.jsx(xn.span,{"aria-hidden":!0,...s,ref:n}):null},"SelectItemIndicator")),oT="SelectScrollUpButton",WL=C.forwardRef(it(function(t,n){const a=ns(oT,t.__scopeSelect),s=ig(oT,t.__scopeSelect),[l,u]=C.useState(!1),c=Mt(n,s.onScrollButtonChange);return Jt(()=>{if(a.viewport&&a.isPositioned){let d=function(){const m=h.scrollTop>0;u(m)};it(d,"handleScroll");const h=a.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[a.viewport,a.isPositioned]),l?y.jsx(lC,{...t,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=a;d&&h&&(d.scrollTop=d.scrollTop-h.offsetHeight)}}):null},"SelectScrollUpButton")),uT="SelectScrollDownButton",ZL=C.forwardRef(it(function(t,n){const a=ns(uT,t.__scopeSelect),s=ig(uT,t.__scopeSelect),[l,u]=C.useState(!1),c=Mt(n,s.onScrollButtonChange);return Jt(()=>{if(a.viewport&&a.isPositioned){let d=function(){const m=h.scrollHeight-h.clientHeight,p=Math.ceil(h.scrollTop)<m;u(p)};it(d,"handleScroll");const h=a.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[a.viewport,a.isPositioned]),l?y.jsx(lC,{...t,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=a;d&&h&&(d.scrollTop=d.scrollTop+h.offsetHeight)}}):null},"SelectScrollDownButton")),lC=C.forwardRef(it(function(t,n){const{__scopeSelect:a,onAutoScroll:s,...l}=t,u=ns("SelectScrollButton",a),c=C.useRef(null),d=id(a),h=C.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return C.useEffect(()=>()=>h(),[h]),Jt(()=>{d().find(p=>p.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[d]),y.jsx(xn.div,{"aria-hidden":!0,...l,ref:n,style:{flexShrink:0,...l.style},onPointerDown:Dt(l.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(s,50))}),onPointerMove:Dt(l.onPointerMove,()=>{u.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(s,50))}),onPointerLeave:Dt(l.onPointerLeave,()=>{h()})})},"SelectScrollButtonImpl")),JL="SelectBubbleInput",e5=C.forwardRef(it(function({__scopeSelect:t,...n},a){const s=ai(JL,t),{value:l,onValueChange:u,required:c,disabled:d,name:h,autoComplete:m,form:p}=s,{nativeOptions:E,nativeSelectKey:x}=s,v=C.useRef(null),S=Mt(a,v),_=l??"",k=KS(_),N=Array.from(E).some(w=>(w.props.value??"")==="");return C.useEffect(()=>{const w=v.current;if(!w)return;const I=window.HTMLSelectElement.prototype,R=Object.getOwnPropertyDescriptor(I,"value").set;if(k!==_&&R){const M=new Event("change",{bubbles:!0});R.call(w,_),w.dispatchEvent(M)}},[k,_]),y.jsxs(xn.select,{"aria-hidden":!0,required:c,tabIndex:-1,name:h,autoComplete:m,disabled:d,form:p,onChange:w=>u(w.target.value),...n,style:{...IO,...n.style},ref:S,defaultValue:_,children:[uu(l)&&!N?y.jsx("option",{value:""}):null,Array.from(E)]},x)},"SelectBubbleInput"));function oC(e){return typeof e=="function"}it(oC,"isFunction");function uu(e){return e===""||e===void 0}it(uu,"shouldShowPlaceholder");function sg(e){const t=Rr(e),n=C.useRef(""),a=C.useRef(0),s=C.useCallback(u=>{const c=n.current+u;t(c),it((function d(h){n.current=h,window.clearTimeout(a.current),h!==""&&(a.current=window.setTimeout(()=>d(""),1e3))}),"updateSearch")(c)},[t]),l=C.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return C.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,s,l]}it(sg,"useTypeaheadSearch");function lg(e,t,n){const s=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let u=uC(e,Math.max(l,0));s.length===1&&(u=u.filter(h=>h!==n));const d=u.find(h=>h.textValue.toLowerCase().startsWith(s.toLowerCase()));return d!==n?d:void 0}it(lg,"findNextItem");function uC(e,t){return e.map((n,a)=>e[(t+a)%e.length])}it(uC,"wrapArray");function Df({value:e,onValueChange:t,options:n,ariaLabel:a,className:s="",placeholder:l,disabled:u,required:c}){return y.jsxs(wL,{value:e,onValueChange:t,required:c,children:[y.jsxs(RL,{className:`ui-select-trigger ${s}`,"aria-label":a,disabled:u,children:[y.jsx(LL,{placeholder:l}),y.jsx(DL,{className:"ui-select-chevron",children:y.jsx(kf,{size:14})})]}),y.jsx(BL,{children:y.jsxs(jL,{className:"ui-select-content",position:"popper",sideOffset:5,children:[y.jsx(WL,{className:"ui-select-scroll",children:y.jsx(hR,{size:14})}),y.jsx(VL,{className:"ui-select-viewport",children:n.map(d=>y.jsxs(GL,{className:"ui-select-item",value:d.value,children:[y.jsx(KL,{children:d.label}),y.jsx(QL,{className:"ui-select-check",children:y.jsx(ji,{size:14})})]},d.value))}),y.jsx(ZL,{className:"ui-select-scroll",children:y.jsx(kf,{size:14})})]})})]})}const t5="modulepreload",n5=function(e){return"/"+e},cT={},cC=function(t,n,a){let s=Promise.resolve();if(n&&n.length>0){let d=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),c=u?.nonce||u?.getAttribute("nonce");s=d(n.map(h=>{if(h=n5(h),h in cT)return;cT[h]=!0;const m=h.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const E=document.createElement("link");if(E.rel=m?"stylesheet":t5,m||(E.as="script"),E.crossOrigin="",E.href=h,c&&E.setAttribute("nonce",c),document.head.appendChild(E),m)return new Promise((x,v)=>{E.addEventListener("load",x),E.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${h}`)))})}))}function l(u){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=u,window.dispatchEvent(c),!c.defaultPrevented)throw u}return s.then(u=>{for(const c of u||[])c.status==="rejected"&&l(c.reason);return t().catch(l)})},sd=(function(e){if(e==null)return s5;if(typeof e=="function")return ld(e);if(typeof e=="object")return Array.isArray(e)?r5(e):a5(e);if(typeof e=="string")return i5(e);throw new Error("Expected function, string, or object as test")});function r5(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=sd(e[n]);return ld(a);function a(...s){let l=-1;for(;++l<t.length;)if(t[l].apply(this,s))return!0;return!1}}function a5(e){const t=e;return ld(n);function n(a){const s=a;let l;for(l in e)if(s[l]!==t[l])return!1;return!0}}function i5(e){return ld(t);function t(n){return n&&n.type===e}}function ld(e){return t;function t(n,a,s){return!!(l5(n)&&e.call(this,n,typeof a=="number"?a:void 0,s||void 0))}}function s5(){return!0}function l5(e){return e!==null&&typeof e=="object"&&"type"in e}const fC=[],Do=!0,a0=!1,Hi="skip";function od(e,t,n,a){let s;typeof t=="function"&&typeof n!="function"?(a=n,n=t):s=t;const l=sd(s),u=a?-1:1;c(e,void 0,[])();function c(d,h,m){const p=d&&typeof d=="object"?d:{};if(typeof p.type=="string"){const x=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(d.type+(x?"<"+x+">":""))+")"})}return E;function E(){let x=fC,v,S,_;if((!t||l(d,h,m[m.length-1]||void 0))&&(x=o5(n(d,m)),x[0]===a0))return x;if("children"in d&&d.children){const k=d;if(k.children&&x[0]!==Hi)for(S=(a?k.children.length:-1)+u,_=m.concat(k);S>-1&&S<k.children.length;){const N=k.children[S];if(v=c(N,S,_)(),v[0]===a0)return v;S=typeof v[1]=="number"?v[1]:S+u}}return x}}}function o5(e){return Array.isArray(e)?e:typeof e=="number"?[Do,e]:e==null?fC:[e]}function hr(e,t,n,a){let s,l,u;typeof t=="function"&&typeof n!="function"?(l=void 0,u=t,s=n):(l=t,u=n,s=a),od(e,l,c,s);function c(d,h){const m=h[h.length-1],p=m?m.children.indexOf(d):void 0;return u(d,p,m)}}const pl={indicator:"indicator",textOnly:"text-only",remove:"remove"};function u5({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:a=!1,allowedProtocols:s=[],blockedImageClass:l="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:u="text-gray-500",linkBlockPolicy:c=pl.indicator,imageBlockPolicy:d=pl.indicator}){const h=t.length&&!t.every(p=>p==="*"),m=n.length&&!n.every(p=>p==="*");if(!e&&(h||m))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return p=>{const E=p5(e,t,n,a,s,l,u,c,d);dC(p),hr(p,E)}}function fT(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function c5(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const f5=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),d5=new Set(["javascript:","data:","file:","vbscript:"]);function dT(e,t,n,a=!1,s=!1,l=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!s)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return s&&a&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const m=e.substring(5);if(m&&m.length>0&&m!=="invalid")return e}}catch{return null}return null}const u=fT(e,n);if(!u||d5.has(u.protocol)||!(f5.has(u.protocol)||l.includes(u.protocol)||l.includes("*")))return null;if(u.protocol==="mailto:"||!u.protocol.match(/^https?:$/))return u.href;const d=c5(e);return u&&t.some(h=>{const m=fT(h,n);return!m||m.origin!==u.origin?!1:u.href.startsWith(m.href)})?d?u.pathname+u.search+u.hash:u.href:t.includes("*")?u.protocol!=="https:"&&u.protocol!=="http:"?null:d?u.pathname+u.search+u.hash:u.href:null}function dC(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)dC(t)}}const up=Symbol("node-seen");function h5(e,t,n){return t===pl.remove?{type:"remove"}:t===pl.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:n},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function m5(e,t,n){if(t===pl.remove)return{type:"remove"};if(t===pl.textOnly){const a=String(e.properties.alt||"");return a?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:a}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:n},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}const p5=(e,t,n,a,s,l,u,c,d)=>{const h=(m,p,E)=>{if(m.type!=="element"||m[up])return Do;if(m.tagName==="a"){const x=dT(m.properties.href,t,e,!1,!1,s);if(x===null){if(m[up]=!0,hr(m,h),E&&typeof p=="number"){const v=h5(m,c,u);if(v.type==="remove")return E.children.splice(p,1),[Hi,p];E.children[p]=v.element}return Hi}else return m.properties.href=x,m.properties.target="_blank",m.properties.rel="noopener noreferrer",Do}if(m.tagName==="img"){const x=dT(m.properties.src,n,e,a,!0,s);if(x===null){if(m[up]=!0,hr(m,h),E&&typeof p=="number"){const v=m5(m,d,l);if(v.type==="remove")return E.children.splice(p,1),[Hi,p];E.children[p]=v.element}return Hi}else return m.properties.src=x,Do}return Do};return h},hC=-1,ud=0,Uo=1,If=2,og=3,ug=4,cg=5,fg=6,mC=7,pC=8,{defineProperty:g5}=Object,gC=typeof self=="object"?self:globalThis,hT=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new gC[e](t)},b5=(e,t)=>{const n=(s,l)=>(e.set(l,s),s),a=s=>{if(e.has(s))return e.get(s);const[l,u]=t[s];switch(l){case ud:case hC:return n(u,s);case Uo:{const c=n([],s);for(const d of u)c.push(a(d));return c}case If:{const c=n({},s);for(const[d,h]of u){const m=a(d),p=a(h);m==="__proto__"?g5(c,m,{value:p,configurable:!0,enumerable:!0,writable:!0}):c[m]=p}return c}case og:return n(new Date(u),s);case ug:{const{source:c,flags:d}=u;return n(new RegExp(c,d),s)}case cg:{const c=n(new Map,s);for(const[d,h]of u)c.set(a(d),a(h));return c}case fg:{const c=n(new Set,s);for(const d of u)c.add(a(d));return c}case mC:{const{name:c,message:d}=u;return n(typeof gC[c]=="function"?hT(c,d):new Error(d),s)}case pC:return n(BigInt(u),s);case"BigInt":return n(Object(BigInt(u)),s);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:c}=new Uint8Array(u);return n(new DataView(c),u)}case"-0":return-0}return n(hT(l,u),s)};return a},mT=e=>b5(new Map,e)(0),Ii="",{toString:y5}={},{keys:E5,is:x5}=Object,Co=e=>{const t=typeof e;if(t!=="object"||!e)return[ud,t];const n=y5.call(e).slice(8,-1);switch(n){case"Array":return[Uo,Ii];case"Object":return[If,Ii];case"Date":return[og,Ii];case"RegExp":return[ug,Ii];case"Map":return[cg,Ii];case"Set":return[fg,Ii];case"DataView":return[Uo,n]}return n.includes("Array")?[Uo,n]:e instanceof Error?[mC,e.name||"Error"]:[If,n]},Xc=([e,t])=>e===ud&&(t==="function"||t==="symbol"),T5=(e,t,n,a)=>{const s=(u,c)=>{const d=a.push(u)-1;return n.set(c,d),d},l=u=>{if(n.has(u))return n.get(u);let[c,d]=Co(u);switch(c){case ud:{let m=u;switch(d){case"bigint":c=pC,m=u.toString();break;case"number":if(!u&&x5(u,-0))return a.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return s([hC],u)}return s([c,m],u)}case Uo:{if(d){let E=u;return d==="DataView"?E=new Uint8Array(u.buffer):d==="ArrayBuffer"&&(E=new Uint8Array(u)),s([d,[...E]],u)}const m=[],p=s([c,m],u);for(const E of u)m.push(l(E));return p}case If:{if(d)switch(d){case"BigInt":return s([d,u.toString()],u);case"Boolean":case"Number":case"String":return s([d,u.valueOf()],u)}if(t&&"toJSON"in u)return l(u.toJSON());const m=[],p=s([c,m],u);for(const E of E5(u))(e||!Xc(Co(u[E])))&&m.push([l(E),l(u[E])]);return p}case og:return s([c,isNaN(u.getTime())?Ii:u.toISOString()],u);case ug:{const{source:m,flags:p}=u;return s([c,{source:m,flags:p}],u)}case cg:{const m=[],p=s([c,m],u);for(const[E,x]of u)(e||!(Xc(Co(E))||Xc(Co(x))))&&m.push([l(E),l(x)]);return p}case fg:{const m=[],p=s([c,m],u);for(const E of u)(e||!Xc(Co(E)))&&m.push(l(E));return p}}const{message:h}=u;return s([c,{name:d,message:h}],u)};return l},pT=(e,{json:t,lossy:n}={})=>{const a=[];return T5(!(t||n),!!t,new Map,a)(e),a},Xi=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?mT(pT(e,t)):structuredClone(e):(e,t)=>mT(pT(e,t));class cu{constructor(t,n,a){this.normal=n,this.property=t,a&&(this.space=a)}}cu.prototype.normal={};cu.prototype.property={};cu.prototype.space=void 0;function bC(e,t){const n={},a={};for(const s of e)Object.assign(n,s.property),Object.assign(a,s.normal);return new cu(n,a,t)}function tu(e){return e.toLowerCase()}class Dn{constructor(t,n){this.attribute=n,this.property=t}}Dn.prototype.attribute="";Dn.prototype.booleanish=!1;Dn.prototype.boolean=!1;Dn.prototype.commaOrSpaceSeparated=!1;Dn.prototype.commaSeparated=!1;Dn.prototype.defined=!1;Dn.prototype.mustUseProperty=!1;Dn.prototype.number=!1;Dn.prototype.overloadedBoolean=!1;Dn.prototype.property="";Dn.prototype.spaceSeparated=!1;Dn.prototype.space=void 0;let v5=0;const Be=rs(),zt=rs(),i0=rs(),ye=rs(),Et=rs(),qi=rs(),zn=rs();function rs(){return 2**++v5}const s0=Object.freeze(Object.defineProperty({__proto__:null,boolean:Be,booleanish:zt,commaOrSpaceSeparated:zn,commaSeparated:qi,number:ye,overloadedBoolean:i0,spaceSeparated:Et},Symbol.toStringTag,{value:"Module"})),cp=Object.keys(s0);class dg extends Dn{constructor(t,n,a,s){let l=-1;if(super(t,n),gT(this,"space",s),typeof a=="number")for(;++l<cp.length;){const u=cp[l];gT(this,cp[l],(a&s0[u])===s0[u])}}}dg.prototype.defined=!0;function gT(e,t,n){n&&(e[t]=n)}function vl(e){const t={},n={};for(const[a,s]of Object.entries(e.properties)){const l=new dg(a,e.transform(e.attributes||{},a),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(l.mustUseProperty=!0),t[a]=l,n[tu(a)]=a,n[tu(l.attribute)]=a}return new cu(t,n,e.space)}const yC=vl({properties:{ariaActiveDescendant:null,ariaAtomic:zt,ariaAutoComplete:null,ariaBusy:zt,ariaChecked:zt,ariaColCount:ye,ariaColIndex:ye,ariaColSpan:ye,ariaControls:Et,ariaCurrent:null,ariaDescribedBy:Et,ariaDetails:null,ariaDisabled:zt,ariaDropEffect:Et,ariaErrorMessage:null,ariaExpanded:zt,ariaFlowTo:Et,ariaGrabbed:zt,ariaHasPopup:null,ariaHidden:zt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Et,ariaLevel:ye,ariaLive:null,ariaModal:zt,ariaMultiLine:zt,ariaMultiSelectable:zt,ariaOrientation:null,ariaOwns:Et,ariaPlaceholder:null,ariaPosInSet:ye,ariaPressed:zt,ariaReadOnly:zt,ariaRelevant:null,ariaRequired:zt,ariaRoleDescription:Et,ariaRowCount:ye,ariaRowIndex:ye,ariaRowSpan:ye,ariaSelected:zt,ariaSetSize:ye,ariaSort:null,ariaValueMax:ye,ariaValueMin:ye,ariaValueNow:ye,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function EC(e,t){return t in e?e[t]:t}function xC(e,t){return EC(e,t.toLowerCase())}const S5=vl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qi,acceptCharset:Et,accessKey:Et,action:null,allow:null,allowFullScreen:Be,allowPaymentRequest:Be,allowUserMedia:Be,alpha:Be,alt:null,as:null,async:Be,autoCapitalize:null,autoComplete:Et,autoFocus:Be,autoPlay:Be,blocking:Et,capture:null,charSet:null,checked:Be,cite:null,className:Et,closedBy:null,colorSpace:null,cols:ye,colSpan:ye,command:null,commandFor:null,content:null,contentEditable:zt,controls:Be,controlsList:Et,coords:ye|qi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Be,defer:Be,dir:null,dirName:null,disabled:Be,download:i0,draggable:zt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Be,formTarget:null,headers:Et,height:ye,hidden:i0,high:ye,href:null,hrefLang:null,htmlFor:Et,httpEquiv:Et,id:null,imageSizes:null,imageSrcSet:null,inert:Be,inputMode:null,integrity:null,is:null,isMap:Be,itemId:null,itemProp:Et,itemRef:Et,itemScope:Be,itemType:Et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Be,low:ye,manifest:null,max:null,maxLength:ye,media:null,method:null,min:null,minLength:ye,multiple:Be,muted:Be,name:null,nonce:null,noModule:Be,noValidate:Be,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Be,optimum:ye,pattern:null,ping:Et,placeholder:null,playsInline:Be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Be,referrerPolicy:null,rel:Et,required:Be,reversed:Be,rows:ye,rowSpan:ye,sandbox:Et,scope:null,scoped:Be,seamless:Be,selected:Be,shadowRootClonable:Be,shadowRootCustomElementRegistry:Be,shadowRootDelegatesFocus:Be,shadowRootMode:null,shadowRootSerializable:Be,shape:null,size:ye,sizes:null,slot:null,span:ye,spellCheck:zt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ye,step:null,style:null,tabIndex:ye,target:null,title:null,translate:null,type:null,typeMustMatch:Be,useMap:null,value:zt,width:ye,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Et,axis:null,background:null,bgColor:null,border:ye,borderColor:null,bottomMargin:ye,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Be,declare:Be,event:null,face:null,frame:null,frameBorder:null,hSpace:ye,leftMargin:ye,link:null,longDesc:null,lowSrc:null,marginHeight:ye,marginWidth:ye,noResize:Be,noHref:Be,noShade:Be,noWrap:Be,object:null,profile:null,prompt:null,rev:null,rightMargin:ye,rules:null,scheme:null,scrolling:zt,standby:null,summary:null,text:null,topMargin:ye,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ye,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Be,disablePictureInPicture:Be,disableRemotePlayback:Be,exportParts:qi,part:Et,prefix:null,property:null,results:ye,security:null,unselectable:null},space:"html",transform:xC}),C5=vl({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:zn,accentHeight:ye,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ye,amplitude:ye,arabicForm:null,ascent:ye,attributeName:null,attributeType:null,azimuth:ye,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ye,by:null,calcMode:null,capHeight:ye,className:Et,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ye,diffuseConstant:ye,direction:null,display:null,dur:null,divisor:ye,dominantBaseline:null,download:Be,dx:null,dy:null,edgeMode:null,editable:null,elevation:ye,enableBackground:null,end:null,event:null,exponent:ye,externalResourcesRequired:null,fill:null,fillOpacity:ye,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:qi,g2:qi,glyphName:qi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ye,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ye,horizOriginX:ye,horizOriginY:ye,id:null,ideographic:ye,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ye,k:ye,k1:ye,k2:ye,k3:ye,k4:ye,kernelMatrix:zn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ye,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ye,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ye,overlineThickness:ye,paintOrder:null,panose1:null,path:null,pathLength:ye,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Et,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ye,pointsAtY:ye,pointsAtZ:ye,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:zn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:zn,rev:zn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:zn,requiredFeatures:zn,requiredFonts:zn,requiredFormats:zn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ye,specularExponent:ye,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ye,strikethroughThickness:ye,string:null,stroke:null,strokeDashArray:zn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ye,strokeOpacity:ye,strokeWidth:null,style:null,surfaceScale:ye,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:zn,tabIndex:ye,tableValues:null,target:null,targetX:ye,targetY:ye,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:zn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ye,underlineThickness:ye,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ye,values:null,vAlphabetic:ye,vMathematical:ye,vectorEffect:null,vHanging:ye,vIdeographic:ye,version:null,vertAdvY:ye,vertOriginX:ye,vertOriginY:ye,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ye,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:EC}),TC=vl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),vC=vl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xC}),SC=vl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),_5={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},A5=/[A-Z]/g,bT=/-[a-z]/g,k5=/^data[-\w.:]+$/i;function cd(e,t){const n=tu(t);let a=t,s=Dn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&k5.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(bT,N5);a="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!bT.test(l)){let u=l.replace(A5,w5);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}s=dg}return new s(a,t)}function w5(e){return"-"+e.toLowerCase()}function N5(e){return e.charAt(1).toUpperCase()}const fu=bC([yC,S5,TC,vC,SC],"html"),ii=bC([yC,C5,TC,vC,SC],"svg");function yT(e){const t=[],n=String(e||"");let a=n.indexOf(","),s=0,l=!1;for(;!l;){a===-1&&(a=n.length,l=!0);const u=n.slice(s,a).trim();(u||!l)&&t.push(u),s=a+1,a=n.indexOf(",",s)}return t}function CC(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ET=/[#.]/g;function R5(e,t){const n=e||"",a={};let s=0,l,u;for(;s<n.length;){ET.lastIndex=s;const c=ET.exec(n),d=n.slice(s,c?c.index:n.length);d&&(l?l==="#"?a.id=d:Array.isArray(a.className)?a.className.push(d):a.className=[d]:u=d,s+=d.length),c&&(l=c[0],s++)}return{type:"element",tagName:u||t||"div",properties:a,children:[]}}function xT(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function _C(e){return e.join(" ").trim()}function AC(e,t,n){const a=n?I5(n):void 0;function s(l,u,...c){let d;if(l==null){d={type:"root",children:[]};const h=u;c.unshift(h)}else{d=R5(l,t);const h=d.tagName.toLowerCase(),m=a?a.get(h):void 0;if(d.tagName=m||h,O5(u))c.unshift(u);else for(const[p,E]of Object.entries(u))L5(e,d.properties,p,E)}for(const h of c)l0(d.children,h);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return s}function O5(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const a of n){const s=t[a];if(s&&typeof s=="object"){if(!Array.isArray(s))return!0;const l=s;for(const u of l)if(typeof u!="number"&&typeof u!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function L5(e,t,n,a){const s=cd(e,n);let l;if(a!=null){if(typeof a=="number"){if(Number.isNaN(a))return;l=a}else typeof a=="boolean"?l=a:typeof a=="string"?s.spaceSeparated?l=xT(a):s.commaSeparated?l=yT(a):s.commaOrSpaceSeparated?l=xT(yT(a).join(" ")):l=TT(s,s.property,a):Array.isArray(a)?l=[...a]:l=s.property==="style"?D5(a):String(a);if(Array.isArray(l)){const u=[];for(const c of l)u.push(TT(s,s.property,c));l=u}s.property==="className"&&Array.isArray(t.className)&&(l=t.className.concat(l)),t[s.property]=l}}function l0(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)l0(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?l0(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function TT(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||tu(n)===tu(t)))return!0}return n}function D5(e){const t=[];for(const[n,a]of Object.entries(e))t.push([n,a].join(": "));return t.join("; ")}function I5(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const M5=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],P5=AC(fu,"div"),B5=AC(ii,"g",M5);function j5(e){const t=String(e),n=[];return{toOffset:s,toPoint:a};function a(l){if(typeof l=="number"&&l>-1&&l<=t.length){let u=0;for(;;){let c=n[u];if(c===void 0){const d=vT(t,n[u-1]);c=d===-1?t.length+1:d+1,n[u]=c}if(c>l)return{line:u+1,column:l-(u>0?n[u-1]:0)+1,offset:l};u++}}}function s(l){if(l&&typeof l.line=="number"&&typeof l.column=="number"&&!Number.isNaN(l.line)&&!Number.isNaN(l.column)){for(;n.length<l.line;){const c=n[n.length-1],d=vT(t,c),h=d===-1?t.length+1:d+1;if(c===h)break;n.push(h)}const u=(l.line>1?n[l.line-2]:0)+l.column-1;if(u<n[l.line-1])return u}}}function vT(e,t){const n=e.indexOf("\r",t),a=e.indexOf(`
|
|
50
|
-
`,t);return a===-1?n:n===-1||n+1===a?a:n<a?n:a}const Ui={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},kC={}.hasOwnProperty,H5=Object.prototype;function U5(e,t){const n=t||{};return hg({file:n.file||void 0,location:!1,schema:n.space==="svg"?ii:fu,verbose:n.verbose||!1},e)}function hg(e,t){let n;switch(t.nodeName){case"#comment":{const a=t;return n={type:"comment",value:a.data},gf(e,a,n),n}case"#document":case"#document-fragment":{const a=t,s="mode"in a?a.mode==="quirks"||a.mode==="limited-quirks":!1;if(n={type:"root",children:wC(e,t.childNodes),data:{quirksMode:s}},e.file&&e.location){const l=String(e.file),u=j5(l),c=u.toPoint(0),d=u.toPoint(l.length);n.position={start:c,end:d}}return n}case"#documentType":{const a=t;return n={type:"doctype"},gf(e,a,n),n}case"#text":{const a=t;return n={type:"text",value:a.value},gf(e,a,n),n}default:return n=z5(e,t),n}}function wC(e,t){let n=-1;const a=[];for(;++n<t.length;){const s=hg(e,t[n]);a.push(s)}return a}function z5(e,t){const n=e.schema;e.schema=t.namespaceURI===Ui.svg?ii:fu;let a=-1;const s={};for(;++a<t.attrs.length;){const c=t.attrs[a],d=(c.prefix?c.prefix+":":"")+c.name;kC.call(H5,d)||(s[d]=c.value)}const u=(e.schema.space==="svg"?B5:P5)(t.tagName,s,wC(e,t.childNodes));if(gf(e,t,u),u.tagName==="template"){const c=t,d=c.sourceCodeLocation,h=d&&d.startTag&&rl(d.startTag),m=d&&d.endTag&&rl(d.endTag),p=hg(e,c.content);h&&m&&e.file&&(p.position={start:h.end,end:m.start}),u.content=p}return e.schema=n,u}function gf(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const a=F5(e,n,t.sourceCodeLocation);a&&(e.location=!0,n.position=a)}}function F5(e,t,n){const a=rl(n);if(t.type==="element"){const s=t.children[t.children.length-1];if(a&&!n.endTag&&s&&s.position&&s.position.end&&(a.end=Object.assign({},s.position.end)),e.verbose){const l={};let u;if(n.attrs)for(u in n.attrs)kC.call(n.attrs,u)&&(l[cd(e.schema,u).property]=rl(n.attrs[u]));n.startTag;const c=rl(n.startTag),d=n.endTag?rl(n.endTag):void 0,h={opening:c};d&&(h.closing=d),h.properties=l,t.data={position:h}}}return a}function rl(e){const t=ST({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=ST({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function ST(e){return e.line&&e.column?e:void 0}const CT={}.hasOwnProperty;function NC(e,t){const n=t||{};function a(s,...l){let u=a.invalid;const c=a.handlers;if(s&&CT.call(s,e)){const d=String(s[e]);u=CT.call(c,d)?c[d]:a.unknown}if(u)return u.call(this,s,...l)}return a.handlers=n.handlers||{},a.invalid=n.invalid,a.unknown=n.unknown,a}const q5={},V5={}.hasOwnProperty,RC=NC("type",{handlers:{root:$5,element:W5,text:X5,comment:Q5,doctype:K5}});function Y5(e,t){const a=(t||q5).space;return RC(e,a==="svg"?ii:fu)}function $5(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=mg(e.children,n,t),Sl(e,n),n}function G5(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=mg(e.children,n,t),Sl(e,n),n}function K5(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Sl(e,t),t}function X5(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Sl(e,t),t}function Q5(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Sl(e,t),t}function W5(e,t){const n=t;let a=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(a=ii);const s=[];let l;if(e.properties){for(l in e.properties)if(l!=="children"&&V5.call(e.properties,l)){const d=Z5(a,l,e.properties[l]);d&&s.push(d)}}const u=a.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:s,namespaceURI:Ui[u],childNodes:[],parentNode:null};return c.childNodes=mg(e.children,c,a),Sl(e,c),e.tagName==="template"&&e.content&&(c.content=G5(e.content,a)),c}function Z5(e,t,n){const a=cd(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&a.boolean)return;Array.isArray(n)&&(n=a.commaSeparated?CC(n):_C(n));const s={name:a.attribute,value:n===!0?"":String(n)};if(a.space&&a.space!=="html"&&a.space!=="svg"){const l=s.name.indexOf(":");l<0?s.prefix="":(s.name=s.name.slice(l+1),s.prefix=a.attribute.slice(0,l)),s.namespace=Ui[a.space]}return s}function mg(e,t,n){let a=-1;const s=[];if(e)for(;++a<e.length;){const l=RC(e[a],n);l.parentNode=t,s.push(l)}return s}function Sl(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const J5=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],eD=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),_t="�";var P;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(P||(P={}));const Nn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function OC(e){return e>=55296&&e<=57343}function tD(e){return e>=56320&&e<=57343}function nD(e,t){return(e-55296)*1024+9216+t}function LC(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function DC(e){return e>=64976&&e<=65007||eD.has(e)}var le;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(le||(le={}));const rD=65536;class aD{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=rD,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:a,col:s,offset:l}=this,u=s+n,c=l+n;return{code:t,startLine:a,endLine:a,startCol:u,endCol:u,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(tD(n))return this.pos++,this._addGap(),nD(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,P.EOF;return this._err(le.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let a=0;a<t.length;a++)if((this.html.charCodeAt(this.pos+a)|32)!==t.charCodeAt(a))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,P.EOF;const a=this.html.charCodeAt(n);return a===P.CARRIAGE_RETURN?P.LINE_FEED:a}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,P.EOF;let t=this.html.charCodeAt(this.pos);return t===P.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,P.LINE_FEED):t===P.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,OC(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===P.LINE_FEED||t===P.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){LC(t)?this._err(le.controlCharacterInInputStream):DC(t)&&this._err(le.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ge;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ge||(Ge={}));function IC(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const iD=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),sD=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function lD(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=sD.get(e))!==null&&t!==void 0?t:e}var Zt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Zt||(Zt={}));const oD=32;var Ka;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ka||(Ka={}));function o0(e){return e>=Zt.ZERO&&e<=Zt.NINE}function uD(e){return e>=Zt.UPPER_A&&e<=Zt.UPPER_F||e>=Zt.LOWER_A&&e<=Zt.LOWER_F}function cD(e){return e>=Zt.UPPER_A&&e<=Zt.UPPER_Z||e>=Zt.LOWER_A&&e<=Zt.LOWER_Z||o0(e)}function fD(e){return e===Zt.EQUALS||cD(e)}var Xt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Xt||(Xt={}));var aa;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(aa||(aa={}));class dD{constructor(t,n,a){this.decodeTree=t,this.emitCodePoint=n,this.errors=a,this.state=Xt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=aa.Strict}startEntity(t){this.decodeMode=t,this.state=Xt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Xt.EntityStart:return t.charCodeAt(n)===Zt.NUM?(this.state=Xt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Xt.NamedEntity,this.stateNamedEntity(t,n));case Xt.NumericStart:return this.stateNumericStart(t,n);case Xt.NumericDecimal:return this.stateNumericDecimal(t,n);case Xt.NumericHex:return this.stateNumericHex(t,n);case Xt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|oD)===Zt.LOWER_X?(this.state=Xt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Xt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,a,s){if(n!==a){const l=a-n;this.result=this.result*Math.pow(s,l)+Number.parseInt(t.substr(n,l),s),this.consumed+=l}}stateNumericHex(t,n){const a=n;for(;n<t.length;){const s=t.charCodeAt(n);if(o0(s)||uD(s))n+=1;else return this.addToNumericResult(t,a,n,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,a,n,16),-1}stateNumericDecimal(t,n){const a=n;for(;n<t.length;){const s=t.charCodeAt(n);if(o0(s))n+=1;else return this.addToNumericResult(t,a,n,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,a,n,10),-1}emitNumericEntity(t,n){var a;if(this.consumed<=n)return(a=this.errors)===null||a===void 0||a.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Zt.SEMI)this.consumed+=1;else if(this.decodeMode===aa.Strict)return 0;return this.emitCodePoint(lD(this.result),this.consumed),this.errors&&(t!==Zt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:a}=this;let s=a[this.treeIndex],l=(s&Ka.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const u=t.charCodeAt(n);if(this.treeIndex=hD(a,s,this.treeIndex+Math.max(1,l),u),this.treeIndex<0)return this.result===0||this.decodeMode===aa.Attribute&&(l===0||fD(u))?0:this.emitNotTerminatedNamedEntity();if(s=a[this.treeIndex],l=(s&Ka.VALUE_LENGTH)>>14,l!==0){if(u===Zt.SEMI)return this.emitNamedEntityData(this.treeIndex,l,this.consumed+this.excess);this.decodeMode!==aa.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:a}=this,s=(a[n]&Ka.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,a){const{decodeTree:s}=this;return this.emitCodePoint(n===1?s[t]&~Ka.VALUE_LENGTH:s[t+1],a),n===3&&this.emitCodePoint(s[t+2],a),a}end(){var t;switch(this.state){case Xt.NamedEntity:return this.result!==0&&(this.decodeMode!==aa.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Xt.NumericDecimal:return this.emitNumericEntity(0,2);case Xt.NumericHex:return this.emitNumericEntity(0,3);case Xt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Xt.EntityStart:return 0}}}function hD(e,t,n,a){const s=(t&Ka.BRANCH_LENGTH)>>7,l=t&Ka.JUMP_TABLE;if(s===0)return l!==0&&a===l?n:-1;if(l){const d=a-l;return d<0||d>=s?-1:e[n+d]-1}let u=n,c=u+s-1;for(;u<=c;){const d=u+c>>>1,h=e[d];if(h<a)u=d+1;else if(h>a)c=d-1;else return e[d+s]}return-1}var ge;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(ge||(ge={}));var Vi;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Vi||(Vi={}));var tr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(tr||(tr={}));var ee;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(ee||(ee={}));var T;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(T||(T={}));const mD=new Map([[ee.A,T.A],[ee.ADDRESS,T.ADDRESS],[ee.ANNOTATION_XML,T.ANNOTATION_XML],[ee.APPLET,T.APPLET],[ee.AREA,T.AREA],[ee.ARTICLE,T.ARTICLE],[ee.ASIDE,T.ASIDE],[ee.B,T.B],[ee.BASE,T.BASE],[ee.BASEFONT,T.BASEFONT],[ee.BGSOUND,T.BGSOUND],[ee.BIG,T.BIG],[ee.BLOCKQUOTE,T.BLOCKQUOTE],[ee.BODY,T.BODY],[ee.BR,T.BR],[ee.BUTTON,T.BUTTON],[ee.CAPTION,T.CAPTION],[ee.CENTER,T.CENTER],[ee.CODE,T.CODE],[ee.COL,T.COL],[ee.COLGROUP,T.COLGROUP],[ee.DD,T.DD],[ee.DESC,T.DESC],[ee.DETAILS,T.DETAILS],[ee.DIALOG,T.DIALOG],[ee.DIR,T.DIR],[ee.DIV,T.DIV],[ee.DL,T.DL],[ee.DT,T.DT],[ee.EM,T.EM],[ee.EMBED,T.EMBED],[ee.FIELDSET,T.FIELDSET],[ee.FIGCAPTION,T.FIGCAPTION],[ee.FIGURE,T.FIGURE],[ee.FONT,T.FONT],[ee.FOOTER,T.FOOTER],[ee.FOREIGN_OBJECT,T.FOREIGN_OBJECT],[ee.FORM,T.FORM],[ee.FRAME,T.FRAME],[ee.FRAMESET,T.FRAMESET],[ee.H1,T.H1],[ee.H2,T.H2],[ee.H3,T.H3],[ee.H4,T.H4],[ee.H5,T.H5],[ee.H6,T.H6],[ee.HEAD,T.HEAD],[ee.HEADER,T.HEADER],[ee.HGROUP,T.HGROUP],[ee.HR,T.HR],[ee.HTML,T.HTML],[ee.I,T.I],[ee.IMG,T.IMG],[ee.IMAGE,T.IMAGE],[ee.INPUT,T.INPUT],[ee.IFRAME,T.IFRAME],[ee.KEYGEN,T.KEYGEN],[ee.LABEL,T.LABEL],[ee.LI,T.LI],[ee.LINK,T.LINK],[ee.LISTING,T.LISTING],[ee.MAIN,T.MAIN],[ee.MALIGNMARK,T.MALIGNMARK],[ee.MARQUEE,T.MARQUEE],[ee.MATH,T.MATH],[ee.MENU,T.MENU],[ee.META,T.META],[ee.MGLYPH,T.MGLYPH],[ee.MI,T.MI],[ee.MO,T.MO],[ee.MN,T.MN],[ee.MS,T.MS],[ee.MTEXT,T.MTEXT],[ee.NAV,T.NAV],[ee.NOBR,T.NOBR],[ee.NOFRAMES,T.NOFRAMES],[ee.NOEMBED,T.NOEMBED],[ee.NOSCRIPT,T.NOSCRIPT],[ee.OBJECT,T.OBJECT],[ee.OL,T.OL],[ee.OPTGROUP,T.OPTGROUP],[ee.OPTION,T.OPTION],[ee.P,T.P],[ee.PARAM,T.PARAM],[ee.PLAINTEXT,T.PLAINTEXT],[ee.PRE,T.PRE],[ee.RB,T.RB],[ee.RP,T.RP],[ee.RT,T.RT],[ee.RTC,T.RTC],[ee.RUBY,T.RUBY],[ee.S,T.S],[ee.SCRIPT,T.SCRIPT],[ee.SEARCH,T.SEARCH],[ee.SECTION,T.SECTION],[ee.SELECT,T.SELECT],[ee.SOURCE,T.SOURCE],[ee.SMALL,T.SMALL],[ee.SPAN,T.SPAN],[ee.STRIKE,T.STRIKE],[ee.STRONG,T.STRONG],[ee.STYLE,T.STYLE],[ee.SUB,T.SUB],[ee.SUMMARY,T.SUMMARY],[ee.SUP,T.SUP],[ee.TABLE,T.TABLE],[ee.TBODY,T.TBODY],[ee.TEMPLATE,T.TEMPLATE],[ee.TEXTAREA,T.TEXTAREA],[ee.TFOOT,T.TFOOT],[ee.TD,T.TD],[ee.TH,T.TH],[ee.THEAD,T.THEAD],[ee.TITLE,T.TITLE],[ee.TR,T.TR],[ee.TRACK,T.TRACK],[ee.TT,T.TT],[ee.U,T.U],[ee.UL,T.UL],[ee.SVG,T.SVG],[ee.VAR,T.VAR],[ee.WBR,T.WBR],[ee.XMP,T.XMP]]);function Cl(e){var t;return(t=mD.get(e))!==null&&t!==void 0?t:T.UNKNOWN}const be=T,pD={[ge.HTML]:new Set([be.ADDRESS,be.APPLET,be.AREA,be.ARTICLE,be.ASIDE,be.BASE,be.BASEFONT,be.BGSOUND,be.BLOCKQUOTE,be.BODY,be.BR,be.BUTTON,be.CAPTION,be.CENTER,be.COL,be.COLGROUP,be.DD,be.DETAILS,be.DIR,be.DIV,be.DL,be.DT,be.EMBED,be.FIELDSET,be.FIGCAPTION,be.FIGURE,be.FOOTER,be.FORM,be.FRAME,be.FRAMESET,be.H1,be.H2,be.H3,be.H4,be.H5,be.H6,be.HEAD,be.HEADER,be.HGROUP,be.HR,be.HTML,be.IFRAME,be.IMG,be.INPUT,be.LI,be.LINK,be.LISTING,be.MAIN,be.MARQUEE,be.MENU,be.META,be.NAV,be.NOEMBED,be.NOFRAMES,be.NOSCRIPT,be.OBJECT,be.OL,be.P,be.PARAM,be.PLAINTEXT,be.PRE,be.SCRIPT,be.SECTION,be.SELECT,be.SOURCE,be.STYLE,be.SUMMARY,be.TABLE,be.TBODY,be.TD,be.TEMPLATE,be.TEXTAREA,be.TFOOT,be.TH,be.THEAD,be.TITLE,be.TR,be.TRACK,be.UL,be.WBR,be.XMP]),[ge.MATHML]:new Set([be.MI,be.MO,be.MN,be.MS,be.MTEXT,be.ANNOTATION_XML]),[ge.SVG]:new Set([be.TITLE,be.FOREIGN_OBJECT,be.DESC]),[ge.XLINK]:new Set,[ge.XML]:new Set,[ge.XMLNS]:new Set},u0=new Set([be.H1,be.H2,be.H3,be.H4,be.H5,be.H6]);ee.STYLE,ee.SCRIPT,ee.XMP,ee.IFRAME,ee.NOEMBED,ee.NOFRAMES,ee.PLAINTEXT;var j;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(j||(j={}));const It={DATA:j.DATA,RCDATA:j.RCDATA,RAWTEXT:j.RAWTEXT,SCRIPT_DATA:j.SCRIPT_DATA,PLAINTEXT:j.PLAINTEXT,CDATA_SECTION:j.CDATA_SECTION};function gD(e){return e>=P.DIGIT_0&&e<=P.DIGIT_9}function Io(e){return e>=P.LATIN_CAPITAL_A&&e<=P.LATIN_CAPITAL_Z}function bD(e){return e>=P.LATIN_SMALL_A&&e<=P.LATIN_SMALL_Z}function qa(e){return bD(e)||Io(e)}function _T(e){return qa(e)||gD(e)}function Qc(e){return e+32}function MC(e){return e===P.SPACE||e===P.LINE_FEED||e===P.TABULATION||e===P.FORM_FEED}function AT(e){return MC(e)||e===P.SOLIDUS||e===P.GREATER_THAN_SIGN}function yD(e){return e===P.NULL?le.nullCharacterReference:e>1114111?le.characterReferenceOutsideUnicodeRange:OC(e)?le.surrogateCharacterReference:DC(e)?le.noncharacterCharacterReference:LC(e)||e===P.CARRIAGE_RETURN?le.controlCharacterReference:null}class ED{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=j.DATA,this.returnState=j.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new aD(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new dD(iD,(a,s)=>{this.preprocessor.pos=this.entityStartPos+s-1,this._flushCodePointConsumedAsCharacterReference(a)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(le.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:a=>{this._err(le.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+a)},validateNumericCharacterReference:a=>{const s=yD(a);s&&this._err(s,1)}}:void 0)}_err(t,n=0){var a,s;(s=(a=this.handler).onParseError)===null||s===void 0||s.call(a,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,a){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||a?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ge.START_TAG,tagName:"",tagID:T.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ge.END_TAG,tagName:"",tagID:T.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ge.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ge.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const a=this.currentToken;if(IC(a,this.currentAttr.name)===null){if(a.attrs.push(this.currentAttr),a.location&&this.currentLocation){const s=(t=(n=a.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);s[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(le.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Cl(t.tagName),t.type===Ge.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(le.endTagWithAttributes),t.selfClosing&&this._err(le.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ge.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ge.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ge.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ge.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=MC(t)?Ge.WHITESPACE_CHARACTER:t===P.NULL?Ge.NULL_CHARACTER:Ge.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ge.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=j.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?aa.Attribute:aa.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===j.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===j.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===j.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case j.DATA:{this._stateData(t);break}case j.RCDATA:{this._stateRcdata(t);break}case j.RAWTEXT:{this._stateRawtext(t);break}case j.SCRIPT_DATA:{this._stateScriptData(t);break}case j.PLAINTEXT:{this._statePlaintext(t);break}case j.TAG_OPEN:{this._stateTagOpen(t);break}case j.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case j.TAG_NAME:{this._stateTagName(t);break}case j.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case j.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case j.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case j.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case j.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case j.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case j.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case j.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case j.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case j.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case j.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case j.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case j.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case j.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case j.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case j.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case j.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case j.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case j.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case j.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case j.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case j.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case j.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case j.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case j.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case j.BOGUS_COMMENT:{this._stateBogusComment(t);break}case j.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case j.COMMENT_START:{this._stateCommentStart(t);break}case j.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case j.COMMENT:{this._stateComment(t);break}case j.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case j.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case j.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case j.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case j.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case j.COMMENT_END:{this._stateCommentEnd(t);break}case j.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case j.DOCTYPE:{this._stateDoctype(t);break}case j.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case j.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case j.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case j.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case j.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case j.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case j.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case j.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case j.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case j.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case j.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case j.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case j.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case j.CDATA_SECTION:{this._stateCdataSection(t);break}case j.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case j.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case j.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case j.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case P.LESS_THAN_SIGN:{this.state=j.TAG_OPEN;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(le.unexpectedNullCharacter),this._emitCodePoint(t);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case P.AMPERSAND:{this._startCharacterReference();break}case P.LESS_THAN_SIGN:{this.state=j.RCDATA_LESS_THAN_SIGN;break}case P.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(_t);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case P.LESS_THAN_SIGN:{this.state=j.RAWTEXT_LESS_THAN_SIGN;break}case P.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(_t);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case P.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_LESS_THAN_SIGN;break}case P.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(_t);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case P.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(_t);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(qa(t))this._createStartTagToken(),this.state=j.TAG_NAME,this._stateTagName(t);else switch(t){case P.EXCLAMATION_MARK:{this.state=j.MARKUP_DECLARATION_OPEN;break}case P.SOLIDUS:{this.state=j.END_TAG_OPEN;break}case P.QUESTION_MARK:{this._err(le.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=j.BOGUS_COMMENT,this._stateBogusComment(t);break}case P.EOF:{this._err(le.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(le.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=j.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(qa(t))this._createEndTagToken(),this.state=j.TAG_NAME,this._stateTagName(t);else switch(t){case P.GREATER_THAN_SIGN:{this._err(le.missingEndTagName),this.state=j.DATA;break}case P.EOF:{this._err(le.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(le.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=j.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=j.BEFORE_ATTRIBUTE_NAME;break}case P.SOLIDUS:{this.state=j.SELF_CLOSING_START_TAG;break}case P.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentTagToken();break}case P.NULL:{this._err(le.unexpectedNullCharacter),n.tagName+=_t;break}case P.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Io(t)?Qc(t):t)}}_stateRcdataLessThanSign(t){t===P.SOLIDUS?this.state=j.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=j.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){qa(t)?(this.state=j.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=j.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=j.BEFORE_ATTRIBUTE_NAME,!1;case P.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=j.SELF_CLOSING_START_TAG,!1;case P.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=j.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===P.SOLIDUS?this.state=j.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=j.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){qa(t)?(this.state=j.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=j.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case P.SOLIDUS:{this.state=j.SCRIPT_DATA_END_TAG_OPEN;break}case P.EXCLAMATION_MARK:{this.state=j.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=j.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){qa(t)?(this.state=j.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===P.HYPHEN_MINUS?(this.state=j.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===P.HYPHEN_MINUS?(this.state=j.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case P.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(_t);break}case P.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case P.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.NULL:{this._err(le.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_ESCAPED,this._emitChars(_t);break}case P.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case P.HYPHEN_MINUS:{this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.GREATER_THAN_SIGN:{this.state=j.SCRIPT_DATA,this._emitChars(">");break}case P.NULL:{this._err(le.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_ESCAPED,this._emitChars(_t);break}case P.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===P.SOLIDUS?this.state=j.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:qa(t)?(this._emitChars("<"),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){qa(t)?(this.state=j.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Nn.SCRIPT,!1)&&AT(this.preprocessor.peek(Nn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Nn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case P.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(_t);break}case P.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case P.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.NULL:{this._err(le.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(_t);break}case P.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case P.HYPHEN_MINUS:{this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.GREATER_THAN_SIGN:{this.state=j.SCRIPT_DATA,this._emitChars(">");break}case P.NULL:{this._err(le.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(_t);break}case P.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===P.SOLIDUS?(this.state=j.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Nn.SCRIPT,!1)&&AT(this.preprocessor.peek(Nn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Nn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=j.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.SOLIDUS:case P.GREATER_THAN_SIGN:case P.EOF:{this.state=j.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case P.EQUALS_SIGN:{this._err(le.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=j.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=j.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:case P.SOLIDUS:case P.GREATER_THAN_SIGN:case P.EOF:{this._leaveAttrName(),this.state=j.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case P.EQUALS_SIGN:{this._leaveAttrName(),this.state=j.BEFORE_ATTRIBUTE_VALUE;break}case P.QUOTATION_MARK:case P.APOSTROPHE:case P.LESS_THAN_SIGN:{this._err(le.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case P.NULL:{this._err(le.unexpectedNullCharacter),this.currentAttr.name+=_t;break}default:this.currentAttr.name+=String.fromCodePoint(Io(t)?Qc(t):t)}}_stateAfterAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.SOLIDUS:{this.state=j.SELF_CLOSING_START_TAG;break}case P.EQUALS_SIGN:{this.state=j.BEFORE_ATTRIBUTE_VALUE;break}case P.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=j.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{this.state=j.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this.state=j.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(le.missingAttributeValue),this.state=j.DATA,this.emitCurrentTagToken();break}default:this.state=j.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case P.QUOTATION_MARK:{this.state=j.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(le.unexpectedNullCharacter),this.currentAttr.value+=_t;break}case P.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case P.APOSTROPHE:{this.state=j.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(le.unexpectedNullCharacter),this.currentAttr.value+=_t;break}case P.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this._leaveAttrValue(),this.state=j.BEFORE_ATTRIBUTE_NAME;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=j.DATA,this.emitCurrentTagToken();break}case P.NULL:{this._err(le.unexpectedNullCharacter),this.currentAttr.value+=_t;break}case P.QUOTATION_MARK:case P.APOSTROPHE:case P.LESS_THAN_SIGN:case P.EQUALS_SIGN:case P.GRAVE_ACCENT:{this._err(le.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case P.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this._leaveAttrValue(),this.state=j.BEFORE_ATTRIBUTE_NAME;break}case P.SOLIDUS:{this._leaveAttrValue(),this.state=j.SELF_CLOSING_START_TAG;break}case P.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=j.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this._err(le.missingWhitespaceBetweenAttributes),this.state=j.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case P.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=j.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this._err(le.unexpectedSolidusInTag),this.state=j.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentComment(n);break}case P.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case P.NULL:{this._err(le.unexpectedNullCharacter),n.data+=_t;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Nn.DASH_DASH,!0)?(this._createCommentToken(Nn.DASH_DASH.length+1),this.state=j.COMMENT_START):this._consumeSequenceIfMatch(Nn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Nn.DOCTYPE.length+1),this.state=j.DOCTYPE):this._consumeSequenceIfMatch(Nn.CDATA_START,!0)?this.inForeignNode?this.state=j.CDATA_SECTION:(this._err(le.cdataInHtmlContent),this._createCommentToken(Nn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=j.BOGUS_COMMENT):this._ensureHibernation()||(this._err(le.incorrectlyOpenedComment),this._createCommentToken(2),this.state=j.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case P.HYPHEN_MINUS:{this.state=j.COMMENT_START_DASH;break}case P.GREATER_THAN_SIGN:{this._err(le.abruptClosingOfEmptyComment),this.state=j.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=j.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=j.COMMENT_END;break}case P.GREATER_THAN_SIGN:{this._err(le.abruptClosingOfEmptyComment),this.state=j.DATA,this.emitCurrentComment(n);break}case P.EOF:{this._err(le.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=j.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=j.COMMENT_END_DASH;break}case P.LESS_THAN_SIGN:{n.data+="<",this.state=j.COMMENT_LESS_THAN_SIGN;break}case P.NULL:{this._err(le.unexpectedNullCharacter),n.data+=_t;break}case P.EOF:{this._err(le.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case P.EXCLAMATION_MARK:{n.data+="!",this.state=j.COMMENT_LESS_THAN_SIGN_BANG;break}case P.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=j.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===P.HYPHEN_MINUS?this.state=j.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=j.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===P.HYPHEN_MINUS?this.state=j.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=j.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==P.GREATER_THAN_SIGN&&t!==P.EOF&&this._err(le.nestedComment),this.state=j.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=j.COMMENT_END;break}case P.EOF:{this._err(le.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=j.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentComment(n);break}case P.EXCLAMATION_MARK:{this.state=j.COMMENT_END_BANG;break}case P.HYPHEN_MINUS:{n.data+="-";break}case P.EOF:{this._err(le.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=j.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{n.data+="--!",this.state=j.COMMENT_END_DASH;break}case P.GREATER_THAN_SIGN:{this._err(le.incorrectlyClosedComment),this.state=j.DATA,this.emitCurrentComment(n);break}case P.EOF:{this._err(le.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=j.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=j.BEFORE_DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this.state=j.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case P.EOF:{this._err(le.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(le.missingWhitespaceBeforeDoctypeName),this.state=j.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Io(t))this._createDoctypeToken(String.fromCharCode(Qc(t))),this.state=j.DOCTYPE_NAME;else switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.NULL:{this._err(le.unexpectedNullCharacter),this._createDoctypeToken(_t),this.state=j.DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this._err(le.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.EOF:{this._err(le.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=j.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=j.AFTER_DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.NULL:{this._err(le.unexpectedNullCharacter),n.name+=_t;break}case P.EOF:{this._err(le.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Io(t)?Qc(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(le.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Nn.PUBLIC,!1)?this.state=j.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Nn.SYSTEM,!1)?this.state=j.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(le.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=j.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.QUOTATION_MARK:{this._err(le.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(le.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(le.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(le.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(le.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(le.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case P.QUOTATION_MARK:{this.state=j.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.NULL:{this._err(le.unexpectedNullCharacter),n.publicId+=_t;break}case P.GREATER_THAN_SIGN:{this._err(le.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.EOF:{this._err(le.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case P.APOSTROPHE:{this.state=j.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.NULL:{this._err(le.unexpectedNullCharacter),n.publicId+=_t;break}case P.GREATER_THAN_SIGN:{this._err(le.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.EOF:{this._err(le.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=j.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case P.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.QUOTATION_MARK:{this._err(le.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(le.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.EOF:{this._err(le.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.QUOTATION_MARK:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.EOF:{this._err(le.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=j.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.QUOTATION_MARK:{this._err(le.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(le.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(le.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(le.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(le.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(le.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case P.QUOTATION_MARK:{this.state=j.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.NULL:{this._err(le.unexpectedNullCharacter),n.systemId+=_t;break}case P.GREATER_THAN_SIGN:{this._err(le.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.EOF:{this._err(le.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case P.APOSTROPHE:{this.state=j.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.NULL:{this._err(le.unexpectedNullCharacter),n.systemId+=_t;break}case P.GREATER_THAN_SIGN:{this._err(le.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.EOF:{this._err(le.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.EOF:{this._err(le.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(le.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.NULL:{this._err(le.unexpectedNullCharacter);break}case P.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case P.RIGHT_SQUARE_BRACKET:{this.state=j.CDATA_SECTION_BRACKET;break}case P.EOF:{this._err(le.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===P.RIGHT_SQUARE_BRACKET?this.state=j.CDATA_SECTION_END:(this._emitChars("]"),this.state=j.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case P.GREATER_THAN_SIGN:{this.state=j.DATA;break}case P.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=j.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(P.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&_T(this.preprocessor.peek(1))?j.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){_T(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===P.SEMICOLON&&this._err(le.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const PC=new Set([T.DD,T.DT,T.LI,T.OPTGROUP,T.OPTION,T.P,T.RB,T.RP,T.RT,T.RTC]),kT=new Set([...PC,T.CAPTION,T.COLGROUP,T.TBODY,T.TD,T.TFOOT,T.TH,T.THEAD,T.TR]),Mf=new Set([T.APPLET,T.CAPTION,T.HTML,T.MARQUEE,T.OBJECT,T.TABLE,T.TD,T.TEMPLATE,T.TH]),xD=new Set([...Mf,T.OL,T.UL]),TD=new Set([...Mf,T.BUTTON]),wT=new Set([T.ANNOTATION_XML,T.MI,T.MN,T.MO,T.MS,T.MTEXT]),NT=new Set([T.DESC,T.FOREIGN_OBJECT,T.TITLE]),vD=new Set([T.TR,T.TEMPLATE,T.HTML]),SD=new Set([T.TBODY,T.TFOOT,T.THEAD,T.TEMPLATE,T.HTML]),CD=new Set([T.TABLE,T.TEMPLATE,T.HTML]),_D=new Set([T.TD,T.TH]);class AD{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,a){this.treeAdapter=n,this.handler=a,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=T.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===T.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ge.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const a=this._indexOf(t);this.items[a]=n,a===this.stackTop&&(this.current=n)}insertAfter(t,n,a){const s=this._indexOf(t)+1;this.items.splice(s,0,n),this.tagIDs.splice(s,0,a),this.stackTop++,s===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,s===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==ge.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const a=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(a,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(u0,ge.HTML)}popUntilTableCellPopped(){this.popUntilPopped(_D,ge.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let a=this.stackTop;a>=0;a--)if(t.has(this.tagIDs[a])&&this.treeAdapter.getNamespaceURI(this.items[a])===n)return a;return-1}clearBackTo(t,n){const a=this._indexOfTagNames(t,n);this.shortenToLength(a+1)}clearBackToTableContext(){this.clearBackTo(CD,ge.HTML)}clearBackToTableBodyContext(){this.clearBackTo(SD,ge.HTML)}clearBackToTableRowContext(){this.clearBackTo(vD,ge.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===T.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===T.HTML}hasInDynamicScope(t,n){for(let a=this.stackTop;a>=0;a--){const s=this.tagIDs[a];switch(this.treeAdapter.getNamespaceURI(this.items[a])){case ge.HTML:{if(s===t)return!0;if(n.has(s))return!1;break}case ge.SVG:{if(NT.has(s))return!1;break}case ge.MATHML:{if(wT.has(s))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Mf)}hasInListItemScope(t){return this.hasInDynamicScope(t,xD)}hasInButtonScope(t){return this.hasInDynamicScope(t,TD)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case ge.HTML:{if(u0.has(n))return!0;if(Mf.has(n))return!1;break}case ge.SVG:{if(NT.has(n))return!1;break}case ge.MATHML:{if(wT.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ge.HTML)switch(this.tagIDs[n]){case t:return!0;case T.TABLE:case T.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ge.HTML)switch(this.tagIDs[t]){case T.TBODY:case T.THEAD:case T.TFOOT:return!0;case T.TABLE:case T.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ge.HTML)switch(this.tagIDs[n]){case t:return!0;case T.OPTION:case T.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&PC.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&kT.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&kT.has(this.currentTagId);)this.pop()}}const fp=3;var Ar;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Ar||(Ar={}));const RT={type:Ar.Marker};class kD{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const a=[],s=n.length,l=this.treeAdapter.getTagName(t),u=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const d=this.entries[c];if(d.type===Ar.Marker)break;const{element:h}=d;if(this.treeAdapter.getTagName(h)===l&&this.treeAdapter.getNamespaceURI(h)===u){const m=this.treeAdapter.getAttrList(h);m.length===s&&a.push({idx:c,attrs:m})}}return a}_ensureNoahArkCondition(t){if(this.entries.length<fp)return;const n=this.treeAdapter.getAttrList(t),a=this._getNoahArkConditionCandidates(t,n);if(a.length<fp)return;const s=new Map(n.map(u=>[u.name,u.value]));let l=0;for(let u=0;u<a.length;u++){const c=a[u];c.attrs.every(d=>s.get(d.name)===d.value)&&(l+=1,l>=fp&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(RT)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Ar.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const a=this.entries.indexOf(this.bookmark);this.entries.splice(a,0,{type:Ar.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(RT);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(a=>a.type===Ar.Marker||this.treeAdapter.getTagName(a.element)===t);return n&&n.type===Ar.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Ar.Element&&n.element===t)}}const Va={createDocument(){return{nodeName:"#document",mode:tr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const a=e.childNodes.indexOf(n);e.childNodes.splice(a,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,a){const s=e.childNodes.find(l=>l.nodeName==="#documentType");if(s)s.name=t,s.publicId=n,s.systemId=a;else{const l={nodeName:"#documentType",name:t,publicId:n,systemId:a,parentNode:null};Va.appendChild(e,l)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Va.isTextNode(n)){n.value+=t;return}}Va.appendChild(e,Va.createTextNode(t))},insertTextBefore(e,t,n){const a=e.childNodes[e.childNodes.indexOf(n)-1];a&&Va.isTextNode(a)?a.value+=t:Va.insertBefore(e,Va.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(a=>a.name));for(let a=0;a<t.length;a++)n.has(t[a].name)||e.attrs.push(t[a])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},BC="html",wD="about:legacy-compat",ND="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",jC=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],RD=[...jC,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],OD=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),HC=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],LD=[...HC,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function OT(e,t){return t.some(n=>e.startsWith(n))}function DD(e){return e.name===BC&&e.publicId===null&&(e.systemId===null||e.systemId===wD)}function ID(e){if(e.name!==BC)return tr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===ND)return tr.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),OD.has(n))return tr.QUIRKS;let a=t===null?RD:jC;if(OT(n,a))return tr.QUIRKS;if(a=t===null?HC:LD,OT(n,a))return tr.LIMITED_QUIRKS}return tr.NO_QUIRKS}const LT={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},MD="definitionurl",PD="definitionURL",BD=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),jD=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ge.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ge.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ge.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ge.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ge.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ge.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ge.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ge.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ge.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ge.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ge.XMLNS}]]),HD=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),UD=new Set([T.B,T.BIG,T.BLOCKQUOTE,T.BODY,T.BR,T.CENTER,T.CODE,T.DD,T.DIV,T.DL,T.DT,T.EM,T.EMBED,T.H1,T.H2,T.H3,T.H4,T.H5,T.H6,T.HEAD,T.HR,T.I,T.IMG,T.LI,T.LISTING,T.MENU,T.META,T.NOBR,T.OL,T.P,T.PRE,T.RUBY,T.S,T.SMALL,T.SPAN,T.STRONG,T.STRIKE,T.SUB,T.SUP,T.TABLE,T.TT,T.U,T.UL,T.VAR]);function zD(e){const t=e.tagID;return t===T.FONT&&e.attrs.some(({name:a})=>a===Vi.COLOR||a===Vi.SIZE||a===Vi.FACE)||UD.has(t)}function UC(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===MD){e.attrs[t].name=PD;break}}function zC(e){for(let t=0;t<e.attrs.length;t++){const n=BD.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function pg(e){for(let t=0;t<e.attrs.length;t++){const n=jD.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function FD(e){const t=HD.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Cl(e.tagName))}function qD(e,t){return t===ge.MATHML&&(e===T.MI||e===T.MO||e===T.MN||e===T.MS||e===T.MTEXT)}function VD(e,t,n){if(t===ge.MATHML&&e===T.ANNOTATION_XML){for(let a=0;a<n.length;a++)if(n[a].name===Vi.ENCODING){const s=n[a].value.toLowerCase();return s===LT.TEXT_HTML||s===LT.APPLICATION_XML}}return t===ge.SVG&&(e===T.FOREIGN_OBJECT||e===T.DESC||e===T.TITLE)}function YD(e,t,n,a){return(!a||a===ge.HTML)&&VD(e,t,n)||(!a||a===ge.MATHML)&&qD(e,t)}const $D="hidden",GD=8,KD=3;var q;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(q||(q={}));const XD={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},FC=new Set([T.TABLE,T.TBODY,T.TFOOT,T.THEAD,T.TR]),DT={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Va,onParseError:null};class IT{constructor(t,n,a=null,s=null){this.fragmentContext=a,this.scriptHandler=s,this.currentToken=null,this.stopped=!1,this.insertionMode=q.INITIAL,this.originalInsertionMode=q.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...DT,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new ED(this.options,this),this.activeFormattingElements=new kD(this.treeAdapter),this.fragmentContextID=a?Cl(this.treeAdapter.getTagName(a)):T.UNKNOWN,this._setContextModes(a??this.document,this.fragmentContextID),this.openElements=new AD(this.document,this.treeAdapter,this)}static parse(t,n){const a=new this(n);return a.tokenizer.write(t,!0),a.document}static getFragmentParser(t,n){const a={...DT,...n};t??(t=a.treeAdapter.createElement(ee.TEMPLATE,ge.HTML,[]));const s=a.treeAdapter.createElement("documentmock",ge.HTML,[]),l=new this(a,s,t);return l.fragmentContextID===T.TEMPLATE&&l.tmplInsertionModeStack.unshift(q.IN_TEMPLATE),l._initTokenizerForFragmentParsing(),l._insertFakeRootElement(),l._resetInsertionMode(),l._findFormInFragmentContext(),l}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,a){var s;if(!this.onParseError)return;const l=(s=t.location)!==null&&s!==void 0?s:XD,u={code:n,startLine:l.startLine,startCol:l.startCol,startOffset:l.startOffset,endLine:a?l.startLine:l.endLine,endCol:a?l.startCol:l.endCol,endOffset:a?l.startOffset:l.endOffset};this.onParseError(u)}onItemPush(t,n,a){var s,l;(l=(s=this.treeAdapter).onItemPush)===null||l===void 0||l.call(s,t),a&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var a,s;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(s=(a=this.treeAdapter).onItemPop)===null||s===void 0||s.call(a,t,this.openElements.current),n){let l,u;this.openElements.stackTop===0&&this.fragmentContext?(l=this.fragmentContext,u=this.fragmentContextID):{current:l,currentTagId:u}=this.openElements,this._setContextModes(l,u)}}_setContextModes(t,n){const a=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===ge.HTML;this.currentNotInHTML=!a,this.tokenizer.inForeignNode=!a&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,ge.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=q.TEXT}switchToPlaintextParsing(){this.insertionMode=q.TEXT,this.originalInsertionMode=q.IN_BODY,this.tokenizer.state=It.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===ee.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ge.HTML))switch(this.fragmentContextID){case T.TITLE:case T.TEXTAREA:{this.tokenizer.state=It.RCDATA;break}case T.STYLE:case T.XMP:case T.IFRAME:case T.NOEMBED:case T.NOFRAMES:case T.NOSCRIPT:{this.tokenizer.state=It.RAWTEXT;break}case T.SCRIPT:{this.tokenizer.state=It.SCRIPT_DATA;break}case T.PLAINTEXT:{this.tokenizer.state=It.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",a=t.publicId||"",s=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,a,s),t.location){const u=this.treeAdapter.getChildNodes(this.document).find(c=>this.treeAdapter.isDocumentTypeNode(c));u&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const a=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,a)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const a=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(a??this.document,t)}}_appendElement(t,n){const a=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(a,t.location)}_insertElement(t,n){const a=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(a,t.location),this.openElements.push(a,t.tagID)}_insertFakeElement(t,n){const a=this.treeAdapter.createElement(t,ge.HTML,[]);this._attachElementToTree(a,null),this.openElements.push(a,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,ge.HTML,t.attrs),a=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,a),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(ee.HTML,ge.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,T.HTML)}_appendCommentNode(t,n){const a=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,a),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_insertCharacters(t){let n,a;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:a}=this._findFosterParentingLocation(),a?this.treeAdapter.insertTextBefore(n,t.chars,a):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const s=this.treeAdapter.getChildNodes(n),l=a?s.lastIndexOf(a):s.length,u=s[l-1];if(this.treeAdapter.getNodeSourceCodeLocation(u)){const{endLine:d,endCol:h,endOffset:m}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(u,{endLine:d,endCol:h,endOffset:m})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}_adoptNodes(t,n){for(let a=this.treeAdapter.getFirstChild(t);a;a=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(a),this.treeAdapter.appendChild(n,a)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const a=n.location,s=this.treeAdapter.getTagName(t),l=n.type===Ge.END_TAG&&s===n.tagName?{endTag:{...a},endLine:a.endLine,endCol:a.endCol,endOffset:a.endOffset}:{endLine:a.startLine,endCol:a.startCol,endOffset:a.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,l)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,a;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,a=this.fragmentContextID):{current:n,currentTagId:a}=this.openElements,t.tagID===T.SVG&&this.treeAdapter.getTagName(n)===ee.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===ge.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===T.MGLYPH||t.tagID===T.MALIGNMARK)&&a!==void 0&&!this._isIntegrationPoint(a,n,ge.HTML)}_processToken(t){switch(t.type){case Ge.CHARACTER:{this.onCharacter(t);break}case Ge.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ge.COMMENT:{this.onComment(t);break}case Ge.DOCTYPE:{this.onDoctype(t);break}case Ge.START_TAG:{this._processStartTag(t);break}case Ge.END_TAG:{this.onEndTag(t);break}case Ge.EOF:{this.onEof(t);break}case Ge.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,a){const s=this.treeAdapter.getNamespaceURI(n),l=this.treeAdapter.getAttrList(n);return YD(t,s,l,a)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(s=>s.type===Ar.Marker||this.openElements.contains(s.element)),a=n===-1?t-1:n-1;for(let s=a;s>=0;s--){const l=this.activeFormattingElements.entries[s];this._insertElement(l.token,this.treeAdapter.getNamespaceURI(l.element)),l.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=q.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(T.P),this.openElements.popUntilTagNamePopped(T.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case T.TR:{this.insertionMode=q.IN_ROW;return}case T.TBODY:case T.THEAD:case T.TFOOT:{this.insertionMode=q.IN_TABLE_BODY;return}case T.CAPTION:{this.insertionMode=q.IN_CAPTION;return}case T.COLGROUP:{this.insertionMode=q.IN_COLUMN_GROUP;return}case T.TABLE:{this.insertionMode=q.IN_TABLE;return}case T.BODY:{this.insertionMode=q.IN_BODY;return}case T.FRAMESET:{this.insertionMode=q.IN_FRAMESET;return}case T.SELECT:{this._resetInsertionModeForSelect(t);return}case T.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case T.HTML:{this.insertionMode=this.headElement?q.AFTER_HEAD:q.BEFORE_HEAD;return}case T.TD:case T.TH:{if(t>0){this.insertionMode=q.IN_CELL;return}break}case T.HEAD:{if(t>0){this.insertionMode=q.IN_HEAD;return}break}}this.insertionMode=q.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const a=this.openElements.tagIDs[n];if(a===T.TEMPLATE)break;if(a===T.TABLE){this.insertionMode=q.IN_SELECT_IN_TABLE;return}}this.insertionMode=q.IN_SELECT}_isElementCausesFosterParenting(t){return FC.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case T.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===ge.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case T.TABLE:{const a=this.treeAdapter.getParentNode(n);return a?{parent:a,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const a=this.treeAdapter.getNamespaceURI(t);return pD[a].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){_M(this,t);return}switch(this.insertionMode){case q.INITIAL:{_o(this,t);break}case q.BEFORE_HTML:{zo(this,t);break}case q.BEFORE_HEAD:{Fo(this,t);break}case q.IN_HEAD:{qo(this,t);break}case q.IN_HEAD_NO_SCRIPT:{Vo(this,t);break}case q.AFTER_HEAD:{Yo(this,t);break}case q.IN_BODY:case q.IN_CAPTION:case q.IN_CELL:case q.IN_TEMPLATE:{VC(this,t);break}case q.TEXT:case q.IN_SELECT:case q.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case q.IN_TABLE:case q.IN_TABLE_BODY:case q.IN_ROW:{dp(this,t);break}case q.IN_TABLE_TEXT:{QC(this,t);break}case q.IN_COLUMN_GROUP:{Pf(this,t);break}case q.AFTER_BODY:{Bf(this,t);break}case q.AFTER_AFTER_BODY:{bf(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){CM(this,t);return}switch(this.insertionMode){case q.INITIAL:{_o(this,t);break}case q.BEFORE_HTML:{zo(this,t);break}case q.BEFORE_HEAD:{Fo(this,t);break}case q.IN_HEAD:{qo(this,t);break}case q.IN_HEAD_NO_SCRIPT:{Vo(this,t);break}case q.AFTER_HEAD:{Yo(this,t);break}case q.TEXT:{this._insertCharacters(t);break}case q.IN_TABLE:case q.IN_TABLE_BODY:case q.IN_ROW:{dp(this,t);break}case q.IN_COLUMN_GROUP:{Pf(this,t);break}case q.AFTER_BODY:{Bf(this,t);break}case q.AFTER_AFTER_BODY:{bf(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){c0(this,t);return}switch(this.insertionMode){case q.INITIAL:case q.BEFORE_HTML:case q.BEFORE_HEAD:case q.IN_HEAD:case q.IN_HEAD_NO_SCRIPT:case q.AFTER_HEAD:case q.IN_BODY:case q.IN_TABLE:case q.IN_CAPTION:case q.IN_COLUMN_GROUP:case q.IN_TABLE_BODY:case q.IN_ROW:case q.IN_CELL:case q.IN_SELECT:case q.IN_SELECT_IN_TABLE:case q.IN_TEMPLATE:case q.IN_FRAMESET:case q.AFTER_FRAMESET:{c0(this,t);break}case q.IN_TABLE_TEXT:{Ao(this,t);break}case q.AFTER_BODY:{nI(this,t);break}case q.AFTER_AFTER_BODY:case q.AFTER_AFTER_FRAMESET:{rI(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case q.INITIAL:{aI(this,t);break}case q.BEFORE_HEAD:case q.IN_HEAD:case q.IN_HEAD_NO_SCRIPT:case q.AFTER_HEAD:{this._err(t,le.misplacedDoctype);break}case q.IN_TABLE_TEXT:{Ao(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,le.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?AM(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case q.INITIAL:{_o(this,t);break}case q.BEFORE_HTML:{iI(this,t);break}case q.BEFORE_HEAD:{lI(this,t);break}case q.IN_HEAD:{gr(this,t);break}case q.IN_HEAD_NO_SCRIPT:{cI(this,t);break}case q.AFTER_HEAD:{dI(this,t);break}case q.IN_BODY:{fn(this,t);break}case q.IN_TABLE:{gl(this,t);break}case q.IN_TABLE_TEXT:{Ao(this,t);break}case q.IN_CAPTION:{oM(this,t);break}case q.IN_COLUMN_GROUP:{yg(this,t);break}case q.IN_TABLE_BODY:{hd(this,t);break}case q.IN_ROW:{md(this,t);break}case q.IN_CELL:{fM(this,t);break}case q.IN_SELECT:{JC(this,t);break}case q.IN_SELECT_IN_TABLE:{hM(this,t);break}case q.IN_TEMPLATE:{pM(this,t);break}case q.AFTER_BODY:{bM(this,t);break}case q.IN_FRAMESET:{yM(this,t);break}case q.AFTER_FRAMESET:{xM(this,t);break}case q.AFTER_AFTER_BODY:{vM(this,t);break}case q.AFTER_AFTER_FRAMESET:{SM(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?kM(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case q.INITIAL:{_o(this,t);break}case q.BEFORE_HTML:{sI(this,t);break}case q.BEFORE_HEAD:{oI(this,t);break}case q.IN_HEAD:{uI(this,t);break}case q.IN_HEAD_NO_SCRIPT:{fI(this,t);break}case q.AFTER_HEAD:{hI(this,t);break}case q.IN_BODY:{dd(this,t);break}case q.TEXT:{ZI(this,t);break}case q.IN_TABLE:{nu(this,t);break}case q.IN_TABLE_TEXT:{Ao(this,t);break}case q.IN_CAPTION:{uM(this,t);break}case q.IN_COLUMN_GROUP:{cM(this,t);break}case q.IN_TABLE_BODY:{f0(this,t);break}case q.IN_ROW:{ZC(this,t);break}case q.IN_CELL:{dM(this,t);break}case q.IN_SELECT:{e_(this,t);break}case q.IN_SELECT_IN_TABLE:{mM(this,t);break}case q.IN_TEMPLATE:{gM(this,t);break}case q.AFTER_BODY:{n_(this,t);break}case q.IN_FRAMESET:{EM(this,t);break}case q.AFTER_FRAMESET:{TM(this,t);break}case q.AFTER_AFTER_BODY:{bf(this,t);break}}}onEof(t){switch(this.insertionMode){case q.INITIAL:{_o(this,t);break}case q.BEFORE_HTML:{zo(this,t);break}case q.BEFORE_HEAD:{Fo(this,t);break}case q.IN_HEAD:{qo(this,t);break}case q.IN_HEAD_NO_SCRIPT:{Vo(this,t);break}case q.AFTER_HEAD:{Yo(this,t);break}case q.IN_BODY:case q.IN_TABLE:case q.IN_CAPTION:case q.IN_COLUMN_GROUP:case q.IN_TABLE_BODY:case q.IN_ROW:case q.IN_CELL:case q.IN_SELECT:case q.IN_SELECT_IN_TABLE:{KC(this,t);break}case q.TEXT:{JI(this,t);break}case q.IN_TABLE_TEXT:{Ao(this,t);break}case q.IN_TEMPLATE:{t_(this,t);break}case q.AFTER_BODY:case q.IN_FRAMESET:case q.AFTER_FRAMESET:case q.AFTER_AFTER_BODY:case q.AFTER_AFTER_FRAMESET:{bg(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===P.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case q.IN_HEAD:case q.IN_HEAD_NO_SCRIPT:case q.AFTER_HEAD:case q.TEXT:case q.IN_COLUMN_GROUP:case q.IN_SELECT:case q.IN_SELECT_IN_TABLE:case q.IN_FRAMESET:case q.AFTER_FRAMESET:{this._insertCharacters(t);break}case q.IN_BODY:case q.IN_CAPTION:case q.IN_CELL:case q.IN_TEMPLATE:case q.AFTER_BODY:case q.AFTER_AFTER_BODY:case q.AFTER_AFTER_FRAMESET:{qC(this,t);break}case q.IN_TABLE:case q.IN_TABLE_BODY:case q.IN_ROW:{dp(this,t);break}case q.IN_TABLE_TEXT:{XC(this,t);break}}}}function QD(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):GC(e,t),n}function WD(e,t){let n=null,a=e.openElements.stackTop;for(;a>=0;a--){const s=e.openElements.items[a];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[a])&&(n=s)}return n||(e.openElements.shortenToLength(Math.max(a,0)),e.activeFormattingElements.removeEntry(t)),n}function ZD(e,t,n){let a=t,s=e.openElements.getCommonAncestor(t);for(let l=0,u=s;u!==n;l++,u=s){s=e.openElements.getCommonAncestor(u);const c=e.activeFormattingElements.getElementEntry(u),d=c&&l>=KD;!c||d?(d&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(u)):(u=JD(e,c),a===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(a),e.treeAdapter.appendChild(u,a),a=u)}return a}function JD(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),a=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,a),t.element=a,a}function eI(e,t,n){const a=e.treeAdapter.getTagName(t),s=Cl(a);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(n);else{const l=e.treeAdapter.getNamespaceURI(t);s===T.TEMPLATE&&l===ge.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function tI(e,t,n){const a=e.treeAdapter.getNamespaceURI(n.element),{token:s}=n,l=e.treeAdapter.createElement(s.tagName,a,s.attrs);e._adoptNodes(t,l),e.treeAdapter.appendChild(t,l),e.activeFormattingElements.insertElementAfterBookmark(l,s),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,l,s.tagID)}function gg(e,t){for(let n=0;n<GD;n++){const a=QD(e,t);if(!a)break;const s=WD(e,a);if(!s)break;e.activeFormattingElements.bookmark=a;const l=ZD(e,s,a.element),u=e.openElements.getCommonAncestor(a.element);e.treeAdapter.detachNode(l),u&&eI(e,u,l),tI(e,s,a)}}function c0(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function nI(e,t){e._appendCommentNode(t,e.openElements.items[0])}function rI(e,t){e._appendCommentNode(t,e.document)}function bg(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let a=e.openElements.stackTop;a>=n;a--)e._setEndLocation(e.openElements.items[a],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const a=e.openElements.items[0],s=e.treeAdapter.getNodeSourceCodeLocation(a);if(s&&!s.endTag&&(e._setEndLocation(a,t),e.openElements.stackTop>=1)){const l=e.openElements.items[1],u=e.treeAdapter.getNodeSourceCodeLocation(l);u&&!u.endTag&&e._setEndLocation(l,t)}}}}function aI(e,t){e._setDocumentType(t);const n=t.forceQuirks?tr.QUIRKS:ID(t);DD(t)||e._err(t,le.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=q.BEFORE_HTML}function _o(e,t){e._err(t,le.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,tr.QUIRKS),e.insertionMode=q.BEFORE_HTML,e._processToken(t)}function iI(e,t){t.tagID===T.HTML?(e._insertElement(t,ge.HTML),e.insertionMode=q.BEFORE_HEAD):zo(e,t)}function sI(e,t){const n=t.tagID;(n===T.HTML||n===T.HEAD||n===T.BODY||n===T.BR)&&zo(e,t)}function zo(e,t){e._insertFakeRootElement(),e.insertionMode=q.BEFORE_HEAD,e._processToken(t)}function lI(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.HEAD:{e._insertElement(t,ge.HTML),e.headElement=e.openElements.current,e.insertionMode=q.IN_HEAD;break}default:Fo(e,t)}}function oI(e,t){const n=t.tagID;n===T.HEAD||n===T.BODY||n===T.HTML||n===T.BR?Fo(e,t):e._err(t,le.endTagWithoutMatchingOpenElement)}function Fo(e,t){e._insertFakeElement(ee.HEAD,T.HEAD),e.headElement=e.openElements.current,e.insertionMode=q.IN_HEAD,e._processToken(t)}function gr(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.BASE:case T.BASEFONT:case T.BGSOUND:case T.LINK:case T.META:{e._appendElement(t,ge.HTML),t.ackSelfClosing=!0;break}case T.TITLE:{e._switchToTextParsing(t,It.RCDATA);break}case T.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,It.RAWTEXT):(e._insertElement(t,ge.HTML),e.insertionMode=q.IN_HEAD_NO_SCRIPT);break}case T.NOFRAMES:case T.STYLE:{e._switchToTextParsing(t,It.RAWTEXT);break}case T.SCRIPT:{e._switchToTextParsing(t,It.SCRIPT_DATA);break}case T.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=q.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(q.IN_TEMPLATE);break}case T.HEAD:{e._err(t,le.misplacedStartTagForHeadElement);break}default:qo(e,t)}}function uI(e,t){switch(t.tagID){case T.HEAD:{e.openElements.pop(),e.insertionMode=q.AFTER_HEAD;break}case T.BODY:case T.BR:case T.HTML:{qo(e,t);break}case T.TEMPLATE:{as(e,t);break}default:e._err(t,le.endTagWithoutMatchingOpenElement)}}function as(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==T.TEMPLATE&&e._err(t,le.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(T.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,le.endTagWithoutMatchingOpenElement)}function qo(e,t){e.openElements.pop(),e.insertionMode=q.AFTER_HEAD,e._processToken(t)}function cI(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.BASEFONT:case T.BGSOUND:case T.HEAD:case T.LINK:case T.META:case T.NOFRAMES:case T.STYLE:{gr(e,t);break}case T.NOSCRIPT:{e._err(t,le.nestedNoscriptInHead);break}default:Vo(e,t)}}function fI(e,t){switch(t.tagID){case T.NOSCRIPT:{e.openElements.pop(),e.insertionMode=q.IN_HEAD;break}case T.BR:{Vo(e,t);break}default:e._err(t,le.endTagWithoutMatchingOpenElement)}}function Vo(e,t){const n=t.type===Ge.EOF?le.openElementsLeftAfterEof:le.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=q.IN_HEAD,e._processToken(t)}function dI(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.BODY:{e._insertElement(t,ge.HTML),e.framesetOk=!1,e.insertionMode=q.IN_BODY;break}case T.FRAMESET:{e._insertElement(t,ge.HTML),e.insertionMode=q.IN_FRAMESET;break}case T.BASE:case T.BASEFONT:case T.BGSOUND:case T.LINK:case T.META:case T.NOFRAMES:case T.SCRIPT:case T.STYLE:case T.TEMPLATE:case T.TITLE:{e._err(t,le.abandonedHeadElementChild),e.openElements.push(e.headElement,T.HEAD),gr(e,t),e.openElements.remove(e.headElement);break}case T.HEAD:{e._err(t,le.misplacedStartTagForHeadElement);break}default:Yo(e,t)}}function hI(e,t){switch(t.tagID){case T.BODY:case T.HTML:case T.BR:{Yo(e,t);break}case T.TEMPLATE:{as(e,t);break}default:e._err(t,le.endTagWithoutMatchingOpenElement)}}function Yo(e,t){e._insertFakeElement(ee.BODY,T.BODY),e.insertionMode=q.IN_BODY,fd(e,t)}function fd(e,t){switch(t.type){case Ge.CHARACTER:{VC(e,t);break}case Ge.WHITESPACE_CHARACTER:{qC(e,t);break}case Ge.COMMENT:{c0(e,t);break}case Ge.START_TAG:{fn(e,t);break}case Ge.END_TAG:{dd(e,t);break}case Ge.EOF:{KC(e,t);break}}}function qC(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function VC(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function mI(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function pI(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function gI(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ge.HTML),e.insertionMode=q.IN_FRAMESET)}function bI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,ge.HTML)}function yI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&u0.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ge.HTML)}function EI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,ge.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function xI(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,ge.HTML),n||(e.formElement=e.openElements.current))}function TI(e,t){e.framesetOk=!1;const n=t.tagID;for(let a=e.openElements.stackTop;a>=0;a--){const s=e.openElements.tagIDs[a];if(n===T.LI&&s===T.LI||(n===T.DD||n===T.DT)&&(s===T.DD||s===T.DT)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(s!==T.ADDRESS&&s!==T.DIV&&s!==T.P&&e._isSpecialElement(e.openElements.items[a],s))break}e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,ge.HTML)}function vI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,ge.HTML),e.tokenizer.state=It.PLAINTEXT}function SI(e,t){e.openElements.hasInScope(T.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ge.HTML),e.framesetOk=!1}function CI(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(ee.A);n&&(gg(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ge.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function _I(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ge.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function AI(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(T.NOBR)&&(gg(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ge.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function kI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ge.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function wI(e,t){e.treeAdapter.getDocumentMode(e.document)!==tr.QUIRKS&&e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,ge.HTML),e.framesetOk=!1,e.insertionMode=q.IN_TABLE}function YC(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ge.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function $C(e){const t=IC(e,Vi.TYPE);return t!=null&&t.toLowerCase()===$D}function NI(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ge.HTML),$C(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function RI(e,t){e._appendElement(t,ge.HTML),t.ackSelfClosing=!0}function OI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._appendElement(t,ge.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function LI(e,t){t.tagName=ee.IMG,t.tagID=T.IMG,YC(e,t)}function DI(e,t){e._insertElement(t,ge.HTML),e.skipNextNewLine=!0,e.tokenizer.state=It.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=q.TEXT}function II(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,It.RAWTEXT)}function MI(e,t){e.framesetOk=!1,e._switchToTextParsing(t,It.RAWTEXT)}function MT(e,t){e._switchToTextParsing(t,It.RAWTEXT)}function PI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ge.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===q.IN_TABLE||e.insertionMode===q.IN_CAPTION||e.insertionMode===q.IN_TABLE_BODY||e.insertionMode===q.IN_ROW||e.insertionMode===q.IN_CELL?q.IN_SELECT_IN_TABLE:q.IN_SELECT}function BI(e,t){e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ge.HTML)}function jI(e,t){e.openElements.hasInScope(T.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ge.HTML)}function HI(e,t){e.openElements.hasInScope(T.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(T.RTC),e._insertElement(t,ge.HTML)}function UI(e,t){e._reconstructActiveFormattingElements(),UC(t),pg(t),t.selfClosing?e._appendElement(t,ge.MATHML):e._insertElement(t,ge.MATHML),t.ackSelfClosing=!0}function zI(e,t){e._reconstructActiveFormattingElements(),zC(t),pg(t),t.selfClosing?e._appendElement(t,ge.SVG):e._insertElement(t,ge.SVG),t.ackSelfClosing=!0}function PT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ge.HTML)}function fn(e,t){switch(t.tagID){case T.I:case T.S:case T.B:case T.U:case T.EM:case T.TT:case T.BIG:case T.CODE:case T.FONT:case T.SMALL:case T.STRIKE:case T.STRONG:{_I(e,t);break}case T.A:{CI(e,t);break}case T.H1:case T.H2:case T.H3:case T.H4:case T.H5:case T.H6:{yI(e,t);break}case T.P:case T.DL:case T.OL:case T.UL:case T.DIV:case T.DIR:case T.NAV:case T.MAIN:case T.MENU:case T.ASIDE:case T.CENTER:case T.FIGURE:case T.FOOTER:case T.HEADER:case T.HGROUP:case T.DIALOG:case T.DETAILS:case T.ADDRESS:case T.ARTICLE:case T.SEARCH:case T.SECTION:case T.SUMMARY:case T.FIELDSET:case T.BLOCKQUOTE:case T.FIGCAPTION:{bI(e,t);break}case T.LI:case T.DD:case T.DT:{TI(e,t);break}case T.BR:case T.IMG:case T.WBR:case T.AREA:case T.EMBED:case T.KEYGEN:{YC(e,t);break}case T.HR:{OI(e,t);break}case T.RB:case T.RTC:{jI(e,t);break}case T.RT:case T.RP:{HI(e,t);break}case T.PRE:case T.LISTING:{EI(e,t);break}case T.XMP:{II(e,t);break}case T.SVG:{zI(e,t);break}case T.HTML:{mI(e,t);break}case T.BASE:case T.LINK:case T.META:case T.STYLE:case T.TITLE:case T.SCRIPT:case T.BGSOUND:case T.BASEFONT:case T.TEMPLATE:{gr(e,t);break}case T.BODY:{pI(e,t);break}case T.FORM:{xI(e,t);break}case T.NOBR:{AI(e,t);break}case T.MATH:{UI(e,t);break}case T.TABLE:{wI(e,t);break}case T.INPUT:{NI(e,t);break}case T.PARAM:case T.TRACK:case T.SOURCE:{RI(e,t);break}case T.IMAGE:{LI(e,t);break}case T.BUTTON:{SI(e,t);break}case T.APPLET:case T.OBJECT:case T.MARQUEE:{kI(e,t);break}case T.IFRAME:{MI(e,t);break}case T.SELECT:{PI(e,t);break}case T.OPTION:case T.OPTGROUP:{BI(e,t);break}case T.NOEMBED:case T.NOFRAMES:{MT(e,t);break}case T.FRAMESET:{gI(e,t);break}case T.TEXTAREA:{DI(e,t);break}case T.NOSCRIPT:{e.options.scriptingEnabled?MT(e,t):PT(e,t);break}case T.PLAINTEXT:{vI(e,t);break}case T.COL:case T.TH:case T.TD:case T.TR:case T.HEAD:case T.FRAME:case T.TBODY:case T.TFOOT:case T.THEAD:case T.CAPTION:case T.COLGROUP:break;default:PT(e,t)}}function FI(e,t){if(e.openElements.hasInScope(T.BODY)&&(e.insertionMode=q.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function qI(e,t){e.openElements.hasInScope(T.BODY)&&(e.insertionMode=q.AFTER_BODY,n_(e,t))}function VI(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function YI(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(T.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(T.FORM):n&&e.openElements.remove(n))}function $I(e){e.openElements.hasInButtonScope(T.P)||e._insertFakeElement(ee.P,T.P),e._closePElement()}function GI(e){e.openElements.hasInListItemScope(T.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(T.LI),e.openElements.popUntilTagNamePopped(T.LI))}function KI(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function XI(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function QI(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function WI(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(ee.BR,T.BR),e.openElements.pop(),e.framesetOk=!1}function GC(e,t){const n=t.tagName,a=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){const l=e.openElements.items[s],u=e.openElements.tagIDs[s];if(a===u&&(a!==T.UNKNOWN||e.treeAdapter.getTagName(l)===n)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(l,u))break}}function dd(e,t){switch(t.tagID){case T.A:case T.B:case T.I:case T.S:case T.U:case T.EM:case T.TT:case T.BIG:case T.CODE:case T.FONT:case T.NOBR:case T.SMALL:case T.STRIKE:case T.STRONG:{gg(e,t);break}case T.P:{$I(e);break}case T.DL:case T.UL:case T.OL:case T.DIR:case T.DIV:case T.NAV:case T.PRE:case T.MAIN:case T.MENU:case T.ASIDE:case T.BUTTON:case T.CENTER:case T.FIGURE:case T.FOOTER:case T.HEADER:case T.HGROUP:case T.DIALOG:case T.ADDRESS:case T.ARTICLE:case T.DETAILS:case T.SEARCH:case T.SECTION:case T.SUMMARY:case T.LISTING:case T.FIELDSET:case T.BLOCKQUOTE:case T.FIGCAPTION:{VI(e,t);break}case T.LI:{GI(e);break}case T.DD:case T.DT:{KI(e,t);break}case T.H1:case T.H2:case T.H3:case T.H4:case T.H5:case T.H6:{XI(e);break}case T.BR:{WI(e);break}case T.BODY:{FI(e,t);break}case T.HTML:{qI(e,t);break}case T.FORM:{YI(e);break}case T.APPLET:case T.OBJECT:case T.MARQUEE:{QI(e,t);break}case T.TEMPLATE:{as(e,t);break}default:GC(e,t)}}function KC(e,t){e.tmplInsertionModeStack.length>0?t_(e,t):bg(e,t)}function ZI(e,t){var n;t.tagID===T.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function JI(e,t){e._err(t,le.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function dp(e,t){if(e.openElements.currentTagId!==void 0&&FC.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=q.IN_TABLE_TEXT,t.type){case Ge.CHARACTER:{QC(e,t);break}case Ge.WHITESPACE_CHARACTER:{XC(e,t);break}}else du(e,t)}function eM(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ge.HTML),e.insertionMode=q.IN_CAPTION}function tM(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ge.HTML),e.insertionMode=q.IN_COLUMN_GROUP}function nM(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ee.COLGROUP,T.COLGROUP),e.insertionMode=q.IN_COLUMN_GROUP,yg(e,t)}function rM(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ge.HTML),e.insertionMode=q.IN_TABLE_BODY}function aM(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ee.TBODY,T.TBODY),e.insertionMode=q.IN_TABLE_BODY,hd(e,t)}function iM(e,t){e.openElements.hasInTableScope(T.TABLE)&&(e.openElements.popUntilTagNamePopped(T.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function sM(e,t){$C(t)?e._appendElement(t,ge.HTML):du(e,t),t.ackSelfClosing=!0}function lM(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ge.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function gl(e,t){switch(t.tagID){case T.TD:case T.TH:case T.TR:{aM(e,t);break}case T.STYLE:case T.SCRIPT:case T.TEMPLATE:{gr(e,t);break}case T.COL:{nM(e,t);break}case T.FORM:{lM(e,t);break}case T.TABLE:{iM(e,t);break}case T.TBODY:case T.TFOOT:case T.THEAD:{rM(e,t);break}case T.INPUT:{sM(e,t);break}case T.CAPTION:{eM(e,t);break}case T.COLGROUP:{tM(e,t);break}default:du(e,t)}}function nu(e,t){switch(t.tagID){case T.TABLE:{e.openElements.hasInTableScope(T.TABLE)&&(e.openElements.popUntilTagNamePopped(T.TABLE),e._resetInsertionMode());break}case T.TEMPLATE:{as(e,t);break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:case T.TBODY:case T.TD:case T.TFOOT:case T.TH:case T.THEAD:case T.TR:break;default:du(e,t)}}function du(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,fd(e,t),e.fosterParentingEnabled=n}function XC(e,t){e.pendingCharacterTokens.push(t)}function QC(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Ao(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)du(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const WC=new Set([T.CAPTION,T.COL,T.COLGROUP,T.TBODY,T.TD,T.TFOOT,T.TH,T.THEAD,T.TR]);function oM(e,t){const n=t.tagID;WC.has(n)?e.openElements.hasInTableScope(T.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=q.IN_TABLE,gl(e,t)):fn(e,t)}function uM(e,t){const n=t.tagID;switch(n){case T.CAPTION:case T.TABLE:{e.openElements.hasInTableScope(T.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=q.IN_TABLE,n===T.TABLE&&nu(e,t));break}case T.BODY:case T.COL:case T.COLGROUP:case T.HTML:case T.TBODY:case T.TD:case T.TFOOT:case T.TH:case T.THEAD:case T.TR:break;default:dd(e,t)}}function yg(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.COL:{e._appendElement(t,ge.HTML),t.ackSelfClosing=!0;break}case T.TEMPLATE:{gr(e,t);break}default:Pf(e,t)}}function cM(e,t){switch(t.tagID){case T.COLGROUP:{e.openElements.currentTagId===T.COLGROUP&&(e.openElements.pop(),e.insertionMode=q.IN_TABLE);break}case T.TEMPLATE:{as(e,t);break}case T.COL:break;default:Pf(e,t)}}function Pf(e,t){e.openElements.currentTagId===T.COLGROUP&&(e.openElements.pop(),e.insertionMode=q.IN_TABLE,e._processToken(t))}function hd(e,t){switch(t.tagID){case T.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ge.HTML),e.insertionMode=q.IN_ROW;break}case T.TH:case T.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(ee.TR,T.TR),e.insertionMode=q.IN_ROW,md(e,t);break}case T.CAPTION:case T.COL:case T.COLGROUP:case T.TBODY:case T.TFOOT:case T.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE,gl(e,t));break}default:gl(e,t)}}function f0(e,t){const n=t.tagID;switch(t.tagID){case T.TBODY:case T.TFOOT:case T.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE);break}case T.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE,nu(e,t));break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:case T.TD:case T.TH:case T.TR:break;default:nu(e,t)}}function md(e,t){switch(t.tagID){case T.TH:case T.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ge.HTML),e.insertionMode=q.IN_CELL,e.activeFormattingElements.insertMarker();break}case T.CAPTION:case T.COL:case T.COLGROUP:case T.TBODY:case T.TFOOT:case T.THEAD:case T.TR:{e.openElements.hasInTableScope(T.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE_BODY,hd(e,t));break}default:gl(e,t)}}function ZC(e,t){switch(t.tagID){case T.TR:{e.openElements.hasInTableScope(T.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE_BODY);break}case T.TABLE:{e.openElements.hasInTableScope(T.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE_BODY,f0(e,t));break}case T.TBODY:case T.TFOOT:case T.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(T.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE_BODY,f0(e,t));break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:case T.TD:case T.TH:break;default:nu(e,t)}}function fM(e,t){const n=t.tagID;WC.has(n)?(e.openElements.hasInTableScope(T.TD)||e.openElements.hasInTableScope(T.TH))&&(e._closeTableCell(),md(e,t)):fn(e,t)}function dM(e,t){const n=t.tagID;switch(n){case T.TD:case T.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=q.IN_ROW);break}case T.TABLE:case T.TBODY:case T.TFOOT:case T.THEAD:case T.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),ZC(e,t));break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:break;default:dd(e,t)}}function JC(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.OPTION:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e._insertElement(t,ge.HTML);break}case T.OPTGROUP:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ge.HTML);break}case T.HR:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ge.HTML),t.ackSelfClosing=!0;break}case T.INPUT:case T.KEYGEN:case T.TEXTAREA:case T.SELECT:{e.openElements.hasInSelectScope(T.SELECT)&&(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode(),t.tagID!==T.SELECT&&e._processStartTag(t));break}case T.SCRIPT:case T.TEMPLATE:{gr(e,t);break}}}function e_(e,t){switch(t.tagID){case T.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===T.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===T.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop();break}case T.OPTION:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop();break}case T.SELECT:{e.openElements.hasInSelectScope(T.SELECT)&&(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode());break}case T.TEMPLATE:{as(e,t);break}}}function hM(e,t){const n=t.tagID;n===T.CAPTION||n===T.TABLE||n===T.TBODY||n===T.TFOOT||n===T.THEAD||n===T.TR||n===T.TD||n===T.TH?(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode(),e._processStartTag(t)):JC(e,t)}function mM(e,t){const n=t.tagID;n===T.CAPTION||n===T.TABLE||n===T.TBODY||n===T.TFOOT||n===T.THEAD||n===T.TR||n===T.TD||n===T.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode(),e.onEndTag(t)):e_(e,t)}function pM(e,t){switch(t.tagID){case T.BASE:case T.BASEFONT:case T.BGSOUND:case T.LINK:case T.META:case T.NOFRAMES:case T.SCRIPT:case T.STYLE:case T.TEMPLATE:case T.TITLE:{gr(e,t);break}case T.CAPTION:case T.COLGROUP:case T.TBODY:case T.TFOOT:case T.THEAD:{e.tmplInsertionModeStack[0]=q.IN_TABLE,e.insertionMode=q.IN_TABLE,gl(e,t);break}case T.COL:{e.tmplInsertionModeStack[0]=q.IN_COLUMN_GROUP,e.insertionMode=q.IN_COLUMN_GROUP,yg(e,t);break}case T.TR:{e.tmplInsertionModeStack[0]=q.IN_TABLE_BODY,e.insertionMode=q.IN_TABLE_BODY,hd(e,t);break}case T.TD:case T.TH:{e.tmplInsertionModeStack[0]=q.IN_ROW,e.insertionMode=q.IN_ROW,md(e,t);break}default:e.tmplInsertionModeStack[0]=q.IN_BODY,e.insertionMode=q.IN_BODY,fn(e,t)}}function gM(e,t){t.tagID===T.TEMPLATE&&as(e,t)}function t_(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(T.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):bg(e,t)}function bM(e,t){t.tagID===T.HTML?fn(e,t):Bf(e,t)}function n_(e,t){var n;if(t.tagID===T.HTML){if(e.fragmentContext||(e.insertionMode=q.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===T.HTML){e._setEndLocation(e.openElements.items[0],t);const a=e.openElements.items[1];a&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(a))===null||n===void 0)&&n.endTag)&&e._setEndLocation(a,t)}}else Bf(e,t)}function Bf(e,t){e.insertionMode=q.IN_BODY,fd(e,t)}function yM(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.FRAMESET:{e._insertElement(t,ge.HTML);break}case T.FRAME:{e._appendElement(t,ge.HTML),t.ackSelfClosing=!0;break}case T.NOFRAMES:{gr(e,t);break}}}function EM(e,t){t.tagID===T.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==T.FRAMESET&&(e.insertionMode=q.AFTER_FRAMESET))}function xM(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.NOFRAMES:{gr(e,t);break}}}function TM(e,t){t.tagID===T.HTML&&(e.insertionMode=q.AFTER_AFTER_FRAMESET)}function vM(e,t){t.tagID===T.HTML?fn(e,t):bf(e,t)}function bf(e,t){e.insertionMode=q.IN_BODY,fd(e,t)}function SM(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.NOFRAMES:{gr(e,t);break}}}function CM(e,t){t.chars=_t,e._insertCharacters(t)}function _M(e,t){e._insertCharacters(t),e.framesetOk=!1}function r_(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ge.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function AM(e,t){if(zD(t))r_(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),a=e.treeAdapter.getNamespaceURI(n);a===ge.MATHML?UC(t):a===ge.SVG&&(FD(t),zC(t)),pg(t),t.selfClosing?e._appendElement(t,a):e._insertElement(t,a),t.ackSelfClosing=!0}}function kM(e,t){if(t.tagID===T.P||t.tagID===T.BR){r_(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const a=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(a)===ge.HTML){e._endTagOutsideForeignContent(t);break}const s=e.treeAdapter.getTagName(a);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(n);break}}}ee.AREA,ee.BASE,ee.BASEFONT,ee.BGSOUND,ee.BR,ee.COL,ee.EMBED,ee.FRAME,ee.HR,ee.IMG,ee.INPUT,ee.KEYGEN,ee.LINK,ee.META,ee.PARAM,ee.SOURCE,ee.TRACK,ee.WBR;const pd=a_("end"),Dr=a_("start");function a_(e){return t;function t(n){const a=n&&n.position&&n.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function i_(e){const t=Dr(e),n=pd(e);if(t&&n)return{start:t,end:n}}const wM=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,NM=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),BT={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function s_(e,t){const n=HM(e),a=NC("type",{handlers:{root:RM,element:OM,text:LM,comment:o_,doctype:DM,raw:MM},unknown:PM}),s={parser:n?new IT(BT):IT.getFragmentParser(void 0,BT),handle(c){a(c,s)},stitches:!1,options:t||{}};a(e,s),_l(s,Dr());const l=n?s.parser.document:s.parser.getFragment(),u=U5(l,{file:s.options.file});return s.stitches&&hr(u,"comment",function(c,d,h){const m=c;if(m.value.stitch&&h&&d!==void 0){const p=h.children;return p[d]=m.value.stitch,d}}),u.type==="root"&&u.children.length===1&&u.children[0].type===e.type?u.children[0]:u}function l_(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function RM(e,t){l_(e.children,t)}function OM(e,t){BM(e,t),l_(e.children,t),jM(e,t)}function LM(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Ge.CHARACTER,chars:e.value,location:hu(e)};_l(t,Dr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function DM(e,t){const n={type:Ge.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:hu(e)};_l(t,Dr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function IM(e,t){t.stitches=!0;const n=UM(e);if("children"in e&&"children"in n){const a=s_({type:"root",children:e.children},t.options);n.children=a.children}o_({type:"comment",value:{stitch:n}},t)}function o_(e,t){const n=e.value,a={type:Ge.COMMENT,data:n,location:hu(e)};_l(t,Dr(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function MM(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,u_(t,Dr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(wM,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function PM(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))IM(n,t);else{let a="";throw NM.has(n.type)&&(a=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+a)}}function _l(e,t){u_(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=It.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function u_(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function BM(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===It.PLAINTEXT)return;_l(t,Dr(e));const a=t.parser.openElements.current;let s="namespaceURI"in a?a.namespaceURI:Ui.html;s===Ui.html&&n==="svg"&&(s=Ui.svg);const l=Y5({...e,children:[]},{space:s===Ui.svg?"svg":"html"}),u={type:Ge.START_TAG,tagName:n,tagID:Cl(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in l?l.attrs:[],location:hu(e)};t.parser.currentToken=u,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function jM(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&J5.includes(n)||t.parser.tokenizer.state===It.PLAINTEXT)return;_l(t,pd(e));const a={type:Ge.END_TAG,tagName:n,tagID:Cl(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:hu(e)};t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===It.RCDATA||t.parser.tokenizer.state===It.RAWTEXT||t.parser.tokenizer.state===It.SCRIPT_DATA)&&(t.parser.tokenizer.state=It.DATA)}function HM(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function hu(e){const t=Dr(e)||{line:void 0,column:void 0,offset:void 0},n=pd(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function UM(e){return"children"in e?Xi({...e,children:[]}):Xi(e)}function d0(e){return function(t,n){return s_(t,{...e,file:n})}}const Ni=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Mi={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Ni,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Ni],h2:[["className","sr-only"]],img:[...Ni,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Ni,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Ni],table:[...Ni],ul:[...Ni,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},$a={}.hasOwnProperty;function zM(e,t){let n={type:"root",children:[]};const a={schema:t?{...Mi,...t}:Mi,stack:[]},s=c_(a,e);return s&&(Array.isArray(s)?s.length===1?n=s[0]:n.children=s:n=s),n}function c_(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return FM(e,n);case"doctype":return qM(e,n);case"element":return VM(e,n);case"root":return YM(e,n);case"text":return $M(e,n)}}}function FM(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",a=n.indexOf("-->"),l={type:"comment",value:a<0?n:n.slice(0,a)};return mu(l,t),l}}function qM(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return mu(n,t),n}}function VM(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const a=f_(e,t.children),s=GM(e,t.properties);e.stack.pop();let l=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(l=!0,e.schema.ancestors&&$a.call(e.schema.ancestors,n))){const c=e.schema.ancestors[n];let d=-1;for(l=!1;++d<c.length;)e.stack.includes(c[d])&&(l=!0)}if(!l)return e.schema.strip&&!e.schema.strip.includes(n)?a:void 0;const u={type:"element",tagName:n,properties:s,children:a};return mu(u,t),u}function YM(e,t){const a={type:"root",children:f_(e,t.children)};return mu(a,t),a}function $M(e,t){const a={type:"text",value:typeof t.value=="string"?t.value:""};return mu(a,t),a}function f_(e,t){const n=[];if(Array.isArray(t)){const a=t;let s=-1;for(;++s<a.length;){const l=c_(e,a[s]);l&&(Array.isArray(l)?n.push(...l):n.push(l))}}return n}function GM(e,t){const n=e.stack[e.stack.length-1],a=e.schema.attributes,s=e.schema.required,l=a&&$a.call(a,n)?a[n]:void 0,u=a&&$a.call(a,"*")?a["*"]:void 0,c=t&&typeof t=="object"?t:{},d={};let h;for(h in c)if($a.call(c,h)){const m=c[h];let p=jT(e,HT(l,h),h,m);p==null&&(p=jT(e,HT(u,h),h,m)),p!=null&&(d[h]=p)}if(s&&$a.call(s,n)){const m=s[n];for(h in m)$a.call(m,h)&&!$a.call(d,h)&&(d[h]=m[h])}return d}function jT(e,t,n,a){return t?Array.isArray(a)?KM(e,t,n,a):d_(e,t,n,a):void 0}function KM(e,t,n,a){let s=-1;const l=[];for(;++s<a.length;){const u=d_(e,t,n,a[s]);(typeof u=="number"||typeof u=="string")&&l.push(u)}return l}function d_(e,t,n,a){if(!(typeof a!="boolean"&&typeof a!="number"&&typeof a!="string")&&XM(e,n,a)){if(typeof t=="object"&&t.length>1){let s=!1,l=0;for(;++l<t.length;){const u=t[l];if(u&&typeof u=="object"&&"flags"in u){if(u.test(String(a))){s=!0;break}}else if(u===a){s=!0;break}}if(!s)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+a:a}}function XM(e,t,n){const a=e.schema.protocols&&$a.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!a||a.length===0)return!0;const s=String(n),l=s.indexOf(":"),u=s.indexOf("?"),c=s.indexOf("#"),d=s.indexOf("/");if(l<0||d>-1&&l>d||u>-1&&l>u||c>-1&&l>c)return!0;let h=-1;for(;++h<a.length;){const m=a[h];if(l===m.length&&s.slice(0,m.length)===m)return!0}return!1}function mu(e,t){const n=i_(t);t.data&&(e.data=Xi(t.data)),n&&(e.position=n)}function HT(e,t){let n,a=-1;if(e)for(;++a<e.length;){const s=e[a],l=typeof s=="string"?s:s[0];if(l===t)return s;l==="data*"&&(n=s)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function h_(e){return function(t){return zM(t,e)}}function UT(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let a=0,s=n.indexOf(t);for(;s!==-1;)a++,s=n.indexOf(t,s+t.length);return a}const gn=si(/[A-Za-z]/),cn=si(/[\dA-Za-z]/),QM=si(/[#-'*+\--9=?A-Z^-~]/);function jf(e){return e!==null&&(e<32||e===127)}const h0=si(/\d/),WM=si(/[\dA-Fa-f]/),ZM=si(/[!-/:-@[-`{-~]/);function Oe(e){return e!==null&&e<-2}function xt(e){return e!==null&&(e<0||e===32)}function Ze(e){return e===-2||e===-1||e===32}const gd=si(new RegExp("\\p{P}|\\p{S}","u")),Qi=si(/\s/);function si(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function JM(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function e8(e,t,n){const s=sd((n||{}).ignore||[]),l=t8(t);let u=-1;for(;++u<l.length;)od(e,"text",c);function c(h,m){let p=-1,E;for(;++p<m.length;){const x=m[p],v=E?E.children:void 0;if(s(x,v?v.indexOf(x):void 0,E))return;E=x}if(E)return d(h,m)}function d(h,m){const p=m[m.length-1],E=l[u][0],x=l[u][1];let v=0;const _=p.children.indexOf(h);let k=!1,N=[];E.lastIndex=0;let w=E.exec(h.value);for(;w;){const I=w.index,F={index:w.index,input:w.input,stack:[...m,h]};let R=x(...w,F);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?E.lastIndex=I+1:(v!==I&&N.push({type:"text",value:h.value.slice(v,I)}),Array.isArray(R)?N.push(...R):R&&N.push(R),v=I+w[0].length,k=!0),!E.global)break;w=E.exec(h.value)}return k?(v<h.value.length&&N.push({type:"text",value:h.value.slice(v)}),p.children.splice(_,1,...N)):N=[h],_+N.length}}function t8(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a<n.length;){const s=n[a];t.push([n8(s[0]),r8(s[1])])}return t}function n8(e){return typeof e=="string"?new RegExp(JM(e),"g"):e}function r8(e){return typeof e=="function"?e:function(){return e}}const hp="phrasing",mp=["autolink","link","image","label"];function a8(){return{transforms:[f8],enter:{literalAutolink:s8,literalAutolinkEmail:pp,literalAutolinkHttp:pp,literalAutolinkWww:pp},exit:{literalAutolink:c8,literalAutolinkEmail:u8,literalAutolinkHttp:l8,literalAutolinkWww:o8}}}function i8(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:hp,notInConstruct:mp},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:hp,notInConstruct:mp},{character:":",before:"[ps]",after:"\\/",inConstruct:hp,notInConstruct:mp}]}}function s8(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function pp(e){this.config.enter.autolinkProtocol.call(this,e)}function l8(e){this.config.exit.autolinkProtocol.call(this,e)}function o8(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function u8(e){this.config.exit.autolinkEmail.call(this,e)}function c8(e){this.exit(e)}function f8(e){e8(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,d8],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),h8]],{ignore:["link","linkReference"]})}function d8(e,t,n,a,s){let l="";if(!m_(s)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!m8(n)))return!1;const u=p8(n+a);if(!u[0])return!1;const c={type:"link",title:null,url:l+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[c,{type:"text",value:u[1]}]:c}function h8(e,t,n,a){return!m_(a,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function m8(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function p8(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],a=n.indexOf(")");const s=UT(e,"(");let l=UT(e,")");for(;a!==-1&&s>l;)e+=n.slice(0,a+1),n=n.slice(a+1),a=n.indexOf(")"),l++;return[e,n]}function m_(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Qi(n)||gd(n))&&(!t||n!==47)}function dr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}p_.peek=C8;function g8(){this.buffer()}function b8(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function y8(){this.buffer()}function E8(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function x8(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=dr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function T8(e){this.exit(e)}function v8(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=dr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function S8(e){this.exit(e)}function C8(){return"["}function p_(e,t,n,a){const s=n.createTracker(a);let l=s.move("[^");const u=n.enter("footnoteReference"),c=n.enter("reference");return l+=s.move(n.safe(n.associationId(e),{after:"]",before:l})),c(),u(),l+=s.move("]"),l}function _8(){return{enter:{gfmFootnoteCallString:g8,gfmFootnoteCall:b8,gfmFootnoteDefinitionLabelString:y8,gfmFootnoteDefinition:E8},exit:{gfmFootnoteCallString:x8,gfmFootnoteCall:T8,gfmFootnoteDefinitionLabelString:v8,gfmFootnoteDefinition:S8}}}function A8(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:p_},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(a,s,l,u){const c=l.createTracker(u);let d=c.move("[^");const h=l.enter("footnoteDefinition"),m=l.enter("label");return d+=c.move(l.safe(l.associationId(a),{before:d,after:"]"})),m(),d+=c.move("]:"),a.children&&a.children.length>0&&(c.shift(4),d+=c.move((t?`
|
|
51
|
-
`:" ")+l.indentLines(l.containerFlow(a,c.current()),t?g_:k8))),h(),d}}function k8(e,t,n){return t===0?e:g_(e,t,n)}function g_(e,t,n){return(n?"":" ")+e}const w8=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];b_.peek=D8;function N8(){return{canContainEols:["delete"],enter:{strikethrough:O8},exit:{strikethrough:L8}}}function R8(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:w8}],handlers:{delete:b_}}}function O8(e){this.enter({type:"delete",children:[]},e)}function L8(e){this.exit(e)}function b_(e,t,n,a){const s=n.createTracker(a),l=n.enter("strikethrough");let u=s.move("~~");return u+=n.containerPhrasing(e,{...s.current(),before:u,after:"~"}),u+=s.move("~~"),l(),u}function D8(){return"~"}function I8(e){return e.length}function M8(e,t){const n=t||{},a=(n.align||[]).concat(),s=n.stringLength||I8,l=[],u=[],c=[],d=[];let h=0,m=-1;for(;++m<e.length;){const S=[],_=[];let k=-1;for(e[m].length>h&&(h=e[m].length);++k<e[m].length;){const N=P8(e[m][k]);if(n.alignDelimiters!==!1){const w=s(N);_[k]=w,(d[k]===void 0||w>d[k])&&(d[k]=w)}S.push(N)}u[m]=S,c[m]=_}let p=-1;if(typeof a=="object"&&"length"in a)for(;++p<h;)l[p]=zT(a[p]);else{const S=zT(a);for(;++p<h;)l[p]=S}p=-1;const E=[],x=[];for(;++p<h;){const S=l[p];let _="",k="";S===99?(_=":",k=":"):S===108?_=":":S===114&&(k=":");let N=n.alignDelimiters===!1?1:Math.max(1,d[p]-_.length-k.length);const w=_+"-".repeat(N)+k;n.alignDelimiters!==!1&&(N=_.length+N+k.length,N>d[p]&&(d[p]=N),x[p]=N),E[p]=w}u.splice(1,0,E),c.splice(1,0,x),m=-1;const v=[];for(;++m<u.length;){const S=u[m],_=c[m];p=-1;const k=[];for(;++p<h;){const N=S[p]||"";let w="",I="";if(n.alignDelimiters!==!1){const F=d[p]-(_[p]||0),R=l[p];R===114?w=" ".repeat(F):R===99?F%2?(w=" ".repeat(F/2+.5),I=" ".repeat(F/2-.5)):(w=" ".repeat(F/2),I=w):I=" ".repeat(F)}n.delimiterStart!==!1&&!p&&k.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&N==="")&&(n.delimiterStart!==!1||p)&&k.push(" "),n.alignDelimiters!==!1&&k.push(w),k.push(N),n.alignDelimiters!==!1&&k.push(I),n.padding!==!1&&k.push(" "),(n.delimiterEnd!==!1||p!==h-1)&&k.push("|")}v.push(n.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return v.join(`
|
|
52
|
-
`)}function P8(e){return e==null?"":String(e)}function zT(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function B8(e,t,n,a){const s=n.enter("blockquote"),l=n.createTracker(a);l.move("> "),l.shift(2);const u=n.indentLines(n.containerFlow(e,l.current()),j8);return s(),u}function j8(e,t,n){return">"+(n?"":" ")+e}function H8(e,t){return FT(e,t.inConstruct,!0)&&!FT(e,t.notInConstruct,!1)}function FT(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let a=-1;for(;++a<t.length;)if(e.includes(t[a]))return!0;return!1}function qT(e,t,n,a){let s=-1;for(;++s<n.unsafe.length;)if(n.unsafe[s].character===`
|
|
53
|
-
`&&H8(n.stack,n.unsafe[s]))return/[ \t]/.test(a.before)?"":" ";return`\\
|
|
54
|
-
`}function U8(e,t){const n=String(e);let a=n.indexOf(t),s=a,l=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===s?++l>u&&(u=l):l=1,s=a+t.length,a=n.indexOf(t,s);return u}function z8(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function F8(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function q8(e,t,n,a){const s=F8(n),l=e.value||"",u=s==="`"?"GraveAccent":"Tilde";if(z8(e,n)){const p=n.enter("codeIndented"),E=n.indentLines(l,V8);return p(),E}const c=n.createTracker(a),d=s.repeat(Math.max(U8(l,s)+1,3)),h=n.enter("codeFenced");let m=c.move(d);if(e.lang){const p=n.enter(`codeFencedLang${u}`);m+=c.move(n.safe(e.lang,{before:m,after:" ",encode:["`"],...c.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${u}`);m+=c.move(" "),m+=c.move(n.safe(e.meta,{before:m,after:`
|
|
55
|
-
`,encode:["`"],...c.current()})),p()}return m+=c.move(`
|
|
56
|
-
`),l&&(m+=c.move(l+`
|
|
57
|
-
`)),m+=c.move(d),h(),m}function V8(e,t,n){return(n?"":" ")+e}function Eg(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Y8(e,t,n,a){const s=Eg(n),l=s==='"'?"Quote":"Apostrophe",u=n.enter("definition");let c=n.enter("label");const d=n.createTracker(a);let h=d.move("[");return h+=d.move(n.safe(n.associationId(e),{before:h,after:"]",...d.current()})),h+=d.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(c=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":`
|
|
58
|
-
`,...d.current()}))),c(),e.title&&(c=n.enter(`title${l}`),h+=d.move(" "+s),h+=d.move(n.safe(e.title,{before:h,after:s,...d.current()})),h+=d.move(s),c()),u(),h}function $8(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ru(e){return"&#x"+e.toString(16).toUpperCase()+";"}function bl(e){if(e===null||xt(e)||Qi(e))return 1;if(gd(e))return 2}function Hf(e,t,n){const a=bl(e),s=bl(t);return a===void 0?s===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}y_.peek=G8;function y_(e,t,n,a){const s=$8(n),l=n.enter("emphasis"),u=n.createTracker(a),c=u.move(s);let d=u.move(n.containerPhrasing(e,{after:s,before:c,...u.current()}));const h=d.charCodeAt(0),m=Hf(a.before.charCodeAt(a.before.length-1),h,s);m.inside&&(d=ru(h)+d.slice(1));const p=d.charCodeAt(d.length-1),E=Hf(a.after.charCodeAt(0),p,s);E.inside&&(d=d.slice(0,-1)+ru(p));const x=u.move(s);return l(),n.attentionEncodeSurroundingInfo={after:E.outside,before:m.outside},c+d+x}function G8(e,t,n){return n.options.emphasis||"*"}const K8={};function xg(e,t){const n=K8,a=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return E_(e,a,s)}function E_(e,t,n){if(X8(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return VT(e.children,t,n)}return Array.isArray(e)?VT(e,t,n):""}function VT(e,t,n){const a=[];let s=-1;for(;++s<e.length;)a[s]=E_(e[s],t,n);return a.join("")}function X8(e){return!!(e&&typeof e=="object")}function Q8(e,t){let n=!1;return hr(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return n=!0,a0}),!!((!e.depth||e.depth<3)&&xg(e)&&(t.options.setext||n))}function W8(e,t,n,a){const s=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(a);if(Q8(e,n)){const m=n.enter("headingSetext"),p=n.enter("phrasing"),E=n.containerPhrasing(e,{...l.current(),before:`
|
|
59
|
-
`,after:`
|
|
60
|
-
`});return p(),m(),E+`
|
|
61
|
-
`+(s===1?"=":"-").repeat(E.length-(Math.max(E.lastIndexOf("\r"),E.lastIndexOf(`
|
|
62
|
-
`))+1))}const u="#".repeat(s),c=n.enter("headingAtx"),d=n.enter("phrasing");l.move(u+" ");let h=n.containerPhrasing(e,{before:"# ",after:`
|
|
63
|
-
`,...l.current()});return/^[\t ]/.test(h)&&(h=ru(h.charCodeAt(0))+h.slice(1)),h=h?u+" "+h:u,n.options.closeAtx&&(h+=" "+u),d(),c(),h}x_.peek=Z8;function x_(e){return e.value||""}function Z8(){return"<"}T_.peek=J8;function T_(e,t,n,a){const s=Eg(n),l=s==='"'?"Quote":"Apostrophe",u=n.enter("image");let c=n.enter("label");const d=n.createTracker(a);let h=d.move("![");return h+=d.move(n.safe(e.alt,{before:h,after:"]",...d.current()})),h+=d.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(c=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":")",...d.current()}))),c(),e.title&&(c=n.enter(`title${l}`),h+=d.move(" "+s),h+=d.move(n.safe(e.title,{before:h,after:s,...d.current()})),h+=d.move(s),c()),h+=d.move(")"),u(),h}function J8(){return"!"}v_.peek=e9;function v_(e,t,n,a){const s=e.referenceType,l=n.enter("imageReference");let u=n.enter("label");const c=n.createTracker(a);let d=c.move("![");const h=n.safe(e.alt,{before:d,after:"]",...c.current()});d+=c.move(h+"]["),u();const m=n.stack;n.stack=[],u=n.enter("reference");const p=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return u(),n.stack=m,l(),s==="full"||!h||h!==p?d+=c.move(p+"]"):s==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function e9(){return"!"}S_.peek=t9;function S_(e,t,n){let a=e.value||"",s="`",l=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(a);)s+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++l<n.unsafe.length;){const u=n.unsafe[l],c=n.compilePattern(u);let d;if(u.atBreak)for(;d=c.exec(a);){let h=d.index;a.charCodeAt(h)===10&&a.charCodeAt(h-1)===13&&h--,a=a.slice(0,h)+" "+a.slice(d.index+1)}}return s+a+s}function t9(){return"`"}function C_(e,t){const n=xg(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}__.peek=n9;function __(e,t,n,a){const s=Eg(n),l=s==='"'?"Quote":"Apostrophe",u=n.createTracker(a);let c,d;if(C_(e,n)){const m=n.stack;n.stack=[],c=n.enter("autolink");let p=u.move("<");return p+=u.move(n.containerPhrasing(e,{before:p,after:">",...u.current()})),p+=u.move(">"),c(),n.stack=m,p}c=n.enter("link"),d=n.enter("label");let h=u.move("[");return h+=u.move(n.containerPhrasing(e,{before:h,after:"](",...u.current()})),h+=u.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(n.safe(e.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(d=n.enter("destinationRaw"),h+=u.move(n.safe(e.url,{before:h,after:e.title?" ":")",...u.current()}))),d(),e.title&&(d=n.enter(`title${l}`),h+=u.move(" "+s),h+=u.move(n.safe(e.title,{before:h,after:s,...u.current()})),h+=u.move(s),d()),h+=u.move(")"),c(),h}function n9(e,t,n){return C_(e,n)?"<":"["}A_.peek=r9;function A_(e,t,n,a){const s=e.referenceType,l=n.enter("linkReference");let u=n.enter("label");const c=n.createTracker(a);let d=c.move("[");const h=n.containerPhrasing(e,{before:d,after:"]",...c.current()});d+=c.move(h+"]["),u();const m=n.stack;n.stack=[],u=n.enter("reference");const p=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return u(),n.stack=m,l(),s==="full"||!h||h!==p?d+=c.move(p+"]"):s==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function r9(){return"["}function Tg(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function a9(e){const t=Tg(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function i9(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function k_(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function s9(e,t,n,a){const s=n.enter("list"),l=n.bulletCurrent;let u=e.ordered?i9(n):Tg(n);const c=e.ordered?u==="."?")":".":a9(n);let d=t&&n.bulletLastUsed?u===n.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&m&&(!m.children||!m.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(d=!0),k_(n)===u&&m){let p=-1;for(;++p<e.children.length;){const E=e.children[p];if(E&&E.type==="listItem"&&E.children&&E.children[0]&&E.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(u=c),n.bulletCurrent=u;const h=n.containerFlow(e,a);return n.bulletLastUsed=u,n.bulletCurrent=l,s(),h}function l9(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function o9(e,t,n,a){const s=l9(n);let l=n.bulletCurrent||Tg(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let u=l.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const c=n.createTracker(a);c.move(l+" ".repeat(u-l.length)),c.shift(u);const d=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,c.current()),m);return d(),h;function m(p,E,x){return E?(x?"":" ".repeat(u))+p:(x?l:l+" ".repeat(u-l.length))+p}}function u9(e,t,n,a){const s=n.enter("paragraph"),l=n.enter("phrasing"),u=n.containerPhrasing(e,a);return l(),s(),u}const c9=sd(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function f9(e,t,n,a){return(e.children.some(function(u){return c9(u)})?n.containerPhrasing:n.containerFlow).call(n,e,a)}function d9(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}w_.peek=h9;function w_(e,t,n,a){const s=d9(n),l=n.enter("strong"),u=n.createTracker(a),c=u.move(s+s);let d=u.move(n.containerPhrasing(e,{after:s,before:c,...u.current()}));const h=d.charCodeAt(0),m=Hf(a.before.charCodeAt(a.before.length-1),h,s);m.inside&&(d=ru(h)+d.slice(1));const p=d.charCodeAt(d.length-1),E=Hf(a.after.charCodeAt(0),p,s);E.inside&&(d=d.slice(0,-1)+ru(p));const x=u.move(s+s);return l(),n.attentionEncodeSurroundingInfo={after:E.outside,before:m.outside},c+d+x}function h9(e,t,n){return n.options.strong||"*"}function m9(e,t,n,a){return n.safe(e.value,a)}function p9(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function g9(e,t,n){const a=(k_(n)+(n.options.ruleSpaces?" ":"")).repeat(p9(n));return n.options.ruleSpaces?a.slice(0,-1):a}const N_={blockquote:B8,break:qT,code:q8,definition:Y8,emphasis:y_,hardBreak:qT,heading:W8,html:x_,image:T_,imageReference:v_,inlineCode:S_,link:__,linkReference:A_,list:s9,listItem:o9,paragraph:u9,root:f9,strong:w_,text:m9,thematicBreak:g9},YT=document.createElement("i");function vg(e){const t="&"+e+";";YT.innerHTML=t;const n=YT.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function R_(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const b9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function y9(e){return e.replace(b9,E9)}function E9(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),l=s===120||s===88;return R_(n.slice(l?2:1),l?16:10)}return vg(n)||e}function x9(){return{enter:{table:T9,tableData:$T,tableHeader:$T,tableRow:S9},exit:{codeText:C9,table:v9,tableData:gp,tableHeader:gp,tableRow:gp}}}function T9(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function v9(e){this.exit(e),this.data.inTable=void 0}function S9(e){this.enter({type:"tableRow",children:[]},e)}function gp(e){this.exit(e)}function $T(e){this.enter({type:"tableCell",children:[]},e)}function C9(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,_9));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function _9(e,t){return t==="|"?t:e}function A9(e){const t=e||{},n=t.tableCellPadding,a=t.tablePipeAlign,s=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
64
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:E,table:u,tableCell:d,tableRow:c}};function u(x,v,S,_){return h(m(x,S,_),x.align)}function c(x,v,S,_){const k=p(x,S,_),N=h([k]);return N.slice(0,N.indexOf(`
|
|
65
|
-
`))}function d(x,v,S,_){const k=S.enter("tableCell"),N=S.enter("phrasing"),w=S.containerPhrasing(x,{..._,before:l,after:l});return N(),k(),w}function h(x,v){return M8(x,{align:v,alignDelimiters:a,padding:n,stringLength:s})}function m(x,v,S){const _=x.children;let k=-1;const N=[],w=v.enter("table");for(;++k<_.length;)N[k]=p(_[k],v,S);return w(),N}function p(x,v,S){const _=x.children;let k=-1;const N=[],w=v.enter("tableRow");for(;++k<_.length;)N[k]=d(_[k],x,v,S);return w(),N}function E(x,v,S){let _=N_.inlineCode(x,v,S);return S.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function k9(){return{exit:{taskListCheckValueChecked:GT,taskListCheckValueUnchecked:GT,paragraph:N9}}}function w9(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:R9}}}function GT(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function N9(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const a=n.children[0];if(a&&a.type==="text"){const s=t.children;let l=-1,u;for(;++l<s.length;){const c=s[l];if(c.type==="paragraph"){u=c;break}}u===n&&(a.value=a.value.slice(1),a.value.length===0?n.children.shift():n.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,n.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function R9(e,t,n,a){const s=e.children[0],l=typeof e.checked=="boolean"&&s&&s.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",c=n.createTracker(a);l&&c.move(u);let d=N_.listItem(e,t,n,{...a,...c.current()});return l&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(m){return m+u}}function O9(){return[a8(),_8(),N8(),x9(),k9()]}function L9(e){return{extensions:[i8(),A8(e),R8(),A9(e),w9()]}}function Vn(e,t,n,a){const s=e.length;let l=0,u;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,n=n>0?n:0,a.length<1e4)u=Array.from(a),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);l<a.length;)u=a.slice(l,l+1e4),u.unshift(t,0),e.splice(...u),l+=1e4,t+=1e4}function nr(e,t){return e.length>0?(Vn(e,e.length,0,t),e):t}const KT={}.hasOwnProperty;function O_(e){const t={};let n=-1;for(;++n<e.length;)D9(t,e[n]);return t}function D9(e,t){let n;for(n in t){const s=(KT.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let u;if(l)for(u in l){KT.call(s,u)||(s[u]=[]);const c=l[u];I9(s[u],Array.isArray(c)?c:c?[c]:[])}}}function I9(e,t){let n=-1;const a=[];for(;++n<t.length;)(t[n].add==="after"?e:a).push(t[n]);Vn(e,0,0,a)}const M9={tokenize:z9,partial:!0},L_={tokenize:F9,partial:!0},D_={tokenize:q9,partial:!0},I_={tokenize:V9,partial:!0},P9={tokenize:Y9,partial:!0},M_={name:"wwwAutolink",tokenize:H9,previous:B_},P_={name:"protocolAutolink",tokenize:U9,previous:j_},ma={name:"emailAutolink",tokenize:j9,previous:H_},Ir={};function B9(){return{text:Ir}}let Ri=48;for(;Ri<123;)Ir[Ri]=ma,Ri++,Ri===58?Ri=65:Ri===91&&(Ri=97);Ir[43]=ma;Ir[45]=ma;Ir[46]=ma;Ir[95]=ma;Ir[72]=[ma,P_];Ir[104]=[ma,P_];Ir[87]=[ma,M_];Ir[119]=[ma,M_];function j9(e,t,n){const a=this;let s,l;return u;function u(p){return!m0(p)||!H_.call(a,a.previous)||Sg(a.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(p))}function c(p){return m0(p)?(e.consume(p),c):p===64?(e.consume(p),d):n(p)}function d(p){return p===46?e.check(P9,m,h)(p):p===45||p===95||cn(p)?(l=!0,e.consume(p),d):m(p)}function h(p){return e.consume(p),s=!0,d}function m(p){return l&&s&&gn(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function H9(e,t,n){const a=this;return s;function s(u){return u!==87&&u!==119||!B_.call(a,a.previous)||Sg(a.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(M9,e.attempt(L_,e.attempt(D_,l),n),n)(u))}function l(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function U9(e,t,n){const a=this;let s="",l=!1;return u;function u(p){return(p===72||p===104)&&j_.call(a,a.previous)&&!Sg(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(p),e.consume(p),c):n(p)}function c(p){if(gn(p)&&s.length<5)return s+=String.fromCodePoint(p),e.consume(p),c;if(p===58){const E=s.toLowerCase();if(E==="http"||E==="https")return e.consume(p),d}return n(p)}function d(p){return p===47?(e.consume(p),l?h:(l=!0,d)):n(p)}function h(p){return p===null||jf(p)||xt(p)||Qi(p)||gd(p)?n(p):e.attempt(L_,e.attempt(D_,m),n)(p)}function m(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function z9(e,t,n){let a=0;return s;function s(u){return(u===87||u===119)&&a<3?(a++,e.consume(u),s):u===46&&a===3?(e.consume(u),l):n(u)}function l(u){return u===null?n(u):t(u)}}function F9(e,t,n){let a,s,l;return u;function u(h){return h===46||h===95?e.check(I_,d,c)(h):h===null||xt(h)||Qi(h)||h!==45&&gd(h)?d(h):(l=!0,e.consume(h),u)}function c(h){return h===95?a=!0:(s=a,a=void 0),e.consume(h),u}function d(h){return s||a||!l?n(h):t(h)}}function q9(e,t){let n=0,a=0;return s;function s(u){return u===40?(n++,e.consume(u),s):u===41&&a<n?l(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(I_,t,l)(u):u===null||xt(u)||Qi(u)?t(u):(e.consume(u),s)}function l(u){return u===41&&a++,e.consume(u),s}}function V9(e,t,n){return a;function a(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),a):c===38?(e.consume(c),l):c===93?(e.consume(c),s):c===60||c===null||xt(c)||Qi(c)?t(c):n(c)}function s(c){return c===null||c===40||c===91||xt(c)||Qi(c)?t(c):a(c)}function l(c){return gn(c)?u(c):n(c)}function u(c){return c===59?(e.consume(c),a):gn(c)?(e.consume(c),u):n(c)}}function Y9(e,t,n){return a;function a(l){return e.consume(l),s}function s(l){return cn(l)?n(l):t(l)}}function B_(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||xt(e)}function j_(e){return!gn(e)}function H_(e){return!(e===47||m0(e))}function m0(e){return e===43||e===45||e===46||e===95||cn(e)}function Sg(e){let t=e.length,n=!1;for(;t--;){const a=e[t][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){n=!0;break}if(a._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Al(e){const t=[];let n=-1,a=0,s=0;for(;++n<e.length;){const l=e.charCodeAt(n);let u="";if(l===37&&cn(e.charCodeAt(n+1))&&cn(e.charCodeAt(n+2)))s=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(u=String.fromCharCode(l));else if(l>55295&&l<57344){const c=e.charCodeAt(n+1);l<56320&&c>56319&&c<57344?(u=String.fromCharCode(l,c),s=1):u="�"}else u=String.fromCharCode(l);u&&(t.push(e.slice(a,n),encodeURIComponent(u)),a=n+s+1,u=""),s&&(n+=s,s=0)}return t.join("")+e.slice(a)}function bd(e,t,n){const a=[];let s=-1;for(;++s<e.length;){const l=e[s].resolveAll;l&&!a.includes(l)&&(t=l(t,n),a.push(l))}return t}const p0={name:"attention",resolveAll:$9,tokenize:G9};function $9(e,t){let n=-1,a,s,l,u,c,d,h,m;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(a=n;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[a][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[a][1].end.offset-e[a][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[a][1].end},E={...e[n][1].start};XT(p,-d),XT(E,d),u={type:d>1?"strongSequence":"emphasisSequence",start:p,end:{...e[a][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:E},l={type:d>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[n][1].start}},s={type:d>1?"strong":"emphasis",start:{...u.start},end:{...c.end}},e[a][1].end={...u.start},e[n][1].start={...c.end},h=[],e[a][1].end.offset-e[a][1].start.offset&&(h=nr(h,[["enter",e[a][1],t],["exit",e[a][1],t]])),h=nr(h,[["enter",s,t],["enter",u,t],["exit",u,t],["enter",l,t]]),h=nr(h,bd(t.parser.constructs.insideSpan.null,e.slice(a+1,n),t)),h=nr(h,[["exit",l,t],["enter",c,t],["exit",c,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,h=nr(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,Vn(e,a-1,n-a+3,h),n=a+h.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function G9(e,t){const n=this.parser.constructs.attentionMarkers.null,a=this.previous,s=bl(a);let l;return u;function u(d){return l=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===l)return e.consume(d),c;const h=e.exit("attentionSequence"),m=bl(d),p=!m||m===2&&s||n.includes(d),E=!s||s===2&&m||n.includes(a);return h._open=!!(l===42?p:p&&(s||!E)),h._close=!!(l===42?E:E&&(m||!p)),t(d)}}function XT(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const K9={name:"autolink",tokenize:X9};function X9(e,t,n){let a=0;return s;function s(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(x){return gn(x)?(e.consume(x),u):x===64?n(x):h(x)}function u(x){return x===43||x===45||x===46||cn(x)?(a=1,c(x)):h(x)}function c(x){return x===58?(e.consume(x),a=0,d):(x===43||x===45||x===46||cn(x))&&a++<32?(e.consume(x),c):(a=0,h(x))}function d(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):x===null||x===32||x===60||jf(x)?n(x):(e.consume(x),d)}function h(x){return x===64?(e.consume(x),m):QM(x)?(e.consume(x),h):n(x)}function m(x){return cn(x)?p(x):n(x)}function p(x){return x===46?(e.consume(x),a=0,m):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):E(x)}function E(x){if((x===45||cn(x))&&a++<63){const v=x===45?E:p;return e.consume(x),v}return n(x)}}function rt(e,t,n,a){const s=a?a-1:Number.POSITIVE_INFINITY;let l=0;return u;function u(d){return Ze(d)?(e.enter(n),c(d)):t(d)}function c(d){return Ze(d)&&l++<s?(e.consume(d),c):(e.exit(n),t(d))}}const pu={partial:!0,tokenize:Q9};function Q9(e,t,n){return a;function a(l){return Ze(l)?rt(e,s,"linePrefix")(l):s(l)}function s(l){return l===null||Oe(l)?t(l):n(l)}}const U_={continuation:{tokenize:Z9},exit:J9,name:"blockQuote",tokenize:W9};function W9(e,t,n){const a=this;return s;function s(u){if(u===62){const c=a.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),l}return n(u)}function l(u){return Ze(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function Z9(e,t,n){const a=this;return s;function s(u){return Ze(u)?rt(e,l,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):l(u)}function l(u){return e.attempt(U_,t,n)(u)}}function J9(e){e.exit("blockQuote")}const z_={name:"characterEscape",tokenize:eP};function eP(e,t,n){return a;function a(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),s}function s(l){return ZM(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const F_={name:"characterReference",tokenize:tP};function tP(e,t,n){const a=this;let s=0,l,u;return c;function c(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),d}function d(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),l=31,u=cn,m(p))}function h(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,u=WM,m):(e.enter("characterReferenceValue"),l=7,u=h0,m(p))}function m(p){if(p===59&&s){const E=e.exit("characterReferenceValue");return u===cn&&!vg(a.sliceSerialize(E))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(p)&&s++<l?(e.consume(p),m):n(p)}}const QT={partial:!0,tokenize:rP},WT={concrete:!0,name:"codeFenced",tokenize:nP};function nP(e,t,n){const a=this,s={partial:!0,tokenize:F};let l=0,u=0,c;return d;function d(R){return h(R)}function h(R){const M=a.events[a.events.length-1];return l=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,c=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(R)}function m(R){return R===c?(u++,e.consume(R),m):u<3?n(R):(e.exit("codeFencedFenceSequence"),Ze(R)?rt(e,p,"whitespace")(R):p(R))}function p(R){return R===null||Oe(R)?(e.exit("codeFencedFence"),a.interrupt?t(R):e.check(QT,S,I)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),E(R))}function E(R){return R===null||Oe(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(R)):Ze(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),rt(e,x,"whitespace")(R)):R===96&&R===c?n(R):(e.consume(R),E)}function x(R){return R===null||Oe(R)?p(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(R))}function v(R){return R===null||Oe(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(R)):R===96&&R===c?n(R):(e.consume(R),v)}function S(R){return e.attempt(s,I,_)(R)}function _(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),k}function k(R){return l>0&&Ze(R)?rt(e,N,"linePrefix",l+1)(R):N(R)}function N(R){return R===null||Oe(R)?e.check(QT,S,I)(R):(e.enter("codeFlowValue"),w(R))}function w(R){return R===null||Oe(R)?(e.exit("codeFlowValue"),N(R)):(e.consume(R),w)}function I(R){return e.exit("codeFenced"),t(R)}function F(R,M,H){let Y=0;return U;function U(ae){return R.enter("lineEnding"),R.consume(ae),R.exit("lineEnding"),J}function J(ae){return R.enter("codeFencedFence"),Ze(ae)?rt(R,Q,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ae):Q(ae)}function Q(ae){return ae===c?(R.enter("codeFencedFenceSequence"),se(ae)):H(ae)}function se(ae){return ae===c?(Y++,R.consume(ae),se):Y>=u?(R.exit("codeFencedFenceSequence"),Ze(ae)?rt(R,ue,"whitespace")(ae):ue(ae)):H(ae)}function ue(ae){return ae===null||Oe(ae)?(R.exit("codeFencedFence"),M(ae)):H(ae)}}}function rP(e,t,n){const a=this;return s;function s(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l)}function l(u){return a.parser.lazy[a.now().line]?n(u):t(u)}}const bp={name:"codeIndented",tokenize:iP},aP={partial:!0,tokenize:sP};function iP(e,t,n){const a=this;return s;function s(h){return e.enter("codeIndented"),rt(e,l,"linePrefix",5)(h)}function l(h){const m=a.events[a.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(h):n(h)}function u(h){return h===null?d(h):Oe(h)?e.attempt(aP,u,d)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||Oe(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),c)}function d(h){return e.exit("codeIndented"),t(h)}}function sP(e,t,n){const a=this;return s;function s(u){return a.parser.lazy[a.now().line]?n(u):Oe(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):rt(e,l,"linePrefix",5)(u)}function l(u){const c=a.events[a.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):Oe(u)?s(u):n(u)}}const lP={name:"codeText",previous:uP,resolve:oP,tokenize:cP};function oP(e){let t=e.length-4,n=3,a,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=n;++a<t;)if(e[a][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(a=n-1,t++;++a<=t;)s===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(s=a):(a===t||e[a][1].type==="lineEnding")&&(e[s][1].type="codeTextData",a!==s+2&&(e[s][1].end=e[a-1][1].end,e.splice(s+2,a-s-2),t-=a-s-2,a=s+2),s=void 0);return e}function uP(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function cP(e,t,n){let a=0,s,l;return u;function u(p){return e.enter("codeText"),e.enter("codeTextSequence"),c(p)}function c(p){return p===96?(e.consume(p),a++,c):(e.exit("codeTextSequence"),d(p))}function d(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),d):p===96?(l=e.enter("codeTextSequence"),s=0,m(p)):Oe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(p))}function h(p){return p===null||p===32||p===96||Oe(p)?(e.exit("codeTextData"),d(p)):(e.consume(p),h)}function m(p){return p===96?(e.consume(p),s++,m):s===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(l.type="codeTextData",h(p))}}class fP{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const a=n??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,n,a){const s=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&ko(this.left,a),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ko(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ko(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ko(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ko(this.left,n.reverse())}}}function ko(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function q_(e){const t={};let n=-1,a,s,l,u,c,d,h;const m=new fP(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(a=m.get(n),n&&a[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(d=a[1]._tokenizer.events,l=0,l<d.length&&d[l][1].type==="lineEndingBlank"&&(l+=2),l<d.length&&d[l][1].type==="content"))for(;++l<d.length&&d[l][1].type!=="content";)d[l][1].type==="chunkText"&&(d[l][1]._isInFirstContentOfListItem=!0,l++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,dP(m,n)),n=t[n],h=!0);else if(a[1]._container){for(l=n,s=void 0;l--;)if(u=m.get(l),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(s&&(m.get(s)[1].type="lineEndingBlank"),u[1].type="lineEnding",s=l);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;s&&(a[1].end={...m.get(s)[1].start},c=m.slice(s,n),c.unshift(a),m.splice(s,n-s+1,c))}}return Vn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function dP(e,t){const n=e.get(t)[1],a=e.get(t)[2];let s=t-1;const l=[];let u=n._tokenizer;u||(u=a.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const c=u.events,d=[],h={};let m,p,E=-1,x=n,v=0,S=0;const _=[S];for(;x;){for(;e.get(++s)[1]!==x;);l.push(s),x._tokenizer||(m=a.sliceStream(x),x.next||m.push(null),p&&u.defineSkip(x.start),x._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),x._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),p=x,x=x.next}for(x=n;++E<c.length;)c[E][0]==="exit"&&c[E-1][0]==="enter"&&c[E][1].type===c[E-1][1].type&&c[E][1].start.line!==c[E][1].end.line&&(S=E+1,_.push(S),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(u.events=[],x?(x._tokenizer=void 0,x.previous=void 0):_.pop(),E=_.length;E--;){const k=c.slice(_[E],_[E+1]),N=l.pop();d.push([N,N+k.length-1]),e.splice(N,2,k)}for(d.reverse(),E=-1;++E<d.length;)h[v+d[E][0]]=v+d[E][1],v+=d[E][1]-d[E][0]-1;return h}const hP={resolve:pP,tokenize:gP},mP={partial:!0,tokenize:bP};function pP(e){return q_(e),e}function gP(e,t){let n;return a;function a(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s(c)}function s(c){return c===null?l(c):Oe(c)?e.check(mP,u,l)(c):(e.consume(c),s)}function l(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function u(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,s}}function bP(e,t,n){const a=this;return s;function s(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),rt(e,l,"linePrefix")}function l(u){if(u===null||Oe(u))return n(u);const c=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):e.interrupt(a.parser.constructs.flow,n,t)(u)}}function V_(e,t,n,a,s,l,u,c,d){const h=d||Number.POSITIVE_INFINITY;let m=0;return p;function p(k){return k===60?(e.enter(a),e.enter(s),e.enter(l),e.consume(k),e.exit(l),E):k===null||k===32||k===41||jf(k)?n(k):(e.enter(a),e.enter(u),e.enter(c),e.enter("chunkString",{contentType:"string"}),S(k))}function E(k){return k===62?(e.enter(l),e.consume(k),e.exit(l),e.exit(s),e.exit(a),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),x(k))}function x(k){return k===62?(e.exit("chunkString"),e.exit(c),E(k)):k===null||k===60||Oe(k)?n(k):(e.consume(k),k===92?v:x)}function v(k){return k===60||k===62||k===92?(e.consume(k),x):x(k)}function S(k){return!m&&(k===null||k===41||xt(k))?(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(a),t(k)):m<h&&k===40?(e.consume(k),m++,S):k===41?(e.consume(k),m--,S):k===null||k===32||k===40||jf(k)?n(k):(e.consume(k),k===92?_:S)}function _(k){return k===40||k===41||k===92?(e.consume(k),S):S(k)}}function Y_(e,t,n,a,s,l){const u=this;let c=0,d;return h;function h(x){return e.enter(a),e.enter(s),e.consume(x),e.exit(s),e.enter(l),m}function m(x){return c>999||x===null||x===91||x===93&&!d||x===94&&!c&&"_hiddenFootnoteSupport"in u.parser.constructs?n(x):x===93?(e.exit(l),e.enter(s),e.consume(x),e.exit(s),e.exit(a),t):Oe(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===null||x===91||x===93||Oe(x)||c++>999?(e.exit("chunkString"),m(x)):(e.consume(x),d||(d=!Ze(x)),x===92?E:p)}function E(x){return x===91||x===92||x===93?(e.consume(x),c++,p):p(x)}}function $_(e,t,n,a,s,l){let u;return c;function c(E){return E===34||E===39||E===40?(e.enter(a),e.enter(s),e.consume(E),e.exit(s),u=E===40?41:E,d):n(E)}function d(E){return E===u?(e.enter(s),e.consume(E),e.exit(s),e.exit(a),t):(e.enter(l),h(E))}function h(E){return E===u?(e.exit(l),d(u)):E===null?n(E):Oe(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),rt(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===u||E===null||Oe(E)?(e.exit("chunkString"),h(E)):(e.consume(E),E===92?p:m)}function p(E){return E===u||E===92?(e.consume(E),m):m(E)}}function $o(e,t){let n;return a;function a(s){return Oe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,a):Ze(s)?rt(e,a,n?"linePrefix":"lineSuffix")(s):t(s)}}const yP={name:"definition",tokenize:xP},EP={partial:!0,tokenize:TP};function xP(e,t,n){const a=this;let s;return l;function l(x){return e.enter("definition"),u(x)}function u(x){return Y_.call(a,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function c(x){return s=dr(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),d):n(x)}function d(x){return xt(x)?$o(e,h)(x):h(x)}function h(x){return V_(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function m(x){return e.attempt(EP,p,p)(x)}function p(x){return Ze(x)?rt(e,E,"whitespace")(x):E(x)}function E(x){return x===null||Oe(x)?(e.exit("definition"),a.parser.defined.push(s),t(x)):n(x)}}function TP(e,t,n){return a;function a(c){return xt(c)?$o(e,s)(c):n(c)}function s(c){return $_(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function l(c){return Ze(c)?rt(e,u,"whitespace")(c):u(c)}function u(c){return c===null||Oe(c)?t(c):n(c)}}const vP={name:"hardBreakEscape",tokenize:SP};function SP(e,t,n){return a;function a(l){return e.enter("hardBreakEscape"),e.consume(l),s}function s(l){return Oe(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const CP={name:"headingAtx",resolve:_P,tokenize:AP};function _P(e,t){let n=e.length-2,a=3,s,l;return e[a][1].type==="whitespace"&&(a+=2),n-2>a&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(a===n-1||n-4>a&&e[n-2][1].type==="whitespace")&&(n-=a+1===n?2:4),n>a&&(s={type:"atxHeadingText",start:e[a][1].start,end:e[n][1].end},l={type:"chunkText",start:e[a][1].start,end:e[n][1].end,contentType:"text"},Vn(e,a,n-a+1,[["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]])),e}function AP(e,t,n){let a=0;return s;function s(m){return e.enter("atxHeading"),l(m)}function l(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&a++<6?(e.consume(m),u):m===null||xt(m)?(e.exit("atxHeadingSequence"),c(m)):n(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||Oe(m)?(e.exit("atxHeading"),t(m)):Ze(m)?rt(e,c,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),c(m))}function h(m){return m===null||m===35||xt(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),h)}}const kP=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ZT=["pre","script","style","textarea"],wP={concrete:!0,name:"htmlFlow",resolveTo:OP,tokenize:LP},NP={partial:!0,tokenize:IP},RP={partial:!0,tokenize:DP};function OP(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function LP(e,t,n){const a=this;let s,l,u,c,d;return h;function h(O){return m(O)}function m(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),p}function p(O){return O===33?(e.consume(O),E):O===47?(e.consume(O),l=!0,S):O===63?(e.consume(O),s=3,a.interrupt?t:D):gn(O)?(e.consume(O),u=String.fromCharCode(O),_):n(O)}function E(O){return O===45?(e.consume(O),s=2,x):O===91?(e.consume(O),s=5,c=0,v):gn(O)?(e.consume(O),s=4,a.interrupt?t:D):n(O)}function x(O){return O===45?(e.consume(O),a.interrupt?t:D):n(O)}function v(O){const Z="CDATA[";return O===Z.charCodeAt(c++)?(e.consume(O),c===Z.length?a.interrupt?t:Q:v):n(O)}function S(O){return gn(O)?(e.consume(O),u=String.fromCharCode(O),_):n(O)}function _(O){if(O===null||O===47||O===62||xt(O)){const Z=O===47,de=u.toLowerCase();return!Z&&!l&&ZT.includes(de)?(s=1,a.interrupt?t(O):Q(O)):kP.includes(u.toLowerCase())?(s=6,Z?(e.consume(O),k):a.interrupt?t(O):Q(O)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(O):l?N(O):w(O))}return O===45||cn(O)?(e.consume(O),u+=String.fromCharCode(O),_):n(O)}function k(O){return O===62?(e.consume(O),a.interrupt?t:Q):n(O)}function N(O){return Ze(O)?(e.consume(O),N):U(O)}function w(O){return O===47?(e.consume(O),U):O===58||O===95||gn(O)?(e.consume(O),I):Ze(O)?(e.consume(O),w):U(O)}function I(O){return O===45||O===46||O===58||O===95||cn(O)?(e.consume(O),I):F(O)}function F(O){return O===61?(e.consume(O),R):Ze(O)?(e.consume(O),F):w(O)}function R(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),d=O,M):Ze(O)?(e.consume(O),R):H(O)}function M(O){return O===d?(e.consume(O),d=null,Y):O===null||Oe(O)?n(O):(e.consume(O),M)}function H(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||xt(O)?F(O):(e.consume(O),H)}function Y(O){return O===47||O===62||Ze(O)?w(O):n(O)}function U(O){return O===62?(e.consume(O),J):n(O)}function J(O){return O===null||Oe(O)?Q(O):Ze(O)?(e.consume(O),J):n(O)}function Q(O){return O===45&&s===2?(e.consume(O),B):O===60&&s===1?(e.consume(O),G):O===62&&s===4?(e.consume(O),z):O===63&&s===3?(e.consume(O),D):O===93&&s===5?(e.consume(O),xe):Oe(O)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(NP,X,se)(O)):O===null||Oe(O)?(e.exit("htmlFlowData"),se(O)):(e.consume(O),Q)}function se(O){return e.check(RP,ue,X)(O)}function ue(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),ae}function ae(O){return O===null||Oe(O)?se(O):(e.enter("htmlFlowData"),Q(O))}function B(O){return O===45?(e.consume(O),D):Q(O)}function G(O){return O===47?(e.consume(O),u="",oe):Q(O)}function oe(O){if(O===62){const Z=u.toLowerCase();return ZT.includes(Z)?(e.consume(O),z):Q(O)}return gn(O)&&u.length<8?(e.consume(O),u+=String.fromCharCode(O),oe):Q(O)}function xe(O){return O===93?(e.consume(O),D):Q(O)}function D(O){return O===62?(e.consume(O),z):O===45&&s===2?(e.consume(O),D):Q(O)}function z(O){return O===null||Oe(O)?(e.exit("htmlFlowData"),X(O)):(e.consume(O),z)}function X(O){return e.exit("htmlFlow"),t(O)}}function DP(e,t,n){const a=this;return s;function s(u){return Oe(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):n(u)}function l(u){return a.parser.lazy[a.now().line]?n(u):t(u)}}function IP(e,t,n){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(pu,t,n)}}const MP={name:"htmlText",tokenize:PP};function PP(e,t,n){const a=this;let s,l,u;return c;function c(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),d}function d(D){return D===33?(e.consume(D),h):D===47?(e.consume(D),F):D===63?(e.consume(D),w):gn(D)?(e.consume(D),H):n(D)}function h(D){return D===45?(e.consume(D),m):D===91?(e.consume(D),l=0,v):gn(D)?(e.consume(D),N):n(D)}function m(D){return D===45?(e.consume(D),x):n(D)}function p(D){return D===null?n(D):D===45?(e.consume(D),E):Oe(D)?(u=p,G(D)):(e.consume(D),p)}function E(D){return D===45?(e.consume(D),x):p(D)}function x(D){return D===62?B(D):D===45?E(D):p(D)}function v(D){const z="CDATA[";return D===z.charCodeAt(l++)?(e.consume(D),l===z.length?S:v):n(D)}function S(D){return D===null?n(D):D===93?(e.consume(D),_):Oe(D)?(u=S,G(D)):(e.consume(D),S)}function _(D){return D===93?(e.consume(D),k):S(D)}function k(D){return D===62?B(D):D===93?(e.consume(D),k):S(D)}function N(D){return D===null||D===62?B(D):Oe(D)?(u=N,G(D)):(e.consume(D),N)}function w(D){return D===null?n(D):D===63?(e.consume(D),I):Oe(D)?(u=w,G(D)):(e.consume(D),w)}function I(D){return D===62?B(D):w(D)}function F(D){return gn(D)?(e.consume(D),R):n(D)}function R(D){return D===45||cn(D)?(e.consume(D),R):M(D)}function M(D){return Oe(D)?(u=M,G(D)):Ze(D)?(e.consume(D),M):B(D)}function H(D){return D===45||cn(D)?(e.consume(D),H):D===47||D===62||xt(D)?Y(D):n(D)}function Y(D){return D===47?(e.consume(D),B):D===58||D===95||gn(D)?(e.consume(D),U):Oe(D)?(u=Y,G(D)):Ze(D)?(e.consume(D),Y):B(D)}function U(D){return D===45||D===46||D===58||D===95||cn(D)?(e.consume(D),U):J(D)}function J(D){return D===61?(e.consume(D),Q):Oe(D)?(u=J,G(D)):Ze(D)?(e.consume(D),J):Y(D)}function Q(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),s=D,se):Oe(D)?(u=Q,G(D)):Ze(D)?(e.consume(D),Q):(e.consume(D),ue)}function se(D){return D===s?(e.consume(D),s=void 0,ae):D===null?n(D):Oe(D)?(u=se,G(D)):(e.consume(D),se)}function ue(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||xt(D)?Y(D):(e.consume(D),ue)}function ae(D){return D===47||D===62||xt(D)?Y(D):n(D)}function B(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function G(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),oe}function oe(D){return Ze(D)?rt(e,xe,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):xe(D)}function xe(D){return e.enter("htmlTextData"),u(D)}}const Cg={name:"labelEnd",resolveAll:UP,resolveTo:zP,tokenize:FP},BP={tokenize:qP},jP={tokenize:VP},HP={tokenize:YP};function UP(e){let t=-1;const n=[];for(;++t<e.length;){const a=e[t][1];if(n.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const s=a.type==="labelImage"?4:2;a.type="data",t+=s}}return e.length!==n.length&&Vn(e,0,e.length,n),e}function zP(e,t){let n=e.length,a=0,s,l,u,c;for(;n--;)if(s=e[n][1],l){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(l=n,s.type!=="labelLink")){a=2;break}}else s.type==="labelEnd"&&(u=n);const d={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[l][1].start},end:{...e[u][1].end}},m={type:"labelText",start:{...e[l+a+2][1].end},end:{...e[u-2][1].start}};return c=[["enter",d,t],["enter",h,t]],c=nr(c,e.slice(l+1,l+a+3)),c=nr(c,[["enter",m,t]]),c=nr(c,bd(t.parser.constructs.insideSpan.null,e.slice(l+a+4,u-3),t)),c=nr(c,[["exit",m,t],e[u-2],e[u-1],["exit",h,t]]),c=nr(c,e.slice(u+1)),c=nr(c,[["exit",d,t]]),Vn(e,l,e.length,c),e}function FP(e,t,n){const a=this;let s=a.events.length,l,u;for(;s--;)if((a.events[s][1].type==="labelImage"||a.events[s][1].type==="labelLink")&&!a.events[s][1]._balanced){l=a.events[s][1];break}return c;function c(E){return l?l._inactive?p(E):(u=a.parser.defined.includes(dr(a.sliceSerialize({start:l.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(E),e.exit("labelMarker"),e.exit("labelEnd"),d):n(E)}function d(E){return E===40?e.attempt(BP,m,u?m:p)(E):E===91?e.attempt(jP,m,u?h:p)(E):u?m(E):p(E)}function h(E){return e.attempt(HP,m,p)(E)}function m(E){return t(E)}function p(E){return l._balanced=!0,n(E)}}function qP(e,t,n){return a;function a(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),s}function s(p){return xt(p)?$o(e,l)(p):l(p)}function l(p){return p===41?m(p):V_(e,u,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function u(p){return xt(p)?$o(e,d)(p):m(p)}function c(p){return n(p)}function d(p){return p===34||p===39||p===40?$_(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):m(p)}function h(p){return xt(p)?$o(e,m)(p):m(p)}function m(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function VP(e,t,n){const a=this;return s;function s(c){return Y_.call(a,e,l,u,"reference","referenceMarker","referenceString")(c)}function l(c){return a.parser.defined.includes(dr(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function u(c){return n(c)}}function YP(e,t,n){return a;function a(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),s}function s(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const $P={name:"labelStartImage",resolveAll:Cg.resolveAll,tokenize:GP};function GP(e,t,n){const a=this;return s;function s(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),l}function l(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),u):n(c)}function u(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(c):t(c)}}const KP={name:"labelStartLink",resolveAll:Cg.resolveAll,tokenize:XP};function XP(e,t,n){const a=this;return s;function s(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),l}function l(u){return u===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(u):t(u)}}const yp={name:"lineEnding",tokenize:QP};function QP(e,t){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),rt(e,t,"linePrefix")}}const yf={name:"thematicBreak",tokenize:WP};function WP(e,t,n){let a=0,s;return l;function l(h){return e.enter("thematicBreak"),u(h)}function u(h){return s=h,c(h)}function c(h){return h===s?(e.enter("thematicBreakSequence"),d(h)):a>=3&&(h===null||Oe(h))?(e.exit("thematicBreak"),t(h)):n(h)}function d(h){return h===s?(e.consume(h),a++,d):(e.exit("thematicBreakSequence"),Ze(h)?rt(e,c,"whitespace")(h):c(h))}}const Rn={continuation:{tokenize:t7},exit:r7,name:"list",tokenize:e7},ZP={partial:!0,tokenize:a7},JP={partial:!0,tokenize:n7};function e7(e,t,n){const a=this,s=a.events[a.events.length-1];let l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,u=0;return c;function c(x){const v=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:h0(x)){if(a.containerState.type||(a.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(yf,n,h)(x):h(x);if(!a.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(x)}return n(x)}function d(x){return h0(x)&&++u<10?(e.consume(x),d):(!a.interrupt||u<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),h(x)):n(x)}function h(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,e.check(pu,a.interrupt?n:m,e.attempt(ZP,E,p))}function m(x){return a.containerState.initialBlankLine=!0,l++,E(x)}function p(x){return Ze(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),E):n(x)}function E(x){return a.containerState.size=l+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}function t7(e,t,n){const a=this;return a.containerState._closeFlow=void 0,e.check(pu,s,l);function s(c){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,rt(e,t,"listItemIndent",a.containerState.size+1)(c)}function l(c){return a.containerState.furtherBlankLines||!Ze(c)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,u(c)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(JP,t,u)(c))}function u(c){return a.containerState._closeFlow=!0,a.interrupt=void 0,rt(e,e.attempt(Rn,t,n),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function n7(e,t,n){const a=this;return rt(e,s,"listItemIndent",a.containerState.size+1);function s(l){const u=a.events[a.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===a.containerState.size?t(l):n(l)}}function r7(e){e.exit(this.containerState.type)}function a7(e,t,n){const a=this;return rt(e,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){const u=a.events[a.events.length-1];return!Ze(l)&&u&&u[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const JT={name:"setextUnderline",resolveTo:i7,tokenize:s7};function i7(e,t){let n=e.length,a,s,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){a=n;break}e[n][1].type==="paragraph"&&(s=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const u={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",l?(e.splice(s,0,["enter",u,t]),e.splice(l+1,0,["exit",e[a][1],t]),e[a][1].end={...e[l][1].end}):e[a][1]=u,e.push(["exit",u,t]),e}function s7(e,t,n){const a=this;let s;return l;function l(h){let m=a.events.length,p;for(;m--;)if(a.events[m][1].type!=="lineEnding"&&a.events[m][1].type!=="linePrefix"&&a.events[m][1].type!=="content"){p=a.events[m][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||p)?(e.enter("setextHeadingLine"),s=h,u(h)):n(h)}function u(h){return e.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===s?(e.consume(h),c):(e.exit("setextHeadingLineSequence"),Ze(h)?rt(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Oe(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const l7={tokenize:p7,partial:!0};function o7(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:d7,continuation:{tokenize:h7},exit:m7}},text:{91:{name:"gfmFootnoteCall",tokenize:f7},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:u7,resolveTo:c7}}}}function u7(e,t,n){const a=this;let s=a.events.length;const l=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u;for(;s--;){const d=a.events[s][1];if(d.type==="labelImage"){u=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return c;function c(d){if(!u||!u._balanced)return n(d);const h=dr(a.sliceSerialize({start:u.end,end:a.now()}));return h.codePointAt(0)!==94||!l.includes(h.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function c7(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},c=[e[n+1],e[n+2],["enter",a,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",l,t],["enter",u,t],["exit",u,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(n,e.length-n+1,...c),e}function f7(e,t,n){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let l=0,u;return c;function c(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),d}function d(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(p){if(l>999||p===93&&!u||p===null||p===91||xt(p))return n(p);if(p===93){e.exit("chunkString");const E=e.exit("gfmFootnoteCallString");return s.includes(dr(a.sliceSerialize(E)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return xt(p)||(u=!0),l++,e.consume(p),p===92?m:h}function m(p){return p===91||p===92||p===93?(e.consume(p),l++,h):h(p)}}function d7(e,t,n){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let l,u=0,c;return d;function d(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):n(v)}function m(v){if(u>999||v===93&&!c||v===null||v===91||xt(v))return n(v);if(v===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return l=dr(a.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),E}return xt(v)||(c=!0),u++,e.consume(v),v===92?p:m}function p(v){return v===91||v===92||v===93?(e.consume(v),u++,m):m(v)}function E(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),s.includes(l)||s.push(l),rt(e,x,"gfmFootnoteDefinitionWhitespace")):n(v)}function x(v){return t(v)}}function h7(e,t,n){return e.check(pu,t,e.attempt(l7,t,n))}function m7(e){e.exit("gfmFootnoteDefinition")}function p7(e,t,n){const a=this;return rt(e,s,"gfmFootnoteDefinitionIndent",5);function s(l){const u=a.events[a.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(l):n(l)}}function g7(e){let n=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:l,resolveAll:s};return n==null&&(n=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function s(u,c){let d=-1;for(;++d<u.length;)if(u[d][0]==="enter"&&u[d][1].type==="strikethroughSequenceTemporary"&&u[d][1]._close){let h=d;for(;h--;)if(u[h][0]==="exit"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._open&&u[d][1].end.offset-u[d][1].start.offset===u[h][1].end.offset-u[h][1].start.offset){u[d][1].type="strikethroughSequence",u[h][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},u[h][1].start),end:Object.assign({},u[d][1].end)},p={type:"strikethroughText",start:Object.assign({},u[h][1].end),end:Object.assign({},u[d][1].start)},E=[["enter",m,c],["enter",u[h][1],c],["exit",u[h][1],c],["enter",p,c]],x=c.parser.constructs.insideSpan.null;x&&Vn(E,E.length,0,bd(x,u.slice(h+1,d),c)),Vn(E,E.length,0,[["exit",p,c],["enter",u[d][1],c],["exit",u[d][1],c],["exit",m,c]]),Vn(u,h-1,d-h+3,E),d=h+E.length-2;break}}for(d=-1;++d<u.length;)u[d][1].type==="strikethroughSequenceTemporary"&&(u[d][1].type="data");return u}function l(u,c,d){const h=this.previous,m=this.events;let p=0;return E;function E(v){return h===126&&m[m.length-1][1].type!=="characterEscape"?d(v):(u.enter("strikethroughSequenceTemporary"),x(v))}function x(v){const S=bl(h);if(v===126)return p>1?d(v):(u.consume(v),p++,x);if(p<2&&!n)return d(v);const _=u.exit("strikethroughSequenceTemporary"),k=bl(v);return _._open=!k||k===2&&!!S,_._close=!S||S===2&&!!k,c(v)}}}class b7{constructor(){this.map=[]}add(t,n,a){y7(this,t,n,a)}consume(t){if(this.map.sort(function(l,u){return l[0]-u[0]}),this.map.length===0)return;let n=this.map.length;const a=[];for(;n>0;)n-=1,a.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];a.push(t.slice()),t.length=0;let s=a.pop();for(;s;){for(const l of s)t.push(l);s=a.pop()}this.map.length=0}}function y7(e,t,n,a){let s=0;if(!(n===0&&a.length===0)){for(;s<e.map.length;){if(e.map[s][0]===t){e.map[s][1]+=n,e.map[s][2].push(...a);return}s+=1}e.map.push([t,n,a])}}function E7(e,t){let n=!1;const a=[];for(;t<e.length;){const s=e[t];if(n){if(s[0]==="enter")s[1].type==="tableContent"&&a.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=a.length-1;a[l]=a[l]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return a}function x7(){return{flow:{null:{name:"table",tokenize:T7,resolveAll:v7}}}}function T7(e,t,n){const a=this;let s=0,l=0,u;return c;function c(U){let J=a.events.length-1;for(;J>-1;){const ue=a.events[J][1].type;if(ue==="lineEnding"||ue==="linePrefix")J--;else break}const Q=J>-1?a.events[J][1].type:null,se=Q==="tableHead"||Q==="tableRow"?R:d;return se===R&&a.parser.lazy[a.now().line]?n(U):se(U)}function d(U){return e.enter("tableHead"),e.enter("tableRow"),h(U)}function h(U){return U===124||(u=!0,l+=1),m(U)}function m(U){return U===null?n(U):Oe(U)?l>1?(l=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),x):n(U):Ze(U)?rt(e,m,"whitespace")(U):(l+=1,u&&(u=!1,s+=1),U===124?(e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),u=!0,m):(e.enter("data"),p(U)))}function p(U){return U===null||U===124||xt(U)?(e.exit("data"),m(U)):(e.consume(U),U===92?E:p)}function E(U){return U===92||U===124?(e.consume(U),p):p(U)}function x(U){return a.interrupt=!1,a.parser.lazy[a.now().line]?n(U):(e.enter("tableDelimiterRow"),u=!1,Ze(U)?rt(e,v,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):v(U))}function v(U){return U===45||U===58?_(U):U===124?(u=!0,e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),S):F(U)}function S(U){return Ze(U)?rt(e,_,"whitespace")(U):_(U)}function _(U){return U===58?(l+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(U),e.exit("tableDelimiterMarker"),k):U===45?(l+=1,k(U)):U===null||Oe(U)?I(U):F(U)}function k(U){return U===45?(e.enter("tableDelimiterFiller"),N(U)):F(U)}function N(U){return U===45?(e.consume(U),N):U===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(U),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(U))}function w(U){return Ze(U)?rt(e,I,"whitespace")(U):I(U)}function I(U){return U===124?v(U):U===null||Oe(U)?!u||s!==l?F(U):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(U)):F(U)}function F(U){return n(U)}function R(U){return e.enter("tableRow"),M(U)}function M(U){return U===124?(e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),M):U===null||Oe(U)?(e.exit("tableRow"),t(U)):Ze(U)?rt(e,M,"whitespace")(U):(e.enter("data"),H(U))}function H(U){return U===null||U===124||xt(U)?(e.exit("data"),M(U)):(e.consume(U),U===92?Y:H)}function Y(U){return U===92||U===124?(e.consume(U),H):H(U)}}function v7(e,t){let n=-1,a=!0,s=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,h,m,p;const E=new b7;for(;++n<e.length;){const x=e[n],v=x[1];x[0]==="enter"?v.type==="tableHead"?(c=!1,d!==0&&(e2(E,t,d,h,m),m=void 0,d=0),h={type:"table",start:Object.assign({},v.start),end:Object.assign({},v.end)},E.add(n,0,[["enter",h,t]])):v.type==="tableRow"||v.type==="tableDelimiterRow"?(a=!0,p=void 0,l=[0,0,0,0],u=[0,n+1,0,0],c&&(c=!1,m={type:"tableBody",start:Object.assign({},v.start),end:Object.assign({},v.end)},E.add(n,0,[["enter",m,t]])),s=v.type==="tableDelimiterRow"?2:m?3:1):s&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")?(a=!1,u[2]===0&&(l[1]!==0&&(u[0]=u[1],p=Wc(E,t,l,s,void 0,p),l=[0,0,0,0]),u[2]=n)):v.type==="tableCellDivider"&&(a?a=!1:(l[1]!==0&&(u[0]=u[1],p=Wc(E,t,l,s,void 0,p)),l=u,u=[l[1],n,0,0])):v.type==="tableHead"?(c=!0,d=n):v.type==="tableRow"||v.type==="tableDelimiterRow"?(d=n,l[1]!==0?(u[0]=u[1],p=Wc(E,t,l,s,n,p)):u[1]!==0&&(p=Wc(E,t,u,s,n,p)),s=0):s&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")&&(u[3]=n)}for(d!==0&&e2(E,t,d,h,m),E.consume(t.events),n=-1;++n<t.events.length;){const x=t.events[n];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=E7(t.events,n))}return e}function Wc(e,t,n,a,s,l){const u=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(l.end=Object.assign({},nl(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const d=nl(t.events,n[1]);if(l={type:u,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const h=nl(t.events,n[2]),m=nl(t.events,n[3]),p={type:c,start:Object.assign({},h),end:Object.assign({},m)};if(e.add(n[2],0,[["enter",p,t]]),a!==2){const E=t.events[n[2]],x=t.events[n[3]];if(E[1].end=Object.assign({},x[1].end),E[1].type="chunkText",E[1].contentType="text",n[3]>n[2]+1){const v=n[2]+1,S=n[3]-n[2]-1;e.add(v,S,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return s!==void 0&&(l.end=Object.assign({},nl(t.events,s)),e.add(s,0,[["exit",l,t]]),l=void 0),l}function e2(e,t,n,a,s){const l=[],u=nl(t.events,n);s&&(s.end=Object.assign({},u),l.push(["exit",s,t])),a.end=Object.assign({},u),l.push(["exit",a,t]),e.add(n+1,0,l)}function nl(e,t){const n=e[t],a=n[0]==="enter"?"start":"end";return n[1][a]}const S7={name:"tasklistCheck",tokenize:_7};function C7(){return{text:{91:S7}}}function _7(e,t,n){const a=this;return s;function s(d){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),l)}function l(d){return xt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),u):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),u):n(d)}function u(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(d)}function c(d){return Oe(d)?t(d):Ze(d)?e.check({tokenize:A7},t,n)(d):n(d)}}function A7(e,t,n){return rt(e,a,"whitespace");function a(s){return s===null?n(s):t(s)}}function k7(e){return O_([B9(),o7(),g7(e),x7(),C7()])}const w7={};function N7(e){const t=this,n=e||w7,a=t.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),l=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),u=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(k7(n)),l.push(O9()),u.push(L9(n))}var R7=Object.defineProperty,O7=Object.defineProperties,L7=Object.getOwnPropertyDescriptors,t2=Object.getOwnPropertySymbols,D7=Object.prototype.hasOwnProperty,I7=Object.prototype.propertyIsEnumerable,n2=(e,t,n)=>t in e?R7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,G_=(e,t)=>{for(var n in t||(t={}))D7.call(t,n)&&n2(e,n,t[n]);if(t2)for(var n of t2(t))I7.call(t,n)&&n2(e,n,t[n]);return e},K_=(e,t)=>O7(e,L7(t)),M7=e=>{let t=new Uint8Array(e.length+1),n=!1,a=!1,s=0;for(;s<e.length;){if(e[s]==="\\"&&s+1<e.length&&e[s+1]==="`"){let l=n||a?1:0;t[s+1]=l,t[s+2]=l,s+=2;continue}if(e.substring(s,s+3)==="```"){a=!a;let l=n||a?1:0,u=Math.min(s+3,e.length);for(let c=s+1;c<=u;c+=1)t[c]=l;s=u;continue}!a&&e[s]==="`"&&(n=!n),t[s+1]=n||a?1:0,s+=1}return t},r2=null,En=(e,t)=>{let n=r2;return(n===null||n.text!==e)&&(n={text:e,lookup:M7(e)},r2=n),n.lookup[Math.min(t,e.length)]===1},P7=(e,t)=>{let n=e.substring(t,t+3)==="```",a=t>0&&e.substring(t-1,t+2)==="```",s=t>1&&e.substring(t-2,t+1)==="```";return n||a||s},B7=e=>{let t=0;for(let n=0;n<e.length;n+=1){if(e[n]==="\\"&&n+1<e.length&&e[n+1]==="`"){n+=1;continue}e[n]==="`"&&!P7(e,n)&&(t+=1)}return t},ti=(e,t)=>{let n=!1,a=!1,s=-1;for(let l=0;l<e.length;l+=1){if(e[l]==="\\"&&l+1<e.length&&e[l+1]==="`"){l+=1;continue}if(e.substring(l,l+3)==="```"){a=!a,l+=2;continue}if(!a&&e[l]==="`")if(n){if(s<t&&t<l)return!0;n=!1,s=-1}else n=!0,s=l}return!1},j7=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,H7=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(j7,(t,n,a,s)=>En(e,s)?t:`${n}\\>${a}`),U7=/(\*\*)([^*]*\*?)$/,z7=/(__)([^_]*?)$/,F7=/(\*\*\*)([^*]*?)$/,q7=/(\*)([^*]*?)$/,V7=/(_)([^_]*?)$/,Y7=/(`)([^`]*?)$/,$7=/(~~)([^~]*?)$/,is=/^[\s_~*`]*$/,X_=/^[\s]*[-*+][\s]+$/,G7=/[\p{L}\p{N}_]/u,K7=/^```[^`\n]*```?$/,X7=/^\*{4,}$/,Q7=/(__)([^_]+)_$/,W7=/(~~)([^~]+)~$/,a2=/~~/g,da=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:G7.test(e)},Z7=(e,t)=>{let n=1;for(let a=t-1;a>=0;a-=1)if(e[a]==="]")n+=1;else if(e[a]==="["&&(n-=1,n===0))return a;return-1},Q_=(e,t)=>{let n=1;for(let a=t+1;a<e.length;a+=1)if(e[a]==="[")n+=1;else if(e[a]==="]"&&(n-=1,n===0))return a;return-1},J7=e=>e==="inlineLatex"||e==="blockLatex",eB=(e,t)=>t==="["&&e==="none"?"blockLatex":t==="]"&&e==="blockLatex"?"none":t==="("&&e==="none"?"inlineLatex":t===")"&&e==="inlineLatex"?"none":null,tB=(e,t)=>t?e==="blockDollar"?"none":"blockDollar":e==="blockDollar"?e:e==="inlineDollar"?"none":"inlineDollar",yd=(e,t)=>{let n="none";for(let a=0;a<e.length&&a<t;a+=1){if(e[a]==="\\"&&e[a+1]==="$"){a+=1;continue}if(e[a]==="\\"){let s=eB(n,e[a+1]);if(s!==null){n=s,a+=1;continue}}if(e[a]==="$"&&!J7(n)){let s=e[a+1]==="$";n=tB(n,s),s&&(a+=1)}}return n!=="none"},nB=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===")")return!0;if(e[n]===`
|
|
66
|
-
`)return!1}return!1},W_=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===")")return!1;if(e[n]==="(")return n>0&&e[n-1]==="]"?nB(e,t):!1;if(e[n]===`
|
|
67
|
-
`)return!1}return!1},rB=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===">")return!1;if(e[n]==="<"){let a=n+1<e.length?e[n+1]:"";return a>="a"&&a<="z"||a>="A"&&a<="Z"||a==="/"}if(e[n]===`
|
|
68
|
-
`)return!1}return!1},_g=(e,t,n)=>{let a=0;for(let d=t-1;d>=0;d-=1)if(e[d]===`
|
|
69
|
-
`){a=d+1;break}let s=e.length;for(let d=t;d<e.length;d+=1)if(e[d]===`
|
|
70
|
-
`){s=d;break}let l=e.substring(a,s),u=0,c=!1;for(let d of l)if(d===n)u+=1;else if(d!==" "&&d!==" "){c=!0;break}return u>=3&&!c},Z_=e=>e.includes("$")||e.includes("\\(")||e.includes("\\["),aB=(e,t,n,a)=>n==="\\"||Z_(e)&&yd(e,t)?!0:n!=="*"&&a==="*"?(t<e.length-2?e[t+2]:"")!=="*":n==="*"||(!n||n===" "||n===" "||n===`
|
|
71
|
-
`)&&(!a||a===" "||a===" "||a===`
|
|
72
|
-
`),Uf=e=>e===" "||e===" "||e===`
|
|
73
|
-
`,iB=(e,t)=>!!(e&&t&&da(e)&&da(t)),sB=(e,t,n,a)=>{let s=iB(e,t),l=!!t&&!Uf(t),u=!!e&&!Uf(e);return s&&n%2===0&&!a?{count:!1}:u&&n%2===1||l?{count:!0,inWordAsteriskChain:s}:{count:!1}},J_=e=>{let t=0,n=!1,a=!1,s=e.length;for(let l=0;l<s;l+=1){if(e[l]==="`"&&l+2<s&&e[l+1]==="`"&&e[l+2]==="`"){n=!n,l+=2;continue}if(n)continue;if(e[l]!=="*"){da(e[l])||(a=!1);continue}let u=l>0?e[l-1]:"",c=l<s-1?e[l+1]:"";if(aB(e,l,u,c))continue;let d=sB(u,c,t,a);d.count&&(t+=1,a=d.inWordAsteriskChain)}return t},lB=(e,t,n,a)=>!!(n==="\\"||Z_(e)&&yd(e,t)||W_(e,t)||rB(e,t)||n==="_"||a==="_"||n&&a&&da(n)&&da(a)),oB=e=>{let t=0,n=!1,a=e.length;for(let s=0;s<a;s+=1){if(e[s]==="`"&&s+2<a&&e[s+1]==="`"&&e[s+2]==="`"){n=!n,s+=2;continue}if(n||e[s]!=="_")continue;let l=s>0?e[s-1]:"",u=s<a-1?e[s+1]:"";lB(e,s,l,u)||(t+=1)}return t},uB=e=>{let t=0,n=0,a=!1;for(let s=0;s<e.length;s+=1){if(e[s]==="`"&&s+2<e.length&&e[s+1]==="`"&&e[s+2]==="`"){n>=3&&(t+=Math.floor(n/3)),n=0,a=!a,s+=2;continue}a||(e[s]==="*"?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0))}return n>=3&&(t+=Math.floor(n/3)),t},Ag=e=>{let t=0,n=!1;for(let a=0;a<e.length;a+=1){if(e[a]==="`"&&a+2<e.length&&e[a+1]==="`"&&e[a+2]==="`"){n=!n,a+=2;continue}n||e[a]==="*"&&a+1<e.length&&e[a+1]==="*"&&(t+=1,a+=1)}return t},i2=e=>{let t=0,n=!1;for(let a=0;a<e.length;a+=1){if(e[a]==="`"&&a+2<e.length&&e[a+1]==="`"&&e[a+2]==="`"){n=!n,a+=2;continue}n||e[a]==="_"&&a+1<e.length&&e[a+1]==="_"&&(t+=1,a+=1)}return t},cB=(e,t,n)=>{if(!t||is.test(t))return!0;let a=e.substring(0,n).lastIndexOf(`
|
|
74
|
-
`),s=a===-1?0:a+1,l=e.substring(s,n);return X_.test(l)&&t.includes(`
|
|
75
|
-
`)?!0:_g(e,n,"*")},fB=e=>{let t=e.match(U7);if(!t)return e;let n=t[2],a=e.lastIndexOf(t[1]);return En(e,a)||ti(e,a)||cB(e,n,a)?e:Ag(e)%2===1?n.endsWith("*")?`${e}*`:`${e}**`:e},dB=(e,t,n)=>{if(!t||is.test(t))return!0;let a=e.substring(0,n).lastIndexOf(`
|
|
76
|
-
`),s=a===-1?0:a+1,l=e.substring(s,n);return X_.test(l)&&t.includes(`
|
|
77
|
-
`)?!0:_g(e,n,"_")},hB=e=>{let t=e.match(z7);if(!t){let s=e.match(Q7);if(s){let l=e.lastIndexOf(s[1]);if(!(En(e,l)||ti(e,l))&&i2(e)%2===1)return`${e}_`}return e}let n=t[2],a=e.lastIndexOf(t[1]);return En(e,a)||ti(e,a)||dB(e,n,a)?e:i2(e)%2===1?`${e}__`:e},mB=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="*"&&e[n-1]!=="*"&&e[n+1]!=="*"&&e[n-1]!=="\\"&&!yd(e,n)){let a=n>0?e[n-1]:"",s=n<e.length-1?e[n+1]:"",l=!a||Uf(a),u=!s||Uf(s);if(l&&u||a&&s&&da(a)&&da(s)||u)continue;return n}}return-1},pB=e=>{if(!e.match(q7))return e;let t=mB(e);if(t===-1||En(e,t)||ti(e,t))return e;let n=e.substring(t+1);return!n||is.test(n)?e:J_(e)%2===1?`${e}*`:e},e3=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="_"&&e[n-1]!=="_"&&e[n+1]!=="_"&&e[n-1]!=="\\"&&!yd(e,n)&&!W_(e,n)){let a=n>0?e[n-1]:"",s=n<e.length-1?e[n+1]:"";if(a&&s&&da(a)&&da(s))continue;return n}}return-1},gB=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
78
|
-
`;)t-=1;if(t<e.length){let n=e.slice(0,t),a=e.slice(t);return`${n}_${a}`}return`${e}_`},bB=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(Ag(t)%2!==1)return null;let n=t.indexOf("**"),a=e3(t);return n!==-1&&a!==-1&&n<a?`${t}_**`:null},yB=e=>{if(!e.match(V7))return e;let t=e3(e);if(t===-1)return e;let n=e.substring(t+1);if(!n||is.test(n)||En(e,t)||ti(e,t))return e;if(oB(e)%2===1){let a=bB(e);return a!==null?a:gB(e)}return e},EB=e=>{let t=Ag(e),n=J_(e);return t%2===0&&n%2===0},xB=(e,t,n)=>!t||is.test(t)||En(e,n)||ti(e,n)?!0:_g(e,n,"*"),TB=e=>{if(X7.test(e))return e;let t=e.match(F7);if(!t)return e;let n=t[2],a=e.lastIndexOf(t[1]);return xB(e,n,a)?e:uB(e)%2===1?EB(e)?e:`${e}***`:e},vB=/<[a-zA-Z/][^>]*$/,SB=e=>{let t=e.match(vB);return!t||t.index===void 0||En(e,t.index)?e:e.substring(0,t.index).trimEnd()},CB=e=>!e.match(K7)||e.includes(`
|
|
79
|
-
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,_B=e=>(e.match(/```/g)||[]).length%2===1,AB=e=>{let t=CB(e);if(t!==null)return t;let n=e.match(Y7);if(n&&!_B(e)){let a=n[2];if(!a||is.test(a))return e;if(B7(e)%2===1)return`${e}\``}return e},t3=(e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```",kB=e=>{let t=0,n=!1;for(let a=0;a<e.length-1;a+=1)e[a]==="`"&&!t3(e,a)&&(n=!n),!n&&e[a]==="$"&&e[a+1]==="$"&&(t+=1,a+=1);return t},wB=e=>{let t=0,n=!1;for(let a=0;a<e.length;a+=1){if(e[a]==="\\"){a+=1;continue}if(e[a]==="`"&&!t3(e,a)){n=!n;continue}!n&&e[a]==="$"&&(a+1<e.length&&e[a+1]==="$"?a+=1:t+=1)}return t},NB=e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
|
|
80
|
-
`,t)!==-1&&!e.endsWith(`
|
|
81
|
-
`)?`${e}
|
|
82
|
-
$$`:`${e}$$`},RB=e=>kB(e)%2===0?e:NB(e),OB=e=>wB(e)%2===1?`${e}$`:e,LB=(e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let a=Z7(e,t);if(a===-1||En(e,a))return null;let s=a>0&&e[a-1]==="!",l=s?a-1:a,u=e.substring(0,l);if(s)return u;let c=e.substring(a+1,t);return n==="text-only"?`${u}${c}`:`${u}[${c}](streamdown:incomplete-link)`},s2=(e,t)=>{for(let n=0;n<t;n++)if(e[n]==="["&&!En(e,n)){if(n>0&&e[n-1]==="!")continue;let a=Q_(e,n);if(a===-1)return n;if(a+1<e.length&&e[a+1]==="("){let s=e.indexOf(")",a+2);s!==-1&&(n=s)}}return t},DB=(e,t,n)=>{let a=t>0&&e[t-1]==="!",s=a?t-1:t;if(!e.substring(t+1).includes("]")){let l=e.substring(0,s);if(a)return l;if(n==="text-only"){let u=s2(e,t);return e.substring(0,u)+e.substring(u+1)}return`${e}](streamdown:incomplete-link)`}if(Q_(e,t)===-1){let l=e.substring(0,s);if(a)return l;if(n==="text-only"){let u=s2(e,t);return e.substring(0,u)+e.substring(u+1)}return`${e}](streamdown:incomplete-link)`}return null},n3=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(n!==-1&&!En(e,n)){let a=LB(e,n,t);if(a!==null)return a}for(let a=e.length-1;a>=0;a-=1)if(e[a]==="["&&!En(e,a)){let s=DB(e,a,t);if(s!==null)return s}return e},IB=/^-{1,2}$/,MB=/^[\s]*-{1,2}[\s]+$/,PB=/^={1,2}$/,BB=/^[\s]*={1,2}[\s]+$/,jB=e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
|
|
83
|
-
`);if(t===-1)return e;let n=e.substring(t+1),a=e.substring(0,t),s=n.trim();if(IB.test(s)&&!n.match(MB)){let l=a.split(`
|
|
84
|
-
`).at(-1);if(l&&l.trim().length>0)return`${e}`}if(PB.test(s)&&!n.match(BB)){let l=a.split(`
|
|
85
|
-
`).at(-1);if(l&&l.trim().length>0)return`${e}`}return e},HB=/([\p{L}\p{N}_])~(?!~)(?=[\p{L}\p{N}_])/gu,UB=e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace(HB,(t,n,a)=>{let s=a+n.length;return En(e,s)?t:`${n}\\~`}),zB=e=>{var t,n;let a=e.match($7);if(a){let s=a[2];if(!s||is.test(s))return e;let l=e.lastIndexOf(a[1]);if(En(e,l)||ti(e,l))return e;if(((t=e.match(a2))==null?void 0:t.length)%2===1)return`${e}~~`}else{let s=e.match(W7);if(s){let l=e.lastIndexOf(s[0].slice(0,2));if(En(e,l)||ti(e,l))return e;if(((n=e.match(a2))==null?void 0:n.length)%2===1)return`${e}~`}}return e},Ep=e=>e!==!1,FB=e=>e===!0,pn={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},qB=[{handler:{name:"singleTilde",handle:UB,priority:pn.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:H7,priority:pn.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:SB,priority:pn.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:jB,priority:pn.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:n3,priority:pn.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:TB,priority:pn.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:fB,priority:pn.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:hB,priority:pn.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:pB,priority:pn.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:yB,priority:pn.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:AB,priority:pn.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:zB,priority:pn.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:RB,priority:pn.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:OB,priority:pn.INLINE_KATEX},optionKey:"inlineKatex"}],VB=e=>{var t;let n=(t=e?.linkMode)!=null?t:"protocol";return qB.filter(({handler:a,optionKey:s})=>a.name==="links"?Ep(e?.links)||Ep(e?.images):a.name==="inlineKatex"?FB(e?.inlineKatex):Ep(e?.[s])).map(({handler:a,earlyReturn:s})=>a.name==="links"?{handler:K_(G_({},a),{handle:l=>n3(l,n)}),earlyReturn:n==="protocol"?s:void 0}:{handler:a,earlyReturn:s})},YB=(e,t)=>{var n;if(!e||typeof e!="string")return e;let a=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,s=VB(t),l=((n=t?.handlers)!=null?n:[]).map(c=>{var d;return{handler:K_(G_({},c),{priority:(d=c.priority)!=null?d:pn.DEFAULT}),earlyReturn:void 0}}),u=[...s,...l].sort((c,d)=>{var h,m;return((h=c.handler.priority)!=null?h:0)-((m=d.handler.priority)!=null?m:0)});for(let{handler:c,earlyReturn:d}of u)if(a=c.handle(a),d!=null&&d(a))return a;return a},$B=YB;function r3(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=r3(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function a3(){for(var e,t,n=0,a="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=r3(e))&&(a&&(a+=" "),a+=t);return a}const GB=(e,t)=>{const n=new Array(e.length+t.length);for(let a=0;a<e.length;a++)n[a]=e[a];for(let a=0;a<t.length;a++)n[e.length+a]=t[a];return n},KB=(e,t)=>({classGroupId:e,validator:t}),i3=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),zf="-",l2=[],XB="arbitrary..",QB=e=>{const t=ZB(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return WB(u);const c=u.split(zf),d=c[0]===""&&c.length>1?1:0;return s3(c,d,t)},getConflictingClassGroupIds:(u,c)=>{if(c){const d=a[u],h=n[u];return d?h?GB(h,d):d:h||l2}return n[u]||l2}}},s3=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],l=n.nextPart.get(s);if(l){const h=s3(e,t+1,l);if(h)return h}const u=n.validators;if(u===null)return;const c=t===0?e.join(zf):e.slice(t).join(zf),d=u.length;for(let h=0;h<d;h++){const m=u[h];if(m.validator(c))return m.classGroupId}},WB=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),a=t.slice(0,n);return a?XB+a:void 0})(),ZB=e=>{const{theme:t,classGroups:n}=e;return JB(n,t)},JB=(e,t)=>{const n=i3();for(const a in e){const s=e[a];kg(s,n,a,t)}return n},kg=(e,t,n,a)=>{const s=e.length;for(let l=0;l<s;l++){const u=e[l];ej(u,t,n,a)}},ej=(e,t,n,a)=>{if(typeof e=="string"){tj(e,t,n);return}if(typeof e=="function"){nj(e,t,n,a);return}rj(e,t,n,a)},tj=(e,t,n)=>{const a=e===""?t:l3(t,e);a.classGroupId=n},nj=(e,t,n,a)=>{if(aj(e)){kg(e(a),t,n,a);return}t.validators===null&&(t.validators=[]),t.validators.push(KB(n,e))},rj=(e,t,n,a)=>{const s=Object.entries(e),l=s.length;for(let u=0;u<l;u++){const[c,d]=s[u];kg(d,l3(t,c),n,a)}},l3=(e,t)=>{let n=e;const a=t.split(zf),s=a.length;for(let l=0;l<s;l++){const u=a[l];let c=n.nextPart.get(u);c||(c=i3(),n.nextPart.set(u,c)),n=c}return n},aj=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ij=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),a=Object.create(null);const s=(l,u)=>{n[l]=u,t++,t>e&&(t=0,a=n,n=Object.create(null))};return{get(l){let u=n[l];if(u!==void 0)return u;if((u=a[l])!==void 0)return s(l,u),u},set(l,u){l in n?n[l]=u:s(l,u)}}},g0="!",o2=":",sj=[],u2=(e,t,n,a,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:a,isExternal:s}),lj=e=>{const{prefix:t,experimentalParseClassName:n}=e;let a=s=>{const l=[];let u=0,c=0,d=0,h;const m=s.length;for(let S=0;S<m;S++){const _=s[S];if(u===0&&c===0){if(_===o2){l.push(s.slice(d,S)),d=S+1;continue}if(_==="/"){h=S;continue}}_==="["?u++:_==="]"?u--:_==="("?c++:_===")"&&c--}const p=l.length===0?s:s.slice(d);let E=p,x=!1;p.endsWith(g0)?(E=p.slice(0,-1),x=!0):p.startsWith(g0)&&(E=p.slice(1),x=!0);const v=h&&h>d?h-d:void 0;return u2(l,x,E,v)};if(t){const s=t+o2,l=a;a=u=>u.startsWith(s)?l(u.slice(s.length)):u2(sj,!1,u,void 0,!0)}if(n){const s=a;a=l=>n({className:l,parseClassName:s})}return a},oj=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,a)=>{t.set(n,1e6+a)}),n=>{const a=[];let s=[];for(let l=0;l<n.length;l++){const u=n[l],c=u[0]==="[",d=t.has(u);c||d?(s.length>0&&(s.sort(),a.push(...s),s=[]),a.push(u)):s.push(u)}return s.length>0&&(s.sort(),a.push(...s)),a}},uj=e=>({cache:ij(e.cacheSize),parseClassName:lj(e),sortModifiers:oj(e),postfixLookupClassGroupIds:cj(e),...QB(e)}),cj=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let a=0;a<n.length;a++)t[n[a]]=!0;return t},fj=/\s+/,dj=(e,t)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:l,postfixLookupClassGroupIds:u}=t,c=[],d=e.trim().split(fj);let h="";for(let m=d.length-1;m>=0;m-=1){const p=d[m],{isExternal:E,modifiers:x,hasImportantModifier:v,baseClassName:S,maybePostfixModifierPosition:_}=n(p);if(E){h=p+(h.length>0?" "+h:h);continue}let k=!!_,N;if(k){const M=S.substring(0,_);N=a(M);const H=N&&u[N]?a(S):void 0;H&&H!==N&&(N=H,k=!1)}else N=a(S);if(!N){if(!k){h=p+(h.length>0?" "+h:h);continue}if(N=a(S),!N){h=p+(h.length>0?" "+h:h);continue}k=!1}const w=x.length===0?"":x.length===1?x[0]:l(x).join(":"),I=v?w+g0:w,F=I+N;if(c.indexOf(F)>-1)continue;c.push(F);const R=s(N,k);for(let M=0;M<R.length;++M){const H=R[M];c.push(I+H)}h=p+(h.length>0?" "+h:h)}return h},hj=(...e)=>{let t=0,n,a,s="";for(;t<e.length;)(n=e[t++])&&(a=o3(n))&&(s&&(s+=" "),s+=a);return s},o3=e=>{if(typeof e=="string")return e;let t,n="";for(let a=0;a<e.length;a++)e[a]&&(t=o3(e[a]))&&(n&&(n+=" "),n+=t);return n},mj=(e,...t)=>{let n,a,s,l;const u=d=>{const h=t.reduce((m,p)=>p(m),e());return n=uj(h),a=n.cache.get,s=n.cache.set,l=c,c(d)},c=d=>{const h=a(d);if(h)return h;const m=dj(d,n);return s(d,m),m};return l=u,(...d)=>l(hj(...d))},pj=[],Yt=e=>{const t=n=>n[e]||pj;return t.isThemeGetter=!0,t},u3=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,c3=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gj=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,bj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ej=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ua=e=>gj.test(e),Ve=e=>!!e&&!Number.isNaN(Number(e)),vr=e=>!!e&&Number.isInteger(Number(e)),xp=e=>e.endsWith("%")&&Ve(e.slice(0,-1)),ta=e=>bj.test(e),f3=()=>!0,vj=e=>yj.test(e)&&!Ej.test(e),wg=()=>!1,Sj=e=>xj.test(e),Cj=e=>Tj.test(e),_j=e=>!Ce(e)&&!_e(e),Aj=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),kj=e=>li(e,m3,wg),Ce=e=>u3.test(e),Oi=e=>li(e,p3,vj),c2=e=>li(e,Mj,Ve),wj=e=>li(e,b3,f3),Nj=e=>li(e,g3,wg),f2=e=>li(e,d3,wg),Rj=e=>li(e,h3,Cj),Zc=e=>li(e,y3,Sj),_e=e=>c3.test(e),wo=e=>ss(e,p3),Oj=e=>ss(e,g3),d2=e=>ss(e,d3),Lj=e=>ss(e,m3),Dj=e=>ss(e,h3),Jc=e=>ss(e,y3,!0),Ij=e=>ss(e,b3,!0),li=(e,t,n)=>{const a=u3.exec(e);return a?a[1]?t(a[1]):n(a[2]):!1},ss=(e,t,n=!1)=>{const a=c3.exec(e);return a?a[1]?t(a[1]):n:!1},d3=e=>e==="position"||e==="percentage",h3=e=>e==="image"||e==="url",m3=e=>e==="length"||e==="size"||e==="bg-size",p3=e=>e==="length",Mj=e=>e==="number",g3=e=>e==="family-name",b3=e=>e==="number"||e==="weight",y3=e=>e==="shadow",Pj=()=>{const e=Yt("color"),t=Yt("font"),n=Yt("text"),a=Yt("font-weight"),s=Yt("tracking"),l=Yt("leading"),u=Yt("breakpoint"),c=Yt("container"),d=Yt("spacing"),h=Yt("radius"),m=Yt("shadow"),p=Yt("inset-shadow"),E=Yt("text-shadow"),x=Yt("drop-shadow"),v=Yt("blur"),S=Yt("perspective"),_=Yt("aspect"),k=Yt("ease"),N=Yt("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...I(),_e,Ce],R=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],H=()=>[_e,Ce,d],Y=()=>[Ua,"full","auto",...H()],U=()=>[vr,"none","subgrid",_e,Ce],J=()=>["auto",{span:["full",vr,_e,Ce]},vr,_e,Ce],Q=()=>[vr,"auto",_e,Ce],se=()=>["auto","min","max","fr",_e,Ce],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...H()],G=()=>[Ua,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],oe=()=>[Ua,"screen","full","dvw","lvw","svw","min","max","fit",...H()],xe=()=>[Ua,"screen","full","lh","dvh","lvh","svh","min","max","fit",...H()],D=()=>[e,_e,Ce],z=()=>[...I(),d2,f2,{position:[_e,Ce]}],X=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",Lj,kj,{size:[_e,Ce]}],Z=()=>[xp,wo,Oi],de=()=>["","none","full",h,_e,Ce],pe=()=>["",Ve,wo,Oi],Se=()=>["solid","dashed","dotted","double"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ee=()=>[Ve,xp,d2,f2],Pe=()=>["","none",v,_e,Ce],Le=()=>["none",Ve,_e,Ce],Re=()=>["none",Ve,_e,Ce],He=()=>[Ve,_e,Ce],ze=()=>[Ua,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ta],breakpoint:[ta],color:[f3],container:[ta],"drop-shadow":[ta],ease:["in","out","in-out"],font:[_j],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ta],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ta],shadow:[ta],spacing:["px",Ve],text:[ta],"text-shadow":[ta],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ua,Ce,_e,_]}],container:["container"],"container-type":[{"@container":["","normal","size",_e,Ce]}],"container-named":[Aj],columns:[{columns:[Ve,Ce,_e,c]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{"inset-s":Y(),start:Y()}],end:[{"inset-e":Y(),end:Y()}],"inset-bs":[{"inset-bs":Y()}],"inset-be":[{"inset-be":Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[vr,"auto",_e,Ce]}],basis:[{basis:[Ua,"full","auto",c,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ve,Ua,"auto","initial","none",Ce]}],grow:[{grow:["",Ve,_e,Ce]}],shrink:[{shrink:["",Ve,_e,Ce]}],order:[{order:[vr,"first","last","none",_e,Ce]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pbs:[{pbs:H()}],pbe:[{pbe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],"inline-size":[{inline:["auto",...oe()]}],"min-inline-size":[{"min-inline":["auto",...oe()]}],"max-inline-size":[{"max-inline":["none",...oe()]}],"block-size":[{block:["auto",...xe()]}],"min-block-size":[{"min-block":["auto",...xe()]}],"max-block-size":[{"max-block":["none",...xe()]}],w:[{w:[c,"screen",...G()]}],"min-w":[{"min-w":[c,"screen","none",...G()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[u]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,wo,Oi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Ij,wj]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xp,Ce]}],"font-family":[{font:[Oj,Nj,t]}],"font-features":[{"font-features":[Ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,_e,Ce]}],"line-clamp":[{"line-clamp":[Ve,"none",_e,c2]}],leading:[{leading:[l,...H()]}],"list-image":[{"list-image":["none",_e,Ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_e,Ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ve,"from-font","auto",_e,Oi]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[Ve,"auto",_e,Ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"tab-size":[{tab:[vr,_e,Ce]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_e,Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_e,Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:X()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},vr,_e,Ce],radial:["",_e,Ce],conic:[vr,_e,Ce]},Dj,Rj]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-bs":[{"border-bs":pe()}],"border-w-be":[{"border-be":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-bs":[{"border-bs":D()}],"border-color-be":[{"border-be":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ve,_e,Ce]}],"outline-w":[{outline:["",Ve,wo,Oi]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",m,Jc,Zc]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",p,Jc,Zc]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[Ve,Oi]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",E,Jc,Zc]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[Ve,_e,Ce]}],"mix-blend":[{"mix-blend":[...Te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Te()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ve]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ee()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":Ee()}],"mask-image-t-to-pos":[{"mask-t-to":Ee()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":Ee()}],"mask-image-r-to-pos":[{"mask-r-to":Ee()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":Ee()}],"mask-image-b-to-pos":[{"mask-b-to":Ee()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":Ee()}],"mask-image-l-to-pos":[{"mask-l-to":Ee()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":Ee()}],"mask-image-x-to-pos":[{"mask-x-to":Ee()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":Ee()}],"mask-image-y-to-pos":[{"mask-y-to":Ee()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[_e,Ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ee()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[Ve]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ee()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:X()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_e,Ce]}],filter:[{filter:["","none",_e,Ce]}],blur:[{blur:Pe()}],brightness:[{brightness:[Ve,_e,Ce]}],contrast:[{contrast:[Ve,_e,Ce]}],"drop-shadow":[{"drop-shadow":["","none",x,Jc,Zc]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",Ve,_e,Ce]}],"hue-rotate":[{"hue-rotate":[Ve,_e,Ce]}],invert:[{invert:["",Ve,_e,Ce]}],saturate:[{saturate:[Ve,_e,Ce]}],sepia:[{sepia:["",Ve,_e,Ce]}],"backdrop-filter":[{"backdrop-filter":["","none",_e,Ce]}],"backdrop-blur":[{"backdrop-blur":Pe()}],"backdrop-brightness":[{"backdrop-brightness":[Ve,_e,Ce]}],"backdrop-contrast":[{"backdrop-contrast":[Ve,_e,Ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ve,_e,Ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ve,_e,Ce]}],"backdrop-invert":[{"backdrop-invert":["",Ve,_e,Ce]}],"backdrop-opacity":[{"backdrop-opacity":[Ve,_e,Ce]}],"backdrop-saturate":[{"backdrop-saturate":[Ve,_e,Ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Ve,_e,Ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_e,Ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ve,"initial",_e,Ce]}],ease:[{ease:["linear","initial",k,_e,Ce]}],delay:[{delay:[Ve,_e,Ce]}],animate:[{animate:["none",N,_e,Ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,_e,Ce]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:Le()}],"rotate-x":[{"rotate-x":Le()}],"rotate-y":[{"rotate-y":Le()}],"rotate-z":[{"rotate-z":Le()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:He()}],"skew-x":[{"skew-x":He()}],"skew-y":[{"skew-y":He()}],transform:[{transform:[_e,Ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ze()}],"translate-x":[{"translate-x":ze()}],"translate-y":[{"translate-y":ze()}],"translate-z":[{"translate-z":ze()}],"translate-none":["translate-none"],zoom:[{zoom:[vr,_e,Ce]}],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_e,Ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":D()}],"scrollbar-track-color":[{"scrollbar-track":D()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mbs":[{"scroll-mbs":H()}],"scroll-mbe":[{"scroll-mbe":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pbs":[{"scroll-pbs":H()}],"scroll-pbe":[{"scroll-pbe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_e,Ce]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[Ve,wo,Oi,c2]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},E3=mj(Pj),Bj=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jj=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hj={};function h2(e,t){return(Hj.jsx?jj:Bj).test(e)}const Uj=/[ \t\n\f\r]/g;function zj(e){return typeof e=="object"?e.type==="text"?m2(e.value):!1:m2(e)}function m2(e){return e.replace(Uj,"")===""}var Ws={},Tp,p2;function Fj(){if(p2)return Tp;p2=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
|
|
86
|
-
`,h="/",m="*",p="",E="comment",x="declaration";function v(_,k){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];k=k||{};var N=1,w=1;function I(ue){var ae=ue.match(t);ae&&(N+=ae.length);var B=ue.lastIndexOf(d);w=~B?ue.length-B:w+ue.length}function F(){var ue={line:N,column:w};return function(ae){return ae.position=new R(ue),Y(),ae}}function R(ue){this.start=ue,this.end={line:N,column:w},this.source=k.source}R.prototype.content=_;function M(ue){var ae=new Error(k.source+":"+N+":"+w+": "+ue);if(ae.reason=ue,ae.filename=k.source,ae.line=N,ae.column=w,ae.source=_,!k.silent)throw ae}function H(ue){var ae=ue.exec(_);if(ae){var B=ae[0];return I(B),_=_.slice(B.length),ae}}function Y(){H(n)}function U(ue){var ae;for(ue=ue||[];ae=J();)ae!==!1&&ue.push(ae);return ue}function J(){var ue=F();if(!(h!=_.charAt(0)||m!=_.charAt(1))){for(var ae=2;p!=_.charAt(ae)&&(m!=_.charAt(ae)||h!=_.charAt(ae+1));)++ae;if(ae+=2,p===_.charAt(ae-1))return M("End of comment missing");var B=_.slice(2,ae-2);return w+=2,I(B),_=_.slice(ae),w+=2,ue({type:E,comment:B})}}function Q(){var ue=F(),ae=H(a);if(ae){if(J(),!H(s))return M("property missing ':'");var B=H(l),G=ue({type:x,property:S(ae[0].replace(e,p)),value:B?S(B[0].replace(e,p)):p});return H(u),G}}function se(){var ue=[];U(ue);for(var ae;ae=Q();)ae!==!1&&(ue.push(ae),U(ue));return ue}return Y(),se()}function S(_){return _?_.replace(c,p):p}return Tp=v,Tp}var g2;function qj(){if(g2)return Ws;g2=1;var e=Ws&&Ws.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=n;const t=e(Fj());function n(a,s){let l=null;if(!a||typeof a!="string")return l;const u=(0,t.default)(a),c=typeof s=="function";return u.forEach(d=>{if(d.type!=="declaration")return;const{property:h,value:m}=d;c?s(h,m,d):m&&(l=l||{},l[h]=m)}),l}return Ws}var No={},b2;function Vj(){if(b2)return No;b2=1,Object.defineProperty(No,"__esModule",{value:!0}),No.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(h){return!h||n.test(h)||e.test(h)},u=function(h,m){return m.toUpperCase()},c=function(h,m){return"".concat(m,"-")},d=function(h,m){return m===void 0&&(m={}),l(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(s,c):h=h.replace(a,c),h.replace(t,u))};return No.camelCase=d,No}var Ro,y2;function Yj(){if(y2)return Ro;y2=1;var e=Ro&&Ro.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(qj()),n=Vj();function a(s,l){var u={};return!s||typeof s!="string"||(0,t.default)(s,function(c,d){c&&d&&(u[(0,n.camelCase)(c,l)]=d)}),u}return a.default=a,Ro=a,Ro}var $j=Yj();const Gj=D0($j);function Go(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?E2(e.position):"start"in e||"end"in e?E2(e):"line"in e||"column"in e?b0(e):""}function b0(e){return x2(e&&e.line)+":"+x2(e&&e.column)}function E2(e){return b0(e&&e.start)+"-"+b0(e&&e.end)}function x2(e){return e&&typeof e=="number"?e:1}class dn extends Error{constructor(t,n,a){super(),typeof n=="string"&&(a=n,n=void 0);let s="",l={},u=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?s=t:!l.cause&&t&&(u=!0,s=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof a=="string"){const d=a.indexOf(":");d===-1?l.ruleId=a:(l.source=a.slice(0,d),l.ruleId=a.slice(d+1))}if(!l.place&&l.ancestors&&l.ancestors){const d=l.ancestors[l.ancestors.length-1];d&&(l.place=d.position)}const c=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=c?c.line:void 0,this.name=Go(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=u&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}dn.prototype.file="";dn.prototype.name="";dn.prototype.reason="";dn.prototype.message="";dn.prototype.stack="";dn.prototype.column=void 0;dn.prototype.line=void 0;dn.prototype.ancestors=void 0;dn.prototype.cause=void 0;dn.prototype.fatal=void 0;dn.prototype.place=void 0;dn.prototype.ruleId=void 0;dn.prototype.source=void 0;const Ng={}.hasOwnProperty,Kj=new Map,Xj=/[A-Z]/g,Qj=new Set(["table","tbody","thead","tfoot","tr"]),Wj=new Set(["td","th"]),x3="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Zj(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=sH(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=iH(n,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ii:fu,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=T3(s,e,void 0);return l&&typeof l!="string"?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}function T3(e,t,n){if(t.type==="element")return Jj(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return eH(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return nH(e,t,n);if(t.type==="mdxjsEsm")return tH(e,t);if(t.type==="root")return rH(e,t,n);if(t.type==="text")return aH(e,t)}function Jj(e,t,n){const a=e.schema;let s=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=ii,e.schema=s),e.ancestors.push(t);const l=S3(e,t.tagName,!1),u=lH(e,t);let c=Og(e,t);return Qj.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!zj(d):!0})),v3(e,u,l,t),Rg(u,c),e.ancestors.pop(),e.schema=a,e.create(t,l,u,n)}function eH(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}au(e,t.position)}function tH(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);au(e,t.position)}function nH(e,t,n){const a=e.schema;let s=a;t.name==="svg"&&a.space==="html"&&(s=ii,e.schema=s),e.ancestors.push(t);const l=t.name===null?e.Fragment:S3(e,t.name,!0),u=oH(e,t),c=Og(e,t);return v3(e,u,l,t),Rg(u,c),e.ancestors.pop(),e.schema=a,e.create(t,l,u,n)}function rH(e,t,n){const a={};return Rg(a,Og(e,t)),e.create(t,e.Fragment,a,n)}function aH(e,t){return t.value}function v3(e,t,n,a){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=a)}function Rg(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function iH(e,t,n){return a;function a(s,l,u,c){const h=Array.isArray(u.children)?n:t;return c?h(l,u,c):h(l,u)}}function sH(e,t){return n;function n(a,s,l,u){const c=Array.isArray(l.children),d=Dr(a);return t(s,l,u,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function lH(e,t){const n={};let a,s;for(s in t.properties)if(s!=="children"&&Ng.call(t.properties,s)){const l=uH(e,s,t.properties[s]);if(l){const[u,c]=l;e.tableCellAlignToStyle&&u==="align"&&typeof c=="string"&&Wj.has(t.tagName)?a=c:n[u]=c}}if(a){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return n}function oH(e,t){const n={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const l=a.data.estree.body[0];l.type;const u=l.expression;u.type;const c=u.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else au(e,t.position);else{const s=a.name;let l;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const c=a.value.data.estree.body[0];c.type,l=e.evaluater.evaluateExpression(c.expression)}else au(e,t.position);else l=a.value===null?!0:a.value;n[s]=l}return n}function Og(e,t){const n=[];let a=-1;const s=e.passKeys?new Map:Kj;for(;++a<t.children.length;){const l=t.children[a];let u;if(e.passKeys){const d=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(d){const h=s.get(d)||0;u=d+"-"+h,s.set(d,h+1)}}const c=T3(e,l,u);c!==void 0&&n.push(c)}return n}function uH(e,t,n){const a=cd(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=a.commaSeparated?CC(n):_C(n)),a.property==="style"){let s=typeof n=="object"?n:cH(e,String(n));return e.stylePropertyNameCase==="css"&&(s=fH(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&a.space?_5[a.property]||a.property:a.attribute,n]}}function cH(e,t){try{return Gj(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const a=n,s=new dn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=x3+"#cannot-parse-style-attribute",s}}function S3(e,t,n){let a;if(!n)a={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let l=-1,u;for(;++l<s.length;){const c=h2(s[l])?{type:"Identifier",name:s[l]}:{type:"Literal",value:s[l]};u=u?{type:"MemberExpression",object:u,property:c,computed:!!(l&&c.type==="Literal"),optional:!1}:c}a=u}else a=h2(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const s=a.value;return Ng.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(a);au(e)}function au(e,t){const n=new dn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=x3+"#cannot-handle-mdx-estrees-without-createevaluater",n}function fH(e){const t={};let n;for(n in e)Ng.call(e,n)&&(t[dH(n)]=e[n]);return t}function dH(e){let t=e.replace(Xj,hH);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function hH(e){return"-"+e.toLowerCase()}const vp={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},mH={tokenize:pH};function pH(e){const t=e.attempt(this.parser.constructs.contentInitial,a,s);let n;return t;function a(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),rt(e,t,"linePrefix")}function s(c){return e.enter("paragraph"),l(c)}function l(c){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,u(c)}function u(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Oe(c)?(e.consume(c),e.exit("chunkText"),l):(e.consume(c),u)}}const gH={tokenize:bH},T2={tokenize:yH};function bH(e){const t=this,n=[];let a=0,s,l,u;return c;function c(w){if(a<n.length){const I=n[a];return t.containerState=I[1],e.attempt(I[0].continuation,d,h)(w)}return h(w)}function d(w){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&N();const I=t.events.length;let F=I,R;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){R=t.events[F][1].end;break}k(a);let M=I;for(;M<t.events.length;)t.events[M][1].end={...R},M++;return Vn(t.events,F+1,0,t.events.slice(I)),t.events.length=M,h(w)}return c(w)}function h(w){if(a===n.length){if(!s)return E(w);if(s.currentConstruct&&s.currentConstruct.concrete)return v(w);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(T2,m,p)(w)}function m(w){return s&&N(),k(a),E(w)}function p(w){return t.parser.lazy[t.now().line]=a!==n.length,u=t.now().offset,v(w)}function E(w){return t.containerState={},e.attempt(T2,x,v)(w)}function x(w){return a++,n.push([t.currentConstruct,t.containerState]),E(w)}function v(w){if(w===null){s&&N(),k(0),e.consume(w);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:l}),S(w)}function S(w){if(w===null){_(e.exit("chunkFlow"),!0),k(0),e.consume(w);return}return Oe(w)?(e.consume(w),_(e.exit("chunkFlow")),a=0,t.interrupt=void 0,c):(e.consume(w),S)}function _(w,I){const F=t.sliceStream(w);if(I&&F.push(null),w.previous=l,l&&(l.next=w),l=w,s.defineSkip(w.start),s.write(F),t.parser.lazy[w.start.line]){let R=s.events.length;for(;R--;)if(s.events[R][1].start.offset<u&&(!s.events[R][1].end||s.events[R][1].end.offset>u))return;const M=t.events.length;let H=M,Y,U;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(Y){U=t.events[H][1].end;break}Y=!0}for(k(a),R=M;R<t.events.length;)t.events[R][1].end={...U},R++;Vn(t.events,H+1,0,t.events.slice(M)),t.events.length=R}}function k(w){let I=n.length;for(;I-- >w;){const F=n[I];t.containerState=F[1],F[0].exit.call(t,e)}n.length=w}function N(){s.write([null]),l=void 0,s=void 0,t.containerState._closeFlow=void 0}}function yH(e,t,n){return rt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const EH={tokenize:xH};function xH(e){const t=this,n=e.attempt(pu,a,e.attempt(this.parser.constructs.flowInitial,s,rt(e,e.attempt(this.parser.constructs.flow,s,e.attempt(hP,s)),"linePrefix")));return n;function a(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const TH={resolveAll:_3()},vH=C3("string"),SH=C3("text");function C3(e){return{resolveAll:_3(e==="text"?CH:void 0),tokenize:t};function t(n){const a=this,s=this.parser.constructs[e],l=n.attempt(s,u,c);return u;function u(m){return h(m)?l(m):c(m)}function c(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),d}function d(m){return h(m)?(n.exit("data"),l(m)):(n.consume(m),d)}function h(m){if(m===null)return!0;const p=s[m];let E=-1;if(p)for(;++E<p.length;){const x=p[E];if(!x.previous||x.previous.call(a,a.previous))return!0}return!1}}}function _3(e){return t;function t(n,a){let s=-1,l;for(;++s<=n.length;)l===void 0?n[s]&&n[s][1].type==="data"&&(l=s,s++):(!n[s]||n[s][1].type!=="data")&&(s!==l+2&&(n[l][1].end=n[s-1][1].end,n.splice(l+2,s-l-2),s=l+2),l=void 0);return e?e(n,a):n}}function CH(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const a=e[n-1][1],s=t.sliceStream(a);let l=s.length,u=-1,c=0,d;for(;l--;){const h=s[l];if(typeof h=="string"){for(u=h.length;h.charCodeAt(u-1)===32;)c++,u--;if(u)break;u=-1}else if(h===-2)d=!0,c++;else if(h!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const h={type:n===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?u:a.start._bufferIndex+u,_index:a.start._index+l,line:a.end.line,column:a.end.column-c,offset:a.end.offset-c},end:{...a.end}};a.end={...h.start},a.start.offset===a.end.offset?Object.assign(a,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const _H={42:Rn,43:Rn,45:Rn,48:Rn,49:Rn,50:Rn,51:Rn,52:Rn,53:Rn,54:Rn,55:Rn,56:Rn,57:Rn,62:U_},AH={91:yP},kH={[-2]:bp,[-1]:bp,32:bp},wH={35:CP,42:yf,45:[JT,yf],60:wP,61:JT,95:yf,96:WT,126:WT},NH={38:F_,92:z_},RH={[-5]:yp,[-4]:yp,[-3]:yp,33:$P,38:F_,42:p0,60:[K9,MP],91:KP,92:[vP,z_],93:Cg,95:p0,96:lP},OH={null:[p0,TH]},LH={null:[42,95]},DH={null:[]},IH=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:LH,contentInitial:AH,disable:DH,document:_H,flow:wH,flowInitial:kH,insideSpan:OH,string:NH,text:RH},Symbol.toStringTag,{value:"Module"}));function MH(e,t,n){let a={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const s={},l=[];let u=[],c=[];const d={attempt:M(F),check:M(R),consume:N,enter:w,exit:I,interrupt:M(R,{interrupt:!0})},h={code:null,containerState:{},defineSkip:S,events:[],now:v,parser:e,previous:null,sliceSerialize:E,sliceStream:x,write:p};let m=t.tokenize.call(h,d);return t.resolveAll&&l.push(t),h;function p(J){return u=nr(u,J),_(),u[u.length-1]!==null?[]:(H(t,0),h.events=bd(l,h.events,h),h.events)}function E(J,Q){return BH(x(J),Q)}function x(J){return PH(u,J)}function v(){const{_bufferIndex:J,_index:Q,line:se,column:ue,offset:ae}=a;return{_bufferIndex:J,_index:Q,line:se,column:ue,offset:ae}}function S(J){s[J.line]=J.column,U()}function _(){let J;for(;a._index<u.length;){const Q=u[a._index];if(typeof Q=="string")for(J=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===J&&a._bufferIndex<Q.length;)k(Q.charCodeAt(a._bufferIndex));else k(Q)}}function k(J){m=m(J)}function N(J){Oe(J)?(a.line++,a.column=1,a.offset+=J===-3?2:1,U()):J!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===u[a._index].length&&(a._bufferIndex=-1,a._index++)),h.previous=J}function w(J,Q){const se=Q||{};return se.type=J,se.start=v(),h.events.push(["enter",se,h]),c.push(se),se}function I(J){const Q=c.pop();return Q.end=v(),h.events.push(["exit",Q,h]),Q}function F(J,Q){H(J,Q.from)}function R(J,Q){Q.restore()}function M(J,Q){return se;function se(ue,ae,B){let G,oe,xe,D;return Array.isArray(ue)?X(ue):"tokenize"in ue?X([ue]):z(ue);function z(pe){return Se;function Se(Te){const Ee=Te!==null&&pe[Te],Pe=Te!==null&&pe.null,Le=[...Array.isArray(Ee)?Ee:Ee?[Ee]:[],...Array.isArray(Pe)?Pe:Pe?[Pe]:[]];return X(Le)(Te)}}function X(pe){return G=pe,oe=0,pe.length===0?B:O(pe[oe])}function O(pe){return Se;function Se(Te){return D=Y(),xe=pe,pe.partial||(h.currentConstruct=pe),pe.name&&h.parser.constructs.disable.null.includes(pe.name)?de():pe.tokenize.call(Q?Object.assign(Object.create(h),Q):h,d,Z,de)(Te)}}function Z(pe){return J(xe,D),ae}function de(pe){return D.restore(),++oe<G.length?O(G[oe]):B}}}function H(J,Q){J.resolveAll&&!l.includes(J)&&l.push(J),J.resolve&&Vn(h.events,Q,h.events.length-Q,J.resolve(h.events.slice(Q),h)),J.resolveTo&&(h.events=J.resolveTo(h.events,h))}function Y(){const J=v(),Q=h.previous,se=h.currentConstruct,ue=h.events.length,ae=Array.from(c);return{from:ue,restore:B};function B(){a=J,h.previous=Q,h.currentConstruct=se,h.events.length=ue,c=ae,U()}}function U(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function PH(e,t){const n=t.start._index,a=t.start._bufferIndex,s=t.end._index,l=t.end._bufferIndex;let u;if(n===s)u=[e[n].slice(a,l)];else{if(u=e.slice(n,s),a>-1){const c=u[0];typeof c=="string"?u[0]=c.slice(a):u.shift()}l>0&&u.push(e[s].slice(0,l))}return u}function BH(e,t){let n=-1;const a=[];let s;for(;++n<e.length;){const l=e[n];let u;if(typeof l=="string")u=l;else switch(l){case-5:{u="\r";break}case-4:{u=`
|
|
87
|
-
`;break}case-3:{u=`\r
|
|
88
|
-
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&s)continue;u=" ";break}default:u=String.fromCharCode(l)}s=l===-2,a.push(u)}return a.join("")}function jH(e){const a={constructs:O_([IH,...(e||{}).extensions||[]]),content:s(mH),defined:[],document:s(gH),flow:s(EH),lazy:{},string:s(vH),text:s(SH)};return a;function s(l){return u;function u(c){return MH(a,l,c)}}}function HH(e){for(;!q_(e););return e}const v2=/[\0\t\n\r]/g;function UH(){let e=1,t="",n=!0,a;return s;function s(l,u,c){const d=[];let h,m,p,E,x;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(u||void 0).decode(l)),p=0,t="",n&&(l.charCodeAt(0)===65279&&p++,n=void 0);p<l.length;){if(v2.lastIndex=p,h=v2.exec(l),E=h&&h.index!==void 0?h.index:l.length,x=l.charCodeAt(E),!h){t=l.slice(p);break}if(x===10&&p===E&&a)d.push(-3),a=void 0;else switch(a&&(d.push(-5),a=void 0),p<E&&(d.push(l.slice(p,E)),e+=E-p),x){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:a=!0,e=1}p=E+1}return c&&(a&&d.push(-5),t&&d.push(t),d.push(null)),d}}const A3={}.hasOwnProperty;function zH(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),FH(n)(HH(jH(n).document().write(UH()(e,t,!0))))}function FH(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Ft),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:l(tt),blockQuote:l(Pe),characterEscape:Y,characterReference:Y,codeFenced:l(Le),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:l(Le,u),codeText:l(Re,u),codeTextData:Y,data:Y,codeFlowValue:Y,definition:l(He),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:l(ze),hardBreakEscape:l(Xe),hardBreakTrailing:l(Xe),htmlFlow:l(Rt,u),htmlFlowData:Y,htmlText:l(Rt,u),htmlTextData:Y,image:l(kt),label:u,link:l(Ft),listItem:l(Ie),listItemValue:E,listOrdered:l(ke,p),listUnordered:l(ke),paragraph:l(dt),reference:O,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:l(tt),strong:l(qe),thematicBreak:l(ln)},exit:{atxHeading:d(),atxHeadingSequence:F,autolink:d(),autolinkEmail:Ee,autolinkProtocol:Te,blockQuote:d(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:pe,characterReference:Se,codeFenced:d(_),codeFencedFence:S,codeFencedFenceInfo:x,codeFencedFenceMeta:v,codeFlowValue:U,codeIndented:d(k),codeText:d(ae),codeTextData:U,data:U,definition:d(),definitionDestinationString:I,definitionLabelString:N,definitionTitleString:w,emphasis:d(),hardBreakEscape:d(Q),hardBreakTrailing:d(Q),htmlFlow:d(se),htmlFlowData:U,htmlText:d(ue),htmlTextData:U,image:d(G),label:xe,labelText:oe,lineEnding:J,link:d(B),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:Z,resourceDestinationString:D,resourceTitleString:z,resource:X,setextHeading:d(H),setextHeadingLineSequence:M,setextHeadingText:R,strong:d(),thematicBreak:d()}};k3(t,(e||{}).mdastExtensions||[]);const n={};return a;function a(ce){let W={type:"root",children:[]};const ve={stack:[W],tokenStack:[],config:t,enter:c,exit:h,buffer:u,resume:m,data:n},Me=[];let $e=-1;for(;++$e<ce.length;)if(ce[$e][1].type==="listOrdered"||ce[$e][1].type==="listUnordered")if(ce[$e][0]==="enter")Me.push($e);else{const $t=Me.pop();$e=s(ce,$t,$e)}for($e=-1;++$e<ce.length;){const $t=t[ce[$e][0]];A3.call($t,ce[$e][1].type)&&$t[ce[$e][1].type].call(Object.assign({sliceSerialize:ce[$e][2].sliceSerialize},ve),ce[$e][1])}if(ve.tokenStack.length>0){const $t=ve.tokenStack[ve.tokenStack.length-1];($t[1]||S2).call(ve,void 0,$t[0])}for(W.position={start:za(ce.length>0?ce[0][1].start:{line:1,column:1,offset:0}),end:za(ce.length>0?ce[ce.length-2][1].end:{line:1,column:1,offset:0})},$e=-1;++$e<t.transforms.length;)W=t.transforms[$e](W)||W;return W}function s(ce,W,ve){let Me=W-1,$e=-1,$t=!1,Pr,hn,qt,Tn;for(;++Me<=ve;){const bt=ce[Me];switch(bt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{bt[0]==="enter"?$e++:$e--,Tn=void 0;break}case"lineEndingBlank":{bt[0]==="enter"&&(Pr&&!Tn&&!$e&&!qt&&(qt=Me),Tn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Tn=void 0}if(!$e&&bt[0]==="enter"&&bt[1].type==="listItemPrefix"||$e===-1&&bt[0]==="exit"&&(bt[1].type==="listUnordered"||bt[1].type==="listOrdered")){if(Pr){let pa=Me;for(hn=void 0;pa--;){const sr=ce[pa];if(sr[1].type==="lineEnding"||sr[1].type==="lineEndingBlank"){if(sr[0]==="exit")continue;hn&&(ce[hn][1].type="lineEndingBlank",$t=!0),sr[1].type="lineEnding",hn=pa}else if(!(sr[1].type==="linePrefix"||sr[1].type==="blockQuotePrefix"||sr[1].type==="blockQuotePrefixWhitespace"||sr[1].type==="blockQuoteMarker"||sr[1].type==="listItemIndent"))break}qt&&(!hn||qt<hn)&&(Pr._spread=!0),Pr.end=Object.assign({},hn?ce[hn][1].start:bt[1].end),ce.splice(hn||Me,0,["exit",Pr,bt[2]]),Me++,ve++}if(bt[1].type==="listItemPrefix"){const pa={type:"listItem",_spread:!1,start:Object.assign({},bt[1].start),end:void 0};Pr=pa,ce.splice(Me,0,["enter",pa,bt[2]]),Me++,ve++,qt=void 0,Tn=!0}}}return ce[W][1]._spread=$t,ve}function l(ce,W){return ve;function ve(Me){c.call(this,ce(Me),Me),W&&W.call(this,Me)}}function u(){this.stack.push({type:"fragment",children:[]})}function c(ce,W,ve){this.stack[this.stack.length-1].children.push(ce),this.stack.push(ce),this.tokenStack.push([W,ve||void 0]),ce.position={start:za(W.start),end:void 0}}function d(ce){return W;function W(ve){ce&&ce.call(this,ve),h.call(this,ve)}}function h(ce,W){const ve=this.stack.pop(),Me=this.tokenStack.pop();if(Me)Me[0].type!==ce.type&&(W?W.call(this,ce,Me[0]):(Me[1]||S2).call(this,ce,Me[0]));else throw new Error("Cannot close `"+ce.type+"` ("+Go({start:ce.start,end:ce.end})+"): it’s not open");ve.position.end=za(ce.end)}function m(){return xg(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function E(ce){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(ce),10),this.data.expectingFirstListItemValue=void 0}}function x(){const ce=this.resume(),W=this.stack[this.stack.length-1];W.lang=ce}function v(){const ce=this.resume(),W=this.stack[this.stack.length-1];W.meta=ce}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const ce=this.resume(),W=this.stack[this.stack.length-1];W.value=ce.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const ce=this.resume(),W=this.stack[this.stack.length-1];W.value=ce.replace(/(\r?\n|\r)$/g,"")}function N(ce){const W=this.resume(),ve=this.stack[this.stack.length-1];ve.label=W,ve.identifier=dr(this.sliceSerialize(ce)).toLowerCase()}function w(){const ce=this.resume(),W=this.stack[this.stack.length-1];W.title=ce}function I(){const ce=this.resume(),W=this.stack[this.stack.length-1];W.url=ce}function F(ce){const W=this.stack[this.stack.length-1];if(!W.depth){const ve=this.sliceSerialize(ce).length;W.depth=ve}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function M(ce){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(ce).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(ce){const ve=this.stack[this.stack.length-1].children;let Me=ve[ve.length-1];(!Me||Me.type!=="text")&&(Me=Ye(),Me.position={start:za(ce.start),end:void 0},ve.push(Me)),this.stack.push(Me)}function U(ce){const W=this.stack.pop();W.value+=this.sliceSerialize(ce),W.position.end=za(ce.end)}function J(ce){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ve=W.children[W.children.length-1];ve.position.end=za(ce.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(W.type)&&(Y.call(this,ce),U.call(this,ce))}function Q(){this.data.atHardBreak=!0}function se(){const ce=this.resume(),W=this.stack[this.stack.length-1];W.value=ce}function ue(){const ce=this.resume(),W=this.stack[this.stack.length-1];W.value=ce}function ae(){const ce=this.resume(),W=this.stack[this.stack.length-1];W.value=ce}function B(){const ce=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";ce.type+="Reference",ce.referenceType=W,delete ce.url,delete ce.title}else delete ce.identifier,delete ce.label;this.data.referenceType=void 0}function G(){const ce=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";ce.type+="Reference",ce.referenceType=W,delete ce.url,delete ce.title}else delete ce.identifier,delete ce.label;this.data.referenceType=void 0}function oe(ce){const W=this.sliceSerialize(ce),ve=this.stack[this.stack.length-2];ve.label=y9(W),ve.identifier=dr(W).toLowerCase()}function xe(){const ce=this.stack[this.stack.length-1],W=this.resume(),ve=this.stack[this.stack.length-1];if(this.data.inReference=!0,ve.type==="link"){const Me=ce.children;ve.children=Me}else ve.alt=W}function D(){const ce=this.resume(),W=this.stack[this.stack.length-1];W.url=ce}function z(){const ce=this.resume(),W=this.stack[this.stack.length-1];W.title=ce}function X(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function Z(ce){const W=this.resume(),ve=this.stack[this.stack.length-1];ve.label=W,ve.identifier=dr(this.sliceSerialize(ce)).toLowerCase(),this.data.referenceType="full"}function de(ce){this.data.characterReferenceType=ce.type}function pe(ce){const W=this.sliceSerialize(ce),ve=this.data.characterReferenceType;let Me;ve?(Me=R_(W,ve==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Me=vg(W);const $e=this.stack[this.stack.length-1];$e.value+=Me}function Se(ce){const W=this.stack.pop();W.position.end=za(ce.end)}function Te(ce){U.call(this,ce);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(ce)}function Ee(ce){U.call(this,ce);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(ce)}function Pe(){return{type:"blockquote",children:[]}}function Le(){return{type:"code",lang:null,meta:null,value:""}}function Re(){return{type:"inlineCode",value:""}}function He(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ze(){return{type:"emphasis",children:[]}}function tt(){return{type:"heading",depth:0,children:[]}}function Xe(){return{type:"break"}}function Rt(){return{type:"html",value:""}}function kt(){return{type:"image",title:null,url:"",alt:null}}function Ft(){return{type:"link",title:null,url:"",children:[]}}function ke(ce){return{type:"list",ordered:ce.type==="listOrdered",start:null,spread:ce._spread,children:[]}}function Ie(ce){return{type:"listItem",spread:ce._spread,checked:null,children:[]}}function dt(){return{type:"paragraph",children:[]}}function qe(){return{type:"strong",children:[]}}function Ye(){return{type:"text",value:""}}function ln(){return{type:"thematicBreak"}}}function za(e){return{line:e.line,column:e.column,offset:e.offset}}function k3(e,t){let n=-1;for(;++n<t.length;){const a=t[n];Array.isArray(a)?k3(e,a):qH(e,a)}}function qH(e,t){let n;for(n in t)if(A3.call(t,n))switch(n){case"canContainEols":{const a=t[n];a&&e[n].push(...a);break}case"transforms":{const a=t[n];a&&e[n].push(...a);break}case"enter":case"exit":{const a=t[n];a&&Object.assign(e[n],a);break}}}function S2(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Go({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Go({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Go({start:t.start,end:t.end})+") is still open")}function VH(e){const t=this;t.parser=n;function n(a){return zH(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function YH(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function $H(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
89
|
-
`}]}function GH(e,t){const n=t.value?t.value+`
|
|
90
|
-
`:"",a={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(a.className=["language-"+s[0]]);let l={type:"element",tagName:"code",properties:a,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function KH(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function XH(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function QH(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),s=Al(a.toLowerCase()),l=e.footnoteOrder.indexOf(a);let u,c=e.footnoteCounts.get(a);c===void 0?(c=0,e.footnoteOrder.push(a),u=e.footnoteOrder.length):u=l+1,c+=1,e.footnoteCounts.set(a,c);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,h),e.applyData(t,h)}function WH(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ZH(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function w3(e,t){const n=t.referenceType;let a="]";if(n==="collapsed"?a+="[]":n==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const s=e.all(t),l=s[0];l&&l.type==="text"?l.value="["+l.value:s.unshift({type:"text",value:"["});const u=s[s.length-1];return u&&u.type==="text"?u.value+=a:s.push({type:"text",value:a}),s}function JH(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return w3(e,t);const s={src:Al(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(s.title=a.title);const l={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,l),e.applyData(t,l)}function eU(e,t){const n={src:Al(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,a),e.applyData(t,a)}function tU(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const a={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,a),e.applyData(t,a)}function nU(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return w3(e,t);const s={href:Al(a.url||"")};a.title!==null&&a.title!==void 0&&(s.title=a.title);const l={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function rU(e,t){const n={href:Al(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function aU(e,t,n){const a=e.all(t),s=n?iU(n):N3(t),l={},u=[];if(typeof t.checked=="boolean"){const m=a[0];let p;m&&m.type==="element"&&m.tagName==="p"?p=m:(p={type:"element",tagName:"p",properties:{},children:[]},a.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let c=-1;for(;++c<a.length;){const m=a[c];(s||c!==0||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
|
|
91
|
-
`}),m.type==="element"&&m.tagName==="p"&&!s?u.push(...m.children):u.push(m)}const d=a[a.length-1];d&&(s||d.type!=="element"||d.tagName!=="p")&&u.push({type:"text",value:`
|
|
92
|
-
`});const h={type:"element",tagName:"li",properties:l,children:u};return e.patch(t,h),e.applyData(t,h)}function iU(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let a=-1;for(;!t&&++a<n.length;)t=N3(n[a])}return t}function N3(e){const t=e.spread;return t??e.children.length>1}function sU(e,t){const n={},a=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s<a.length;){const u=a[s];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(a,!0)};return e.patch(t,l),e.applyData(t,l)}function lU(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oU(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function uU(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function cU(e,t){const n=e.all(t),a=n.shift(),s=[];if(a){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],u),s.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=Dr(t.children[1]),d=pd(t.children[t.children.length-1]);c&&d&&(u.position={start:c,end:d}),s.push(u)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,l),e.applyData(t,l)}function fU(e,t,n){const a=n?n.children:void 0,l=(a?a.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,c=u?u.length:t.children.length;let d=-1;const h=[];for(;++d<c;){const p=t.children[d],E={},x=u?u[d]:void 0;x&&(E.align=x);let v={type:"element",tagName:l,properties:E,children:[]};p&&(v.children=e.all(p),e.patch(p,v),v=e.applyData(p,v)),h.push(v)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,m),e.applyData(t,m)}function dU(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const C2=9,_2=32;function hU(e){const t=String(e),n=/\r?\n|\r/g;let a=n.exec(t),s=0;const l=[];for(;a;)l.push(A2(t.slice(s,a.index),s>0,!0),a[0]),s=a.index+a[0].length,a=n.exec(t);return l.push(A2(t.slice(s),s>0,!1)),l.join("")}function A2(e,t,n){let a=0,s=e.length;if(t){let l=e.codePointAt(a);for(;l===C2||l===_2;)a++,l=e.codePointAt(a)}if(n){let l=e.codePointAt(s-1);for(;l===C2||l===_2;)s--,l=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function mU(e,t){const n={type:"text",value:hU(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function pU(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const gU={blockquote:YH,break:$H,code:GH,delete:KH,emphasis:XH,footnoteReference:QH,heading:WH,html:ZH,imageReference:JH,image:eU,inlineCode:tU,linkReference:nU,link:rU,listItem:aU,list:sU,paragraph:lU,root:oU,strong:uU,table:cU,tableCell:dU,tableRow:fU,text:mU,thematicBreak:pU,toml:ef,yaml:ef,definition:ef,footnoteDefinition:ef};function ef(){}function bU(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function yU(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function EU(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||bU,a=e.options.footnoteBackLabel||yU,s=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const m=e.all(h),p=String(h.identifier).toUpperCase(),E=Al(p.toLowerCase());let x=0;const v=[],S=e.footnoteCounts.get(p);for(;S!==void 0&&++x<=S;){v.length>0&&v.push({type:"text",value:" "});let N=typeof n=="string"?n:n(d,x);typeof N=="string"&&(N={type:"text",value:N}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+E+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(d,x),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const _=m[m.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const N=_.children[_.children.length-1];N&&N.type==="text"?N.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...v)}else m.push(...v);const k={type:"element",tagName:"li",properties:{id:t+"fn-"+E},children:e.wrap(m,!0)};e.patch(h,k),c.push(k)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Xi(u),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
93
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
94
|
-
`}]}}const y0={}.hasOwnProperty,xU={};function TU(e,t){const n=t||xU,a=new Map,s=new Map,l=new Map,u={...gU,...n.handlers},c={all:h,applyData:SU,definitionById:a,footnoteById:s,footnoteCounts:l,footnoteOrder:[],handlers:u,one:d,options:n,patch:vU,wrap:_U};return hr(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const p=m.type==="definition"?a:s,E=String(m.identifier).toUpperCase();p.has(E)||p.set(E,m)}}),c;function d(m,p){const E=m.type,x=c.handlers[E];if(y0.call(c.handlers,E)&&x)return x(c,m,p);if(c.options.passThrough&&c.options.passThrough.includes(E)){if("children"in m){const{children:S,..._}=m,k=Xi(_);return k.children=c.all(m),k}return Xi(m)}return(c.options.unknownHandler||CU)(c,m,p)}function h(m){const p=[];if("children"in m){const E=m.children;let x=-1;for(;++x<E.length;){const v=c.one(E[x],m);if(v){if(x&&E[x-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=k2(v.value)),!Array.isArray(v)&&v.type==="element")){const S=v.children[0];S&&S.type==="text"&&(S.value=k2(S.value))}Array.isArray(v)?p.push(...v):p.push(v)}}}return p}}function vU(e,t){e.position&&(t.position=i_(e))}function SU(e,t){let n=t;if(e&&e.data){const a=e.data.hName,s=e.data.hChildren,l=e.data.hProperties;if(typeof a=="string")if(n.type==="element")n.tagName=a;else{const u="children"in n?n.children:[n];n={type:"element",tagName:a,properties:{},children:u}}n.type==="element"&&l&&Object.assign(n.properties,Xi(l)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function CU(e,t){const n=t.data||{},a="value"in t&&!(y0.call(n,"hProperties")||y0.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function _U(e,t){const n=[];let a=-1;for(t&&n.push({type:"text",value:`
|
|
95
|
-
`});++a<e.length;)a&&n.push({type:"text",value:`
|
|
96
|
-
`}),n.push(e[a]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
97
|
-
`}),n}function k2(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function w2(e,t){const n=TU(e,t),a=n.one(e,void 0),s=EU(n),l=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&l.children.push({type:"text",value:`
|
|
98
|
-
`},s),l}function AU(e,t){return e&&"run"in e?async function(n,a){const s=w2(n,{file:a,...t});await e.run(s,a)}:function(n,a){return w2(n,{file:a,...e||t})}}function N2(e){if(e)throw e}var Sp,R2;function kU(){if(R2)return Sp;R2=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},l=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),p=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!p)return!1;var E;for(E in h);return typeof E>"u"||e.call(h,E)},u=function(h,m){n&&m.name==="__proto__"?n(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},c=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(a)return a(h,m).value}else return;return h[m]};return Sp=function d(){var h,m,p,E,x,v,S=arguments[0],_=1,k=arguments.length,N=!1;for(typeof S=="boolean"&&(N=S,S=arguments[1]||{},_=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});_<k;++_)if(h=arguments[_],h!=null)for(m in h)p=c(S,m),E=c(h,m),S!==E&&(N&&E&&(l(E)||(x=s(E)))?(x?(x=!1,v=p&&s(p)?p:[]):v=p&&l(p)?p:{},u(S,{name:m,newValue:d(N,v,E)})):typeof E<"u"&&u(S,{name:m,newValue:E}));return S},Sp}var wU=kU();const Cp=D0(wU);function E0(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function NU(){const e=[],t={run:n,use:a};return t;function n(...s){let l=-1;const u=s.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);c(null,...s);function c(d,...h){const m=e[++l];let p=-1;if(d){u(d);return}for(;++p<s.length;)(h[p]===null||h[p]===void 0)&&(h[p]=s[p]);s=h,m?RU(m,c)(...h):u(null,...h)}}function a(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function RU(e,t){let n;return a;function a(...u){const c=e.length>u.length;let d;c&&u.push(s);try{d=e.apply(this,u)}catch(h){const m=h;if(c&&n)throw m;return s(m)}c||(d&&d.then&&typeof d.then=="function"?d.then(l,s):d instanceof Error?s(d):l(d))}function s(u,...c){n||(n=!0,t(u,...c))}function l(u){s(null,u)}}const Cr={basename:OU,dirname:LU,extname:DU,join:IU,sep:"/"};function OU(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');gu(e);let n=0,a=-1,s=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(l){n=s+1;break}}else a<0&&(l=!0,a=s+1);return a<0?"":e.slice(n,a)}if(t===e)return"";let u=-1,c=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(l){n=s+1;break}}else u<0&&(l=!0,u=s+1),c>-1&&(e.codePointAt(s)===t.codePointAt(c--)?c<0&&(a=s):(c=-1,a=u));return n===a?a=u:a<0&&(a=e.length),e.slice(n,a)}function LU(e){if(gu(e),e.length===0)return".";let t=-1,n=e.length,a;for(;--n;)if(e.codePointAt(n)===47){if(a){t=n;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function DU(e){gu(e);let t=e.length,n=-1,a=0,s=-1,l=0,u;for(;t--;){const c=e.codePointAt(t);if(c===47){if(u){a=t+1;break}continue}n<0&&(u=!0,n=t+1),c===46?s<0?s=t:l!==1&&(l=1):s>-1&&(l=-1)}return s<0||n<0||l===0||l===1&&s===n-1&&s===a+1?"":e.slice(s,n)}function IU(...e){let t=-1,n;for(;++t<e.length;)gu(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":MU(n)}function MU(e){gu(e);const t=e.codePointAt(0)===47;let n=PU(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function PU(e,t){let n="",a=0,s=-1,l=0,u=-1,c,d;for(;++u<=e.length;){if(u<e.length)c=e.codePointAt(u);else{if(c===47)break;c=47}if(c===47){if(!(s===u-1||l===1))if(s!==u-1&&l===2){if(n.length<2||a!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",a=0):(n=n.slice(0,d),a=n.length-1-n.lastIndexOf("/")),s=u,l=0;continue}}else if(n.length>0){n="",a=0,s=u,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",a=2)}else n.length>0?n+="/"+e.slice(s+1,u):n=e.slice(s+1,u),a=u-s-1;s=u,l=0}else c===46&&l>-1?l++:l=-1}return n}function gu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const BU={cwd:jU};function jU(){return"/"}function x0(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function HU(e){if(typeof e=="string")e=new URL(e);else if(!x0(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return UU(e)}function UU(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const a=t.codePointAt(n+2);if(a===70||a===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const _p=["history","path","basename","stem","extname","dirname"];class zU{constructor(t){let n;t?x0(t)?n={path:t}:typeof t=="string"||FU(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":BU.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<_p.length;){const l=_p[a];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let s;for(s in n)_p.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?Cr.basename(this.path):void 0}set basename(t){kp(t,"basename"),Ap(t,"basename"),this.path=Cr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Cr.dirname(this.path):void 0}set dirname(t){O2(this.basename,"dirname"),this.path=Cr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Cr.extname(this.path):void 0}set extname(t){if(Ap(t,"extname"),O2(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Cr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){x0(t)&&(t=HU(t)),kp(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Cr.basename(this.path,this.extname):void 0}set stem(t){kp(t,"stem"),Ap(t,"stem"),this.path=Cr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,a){const s=this.message(t,n,a);throw s.fatal=!0,s}info(t,n,a){const s=this.message(t,n,a);return s.fatal=void 0,s}message(t,n,a){const s=new dn(t,n,a);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ap(e,t){if(e&&e.includes(Cr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Cr.sep+"`")}function kp(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function O2(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function FU(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const qU=(function(e){const a=this.constructor.prototype,s=a[e],l=function(){return s.apply(l,arguments)};return Object.setPrototypeOf(l,a),l}),VU={}.hasOwnProperty;class Lg extends qU{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=NU()}copy(){const t=new Lg;let n=-1;for(;++n<this.attachers.length;){const a=this.attachers[n];t.use(...a)}return t.data(Cp(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Rp("data",this.frozen),this.namespace[t]=n,this):VU.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Rp("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const s=n.call(t,...a);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=tf(t),a=this.parser||this.Parser;return wp("parse",a),a(String(n),n)}process(t,n){const a=this;return this.freeze(),wp("process",this.parser||this.Parser),Np("process",this.compiler||this.Compiler),n?s(void 0,n):new Promise(s);function s(l,u){const c=tf(t),d=a.parse(c);a.run(d,c,function(m,p,E){if(m||!p||!E)return h(m);const x=p,v=a.stringify(x,E);GU(v)?E.value=v:E.result=v,h(m,E)});function h(m,p){m||!p?u(m):l?l(p):n(void 0,p)}}}processSync(t){let n=!1,a;return this.freeze(),wp("processSync",this.parser||this.Parser),Np("processSync",this.compiler||this.Compiler),this.process(t,s),D2("processSync","process",n),a;function s(l,u){n=!0,N2(l),a=u}}run(t,n,a){L2(t),this.freeze();const s=this.transformers;return!a&&typeof n=="function"&&(a=n,n=void 0),a?l(void 0,a):new Promise(l);function l(u,c){const d=tf(n);s.run(t,d,h);function h(m,p,E){const x=p||t;m?c(m):u?u(x):a(void 0,x,E)}}}runSync(t,n){let a=!1,s;return this.run(t,n,l),D2("runSync","run",a),s;function l(u,c){N2(u),s=c,a=!0}}stringify(t,n){this.freeze();const a=tf(n),s=this.compiler||this.Compiler;return Np("stringify",s),L2(t),s(t,a)}use(t,...n){const a=this.attachers,s=this.namespace;if(Rp("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...p]=h;d(m,p)}else u(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function u(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(h.plugins),h.settings&&(s.settings=Cp(!0,s.settings,h.settings))}function c(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const p=h[m];l(p)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,m){let p=-1,E=-1;for(;++p<a.length;)if(a[p][0]===h){E=p;break}if(E===-1)a.push([h,...m]);else if(m.length>0){let[x,...v]=m;const S=a[E][1];E0(S)&&E0(x)&&(x=Cp(!0,S,x)),a[E]=[h,x,...v]}}}}const YU=new Lg().freeze();function wp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Np(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Rp(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function L2(e){if(!E0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function D2(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function tf(e){return $U(e)?e:new zU(e)}function $U(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function GU(e){return typeof e=="string"||KU(e)}function KU(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Dg(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ls=Dg();function R3(e){ls=e}var Pi={exec:()=>null};function at(e,t=""){let n=typeof e=="string"?e:e.source,a={replace:(s,l)=>{let u=typeof l=="string"?l:l.source;return u=u.replace(yn.caret,"$1"),n=n.replace(s,u),a},getRegex:()=>new RegExp(n,t)};return a}var XU=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),yn={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:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},QU=/^(?:[ \t]*(?:\n|$))+/,WU=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ZU=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,bu=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,JU=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ig=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,O3=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,L3=at(O3).replace(/bull/g,Ig).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ez=at(O3).replace(/bull/g,Ig).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Mg=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,tz=/^[^\n]+/,Pg=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,nz=at(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Pg).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),rz=at(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ig).getRegex(),Ed="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",Bg=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,az=at("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Bg).replace("tag",Ed).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),D3=at(Mg).replace("hr",bu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ed).getRegex(),iz=at(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",D3).getRegex(),jg={blockquote:iz,code:WU,def:nz,fences:ZU,heading:JU,hr:bu,html:az,lheading:L3,list:rz,newline:QU,paragraph:D3,table:Pi,text:tz},I2=at("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",bu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ed).getRegex(),sz={...jg,lheading:ez,table:I2,paragraph:at(Mg).replace("hr",bu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",I2).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ed).getRegex()},lz={...jg,html:at(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Bg).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:Pi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:at(Mg).replace("hr",bu).replace("heading",` *#{1,6} *[^
|
|
99
|
-
]`).replace("lheading",L3).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},oz=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,uz=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,I3=/^( {2,}|\\)\n(?!\s*$)/,cz=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,kl=/[\p{P}\p{S}]/u,xd=/[\s\p{P}\p{S}]/u,Hg=/[^\s\p{P}\p{S}]/u,fz=at(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,xd).getRegex(),M3=/(?!~)[\p{P}\p{S}]/u,dz=/(?!~)[\s\p{P}\p{S}]/u,hz=/(?:[^\s\p{P}\p{S}]|~)/u,mz=at(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",XU?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),P3=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,pz=at(P3,"u").replace(/punct/g,kl).getRegex(),gz=at(P3,"u").replace(/punct/g,M3).getRegex(),B3="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",bz=at(B3,"gu").replace(/notPunctSpace/g,Hg).replace(/punctSpace/g,xd).replace(/punct/g,kl).getRegex(),yz=at(B3,"gu").replace(/notPunctSpace/g,hz).replace(/punctSpace/g,dz).replace(/punct/g,M3).getRegex(),Ez=at("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Hg).replace(/punctSpace/g,xd).replace(/punct/g,kl).getRegex(),xz=at(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,kl).getRegex(),Tz="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",vz=at(Tz,"gu").replace(/notPunctSpace/g,Hg).replace(/punctSpace/g,xd).replace(/punct/g,kl).getRegex(),Sz=at(/\\(punct)/,"gu").replace(/punct/g,kl).getRegex(),Cz=at(/^<(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(),_z=at(Bg).replace("(?:-->|$)","-->").getRegex(),Az=at("^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",_z).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ff=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,kz=at(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Ff).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),j3=at(/^!?\[(label)\]\[(ref)\]/).replace("label",Ff).replace("ref",Pg).getRegex(),H3=at(/^!?\[(ref)\](?:\[\])?/).replace("ref",Pg).getRegex(),wz=at("reflink|nolink(?!\\()","g").replace("reflink",j3).replace("nolink",H3).getRegex(),M2=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ug={_backpedal:Pi,anyPunctuation:Sz,autolink:Cz,blockSkip:mz,br:I3,code:uz,del:Pi,delLDelim:Pi,delRDelim:Pi,emStrongLDelim:pz,emStrongRDelimAst:bz,emStrongRDelimUnd:Ez,escape:oz,link:kz,nolink:H3,punctuation:fz,reflink:j3,reflinkSearch:wz,tag:Az,text:cz,url:Pi},Nz={...Ug,link:at(/^!?\[(label)\]\((.*?)\)/).replace("label",Ff).getRegex(),reflink:at(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ff).getRegex()},T0={...Ug,emStrongRDelimAst:yz,emStrongLDelim:gz,delLDelim:xz,delRDelim:vz,url:at(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",M2).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:at(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",M2).getRegex()},Rz={...T0,br:at(I3).replace("{2,}","*").getRegex(),text:at(T0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},nf={normal:jg,gfm:sz,pedantic:lz},Oo={normal:Ug,gfm:T0,breaks:Rz,pedantic:Nz},Oz={"&":"&","<":"<",">":">",'"':""","'":"'"},P2=e=>Oz[e];function Sr(e,t){if(t){if(yn.escapeTest.test(e))return e.replace(yn.escapeReplace,P2)}else if(yn.escapeTestNoEncode.test(e))return e.replace(yn.escapeReplaceNoEncode,P2);return e}function B2(e){try{e=encodeURI(e).replace(yn.percentDecode,"%")}catch{return null}return e}function j2(e,t){let n=e.replace(yn.findPipe,(l,u,c)=>{let d=!1,h=u;for(;--h>=0&&c[h]==="\\";)d=!d;return d?"|":" |"}),a=n.split(yn.splitPipe),s=0;if(a[0].trim()||a.shift(),a.length>0&&!a.at(-1)?.trim()&&a.pop(),t)if(a.length>t)a.splice(t);else for(;a.length<t;)a.push("");for(;s<a.length;s++)a[s]=a[s].trim().replace(yn.slashPipe,"|");return a}function Lo(e,t,n){let a=e.length;if(a===0)return"";let s=0;for(;s<a&&e.charAt(a-s-1)===t;)s++;return e.slice(0,a-s)}function Lz(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let a=0;a<e.length;a++)if(e[a]==="\\")a++;else if(e[a]===t[0])n++;else if(e[a]===t[1]&&(n--,n<0))return a;return n>0?-2:-1}function Dz(e,t=0){let n=t,a="";for(let s of e)if(s===" "){let l=4-n%4;a+=" ".repeat(l),n+=l}else a+=s,n++;return a}function H2(e,t,n,a,s){let l=t.href,u=t.title||null,c=e[1].replace(s.other.outputLinkReplace,"$1");a.state.inLink=!0;let d={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:u,text:c,tokens:a.inlineTokens(c)};return a.state.inLink=!1,d}function Iz(e,t,n){let a=e.match(n.other.indentCodeCompensation);if(a===null)return t;let s=a[1];return t.split(`
|
|
100
|
-
`).map(l=>{let u=l.match(n.other.beginningSpace);if(u===null)return l;let[c]=u;return c.length>=s.length?l.slice(s.length):l}).join(`
|
|
101
|
-
`)}var qf=class{options;rules;lexer;constructor(e){this.options=e||ls}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Lo(n,`
|
|
102
|
-
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],a=Iz(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:a}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let a=Lo(n,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(n=a.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Lo(t[0],`
|
|
103
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Lo(t[0],`
|
|
104
|
-
`).split(`
|
|
105
|
-
`),a="",s="",l=[];for(;n.length>0;){let u=!1,c=[],d;for(d=0;d<n.length;d++)if(this.rules.other.blockquoteStart.test(n[d]))c.push(n[d]),u=!0;else if(!u)c.push(n[d]);else break;n=n.slice(d);let h=c.join(`
|
|
106
|
-
`),m=h.replace(this.rules.other.blockquoteSetextReplace,`
|
|
107
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
|
|
108
|
-
${h}`:h,s=s?`${s}
|
|
109
|
-
${m}`:m;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(m,l,!0),this.lexer.state.top=p,n.length===0)break;let E=l.at(-1);if(E?.type==="code")break;if(E?.type==="blockquote"){let x=E,v=x.raw+`
|
|
110
|
-
`+n.join(`
|
|
111
|
-
`),S=this.blockquote(v);l[l.length-1]=S,a=a.substring(0,a.length-x.raw.length)+S.raw,s=s.substring(0,s.length-x.text.length)+S.text;break}else if(E?.type==="list"){let x=E,v=x.raw+`
|
|
112
|
-
`+n.join(`
|
|
113
|
-
`),S=this.list(v);l[l.length-1]=S,a=a.substring(0,a.length-E.raw.length)+S.raw,s=s.substring(0,s.length-x.raw.length)+S.raw,n=v.substring(l.at(-1).raw.length).split(`
|
|
114
|
-
`);continue}}return{type:"blockquote",raw:a,tokens:l,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),a=n.length>1,s={type:"list",raw:"",ordered:a,start:a?+n.slice(0,-1):"",loose:!1,items:[]};n=a?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=a?n:"[*+-]");let l=this.rules.other.listItemRegex(n),u=!1;for(;e;){let d=!1,h="",m="";if(!(t=l.exec(e))||this.rules.block.hr.test(e))break;h=t[0],e=e.substring(h.length);let p=Dz(t[2].split(`
|
|
115
|
-
`,1)[0],t[1].length),E=e.split(`
|
|
116
|
-
`,1)[0],x=!p.trim(),v=0;if(this.options.pedantic?(v=2,m=p.trimStart()):x?v=t[1].length+1:(v=p.search(this.rules.other.nonSpaceChar),v=v>4?1:v,m=p.slice(v),v+=t[1].length),x&&this.rules.other.blankLine.test(E)&&(h+=E+`
|
|
117
|
-
`,e=e.substring(E.length+1),d=!0),!d){let S=this.rules.other.nextBulletRegex(v),_=this.rules.other.hrRegex(v),k=this.rules.other.fencesBeginRegex(v),N=this.rules.other.headingBeginRegex(v),w=this.rules.other.htmlBeginRegex(v),I=this.rules.other.blockquoteBeginRegex(v);for(;e;){let F=e.split(`
|
|
118
|
-
`,1)[0],R;if(E=F,this.options.pedantic?(E=E.replace(this.rules.other.listReplaceNesting," "),R=E):R=E.replace(this.rules.other.tabCharGlobal," "),k.test(E)||N.test(E)||w.test(E)||I.test(E)||S.test(E)||_.test(E))break;if(R.search(this.rules.other.nonSpaceChar)>=v||!E.trim())m+=`
|
|
119
|
-
`+R.slice(v);else{if(x||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(p)||N.test(p)||_.test(p))break;m+=`
|
|
120
|
-
`+E}x=!E.trim(),h+=F+`
|
|
121
|
-
`,e=e.substring(F.length+1),p=R.slice(v)}}s.loose||(u?s.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(u=!0)),s.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(m),loose:!1,text:m,tokens:[]}),s.raw+=h}let c=s.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let d of s.items){if(this.lexer.state.top=!1,d.tokens=this.lexer.blockTokens(d.text,[]),d.task){if(d.text=d.text.replace(this.rules.other.listReplaceTask,""),d.tokens[0]?.type==="text"||d.tokens[0]?.type==="paragraph"){d.tokens[0].raw=d.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),d.tokens[0].text=d.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let m=this.lexer.inlineQueue.length-1;m>=0;m--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[m].src)){this.lexer.inlineQueue[m].src=this.lexer.inlineQueue[m].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(d.raw);if(h){let m={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};d.checked=m.checked,s.loose?d.tokens[0]&&["paragraph","text"].includes(d.tokens[0].type)&&"tokens"in d.tokens[0]&&d.tokens[0].tokens?(d.tokens[0].raw=m.raw+d.tokens[0].raw,d.tokens[0].text=m.raw+d.tokens[0].text,d.tokens[0].tokens.unshift(m)):d.tokens.unshift({type:"paragraph",raw:m.raw,text:m.raw,tokens:[m]}):d.tokens.unshift(m)}}if(!s.loose){let h=d.tokens.filter(p=>p.type==="space"),m=h.length>0&&h.some(p=>this.rules.other.anyLine.test(p.raw));s.loose=m}}if(s.loose)for(let d of s.items){d.loose=!0;for(let h of d.tokens)h.type==="text"&&(h.type="paragraph")}return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:a,title:s}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=j2(t[1]),a=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
122
|
-
`):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===a.length){for(let u of a)this.rules.other.tableAlignRight.test(u)?l.align.push("right"):this.rules.other.tableAlignCenter.test(u)?l.align.push("center"):this.rules.other.tableAlignLeft.test(u)?l.align.push("left"):l.align.push(null);for(let u=0;u<n.length;u++)l.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:l.align[u]});for(let u of s)l.rows.push(j2(u,l.header.length).map((c,d)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:l.align[d]})));return l}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
123
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let l=Lo(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=Lz(t[2],"()");if(l===-2)return;if(l>-1){let u=(t[0].indexOf("!")===0?5:4)+t[1].length+l;t[2]=t[2].substring(0,l),t[0]=t[0].substring(0,u).trim(),t[3]=""}}let a=t[2],s="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(a);l&&(a=l[1],s=l[3])}else s=t[3]?t[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?a=a.slice(1):a=a.slice(1,-1)),H2(t,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let a=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=t[a.toLowerCase()];if(!s){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return H2(n,s,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!(!a||!a[1]&&!a[2]&&!a[3]&&!a[4]||a[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[3])||!n||this.rules.inline.punctuation.exec(n))){let s=[...a[0]].length-1,l,u,c=s,d=0,h=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+s);(a=h.exec(t))!==null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l)continue;if(u=[...l].length,a[3]||a[4]){c+=u;continue}else if((a[5]||a[6])&&s%3&&!((s+u)%3)){d+=u;continue}if(c-=u,c>0)continue;u=Math.min(u,u+c+d);let m=[...a[0]][0].length,p=e.slice(0,s+a.index+m+u);if(Math.min(s,u)%2){let x=p.slice(1,-1);return{type:"em",raw:p,text:x,tokens:this.lexer.inlineTokens(x)}}let E=p.slice(2,-2);return{type:"strong",raw:p,text:E,tokens:this.lexer.inlineTokens(E)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return a&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let a=this.rules.inline.delLDelim.exec(e);if(a&&(!a[1]||!n||this.rules.inline.punctuation.exec(n))){let s=[...a[0]].length-1,l,u,c=s,d=this.rules.inline.delRDelim;for(d.lastIndex=0,t=t.slice(-1*e.length+s);(a=d.exec(t))!==null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l||(u=[...l].length,u!==s))continue;if(a[3]||a[4]){c+=u;continue}if(c-=u,c>0)continue;u=Math.min(u,u+c);let h=[...a[0]][0].length,m=e.slice(0,s+a.index+h+u),p=m.slice(s,-s);return{type:"del",raw:m,text:p,tokens:this.lexer.inlineTokens(p)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,a;return t[2]==="@"?(n=t[1],a="mailto:"+n):(n=t[1],a=n),{type:"link",raw:t[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,a;if(t[2]==="@")n=t[0],a="mailto:"+n;else{let s;do s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(s!==t[0]);n=t[0],t[1]==="www."?a="http://"+t[0]:a=t[0]}return{type:"link",raw:t[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},rr=class v0{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ls,this.options.tokenizer=this.options.tokenizer||new qf,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 n={other:yn,block:nf.normal,inline:Oo.normal};this.options.pedantic?(n.block=nf.pedantic,n.inline=Oo.pedantic):this.options.gfm&&(n.block=nf.gfm,this.options.breaks?n.inline=Oo.breaks:n.inline=Oo.gfm),this.tokenizer.rules=n}static get rules(){return{block:nf,inline:Oo}}static lex(t,n){return new v0(n).lex(t)}static lexInline(t,n){return new v0(n).inlineTokens(t)}lex(t){t=t.replace(yn.carriageReturn,`
|
|
124
|
-
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let a=this.inlineQueue[n];this.inlineTokens(a.src,a.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],a=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(yn.tabCharGlobal," ").replace(yn.spaceLine,""));t;){let s;if(this.options.extensions?.block?.some(u=>(s=u.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);let u=n.at(-1);s.raw.length===1&&u!==void 0?u.raw+=`
|
|
125
|
-
`:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let u=n.at(-1);u?.type==="paragraph"||u?.type==="text"?(u.raw+=(u.raw.endsWith(`
|
|
126
|
-
`)?"":`
|
|
127
|
-
`)+s.raw,u.text+=`
|
|
128
|
-
`+s.text,this.inlineQueue.at(-1).src=u.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);let u=n.at(-1);u?.type==="paragraph"||u?.type==="text"?(u.raw+=(u.raw.endsWith(`
|
|
129
|
-
`)?"":`
|
|
130
|
-
`)+s.raw,u.text+=`
|
|
131
|
-
`+s.raw,this.inlineQueue.at(-1).src=u.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},n.push(s));continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}let l=t;if(this.options.extensions?.startBlock){let u=1/0,c=t.slice(1),d;this.options.extensions.startBlock.forEach(h=>{d=h.call({lexer:this},c),typeof d=="number"&&d>=0&&(u=Math.min(u,d))}),u<1/0&&u>=0&&(l=t.substring(0,u+1))}if(this.state.top&&(s=this.tokenizer.paragraph(l))){let u=n.at(-1);a&&u?.type==="paragraph"?(u.raw+=(u.raw.endsWith(`
|
|
132
|
-
`)?"":`
|
|
133
|
-
`)+s.raw,u.text+=`
|
|
134
|
-
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):n.push(s),a=l.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);let u=n.at(-1);u?.type==="text"?(u.raw+=(u.raw.endsWith(`
|
|
135
|
-
`)?"":`
|
|
136
|
-
`)+s.raw,u.text+=`
|
|
137
|
-
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):n.push(s);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){this.tokenizer.lexer=this;let a=t,s=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(a))!==null;)d.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(a))!==null;)a=a.slice(0,s.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(a))!==null;)l=s[2]?s[2].length:0,a=a.slice(0,s.index+l)+"["+"a".repeat(s[0].length-l-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=this.options.hooks?.emStrongMask?.call({lexer:this},a)??a;let u=!1,c="";for(;t;){u||(c=""),u=!1;let d;if(this.options.extensions?.inline?.some(m=>(d=m.call({lexer:this},t,n))?(t=t.substring(d.raw.length),n.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let m=n.at(-1);d.type==="text"&&m?.type==="text"?(m.raw+=d.raw,m.text+=d.text):n.push(d);continue}if(d=this.tokenizer.emStrong(t,a,c)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.del(t,a,c)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),n.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),n.push(d);continue}let h=t;if(this.options.extensions?.startInline){let m=1/0,p=t.slice(1),E;this.options.extensions.startInline.forEach(x=>{E=x.call({lexer:this},p),typeof E=="number"&&E>=0&&(m=Math.min(m,E))}),m<1/0&&m>=0&&(h=t.substring(0,m+1))}if(d=this.tokenizer.inlineText(h)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(c=d.raw.slice(-1)),u=!0;let m=n.at(-1);m?.type==="text"?(m.raw+=d.raw,m.text+=d.text):n.push(d);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return n}},Vf=class{options;parser;constructor(e){this.options=e||ls}space(e){return""}code({text:e,lang:t,escaped:n}){let a=(t||"").match(yn.notSpaceStart)?.[0],s=e.replace(yn.endingNewline,"")+`
|
|
138
|
-
`;return a?'<pre><code class="language-'+Sr(a)+'">'+(n?s:Sr(s,!0))+`</code></pre>
|
|
139
|
-
`:"<pre><code>"+(n?s:Sr(s,!0))+`</code></pre>
|
|
140
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
141
|
-
${this.parser.parse(e)}</blockquote>
|
|
142
|
-
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
143
|
-
`}hr(e){return`<hr>
|
|
144
|
-
`}list(e){let t=e.ordered,n=e.start,a="";for(let u=0;u<e.items.length;u++){let c=e.items[u];a+=this.listitem(c)}let s=t?"ol":"ul",l=t&&n!==1?' start="'+n+'"':"";return"<"+s+l+`>
|
|
145
|
-
`+a+"</"+s+`>
|
|
146
|
-
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
147
|
-
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
148
|
-
`}table(e){let t="",n="";for(let s=0;s<e.header.length;s++)n+=this.tablecell(e.header[s]);t+=this.tablerow({text:n});let a="";for(let s=0;s<e.rows.length;s++){let l=e.rows[s];n="";for(let u=0;u<l.length;u++)n+=this.tablecell(l[u]);a+=this.tablerow({text:n})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
|
|
149
|
-
<thead>
|
|
150
|
-
`+t+`</thead>
|
|
151
|
-
`+a+`</table>
|
|
152
|
-
`}tablerow({text:e}){return`<tr>
|
|
153
|
-
${e}</tr>
|
|
154
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
155
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Sr(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let a=this.parser.parseInline(n),s=B2(e);if(s===null)return a;e=s;let l='<a href="'+e+'"';return t&&(l+=' title="'+Sr(t)+'"'),l+=">"+a+"</a>",l}image({href:e,title:t,text:n,tokens:a}){a&&(n=this.parser.parseInline(a,this.parser.textRenderer));let s=B2(e);if(s===null)return Sr(n);e=s;let l=`<img src="${e}" alt="${Sr(n)}"`;return t&&(l+=` title="${Sr(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Sr(e.text)}},zg=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},fr=class S0{options;renderer;textRenderer;constructor(t){this.options=t||ls,this.options.renderer=this.options.renderer||new Vf,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new zg}static parse(t,n){return new S0(n).parse(t)}static parseInline(t,n){return new S0(n).parseInline(t)}parse(t){this.renderer.parser=this;let n="";for(let a=0;a<t.length;a++){let s=t[a];if(this.options.extensions?.renderers?.[s.type]){let u=s,c=this.options.extensions.renderers[u.type].call({parser:this},u);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(u.type)){n+=c||"";continue}}let l=s;switch(l.type){case"space":{n+=this.renderer.space(l);break}case"hr":{n+=this.renderer.hr(l);break}case"heading":{n+=this.renderer.heading(l);break}case"code":{n+=this.renderer.code(l);break}case"table":{n+=this.renderer.table(l);break}case"blockquote":{n+=this.renderer.blockquote(l);break}case"list":{n+=this.renderer.list(l);break}case"checkbox":{n+=this.renderer.checkbox(l);break}case"html":{n+=this.renderer.html(l);break}case"def":{n+=this.renderer.def(l);break}case"paragraph":{n+=this.renderer.paragraph(l);break}case"text":{n+=this.renderer.text(l);break}default:{let u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}parseInline(t,n=this.renderer){this.renderer.parser=this;let a="";for(let s=0;s<t.length;s++){let l=t[s];if(this.options.extensions?.renderers?.[l.type]){let c=this.options.extensions.renderers[l.type].call({parser:this},l);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){a+=c||"";continue}}let u=l;switch(u.type){case"escape":{a+=n.text(u);break}case"html":{a+=n.html(u);break}case"link":{a+=n.link(u);break}case"image":{a+=n.image(u);break}case"checkbox":{a+=n.checkbox(u);break}case"strong":{a+=n.strong(u);break}case"em":{a+=n.em(u);break}case"codespan":{a+=n.codespan(u);break}case"br":{a+=n.br(u);break}case"del":{a+=n.del(u);break}case"text":{a+=n.text(u);break}default:{let c='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return a}},Mo=class{options;block;constructor(e){this.options=e||ls}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?rr.lex:rr.lexInline}provideParser(e=this.block){return e?fr.parse:fr.parseInline}},Mz=class{defaults=Dg();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=fr;Renderer=Vf;TextRenderer=zg;Lexer=rr;Tokenizer=qf;Hooks=Mo;constructor(...t){this.use(...t)}walkTokens(t,n){let a=[];for(let s of t)switch(a=a.concat(n.call(this,s)),s.type){case"table":{let l=s;for(let u of l.header)a=a.concat(this.walkTokens(u.tokens,n));for(let u of l.rows)for(let c of u)a=a.concat(this.walkTokens(c.tokens,n));break}case"list":{let l=s;a=a.concat(this.walkTokens(l.items,n));break}default:{let l=s;this.defaults.extensions?.childTokens?.[l.type]?this.defaults.extensions.childTokens[l.type].forEach(u=>{let c=l[u].flat(1/0);a=a.concat(this.walkTokens(c,n))}):l.tokens&&(a=a.concat(this.walkTokens(l.tokens,n)))}}return a}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(a=>{let s={...a};if(s.async=this.defaults.async||s.async||!1,a.extensions&&(a.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if("renderer"in l){let u=n.renderers[l.name];u?n.renderers[l.name]=function(...c){let d=l.renderer.apply(this,c);return d===!1&&(d=u.apply(this,c)),d}:n.renderers[l.name]=l.renderer}if("tokenizer"in l){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=n[l.level];u?u.unshift(l.tokenizer):n[l.level]=[l.tokenizer],l.start&&(l.level==="block"?n.startBlock?n.startBlock.push(l.start):n.startBlock=[l.start]:l.level==="inline"&&(n.startInline?n.startInline.push(l.start):n.startInline=[l.start]))}"childTokens"in l&&l.childTokens&&(n.childTokens[l.name]=l.childTokens)}),s.extensions=n),a.renderer){let l=this.defaults.renderer||new Vf(this.defaults);for(let u in a.renderer){if(!(u in l))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let c=u,d=a.renderer[c],h=l[c];l[c]=(...m)=>{let p=d.apply(l,m);return p===!1&&(p=h.apply(l,m)),p||""}}s.renderer=l}if(a.tokenizer){let l=this.defaults.tokenizer||new qf(this.defaults);for(let u in a.tokenizer){if(!(u in l))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let c=u,d=a.tokenizer[c],h=l[c];l[c]=(...m)=>{let p=d.apply(l,m);return p===!1&&(p=h.apply(l,m)),p}}s.tokenizer=l}if(a.hooks){let l=this.defaults.hooks||new Mo;for(let u in a.hooks){if(!(u in l))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let c=u,d=a.hooks[c],h=l[c];Mo.passThroughHooks.has(u)?l[c]=m=>{if(this.defaults.async&&Mo.passThroughHooksRespectAsync.has(u))return(async()=>{let E=await d.call(l,m);return h.call(l,E)})();let p=d.call(l,m);return h.call(l,p)}:l[c]=(...m)=>{if(this.defaults.async)return(async()=>{let E=await d.apply(l,m);return E===!1&&(E=await h.apply(l,m)),E})();let p=d.apply(l,m);return p===!1&&(p=h.apply(l,m)),p}}s.hooks=l}if(a.walkTokens){let l=this.defaults.walkTokens,u=a.walkTokens;s.walkTokens=function(c){let d=[];return d.push(u.call(this,c)),l&&(d=d.concat(l.call(this,c))),d}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return rr.lex(t,n??this.defaults)}parser(t,n){return fr.parse(t,n??this.defaults)}parseMarkdown(t){return(n,a)=>{let s={...a},l={...this.defaults,...s},u=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&s.async===!1)return u(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 n>"u"||n===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(l.hooks&&(l.hooks.options=l,l.hooks.block=t),l.async)return(async()=>{let c=l.hooks?await l.hooks.preprocess(n):n,d=await(l.hooks?await l.hooks.provideLexer(t):t?rr.lex:rr.lexInline)(c,l),h=l.hooks?await l.hooks.processAllTokens(d):d;l.walkTokens&&await Promise.all(this.walkTokens(h,l.walkTokens));let m=await(l.hooks?await l.hooks.provideParser(t):t?fr.parse:fr.parseInline)(h,l);return l.hooks?await l.hooks.postprocess(m):m})().catch(u);try{l.hooks&&(n=l.hooks.preprocess(n));let c=(l.hooks?l.hooks.provideLexer(t):t?rr.lex:rr.lexInline)(n,l);l.hooks&&(c=l.hooks.processAllTokens(c)),l.walkTokens&&this.walkTokens(c,l.walkTokens);let d=(l.hooks?l.hooks.provideParser(t):t?fr.parse:fr.parseInline)(c,l);return l.hooks&&(d=l.hooks.postprocess(d)),d}catch(c){return u(c)}}}onError(t,n){return a=>{if(a.message+=`
|
|
156
|
-
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+Sr(a.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(a);throw a}}},Wi=new Mz;function gt(e,t){return Wi.parse(e,t)}gt.options=gt.setOptions=function(e){return Wi.setOptions(e),gt.defaults=Wi.defaults,R3(gt.defaults),gt};gt.getDefaults=Dg;gt.defaults=ls;gt.use=function(...e){return Wi.use(...e),gt.defaults=Wi.defaults,R3(gt.defaults),gt};gt.walkTokens=function(e,t){return Wi.walkTokens(e,t)};gt.parseInline=Wi.parseInline;gt.Parser=fr;gt.parser=fr.parse;gt.Renderer=Vf;gt.TextRenderer=zg;gt.Lexer=rr;gt.lexer=rr.lex;gt.Tokenizer=qf;gt.Hooks=Mo;gt.parse=gt;gt.options;gt.setOptions;gt.use;gt.walkTokens;gt.parseInline;fr.parse;rr.lex;var Pz=300,Bz="300px",jz=500;function Hz(e={}){let{immediate:t=!1,debounceDelay:n=Pz,rootMargin:a=Bz,idleTimeout:s=jz}=e,[l,u]=C.useState(!1),c=C.useRef(null),d=C.useRef(null),h=C.useRef(null),m=C.useMemo(()=>x=>{let v=Date.now();return window.setTimeout(()=>{x({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-v))})},1)},[]),p=C.useMemo(()=>typeof window<"u"&&window.requestIdleCallback?(x,v)=>window.requestIdleCallback(x,v):m,[m]),E=C.useMemo(()=>typeof window<"u"&&window.cancelIdleCallback?x=>window.cancelIdleCallback(x):x=>{clearTimeout(x)},[]);return C.useEffect(()=>{if(t){u(!0);return}let x=c.current;if(!x)return;d.current&&(clearTimeout(d.current),d.current=null),h.current&&(E(h.current),h.current=null);let v=()=>{d.current&&(clearTimeout(d.current),d.current=null),h.current&&(E(h.current),h.current=null)},S=w=>{h.current=p(I=>{I.timeRemaining()>0||I.didTimeout?(u(!0),w.disconnect()):h.current=p(()=>{u(!0),w.disconnect()},{timeout:s/2})},{timeout:s})},_=w=>{v(),d.current=window.setTimeout(()=>{var I,F;let R=w.takeRecords();(R.length===0||(F=(I=R.at(-1))==null?void 0:I.isIntersecting)!=null&&F)&&S(w)},n)},k=(w,I)=>{w.isIntersecting?_(I):v()},N=new IntersectionObserver(w=>{for(let I of w)k(I,N)},{rootMargin:a,threshold:0});return N.observe(x),()=>{d.current&&clearTimeout(d.current),h.current&&E(h.current),N.disconnect()}},[t,n,a,s,E,p]),{shouldRender:l,containerRef:c}}var Uz=320,zz=4,U3=()=>typeof performance>"u"?Date.now():performance.now();function U2(e){var t,n;let a=(t=e?.now)!=null?t:U3,s=(n=e?.maxBacklogMs)!=null?n:Uz,l=0,u=0;return{now:a,beginPass(c){u=Math.min(Math.max(l,c),c+s)},mark(){return u},rewind(c){u=c},take(c,d,h){if(c<=0)return{baseDelay:0,step:Math.max(0,d)};let m=Math.max(0,d),p=m===0?0:Math.min(m,zz),E=Math.max(u,h),x=h+s,v=E+Math.max(0,c-1)*m,S=m;if(v>x&&c>1)if(E<x){let k=x-E;S=Math.max(p,k/(c-1))}else S=p;let _=Math.max(0,Math.round(E-h));return u=E+c*S,{baseDelay:_,step:S}},commitPass(){l=u}}}var z3=/\s/,Fg=/^\s+$/,Fz=new Set(["pre","svg","math","annotation"]),qz=new Set(["img","hr"]),yu=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",qg=e=>e.some(t=>yu(t)&&Fz.has(t.tagName)),Vz=e=>{for(let t=e.length-1;t>=0;t--){let n=e[t];if(yu(n)&&n.tagName==="li")return n}},Yz=(e,t,n,a)=>{e.properties!=null||(e.properties={}),e.properties["data-sd-animate-marker"]=!0;let s=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${s}--sd-marker-duration:${t}ms;--sd-marker-delay:${Math.round(n)}ms;--sd-marker-easing:${a}`},$z=new Set(["ul","ol","li"]),F3=e=>{for(let t of e.children)if(yu(t)){if(t.tagName==="input")return t;if($z.has(t.tagName))continue;let n=F3(t);if(n)return n}},q3=(e,t,n,a)=>{e.properties!=null||(e.properties={}),e.properties["data-sd-animate"]=!0;let s=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${s}--sd-animation:sd-${t.animation};--sd-duration:${n}ms;--sd-easing:${t.easing};--sd-delay:${Math.round(a)}ms`},Gz=(e,t,n,a)=>{let s=F3(e);s&&q3(s,t,n,a)},Kz=(e,t,n,a,s,l)=>{if(qg(t))return;let u=a.prevContentLength,c=s.count;s.count+=1;let d=u>0&&c<u,h=d?0:l.baseDelay+s.newIndex++*l.step;q3(e,n,d?0:n.duration,h)},Xz=e=>{var t;for(let n=e.length-1;n>=0;n-=1){let a=e[n];if(yu(a)){if((t=a.properties)!=null&&t["data-sd-animated"])break;a.properties={...a.properties,"data-sd-animated":!0}}}},V3=e=>{let t=[],n="",a=!1;for(let s of e){let l=z3.test(s);if(l!==a&&n){if(l){n+=s,a=!0;continue}t.push(n),n=""}n+=s,a=l}return n&&t.push(n),t},Y3=e=>{let t=[],n="";for(let a of e)z3.test(a)?t.length>0&&!Fg.test(t.at(-1))?t[t.length-1]+=a:n+=a:(n&&(t.push(n),n=""),t.push(a));return n&&(t.length>0?t[t.length-1]+=n:t.push(n)),t},Qz=(e,t,n,a,s,l)=>{let u=`--sd-animation:sd-${t};--sd-duration:${s?0:n}ms;--sd-easing:${a}`;return l&&(u+=`;--sd-delay:${Math.round(l)}ms`),{type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:u},children:[{type:"text",value:e}]}},z2=(e,t)=>!(e>0&&t<e),C0=e=>yu(e)&&qz.has(e.tagName),Wz=(e,t,n)=>{let a=0,s=0;return od(e,l=>l.type==="text"||C0(l),(l,u)=>{if(qg(u))return Hi;if(C0(l)){z2(n,s)&&(a+=1),s+=1;return}let c=l.value;if(!c.trim()){s+=c.length;return}let d=t.sep==="char"?Y3(c):V3(c);for(let h of d){let m=s;s+=h.length,!Fg.test(h)&&z2(n,m)&&(a+=1)}}),a},Zz=(e,t,n,a,s,l)=>{var u;let c=t.at(-1);if(!(c&&"children"in c))return;if(qg(t))return Hi;let d=c,h=d.children.indexOf(e);if(h===-1)return;let m=e.value;if(!m.trim()){s.count+=m.length;return}let p=n.sep==="char"?Y3(m):V3(m),E=a.prevContentLength,x=!1,v=Vz(t),S=!!(v&&!((u=v.properties)!=null&&u["data-sd-animate-marker"])),_=!1,k=p.map(N=>{let w=s.count;if(s.count+=N.length,Fg.test(N))return{type:"text",value:N};let I=E>0&&w<E,F=I?0:l.baseDelay+s.newIndex++*l.step;if(x=!0,v&&S&&!_){let R=I?0:n.duration;Yz(v,R,F,n.easing),Gz(v,n,R,F),_=!0}return Qz(N,n.animation,n.duration,n.easing,I,F)});return x&&Xz(t),d.children.splice(h,1,...k),h+k.length},Jz=0;function $3(e){var t,n,a,s,l;let u={animation:(t=e?.animation)!=null?t:"fadeIn",duration:(n=e?.duration)!=null?n:150,easing:(a=e?.easing)!=null?a:"ease",sep:(s=e?.sep)!=null?s:"word",stagger:(l=e?.stagger)!=null?l:40,timeline:e?.timeline},c={committedCharCount:0,prevContentLength:0,lastRenderCharCount:0,pendingMark:null},d=Jz++,h=()=>m=>{var p;let E={count:0,newIndex:0};c.prevContentLength=c.committedCharCount;let x=u.timeline,v=(p=x?.now())!=null?p:U3();x&&(c.pendingMark===null?c.pendingMark=x.mark():x.rewind(c.pendingMark));let S=x?x.take(Wz(m,u,c.prevContentLength),u.stagger,v):{baseDelay:0,step:u.stagger};od(m,_=>_.type==="text"||C0(_),(_,k)=>{if(_.type==="text")return Zz(_,k,u,c,E,S);Kz(_,k,u,c,E,S)}),c.lastRenderCharCount=E.count,c.prevContentLength=0};return Object.defineProperty(h,"name",{value:`rehypeAnimate$${d}`}),{name:"animate",type:"animate",rehypePlugin:h,setPrevContentLength(m){c.committedCharCount=m,c.prevContentLength=m},getLastRenderCharCount(){return c.lastRenderCharCount},commit(){c.committedCharCount=c.lastRenderCharCount,c.pendingMark=null}}}$3();var G3=C.createContext(!1),eF=()=>C.useContext(G3),Td=(...e)=>E3(a3(e)),tF=(e,t)=>{if(!e||!t)return t;let n=`${e}:`;return t.split(/\s+/).filter(Boolean).map(a=>a.startsWith(n)?a:`${e}:${a}`).join(" ")},nF=e=>e?(...t)=>tF(e,E3(a3(t))):Td,cl=(e,t,n)=>{let a=typeof t=="string"&&n.startsWith("text/csv")?"\uFEFF":"",s=typeof t=="string"?new Blob([a+t],{type:n}):t,l=URL.createObjectURL(s),u=document.createElement("a");u.href=l,u.download=e,document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(l)},_0=C.createContext(Td),Ke=()=>C.useContext(_0),rF=8,K3=e=>{if(!(e===void 0||e===0||e===Number.POSITIVE_INFINITY)){if(typeof e=="number")return Number.isFinite(e)&&e>0?`${e}px`:void 0;if(!(e==="0"||e==="none"||e==="Infinity"))return e}},X3=(e,t,n)=>{let a=C.useRef(null),s=C.useRef(!0),l=C.useRef(!1);return C.useEffect(()=>{let u=a.current;if(!(u&&t))return;let c=()=>{let d=u.scrollHeight-u.scrollTop-u.clientHeight<rF;s.current=d};return u.addEventListener("scroll",c,{passive:!0}),()=>u.removeEventListener("scroll",c)},[t]),C.useEffect(()=>{e&&!l.current&&(s.current=!0),e||(s.current=!0),l.current=e},[e]),C.useEffect(()=>{let u=a.current;u&&t&&e&&s.current&&u.scrollTo({top:u.scrollHeight,behavior:"instant"})},[e,t,n]),a},aF=Td("block"),iF=Td("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),sF=e=>{let t={};for(let n of e.split(";")){let a=n.indexOf(":");if(a>0){let s=n.slice(0,a).trim(),l=n.slice(a+1).trim();s&&l&&(t[s]=l)}}return t},lF=C.memo(({children:e,result:t,language:n,className:a,maxHeight:s,startLine:l,lineNumbers:u=!0,...c})=>{let d=Ke(),{isAnimating:h}=C.useContext(sn),m=K3(s),p=X3(h,!!m,t),E=C.useMemo(()=>d(iF),[d]),x=C.useMemo(()=>d(aF),[d]),v=C.useMemo(()=>{let S={};return t.bg&&(S["--sdm-bg"]=t.bg),t.fg&&(S["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(S,sF(t.rootStyle)),S},[t.bg,t.fg,t.rootStyle]);return y.jsx("div",{className:d(a,m?"overflow-y-auto":null,"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),"data-language":n,"data-streamdown":"code-block-body",ref:p,style:m?{maxHeight:m}:void 0,...c,children:y.jsx("pre",{className:d(a,"bg-[var(--sdm-bg,inherit)]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit))]"),style:v,children:y.jsx("code",{className:u?d("[counter-increment:line_0] [counter-reset:line]"):void 0,style:u&&l&&l>1?{counterReset:`line ${l-1}`}:void 0,children:t.tokens.map((S,_)=>y.jsx("span",{className:u?E:x,children:S.length===0||S.length===1&&S[0].content===""?`
|
|
157
|
-
`:S.map((k,N)=>{let w={},I=!!k.bgColor;if(k.color&&(w["--sdm-c"]=k.color),k.bgColor&&(w["--sdm-tbg"]=k.bgColor),k.htmlStyle)for(let[F,R]of Object.entries(k.htmlStyle))F==="color"?w["--sdm-c"]=R:F==="background-color"?(w["--sdm-tbg"]=R,I=!0):w[F]=R;return y.jsx("span",{className:d("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",I&&"bg-[var(--sdm-tbg)]",I&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:w,...k.htmlAttrs,children:k.content},N)})},_))})})})}),oF=({className:e,language:t,style:n,isIncomplete:a,...s})=>{let l=Ke();return y.jsx("div",{className:l("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":a||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...s})},Q3=C.createContext({code:""}),W3=()=>C.useContext(Q3),uF=({language:e})=>{let t=Ke();return y.jsx("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:y.jsx("span",{className:t("ml-1 font-mono lowercase"),children:e})})},cF=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
158
|
-
`;)t--;return e.slice(0,t)},fF=C.lazy(()=>cC(()=>import("./highlighted-body-KPVGNVTW-jxw5D7vG.js"),[]).then(e=>({default:e.HighlightedCodeBlockBody}))),dF=({code:e,language:t,className:n,children:a,isIncomplete:s=!1,startLine:l,lineNumbers:u,...c})=>{let d=Ke(),{codeBlockMaxHeight:h}=C.useContext(sn),m=C.useMemo(()=>cF(e),[e]),p=C.useMemo(()=>({bg:"transparent",fg:"inherit",tokens:m.split(`
|
|
159
|
-
`).map(E=>[{content:E,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[m]);return y.jsx(Q3.Provider,{value:{code:e},children:y.jsxs(oF,{dir:"ltr",isIncomplete:s,language:t,children:[y.jsx(uF,{language:t}),a?y.jsx("div",{className:d("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:y.jsx("div",{className:d("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:a})}):null,y.jsx(C.Suspense,{fallback:y.jsx(lF,{className:n,language:t,lineNumbers:u,maxHeight:h,result:p,startLine:l,...c}),children:y.jsx(fF,{className:n,code:m,language:t,lineNumbers:u,maxHeight:h,raw:p,startLine:l,...c})})]})})},hF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.jsx("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),mF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.jsx("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),pF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.jsx("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),gF=e=>y.jsxs("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[y.jsx("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),bF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.jsx("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),yF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.jsx("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),EF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.jsx("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),xF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.jsx("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),TF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),vF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),Po={CheckIcon:hF,CopyIcon:mF,DownloadIcon:pF,ExternalLinkIcon:xF,Loader2Icon:gF,Maximize2Icon:bF,RotateCcwIcon:yF,XIcon:EF,ZoomInIcon:TF,ZoomOutIcon:vF},Z3=C.createContext(Po),SF=(e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let n=Object.keys(e),a=Object.keys(t);return n.length!==a.length?!1:n.every(s=>e[s]===t[s])},F2=({icons:e,children:t})=>{let n=C.useRef(e),a=C.useRef(e?{...Po,...e}:Po);SF(n.current,e)||(n.current=e,a.current=e?{...Po,...e}:Po);let s=a.current;return y.jsx(Z3.Provider,{value:s,children:t})},br=()=>C.useContext(Z3),J3={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",zoomIn:"Zoom in",zoomOut:"Zoom out",resetView:"Reset zoom and pan",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},A0=C.createContext(J3),Mr=()=>C.useContext(A0),k0=({onCopy:e,onError:t,timeout:n=2e3,children:a,className:s,code:l,...u})=>{let c=Ke(),[d,h]=C.useState(!1),m=C.useRef(0),{code:p}=W3(),{isAnimating:E}=C.useContext(sn),x=Mr(),v=l??p,S=async()=>{var N;if(typeof window>"u"||!((N=navigator?.clipboard)!=null&&N.writeText)){t?.(new Error("Clipboard API not available"));return}try{d||(await navigator.clipboard.writeText(v),h(!0),e?.(),m.current=window.setTimeout(()=>h(!1),n))}catch(w){t?.(w)}};C.useEffect(()=>()=>{window.clearTimeout(m.current)},[]);let _=br(),k=d?_.CheckIcon:_.CopyIcon;return y.jsxs(y.Fragment,{children:[y.jsx("button",{"aria-label":x.copyCode,className:c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",s),"data-streamdown":"code-block-copy-button",disabled:E,onClick:S,title:x.copyCode,type:"button",...u,children:a??y.jsx(k,{"aria-hidden":"true",size:14})}),d&&y.jsx("output",{"aria-live":"polite",className:"sr-only",children:x.copied})]})},Vg=(e,t,n)=>{if(typeof e=="boolean")return n;let a=e[t];if(typeof a!="object")return n;let s=a.download;return typeof s!="object"?n:s.filename||n},q2={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},CF=({onDownload:e,onError:t,language:n,children:a,className:s,code:l,...u})=>{let c=Ke(),{code:d}=W3(),{isAnimating:h,controls:m}=C.useContext(sn),p=Mr(),E=br(),x=l??d,v=n&&n in q2?q2[n]:"txt",S=`${Vg(m,"code","file")}.${v}`,_="text/plain",k=()=>{try{cl(S,x,_),e?.()}catch(N){t?.(N)}};return y.jsx("button",{"aria-label":p.downloadFile,className:c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",s),"data-streamdown":"code-block-download-button",disabled:h,onClick:k,title:p.downloadFile,type:"button",...u,children:a??y.jsx(E.DownloadIcon,{size:14})})},V2=()=>{let{Loader2Icon:e}=br(),t=Ke();return y.jsxs("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[y.jsx("div",{className:t("h-[46px] w-full bg-muted/80")}),y.jsx("div",{className:t("flex w-full items-center justify-center p-4"),children:y.jsx(e,{className:t("size-4 animate-spin")})})]})},_F=/\.[^/.]+$/,AF=({node:e,className:t,src:n,alt:a,onLoad:s,onError:l,showControls:u=!0,showDownloadControl:c=!0,...d})=>{let{DownloadIcon:h}=br(),m=Ke(),p=C.useRef(null),[E,x]=C.useState(!1),[v,S]=C.useState(!1),_=Mr(),k=d.width!=null||d.height!=null,N=(E||k)&&!v&&u&&c,w=v&&!k;C.useEffect(()=>{let M=p.current;if(M!=null&&M.complete){let H=M.naturalWidth>0;x(H),S(!H)}},[]);let I=C.useCallback(M=>{x(!0),S(!1),s?.(M)},[s]),F=C.useCallback(M=>{x(!1),S(!0),l?.(M)},[l]),R=async()=>{if(n)try{let M=await(await fetch(n)).blob(),H=new URL(n,window.location.origin).pathname.split("/").pop()||"",Y=H.split(".").pop(),U=H.includes(".")&&Y!==void 0&&Y.length<=4,J="";if(U)J=H;else{let Q=M.type,se="png";Q.includes("jpeg")||Q.includes("jpg")?se="jpg":Q.includes("png")?se="png":Q.includes("svg")?se="svg":Q.includes("gif")?se="gif":Q.includes("webp")&&(se="webp"),J=`${(a||H||"image").replace(_F,"")}.${se}`}cl(J,M,M.type)}catch{window.open(n,"_blank")}};return n?y.jsxs("div",{className:m("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[y.jsx("img",{alt:a,className:m("max-w-full rounded-lg",w&&"hidden",t),"data-streamdown":"image",onError:F,onLoad:I,ref:p,src:n,...d}),w&&y.jsx("span",{className:m("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:_.imageNotAvailable}),u&&y.jsx("div",{className:m("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"),"data-streamdown":"image-overlay"}),N&&y.jsx("button",{className:m("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:R,title:_.downloadImage,type:"button",children:y.jsx(h,{size:14})})]}):null},Ko=0,Yg=()=>{Ko+=1,Ko===1&&(document.body.style.overflow="hidden")},$g=()=>{Ko=Math.max(0,Ko-1),Ko===0&&(document.body.style.overflow="")},kF=({url:e,isOpen:t,onClose:n,onConfirm:a})=>{let{CheckIcon:s,CopyIcon:l,ExternalLinkIcon:u,XIcon:c}=br(),d=Ke(),[h,m]=C.useState(!1),p=Mr(),E=C.useCallback(async()=>{try{await navigator.clipboard.writeText(e),m(!0),setTimeout(()=>m(!1),2e3)}catch{}},[e]),x=C.useCallback(()=>{a(),n()},[a,n]);if(C.useEffect(()=>{if(t){Yg();let S=_=>{_.key==="Escape"&&n()};return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S),$g()}}},[t,n]),!t||typeof document>"u")return null;let v=y.jsx("div",{className:d("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:n,onKeyDown:S=>{S.key==="Escape"&&n()},role:"button",tabIndex:0,children:y.jsxs("div",{className:d("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:S=>S.stopPropagation(),onKeyDown:S=>S.stopPropagation(),role:"presentation",children:[y.jsx("button",{className:d("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:n,title:p.close,type:"button",children:y.jsx(c,{size:16})}),y.jsxs("div",{className:d("flex flex-col gap-2"),children:[y.jsxs("div",{className:d("flex items-center gap-2 font-semibold text-lg"),children:[y.jsx(u,{size:20}),y.jsx("span",{children:p.openExternalLink})]}),y.jsx("p",{className:d("text-muted-foreground text-sm"),children:p.externalLinkWarning})]}),y.jsx("div",{className:d("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),y.jsxs("div",{className:d("flex gap-2"),children:[y.jsx("button",{className:d("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:E,type:"button",children:h?y.jsxs(y.Fragment,{children:[y.jsx(s,{size:14}),y.jsx("span",{children:p.copied})]}):y.jsxs(y.Fragment,{children:[y.jsx(l,{size:14}),y.jsx("span",{children:p.copyLink})]})}),y.jsxs("button",{className:d("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:x,type:"button",children:[y.jsx(u,{size:14}),y.jsx("span",{children:p.openLink})]})]})]})});return ni.createPortal(v,document.body)},w0=C.createContext(null),Gg=()=>C.useContext(w0),lV=()=>{var e;let t=Gg();return(e=t?.code)!=null?e:null},Kg=()=>{var e;let t=Gg();return(e=t?.mermaid)!=null?e:null},wF=e=>{var t;let n=Gg();return n!=null&&n.renderers&&e&&(t=n.renderers.find(a=>Array.isArray(a.language)?a.language.includes(e):a.language===e))!=null?t:null},NF=e=>{if(typeof DOMParser>"u"||typeof XMLSerializer>"u")return e;let t=new DOMParser().parseFromString(e,"text/html").querySelector("svg");return t?new XMLSerializer().serializeToString(t):e},RF=(e,t)=>{var n;let a=(n=void 0)!=null?n:5;return new Promise((s,l)=>{let u="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),c=new Image;c.crossOrigin="anonymous",c.onload=()=>{let d=document.createElement("canvas"),h=c.width*a,m=c.height*a;d.width=h,d.height=m;let p=d.getContext("2d");if(!p){l(new Error("Failed to create 2D canvas context for PNG export"));return}p.drawImage(c,0,0,h,m),d.toBlob(E=>{if(!E){l(new Error("Failed to create PNG blob"));return}s(E)},"image/png")},c.onerror=()=>l(new Error("Failed to load SVG image")),c.src=u})},eA=({chart:e,children:t,className:n,onDownload:a,config:s,onError:l})=>{let u=Ke(),[c,d]=C.useState(!1),h=C.useRef(null),{isAnimating:m,controls:p}=C.useContext(sn),E=br(),x=Kg(),v=Mr(),S=Vg(p,"mermaid","diagram"),_=async k=>{try{if(k==="mmd"){let M=`${S}.mmd`;cl(M,e,"text/plain"),d(!1),a?.(k);return}if(!x){l?.(new Error("Mermaid plugin not available"));return}let N=x.getMermaid(s),w=e.split("").reduce((M,H)=>(M<<5)-M+H.charCodeAt(0)|0,0),I=`mermaid-${Math.abs(w)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:F}=await N.render(I,e);if(!F){l?.(new Error("SVG not found. Please wait for the diagram to render."));return}let R=NF(F);if(k==="svg"){let M=`${S}.svg`;cl(M,R,"image/svg+xml"),d(!1),a?.(k);return}if(k==="png"){let M=await RF(R);cl(`${S}.png`,M,"image/png"),a?.(k),d(!1);return}}catch(N){l?.(N)}};return C.useEffect(()=>{let k=N=>{let w=N.composedPath();h.current&&!w.includes(h.current)&&d(!1)};return document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[]),y.jsxs("div",{className:u("relative"),ref:h,children:[y.jsx("button",{"aria-label":v.downloadDiagram,className:u("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:m,onClick:()=>d(!c),title:v.downloadDiagram,type:"button",children:t??y.jsx(E.DownloadIcon,{"aria-hidden":"true",size:14})}),c?y.jsxs("div",{className:u("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[y.jsx("button",{"aria-label":v.downloadDiagramAsSvg,className:u("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>_("svg"),title:v.downloadDiagramAsSvg,type:"button",children:v.mermaidFormatSvg}),y.jsx("button",{"aria-label":v.downloadDiagramAsPng,className:u("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>_("png"),title:v.downloadDiagramAsPng,type:"button",children:v.mermaidFormatPng}),y.jsx("button",{"aria-label":v.downloadDiagramAsMmd,className:u("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>_("mmd"),title:v.downloadDiagramAsMmd,type:"button",children:v.mermaidFormatMmd})]}):null]})},OF=({chart:e,config:t,onFullscreen:n,onExit:a,className:s,...l})=>{let{Maximize2Icon:u,XIcon:c}=br(),d=Ke(),[h,m]=C.useState(!1),{isAnimating:p,controls:E}=C.useContext(sn),x=Mr(),v=(()=>{if(typeof E=="boolean")return E;let N=E.mermaid;return N===!1?!1:N===!0||N===void 0?!0:N.panZoom!==!1})(),S=(()=>{if(typeof E=="boolean")return E;let N=E.mermaid;return N===!1?!1:N===!0||N===void 0?!0:N.download!==!1})(),_=(()=>{if(typeof E=="boolean")return E;let N=E.mermaid;return N===!1?!1:N===!0||N===void 0?!0:N.copy!==!1})(),k=()=>{m(!h)};return C.useEffect(()=>{if(h){Yg();let N=w=>{w.key==="Escape"&&m(!1)};return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N),$g()}}},[h]),C.useEffect(()=>{h?n?.():a&&a()},[h,n,a]),y.jsxs(y.Fragment,{children:[y.jsx("button",{className:d("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",s),disabled:p,onClick:k,title:x.viewFullscreen,type:"button",...l,"aria-label":x.viewFullscreen,children:y.jsx(u,{"aria-hidden":"true",size:14})}),h?ni.createPortal(y.jsxs("div",{"aria-label":x.viewFullscreen,"aria-modal":"true",className:d("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),"data-streamdown":"mermaid-fullscreen",onClick:k,onKeyDown:N=>{N.key==="Escape"&&k()},role:"dialog",children:[y.jsxs("div",{className:d("absolute top-4 right-4 z-10 flex items-center gap-1"),onClick:N=>N.stopPropagation(),onKeyDown:N=>N.stopPropagation(),role:"presentation",children:[S?y.jsx(eA,{chart:e,config:t}):null,_?y.jsx(k0,{code:e}):null,y.jsx("button",{"aria-label":x.exitFullscreen,className:d("rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:k,title:x.exitFullscreen,type:"button",children:y.jsx(c,{"aria-hidden":"true",size:20})})]}),y.jsx("div",{className:d("flex size-full items-center justify-center p-4"),onClick:N=>N.stopPropagation(),onKeyDown:N=>N.stopPropagation(),role:"presentation",children:y.jsx(HA,{chart:e,className:d("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:t,fullscreen:!0,showControls:v})})]}),document.body):null]})};function N0(e){var t;if(e.nodeType===Node.TEXT_NODE)return(t=e.textContent)!=null?t:"";if(e.nodeType!==Node.ELEMENT_NODE)return"";let n=e;return n.tagName==="BR"?`
|
|
160
|
-
`:Array.from(n.childNodes).map(N0).join("")}var tA=e=>{let t=[],n=[],a=e.querySelectorAll("thead th");for(let l of a)t.push(N0(l).trim());let s=e.querySelectorAll("tbody tr");for(let l of s){let u=[],c=l.querySelectorAll("td");for(let d of c)u.push(N0(d).trim());n.push(u)}return{headers:t,rows:n}},nA=e=>{var t;if(typeof e!="object")return",";let n=e.table;return typeof n!="object"?",":(t=n.csvSeparator)!=null?t:","},rA=(e,t=",")=>{let n;t==="auto"?Intl.NumberFormat().format(1.1).includes(",")?n=";":n=",":n=t;let{headers:a,rows:s}=e,l=h=>{let m=!1;for(let p of h)if(p===n||p==='"'||p===`
|
|
161
|
-
`||p==="\r"){m=!0;break}return m?`"${h.replace(/"/g,'""')}"`:h},u=a.length>0?s.length+1:s.length,c=new Array(u),d=0;a.length>0&&(c[d]=a.map(l).join(n),d+=1);for(let h of s)c[d]=h.map(l).join(n),d+=1;return c.join(`
|
|
162
|
-
`)},LF=e=>{let{headers:t,rows:n}=e,a=c=>{let d=!1;for(let m of c)if(m===" "||m===`
|
|
163
|
-
`||m==="\r"){d=!0;break}if(!d)return c;let h=[];for(let m of c)m===" "?h.push("\\t"):m===`
|
|
164
|
-
`?h.push("\\n"):m==="\r"?h.push("\\r"):h.push(m);return h.join("")},s=t.length>0?n.length+1:n.length,l=new Array(s),u=0;t.length>0&&(l[u]=t.map(a).join(" "),u+=1);for(let c of n)l[u]=c.map(a).join(" "),u+=1;return l.join(`
|
|
165
|
-
`)},Op=e=>{let t=!1;for(let a of e)if(a==="\\"||a==="|"||a===`
|
|
166
|
-
`){t=!0;break}if(!t)return e;let n=[];for(let a of e)a==="\\"?n.push("\\\\"):a==="|"?n.push("\\|"):a===`
|
|
167
|
-
`?n.push("<br>"):n.push(a);return n.join("")},aA=e=>{let{headers:t,rows:n}=e;if(t.length===0)return"";let a=new Array(n.length+2),s=0,l=t.map(c=>Op(c));a[s]=`| ${l.join(" | ")} |`,s+=1;let u=new Array(t.length);for(let c=0;c<t.length;c+=1)u[c]="---";a[s]=`| ${u.join(" | ")} |`,s+=1;for(let c of n)if(c.length<t.length){let d=new Array(t.length);for(let h=0;h<t.length;h+=1)d[h]=h<c.length?Op(c[h]):"";a[s]=`| ${d.join(" | ")} |`,s+=1}else{let d=c.map(h=>Op(h));a[s]=`| ${d.join(" | ")} |`,s+=1}return a.join(`
|
|
168
|
-
`)},iA=({children:e,className:t,onCopy:n,onError:a,timeout:s=2e3})=>{let l=Ke(),[u,c]=C.useState(!1),[d,h]=C.useState(!1),m=C.useRef(null),p=C.useRef(0),{isAnimating:E,controls:x}=C.useContext(sn),v=Mr(),S=nA(x),_=async w=>{var I,F;if(typeof window>"u"||!((I=navigator?.clipboard)!=null&&I.write)){a?.(new Error("Clipboard API not available"));return}try{let R=(F=m.current)==null?void 0:F.closest('[data-streamdown="table-wrapper"]'),M=R?.querySelector("table");if(!M){a?.(new Error("Table not found"));return}let H=tA(M),Y="";w==="csv"?Y=rA(H,S):w==="tsv"?Y=LF(H):Y=aA(H);let U=new ClipboardItem({"text/plain":new Blob([Y],{type:"text/plain"}),"text/html":new Blob([M.outerHTML],{type:"text/html"})});await navigator.clipboard.write([U]),h(!0),c(!1),n?.(w),p.current=window.setTimeout(()=>h(!1),s)}catch(R){a?.(R)}};C.useEffect(()=>{let w=I=>{let F=I.composedPath();m.current&&!F.includes(m.current)&&c(!1)};return document.addEventListener("mousedown",w),()=>{document.removeEventListener("mousedown",w),window.clearTimeout(p.current)}},[]);let k=br(),N=d?k.CheckIcon:k.CopyIcon;return y.jsxs("div",{className:l("relative"),ref:m,children:[y.jsx("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:E,onClick:()=>c(!u),title:v.copyTable,type:"button",children:e??y.jsx(N,{height:14,width:14})}),u?y.jsxs("div",{className:l("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[y.jsx("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>_("md"),title:v.copyTableAsMarkdown,type:"button",children:v.tableFormatMarkdown}),y.jsx("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>_("csv"),title:v.copyTableAsCsv,type:"button",children:v.tableFormatCsv}),y.jsx("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>_("tsv"),title:v.copyTableAsTsv,type:"button",children:v.tableFormatTsv})]}):null]})},sA=({children:e,className:t,onDownload:n,onError:a})=>{let s=Ke(),[l,u]=C.useState(!1),c=C.useRef(null),{isAnimating:d,controls:h}=C.useContext(sn),m=Mr(),p=br(),E=nA(h),x=v=>{var S;try{let _=(S=c.current)==null?void 0:S.closest('[data-streamdown="table-wrapper"]'),k=_?.querySelector("table");if(!k){a?.(new Error("Table not found"));return}let N=tA(k),w=v==="csv"?rA(N,E):aA(N),I=v==="csv"?"csv":"md",F=`${Vg(h,"table","table")}.${I}`;cl(F,w,v==="csv"?"text/csv":"text/markdown"),u(!1),n?.(v)}catch(_){a?.(_)}};return C.useEffect(()=>{let v=S=>{let _=S.composedPath();c.current&&!_.includes(c.current)&&u(!1)};return document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v)}},[]),y.jsxs("div",{className:s("relative"),ref:c,children:[y.jsx("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:d,onClick:()=>u(!l),title:m.downloadTable,type:"button",children:e??y.jsx(p.DownloadIcon,{size:14})}),l?y.jsxs("div",{className:s("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[y.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>x("csv"),title:m.downloadTableAsCsv,type:"button",children:m.tableFormatCsv}),y.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>x("markdown"),title:m.downloadTableAsMarkdown,type:"button",children:m.tableFormatMarkdown})]}):null]})},DF=({children:e,className:t,showCopy:n=!0,showDownload:a=!0})=>{let{Maximize2Icon:s,XIcon:l}=br(),u=Ke(),[c,d]=C.useState(!1),{isAnimating:h}=C.useContext(sn),m=Mr(),p=()=>{d(!0)},E=()=>{d(!1)};return C.useEffect(()=>{if(c){Yg();let x=v=>{v.key==="Escape"&&d(!1)};return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x),$g()}}},[c]),y.jsxs(y.Fragment,{children:[y.jsx("button",{className:u("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:h,onClick:p,title:m.viewFullscreen,type:"button",children:y.jsx(s,{size:14})}),c?ni.createPortal(y.jsx("div",{"aria-label":m.viewFullscreen,"aria-modal":"true",className:u("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:E,onKeyDown:x=>{x.key==="Escape"&&E()},role:"dialog",children:y.jsxs("div",{className:u("flex h-full flex-col"),"data-streamdown":"table-wrapper",onClick:x=>x.stopPropagation(),onKeyDown:x=>x.stopPropagation(),role:"presentation",children:[y.jsxs("div",{className:u("flex items-center justify-end gap-1 p-4"),children:[n?y.jsx(iA,{}):null,a?y.jsx(sA,{}):null,y.jsx("button",{className:u("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:E,title:m.exitFullscreen,type:"button",children:y.jsx(l,{size:20})})]}),y.jsx("div",{className:u("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:y.jsx("table",{className:u("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),document.body):null]})},IF=({children:e,className:t,maxHeight:n,showControls:a,showCopy:s=!0,showDownload:l=!0,showFullscreen:u=!0,...c})=>{let d=Ke(),{isAnimating:h}=C.useContext(sn),m=K3(n),p=X3(h,!!m,e),E=a&&s,x=a&&l,v=a&&u,S=E||x||v;return y.jsxs("div",{className:d("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[S?y.jsxs("div",{className:d("flex items-center justify-end gap-1"),children:[E?y.jsx(iA,{}):null,x?y.jsx(sA,{}):null,v?y.jsx(DF,{showCopy:E,showDownload:x,children:e}):null]}):null,y.jsx("div",{className:d("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),ref:p,style:m?{maxHeight:m}:void 0,children:y.jsx("table",{className:d("w-full divide-y divide-border",t),"data-streamdown":"table",...c,children:e})})]})},MF=/startLine=(\d+)/,PF=/\bnoLineNumbers\b/,BF=C.lazy(()=>cC(()=>Promise.resolve().then(()=>eV),void 0).then(e=>({default:e.Mermaid}))),jF=/language-([^\s]+)/,HF="node";function St(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;let a=e,s=t;for(let l of n)if(l!==HF&&!Object.is(a[l],s[l]))return!1;return!0}function UF(e,t){var n,a;return((n=e?.properties)==null?void 0:n.metastring)===((a=t?.properties)==null?void 0:a.metastring)}var Yf=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,Lp=(e,t)=>{if(typeof e=="boolean")return e;let n=e.table;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},Y2=(e,t)=>{if(typeof e=="boolean")return e;let n=e.code;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},rf=(e,t)=>{if(typeof e=="boolean")return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},zF=(e,t)=>{if(typeof e=="boolean")return e;let n=e.image;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},Xg=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("ol",{className:s("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...a,children:e})},(e,t)=>St(e,t));Xg.displayName="MarkdownOl";var lA=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("li",{className:s("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...a,children:e})},(e,t)=>St(e,t));lA.displayName="MarkdownLi";var oA=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("ul",{className:s("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...a,children:e})},(e,t)=>St(e,t));oA.displayName="MarkdownUl";var uA=C.memo(({className:e,node:t,...n})=>{let a=Ke();return y.jsx("hr",{className:a("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n})},(e,t)=>St(e,t));uA.displayName="MarkdownHr";var cA=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("span",{className:s("font-semibold",t),"data-streamdown":"strong",...a,children:e})},(e,t)=>St(e,t));cA.displayName="MarkdownStrong";var FF=({children:e,className:t,href:n,node:a,...s})=>{let l=Ke(),{linkSafety:u}=C.useContext(sn),[c,d]=C.useState(!1),h=n==="streamdown:incomplete-link",m=C.useCallback(async v=>{if(!(!(u!=null&&u.enabled&&n)||h)){if(v.preventDefault(),u.onLinkCheck&&await u.onLinkCheck(n)){window.open(n,"_blank","noreferrer");return}d(!0)}},[u,n,h]),p=C.useCallback(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),E=C.useCallback(()=>{d(!1)},[]),x={url:n??"",isOpen:c,onClose:E,onConfirm:p};return u!=null&&u.enabled&&n?y.jsxs(y.Fragment,{children:[y.jsx("button",{className:l("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":h,"data-streamdown":"link",onClick:m,type:"button",children:e}),u.renderModal?u.renderModal(x):y.jsx(kF,{...x})]}):y.jsx("a",{className:l("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":h,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...s,children:e})},fA=C.memo(FF,(e,t)=>St(e,t));fA.displayName="MarkdownA";var dA=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("h1",{className:s("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...a,children:e})},(e,t)=>St(e,t));dA.displayName="MarkdownH1";var hA=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("h2",{className:s("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...a,children:e})},(e,t)=>St(e,t));hA.displayName="MarkdownH2";var mA=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("h3",{className:s("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...a,children:e})},(e,t)=>St(e,t));mA.displayName="MarkdownH3";var pA=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("h4",{className:s("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...a,children:e})},(e,t)=>St(e,t));pA.displayName="MarkdownH4";var gA=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("h5",{className:s("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...a,children:e})},(e,t)=>St(e,t));gA.displayName="MarkdownH5";var bA=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("h6",{className:s("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...a,children:e})},(e,t)=>St(e,t));bA.displayName="MarkdownH6";var yA=C.memo(({children:e,className:t,node:n,...a})=>{let{controls:s,tableMaxHeight:l}=C.useContext(sn),u=Yf(s,"table"),c=Lp(s,"copy"),d=Lp(s,"download"),h=Lp(s,"fullscreen");return y.jsx(IF,{className:t,maxHeight:l,showControls:u,showCopy:c,showDownload:d,showFullscreen:h,...a,children:e})},(e,t)=>St(e,t));yA.displayName="MarkdownTable";var EA=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("thead",{className:s("bg-muted/80",t),"data-streamdown":"table-header",...a,children:e})},(e,t)=>St(e,t));EA.displayName="MarkdownThead";var xA=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("tbody",{className:s("divide-y divide-border",t),"data-streamdown":"table-body",...a,children:e})},(e,t)=>St(e,t));xA.displayName="MarkdownTbody";var TA=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("tr",{className:s("border-border",t),"data-streamdown":"table-row",...a,children:e})},(e,t)=>St(e,t));TA.displayName="MarkdownTr";var vA=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("th",{className:s("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...a,children:e})},(e,t)=>St(e,t));vA.displayName="MarkdownTh";var SA=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("td",{className:s("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...a,children:e})},(e,t)=>St(e,t));SA.displayName="MarkdownTd";var CA=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("blockquote",{className:s("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...a,children:e})},(e,t)=>St(e,t));CA.displayName="MarkdownBlockquote";var _A=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("sup",{className:s("text-sm",t),"data-streamdown":"superscript",...a,children:e})},(e,t)=>St(e,t));_A.displayName="MarkdownSup";var AA=C.memo(({children:e,className:t,node:n,...a})=>{let s=Ke();return y.jsx("sub",{className:s("text-sm",t),"data-streamdown":"subscript",...a,children:e})},(e,t)=>St(e,t));AA.displayName="MarkdownSub";var kA=C.memo(({children:e,className:t,node:n,...a})=>{if("data-footnotes"in a){let s=u=>{var c,d;if(!C.isValidElement(u))return!1;let h=Array.isArray(u.props.children)?u.props.children:[u.props.children],m=!1,p=!1;for(let E of h)if(E){if(typeof E=="string")E.trim()!==""&&(m=!0);else if(C.isValidElement(E))if(((c=E.props)==null?void 0:c["data-footnote-backref"])!==void 0)p=!0;else{let x=Array.isArray(E.props.children)?E.props.children:[E.props.children];for(let v of x){if(typeof v=="string"&&v.trim()!==""){m=!0;break}if(C.isValidElement(v)&&((d=v.props)==null?void 0:d["data-footnote-backref"])===void 0){m=!0;break}}}}return p&&!m},l=Array.isArray(e)?e.map(u=>{if(!C.isValidElement(u))return u;if(u.type===Xg){let c=(Array.isArray(u.props.children)?u.props.children:[u.props.children]).filter(d=>!s(d));return c.length===0?null:{...u,props:{...u.props,children:c}}}return u}):e;return(Array.isArray(l)?l.some(u=>u!==null):l!==null)?y.jsx("section",{className:t,...a,children:l}):null}return y.jsx("section",{className:t,...a,children:e})},(e,t)=>St(e,t));kA.displayName="MarkdownSection";var qF=({node:e,className:t,children:n,...a})=>{var s,l;let u=Ke(),c=!("data-block"in a),{mermaid:d,controls:h,lineNumbers:m}=C.useContext(sn),p=Kg(),E=eF(),x=t?.match(jF),v=(s=x?.at(1))!=null?s:"",S=wF(v);if(c)return y.jsx("code",{className:u("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...a,children:n});let _=(l=e?.properties)==null?void 0:l.metastring,k=_?.match(MF),N=k?Number.parseInt(k[1],10):void 0,w=N!==void 0&&N>=1?N:void 0,I=!(_&&PF.test(_))&&m!==!1,F="";if(C.isValidElement(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?F=n.props.children:typeof n=="string"&&(F=n),S){let J=S.component;return y.jsx(C.Suspense,{fallback:y.jsx(V2,{}),children:y.jsx(J,{code:F,isIncomplete:E,language:v,meta:_})})}if(v==="mermaid"&&p){let J=Yf(h,"mermaid"),Q=rf(h,"download"),se=rf(h,"copy"),ue=rf(h,"fullscreen"),ae=rf(h,"panZoom"),B=J&&(Q||se||ue);return y.jsx(C.Suspense,{fallback:y.jsx(V2,{}),children:y.jsxs("div",{className:u("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-streamdown":"mermaid-block",children:[y.jsx("div",{className:u("flex h-8 items-center text-muted-foreground text-xs"),children:y.jsx("span",{className:u("ml-1 font-mono lowercase"),children:"mermaid"})}),B?y.jsx("div",{className:u("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:y.jsxs("div",{className:u("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[Q?y.jsx(eA,{chart:F,config:d?.config}):null,se?y.jsx(k0,{code:F}):null,ue?y.jsx(OF,{chart:F,config:d?.config}):null]})}):null,y.jsx("div",{className:u("rounded-md border border-border bg-background"),children:y.jsx(BF,{chart:F,config:d?.config,showControls:ae})})]})})}let R=Yf(h,"code"),M=Y2(h,"download"),H=Y2(h,"copy"),{"data-block":Y,...U}=a;return y.jsx(dF,{className:t,code:F,isIncomplete:E,language:v,lineNumbers:I,startLine:w,...U,children:R?y.jsxs(y.Fragment,{children:[M?y.jsx(CF,{code:F,language:v}):null,H?y.jsx(k0,{}):null]}):null})},wA=C.memo(qF,(e,t)=>St(e,t)&&UF(e.node,t.node));wA.displayName="MarkdownCode";var VF=({node:e,className:t,...n})=>{let{controls:a}=C.useContext(sn),s=Yf(a,"image"),l=s&&zF(a,"download");return y.jsx(AF,{className:t,node:e,showControls:s,showDownloadControl:l,...n})},NA=C.memo(VF,(e,t)=>St(e,t));NA.displayName="MarkdownImg";var RA=C.memo(({children:e,node:t,...n})=>{let a=(Array.isArray(e)?e:[e]).filter(s=>s!=null&&s!=="");if(a.length===1&&C.isValidElement(a[0])){let s=a[0].props.node,l=s?.tagName;if(l==="img")return y.jsx(y.Fragment,{children:e});if(l==="code"&&"data-block"in a[0].props)return y.jsx(y.Fragment,{children:e})}return y.jsx("p",{...n,children:e})},(e,t)=>St(e,t));RA.displayName="MarkdownParagraph";var YF={ol:Xg,li:lA,ul:oA,hr:uA,strong:cA,a:fA,h1:dA,h2:hA,h3:mA,h4:pA,h5:gA,h6:bA,table:yA,thead:EA,tbody:xA,tr:TA,th:vA,td:SA,blockquote:CA,code:wA,img:NA,pre:({children:e})=>C.isValidElement(e)?C.cloneElement(e,{"data-block":"true"}):e,sup:_A,sub:AA,p:RA,section:kA},$F=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,GF=new RegExp("\\p{L}","u");function OA(e){let t=e.replace(/(```|~~~)[\s\S]*?\1/g,"").replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,""),n,a=0,s=0;for(let l of t){if($F.test(l)){n!=null||(n="rtl"),s+=1;continue}GF.test(l)&&(n!=null||(n="ltr"),a+=1)}return s>a?"rtl":a>s?"ltr":n??"ltr"}var KF=/^[ \t]{0,3}(`{3,}|~{3,})/,XF=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,$2=e=>{let t=e.split(`
|
|
169
|
-
`),n=null,a=0;for(let s of t){let l=KF.exec(s);if(n===null){if(l){let u=l[1];n=u[0],a=u.length}}else if(l){let u=l[1],c=u[0],d=u.length;c===n&&d>=a&&(n=null,a=0)}}return n!==null},QF=e=>{let t=e.split(`
|
|
170
|
-
`);for(let n of t){let a=n.trim();if(a.length>0&&a.includes("|")&&XF.test(a))return!0}return!1},WF=()=>e=>{hr(e,"html",(t,n,a)=>{!a||typeof n!="number"||(a.children[n]={type:"text",value:t.value})})},G2=[],K2={allowDangerousHtml:!0},af=new WeakMap,ZF=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,a=e.remarkPlugins,s=e.remarkRehypeOptions;if(!(n||a||s)){let m="default";return this.keyCache.set(e,m),m}let l=m=>{if(!m||m.length===0)return"";let p="";for(let E=0;E<m.length;E+=1){let x=m[E];if(E>0&&(p+=","),Array.isArray(x)){let[v,S]=x;if(typeof v=="function"){let _=af.get(v);_||(_=v.name,af.set(v,_)),p+=_}else p+=String(v);p+=":",p+=JSON.stringify(S)}else if(typeof x=="function"){let v=af.get(x);v||(v=x.name,af.set(x,v)),p+=v}else p+=String(x)}return p},u=l(n),c=l(a),d=s?JSON.stringify(s):"",h=`${c}::${u}::${d}`;return this.keyCache.set(e,h),h}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let a=this.cache.keys().next().value;a&&this.cache.delete(a)}this.cache.set(n,t)}clear(){this.cache.clear()}},X2=new ZF,LA=e=>{let t=JF(e),n=e.children||"",a=t.runSync(t.parse(n),n);return sq(a,e)},JF=e=>{let t=X2.get(e);if(t)return t;let n=tq(e);return X2.set(e,n),n},eq=e=>e.some(t=>Array.isArray(t)?t[0]===d0:t===d0),tq=e=>{let t=e.rehypePlugins||G2,n=e.remarkPlugins||G2,a=eq(t)?n:[...n,WF],s=e.remarkRehypeOptions?{...K2,...e.remarkRehypeOptions}:K2;return YU().use(VH).use(a).use(AU,s).use(t)},nq=e=>e,rq=(e,t,n,a)=>{n?e.children.splice(t,1):e.children[t]={type:"text",value:a}},aq=(e,t)=>{var n;for(let a in vp)if(Object.hasOwn(vp,a)&&Object.hasOwn(e.properties,a)){let s=e.properties[a],l=vp[a];(l===null||l.includes(e.tagName))&&(e.properties[a]=(n=t(String(s||""),a,e))!=null?n:void 0)}},iq=(e,t,n,a,s,l)=>{let u=!1;return a?u=!a.includes(e.tagName):s&&(u=s.includes(e.tagName)),!u&&l&&typeof t=="number"&&(u=!l(e,t,n)),u},sq=(e,t)=>{let{allowElement:n,allowedElements:a,disallowedElements:s,skipHtml:l,unwrapDisallowed:u,urlTransform:c}=t;if(n||a||s||l||c){let d=c||nq;hr(e,(h,m,p)=>{if(h.type==="raw"&&p&&typeof m=="number")return rq(p,m,l,h.value),m;if(h.type==="element"&&(aq(h,d),iq(h,m,p,a,s,n)&&p&&typeof m=="number"))return u&&h.children?p.children.splice(m,1,...h.children):p.children.splice(m,1),m})}return Zj(e,{Fragment:y.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0})},lq=/\[\^[\w-]{1,200}\](?!:)/,oq=/\[\^[\w-]{1,200}\]:/,uq=/<([A-Za-z][\w:-]*)[\s>/]/,cq=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),Q2=new Map,W2=new Map,fq=e=>{let t=e.toLowerCase(),n=Q2.get(t);if(n)return n;let a=new RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return Q2.set(t,a),a},dq=e=>{let t=e.toLowerCase(),n=W2.get(t);if(n)return n;let a=new RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return W2.set(t,a),a},Z2=(e,t)=>{if(cq.has(t.toLowerCase()))return 0;let n=e.match(fq(t));if(!n)return 0;let a=0;for(let s of n)s.trimEnd().endsWith("/>")||(a+=1);return a},J2=(e,t)=>{let n=e.match(dq(t));return n?n.length:0},hq=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},mq=e=>{let t=lq.test(e),n=oq.test(e);if(t||n)return[e];let a=rr.lex(e,{gfm:!0}),s=[],l=[],u=!1;for(let c of a){let d=c.raw,h=s.length;if(l.length>0){s[h-1]+=d;let m=l.at(-1),p=Z2(d,m),E=J2(d,m);for(let x=0;x<p;x+=1)l.push(m);for(let x=0;x<E;x+=1)l.length>0&&l.at(-1)===m&&l.pop();continue}if(c.type==="html"&&c.block){let m=d.match(uq);if(m){let p=m[1],E=Z2(d,p),x=J2(d,p);E>x&&l.push(p)}}if(h>0&&!u){let m=s[h-1];if(hq(m)%2===1){s[h-1]=m+d;continue}}s.push(d),c.type!=="space"&&(u=c.type==="code")}return s},pq=/^\n*/,gq=/\n*$/,R0=/\n\n/g,bq=(e,t,n)=>{if(!t.includes(`
|
|
171
|
-
`))return e+t+n;let a=t.replace(R0,`
|
|
172
|
-
<!---->
|
|
173
|
-
`).replace(pq,`
|
|
174
|
-
|
|
175
|
-
`).replace(gq,`
|
|
176
|
-
|
|
177
|
-
`);return`${e}${a}${n}
|
|
178
|
-
|
|
179
|
-
`},yq=(e,t)=>{let n=new RegExp(`<(${t})(?=[\\s>/])([^>]*)>`,"gi"),a="",s=0,l=n.exec(e);for(;l;){let u=l[0],c=l[1],d=l.index+u.length,h=e.slice(d);if(new RegExp(`</${c}\\s*>`,"i").test(h)){l=n.exec(e);continue}if(a+=e.slice(s,l.index),h.length===0){a+=u,s=d,l=n.exec(e);continue}if(h.startsWith(`
|
|
180
|
-
|
|
181
|
-
`)){let E=h.slice(2).replace(R0,`
|
|
182
|
-
<!---->
|
|
183
|
-
`);a+=`${u}
|
|
184
|
-
|
|
185
|
-
${E}`,s=e.length;break}if(!h.startsWith(`
|
|
186
|
-
`)){a+=u,s=d,l=n.exec(e);continue}let m=h.slice(1);if(m.trim().length===0){a+=u,s=d,l=n.exec(e);continue}let p=m.replace(R0,`
|
|
187
|
-
<!---->
|
|
188
|
-
`);a+=`${u}
|
|
189
|
-
|
|
190
|
-
${p}`,s=e.length;break}return s===0?e:a+e.slice(s)},Eq=(e,t)=>{if(!t.length)return e;let n=e;for(let a of t){let s=new RegExp(`(<${a}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${a}\\s*>)`,"gi");n=n.replace(s,(l,u,c,d)=>bq(u,c,d)),n=yq(n,a)}return n},xq=/([\\`*_~[\]|])/g,Tq=e=>e.replace(xq,"\\$1"),vq=(e,t)=>{if(!t.length)return e;let n=e;for(let a of t){let s=new RegExp(`(<${a}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${a}\\s*>)`,"gi");n=n.replace(s,(l,u,c,d)=>{let h=Tq(c).replace(/\n\n/g," ");return u+h+d})}return n},Sq=new Set(["blockquote","dd","dt","figcaption","h1","h2","h3","h4","h5","h6","li","p","td","th"]),DA=new Set(["code","kbd","pre","samp","var"]);function IA(e){return e.children.map(t=>t.type==="text"?t.value:t.type==="element"&&!DA.has(t.tagName)?IA(t):"").join("")}function Cq(){return e=>{hr(e,"element",t=>{if(DA.has(t.tagName)){t.properties!=null||(t.properties={}),t.properties.dir="ltr";return}Sq.has(t.tagName)&&(t.properties!=null||(t.properties={}),typeof t.properties.dir!="string"&&(t.properties.dir=OA(IA(t))))})}}var MA=e=>e.type==="text"?e.value:"children"in e&&Array.isArray(e.children)?e.children.map(MA).join(""):"",_q=e=>t=>{if(!e||e.length===0)return;let n=new Set(e.map(a=>a.toLowerCase()));hr(t,"element",a=>{if(n.has(a.tagName.toLowerCase())){let s=MA(a);a.children=s?[{type:"text",value:s}]:[]}})},Aq=()=>e=>{hr(e,"code",t=>{var n,a;t.meta&&(t.data=(n=t.data)!=null?n:{},t.data.hProperties={...(a=t.data.hProperties)!=null?a:{},metastring:t.meta})})},kq=/^[ \t]*<[\w!/?-]/,wq=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,Nq=e=>typeof e!="string"||e.length===0||!kq.test(e)?e:e.replace(wq,"$1"),ev,tv,nv,rv,Ef={...Mi,clobberPrefix:"",protocols:{...Mi.protocols,href:[...(tv=(ev=Mi.protocols)==null?void 0:ev.href)!=null?tv:[],"tel","streamdown"]},attributes:{...Mi.attributes,code:[...(rv=(nv=Mi.attributes)==null?void 0:nv.code)!=null?rv:[],"metastring"]}},O0={raw:d0,sanitize:[h_,Ef],harden:[u5,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},Rq={gfm:[N7,{}],codeMeta:Aq},av=Object.values(O0),Oq=Object.values(Rq),Lq={block:" ▋",circle:" ●"},PA=["github-light","github-dark"],BA={enabled:!0},Dq={codeBlockMaxHeight:400,shikiTheme:PA,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:BA,tableMaxHeight:300},sn=C.createContext(Dq),jA=C.memo(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:a,isIncomplete:s,dir:l,animatePlugin:u,...c})=>{C.useLayoutEffect(()=>{u?.commit()});let d=typeof e=="string"&&n?Nq(e):e,h=y.jsx(LA,{...c,children:d});return y.jsx(G3.Provider,{value:s,children:l?y.jsx("div",{dir:l,style:{display:"contents"},children:h}):h})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),a=Object.keys(t.components||{});if(n.length!==a.length||n.some(s=>{var l,u;return((l=e.components)==null?void 0:l[s])!==((u=t.components)==null?void 0:u[s])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins||!!e.animatePlugin!=!!t.animatePlugin)});jA.displayName="Block";var vd=C.memo(({children:e,mode:t="streaming",dir:n,parseIncompleteMarkdown:a=!0,normalizeHtmlIndentation:s=!1,components:l,rehypePlugins:u=av,remarkPlugins:c=Oq,className:d,shikiTheme:h,mermaid:m,codeBlockMaxHeight:p=400,controls:E=!0,isAnimating:x=!1,tableMaxHeight:v=300,animated:S,BlockComponent:_=jA,parseMarkdownIntoBlocksFn:k=mq,caret:N,plugins:w,remend:I,linkSafety:F=BA,lineNumbers:R=!0,allowedTags:M,literalTagContent:H,translations:Y,icons:U,prefix:J,onAnimationStart:Q,onAnimationEnd:se,...ue})=>{let ae=C.useId(),B=C.useMemo(()=>nF(J),[J]),G=C.useRef(null),oe=C.useRef(Q),xe=C.useRef(se);oe.current=Q,xe.current=se,C.useEffect(()=>{var ke,Ie,dt;if(t==="static")return;let qe=G.current;if(G.current=x,qe===null){x&&((ke=oe.current)==null||ke.call(oe));return}x&&!qe?(Ie=oe.current)==null||Ie.call(oe):!x&&qe&&((dt=xe.current)==null||dt.call(xe))},[x,t]);let D=C.useMemo(()=>M?Object.keys(M):[],[M]),z=C.useMemo(()=>{if(typeof e!="string")return"";let ke=t==="streaming"&&a?$B(e,I):e;return H&&H.length>0&&(ke=vq(ke,H)),D.length>0&&(ke=Eq(ke,D)),ke},[e,t,a,I,D,H]),X=C.useMemo(()=>k(z),[z,k]),O=C.useMemo(()=>n==="auto"?X.map(OA):void 0,[X,n]),Z=C.useMemo(()=>X.map((ke,Ie)=>`${ae}-${Ie}`),[X.length,ae]),de=C.useMemo(()=>S===!0?"true":S?JSON.stringify(S):"",[S]),pe=C.useRef(null),Se=C.useRef([]),Te=C.useRef([]),Ee=C.useRef(null),Pe=C.useRef("");if(de){if(Pe.current!==de){Pe.current=de;let ke=de!=="true"?S.maxBacklogMs:void 0;pe.current=U2({maxBacklogMs:ke}),Se.current=[],Te.current=[]}else pe.current||(pe.current=U2());x&&pe.current&&pe.current.beginPass(pe.current.now())}else pe.current=null,Se.current=[],Te.current=[],Pe.current="";C.useLayoutEffect(()=>{var ke;x&&((ke=pe.current)==null||ke.commitPass())});let Le=C.useMemo(()=>{var ke,Ie;return{codeBlockMaxHeight:p,shikiTheme:(Ie=h??((ke=w?.code)==null?void 0:ke.getThemes()))!=null?Ie:PA,controls:E,isAnimating:x,lineNumbers:R,mode:t,mermaid:m,linkSafety:F,tableMaxHeight:v}},[p,h,E,x,R,t,m,F,w?.code,v]),Re=C.useMemo(()=>Y?JSON.stringify(Y):"",[Y]),He=C.useMemo(()=>({...J3,...Y}),[Re]),ze=C.useMemo(()=>{let{inlineCode:ke,...Ie}=l??{},dt={...YF,...Ie};if(ke){let qe=dt.code;dt.code=Ye=>"data-block"in Ye?qe?C.createElement(qe,Ye):null:C.createElement(ke,Ye)}return dt},[l]),tt=C.useMemo(()=>{let ke=[];return w!=null&&w.cjk&&(ke=[...ke,...w.cjk.remarkPluginsBefore]),ke=[...ke,...c],w!=null&&w.cjk&&(ke=[...ke,...w.cjk.remarkPluginsAfter]),w!=null&&w.math&&(ke=[...ke,w.math.remarkPlugin]),ke},[c,w?.math,w?.cjk]),Xe=C.useMemo(()=>{var ke;let Ie=u;if(M&&Object.keys(M).length>0&&u===av){let dt={...Ef,tagNames:[...(ke=Ef.tagNames)!=null?ke:[],...Object.keys(M)],attributes:{...Ef.attributes,...M}};Ie=[O0.raw,[h_,dt],O0.harden]}return H&&H.length>0&&(Ie=[...Ie,[_q,H]]),w!=null&&w.math&&(Ie=[...Ie,w.math.rehypePlugin]),n==="auto"&&t==="static"&&(Ie=[...Ie,Cq]),Ie},[u,w?.math,M,H,n,t]),Rt=C.useMemo(()=>{if(!x||X.length===0)return!1;let ke=X.at(-1);return $2(ke)||QF(ke)},[x,X]),kt=C.useMemo(()=>N&&x&&!Rt?{"--streamdown-caret":`"${Lq[N]}"`}:void 0,[N,x,Rt]),Ft=ke=>{let Ie=null;if(pe.current&&x){if(!Se.current[ke]){let qe=de&&de!=="true"?S:{},{maxBacklogMs:Ye,...ln}=qe;Se.current[ke]=$3({...ln,timeline:pe.current})}Ie=Se.current[ke]}Ee.current!==Xe&&(Te.current=[],Ee.current=Xe),Ie&&!Te.current[ke]&&(Te.current[ke]=[...Xe,Ie.rehypePlugin]);let dt=Ie&&Te.current[ke]?Te.current[ke]:Xe;return{blockAnimatePlugin:Ie,blockRehypePlugins:dt}};return t==="static"?y.jsx(A0.Provider,{value:He,children:y.jsx(w0.Provider,{value:w??null,children:y.jsx(sn.Provider,{value:Le,children:y.jsx(F2,{icons:U,children:y.jsx(_0.Provider,{value:B,children:y.jsx("div",{className:B("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",d),dir:n==="auto"?void 0:n,children:y.jsx(LA,{components:ze,rehypePlugins:Xe,remarkPlugins:tt,...ue,children:z})})})})})})}):y.jsx(A0.Provider,{value:He,children:y.jsx(w0.Provider,{value:w??null,children:y.jsx(sn.Provider,{value:Le,children:y.jsx(F2,{icons:U,children:y.jsx(_0.Provider,{value:B,children:y.jsxs("div",{className:B("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",N&&!Rt?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,d),style:kt,children:[X.length===0&&N&&x&&y.jsx("span",{}),X.map((ke,Ie)=>{var dt;let qe=Ie===X.length-1,Ye=x&&qe&&$2(ke),{blockAnimatePlugin:ln,blockRehypePlugins:ce}=Ft(Ie);return y.jsx(_,{animatePlugin:ln,components:ze,content:ke,dir:(dt=O?.[Ie])!=null?dt:n!=="auto"?n:void 0,index:Ie,isIncomplete:Ye,rehypePlugins:ce,remarkPlugins:tt,shouldNormalizeHtmlIndentation:s,shouldParseIncompleteMarkdown:a,...ue},Z[Ie])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.codeBlockMaxHeight===t.codeBlockMaxHeight&&e.tableMaxHeight===t.tableMaxHeight&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);vd.displayName="Streamdown";var Iq=({children:e,className:t,minZoom:n=.5,maxZoom:a=3,zoomStep:s=.1,showControls:l=!0,initialZoom:u=1,fullscreen:c=!1})=>{let{RotateCcwIcon:d,ZoomInIcon:h,ZoomOutIcon:m}=br(),p=Ke(),E=Mr(),x=C.useRef(null),v=C.useRef(null),[S,_]=C.useState(u),[k,N]=C.useState({x:0,y:0}),[w,I]=C.useState(!1),[F,R]=C.useState({x:0,y:0}),[M,H]=C.useState({x:0,y:0}),Y=C.useCallback(G=>{_(oe=>Math.max(n,Math.min(a,oe+G)))},[n,a]),U=C.useCallback(()=>{Y(s)},[Y,s]),J=C.useCallback(()=>{Y(-s)},[Y,s]),Q=C.useCallback(()=>{_(u),N({x:0,y:0})},[u]),se=C.useCallback(G=>{G.preventDefault();let oe=G.deltaY>0?-s:s;Y(oe)},[Y,s]),ue=C.useCallback(G=>{if(G.button!==0||G.isPrimary===!1)return;I(!0),R({x:G.clientX,y:G.clientY}),H(k);let oe=G.currentTarget;oe instanceof HTMLElement&&oe.setPointerCapture(G.pointerId)},[k]),ae=C.useCallback(G=>{if(!w)return;G.preventDefault();let oe=G.clientX-F.x,xe=G.clientY-F.y;N({x:M.x+oe,y:M.y+xe})},[w,F,M]),B=C.useCallback(G=>{I(!1);let oe=G.currentTarget;oe instanceof HTMLElement&&oe.releasePointerCapture(G.pointerId)},[]);return C.useEffect(()=>{let G=x.current;if(G)return G.addEventListener("wheel",se,{passive:!1}),()=>{G.removeEventListener("wheel",se)}},[se]),C.useEffect(()=>{let G=v.current;if(G&&w)return document.body.style.userSelect="none",G.addEventListener("pointermove",ae,{passive:!1}),G.addEventListener("pointerup",B),G.addEventListener("pointercancel",B),()=>{document.body.style.userSelect="",G.removeEventListener("pointermove",ae),G.removeEventListener("pointerup",B),G.removeEventListener("pointercancel",B)}},[w,ae,B]),y.jsxs("div",{className:p("relative flex flex-col",c?"h-full w-full":"min-h-28 w-full",t),ref:x,style:{cursor:w?"grabbing":"grab"},children:[l?y.jsxs("div",{className:p("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",c?"bottom-4 left-4":"bottom-2 left-2"),children:[y.jsx("button",{"aria-label":E.zoomIn,className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:S>=a,onClick:U,title:E.zoomIn,type:"button",children:y.jsx(h,{"aria-hidden":"true",size:16})}),y.jsx("button",{"aria-label":E.zoomOut,className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:S<=n,onClick:J,title:E.zoomOut,type:"button",children:y.jsx(m,{"aria-hidden":"true",size:16})}),y.jsx("button",{"aria-label":E.resetView,className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:Q,title:E.resetView,type:"button",children:y.jsx(d,{"aria-hidden":"true",size:16})})]}):null,y.jsx("div",{className:p("flex-1 origin-center transition-transform duration-150 ease-out",c?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:ue,ref:v,role:"application",style:{transform:`translate(${k.x}px, ${k.y}px) scale(${S})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},HA=({chart:e,className:t,config:n,fullscreen:a=!1,showControls:s=!0})=>{let l=Ke(),[u,c]=C.useState(null),[d,h]=C.useState(!1),[m,p]=C.useState(""),[E,x]=C.useState(""),[v,S]=C.useState(0),{mermaid:_}=C.useContext(sn),k=Kg(),N=_?.errorComponent,{shouldRender:w,containerRef:I}=Hz({immediate:a});if(C.useEffect(()=>{if(w){if(!k){c("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{c(null),h(!0);let R=k.getMermaid(n),M=e.split("").reduce((U,J)=>(U<<5)-U+J.charCodeAt(0)|0,0),H=`mermaid-${Math.abs(M)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:Y}=await R.render(H,e);p(Y),x(Y)}catch(R){if(!(E||m)){let M=R instanceof Error?R.message:"Failed to render Mermaid chart";c(M)}}finally{h(!1)}})()}},[e,n,v,w,k]),!(w||m||E))return y.jsx("div",{className:l("my-4 min-h-[200px]",t),ref:I});if(d&&!m&&!E)return y.jsx("div",{className:l("my-4 flex justify-center p-4",t),ref:I,children:y.jsxs("div",{className:l("flex items-center space-x-2 text-muted-foreground"),children:[y.jsx("div",{className:l("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),y.jsx("span",{className:l("text-sm"),children:"Loading diagram..."})]})});if(u&&!m&&!E){let R=()=>S(M=>M+1);return N?y.jsx("div",{ref:I,children:y.jsx(N,{chart:e,error:u,retry:R})}):y.jsxs("div",{className:l("rounded-md bg-red-50 p-4",t),ref:I,children:[y.jsxs("p",{className:l("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",u]}),y.jsxs("details",{className:l("mt-2"),children:[y.jsx("summary",{className:l("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),y.jsx("pre",{className:l("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:e})]})]})}let F=m||E;return y.jsx("div",{className:l("size-full",t),"data-streamdown":"mermaid",ref:I,children:y.jsx(Iq,{className:l(a?"size-full overflow-hidden":"overflow-hidden",t),fullscreen:a,maxZoom:3,minZoom:.5,showControls:s,zoomStep:.1,children:y.jsx("div",{"aria-label":"Mermaid chart",className:l("flex justify-center",a?"size-full items-center":null),dangerouslySetInnerHTML:{__html:F},role:"img"})})})};const ir={zh:{brandSubtitle:"个人记忆库",workspace:"工作区",collections:"集合",connect:"连接",navAll:"全部记忆",navTimeline:"时间线",navPreferences:"偏好与习惯",navScopes:"Scope 分类",navTags:"标签",navMcp:"MCP 服务",navSettings:"设置",localStorage:"本地存储",memories:"MEMORIES",scopes:"SCOPES",scopesNote:"分类数量",lastSync:"LAST SYNC",justNow:"刚刚",localDatabase:"本地数据库",localOnly:"完全本地",localOnlyDesc:"你的记忆只留在这台设备",newMemory:"新建记忆",search:"搜索记忆...",allScopes:"所有 Scope",reading:"读取中...",countSuffix:"条记忆",sortRecent:"按最近更新排序",sortTimeline:"按发生时间排序",sortGrouped:"按 Scope 分组",globalMemory:"全局记忆",emptyMatch:"这里还没有匹配的记忆",emptyHelp:"试试换一个关键词或调整筛选条件。",loadFailed:"记忆读取失败",retry:"重试",noTags:"暂无标签",settingsManaged:"设置已由本地配置管理",detailEyebrow:"记忆详情",close:"关闭",detailEmpty:"选择一条记忆",detailEmptyDesc:"查看完整内容、来源和元数据",confidence:"置信度",created:"创建时间",updated:"最后更新",source:"来源",agentWritten:"Agent 写入",scope:"Scope",signals:"信号",importance:"重要性",recallCount:"召回次数",times:"次",original:"查看原始记录",switchLanguage:"切换到 English",newMemoryEyebrow:"新建记忆",composerTitle:"保存一条记忆",content:"记忆内容",contentPlaceholder:"例如:用户偏好使用简洁的工具界面。",type:"类型",scopeOptional:"可选,例如:/path/to/project",sourcePlaceholder:"例如:Claude Code / 手动添加",writeLocal:"写入本地 SQLite",preferenceRecall:"召回方式",persistentPreference:"常驻偏好",conditionalPreference:"条件偏好",persistentPreferenceHint:"每次任务开始时固定返回",cancel:"取消",save:"保存记忆",languageCode:"EN",timelineItems:"条",languageName:"中文",languageTitle:"界面语言",languageDescription:"选择工作台使用的语言。",languageZh:"中文",languageEn:"English",languageSaved:"语言已更新",languageSaveFailed:"语言更新失败,请稍后重试。",backupEyebrow:"数据备份",backupTitle:"导出与导入",backupDescription:"导出记忆与安全配置,或从 JSON 备份恢复。替换模式会覆盖当前记忆。",exportBackup:"导出 JSON",importMerge:"合并导入",importReplace:"替换导入",replaceConfirm:"替换导入会删除当前所有记忆,并使用备份内容替代。确定继续吗?",backupImported:(e,t)=>`导入 ${e} 条记忆,跳过 ${t} 条。`,backupFailed:"备份操作失败,请检查文件后重试。",recentRecalls:"最近召回",setupTitle:"选择语言",setupDescription:"选择工作台使用的语言,之后可在设置中修改。",continue:"继续",savedNote:"已保存",savedCount:"已保存",openMenu:"打开菜单",toggleLight:"切换浅色模式",toggleDark:"切换深色模式",storageNote:"记忆仅保存在当前设备。",savedMemories:"已保存",countMemories:"条记忆",recallTimes:"次召回",mcpKicker:"Agent 集成",mcpTitle:"连接你的 Agent",mcpDescription:"Memory One 通过 Streamable HTTP 提供记忆工具。创建一个按工具授权的 Key 后,把带 Authorization Header 的配置加入 MCP 客户端。",mcpOnline:"HTTP 在线",mcpEndpoint:"服务地址",mcpCopyEndpoint:"复制服务地址",transport:"传输方式",auth:"认证",noAuth:"必须使用 Bearer Key",category:"记忆分类",categoryValue:"全局 / 可选 scope",toolsLabel:"可用工具",toolsTitle:"Agent 可以使用的工具",toolsCount:"个工具",http:"HTTP",localMemory:"本地记忆 / 01",serverEndpoint:"服务端点",versionNotice:(e,t)=>`发现新版本 ${e},当前版本 ${t}`,callCount:"次",appearance:"界面显示",appearanceEyebrow:"界面显示",darkMode:"深色模式",darkModeDescription:"在浅色和深色界面之间切换。",storageEyebrow:"本地存储",agentName:"记忆管家",agentDescription:"基于记忆回答你的问题",collapse:"收起",agentPage:"Agent 页面",chat:"对话",backToChat:"返回对话",configuration:"配置",processing:"正在处理",readingMemory:"正在读取记忆并生成回复",agentPlaceholder:"向记忆管家提问...",send:"发送",requestFormat:"请求格式",chooseRequestFormat:"选择请求格式",model:"模型",chooseOrEnterModel:"选择或输入模型",fetchModels:"获取列表",saving:"保存中",saved:"已保存",saveConfiguration:"保存配置",configSaveFailed:"配置保存失败,请稍后重试。",missingBaseUrl:"请先填写 Base URL。",missingApiKey:"请先完成 Agent 配置。",providerRequestFailed:"模型供应商请求失败,请检查供应商、模型和 Base URL。",agentRequestFailed:"暂时无法连接记忆管家,请稍后再试。",fetchedModels:e=>`已获取 ${e} 个模型`,noModels:"没有可用模型",modelListFailed:"模型列表获取失败,请检查配置。",welcome:"你好,我是记忆管家。可以帮你搜索、保存、修改、删除记忆,也可以总结你的偏好和特点。",suggestionTraits:"总结我的特点",suggestionProjects:"搜索最近的项目约定",suggestionConcise:"记住我喜欢简洁的界面",openAgent:"打开记忆管家",agentTabs:"Agent 页面"},en:{brandSubtitle:"Personal memory",workspace:"Workspace",collections:"Collections",connect:"Connect",navAll:"All memories",navTimeline:"Timeline",navPreferences:"Preferences",navScopes:"Scopes",navTags:"Tags",navMcp:"MCP service",navSettings:"Settings",localStorage:"Local storage",memories:"MEMORIES",scopes:"SCOPES",scopesNote:"Scope count",lastSync:"LAST SYNC",justNow:"Just now",localDatabase:"Local database",localOnly:"Local only",localOnlyDesc:"Your memories stay on this device",newMemory:"New memory",search:"Search memories...",allScopes:"All scopes",reading:"Loading...",countSuffix:" memories",sortRecent:"Sorted by recently updated",sortTimeline:"Sorted by event time",sortGrouped:"Grouped by scope",globalMemory:"Global memories",emptyMatch:"No matching memories",emptyHelp:"Try another search or adjust the filters.",loadFailed:"Could not load memories",retry:"Retry",noTags:"No tags",settingsManaged:"Managed by local settings",detailEyebrow:"Memory details",close:"Close",detailEmpty:"Select a memory",detailEmptyDesc:"View its content and metadata",confidence:"Confidence",created:"Created",updated:"Updated",source:"Source",agentWritten:"Agent",scope:"Scope",signals:"Signals",importance:"Importance",recallCount:"Recalls",times:"times",original:"View original",switchLanguage:"Switch to Chinese",languageCode:"中",timelineItems:"items",languageName:"English",languageTitle:"Interface language",languageDescription:"Choose the language used by the workspace.",languageZh:"中文",languageEn:"English",languageSaved:"Language updated",languageSaveFailed:"Could not update language. Try again.",setupTitle:"Choose a language",setupDescription:"Choose a language for the workspace. You can change it later in Settings.",continue:"Continue",savedNote:"Saved",savedCount:"Saved",openMenu:"Open menu",toggleLight:"Switch to light mode",toggleDark:"Switch to dark mode",storageNote:"Memories stay on this device.",savedMemories:"Saved",countMemories:" memories",recallTimes:" recalls",backupEyebrow:"DATA BACKUP",backupTitle:"Export and import",backupDescription:"Export memories and safe configuration, or restore from a JSON backup. Replace mode overwrites current memories.",exportBackup:"Export JSON",importMerge:"Merge import",importReplace:"Replace import",replaceConfirm:"Replace import deletes all current memories and substitutes the backup. Continue?",backupImported:(e,t)=>`Imported ${e} memories; skipped ${t}.`,backupFailed:"Backup operation failed. Check the file and try again.",recentRecalls:"Recent recalls",newMemoryEyebrow:"New memory",composerTitle:"Save a memory",content:"Memory",contentPlaceholder:"For example: The user prefers a concise interface.",type:"Type",scopeOptional:"Optional, for example: /path/to/project",sourcePlaceholder:"For example: Claude Code / Manual",writeLocal:"Save locally",preferenceRecall:"Recall mode",persistentPreference:"Persistent preference",conditionalPreference:"Conditional preference",persistentPreferenceHint:"Always returned at the start of every task",cancel:"Cancel",save:"Save memory",mcpKicker:"Agent integration",mcpTitle:"Connect your agent",mcpDescription:"Expose Memory One through Streamable HTTP. Create a scoped key and add it to your MCP client.",mcpOnline:"HTTP online",mcpEndpoint:"Service address",mcpCopyEndpoint:"Copy service address",transport:"Transport",auth:"Authentication",noAuth:"Bearer Key required",category:"Memory scope",categoryValue:"Global / optional scope",toolsLabel:"Available tools",toolsTitle:"Tools available to agents",toolsCount:"tools",http:"HTTP",localMemory:"LOCAL MEMORY / 01",serverEndpoint:"Service endpoint",versionNotice:(e,t)=>`New version ${e}; current version ${t}`,callCount:"calls",appearance:"Appearance",appearanceEyebrow:"APPEARANCE",darkMode:"Dark mode",darkModeDescription:"Switch between light and dark themes.",storageEyebrow:"STORAGE",agentName:"Memory assistant",agentDescription:"Answer questions using your memories",collapse:"Collapse",agentPage:"Agent page",chat:"Chat",backToChat:"Back to chat",configuration:"Configuration",processing:"Processing",readingMemory:"Reading memories and preparing a reply",agentPlaceholder:"Ask the memory assistant a question...",send:"Send",requestFormat:"Request format",chooseRequestFormat:"Choose a request format",model:"Model",chooseOrEnterModel:"Choose or enter a model",fetchModels:"Fetch models",saving:"Saving",saved:"Saved",saveConfiguration:"Save configuration",configSaveFailed:"Could not save the configuration. Try again.",missingBaseUrl:"Enter a Base URL first.",missingApiKey:"Complete the agent configuration first.",providerRequestFailed:"The model provider request failed. Check the provider, model, and Base URL.",agentRequestFailed:"Could not connect to the memory assistant. Try again.",fetchedModels:e=>`${e} models found`,noModels:"No models available",modelListFailed:"Could not fetch models. Check the configuration.",welcome:"Hi, I’m the memory assistant. I can search, save, update, and delete memories, or summarize your preferences.",suggestionTraits:"Summarize my preferences",suggestionProjects:"Search recent project conventions",suggestionConcise:"Remember that I prefer concise interfaces",openAgent:"Open memory assistant",agentTabs:"Agent page"}},Ya={name:"记忆管家",scope:"",provider:"",model:"",baseUrl:"",apiKey:"",autoContext:!0},UA=e=>({name:e.name??Ya.name,scope:e.scope??Ya.scope,provider:e.provider??Ya.provider,model:e.model??Ya.model,baseUrl:e.baseUrl??e.base_url??Ya.baseUrl,apiKey:e.apiKey??e.api_key??Ya.apiKey,autoContext:e.autoContext??e.auto_context??Ya.autoContext}),iv=e=>!!(e.baseUrl.trim()&&e.provider.trim()&&e.model.trim()&&(e.provider==="local"||e.apiKey.trim()));function Mq({initial:e,onSaved:t,language:n}){const a=ir[n],[s,l]=C.useState(e.baseUrl),[u,c]=C.useState(e.apiKey),[d,h]=C.useState(e.model),[m,p]=C.useState(e.provider),[E,x]=C.useState(!1),[v,S]=C.useState([]),[_,k]=C.useState(!1),[N,w]=C.useState(""),I=async()=>{x(!0),w("");try{const R=await fetch("/api/agent/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({name:e.name,scope:e.scope,provider:m,model:d.trim(),base_url:s.trim(),api_key:u.trim(),auto_context:e.autoContext})}),M=await R.json();if(!R.ok)throw new Error(M.detail||"agent_config_save_failed");const H=UA(M);await t(H)}catch{w(a.configSaveFailed)}finally{x(!1)}},F=async()=>{k(!0),w("");try{const R=await fetch("/api/agent/models",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({provider:m,base_url:s||null,api_key:u||null})}),M=await R.json();if(!R.ok)throw new Error(M.detail||"model_list_failed");const H=Array.isArray(M.models)?M.models:[];S(H),h(Y=>Y.trim()||H[0]||Y),w(H.length?a.fetchedModels(H.length):a.noModels)}catch{S([]),w(a.modelListFailed)}finally{k(!1)}};return C.useEffect(()=>{if(!s.trim()&&!u.trim()&&!d.trim()&&!m.trim())return;const R=window.setTimeout(()=>{I()},500);return()=>window.clearTimeout(R)},[s,u,d,m]),y.jsx("form",{className:"agent-config-form",onSubmit:R=>{R.preventDefault(),I()},children:y.jsxs("div",{className:"agent-config-scroll",children:[y.jsxs("div",{className:"agent-config-heading",children:[y.jsxs("div",{children:[y.jsxs("span",{className:"agent-config-kicker",children:[y.jsx(V0,{size:13}),a.configuration]}),y.jsx("strong",{children:a.agentName}),y.jsx("p",{children:a.agentDescription})]}),y.jsx("span",{className:"agent-config-status",children:E?a.saving:a.saved})]}),y.jsx("section",{className:"agent-config-section",children:y.jsxs("div",{className:"agent-config-fields",children:[y.jsxs("label",{className:"config-field",children:[y.jsx("span",{children:"Base URL"}),y.jsx("input",{required:!0,value:s,onChange:R=>l(R.target.value),placeholder:"https://api.example.com/v1"})]}),y.jsxs("label",{className:"config-field",children:[y.jsx("span",{children:"API Key"}),y.jsx("input",{type:"password",value:u,onChange:R=>c(R.target.value),placeholder:"sk-...",autoComplete:"off"})]}),y.jsxs("label",{className:"config-field",children:[y.jsx("span",{children:a.requestFormat}),y.jsx(Df,{value:m,onValueChange:R=>{p(R),S([]),w("")},options:[{value:"openai",label:"OpenAI"},{value:"anthropic",label:"Anthropic"},{value:"openai-compatible",label:"OpenAI Compatible"}],ariaLabel:a.requestFormat,placeholder:a.chooseRequestFormat,required:!0,disabled:E})]}),y.jsxs("label",{className:"config-field",children:[y.jsx("span",{children:a.model}),y.jsxs("div",{className:"model-field",children:[v.length?y.jsx(Df,{value:d,onValueChange:h,options:[...d&&!v.includes(d)?[{value:d,label:d}]:[],...v.map(R=>({value:R,label:R}))],ariaLabel:a.model,placeholder:a.chooseOrEnterModel,required:!0,disabled:E}):y.jsx("input",{required:!0,value:d,onChange:R=>h(R.target.value),placeholder:a.chooseOrEnterModel}),y.jsx("button",{type:"button",className:"ghost-button",onClick:()=>{F()},disabled:_||E,children:_?y.jsx(ll,{className:"spin",size:14}):a.fetchModels})]}),N?y.jsx("small",{className:"model-message",children:N}):null]})]})})]})})}function Pq({onMemoryChanged:e,language:t="zh"}){const n=ir[t],a={id:"welcome",role:"assistant",content:n.welcome},[s,l]=C.useState(Ya),[u,c]=C.useState("config"),[d,h]=C.useState(!1),[m,p]=C.useState([a]),[E,x]=C.useState(""),[v,S]=C.useState(!1),[_,k]=C.useState(""),[N,w]=C.useState(null),[I,F]=C.useState(null),[R,M]=C.useState(!1),[H,Y]=C.useState(!1),[U,J]=C.useState(!1),Q=C.useRef(null),se=C.useRef(null),ue=C.useRef(null),ae=iv(s);C.useEffect(()=>{let O=!0;return fetch("/api/agent/config").then(async Z=>{if(!Z.ok)throw new Error("config");return await Z.json()}).then(Z=>{if(!O)return;const de=UA(Z);l(de),c(iv(de)?"chat":"config")}).catch(()=>{}).finally(()=>{O&&h(!0)}),()=>{O=!1}},[]),C.useEffect(()=>{fetch("/api/agent/messages").then(O=>O.ok?O.json():[]).then(O=>{Array.isArray(O)&&O.length&&p(O)}).catch(()=>{})},[]),C.useEffect(()=>{if(!R)return;const O=Z=>{Z.target instanceof Node&&(Z.target instanceof Element&&Z.target.closest(".ui-select-content")||Q.current?.contains(Z.target)||(M(!1),Y(!1)))};return document.addEventListener("pointerdown",O),()=>document.removeEventListener("pointerdown",O)},[R]),C.useEffect(()=>{J(!1)},[s.scope,s.provider,s.model,s.baseUrl,s.apiKey,s.autoContext]),C.useEffect(()=>{if(!R||u!=="chat")return;const O=window.requestAnimationFrame(()=>se.current?.scrollIntoView({block:"end"}));return()=>window.cancelAnimationFrame(O)},[m,v,_,R,u]);const B=O=>fetch("/api/agent/messages",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(O)}).catch(()=>{}),G=async(O=E)=>{const Z=O.trim();if(!Z||v||!ae)return;if(Z.toLowerCase()==="/new"){x(""),k(""),J(!1),p([{...a,id:crypto.randomUUID()}]);return}x(""),k(""),S(!0),w(null);const de={id:crypto.randomUUID(),role:"user",content:Z},pe={id:crypto.randomUUID(),role:"assistant",content:"",toolCalls:[]};F(pe.id),p(Ee=>[...Ee,de,pe]),B(de),B(pe);const Se=new AbortController;ue.current=Se;const Te=s.autoContext&&!U;try{const Ee=await fetch("/api/agent/stream",{method:"POST",signal:Se.signal,headers:{"content-type":"application/json"},body:JSON.stringify({message:Z,user_message_id:de.id,assistant_message_id:pe.id,provider:s.provider,model:s.model,base_url:s.baseUrl||null,api_key:s.apiKey||null,scope:s.scope||null,auto_context:Te,history:[...m,de].slice(-12).map(({role:tt,content:Xe})=>({role:tt,content:Xe}))})});if(!Ee.ok||!Ee.body)throw new Error("agent_request_failed");Te&&J(!0);const Pe=Ee.body.getReader(),Le=new TextDecoder;let Re="",He="",ze=[];for(;;){const{value:tt,done:Xe}=await Pe.read();Re+=Le.decode(tt??new Uint8Array,{stream:!Xe});const Rt=Re.split(/\r?\n\r?\n/);Re=Rt.pop()??"";for(const kt of Rt){const Ft=kt.match(/^event:\s*(.+)$/m)?.[1]?.trim()??"message",ke=kt.split(/\r?\n/).find(dt=>dt.startsWith("data:"));if(!ke)continue;const Ie=JSON.parse(ke.slice(5).trim());if(Ft==="delta"&&(He+=String(Ie.text??""),w(null),p(dt=>dt.map(qe=>qe.id===pe.id?{...qe,content:He}:qe))),Ft==="tool"){const dt=Ie;ze=[...ze,dt],w(String(Ie.label??Ie.name??"tool")),p(qe=>qe.map(Ye=>Ye.id===pe.id?{...Ye,toolCalls:ze}:Ye))}if(Ft==="error")throw new Error(String(Ie.detail??"agent_request_failed"));Ft==="done"&&(ze=Array.isArray(Ie.toolCalls)?Ie.toolCalls:ze)}if(Xe)break}B({...pe,content:He,toolCalls:ze}),p(tt=>tt.map(Xe=>Xe.id===pe.id?{...Xe,content:He,toolCalls:ze}:Xe)),ze.some(tt=>["memory_store","memory_update","memory_delete"].includes(tt.name))&&e()}catch(Ee){Ee instanceof DOMException&&Ee.name==="AbortError"||k(Ee instanceof Error&&Ee.message==="missing_api_key"?n.missingApiKey:n.agentRequestFailed)}finally{S(!1),w(null),F(null),ue.current=null}},oe=I?m.find(O=>O.id===I):null,xe=[n.suggestionTraits,n.suggestionProjects,n.suggestionConcise],D=y.jsxs("form",{className:"agent-lite-composer",onSubmit:O=>{O.preventDefault(),G()},children:[y.jsx("textarea",{value:E,onFocus:()=>M(!0),onChange:O=>x(O.target.value),onKeyDown:O=>{O.key==="Enter"&&!O.shiftKey&&(O.preventDefault(),G())},placeholder:n.agentPlaceholder,rows:1}),y.jsxs("div",{className:"agent-lite-actions",children:[y.jsx("button",{type:"button",className:"agent-lite-tool",onClick:()=>Y(O=>!O),title:n.newMemory,children:y.jsx($v,{size:15})}),y.jsx("button",{className:"agent-lite-submit",type:"submit",disabled:!E.trim()||v||!ae,title:v?n.cancel:n.send,onClick:v?O=>{O.preventDefault(),ue.current?.abort()}:void 0,children:v?y.jsx(Ho,{size:16}):y.jsx(cR,{size:16})})]})]}),z=y.jsx("button",{type:"button",className:`agent-lite-launcher ${R?"is-hidden":""}`,onClick:()=>M(!0),title:s.name,"aria-label":s.name,children:y.jsx(dR,{size:22})});if(!d)return z;const X=u==="config";return y.jsxs(y.Fragment,{children:[z,y.jsx("div",{className:`agent-lite-root ${R?"is-open":""} ${X?"is-config":"is-chat"}`,children:y.jsxs("section",{ref:Q,className:"agent-lite-panel","aria-label":s.name,children:[y.jsxs("div",{className:"agent-lite-expanded","aria-hidden":!R,children:[y.jsxs("header",{className:"agent-lite-header",children:[y.jsxs("div",{className:"agent-lite-brand",children:[y.jsx("span",{className:"agent-avatar",children:y.jsx(Yv,{size:16})}),y.jsxs("div",{children:[y.jsx("strong",{children:s.name}),y.jsx("span",{children:X?n.configuration:v?N||n.processing:n.agentDescription})]})]}),y.jsxs("div",{className:"agent-lite-header-actions",children:[y.jsxs("button",{type:"button",className:`agent-lite-mode-button ${X?"is-back":""}`,onClick:()=>{c(X?"chat":"config"),Y(!1)},title:X?n.backToChat:n.configuration,"aria-label":X?n.backToChat:n.configuration,children:[X?y.jsx(oR,{size:15}):y.jsx(V0,{size:15}),y.jsx("span",{children:X?n.backToChat:n.configuration})]}),y.jsx("button",{type:"button",className:"icon-button",onClick:()=>{M(!1),Y(!1)},title:n.close,"aria-label":n.close,children:y.jsx(kf,{size:16})})]})]}),y.jsx("div",{className:`agent-lite-body ${X?"is-config":"is-chat"}`,children:X?y.jsx(Mq,{language:t,initial:s,onSaved:O=>{l(O)}}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"agent-lite-messages",children:[m.map(O=>y.jsxs("article",{className:`agent-message ${O.role}`,children:[O.content?y.jsx("div",{className:"agent-message-bubble",children:O.role==="assistant"?y.jsx(vd,{className:"agent-markdown",controls:!1,mode:I===O.id?"streaming":"static",isAnimating:I===O.id,parseIncompleteMarkdown:I===O.id,skipHtml:!0,children:O.content}):y.jsx("span",{className:"agent-plain-text",children:O.content})}):null,O.toolCalls?.some(Z=>Z.name!=="memory-get-context")?y.jsx("div",{className:"agent-tool-calls",children:O.toolCalls.filter(Z=>Z.name!=="memory-get-context").map((Z,de)=>y.jsxs("span",{children:[y.jsx(ji,{size:11}),Z.label]},`${O.id}-${de}`))}):null]},O.id)),v&&!oe?.content&&y.jsxs("div",{className:"agent-thinking",children:[y.jsx(ll,{size:14}),y.jsx("span",{className:"agent-thinking-label",children:N||n.readingMemory}),y.jsx("i",{}),y.jsx("i",{}),y.jsx("i",{})]}),_&&y.jsx("p",{className:"agent-error",children:_}),y.jsx("div",{ref:se,className:"agent-messages-end"})]}),y.jsx("div",{className:"agent-lite-suggestions",children:xe.map(O=>y.jsx("button",{onClick:()=>{G(O)},disabled:v,children:O},O))})]})})]}),X?null:D,!X&&H?y.jsxs("div",{className:"agent-lite-popover",children:[y.jsx("button",{type:"button",onClick:()=>{p([{...a,id:crypto.randomUUID()}]),x(""),k(""),Y(!1)},children:n.newMemory}),y.jsx("span",{children:"/new"})]}):null]})})]})}const L0={zh:{all:{title:"全部记忆",description:"保存 Agent 需要记住的事实、偏好和经验。"},timeline:{title:"时间线",description:"按发生和写入时间回看记忆。"},preferences:{title:"偏好与习惯",description:"查看 Agent 需要遵循的个人偏好和习惯。"},projects:{title:"Scope 分类",description:"按 scope 分类查看记忆。"},tags:{title:"标签",description:"按标签查看记忆。"},settings:{title:"设置",description:"调整界面语言和显示方式。"},mcp:{title:"MCP 服务",description:"连接 Agent,管理服务访问。"}},en:{all:{title:"All memories",description:"Facts, preferences, and experience for your agents to remember."},timeline:{title:"Timeline",description:"Review memories by when they happened or were saved."},preferences:{title:"Preferences",description:"Review preferences your agents should follow."},projects:{title:"Scopes",description:"Browse memories by scope."},tags:{title:"Tags",description:"Browse memories by tag."},settings:{title:"Settings",description:"Adjust language and display settings."},mcp:{title:"MCP service",description:"Connect agents and manage service access."}}},zA={all:"/",timeline:"/timeline",projects:"/scopes",preferences:"/preferences",tags:"/tags",settings:"/settings",mcp:"/mcp-service"},Bq=Object.fromEntries(Object.entries(zA).map(([e,t])=>[t,e]));async function jq(){const e=await fetch("/api/data/export");if(!e.ok)throw new Error("export_failed");return e.blob()}async function Hq(e,t){const n=await fetch("/api/data/import",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({data:e,mode:t})}),a=await n.json();if(!n.ok)throw new Error("import_failed");return a}function Uq(e,t=new Date){const n=URL.createObjectURL(e),a=document.createElement("a");a.href=n,a.download=`memory-one-backup-${t.toISOString().slice(0,10)}.json`,a.click(),URL.revokeObjectURL(n)}function zq({language:e,onSelect:t}){const n=ir[e],[a,s]=C.useState(e),[l,u]=C.useState(!1),[c,d]=C.useState(""),h=async()=>{u(!0),d("");try{await Promise.resolve(t(a))}catch{d(n.languageSaveFailed)}finally{u(!1)}};return y.jsx("div",{className:"modal-backdrop language-setup-backdrop",children:y.jsxs("section",{className:"language-setup",role:"dialog","aria-modal":"true","aria-labelledby":"language-setup-title",children:[y.jsx("span",{className:"eyebrow",children:"Memory One"}),y.jsx("h2",{id:"language-setup-title",children:n.setupTitle}),y.jsx("p",{children:n.setupDescription}),y.jsxs("div",{className:"language-options",children:[y.jsxs("button",{className:a==="zh"?"selected":"",onClick:()=>s("zh"),children:[y.jsx("strong",{children:"中文"}),y.jsx("span",{children:"简体中文"})]}),y.jsxs("button",{className:a==="en"?"selected":"",onClick:()=>s("en"),children:[y.jsx("strong",{children:"English"}),y.jsx("span",{children:"English"})]})]}),c?y.jsx("p",{className:"settings-message",role:"alert",children:c}):null,y.jsxs("button",{className:"primary-button language-continue",onClick:()=>{h()},disabled:l,children:[l?y.jsx(ll,{className:"spin",size:15}):y.jsx(ji,{size:15}),n.continue]})]})})}function Fq({language:e,onLanguageChange:t,dark:n,onToggleTheme:a}){const s=ir[e],[l,u]=C.useState(!1),[c,d]=C.useState(""),[h,m]=C.useState(!1),[p,E]=C.useState(""),x=async _=>{if(_!==e){u(!0),d("");try{await Promise.resolve(t(_)),d(ir[_].languageSaved)}catch{d(s.languageSaveFailed)}finally{u(!1)}}},v=async()=>{m(!0),E("");try{Uq(await jq())}catch{E(s.backupFailed)}finally{m(!1)}},S=async(_,k)=>{if(!(k==="replace"&&!window.confirm(s.replaceConfirm))){m(!0),E("");try{const N=JSON.parse(await _.text()),w=await Hq(N,k);E(s.backupImported(w.imported??0,w.skipped??0))}catch{E(s.backupFailed)}finally{m(!1)}}};return y.jsxs("div",{className:"settings-page",children:[y.jsx("section",{className:"page-heading",children:y.jsxs("div",{children:[y.jsxs("div",{className:"heading-kicker",children:[y.jsx("span",{className:"live-dot"}),s.localMemory]}),y.jsx("h1",{children:L0[e].settings.title}),y.jsx("p",{children:L0[e].settings.description})]})}),y.jsxs("section",{className:"config-panel settings-panel",children:[y.jsxs("div",{className:"config-panel-heading",children:[y.jsxs("div",{children:[y.jsx("span",{className:"eyebrow",children:s.backupEyebrow}),y.jsx("h2",{children:s.backupTitle})]}),y.jsx(wf,{size:19})]}),y.jsxs("div",{className:"settings-row",children:[y.jsxs("span",{children:[y.jsx("strong",{children:s.backupTitle}),y.jsx("small",{children:s.backupDescription})]}),y.jsxs("div",{className:"language-switch",children:[y.jsx("button",{onClick:()=>{v()},disabled:h,children:s.exportBackup}),y.jsxs("label",{className:"settings-file-button",children:[s.importMerge,y.jsx("input",{type:"file",accept:"application/json,.json",hidden:!0,onChange:_=>{const k=_.target.files?.[0];k&&S(k,"merge"),_.target.value=""}})]}),y.jsxs("label",{className:"settings-file-button",children:[s.importReplace,y.jsx("input",{type:"file",accept:"application/json,.json",hidden:!0,onChange:_=>{const k=_.target.files?.[0];k&&S(k,"replace"),_.target.value=""}})]})]})]}),p?y.jsx("p",{className:"settings-message",role:"status",children:p}):null]}),y.jsxs("section",{className:"config-panel settings-panel",children:[y.jsxs("div",{className:"config-panel-heading",children:[y.jsxs("div",{children:[y.jsx("span",{className:"eyebrow",children:s.languageTitle}),y.jsx("h2",{children:s.languageTitle})]}),y.jsx("span",{className:"language-current",children:e==="zh"?"中文":"English"})]}),y.jsxs("div",{className:"settings-row language-settings-row",children:[y.jsxs("span",{children:[y.jsx("strong",{children:s.languageTitle}),y.jsx("small",{children:s.languageDescription})]}),y.jsxs("div",{className:"language-switch",role:"group","aria-label":s.languageTitle,children:[y.jsx("button",{className:e==="zh"?"selected":"",onClick:()=>{x("zh")},disabled:l,children:"中文"}),y.jsx("button",{className:e==="en"?"selected":"",onClick:()=>{x("en")},disabled:l,children:"English"})]})]}),c?y.jsx("p",{className:"settings-message",role:"status",children:c}):null]}),y.jsxs("section",{className:"config-panel settings-panel",children:[y.jsxs("div",{className:"config-panel-heading",children:[y.jsxs("div",{children:[y.jsx("span",{className:"eyebrow",children:s.appearanceEyebrow}),y.jsx("h2",{children:s.appearance})]}),n?y.jsx(Kv,{size:19}):y.jsx(Xv,{size:19})]}),y.jsxs("div",{className:"settings-row",children:[y.jsxs("span",{children:[y.jsx("strong",{children:s.darkMode}),y.jsx("small",{children:s.darkModeDescription})]}),y.jsx("button",{className:"ghost-button",onClick:a,children:n?s.toggleLight:s.toggleDark})]})]}),y.jsxs("section",{className:"config-panel settings-panel",children:[y.jsxs("div",{className:"config-panel-heading",children:[y.jsxs("div",{children:[y.jsx("span",{className:"eyebrow",children:s.storageEyebrow}),y.jsx("h2",{children:s.localDatabase})]}),y.jsx(wf,{size:19})]}),y.jsxs("div",{className:"settings-storage",children:[y.jsx("span",{className:"status-dot"}),y.jsx("strong",{children:"SQLite"}),y.jsx("span",{children:s.storageNote})]})]})]})}const fl=(e,t)=>e?new Intl.DateTimeFormat(t==="zh"?"zh-CN":"en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(new Date(e)):t==="zh"?"未标记时间":"No date",Sd={zh:{all:"全部",fact:"事实",preference:"偏好",episode:"事件",procedure:"方法",message:"对话"},en:{all:"All",fact:"Fact",preference:"Preference",episode:"Episode",procedure:"Procedure",message:"Message"}};function qq({item:e,selected:t,onClick:n,language:a}){const s=ir[a],l=Sd[a],u=Math.round(e.confidence*100);return y.jsxs("button",{className:`memory-card ${t?"selected":""}`,onClick:n,children:[y.jsxs("div",{className:"card-top",children:[y.jsx("span",{className:`kind-badge kind-${e.kind}`,children:l[e.kind]??e.kind}),y.jsx("span",{className:"card-date",children:fl(e.occurred_at??e.created_at,a)})]}),y.jsx(vd,{className:"memory-markdown memory-card-content",controls:!1,mode:"static",skipHtml:!0,children:e.content}),y.jsxs("div",{className:"card-bottom",children:[y.jsx("span",{children:e.project?y.jsxs(y.Fragment,{children:[y.jsx(Gv,{size:13}),e.project]}):y.jsxs(y.Fragment,{children:[y.jsx(Qv,{size:13}),e.scope]})}),y.jsxs("span",{className:"recall-count",children:[e.recall_count??0,s.recallTimes]}),y.jsxs("span",{className:"confidence",children:[y.jsx("span",{className:"confidence-meter",children:y.jsx("i",{style:{width:`${u}%`}})}),y.jsx("span",{children:s.confidence}),y.jsxs("span",{children:[u,"%"]})]})]})]})}function Vq({item:e,language:t}){const n=ir[t],a=Sd[t],[s,l]=C.useState([]);return C.useEffect(()=>{let u=!0;return l([]),fetch(`/api/memories/${e.id}/recalls?limit=5`).then(c=>c.json()).then(c=>{u&&l(Array.isArray(c)?c:[])}).catch(()=>{}),()=>{u=!1}},[e.id]),y.jsxs("div",{className:"detail-body",children:[y.jsx("div",{className:`detail-kind kind-badge kind-${e.kind}`,children:a[e.kind]??e.kind}),e.kind==="preference"&&e.metadata.always_include===!0&&y.jsx("div",{className:"detail-kind kind-badge",children:n.persistentPreference}),y.jsx(vd,{className:"memory-markdown memory-detail-content",controls:!1,mode:"static",skipHtml:!0,children:e.content}),y.jsxs("div",{className:"detail-meta",children:[y.jsxs("div",{children:[y.jsx("span",{children:n.created}),y.jsx("strong",{children:fl(e.created_at,t)})]}),y.jsxs("div",{children:[y.jsx("span",{children:n.updated}),y.jsx("strong",{children:fl(e.updated_at,t)})]}),y.jsxs("div",{children:[y.jsx("span",{children:n.source}),y.jsx("strong",{children:e.source??n.agentWritten})]}),y.jsxs("div",{children:[y.jsx("span",{children:n.recallCount}),y.jsxs("strong",{children:[e.recall_count??0," ",n.times]})]})]}),y.jsxs("div",{className:"detail-section",children:[y.jsx("span",{className:"eyebrow",children:n.scope}),y.jsxs("div",{className:"scope-value",title:e.project?`${e.scope} / ${e.project}`:e.scope,children:[y.jsx(wf,{size:15}),y.jsx("span",{className:"scope-value-text",children:e.project?`${e.scope} / ${e.project}`:e.scope})]})]}),y.jsxs("div",{className:"detail-section",children:[y.jsx("span",{className:"eyebrow",children:n.signals}),y.jsx(sv,{label:n.importance,value:e.importance,language:t}),y.jsx(sv,{label:n.confidence,value:e.confidence,language:t})]}),s.length?y.jsxs("div",{className:"detail-section",children:[y.jsx("span",{className:"eyebrow",children:n.recentRecalls}),y.jsx("div",{className:"recall-events",children:s.map(u=>y.jsxs("div",{className:"recall-event",children:[y.jsx("strong",{children:u.source}),y.jsx("span",{children:u.query||"—"}),y.jsx("small",{children:fl(u.created_at,t)})]},u.id))})]}):null]})}function sv({label:e,value:t,language:n}){return y.jsxs("div",{className:"signal-row",children:[y.jsx("span",{children:e}),y.jsx("div",{className:"signal-track",children:y.jsx("span",{style:{width:`${Math.round(t*100)}%`}})}),y.jsxs("b",{children:[Math.round(t*100),"%"]})]})}function zi({label:e,value:t,note:n,date:a}){return y.jsxs("div",{className:"stat-card",children:[y.jsx("span",{className:"stat-label",children:e}),y.jsx("strong",{className:a?"stat-date":"",children:t}),y.jsx("span",{className:"stat-note",children:n})]})}const Zs=[["memory_store","Store durable memory with optional scope.","保存一条持久记忆,可选 scope 分类。"],["memory-search","Search memories with SQLite FTS5 and an optional scope filter.","使用 SQLite FTS5 按需搜索记忆,可按 scope 筛选。"],["memory-get-context","Retrieve persistent context at the start of a new task.","在新任务开始时读取固定上下文。"],["memory_get","Get one memory by ID.","按 ID 获取单条记忆。"],["memory_list","List memories with an optional scope filter.","列出记忆,可按 scope 筛选。"],["memory_update","Update a memory or its metadata."]],Yq={zh:{copied:"已复制到剪贴板",copyFailed:"复制失败,请手动复制",codexWritten:"Codex MCP 配置已写入。重新启动 Codex 或开启新会话后生效。",codexWriteFailed:"配置失败,请检查 Codex 配置目录。",codexGuidanceWritten:"全局指令已写入。重新启动 Codex 或开启新会话后生效。",writeFailed:"写入失败,请检查 Codex 配置目录的访问权限。",keyCreateFailed:"Key 创建失败,请稍后重试。",keyDeleteConfirm:e=>`确定删除 Key“${e}”吗?删除后将立即失效,且无法恢复。`,keyDelete:"删除",keyCreated:"Key 已创建,可随时在下方再次复制",copyConfig:"复制配置",copiedConfig:"配置已复制",copyAuthConfig:"复制带 Authorization Header 的配置",keyName:"Key 名称",unnamedKey:"未命名 Key",access:"访问控制",keyManage:"MCP Key 管理",keyNote:"为每个客户端创建独立 Key,并按最小权限限制可调用的工具。",createKey:"创建 Key",keyEmpty:"暂无 Key",allowTools:"允许调用的工具",keyPlaceholder:"例如:平台 Agent",allTools:"可调用全部工具",toolCount:(e,t)=>`可用工具 ${e}/${t}`,recent:e=>`最近使用 ${e}`,never:"尚未使用",rename:"修改名称",connectionTab:"连接配置",usageTab:"调用统计",mcpPage:"MCP 页面",streamable:"Streamable HTTP",bearer:"Bearer Key",codexConnection:"MCP 连接",chooseKey:"选择用于连接的 Key。",autoConnection:"将自动保存连接配置。",readingAuth:"正在读取认证状态。",createFirst:"请先创建 MCP Key",configured:"已配置",configure:"配置",update:"更新",taskMemory:"任务前置记忆",taskMemoryDesc:"每项任务开始前读取一次;同一任务已有结果时用 memory-search 查询。",enabled:"已启用",needUpdate:"需要更新",notConfigured:"未配置",detecting:"检查中",reading:"读取中",usage:"调用统计",usageTitle:"工具使用情况",total:"累计调用",failed:e=>`${e} 次失败`,latency:"平均处理耗时",lastCall:"最近一次调用",none:"暂无",delete:"删除",callCount:"次",accessEyebrow:"访问控制",createMcpKey:"创建 MCP Key",close:"关闭"},en:{copied:"Copied",copyFailed:"Copy failed. Copy it manually.",codexWritten:"Codex MCP configuration saved. Restart Codex or start a new session to apply it.",codexWriteFailed:"Could not save the configuration. Check the Codex configuration directory.",codexGuidanceWritten:"Global guidance saved. Restart Codex or start a new session to apply it.",writeFailed:"Could not save global guidance. Check the Codex configuration directory.",keyCreateFailed:"Could not create the key. Try again.",keyDeleteConfirm:e=>`Delete key “${e}”? It will stop working immediately.`,keyDelete:"Delete",keyCreated:"Key created. You can copy it below.",copyConfig:"Copy configuration",copiedConfig:"Configuration copied",copyAuthConfig:"Copy configuration with Authorization Header",keyName:"Key name",unnamedKey:"Unnamed key",access:"Access",keyManage:"MCP keys",keyNote:"Create one key per client and limit the tools it can call.",createKey:"Create key",keyEmpty:"No keys yet.",allowTools:"Allowed tools",keyPlaceholder:"For example: Workspace agent",allTools:"All tools",toolCount:(e,t)=>`${e}/${t} tools`,recent:e=>`Last used ${e}`,never:"Not used",rename:"Rename",connectionTab:"Connection",usageTab:"Usage",mcpPage:"MCP page",streamable:"Streamable HTTP",bearer:"Bearer Key",codexConnection:"MCP connection",chooseKey:"Choose a key for the connection.",autoConnection:"The connection will be saved automatically.",readingAuth:"Checking authentication status.",createFirst:"Create an MCP key first",configured:"Configured",configure:"Configure",update:"Update",taskMemory:"Task memory",taskMemoryDesc:"Read once before each task; use memory-search for follow-ups instead of calling again.",enabled:"Enabled",needUpdate:"Needs update",notConfigured:"Not configured",detecting:"Checking",reading:"Loading",usage:"Usage",usageTitle:"Tool usage",total:"Total calls",failed:e=>`${e} failed`,latency:"Average latency",lastCall:"Last call",none:"None",delete:"Delete",callCount:"calls",accessEyebrow:"Access",createMcpKey:"Create MCP key",close:"Close"}};function $q({language:e}){const t=ir[e],n=Yq[e],[a,s]=C.useState(null),[l,u]=C.useState(null),[c,d]=C.useState(null),[h,m]=C.useState(null),[p,E]=C.useState(!1),[x,v]=C.useState(""),[S,_]=C.useState(null),[k,N]=C.useState(""),[w,I]=C.useState(!1),[F,R]=C.useState(""),[M,H]=C.useState([]),[Y,U]=C.useState(""),[J,Q]=C.useState(Zs.map(([W])=>W)),[se,ue]=C.useState(null),[ae,B]=C.useState(!1),[G,oe]=C.useState(""),[xe,D]=C.useState(!1),[z,X]=C.useState(null),[O,Z]=C.useState(null),[de,pe]=C.useState(""),[Se,Te]=C.useState("connection"),Ee=typeof window<"u"&&window.location.hostname?window.location.hostname:"127.0.0.1",Pe=typeof window<"u"?window.location.port:"",Re=`http://${Ee}:${Pe==="5173"||!Pe?"8765":Pe}/mcp/`,He=new Map(c?.tools.map(W=>[W.tool_name,W.calls])??[]),ze=c?.total_calls?Math.round(c.successful_calls/c.total_calls*100):0;C.useEffect(()=>{fetch("/api/mcp/config").then(W=>W.json()).then(W=>X(W.use_bearer_key!==!1)),fetch("/api/mcp/stats").then(W=>W.json()).then(d),fetch("/api/integrations/codex").then(W=>W.json()).then(m),fetch(`/api/integrations/codex/mcp?endpoint=${encodeURIComponent(Re)}`).then(W=>W.json()).then(_),fetch("/api/mcp/keys").then(W=>W.json()).then(H)},[]),C.useEffect(()=>{const W=M.filter(ve=>ve.secret);S?.configured_key_id?N(S.configured_key_id):W.some(ve=>ve.id===k)||N(W[0]?.id??"")},[S,k,M]);const tt=async W=>{X(W),await fetch("/api/mcp/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({use_bearer_key:W})});const ve=await fetch(`/api/integrations/codex/mcp?endpoint=${encodeURIComponent(Re)}`);_(await ve.json())},Xe=async(W,ve)=>{try{if(!navigator.clipboard)throw new Error("clipboard_unavailable");await navigator.clipboard.writeText(W),s(ve),u(n.copied),window.setTimeout(()=>s(null),1500),window.setTimeout(()=>u(null),2200)}catch{u(n.copyFailed),window.setTimeout(()=>u(null),2600)}},Rt=async()=>{E(!0),v("");try{const W=await fetch("/api/integrations/codex/install",{method:"POST"});if(!W.ok)throw new Error("install_failed");m(await W.json()),v(n.codexGuidanceWritten)}catch{v(n.writeFailed)}finally{E(!1)}},kt=async()=>{I(!0),R("");try{const W=await fetch("/api/integrations/codex/mcp/install",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({endpoint:Re,...z===!0?{key_id:k}:{}})});if(!W.ok)throw new Error("install_failed");_(await W.json()),R(n.codexWritten)}catch{R(n.codexWriteFailed)}finally{I(!1)}},Ft=async()=>{B(!0),oe("");try{const W=await fetch("/api/mcp/keys",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:Y.trim()||n.unnamedKey,allowed_tools:J})});if(!W.ok)throw new Error("create_key_failed");const ve=await W.json();H(Me=>[ve.key_record,...Me]),ue(ve.key),U("")}catch{oe(n.keyCreateFailed)}finally{B(!1)}},ke=async W=>{const ve=M.find($e=>$e.id===W);!ve||!window.confirm(n.keyDeleteConfirm(ve.name))||!(await fetch(`/api/mcp/keys/${W}`,{method:"DELETE"})).ok||H($e=>$e.filter($t=>$t.id!==W))},Ie=async W=>{const ve=await fetch(`/api/mcp/keys/${W}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({name:de})});if(!ve.ok)return;const Me=await ve.json();H($e=>$e.map($t=>$t.id===W?Me:$t)),Z(null)},dt=se?JSON.stringify({mcpServers:{"memory-one":{type:"http",url:Re,...z===!0?{headers:{Authorization:`Bearer ${se}`}}:{}}}},null,2):"",qe=h?.status==="configured"?n.configured:h?.status==="update_available"?n.needUpdate:n.notConfigured,Ye=h?.status==="update_available"?n.update:n.enabled,ln=S?.status==="configured"&&(z!==!0||S.configured_key_id===k),ce=S?.status==="configured"?n.configured:S?.status==="update_available"?n.needUpdate:n.notConfigured;return y.jsxs("div",{className:`mcp-page ${z===null?"mcp-loading":""}`,children:[l?y.jsxs("div",{className:`copy-feedback ${l===n.copyFailed?"error":""}`,role:"status",children:[l===n.copyFailed?y.jsx(mR,{size:14}):y.jsx(ji,{size:14}),l]}):null,y.jsx("div",{className:"mcp-navigation",children:y.jsxs("nav",{className:"mcp-tabs",role:"tablist","aria-label":n.mcpPage,children:[y.jsxs("button",{className:Se==="connection"?"active":"",role:"tab","aria-selected":Se==="connection",onClick:()=>Te("connection"),children:[y.jsx(ff,{size:15}),n.connectionTab]}),y.jsxs("button",{className:Se==="usage"?"active":"",role:"tab","aria-selected":Se==="usage",onClick:()=>Te("usage"),children:[y.jsx(Mx,{size:15}),n.usageTab]})]})}),Se==="connection"&&y.jsxs("div",{className:"mcp-grid",role:"tabpanel",children:[y.jsxs("section",{className:"mcp-panel mcp-endpoint",children:[y.jsxs("div",{className:"mcp-panel-header",children:[y.jsxs("div",{children:[y.jsx("span",{className:"eyebrow",children:t.serverEndpoint}),y.jsx("h2",{children:t.mcpEndpoint})]}),y.jsx("button",{className:"icon-button",onClick:()=>Xe(Re,"endpoint"),title:t.mcpCopyEndpoint,children:a==="endpoint"?y.jsx(ji,{size:16}):y.jsx(Zm,{size:16})})]}),y.jsx("div",{className:"endpoint-value",children:Re}),y.jsxs("div",{className:"endpoint-compact-meta",children:[y.jsxs("span",{children:[y.jsx("i",{className:"status-dot"}),n.streamable]}),y.jsxs("label",{className:"switch-label",children:[y.jsx("span",{children:n.bearer}),y.jsx("input",{type:"checkbox",checked:z===!0,disabled:z===null,onChange:W=>tt(W.target.checked)}),y.jsx("i",{})]})]})]}),y.jsxs("section",{className:"mcp-panel codex-mcp-panel",children:[y.jsx("span",{className:"eyebrow codex-compact-heading",children:"Codex"}),y.jsxs("div",{className:"codex-compact-list",children:[y.jsxs("section",{className:"codex-compact-row",children:[y.jsxs("div",{className:"codex-compact-copy",children:[y.jsxs("div",{className:"codex-compact-title",children:[y.jsx("strong",{children:n.codexConnection}),y.jsx("span",{className:`integration-status status-${S?.status??"loading"}`,children:S?ce:n.detecting})]}),y.jsx("p",{children:z===!0?n.chooseKey:z===!1?n.autoConnection:n.readingAuth}),F?y.jsx("div",{className:"integration-message",role:"status",children:F}):null]}),y.jsxs("div",{className:"codex-compact-actions",children:[z===!0?y.jsxs("select",{"aria-label":n.bearer,value:k,onChange:W=>N(W.target.value),disabled:!M.some(W=>W.secret),children:[M.filter(W=>W.secret).map(W=>y.jsxs("option",{value:W.id,children:[W.name," · ",W.prefix,"••••"]},W.id)),M.some(W=>W.secret)?null:y.jsx("option",{value:"",children:n.createFirst})]}):null,y.jsxs("button",{className:"primary-button",disabled:z===null||!S||z===!0&&!k||w||ln,onClick:()=>{kt()},children:[w?y.jsx(ll,{className:"spin",size:16}):y.jsx(ff,{size:16}),ln?n.configured:S?.status==="not_configured"?n.configure:n.update]})]})]}),y.jsxs("section",{className:"codex-compact-row",children:[y.jsxs("div",{className:"codex-compact-copy",children:[y.jsxs("div",{className:"codex-compact-title",children:[y.jsx("strong",{children:n.taskMemory}),y.jsx("span",{className:`integration-status status-${h?.status??"loading"}`,children:h?qe:n.reading})]}),y.jsx("p",{children:n.taskMemoryDesc}),x?y.jsx("div",{className:"integration-message",role:"status",children:x}):null]}),y.jsxs("button",{className:"primary-button",disabled:!h||p||h.status==="configured",onClick:Rt,children:[p?y.jsx(ll,{className:"spin",size:16}):y.jsx(gR,{size:16}),h?.status==="configured"?n.enabled:Ye]})]})]})]}),z===!0&&y.jsxs("section",{className:"mcp-keys",role:"region","aria-label":n.keyManage,children:[y.jsxs("div",{className:"mcp-tools-heading",children:[y.jsxs("div",{children:[y.jsx("span",{className:"eyebrow",children:n.access}),y.jsx("h2",{children:n.keyManage})]}),y.jsx(Uc,{size:18})]}),y.jsx("p",{className:"mcp-key-note",children:n.keyNote}),y.jsx("div",{className:"mcp-key-create",children:y.jsxs("button",{className:"primary-button",onClick:()=>D(!0),children:[y.jsx(Uc,{size:15}),n.createKey]})}),se?y.jsxs("div",{className:"mcp-key-secret",children:[y.jsx("strong",{children:n.keyCreated}),y.jsx("code",{children:se}),y.jsxs("div",{children:[y.jsx("button",{className:"icon-button",onClick:()=>Xe(dt,"key-config"),title:n.copyConfig,children:a==="key-config"?y.jsx(ji,{size:16}):y.jsx(Zm,{size:16})}),y.jsx("span",{children:a==="key-config"?n.copiedConfig:n.copyAuthConfig})]})]}):null,y.jsx("div",{className:"mcp-key-list",children:M.length?M.map(W=>y.jsxs("div",{className:"mcp-key-row",children:[y.jsx(Uc,{size:15}),y.jsxs("div",{children:[O===W.id?y.jsx("input",{className:"mcp-key-name-input",autoFocus:!0,value:de,onChange:ve=>pe(ve.target.value),onKeyDown:ve=>{ve.key==="Enter"&&Ie(W.id),ve.key==="Escape"&&Z(null)},onBlur:()=>{Ie(W.id)}}):y.jsx("strong",{children:W.name}),y.jsxs("code",{children:[W.prefix,"••••••••"]}),y.jsxs("span",{children:[W.allowed_tools.length?n.toolCount(W.allowed_tools.length,Zs.length):n.allTools,W.last_used_at?` · ${n.recent(fl(W.last_used_at,e))}`:` · ${n.never}`]}),y.jsx("div",{className:"tool-chip-list key-tool-list",children:(W.allowed_tools.length?W.allowed_tools:Zs.map(([ve])=>ve)).map(ve=>y.jsx("span",{className:"tool-chip",children:ve},ve))})]}),y.jsxs("div",{className:"mcp-key-actions",children:[W.secret?y.jsx("button",{className:"icon-button",onClick:()=>Xe(W.secret,`key-${W.id}`),title:n.copyConfig,children:a===`key-${W.id}`?y.jsx(ji,{size:14}):y.jsx(Zm,{size:14})}):null,y.jsx("button",{className:"icon-button",onClick:()=>{Z(W.id),pe(W.name)},title:n.rename,children:y.jsx(ER,{size:14})}),y.jsx("button",{className:"ghost-button",onClick:()=>{ke(W.id)},children:n.delete})]})]},W.id)):y.jsx("p",{className:"mcp-key-empty",children:n.keyEmpty})})]})]}),xe&&y.jsx("div",{className:"modal-backdrop",role:"presentation",onMouseDown:W=>{W.target===W.currentTarget&&D(!1)},children:y.jsxs("section",{className:"key-create-modal",role:"dialog","aria-modal":"true","aria-label":n.createKey,children:[y.jsxs("div",{className:"composer-header",children:[y.jsxs("div",{children:[y.jsx("span",{className:"eyebrow",children:n.accessEyebrow}),y.jsx("h2",{children:n.createMcpKey})]}),y.jsx("button",{className:"icon-button",onClick:()=>D(!1),title:n.close,"aria-label":n.close,children:y.jsx(Ho,{size:18})})]}),y.jsxs("label",{className:"config-field",children:[y.jsx("span",{children:n.keyName}),y.jsx("input",{autoFocus:!0,value:Y,onChange:W=>U(W.target.value),placeholder:n.keyPlaceholder})]}),y.jsxs("div",{className:"mcp-key-tools",children:[y.jsx("span",{className:"key-tools-label",children:n.allowTools}),y.jsx("div",{className:"key-tools-grid",children:Zs.map(([W])=>y.jsxs("label",{children:[y.jsx("input",{type:"checkbox",checked:J.includes(W),onChange:ve=>Q(Me=>ve.target.checked?[...Me,W]:Me.filter($e=>$e!==W))}),W]},W))})]}),y.jsxs("div",{className:"modal-actions",children:[y.jsx("button",{className:"ghost-button",onClick:()=>D(!1),children:t.cancel}),y.jsxs("button",{className:"primary-button",onClick:()=>{Ft(),D(!1)},disabled:ae||J.length===0,children:[ae?y.jsx(ll,{className:"spin",size:15}):y.jsx(Uc,{size:15}),n.createKey]})]}),G?y.jsx("p",{className:"integration-message",role:"alert",children:G}):null]})}),Se==="usage"&&y.jsxs(y.Fragment,{children:[y.jsxs("section",{className:"mcp-usage",role:"tabpanel",children:[y.jsxs("div",{className:"mcp-tools-heading",children:[y.jsxs("div",{children:[y.jsx("span",{className:"eyebrow",children:n.usage}),y.jsx("h2",{children:n.usageTitle})]}),y.jsx(Mx,{size:18})]}),y.jsxs("div",{className:"mcp-metrics",children:[y.jsx(zi,{label:"TOTAL CALLS",value:c?String(c.total_calls):"--",note:n.total}),y.jsx(zi,{label:"SUCCESS RATE",value:c?.total_calls?`${ze}%`:"--",note:c?n.failed(c.failed_calls):n.reading}),y.jsx(zi,{label:"AVG LATENCY",value:c?.total_calls?`${c.average_duration_ms} ms`:"--",note:n.latency}),y.jsx(zi,{label:"LAST CALL",value:c?.last_called_at?fl(c.last_called_at,e):n.none,note:n.lastCall,date:!0})]})]}),y.jsxs("section",{className:"mcp-tools",children:[y.jsxs("div",{className:"mcp-tools-heading",children:[y.jsxs("div",{children:[y.jsx("span",{className:"eyebrow",children:t.toolsLabel}),y.jsx("h2",{children:t.toolsTitle})]}),y.jsxs("span",{className:"tool-count",children:[Zs.length," ",t.toolsCount]})]}),y.jsx("div",{className:"tool-list",children:Zs.map(([W,ve,Me])=>y.jsxs("article",{className:"tool-row",children:[y.jsx("div",{className:"tool-icon",children:y.jsx(ff,{size:15})}),y.jsxs("div",{children:[y.jsx("strong",{children:W}),y.jsx("span",{children:e==="zh"?Me:ve})]}),y.jsxs("div",{className:"tool-meta",children:[y.jsxs("code",{children:[He.get(W)??0," ",n.callCount]}),y.jsx("code",{children:t.http})]})]},W))})]})]})]})}const Gq=["all","fact","preference","episode","procedure","message"];function Li(){return null}const Fa=Y6({component:Qq}),Kq=Fa.addChildren([ki({getParentRoute:()=>Fa,path:"/",component:Li}),ki({getParentRoute:()=>Fa,path:"/timeline",component:Li}),ki({getParentRoute:()=>Fa,path:"/preferences",component:Li}),ki({getParentRoute:()=>Fa,path:"/scopes",component:Li}),ki({getParentRoute:()=>Fa,path:"/tags",component:Li}),ki({getParentRoute:()=>Fa,path:"/settings",component:Li}),ki({getParentRoute:()=>Fa,path:"/mcp-service",component:Li})]),Xq=eR({routeTree:Kq});function Qq(){const e=aR({select:Z=>Z.location.pathname}),t=q0(),n=Bq[e]??"all",[a,s]=C.useState([]),[l,u]=C.useState(null),[c,d]=C.useState(""),[h,m]=C.useState("all"),[p,E]=C.useState("all"),[x,v]=C.useState("zh"),[S,_]=C.useState(!1),[k,N]=C.useState(()=>localStorage.getItem("memory-one-theme")==="dark"),[w,I]=C.useState(!1),[F,R]=C.useState(!0),[M,H]=C.useState(!1),[Y,U]=C.useState(null),[J,Q]=C.useState("0.1.13"),[se,ue]=C.useState(!1),ae=async(Z=c)=>{R(!0),H(!1);try{const de=Z.trim()?`/api/search?query=${encodeURIComponent(Z)}`:"/api/memories?limit=100",pe=await fetch(de);if(!pe.ok)throw new Error("memory_load_failed");s(await pe.json())}catch{H(!0)}finally{R(!1)}},B=ir[x],G=Sd[x];C.useEffect(()=>{let Z=!0;return fetch("/api/app-config").then(de=>de.ok?de.json():null).then(de=>{Z&&(de?.language==="zh"||de?.language==="en"?v(de.language):_(!0),ue(!0))}).catch(()=>{Z&&ue(!0)}),()=>{Z=!1}},[]);const oe=async Z=>{if(!(await fetch("/api/app-config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({language:Z})})).ok)throw new Error("language_save_failed");v(Z),_(!1)};C.useEffect(()=>{u(null),I(!1),d(""),m(n==="preferences"?"preference":"all"),E("all"),ae("")},[n]),C.useEffect(()=>{document.documentElement.dataset.theme=k?"dark":"light",localStorage.setItem("memory-one-theme",k?"dark":"light")},[k]),C.useEffect(()=>{document.documentElement.lang=x==="zh"?"zh-CN":"en"},[x]),C.useEffect(()=>{let Z=!0;return fetch("/api/version").then(de=>de.ok?de.json():null).then(de=>{!Z||!de?.current||(Q(de.current),de.updateAvailable&&de.latest&&U({current:de.current,latest:de.latest}))}).catch(()=>{}),()=>{Z=!1}},[]),C.useEffect(()=>{const Z=de=>{(de.metaKey||de.ctrlKey)&&de.key.toLowerCase()==="k"&&(de.preventDefault(),document.querySelector("#memory-search")?.focus())};return window.addEventListener("keydown",Z),()=>window.removeEventListener("keydown",Z)},[]);const xe=C.useMemo(()=>["all","__global__",...new Set(a.map(Z=>Z.project).filter(Boolean))],[a]),D=a.filter(Z=>n==="tags"||n==="settings"||n==="mcp"||n==="preferences"&&Z.kind!=="preference"?!1:(h==="all"||Z.kind===h)&&(p==="all"||(p==="__global__"?!Z.project:Z.project===p))),z={total:a.length,projects:new Set(a.map(Z=>Z.project).filter(Boolean)).size,preferences:a.filter(Z=>Z.kind==="preference").length},X=L0[x][n],O=Z=>{t({to:zA[Z]})};return y.jsxs("div",{className:`app-shell ${n==="mcp"?"app-shell-wide":""}`,children:[Y&&y.jsxs("div",{className:"version-notice",role:"status",children:[y.jsx(Bx,{size:14}),y.jsx("span",{children:B.versionNotice(Y.latest,Y.current)}),y.jsx("button",{className:"icon-button",onClick:()=>U(null),title:B.close,"aria-label":B.close,children:y.jsx(Ho,{size:14})})]}),y.jsxs("aside",{className:`sidebar ${w?"sidebar-open":""}`,children:[y.jsxs("div",{className:"brand",children:[y.jsx("div",{className:"brand-mark",children:y.jsx(Yv,{size:17})}),y.jsxs("div",{children:[y.jsx("strong",{children:"Memory One"}),y.jsx("span",{children:B.brandSubtitle})]}),y.jsx("button",{className:"icon-button mobile-close",onClick:()=>I(!1),title:B.close,children:y.jsx(Ho,{size:17})})]}),y.jsxs(Dp,{title:B.workspace,children:[y.jsx(Di,{icon:y.jsx(fR,{size:17}),label:B.navAll,count:z.total,active:n==="all",onClick:()=>O("all")}),y.jsx(Di,{icon:y.jsx($v,{size:17}),label:B.navTimeline,active:n==="timeline",onClick:()=>O("timeline")})]}),y.jsxs(Dp,{title:B.collections,children:[y.jsx(Di,{icon:y.jsx(Bx,{size:17}),label:B.navPreferences,count:z.preferences,active:n==="preferences",onClick:()=>O("preferences")}),y.jsx(Di,{icon:y.jsx(Gv,{size:17}),label:B.navScopes,count:z.projects,active:n==="projects",onClick:()=>O("projects")}),y.jsx(Di,{icon:y.jsx(Qv,{size:17}),label:B.navTags,active:n==="tags",onClick:()=>O("tags")})]}),y.jsx(Dp,{title:B.connect,children:y.jsx(Di,{icon:y.jsx(ff,{size:17}),label:B.navMcp,active:n==="mcp",onClick:()=>O("mcp")})}),y.jsxs("div",{className:"sidebar-footer",children:[y.jsxs("div",{className:"storage-status",children:[y.jsx("span",{className:"status-dot"}),B.localStorage,y.jsx("span",{className:"mono",children:"SQLite"})]}),y.jsx(Di,{icon:y.jsx(V0,{size:17}),label:B.navSettings,count:J?`v${J}`:void 0,active:n==="settings",onClick:()=>O("settings")})]})]}),w&&y.jsx("button",{className:"sidebar-backdrop",onClick:()=>I(!1),"aria-label":B.close}),y.jsxs("main",{className:"main-content",children:[y.jsxs("header",{className:"topbar",children:[y.jsx("button",{className:"icon-button menu-button",onClick:()=>I(!0),title:B.openMenu,"aria-label":B.openMenu,children:y.jsx(yR,{size:19})}),y.jsxs("div",{className:"breadcrumbs",children:[y.jsx("span",{children:B.workspace}),y.jsx(kf,{size:14}),y.jsx("strong",{children:X.title})]}),y.jsxs("div",{className:"top-actions",children:[y.jsx("button",{className:"icon-button",onClick:()=>N(Z=>!Z),title:k?B.toggleLight:B.toggleDark,"aria-label":k?B.toggleLight:B.toggleDark,children:k?y.jsx(Xv,{size:17}):y.jsx(Kv,{size:17})}),y.jsx("div",{className:"avatar",children:"C"})]})]}),y.jsx("div",{className:"content-wrap",children:n==="mcp"?y.jsx($q,{language:x}):n==="settings"?y.jsx(Fq,{language:x,onLanguageChange:Z=>oe(Z),dark:k,onToggleTheme:()=>N(Z=>!Z)}):y.jsxs(y.Fragment,{children:[y.jsx("section",{className:"page-heading",children:y.jsxs("div",{children:[y.jsxs("div",{className:"heading-kicker",children:[y.jsx("span",{className:"live-dot"}),B.localMemory]}),y.jsx("h1",{children:X.title}),y.jsx("p",{children:X.description})]})}),n!=="timeline"&&y.jsxs("section",{className:"stat-grid",children:[y.jsx(zi,{label:B.memories,value:z.total.toString().padStart(2,"0"),note:B.savedCount}),y.jsx(zi,{label:B.scopes,value:z.projects.toString().padStart(2,"0"),note:B.scopesNote}),y.jsx(zi,{label:B.lastSync,value:B.justNow,note:B.localDatabase,date:!0}),y.jsxs("div",{className:"stat-card stat-callout",children:[y.jsx(wf,{size:19}),y.jsxs("div",{children:[y.jsx("strong",{children:B.localOnly}),y.jsx("span",{children:B.localOnlyDesc})]})]})]}),y.jsxs("section",{className:"toolbar",children:[y.jsxs("div",{className:"search-box",children:[y.jsx(xR,{size:17}),y.jsx("input",{id:"memory-search",value:c,onChange:Z=>d(Z.target.value),onKeyDown:Z=>{Z.key==="Enter"&&ae()},placeholder:B.search}),y.jsxs("kbd",{children:[y.jsx(pR,{size:11}),"K"]})]}),y.jsxs("div",{className:"toolbar-actions",children:[y.jsxs("div",{className:"select-wrap",children:[y.jsx(bR,{size:15}),y.jsx(Df,{value:h,onValueChange:m,options:Gq.map(Z=>({value:Z,label:G[Z]})),ariaLabel:B.type})]}),y.jsx("div",{className:"select-wrap project-select",children:y.jsx(Df,{value:p,onValueChange:E,options:xe.map(Z=>({value:Z,label:Z==="all"?B.allScopes:Z==="__global__"?B.globalMemory:Z})),ariaLabel:B.scope})})]})]}),y.jsxs("div",{className:"list-header",children:[y.jsx("span",{children:F?B.reading:`${D.length}${B.countSuffix}`}),y.jsx("span",{className:"mono",children:n==="timeline"?B.sortTimeline:B.sortRecent})]}),y.jsxs("section",{className:n==="timeline"?"timeline-list":"memory-list",children:[M&&!F&&y.jsxs("div",{className:"empty-state",children:[y.jsx(Px,{size:28}),y.jsx("strong",{children:B.loadFailed}),y.jsx("button",{className:"ghost-button",onClick:()=>{ae()},children:B.retry})]}),!M&&!F&&D.length===0&&y.jsxs("div",{className:"empty-state",children:[y.jsx(Px,{size:28}),y.jsx("strong",{children:n==="tags"?B.noTags:B.emptyMatch}),y.jsx("span",{children:n==="tags"?X.description:B.emptyHelp})]}),!M&&n==="timeline"&&y.jsx(Jq,{items:D,selectedId:l?.id,onSelect:u,language:x}),!M&&n!=="timeline"&&D.map(Z=>y.jsx(qq,{item:Z,selected:l?.id===Z.id,onClick:()=>u(Z),language:x},Z.id))]})]})}),y.jsx(Pq,{language:x,onMemoryChanged:()=>{ae()}})]}),n!=="mcp"&&y.jsxs("aside",{className:`detail-panel ${l?"detail-open":""}`,children:[y.jsxs("div",{className:"detail-header",children:[y.jsx("span",{className:"eyebrow",children:B.detailEyebrow}),l&&y.jsx("button",{className:"icon-button",onClick:()=>u(null),title:B.close,children:y.jsx(Ho,{size:17})})]}),l?y.jsx(Vq,{item:l,language:x}):y.jsxs("div",{className:"detail-empty",children:[y.jsx("div",{className:"detail-icon",children:y.jsx(uR,{size:20})}),y.jsx("strong",{children:B.detailEmpty}),y.jsx("span",{children:B.detailEmptyDesc})]})]}),y.jsx(Fv,{}),se&&S?y.jsx(zq,{language:x,onSelect:Z=>oe(Z)}):null]})}function Dp({title:e,children:t}){return y.jsxs("div",{className:"sidebar-section",children:[y.jsx("span",{className:"eyebrow",children:e}),t]})}function Di({icon:e,label:t,count:n,active:a,onClick:s}){return y.jsxs("button",{className:`nav-item ${a?"active":""}`,onClick:s,"aria-current":a?"page":void 0,children:[e,y.jsx("span",{children:t}),n!==void 0&&y.jsx("b",{children:n})]})}function Wq(e,t){if(!e)return t==="zh"?"未标记日期":"Undated";const n=new Date(e);return Number.isNaN(n.getTime())?t==="zh"?"未标记日期":"Undated":new Intl.DateTimeFormat(t==="zh"?"zh-CN":"en-US",{year:"numeric",month:"long",day:"numeric",weekday:"short"}).format(n)}function Zq(e,t){if(!e)return t==="zh"?"未标记时间":"No time";const n=new Date(e);return Number.isNaN(n.getTime())?t==="zh"?"未标记时间":"No time":new Intl.DateTimeFormat(t==="zh"?"zh-CN":"en-US",{hour:"2-digit",minute:"2-digit"}).format(n)}function Jq({items:e,selectedId:t,onSelect:n,language:a}){const s=ir[a],l=C.useMemo(()=>{const u=[...e].sort((d,h)=>{const m=new Date(d.occurred_at??d.created_at).getTime();return new Date(h.occurred_at??h.created_at).getTime()-m}),c=new Map;for(const d of u){const h=d.occurred_at??d.created_at,m=h?new Date(h):null,p=m&&!Number.isNaN(m.getTime())?m.toISOString().slice(0,10):"undated";c.set(p,[...c.get(p)??[],d])}return[...c.entries()]},[e]);return y.jsx("div",{className:"timeline-stream",children:l.map(([u,c])=>y.jsxs("section",{className:"timeline-day",children:[y.jsxs("header",{className:"timeline-day-heading",children:[y.jsx("time",{children:Wq(u==="undated"?null:u,a)}),y.jsxs("span",{className:"mono",children:[c.length.toString().padStart(2,"0")," ",s.timelineItems]})]}),y.jsx("div",{className:"timeline-day-items",children:c.map(d=>{const h=d.occurred_at??d.created_at;return y.jsxs("button",{className:`timeline-event ${t===d.id?"selected":""}`,onClick:()=>n(d),children:[y.jsx("span",{className:"timeline-event-rail","aria-hidden":"true",children:y.jsx("span",{className:"timeline-dot"})}),y.jsxs("span",{className:"timeline-event-body",children:[y.jsxs("span",{className:"timeline-event-meta",children:[y.jsx("span",{className:`kind-badge kind-${d.kind}`,children:Sd[a][d.kind]??d.kind}),y.jsx("time",{children:Zq(h,a)})]}),y.jsx("strong",{children:d.content}),y.jsx("span",{className:"timeline-event-context",children:y.jsxs("span",{title:`${d.project??d.scope} · ${d.source??ir[a].agentWritten}`,children:[d.project??d.scope," · ",d.source??ir[a].agentWritten]})})]})]},d.id)})})]},u))})}fN.createRoot(document.getElementById("root")).render(y.jsx(yl.StrictMode,{children:y.jsx(rR,{router:Xq})}));const eV=Object.freeze(Object.defineProperty({__proto__:null,Mermaid:HA},Symbol.toStringTag,{value:"Module"}));export{lV as E,sn as S,lF as c,y as j,C as r};
|