@ccjr1120/memory-one 0.1.6 → 0.1.8
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 +2 -0
- package/bin/memory-one.mjs +84 -16
- package/dist/server.js +9 -2
- package/dist/server.js.map +1 -1
- package/dist/storage.js +97 -17
- package/dist/storage.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/{highlighted-body-KPVGNVTW-DMf8eUNQ.js → highlighted-body-KPVGNVTW-BeAfTlkH.js} +1 -1
- package/public/assets/{index-C2R_a7hV.css → index-DdYHcoCB.css} +1 -1
- package/public/assets/index-iU9Ed9kk.js +190 -0
- package/public/index.html +2 -2
- package/public/assets/index-Desg7wZu.js +0 -190
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
var qE=e=>{throw TypeError(e)};var VE=(e,t,n)=>t.has(e)||qE("Cannot "+n);var ln=(e,t,n)=>(VE(e,t,"read from private field"),n?n.call(e):t.get(e)),YE=(e,t,n)=>t.has(e)?qE("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Lm=(e,t,n,i)=>(VE(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);function Zw(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>i[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"]'))i(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"&&i(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 i(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();function R0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dm={exports:{}},bo={};var $E;function Jw(){if($E)return bo;$E=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,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:i,key:u,ref:s!==void 0?s:null,props:l}}return bo.Fragment=t,bo.jsx=n,bo.jsxs=n,bo}var GE;function eN(){return GE||(GE=1,Dm.exports=Jw()),Dm.exports}var x=eN(),Im={exports:{}},Be={};var KE;function tN(){if(KE)return Be;KE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=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"),y=Symbol.iterator;function E(z){return z===null||typeof z!="object"?null:(z=y&&z[y]||z["@@iterator"],typeof z=="function"?z:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,A={};function k(z,Z,I){this.props=z,this.context=Z,this.refs=A,this.updater=I||v}k.prototype.isReactComponent={},k.prototype.setState=function(z,Z){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,Z,"setState")},k.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function N(){}N.prototype=k.prototype;function w(z,Z,I){this.props=z,this.context=Z,this.refs=A,this.updater=I||v}var D=w.prototype=new N;D.constructor=w,S(D,k.prototype),D.isPureReactComponent=!0;var F=Array.isArray;function O(){}var M={H:null,A:null,T:null,S:null},U=Object.prototype.hasOwnProperty;function $(z,Z,I){var me=I.ref;return{$$typeof:e,type:z,key:Z,ref:me!==void 0?me:null,props:I}}function H(z,Z){return $(z.type,Z,z.props)}function ee(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function X(z){var Z={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(I){return Z[I]})}var le=/\/+/g;function fe(z,Z){return typeof z=="object"&&z!==null&&z.key!=null?X(""+z.key):Z.toString(36)}function ie(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(O,O):(z.status="pending",z.then(function(Z){z.status==="pending"&&(z.status="fulfilled",z.value=Z)},function(Z){z.status==="pending"&&(z.status="rejected",z.reason=Z)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function B(z,Z,I,me,xe){var W=typeof z;(W==="undefined"||W==="boolean")&&(z=null);var ye=!1;if(z===null)ye=!0;else switch(W){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(z.$$typeof){case e:case t:ye=!0;break;case m:return ye=z._init,B(ye(z._payload),Z,I,me,xe)}}if(ye)return xe=xe(z),ye=me===""?"."+fe(z,0):me,F(xe)?(I="",ye!=null&&(I=ye.replace(le,"$&/")+"/"),B(xe,Z,I,"",function(Pe){return Pe})):xe!=null&&(ee(xe)&&(xe=H(xe,I+(xe.key==null||z&&z.key===xe.key?"":(""+xe.key).replace(le,"$&/")+"/")+ye)),Z.push(xe)),1;ye=0;var ge=me===""?".":me+":";if(F(z))for(var ve=0;ve<z.length;ve++)me=z[ve],W=ge+fe(me,ve),ye+=B(me,Z,I,W,xe);else if(ve=E(z),typeof ve=="function")for(z=ve.call(z),ve=0;!(me=z.next()).done;)me=me.value,W=ge+fe(me,ve++),ye+=B(me,Z,I,W,xe);else if(W==="object"){if(typeof z.then=="function")return B(ie(z),Z,I,me,xe);throw Z=String(z),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return ye}function K(z,Z,I){if(z==null)return z;var me=[],xe=0;return B(z,me,"","",function(W){return Z.call(I,W,xe++)}),me}function oe(z){if(z._status===-1){var Z=z._result;Z=Z(),Z.then(function(I){(z._status===0||z._status===-1)&&(z._status=1,z._result=I)},function(I){(z._status===0||z._status===-1)&&(z._status=2,z._result=I)}),z._status===-1&&(z._status=0,z._result=Z)}if(z._status===1)return z._result.default;throw z._result}var Te=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=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(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},L={map:K,forEach:function(z,Z,I){K(z,function(){Z.apply(this,arguments)},I)},count:function(z){var Z=0;return K(z,function(){Z++}),Z},toArray:function(z){return K(z,function(Z){return Z})||[]},only:function(z){if(!ee(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return Be.Activity=p,Be.Children=L,Be.Component=k,Be.Fragment=n,Be.Profiler=s,Be.PureComponent=w,Be.StrictMode=i,Be.Suspense=d,Be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Be.__COMPILER_RUNTIME={__proto__:null,c:function(z){return M.H.useMemoCache(z)}},Be.cache=function(z){return function(){return z.apply(null,arguments)}},Be.cacheSignal=function(){return null},Be.cloneElement=function(z,Z,I){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var me=S({},z.props),xe=z.key;if(Z!=null)for(W in Z.key!==void 0&&(xe=""+Z.key),Z)!U.call(Z,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&Z.ref===void 0||(me[W]=Z[W]);var W=arguments.length-2;if(W===1)me.children=I;else if(1<W){for(var ye=Array(W),ge=0;ge<W;ge++)ye[ge]=arguments[ge+2];me.children=ye}return $(z.type,xe,me)},Be.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},Be.createElement=function(z,Z,I){var me,xe={},W=null;if(Z!=null)for(me in Z.key!==void 0&&(W=""+Z.key),Z)U.call(Z,me)&&me!=="key"&&me!=="__self"&&me!=="__source"&&(xe[me]=Z[me]);var ye=arguments.length-2;if(ye===1)xe.children=I;else if(1<ye){for(var ge=Array(ye),ve=0;ve<ye;ve++)ge[ve]=arguments[ve+2];xe.children=ge}if(z&&z.defaultProps)for(me in ye=z.defaultProps,ye)xe[me]===void 0&&(xe[me]=ye[me]);return $(z,W,xe)},Be.createRef=function(){return{current:null}},Be.forwardRef=function(z){return{$$typeof:c,render:z}},Be.isValidElement=ee,Be.lazy=function(z){return{$$typeof:m,_payload:{_status:-1,_result:z},_init:oe}},Be.memo=function(z,Z){return{$$typeof:h,type:z,compare:Z===void 0?null:Z}},Be.startTransition=function(z){var Z=M.T,I={};M.T=I;try{var me=z(),xe=M.S;xe!==null&&xe(I,me),typeof me=="object"&&me!==null&&typeof me.then=="function"&&me.then(O,Te)}catch(W){Te(W)}finally{Z!==null&&I.types!==null&&(Z.types=I.types),M.T=Z}},Be.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Be.use=function(z){return M.H.use(z)},Be.useActionState=function(z,Z,I){return M.H.useActionState(z,Z,I)},Be.useCallback=function(z,Z){return M.H.useCallback(z,Z)},Be.useContext=function(z){return M.H.useContext(z)},Be.useDebugValue=function(){},Be.useDeferredValue=function(z,Z){return M.H.useDeferredValue(z,Z)},Be.useEffect=function(z,Z){return M.H.useEffect(z,Z)},Be.useEffectEvent=function(z){return M.H.useEffectEvent(z)},Be.useId=function(){return M.H.useId()},Be.useImperativeHandle=function(z,Z,I){return M.H.useImperativeHandle(z,Z,I)},Be.useInsertionEffect=function(z,Z){return M.H.useInsertionEffect(z,Z)},Be.useLayoutEffect=function(z,Z){return M.H.useLayoutEffect(z,Z)},Be.useMemo=function(z,Z){return M.H.useMemo(z,Z)},Be.useOptimistic=function(z,Z){return M.H.useOptimistic(z,Z)},Be.useReducer=function(z,Z,I){return M.H.useReducer(z,Z,I)},Be.useRef=function(z){return M.H.useRef(z)},Be.useState=function(z){return M.H.useState(z)},Be.useSyncExternalStore=function(z,Z,I){return M.H.useSyncExternalStore(z,Z,I)},Be.useTransition=function(){return M.H.useTransition()},Be.version="19.2.8",Be}var XE;function ru(){return XE||(XE=1,Im.exports=tN()),Im.exports}var C=ru();const pl=R0(C),iu=Zw({__proto__:null,default:pl},[C]);var Mm={exports:{}},yo={},Pm={exports:{}},Bm={};var QE;function nN(){return QE||(QE=1,(function(e){function t(B,K){var oe=B.length;B.push(K);e:for(;0<oe;){var Te=oe-1>>>1,L=B[Te];if(0<s(L,K))B[Te]=K,B[oe]=L,oe=Te;else break e}}function n(B){return B.length===0?null:B[0]}function i(B){if(B.length===0)return null;var K=B[0],oe=B.pop();if(oe!==K){B[0]=oe;e:for(var Te=0,L=B.length,z=L>>>1;Te<z;){var Z=2*(Te+1)-1,I=B[Z],me=Z+1,xe=B[me];if(0>s(I,oe))me<L&&0>s(xe,I)?(B[Te]=xe,B[me]=oe,Te=me):(B[Te]=I,B[Z]=oe,Te=Z);else if(me<L&&0>s(xe,oe))B[Te]=xe,B[me]=oe,Te=me;else break e}}return K}function s(B,K){var oe=B.sortIndex-K.sortIndex;return oe!==0?oe:B.id-K.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,y=3,E=!1,v=!1,S=!1,A=!1,k=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function D(B){for(var K=n(h);K!==null;){if(K.callback===null)i(h);else if(K.startTime<=B)i(h),K.sortIndex=K.expirationTime,t(d,K);else break;K=n(h)}}function F(B){if(S=!1,D(B),!v)if(n(d)!==null)v=!0,O||(O=!0,X());else{var K=n(h);K!==null&&ie(F,K.startTime-B)}}var O=!1,M=-1,U=5,$=-1;function H(){return A?!0:!(e.unstable_now()-$<U)}function ee(){if(A=!1,O){var B=e.unstable_now();$=B;var K=!0;try{e:{v=!1,S&&(S=!1,N(M),M=-1),E=!0;var oe=y;try{t:{for(D(B),p=n(d);p!==null&&!(p.expirationTime>B&&H());){var Te=p.callback;if(typeof Te=="function"){p.callback=null,y=p.priorityLevel;var L=Te(p.expirationTime<=B);if(B=e.unstable_now(),typeof L=="function"){p.callback=L,D(B),K=!0;break t}p===n(d)&&i(d),D(B)}else i(d);p=n(d)}if(p!==null)K=!0;else{var z=n(h);z!==null&&ie(F,z.startTime-B),K=!1}}break e}finally{p=null,y=oe,E=!1}K=void 0}}finally{K?X():O=!1}}}var X;if(typeof w=="function")X=function(){w(ee)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,fe=le.port2;le.port1.onmessage=ee,X=function(){fe.postMessage(null)}}else X=function(){k(ee,0)};function ie(B,K){M=k(function(){B(e.unstable_now())},K)}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"):U=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(B){switch(y){case 1:case 2:case 3:var K=3;break;default:K=y}var oe=y;y=K;try{return B()}finally{y=oe}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(B,K){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var oe=y;y=B;try{return K()}finally{y=oe}},e.unstable_scheduleCallback=function(B,K,oe){var Te=e.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?Te+oe:Te):oe=Te,B){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=oe+L,B={id:m++,callback:K,priorityLevel:B,startTime:oe,expirationTime:L,sortIndex:-1},oe>Te?(B.sortIndex=oe,t(h,B),n(d)===null&&B===n(h)&&(S?(N(M),M=-1):S=!0,ie(F,oe-Te))):(B.sortIndex=L,t(d,B),v||E||(v=!0,O||(O=!0,X()))),B},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(B){var K=y;return function(){var oe=y;y=K;try{return B.apply(this,arguments)}finally{y=oe}}}})(Bm)),Bm}var WE;function rN(){return WE||(WE=1,Pm.exports=nN()),Pm.exports}var jm={exports:{}},on={};var ZE;function iN(){if(ZE)return on;ZE=1;var e=ru();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 i={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 on.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,on.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)},on.flushSync=function(d){var h=u.T,m=i.p;try{if(u.T=null,i.p=2,d)return d()}finally{u.T=h,i.p=m,i.d.f()}},on.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(d,h))},on.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},on.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var m=h.as,p=c(m,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,E=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:y,fetchPriority:E}):m==="script"&&i.d.X(d,{crossOrigin:p,integrity:y,fetchPriority:E,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},on.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);i.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&&i.d.M(d)},on.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);i.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})}},on.preloadModule=function(d,h){if(typeof d=="string")if(h){var m=c(h.as,h.crossOrigin);i.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 i.d.m(d)},on.requestFormReset=function(d){i.d.r(d)},on.unstable_batchedUpdates=function(d,h){return d(h)},on.useFormState=function(d,h,m){return u.H.useFormState(d,h,m)},on.useFormStatus=function(){return u.H.useHostTransitionStatus()},on.version="19.2.8",on}var JE;function iv(){if(JE)return jm.exports;JE=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(),jm.exports=iN(),jm.exports}var ex;function aN(){if(ex)return yo;ex=1;var e=rN(),t=ru(),n=iv();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+r+"; visit "+a+" 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 a=r,o=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(o=a.return),r=a.return;while(r)}return a.tag===3?o:null}function u(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function c(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function d(r){if(l(r)!==r)throw Error(i(188))}function h(r){var a=r.alternate;if(!a){if(a=l(r),a===null)throw Error(i(188));return a!==r?null:r}for(var o=r,f=a;;){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),a;b=b.sibling}throw Error(i(188))}if(o.return!==f.return)o=g,f=b;else{for(var _=!1,R=g.child;R;){if(R===o){_=!0,o=g,f=b;break}if(R===f){_=!0,f=g,o=b;break}R=R.sibling}if(!_){for(R=b.child;R;){if(R===o){_=!0,o=b,f=g;break}if(R===f){_=!0,f=b,o=g;break}R=R.sibling}if(!_)throw Error(i(189))}}if(o.alternate!==f)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?r:a}function m(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=m(r),a!==null)return a;r=r.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),w=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function X(r){return r===null||typeof r!="object"?null:(r=ee&&r[ee]||r["@@iterator"],typeof r=="function"?r:null)}var le=Symbol.for("react.client.reference");function fe(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===le?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case S:return"Fragment";case k:return"Profiler";case A:return"StrictMode";case F:return"Suspense";case O:return"SuspenseList";case $: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 D:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case M:return a=r.displayName||null,a!==null?a:fe(r.type)||"Memo";case U:a=r._payload,r=r._init;try{return fe(r(a))}catch{}}return null}var ie=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},Te=[],L=-1;function z(r){return{current:r}}function Z(r){0>L||(r.current=Te[L],Te[L]=null,L--)}function I(r,a){L++,Te[L]=r.current,r.current=a}var me=z(null),xe=z(null),W=z(null),ye=z(null);function ge(r,a){switch(I(W,a),I(xe,r),I(me,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?dE(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=dE(a),r=hE(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}Z(me),I(me,r)}function ve(){Z(me),Z(xe),Z(W)}function Pe(r){r.memoizedState!==null&&I(ye,r);var a=me.current,o=hE(a,r.type);a!==o&&(I(xe,r),I(me,o))}function Le(r){xe.current===r&&(Z(me),Z(xe)),ye.current===r&&(Z(ye),ho._currentValue=oe)}var De,Ye;function rt(r){if(De===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);De=a&&a[1]||"",Ye=-1<o.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+De+r+Ye}var pt=!1;function ct(r,a){if(!r||pt)return"";pt=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(a){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(ae){var re=ae}Reflect.construct(r,[],he)}else{try{he.call()}catch(ae){re=ae}r.call(he.prototype)}}else{try{throw Error()}catch(ae){re=ae}(he=r())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(ae){if(ae&&re&&typeof ae.stack=="string")return[ae.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(),_=b[0],R=b[1];if(_&&R){var V=_.split(`
|
|
4
|
+
`),ne=R.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 ce=`
|
|
6
|
+
`+V[f].replace(" at new "," at ");return r.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",r.displayName)),ce}while(1<=f&&0<=g);break}}}finally{pt=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?rt(o):""}function Vt(r,a){switch(r.tag){case 26:case 27:case 5:return rt(r.type);case 16:return rt("Lazy");case 13:return r.child!==a&&a!==null?rt("Suspense Fallback"):rt("Suspense");case 19:return rt("SuspenseList");case 0:case 15:return ct(r.type,!1);case 11:return ct(r.type.render,!1);case 1:return ct(r.type,!0);case 31:return rt("Activity");default:return""}}function Ut(r){try{var a="",o=null;do a+=Vt(r,o),o=r,r=r.return;while(r);return a}catch(f){return`
|
|
7
|
+
Error generating stack: `+f.message+`
|
|
8
|
+
`+f.stack}}var xn=Object.prototype.hasOwnProperty,we=e.unstable_scheduleCallback,He=e.unstable_cancelCallback,At=e.unstable_shouldYield,Ze=e.unstable_requestPaint,Je=e.unstable_now,sn=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,Q=e.unstable_UserBlockingPriority,Se=e.unstable_NormalPriority,Ie=e.unstable_LowPriority,Fe=e.unstable_IdlePriority,Yt=e.log,Pr=e.unstable_setDisableYieldValue,dn=null,zt=null;function Tn(r){if(typeof Yt=="function"&&Pr(r),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(dn,r)}catch{}}var gt=Math.clz32?Math.clz32:jA,gi=Math.log,ar=Math.LN2;function jA(r){return r>>>=0,r===0?32:31-(gi(r)/ar|0)|0}var yu=256,Eu=262144,xu=4194304;function ca(r){var a=r&42;if(a!==0)return a;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 Tu(r,a,o){var f=r.pendingLanes;if(f===0)return 0;var g=0,b=r.suspendedLanes,_=r.pingedLanes;r=r.warmLanes;var R=f&134217727;return R!==0?(f=R&~b,f!==0?g=ca(f):(_&=R,_!==0?g=ca(_):o||(o=R&~r,o!==0&&(g=ca(o))))):(R=f&~b,R!==0?g=ca(R):_!==0?g=ca(_):o||(o=f&~r,o!==0&&(g=ca(o)))),g===0?0:a!==0&&a!==g&&(a&b)===0&&(b=g&-g,o=a&-a,b>=o||b===32&&(o&4194048)!==0)?a:g}function _l(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function HA(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 Gg(){var r=xu;return xu<<=1,(xu&62914560)===0&&(xu=4194304),r}function xd(r){for(var a=[],o=0;31>o;o++)a.push(r);return a}function Al(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function UA(r,a,o,f,g,b){var _=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 R=r.entanglements,V=r.expirationTimes,ne=r.hiddenUpdates;for(o=_&~o;0<o;){var ce=31-gt(o),he=1<<ce;R[ce]=0,V[ce]=-1;var re=ne[ce];if(re!==null)for(ne[ce]=null,ce=0;ce<re.length;ce++){var ae=re[ce];ae!==null&&(ae.lane&=-536870913)}o&=~he}f!==0&&Kg(r,f,0),b!==0&&g===0&&r.tag!==0&&(r.suspendedLanes|=b&~(_&~a))}function Kg(r,a,o){r.pendingLanes|=a,r.suspendedLanes&=~a;var f=31-gt(a);r.entangledLanes|=a,r.entanglements[f]=r.entanglements[f]|1073741824|o&261930}function Xg(r,a){var o=r.entangledLanes|=a;for(r=r.entanglements;o;){var f=31-gt(o),g=1<<f;g&a|r[f]&a&&(r[f]|=a),o&=~g}}function Qg(r,a){var o=a&-a;return o=(o&42)!==0?1:Td(o),(o&(r.suspendedLanes|a))!==0?0:o}function Td(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 vd(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Wg(){var r=K.p;return r!==0?r:(r=window.event,r===void 0?32:PE(r.type))}function Zg(r,a){var o=K.p;try{return K.p=r,a()}finally{K.p=o}}var bi=Math.random().toString(36).slice(2),Jt="__reactFiber$"+bi,vn="__reactProps$"+bi,ls="__reactContainer$"+bi,Sd="__reactEvents$"+bi,zA="__reactListeners$"+bi,FA="__reactHandles$"+bi,Jg="__reactResources$"+bi,kl="__reactMarker$"+bi;function Cd(r){delete r[Jt],delete r[vn],delete r[Sd],delete r[zA],delete r[FA]}function os(r){var a=r[Jt];if(a)return a;for(var o=r.parentNode;o;){if(a=o[ls]||o[Jt]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(r=xE(r);r!==null;){if(o=r[Jt])return o;r=xE(r)}return a}r=o,o=r.parentNode}return null}function us(r){if(r=r[Jt]||r[ls]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function wl(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function cs(r){var a=r[Jg];return a||(a=r[Jg]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function $t(r){r[kl]=!0}var e1=new Set,t1={};function fa(r,a){fs(r,a),fs(r+"Capture",a)}function fs(r,a){for(t1[r]=a,r=0;r<a.length;r++)e1.add(a[r])}var qA=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]*$"),n1={},r1={};function VA(r){return xn.call(r1,r)?!0:xn.call(n1,r)?!1:qA.test(r)?r1[r]=!0:(n1[r]=!0,!1)}function vu(r,a,o){if(VA(a))if(o===null)r.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var f=a.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+o)}}function Su(r,a,o){if(o===null)r.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+o)}}function Br(r,a,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(a,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 i1(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function YA(r,a,o){var f=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var g=f.get,b=f.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return g.call(this)},set:function(_){o=""+_,b.call(this,_)}}),Object.defineProperty(r,a,{enumerable:f.enumerable}),{getValue:function(){return o},setValue:function(_){o=""+_},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function _d(r){if(!r._valueTracker){var a=i1(r)?"checked":"value";r._valueTracker=YA(r,a,""+r[a])}}function a1(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var o=a.getValue(),f="";return r&&(f=i1(r)?r.checked?"true":"false":r.value),r=f,r!==o?(a.setValue(r),!0):!1}function Cu(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 $A=/[\n"\\]/g;function $n(r){return r.replace($A,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Ad(r,a,o,f,g,b,_,R){r.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?r.type=_:r.removeAttribute("type"),a!=null?_==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Yn(a)):r.value!==""+Yn(a)&&(r.value=""+Yn(a)):_!=="submit"&&_!=="reset"||r.removeAttribute("value"),a!=null?kd(r,_,Yn(a)):o!=null?kd(r,_,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"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?r.name=""+Yn(R):r.removeAttribute("name")}function s1(r,a,o,f,g,b,_,R){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(r.type=b),a!=null||o!=null){if(!(b!=="submit"&&b!=="reset"||a!=null)){_d(r);return}o=o!=null?""+Yn(o):"",a=a!=null?""+Yn(a):o,R||a===r.value||(r.value=a),r.defaultValue=a}f=f??g,f=typeof f!="function"&&typeof f!="symbol"&&!!f,r.checked=R?r.checked:!!f,r.defaultChecked=!!f,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(r.name=_),_d(r)}function kd(r,a,o){a==="number"&&Cu(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function ds(r,a,o,f){if(r=r.options,a){a={};for(var g=0;g<o.length;g++)a["$"+o[g]]=!0;for(o=0;o<r.length;o++)g=a.hasOwnProperty("$"+r[o].value),r[o].selected!==g&&(r[o].selected=g),g&&f&&(r[o].defaultSelected=!0)}else{for(o=""+Yn(o),a=null,g=0;g<r.length;g++){if(r[g].value===o){r[g].selected=!0,f&&(r[g].defaultSelected=!0);return}a!==null||r[g].disabled||(a=r[g])}a!==null&&(a.selected=!0)}}function l1(r,a,o){if(a!=null&&(a=""+Yn(a),a!==r.value&&(r.value=a),o==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=o!=null?""+Yn(o):""}function o1(r,a,o,f){if(a==null){if(f!=null){if(o!=null)throw Error(i(92));if(ie(f)){if(1<f.length)throw Error(i(93));f=f[0]}o=f}o==null&&(o=""),a=o}o=Yn(a),r.defaultValue=o,f=r.textContent,f===o&&f!==""&&f!==null&&(r.value=f),_d(r)}function hs(r,a){if(a){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=a;return}}r.textContent=a}var GA=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 u1(r,a,o){var f=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?f?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":f?r.setProperty(a,o):typeof o!="number"||o===0||GA.has(a)?a==="float"?r.cssFloat=o:r[a]=(""+o).trim():r[a]=o+"px"}function c1(r,a,o){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,o!=null){for(var f in o)!o.hasOwnProperty(f)||a!=null&&a.hasOwnProperty(f)||(f.indexOf("--")===0?r.setProperty(f,""):f==="float"?r.cssFloat="":r[f]="");for(var g in a)f=a[g],a.hasOwnProperty(g)&&o[g]!==f&&u1(r,g,f)}else for(var b in a)a.hasOwnProperty(b)&&u1(r,b,a[b])}function wd(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 KA=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"]]),XA=/^[\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 _u(r){return XA.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function jr(){}var Nd=null;function Rd(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ms=null,ps=null;function f1(r){var a=us(r);if(a&&(r=a.stateNode)){var o=r[vn]||null;e:switch(r=a.stateNode,a.type){case"input":if(Ad(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+$n(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var f=o[a];if(f!==r&&f.form===r.form){var g=f[vn]||null;if(!g)throw Error(i(90));Ad(f,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(a=0;a<o.length;a++)f=o[a],f.form===r.form&&a1(f)}break e;case"textarea":l1(r,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&ds(r,!!o.multiple,a,!1)}}}var Od=!1;function d1(r,a,o){if(Od)return r(a,o);Od=!0;try{var f=r(a);return f}finally{if(Od=!1,(ms!==null||ps!==null)&&(dc(),ms&&(a=ms,r=ps,ps=ms=null,f1(a),r)))for(a=0;a<r.length;a++)f1(r[a])}}function Nl(r,a){var o=r.stateNode;if(o===null)return null;var f=o[vn]||null;if(f===null)return null;o=f[a];e:switch(a){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(i(231,a,typeof o));return o}var Hr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ld=!1;if(Hr)try{var Rl={};Object.defineProperty(Rl,"passive",{get:function(){Ld=!0}}),window.addEventListener("test",Rl,Rl),window.removeEventListener("test",Rl,Rl)}catch{Ld=!1}var yi=null,Dd=null,Au=null;function h1(){if(Au)return Au;var r,a=Dd,o=a.length,f,g="value"in yi?yi.value:yi.textContent,b=g.length;for(r=0;r<o&&a[r]===g[r];r++);var _=o-r;for(f=1;f<=_&&a[o-f]===g[b-f];f++);return Au=g.slice(r,1<f?1-f:void 0)}function ku(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function wu(){return!0}function m1(){return!1}function Sn(r){function a(o,f,g,b,_){this._reactName=o,this._targetInst=g,this.type=f,this.nativeEvent=b,this.target=_,this.currentTarget=null;for(var R in r)r.hasOwnProperty(R)&&(o=r[R],this[R]=o?o(b):b[R]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?wu:m1,this.isPropagationStopped=m1,this}return p(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=wu)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=wu)},persist:function(){},isPersistent:wu}),a}var da={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nu=Sn(da),Ol=p({},da,{view:0,detail:0}),QA=Sn(Ol),Id,Md,Ll,Ru=p({},Ol,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bd,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!==Ll&&(Ll&&r.type==="mousemove"?(Id=r.screenX-Ll.screenX,Md=r.screenY-Ll.screenY):Md=Id=0,Ll=r),Id)},movementY:function(r){return"movementY"in r?r.movementY:Md}}),p1=Sn(Ru),WA=p({},Ru,{dataTransfer:0}),ZA=Sn(WA),JA=p({},Ol,{relatedTarget:0}),Pd=Sn(JA),ek=p({},da,{animationName:0,elapsedTime:0,pseudoElement:0}),tk=Sn(ek),nk=p({},da,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),rk=Sn(nk),ik=p({},da,{data:0}),g1=Sn(ik),ak={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sk={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"},lk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ok(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=lk[r])?!!a[r]:!1}function Bd(){return ok}var uk=p({},Ol,{key:function(r){if(r.key){var a=ak[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=ku(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?sk[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bd,charCode:function(r){return r.type==="keypress"?ku(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?ku(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),ck=Sn(uk),fk=p({},Ru,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),b1=Sn(fk),dk=p({},Ol,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bd}),hk=Sn(dk),mk=p({},da,{propertyName:0,elapsedTime:0,pseudoElement:0}),pk=Sn(mk),gk=p({},Ru,{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}),bk=Sn(gk),yk=p({},da,{newState:0,oldState:0}),Ek=Sn(yk),xk=[9,13,27,32],jd=Hr&&"CompositionEvent"in window,Dl=null;Hr&&"documentMode"in document&&(Dl=document.documentMode);var Tk=Hr&&"TextEvent"in window&&!Dl,y1=Hr&&(!jd||Dl&&8<Dl&&11>=Dl),E1=" ",x1=!1;function T1(r,a){switch(r){case"keyup":return xk.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function v1(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var gs=!1;function vk(r,a){switch(r){case"compositionend":return v1(a);case"keypress":return a.which!==32?null:(x1=!0,E1);case"textInput":return r=a.data,r===E1&&x1?null:r;default:return null}}function Sk(r,a){if(gs)return r==="compositionend"||!jd&&T1(r,a)?(r=h1(),Au=Dd=yi=null,gs=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return y1&&a.locale!=="ko"?null:a.data;default:return null}}var Ck={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 S1(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!Ck[r.type]:a==="textarea"}function C1(r,a,o,f){ms?ps?ps.push(f):ps=[f]:ms=f,a=Ec(a,"onChange"),0<a.length&&(o=new Nu("onChange","change",null,o,f),r.push({event:o,listeners:a}))}var Il=null,Ml=null;function _k(r){sE(r,0)}function Ou(r){var a=wl(r);if(a1(a))return r}function _1(r,a){if(r==="change")return a}var A1=!1;if(Hr){var Hd;if(Hr){var Ud="oninput"in document;if(!Ud){var k1=document.createElement("div");k1.setAttribute("oninput","return;"),Ud=typeof k1.oninput=="function"}Hd=Ud}else Hd=!1;A1=Hd&&(!document.documentMode||9<document.documentMode)}function w1(){Il&&(Il.detachEvent("onpropertychange",N1),Ml=Il=null)}function N1(r){if(r.propertyName==="value"&&Ou(Ml)){var a=[];C1(a,Ml,r,Rd(r)),d1(_k,a)}}function Ak(r,a,o){r==="focusin"?(w1(),Il=a,Ml=o,Il.attachEvent("onpropertychange",N1)):r==="focusout"&&w1()}function kk(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Ou(Ml)}function wk(r,a){if(r==="click")return Ou(a)}function Nk(r,a){if(r==="input"||r==="change")return Ou(a)}function Rk(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var In=typeof Object.is=="function"?Object.is:Rk;function Pl(r,a){if(In(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var o=Object.keys(r),f=Object.keys(a);if(o.length!==f.length)return!1;for(f=0;f<o.length;f++){var g=o[f];if(!xn.call(a,g)||!In(r[g],a[g]))return!1}return!0}function R1(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function O1(r,a){var o=R1(r);r=0;for(var f;o;){if(o.nodeType===3){if(f=r+o.textContent.length,r<=a&&f>=a)return{node:o,offset:a-r};r=f}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=R1(o)}}function L1(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?L1(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function D1(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=Cu(r.document);a instanceof r.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)r=a.contentWindow;else break;a=Cu(r.document)}return a}function zd(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var Ok=Hr&&"documentMode"in document&&11>=document.documentMode,bs=null,Fd=null,Bl=null,qd=!1;function I1(r,a,o){var f=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;qd||bs==null||bs!==Cu(f)||(f=bs,"selectionStart"in f&&zd(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}),Bl&&Pl(Bl,f)||(Bl=f,f=Ec(Fd,"onSelect"),0<f.length&&(a=new Nu("onSelect","select",null,a,o),r.push({event:a,listeners:f}),a.target=bs)))}function ha(r,a){var o={};return o[r.toLowerCase()]=a.toLowerCase(),o["Webkit"+r]="webkit"+a,o["Moz"+r]="moz"+a,o}var ys={animationend:ha("Animation","AnimationEnd"),animationiteration:ha("Animation","AnimationIteration"),animationstart:ha("Animation","AnimationStart"),transitionrun:ha("Transition","TransitionRun"),transitionstart:ha("Transition","TransitionStart"),transitioncancel:ha("Transition","TransitionCancel"),transitionend:ha("Transition","TransitionEnd")},Vd={},M1={};Hr&&(M1=document.createElement("div").style,"AnimationEvent"in window||(delete ys.animationend.animation,delete ys.animationiteration.animation,delete ys.animationstart.animation),"TransitionEvent"in window||delete ys.transitionend.transition);function ma(r){if(Vd[r])return Vd[r];if(!ys[r])return r;var a=ys[r],o;for(o in a)if(a.hasOwnProperty(o)&&o in M1)return Vd[r]=a[o];return r}var P1=ma("animationend"),B1=ma("animationiteration"),j1=ma("animationstart"),Lk=ma("transitionrun"),Dk=ma("transitionstart"),Ik=ma("transitioncancel"),H1=ma("transitionend"),U1=new Map,Yd="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(" ");Yd.push("scrollEnd");function sr(r,a){U1.set(r,a),fa(a,[r])}var Lu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Gn=[],Es=0,$d=0;function Du(){for(var r=Es,a=$d=Es=0;a<r;){var o=Gn[a];Gn[a++]=null;var f=Gn[a];Gn[a++]=null;var g=Gn[a];Gn[a++]=null;var b=Gn[a];if(Gn[a++]=null,f!==null&&g!==null){var _=f.pending;_===null?g.next=g:(g.next=_.next,_.next=g),f.pending=g}b!==0&&z1(o,g,b)}}function Iu(r,a,o,f){Gn[Es++]=r,Gn[Es++]=a,Gn[Es++]=o,Gn[Es++]=f,$d|=f,r.lanes|=f,r=r.alternate,r!==null&&(r.lanes|=f)}function Gd(r,a,o,f){return Iu(r,a,o,f),Mu(r)}function pa(r,a){return Iu(r,null,null,a),Mu(r)}function z1(r,a,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&&a!==null&&(g=31-gt(o),r=b.hiddenUpdates,f=r[g],f===null?r[g]=[a]:f.push(a),a.lane=o|536870912),b):null}function Mu(r){if(50<ao)throw ao=0,nm=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var xs={};function Mk(r,a,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=a,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,a,o,f){return new Mk(r,a,o,f)}function Kd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Ur(r,a){var o=r.alternate;return o===null?(o=Mn(r.tag,a,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=a,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,a=r.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o.refCleanup=r.refCleanup,o}function F1(r,a){r.flags&=65011714;var o=r.alternate;return o===null?(r.childLanes=0,r.lanes=a,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,a=o.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function Pu(r,a,o,f,g,b){var _=0;if(f=r,typeof r=="function")Kd(r)&&(_=1);else if(typeof r=="string")_=Uw(r,o,me.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case $:return r=Mn(31,o,a,g),r.elementType=$,r.lanes=b,r;case S:return ga(o.children,g,b,a);case A:_=8,g|=24;break;case k:return r=Mn(12,o,a,g|2),r.elementType=k,r.lanes=b,r;case F:return r=Mn(13,o,a,g),r.elementType=F,r.lanes=b,r;case O:return r=Mn(19,o,a,g),r.elementType=O,r.lanes=b,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case w:_=10;break e;case N:_=9;break e;case D:_=11;break e;case M:_=14;break e;case U:_=16,f=null;break e}_=29,o=Error(i(130,r===null?"null":typeof r,"")),f=null}return a=Mn(_,o,a,g),a.elementType=r,a.type=f,a.lanes=b,a}function ga(r,a,o,f){return r=Mn(7,r,f,a),r.lanes=o,r}function Xd(r,a,o){return r=Mn(6,r,null,a),r.lanes=o,r}function q1(r){var a=Mn(18,null,null,0);return a.stateNode=r,a}function Qd(r,a,o){return a=Mn(4,r.children!==null?r.children:[],r.key,a),a.lanes=o,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var V1=new WeakMap;function Kn(r,a){if(typeof r=="object"&&r!==null){var o=V1.get(r);return o!==void 0?o:(a={value:r,source:a,stack:Ut(a)},V1.set(r,a),a)}return{value:r,source:a,stack:Ut(a)}}var Ts=[],vs=0,Bu=null,jl=0,Xn=[],Qn=0,Ei=null,br=1,yr="";function zr(r,a){Ts[vs++]=jl,Ts[vs++]=Bu,Bu=r,jl=a}function Y1(r,a,o){Xn[Qn++]=br,Xn[Qn++]=yr,Xn[Qn++]=Ei,Ei=r;var f=br;r=yr;var g=32-gt(f)-1;f&=~(1<<g),o+=1;var b=32-gt(a)+g;if(30<b){var _=g-g%5;b=(f&(1<<_)-1).toString(32),f>>=_,g-=_,br=1<<32-gt(a)+g|o<<g|f,yr=b+r}else br=1<<b|o<<g|f,yr=r}function Wd(r){r.return!==null&&(zr(r,1),Y1(r,1,0))}function Zd(r){for(;r===Bu;)Bu=Ts[--vs],Ts[vs]=null,jl=Ts[--vs],Ts[vs]=null;for(;r===Ei;)Ei=Xn[--Qn],Xn[Qn]=null,yr=Xn[--Qn],Xn[Qn]=null,br=Xn[--Qn],Xn[Qn]=null}function $1(r,a){Xn[Qn++]=br,Xn[Qn++]=yr,Xn[Qn++]=Ei,br=a.id,yr=a.overflow,Ei=r}var en=null,xt=null,We=!1,xi=null,Wn=!1,Jd=Error(i(519));function Ti(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Hl(Kn(a,r)),Jd}function G1(r){var a=r.stateNode,o=r.type,f=r.memoizedProps;switch(a[Jt]=r,a[vn]=f,o){case"dialog":Ge("cancel",a),Ge("close",a);break;case"iframe":case"object":case"embed":Ge("load",a);break;case"video":case"audio":for(o=0;o<lo.length;o++)Ge(lo[o],a);break;case"source":Ge("error",a);break;case"img":case"image":case"link":Ge("error",a),Ge("load",a);break;case"details":Ge("toggle",a);break;case"input":Ge("invalid",a),s1(a,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0);break;case"select":Ge("invalid",a);break;case"textarea":Ge("invalid",a),o1(a,f.value,f.defaultValue,f.children)}o=f.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||f.suppressHydrationWarning===!0||cE(a.textContent,o)?(f.popover!=null&&(Ge("beforetoggle",a),Ge("toggle",a)),f.onScroll!=null&&Ge("scroll",a),f.onScrollEnd!=null&&Ge("scrollend",a),f.onClick!=null&&(a.onclick=jr),a=!0):a=!1,a||Ti(r,!0)}function K1(r){for(en=r.return;en;)switch(en.tag){case 5:case 31:case 13:Wn=!1;return;case 27:case 3:Wn=!0;return;default:en=en.return}}function Ss(r){if(r!==en)return!1;if(!We)return K1(r),We=!0,!1;var a=r.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||bm(r.type,r.memoizedProps)),o=!o),o&&xt&&Ti(r),K1(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));xt=EE(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));xt=EE(r)}else a===27?(a=xt,Mi(r.type)?(r=vm,vm=null,xt=r):xt=a):xt=en?Jn(r.stateNode.nextSibling):null;return!0}function ba(){xt=en=null,We=!1}function eh(){var r=xi;return r!==null&&(kn===null?kn=r:kn.push.apply(kn,r),xi=null),r}function Hl(r){xi===null?xi=[r]:xi.push(r)}var th=z(null),ya=null,Fr=null;function vi(r,a,o){I(th,a._currentValue),a._currentValue=o}function qr(r){r._currentValue=th.current,Z(th)}function nh(r,a,o){for(;r!==null;){var f=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,f!==null&&(f.childLanes|=a)):f!==null&&(f.childLanes&a)!==a&&(f.childLanes|=a),r===o)break;r=r.return}}function rh(r,a,o,f){var g=r.child;for(g!==null&&(g.return=r);g!==null;){var b=g.dependencies;if(b!==null){var _=g.child;b=b.firstContext;e:for(;b!==null;){var R=b;b=g;for(var V=0;V<a.length;V++)if(R.context===a[V]){b.lanes|=o,R=b.alternate,R!==null&&(R.lanes|=o),nh(b.return,o,r),f||(_=null);break e}b=R.next}}else if(g.tag===18){if(_=g.return,_===null)throw Error(i(341));_.lanes|=o,b=_.alternate,b!==null&&(b.lanes|=o),nh(_,o,r),_=null}else _=g.child;if(_!==null)_.return=g;else for(_=g;_!==null;){if(_===r){_=null;break}if(g=_.sibling,g!==null){g.return=_.return,_=g;break}_=_.return}g=_}}function Cs(r,a,o,f){r=null;for(var g=a,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 _=g.alternate;if(_===null)throw Error(i(387));if(_=_.memoizedProps,_!==null){var R=g.type;In(g.pendingProps.value,_.value)||(r!==null?r.push(R):r=[R])}}else if(g===ye.current){if(_=g.alternate,_===null)throw Error(i(387));_.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(r!==null?r.push(ho):r=[ho])}g=g.return}r!==null&&rh(a,r,o,f),a.flags|=262144}function ju(r){for(r=r.firstContext;r!==null;){if(!In(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Ea(r){ya=r,Fr=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function tn(r){return X1(ya,r)}function Hu(r,a){return ya===null&&Ea(r),X1(r,a)}function X1(r,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},Fr===null){if(r===null)throw Error(i(308));Fr=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else Fr=Fr.next=a;return o}var Pk=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(o,f){r.push(f)}};this.abort=function(){a.aborted=!0,r.forEach(function(o){return o()})}},Bk=e.unstable_scheduleCallback,jk=e.unstable_NormalPriority,It={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ih(){return{controller:new Pk,data:new Map,refCount:0}}function Ul(r){r.refCount--,r.refCount===0&&Bk(jk,function(){r.controller.abort()})}var zl=null,ah=0,_s=0,As=null;function Hk(r,a){if(zl===null){var o=zl=[];ah=0,_s=om(),As={status:"pending",value:void 0,then:function(f){o.push(f)}}}return ah++,a.then(Q1,Q1),a}function Q1(){if(--ah===0&&zl!==null){As!==null&&(As.status="fulfilled");var r=zl;zl=null,_s=0,As=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function Uk(r,a){var o=[],f={status:"pending",value:null,reason:null,then:function(g){o.push(g)}};return r.then(function(){f.status="fulfilled",f.value=a;for(var g=0;g<o.length;g++)(0,o[g])(a)},function(g){for(f.status="rejected",f.reason=g,g=0;g<o.length;g++)(0,o[g])(void 0)}),f}var W1=B.S;B.S=function(r,a){Iy=Je(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&Hk(r,a),W1!==null&&W1(r,a)};var xa=z(null);function sh(){var r=xa.current;return r!==null?r:bt.pooledCache}function Uu(r,a){a===null?I(xa,xa.current):I(xa,a.pool)}function Z1(){var r=sh();return r===null?null:{parent:It._currentValue,pool:r}}var ks=Error(i(460)),lh=Error(i(474)),zu=Error(i(542)),Fu={then:function(){}};function J1(r){return r=r.status,r==="fulfilled"||r==="rejected"}function eb(r,a,o){switch(o=r[o],o===void 0?r.push(a):o!==a&&(a.then(jr,jr),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,nb(r),r;default:if(typeof a.status=="string")a.then(jr,jr);else{if(r=bt,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(f){if(a.status==="pending"){var g=a;g.status="fulfilled",g.value=f}},function(f){if(a.status==="pending"){var g=a;g.status="rejected",g.reason=f}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,nb(r),r}throw va=a,ks}}function Ta(r){try{var a=r._init;return a(r._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(va=o,ks):o}}var va=null;function tb(){if(va===null)throw Error(i(459));var r=va;return va=null,r}function nb(r){if(r===ks||r===zu)throw Error(i(483))}var ws=null,Fl=0;function qu(r){var a=Fl;return Fl+=1,ws===null&&(ws=[]),eb(ws,r,a)}function ql(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function Vu(r,a){throw a.$$typeof===y?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function rb(r){function a(G,Y){if(r){var te=G.deletions;te===null?(G.deletions=[Y],G.flags|=16):te.push(Y)}}function o(G,Y){if(!r)return null;for(;Y!==null;)a(G,Y),Y=Y.sibling;return null}function f(G){for(var Y=new Map;G!==null;)G.key!==null?Y.set(G.key,G):Y.set(G.index,G),G=G.sibling;return Y}function g(G,Y){return G=Ur(G,Y),G.index=0,G.sibling=null,G}function b(G,Y,te){return G.index=te,r?(te=G.alternate,te!==null?(te=te.index,te<Y?(G.flags|=67108866,Y):te):(G.flags|=67108866,Y)):(G.flags|=1048576,Y)}function _(G){return r&&G.alternate===null&&(G.flags|=67108866),G}function R(G,Y,te,de){return Y===null||Y.tag!==6?(Y=Xd(te,G.mode,de),Y.return=G,Y):(Y=g(Y,te),Y.return=G,Y)}function V(G,Y,te,de){var Ne=te.type;return Ne===S?ce(G,Y,te.props.children,de,te.key):Y!==null&&(Y.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===U&&Ta(Ne)===Y.type)?(Y=g(Y,te.props),ql(Y,te),Y.return=G,Y):(Y=Pu(te.type,te.key,te.props,null,G.mode,de),ql(Y,te),Y.return=G,Y)}function ne(G,Y,te,de){return Y===null||Y.tag!==4||Y.stateNode.containerInfo!==te.containerInfo||Y.stateNode.implementation!==te.implementation?(Y=Qd(te,G.mode,de),Y.return=G,Y):(Y=g(Y,te.children||[]),Y.return=G,Y)}function ce(G,Y,te,de,Ne){return Y===null||Y.tag!==7?(Y=ga(te,G.mode,de,Ne),Y.return=G,Y):(Y=g(Y,te),Y.return=G,Y)}function he(G,Y,te){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Y=Xd(""+Y,G.mode,te),Y.return=G,Y;if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case E:return te=Pu(Y.type,Y.key,Y.props,null,G.mode,te),ql(te,Y),te.return=G,te;case v:return Y=Qd(Y,G.mode,te),Y.return=G,Y;case U:return Y=Ta(Y),he(G,Y,te)}if(ie(Y)||X(Y))return Y=ga(Y,G.mode,te,null),Y.return=G,Y;if(typeof Y.then=="function")return he(G,qu(Y),te);if(Y.$$typeof===w)return he(G,Hu(G,Y),te);Vu(G,Y)}return null}function re(G,Y,te,de){var Ne=Y!==null?Y.key:null;if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return Ne!==null?null:R(G,Y,""+te,de);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case E:return te.key===Ne?V(G,Y,te,de):null;case v:return te.key===Ne?ne(G,Y,te,de):null;case U:return te=Ta(te),re(G,Y,te,de)}if(ie(te)||X(te))return Ne!==null?null:ce(G,Y,te,de,null);if(typeof te.then=="function")return re(G,Y,qu(te),de);if(te.$$typeof===w)return re(G,Y,Hu(G,te),de);Vu(G,te)}return null}function ae(G,Y,te,de,Ne){if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return G=G.get(te)||null,R(Y,G,""+de,Ne);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case E:return G=G.get(de.key===null?te:de.key)||null,V(Y,G,de,Ne);case v:return G=G.get(de.key===null?te:de.key)||null,ne(Y,G,de,Ne);case U:return de=Ta(de),ae(G,Y,te,de,Ne)}if(ie(de)||X(de))return G=G.get(te)||null,ce(Y,G,de,Ne,null);if(typeof de.then=="function")return ae(G,Y,te,qu(de),Ne);if(de.$$typeof===w)return ae(G,Y,te,Hu(Y,de),Ne);Vu(Y,de)}return null}function Ae(G,Y,te,de){for(var Ne=null,it=null,ke=Y,Ue=Y=0,Qe=null;ke!==null&&Ue<te.length;Ue++){ke.index>Ue?(Qe=ke,ke=null):Qe=ke.sibling;var at=re(G,ke,te[Ue],de);if(at===null){ke===null&&(ke=Qe);break}r&&ke&&at.alternate===null&&a(G,ke),Y=b(at,Y,Ue),it===null?Ne=at:it.sibling=at,it=at,ke=Qe}if(Ue===te.length)return o(G,ke),We&&zr(G,Ue),Ne;if(ke===null){for(;Ue<te.length;Ue++)ke=he(G,te[Ue],de),ke!==null&&(Y=b(ke,Y,Ue),it===null?Ne=ke:it.sibling=ke,it=ke);return We&&zr(G,Ue),Ne}for(ke=f(ke);Ue<te.length;Ue++)Qe=ae(ke,G,Ue,te[Ue],de),Qe!==null&&(r&&Qe.alternate!==null&&ke.delete(Qe.key===null?Ue:Qe.key),Y=b(Qe,Y,Ue),it===null?Ne=Qe:it.sibling=Qe,it=Qe);return r&&ke.forEach(function(Ui){return a(G,Ui)}),We&&zr(G,Ue),Ne}function Oe(G,Y,te,de){if(te==null)throw Error(i(151));for(var Ne=null,it=null,ke=Y,Ue=Y=0,Qe=null,at=te.next();ke!==null&&!at.done;Ue++,at=te.next()){ke.index>Ue?(Qe=ke,ke=null):Qe=ke.sibling;var Ui=re(G,ke,at.value,de);if(Ui===null){ke===null&&(ke=Qe);break}r&&ke&&Ui.alternate===null&&a(G,ke),Y=b(Ui,Y,Ue),it===null?Ne=Ui:it.sibling=Ui,it=Ui,ke=Qe}if(at.done)return o(G,ke),We&&zr(G,Ue),Ne;if(ke===null){for(;!at.done;Ue++,at=te.next())at=he(G,at.value,de),at!==null&&(Y=b(at,Y,Ue),it===null?Ne=at:it.sibling=at,it=at);return We&&zr(G,Ue),Ne}for(ke=f(ke);!at.done;Ue++,at=te.next())at=ae(ke,G,Ue,at.value,de),at!==null&&(r&&at.alternate!==null&&ke.delete(at.key===null?Ue:at.key),Y=b(at,Y,Ue),it===null?Ne=at:it.sibling=at,it=at);return r&&ke.forEach(function(Ww){return a(G,Ww)}),We&&zr(G,Ue),Ne}function ht(G,Y,te,de){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 E:e:{for(var Ne=te.key;Y!==null;){if(Y.key===Ne){if(Ne=te.type,Ne===S){if(Y.tag===7){o(G,Y.sibling),de=g(Y,te.props.children),de.return=G,G=de;break e}}else if(Y.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===U&&Ta(Ne)===Y.type){o(G,Y.sibling),de=g(Y,te.props),ql(de,te),de.return=G,G=de;break e}o(G,Y);break}else a(G,Y);Y=Y.sibling}te.type===S?(de=ga(te.props.children,G.mode,de,te.key),de.return=G,G=de):(de=Pu(te.type,te.key,te.props,null,G.mode,de),ql(de,te),de.return=G,G=de)}return _(G);case v:e:{for(Ne=te.key;Y!==null;){if(Y.key===Ne)if(Y.tag===4&&Y.stateNode.containerInfo===te.containerInfo&&Y.stateNode.implementation===te.implementation){o(G,Y.sibling),de=g(Y,te.children||[]),de.return=G,G=de;break e}else{o(G,Y);break}else a(G,Y);Y=Y.sibling}de=Qd(te,G.mode,de),de.return=G,G=de}return _(G);case U:return te=Ta(te),ht(G,Y,te,de)}if(ie(te))return Ae(G,Y,te,de);if(X(te)){if(Ne=X(te),typeof Ne!="function")throw Error(i(150));return te=Ne.call(te),Oe(G,Y,te,de)}if(typeof te.then=="function")return ht(G,Y,qu(te),de);if(te.$$typeof===w)return ht(G,Y,Hu(G,te),de);Vu(G,te)}return typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint"?(te=""+te,Y!==null&&Y.tag===6?(o(G,Y.sibling),de=g(Y,te),de.return=G,G=de):(o(G,Y),de=Xd(te,G.mode,de),de.return=G,G=de),_(G)):o(G,Y)}return function(G,Y,te,de){try{Fl=0;var Ne=ht(G,Y,te,de);return ws=null,Ne}catch(ke){if(ke===ks||ke===zu)throw ke;var it=Mn(29,ke,null,G.mode);return it.lanes=de,it.return=G,it}}}var Sa=rb(!0),ib=rb(!1),Si=!1;function oh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function uh(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Ci(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function _i(r,a,o){var f=r.updateQueue;if(f===null)return null;if(f=f.shared,(st&2)!==0){var g=f.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),f.pending=a,a=Mu(r),z1(r,null,o),a}return Iu(r,f,a,o),Mu(r)}function Vl(r,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var f=a.lanes;f&=r.pendingLanes,o|=f,a.lanes=o,Xg(r,o)}}function ch(r,a){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 _={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};b===null?g=b=_:b=b.next=_,o=o.next}while(o!==null);b===null?g=b=a:b=b.next=a}else g=b=a;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=a:r.next=a,o.lastBaseUpdate=a}var fh=!1;function Yl(){if(fh){var r=As;if(r!==null)throw r}}function $l(r,a,o,f){fh=!1;var g=r.updateQueue;Si=!1;var b=g.firstBaseUpdate,_=g.lastBaseUpdate,R=g.shared.pending;if(R!==null){g.shared.pending=null;var V=R,ne=V.next;V.next=null,_===null?b=ne:_.next=ne,_=V;var ce=r.alternate;ce!==null&&(ce=ce.updateQueue,R=ce.lastBaseUpdate,R!==_&&(R===null?ce.firstBaseUpdate=ne:R.next=ne,ce.lastBaseUpdate=V))}if(b!==null){var he=g.baseState;_=0,ce=ne=V=null,R=b;do{var re=R.lane&-536870913,ae=re!==R.lane;if(ae?(Xe&re)===re:(f&re)===re){re!==0&&re===_s&&(fh=!0),ce!==null&&(ce=ce.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var Ae=r,Oe=R;re=a;var ht=o;switch(Oe.tag){case 1:if(Ae=Oe.payload,typeof Ae=="function"){he=Ae.call(ht,he,re);break e}he=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=Oe.payload,re=typeof Ae=="function"?Ae.call(ht,he,re):Ae,re==null)break e;he=p({},he,re);break e;case 2:Si=!0}}re=R.callback,re!==null&&(r.flags|=64,ae&&(r.flags|=8192),ae=g.callbacks,ae===null?g.callbacks=[re]:ae.push(re))}else ae={lane:re,tag:R.tag,payload:R.payload,callback:R.callback,next:null},ce===null?(ne=ce=ae,V=he):ce=ce.next=ae,_|=re;if(R=R.next,R===null){if(R=g.shared.pending,R===null)break;ae=R,R=ae.next,ae.next=null,g.lastBaseUpdate=ae,g.shared.pending=null}}while(!0);ce===null&&(V=he),g.baseState=V,g.firstBaseUpdate=ne,g.lastBaseUpdate=ce,b===null&&(g.shared.lanes=0),Ri|=_,r.lanes=_,r.memoizedState=he}}function ab(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function sb(r,a){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)ab(o[r],a)}var Ns=z(null),Yu=z(0);function lb(r,a){r=Zr,I(Yu,r),I(Ns,a),Zr=r|a.baseLanes}function dh(){I(Yu,Zr),I(Ns,Ns.current)}function hh(){Zr=Yu.current,Z(Ns),Z(Yu)}var Pn=z(null),Zn=null;function Ai(r){var a=r.alternate;I(Nt,Nt.current&1),I(Pn,r),Zn===null&&(a===null||Ns.current!==null||a.memoizedState!==null)&&(Zn=r)}function mh(r){I(Nt,Nt.current),I(Pn,r),Zn===null&&(Zn=r)}function ob(r){r.tag===22?(I(Nt,Nt.current),I(Pn,r),Zn===null&&(Zn=r)):ki()}function ki(){I(Nt,Nt.current),I(Pn,Pn.current)}function Bn(r){Z(Pn),Zn===r&&(Zn=null),Z(Nt)}var Nt=z(0);function $u(r){for(var a=r;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||xm(o)||Tm(o)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Vr=0,je=null,ft=null,Mt=null,Gu=!1,Rs=!1,Ca=!1,Ku=0,Gl=0,Os=null,zk=0;function kt(){throw Error(i(321))}function ph(r,a){if(a===null)return!1;for(var o=0;o<a.length&&o<r.length;o++)if(!In(r[o],a[o]))return!1;return!0}function gh(r,a,o,f,g,b){return Vr=b,je=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,B.H=r===null||r.memoizedState===null?Yb:Oh,Ca=!1,b=o(f,g),Ca=!1,Rs&&(b=cb(a,o,f,g)),ub(r),b}function ub(r){B.H=Ql;var a=ft!==null&&ft.next!==null;if(Vr=0,Mt=ft=je=null,Gu=!1,Gl=0,Os=null,a)throw Error(i(300));r===null||Pt||(r=r.dependencies,r!==null&&ju(r)&&(Pt=!0))}function cb(r,a,o,f){je=r;var g=0;do{if(Rs&&(Os=null),Gl=0,Rs=!1,25<=g)throw Error(i(301));if(g+=1,Mt=ft=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=$b,b=a(o,f)}while(Rs);return b}function Fk(){var r=B.H,a=r.useState()[0];return a=typeof a.then=="function"?Kl(a):a,r=r.useState()[0],(ft!==null?ft.memoizedState:null)!==r&&(je.flags|=1024),a}function bh(){var r=Ku!==0;return Ku=0,r}function yh(r,a,o){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~o}function Eh(r){if(Gu){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Gu=!1}Vr=0,Mt=ft=je=null,Rs=!1,Gl=Ku=0,Os=null}function hn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?je.memoizedState=Mt=r:Mt=Mt.next=r,Mt}function Rt(){if(ft===null){var r=je.alternate;r=r!==null?r.memoizedState:null}else r=ft.next;var a=Mt===null?je.memoizedState:Mt.next;if(a!==null)Mt=a,ft=r;else{if(r===null)throw je.alternate===null?Error(i(467)):Error(i(310));ft=r,r={memoizedState:ft.memoizedState,baseState:ft.baseState,baseQueue:ft.baseQueue,queue:ft.queue,next:null},Mt===null?je.memoizedState=Mt=r:Mt=Mt.next=r}return Mt}function Xu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kl(r){var a=Gl;return Gl+=1,Os===null&&(Os=[]),r=eb(Os,r,a),a=je,(Mt===null?a.memoizedState:Mt.next)===null&&(a=a.alternate,B.H=a===null||a.memoizedState===null?Yb:Oh),r}function Qu(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Kl(r);if(r.$$typeof===w)return tn(r)}throw Error(i(438,String(r)))}function xh(r){var a=null,o=je.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var f=je.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(a={data:f.data.map(function(g){return g.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=Xu(),je.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(r),f=0;f<r;f++)o[f]=H;return a.index++,o}function Yr(r,a){return typeof a=="function"?a(r):a}function Wu(r){var a=Rt();return Th(a,ft,r)}function Th(r,a,o){var f=r.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=o;var g=r.baseQueue,b=f.pending;if(b!==null){if(g!==null){var _=g.next;g.next=b.next,b.next=_}a.baseQueue=g=b,f.pending=null}if(b=r.baseState,g===null)r.memoizedState=b;else{a=g.next;var R=_=null,V=null,ne=a,ce=!1;do{var he=ne.lane&-536870913;if(he!==ne.lane?(Xe&he)===he:(Vr&he)===he){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}),he===_s&&(ce=!0);else if((Vr&re)===re){ne=ne.next,re===_s&&(ce=!0);continue}else he={lane:0,revertLane:ne.revertLane,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},V===null?(R=V=he,_=b):V=V.next=he,je.lanes|=re,Ri|=re;he=ne.action,Ca&&o(b,he),b=ne.hasEagerState?ne.eagerState:o(b,he)}else re={lane:he,revertLane:ne.revertLane,gesture:ne.gesture,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},V===null?(R=V=re,_=b):V=V.next=re,je.lanes|=he,Ri|=he;ne=ne.next}while(ne!==null&&ne!==a);if(V===null?_=b:V.next=R,!In(b,r.memoizedState)&&(Pt=!0,ce&&(o=As,o!==null)))throw o;r.memoizedState=b,r.baseState=_,r.baseQueue=V,f.lastRenderedState=b}return g===null&&(f.lanes=0),[r.memoizedState,f.dispatch]}function vh(r){var a=Rt(),o=a.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=r;var f=o.dispatch,g=o.pending,b=a.memoizedState;if(g!==null){o.pending=null;var _=g=g.next;do b=r(b,_.action),_=_.next;while(_!==g);In(b,a.memoizedState)||(Pt=!0),a.memoizedState=b,a.baseQueue===null&&(a.baseState=b),o.lastRenderedState=b}return[b,f]}function fb(r,a,o){var f=je,g=Rt(),b=We;if(b){if(o===void 0)throw Error(i(407));o=o()}else o=a();var _=!In((ft||g).memoizedState,o);if(_&&(g.memoizedState=o,Pt=!0),g=g.queue,_h(mb.bind(null,f,g,r),[r]),g.getSnapshot!==a||_||Mt!==null&&Mt.memoizedState.tag&1){if(f.flags|=2048,Ls(9,{destroy:void 0},hb.bind(null,f,g,o,a),null),bt===null)throw Error(i(349));b||(Vr&127)!==0||db(f,a,o)}return o}function db(r,a,o){r.flags|=16384,r={getSnapshot:a,value:o},a=je.updateQueue,a===null?(a=Xu(),je.updateQueue=a,a.stores=[r]):(o=a.stores,o===null?a.stores=[r]:o.push(r))}function hb(r,a,o,f){a.value=o,a.getSnapshot=f,pb(a)&&gb(r)}function mb(r,a,o){return o(function(){pb(a)&&gb(r)})}function pb(r){var a=r.getSnapshot;r=r.value;try{var o=a();return!In(r,o)}catch{return!0}}function gb(r){var a=pa(r,2);a!==null&&wn(a,r,2)}function Sh(r){var a=hn();if(typeof r=="function"){var o=r;if(r=o(),Ca){Tn(!0);try{o()}finally{Tn(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yr,lastRenderedState:r},a}function bb(r,a,o,f){return r.baseState=o,Th(r,ft,typeof f=="function"?f:Yr)}function qk(r,a,o,f,g){if(ec(r))throw Error(i(485));if(r=a.action,r!==null){var b={payload:g,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){b.listeners.push(_)}};B.T!==null?o(!0):b.isTransition=!1,f(b),o=a.pending,o===null?(b.next=a.pending=b,yb(a,b)):(b.next=o.next,a.pending=o.next=b)}}function yb(r,a){var o=a.action,f=a.payload,g=r.state;if(a.isTransition){var b=B.T,_={};B.T=_;try{var R=o(g,f),V=B.S;V!==null&&V(_,R),Eb(r,a,R)}catch(ne){Ch(r,a,ne)}finally{b!==null&&_.types!==null&&(b.types=_.types),B.T=b}}else try{b=o(g,f),Eb(r,a,b)}catch(ne){Ch(r,a,ne)}}function Eb(r,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(f){xb(r,a,f)},function(f){return Ch(r,a,f)}):xb(r,a,o)}function xb(r,a,o){a.status="fulfilled",a.value=o,Tb(a),r.state=o,a=r.pending,a!==null&&(o=a.next,o===a?r.pending=null:(o=o.next,a.next=o,yb(r,o)))}function Ch(r,a,o){var f=r.pending;if(r.pending=null,f!==null){f=f.next;do a.status="rejected",a.reason=o,Tb(a),a=a.next;while(a!==f)}r.action=null}function Tb(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function vb(r,a){return a}function Sb(r,a){if(We){var o=bt.formState;if(o!==null){e:{var f=je;if(We){if(xt){t:{for(var g=xt,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){xt=Jn(g.nextSibling),f=g.data==="F!";break e}}Ti(f)}f=!1}f&&(a=o[0])}}return o=hn(),o.memoizedState=o.baseState=a,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vb,lastRenderedState:a},o.queue=f,o=Fb.bind(null,je,f),f.dispatch=o,f=Sh(!1),b=Rh.bind(null,je,!1,f.queue),f=hn(),g={state:a,dispatch:null,action:r,pending:null},f.queue=g,o=qk.bind(null,je,g,b,o),g.dispatch=o,f.memoizedState=r,[a,o,!1]}function Cb(r){var a=Rt();return _b(a,ft,r)}function _b(r,a,o){if(a=Th(r,a,vb)[0],r=Wu(Yr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var f=Kl(a)}catch(_){throw _===ks?zu:_}else f=a;a=Rt();var g=a.queue,b=g.dispatch;return o!==a.memoizedState&&(je.flags|=2048,Ls(9,{destroy:void 0},Vk.bind(null,g,o),null)),[f,b,r]}function Vk(r,a){r.action=a}function Ab(r){var a=Rt(),o=ft;if(o!==null)return _b(a,o,r);Rt(),a=a.memoizedState,o=Rt();var f=o.queue.dispatch;return o.memoizedState=r,[a,f,!1]}function Ls(r,a,o,f){return r={tag:r,create:o,deps:f,inst:a,next:null},a=je.updateQueue,a===null&&(a=Xu(),je.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=r.next=r:(f=o.next,o.next=r,r.next=f,a.lastEffect=r),r}function kb(){return Rt().memoizedState}function Zu(r,a,o,f){var g=hn();je.flags|=r,g.memoizedState=Ls(1|a,{destroy:void 0},o,f===void 0?null:f)}function Ju(r,a,o,f){var g=Rt();f=f===void 0?null:f;var b=g.memoizedState.inst;ft!==null&&f!==null&&ph(f,ft.memoizedState.deps)?g.memoizedState=Ls(a,b,o,f):(je.flags|=r,g.memoizedState=Ls(1|a,b,o,f))}function wb(r,a){Zu(8390656,8,r,a)}function _h(r,a){Ju(2048,8,r,a)}function Yk(r){je.flags|=4;var a=je.updateQueue;if(a===null)a=Xu(),je.updateQueue=a,a.events=[r];else{var o=a.events;o===null?a.events=[r]:o.push(r)}}function Nb(r){var a=Rt().memoizedState;return Yk({ref:a,nextImpl:r}),function(){if((st&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function Rb(r,a){return Ju(4,2,r,a)}function Ob(r,a){return Ju(4,4,r,a)}function Lb(r,a){if(typeof a=="function"){r=r();var o=a(r);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function Db(r,a,o){o=o!=null?o.concat([r]):null,Ju(4,4,Lb.bind(null,a,r),o)}function Ah(){}function Ib(r,a){var o=Rt();a=a===void 0?null:a;var f=o.memoizedState;return a!==null&&ph(a,f[1])?f[0]:(o.memoizedState=[r,a],r)}function Mb(r,a){var o=Rt();a=a===void 0?null:a;var f=o.memoizedState;if(a!==null&&ph(a,f[1]))return f[0];if(f=r(),Ca){Tn(!0);try{r()}finally{Tn(!1)}}return o.memoizedState=[f,a],f}function kh(r,a,o){return o===void 0||(Vr&1073741824)!==0&&(Xe&261930)===0?r.memoizedState=a:(r.memoizedState=o,r=Py(),je.lanes|=r,Ri|=r,o)}function Pb(r,a,o,f){return In(o,a)?o:Ns.current!==null?(r=kh(r,o,f),In(r,a)||(Pt=!0),r):(Vr&42)===0||(Vr&1073741824)!==0&&(Xe&261930)===0?(Pt=!0,r.memoizedState=o):(r=Py(),je.lanes|=r,Ri|=r,a)}function Bb(r,a,o,f,g){var b=K.p;K.p=b!==0&&8>b?b:8;var _=B.T,R={};B.T=R,Rh(r,!1,a,o);try{var V=g(),ne=B.S;if(ne!==null&&ne(R,V),V!==null&&typeof V=="object"&&typeof V.then=="function"){var ce=Uk(V,f);Xl(r,a,ce,Un(r))}else Xl(r,a,f,Un(r))}catch(he){Xl(r,a,{then:function(){},status:"rejected",reason:he},Un())}finally{K.p=b,_!==null&&R.types!==null&&(_.types=R.types),B.T=_}}function $k(){}function wh(r,a,o,f){if(r.tag!==5)throw Error(i(476));var g=jb(r).queue;Bb(r,g,a,oe,o===null?$k:function(){return Hb(r),o(f)})}function jb(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yr,lastRenderedState:oe},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yr,lastRenderedState:o},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function Hb(r){var a=jb(r);a.next===null&&(a=r.alternate.memoizedState),Xl(r,a.next.queue,{},Un())}function Nh(){return tn(ho)}function Ub(){return Rt().memoizedState}function zb(){return Rt().memoizedState}function Gk(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var o=Un();r=Ci(o);var f=_i(a,r,o);f!==null&&(wn(f,a,o),Vl(f,a,o)),a={cache:ih()},r.payload=a;return}a=a.return}}function Kk(r,a,o){var f=Un();o={lane:f,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},ec(r)?qb(a,o):(o=Gd(r,a,o,f),o!==null&&(wn(o,r,f),Vb(o,a,f)))}function Fb(r,a,o){var f=Un();Xl(r,a,o,f)}function Xl(r,a,o,f){var g={lane:f,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(ec(r))qb(a,g);else{var b=r.alternate;if(r.lanes===0&&(b===null||b.lanes===0)&&(b=a.lastRenderedReducer,b!==null))try{var _=a.lastRenderedState,R=b(_,o);if(g.hasEagerState=!0,g.eagerState=R,In(R,_))return Iu(r,a,g,0),bt===null&&Du(),!1}catch{}if(o=Gd(r,a,g,f),o!==null)return wn(o,r,f),Vb(o,a,f),!0}return!1}function Rh(r,a,o,f){if(f={lane:2,revertLane:om(),gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},ec(r)){if(a)throw Error(i(479))}else a=Gd(r,o,f,2),a!==null&&wn(a,r,2)}function ec(r){var a=r.alternate;return r===je||a!==null&&a===je}function qb(r,a){Rs=Gu=!0;var o=r.pending;o===null?a.next=a:(a.next=o.next,o.next=a),r.pending=a}function Vb(r,a,o){if((o&4194048)!==0){var f=a.lanes;f&=r.pendingLanes,o|=f,a.lanes=o,Xg(r,o)}}var Ql={readContext:tn,use:Qu,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useLayoutEffect:kt,useInsertionEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useSyncExternalStore:kt,useId:kt,useHostTransitionStatus:kt,useFormState:kt,useActionState:kt,useOptimistic:kt,useMemoCache:kt,useCacheRefresh:kt};Ql.useEffectEvent=kt;var Yb={readContext:tn,use:Qu,useCallback:function(r,a){return hn().memoizedState=[r,a===void 0?null:a],r},useContext:tn,useEffect:wb,useImperativeHandle:function(r,a,o){o=o!=null?o.concat([r]):null,Zu(4194308,4,Lb.bind(null,a,r),o)},useLayoutEffect:function(r,a){return Zu(4194308,4,r,a)},useInsertionEffect:function(r,a){Zu(4,2,r,a)},useMemo:function(r,a){var o=hn();a=a===void 0?null:a;var f=r();if(Ca){Tn(!0);try{r()}finally{Tn(!1)}}return o.memoizedState=[f,a],f},useReducer:function(r,a,o){var f=hn();if(o!==void 0){var g=o(a);if(Ca){Tn(!0);try{o(a)}finally{Tn(!1)}}}else g=a;return f.memoizedState=f.baseState=g,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:g},f.queue=r,r=r.dispatch=Kk.bind(null,je,r),[f.memoizedState,r]},useRef:function(r){var a=hn();return r={current:r},a.memoizedState=r},useState:function(r){r=Sh(r);var a=r.queue,o=Fb.bind(null,je,a);return a.dispatch=o,[r.memoizedState,o]},useDebugValue:Ah,useDeferredValue:function(r,a){var o=hn();return kh(o,r,a)},useTransition:function(){var r=Sh(!1);return r=Bb.bind(null,je,r.queue,!0,!1),hn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,o){var f=je,g=hn();if(We){if(o===void 0)throw Error(i(407));o=o()}else{if(o=a(),bt===null)throw Error(i(349));(Xe&127)!==0||db(f,a,o)}g.memoizedState=o;var b={value:o,getSnapshot:a};return g.queue=b,wb(mb.bind(null,f,b,r),[r]),f.flags|=2048,Ls(9,{destroy:void 0},hb.bind(null,f,b,o,a),null),o},useId:function(){var r=hn(),a=bt.identifierPrefix;if(We){var o=yr,f=br;o=(f&~(1<<32-gt(f)-1)).toString(32)+o,a="_"+a+"R_"+o,o=Ku++,0<o&&(a+="H"+o.toString(32)),a+="_"}else o=zk++,a="_"+a+"r_"+o.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:Nh,useFormState:Sb,useActionState:Sb,useOptimistic:function(r){var a=hn();a.memoizedState=a.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=Rh.bind(null,je,!0,o),o.dispatch=a,[r,a]},useMemoCache:xh,useCacheRefresh:function(){return hn().memoizedState=Gk.bind(null,je)},useEffectEvent:function(r){var a=hn(),o={impl:r};return a.memoizedState=o,function(){if((st&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}},Oh={readContext:tn,use:Qu,useCallback:Ib,useContext:tn,useEffect:_h,useImperativeHandle:Db,useInsertionEffect:Rb,useLayoutEffect:Ob,useMemo:Mb,useReducer:Wu,useRef:kb,useState:function(){return Wu(Yr)},useDebugValue:Ah,useDeferredValue:function(r,a){var o=Rt();return Pb(o,ft.memoizedState,r,a)},useTransition:function(){var r=Wu(Yr)[0],a=Rt().memoizedState;return[typeof r=="boolean"?r:Kl(r),a]},useSyncExternalStore:fb,useId:Ub,useHostTransitionStatus:Nh,useFormState:Cb,useActionState:Cb,useOptimistic:function(r,a){var o=Rt();return bb(o,ft,r,a)},useMemoCache:xh,useCacheRefresh:zb};Oh.useEffectEvent=Nb;var $b={readContext:tn,use:Qu,useCallback:Ib,useContext:tn,useEffect:_h,useImperativeHandle:Db,useInsertionEffect:Rb,useLayoutEffect:Ob,useMemo:Mb,useReducer:vh,useRef:kb,useState:function(){return vh(Yr)},useDebugValue:Ah,useDeferredValue:function(r,a){var o=Rt();return ft===null?kh(o,r,a):Pb(o,ft.memoizedState,r,a)},useTransition:function(){var r=vh(Yr)[0],a=Rt().memoizedState;return[typeof r=="boolean"?r:Kl(r),a]},useSyncExternalStore:fb,useId:Ub,useHostTransitionStatus:Nh,useFormState:Ab,useActionState:Ab,useOptimistic:function(r,a){var o=Rt();return ft!==null?bb(o,ft,r,a):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:xh,useCacheRefresh:zb};$b.useEffectEvent=Nb;function Lh(r,a,o,f){a=r.memoizedState,o=o(f,a),o=o==null?a:p({},a,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var Dh={enqueueSetState:function(r,a,o){r=r._reactInternals;var f=Un(),g=Ci(f);g.payload=a,o!=null&&(g.callback=o),a=_i(r,g,f),a!==null&&(wn(a,r,f),Vl(a,r,f))},enqueueReplaceState:function(r,a,o){r=r._reactInternals;var f=Un(),g=Ci(f);g.tag=1,g.payload=a,o!=null&&(g.callback=o),a=_i(r,g,f),a!==null&&(wn(a,r,f),Vl(a,r,f))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var o=Un(),f=Ci(o);f.tag=2,a!=null&&(f.callback=a),a=_i(r,f,o),a!==null&&(wn(a,r,o),Vl(a,r,o))}};function Gb(r,a,o,f,g,b,_){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(f,b,_):a.prototype&&a.prototype.isPureReactComponent?!Pl(o,f)||!Pl(g,b):!0}function Kb(r,a,o,f){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,f),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,f),a.state!==r&&Dh.enqueueReplaceState(a,a.state,null)}function _a(r,a){var o=a;if("ref"in a){o={};for(var f in a)f!=="ref"&&(o[f]=a[f])}if(r=r.defaultProps){o===a&&(o=p({},o));for(var g in r)o[g]===void 0&&(o[g]=r[g])}return o}function Xb(r){Lu(r)}function Qb(r){console.error(r)}function Wb(r){Lu(r)}function tc(r,a){try{var o=r.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(f){setTimeout(function(){throw f})}}function Zb(r,a,o){try{var f=r.onCaughtError;f(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Ih(r,a,o){return o=Ci(o),o.tag=3,o.payload={element:null},o.callback=function(){tc(r,a)},o}function Jb(r){return r=Ci(r),r.tag=3,r}function ey(r,a,o,f){var g=o.type.getDerivedStateFromError;if(typeof g=="function"){var b=f.value;r.payload=function(){return g(b)},r.callback=function(){Zb(a,o,f)}}var _=o.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(r.callback=function(){Zb(a,o,f),typeof g!="function"&&(Oi===null?Oi=new Set([this]):Oi.add(this));var R=f.stack;this.componentDidCatch(f.value,{componentStack:R!==null?R:""})})}function Xk(r,a,o,f,g){if(o.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(a=o.alternate,a!==null&&Cs(a,o,g,!0),o=Pn.current,o!==null){switch(o.tag){case 31:case 13:return Zn===null?hc():o.alternate===null&&wt===0&&(wt=3),o.flags&=-257,o.flags|=65536,o.lanes=g,f===Fu?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([f]):a.add(f),am(r,f,g)),!1;case 22:return o.flags|=65536,f===Fu?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([f])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([f]):o.add(f)),am(r,f,g)),!1}throw Error(i(435,o.tag))}return am(r,f,g),hc(),!1}if(We)return a=Pn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=g,f!==Jd&&(r=Error(i(422),{cause:f}),Hl(Kn(r,o)))):(f!==Jd&&(a=Error(i(423),{cause:f}),Hl(Kn(a,o))),r=r.current.alternate,r.flags|=65536,g&=-g,r.lanes|=g,f=Kn(f,o),g=Ih(r.stateNode,f,g),ch(r,g),wt!==4&&(wt=2)),!1;var b=Error(i(520),{cause:f});if(b=Kn(b,o),io===null?io=[b]:io.push(b),wt!==4&&(wt=2),a===null)return!0;f=Kn(f,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,r=g&-g,o.lanes|=r,r=Ih(o.stateNode,f,r),ch(o,r),!1;case 1:if(a=o.type,b=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Oi===null||!Oi.has(b))))return o.flags|=65536,g&=-g,o.lanes|=g,g=Jb(g),ey(g,r,o,f),ch(o,g),!1}o=o.return}while(o!==null);return!1}var Mh=Error(i(461)),Pt=!1;function nn(r,a,o,f){a.child=r===null?ib(a,null,o,f):Sa(a,r.child,o,f)}function ty(r,a,o,f,g){o=o.render;var b=a.ref;if("ref"in f){var _={};for(var R in f)R!=="ref"&&(_[R]=f[R])}else _=f;return Ea(a),f=gh(r,a,o,_,b,g),R=bh(),r!==null&&!Pt?(yh(r,a,g),$r(r,a,g)):(We&&R&&Wd(a),a.flags|=1,nn(r,a,f,g),a.child)}function ny(r,a,o,f,g){if(r===null){var b=o.type;return typeof b=="function"&&!Kd(b)&&b.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=b,ry(r,a,b,f,g)):(r=Pu(o.type,null,f,a,a.mode,g),r.ref=a.ref,r.return=a,a.child=r)}if(b=r.child,!qh(r,g)){var _=b.memoizedProps;if(o=o.compare,o=o!==null?o:Pl,o(_,f)&&r.ref===a.ref)return $r(r,a,g)}return a.flags|=1,r=Ur(b,f),r.ref=a.ref,r.return=a,a.child=r}function ry(r,a,o,f,g){if(r!==null){var b=r.memoizedProps;if(Pl(b,f)&&r.ref===a.ref)if(Pt=!1,a.pendingProps=f=b,qh(r,g))(r.flags&131072)!==0&&(Pt=!0);else return a.lanes=r.lanes,$r(r,a,g)}return Ph(r,a,o,f,g)}function iy(r,a,o,f){var g=f.children,b=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.mode==="hidden"){if((a.flags&128)!==0){if(b=b!==null?b.baseLanes|o:o,r!==null){for(f=a.child=r.child,g=0;f!==null;)g=g|f.lanes|f.childLanes,f=f.sibling;f=g&~b}else f=0,a.child=null;return ay(r,a,b,o,f)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&Uu(a,b!==null?b.cachePool:null),b!==null?lb(a,b):dh(),ob(a);else return f=a.lanes=536870912,ay(r,a,b!==null?b.baseLanes|o:o,o,f)}else b!==null?(Uu(a,b.cachePool),lb(a,b),ki(),a.memoizedState=null):(r!==null&&Uu(a,null),dh(),ki());return nn(r,a,g,o),a.child}function Wl(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function ay(r,a,o,f,g){var b=sh();return b=b===null?null:{parent:It._currentValue,pool:b},a.memoizedState={baseLanes:o,cachePool:b},r!==null&&Uu(a,null),dh(),ob(a),r!==null&&Cs(r,a,f,!0),a.childLanes=g,null}function nc(r,a){return a=ic({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function sy(r,a,o){return Sa(a,r.child,null,o),r=nc(a,a.pendingProps),r.flags|=2,Bn(a),a.memoizedState=null,r}function Qk(r,a,o){var f=a.pendingProps,g=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(We){if(f.mode==="hidden")return r=nc(a,f),a.lanes=536870912,Wl(null,r);if(mh(a),(r=xt)?(r=yE(r,Wn),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Ei!==null?{id:br,overflow:yr}:null,retryLane:536870912,hydrationErrors:null},o=q1(r),o.return=a,a.child=o,en=a,xt=null)):r=null,r===null)throw Ti(a);return a.lanes=536870912,null}return nc(a,f)}var b=r.memoizedState;if(b!==null){var _=b.dehydrated;if(mh(a),g)if(a.flags&256)a.flags&=-257,a=sy(r,a,o);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(Pt||Cs(r,a,o,!1),g=(o&r.childLanes)!==0,Pt||g){if(f=bt,f!==null&&(_=Qg(f,o),_!==0&&_!==b.retryLane))throw b.retryLane=_,pa(r,_),wn(f,r,_),Mh;hc(),a=sy(r,a,o)}else r=b.treeContext,xt=Jn(_.nextSibling),en=a,We=!0,xi=null,Wn=!1,r!==null&&$1(a,r),a=nc(a,f),a.flags|=4096;return a}return r=Ur(r.child,{mode:f.mode,children:f.children}),r.ref=a.ref,a.child=r,r.return=a,r}function rc(r,a){var o=a.ref;if(o===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(r===null||r.ref!==o)&&(a.flags|=4194816)}}function Ph(r,a,o,f,g){return Ea(a),o=gh(r,a,o,f,void 0,g),f=bh(),r!==null&&!Pt?(yh(r,a,g),$r(r,a,g)):(We&&f&&Wd(a),a.flags|=1,nn(r,a,o,g),a.child)}function ly(r,a,o,f,g,b){return Ea(a),a.updateQueue=null,o=cb(a,f,o,g),ub(r),f=bh(),r!==null&&!Pt?(yh(r,a,b),$r(r,a,b)):(We&&f&&Wd(a),a.flags|=1,nn(r,a,o,b),a.child)}function oy(r,a,o,f,g){if(Ea(a),a.stateNode===null){var b=xs,_=o.contextType;typeof _=="object"&&_!==null&&(b=tn(_)),b=new o(f,b),a.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Dh,a.stateNode=b,b._reactInternals=a,b=a.stateNode,b.props=f,b.state=a.memoizedState,b.refs={},oh(a),_=o.contextType,b.context=typeof _=="object"&&_!==null?tn(_):xs,b.state=a.memoizedState,_=o.getDerivedStateFromProps,typeof _=="function"&&(Lh(a,o,_,f),b.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(_=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),_!==b.state&&Dh.enqueueReplaceState(b,b.state,null),$l(a,f,b,g),Yl(),b.state=a.memoizedState),typeof b.componentDidMount=="function"&&(a.flags|=4194308),f=!0}else if(r===null){b=a.stateNode;var R=a.memoizedProps,V=_a(o,R);b.props=V;var ne=b.context,ce=o.contextType;_=xs,typeof ce=="object"&&ce!==null&&(_=tn(ce));var he=o.getDerivedStateFromProps;ce=typeof he=="function"||typeof b.getSnapshotBeforeUpdate=="function",R=a.pendingProps!==R,ce||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(R||ne!==_)&&Kb(a,b,f,_),Si=!1;var re=a.memoizedState;b.state=re,$l(a,f,b,g),Yl(),ne=a.memoizedState,R||re!==ne||Si?(typeof he=="function"&&(Lh(a,o,he,f),ne=a.memoizedState),(V=Si||Gb(a,o,V,f,re,ne,_))?(ce||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"&&(a.flags|=4194308)):(typeof b.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=f,a.memoizedState=ne),b.props=f,b.state=ne,b.context=_,f=V):(typeof b.componentDidMount=="function"&&(a.flags|=4194308),f=!1)}else{b=a.stateNode,uh(r,a),_=a.memoizedProps,ce=_a(o,_),b.props=ce,he=a.pendingProps,re=b.context,ne=o.contextType,V=xs,typeof ne=="object"&&ne!==null&&(V=tn(ne)),R=o.getDerivedStateFromProps,(ne=typeof R=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(_!==he||re!==V)&&Kb(a,b,f,V),Si=!1,re=a.memoizedState,b.state=re,$l(a,f,b,g),Yl();var ae=a.memoizedState;_!==he||re!==ae||Si||r!==null&&r.dependencies!==null&&ju(r.dependencies)?(typeof R=="function"&&(Lh(a,o,R,f),ae=a.memoizedState),(ce=Si||Gb(a,o,ce,f,re,ae,V)||r!==null&&r.dependencies!==null&&ju(r.dependencies))?(ne||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(f,ae,V),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(f,ae,V)),typeof b.componentDidUpdate=="function"&&(a.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof b.componentDidUpdate!="function"||_===r.memoizedProps&&re===r.memoizedState||(a.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&re===r.memoizedState||(a.flags|=1024),a.memoizedProps=f,a.memoizedState=ae),b.props=f,b.state=ae,b.context=V,f=ce):(typeof b.componentDidUpdate!="function"||_===r.memoizedProps&&re===r.memoizedState||(a.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&re===r.memoizedState||(a.flags|=1024),f=!1)}return b=f,rc(r,a),f=(a.flags&128)!==0,b||f?(b=a.stateNode,o=f&&typeof o.getDerivedStateFromError!="function"?null:b.render(),a.flags|=1,r!==null&&f?(a.child=Sa(a,r.child,null,g),a.child=Sa(a,null,o,g)):nn(r,a,o,g),a.memoizedState=b.state,r=a.child):r=$r(r,a,g),r}function uy(r,a,o,f){return ba(),a.flags|=256,nn(r,a,o,f),a.child}var Bh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jh(r){return{baseLanes:r,cachePool:Z1()}}function Hh(r,a,o){return r=r!==null?r.childLanes&~o:0,a&&(r|=Hn),r}function cy(r,a,o){var f=a.pendingProps,g=!1,b=(a.flags&128)!==0,_;if((_=b)||(_=r!==null&&r.memoizedState===null?!1:(Nt.current&2)!==0),_&&(g=!0,a.flags&=-129),_=(a.flags&32)!==0,a.flags&=-33,r===null){if(We){if(g?Ai(a):ki(),(r=xt)?(r=yE(r,Wn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Ei!==null?{id:br,overflow:yr}:null,retryLane:536870912,hydrationErrors:null},o=q1(r),o.return=a,a.child=o,en=a,xt=null)):r=null,r===null)throw Ti(a);return Tm(r)?a.lanes=32:a.lanes=536870912,null}var R=f.children;return f=f.fallback,g?(ki(),g=a.mode,R=ic({mode:"hidden",children:R},g),f=ga(f,g,o,null),R.return=a,f.return=a,R.sibling=f,a.child=R,f=a.child,f.memoizedState=jh(o),f.childLanes=Hh(r,_,o),a.memoizedState=Bh,Wl(null,f)):(Ai(a),Uh(a,R))}var V=r.memoizedState;if(V!==null&&(R=V.dehydrated,R!==null)){if(b)a.flags&256?(Ai(a),a.flags&=-257,a=zh(r,a,o)):a.memoizedState!==null?(ki(),a.child=r.child,a.flags|=128,a=null):(ki(),R=f.fallback,g=a.mode,f=ic({mode:"visible",children:f.children},g),R=ga(R,g,o,null),R.flags|=2,f.return=a,R.return=a,f.sibling=R,a.child=f,Sa(a,r.child,null,o),f=a.child,f.memoizedState=jh(o),f.childLanes=Hh(r,_,o),a.memoizedState=Bh,a=Wl(null,f));else if(Ai(a),Tm(R)){if(_=R.nextSibling&&R.nextSibling.dataset,_)var ne=_.dgst;_=ne,f=Error(i(419)),f.stack="",f.digest=_,Hl({value:f,source:null,stack:null}),a=zh(r,a,o)}else if(Pt||Cs(r,a,o,!1),_=(o&r.childLanes)!==0,Pt||_){if(_=bt,_!==null&&(f=Qg(_,o),f!==0&&f!==V.retryLane))throw V.retryLane=f,pa(r,f),wn(_,r,f),Mh;xm(R)||hc(),a=zh(r,a,o)}else xm(R)?(a.flags|=192,a.child=r.child,a=null):(r=V.treeContext,xt=Jn(R.nextSibling),en=a,We=!0,xi=null,Wn=!1,r!==null&&$1(a,r),a=Uh(a,f.children),a.flags|=4096);return a}return g?(ki(),R=f.fallback,g=a.mode,V=r.child,ne=V.sibling,f=Ur(V,{mode:"hidden",children:f.children}),f.subtreeFlags=V.subtreeFlags&65011712,ne!==null?R=Ur(ne,R):(R=ga(R,g,o,null),R.flags|=2),R.return=a,f.return=a,f.sibling=R,a.child=f,Wl(null,f),f=a.child,R=r.child.memoizedState,R===null?R=jh(o):(g=R.cachePool,g!==null?(V=It._currentValue,g=g.parent!==V?{parent:V,pool:V}:g):g=Z1(),R={baseLanes:R.baseLanes|o,cachePool:g}),f.memoizedState=R,f.childLanes=Hh(r,_,o),a.memoizedState=Bh,Wl(r.child,f)):(Ai(a),o=r.child,r=o.sibling,o=Ur(o,{mode:"visible",children:f.children}),o.return=a,o.sibling=null,r!==null&&(_=a.deletions,_===null?(a.deletions=[r],a.flags|=16):_.push(r)),a.child=o,a.memoizedState=null,o)}function Uh(r,a){return a=ic({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function ic(r,a){return r=Mn(22,r,null,a),r.lanes=0,r}function zh(r,a,o){return Sa(a,r.child,null,o),r=Uh(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function fy(r,a,o){r.lanes|=a;var f=r.alternate;f!==null&&(f.lanes|=a),nh(r.return,a,o)}function Fh(r,a,o,f,g,b){var _=r.memoizedState;_===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:f,tail:o,tailMode:g,treeForkCount:b}:(_.isBackwards=a,_.rendering=null,_.renderingStartTime=0,_.last=f,_.tail=o,_.tailMode=g,_.treeForkCount=b)}function dy(r,a,o){var f=a.pendingProps,g=f.revealOrder,b=f.tail;f=f.children;var _=Nt.current,R=(_&2)!==0;if(R?(_=_&1|2,a.flags|=128):_&=1,I(Nt,_),nn(r,a,f,o),f=We?jl:0,!R&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&fy(r,o,a);else if(r.tag===19)fy(r,o,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(g){case"forwards":for(o=a.child,g=null;o!==null;)r=o.alternate,r!==null&&$u(r)===null&&(g=o),o=o.sibling;o=g,o===null?(g=a.child,a.child=null):(g=o.sibling,o.sibling=null),Fh(a,!1,g,o,b,f);break;case"backwards":case"unstable_legacy-backwards":for(o=null,g=a.child,a.child=null;g!==null;){if(r=g.alternate,r!==null&&$u(r)===null){a.child=g;break}r=g.sibling,g.sibling=o,o=g,g=r}Fh(a,!0,o,null,b,f);break;case"together":Fh(a,!1,null,null,void 0,f);break;default:a.memoizedState=null}return a.child}function $r(r,a,o){if(r!==null&&(a.dependencies=r.dependencies),Ri|=a.lanes,(o&a.childLanes)===0)if(r!==null){if(Cs(r,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,o=Ur(r,r.pendingProps),a.child=o,o.return=a;r.sibling!==null;)r=r.sibling,o=o.sibling=Ur(r,r.pendingProps),o.return=a;o.sibling=null}return a.child}function qh(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&ju(r)))}function Wk(r,a,o){switch(a.tag){case 3:ge(a,a.stateNode.containerInfo),vi(a,It,r.memoizedState.cache),ba();break;case 27:case 5:Pe(a);break;case 4:ge(a,a.stateNode.containerInfo);break;case 10:vi(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,mh(a),null;break;case 13:var f=a.memoizedState;if(f!==null)return f.dehydrated!==null?(Ai(a),a.flags|=128,null):(o&a.child.childLanes)!==0?cy(r,a,o):(Ai(a),r=$r(r,a,o),r!==null?r.sibling:null);Ai(a);break;case 19:var g=(r.flags&128)!==0;if(f=(o&a.childLanes)!==0,f||(Cs(r,a,o,!1),f=(o&a.childLanes)!==0),g){if(f)return dy(r,a,o);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),I(Nt,Nt.current),f)break;return null;case 22:return a.lanes=0,iy(r,a,o,a.pendingProps);case 24:vi(a,It,r.memoizedState.cache)}return $r(r,a,o)}function hy(r,a,o){if(r!==null)if(r.memoizedProps!==a.pendingProps)Pt=!0;else{if(!qh(r,o)&&(a.flags&128)===0)return Pt=!1,Wk(r,a,o);Pt=(r.flags&131072)!==0}else Pt=!1,We&&(a.flags&1048576)!==0&&Y1(a,jl,a.index);switch(a.lanes=0,a.tag){case 16:e:{var f=a.pendingProps;if(r=Ta(a.elementType),a.type=r,typeof r=="function")Kd(r)?(f=_a(r,f),a.tag=1,a=oy(null,a,r,f,o)):(a.tag=0,a=Ph(null,a,r,f,o));else{if(r!=null){var g=r.$$typeof;if(g===D){a.tag=11,a=ty(null,a,r,f,o);break e}else if(g===M){a.tag=14,a=ny(null,a,r,f,o);break e}}throw a=fe(r)||r,Error(i(306,a,""))}}return a;case 0:return Ph(r,a,a.type,a.pendingProps,o);case 1:return f=a.type,g=_a(f,a.pendingProps),oy(r,a,f,g,o);case 3:e:{if(ge(a,a.stateNode.containerInfo),r===null)throw Error(i(387));f=a.pendingProps;var b=a.memoizedState;g=b.element,uh(r,a),$l(a,f,null,o);var _=a.memoizedState;if(f=_.cache,vi(a,It,f),f!==b.cache&&rh(a,[It],o,!0),Yl(),f=_.element,b.isDehydrated)if(b={element:f,isDehydrated:!1,cache:_.cache},a.updateQueue.baseState=b,a.memoizedState=b,a.flags&256){a=uy(r,a,f,o);break e}else if(f!==g){g=Kn(Error(i(424)),a),Hl(g),a=uy(r,a,f,o);break e}else for(r=a.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,xt=Jn(r.firstChild),en=a,We=!0,xi=null,Wn=!0,o=ib(a,null,f,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(ba(),f===g){a=$r(r,a,o);break e}nn(r,a,f,o)}a=a.child}return a;case 26:return rc(r,a),r===null?(o=CE(a.type,null,a.pendingProps,null))?a.memoizedState=o:We||(o=a.type,r=a.pendingProps,f=xc(W.current).createElement(o),f[Jt]=a,f[vn]=r,rn(f,o,r),$t(f),a.stateNode=f):a.memoizedState=CE(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return Pe(a),r===null&&We&&(f=a.stateNode=TE(a.type,a.pendingProps,W.current),en=a,Wn=!0,g=xt,Mi(a.type)?(vm=g,xt=Jn(f.firstChild)):xt=g),nn(r,a,a.pendingProps.children,o),rc(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&We&&((g=f=xt)&&(f=kw(f,a.type,a.pendingProps,Wn),f!==null?(a.stateNode=f,en=a,xt=Jn(f.firstChild),Wn=!1,g=!0):g=!1),g||Ti(a)),Pe(a),g=a.type,b=a.pendingProps,_=r!==null?r.memoizedProps:null,f=b.children,bm(g,b)?f=null:_!==null&&bm(g,_)&&(a.flags|=32),a.memoizedState!==null&&(g=gh(r,a,Fk,null,null,o),ho._currentValue=g),rc(r,a),nn(r,a,f,o),a.child;case 6:return r===null&&We&&((r=o=xt)&&(o=ww(o,a.pendingProps,Wn),o!==null?(a.stateNode=o,en=a,xt=null,r=!0):r=!1),r||Ti(a)),null;case 13:return cy(r,a,o);case 4:return ge(a,a.stateNode.containerInfo),f=a.pendingProps,r===null?a.child=Sa(a,null,f,o):nn(r,a,f,o),a.child;case 11:return ty(r,a,a.type,a.pendingProps,o);case 7:return nn(r,a,a.pendingProps,o),a.child;case 8:return nn(r,a,a.pendingProps.children,o),a.child;case 12:return nn(r,a,a.pendingProps.children,o),a.child;case 10:return f=a.pendingProps,vi(a,a.type,f.value),nn(r,a,f.children,o),a.child;case 9:return g=a.type._context,f=a.pendingProps.children,Ea(a),g=tn(g),f=f(g),a.flags|=1,nn(r,a,f,o),a.child;case 14:return ny(r,a,a.type,a.pendingProps,o);case 15:return ry(r,a,a.type,a.pendingProps,o);case 19:return dy(r,a,o);case 31:return Qk(r,a,o);case 22:return iy(r,a,o,a.pendingProps);case 24:return Ea(a),f=tn(It),r===null?(g=sh(),g===null&&(g=bt,b=ih(),g.pooledCache=b,b.refCount++,b!==null&&(g.pooledCacheLanes|=o),g=b),a.memoizedState={parent:f,cache:g},oh(a),vi(a,It,g)):((r.lanes&o)!==0&&(uh(r,a),$l(a,null,null,o),Yl()),g=r.memoizedState,b=a.memoizedState,g.parent!==f?(g={parent:f,cache:f},a.memoizedState=g,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=g),vi(a,It,f)):(f=b.cache,vi(a,It,f),f!==g.cache&&rh(a,[It],o,!0))),nn(r,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function Gr(r){r.flags|=4}function Vh(r,a,o,f,g){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(g&335544128)===g)if(r.stateNode.complete)r.flags|=8192;else if(Uy())r.flags|=8192;else throw va=Fu,lh}else r.flags&=-16777217}function my(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!NE(a))if(Uy())r.flags|=8192;else throw va=Fu,lh}function ac(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?Gg():536870912,r.lanes|=a,Ps|=a)}function Zl(r,a){if(!We)switch(r.tailMode){case"hidden":a=r.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.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?a||r.tail===null?r.tail=null:r.tail.sibling=null:f.sibling=null}}function Tt(r){var a=r.alternate!==null&&r.alternate.child===r.child,o=0,f=0;if(a)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,a}function Zk(r,a,o){var f=a.pendingProps;switch(Zd(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tt(a),null;case 1:return Tt(a),null;case 3:return o=a.stateNode,f=null,r!==null&&(f=r.memoizedState.cache),a.memoizedState.cache!==f&&(a.flags|=2048),qr(It),ve(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(Ss(a)?Gr(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,eh())),Tt(a),null;case 26:var g=a.type,b=a.memoizedState;return r===null?(Gr(a),b!==null?(Tt(a),my(a,b)):(Tt(a),Vh(a,g,null,f,o))):b?b!==r.memoizedState?(Gr(a),Tt(a),my(a,b)):(Tt(a),a.flags&=-16777217):(r=r.memoizedProps,r!==f&&Gr(a),Tt(a),Vh(a,g,r,f,o)),null;case 27:if(Le(a),o=W.current,g=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==f&&Gr(a);else{if(!f){if(a.stateNode===null)throw Error(i(166));return Tt(a),null}r=me.current,Ss(a)?G1(a):(r=TE(g,f,o),a.stateNode=r,Gr(a))}return Tt(a),null;case 5:if(Le(a),g=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==f&&Gr(a);else{if(!f){if(a.stateNode===null)throw Error(i(166));return Tt(a),null}if(b=me.current,Ss(a))G1(a);else{var _=xc(W.current);switch(b){case 1:b=_.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:b=_.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":b=_.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":b=_.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":b=_.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof f.is=="string"?_.createElement("select",{is:f.is}):_.createElement("select"),f.multiple?b.multiple=!0:f.size&&(b.size=f.size);break;default:b=typeof f.is=="string"?_.createElement(g,{is:f.is}):_.createElement(g)}}b[Jt]=a,b[vn]=f;e:for(_=a.child;_!==null;){if(_.tag===5||_.tag===6)b.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===a)break e;for(;_.sibling===null;){if(_.return===null||_.return===a)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}a.stateNode=b;e:switch(rn(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(a)}}return Tt(a),Vh(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,o),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==f&&Gr(a);else{if(typeof f!="string"&&a.stateNode===null)throw Error(i(166));if(r=W.current,Ss(a)){if(r=a.stateNode,o=a.memoizedProps,f=null,g=en,g!==null)switch(g.tag){case 27:case 5:f=g.memoizedProps}r[Jt]=a,r=!!(r.nodeValue===o||f!==null&&f.suppressHydrationWarning===!0||cE(r.nodeValue,o)),r||Ti(a,!0)}else r=xc(r).createTextNode(f),r[Jt]=a,a.stateNode=r}return Tt(a),null;case 31:if(o=a.memoizedState,r===null||r.memoizedState!==null){if(f=Ss(a),o!==null){if(r===null){if(!f)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[Jt]=a}else ba(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Tt(a),r=!1}else o=eh(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=o),r=!0;if(!r)return a.flags&256?(Bn(a),a):(Bn(a),null);if((a.flags&128)!==0)throw Error(i(558))}return Tt(a),null;case 13:if(f=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(g=Ss(a),f!==null&&f.dehydrated!==null){if(r===null){if(!g)throw Error(i(318));if(g=a.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(i(317));g[Jt]=a}else ba(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Tt(a),g=!1}else g=eh(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=g),g=!0;if(!g)return a.flags&256?(Bn(a),a):(Bn(a),null)}return Bn(a),(a.flags&128)!==0?(a.lanes=o,a):(o=f!==null,r=r!==null&&r.memoizedState!==null,o&&(f=a.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&&(a.child.flags|=8192),ac(a,a.updateQueue),Tt(a),null);case 4:return ve(),r===null&&dm(a.stateNode.containerInfo),Tt(a),null;case 10:return qr(a.type),Tt(a),null;case 19:if(Z(Nt),f=a.memoizedState,f===null)return Tt(a),null;if(g=(a.flags&128)!==0,b=f.rendering,b===null)if(g)Zl(f,!1);else{if(wt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(b=$u(r),b!==null){for(a.flags|=128,Zl(f,!1),r=b.updateQueue,a.updateQueue=r,ac(a,r),a.subtreeFlags=0,r=o,o=a.child;o!==null;)F1(o,r),o=o.sibling;return I(Nt,Nt.current&1|2),We&&zr(a,f.treeForkCount),a.child}r=r.sibling}f.tail!==null&&Je()>cc&&(a.flags|=128,g=!0,Zl(f,!1),a.lanes=4194304)}else{if(!g)if(r=$u(b),r!==null){if(a.flags|=128,g=!0,r=r.updateQueue,a.updateQueue=r,ac(a,r),Zl(f,!0),f.tail===null&&f.tailMode==="hidden"&&!b.alternate&&!We)return Tt(a),null}else 2*Je()-f.renderingStartTime>cc&&o!==536870912&&(a.flags|=128,g=!0,Zl(f,!1),a.lanes=4194304);f.isBackwards?(b.sibling=a.child,a.child=b):(r=f.last,r!==null?r.sibling=b:a.child=b,f.last=b)}return f.tail!==null?(r=f.tail,f.rendering=r,f.tail=r.sibling,f.renderingStartTime=Je(),r.sibling=null,o=Nt.current,I(Nt,g?o&1|2:o&1),We&&zr(a,f.treeForkCount),r):(Tt(a),null);case 22:case 23:return Bn(a),hh(),f=a.memoizedState!==null,r!==null?r.memoizedState!==null!==f&&(a.flags|=8192):f&&(a.flags|=8192),f?(o&536870912)!==0&&(a.flags&128)===0&&(Tt(a),a.subtreeFlags&6&&(a.flags|=8192)):Tt(a),o=a.updateQueue,o!==null&&ac(a,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),f=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),f!==o&&(a.flags|=2048),r!==null&&Z(xa),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),qr(It),Tt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function Jk(r,a){switch(Zd(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return qr(It),ve(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return Le(a),null;case 31:if(a.memoizedState!==null){if(Bn(a),a.alternate===null)throw Error(i(340));ba()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(Bn(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));ba()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return Z(Nt),null;case 4:return ve(),null;case 10:return qr(a.type),null;case 22:case 23:return Bn(a),hh(),r!==null&&Z(xa),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return qr(It),null;case 25:return null;default:return null}}function py(r,a){switch(Zd(a),a.tag){case 3:qr(It),ve();break;case 26:case 27:case 5:Le(a);break;case 4:ve();break;case 31:a.memoizedState!==null&&Bn(a);break;case 13:Bn(a);break;case 19:Z(Nt);break;case 10:qr(a.type);break;case 22:case 23:Bn(a),hh(),r!==null&&Z(xa);break;case 24:qr(It)}}function Jl(r,a){try{var o=a.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,_=o.inst;f=b(),_.destroy=f}o=o.next}while(o!==g)}}catch(R){ut(a,a.return,R)}}function wi(r,a,o){try{var f=a.updateQueue,g=f!==null?f.lastEffect:null;if(g!==null){var b=g.next;f=b;do{if((f.tag&r)===r){var _=f.inst,R=_.destroy;if(R!==void 0){_.destroy=void 0,g=a;var V=o,ne=R;try{ne()}catch(ce){ut(g,V,ce)}}}f=f.next}while(f!==b)}}catch(ce){ut(a,a.return,ce)}}function gy(r){var a=r.updateQueue;if(a!==null){var o=r.stateNode;try{sb(a,o)}catch(f){ut(r,r.return,f)}}}function by(r,a,o){o.props=_a(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(f){ut(r,a,f)}}function eo(r,a){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){ut(r,a,g)}}function Er(r,a){var o=r.ref,f=r.refCleanup;if(o!==null)if(typeof f=="function")try{f()}catch(g){ut(r,a,g)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(g){ut(r,a,g)}else o.current=null}function yy(r){var a=r.type,o=r.memoizedProps,f=r.stateNode;try{e:switch(a){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){ut(r,r.return,g)}}function Yh(r,a,o){try{var f=r.stateNode;Tw(f,r.type,o,a),f[vn]=a}catch(g){ut(r,r.return,g)}}function Ey(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Mi(r.type)||r.tag===4}function $h(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Ey(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&&Mi(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 Gh(r,a,o){var f=r.tag;if(f===5||f===6)r=r.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(r,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(r),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=jr));else if(f!==4&&(f===27&&Mi(r.type)&&(o=r.stateNode,a=null),r=r.child,r!==null))for(Gh(r,a,o),r=r.sibling;r!==null;)Gh(r,a,o),r=r.sibling}function sc(r,a,o){var f=r.tag;if(f===5||f===6)r=r.stateNode,a?o.insertBefore(r,a):o.appendChild(r);else if(f!==4&&(f===27&&Mi(r.type)&&(o=r.stateNode),r=r.child,r!==null))for(sc(r,a,o),r=r.sibling;r!==null;)sc(r,a,o),r=r.sibling}function xy(r){var a=r.stateNode,o=r.memoizedProps;try{for(var f=r.type,g=a.attributes;g.length;)a.removeAttributeNode(g[0]);rn(a,f,o),a[Jt]=r,a[vn]=o}catch(b){ut(r,r.return,b)}}var Kr=!1,Bt=!1,Kh=!1,Ty=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function ew(r,a){if(r=r.containerInfo,pm=kc,r=D1(r),zd(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 _=0,R=-1,V=-1,ne=0,ce=0,he=r,re=null;t:for(;;){for(var ae;he!==o||g!==0&&he.nodeType!==3||(R=_+g),he!==b||f!==0&&he.nodeType!==3||(V=_+f),he.nodeType===3&&(_+=he.nodeValue.length),(ae=he.firstChild)!==null;)re=he,he=ae;for(;;){if(he===r)break t;if(re===o&&++ne===g&&(R=_),re===b&&++ce===f&&(V=_),(ae=he.nextSibling)!==null)break;he=re,re=he.parentNode}he=ae}o=R===-1||V===-1?null:{start:R,end:V}}else o=null}o=o||{start:0,end:0}}else o=null;for(gm={focusedElem:r,selectionRange:o},kc=!1,Gt=a;Gt!==null;)if(a=Gt,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,Gt=r;else for(;Gt!==null;){switch(a=Gt,b=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.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=a,g=b.memoizedProps,b=b.memoizedState,f=o.stateNode;try{var Ae=_a(o.type,g);r=f.getSnapshotBeforeUpdate(Ae,b),f.__reactInternalSnapshotBeforeUpdate=r}catch(Oe){ut(o,o.return,Oe)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,o=r.nodeType,o===9)Em(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Em(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(i(163))}if(r=a.sibling,r!==null){r.return=a.return,Gt=r;break}Gt=a.return}}function vy(r,a,o){var f=o.flags;switch(o.tag){case 0:case 11:case 15:Qr(r,o),f&4&&Jl(5,o);break;case 1:if(Qr(r,o),f&4)if(r=o.stateNode,a===null)try{r.componentDidMount()}catch(_){ut(o,o.return,_)}else{var g=_a(o.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(g,a,r.__reactInternalSnapshotBeforeUpdate)}catch(_){ut(o,o.return,_)}}f&64&&gy(o),f&512&&eo(o,o.return);break;case 3:if(Qr(r,o),f&64&&(r=o.updateQueue,r!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{sb(r,a)}catch(_){ut(o,o.return,_)}}break;case 27:a===null&&f&4&&xy(o);case 26:case 5:Qr(r,o),a===null&&f&4&&yy(o),f&512&&eo(o,o.return);break;case 12:Qr(r,o);break;case 31:Qr(r,o),f&4&&_y(r,o);break;case 13:Qr(r,o),f&4&&Ay(r,o),f&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=uw.bind(null,o),Nw(r,o))));break;case 22:if(f=o.memoizedState!==null||Kr,!f){a=a!==null&&a.memoizedState!==null||Bt,g=Kr;var b=Bt;Kr=f,(Bt=a)&&!b?Wr(r,o,(o.subtreeFlags&8772)!==0):Qr(r,o),Kr=g,Bt=b}break;case 30:break;default:Qr(r,o)}}function Sy(r){var a=r.alternate;a!==null&&(r.alternate=null,Sy(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Cd(a)),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 St=null,Cn=!1;function Xr(r,a,o){for(o=o.child;o!==null;)Cy(r,a,o),o=o.sibling}function Cy(r,a,o){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(dn,o)}catch{}switch(o.tag){case 26:Bt||Er(o,a),Xr(r,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Bt||Er(o,a);var f=St,g=Cn;Mi(o.type)&&(St=o.stateNode,Cn=!1),Xr(r,a,o),uo(o.stateNode),St=f,Cn=g;break;case 5:Bt||Er(o,a);case 6:if(f=St,g=Cn,St=null,Xr(r,a,o),St=f,Cn=g,St!==null)if(Cn)try{(St.nodeType===9?St.body:St.nodeName==="HTML"?St.ownerDocument.body:St).removeChild(o.stateNode)}catch(b){ut(o,a,b)}else try{St.removeChild(o.stateNode)}catch(b){ut(o,a,b)}break;case 18:St!==null&&(Cn?(r=St,gE(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),Vs(r)):gE(St,o.stateNode));break;case 4:f=St,g=Cn,St=o.stateNode.containerInfo,Cn=!0,Xr(r,a,o),St=f,Cn=g;break;case 0:case 11:case 14:case 15:wi(2,o,a),Bt||wi(4,o,a),Xr(r,a,o);break;case 1:Bt||(Er(o,a),f=o.stateNode,typeof f.componentWillUnmount=="function"&&by(o,a,f)),Xr(r,a,o);break;case 21:Xr(r,a,o);break;case 22:Bt=(f=Bt)||o.memoizedState!==null,Xr(r,a,o),Bt=f;break;default:Xr(r,a,o)}}function _y(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Vs(r)}catch(o){ut(a,a.return,o)}}}function Ay(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Vs(r)}catch(o){ut(a,a.return,o)}}function tw(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new Ty),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new Ty),a;default:throw Error(i(435,r.tag))}}function lc(r,a){var o=tw(r);a.forEach(function(f){if(!o.has(f)){o.add(f);var g=cw.bind(null,r,f);f.then(g,g)}})}function _n(r,a){var o=a.deletions;if(o!==null)for(var f=0;f<o.length;f++){var g=o[f],b=r,_=a,R=_;e:for(;R!==null;){switch(R.tag){case 27:if(Mi(R.type)){St=R.stateNode,Cn=!1;break e}break;case 5:St=R.stateNode,Cn=!1;break e;case 3:case 4:St=R.stateNode.containerInfo,Cn=!0;break e}R=R.return}if(St===null)throw Error(i(160));Cy(b,_,g),St=null,Cn=!1,b=g.alternate,b!==null&&(b.return=null),g.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)ky(a,r),a=a.sibling}var lr=null;function ky(r,a){var o=r.alternate,f=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:_n(a,r),An(r),f&4&&(wi(3,r,r.return),Jl(3,r),wi(5,r,r.return));break;case 1:_n(a,r),An(r),f&512&&(Bt||o===null||Er(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=lr;if(_n(a,r),An(r),f&512&&(Bt||o===null||Er(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[kl]||b[Jt]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=g.createElement(f),g.head.insertBefore(b,g.querySelector("head > title"))),rn(b,f,o),b[Jt]=r,$t(b),f=b;break e;case"link":var _=kE("link","href",g).get(f+(o.href||""));if(_){for(var R=0;R<_.length;R++)if(b=_[R],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)){_.splice(R,1);break t}}b=g.createElement(f),rn(b,f,o),g.head.appendChild(b);break;case"meta":if(_=kE("meta","content",g).get(f+(o.content||""))){for(R=0;R<_.length;R++)if(b=_[R],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)){_.splice(R,1);break t}}b=g.createElement(f),rn(b,f,o),g.head.appendChild(b);break;default:throw Error(i(468,f))}b[Jt]=r,$t(b),f=b}r.stateNode=f}else wE(g,r.type,r.stateNode);else r.stateNode=AE(g,f,r.memoizedProps);else b!==f?(b===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):b.count--,f===null?wE(g,r.type,r.stateNode):AE(g,f,r.memoizedProps)):f===null&&r.stateNode!==null&&Yh(r,r.memoizedProps,o.memoizedProps)}break;case 27:_n(a,r),An(r),f&512&&(Bt||o===null||Er(o,o.return)),o!==null&&f&4&&Yh(r,r.memoizedProps,o.memoizedProps);break;case 5:if(_n(a,r),An(r),f&512&&(Bt||o===null||Er(o,o.return)),r.flags&32){g=r.stateNode;try{hs(g,"")}catch(Ae){ut(r,r.return,Ae)}}f&4&&r.stateNode!=null&&(g=r.memoizedProps,Yh(r,g,o!==null?o.memoizedProps:g)),f&1024&&(Kh=!0);break;case 6:if(_n(a,r),An(r),f&4){if(r.stateNode===null)throw Error(i(162));f=r.memoizedProps,o=r.stateNode;try{o.nodeValue=f}catch(Ae){ut(r,r.return,Ae)}}break;case 3:if(Sc=null,g=lr,lr=Tc(a.containerInfo),_n(a,r),lr=g,An(r),f&4&&o!==null&&o.memoizedState.isDehydrated)try{Vs(a.containerInfo)}catch(Ae){ut(r,r.return,Ae)}Kh&&(Kh=!1,wy(r));break;case 4:f=lr,lr=Tc(r.stateNode.containerInfo),_n(a,r),An(r),lr=f;break;case 12:_n(a,r),An(r);break;case 31:_n(a,r),An(r),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,lc(r,f)));break;case 13:_n(a,r),An(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(uc=Je()),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,lc(r,f)));break;case 22:g=r.memoizedState!==null;var V=o!==null&&o.memoizedState!==null,ne=Kr,ce=Bt;if(Kr=ne||g,Bt=ce||V,_n(a,r),Bt=ce,Kr=ne,An(r),f&8192)e:for(a=r.stateNode,a._visibility=g?a._visibility&-2:a._visibility|1,g&&(o===null||V||Kr||Bt||Aa(r)),o=null,a=r;;){if(a.tag===5||a.tag===26){if(o===null){V=o=a;try{if(b=V.stateNode,g)_=b.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{R=V.stateNode;var he=V.memoizedProps.style,re=he!=null&&he.hasOwnProperty("display")?he.display:null;R.style.display=re==null||typeof re=="boolean"?"":(""+re).trim()}}catch(Ae){ut(V,V.return,Ae)}}}else if(a.tag===6){if(o===null){V=a;try{V.stateNode.nodeValue=g?"":V.memoizedProps}catch(Ae){ut(V,V.return,Ae)}}}else if(a.tag===18){if(o===null){V=a;try{var ae=V.stateNode;g?bE(ae,!0):bE(V.stateNode,!1)}catch(Ae){ut(V,V.return,Ae)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}f&4&&(f=r.updateQueue,f!==null&&(o=f.retryQueue,o!==null&&(f.retryQueue=null,lc(r,o))));break;case 19:_n(a,r),An(r),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,lc(r,f)));break;case 30:break;case 21:break;default:_n(a,r),An(r)}}function An(r){var a=r.flags;if(a&2){try{for(var o,f=r.return;f!==null;){if(Ey(f)){o=f;break}f=f.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var g=o.stateNode,b=$h(r);sc(r,b,g);break;case 5:var _=o.stateNode;o.flags&32&&(hs(_,""),o.flags&=-33);var R=$h(r);sc(r,R,_);break;case 3:case 4:var V=o.stateNode.containerInfo,ne=$h(r);Gh(r,ne,V);break;default:throw Error(i(161))}}catch(ce){ut(r,r.return,ce)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function wy(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;wy(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Qr(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)vy(r,a.alternate,a),a=a.sibling}function Aa(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:wi(4,a,a.return),Aa(a);break;case 1:Er(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&by(a,a.return,o),Aa(a);break;case 27:uo(a.stateNode);case 26:case 5:Er(a,a.return),Aa(a);break;case 22:a.memoizedState===null&&Aa(a);break;case 30:Aa(a);break;default:Aa(a)}r=r.sibling}}function Wr(r,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var f=a.alternate,g=r,b=a,_=b.flags;switch(b.tag){case 0:case 11:case 15:Wr(g,b,o),Jl(4,b);break;case 1:if(Wr(g,b,o),f=b,g=f.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(ne){ut(f,f.return,ne)}if(f=b,g=f.updateQueue,g!==null){var R=f.stateNode;try{var V=g.shared.hiddenCallbacks;if(V!==null)for(g.shared.hiddenCallbacks=null,g=0;g<V.length;g++)ab(V[g],R)}catch(ne){ut(f,f.return,ne)}}o&&_&64&&gy(b),eo(b,b.return);break;case 27:xy(b);case 26:case 5:Wr(g,b,o),o&&f===null&&_&4&&yy(b),eo(b,b.return);break;case 12:Wr(g,b,o);break;case 31:Wr(g,b,o),o&&_&4&&_y(g,b);break;case 13:Wr(g,b,o),o&&_&4&&Ay(g,b);break;case 22:b.memoizedState===null&&Wr(g,b,o),eo(b,b.return);break;case 30:break;default:Wr(g,b,o)}a=a.sibling}}function Xh(r,a){var o=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==o&&(r!=null&&r.refCount++,o!=null&&Ul(o))}function Qh(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Ul(r))}function or(r,a,o,f){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Ny(r,a,o,f),a=a.sibling}function Ny(r,a,o,f){var g=a.flags;switch(a.tag){case 0:case 11:case 15:or(r,a,o,f),g&2048&&Jl(9,a);break;case 1:or(r,a,o,f);break;case 3:or(r,a,o,f),g&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Ul(r)));break;case 12:if(g&2048){or(r,a,o,f),r=a.stateNode;try{var b=a.memoizedProps,_=b.id,R=b.onPostCommit;typeof R=="function"&&R(_,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(V){ut(a,a.return,V)}}else or(r,a,o,f);break;case 31:or(r,a,o,f);break;case 13:or(r,a,o,f);break;case 23:break;case 22:b=a.stateNode,_=a.alternate,a.memoizedState!==null?b._visibility&2?or(r,a,o,f):to(r,a):b._visibility&2?or(r,a,o,f):(b._visibility|=2,Ds(r,a,o,f,(a.subtreeFlags&10256)!==0||!1)),g&2048&&Xh(_,a);break;case 24:or(r,a,o,f),g&2048&&Qh(a.alternate,a);break;default:or(r,a,o,f)}}function Ds(r,a,o,f,g){for(g=g&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var b=r,_=a,R=o,V=f,ne=_.flags;switch(_.tag){case 0:case 11:case 15:Ds(b,_,R,V,g),Jl(8,_);break;case 23:break;case 22:var ce=_.stateNode;_.memoizedState!==null?ce._visibility&2?Ds(b,_,R,V,g):to(b,_):(ce._visibility|=2,Ds(b,_,R,V,g)),g&&ne&2048&&Xh(_.alternate,_);break;case 24:Ds(b,_,R,V,g),g&&ne&2048&&Qh(_.alternate,_);break;default:Ds(b,_,R,V,g)}a=a.sibling}}function to(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=r,f=a,g=f.flags;switch(f.tag){case 22:to(o,f),g&2048&&Xh(f.alternate,f);break;case 24:to(o,f),g&2048&&Qh(f.alternate,f);break;default:to(o,f)}a=a.sibling}}var no=8192;function Is(r,a,o){if(r.subtreeFlags&no)for(r=r.child;r!==null;)Ry(r,a,o),r=r.sibling}function Ry(r,a,o){switch(r.tag){case 26:Is(r,a,o),r.flags&no&&r.memoizedState!==null&&zw(o,lr,r.memoizedState,r.memoizedProps);break;case 5:Is(r,a,o);break;case 3:case 4:var f=lr;lr=Tc(r.stateNode.containerInfo),Is(r,a,o),lr=f;break;case 22:r.memoizedState===null&&(f=r.alternate,f!==null&&f.memoizedState!==null?(f=no,no=16777216,Is(r,a,o),no=f):Is(r,a,o));break;default:Is(r,a,o)}}function Oy(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function ro(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var f=a[o];Gt=f,Dy(f,r)}Oy(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Ly(r),r=r.sibling}function Ly(r){switch(r.tag){case 0:case 11:case 15:ro(r),r.flags&2048&&wi(9,r,r.return);break;case 3:ro(r);break;case 12:ro(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,oc(r)):ro(r);break;default:ro(r)}}function oc(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var f=a[o];Gt=f,Dy(f,r)}Oy(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:wi(8,a,a.return),oc(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,oc(a));break;default:oc(a)}r=r.sibling}}function Dy(r,a){for(;Gt!==null;){var o=Gt;switch(o.tag){case 0:case 11:case 15:wi(8,o,a);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:Ul(o.memoizedState.cache)}if(f=o.child,f!==null)f.return=o,Gt=f;else e:for(o=r;Gt!==null;){f=Gt;var g=f.sibling,b=f.return;if(Sy(f),f===o){Gt=null;break e}if(g!==null){g.return=b,Gt=g;break e}Gt=b}}}var nw={getCacheForType:function(r){var a=tn(It),o=a.data.get(r);return o===void 0&&(o=r(),a.data.set(r,o)),o},cacheSignal:function(){return tn(It).controller.signal}},rw=typeof WeakMap=="function"?WeakMap:Map,st=0,bt=null,$e=null,Xe=0,ot=0,jn=null,Ni=!1,Ms=!1,Wh=!1,Zr=0,wt=0,Ri=0,ka=0,Zh=0,Hn=0,Ps=0,io=null,kn=null,Jh=!1,uc=0,Iy=0,cc=1/0,fc=null,Oi=null,Ft=0,Li=null,Bs=null,Jr=0,em=0,tm=null,My=null,ao=0,nm=null;function Un(){return(st&2)!==0&&Xe!==0?Xe&-Xe:B.T!==null?om():Wg()}function Py(){if(Hn===0)if((Xe&536870912)===0||We){var r=Eu;Eu<<=1,(Eu&3932160)===0&&(Eu=262144),Hn=r}else Hn=536870912;return r=Pn.current,r!==null&&(r.flags|=32),Hn}function wn(r,a,o){(r===bt&&(ot===2||ot===9)||r.cancelPendingCommit!==null)&&(js(r,0),Di(r,Xe,Hn,!1)),Al(r,o),((st&2)===0||r!==bt)&&(r===bt&&((st&2)===0&&(ka|=o),wt===4&&Di(r,Xe,Hn,!1)),xr(r))}function By(r,a,o){if((st&6)!==0)throw Error(i(327));var f=!o&&(a&127)===0&&(a&r.expiredLanes)===0||_l(r,a),g=f?sw(r,a):im(r,a,!0),b=f;do{if(g===0){Ms&&!f&&Di(r,a,0,!1);break}else{if(o=r.current.alternate,b&&!iw(o)){g=im(r,a,!1),b=!1;continue}if(g===2){if(b=a,r.errorRecoveryDisabledLanes&b)var _=0;else _=r.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){a=_;e:{var R=r;g=io;var V=R.current.memoizedState.isDehydrated;if(V&&(js(R,_).flags|=256),_=im(R,_,!1),_!==2){if(Wh&&!V){R.errorRecoveryDisabledLanes|=b,ka|=b,g=4;break e}b=kn,kn=g,b!==null&&(kn===null?kn=b:kn.push.apply(kn,b))}g=_}if(b=!1,g!==2)continue}}if(g===1){js(r,0),Di(r,a,0,!0);break}e:{switch(f=r,b=g,b){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Di(f,a,Hn,!Ni);break e;case 2:kn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(g=uc+300-Je(),10<g)){if(Di(f,a,Hn,!Ni),Tu(f,0,!0)!==0)break e;Jr=a,f.timeoutHandle=mE(jy.bind(null,f,o,kn,fc,Jh,a,Hn,ka,Ps,Ni,b,"Throttled",-0,0),g);break e}jy(f,o,kn,fc,Jh,a,Hn,ka,Ps,Ni,b,null,-0,0)}}break}while(!0);xr(r)}function jy(r,a,o,f,g,b,_,R,V,ne,ce,he,re,ae){if(r.timeoutHandle=-1,he=a.subtreeFlags,he&8192||(he&16785408)===16785408){he={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:jr},Ry(a,b,he);var Ae=(b&62914560)===b?uc-Je():(b&4194048)===b?Iy-Je():0;if(Ae=Fw(he,Ae),Ae!==null){Jr=b,r.cancelPendingCommit=Ae($y.bind(null,r,a,b,o,f,g,_,R,V,ce,he,null,re,ae)),Di(r,b,_,!ne);return}}$y(r,a,b,o,f,g,_,R,V)}function iw(r){for(var a=r;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.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=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Di(r,a,o,f){a&=~Zh,a&=~ka,r.suspendedLanes|=a,r.pingedLanes&=~a,f&&(r.warmLanes|=a),f=r.expirationTimes;for(var g=a;0<g;){var b=31-gt(g),_=1<<b;f[b]=-1,g&=~_}o!==0&&Kg(r,o,a)}function dc(){return(st&6)===0?(so(0),!1):!0}function rm(){if($e!==null){if(ot===0)var r=$e.return;else r=$e,Fr=ya=null,Eh(r),ws=null,Fl=0,r=$e;for(;r!==null;)py(r.alternate,r),r=r.return;$e=null}}function js(r,a){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,Cw(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),Jr=0,rm(),bt=r,$e=o=Ur(r.current,null),Xe=a,ot=0,jn=null,Ni=!1,Ms=_l(r,a),Wh=!1,Ps=Hn=Zh=ka=Ri=wt=0,kn=io=null,Jh=!1,(a&8)!==0&&(a|=a&32);var f=r.entangledLanes;if(f!==0)for(r=r.entanglements,f&=a;0<f;){var g=31-gt(f),b=1<<g;a|=r[g],f&=~b}return Zr=a,Du(),o}function Hy(r,a){je=null,B.H=Ql,a===ks||a===zu?(a=tb(),ot=3):a===lh?(a=tb(),ot=4):ot=a===Mh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,jn=a,$e===null&&(wt=1,tc(r,Kn(a,r.current)))}function Uy(){var r=Pn.current;return r===null?!0:(Xe&4194048)===Xe?Zn===null:(Xe&62914560)===Xe||(Xe&536870912)!==0?r===Zn:!1}function zy(){var r=B.H;return B.H=Ql,r===null?Ql:r}function Fy(){var r=B.A;return B.A=nw,r}function hc(){wt=4,Ni||(Xe&4194048)!==Xe&&Pn.current!==null||(Ms=!0),(Ri&134217727)===0&&(ka&134217727)===0||bt===null||Di(bt,Xe,Hn,!1)}function im(r,a,o){var f=st;st|=2;var g=zy(),b=Fy();(bt!==r||Xe!==a)&&(fc=null,js(r,a)),a=!1;var _=wt;e:do try{if(ot!==0&&$e!==null){var R=$e,V=jn;switch(ot){case 8:rm(),_=6;break e;case 3:case 2:case 9:case 6:Pn.current===null&&(a=!0);var ne=ot;if(ot=0,jn=null,Hs(r,R,V,ne),o&&Ms){_=0;break e}break;default:ne=ot,ot=0,jn=null,Hs(r,R,V,ne)}}aw(),_=wt;break}catch(ce){Hy(r,ce)}while(!0);return a&&r.shellSuspendCounter++,Fr=ya=null,st=f,B.H=g,B.A=b,$e===null&&(bt=null,Xe=0,Du()),_}function aw(){for(;$e!==null;)qy($e)}function sw(r,a){var o=st;st|=2;var f=zy(),g=Fy();bt!==r||Xe!==a?(fc=null,cc=Je()+500,js(r,a)):Ms=_l(r,a);e:do try{if(ot!==0&&$e!==null){a=$e;var b=jn;t:switch(ot){case 1:ot=0,jn=null,Hs(r,a,b,1);break;case 2:case 9:if(J1(b)){ot=0,jn=null,Vy(a);break}a=function(){ot!==2&&ot!==9||bt!==r||(ot=7),xr(r)},b.then(a,a);break e;case 3:ot=7;break e;case 4:ot=5;break e;case 7:J1(b)?(ot=0,jn=null,Vy(a)):(ot=0,jn=null,Hs(r,a,b,7));break;case 5:var _=null;switch($e.tag){case 26:_=$e.memoizedState;case 5:case 27:var R=$e;if(_?NE(_):R.stateNode.complete){ot=0,jn=null;var V=R.sibling;if(V!==null)$e=V;else{var ne=R.return;ne!==null?($e=ne,mc(ne)):$e=null}break t}}ot=0,jn=null,Hs(r,a,b,5);break;case 6:ot=0,jn=null,Hs(r,a,b,6);break;case 8:rm(),wt=6;break e;default:throw Error(i(462))}}lw();break}catch(ce){Hy(r,ce)}while(!0);return Fr=ya=null,B.H=f,B.A=g,st=o,$e!==null?0:(bt=null,Xe=0,Du(),wt)}function lw(){for(;$e!==null&&!At();)qy($e)}function qy(r){var a=hy(r.alternate,r,Zr);r.memoizedProps=r.pendingProps,a===null?mc(r):$e=a}function Vy(r){var a=r,o=a.alternate;switch(a.tag){case 15:case 0:a=ly(o,a,a.pendingProps,a.type,void 0,Xe);break;case 11:a=ly(o,a,a.pendingProps,a.type.render,a.ref,Xe);break;case 5:Eh(a);default:py(o,a),a=$e=F1(a,Zr),a=hy(o,a,Zr)}r.memoizedProps=r.pendingProps,a===null?mc(r):$e=a}function Hs(r,a,o,f){Fr=ya=null,Eh(a),ws=null,Fl=0;var g=a.return;try{if(Xk(r,g,a,o,Xe)){wt=1,tc(r,Kn(o,r.current)),$e=null;return}}catch(b){if(g!==null)throw $e=g,b;wt=1,tc(r,Kn(o,r.current)),$e=null;return}a.flags&32768?(We||f===1?r=!0:Ms||(Xe&536870912)!==0?r=!1:(Ni=r=!0,(f===2||f===9||f===3||f===6)&&(f=Pn.current,f!==null&&f.tag===13&&(f.flags|=16384))),Yy(a,r)):mc(a)}function mc(r){var a=r;do{if((a.flags&32768)!==0){Yy(a,Ni);return}r=a.return;var o=Zk(a.alternate,a,Zr);if(o!==null){$e=o;return}if(a=a.sibling,a!==null){$e=a;return}$e=a=r}while(a!==null);wt===0&&(wt=5)}function Yy(r,a){do{var o=Jk(r.alternate,r);if(o!==null){o.flags&=32767,$e=o;return}if(o=r.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(r=r.sibling,r!==null)){$e=r;return}$e=r=o}while(r!==null);wt=6,$e=null}function $y(r,a,o,f,g,b,_,R,V){r.cancelPendingCommit=null;do pc();while(Ft!==0);if((st&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(b=a.lanes|a.childLanes,b|=$d,UA(r,o,b,_,R,V),r===bt&&($e=bt=null,Xe=0),Bs=a,Li=r,Jr=o,em=b,tm=g,My=f,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,fw(Se,function(){return Wy(),null})):(r.callbackNode=null,r.callbackPriority=0),f=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||f){f=B.T,B.T=null,g=K.p,K.p=2,_=st,st|=4;try{ew(r,a,o)}finally{st=_,K.p=g,B.T=f}}Ft=1,Gy(),Ky(),Xy()}}function Gy(){if(Ft===1){Ft=0;var r=Li,a=Bs,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=B.T,B.T=null;var f=K.p;K.p=2;var g=st;st|=4;try{ky(a,r);var b=gm,_=D1(r.containerInfo),R=b.focusedElem,V=b.selectionRange;if(_!==R&&R&&R.ownerDocument&&L1(R.ownerDocument.documentElement,R)){if(V!==null&&zd(R)){var ne=V.start,ce=V.end;if(ce===void 0&&(ce=ne),"selectionStart"in R)R.selectionStart=ne,R.selectionEnd=Math.min(ce,R.value.length);else{var he=R.ownerDocument||document,re=he&&he.defaultView||window;if(re.getSelection){var ae=re.getSelection(),Ae=R.textContent.length,Oe=Math.min(V.start,Ae),ht=V.end===void 0?Oe:Math.min(V.end,Ae);!ae.extend&&Oe>ht&&(_=ht,ht=Oe,Oe=_);var G=O1(R,Oe),Y=O1(R,ht);if(G&&Y&&(ae.rangeCount!==1||ae.anchorNode!==G.node||ae.anchorOffset!==G.offset||ae.focusNode!==Y.node||ae.focusOffset!==Y.offset)){var te=he.createRange();te.setStart(G.node,G.offset),ae.removeAllRanges(),Oe>ht?(ae.addRange(te),ae.extend(Y.node,Y.offset)):(te.setEnd(Y.node,Y.offset),ae.addRange(te))}}}}for(he=[],ae=R;ae=ae.parentNode;)ae.nodeType===1&&he.push({element:ae,left:ae.scrollLeft,top:ae.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<he.length;R++){var de=he[R];de.element.scrollLeft=de.left,de.element.scrollTop=de.top}}kc=!!pm,gm=pm=null}finally{st=g,K.p=f,B.T=o}}r.current=a,Ft=2}}function Ky(){if(Ft===2){Ft=0;var r=Li,a=Bs,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=B.T,B.T=null;var f=K.p;K.p=2;var g=st;st|=4;try{vy(r,a.alternate,a)}finally{st=g,K.p=f,B.T=o}}Ft=3}}function Xy(){if(Ft===4||Ft===3){Ft=0,Ze();var r=Li,a=Bs,o=Jr,f=My;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Ft=5:(Ft=0,Bs=Li=null,Qy(r,r.pendingLanes));var g=r.pendingLanes;if(g===0&&(Oi=null),vd(o),a=a.stateNode,zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(dn,a,void 0,(a.current.flags&128)===128)}catch{}if(f!==null){a=B.T,g=K.p,K.p=2,B.T=null;try{for(var b=r.onRecoverableError,_=0;_<f.length;_++){var R=f[_];b(R.value,{componentStack:R.stack})}}finally{B.T=a,K.p=g}}(Jr&3)!==0&&pc(),xr(r),g=r.pendingLanes,(o&261930)!==0&&(g&42)!==0?r===nm?ao++:(ao=0,nm=r):ao=0,so(0)}}function Qy(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Ul(a)))}function pc(){return Gy(),Ky(),Xy(),Wy()}function Wy(){if(Ft!==5)return!1;var r=Li,a=em;em=0;var o=vd(Jr),f=B.T,g=K.p;try{K.p=32>o?32:o,B.T=null,o=tm,tm=null;var b=Li,_=Jr;if(Ft=0,Bs=Li=null,Jr=0,(st&6)!==0)throw Error(i(331));var R=st;if(st|=4,Ly(b.current),Ny(b,b.current,_,o),st=R,so(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(dn,b)}catch{}return!0}finally{K.p=g,B.T=f,Qy(r,a)}}function Zy(r,a,o){a=Kn(o,a),a=Ih(r.stateNode,a,2),r=_i(r,a,2),r!==null&&(Al(r,2),xr(r))}function ut(r,a,o){if(r.tag===3)Zy(r,r,o);else for(;a!==null;){if(a.tag===3){Zy(a,r,o);break}else if(a.tag===1){var f=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Oi===null||!Oi.has(f))){r=Kn(o,r),o=Jb(2),f=_i(a,o,2),f!==null&&(ey(o,f,a,r),Al(f,2),xr(f));break}}a=a.return}}function am(r,a,o){var f=r.pingCache;if(f===null){f=r.pingCache=new rw;var g=new Set;f.set(a,g)}else g=f.get(a),g===void 0&&(g=new Set,f.set(a,g));g.has(o)||(Wh=!0,g.add(o),r=ow.bind(null,r,a,o),a.then(r,r))}function ow(r,a,o){var f=r.pingCache;f!==null&&f.delete(a),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,bt===r&&(Xe&o)===o&&(wt===4||wt===3&&(Xe&62914560)===Xe&&300>Je()-uc?(st&2)===0&&js(r,0):Zh|=o,Ps===Xe&&(Ps=0)),xr(r)}function Jy(r,a){a===0&&(a=Gg()),r=pa(r,a),r!==null&&(Al(r,a),xr(r))}function uw(r){var a=r.memoizedState,o=0;a!==null&&(o=a.retryLane),Jy(r,o)}function cw(r,a){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(i(314))}f!==null&&f.delete(a),Jy(r,o)}function fw(r,a){return we(r,a)}var gc=null,Us=null,sm=!1,bc=!1,lm=!1,Ii=0;function xr(r){r!==Us&&r.next===null&&(Us===null?gc=Us=r:Us=Us.next=r),bc=!0,sm||(sm=!0,hw())}function so(r,a){if(!lm&&bc){lm=!0;do for(var o=!1,f=gc;f!==null;){if(r!==0){var g=f.pendingLanes;if(g===0)var b=0;else{var _=f.suspendedLanes,R=f.pingedLanes;b=(1<<31-gt(42|r)+1)-1,b&=g&~(_&~R),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(o=!0,rE(f,b))}else b=Xe,b=Tu(f,f===bt?b:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(b&3)===0||_l(f,b)||(o=!0,rE(f,b));f=f.next}while(o);lm=!1}}function dw(){eE()}function eE(){bc=sm=!1;var r=0;Ii!==0&&Sw()&&(r=Ii);for(var a=Je(),o=null,f=gc;f!==null;){var g=f.next,b=tE(f,a);b===0?(f.next=null,o===null?gc=g:o.next=g,g===null&&(Us=o)):(o=f,(r!==0||(b&3)!==0)&&(bc=!0)),f=g}Ft!==0&&Ft!==5||so(r),Ii!==0&&(Ii=0)}function tE(r,a){for(var o=r.suspendedLanes,f=r.pingedLanes,g=r.expirationTimes,b=r.pendingLanes&-62914561;0<b;){var _=31-gt(b),R=1<<_,V=g[_];V===-1?((R&o)===0||(R&f)!==0)&&(g[_]=HA(R,a)):V<=a&&(r.expiredLanes|=R),b&=~R}if(a=bt,o=Xe,o=Tu(r,r===a?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),f=r.callbackNode,o===0||r===a&&(ot===2||ot===9)||r.cancelPendingCommit!==null)return f!==null&&f!==null&&He(f),r.callbackNode=null,r.callbackPriority=0;if((o&3)===0||_l(r,o)){if(a=o&-o,a===r.callbackPriority)return a;switch(f!==null&&He(f),vd(o)){case 2:case 8:o=Q;break;case 32:o=Se;break;case 268435456:o=Fe;break;default:o=Se}return f=nE.bind(null,r),o=we(o,f),r.callbackPriority=a,r.callbackNode=o,a}return f!==null&&f!==null&&He(f),r.callbackPriority=2,r.callbackNode=null,2}function nE(r,a){if(Ft!==0&&Ft!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(pc()&&r.callbackNode!==o)return null;var f=Xe;return f=Tu(r,r===bt?f:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),f===0?null:(By(r,f,a),tE(r,Je()),r.callbackNode!=null&&r.callbackNode===o?nE.bind(null,r):null)}function rE(r,a){if(pc())return null;By(r,a,!0)}function hw(){_w(function(){(st&6)!==0?we(ue,dw):eE()})}function om(){if(Ii===0){var r=_s;r===0&&(r=yu,yu<<=1,(yu&261888)===0&&(yu=256)),Ii=r}return Ii}function iE(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:_u(""+r)}function aE(r,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,r.id&&o.setAttribute("form",r.id),a.parentNode.insertBefore(o,a),r=new FormData(r),o.parentNode.removeChild(o),r}function mw(r,a,o,f,g){if(a==="submit"&&o&&o.stateNode===g){var b=iE((g[vn]||null).action),_=f.submitter;_&&(a=(a=_[vn]||null)?iE(a.formAction):_.getAttribute("formAction"),a!==null&&(b=a,_=null));var R=new Nu("action","action",null,f,g);r.push({event:R,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(Ii!==0){var V=_?aE(g,_):new FormData(g);wh(o,{pending:!0,data:V,method:g.method,action:b},null,V)}}else typeof b=="function"&&(R.preventDefault(),V=_?aE(g,_):new FormData(g),wh(o,{pending:!0,data:V,method:g.method,action:b},b,V))},currentTarget:g}]})}}for(var um=0;um<Yd.length;um++){var cm=Yd[um],pw=cm.toLowerCase(),gw=cm[0].toUpperCase()+cm.slice(1);sr(pw,"on"+gw)}sr(P1,"onAnimationEnd"),sr(B1,"onAnimationIteration"),sr(j1,"onAnimationStart"),sr("dblclick","onDoubleClick"),sr("focusin","onFocus"),sr("focusout","onBlur"),sr(Lk,"onTransitionRun"),sr(Dk,"onTransitionStart"),sr(Ik,"onTransitionCancel"),sr(H1,"onTransitionEnd"),fs("onMouseEnter",["mouseout","mouseover"]),fs("onMouseLeave",["mouseout","mouseover"]),fs("onPointerEnter",["pointerout","pointerover"]),fs("onPointerLeave",["pointerout","pointerover"]),fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fa("onBeforeInput",["compositionend","keypress","textInput","paste"]),fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lo="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(" "),bw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lo));function sE(r,a){a=(a&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(a)for(var _=f.length-1;0<=_;_--){var R=f[_],V=R.instance,ne=R.currentTarget;if(R=R.listener,V!==b&&g.isPropagationStopped())break e;b=R,g.currentTarget=ne;try{b(g)}catch(ce){Lu(ce)}g.currentTarget=null,b=V}else for(_=0;_<f.length;_++){if(R=f[_],V=R.instance,ne=R.currentTarget,R=R.listener,V!==b&&g.isPropagationStopped())break e;b=R,g.currentTarget=ne;try{b(g)}catch(ce){Lu(ce)}g.currentTarget=null,b=V}}}}function Ge(r,a){var o=a[Sd];o===void 0&&(o=a[Sd]=new Set);var f=r+"__bubble";o.has(f)||(lE(a,r,2,!1),o.add(f))}function fm(r,a,o){var f=0;a&&(f|=4),lE(o,r,f,a)}var yc="_reactListening"+Math.random().toString(36).slice(2);function dm(r){if(!r[yc]){r[yc]=!0,e1.forEach(function(o){o!=="selectionchange"&&(bw.has(o)||fm(o,!1,r),fm(o,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[yc]||(a[yc]=!0,fm("selectionchange",!1,a))}}function lE(r,a,o,f){switch(PE(a)){case 2:var g=Yw;break;case 8:g=$w;break;default:g=km}o=g.bind(null,a,o,r),g=void 0,!Ld||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),f?g!==void 0?r.addEventListener(a,o,{capture:!0,passive:g}):r.addEventListener(a,o,!0):g!==void 0?r.addEventListener(a,o,{passive:g}):r.addEventListener(a,o,!1)}function hm(r,a,o,f,g){var b=f;if((a&1)===0&&(a&2)===0&&f!==null)e:for(;;){if(f===null)return;var _=f.tag;if(_===3||_===4){var R=f.stateNode.containerInfo;if(R===g)break;if(_===4)for(_=f.return;_!==null;){var V=_.tag;if((V===3||V===4)&&_.stateNode.containerInfo===g)return;_=_.return}for(;R!==null;){if(_=os(R),_===null)return;if(V=_.tag,V===5||V===6||V===26||V===27){f=b=_;continue e}R=R.parentNode}}f=f.return}d1(function(){var ne=b,ce=Rd(o),he=[];e:{var re=U1.get(r);if(re!==void 0){var ae=Nu,Ae=r;switch(r){case"keypress":if(ku(o)===0)break e;case"keydown":case"keyup":ae=ck;break;case"focusin":Ae="focus",ae=Pd;break;case"focusout":Ae="blur",ae=Pd;break;case"beforeblur":case"afterblur":ae=Pd;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":ae=p1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=ZA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=hk;break;case P1:case B1:case j1:ae=tk;break;case H1:ae=pk;break;case"scroll":case"scrollend":ae=QA;break;case"wheel":ae=bk;break;case"copy":case"cut":case"paste":ae=rk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=b1;break;case"toggle":case"beforetoggle":ae=Ek}var Oe=(a&4)!==0,ht=!Oe&&(r==="scroll"||r==="scrollend"),G=Oe?re!==null?re+"Capture":null:re;Oe=[];for(var Y=ne,te;Y!==null;){var de=Y;if(te=de.stateNode,de=de.tag,de!==5&&de!==26&&de!==27||te===null||G===null||(de=Nl(Y,G),de!=null&&Oe.push(oo(Y,de,te))),ht)break;Y=Y.return}0<Oe.length&&(re=new ae(re,Ae,null,o,ce),he.push({event:re,listeners:Oe}))}}if((a&7)===0){e:{if(re=r==="mouseover"||r==="pointerover",ae=r==="mouseout"||r==="pointerout",re&&o!==Nd&&(Ae=o.relatedTarget||o.fromElement)&&(os(Ae)||Ae[ls]))break e;if((ae||re)&&(re=ce.window===ce?ce:(re=ce.ownerDocument)?re.defaultView||re.parentWindow:window,ae?(Ae=o.relatedTarget||o.toElement,ae=ne,Ae=Ae?os(Ae):null,Ae!==null&&(ht=l(Ae),Oe=Ae.tag,Ae!==ht||Oe!==5&&Oe!==27&&Oe!==6)&&(Ae=null)):(ae=null,Ae=ne),ae!==Ae)){if(Oe=p1,de="onMouseLeave",G="onMouseEnter",Y="mouse",(r==="pointerout"||r==="pointerover")&&(Oe=b1,de="onPointerLeave",G="onPointerEnter",Y="pointer"),ht=ae==null?re:wl(ae),te=Ae==null?re:wl(Ae),re=new Oe(de,Y+"leave",ae,o,ce),re.target=ht,re.relatedTarget=te,de=null,os(ce)===ne&&(Oe=new Oe(G,Y+"enter",Ae,o,ce),Oe.target=te,Oe.relatedTarget=ht,de=Oe),ht=de,ae&&Ae)t:{for(Oe=yw,G=ae,Y=Ae,te=0,de=G;de;de=Oe(de))te++;de=0;for(var Ne=Y;Ne;Ne=Oe(Ne))de++;for(;0<te-de;)G=Oe(G),te--;for(;0<de-te;)Y=Oe(Y),de--;for(;te--;){if(G===Y||Y!==null&&G===Y.alternate){Oe=G;break t}G=Oe(G),Y=Oe(Y)}Oe=null}else Oe=null;ae!==null&&oE(he,re,ae,Oe,!1),Ae!==null&&ht!==null&&oE(he,ht,Ae,Oe,!0)}}e:{if(re=ne?wl(ne):window,ae=re.nodeName&&re.nodeName.toLowerCase(),ae==="select"||ae==="input"&&re.type==="file")var it=_1;else if(S1(re))if(A1)it=Nk;else{it=kk;var ke=Ak}else ae=re.nodeName,!ae||ae.toLowerCase()!=="input"||re.type!=="checkbox"&&re.type!=="radio"?ne&&wd(ne.elementType)&&(it=_1):it=wk;if(it&&(it=it(r,ne))){C1(he,it,o,ce);break e}ke&&ke(r,re,ne),r==="focusout"&&ne&&re.type==="number"&&ne.memoizedProps.value!=null&&kd(re,"number",re.value)}switch(ke=ne?wl(ne):window,r){case"focusin":(S1(ke)||ke.contentEditable==="true")&&(bs=ke,Fd=ne,Bl=null);break;case"focusout":Bl=Fd=bs=null;break;case"mousedown":qd=!0;break;case"contextmenu":case"mouseup":case"dragend":qd=!1,I1(he,o,ce);break;case"selectionchange":if(Ok)break;case"keydown":case"keyup":I1(he,o,ce)}var Ue;if(jd)e:{switch(r){case"compositionstart":var Qe="onCompositionStart";break e;case"compositionend":Qe="onCompositionEnd";break e;case"compositionupdate":Qe="onCompositionUpdate";break e}Qe=void 0}else gs?T1(r,o)&&(Qe="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(Qe="onCompositionStart");Qe&&(y1&&o.locale!=="ko"&&(gs||Qe!=="onCompositionStart"?Qe==="onCompositionEnd"&&gs&&(Ue=h1()):(yi=ce,Dd="value"in yi?yi.value:yi.textContent,gs=!0)),ke=Ec(ne,Qe),0<ke.length&&(Qe=new g1(Qe,r,null,o,ce),he.push({event:Qe,listeners:ke}),Ue?Qe.data=Ue:(Ue=v1(o),Ue!==null&&(Qe.data=Ue)))),(Ue=Tk?vk(r,o):Sk(r,o))&&(Qe=Ec(ne,"onBeforeInput"),0<Qe.length&&(ke=new g1("onBeforeInput","beforeinput",null,o,ce),he.push({event:ke,listeners:Qe}),ke.data=Ue)),mw(he,r,ne,o,ce)}sE(he,a)})}function oo(r,a,o){return{instance:r,listener:a,currentTarget:o}}function Ec(r,a){for(var o=a+"Capture",f=[];r!==null;){var g=r,b=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||b===null||(g=Nl(r,o),g!=null&&f.unshift(oo(r,g,b)),g=Nl(r,a),g!=null&&f.push(oo(r,g,b))),r.tag===3)return f;r=r.return}return[]}function yw(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function oE(r,a,o,f,g){for(var b=a._reactName,_=[];o!==null&&o!==f;){var R=o,V=R.alternate,ne=R.stateNode;if(R=R.tag,V!==null&&V===f)break;R!==5&&R!==26&&R!==27||ne===null||(V=ne,g?(ne=Nl(o,b),ne!=null&&_.unshift(oo(o,ne,V))):g||(ne=Nl(o,b),ne!=null&&_.push(oo(o,ne,V)))),o=o.return}_.length!==0&&r.push({event:a,listeners:_})}var Ew=/\r\n?/g,xw=/\u0000|\uFFFD/g;function uE(r){return(typeof r=="string"?r:""+r).replace(Ew,`
|
|
9
|
+
`).replace(xw,"")}function cE(r,a){return a=uE(a),uE(r)===a}function dt(r,a,o,f,g,b){switch(o){case"children":typeof f=="string"?a==="body"||a==="textarea"&&f===""||hs(r,f):(typeof f=="number"||typeof f=="bigint")&&a!=="body"&&hs(r,""+f);break;case"className":Su(r,"class",f);break;case"tabIndex":Su(r,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":Su(r,o,f);break;case"style":c1(r,f,b);break;case"data":if(a!=="object"){Su(r,"data",f);break}case"src":case"href":if(f===""&&(a!=="a"||o!=="href")){r.removeAttribute(o);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){r.removeAttribute(o);break}f=_u(""+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"?(a!=="input"&&dt(r,a,"name",g.name,g,null),dt(r,a,"formEncType",g.formEncType,g,null),dt(r,a,"formMethod",g.formMethod,g,null),dt(r,a,"formTarget",g.formTarget,g,null)):(dt(r,a,"encType",g.encType,g,null),dt(r,a,"method",g.method,g,null),dt(r,a,"target",g.target,g,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){r.removeAttribute(o);break}f=_u(""+f),r.setAttribute(o,f);break;case"onClick":f!=null&&(r.onclick=jr);break;case"onScroll":f!=null&&Ge("scroll",r);break;case"onScrollEnd":f!=null&&Ge("scrollend",r);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(i(61));if(o=f.__html,o!=null){if(g.children!=null)throw Error(i(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=_u(""+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":Ge("beforetoggle",r),Ge("toggle",r),vu(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":vu(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=KA.get(o)||o,vu(r,o,f))}}function mm(r,a,o,f,g,b){switch(o){case"style":c1(r,f,b);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(i(61));if(o=f.__html,o!=null){if(g.children!=null)throw Error(i(60));r.innerHTML=o}}break;case"children":typeof f=="string"?hs(r,f):(typeof f=="number"||typeof f=="bigint")&&hs(r,""+f);break;case"onScroll":f!=null&&Ge("scroll",r);break;case"onScrollEnd":f!=null&&Ge("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(!t1.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(g=o.endsWith("Capture"),a=o.slice(2,g?o.length-7:void 0),b=r[vn]||null,b=b!=null?b[o]:null,typeof b=="function"&&r.removeEventListener(a,b,g),typeof f=="function")){typeof b!="function"&&b!==null&&(o in r?r[o]=null:r.hasAttribute(o)&&r.removeAttribute(o)),r.addEventListener(a,f,g);break e}o in r?r[o]=f:f===!0?r.setAttribute(o,""):vu(r,o,f)}}}function rn(r,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",r),Ge("load",r);var f=!1,g=!1,b;for(b in o)if(o.hasOwnProperty(b)){var _=o[b];if(_!=null)switch(b){case"src":f=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:dt(r,a,b,_,o,null)}}g&&dt(r,a,"srcSet",o.srcSet,o,null),f&&dt(r,a,"src",o.src,o,null);return;case"input":Ge("invalid",r);var R=b=_=g=null,V=null,ne=null;for(f in o)if(o.hasOwnProperty(f)){var ce=o[f];if(ce!=null)switch(f){case"name":g=ce;break;case"type":_=ce;break;case"checked":V=ce;break;case"defaultChecked":ne=ce;break;case"value":b=ce;break;case"defaultValue":R=ce;break;case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(i(137,a));break;default:dt(r,a,f,ce,o,null)}}s1(r,b,R,V,ne,_,g,!1);return;case"select":Ge("invalid",r),f=_=b=null;for(g in o)if(o.hasOwnProperty(g)&&(R=o[g],R!=null))switch(g){case"value":b=R;break;case"defaultValue":_=R;break;case"multiple":f=R;default:dt(r,a,g,R,o,null)}a=b,o=_,r.multiple=!!f,a!=null?ds(r,!!f,a,!1):o!=null&&ds(r,!!f,o,!0);return;case"textarea":Ge("invalid",r),b=g=f=null;for(_ in o)if(o.hasOwnProperty(_)&&(R=o[_],R!=null))switch(_){case"value":f=R;break;case"defaultValue":g=R;break;case"children":b=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:dt(r,a,_,R,o,null)}o1(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":dt(r,a,V,f,o,null));return;case"dialog":Ge("beforetoggle",r),Ge("toggle",r),Ge("cancel",r),Ge("close",r);break;case"iframe":case"object":Ge("load",r);break;case"video":case"audio":for(f=0;f<lo.length;f++)Ge(lo[f],r);break;case"image":Ge("error",r),Ge("load",r);break;case"details":Ge("toggle",r);break;case"embed":case"source":case"link":Ge("error",r),Ge("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(i(137,a));default:dt(r,a,ne,f,o,null)}return;default:if(wd(a)){for(ce in o)o.hasOwnProperty(ce)&&(f=o[ce],f!==void 0&&mm(r,a,ce,f,o,void 0));return}}for(R in o)o.hasOwnProperty(R)&&(f=o[R],f!=null&&dt(r,a,R,f,o,null))}function Tw(r,a,o,f){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,b=null,_=null,R=null,V=null,ne=null,ce=null;for(ae in o){var he=o[ae];if(o.hasOwnProperty(ae)&&he!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":V=he;default:f.hasOwnProperty(ae)||dt(r,a,ae,null,f,he)}}for(var re in f){var ae=f[re];if(he=o[re],f.hasOwnProperty(re)&&(ae!=null||he!=null))switch(re){case"type":b=ae;break;case"name":g=ae;break;case"checked":ne=ae;break;case"defaultChecked":ce=ae;break;case"value":_=ae;break;case"defaultValue":R=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(i(137,a));break;default:ae!==he&&dt(r,a,re,ae,f,he)}}Ad(r,_,R,V,ne,ce,b,g);return;case"select":ae=_=R=re=null;for(b in o)if(V=o[b],o.hasOwnProperty(b)&&V!=null)switch(b){case"value":break;case"multiple":ae=V;default:f.hasOwnProperty(b)||dt(r,a,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":R=b;break;case"multiple":_=b;default:b!==V&&dt(r,a,g,b,f,V)}a=R,o=_,f=ae,re!=null?ds(r,!!o,re,!1):!!f!=!!o&&(a!=null?ds(r,!!o,a,!0):ds(r,!!o,o?[]:"",!1));return;case"textarea":ae=re=null;for(R in o)if(g=o[R],o.hasOwnProperty(R)&&g!=null&&!f.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:dt(r,a,R,null,f,g)}for(_ in f)if(g=f[_],b=o[_],f.hasOwnProperty(_)&&(g!=null||b!=null))switch(_){case"value":re=g;break;case"defaultValue":ae=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(i(91));break;default:g!==b&&dt(r,a,_,g,f,b)}l1(r,re,ae);return;case"option":for(var Ae in o)re=o[Ae],o.hasOwnProperty(Ae)&&re!=null&&!f.hasOwnProperty(Ae)&&(Ae==="selected"?r.selected=!1:dt(r,a,Ae,null,f,re));for(V in f)re=f[V],ae=o[V],f.hasOwnProperty(V)&&re!==ae&&(re!=null||ae!=null)&&(V==="selected"?r.selected=re&&typeof re!="function"&&typeof re!="symbol":dt(r,a,V,re,f,ae));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 Oe in o)re=o[Oe],o.hasOwnProperty(Oe)&&re!=null&&!f.hasOwnProperty(Oe)&&dt(r,a,Oe,null,f,re);for(ne in f)if(re=f[ne],ae=o[ne],f.hasOwnProperty(ne)&&re!==ae&&(re!=null||ae!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(i(137,a));break;default:dt(r,a,ne,re,f,ae)}return;default:if(wd(a)){for(var ht in o)re=o[ht],o.hasOwnProperty(ht)&&re!==void 0&&!f.hasOwnProperty(ht)&&mm(r,a,ht,void 0,f,re);for(ce in f)re=f[ce],ae=o[ce],!f.hasOwnProperty(ce)||re===ae||re===void 0&&ae===void 0||mm(r,a,ce,re,f,ae);return}}for(var G in o)re=o[G],o.hasOwnProperty(G)&&re!=null&&!f.hasOwnProperty(G)&&dt(r,a,G,null,f,re);for(he in f)re=f[he],ae=o[he],!f.hasOwnProperty(he)||re===ae||re==null&&ae==null||dt(r,a,he,re,f,ae)}function fE(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function vw(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,o=performance.getEntriesByType("resource"),f=0;f<o.length;f++){var g=o[f],b=g.transferSize,_=g.initiatorType,R=g.duration;if(b&&R&&fE(_)){for(_=0,R=g.responseEnd,f+=1;f<o.length;f++){var V=o[f],ne=V.startTime;if(ne>R)break;var ce=V.transferSize,he=V.initiatorType;ce&&fE(he)&&(V=V.responseEnd,_+=ce*(V<R?1:(R-ne)/(V-ne)))}if(--f,a+=8*(b+_)/(g.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var pm=null,gm=null;function xc(r){return r.nodeType===9?r:r.ownerDocument}function dE(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 hE(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function bm(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var ym=null;function Sw(){var r=window.event;return r&&r.type==="popstate"?r===ym?!1:(ym=r,!0):(ym=null,!1)}var mE=typeof setTimeout=="function"?setTimeout:void 0,Cw=typeof clearTimeout=="function"?clearTimeout:void 0,pE=typeof Promise=="function"?Promise:void 0,_w=typeof queueMicrotask=="function"?queueMicrotask:typeof pE<"u"?function(r){return pE.resolve(null).then(r).catch(Aw)}:mE;function Aw(r){setTimeout(function(){throw r})}function Mi(r){return r==="head"}function gE(r,a){var o=a,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),Vs(a);return}f--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")f++;else if(o==="html")uo(r.ownerDocument.documentElement);else if(o==="head"){o=r.ownerDocument.head,uo(o);for(var b=o.firstChild;b;){var _=b.nextSibling,R=b.nodeName;b[kl]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&b.rel.toLowerCase()==="stylesheet"||o.removeChild(b),b=_}}else o==="body"&&uo(r.ownerDocument.body);o=g}while(o);Vs(a)}function bE(r,a){var o=r;r=0;do{var f=o.nextSibling;if(o.nodeType===1?a?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(a?(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 Em(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Em(o),Cd(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function kw(r,a,o,f){for(;r.nodeType===1;){var g=o;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!f&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(f){if(!r[kl])switch(a){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(a==="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 ww(r,a,o){if(a==="")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 yE(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Jn(r.nextSibling),r===null))return null;return r}function xm(r){return r.data==="$?"||r.data==="$~"}function Tm(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function Nw(r,a){var o=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||o.readyState!=="loading")a();else{var f=function(){a(),o.removeEventListener("DOMContentLoaded",f)};o.addEventListener("DOMContentLoaded",f),r._reactRetry=f}}function Jn(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var vm=null;function EE(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"||o==="/&"){if(a===0)return Jn(r.nextSibling);a--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||a++}r=r.nextSibling}return null}function xE(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(a===0)return r;a--}else o!=="/$"&&o!=="/&"||a++}r=r.previousSibling}return null}function TE(r,a,o){switch(a=xc(o),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function uo(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);Cd(r)}var er=new Map,vE=new Set;function Tc(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var ei=K.d;K.d={f:Rw,r:Ow,D:Lw,C:Dw,L:Iw,m:Mw,X:Bw,S:Pw,M:jw};function Rw(){var r=ei.f(),a=dc();return r||a}function Ow(r){var a=us(r);a!==null&&a.tag===5&&a.type==="form"?Hb(a):ei.r(r)}var zs=typeof document>"u"?null:document;function SE(r,a,o){var f=zs;if(f&&typeof a=="string"&&a){var g=$n(a);g='link[rel="'+r+'"][href="'+g+'"]',typeof o=="string"&&(g+='[crossorigin="'+o+'"]'),vE.has(g)||(vE.add(g),r={rel:r,crossOrigin:o,href:a},f.querySelector(g)===null&&(a=f.createElement("link"),rn(a,"link",r),$t(a),f.head.appendChild(a)))}}function Lw(r){ei.D(r),SE("dns-prefetch",r,null)}function Dw(r,a){ei.C(r,a),SE("preconnect",r,a)}function Iw(r,a,o){ei.L(r,a,o);var f=zs;if(f&&r&&a){var g='link[rel="preload"][as="'+$n(a)+'"]';a==="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(a){case"style":b=Fs(r);break;case"script":b=qs(r)}er.has(b)||(r=p({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:r,as:a},o),er.set(b,r),f.querySelector(g)!==null||a==="style"&&f.querySelector(co(b))||a==="script"&&f.querySelector(fo(b))||(a=f.createElement("link"),rn(a,"link",r),$t(a),f.head.appendChild(a)))}}function Mw(r,a){ei.m(r,a);var o=zs;if(o&&r){var f=a&&typeof a.as=="string"?a.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=qs(r)}if(!er.has(b)&&(r=p({rel:"modulepreload",href:r},a),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(fo(b)))return}f=o.createElement("link"),rn(f,"link",r),$t(f),o.head.appendChild(f)}}}function Pw(r,a,o){ei.S(r,a,o);var f=zs;if(f&&r){var g=cs(f).hoistableStyles,b=Fs(r);a=a||"default";var _=g.get(b);if(!_){var R={loading:0,preload:null};if(_=f.querySelector(co(b)))R.loading=5;else{r=p({rel:"stylesheet",href:r,"data-precedence":a},o),(o=er.get(b))&&Sm(r,o);var V=_=f.createElement("link");$t(V),rn(V,"link",r),V._p=new Promise(function(ne,ce){V.onload=ne,V.onerror=ce}),V.addEventListener("load",function(){R.loading|=1}),V.addEventListener("error",function(){R.loading|=2}),R.loading|=4,vc(_,a,f)}_={type:"stylesheet",instance:_,count:1,state:R},g.set(b,_)}}}function Bw(r,a){ei.X(r,a);var o=zs;if(o&&r){var f=cs(o).hoistableScripts,g=qs(r),b=f.get(g);b||(b=o.querySelector(fo(g)),b||(r=p({src:r,async:!0},a),(a=er.get(g))&&Cm(r,a),b=o.createElement("script"),$t(b),rn(b,"link",r),o.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},f.set(g,b))}}function jw(r,a){ei.M(r,a);var o=zs;if(o&&r){var f=cs(o).hoistableScripts,g=qs(r),b=f.get(g);b||(b=o.querySelector(fo(g)),b||(r=p({src:r,async:!0,type:"module"},a),(a=er.get(g))&&Cm(r,a),b=o.createElement("script"),$t(b),rn(b,"link",r),o.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},f.set(g,b))}}function CE(r,a,o,f){var g=(g=W.current)?Tc(g):null;if(!g)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=Fs(o.href),o=cs(g).hoistableStyles,f=o.get(a),f||(f={type:"style",instance:null,count:0,state:null},o.set(a,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=Fs(o.href);var b=cs(g).hoistableStyles,_=b.get(r);if(_||(g=g.ownerDocument||g,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(r,_),(b=g.querySelector(co(r)))&&!b._p&&(_.instance=b,_.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||Hw(g,r,o,_.state))),a&&f===null)throw Error(i(528,""));return _}if(a&&f!==null)throw Error(i(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=qs(o),o=cs(g).hoistableScripts,f=o.get(a),f||(f={type:"script",instance:null,count:0,state:null},o.set(a,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function Fs(r){return'href="'+$n(r)+'"'}function co(r){return'link[rel="stylesheet"]['+r+"]"}function _E(r){return p({},r,{"data-precedence":r.precedence,precedence:null})}function Hw(r,a,o,f){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?f.loading=1:(a=r.createElement("link"),f.preload=a,a.addEventListener("load",function(){return f.loading|=1}),a.addEventListener("error",function(){return f.loading|=2}),rn(a,"link",o),$t(a),r.head.appendChild(a))}function qs(r){return'[src="'+$n(r)+'"]'}function fo(r){return"script[async]"+r}function AE(r,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var f=r.querySelector('style[data-href~="'+$n(o.href)+'"]');if(f)return a.instance=f,$t(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"),$t(f),rn(f,"style",g),vc(f,o.precedence,r),a.instance=f;case"stylesheet":g=Fs(o.href);var b=r.querySelector(co(g));if(b)return a.state.loading|=4,a.instance=b,$t(b),b;f=_E(o),(g=er.get(g))&&Sm(f,g),b=(r.ownerDocument||r).createElement("link"),$t(b);var _=b;return _._p=new Promise(function(R,V){_.onload=R,_.onerror=V}),rn(b,"link",f),a.state.loading|=4,vc(b,o.precedence,r),a.instance=b;case"script":return b=qs(o.src),(g=r.querySelector(fo(b)))?(a.instance=g,$t(g),g):(f=o,(g=er.get(b))&&(f=p({},o),Cm(f,g)),r=r.ownerDocument||r,g=r.createElement("script"),$t(g),rn(g,"link",f),r.head.appendChild(g),a.instance=g);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(f=a.instance,a.state.loading|=4,vc(f,o.precedence,r));return a.instance}function vc(r,a,o){for(var f=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=f.length?f[f.length-1]:null,b=g,_=0;_<f.length;_++){var R=f[_];if(R.dataset.precedence===a)b=R;else if(b!==g)break}b?b.parentNode.insertBefore(r,b.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(r,a.firstChild))}function Sm(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function Cm(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var Sc=null;function kE(r,a,o){if(Sc===null){var f=new Map,g=Sc=new Map;g.set(o,f)}else g=Sc,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[kl]||b[Jt]||r==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var _=b.getAttribute(a)||"";_=r+_;var R=f.get(_);R?R.push(b):f.set(_,[b])}}return f}function wE(r,a,o){r=r.ownerDocument||r,r.head.insertBefore(o,a==="title"?r.querySelector("head > title"):null)}function Uw(r,a,o){if(o===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(r=a.disabled,typeof a.precedence=="string"&&r==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function NE(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function zw(r,a,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=Fs(f.href),b=a.querySelector(co(g));if(b){a=b._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=Cc.bind(r),a.then(r,r)),o.state.loading|=4,o.instance=b,$t(b);return}b=a.ownerDocument||a,f=_E(f),(g=er.get(g))&&Sm(f,g),b=b.createElement("link"),$t(b);var _=b;_._p=new Promise(function(R,V){_.onload=R,_.onerror=V}),rn(b,"link",f),o.instance=b}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(o,a),(a=o.state.preload)&&(o.state.loading&3)===0&&(r.count++,o=Cc.bind(r),a.addEventListener("load",o),a.addEventListener("error",o))}}var _m=0;function Fw(r,a){return r.stylesheets&&r.count===0&&Ac(r,r.stylesheets),0<r.count||0<r.imgCount?function(o){var f=setTimeout(function(){if(r.stylesheets&&Ac(r,r.stylesheets),r.unsuspend){var b=r.unsuspend;r.unsuspend=null,b()}},6e4+a);0<r.imgBytes&&_m===0&&(_m=62500*vw());var g=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Ac(r,r.stylesheets),r.unsuspend)){var b=r.unsuspend;r.unsuspend=null,b()}},(r.imgBytes>_m?50:800)+a);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(f),clearTimeout(g)}}:null}function Cc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ac(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var _c=null;function Ac(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,_c=new Map,a.forEach(qw,r),_c=null,Cc.call(r))}function qw(r,a){if(!(a.state.loading&4)){var o=_c.get(r);if(o)var f=o.get(null);else{o=new Map,_c.set(r,o);for(var g=r.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<g.length;b++){var _=g[b];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(o.set(_.dataset.precedence,_),f=_)}f&&o.set(null,f)}g=a.instance,_=g.getAttribute("data-precedence"),b=o.get(_)||f,b===f&&o.set(null,g),o.set(_,g),this.count++,f=Cc.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)),a.state.loading|=4}}var ho={$$typeof:w,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function Vw(r,a,o,f,g,b,_,R,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=xd(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xd(0),this.hiddenUpdates=xd(null),this.identifierPrefix=f,this.onUncaughtError=g,this.onCaughtError=b,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=V,this.incompleteTransitions=new Map}function RE(r,a,o,f,g,b,_,R,V,ne,ce,he){return r=new Vw(r,a,o,_,V,ne,ce,he,R),a=1,b===!0&&(a|=24),b=Mn(3,null,null,a),r.current=b,b.stateNode=r,a=ih(),a.refCount++,r.pooledCache=a,a.refCount++,b.memoizedState={element:f,isDehydrated:o,cache:a},oh(b),r}function OE(r){return r?(r=xs,r):xs}function LE(r,a,o,f,g,b){g=OE(g),f.context===null?f.context=g:f.pendingContext=g,f=Ci(a),f.payload={element:o},b=b===void 0?null:b,b!==null&&(f.callback=b),o=_i(r,f,a),o!==null&&(wn(o,r,a),Vl(o,r,a))}function DE(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<a?o:a}}function Am(r,a){DE(r,a),(r=r.alternate)&&DE(r,a)}function IE(r){if(r.tag===13||r.tag===31){var a=pa(r,67108864);a!==null&&wn(a,r,67108864),Am(r,67108864)}}function ME(r){if(r.tag===13||r.tag===31){var a=Un();a=Td(a);var o=pa(r,a);o!==null&&wn(o,r,a),Am(r,a)}}var kc=!0;function Yw(r,a,o,f){var g=B.T;B.T=null;var b=K.p;try{K.p=2,km(r,a,o,f)}finally{K.p=b,B.T=g}}function $w(r,a,o,f){var g=B.T;B.T=null;var b=K.p;try{K.p=8,km(r,a,o,f)}finally{K.p=b,B.T=g}}function km(r,a,o,f){if(kc){var g=wm(f);if(g===null)hm(r,a,f,wc,o),BE(r,f);else if(Kw(g,r,a,o,f))f.stopPropagation();else if(BE(r,f),a&4&&-1<Gw.indexOf(r)){for(;g!==null;){var b=us(g);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var _=ca(b.pendingLanes);if(_!==0){var R=b;for(R.pendingLanes|=2,R.entangledLanes|=2;_;){var V=1<<31-gt(_);R.entanglements[1]|=V,_&=~V}xr(b),(st&6)===0&&(cc=Je()+500,so(0))}}break;case 31:case 13:R=pa(b,2),R!==null&&wn(R,b,2),dc(),Am(b,2)}if(b=wm(f),b===null&&hm(r,a,f,wc,o),b===g)break;g=b}g!==null&&f.stopPropagation()}else hm(r,a,f,null,o)}}function wm(r){return r=Rd(r),Nm(r)}var wc=null;function Nm(r){if(wc=null,r=os(r),r!==null){var a=l(r);if(a===null)r=null;else{var o=a.tag;if(o===13){if(r=u(a),r!==null)return r;r=null}else if(o===31){if(r=c(a),r!==null)return r;r=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return wc=r,null}function PE(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(sn()){case ue:return 2;case Q:return 8;case Se:case Ie:return 32;case Fe:return 268435456;default:return 32}default:return 32}}var Rm=!1,Pi=null,Bi=null,ji=null,mo=new Map,po=new Map,Hi=[],Gw="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 BE(r,a){switch(r){case"focusin":case"focusout":Pi=null;break;case"dragenter":case"dragleave":Bi=null;break;case"mouseover":case"mouseout":ji=null;break;case"pointerover":case"pointerout":mo.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":po.delete(a.pointerId)}}function go(r,a,o,f,g,b){return r===null||r.nativeEvent!==b?(r={blockedOn:a,domEventName:o,eventSystemFlags:f,nativeEvent:b,targetContainers:[g]},a!==null&&(a=us(a),a!==null&&IE(a)),r):(r.eventSystemFlags|=f,a=r.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),r)}function Kw(r,a,o,f,g){switch(a){case"focusin":return Pi=go(Pi,r,a,o,f,g),!0;case"dragenter":return Bi=go(Bi,r,a,o,f,g),!0;case"mouseover":return ji=go(ji,r,a,o,f,g),!0;case"pointerover":var b=g.pointerId;return mo.set(b,go(mo.get(b)||null,r,a,o,f,g)),!0;case"gotpointercapture":return b=g.pointerId,po.set(b,go(po.get(b)||null,r,a,o,f,g)),!0}return!1}function jE(r){var a=os(r.target);if(a!==null){var o=l(a);if(o!==null){if(a=o.tag,a===13){if(a=u(o),a!==null){r.blockedOn=a,Zg(r.priority,function(){ME(o)});return}}else if(a===31){if(a=c(o),a!==null){r.blockedOn=a,Zg(r.priority,function(){ME(o)});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Nc(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var o=wm(r.nativeEvent);if(o===null){o=r.nativeEvent;var f=new o.constructor(o.type,o);Nd=f,o.target.dispatchEvent(f),Nd=null}else return a=us(o),a!==null&&IE(a),r.blockedOn=o,!1;a.shift()}return!0}function HE(r,a,o){Nc(r)&&o.delete(a)}function Xw(){Rm=!1,Pi!==null&&Nc(Pi)&&(Pi=null),Bi!==null&&Nc(Bi)&&(Bi=null),ji!==null&&Nc(ji)&&(ji=null),mo.forEach(HE),po.forEach(HE)}function Rc(r,a){r.blockedOn===a&&(r.blockedOn=null,Rm||(Rm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Xw)))}var Oc=null;function UE(r){Oc!==r&&(Oc=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Oc===r&&(Oc=null);for(var a=0;a<r.length;a+=3){var o=r[a],f=r[a+1],g=r[a+2];if(typeof f!="function"){if(Nm(f||o)===null)continue;break}var b=us(o);b!==null&&(r.splice(a,3),a-=3,wh(b,{pending:!0,data:g,method:o.method,action:f},f,g))}}))}function Vs(r){function a(V){return Rc(V,r)}Pi!==null&&Rc(Pi,r),Bi!==null&&Rc(Bi,r),ji!==null&&Rc(ji,r),mo.forEach(a),po.forEach(a);for(var o=0;o<Hi.length;o++){var f=Hi[o];f.blockedOn===r&&(f.blockedOn=null)}for(;0<Hi.length&&(o=Hi[0],o.blockedOn===null);)jE(o),o.blockedOn===null&&Hi.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],_=g[vn]||null;if(typeof b=="function")_||UE(o);else if(_){var R=null;if(b&&b.hasAttribute("formAction")){if(g=b,_=b[vn]||null)R=_.formAction;else if(Nm(g)!==null)continue}else R=_.action;typeof R=="function"?o[f+1]=R:(o.splice(f,3),f-=3),UE(o)}}}function zE(){function r(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(_){return g=_})},focusReset:"manual",scroll:"manual"})}function a(){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",a),navigation.addEventListener("navigateerror",a),setTimeout(o,100),function(){f=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),g!==null&&(g(),g=null)}}}function Om(r){this._internalRoot=r}Lc.prototype.render=Om.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var o=a.current,f=Un();LE(o,f,r,a,null,null)},Lc.prototype.unmount=Om.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;LE(r.current,2,null,r,null,null),dc(),a[ls]=null}};function Lc(r){this._internalRoot=r}Lc.prototype.unstable_scheduleHydration=function(r){if(r){var a=Wg();r={blockedOn:null,target:r,priority:a};for(var o=0;o<Hi.length&&a!==0&&a<Hi[o].priority;o++);Hi.splice(o,0,r),o===0&&jE(r)}};var FE=t.version;if(FE!=="19.2.8")throw Error(i(527,FE,"19.2.8"));K.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=h(a),r=r!==null?m(r):null,r=r===null?null:r.stateNode,r};var Qw={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dc.isDisabled&&Dc.supportsFiber)try{dn=Dc.inject(Qw),zt=Dc}catch{}}return yo.createRoot=function(r,a){if(!s(r))throw Error(i(299));var o=!1,f="",g=Xb,b=Qb,_=Wb;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(f=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError)),a=RE(r,1,!1,null,null,o,f,null,g,b,_,zE),r[ls]=a.current,dm(r),new Om(a)},yo.hydrateRoot=function(r,a,o){if(!s(r))throw Error(i(299));var f=!1,g="",b=Xb,_=Qb,R=Wb,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&&(_=o.onCaughtError),o.onRecoverableError!==void 0&&(R=o.onRecoverableError),o.formState!==void 0&&(V=o.formState)),a=RE(r,1,!0,a,o??null,f,g,V,b,_,R,zE),a.context=OE(null),o=a.current,f=Un(),f=Td(f),g=Ci(f),g.callback=null,_i(o,g,f),o=f,a.current.lanes=o,Al(a,o),xr(a),r[ls]=a.current,dm(r),new Lc(a)},yo.version="19.2.8",yo}var tx;function sN(){if(tx)return Mm.exports;tx=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(),Mm.exports=aN(),Mm.exports}var lN=sN();const oN=!1;var av=C.useLayoutEffect;function uN(e,t,n){C.useEffect(()=>{if(!e.current||n||typeof IntersectionObserver!="function")return()=>t();const i=new IntersectionObserver(s=>{t(s.pop())},{rootMargin:"100px"});return i.observe(e.current),()=>{i.disconnect(),t()}},[t,n,e])}function cN(e){const t=C.useRef(null);return C.useImperativeHandle(e,()=>t.current,[]),t}function $o(e){return e[e.length-1]}function ul(e,t){return typeof e=="function"?e(t):e}const sv=Object.prototype.hasOwnProperty,fN=Object.prototype.propertyIsEnumerable;function lv(e){for(const t in e)if(sv.call(e,t))return!0;return!1}const dN=()=>Object.create(null),wa=(e,t)=>Pa(e,t,dN);function Pa(e,t,n=()=>({}),i=0){if(e===t)return e;if(i>500)return t;const s=t,l=ix(e)&&ix(s);if(!l&&!(xf(e)&&xf(s)))return s;const u=l?e:nx(e);if(!u)return s;const c=l?s:nx(s);if(!c)return s;const d=u.length,h=c.length,m=l?new Array(h):n();let p=0;for(let y=0;y<h;y++){const E=l?y:c[y],v=e[E],S=s[E];if(v===S){m[E]=v,(l?y<d:sv.call(e,E))&&p++;continue}if(v===null||S===null||typeof v!="object"||typeof S!="object"){m[E]=S;continue}const A=Pa(v,S,n,i+1);m[E]=A,A===v&&p++}return d===h&&p===d?e:m}function nx(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 i of n){if(!fN.call(e,i))return!1;t.push(i)}return t}function xf(e){if(!rx(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!rx(n)||!n.hasOwnProperty("isPrototypeOf"))}function rx(e){return Object.prototype.toString.call(e)==="[object Object]"}function ix(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Wi(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 i=0,s=e.length;i<s;i++)if(!Wi(e[i],t[i],n))return!1;return!0}if(xf(e)&&xf(t)){const i=n?.ignoreUndefined??!0;if(n?.partial){for(const u in t)if((!i||t[u]!==void 0)&&!Wi(e[u],t[u],n))return!1;return!0}let s=0;if(!i)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((!i||t[u]!==void 0)&&(l++,l>s||!Wi(e[u],t[u],n)))return!1;return s===l}return!1}const hN=/[\x00-\x1f\x7f"<>`{}]/g;function mN(e){return e.replace(hN,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function ax(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 mN(t)}const pN=["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 Eo(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,i="",s;for(;(s=t.exec(e))!==null;)i+=ax(e.slice(n,s.index))+s[0],n=t.lastIndex;i=i+ax(n?e.slice(n):e);let l=!1;return i.startsWith("//")&&(l=!0,i="/"+i.replace(/^\/+/,"")),{path:i,handledProtocolRelativeURL:l}}function gN(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function bN(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 O0(){throw new Error("Invariant failed")}function vf(e){const t=new Map;let n,i;const s=l=>{l.next&&(l.prev?(l.prev.next=l.next,l.next.prev=l.prev,l.next=void 0,i&&(i.next=l,l.prev=i)):(l.next.prev=void 0,n=l.next,l.next=void 0,i&&(l.prev=i,i.next=l)),i=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===i&&(i=void 0)}const c=t.get(l);if(c)c.value=u,s(c);else{const d={key:l,value:u,prev:i};i&&(i.next=d),i=d,n||(n=d),t.set(l,d)}},clear(){t.clear(),n=void 0,i=void 0}}}const Xi=4,ov=5;function uv(e,t,n=new Uint16Array(6)){const i=e.indexOf("/",t),s=i===-1?e.length:i,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 Vf(e,t,n,i,s,l,u,c){c?.(n);let d=i;{const h=n.fullPath??n.from,m=n.options,p=h.length,y=m?.caseSensitive??e,E=m?.params?.parse??m?.parseParams;for(;d<p;){const S=uv(h,d,t);let A;const k=d,N=S[5];d=N+1,l++;const w=S[0];switch(w){case 0:{const D=h.substring(S[2],S[3]);let F=D,O;y?O=s.static??=new Map:(F=D.toLowerCase(),O=s.staticInsensitive??=new Map);const M=O.get(F);if(M)A=M;else{const U=rl(h);U.parent=s,U.depth=l,A=U,O.set(F,U)}break}case 1:case 3:case 2:{let D=h.substring(k,S[1]),F=h.substring(S[4],N);const O=y&&!!(D||F);y||(D=D.toLowerCase(),F=F.toLowerCase());const M=w===1?s.dynamic:w===3?s.optional:s.wildcard,U=w!==2&&!E&&M?.find($=>!$.parse&&$.caseSensitive===O&&$.prefix===D&&$.suffix===F);if(U)A=U;else{const $=yN(w,h,O,D,F);A=$,$.parent=s,$.depth=l;let H;w===1?H=s.dynamic??=[]:w===3?H=s.optional??=[]:H=s.wildcard??=[],H.push($),H.length===2&&u?.push(H)}break}}s=A}if(E&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const S=rl(h);S.kind=ov,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=rl(h);S.kind=Xi,S.parent=s,l++,S.depth=l,s.index=S,s=S}s.parse=E??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)Vf(e,t,h,d,s,l,u,c)}function cv(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 rl(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 yN(e,t,n,i,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:i,suffix:s}}function EN(e,t){const n=rl("/"),i=new Uint16Array(6),s=[];for(const l of e)Vf(!1,i,l,1,n,0,s);for(const l of s)l.sort(cv);t.masksTree=n,t.flatCache=vf(1e3)}function xN(e,t){e||="/";const n=t.flatCache.get(e);if(n!==void 0)return n;const i=L0(e,t.masksTree);return t.flatCache.set(e,i),i}function TN(e,t,n,i,s){e||="/",i||="/";const l=t?`case\0${e}`:e;let u=s.singleCache.get(l);return u||(u=rl("/"),Vf(t,new Uint16Array(6),{from:e},1,u,0),s.singleCache.set(l,u)),L0(i,u,n)}function vN(e,t,n=!1){const i=n?e:`nofuzz\0${e}`,s=t.matchCache.get(i);if(s!==void 0)return s;e||="/";let l;try{l=L0(e,t.segmentTree,n)}catch(u){if(u instanceof URIError)l=null;else throw u}return l&&(l.branch=dv(l.route)),t.matchCache.set(i,l),l}function SN(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function CN(e,t=!1,n){const i=rl(e.fullPath),s=new Uint16Array(6),l=[],u={},c={};let d=0;Vf(t,s,e,1,i,0,l,h=>{if(n?.(h,d),h.id in u&&O0(),u[h.id]=h,d!==0&&h.path){const m=SN(h.fullPath);(!c[m]||h.fullPath.endsWith("/"))&&(c[m]=h)}d++});for(const h of l)h.sort(cv);return{processedTree:{segmentTree:i,singleCache:vf(1e3),matchCache:vf(1e3),flatCache:null,masksTree:null},routesById:u,routesByPath:c}}function L0(e,t,n=!1){const i=e.split("/"),s=AN(e,i,t,n);if(!s)return null;const[l]=fv(e,i,s);return{route:s.node.route,rawParams:l}}function fv(e,t,n){const i=_N(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<i.length;u++,c++,d++,h++){const m=i[c];if(m.kind===Xi)break;if(m.kind===ov){h--,u--,d--;continue}const p=t[u],y=d;if(p&&(d+=p.length),m.kind===1){s??=n.node.fullPath.split("/");const E=s[h],v=m.prefix.length;if(E.charCodeAt(v)===123){const S=m.suffix.length,A=E.substring(v+2,E.length-S-1),k=p.substring(v,p.length-S);l[A]=decodeURIComponent(k)}else{const S=E.substring(1);l[S]=decodeURIComponent(p)}}else if(m.kind===3){if(n.skipped&1<<c){u--,d=y-1;continue}s??=n.node.fullPath.split("/");const E=s[h],v=m.prefix.length,S=m.suffix.length,A=E.substring(v+3,E.length-S-1),k=m.suffix||m.prefix?p.substring(v,p.length-S):p;k&&(l[A]=decodeURIComponent(k))}else if(m.kind===2){const E=m,v=e.substring(y+E.prefix.length,e.length-E.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 dv(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function _N(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function AN(e,t,n,i){if(e==="/"&&n.index)return{node:n.index,skipped:0};const s=!$o(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:y,skipped:E,statics:v,dynamics:S,optionals:A}=m;let{extract:k,rawParams:N}=m;if(p.kind===2&&p.route&&!Mc(h,m))continue;if(p.parse){if(!sx(e,t,m))continue;N=m.rawParams,k=m.extract}i&&p.route&&p.kind!==Xi&&Mc(d,m)&&(d=m);const w=y===u;if(w&&(p.route&&(!l||p.kind===Xi||p.kind===2)&&Mc(h,m)&&(h=m),!p.optional&&!p.wildcard&&!p.index&&!p.pathless))continue;const D=w?void 0:t[y];let F;if(w&&p.index){const O={node:p.index,index:y,skipped:E,statics:v,dynamics:S,optionals:A,extract:k,rawParams:N};let M=!0;if(p.index.parse&&(sx(e,t,O)||(M=!1)),M){if(!S&&!A&&!E&&kN(v,u))return O;Mc(h,O)&&(h=O)}}if(p.wildcard)for(let O=p.wildcard.length-1;O>=0;O--){const M=p.wildcard[O],{prefix:U,suffix:$}=M;if(!(U&&(w||!(M.caseSensitive?D:F??=D.toLowerCase()).startsWith(U)))){if($){if(w)continue;const H=t.slice(y).join("/"),ee=H.slice(-$.length);if((M.caseSensitive?ee:ee.toLowerCase())!==$||H.length-$.length<U.length)continue}c.push({node:M,index:u,skipped:E,statics:v,dynamics:S,optionals:A,extract:k,rawParams:N})}}if(p.optional){const O=E|1<<p.depth+1;for(let M=p.optional.length-1;M>=0;M--){const U=p.optional[M];c.push({node:U,index:y,skipped:O,statics:v,dynamics:S,optionals:A,extract:k,rawParams:N})}if(!w)for(let M=p.optional.length-1;M>=0;M--){const U=p.optional[M],{prefix:$,suffix:H}=U;if($||H){const ee=U.caseSensitive?D:F??=D.toLowerCase();if($&&!ee.startsWith($)||H&&ee.indexOf(H,ee.length-H.length)<$.length)continue}c.push({node:U,index:y+1,skipped:E,statics:v,dynamics:S,optionals:A+Ic(u,y),extract:k,rawParams:N})}}if(!w&&p.dynamic&&D)for(let O=p.dynamic.length-1;O>=0;O--){const M=p.dynamic[O],{prefix:U,suffix:$}=M;if(U||$){const H=M.caseSensitive?D:F??=D.toLowerCase();if(U&&!H.startsWith(U)||$&&H.indexOf($,H.length-$.length)<U.length)continue}c.push({node:M,index:y+1,skipped:E,statics:v,dynamics:S+Ic(u,y),optionals:A,extract:k,rawParams:N})}if(!w&&p.staticInsensitive){const O=p.staticInsensitive.get(F??=D.toLowerCase());O&&c.push({node:O,index:y+1,skipped:E,statics:v+Ic(u,y),dynamics:S,optionals:A,extract:k,rawParams:N})}if(!w&&p.static){const O=p.static.get(D);O&&c.push({node:O,index:y+1,skipped:E,statics:v+Ic(u,y),dynamics:S,optionals:A,extract:k,rawParams:N})}if(p.pathless)for(let O=p.pathless.length-1;O>=0;O--){const M=p.pathless[O];c.push({node:M,index:y,skipped:E,statics:v,dynamics:S,optionals:A,extract:k,rawParams:N})}}if(h)return h;if(i&&d){let m=d.index;for(let y=0;y<d.index;y++)m+=t[y].length;const p=m===e.length?"/":e.slice(m);return d.rawParams??=Object.create(null),d.rawParams["**"]=decodeURIComponent(p),d}return null}function Ic(e,t){return 2**(e-t-1)}function kN(e,t){return e===2**(t-1)-1}function sx(e,t,n){let i,s;try{[i,s]=fv(e,t,n)}catch{return null}if(n.rawParams=i,n.extract=s,!n.node.parse)return!0;try{if(n.node.parse(i)===!1)return null}catch{}return!0}function Mc(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===Xi)>(e.node.kind===Xi)||t.node.kind===Xi==(e.node.kind===Xi)&&t.node.depth>e.node.depth))):!0}function af(e){return sf(e.filter(t=>t!==void 0).join("/"))}function sf(e){return e.replace(/\/{2,}/g,"/")}function hv(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function ii(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function mv(e){return ii(hv(e))}function Sf(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function wN(e,t,n){return Sf(e,n)===Sf(t,n)}function NN({base:e,to:t,trailingSlash:n="never",cache:i}){if(t.includes("//")&&(t=sf(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(i){l=s?e:e+"\0"+t;const h=i.get(l);if(h)return h}let u;if(s)u=e.split("/");else{for(e.includes("//")&&(e=sf(e)),u=e.split("/");u.length>1&&$o(u)==="";)u.pop();const h=t.split("/");for(let m=0,p=h.length;m<p;m++){const y=h[m];y===""?m?m===p-1&&u.push(y):u=[y]:y===".."?u.length>1?u.pop():u=[""]:y==="."||u.push(y)}}u.length>1&&($o(u)===""?n==="never"&&u.pop():n==="always"&&u.push(""));const c=u.join("/"),d=(s?sf(c):c)||"/";return l&&i&&i.set(l,d),d}function RN(e){const t=new Map(e.map(s=>[encodeURIComponent(s),s])),n=Array.from(t.keys()).map(s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),i=new RegExp(n,"g");return s=>s.replace(i,l=>t.get(l)??l)}function Hm(e,t,n){const i=t[e];return typeof i!="string"?i:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(i)?i:i.split("/").map(s=>ox(s,n)).join("/"):ox(i,n)}function lx({path:e,params:t,decoder:n,...i}){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=uv(e,m,d);const p=d[5];if(c=p+1,m===p)continue;const y=d[0];if(y===0){h+="/"+e.substring(m,p);continue}if(y===2){const E=t._splat;l._splat=E,l["*"]=E;const v=e.substring(m,d[1]),S=e.substring(d[4],p);if(!E){s=!0,(v||S)&&(h+="/"+v+S);continue}const A=Hm("_splat",t,n);h+="/"+v+A+S;continue}if(y===1){const E=e.substring(d[2],d[3]);!s&&!(E in t)&&(s=!0),l[E]=t[E];const v=e.substring(m,d[1]),S=e.substring(d[4],p),A=Hm(E,t,n)??"undefined";h+="/"+v+A+S;continue}if(y===3){const E=e.substring(d[2],d[3]),v=t[E];if(v==null)continue;l[E]=v;const S=e.substring(m,d[1]),A=e.substring(d[4],p),k=Hm(E,t,n)??"";h+="/"+S+k+A;continue}}return e.endsWith("/")&&(h+="/"),{usedParams:l,interpolatedPath:h||"/",isMissingParams:s}}function ox(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function cl(e){return e?.isNotFound===!0}function ON(){try{return sessionStorage}catch{return}}const LN="tsr-scroll-restoration-v1_3",pv=ON();function DN(){try{return JSON.parse(pv?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function IN(){try{pv?.setItem(LN,JSON.stringify(Zs))}catch{}}const Zs=DN(),ux="data-scroll-restoration-id",MN=e=>e.state.__TSR_key||e.href;function PN(e){const t=e.getAttribute(ux);if(t)return`[${ux}="${t}"]`;let n="",i=e,s;for(;s=i.parentNode;){let l=1,u=i;for(;u=u.previousElementSibling;)l++;const c=`${i.localName}:nth-child(${l})`;n=n?`${c} > ${n}`:c,i=s}return n}let Pc=!1;const lf="window";function Rp(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function cx(e){const t=new Set;for(const n of e){if(n===lf)continue;const i=Rp(n);i&&t.add(i)}return t}function BN(e,t){const n=e.options.scrollRestoration,i=e._scroll;n&&(i.restoring=!0);const s=e.options.getScrollRestorationKey||MN,l=new Set,u=c=>{const d=Zs[c]||={};for(const h of l)h===document?d[lf]={scrollX,scrollY}:h.isConnected&&(d[PN(h)]={scrollX:h.scrollLeft,scrollY:h.scrollTop})};n&&!i.restoration&&(i.restoration=!0,Pc=!1,history.scrollRestoration="manual",document.addEventListener("scroll",c=>{Pc||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())),IN()})),!i.reset&&(i.reset=!0,e.subscribe("onRendered",c=>{const d=e.options.scrollRestorationBehavior,h=e.options.scrollToTopSelectors,m=i.next,p=i.hash;let y;if(l.clear(),i.next=!0,i.hash=!1,typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const E=s(c.toLocation),v=c.fromLocation&&s(c.fromLocation);if(i.restoring&&v&&v!==E){const S=Zs[v];if(S){let A=Zs[E];for(const k in S){if(k===lf){if(m)continue}else{const N=Rp(k);if(!N||m&&h&&(y??=cx(h),y.has(N)))continue}A||(A=Zs[E]={}),A[k]??=S[k]}}}Pc=!0;try{const S=c.toLocation.hash,A=c.toLocation.state.__hashScrollIntoViewOptions??!0;let k=!1;if(m){!S&&h&&(y??=cx(h));const N=S&&A&&p,w=i.restoring?Zs[E]:void 0;if(w)for(const D in w){const{scrollX:F,scrollY:O}=w[D];if(D===lf){if(N)continue;scrollTo({top:O,left:F,behavior:d}),k=!0}else{const M=Rp(D);M&&(M.scrollLeft=F,M.scrollTop=O,y?.delete(M))}}if(!S){const D={top:0,left:0,behavior:d};if(k||scrollTo(D),y)for(const F of y)F.scrollTo(D)}}!k&&S&&A&&document.getElementById(S)?.scrollIntoView(A)}finally{Pc=!1}}))}function jN(e,t=String){const n=new URLSearchParams;for(const i in e){const s=e[i];s!==void 0&&n.set(i,t(s))}return n.toString()}function Um(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function HN(e){const t=new URLSearchParams(e),n=Object.create(null);for(const[i,s]of t.entries()){const l=n[i];l==null?n[i]=Um(s):Array.isArray(l)?l.push(Um(s)):n[i]=[l,Um(s)]}return n}const UN=/^(?:\s|["[{\d-]|fa|nu|tr)/,zN=qN(JSON.parse),FN=VN(JSON.stringify,JSON.parse);function qN(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=HN(t);for(const i in n){const s=n[i];if(typeof s=="string")try{n[i]=e(s)}catch{}}return n}}function VN(e,t){const n=t===JSON.parse;function i(s){if(s&&typeof s=="object")try{return e(s)}catch{}else if(t&&typeof s=="string"){if(n&&!UN.test(s))return s;try{return t(s),e(s)}catch{}}return s}return s=>{const l=jN(s,i);return l?`?${l}`:""}}const il="__root__";function YN(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 gv(e){return e instanceof Response&&!!e.options}function $N(e){return{input:({url:t})=>{for(const n of e)t=Op(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=bv(e[n],t);return t}}}function GN(e){const t=mv(e.basepath),n=`/${t}`,i=e.caseSensitive?n:n.toLowerCase(),s=`${i}/`;return{input:({url:l})=>{const u=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return u===i?l.pathname="/":u.startsWith(s)&&(l.pathname=l.pathname.slice(n.length)),l},output:({url:l})=>(l.pathname=af(["/",t,l.pathname]),l)}}function Op(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 bv(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 KN(e,t){const{createMutableStore:n,createReadonlyStore:i,batch:s}=t,l=new Map,u=n("idle"),c=n(e),d=n(void 0),h=n([]),m=i(()=>h.get().map(S=>l.get(S).get())),p=i(()=>({status:u.get(),isLoading:u.get()==="pending",matches:m.get(),location:c.get(),resolvedLocation:d.get()}));function y(S){let A=l.get(S);return A||(A=n(void 0),l.set(S,A)),A}const E={status:u,location:c,resolvedLocation:d,ids:h,matches:m,byRoute:l,__store:p,getMatchStore:y,setMatches:v};function v(S){const A=h.get(),k=S.map(N=>N.routeId);s(()=>{bN(A,k)||h.set(k);for(const N of A)k.includes(N)||l.get(N).set(()=>{});for(const N of S){const w=y(N.routeId);w.get()!==N&&w.set(N)}})}return E}var Zi="__TSR_index",fx="popstate",dx="beforeunload";function XN(e){let t=e.getLocation();const n=new Set,i=u=>{t=e.getLocation(),n.forEach(c=>c({location:t,action:u}))},s=u=>{e.notifyOnIndexChange??!0?i(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 y=Cf(d.path,d.state);if(await p.blockerFn({currentLocation:t,nextLocation:y,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[Zi];c=hx(h+1,c),l({task:()=>{e.pushState(u,c),i({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:u,state:c})},replace:(u,c,d)=>{const h=t.state[Zi];c=hx(h,c),l({task:()=>{e.replaceState(u,c),i({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[Zi]!==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:i}}function hx(e,t){t||(t={});const n=D0();return{...t,key:n,__TSR_key:n,[Zi]:e}}function QN(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=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=D0();t.history.replaceState({[Zi]:0,key:M,__TSR_key:M},"")}let h=d(),m,p=!1,y=!1,E=!1,v=!1;const S=()=>h;let A;const k=()=>{A&&(O._ignoreSubscribers=!0,(A[2]?t.history.pushState:t.history.replaceState)(A[1],"",A[0]),O._ignoreSubscribers=!1,A=void 0,m=void 0)},N=(M,U,$)=>{const H=c(U),ee=!!A;ee||(m=h),h=Cf(U,$),A=[H,$,A?.[2]||M],ee||queueMicrotask(()=>k())},w=M=>{h=d(),O.notify({type:M})},D=async()=>{if(y){y=!1;return}const M=d(),U=M.state[Zi]-h.state[Zi],$=U===1,H=U===-1,ee=!$&&!H||p;p=!1;const X=ee?"GO":H?"BACK":"FORWARD",le=ee?{type:"GO",index:U}:{type:H?"BACK":"FORWARD"};if(E)E=!1;else{const fe=l();if(typeof document<"u"&&fe.length){for(const ie of fe)if(await ie.blockerFn({currentLocation:h,nextLocation:M,action:X})){y=!0,t.history.go(1),O.notify(le);return}}}h=d(),O.notify(le)},F=M=>{if(v){v=!1;return}let U=!1;const $=l();if(typeof document<"u"&&$.length)for(const H of $){const ee=H.enableBeforeUnload??!0;if(ee===!0){U=!0;break}if(typeof ee=="function"&&ee()===!0){U=!0;break}}if(U)return M.preventDefault(),M.returnValue=""},O=XN({getLocation:S,getLength:()=>t.history.length,pushState:(M,U)=>N(!0,M,U),replaceState:(M,U)=>N(!1,M,U),back:M=>(M&&(E=!0),v=!0,t.history.back()),forward:M=>{M&&(E=!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=i,t.removeEventListener(dx,F,{capture:!0}),t.removeEventListener(fx,D)},onBlocked:()=>{m&&h!==m&&(h=m)},getBlockers:l,setBlockers:u,notifyOnIndexChange:!1});return t.addEventListener(dx,F,{capture:!0}),t.addEventListener(fx,D),t.history.pushState=function(...M){const U=n.apply(t.history,M);return O._ignoreSubscribers||w("PUSH"),U},t.history.replaceState=function(...M){const U=i.apply(t.history,M);return O._ignoreSubscribers||w("REPLACE"),U},O}function WN(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Cf(e,t){const n=WN(e),i=n.indexOf("#"),s=n.indexOf("?"),l=D0();return{href:n,pathname:n.substring(0,i>0?s>0?Math.min(i,s):i:s>0?s:n.length),hash:i>-1?n.substring(i):"",search:s>-1?n.slice(s,i===-1?void 0:i):"",state:t||{[Zi]:0,key:l,__TSR_key:l}}}function D0(){return(Math.random()+1).toString(36).substring(7)}function mx(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function Yf(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function px({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:i,...s}){return s}function ZN(e,t,n,i){for(const s of t){if(i&&e._tx!==i)return;n.some(l=>l.routeId===s.routeId)||e.routesById[s.routeId].options.onLeave?.(s)}for(const s of n){if(i&&e._tx!==i)return;e.routesById[s.routeId].options[t.some(l=>l.routeId===s.routeId)?"onStay":"onEnter"]?.(s)}}var JN=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 i=this.options,s=this.basepath??i?.basepath??"/",l=this.basepath===void 0,u=i?.rewrite;if(this.options={...i,...n},this.isServer=this.options.isServer??oN??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=RN(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=QN()),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=KN(this.latestLocation,h),BN(this)}const c=this.options.basepath??"/",d=this.options.rewrite;if(l||s!==c||u!==d){this.basepath=c;const h=[],m=mv(c);m&&m!=="/"&&h.push(GN({basepath:c})),d&&h.push(d),this.rewrite=h.length===0?void 0:h.length===1?h[0]:$N(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=CN(this.routeTree,this.options.caseSensitive,(i,s)=>{i.init({originalIndex:s})});return this.options.routeMasks&&EN(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,i)=>{const s={eventType:n,fn:i};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=n=>{for(const i of this.subscribers)if(i.eventType===n.type)try{i.fn(n)}catch(s){console.error(s)}},this.parseLocation=(n,i)=>{const s=({pathname:d,search:h,hash:m,href:p,state:y})=>{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:Eo(d).path,external:!1,searchStr:N,search:wa(i?.search,k),hash:Eo(m.slice(1)).path,state:Pa(i?.state,y)}}const E=new URL(p,this.origin),v=Op(this.rewrite,E),S=this.options.parseSearch(v.search),A=this.options.stringifySearch(S);return v.search=A,{href:v.href.replace(v.origin,""),publicHref:p,pathname:Eo(v.pathname).path,external:!!this.rewrite&&v.origin!==this.origin,searchStr:A,search:wa(i?.search,S),hash:Eo(v.hash.slice(1)).path,state:Pa(i?.state,y)}},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,i)=>NN({base:n,to:i,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,i,s)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:i},s):this.matchRoutesInternal(n,i),this.getMatchedRoutes=n=>{const i=Object.create(null),s=vN(ii(n),this.processedTree,!0);return s&&Object.assign(i,s.rawParams),[s?.branch||[this.routesById.__root__],i,s?.route]},this.buildLocation=n=>{const i=(l={})=>{if(l.href){const $=Cf(l.href,{});l={...l,to:Op(this.rewrite,new URL($.pathname,this.origin)).pathname,search:this.options.parseSearch($.search),hash:$.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 y=gx(l.params,m);const E=this.routesByPath[ii(p)];let v;if(E)v=this.getRouteBranch(E);else if(p.includes("$"))v=[];else{const[$,H,ee]=this.getMatchedRoutes(p);v=$,this.options.notFoundRoute&&(!ee||ee.path!=="/"&&H["**"])&&(v=[...v,this.options.notFoundRoute])}if(v.length&&lv(y))for(const $ of v){const H=$.options.params?.stringify??$.options.stringifyParams;if(H){y===m&&(y=Object.assign(Object.create(null),y));try{Object.assign(y,H(y))}catch{}}}const S=n.leaveParams?p:Eo(lx({path:p,params:y,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let A=h;if(n._includeValidateSearch&&this.options.search?.strict){const $={};v.forEach(H=>{if(H.options.validateSearch)try{Object.assign($,of(H.options.validateSearch,{...$,...A}))}catch{}}),A=$}A=t6(A,l,v,n._includeValidateSearch),A=wa(h,A);const k=this.options.stringifySearch(A),N=l.hash===!0?u.hash:l.hash?ul(l.hash,u.hash):void 0,w=N?`#${N}`:"";let D=l.state===!0?u.state:l.state?ul(l.state,u.state):{};l.state&&(D=Pa(u.state,D));const F=`${S}${k}${w}`;let O,M,U=!1;if(this.rewrite){const $=new URL(F,this.origin),H=bv(this.rewrite,$);O=$.href.replace($.origin,""),H.origin!==this.origin?(M=H.href,U=!0):M=H.pathname+H.search+H.hash}else O=gN(F),M=O;return{publicHref:M,href:O,pathname:S,search:A,searchStr:k,state:D,hash:N??"",external:U,unmaskOnReload:l.unmaskOnReload}},s=i(n);if(n.mask)s.maskedLocation=i({from:n.from,...n.mask});else if(this.options.routeMasks){const l=xN(s.pathname,this.processedTree);if(l){const u=Object.assign(Object.create(null),l.rawParams),{from:c,params:d,...h}=l.route,m=gx(d,u);s.maskedLocation=i({from:n.from,...h,params:m})}}return s},this.commitLocation=async({viewTransition:n,ignoreBlocker:i,...s})=>{let l;const u=ii(this.latestLocation.href)===ii(s.href)&&Wi(px(s.state),px(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,...y}=s;m&&(y={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...y,search:y.searchStr,state:{...y.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(y.unmaskOnReload??this.options.unmaskOnReload??!1)&&(y.state.__tempKey=this.tempLocationKey)),y.state.__hashScrollIntoViewOptions=p??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,l=s.replace?"REPLACE":"PUSH",this.history[l==="REPLACE"?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:i}),this.history.subscribers.size||this.load({action:{type:l}})}return this._scroll.next=s.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:n,resetScroll:i,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:i,hashScrollIntoView:s,ignoreBlocker:u});return queueMicrotask(()=>{this._pendingLocation===d&&(this._pendingLocation=void 0)}),h},this.navigate=async({to:n,reloadDocument:i,href:s,publicHref:l,...u})=>{let c=!1;if(s)try{new URL(`${s}`),c=!0}catch{}if(c&&!i&&(i=!0),i){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 c6(this,n)},this.startViewTransition=n=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,i&&typeof document.startViewTransition=="function"){let s;if(typeof i=="object"&&window.CSS?.supports?.("selector(:active-view-transition-type(a))")){const l=this.latestLocation,u=this.stores.resolvedLocation.get(),c=typeof i.types=="function"?i.types(Yf(l,u)):i.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 i=this._committed,s=n?.filter,l=this._preloads,u=new Set([...i,...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")&&mx(m)?{status:"pending",error:void 0}:void 0};return h._flight=void 0,p}return h};this._committed=i.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 i=n.headers.get("Location");if(n.options.href){if(i)try{const s=new URL(i);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 i=this._cache,s=this._preloads,l=n?.filter,u=[],c=[];for(const[h,m]of i)(!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)i.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=al,this.preloadRoute=n=>f6(this,n),this.matchRoute=(n,i)=>{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(i?.pending&&!u)return!1;const c=i?.pending??!u?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),d=TN(l.pathname,i?.caseSensitive??!1,i?.fuzzy??!1,c.pathname,this.processedTree);return!d||n.params&&!Wi(d.rawParams,n.params,{partial:!0})?!1:i?.includeSearch??!0?Wi(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??FN,parseSearch:e.parseSearch??zN,protocolAllowlist:e.protocolAllowlist??pN}),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 i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=dv(e),this.routeBranchCache.set(e,t)),t}matchRoutesInternal(e,t){const[n,i,s]=this.getMatchedRoutes(e.pathname);let l=n,u=!1;(s?s.path!=="/"&&i["**"]:ii(e.pathname))&&(this.options.notFoundRoute?l=[...l,this.options.notFoundRoute]:u=!0);const c=u?n6(this.options.notFoundMode,l):void 0,d=new Array(l.length),h=this._committed,m=(y,E)=>{const v=h[E];return v?.routeId===y.id?v:y===this.options.notFoundRoute?h.find(S=>S.routeId===y.id):void 0};let p;for(let y=0;y<l.length;y++){const E=l[y],v=d[y-1];let S,A,k;{const le=v?.search??e.search,fe=v?._strictSearch??void 0;try{const ie=of(E.options.validateSearch,{...le})??void 0;S={...le,...ie},A={...fe,...ie}}catch(ie){let B=ie;if(ie instanceof _f||(B=new _f(ie.message,{cause:ie})),t?.throwOnError)throw B;S=le,A={},k=B}}let N="",w="";try{N=E.options.loaderDeps?.({search:S})??"",w=N&&JSON.stringify(N)||""}catch(le){if(t?.throwOnError)throw le;k??=le}const{interpolatedPath:D,usedParams:F}=lx({path:E.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),O=E.id+D+w,M=m(E,y),U=this._cache.get(O)??(M?.id===O?M:void 0);p=U?._strictParams??Object.assign(F,p);let $;if(!U)try{bx(E,p)}catch(le){if(cl(le)||gv(le)?$=le:$=new e6(le.message,{cause:le}),t?.throwOnError)throw $}const H=M?"stay":"enter";let ee;if(U)ee={...U,cause:H,search:wa(M?M.search:U.search,S),_strictSearch:A,searchError:k};else{const le=mx(E)?"pending":"success";ee={id:O,ssr:E.options.ssr,index:y,routeId:E.id,params:M?.params??p,_strictParams:p,pathname:D,updatedAt:Date.now(),search:M?wa(M.search,S):S,_strictSearch:A,searchError:k,status:le,isFetching:!1,error:void 0,paramsError:$,context:{},abortController:t?._controller??new AbortController,cause:H,loaderDeps:M?Pa(M.loaderDeps,N):N,invalid:!1,preload:!1,staticData:E.options.staticData||{},fullPath:E.fullPath}}const X=c===E.id;ee._notFound&&!X&&(ee.error=void 0),ee._notFound=X,d[y]=ee}for(let y=0;y<d.length;y++){const E=d[y];E.params=E.cause==="stay"?wa(E.params,p):p,t?._controller&&(E.context={})}return d}matchRoutesLightweight(e){const t=$o(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,i=n?.id,s=this.lightweightCache.get(e);if(s&&s[0]===i)return s[1];const[l,u]=this.getMatchedRoutes(e.pathname),c=$o(l),d={...e.search};for(const y of l)try{Object.assign(d,of(y.options.validateSearch,d))}catch{}const h=n&&n.routeId===c.id&&n.pathname===e.pathname;let m;if(h)m=n.params;else{const y=Object.assign(Object.create(null),u);for(const E of l)try{bx(E,y)}catch{}m=y}const p=[l,c.fullPath,d,m];return this.lightweightCache.set(e,[i,p]),p}},_f=class extends Error{},e6=class extends Error{};function of(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 t6(e,t,n,i){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 y=p(c.preSearchFilters?c.preSearchFilters.reduce((E,v)=>v(E),m):m);return c.postSearchFilters?c.postSearchFilters.reduce((E,v)=>v(E),y):y};s.push(h)}const d=c.validateSearch;if(i&&d){const h=({search:m,next:p,meta:y})=>{const E=p(m);try{const v=of(d,E);if(y&&v)for(const S in v)S in E||(y.defaulted||=new Map).set(S,v[S]);return{...E,...v}}catch{}return E};s.push(h)}}const l=(u,c,d)=>{if(u>=s.length){if(!t.search)return{};if(t.search===!0)return c;const m=ul(t.search,c);return d&&(d.explicit=m),m}const h=(m,p)=>{if(p){const y=d||{};return{search:l(u+1,m,y),meta:y}}return l(u+1,m,d)};return s[u]({search:c,next:h,meta:d})};return l(0,e)}function n6(e,t){if(e!=="root"){let n;for(let i=t.length-1;i>=0;i--){const s=t[i];if(s.options.notFoundComponent)return s.id;n||=s.children&&s.id}if(n)return n}return il}function gx(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,ul(e,n))}function bx(e,t){const n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Lp(e,t){return e.options[t]?.preload?.()}function r6(e,t){const n=Lp(e,"component");let i=Lp(e,"pendingComponent");return t&&(i?i=i.then(t):t()),n&&i?Promise.all([n,i]).then(()=>{}):n??i}function al(e,t,n){const i=()=>t===!1?void 0:t?Lp(e,t):r6(e,n),s=e._lazy;if(s)return s===!0?i():s.then(i);if(!e.lazyFn)return i();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(i)}function I0(e){const t=e.findIndex(n=>n.status!=="success"||n._notFound)+1;return t&&t<e.length?e.slice(0,t):e}const wr=0,li=1,$f=2,qn=3,ea=[4];function Go(e){return typeof e[0]=="number"}function Wa(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,i)=>{const s=()=>i(t);t.addEventListener("abort",s,{once:!0}),Promise.resolve(e).then(n,i).finally(()=>t.removeEventListener("abort",s))})}function Za(e,t){return e.routesById[t.routeId]}function Ko(e,t,n){return gv(e)?[qn,e]:cl(e)?(e.routeId||=n,[$f,e]):t?(typeof e?.then=="function"&&(e=new Error("A Promise was thrown",{cause:e})),[li,e]):[wr,e]}function M0(e,t){let n=Ko(t,!0,e.id);if(n[0]!==li)return n;try{e.options.onError?.(n[1])}catch(i){n=Ko(i,!0,e.id)}return n}function Io(e,t,n,i,s){return s[0].signal.aborted?ea:j0(e,t,n,M0(n,i),s)}async function i6(e,t,n,i,s,l){const[u,c]=t,d=n[0].signal,h=!!n[3];for(let m=n[6]??0;m<i;m++){const p=c[m],y=Za(e,p);p.abortController=n[0];const E=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:y.id};try{const N=p._ctx||=y.options.context?y.options.context({...v,deps:p.loaderDeps,context:E})||{}:void 0;p.context={...E,...N}}catch(N){return si(e,p),[m,Io(e,t,y,N,n)]}if(d.aborted)return[m,ea];const S=p.paramsError??p.searchError;if(S!==void 0)return si(e,p),[m,Io(e,t,y,S,n)];const A=y.options.beforeLoad;if(!A)continue;const k=p.status;m>=l&&(p.status="pending",n[7]?.());try{Xo(e,p,"beforeLoad",n[0]);const N=await Wa(A({...v,search:p.search,context:p.context,...e.options.additionalContext}),d);if(d.aborted)return[m,ea];const w=j0(e,t,y,Ko(N,!1,y.id),n);if(w[0]!==wr)return si(e,p),[m,w];p.context={...p.context,...N}}catch(N){return si(e,p),[m,Io(e,t,y,N,n)]}finally{p.status=k,Xo(e,p,!1,n[0])}}s()}function P0(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){const i=e._tx;if(i&&!i[0].signal.aborted&&!i[3].includes(t)&&i[3].some(s=>s.id===t.id)&&i[3].some(s=>s.isFetching==="beforeLoad"))return;e._flights.delete(t.id)}return n[1]}}function si(e,t){const n=t._flight;t._flight=void 0,P0(e,t,n)?.abort()}function On(e,t,n,i){const s=[];for(const l of t)if(!n?.includes(l)){const u=l._flight;if(l._flight=void 0,i&&u?.[2]===1&&e._flights?.get(l.id)===u&&n?.some(c=>c.id===l.id))u[2]=0;else{const c=P0(e,l,u);c&&s.push(c)}}for(const l of s)l.abort()}function B0(e){for(const t of e){const n=t._flight;n&&n[2]++}}function Xo(e,t,n,i){if(t.isFetching=n,i&&e._tx?.[0]!==i)return;const s=e.stores.byRoute.get(t.routeId),l=s?.get();l?.id===t.id&&s.set({...l,isFetching:n})}function yv(e,t,n,i,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:i,...e.options.additionalContext}}async function yx(e,t,n,i,s,l,u){const c=u[0],d=c.signal;if(d.aborted)return ea;if(!s)return[wr,void 0];let h=n._flight;Xo(e,n,"loader",c);try{if(!h){const m=new AbortController;h=[Promise.resolve().then(()=>s(yv(e,t,n,i,m,l,!!u[3]))).then(p=>Ko(p,!1,i.id),p=>Ko(p,!0,i.id)).then(p=>(p[0]!==wr&&e._flights?.get(n.id)===h&&(e._flights.delete(n.id),h[2]||m.abort()),p[0]===li&&h[2]?M0(i,p[1]):p)),m,1],(e._flights??=new Map).set(n.id,h)}return n._flight=h,n.abortController=h[1],j0(e,t,i,await Wa(h[0],d),u)}catch(m){if(m!==d||!d.aborted)throw m;return si(e,n),ea}finally{Xo(e,n,!1,c)}}function Ex(e,t,n){t[0]!==qn&&(e.status="success",e.error=void 0,t[0]===wr?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function a6(e,t,n){const i=e._cache.get(t.id);if(i!==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),i&&si(e,i)}function xx(e,t){return t[0]===li||t[0]===$f?{...e,status:t[0]===li?"error":"notFound",error:t[1],_flight:void 0}:e}function s6(e,t,n,i,s,l,u){const c=t[1][n],d=Za(e,c),h=!!l[3],m=e._cache.get(c.id);let p,y=!1,E;try{if(c.status==="success"&&(p=d.options.shouldReload,typeof p=="function"&&(p=p(yv(e,t,c,d,l[0],s,h))),l[0].signal.aborted&&(E=ea)),!E)if(c.status!=="success")y=!0;else{const X=h||c.preload?d.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.options.defaultStaleTime??0;y=!!(c.invalid||p||p===void 0&&Date.now()-c.updatedAt>=X&&(l[5]||c.cause==="enter"||l[2].some(le=>le.routeId===c.routeId&&le.id!==c.id)))}}catch(X){c.invalid=!0,si(e,c),E=Io(e,t,d,X,l)}const v=d.options.loader,S=typeof v=="function",A=S?v:v?.handler,k=!h||d.options.preload!==!1;let N=k&&v?e._flights?.get(c.id):void 0;N===c._flight||E?N=void 0:N&&!y&&!h&&p===void 0?y=!0:y||(N=void 0);const w=!!(v&&y&&c.status==="success"&&!h&&!l[4]&&((S?void 0:v.staleReloadMode)??e.options.defaultStaleReloadMode)!=="blocking"),D=y&&k,F=D&&!w&&(c.status!=="success"||!!v),O=n>=u?l[7]:void 0,M=d.lazyFn&&d._lazy!==!0?O:void 0;if(D&&!v&&(c.invalid=!1,c.updatedAt=Date.now()),N&&N[2]++,F){const X=c._flight;c._flight=N,P0(e,c,X)?.abort(),n>=u&&(c.status="pending"),O?.()}D||(c.isFetching=!1);const U=(E?Promise.resolve(E):F?yx(e,t,c,d,A,s,l):Promise.resolve([wr,c.loaderData])).then(X=>(F&&(Ex(c,X,h),X[0]===wr&&(v&&!l[0].signal.aborted&&a6(e,c,m),n>=u&&(c.status="pending"))),X)),$=Wa(Promise.resolve().then(()=>al(d,void 0,M)),l[0].signal).then(()=>{},X=>t[1].some((le,fe)=>fe<=n&&(le.status==="error"||le.status==="notFound"||le._notFound))?void 0:[n,Io(e,t,d,X,l)]).then(X=>U.then(le=>(F&&!X&&le[0]===wr&&c.status==="pending"&&!l[0].signal.aborted&&(c.status="success",O?.()),X)));if(i.push([n,U,$]),!w)return U.then(X=>xx(c,X));const H={...c,status:"pending",preload:!1,_flight:N};c.invalid=!1,c.isFetching="loader";const ee=yx(e,t,H,d,A,s,l).then(X=>(c.isFetching=!1,Ex(H,X,!1),X));return(t[2]??=[]).push([n,ee,$,H]),ee.then(X=>xx(H,X))}async function Dp(e,t,n,i,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=Za(e,t[c]);try{const h=al(d,!1);h&&await Wa(h,i)}catch(h){if(h===i&&i.aborted)throw h}if(d.options.notFoundComponent)return c}return l?.routeId?u:s}function za(e,t){t[2]&&(On(e,t[2].map(n=>n[3])),t[2]=void 0)}async function Tx(e,t,n,i){let s;try{await Promise.all(e.map(l=>l[1].then(async u=>{const c=l[0];if(!(i&&c>=await i)){if(u[0]>=qn)throw[c,u];!s&&u[0]!==wr&&(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 j0(e,t,n,i,s,l){for(;i[0]===qn;){const u=i[1],c=u.options;if(c.reloadDocument?s[3]:s[1]>=20)return i;try{return c.href&&c.reloadDocument?(e.resolveRedirect(u),i):[qn,u,e.buildLocation({...c,_fromLocation:t[0],_includeValidateSearch:!0})]}catch(d){i=l?[li,d]:M0(n,d),l=!0}}return i}async function Ev(e,t,n,i,s,l){const u=t[1];let c=await s,d=!1;const h=u.findIndex(E=>E._notFound),m=E=>E[1][0]===$f?Dp(e,u,E,i.signal):E[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 E of n){if(E[0]>=p)break;const v=await E[1];if(v[0]!==wr&&v[0]<qn&&!("loaderData"in u[E[0]])){c=[E[0],v],p=c[2]=await m(c);break}}}for(const E of n){if(E[0]>=p)break;const v=await E[2];if(v){c=v;break}}if((c?.[1][0]??0)>=qn){const E=c[1];if(E[0]!==qn||E[1].options.reloadDocument||E[2])return za(e,t),E;d=!0,c=[0,[li,new Error("Too many redirects")]]}const y=c?c[2]??await m(c):h;if(y>=0){const E=c?.[1],v=E?.[0],S=u[y],A=E?.[1],k=()=>{E&&(S._notFound=void 0,v===li?S.status="error":(A.routeId=S.routeId,S.routeId===e.routeTree.id?(S.status="success",S._notFound=!0):S.status="notFound"),S.error=A,S.isFetching=!1)};k(),E||l?.();const N=Za(e,S);try{await Wa(E?Promise.resolve().then(()=>al(N,v===li?"errorComponent":"notFoundComponent")):Promise.all([al(N),al(N,"notFoundComponent")]),i.signal)}catch(w){if(w===i.signal&&i.signal.aborted)return za(e,t),ea}E?d&&(i.abort(),await Promise.all([...n.map(w=>w[1]),...n.map(w=>w[2]),...(t[2]??[]).map(w=>w[1])]),za(e,t),On(e,u),k()):S.status="success"}return t}async function xv(e,t,n,i=0,s=t[1].length){const l=t[1];for(let u=i;u<s;u++){const c=l[u],d=Za(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 Wa(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 Tv(e,t,n,i){const s=[t,n],l=i[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 Dp(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=i[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=[],y=i[6]??0;let E=y?Promise.resolve(n[y-1]):void 0;const v=()=>{for(let k=y;k<h&&!l.aborted;k++)E=s6(e,s,k,p,E,i,m)},S=await i6(e,s,i,h,v,m);if(S){if(i[4]=!0,h=S[0],S[1][0]===$f){const k=await Dp(e,n,S,l);S[2]=k,h=Math.min(h,k+1)}else S[1][0]>=qn&&(h=0);v()}if(!l.aborted&&!i[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 A=Ev(e,s,p,i[0],Tx(p,S,s[2]),i[7]);s[2]?.length&&(s[3]=Tx(s[2],void 0,void 0,A.then(k=>Go(k)?0:I0(n).length,()=>0))),u=await A}catch(c){if(za(e,s),c===l&&l.aborted)return ea;throw c}return Go(u)?u:xv(e,u,l,i[6]===n.length?i[6]:0)}function Ip(e,t){if(e._tx!==t)return;const n=t[3],i=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=i[l]?.id===u.id&&i[l]?.status==="pending";if(c&&!d)continue;const h=Za(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 y=h.options.pendingMinMs??e.options.defaultPendingMinMs??0;let E=!1;if(s?.[1]===u.id?(E=s[0]!==t,s[0]=t):(clearTimeout(s?.[3]),e._pending=s=void 0),s||(e._pending=s=[t,u.id,d?Date.now()+y:t[4]+m,void 0,d||void 0,p]),s[4]&&!E&&s[5]===p)return;if(s[5]=p,!s[4]){clearTimeout(s[3]);const A=s[2]-Date.now();if(A>0){s[3]=setTimeout(()=>Ip(e,t),A);return}s[2]=0}const v=n.map(A=>({...A,_flight:void 0}));v[l].status="pending";const S=s[4]=e.startTransition(()=>e.stores.setMatches(v),v).then(A=>(A&&e._pending===s&&s[4]===S&&!s[2]&&(s[2]=Date.now()+y),A));return}}function xo(e,t){const n=e._pending;(e._tx===t||!e._tx?.[3].some(i=>i.id===n?.[1]))&&(clearTimeout(n?.[3]),e._pending=void 0)}async function vx(e,t){const n=e._pending;if(!n)return;clearTimeout(n[3]);const i=n[2]-Date.now();if(!n[4]||i<=0||!I0(t[3]).some(l=>l.id===n[1]))return;let s;try{await Wa(new Promise(l=>{s=setTimeout(l,i)}),t[0].signal)}catch{}clearTimeout(s)}function vv(e,t){e._committed=t,e.stores.setMatches(t)}function l6(e,t,n,i){const s=e._committed,l=e._cache;for(const d of n)d.preload=!1,i&&(d._assetEnd=void 0);const u=I0(n).length,c=new Map;{const d=Date.now();for(const h of[...s,...l.values()]){if(h.status!=="success"||n.some((p,y)=>p.id===h.id&&(y<u||p.status==="success")))continue;const m=Za(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,vv(e,n),On(e,[...l.values(),...s],[...n,...c.values()]),ZN(e,s,n,t)}async function Bc(e,t){let n=e._tx;for(;n&&n!==t;){if(await n[5],e._tx===n)return;n=e._tx}}function Sv(e,t,n){const i=n[1].options,s=n[2];if(!s)return e.navigate({...i,replace:!0,ignoreBlocker:!0});if(i.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:i.viewTransition,replace:!0,resetScroll:i.resetScroll,hashScrollIntoView:i.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===s&&(e._pendingLocation=void 0)}),l}async function o6(e,t,n,i,s){const l=n.map(d=>({...d}));B0(l);for(const d of i)si(e,l[d[0]]),l[d[0]]=d[3];const u=[t[2],l];let c;try{c=await Ev(e,u,i,t[0],s)}catch(d){throw On(e,l),d}if(Go(c)){On(e,l),c[0]===qn&&e._tx===t&&e._committed===n&&await Sv(e,t,c);return}if(await xv(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),si(e,h))}vv(e,l),On(e,n,l)}async function u6(e,t,n,i,s,l){const u=await Tv(e,t[2],t[3],[t[0],t[1],e._committed,void 0,s,n,l,i]);if(Go(u)){const p=u[0]===qn&&e._tx===t;if((!p||u[1].options.reloadDocument)&&xo(e,t),On(e,t[3]),t[3]=[],!p)return;if(e._tx!==t){xo(e,t);return}await Sv(e,t,u);return}const c=u[1];if(e._tx===t&&await vx(e,t),e._tx!==t){xo(e,t),On(e,c),za(e,u);return}const d=t[2],h=Yf(d,e.stores.resolvedLocation.get()),m=u[2];await e.startViewTransition(async()=>{if(e._tx===t&&await vx(e,t),e._tx!==t){xo(e,t),On(e,c),za(e,u);return}const p=()=>{xo(e,t),l6(e,t,c,l),e._tx===t&&(e.emit({type:"onLoad",...h}),e._tx===t&&e.emit({type:"onBeforeRouteMount",...h}))},y=await e.startTransition(p,c);if(e._tx!==t){za(e,u);return}m?.length&&o6(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}),y&&e._tx===t&&e.emit({type:"onRendered",...h})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function c6(e,t){const n=e._tx,i=e.stores.resolvedLocation.get(),s=i??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 D=Yf(l,i);e.emit({type:"onBeforeNavigate",...D}),m.signal.aborted||e.emit({type:"onBeforeLoad",...D})}if(m.signal.aborted){await Bc(e,n);return}const y=s.href===l.href;let E=m;const v=e.matchRoutes(l,{_controller:m});B0(v);const S=h?d[1](v):void 0;if(S?E=h:h?.abort(),m.signal.aborted){On(e,v),await Bc(e,n);return}e._preflight=void 0;let A;const k=()=>u6(e,w,y,()=>Ip(e,w),t?.sync,S),N=t?.sync?new Promise(D=>A=D):Promise.resolve().then(k).then(),w=[E,c,l,v,Date.now(),N];if(e._tx=w,n){for(const D of e.stores.matches.get()){if(e._tx!==w)break;D.isFetching&&Xo(e,D,!1)}n[0].abort(),On(e,n[3],w[3],!0)}if(e._tx!==w){On(e,w[3]),w[3]=[],A?.(),await Bc(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(D=>D._notFound))&&Ip(e,w),A?.(k()),await N,await Bc(e,w)}async function f6(e,t){let n=e.buildLocation(t);for(let i=0;;i++){const s=e._committed,l=new AbortController;let u,c,d;try{try{u=e.matchRoutes(n,{_controller:l}),B0(u),c=(e._preloads??=new Map).set(l,u),d=await Tv(e,n,u,[l,i,s,!0])}finally{c&&(c=c.delete(l),On(e,u)),l.abort()}if(!Go(d))return d[1];if(!c||d.length<3)return;n=d[2]}catch(h){cl(h)||console.error(h);return}}}const d6="Error preloading route! ☝️";var Cv=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,i=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),i?this._path=il:this.parentRoute||O0();let s=i?il:n?.path;s&&s!=="/"&&(s=hv(s));const l=n?.id||s;let u=i?il:af([this.parentRoute.id==="__root__"?"":this.parentRoute.id,l]);s==="__root__"&&(s="/"),u!=="__root__"&&(u=af(["/",u]));const c=u==="__root__"?"/":af([this.parentRoute.fullPath,s]);this._path=s,this._id=u,this._fullPath=c,this._to=ii(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=>YN({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.")}},h6=class extends Cv{constructor(e){super(e)}},H0=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??m6,{error:e,reset:this.reset}):this.props.children}};function m6({error:e}){const[t,n]=C.useState(!1);return x.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[x.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),x.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(i=>!i),children:t?"Hide Error":"Show Error"})]}),x.jsx("div",{style:{height:".25rem"}}),t?x.jsx("div",{children:x.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?x.jsx("code",{children:e.message}):null})}):null]})}function p6({children:e,fallback:t=null}){return x.jsx(pl.Fragment,{children:_v()?e:t})}function _v(){return pl.useSyncExternalStore(g6,()=>!0,()=>!1)}function g6(){return()=>{}}var Av=C.createContext(null);function hr(e){return C.useContext(Av)}var Gf=C.createContext(void 0),b6=C.createContext(void 0),_t=(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))(_t||{});function y6({update:e,notify:t,unwatched:n}){return{link:i,unlink:s,propagate:l,checkDirty:u,shallowPropagate:c};function i(h,m,p){const y=m.depsTail;if(y!==void 0&&y.dep===h)return;const E=y!==void 0?y.nextDep:m.deps;if(E!==void 0&&E.dep===h){E.version=p,m.depsTail=E;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:y,nextDep:E,prevSub:v,nextSub:void 0};E!==void 0&&(E.prevDep=S),y!==void 0?y.nextDep=S:m.deps=S,v!==void 0?v.nextSub=S:h.subs=S}function s(h,m=h.sub){const p=h.dep,y=h.prevDep,E=h.nextDep,v=h.nextSub,S=h.prevSub;return E!==void 0?E.prevDep=y:m.depsTail=y,y!==void 0?y.nextDep=E:m.deps=E,v!==void 0?v.prevSub=S:p.subsTail=S,S!==void 0?S.nextSub=v:(p.subs=v)===void 0&&n(p),E}function l(h){let m=h.nextSub,p;e:do{const y=h.sub;let E=y.flags;if(E&60?E&12?E&4?!(E&48)&&d(h,y)?(y.flags=E|40,E&=1):E=0:y.flags=E&-9|32:E=0:y.flags=E|32,E&2&&t(y),E&1){const v=y.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,y=0,E=!1;e:do{const v=h.dep,S=v.flags;if(m.flags&16)E=!0;else if((S&17)===17){if(e(v)){const A=v.subs;A.nextSub!==void 0&&c(A),E=!0}}else if((S&33)===33){(h.nextSub!==void 0||h.prevSub!==void 0)&&(p={value:h,prev:p}),h=v.deps,m=v,++y;continue}if(!E){const A=h.nextDep;if(A!==void 0){h=A;continue}}for(;y--;){const A=m.subs,k=A.nextSub!==void 0;if(k?(h=p.value,p=p.prev):h=A,E){if(e(m)){k&&c(A),m=h.sub;continue}E=!1}else m.flags&=-33;m=h.sub;const N=h.nextDep;if(N!==void 0){h=N;continue e}}return E}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 E6(e,t,n){const i=typeof e=="object",s=i?e:void 0;return{next:(i?e.next:e)?.bind(s),error:(i?e.error:t)?.bind(s),complete:(i?e.complete:n)?.bind(s)}}const Mp=[];let uf=0;const{link:Sx,unlink:x6,propagate:T6,checkDirty:kv,shallowPropagate:Cx}=y6({update(e){return e._update()},notify(e){Mp[Pp++]=e,e.flags&=~_t.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=_t.Mutable|_t.Dirty,Af(e))}});let jc=0,Pp=0,Cr,Bp=0;function v6(e){try{++Bp,e()}finally{--Bp||wv()}}function Af(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=x6(n,e)}function wv(){if(!(Bp>0)){for(;jc<Pp;){const e=Mp[jc];Mp[jc++]=void 0,e.notify()}jc=0,Pp=0}}function _x(e,t){const n=typeof e=="function",i=e,s={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?_t.None:_t.Mutable,get(){return Cr!==void 0&&Sx(s,Cr,uf),s._snapshot},subscribe(l){const u=E6(l),c={current:!1},d=S6(()=>{s.get(),c.current?u.next?.(s._snapshot):c.current=!0});return{unsubscribe:()=>{d.stop()}}},_update(l){const u=Cr,c=t?.compare??Object.is;if(n)Cr=s,++uf,s.depsTail=void 0;else if(l===void 0)return!1;n&&(s.flags=_t.Mutable|_t.RecursedCheck);try{const d=s._snapshot,h=typeof l=="function"?l(d):l===void 0&&n?i(d):l;return d===void 0||!c(d,h)?(s._snapshot=h,!0):!1}finally{Cr=u,n&&(s.flags&=~_t.RecursedCheck),Af(s)}}};return n?(s.flags=_t.Mutable|_t.Dirty,s.get=function(){const l=s.flags;if(l&_t.Dirty||l&_t.Pending&&kv(s.deps,s)){if(s._update()){const u=s.subs;u!==void 0&&Cx(u)}}else l&_t.Pending&&(s.flags=l&~_t.Pending);return Cr!==void 0&&Sx(s,Cr,uf),s._snapshot}):s.set=function(l){if(s._update(l)){const u=s.subs;u!==void 0&&(T6(u),Cx(u),wv())}},s}function S6(e){const t=()=>{const i=Cr;Cr=n,++uf,n.depsTail=void 0,n.flags=_t.Watching|_t.RecursedCheck;try{return e()}finally{Cr=i,n.flags&=~_t.RecursedCheck,Af(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:_t.Watching|_t.RecursedCheck,notify(){const i=this.flags;i&_t.Dirty||i&_t.Pending&&kv(this.deps,this)?t():this.flags=_t.Watching},stop(){this.flags=_t.None,this.depsTail=void 0,Af(this)}};return t(),n}var zm={exports:{}},Fm={},qm={exports:{}},Vm={};var Ax;function C6(){if(Ax)return Vm;Ax=1;var e=ru();function t(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,s=e.useEffect,l=e.useLayoutEffect,u=e.useDebugValue;function c(p,y){var E=y(),v=i({inst:{value:E,getSnapshot:y}}),S=v[0].inst,A=v[1];return l(function(){S.value=E,S.getSnapshot=y,d(S)&&A({inst:S})},[p,E,y]),s(function(){return d(S)&&A({inst:S}),p(function(){d(S)&&A({inst:S})})},[p]),u(E),E}function d(p){var y=p.getSnapshot;p=p.value;try{var E=y();return!n(p,E)}catch{return!0}}function h(p,y){return y()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:c;return Vm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Vm}var kx;function _6(){return kx||(kx=1,qm.exports=C6()),qm.exports}var wx;function A6(){if(wx)return Fm;wx=1;var e=ru(),t=_6();function n(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var i=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,l=e.useRef,u=e.useEffect,c=e.useMemo,d=e.useDebugValue;return Fm.useSyncExternalStoreWithSelector=function(h,m,p,y,E){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(O){if(!N){if(N=!0,w=O,O=y(O),E!==void 0&&S.hasValue){var M=S.value;if(E(M,O))return D=M}return D=O}if(M=D,i(w,O))return M;var U=y(O);return E!==void 0&&E(M,U)?(w=O,M):(w=O,D=U)}var N=!1,w,D,F=p===void 0?null:p;return[function(){return k(m())},F===null?void 0:function(){return k(F())}]},[m,p,y,E]);var A=s(h,v[0],v[1]);return u(function(){S.hasValue=!0,S.value=A},[A]),d(A),A},Fm}var Nx;function k6(){return Nx||(Nx=1,zm.exports=A6()),zm.exports}var w6=k6();function N6(e,t){return e===t}function ci(e,t,n=N6){const i=C.useCallback(u=>{if(!e)return()=>{};const{unsubscribe:c}=e.subscribe(u);return c},[e]),s=C.useCallback(()=>e?.get(),[e]);return w6.useSyncExternalStoreWithSelector(i,s,s,t,n)}var Rx={};function Nv(e,t){const n=C.useRef();return i=>{const s=e?.select?e.select(i):i;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=Pa(n.current,s):s}}function Ja(e){const t=hr(),n=C.useContext(e.from?b6:Gf),i=e.from??n,s=t.stores.getMatchStore(i),l=Nv(e,t),u=ci(s,c=>c?l(c):Rx);if(u!==Rx)return u;(e.shouldThrow??!0)&&O0()}function Rv(e){return Ja({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Ov(e){const{select:t,...n}=e;return Ja({...n,select:i=>t?t(i.loaderDeps):i.loaderDeps})}function Lv(e){return Ja({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 Dv(e){return Ja({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function U0(e){const t=hr();return C.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Iv(e){return Ja({...e,select:t=>e.select?e.select(t.context):t.context})}function Ym(e){const t=C.useRef(e);return Wi(t.current,e,{ignoreUndefined:!1})||(t.current=e),t.current}function R6(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function O6(e,t,n){if(e?.external)return Tf(e.href,n)?void 0:e.href;if(!j6(t)&&!(typeof t!="string"||t.indexOf(":")===-1))try{return new URL(t),Tf(t,n)?void 0:t}catch{}}function L6(e,t,n,i,s,l){if(l)return!1;if(n?.exact){if(!wN(e.pathname,t.pathname,i))return!1}else{const u=Sf(e.pathname,i),c=Sf(t.pathname,i);if(!(u.startsWith(c)&&(u.length===c.length||u[c.length]==="/")))return!1}return(n?.includeSearch??!0)&&!Wi(e.search,t.search,{partial:!n?.exact,ignoreUndefined:!n?.explicitUndefined})?!1:n?.includeHash?s&&e.hash===t.hash:!0}function D6(e,t){const n=hr(),i=cN(t),{activeProps:s,inactiveProps:l,activeOptions:u,to:c,preload:d,preloadDelay:h,preloadIntentProximity:m,hashScrollIntoView:p,replace:y,startTransition:E,resetScroll:v,viewTransition:S,children:A,target:k,disabled:N,style:w,className:D,onClick:F,onBlur:O,onFocus:M,onMouseEnter:U,onMouseLeave:$,onTouchStart:H,ignoreBlocker:ee,params:X,search:le,hash:fe,state:ie,mask:B,reloadDocument:K,unsafeRelative:oe,from:Te,_fromLocation:L,...z}=e,Z=_v(),I=Ym(e.search),me=Ym(e.params),xe=Ym(u),W=C.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,I,me,e.state,e.mask,e.unsafeRelative]),ye=C.useCallback(Ze=>{const Je=n.buildLocation({_fromLocation:Ze,...W}),sn=B6(Je.maskedLocation?Je.maskedLocation.publicHref:Je.publicHref,Je.maskedLocation?Je.maskedLocation.external:Je.external,n.history,N),ue=O6(sn,c,n.protocolAllowlist);return[sn?.href,ue,L6(Ze,Je,xe,n.basepath,Z,ue!==void 0)]},[xe,N,Z,W,n,c]),[ge,ve,Pe]=ci(n.stores.location,ye,R6),Le=Pe?ul(s,{})??I6:$m,De=Pe?$m:ul(l,{})??$m,Ye=[D,Le.className,De.className].filter(Boolean).join(" "),rt=(w||Le.style||De.style)&&{...w,...Le.style,...De.style},pt=C.useRef(!1),ct=e.reloadDocument||ve||N?!1:d??n.options.defaultPreload,Vt=h??n.options.defaultPreloadDelay??0,Ut=C.useCallback(()=>{n.preloadRoute(W).catch(Ze=>{console.warn(Ze),console.warn(d6)})},[n,W]),xn=C.useCallback(Ze=>{if(!Ze){Gm(i);return}if(!(Ze.isIntersecting??ct==="intent")){Ze.isIntersecting===!1&&Gm(i);return}if(!Vt){Ut();return}Mo.has(i)||Mo.set(i,setTimeout(()=>{Mo.delete(i),Ut()},Vt))},[Ut,i,ct,Vt]);uN(i,xn,ct!=="viewport"),C.useEffect(()=>{pt.current||ct==="render"&&(Ut(),pt.current=!0)},[Ut,ct]);const we=Ze=>{const Je=Ze.currentTarget.getAttribute("target"),sn=k!==void 0?k:Je;!N&&!(Ze.metaKey||Ze.altKey||Ze.ctrlKey||Ze.shiftKey)&&!Ze.defaultPrevented&&(!sn||sn==="_self")&&Ze.button===0&&(Ze.preventDefault(),n.navigate({...W,replace:y,resetScroll:v,hashScrollIntoView:p,startTransition:E,viewTransition:S,ignoreBlocker:ee}))};if(ve)return{...z,ref:i,href:ve,...A&&{children:A},...k&&{target:k},...N&&{disabled:N},...w&&{style:w},...D&&{className:D},...F&&{onClick:F},...O&&{onBlur:O},...M&&{onFocus:M},...U&&{onMouseEnter:U},...$&&{onMouseLeave:$},...H&&{onTouchStart:H}};const He=()=>{ct==="intent"&&Ut()},At=()=>{ct==="intent"&&Gm(i)};return{...z,...Le,...De,href:ge,ref:i,onClick:Ys([F,we]),onBlur:Ys([O,At]),onFocus:Ys([M,xn]),onMouseEnter:Ys([U,xn]),onMouseLeave:Ys([$,At]),onTouchStart:Ys([H,He]),disabled:!!N,target:k,...rt&&{style:rt},...Ye&&{className:Ye},...N&&M6,...Pe&&P6}}var $m={},I6={className:"active"},M6={role:"link","aria-disabled":!0},P6={"data-status":"active","aria-current":"page"},Mo=new WeakMap,Gm=e=>{clearTimeout(Mo.get(e)),Mo.delete(e)},Ys=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function B6(e,t,n,i){if(!i)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function j6(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Mv=C.forwardRef((e,t)=>{const{_asChild:n,...i}=e,{type:s,...l}=D6(i,t),u=typeof i.children=="function"?i.children({isActive:l["data-status"]==="active"}):i.children;if(!n){const{disabled:c,...d}=l;return C.createElement("a",d,u)}return C.createElement(n,l,u)}),H6=class extends Cv{constructor(e){super(e),this.useMatch=t=>Ja({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>Iv({...t,from:this.id}),this.useSearch=t=>Dv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Lv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Ov({...t,from:this.id}),this.useLoaderData=t=>Rv({...t,from:this.id}),this.useNavigate=()=>U0({from:this.fullPath}),this.Link=pl.forwardRef((t,n)=>x.jsx(Mv,{ref:n,from:this.fullPath,...t}))}};function zi(e){return new H6(e)}var U6=class extends h6{constructor(e){super(e),this.useMatch=t=>Ja({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>Iv({...t,from:this.id}),this.useSearch=t=>Dv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Lv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Ov({...t,from:this.id}),this.useLoaderData=t=>Rv({...t,from:this.id}),this.useNavigate=()=>U0({from:this.fullPath}),this.Link=pl.forwardRef((t,n)=>x.jsx(Mv,{ref:n,from:this.fullPath,...t}))}};function z6(e){return new U6(e)}function F6(e){const t=hr(),n=`not-found-${ci(t.stores.location,i=>i.pathname)}-${ci(t.stores.status,i=>i)}`;return x.jsx(H0,{getResetKey:()=>n,onCatch:(i,s)=>{if(cl(i))e.onCatch?.(i,s);else throw i},errorComponent:({error:i})=>{if(cl(i))return e.fallback?.(i);throw i},children:e.children})}function q6(){return x.jsx("p",{children:"Not Found"})}function Js(e){return x.jsx(x.Fragment,{children:e.children})}function Pv(e,t,n){return t.options.notFoundComponent?x.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?x.jsx(e.options.defaultNotFoundComponent,{...n}):x.jsx(q6,{})}function Kf(e,t){const n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?x.jsx(n,{}):null}var V6=(e,t)=>e[0]===t[0]&&e[1]===t[1],Bv=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n==="data-only"||!e.ssr,jv=C.memo(function({routeId:t}){const n=hr();return x.jsx(Y6,{router:n,match:ci(n.stores.getMatchStore(t),i=>i)})});function Y6({router:e,match:t}){const n=e.routesById[t.routeId],i=Kf(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=Bv(e,n,t.ssr)&&(n.options.wrapInSuspense??i??(n.options.errorComponent?.preload||c))?C.Suspense:Js,h=s?H0:Js,m=u?F6:Js;return x.jsxs(n.isRoot?n.options.shellComponent??Js:Js,{children:[x.jsx(Gf.Provider,{value:t.routeId,children:x.jsx(d,{fallback:i,children:x.jsx(h,{getResetKey:()=>t,errorComponent:s,onCatch:(p,y)=>{if(cl(p))throw p.routeId??=t.routeId,p;l?.(p,y)},children:x.jsx(m,{fallback:p=>{if(p.routeId??=t.routeId,p.routeId!==t.routeId)throw p;return C.createElement(u,p)},children:c?x.jsx(p6,{fallback:i,children:x.jsx(Ox,{match:t})}):x.jsx(Ox,{match:t})})})})}),null]})}var Ox=C.memo(function({match:t}){const n=hr(),i=t.routeId,s=n.routesById[i],l=C.useMemo(()=>{const c=(s.options.remountDeps??n.options.defaultRemountDeps)?.({routeId:i,loaderDeps:t.loaderDeps,params:t._strictParams,search:t._strictSearch});return c?JSON.stringify(c):void 0},[i,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?x.jsx(c,{},l):x.jsx(Hv,{})},[l,s.options.component,n.options.defaultComponent]);if(t.status==="pending"){if(n.ssr&&!Bv(n,s,t.ssr))return u;if(n._tx)throw n._tx[5];return Kf(n,s)}if(t.status==="notFound")return Pv(n,s,t.error);if(t.status==="error")throw t.error;return u}),Hv=C.memo(function(){const t=hr(),n=C.useContext(Gf);let i,s,l;{const c=t.stores.getMatchStore(n);[i,s]=ci(c,d=>[!!d._notFound,d.error],V6),l=ci(t.stores.ids,d=>d[d.indexOf(n)+1])}if(i)return Pv(t,t.routesById[n],s);if(!l)return null;const u=x.jsx(jv,{routeId:l});return n===il?x.jsx(C.Suspense,{fallback:Kf(t),children:u}):u});function Uv(e,t){const n=e[1];e.length=0,n?.(t)}function $6({t:e}){const t=hr(),n=t._rendered??=[];return t.startTransition=(i,s)=>new Promise(l=>{Uv(n,!1),n.push(s,l),e(t),C.startTransition(i)}),av(()=>{const i=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(ii(s.publicHref)!==ii(l.publicHref))return t.commitLocation({...l,replace:!0,ignoreBlocker:!0}),i;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",...Yf(u,u)})}):t._tx||t.load({sync:!0}).catch(console.error),i},[t,t.history]),null}function G6(){const e=hr(),t=e.routesById[il],n=Kf(e,t),i=e.ssr?Js:C.Suspense,s=x.jsxs(x.Fragment,{children:[x.jsx($6,{t:C.useState()[1]}),x.jsx(i,{fallback:n,children:x.jsx(K6,{})})]});return e.options.InnerWrap?x.jsx(e.options.InnerWrap,{children:s}):s}function K6(){const e=hr(),t=e._rendered,n=ci(e.stores.matches,u=>t[0]??u),i=n[0],s=i?.routeId;av(()=>{t[0]===n&&Uv(t,!0)},[t,n]);const l=s?x.jsx(jv,{routeId:s}):null;return x.jsx(Gf.Provider,{value:s,children:e.options.disableGlobalCatchBoundary?l:x.jsx(H0,{getResetKey:()=>i,onCatch:void 0,children:l})})}var X6=e=>({createMutableStore:_x,createReadonlyStore:_x,batch:v6}),Q6=e=>new W6(e),W6=class extends JN{constructor(e){super(e,X6)}};function Z6({router:e,children:t,...n}){lv(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const i=x.jsx(Av.Provider,{value:e,children:t});return e.options.Wrap?x.jsx(e.options.Wrap,{children:i}):i}function J6({router:e,...t}){return x.jsx(Z6,{router:e,...t,children:x.jsx(G6,{})})}function eR(e){const t=hr({warn:e?.router===void 0}),n=e?.router||t;return ci(n.stores.__store,Nv(e,n))}const tR=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zv=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();var nR={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 rR=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:l,iconNode:u,...c},d)=>C.createElement("svg",{ref:d,...nR,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:zv("lucide",s),...c},[...u.map(([h,m])=>C.createElement(h,m)),...Array.isArray(l)?l:[l]]));const lt=(e,t)=>{const n=C.forwardRef(({className:i,...s},l)=>C.createElement(rR,{ref:l,iconNode:t,className:zv(`lucide-${tR(e)}`,i),...s}));return n.displayName=`${e}`,n};const Lx=lt("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 iR=lt("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);const Fv=lt("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);const aR=lt("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 sR=lt("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 Ba=lt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const jp=lt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const lR=lt("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const oR=lt("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 uR=lt("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);const cR=lt("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 Km=lt("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 z0=lt("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 fR=lt("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 Dx=lt("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 dR=lt("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);const Hc=lt("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 qv=lt("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 cf=lt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const hR=lt("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 Vv=lt("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);const mR=lt("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 pR=lt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const gR=lt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);const ff=lt("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 bR=lt("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 Ix=lt("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 Yv=lt("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 $v=lt("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 Po=lt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var ia=iv(),yR=Object.defineProperty,ER=(e,t)=>yR(e,"name",{value:t,configurable:!0});function Hp(e,[t,n]){return Math.min(n,Math.max(t,e))}ER(Hp,"clamp");var xR=Object.defineProperty,gl=(e,t)=>xR(e,"name",{value:t,configurable:!0}),Gv=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ot(e,t,{checkForDefaultPrevented:n=!0}={}){return gl(function(s){if(e?.(s),n===!1||!s||!s.defaultPrevented)return t?.(s)},"handleEvent")}gl(Ot,"composeEventHandlers");function TR(e){if(!Gv)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}gl(TR,"getOwnerWindow");function Up(e){if(!Gv)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}gl(Up,"getOwnerDocument");function Kv(e,t=!1){const{activeElement:n}=Up(e);if(!n?.nodeName)return null;if(Xv(n)&&n.contentDocument)return Kv(n.contentDocument.body,t);if(t){const i=n.getAttribute("aria-activedescendant");if(i){const s=Up(n).getElementById(i);if(s)return s}}return n}gl(Kv,"getActiveElement");function Xv(e){return e.tagName==="IFRAME"}gl(Xv,"isFrame");var vR=Object.defineProperty,ir=(e,t)=>vR(e,"name",{value:t,configurable:!0});function SR(e,t){const n=C.createContext(t);n.displayName=e+"Context";const i=ir(l=>{const{children:u,...c}=l,d=C.useMemo(()=>c,Object.values(c));return x.jsx(n.Provider,{value:d,children:u})},"Provider");i.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 ir(s,"useContext"),[i,s]}ir(SR,"createContext");function au(e,t=[]){let n=[];function i(l,u){const c=C.createContext(u);c.displayName=l+"Context";const d=n.length;n=[...n,u];const h=ir(p=>{const{scope:y,children:E,...v}=p,S=y?.[e]?.[d]||c,A=C.useMemo(()=>v,Object.values(v));return x.jsx(S.Provider,{value:A,children:E})},"Provider");h.displayName=l+"Provider";function m(p,y,E={}){const{optional:v=!1}=E,S=y?.[e]?.[d]||c,A=C.useContext(S);if(A)return A;if(u!==void 0)return u;if(!v)throw new Error(`\`${p}\` must be used within \`${l}\``)}return ir(m,"useContext"),[h,m]}ir(i,"createContext");const s=ir(()=>{const l=n.map(u=>C.createContext(u));return ir(function(c){const d=c?.[e]||l;return C.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])},"useScope")},"createScope");return s.scopeName=e,[i,Qv(s,...t)]}ir(au,"createContextScope");function Qv(...e){const t=e[0];if(e.length===1)return t;const n=ir(()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return ir(function(l){const u=i.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}ir(Qv,"composeContextScopes");var CR=Object.defineProperty,F0=(e,t)=>CR(e,"name",{value:t,configurable:!0});function zp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}F0(zp,"setRef");function Wv(...e){return t=>{let n=!1;const i=e.map(s=>{const l=zp(s,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let s=0;s<i.length;s++){const l=i[s];typeof l=="function"?l():zp(e[s],null)}}}}F0(Wv,"composeRefs");function Dt(...e){return C.useCallback(Wv(...e),e)}F0(Dt,"useComposedRefs");var _R=Object.defineProperty,mr=(e,t)=>_R(e,"name",{value:t,configurable:!0});function Va(e){const t=C.forwardRef((n,i)=>{let{children:s,...l}=n,u=null,c=!1;const d=[];Fp(s)&&typeof Uc=="function"&&(s=Uc(s._payload)),C.Children.forEach(s,y=>{if(tS(y)){c=!0;const E=y;let v="child"in E.props?E.props.child:E.props.children;Fp(v)&&typeof Uc=="function"&&(v=Uc(v._payload)),u=kR(E,v),d.push(u?.props?.children)}else d.push(y)}),u?u=C.cloneElement(u,void 0,d):!c&&C.Children.count(s)===1&&C.isValidElement(s)&&(u=s);const h=u?eS(u):void 0,m=Dt(i,h);if(!u){if(s||s===0)throw new Error(c?RR(e):NR(e));return s}const p=Jv(l,u.props??{});return u.type!==C.Fragment&&(p.ref=i?m:h),C.cloneElement(u,p)});return t.displayName=`${e}.Slot`,t}mr(Va,"createSlot");var Zv=Symbol.for("radix.slottable");function AR(e){const t=mr(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Zv,t}mr(AR,"createSlottable");var kR=mr((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 Jv(e,t){const n={...t};for(const i in t){const s=e[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?n[i]=(...c)=>{const d=l(...c);return s(...c),d}:s&&(n[i]=s):i==="style"?n[i]={...s,...l}:i==="className"&&(n[i]=[s,l].filter(Boolean).join(" "))}return{...e,...n}}mr(Jv,"mergeProps");function eS(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)}mr(eS,"getElementRef");function tS(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Zv}mr(tS,"isSlottable");var wR=Symbol.for("react.lazy");function Fp(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===wR&&"_payload"in e&&nS(e._payload)}mr(Fp,"isLazyComponent");function nS(e){return typeof e=="object"&&e!==null&&"then"in e}mr(nS,"isPromiseLike");var NR=mr(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),RR=mr(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Uc=iu[" use ".trim().toString()],OR=Object.defineProperty,Qt=(e,t)=>OR(e,"name",{value:t,configurable:!0});function rS(e){const t=e+"CollectionProvider",[n,i]=au(t),[s,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=Qt(S=>{const{scope:A,children:k}=S,N=C.useRef(null),w=C.useRef(new Map).current;return x.jsx(s,{scope:A,itemMap:w,collectionRef:N,children:k})},"CollectionProvider");u.displayName=t;const c=e+"CollectionSlot",d=Va(c),h=C.forwardRef((S,A)=>{const{scope:k,children:N}=S,w=l(c,k),D=Dt(A,w.collectionRef);return x.jsx(d,{ref:D,children:N})});h.displayName=c;const m=e+"CollectionItemSlot",p="data-radix-collection-item",y=Va(m),E=C.forwardRef((S,A)=>{const{scope:k,children:N,...w}=S,D=C.useRef(null),F=Dt(A,D),O=l(m,k);return C.useEffect(()=>(O.itemMap.set(D,{ref:D,...w}),()=>{O.itemMap.delete(D)})),x.jsx(y,{[p]:"",ref:F,children:N})});E.displayName=m;function v(S){const A=l(e+"CollectionConsumer",S);return C.useCallback(()=>{const N=A.collectionRef.current;if(!N)return[];const w=Array.from(N.querySelectorAll(`[${p}]`));return Array.from(A.itemMap.values()).sort((O,M)=>w.indexOf(O.ref.current)-w.indexOf(M.ref.current))},[A.collectionRef,A.itemMap])}return Qt(v,"useCollection"),[{Provider:u,Slot:h,ItemSlot:E},v,i]}Qt(rS,"createCollection");var Mx=new WeakMap,jt,Fn,Xm=(Fn=class extends Map{constructor(n){super(n);YE(this,jt);Lm(this,jt,[...super.keys()]),Mx.set(this,!0)}set(n,i){return Mx.get(this)&&(this.has(n)?ln(this,jt)[ln(this,jt).indexOf(n)]=n:ln(this,jt).push(n)),super.set(n,i),this}insert(n,i,s){const l=this.has(i),u=ln(this,jt).length,c=q0(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(i,s),this;const m=this.size+(l?0:1);c<0&&d++;const p=[...ln(this,jt)];let y,E=!1;for(let v=d;v<m;v++)if(d===v){let S=p[v];p[v]===i&&(S=p[v+1]),l&&this.delete(i),y=this.get(S),this.set(i,s)}else{!E&&p[v-1]===i&&(E=!0);const S=p[E?v:v-1],A=y;y=this.get(S),this.delete(S),this.set(S,A)}return this}with(n,i,s){const l=new Fn(this);return l.insert(n,i,s),l}before(n){const i=ln(this,jt).indexOf(n)-1;if(!(i<0))return this.entryAt(i)}setBefore(n,i,s){const l=ln(this,jt).indexOf(n);return l===-1?this:this.insert(l,i,s)}after(n){let i=ln(this,jt).indexOf(n);if(i=i===-1||i===this.size-1?-1:i+1,i!==-1)return this.entryAt(i)}setAfter(n,i,s){const l=ln(this,jt).indexOf(n);return l===-1?this:this.insert(l+1,i,s)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Lm(this,jt,[]),super.clear()}delete(n){const i=super.delete(n);return i&&ln(this,jt).splice(ln(this,jt).indexOf(n),1),i}deleteAt(n){const i=this.keyAt(n);return i!==void 0?this.delete(i):!1}at(n){const i=df(ln(this,jt),n);if(i!==void 0)return this.get(i)}entryAt(n){const i=df(ln(this,jt),n);if(i!==void 0)return[i,this.get(i)]}indexOf(n){return ln(this,jt).indexOf(n)}keyAt(n){return df(ln(this,jt),n)}from(n,i){const s=this.indexOf(n);if(s===-1)return;let l=s+i;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.at(l)}keyFrom(n,i){const s=this.indexOf(n);if(s===-1)return;let l=s+i;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.keyAt(l)}find(n,i){let s=0;for(const l of this){if(Reflect.apply(n,i,[l,s,this]))return l;s++}}findIndex(n,i){let s=0;for(const l of this){if(Reflect.apply(n,i,[l,s,this]))return s;s++}return-1}filter(n,i){const s=[];let l=0;for(const u of this)Reflect.apply(n,i,[u,l,this])&&s.push(u),l++;return new Fn(s)}map(n,i){const s=[];let l=0;for(const u of this)s.push([u[0],Reflect.apply(n,i,[u,l,this])]),l++;return new Fn(s)}reduce(...n){const[i,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(i,this,[u,c,l,this]),l++;return u}reduceRight(...n){const[i,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(i,this,[l,c,u,this])}return l}toSorted(n){const i=[...this.entries()].sort(n);return new Fn(i)}toReversed(){const n=new Fn;for(let i=this.size-1;i>=0;i--){const s=this.keyAt(i),l=this.get(s);n.set(s,l)}return n}toSpliced(...n){const i=[...this.entries()];return i.splice(...n),new Fn(i)}slice(n,i){const s=new Fn;let l=this.size-1;if(n===void 0)return s;n<0&&(n=n+this.size),i!==void 0&&i>0&&(l=i-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,i){let s=0;for(const l of this){if(!Reflect.apply(n,i,[l,s,this]))return!1;s++}return!0}some(n,i){let s=0;for(const l of this){if(Reflect.apply(n,i,[l,s,this]))return!0;s++}return!1}},jt=new WeakMap,Qt(Fn,"OrderedDict"),Fn);function df(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=iS(e,t);return n===-1?void 0:e[n]}Qt(df,"at");function iS(e,t){const n=e.length,i=q0(t),s=i>=0?i:n+i;return s<0||s>=n?-1:s}Qt(iS,"toSafeIndex");function q0(e){return e!==e||e===0?0:Math.trunc(e)}Qt(q0,"toSafeInteger");function LR(e){const t=e+"CollectionProvider",[n,i]=au(t),[s,l]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Xm,setItemMap:Qt(()=>{},"setItemMap")}),u=Qt(({state:w,...D})=>w?x.jsx(d,{...D,state:w}):x.jsx(c,{...D}),"CollectionProvider");u.displayName=t;const c=Qt(w=>{const D=A();return x.jsx(d,{...w,state:D})},"CollectionInit");c.displayName=t+"Init";const d=Qt(w=>{const{scope:D,children:F,state:O}=w,M=C.useRef(null),[U,$]=C.useState(null),H=Dt(M,$),[ee,X]=O;return C.useEffect(()=>{if(!U)return;const le=lS(()=>{});return le.observe(U,{childList:!0,subtree:!0}),()=>{le.disconnect()}},[U]),x.jsx(s,{scope:D,itemMap:ee,setItemMap:X,collectionRef:H,collectionRefObject:M,collectionElement:U,children:F})},"CollectionProviderImpl");d.displayName=t+"Impl";const h=e+"CollectionSlot",m=Va(h),p=C.forwardRef((w,D)=>{const{scope:F,children:O}=w,M=l(h,F),U=Dt(D,M.collectionRef);return x.jsx(m,{ref:U,children:O})});p.displayName=h;const y=e+"CollectionItemSlot",E="data-radix-collection-item",v=Va(y),S=C.forwardRef((w,D)=>{const{scope:F,children:O,...M}=w,U=C.useRef(null),[$,H]=C.useState(null),ee=Dt(D,U,H),X=l(y,F),{setItemMap:le}=X,fe=C.useRef(M);aS(fe.current,M)||(fe.current=M);const ie=fe.current;return C.useEffect(()=>{const B=ie;return le(K=>$?K.has($)?K.set($,{...B,element:$}).toSorted(qp):(K.set($,{...B,element:$}),K.toSorted(qp)):K),()=>{le(K=>!$||!K.has($)?K:(K.delete($),new Xm(K)))}},[$,ie,le]),x.jsx(v,{[E]:"",ref:ee,children:O})});S.displayName=y;function A(){return C.useState(new Xm)}Qt(A,"useInitCollection");function k(w){const{itemMap:D}=l(e+"CollectionConsumer",w);return D}return Qt(k,"useCollection"),[{Provider:u,Slot:p,ItemSlot:S},{createCollectionScope:i,useCollection:k,useInitCollection:A}]}Qt(LR,"createCollection");function aS(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),i=Object.keys(t);if(n.length!==i.length)return!1;for(const s of n)if(!Object.prototype.hasOwnProperty.call(t,s)||e[s]!==t[s])return!1;return!0}Qt(aS,"shallowEqual");function sS(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Qt(sS,"isElementPreceding");function qp(e,t){return!e[1].element||!t[1].element?0:sS(e[1].element,t[1].element)?-1:1}Qt(qp,"sortByDocumentPosition");function lS(e){return new MutationObserver(n=>{for(const i of n)if(i.type==="childList"){e();return}})}Qt(lS,"getChildListObserver");var DR=Object.defineProperty,IR=(e,t)=>DR(e,"name",{value:t,configurable:!0}),MR=C.createContext(void 0);function oS(e){const t=C.useContext(MR);return e||t||"ltr"}IR(oS,"useDirection");var PR=Object.defineProperty,BR=(e,t)=>PR(e,"name",{value:t,configurable:!0}),jR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],En=jR.reduce((e,t)=>{const n=Va(`Primitive.${t}`),i=C.forwardRef((s,l)=>{const{asChild:u,...c}=s,d=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(d,{...c,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function uS(e,t){e&&ia.flushSync(()=>e.dispatchEvent(t))}BR(uS,"dispatchDiscreteCustomEvent");var HR=Object.defineProperty,UR=(e,t)=>HR(e,"name",{value:t,configurable:!0});function Nr(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>((...n)=>t.current?.(...n)),[])}UR(Nr,"useCallbackRef");var zR=Object.defineProperty,Xt=(e,t)=>zR(e,"name",{value:t,configurable:!0}),Vp="dismissableLayer.update",FR="dismissableLayer.pointerDownOutside",qR="dismissableLayer.focusOutside",Px,cS=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),VR=C.forwardRef(Xt(function(t,n){const{disableOutsidePointerEvents:i=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:h,...m}=t,p=C.useContext(cS),[y,E]=C.useState(null),v=y?.ownerDocument??globalThis?.document,[,S]=C.useState({}),A=Dt(n,E),k=Array.from(p.layers),[N]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),w=N?k.indexOf(N):-1,D=y?k.indexOf(y):-1,F=p.layersWithOutsidePointerEventsDisabled.size>0,O=D>=w,M=C.useRef(!1),U=fS(X=>{u?.(X),d?.(X),X.defaultPrevented||h?.()},{ownerDocument:v,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:M,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:C.useCallback(X=>{if(!(X instanceof Node))return!1;const le=[...p.branches].some(fe=>fe.contains(X));return O&&!le},[p.branches,O])}),$=dS(X=>{if(s&&M.current)return;const le=X.target;[...p.branches].some(ie=>ie.contains(le))||(c?.(X),d?.(X),X.defaultPrevented||h?.())},v),H=y?D===k.length-1:!1,ee=Nr(X=>{X.key==="Escape"&&(l?.(X),!X.defaultPrevented&&h&&(X.preventDefault(),h()))});return C.useEffect(()=>{if(H)return v.addEventListener("keydown",ee,{capture:!0}),()=>v.removeEventListener("keydown",ee,{capture:!0})},[v,H,ee]),C.useEffect(()=>{if(y)return i&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Px=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(y)),p.layers.add(y),Yp(),()=>{i&&(p.layersWithOutsidePointerEventsDisabled.delete(y),p.layersWithOutsidePointerEventsDisabled.size===0&&(v.body.style.pointerEvents=Px))}},[y,v,i,p]),C.useEffect(()=>()=>{y&&(p.layers.delete(y),p.layersWithOutsidePointerEventsDisabled.delete(y),Yp())},[y,p]),C.useEffect(()=>{const X=Xt(()=>S({}),"handleUpdate");return document.addEventListener(Vp,X),()=>document.removeEventListener(Vp,X)},[]),x.jsx(En.div,{...m,ref:A,style:{pointerEvents:F?O?"auto":"none":void 0,...t.style},onFocusCapture:Ot(t.onFocusCapture,$.onFocusCapture),onBlurCapture:Ot(t.onBlurCapture,$.onBlurCapture),onPointerDownCapture:Ot(t.onPointerDownCapture,U.onPointerDownCapture)})},"DismissableLayer"));function YR(){const e=C.useContext(cS),[t,n]=C.useState(null);return C.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Xt(YR,"useDismissableLayerSurface");var $R=Xt(()=>!0,"IS_TRUE");function fS(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:i=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:l,shouldHandlePointerDownOutside:u=$R}=t,c=Nr(e),d=C.useRef(!1),h=C.useRef(!1),m=C.useRef(new Map),p=C.useRef(()=>{});return C.useEffect(()=>{function y(){h.current=!1,s.current=!1,m.current.clear()}Xt(y,"resetOutsideInteraction");function E(){return Array.from(m.current.values()).some(Boolean)}Xt(E,"isOutsideInteractionIntercepted");function v(w){if(!h.current)return;const D=w.target;D instanceof Node&&[...l].some(O=>O.contains(D))||m.current.set(w.type,!0),w.type==="click"&&window.setTimeout(()=>{h.current&&p.current()},0)}Xt(v,"handleInteractionCapture");function S(w){h.current&&m.current.set(w.type,!1)}Xt(S,"handleInteractionBubble");const A=Xt(w=>{if(w.target&&!d.current){let D=function(){n.removeEventListener("click",p.current);const O=E();y(),O||V0(FR,c,F,{discrete:!0})};if(Xt(D,"handleAndDispatchPointerDownOutsideEvent"),!u(w.target)){n.removeEventListener("click",p.current),y(),d.current=!1;return}const F={originalEvent:w};h.current=!0,s.current=i&&w.button===0,m.current.clear(),!i||w.button!==0?D():(n.removeEventListener("click",p.current),p.current=D,n.addEventListener("click",p.current,{once:!0}))}else n.removeEventListener("click",p.current),y();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",A)},0);return()=>{window.clearTimeout(N),n.removeEventListener("pointerdown",A),n.removeEventListener("click",p.current);for(const w of k)n.removeEventListener(w,v,!0),n.removeEventListener(w,S)}},[n,c,i,s,l,u]),{onPointerDownCapture:Xt(()=>d.current=!0,"onPointerDownCapture")}}Xt(fS,"usePointerDownOutside");function dS(e,t=globalThis?.document){const n=Nr(e),i=C.useRef(!1);return C.useEffect(()=>{const s=Xt(l=>{l.target&&!i.current&&V0(qR,n,{originalEvent:l},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:Xt(()=>i.current=!0,"onFocusCapture"),onBlurCapture:Xt(()=>i.current=!1,"onBlurCapture")}}Xt(dS,"useFocusOutside");function Yp(){const e=new CustomEvent(Vp);document.dispatchEvent(e)}Xt(Yp,"dispatchUpdate");function V0(e,t,n,{discrete:i}){const s=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),i?uS(s,l):s.dispatchEvent(l)}Xt(V0,"handleAndDispatchCustomEvent");var GR=Object.defineProperty,Y0=(e,t)=>GR(e,"name",{value:t,configurable:!0}),zc=0,$s=null;function KR(e){return $0(),e.children}Y0(KR,"FocusGuards");function $0(){C.useEffect(()=>{$s||($s={start:$p(),end:$p()});const{start:e,end:t}=$s;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),zc++,()=>{zc===1&&($s?.start.remove(),$s?.end.remove(),$s=null),zc=Math.max(0,zc-1)}},[])}Y0($0,"useFocusGuards");function $p(){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}Y0($p,"createFocusGuard");var XR=Object.defineProperty,gn=(e,t)=>XR(e,"name",{value:t,configurable:!0}),Qm="focusScope.autoFocusOnMount",Wm="focusScope.autoFocusOnUnmount",Bx={bubbles:!1,cancelable:!0},QR=C.forwardRef(gn(function(t,n){const{loop:i=!1,trapped:s=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...c}=t,[d,h]=C.useState(null),m=Nr(l),p=Nr(u),y=C.useRef(null),E=Dt(n,h),v=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(s){let A=function(D){if(v.paused||!d)return;const F=D.target;d.contains(F)?y.current=F:ri(y.current,{select:!0})},k=function(D){if(v.paused||!d)return;const F=D.relatedTarget;F!==null&&(d.contains(F)||ri(y.current,{select:!0}))},N=function(D){if(document.activeElement===document.body)for(const O of D)O.removedNodes.length>0&&ri(d)};gn(A,"handleFocusIn"),gn(k,"handleFocusOut"),gn(N,"handleMutations"),document.addEventListener("focusin",A),document.addEventListener("focusout",k);const w=new MutationObserver(N);return d&&w.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",k),w.disconnect()}}},[s,d,v.paused]),C.useEffect(()=>{if(d){jx.add(v);const A=document.activeElement;if(!d.contains(A)){const N=new CustomEvent(Qm,Bx);d.addEventListener(Qm,m),d.dispatchEvent(N),N.defaultPrevented||(hS(yS(G0(d)),{select:!0}),document.activeElement===A&&ri(d))}return()=>{d.removeEventListener(Qm,m),setTimeout(()=>{const N=new CustomEvent(Wm,Bx);d.addEventListener(Wm,p),d.dispatchEvent(N),N.defaultPrevented||ri(A??document.body,{select:!0}),d.removeEventListener(Wm,p),jx.remove(v)},0)}}},[d,m,p,v]);const S=C.useCallback(A=>{if(!i&&!s||v.paused)return;const k=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,N=document.activeElement;if(k&&N){const w=A.currentTarget,[D,F]=mS(w);D&&F?!A.shiftKey&&N===F?(A.preventDefault(),i&&ri(D,{select:!0})):A.shiftKey&&N===D&&(A.preventDefault(),i&&ri(F,{select:!0})):N===w&&A.preventDefault()}},[i,s,v.paused]);return x.jsx(En.div,{tabIndex:-1,...c,ref:E,onKeyDown:S})},"FocusScope"));function hS(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(ri(i,{select:t}),document.activeElement!==n)return}gn(hS,"focusFirst");function mS(e){const t=G0(e),n=Gp(t,e),i=Gp(t.reverse(),e);return[n,i]}gn(mS,"getTabbableEdges");function G0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:gn(i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}gn(G0,"getTabbableCandidates");function Gp(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const i of e)if(!(n?!i.checkVisibility({checkVisibilityCSS:!0}):pS(i,{upTo:t})))return i}gn(Gp,"findVisible");function pS(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}gn(pS,"isHidden");function gS(e){return e instanceof HTMLInputElement&&"select"in e}gn(gS,"isSelectableInput");function ri(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&gS(e)&&t&&e.select()}}gn(ri,"focus");var jx=bS();function bS(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Kp(e,t),e.unshift(t)},remove(t){e=Kp(e,t),e[0]?.resume()}}}gn(bS,"createFocusScopesStack");function Kp(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}gn(Kp,"arrayRemove");function yS(e){return e.filter(t=>t.tagName!=="A")}gn(yS,"removeLinks");var Zt=globalThis?.document?C.useLayoutEffect:()=>{},WR=Object.defineProperty,ZR=(e,t)=>WR(e,"name",{value:t,configurable:!0}),JR=iu[" useId ".trim().toString()]||(()=>{}),e4=0;function K0(e){const[t,n]=C.useState(JR());return Zt(()=>{e||n(i=>i??String(e4++))},[e]),e||(t?`radix-${t}`:"")}ZR(K0,"useId");const t4=["top","right","bottom","left"],ta=Math.min,oi=Math.max,kf=Math.round,Fc=Math.floor,ui=e=>({x:e,y:e}),n4={left:"right",right:"left",bottom:"top",top:"bottom"};function ES(e,t,n){return oi(e,ta(t,n))}function fi(e,t){return typeof e=="function"?e(t):e}function na(e){return e.split("-")[0]}function bl(e){return e.split("-")[1]}function X0(e){return e==="x"?"y":"x"}function Q0(e){return e==="y"?"height":"width"}function kr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function W0(e){return X0(kr(e))}function r4(e,t,n){n===void 0&&(n=!1);const i=bl(e),s=W0(e),l=Q0(s);let u=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=wf(u)),[u,wf(u)]}function i4(e){const t=wf(e);return[Xp(e),t,Xp(t)]}function Xp(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Hx=["left","right"],Ux=["right","left"],a4=["top","bottom"],s4=["bottom","top"];function l4(e,t,n){switch(e){case"top":case"bottom":return n?t?Ux:Hx:t?Hx:Ux;case"left":case"right":return t?a4:s4;default:return[]}}function o4(e,t,n,i){const s=bl(e);let l=l4(na(e),n==="start",i);return s&&(l=l.map(u=>u+"-"+s),t&&(l=l.concat(l.map(Xp)))),l}function wf(e){const t=na(e);return n4[t]+e.slice(t.length)}function u4(e){var t,n,i,s;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(i=e.bottom)!=null?i:0,left:(s=e.left)!=null?s:0}}function xS(e){return typeof e!="number"?u4(e):{top:e,right:e,bottom:e,left:e}}function Nf(e){const{x:t,y:n,width:i,height:s}=e;return{width:i,height:s,top:n,left:t,right:t+i,bottom:n+s,x:t,y:n}}function zx(e,t,n){let{reference:i,floating:s}=e;const l=kr(t),u=W0(t),c=Q0(u),d=na(t),h=l==="y",m=i.x+i.width/2-s.width/2,p=i.y+i.height/2-s.height/2,y=i[c]/2-s[c]/2;let E;switch(d){case"top":E={x:m,y:i.y-s.height};break;case"bottom":E={x:m,y:i.y+i.height};break;case"right":E={x:i.x+i.width,y:p};break;case"left":E={x:i.x-s.width,y:p};break;default:E={x:i.x,y:i.y}}const v=bl(t);return v&&(E[u]+=y*(v==="end"?1:-1)*(n&&h?-1:1)),E}async function c4(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:l,rects:u,elements:c,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:y=!1,padding:E=0}=fi(t,e),v=xS(E),A=c[y?p==="floating"?"reference":"floating":p],k=Nf(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(A)))==null||n?A:A.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(c.floating)),boundary:h,rootBoundary:m,strategy:d})),N=p==="floating"?{x:i,y:s,width:u.floating.width,height:u.floating.height}:u.reference,w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c.floating)),D=await(l.isElement==null?void 0:l.isElement(w))&&await(l.getScale==null?void 0:l.getScale(w))||{x:1,y:1},F=Nf(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:w,strategy:d}):N);return{top:(k.top-F.top+v.top)/D.y,bottom:(F.bottom-k.bottom+v.bottom)/D.y,left:(k.left-F.left+v.left)/D.x,right:(F.right-k.right+v.right)/D.x}}const f4=50,d4=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:l=[],platform:u}=n,c=u.detectOverflow?u:{...u,detectOverflow:c4},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}=zx(h,i,d),y=i,E=0;const v={};for(let S=0;S<l.length;S++){const A=l[S];if(!A)continue;const{name:k,fn:N}=A,{x:w,y:D,data:F,reset:O}=await N({x:m,y:p,initialPlacement:i,placement:y,strategy:s,middlewareData:v,rects:h,platform:c,elements:{reference:e,floating:t}});m=w??m,p=D??p,v[k]={...v[k],...F},O&&E<f4&&(E++,typeof O=="object"&&(O.placement&&(y=O.placement),O.rects&&(h=O.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:s}):O.rects),{x:m,y:p}=zx(h,y,d)),S=-1)}return{x:m,y:p,placement:y,strategy:s,middlewareData:v}},h4=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:l,platform:u,elements:c,middlewareData:d}=t,{element:h,padding:m=0}=fi(e,t)||{};if(h==null)return{};const p=xS(m),y={x:n,y:i},E=W0(s),v=Q0(E),S=await u.getDimensions(h),A=E==="y",k=A?"top":"left",N=A?"bottom":"right",w=A?"clientHeight":"clientWidth",D=l.reference[v]+l.reference[E]-y[E]-l.floating[v],F=y[E]-l.reference[E],O=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h));let M=O?O[w]:0;(!M||!await(u.isElement==null?void 0:u.isElement(O)))&&(M=c.floating[w]||l.floating[v]);const U=D/2-F/2,$=M/2-S[v]/2-1,H=ta(p[k],$),ee=ta(p[N],$),X=M-S[v]-ee,le=M/2-S[v]/2+U,fe=ES(H,le,X),ie=!d.arrow&&bl(s)!=null&&le!==fe&&l.reference[v]/2-(le<H?H:ee)-S[v]/2<0,B=ie?le<H?le-H:le-X:0;return{[E]:y[E]+B,data:{[E]:fe,centerOffset:le-fe-B,...ie&&{alignmentOffset:B}},reset:ie}}}),m4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:h}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:S=!0,...A}=fi(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const k=na(s),N=kr(c),w=na(c)===c,D=await(d.isRTL==null?void 0:d.isRTL(h.floating)),F=y||(w||!S?[wf(c)]:i4(c)),O=v!=="none";!y&&O&&F.push(...o4(c,S,v,D));const M=[c,...F],U=await d.detectOverflow(t,A),$=[];let H=((i=l.flip)==null?void 0:i.overflows)||[];if(m&&$.push(U[k]),p){const fe=r4(s,u,D);$.push(U[fe[0]],U[fe[1]])}if(H=[...H,{placement:s,overflows:$}],!$.every(fe=>fe<=0)){var ee,X;const fe=(((ee=l.flip)==null?void 0:ee.index)||0)+1,ie=M[fe];if(ie&&(!(p==="alignment"?N!==kr(ie):!1)||H.every(oe=>kr(oe.placement)===N?oe.overflows[0]>0:!0)))return{data:{index:fe,overflows:H},reset:{placement:ie}};let B=(X=H.filter(K=>K.overflows[0]<=0).sort((K,oe)=>K.overflows[1]-oe.overflows[1])[0])==null?void 0:X.placement;if(!B)switch(E){case"bestFit":{var le;const K=(le=H.filter(oe=>{if(O){const Te=kr(oe.placement);return Te===N||Te==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(Te=>Te>0).reduce((Te,L)=>Te+L,0)]).sort((oe,Te)=>oe[1]-Te[1])[0])==null?void 0:le[0];K&&(B=K);break}case"initialPlacement":B=c;break}if(s!==B)return{reset:{placement:B}}}return{}}}};function Fx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qx(e){return t4.some(t=>e[t]>=0)}const p4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:i}=t,{strategy:s="referenceHidden",...l}=fi(e,t);switch(s){case"referenceHidden":{const u=await i.detectOverflow(t,{...l,elementContext:"reference"}),c=Fx(u,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:qx(c)}}}case"escaped":{const u=await i.detectOverflow(t,{...l,altBoundary:!0}),c=Fx(u,n.floating);return{data:{escapedOffsets:c,escaped:qx(c)}}}default:return{}}}}},TS=new Set(["left","top"]);async function g4(e,t){const{placement:n,platform:i,elements:s}=e,l=await(i.isRTL==null?void 0:i.isRTL(s.floating)),u=na(n),c=bl(n),d=kr(n)==="y",h=TS.has(u)?-1:1,m=l&&d?-1:1,p=fi(t,e);let{mainAxis:y,crossAxis:E,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"&&(E=c==="end"?v*-1:v),d?{x:E*m,y:y*h}:{x:y*h,y:E*m}}const b4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:l,placement:u,middlewareData:c}=t,d=await g4(t,e);return u===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:s+d.x,y:l+d.y,data:{...d,placement:u}}}}},y4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s,platform:l}=t,{mainAxis:u=!0,crossAxis:c=!1,limiter:d={fn:N=>{let{x:w,y:D}=N;return{x:w,y:D}}},...h}=fi(e,t),m={x:n,y:i},p=await l.detectOverflow(t,h),y=kr(s),E=X0(y);let v=m[E],S=m[y];const A=(N,w)=>ES(w+p[N==="y"?"top":"left"],w,w-p[N==="y"?"bottom":"right"]);u&&(v=A(E,v)),c&&(S=A(y,S));const k=d.fn({...t,[E]:v,[y]:S});return{...k,data:{x:k.x-n,y:k.y-i,enabled:{[E]:u,[y]:c}}}}}},E4=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,i;const{x:s,y:l,placement:u,rects:c,middlewareData:d}=t,{offset:h=0,mainAxis:m=!0,crossAxis:p=!0}=fi(e,t),y={x:s,y:l},E=kr(u),v=X0(E);let S=y[v],A=y[E];const k=fi(h,t),N=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:(n=k.mainAxis)!=null?n:0,crossAxis:(i=k.crossAxis)!=null?i:0};if(m){const F=v==="y"?"height":"width",O=c.reference[v]-c.floating[F]+N.mainAxis,M=c.reference[v]+c.reference[F]-N.mainAxis;S<O?S=O:S>M&&(S=M)}if(p){var w,D;const F=v==="y"?"width":"height",O=TS.has(na(u)),M=c.reference[E]-c.floating[F]+(O&&((w=d.offset)==null?void 0:w[E])||0)+(O?0:N.crossAxis),U=c.reference[E]+c.reference[F]+(O?0:((D=d.offset)==null?void 0:D[E])||0)-(O?N.crossAxis:0);A<M?A=M:A>U&&(A=U)}return{[v]:S,[E]:A}}}},x4=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:s,elements:l}=t,{apply:u=()=>{},...c}=fi(e,t),d=await s.detectOverflow(t,c),h=na(n),m=bl(n),p=kr(n)==="y",{width:y,height:E}=i.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 A=E-d.top-d.bottom,k=y-d.left-d.right,N=ta(E-d[v],A),w=ta(y-d[S],k),D=t.middlewareData.shift,F=!D;let O=N,M=w;D!=null&&D.enabled.x&&(M=k),D!=null&&D.enabled.y&&(O=A),F&&!m&&(p?M=y-2*oi(d.left,d.right):O=E-2*oi(d.top,d.bottom)),await u({...t,availableWidth:M,availableHeight:O});const U=await s.getDimensions(l.floating);return y!==U.width||E!==U.height?{reset:{rects:!0}}:{}}}};function Xf(){return typeof window<"u"}function yl(e){return vS(e)?(e.nodeName||"").toLowerCase():"#document"}function Ln(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mi(e){var t;return(t=(vS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vS(e){return Xf()?e instanceof Node||e instanceof Ln(e).Node:!1}function Rr(e){return Xf()?e instanceof Element||e instanceof Ln(e).Element:!1}function aa(e){return Xf()?e instanceof HTMLElement||e instanceof Ln(e).HTMLElement:!1}function Vx(e){return!Xf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ln(e).ShadowRoot}function Qf(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=Or(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&s!=="inline"&&s!=="contents"}function T4(e){return/^(table|td|th)$/.test(yl(e))}function Wf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const v4=/transform|translate|scale|rotate|perspective|filter/,S4=/paint|layout|strict|content/,Na=e=>!!e&&e!=="none";let Zm;function Z0(e){const t=Rr(e)?Or(e):e;return Na(t.transform)||Na(t.translate)||Na(t.scale)||Na(t.rotate)||Na(t.perspective)||!J0()&&(Na(t.backdropFilter)||Na(t.filter))||v4.test(t.willChange||"")||S4.test(t.contain||"")}function C4(e){let t=Ya(e);for(;aa(t)&&!Qo(t);){if(Z0(t))return t;if(Wf(t))return null;t=Ya(t)}return null}function J0(){return Zm==null&&(Zm=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Zm}function Qo(e){return/^(html|body|#document)$/.test(yl(e))}function Or(e){return Ln(e).getComputedStyle(e)}function Zf(e){return Rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ya(e){if(yl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vx(e)&&e.host||mi(e);return Vx(t)?t.host:t}function SS(e){const t=Ya(e);return Qo(t)?(e.ownerDocument||e).body:aa(t)&&Qf(t)?t:SS(t)}function Wo(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=SS(e),l=s===((i=e.ownerDocument)==null?void 0:i.body),u=Ln(s);if(l){const c=Qp(u);return t.concat(u,u.visualViewport||[],Qf(s)?s:[],c&&n?Wo(c):[])}else return t.concat(s,Wo(s,[],n))}function Qp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function CS(e){const t=Or(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const s=aa(e),l=s?e.offsetWidth:n,u=s?e.offsetHeight:i,c=kf(n)!==l||kf(i)!==u;return c&&(n=l,i=u),{width:n,height:i,$:c}}function eg(e){return Rr(e)?e:e.contextElement}function sl(e){const t=eg(e);if(!aa(t))return ui(1);const n=t.getBoundingClientRect(),{width:i,height:s,$:l}=CS(t);let u=(l?kf(n.width):n.width)/i,c=(l?kf(n.height):n.height)/s;return(!u||!Number.isFinite(u))&&(u=1),(!c||!Number.isFinite(c))&&(c=1),{x:u,y:c}}const _4=ui(0);function _S(e){const t=Ln(e);return!J0()||!t.visualViewport?_4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function A4(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Ln(e)}function $a(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),l=eg(e);let u=ui(1);t&&(i?Rr(i)&&(u=sl(i)):u=sl(e));const c=A4(l,n,i)?_S(l):ui(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&&i){const y=Ln(l),E=Rr(i)?Ln(i):i;let v=y,S=Qp(v);for(;S&&E!==v;){const A=sl(S),k=S.getBoundingClientRect(),N=Or(S),w=k.left+(S.clientLeft+parseFloat(N.paddingLeft))*A.x,D=k.top+(S.clientTop+parseFloat(N.paddingTop))*A.y;d*=A.x,h*=A.y,m*=A.x,p*=A.y,d+=w,h+=D,v=Ln(S),S=Qp(v)}}return Nf({width:m,height:p,x:d,y:h})}function Jf(e,t){const n=Zf(e).scrollLeft;return t?t.left+n:$a(mi(e)).left+n}function AS(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-Jf(e,n),s=n.top+t.scrollTop;return{x:i,y:s}}function k4(e){let{elements:t,rect:n,offsetParent:i,strategy:s}=e;const l=s==="fixed",u=mi(i),c=t?Wf(t.floating):!1;if(i===u||c&&l)return n;let d={scrollLeft:0,scrollTop:0},h=ui(1);const m=ui(0),p=aa(i);if((p||!l)&&((yl(i)!=="body"||Qf(u))&&(d=Zf(i)),p)){const E=$a(i);h=sl(i),m.x=E.x+i.clientLeft,m.y=E.y+i.clientTop}const y=u&&!p&&!l?AS(u,d):ui(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+m.x+y.x,y:n.y*h.y-d.scrollTop*h.y+m.y+y.y}}function w4(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function N4(e){const t=Zf(e),n=e.ownerDocument.body,i=oi(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=oi(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let l=-t.scrollLeft+Jf(e);const u=-t.scrollTop;return Or(n).direction==="rtl"&&(l+=oi(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:l,y:u}}const R4=25;function O4(e,t,n){n===void 0&&(n="viewport");const i=n==="layoutViewport",s=Ln(e),l=mi(e),u=s.visualViewport;let c=l.clientWidth,d=l.clientHeight,h=0,m=0;if(u){const y=!J0()||t==="fixed";i?y||(h=-u.offsetLeft,m=-u.offsetTop):(c=u.width,d=u.height,y&&(h=u.offsetLeft,m=u.offsetTop))}if(Jf(l)<=0){const y=l.ownerDocument,E=y.body,v=getComputedStyle(E),S=y.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,A=Math.abs(l.clientWidth-E.clientWidth-S),k=getComputedStyle(l).scrollbarGutter==="stable both-edges"?A/2:A;k<=R4&&(c-=k)}return{width:c,height:d,x:h,y:m}}function L4(e,t){const n=$a(e,!0,t==="fixed"),i=n.top+e.clientTop,s=n.left+e.clientLeft,l=sl(e),u=e.clientWidth*l.x,c=e.clientHeight*l.y,d=s*l.x,h=i*l.y;return{width:u,height:c,x:d,y:h}}function Yx(e,t,n){let i;if(t==="viewport"||t==="layoutViewport")i=O4(e,n,t);else if(t==="document")i=N4(mi(e));else if(Rr(t))i=L4(t,n);else{const s=_S(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Nf(i)}function D4(e,t){const n=t.get(e);if(n)return n;let i=Wo(e,[],!1).filter(c=>Rr(c)&&yl(c)!=="body"),s=null;const l=Or(e).position==="fixed";let u=l?Ya(e):e;for(;Rr(u)&&!Qo(u);){const c=Or(u),d=Z0(u),h=s?s.position:l?"fixed":"";!d&&(h==="fixed"||h==="absolute"&&c.position==="static")?i=i.filter(p=>p!==u):s=c,u=Ya(u)}return t.set(e,i),i}function I4(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const u=[...n==="clippingAncestors"?Wf(t)?[]:D4(t,this._c):[].concat(n),i],c=Yx(t,u[0],s);let d=c.top,h=c.right,m=c.bottom,p=c.left;for(let y=1;y<u.length;y++){const E=Yx(t,u[y],s);d=oi(E.top,d),h=ta(E.right,h),m=ta(E.bottom,m),p=oi(E.left,p)}return{width:h-p,height:m-d,x:p,y:d}}function M4(e){const{width:t,height:n}=CS(e);return{width:t,height:n}}function P4(e,t,n){const i=aa(t),s=mi(t),l=n==="fixed",u=$a(e,!0,l,t);let c={scrollLeft:0,scrollTop:0};const d=ui(0);if((i||!l)&&((yl(t)!=="body"||Qf(s))&&(c=Zf(t)),i)){const y=$a(t,!0,l,t);d.x=y.x+t.clientLeft,d.y=y.y+t.clientTop}!i&&s&&(d.x=Jf(s));const h=s&&!i&&!l?AS(s,c):ui(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 Jm(e){return Or(e).position==="static"}function $x(e,t){if(!aa(e)||Or(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return mi(e)===n&&(n=n.ownerDocument.body),n}function kS(e,t){const n=Ln(e);if(Wf(e))return n;if(!aa(e)){let s=Ya(e);for(;s&&!Qo(s);){if(Rr(s)&&!Jm(s))return s;s=Ya(s)}return n}let i=$x(e,t);for(;i&&T4(i)&&Jm(i);)i=$x(i,t);return i&&Qo(i)&&Jm(i)&&!Z0(i)?n:i||C4(e)||n}const B4=async function(e){const t=this.getOffsetParent||kS,n=this.getDimensions,i=await n(e.floating);return{reference:P4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function j4(e){return Or(e).direction==="rtl"}const H4={convertOffsetParentRelativeRectToViewportRelativeRect:k4,getDocumentElement:mi,getClippingRect:I4,getOffsetParent:kS,getElementRects:B4,getClientRects:w4,getDimensions:M4,getScale:sl,isElement:Rr,isRTL:j4};function wS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function U4(e,t,n){let i=null,s;const l=mi(e);function u(){var m;clearTimeout(s),(m=i)==null||m.disconnect(),i=null}function c(m,p){m===void 0&&(m=!1),p===void 0&&(p=1),u();const y=e.getBoundingClientRect(),{left:E,top:v,width:S,height:A}=y;if(m||t(),!S||!A)return;const k=Fc(v),N=Fc(l.clientWidth-(E+S)),w=Fc(l.clientHeight-(v+A)),D=Fc(E),O={rootMargin:-k+"px "+-N+"px "+-w+"px "+-D+"px",threshold:oi(0,ta(1,p))||1};let M=!0;function U($){const H=$[0].intersectionRatio;if(!wS(y,e.getBoundingClientRect()))return c();if(H!==p){if(!M)return c();H?c(!1,H):s=setTimeout(()=>{c(!1,1e-7)},1e3)}M=!1}try{i=new IntersectionObserver(U,{...O,root:l.ownerDocument})}catch{i=new IntersectionObserver(U,O)}i.observe(e)}const d=Ln(e),h=()=>c(n);return d.addEventListener("resize",h),c(!0),()=>{d.removeEventListener("resize",h),u()}}function z4(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,h=eg(e),m=s||l?[...h?Wo(h):[],...t?Wo(t):[]]:[];m.forEach(k=>{s&&k.addEventListener("scroll",n),l&&k.addEventListener("resize",n)});const p=h&&c?U4(h,n,l):null;let y=-1,E=null;u&&(E=new ResizeObserver(k=>{let[N]=k;N&&N.target===h&&E&&t&&(E.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var w;(w=E)==null||w.observe(t)})),n()}),h&&!d&&E.observe(h),t&&E.observe(t));let v,S=d?$a(e):null;d&&A();function A(){const k=$a(e);S&&!wS(S,k)&&n(),S=k,v=requestAnimationFrame(A)}return n(),()=>{var k;m.forEach(N=>{s&&N.removeEventListener("scroll",n),l&&N.removeEventListener("resize",n)}),p?.(),(k=E)==null||k.disconnect(),E=null,d&&cancelAnimationFrame(v)}}const F4=b4,q4=y4,V4=m4,Y4=x4,$4=p4,Gx=h4,G4=E4,K4=(e,t,n)=>{const i=new Map,s=n??{},l={...H4,...s.platform,_c:i};return d4(e,t,{...s,platform:l})};var X4=typeof document<"u",Q4=function(){},hf=X4?C.useLayoutEffect:Q4;function Rf(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,i,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!Rf(e[i],t[i]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,s[i]))return!1;for(i=n;i--!==0;){const l=s[i];if(!(l==="_owner"&&e.$$typeof)&&!Rf(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function NS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kx(e,t){const n=NS(e);return Math.round(t*n)/n}function ep(e){const t=C.useRef(e);return hf(()=>{t.current=e}),t}function W4(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],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}),[y,E]=C.useState(i);Rf(y,i)||E(i);const[v,S]=C.useState(null),[A,k]=C.useState(null),N=C.useCallback(oe=>{oe!==O.current&&(O.current=oe,S(oe))},[]),w=C.useCallback(oe=>{oe!==M.current&&(M.current=oe,k(oe))},[]),D=l||v,F=u||A,O=C.useRef(null),M=C.useRef(null),U=C.useRef(m),$=d!=null,H=ep(d),ee=ep(s),X=ep(h),le=C.useCallback(()=>{if(!O.current||!M.current)return;const oe={placement:t,strategy:n,middleware:y};ee.current&&(oe.platform=ee.current),K4(O.current,M.current,oe).then(Te=>{const L={...Te,isPositioned:X.current!==!1};fe.current&&!Rf(U.current,L)&&(U.current=L,ia.flushSync(()=>{p(L)}))})},[y,t,n,ee,X]);hf(()=>{h===!1&&U.current.isPositioned&&(U.current.isPositioned=!1,p(oe=>({...oe,isPositioned:!1})))},[h]);const fe=C.useRef(!1);hf(()=>(fe.current=!0,()=>{fe.current=!1}),[]),hf(()=>{if(D&&(O.current=D),F&&(M.current=F),D&&F){if(H.current)return H.current(D,F,le);le()}},[D,F,le,H,$]);const ie=C.useMemo(()=>({reference:O,floating:M,setReference:N,setFloating:w}),[N,w]),B=C.useMemo(()=>({reference:D,floating:F}),[D,F]),K=C.useMemo(()=>{const oe={position:n,left:0,top:0};if(!B.floating)return oe;const Te=Kx(B.floating,m.x),L=Kx(B.floating,m.y);return c?{...oe,transform:"translate("+Te+"px, "+L+"px)",...NS(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Te,top:L}},[n,c,B.floating,m.x,m.y]);return C.useMemo(()=>({...m,update:le,refs:ie,elements:B,floatingStyles:K}),[m,le,ie,B,K])}const Z4=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:s}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?Gx({element:i.current,padding:s}).fn(n):{}:i?Gx({element:i,padding:s}).fn(n):{}}}},J4=(e,t)=>{const n=F4(e);return{name:n.name,fn:n.fn,options:[e,t]}},eO=(e,t)=>{const n=q4(e);return{name:n.name,fn:n.fn,options:[e,t]}},tO=(e,t)=>({fn:G4(e).fn,options:[e,t]}),nO=(e,t)=>{const n=V4(e);return{name:n.name,fn:n.fn,options:[e,t]}},rO=(e,t)=>{const n=Y4(e);return{name:n.name,fn:n.fn,options:[e,t]}},iO=(e,t)=>{const n=$4(e);return{name:n.name,fn:n.fn,options:[e,t]}},aO=(e,t)=>{const n=Z4(e);return{name:n.name,fn:n.fn,options:[e,t]}};var sO=Object.defineProperty,lO=(e,t)=>sO(e,"name",{value:t,configurable:!0});function RS(e){const[t,n]=C.useState(void 0);return Zt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=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 i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}lO(RS,"useSize");var oO=Object.defineProperty,Ji=(e,t)=>oO(e,"name",{value:t,configurable:!0}),OS="Popper",[LS,DS]=au(OS),[uO,IS]=LS(OS),cO=Ji(e=>{const{__scopePopper:t,children:n}=e,[i,s]=C.useState(null),[l,u]=C.useState(void 0);return x.jsx(uO,{scope:t,anchor:i,onAnchorChange:s,placementState:l,setPlacementState:u,children:n})},"Popper"),fO="PopperAnchor",dO=C.forwardRef(Ji(function(t,n){const{__scopePopper:i,virtualRef:s,...l}=t,u=IS(fO,i),c=C.useRef(null),d=u.onAnchorChange,h=C.useCallback(S=>{c.current=S,S&&d(S)},[d]),m=Dt(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 y=u.placementState&&ed(u.placementState),E=y?.[0],v=y?.[1];return s?null:x.jsx(En.div,{"data-radix-popper-side":E,"data-radix-popper-align":v,...l,ref:m})},"PopperAnchor")),MS="PopperContent",[hO,Kq]=LS(MS),mO=C.forwardRef(Ji(function(t,n){const{__scopePopper:i,side:s="bottom",sideOffset:l=0,align:u="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:m=[],collisionPadding:p=0,sticky:y="partial",hideWhenDetached:E=!1,updatePositionStrategy:v="optimized",onPlaced:S,...A}=t,k=IS(MS,i),[N,w]=C.useState(null),D=Dt(n,w),[F,O]=C.useState(null),M=RS(F),U=M?.width??0,$=M?.height??0,H=s+(u!=="center"?"-"+u:""),ee=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},X=Array.isArray(m)?m:[m],le=X.length>0,fe={padding:ee,boundary:X.filter(PS),altBoundary:le},{refs:ie,floatingStyles:B,placement:K,isPositioned:oe,middlewareData:Te}=W4({strategy:"fixed",placement:H,whileElementsMounted:Ji((...ve)=>z4(...ve,{animationFrame:v==="always"}),"whileElementsMounted"),elements:{reference:k.anchor},middleware:[J4({mainAxis:l+$,alignmentAxis:c}),h&&eO({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?tO():void 0,...fe}),h&&nO({...fe}),rO({...fe,apply:Ji(({elements:ve,rects:Pe,availableWidth:Le,availableHeight:De})=>{const{width:Ye,height:rt}=Pe.reference,pt=ve.floating.style;pt.setProperty("--radix-popper-available-width",`${Le}px`),pt.setProperty("--radix-popper-available-height",`${De}px`),pt.setProperty("--radix-popper-anchor-width",`${Ye}px`),pt.setProperty("--radix-popper-anchor-height",`${rt}px`)},"apply")}),F&&aO({element:F,padding:d}),pO({arrowWidth:U,arrowHeight:$}),E&&iO({strategy:"referenceHidden",...fe,boundary:le?fe.boundary:void 0})]}),L=k.setPlacementState;Zt(()=>(L(K),()=>{L(void 0)}),[K,L]);const[z,Z]=ed(K),I=Nr(S);Zt(()=>{oe&&I?.()},[oe,I]);const me=Te.arrow?.x,xe=Te.arrow?.y,W=Te.arrow?.centerOffset!==0,[ye,ge]=C.useState();return Zt(()=>{N&&ge(window.getComputedStyle(N).zIndex)},[N]),x.jsx("div",{ref:ie.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:oe?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ye,"--radix-popper-transform-origin":[Te.transformOrigin?.x,Te.transformOrigin?.y].join(" "),...Te.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:x.jsx(hO,{scope:i,placedSide:z,placedAlign:Z,onArrowChange:O,arrowX:me,arrowY:xe,shouldHideArrow:W,children:x.jsx(En.div,{"data-side":z,"data-align":Z,...A,ref:D,style:{...A.style,animation:oe?A.style?.animation:"none"}})})})},"PopperContent"));function PS(e){return e!==null}Ji(PS,"isNotNull");var pO=Ji(e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:i,middlewareData:s}=t,u=s.arrow?.centerOffset!==0,c=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[h,m]=ed(n),p={start:"0%",center:"50%",end:"100%"}[m],y=(s.arrow?.x??0)+c/2,E=(s.arrow?.y??0)+d/2;let v="",S="";return h==="bottom"?(v=u?p:`${y}px`,S=`${-d}px`):h==="top"?(v=u?p:`${y}px`,S=`${i.floating.height+d}px`):h==="right"?(v=`${-d}px`,S=u?p:`${E}px`):h==="left"&&(v=`${i.floating.width+d}px`,S=u?p:`${E}px`),{data:{x:v,y:S}}}}),"transformOrigin");function ed(e){const[t,n="center"]=e.split("-");return[t,n]}Ji(ed,"getSideAndAlignFromPlacement");var gO=cO,bO=dO,yO=mO,EO=Object.defineProperty,xO=(e,t)=>EO(e,"name",{value:t,configurable:!0}),TO=C.forwardRef(xO(function(t,n){const{container:i,...s}=t,[l,u]=C.useState(!1);Zt(()=>u(!0),[]);const c=i||l&&globalThis?.document?.body;return c?ia.createPortal(x.jsx(En.div,{...s,ref:n}),c):null},"Portal")),vO=Object.defineProperty,di=(e,t)=>vO(e,"name",{value:t,configurable:!0});function BS(e,t){return C.useReducer((n,i)=>t[n][i]??n,e)}di(BS,"useStateMachine");var SO=di(e=>{const{present:t,children:n}=e,i=jS(t),s=typeof n=="function"?n({present:i.isPresent}):C.Children.only(n),l=HS(i.ref,US(s));return typeof n=="function"||i.isPresent?C.cloneElement(s,{ref:l}):null},"Presence");function jS(e){const[t,n]=C.useState(),i=C.useRef(null),s=C.useRef(e),l=C.useRef("none"),u=C.useRef(void 0),c=e?"mounted":"unmounted",[d,h]=BS(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??el(i.current),u.current=void 0):l.current="none"},[d]),Zt(()=>{const m=i.current,p=s.current;if(p!==e){const E=l.current,v=el(m);e?(u.current=v,h("MOUNT")):v==="none"||m?.display==="none"?h("UNMOUNT"):h(p&&E!==v?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,h]),Zt(()=>{if(t){let m;const p=t.ownerDocument.defaultView??window,y=di(v=>{const A=el(i.current).includes(CSS.escape(v.animationName));if(v.target===t&&A&&(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"),E=di(v=>{v.target===t&&(l.current=el(i.current))},"handleAnimationStart");return t.addEventListener("animationstart",E),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{p.clearTimeout(m),t.removeEventListener("animationstart",E),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:C.useCallback(m=>{if(m){const p=getComputedStyle(m);i.current=p,u.current=el(p)}else i.current=null;n(m)},[])}}di(jS,"usePresence");function Wp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}di(Wp,"setRef");function HS(...e){const t=C.useRef(e);return t.current=e,C.useCallback(n=>{const i=t.current;let s=!1;const l=i.map(u=>{const c=Wp(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():Wp(i[u],null)}}},[])}di(HS,"useStableComposedRefs");function el(e){return e?.animationName||"none"}di(el,"getAnimationName");function US(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)}di(US,"getElementRef");var CO=Object.defineProperty,_O=(e,t)=>CO(e,"name",{value:t,configurable:!0}),Xx=iu[" useEffectEvent ".trim().toString()],Qx=iu[" useInsertionEffect ".trim().toString()];function zS(e){if(typeof Xx=="function")return Xx(e);const t=C.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Qx=="function"?Qx(()=>{t.current=e}):Zt(()=>{t.current=e}),C.useMemo(()=>((...n)=>t.current?.(...n)),[])}_O(zS,"useEffectEvent");var AO=Object.defineProperty,su=(e,t)=>AO(e,"name",{value:t,configurable:!0}),kO=iu[" useInsertionEffect ".trim().toString()]||Zt;function Zp({prop:e,defaultProp:t,onChange:n=su(()=>{},"onChange"),caller:i}){const[s,l,u]=FS({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:s,h=C.useCallback(m=>{if(c){const p=qS(m)?m(e):m;p!==e&&u.current?.(p)}else l(m)},[c,e,l,u]);return[d,h]}su(Zp,"useControllableState");function FS({defaultProp:e,onChange:t}){const[n,i]=C.useState(e),s=C.useRef(n),l=C.useRef(t);return kO(()=>{l.current=t},[t]),C.useEffect(()=>{s.current!==n&&(l.current?.(n),s.current=n)},[n,s]),[n,i,l]}su(FS,"useUncontrolledState");function qS(e){return typeof e=="function"}su(qS,"isFunction");var Wx=Symbol("RADIX:SYNC_STATE");function wO(e,t,n,i){const{prop:s,defaultProp:l,onChange:u,caller:c}=t,d=s!==void 0,h=zS(u),m=[{...n,state:l}];i&&m.push(i);const[p,y]=C.useReducer((A,k)=>{if(k.type===Wx)return{...A,state:k.state};const N=e(A,k);return d&&!Object.is(N.state,A.state)&&h(N.state),N},...m),E=p.state,v=C.useRef(E);C.useEffect(()=>{v.current!==E&&(v.current=E,d||h(E))},[E,v,d]);const S=C.useMemo(()=>s!==void 0?{...p,state:s}:p,[p,s]);return C.useEffect(()=>{d&&!Object.is(s,p.state)&&y({type:Wx,state:s})},[s,p.state,d]),[S,y]}su(wO,"useControllableStateReducer");var NO=Object.defineProperty,RO=(e,t)=>NO(e,"name",{value:t,configurable:!0});function VS(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])}RO(VS,"usePrevious");var OO=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"}),LO=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Gs=new WeakMap,qc=new WeakMap,Vc={},tp=0,YS=function(e){return e&&(e.host||YS(e.parentNode))},DO=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=YS(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},IO=function(e,t,n,i){var s=DO(t,Array.isArray(e)?e:[e]);Vc[n]||(Vc[n]=new WeakMap);var l=Vc[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(y){if(c.has(y))m(y);else try{var E=y.getAttribute(i),v=E!==null&&E!=="false",S=(Gs.get(y)||0)+1,A=(l.get(y)||0)+1;Gs.set(y,S),l.set(y,A),u.push(y),S===1&&v&&qc.set(y,!0),A===1&&y.setAttribute(n,"true"),v||y.setAttribute(i,"true")}catch(k){console.error("aria-hidden: cannot operate on ",y,k)}})};return m(t),c.clear(),tp++,function(){u.forEach(function(p){var y=Gs.get(p)-1,E=l.get(p)-1;Gs.set(p,y),l.set(p,E),y||(qc.has(p)||p.removeAttribute(i),qc.delete(p)),E||p.removeAttribute(n)}),tp--,tp||(Gs=new WeakMap,Gs=new WeakMap,qc=new WeakMap,Vc={})}},MO=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=LO(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),IO(i,s,n,"aria-hidden")):function(){return null}},Ar=function(){return Ar=Object.assign||function(t){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},Ar.apply(this,arguments)};function $S(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n}function PO(e,t,n){if(n||arguments.length===2)for(var i=0,s=t.length,l;i<s;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||Array.prototype.slice.call(t))}var mf="right-scroll-bar-position",pf="width-before-scroll-bar",BO="with-scroll-bars-hidden",jO="--removed-body-scroll-bar-size";function np(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function HO(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var s=n.value;s!==i&&(n.value=i,n.callback(i,s))}}}})[0];return n.callback=t,n.facade}var UO=typeof window<"u"?C.useLayoutEffect:C.useEffect,Zx=new WeakMap;function zO(e,t){var n=HO(null,function(i){return e.forEach(function(s){return np(s,i)})});return UO(function(){var i=Zx.get(n);if(i){var s=new Set(i),l=new Set(e),u=n.current;s.forEach(function(c){l.has(c)||np(c,null)}),l.forEach(function(c){s.has(c)||np(c,u)})}Zx.set(n,e)},[e]),n}function FO(e){return e}function qO(e,t){t===void 0&&(t=FO);var n=[],i=!1,s={read:function(){if(i)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,i);return n.push(u),function(){n=n.filter(function(c){return c!==u})}},assignSyncMedium:function(l){for(i=!0;n.length;){var u=n;n=[],u.forEach(l)}n={push:function(c){return l(c)},filter:function(){return n}}},assignMedium:function(l){i=!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 VO(e){e===void 0&&(e={});var t=qO(null);return t.options=Ar({async:!0,ssr:!1},e),t}var GS=function(e){var t=e.sideCar,n=$S(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return C.createElement(i,Ar({},n))};GS.isSideCarExport=!0;function YO(e,t){return e.useMedium(t),GS}var KS=VO(),rp=function(){},td=C.forwardRef(function(e,t){var n=C.useRef(null),i=C.useState({onScrollCapture:rp,onWheelCapture:rp,onTouchMoveCapture:rp}),s=i[0],l=i[1],u=e.forwardProps,c=e.children,d=e.className,h=e.removeScrollBar,m=e.enabled,p=e.shards,y=e.sideCar,E=e.noRelative,v=e.noIsolation,S=e.inert,A=e.allowPinchZoom,k=e.as,N=k===void 0?"div":k,w=e.gapMode,D=$S(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=y,O=zO([n,t]),M=Ar(Ar({},D),s);return C.createElement(C.Fragment,null,m&&C.createElement(F,{sideCar:KS,removeScrollBar:h,shards:p,noRelative:E,noIsolation:v,inert:S,setCallbacks:l,allowPinchZoom:!!A,lockRef:n,gapMode:w}),u?C.cloneElement(C.Children.only(c),Ar(Ar({},M),{ref:O})):C.createElement(N,Ar({},M,{className:d,ref:O}),c))});td.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};td.classNames={fullWidth:pf,zeroRight:mf};var $O=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function GO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$O();return t&&e.setAttribute("nonce",t),e}function KO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function XO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var QO=function(){var e=0,t=null;return{add:function(n){e==0&&(t=GO())&&(KO(t,n),XO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},WO=function(){var e=QO();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},XS=function(){var e=WO(),t=function(n){var i=n.styles,s=n.dynamic;return e(i,s),null};return t},ZO={left:0,top:0,right:0,gap:0},ip=function(e){return parseInt(e||"",10)||0},JO=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[ip(n),ip(i),ip(s)]},eL=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ZO;var t=JO(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},tL=XS(),ll="data-scroll-locked",nL=function(e,t,n,i){var s=e.left,l=e.top,u=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
10
|
+
.`.concat(BO,` {
|
|
11
|
+
overflow: hidden `).concat(i,`;
|
|
12
|
+
padding-right: `).concat(c,"px ").concat(i,`;
|
|
13
|
+
}
|
|
14
|
+
body[`).concat(ll,`] {
|
|
15
|
+
overflow: hidden `).concat(i,`;
|
|
16
|
+
overscroll-behavior: contain;
|
|
17
|
+
`).concat([t&&"position: relative ".concat(i,";"),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(i,`;
|
|
24
|
+
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(mf,` {
|
|
28
|
+
right: `).concat(c,"px ").concat(i,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(pf,` {
|
|
32
|
+
margin-right: `).concat(c,"px ").concat(i,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.`).concat(mf," .").concat(mf,` {
|
|
36
|
+
right: 0 `).concat(i,`;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.`).concat(pf," .").concat(pf,` {
|
|
40
|
+
margin-right: 0 `).concat(i,`;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
body[`).concat(ll,`] {
|
|
44
|
+
`).concat(jO,": ").concat(c,`px;
|
|
45
|
+
}
|
|
46
|
+
`)},Jx=function(){var e=parseInt(document.body.getAttribute(ll)||"0",10);return isFinite(e)?e:0},rL=function(){C.useEffect(function(){return document.body.setAttribute(ll,(Jx()+1).toString()),function(){var e=Jx()-1;e<=0?document.body.removeAttribute(ll):document.body.setAttribute(ll,e.toString())}},[])},iL=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;rL();var l=C.useMemo(function(){return eL(s)},[s]);return C.createElement(tL,{styles:nL(l,!t,s,n?"":"!important")})},Jp=!1;if(typeof window<"u")try{var Yc=Object.defineProperty({},"passive",{get:function(){return Jp=!0,!0}});window.addEventListener("test",Yc,Yc),window.removeEventListener("test",Yc,Yc)}catch{Jp=!1}var Ks=Jp?{passive:!1}:!1,aL=function(e){return e.tagName==="TEXTAREA"},QS=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!aL(e)&&n[t]==="visible")},sL=function(e){return QS(e,"overflowY")},lL=function(e){return QS(e,"overflowX")},eT=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=WS(e,i);if(s){var l=ZS(e,i),u=l[1],c=l[2];if(u>c)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},oL=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},uL=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},WS=function(e,t){return e==="v"?sL(t):lL(t)},ZS=function(e,t){return e==="v"?oL(t):uL(t)},cL=function(e,t){return e==="h"&&t==="rtl"?-1:1},fL=function(e,t,n,i,s){var l=cL(e,window.getComputedStyle(t).direction),u=l*i,c=n.target,d=t.contains(c),h=!1,m=u>0,p=0,y=0;do{if(!c)break;var E=ZS(e,c),v=E[0],S=E[1],A=E[2],k=S-A-l*v;(v||k)&&WS(e,c)&&(p+=k,y+=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(y)<1)&&(h=!0),h},$c=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tT=function(e){return[e.deltaX,e.deltaY]},nT=function(e){return e&&"current"in e?e.current:e},dL=function(e,t){return e[0]===t[0]&&e[1]===t[1]},hL=function(e){return`
|
|
47
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
48
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
49
|
+
`)},mL=0,Xs=[];function pL(e){var t=C.useRef([]),n=C.useRef([0,0]),i=C.useRef(),s=C.useState(mL++)[0],l=C.useState(XS)[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=PO([e.lockRef.current],(e.shards||[]).map(nT),!0).filter(Boolean);return S.forEach(function(A){return A.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=C.useCallback(function(S,A){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!u.current.allowPinchZoom;var k=$c(S),N=n.current,w="deltaX"in S?S.deltaX:N[0]-k[0],D="deltaY"in S?S.deltaY:N[1]-k[1],F,O=S.target,M=Math.abs(w)>Math.abs(D)?"h":"v";if("touches"in S&&M==="h"&&O.type==="range")return!1;var U=window.getSelection(),$=U&&U.anchorNode,H=$?$===O||$.contains(O):!1;if(H)return!1;var ee=eT(M,O);if(!ee)return!0;if(ee?F=M:(F=M==="v"?"h":"v",ee=eT(M,O)),!ee)return!1;if(!i.current&&"changedTouches"in S&&(w||D)&&(i.current=F),!F)return!0;var X=i.current||F;return fL(X,A,S,X==="h"?w:D)},[]),d=C.useCallback(function(S){var A=S;if(!(!Xs.length||Xs[Xs.length-1]!==l)){var k="deltaY"in A?tT(A):$c(A),N=t.current.filter(function(F){return F.name===A.type&&(F.target===A.target||A.target===F.shadowParent)&&dL(F.delta,k)})[0];if(N&&N.should){A.cancelable&&A.preventDefault();return}if(!N){var w=(u.current.shards||[]).map(nT).filter(Boolean).filter(function(F){return F.contains(A.target)}),D=w.length>0?c(A,w[0]):!u.current.noIsolation;D&&A.cancelable&&A.preventDefault()}}},[]),h=C.useCallback(function(S,A,k,N){var w={name:S,delta:A,target:k,should:N,shadowParent:gL(k)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(D){return D!==w})},1)},[]),m=C.useCallback(function(S){n.current=$c(S),i.current=void 0},[]),p=C.useCallback(function(S){h(S.type,tT(S),S.target,c(S,e.lockRef.current))},[]),y=C.useCallback(function(S){h(S.type,$c(S),S.target,c(S,e.lockRef.current))},[]);C.useEffect(function(){return Xs.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:y}),document.addEventListener("wheel",d,Ks),document.addEventListener("touchmove",d,Ks),document.addEventListener("touchstart",m,Ks),function(){Xs=Xs.filter(function(S){return S!==l}),document.removeEventListener("wheel",d,Ks),document.removeEventListener("touchmove",d,Ks),document.removeEventListener("touchstart",m,Ks)}},[]);var E=e.removeScrollBar,v=e.inert;return C.createElement(C.Fragment,null,v?C.createElement(l,{styles:hL(s)}):null,E?C.createElement(iL,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function gL(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bL=YO(KS,pL);var JS=C.forwardRef(function(e,t){return C.createElement(td,Ar({},e,{ref:t,sideCar:bL}))});JS.classNames=td.classNames;var yL=Object.defineProperty,nt=(e,t)=>yL(e,"name",{value:t,configurable:!0}),EL=[" ","Enter","ArrowUp","ArrowDown"],xL=[" ","Enter"],fl="Select",[nd,rd,TL]=rS(fl),[es,Xq]=au(fl,[TL,DS]),tg=DS(),[vL,sa]=es(fl),[SL,CL]=es(fl);function eC(e){const{__scopeSelect:t,children:n,open:i,defaultOpen:s,onOpenChange:l,value:u,defaultValue:c,onValueChange:d,dir:h,name:m,autoComplete:p,disabled:y,required:E,form:v,internal_do_not_use_render:S}=e,A=tg(t),[k,N]=C.useState(null),[w,D]=C.useState(null),[F,O]=C.useState(!1),M=oS(h),[U,$]=Zp({prop:i,defaultProp:s??!1,onChange:l,caller:fl}),[H,ee]=Zp({prop:u,defaultProp:c,onChange:d,caller:fl}),X=C.useRef(null),le=C.useRef(H);C.useEffect(()=>{const Z=v?k?.ownerDocument.getElementById(v):k?.form;if(Z instanceof HTMLFormElement){const I=nt(()=>ee(le.current),"reset");return Z.addEventListener("reset",I),()=>Z.removeEventListener("reset",I)}},[v,k,ee]);const fe=k?!!v||!!k.closest("form"):!0,[ie,B]=C.useState(new Set),K=K0(),oe=Array.from(ie).map(Z=>Z.props.value).join(";"),Te=C.useCallback(Z=>{B(I=>new Set(I).add(Z))},[]),L=C.useCallback(Z=>{B(I=>{const me=new Set(I);return me.delete(Z),me})},[]),z={required:E,trigger:k,onTriggerChange:N,valueNode:w,onValueNodeChange:D,valueNodeHasChildren:F,onValueNodeHasChildrenChange:O,contentId:K,value:H,onValueChange:ee,open:U,onOpenChange:$,dir:M,triggerPointerDownPosRef:X,disabled:y,name:m,autoComplete:p,form:v,nativeOptions:ie,nativeSelectKey:oe,isFormControl:fe};return x.jsx(gO,{...A,children:x.jsx(vL,{scope:t,...z,children:x.jsx(nd.Provider,{scope:t,children:x.jsx(SL,{scope:t,onNativeOptionAdd:Te,onNativeOptionRemove:L,children:iC(S)?S(z):n})})})})}nt(eC,"SelectProvider");var _L=nt(e=>{const{__scopeSelect:t,children:n,...i}=e;return x.jsx(eC,{__scopeSelect:t,...i,internal_do_not_use_render:({isFormControl:s})=>x.jsxs(x.Fragment,{children:[n,s?x.jsx(WL,{__scopeSelect:t}):null]})})},"Select"),AL="SelectTrigger",kL=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,disabled:s=!1,...l}=t,u=tg(i),c=sa(AL,i),d=c.disabled||s,h=Dt(n,c.onTriggerChange),m=rd(i),p=C.useRef("touch"),[y,E,v]=rg(A=>{const k=m().filter(D=>!D.disabled),N=k.find(D=>D.value===c.value),w=ig(k,A,N);w!==void 0&&c.onValueChange(w.value)}),S=nt(A=>{d||(c.onOpenChange(!0),v()),A&&(c.triggerPointerDownPosRef.current={x:Math.round(A.pageX),y:Math.round(A.pageY)})},"handleOpen");return x.jsx(bO,{asChild:!0,...u,children:x.jsx(En.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":lu(c.value)?"":void 0,...l,ref:h,onClick:Ot(l.onClick,A=>{A.currentTarget.focus(),p.current!=="mouse"&&S(A)}),onPointerDown:Ot(l.onPointerDown,A=>{p.current=A.pointerType;const k=A.target;k.hasPointerCapture(A.pointerId)&&k.releasePointerCapture(A.pointerId),A.button===0&&A.ctrlKey===!1&&A.pointerType==="mouse"&&(S(A),A.preventDefault())}),onKeyDown:Ot(l.onKeyDown,A=>{const k=y.current!=="";!(A.ctrlKey||A.altKey||A.metaKey)&&A.key.length===1&&E(A.key),!(k&&A.key===" ")&&EL.includes(A.key)&&(S(),A.preventDefault())})})})},"SelectTrigger")),wL="SelectValue",NL=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,className:s,style:l,children:u,placeholder:c="",...d}=t,h=sa(wL,i),{onValueNodeHasChildrenChange:m}=h,p=u!==void 0,y=Dt(n,h.onValueNodeChange);Zt(()=>{m(p)},[m,p]);const E=lu(h.value);return x.jsx(En.span,{...d,asChild:E?!1:d.asChild,ref:y,style:{pointerEvents:"none"},children:x.jsx(C.Fragment,{children:E?c:u},E?"placeholder":"value")})},"SelectValue")),RL=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,children:s,...l}=t;return x.jsx(En.span,{"aria-hidden":!0,...l,ref:n,children:s||"▼"})},"SelectIcon")),OL="SelectPortal",[LL,DL]=es(OL,{forceMount:void 0}),IL=nt(e=>{const{__scopeSelect:t,forceMount:n,...i}=e;return x.jsx(LL,{scope:e.__scopeSelect,forceMount:n,children:x.jsx(TO,{asChild:!0,...i})})},"SelectPortal"),Ga="SelectContent",ML=C.forwardRef(nt(function(t,n){const i=DL(Ga,t.__scopeSelect),{forceMount:s=i.forceMount,...l}=t,u=sa(Ga,t.__scopeSelect),[c,d]=C.useState();return Zt(()=>{d(new DocumentFragment)},[]),x.jsx(SO,{present:s||u.open,children:({present:h})=>h?x.jsx(jL,{...l,ref:n}):x.jsx(PL,{...l,fragment:c})})},"SelectContent")),PL=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,children:s,fragment:l}=t;return l?ia.createPortal(x.jsx(tC,{scope:i,children:x.jsx(nd.Slot,{scope:i,children:x.jsx("div",{ref:n,children:s})})}),l):null},"SelectContentFragment")),ur=10,[tC,ts]=es(Ga),BL=Va("SelectContent.RemoveScroll"),jL=C.forwardRef(nt(function(t,n){const{__scopeSelect:i}=t,{position:s="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,side:d,sideOffset:h,align:m,alignOffset:p,arrowPadding:y,collisionBoundary:E,collisionPadding:v,sticky:S,hideWhenDetached:A,avoidCollisions:k,...N}=t,w=sa(Ga,i),[D,F]=C.useState(null),[O,M]=C.useState(null),U=Dt(n,F),[$,H]=C.useState(null),[ee,X]=C.useState(null),le=rd(i),[fe,ie]=C.useState(!1),B=C.useRef(!1);C.useEffect(()=>{if(D)return MO(D)},[D]),$0();const K=C.useCallback(ge=>{const[ve,...Pe]=le().map(Ye=>Ye.ref.current),[Le]=Pe.slice(-1),De=document.activeElement;for(const Ye of ge)if(Ye===De||(Ye?.scrollIntoView({block:"nearest"}),Ye===ve&&O&&(O.scrollTop=0),Ye===Le&&O&&(O.scrollTop=O.scrollHeight),Ye?.focus(),document.activeElement!==De))return},[le,O]),oe=C.useCallback(()=>K([$,D]),[K,$,D]);C.useEffect(()=>{fe&&oe()},[fe,oe]);const{onOpenChange:Te,triggerPointerDownPosRef:L}=w;C.useEffect(()=>{if(D){let ge={x:0,y:0};const ve=nt(Le=>{ge={x:Math.abs(Math.round(Le.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(Le.pageY)-(L.current?.y??0))}},"handlePointerMove"),Pe=nt(Le=>{ge.x<=10&&ge.y<=10?Le.preventDefault():Le.composedPath().includes(D)||Te(!1),document.removeEventListener("pointermove",ve),L.current=null},"handlePointerUp");return L.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",Pe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",Pe,{capture:!0})}}},[D,Te,L]),C.useEffect(()=>{const ge=nt(()=>Te(!1),"close");return window.addEventListener("blur",ge),window.addEventListener("resize",ge),()=>{window.removeEventListener("blur",ge),window.removeEventListener("resize",ge)}},[Te]);const[z,Z]=rg(ge=>{const ve=le().filter(De=>!De.disabled),Pe=ve.find(De=>De.ref.current===document.activeElement),Le=ig(ve,ge,Pe);Le&&setTimeout(()=>Le.ref.current?.focus())}),I=C.useCallback((ge,ve,Pe)=>{const Le=!B.current&&!Pe;(w.value!==void 0&&w.value===ve||Le)&&(H(ge),Le&&(B.current=!0))},[w.value]),me=C.useCallback(()=>D?.focus(),[D]),xe=C.useCallback((ge,ve,Pe)=>{const Le=!B.current&&!Pe;(w.value!==void 0&&w.value===ve||Le)&&X(ge)},[w.value]),W=s==="popper"?rT:HL,ye=W===rT?{side:d,sideOffset:h,align:m,alignOffset:p,arrowPadding:y,collisionBoundary:E,collisionPadding:v,sticky:S,hideWhenDetached:A,avoidCollisions:k}:{};return x.jsx(tC,{scope:i,content:D,viewport:O,onViewportChange:M,itemRefCallback:I,selectedItem:$,onItemLeave:me,itemTextRefCallback:xe,focusSelectedItem:oe,selectedItemText:ee,position:s,isPositioned:fe,searchRef:z,children:x.jsx(JS,{as:BL,allowPinchZoom:!0,children:x.jsx(QR,{asChild:!0,trapped:w.open,onMountAutoFocus:ge=>{ge.preventDefault()},onUnmountAutoFocus:Ot(l,ge=>{w.trigger?.focus({preventScroll:!0}),ge.preventDefault()}),children:x.jsx(VR,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:ge=>ge.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:x.jsx(W,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:ge=>ge.preventDefault(),...N,...ye,onPlaced:()=>ie(!0),ref:U,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:Ot(N.onKeyDown,ge=>{const ve=ge.ctrlKey||ge.altKey||ge.metaKey;if(ge.key==="Tab"&&ge.preventDefault(),!ve&&ge.key.length===1&&Z(ge.key),["ArrowUp","ArrowDown","Home","End"].includes(ge.key)){let Le=le().filter(De=>!De.disabled).map(De=>De.ref.current);if(["ArrowUp","End"].includes(ge.key)&&(Le=Le.slice().reverse()),["ArrowUp","ArrowDown"].includes(ge.key)){const De=ge.target,Ye=Le.indexOf(De);Le=Le.slice(Ye+1)}setTimeout(()=>K(Le)),ge.preventDefault()}})})})})})})},"SelectContentImpl")),HL=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,onPlaced:s,...l}=t,u=sa(Ga,i),c=ts(Ga,i),[d,h]=C.useState(null),[m,p]=C.useState(null),y=Dt(n,p),E=rd(i),v=C.useRef(!1),S=C.useRef(!0),{viewport:A,selectedItem:k,selectedItemText:N,focusSelectedItem:w}=c,D=C.useCallback(()=>{if(u.trigger&&u.valueNode&&d&&m&&A&&k&&N){const U=u.trigger.getBoundingClientRect(),$=m.getBoundingClientRect(),H=u.valueNode.getBoundingClientRect(),ee=N.getBoundingClientRect();if(u.dir!=="rtl"){const De=ee.left-$.left,Ye=H.left-De,rt=U.left-Ye,pt=U.width+rt,ct=Math.max(pt,$.width),Vt=window.innerWidth-ur,Ut=Hp(Ye,[ur,Math.max(ur,Vt-ct)]);d.style.minWidth=pt+"px",d.style.left=Ut+"px"}else{const De=$.right-ee.right,Ye=window.innerWidth-H.right-De,rt=window.innerWidth-U.right-Ye,pt=U.width+rt,ct=Math.max(pt,$.width),Vt=window.innerWidth-ur,Ut=Hp(Ye,[ur,Math.max(ur,Vt-ct)]);d.style.minWidth=pt+"px",d.style.right=Ut+"px"}const X=E(),le=window.innerHeight-ur*2,fe=A.scrollHeight,ie=window.getComputedStyle(m),B=parseInt(ie.borderTopWidth,10),K=parseInt(ie.paddingTop,10),oe=parseInt(ie.borderBottomWidth,10),Te=parseInt(ie.paddingBottom,10),L=B+K+fe+Te+oe,z=Math.min(k.offsetHeight*5,L),Z=window.getComputedStyle(A),I=parseInt(Z.paddingTop,10),me=parseInt(Z.paddingBottom,10),xe=U.top+U.height/2-ur,W=le-xe,ye=k.offsetHeight/2,ge=k.offsetTop+ye,ve=B+K+ge,Pe=L-ve;if(ve<=xe){const De=X.length>0&&k===X[X.length-1].ref.current;d.style.bottom="0px";const Ye=m.clientHeight-A.offsetTop-A.offsetHeight,rt=Math.max(W,ye+(De?me:0)+Ye+oe),pt=ve+rt;d.style.height=pt+"px"}else{const De=X.length>0&&k===X[0].ref.current;d.style.top="0px";const rt=Math.max(xe,B+A.offsetTop+(De?I:0)+ye)+Pe;d.style.height=rt+"px",A.scrollTop=ve-xe+A.offsetTop}d.style.margin=`${ur}px 0`,d.style.minHeight=z+"px",d.style.maxHeight=le+"px",s?.(),requestAnimationFrame(()=>v.current=!0)}},[E,u.trigger,u.valueNode,d,m,A,k,N,u.dir,s]);Zt(()=>D(),[D]);const[F,O]=C.useState();Zt(()=>{m&&O(window.getComputedStyle(m).zIndex)},[m]);const M=C.useCallback(U=>{U&&S.current===!0&&(D(),w?.(),S.current=!1)},[D,w]);return x.jsx(UL,{scope:i,contentWrapper:d,shouldExpandOnScrollRef:v,onScrollButtonChange:M,children:x.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:F},children:x.jsx(En.div,{...l,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})},"SelectItemAlignedPosition")),rT=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,align:s="start",collisionPadding:l=ur,...u}=t,c=tg(i);return x.jsx(yO,{...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")),[UL,ng]=es(Ga,{}),iT="SelectViewport",zL=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,nonce:s,...l}=t,u=ts(iT,i),c=ng(iT,i),d=Dt(n,u.onViewportChange),h=C.useRef(0);return x.jsxs(x.Fragment,{children:[x.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}),x.jsx(nd.Slot,{scope:i,children:x.jsx(En.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:Ot(l.onScroll,m=>{const p=m.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:E}=c;if(E?.current&&y){const v=Math.abs(h.current-p.scrollTop);if(v>0){const S=window.innerHeight-ur*2,A=parseFloat(y.style.minHeight),k=parseFloat(y.style.height),N=Math.max(A,k);if(N<S){const w=N+v,D=Math.min(S,w),F=w-D;y.style.height=D+"px",y.style.bottom==="0px"&&(p.scrollTop=F>0?F:0,y.style.justifyContent="flex-end")}}}h.current=p.scrollTop})})})]})},"SelectViewport")),FL="SelectGroup",[Qq,Wq]=es(FL),e0="SelectItem",[qL,nC]=es(e0),VL=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,value:s,disabled:l=!1,textValue:u,...c}=t,d=sa(e0,i),h=ts(e0,i),m=d.value===s,[p,y]=C.useState(u??""),[E,v]=C.useState(!1),S=Nr(D=>h.itemRefCallback?.(D,s,l)),A=Dt(n,S),k=K0(),N=C.useRef("touch"),w=nt(()=>{l||(d.onValueChange(s),d.onOpenChange(!1))},"handleSelect");return x.jsx(qL,{scope:i,value:s,disabled:l,textId:k,isSelected:m,onItemTextChange:C.useCallback(D=>{y(F=>F||(D?.textContent??"").trim())},[]),children:x.jsx(nd.ItemSlot,{scope:i,value:s,disabled:l,textValue:p,children:x.jsx(En.div,{role:"option","aria-labelledby":k,"data-highlighted":E?"":void 0,"aria-selected":m&&E,"data-state":m?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...c,ref:A,onFocus:Ot(c.onFocus,()=>v(!0)),onBlur:Ot(c.onBlur,()=>v(!1)),onClick:Ot(c.onClick,()=>{N.current!=="mouse"&&w()}),onPointerUp:Ot(c.onPointerUp,()=>{N.current==="mouse"&&w()}),onPointerDown:Ot(c.onPointerDown,D=>{N.current=D.pointerType}),onPointerMove:Ot(c.onPointerMove,D=>{N.current=D.pointerType,l?h.onItemLeave?.():N.current==="mouse"&&D.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ot(c.onPointerLeave,D=>{D.currentTarget===document.activeElement&&h.onItemLeave?.()}),onKeyDown:Ot(c.onKeyDown,D=>{l||D.target!==D.currentTarget||h.searchRef?.current!==""&&D.key===" "||(xL.includes(D.key)&&w(),D.key===" "&&D.preventDefault())})})})})},"SelectItem")),Gc="SelectItemText",YL=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,className:s,style:l,...u}=t,c=sa(Gc,i),d=ts(Gc,i),h=nC(Gc,i),m=CL(Gc,i),[p,y]=C.useState(null),E=Nr(w=>d.itemTextRefCallback?.(w,h.value,h.disabled)),v=Dt(n,y,h.onItemTextChange,E),S=p?.textContent,A=C.useMemo(()=>x.jsx("option",{value:h.value,disabled:h.disabled,children:S},h.value),[h.disabled,h.value,S]),{onNativeOptionAdd:k,onNativeOptionRemove:N}=m;return Zt(()=>(k(A),()=>N(A)),[k,N,A]),x.jsxs(x.Fragment,{children:[x.jsx(En.span,{id:h.textId,...u,ref:v}),h.isSelected&&c.valueNode&&!c.valueNodeHasChildren&&!lu(c.value)?ia.createPortal(u.children,c.valueNode):null]})},"SelectItemText")),$L="SelectItemIndicator",GL=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,...s}=t;return nC($L,i).isSelected?x.jsx(En.span,{"aria-hidden":!0,...s,ref:n}):null},"SelectItemIndicator")),aT="SelectScrollUpButton",KL=C.forwardRef(nt(function(t,n){const i=ts(aT,t.__scopeSelect),s=ng(aT,t.__scopeSelect),[l,u]=C.useState(!1),c=Dt(n,s.onScrollButtonChange);return Zt(()=>{if(i.viewport&&i.isPositioned){let d=function(){const m=h.scrollTop>0;u(m)};nt(d,"handleScroll");const h=i.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[i.viewport,i.isPositioned]),l?x.jsx(rC,{...t,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=i;d&&h&&(d.scrollTop=d.scrollTop-h.offsetHeight)}}):null},"SelectScrollUpButton")),sT="SelectScrollDownButton",XL=C.forwardRef(nt(function(t,n){const i=ts(sT,t.__scopeSelect),s=ng(sT,t.__scopeSelect),[l,u]=C.useState(!1),c=Dt(n,s.onScrollButtonChange);return Zt(()=>{if(i.viewport&&i.isPositioned){let d=function(){const m=h.scrollHeight-h.clientHeight,p=Math.ceil(h.scrollTop)<m;u(p)};nt(d,"handleScroll");const h=i.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[i.viewport,i.isPositioned]),l?x.jsx(rC,{...t,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=i;d&&h&&(d.scrollTop=d.scrollTop+h.offsetHeight)}}):null},"SelectScrollDownButton")),rC=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,onAutoScroll:s,...l}=t,u=ts("SelectScrollButton",i),c=C.useRef(null),d=rd(i),h=C.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return C.useEffect(()=>()=>h(),[h]),Zt(()=>{d().find(p=>p.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[d]),x.jsx(En.div,{"aria-hidden":!0,...l,ref:n,style:{flexShrink:0,...l.style},onPointerDown:Ot(l.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(s,50))}),onPointerMove:Ot(l.onPointerMove,()=>{u.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(s,50))}),onPointerLeave:Ot(l.onPointerLeave,()=>{h()})})},"SelectScrollButtonImpl")),QL="SelectBubbleInput",WL=C.forwardRef(nt(function({__scopeSelect:t,...n},i){const s=sa(QL,t),{value:l,onValueChange:u,required:c,disabled:d,name:h,autoComplete:m,form:p}=s,{nativeOptions:y,nativeSelectKey:E}=s,v=C.useRef(null),S=Dt(i,v),A=l??"",k=VS(A),N=Array.from(y).some(w=>(w.props.value??"")==="");return C.useEffect(()=>{const w=v.current;if(!w)return;const D=window.HTMLSelectElement.prototype,O=Object.getOwnPropertyDescriptor(D,"value").set;if(k!==A&&O){const M=new Event("change",{bubbles:!0});O.call(w,A),w.dispatchEvent(M)}},[k,A]),x.jsxs(En.select,{"aria-hidden":!0,required:c,tabIndex:-1,name:h,autoComplete:m,disabled:d,form:p,onChange:w=>u(w.target.value),...n,style:{...OO,...n.style},ref:S,defaultValue:A,children:[lu(l)&&!N?x.jsx("option",{value:""}):null,Array.from(y)]},E)},"SelectBubbleInput"));function iC(e){return typeof e=="function"}nt(iC,"isFunction");function lu(e){return e===""||e===void 0}nt(lu,"shouldShowPlaceholder");function rg(e){const t=Nr(e),n=C.useRef(""),i=C.useRef(0),s=C.useCallback(u=>{const c=n.current+u;t(c),nt((function d(h){n.current=h,window.clearTimeout(i.current),h!==""&&(i.current=window.setTimeout(()=>d(""),1e3))}),"updateSearch")(c)},[t]),l=C.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return C.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,s,l]}nt(rg,"useTypeaheadSearch");function ig(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=aC(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}nt(ig,"findNextItem");function aC(e,t){return e.map((n,i)=>e[(t+i)%e.length])}nt(aC,"wrapArray");function Of({value:e,onValueChange:t,options:n,ariaLabel:i,className:s="",placeholder:l,disabled:u,required:c}){return x.jsxs(_L,{value:e,onValueChange:t,required:c,children:[x.jsxs(kL,{className:`ui-select-trigger ${s}`,"aria-label":i,disabled:u,children:[x.jsx(NL,{placeholder:l}),x.jsx(RL,{className:"ui-select-chevron",children:x.jsx(jp,{size:14})})]}),x.jsx(IL,{children:x.jsxs(ML,{className:"ui-select-content",position:"popper",sideOffset:5,children:[x.jsx(KL,{className:"ui-select-scroll",children:x.jsx(lR,{size:14})}),x.jsx(zL,{className:"ui-select-viewport",children:n.map(d=>x.jsxs(VL,{className:"ui-select-item",value:d.value,children:[x.jsx(YL,{children:d.label}),x.jsx(GL,{className:"ui-select-check",children:x.jsx(Ba,{size:14})})]},d.value))}),x.jsx(XL,{className:"ui-select-scroll",children:x.jsx(jp,{size:14})})]})})]})}const ZL="modulepreload",JL=function(e){return"/"+e},lT={},sC=function(t,n,i){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=JL(h),h in lT)return;lT[h]=!0;const m=h.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const y=document.createElement("link");if(y.rel=m?"stylesheet":ZL,m||(y.as="script"),y.crossOrigin="",y.href=h,c&&y.setAttribute("nonce",c),document.head.appendChild(y),m)return new Promise((E,v)=>{y.addEventListener("load",E),y.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)})},id=(function(e){if(e==null)return r5;if(typeof e=="function")return ad(e);if(typeof e=="object")return Array.isArray(e)?e5(e):t5(e);if(typeof e=="string")return n5(e);throw new Error("Expected function, string, or object as test")});function e5(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=id(e[n]);return ad(i);function i(...s){let l=-1;for(;++l<t.length;)if(t[l].apply(this,s))return!0;return!1}}function t5(e){const t=e;return ad(n);function n(i){const s=i;let l;for(l in e)if(s[l]!==t[l])return!1;return!0}}function n5(e){return ad(t);function t(n){return n&&n.type===e}}function ad(e){return t;function t(n,i,s){return!!(i5(n)&&e.call(this,n,typeof i=="number"?i:void 0,s||void 0))}}function r5(){return!0}function i5(e){return e!==null&&typeof e=="object"&&"type"in e}const lC=[],Ro=!0,t0=!1,ja="skip";function sd(e,t,n,i){let s;typeof t=="function"&&typeof n!="function"?(i=n,n=t):s=t;const l=id(s),u=i?-1:1;c(e,void 0,[])();function c(d,h,m){const p=d&&typeof d=="object"?d:{};if(typeof p.type=="string"){const E=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(d.type+(E?"<"+E+">":""))+")"})}return y;function y(){let E=lC,v,S,A;if((!t||l(d,h,m[m.length-1]||void 0))&&(E=a5(n(d,m)),E[0]===t0))return E;if("children"in d&&d.children){const k=d;if(k.children&&E[0]!==ja)for(S=(i?k.children.length:-1)+u,A=m.concat(k);S>-1&&S<k.children.length;){const N=k.children[S];if(v=c(N,S,A)(),v[0]===t0)return v;S=typeof v[1]=="number"?v[1]:S+u}}return E}}}function a5(e){return Array.isArray(e)?e:typeof e=="number"?[Ro,e]:e==null?lC:[e]}function dr(e,t,n,i){let s,l,u;typeof t=="function"&&typeof n!="function"?(l=void 0,u=t,s=n):(l=t,u=n,s=i),sd(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 dl={indicator:"indicator",textOnly:"text-only",remove:"remove"};function s5({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:i=!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=dl.indicator,imageBlockPolicy:d=dl.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 y=d5(e,t,n,i,s,l,u,c,d);oC(p),dr(p,y)}}function oT(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 l5(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const o5=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),u5=new Set(["javascript:","data:","file:","vbscript:"]);function uT(e,t,n,i=!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&&i&&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=oT(e,n);if(!u||u5.has(u.protocol)||!(o5.has(u.protocol)||l.includes(u.protocol)||l.includes("*")))return null;if(u.protocol==="mailto:"||!u.protocol.match(/^https?:$/))return u.href;const d=l5(e);return u&&t.some(h=>{const m=oT(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 oC(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)oC(t)}}const ap=Symbol("node-seen");function c5(e,t,n){return t===dl.remove?{type:"remove"}:t===dl.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 f5(e,t,n){if(t===dl.remove)return{type:"remove"};if(t===dl.textOnly){const i=String(e.properties.alt||"");return i?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:i}]}}:{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 d5=(e,t,n,i,s,l,u,c,d)=>{const h=(m,p,y)=>{if(m.type!=="element"||m[ap])return Ro;if(m.tagName==="a"){const E=uT(m.properties.href,t,e,!1,!1,s);if(E===null){if(m[ap]=!0,dr(m,h),y&&typeof p=="number"){const v=c5(m,c,u);if(v.type==="remove")return y.children.splice(p,1),[ja,p];y.children[p]=v.element}return ja}else return m.properties.href=E,m.properties.target="_blank",m.properties.rel="noopener noreferrer",Ro}if(m.tagName==="img"){const E=uT(m.properties.src,n,e,i,!0,s);if(E===null){if(m[ap]=!0,dr(m,h),y&&typeof p=="number"){const v=f5(m,d,l);if(v.type==="remove")return y.children.splice(p,1),[ja,p];y.children[p]=v.element}return ja}else return m.properties.src=E,Ro}return Ro};return h},uC=-1,ld=0,Bo=1,Lf=2,ag=3,sg=4,lg=5,og=6,cC=7,fC=8,{defineProperty:h5}=Object,dC=typeof self=="object"?self:globalThis,cT=(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 dC[e](t)},m5=(e,t)=>{const n=(s,l)=>(e.set(l,s),s),i=s=>{if(e.has(s))return e.get(s);const[l,u]=t[s];switch(l){case ld:case uC:return n(u,s);case Bo:{const c=n([],s);for(const d of u)c.push(i(d));return c}case Lf:{const c=n({},s);for(const[d,h]of u){const m=i(d),p=i(h);m==="__proto__"?h5(c,m,{value:p,configurable:!0,enumerable:!0,writable:!0}):c[m]=p}return c}case ag:return n(new Date(u),s);case sg:{const{source:c,flags:d}=u;return n(new RegExp(c,d),s)}case lg:{const c=n(new Map,s);for(const[d,h]of u)c.set(i(d),i(h));return c}case og:{const c=n(new Set,s);for(const d of u)c.add(i(d));return c}case cC:{const{name:c,message:d}=u;return n(typeof dC[c]=="function"?cT(c,d):new Error(d),s)}case fC: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(cT(l,u),s)};return i},fT=e=>m5(new Map,e)(0),Da="",{toString:p5}={},{keys:g5,is:b5}=Object,To=e=>{const t=typeof e;if(t!=="object"||!e)return[ld,t];const n=p5.call(e).slice(8,-1);switch(n){case"Array":return[Bo,Da];case"Object":return[Lf,Da];case"Date":return[ag,Da];case"RegExp":return[sg,Da];case"Map":return[lg,Da];case"Set":return[og,Da];case"DataView":return[Bo,n]}return n.includes("Array")?[Bo,n]:e instanceof Error?[cC,e.name||"Error"]:[Lf,n]},Kc=([e,t])=>e===ld&&(t==="function"||t==="symbol"),y5=(e,t,n,i)=>{const s=(u,c)=>{const d=i.push(u)-1;return n.set(c,d),d},l=u=>{if(n.has(u))return n.get(u);let[c,d]=To(u);switch(c){case ld:{let m=u;switch(d){case"bigint":c=fC,m=u.toString();break;case"number":if(!u&&b5(u,-0))return i.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return s([uC],u)}return s([c,m],u)}case Bo:{if(d){let y=u;return d==="DataView"?y=new Uint8Array(u.buffer):d==="ArrayBuffer"&&(y=new Uint8Array(u)),s([d,[...y]],u)}const m=[],p=s([c,m],u);for(const y of u)m.push(l(y));return p}case Lf:{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 y of g5(u))(e||!Kc(To(u[y])))&&m.push([l(y),l(u[y])]);return p}case ag:return s([c,isNaN(u.getTime())?Da:u.toISOString()],u);case sg:{const{source:m,flags:p}=u;return s([c,{source:m,flags:p}],u)}case lg:{const m=[],p=s([c,m],u);for(const[y,E]of u)(e||!(Kc(To(y))||Kc(To(E))))&&m.push([l(y),l(E)]);return p}case og:{const m=[],p=s([c,m],u);for(const y of u)(e||!Kc(To(y)))&&m.push(l(y));return p}}const{message:h}=u;return s([c,{name:d,message:h}],u)};return l},dT=(e,{json:t,lossy:n}={})=>{const i=[];return y5(!(t||n),!!t,new Map,i)(e),i},Ka=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?fT(dT(e,t)):structuredClone(e):(e,t)=>fT(dT(e,t));class ou{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}ou.prototype.normal={};ou.prototype.property={};ou.prototype.space=void 0;function hC(e,t){const n={},i={};for(const s of e)Object.assign(n,s.property),Object.assign(i,s.normal);return new ou(n,i,t)}function Zo(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 E5=0;const Me=ns(),Ht=ns(),n0=ns(),Ee=ns(),yt=ns(),Fa=ns(),zn=ns();function ns(){return 2**++E5}const r0=Object.freeze(Object.defineProperty({__proto__:null,boolean:Me,booleanish:Ht,commaOrSpaceSeparated:zn,commaSeparated:Fa,number:Ee,overloadedBoolean:n0,spaceSeparated:yt},Symbol.toStringTag,{value:"Module"})),sp=Object.keys(r0);class ug extends Dn{constructor(t,n,i,s){let l=-1;if(super(t,n),hT(this,"space",s),typeof i=="number")for(;++l<sp.length;){const u=sp[l];hT(this,sp[l],(i&r0[u])===r0[u])}}}ug.prototype.defined=!0;function hT(e,t,n){n&&(e[t]=n)}function El(e){const t={},n={};for(const[i,s]of Object.entries(e.properties)){const l=new ug(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,n[Zo(i)]=i,n[Zo(l.attribute)]=i}return new ou(t,n,e.space)}const mC=El({properties:{ariaActiveDescendant:null,ariaAtomic:Ht,ariaAutoComplete:null,ariaBusy:Ht,ariaChecked:Ht,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:yt,ariaCurrent:null,ariaDescribedBy:yt,ariaDetails:null,ariaDisabled:Ht,ariaDropEffect:yt,ariaErrorMessage:null,ariaExpanded:Ht,ariaFlowTo:yt,ariaGrabbed:Ht,ariaHasPopup:null,ariaHidden:Ht,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:yt,ariaLevel:Ee,ariaLive:null,ariaModal:Ht,ariaMultiLine:Ht,ariaMultiSelectable:Ht,ariaOrientation:null,ariaOwns:yt,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:Ht,ariaReadOnly:Ht,ariaRelevant:null,ariaRequired:Ht,ariaRoleDescription:yt,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:Ht,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function pC(e,t){return t in e?e[t]:t}function gC(e,t){return pC(e,t.toLowerCase())}const x5=El({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fa,acceptCharset:yt,accessKey:yt,action:null,allow:null,allowFullScreen:Me,allowPaymentRequest:Me,allowUserMedia:Me,alpha:Me,alt:null,as:null,async:Me,autoCapitalize:null,autoComplete:yt,autoFocus:Me,autoPlay:Me,blocking:yt,capture:null,charSet:null,checked:Me,cite:null,className:yt,closedBy:null,colorSpace:null,cols:Ee,colSpan:Ee,command:null,commandFor:null,content:null,contentEditable:Ht,controls:Me,controlsList:yt,coords:Ee|Fa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Me,defer:Me,dir:null,dirName:null,disabled:Me,download:n0,draggable:Ht,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Me,formTarget:null,headers:yt,height:Ee,hidden:n0,high:Ee,href:null,hrefLang:null,htmlFor:yt,httpEquiv:yt,id:null,imageSizes:null,imageSrcSet:null,inert:Me,inputMode:null,integrity:null,is:null,isMap:Me,itemId:null,itemProp:yt,itemRef:yt,itemScope:Me,itemType:yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Me,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:Me,muted:Me,name:null,nonce:null,noModule:Me,noValidate:Me,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:Me,optimum:Ee,pattern:null,ping:yt,placeholder:null,playsInline:Me,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Me,referrerPolicy:null,rel:yt,required:Me,reversed:Me,rows:Ee,rowSpan:Ee,sandbox:yt,scope:null,scoped:Me,seamless:Me,selected:Me,shadowRootClonable:Me,shadowRootCustomElementRegistry:Me,shadowRootDelegatesFocus:Me,shadowRootMode:null,shadowRootSerializable:Me,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:Ht,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:Me,useMap:null,value:Ht,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:yt,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Me,declare:Me,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:Me,noHref:Me,noShade:Me,noWrap:Me,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:Ht,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Me,disablePictureInPicture:Me,disableRemotePlayback:Me,exportParts:Fa,part:yt,prefix:null,property:null,results:Ee,security:null,unselectable:null},space:"html",transform:gC}),T5=El({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:Ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ee,amplitude:Ee,arabicForm:null,ascent:Ee,attributeName:null,attributeType:null,azimuth:Ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ee,by:null,calcMode:null,capHeight:Ee,className:yt,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:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:Me,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ee,enableBackground:null,end:null,event:null,exponent:Ee,externalResourcesRequired:null,fill:null,fillOpacity:Ee,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:Fa,g2:Fa,glyphName:Fa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ee,horizOriginX:Ee,horizOriginY:Ee,id:null,ideographic:Ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ee,k:Ee,k1:Ee,k2:Ee,k3:Ee,k4:Ee,kernelMatrix:zn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ee,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:Ee,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:Ee,overlineThickness:Ee,paintOrder:null,panose1:null,path:null,pathLength:Ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,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:Ee,specularExponent:Ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ee,strikethroughThickness:Ee,string:null,stroke:null,strokeDashArray:zn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ee,strokeOpacity:Ee,strokeWidth:null,style:null,surfaceScale:Ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:zn,tabIndex:Ee,tableValues:null,target:null,targetX:Ee,targetY:Ee,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:Ee,underlineThickness:Ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ee,values:null,vAlphabetic:Ee,vMathematical:Ee,vectorEffect:null,vHanging:Ee,vIdeographic:Ee,version:null,vertAdvY:Ee,vertOriginX:Ee,vertOriginY:Ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:pC}),bC=El({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()}}),yC=El({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gC}),EC=El({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),v5={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"},S5=/[A-Z]/g,mT=/-[a-z]/g,C5=/^data[-\w.:]+$/i;function od(e,t){const n=Zo(t);let i=t,s=Dn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&C5.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(mT,A5);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!mT.test(l)){let u=l.replace(S5,_5);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}s=ug}return new s(i,t)}function _5(e){return"-"+e.toLowerCase()}function A5(e){return e.charAt(1).toUpperCase()}const uu=hC([mC,x5,bC,yC,EC],"html"),la=hC([mC,T5,bC,yC,EC],"svg");function pT(e){const t=[],n=String(e||"");let i=n.indexOf(","),s=0,l=!1;for(;!l;){i===-1&&(i=n.length,l=!0);const u=n.slice(s,i).trim();(u||!l)&&t.push(u),s=i+1,i=n.indexOf(",",s)}return t}function xC(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const gT=/[#.]/g;function k5(e,t){const n=e||"",i={};let s=0,l,u;for(;s<n.length;){gT.lastIndex=s;const c=gT.exec(n),d=n.slice(s,c?c.index:n.length);d&&(l?l==="#"?i.id=d:Array.isArray(i.className)?i.className.push(d):i.className=[d]:u=d,s+=d.length),c&&(l=c[0],s++)}return{type:"element",tagName:u||t||"div",properties:i,children:[]}}function bT(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function TC(e){return e.join(" ").trim()}function vC(e,t,n){const i=n?O5(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=k5(l,t);const h=d.tagName.toLowerCase(),m=i?i.get(h):void 0;if(d.tagName=m||h,w5(u))c.unshift(u);else for(const[p,y]of Object.entries(u))N5(e,d.properties,p,y)}for(const h of c)i0(d.children,h);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return s}function w5(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 i of n){const s=t[i];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 N5(e,t,n,i){const s=od(e,n);let l;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;l=i}else typeof i=="boolean"?l=i:typeof i=="string"?s.spaceSeparated?l=bT(i):s.commaSeparated?l=pT(i):s.commaOrSpaceSeparated?l=bT(pT(i).join(" ")):l=yT(s,s.property,i):Array.isArray(i)?l=[...i]:l=s.property==="style"?R5(i):String(i);if(Array.isArray(l)){const u=[];for(const c of l)u.push(yT(s,s.property,c));l=u}s.property==="className"&&Array.isArray(t.className)&&(l=t.className.concat(l)),t[s.property]=l}}function i0(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)i0(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?i0(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function yT(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Zo(n)===Zo(t)))return!0}return n}function R5(e){const t=[];for(const[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}function O5(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const L5=["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"],D5=vC(uu,"div"),I5=vC(la,"g",L5);function M5(e){const t=String(e),n=[];return{toOffset:s,toPoint:i};function i(l){if(typeof l=="number"&&l>-1&&l<=t.length){let u=0;for(;;){let c=n[u];if(c===void 0){const d=ET(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=ET(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 ET(e,t){const n=e.indexOf("\r",t),i=e.indexOf(`
|
|
50
|
+
`,t);return i===-1?n:n===-1||n+1===i?i:n<i?n:i}const Ha={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/"},SC={}.hasOwnProperty,P5=Object.prototype;function B5(e,t){const n=t||{};return cg({file:n.file||void 0,location:!1,schema:n.space==="svg"?la:uu,verbose:n.verbose||!1},e)}function cg(e,t){let n;switch(t.nodeName){case"#comment":{const i=t;return n={type:"comment",value:i.data},gf(e,i,n),n}case"#document":case"#document-fragment":{const i=t,s="mode"in i?i.mode==="quirks"||i.mode==="limited-quirks":!1;if(n={type:"root",children:CC(e,t.childNodes),data:{quirksMode:s}},e.file&&e.location){const l=String(e.file),u=M5(l),c=u.toPoint(0),d=u.toPoint(l.length);n.position={start:c,end:d}}return n}case"#documentType":{const i=t;return n={type:"doctype"},gf(e,i,n),n}case"#text":{const i=t;return n={type:"text",value:i.value},gf(e,i,n),n}default:return n=j5(e,t),n}}function CC(e,t){let n=-1;const i=[];for(;++n<t.length;){const s=cg(e,t[n]);i.push(s)}return i}function j5(e,t){const n=e.schema;e.schema=t.namespaceURI===Ha.svg?la:uu;let i=-1;const s={};for(;++i<t.attrs.length;){const c=t.attrs[i],d=(c.prefix?c.prefix+":":"")+c.name;SC.call(P5,d)||(s[d]=c.value)}const u=(e.schema.space==="svg"?I5:D5)(t.tagName,s,CC(e,t.childNodes));if(gf(e,t,u),u.tagName==="template"){const c=t,d=c.sourceCodeLocation,h=d&&d.startTag&&nl(d.startTag),m=d&&d.endTag&&nl(d.endTag),p=cg(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 i=H5(e,n,t.sourceCodeLocation);i&&(e.location=!0,n.position=i)}}function H5(e,t,n){const i=nl(n);if(t.type==="element"){const s=t.children[t.children.length-1];if(i&&!n.endTag&&s&&s.position&&s.position.end&&(i.end=Object.assign({},s.position.end)),e.verbose){const l={};let u;if(n.attrs)for(u in n.attrs)SC.call(n.attrs,u)&&(l[od(e.schema,u).property]=nl(n.attrs[u]));n.startTag;const c=nl(n.startTag),d=n.endTag?nl(n.endTag):void 0,h={opening:c};d&&(h.closing=d),h.properties=l,t.data={position:h}}}return i}function nl(e){const t=xT({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=xT({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function xT(e){return e.line&&e.column?e:void 0}const TT={}.hasOwnProperty;function _C(e,t){const n=t||{};function i(s,...l){let u=i.invalid;const c=i.handlers;if(s&&TT.call(s,e)){const d=String(s[e]);u=TT.call(c,d)?c[d]:i.unknown}if(u)return u.call(this,s,...l)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}const U5={},z5={}.hasOwnProperty,AC=_C("type",{handlers:{root:q5,element:K5,text:$5,comment:G5,doctype:Y5}});function F5(e,t){const i=(t||U5).space;return AC(e,i==="svg"?la:uu)}function q5(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=fg(e.children,n,t),xl(e,n),n}function V5(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=fg(e.children,n,t),xl(e,n),n}function Y5(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return xl(e,t),t}function $5(e){const t={nodeName:"#text",value:e.value,parentNode:null};return xl(e,t),t}function G5(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return xl(e,t),t}function K5(e,t){const n=t;let i=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=la);const s=[];let l;if(e.properties){for(l in e.properties)if(l!=="children"&&z5.call(e.properties,l)){const d=X5(i,l,e.properties[l]);d&&s.push(d)}}const u=i.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:s,namespaceURI:Ha[u],childNodes:[],parentNode:null};return c.childNodes=fg(e.children,c,i),xl(e,c),e.tagName==="template"&&e.content&&(c.content=V5(e.content,i)),c}function X5(e,t,n){const i=od(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&i.boolean)return;Array.isArray(n)&&(n=i.commaSeparated?xC(n):TC(n));const s={name:i.attribute,value:n===!0?"":String(n)};if(i.space&&i.space!=="html"&&i.space!=="svg"){const l=s.name.indexOf(":");l<0?s.prefix="":(s.name=s.name.slice(l+1),s.prefix=i.attribute.slice(0,l)),s.namespace=Ha[i.space]}return s}function fg(e,t,n){let i=-1;const s=[];if(e)for(;++i<e.length;){const l=AC(e[i],n);l.parentNode=t,s.push(l)}return s}function xl(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 Q5=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],W5=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]),Ct="�";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 kC(e){return e>=55296&&e<=57343}function Z5(e){return e>=56320&&e<=57343}function J5(e,t){return(e-55296)*1024+9216+t}function wC(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function NC(e){return e>=64976&&e<=65007||W5.has(e)}var se;(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"})(se||(se={}));const eD=65536;class tD{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=eD,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:i,col:s,offset:l}=this,u=s+n,c=l+n;return{code:t,startLine:i,endLine:i,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(Z5(n))return this.pos++,this._addGap(),J5(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,P.EOF;return this._err(se.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 i=0;i<t.length;i++)if((this.html.charCodeAt(this.pos+i)|32)!==t.charCodeAt(i))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,P.EOF;const i=this.html.charCodeAt(n);return i===P.CARRIAGE_RETURN?P.LINE_FEED:i}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,kC(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){wC(t)?this._err(se.controlCharacterInInputStream):NC(t)&&this._err(se.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var qe;(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"})(qe||(qe={}));function RC(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 nD=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))),rD=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 iD(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=rD.get(e))!==null&&t!==void 0?t:e}var Wt;(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"})(Wt||(Wt={}));const aD=32;var Qi;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Qi||(Qi={}));function a0(e){return e>=Wt.ZERO&&e<=Wt.NINE}function sD(e){return e>=Wt.UPPER_A&&e<=Wt.UPPER_F||e>=Wt.LOWER_A&&e<=Wt.LOWER_F}function lD(e){return e>=Wt.UPPER_A&&e<=Wt.UPPER_Z||e>=Wt.LOWER_A&&e<=Wt.LOWER_Z||a0(e)}function oD(e){return e===Wt.EQUALS||lD(e)}var Kt;(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"})(Kt||(Kt={}));var ai;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ai||(ai={}));class uD{constructor(t,n,i){this.decodeTree=t,this.emitCodePoint=n,this.errors=i,this.state=Kt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ai.Strict}startEntity(t){this.decodeMode=t,this.state=Kt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Kt.EntityStart:return t.charCodeAt(n)===Wt.NUM?(this.state=Kt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Kt.NamedEntity,this.stateNamedEntity(t,n));case Kt.NumericStart:return this.stateNumericStart(t,n);case Kt.NumericDecimal:return this.stateNumericDecimal(t,n);case Kt.NumericHex:return this.stateNumericHex(t,n);case Kt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|aD)===Wt.LOWER_X?(this.state=Kt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Kt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,i,s){if(n!==i){const l=i-n;this.result=this.result*Math.pow(s,l)+Number.parseInt(t.substr(n,l),s),this.consumed+=l}}stateNumericHex(t,n){const i=n;for(;n<t.length;){const s=t.charCodeAt(n);if(a0(s)||sD(s))n+=1;else return this.addToNumericResult(t,i,n,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,i,n,16),-1}stateNumericDecimal(t,n){const i=n;for(;n<t.length;){const s=t.charCodeAt(n);if(a0(s))n+=1;else return this.addToNumericResult(t,i,n,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,i,n,10),-1}emitNumericEntity(t,n){var i;if(this.consumed<=n)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Wt.SEMI)this.consumed+=1;else if(this.decodeMode===ai.Strict)return 0;return this.emitCodePoint(iD(this.result),this.consumed),this.errors&&(t!==Wt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:i}=this;let s=i[this.treeIndex],l=(s&Qi.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const u=t.charCodeAt(n);if(this.treeIndex=cD(i,s,this.treeIndex+Math.max(1,l),u),this.treeIndex<0)return this.result===0||this.decodeMode===ai.Attribute&&(l===0||oD(u))?0:this.emitNotTerminatedNamedEntity();if(s=i[this.treeIndex],l=(s&Qi.VALUE_LENGTH)>>14,l!==0){if(u===Wt.SEMI)return this.emitNamedEntityData(this.treeIndex,l,this.consumed+this.excess);this.decodeMode!==ai.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:i}=this,s=(i[n]&Qi.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,i){const{decodeTree:s}=this;return this.emitCodePoint(n===1?s[t]&~Qi.VALUE_LENGTH:s[t+1],i),n===3&&this.emitCodePoint(s[t+2],i),i}end(){var t;switch(this.state){case Kt.NamedEntity:return this.result!==0&&(this.decodeMode!==ai.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Kt.NumericDecimal:return this.emitNumericEntity(0,2);case Kt.NumericHex:return this.emitNumericEntity(0,3);case Kt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Kt.EntityStart:return 0}}}function cD(e,t,n,i){const s=(t&Qi.BRANCH_LENGTH)>>7,l=t&Qi.JUMP_TABLE;if(s===0)return l!==0&&i===l?n:-1;if(l){const d=i-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<i)u=d+1;else if(h>i)c=d-1;else return e[d+s]}return-1}var pe;(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/"})(pe||(pe={}));var qa;(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"})(qa||(qa={}));var tr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(tr||(tr={}));var J;(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"})(J||(J={}));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 fD=new Map([[J.A,T.A],[J.ADDRESS,T.ADDRESS],[J.ANNOTATION_XML,T.ANNOTATION_XML],[J.APPLET,T.APPLET],[J.AREA,T.AREA],[J.ARTICLE,T.ARTICLE],[J.ASIDE,T.ASIDE],[J.B,T.B],[J.BASE,T.BASE],[J.BASEFONT,T.BASEFONT],[J.BGSOUND,T.BGSOUND],[J.BIG,T.BIG],[J.BLOCKQUOTE,T.BLOCKQUOTE],[J.BODY,T.BODY],[J.BR,T.BR],[J.BUTTON,T.BUTTON],[J.CAPTION,T.CAPTION],[J.CENTER,T.CENTER],[J.CODE,T.CODE],[J.COL,T.COL],[J.COLGROUP,T.COLGROUP],[J.DD,T.DD],[J.DESC,T.DESC],[J.DETAILS,T.DETAILS],[J.DIALOG,T.DIALOG],[J.DIR,T.DIR],[J.DIV,T.DIV],[J.DL,T.DL],[J.DT,T.DT],[J.EM,T.EM],[J.EMBED,T.EMBED],[J.FIELDSET,T.FIELDSET],[J.FIGCAPTION,T.FIGCAPTION],[J.FIGURE,T.FIGURE],[J.FONT,T.FONT],[J.FOOTER,T.FOOTER],[J.FOREIGN_OBJECT,T.FOREIGN_OBJECT],[J.FORM,T.FORM],[J.FRAME,T.FRAME],[J.FRAMESET,T.FRAMESET],[J.H1,T.H1],[J.H2,T.H2],[J.H3,T.H3],[J.H4,T.H4],[J.H5,T.H5],[J.H6,T.H6],[J.HEAD,T.HEAD],[J.HEADER,T.HEADER],[J.HGROUP,T.HGROUP],[J.HR,T.HR],[J.HTML,T.HTML],[J.I,T.I],[J.IMG,T.IMG],[J.IMAGE,T.IMAGE],[J.INPUT,T.INPUT],[J.IFRAME,T.IFRAME],[J.KEYGEN,T.KEYGEN],[J.LABEL,T.LABEL],[J.LI,T.LI],[J.LINK,T.LINK],[J.LISTING,T.LISTING],[J.MAIN,T.MAIN],[J.MALIGNMARK,T.MALIGNMARK],[J.MARQUEE,T.MARQUEE],[J.MATH,T.MATH],[J.MENU,T.MENU],[J.META,T.META],[J.MGLYPH,T.MGLYPH],[J.MI,T.MI],[J.MO,T.MO],[J.MN,T.MN],[J.MS,T.MS],[J.MTEXT,T.MTEXT],[J.NAV,T.NAV],[J.NOBR,T.NOBR],[J.NOFRAMES,T.NOFRAMES],[J.NOEMBED,T.NOEMBED],[J.NOSCRIPT,T.NOSCRIPT],[J.OBJECT,T.OBJECT],[J.OL,T.OL],[J.OPTGROUP,T.OPTGROUP],[J.OPTION,T.OPTION],[J.P,T.P],[J.PARAM,T.PARAM],[J.PLAINTEXT,T.PLAINTEXT],[J.PRE,T.PRE],[J.RB,T.RB],[J.RP,T.RP],[J.RT,T.RT],[J.RTC,T.RTC],[J.RUBY,T.RUBY],[J.S,T.S],[J.SCRIPT,T.SCRIPT],[J.SEARCH,T.SEARCH],[J.SECTION,T.SECTION],[J.SELECT,T.SELECT],[J.SOURCE,T.SOURCE],[J.SMALL,T.SMALL],[J.SPAN,T.SPAN],[J.STRIKE,T.STRIKE],[J.STRONG,T.STRONG],[J.STYLE,T.STYLE],[J.SUB,T.SUB],[J.SUMMARY,T.SUMMARY],[J.SUP,T.SUP],[J.TABLE,T.TABLE],[J.TBODY,T.TBODY],[J.TEMPLATE,T.TEMPLATE],[J.TEXTAREA,T.TEXTAREA],[J.TFOOT,T.TFOOT],[J.TD,T.TD],[J.TH,T.TH],[J.THEAD,T.THEAD],[J.TITLE,T.TITLE],[J.TR,T.TR],[J.TRACK,T.TRACK],[J.TT,T.TT],[J.U,T.U],[J.UL,T.UL],[J.SVG,T.SVG],[J.VAR,T.VAR],[J.WBR,T.WBR],[J.XMP,T.XMP]]);function Tl(e){var t;return(t=fD.get(e))!==null&&t!==void 0?t:T.UNKNOWN}const be=T,dD={[pe.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]),[pe.MATHML]:new Set([be.MI,be.MO,be.MN,be.MS,be.MTEXT,be.ANNOTATION_XML]),[pe.SVG]:new Set([be.TITLE,be.FOREIGN_OBJECT,be.DESC]),[pe.XLINK]:new Set,[pe.XML]:new Set,[pe.XMLNS]:new Set},s0=new Set([be.H1,be.H2,be.H3,be.H4,be.H5,be.H6]);J.STYLE,J.SCRIPT,J.XMP,J.IFRAME,J.NOEMBED,J.NOFRAMES,J.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 Lt={DATA:j.DATA,RCDATA:j.RCDATA,RAWTEXT:j.RAWTEXT,SCRIPT_DATA:j.SCRIPT_DATA,PLAINTEXT:j.PLAINTEXT,CDATA_SECTION:j.CDATA_SECTION};function hD(e){return e>=P.DIGIT_0&&e<=P.DIGIT_9}function Oo(e){return e>=P.LATIN_CAPITAL_A&&e<=P.LATIN_CAPITAL_Z}function mD(e){return e>=P.LATIN_SMALL_A&&e<=P.LATIN_SMALL_Z}function $i(e){return mD(e)||Oo(e)}function vT(e){return $i(e)||hD(e)}function Xc(e){return e+32}function OC(e){return e===P.SPACE||e===P.LINE_FEED||e===P.TABULATION||e===P.FORM_FEED}function ST(e){return OC(e)||e===P.SOLIDUS||e===P.GREATER_THAN_SIGN}function pD(e){return e===P.NULL?se.nullCharacterReference:e>1114111?se.characterReferenceOutsideUnicodeRange:kC(e)?se.surrogateCharacterReference:NC(e)?se.noncharacterCharacterReference:wC(e)||e===P.CARRIAGE_RETURN?se.controlCharacterReference:null}class gD{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 tD(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new uD(nD,(i,s)=>{this.preprocessor.pos=this.entityStartPos+s-1,this._flushCodePointConsumedAsCharacterReference(i)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(se.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:i=>{this._err(se.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+i)},validateNumericCharacterReference:i=>{const s=pD(i);s&&this._err(s,1)}}:void 0)}_err(t,n=0){var i,s;(s=(i=this.handler).onParseError)===null||s===void 0||s.call(i,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,i){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||i?.()}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:qe.START_TAG,tagName:"",tagID:T.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:qe.END_TAG,tagName:"",tagID:T.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:qe.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:qe.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 i=this.currentToken;if(RC(i,this.currentAttr.name)===null){if(i.attrs.push(this.currentAttr),i.location&&this.currentLocation){const s=(t=(n=i.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);s[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(se.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=Tl(t.tagName),t.type===qe.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(se.endTagWithAttributes),t.selfClosing&&this._err(se.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 qe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case qe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case qe.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:qe.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=OC(t)?qe.WHITESPACE_CHARACTER:t===P.NULL?qe.NULL_CHARACTER:qe.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(qe.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=j.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ai.Attribute:ai.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(se.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(se.unexpectedNullCharacter),this._emitChars(Ct);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(se.unexpectedNullCharacter),this._emitChars(Ct);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(se.unexpectedNullCharacter),this._emitChars(Ct);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case P.NULL:{this._err(se.unexpectedNullCharacter),this._emitChars(Ct);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if($i(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(se.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=j.BOGUS_COMMENT,this._stateBogusComment(t);break}case P.EOF:{this._err(se.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(se.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=j.DATA,this._stateData(t)}}_stateEndTagOpen(t){if($i(t))this._createEndTagToken(),this.state=j.TAG_NAME,this._stateTagName(t);else switch(t){case P.GREATER_THAN_SIGN:{this._err(se.missingEndTagName),this.state=j.DATA;break}case P.EOF:{this._err(se.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(se.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(se.unexpectedNullCharacter),n.tagName+=Ct;break}case P.EOF:{this._err(se.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Oo(t)?Xc(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){$i(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){$i(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){$i(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(se.unexpectedNullCharacter),this._emitChars(Ct);break}case P.EOF:{this._err(se.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(se.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_ESCAPED,this._emitChars(Ct);break}case P.EOF:{this._err(se.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(se.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_ESCAPED,this._emitChars(Ct);break}case P.EOF:{this._err(se.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:$i(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){$i(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)&&ST(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(se.unexpectedNullCharacter),this._emitChars(Ct);break}case P.EOF:{this._err(se.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(se.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ct);break}case P.EOF:{this._err(se.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(se.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ct);break}case P.EOF:{this._err(se.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)&&ST(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(se.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(se.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case P.NULL:{this._err(se.unexpectedNullCharacter),this.currentAttr.name+=Ct;break}default:this.currentAttr.name+=String.fromCodePoint(Oo(t)?Xc(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(se.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(se.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(se.unexpectedNullCharacter),this.currentAttr.value+=Ct;break}case P.EOF:{this._err(se.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(se.unexpectedNullCharacter),this.currentAttr.value+=Ct;break}case P.EOF:{this._err(se.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(se.unexpectedNullCharacter),this.currentAttr.value+=Ct;break}case P.QUOTATION_MARK:case P.APOSTROPHE:case P.LESS_THAN_SIGN:case P.EQUALS_SIGN:case P.GRAVE_ACCENT:{this._err(se.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case P.EOF:{this._err(se.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(se.eofInTag),this._emitEOFToken();break}default:this._err(se.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(se.eofInTag),this._emitEOFToken();break}default:this._err(se.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(se.unexpectedNullCharacter),n.data+=Ct;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(se.cdataInHtmlContent),this._createCommentToken(Nn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=j.BOGUS_COMMENT):this._ensureHibernation()||(this._err(se.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(se.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(se.abruptClosingOfEmptyComment),this.state=j.DATA,this.emitCurrentComment(n);break}case P.EOF:{this._err(se.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(se.unexpectedNullCharacter),n.data+=Ct;break}case P.EOF:{this._err(se.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(se.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(se.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(se.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(se.incorrectlyClosedComment),this.state=j.DATA,this.emitCurrentComment(n);break}case P.EOF:{this._err(se.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(se.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(se.missingWhitespaceBeforeDoctypeName),this.state=j.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Oo(t))this._createDoctypeToken(String.fromCharCode(Xc(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(se.unexpectedNullCharacter),this._createDoctypeToken(Ct),this.state=j.DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this._err(se.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.EOF:{this._err(se.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(se.unexpectedNullCharacter),n.name+=Ct;break}case P.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Oo(t)?Xc(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(se.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(se.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(se.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(se.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(se.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(se.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(se.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(se.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(se.unexpectedNullCharacter),n.publicId+=Ct;break}case P.GREATER_THAN_SIGN:{this._err(se.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.EOF:{this._err(se.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(se.unexpectedNullCharacter),n.publicId+=Ct;break}case P.GREATER_THAN_SIGN:{this._err(se.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.EOF:{this._err(se.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(se.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(se.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(se.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(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(se.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(se.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(se.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(se.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(se.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(se.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(se.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(se.unexpectedNullCharacter),n.systemId+=Ct;break}case P.GREATER_THAN_SIGN:{this._err(se.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.EOF:{this._err(se.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(se.unexpectedNullCharacter),n.systemId+=Ct;break}case P.GREATER_THAN_SIGN:{this._err(se.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.EOF:{this._err(se.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(se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(se.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(se.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(se.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()&&vT(this.preprocessor.peek(1))?j.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){vT(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===P.SEMICOLON&&this._err(se.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const LC=new Set([T.DD,T.DT,T.LI,T.OPTGROUP,T.OPTION,T.P,T.RB,T.RP,T.RT,T.RTC]),CT=new Set([...LC,T.CAPTION,T.COLGROUP,T.TBODY,T.TD,T.TFOOT,T.TH,T.THEAD,T.TR]),Df=new Set([T.APPLET,T.CAPTION,T.HTML,T.MARQUEE,T.OBJECT,T.TABLE,T.TD,T.TEMPLATE,T.TH]),bD=new Set([...Df,T.OL,T.UL]),yD=new Set([...Df,T.BUTTON]),_T=new Set([T.ANNOTATION_XML,T.MI,T.MN,T.MO,T.MS,T.MTEXT]),AT=new Set([T.DESC,T.FOREIGN_OBJECT,T.TITLE]),ED=new Set([T.TR,T.TEMPLATE,T.HTML]),xD=new Set([T.TBODY,T.TFOOT,T.THEAD,T.TEMPLATE,T.HTML]),TD=new Set([T.TABLE,T.TEMPLATE,T.HTML]),vD=new Set([T.TD,T.TH]);class SD{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,i){this.treeAdapter=n,this.handler=i,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)===pe.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 i=this._indexOf(t);this.items[i]=n,i===this.stackTop&&(this.current=n)}insertAfter(t,n,i){const s=this._indexOf(t)+1;this.items.splice(s,0,n),this.tagIDs.splice(s,0,i),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])!==pe.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 i=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(i,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(s0,pe.HTML)}popUntilTableCellPopped(){this.popUntilPopped(vD,pe.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let i=this.stackTop;i>=0;i--)if(t.has(this.tagIDs[i])&&this.treeAdapter.getNamespaceURI(this.items[i])===n)return i;return-1}clearBackTo(t,n){const i=this._indexOfTagNames(t,n);this.shortenToLength(i+1)}clearBackToTableContext(){this.clearBackTo(TD,pe.HTML)}clearBackToTableBodyContext(){this.clearBackTo(xD,pe.HTML)}clearBackToTableRowContext(){this.clearBackTo(ED,pe.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 i=this.stackTop;i>=0;i--){const s=this.tagIDs[i];switch(this.treeAdapter.getNamespaceURI(this.items[i])){case pe.HTML:{if(s===t)return!0;if(n.has(s))return!1;break}case pe.SVG:{if(AT.has(s))return!1;break}case pe.MATHML:{if(_T.has(s))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Df)}hasInListItemScope(t){return this.hasInDynamicScope(t,bD)}hasInButtonScope(t){return this.hasInDynamicScope(t,yD)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case pe.HTML:{if(s0.has(n))return!0;if(Df.has(n))return!1;break}case pe.SVG:{if(AT.has(n))return!1;break}case pe.MATHML:{if(_T.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===pe.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])===pe.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])===pe.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&&LC.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&CT.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&CT.has(this.currentTagId);)this.pop()}}const lp=3;var _r;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(_r||(_r={}));const kT={type:_r.Marker};class CD{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const i=[],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===_r.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&&i.push({idx:c,attrs:m})}}return i}_ensureNoahArkCondition(t){if(this.entries.length<lp)return;const n=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,n);if(i.length<lp)return;const s=new Map(n.map(u=>[u.name,u.value]));let l=0;for(let u=0;u<i.length;u++){const c=i[u];c.attrs.every(d=>s.get(d.name)===d.value)&&(l+=1,l>=lp&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(kT)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:_r.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:_r.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(kT);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(i=>i.type===_r.Marker||this.treeAdapter.getTagName(i.element)===t);return n&&n.type===_r.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===_r.Element&&n.element===t)}}const Gi={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 i=e.childNodes.indexOf(n);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,i){const s=e.childNodes.find(l=>l.nodeName==="#documentType");if(s)s.name=t,s.publicId=n,s.systemId=i;else{const l={nodeName:"#documentType",name:t,publicId:n,systemId:i,parentNode:null};Gi.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(Gi.isTextNode(n)){n.value+=t;return}}Gi.appendChild(e,Gi.createTextNode(t))},insertTextBefore(e,t,n){const i=e.childNodes[e.childNodes.indexOf(n)-1];i&&Gi.isTextNode(i)?i.value+=t:Gi.insertBefore(e,Gi.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(i=>i.name));for(let i=0;i<t.length;i++)n.has(t[i].name)||e.attrs.push(t[i])},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}}},DC="html",_D="about:legacy-compat",AD="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",IC=["+//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//"],kD=[...IC,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],wD=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),MC=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],ND=[...MC,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function wT(e,t){return t.some(n=>e.startsWith(n))}function RD(e){return e.name===DC&&e.publicId===null&&(e.systemId===null||e.systemId===_D)}function OD(e){if(e.name!==DC)return tr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===AD)return tr.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),wD.has(n))return tr.QUIRKS;let i=t===null?kD:IC;if(wT(n,i))return tr.QUIRKS;if(i=t===null?MC:ND,wT(n,i))return tr.LIMITED_QUIRKS}return tr.NO_QUIRKS}const NT={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},LD="definitionurl",DD="definitionURL",ID=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])),MD=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:pe.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:pe.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:pe.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:pe.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:pe.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:pe.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:pe.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:pe.XML}],["xml:space",{prefix:"xml",name:"space",namespace:pe.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:pe.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:pe.XMLNS}]]),PD=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])),BD=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 jD(e){const t=e.tagID;return t===T.FONT&&e.attrs.some(({name:i})=>i===qa.COLOR||i===qa.SIZE||i===qa.FACE)||BD.has(t)}function PC(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===LD){e.attrs[t].name=DD;break}}function BC(e){for(let t=0;t<e.attrs.length;t++){const n=ID.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function dg(e){for(let t=0;t<e.attrs.length;t++){const n=MD.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 HD(e){const t=PD.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Tl(e.tagName))}function UD(e,t){return t===pe.MATHML&&(e===T.MI||e===T.MO||e===T.MN||e===T.MS||e===T.MTEXT)}function zD(e,t,n){if(t===pe.MATHML&&e===T.ANNOTATION_XML){for(let i=0;i<n.length;i++)if(n[i].name===qa.ENCODING){const s=n[i].value.toLowerCase();return s===NT.TEXT_HTML||s===NT.APPLICATION_XML}}return t===pe.SVG&&(e===T.FOREIGN_OBJECT||e===T.DESC||e===T.TITLE)}function FD(e,t,n,i){return(!i||i===pe.HTML)&&zD(e,t,n)||(!i||i===pe.MATHML)&&UD(e,t)}const qD="hidden",VD=8,YD=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 $D={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},jC=new Set([T.TABLE,T.TBODY,T.TFOOT,T.THEAD,T.TR]),RT={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Gi,onParseError:null};class OT{constructor(t,n,i=null,s=null){this.fragmentContext=i,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={...RT,...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 gD(this.options,this),this.activeFormattingElements=new CD(this.treeAdapter),this.fragmentContextID=i?Tl(this.treeAdapter.getTagName(i)):T.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new SD(this.document,this.treeAdapter,this)}static parse(t,n){const i=new this(n);return i.tokenizer.write(t,!0),i.document}static getFragmentParser(t,n){const i={...RT,...n};t??(t=i.treeAdapter.createElement(J.TEMPLATE,pe.HTML,[]));const s=i.treeAdapter.createElement("documentmock",pe.HTML,[]),l=new this(i,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,i){var s;if(!this.onParseError)return;const l=(s=t.location)!==null&&s!==void 0?s:$D,u={code:n,startLine:l.startLine,startCol:l.startCol,startOffset:l.startOffset,endLine:i?l.startLine:l.endLine,endCol:i?l.startCol:l.endCol,endOffset:i?l.startOffset:l.endOffset};this.onParseError(u)}onItemPush(t,n,i){var s,l;(l=(s=this.treeAdapter).onItemPush)===null||l===void 0||l.call(s,t),i&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var i,s;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(s=(i=this.treeAdapter).onItemPop)===null||s===void 0||s.call(i,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 i=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===pe.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,pe.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=Lt.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)===J.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==pe.HTML))switch(this.fragmentContextID){case T.TITLE:case T.TEXTAREA:{this.tokenizer.state=Lt.RCDATA;break}case T.STYLE:case T.XMP:case T.IFRAME:case T.NOEMBED:case T.NOFRAMES:case T.NOSCRIPT:{this.tokenizer.state=Lt.RAWTEXT;break}case T.SCRIPT:{this.tokenizer.state=Lt.SCRIPT_DATA;break}case T.PLAINTEXT:{this.tokenizer.state=Lt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",i=t.publicId||"",s=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,i,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 i=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,i)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const i=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(i??this.document,t)}}_appendElement(t,n){const i=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(i,t.location)}_insertElement(t,n){const i=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(i,t.location),this.openElements.push(i,t.tagID)}_insertFakeElement(t,n){const i=this.treeAdapter.createElement(t,pe.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,pe.HTML,t.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,i),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(J.HTML,pe.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 i=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,i),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_insertCharacters(t){let n,i;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:i}=this._findFosterParentingLocation(),i?this.treeAdapter.insertTextBefore(n,t.chars,i):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=i?s.lastIndexOf(i):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 i=this.treeAdapter.getFirstChild(t);i;i=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(n,i)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,s=this.treeAdapter.getTagName(t),l=n.type===qe.END_TAG&&s===n.tagName?{endTag:{...i},endLine:i.endLine,endCol:i.endCol,endOffset:i.endOffset}:{endLine:i.startLine,endCol:i.startCol,endOffset:i.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,l)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,i;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,i=this.fragmentContextID):{current:n,currentTagId:i}=this.openElements,t.tagID===T.SVG&&this.treeAdapter.getTagName(n)===J.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===pe.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===T.MGLYPH||t.tagID===T.MALIGNMARK)&&i!==void 0&&!this._isIntegrationPoint(i,n,pe.HTML)}_processToken(t){switch(t.type){case qe.CHARACTER:{this.onCharacter(t);break}case qe.NULL_CHARACTER:{this.onNullCharacter(t);break}case qe.COMMENT:{this.onComment(t);break}case qe.DOCTYPE:{this.onDoctype(t);break}case qe.START_TAG:{this._processStartTag(t);break}case qe.END_TAG:{this.onEndTag(t);break}case qe.EOF:{this.onEof(t);break}case qe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,i){const s=this.treeAdapter.getNamespaceURI(n),l=this.treeAdapter.getAttrList(n);return FD(t,s,l,i)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(s=>s.type===_r.Marker||this.openElements.contains(s.element)),i=n===-1?t-1:n-1;for(let s=i;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 i=this.openElements.tagIDs[n];if(i===T.TEMPLATE)break;if(i===T.TABLE){this.insertionMode=q.IN_SELECT_IN_TABLE;return}}this.insertionMode=q.IN_SELECT}_isElementCausesFosterParenting(t){return jC.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)===pe.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case T.TABLE:{const i=this.treeAdapter.getParentNode(n);return i?{parent:i,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 i=this.treeAdapter.getNamespaceURI(t);return dD[i].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){vM(this,t);return}switch(this.insertionMode){case q.INITIAL:{vo(this,t);break}case q.BEFORE_HTML:{jo(this,t);break}case q.BEFORE_HEAD:{Ho(this,t);break}case q.IN_HEAD:{Uo(this,t);break}case q.IN_HEAD_NO_SCRIPT:{zo(this,t);break}case q.AFTER_HEAD:{Fo(this,t);break}case q.IN_BODY:case q.IN_CAPTION:case q.IN_CELL:case q.IN_TEMPLATE:{UC(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:{op(this,t);break}case q.IN_TABLE_TEXT:{$C(this,t);break}case q.IN_COLUMN_GROUP:{If(this,t);break}case q.AFTER_BODY:{Mf(this,t);break}case q.AFTER_AFTER_BODY:{bf(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){TM(this,t);return}switch(this.insertionMode){case q.INITIAL:{vo(this,t);break}case q.BEFORE_HTML:{jo(this,t);break}case q.BEFORE_HEAD:{Ho(this,t);break}case q.IN_HEAD:{Uo(this,t);break}case q.IN_HEAD_NO_SCRIPT:{zo(this,t);break}case q.AFTER_HEAD:{Fo(this,t);break}case q.TEXT:{this._insertCharacters(t);break}case q.IN_TABLE:case q.IN_TABLE_BODY:case q.IN_ROW:{op(this,t);break}case q.IN_COLUMN_GROUP:{If(this,t);break}case q.AFTER_BODY:{Mf(this,t);break}case q.AFTER_AFTER_BODY:{bf(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){l0(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:{l0(this,t);break}case q.IN_TABLE_TEXT:{So(this,t);break}case q.AFTER_BODY:{JD(this,t);break}case q.AFTER_AFTER_BODY:case q.AFTER_AFTER_FRAMESET:{eI(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case q.INITIAL:{tI(this,t);break}case q.BEFORE_HEAD:case q.IN_HEAD:case q.IN_HEAD_NO_SCRIPT:case q.AFTER_HEAD:{this._err(t,se.misplacedDoctype);break}case q.IN_TABLE_TEXT:{So(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,se.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?SM(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case q.INITIAL:{vo(this,t);break}case q.BEFORE_HTML:{nI(this,t);break}case q.BEFORE_HEAD:{iI(this,t);break}case q.IN_HEAD:{pr(this,t);break}case q.IN_HEAD_NO_SCRIPT:{lI(this,t);break}case q.AFTER_HEAD:{uI(this,t);break}case q.IN_BODY:{cn(this,t);break}case q.IN_TABLE:{hl(this,t);break}case q.IN_TABLE_TEXT:{So(this,t);break}case q.IN_CAPTION:{aM(this,t);break}case q.IN_COLUMN_GROUP:{pg(this,t);break}case q.IN_TABLE_BODY:{fd(this,t);break}case q.IN_ROW:{dd(this,t);break}case q.IN_CELL:{oM(this,t);break}case q.IN_SELECT:{XC(this,t);break}case q.IN_SELECT_IN_TABLE:{cM(this,t);break}case q.IN_TEMPLATE:{dM(this,t);break}case q.AFTER_BODY:{mM(this,t);break}case q.IN_FRAMESET:{pM(this,t);break}case q.AFTER_FRAMESET:{bM(this,t);break}case q.AFTER_AFTER_BODY:{EM(this,t);break}case q.AFTER_AFTER_FRAMESET:{xM(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?CM(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case q.INITIAL:{vo(this,t);break}case q.BEFORE_HTML:{rI(this,t);break}case q.BEFORE_HEAD:{aI(this,t);break}case q.IN_HEAD:{sI(this,t);break}case q.IN_HEAD_NO_SCRIPT:{oI(this,t);break}case q.AFTER_HEAD:{cI(this,t);break}case q.IN_BODY:{cd(this,t);break}case q.TEXT:{XI(this,t);break}case q.IN_TABLE:{Jo(this,t);break}case q.IN_TABLE_TEXT:{So(this,t);break}case q.IN_CAPTION:{sM(this,t);break}case q.IN_COLUMN_GROUP:{lM(this,t);break}case q.IN_TABLE_BODY:{o0(this,t);break}case q.IN_ROW:{KC(this,t);break}case q.IN_CELL:{uM(this,t);break}case q.IN_SELECT:{QC(this,t);break}case q.IN_SELECT_IN_TABLE:{fM(this,t);break}case q.IN_TEMPLATE:{hM(this,t);break}case q.AFTER_BODY:{ZC(this,t);break}case q.IN_FRAMESET:{gM(this,t);break}case q.AFTER_FRAMESET:{yM(this,t);break}case q.AFTER_AFTER_BODY:{bf(this,t);break}}}onEof(t){switch(this.insertionMode){case q.INITIAL:{vo(this,t);break}case q.BEFORE_HTML:{jo(this,t);break}case q.BEFORE_HEAD:{Ho(this,t);break}case q.IN_HEAD:{Uo(this,t);break}case q.IN_HEAD_NO_SCRIPT:{zo(this,t);break}case q.AFTER_HEAD:{Fo(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:{VC(this,t);break}case q.TEXT:{QI(this,t);break}case q.IN_TABLE_TEXT:{So(this,t);break}case q.IN_TEMPLATE:{WC(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:{mg(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:{HC(this,t);break}case q.IN_TABLE:case q.IN_TABLE_BODY:case q.IN_ROW:{op(this,t);break}case q.IN_TABLE_TEXT:{YC(this,t);break}}}}function GD(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):qC(e,t),n}function KD(e,t){let n=null,i=e.openElements.stackTop;for(;i>=0;i--){const s=e.openElements.items[i];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[i])&&(n=s)}return n||(e.openElements.shortenToLength(Math.max(i,0)),e.activeFormattingElements.removeEntry(t)),n}function XD(e,t,n){let i=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>=YD;!c||d?(d&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(u)):(u=QD(e,c),i===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(u,i),i=u)}return i}function QD(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function WD(e,t,n){const i=e.treeAdapter.getTagName(t),s=Tl(i);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(n);else{const l=e.treeAdapter.getNamespaceURI(t);s===T.TEMPLATE&&l===pe.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function ZD(e,t,n){const i=e.treeAdapter.getNamespaceURI(n.element),{token:s}=n,l=e.treeAdapter.createElement(s.tagName,i,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 hg(e,t){for(let n=0;n<VD;n++){const i=GD(e,t);if(!i)break;const s=KD(e,i);if(!s)break;e.activeFormattingElements.bookmark=i;const l=XD(e,s,i.element),u=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(l),u&&WD(e,u,l),ZD(e,s,i)}}function l0(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function JD(e,t){e._appendCommentNode(t,e.openElements.items[0])}function eI(e,t){e._appendCommentNode(t,e.document)}function mg(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=n;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const i=e.openElements.items[0],s=e.treeAdapter.getNodeSourceCodeLocation(i);if(s&&!s.endTag&&(e._setEndLocation(i,t),e.openElements.stackTop>=1)){const l=e.openElements.items[1],u=e.treeAdapter.getNodeSourceCodeLocation(l);u&&!u.endTag&&e._setEndLocation(l,t)}}}}function tI(e,t){e._setDocumentType(t);const n=t.forceQuirks?tr.QUIRKS:OD(t);RD(t)||e._err(t,se.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=q.BEFORE_HTML}function vo(e,t){e._err(t,se.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,tr.QUIRKS),e.insertionMode=q.BEFORE_HTML,e._processToken(t)}function nI(e,t){t.tagID===T.HTML?(e._insertElement(t,pe.HTML),e.insertionMode=q.BEFORE_HEAD):jo(e,t)}function rI(e,t){const n=t.tagID;(n===T.HTML||n===T.HEAD||n===T.BODY||n===T.BR)&&jo(e,t)}function jo(e,t){e._insertFakeRootElement(),e.insertionMode=q.BEFORE_HEAD,e._processToken(t)}function iI(e,t){switch(t.tagID){case T.HTML:{cn(e,t);break}case T.HEAD:{e._insertElement(t,pe.HTML),e.headElement=e.openElements.current,e.insertionMode=q.IN_HEAD;break}default:Ho(e,t)}}function aI(e,t){const n=t.tagID;n===T.HEAD||n===T.BODY||n===T.HTML||n===T.BR?Ho(e,t):e._err(t,se.endTagWithoutMatchingOpenElement)}function Ho(e,t){e._insertFakeElement(J.HEAD,T.HEAD),e.headElement=e.openElements.current,e.insertionMode=q.IN_HEAD,e._processToken(t)}function pr(e,t){switch(t.tagID){case T.HTML:{cn(e,t);break}case T.BASE:case T.BASEFONT:case T.BGSOUND:case T.LINK:case T.META:{e._appendElement(t,pe.HTML),t.ackSelfClosing=!0;break}case T.TITLE:{e._switchToTextParsing(t,Lt.RCDATA);break}case T.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Lt.RAWTEXT):(e._insertElement(t,pe.HTML),e.insertionMode=q.IN_HEAD_NO_SCRIPT);break}case T.NOFRAMES:case T.STYLE:{e._switchToTextParsing(t,Lt.RAWTEXT);break}case T.SCRIPT:{e._switchToTextParsing(t,Lt.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,se.misplacedStartTagForHeadElement);break}default:Uo(e,t)}}function sI(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:{Uo(e,t);break}case T.TEMPLATE:{rs(e,t);break}default:e._err(t,se.endTagWithoutMatchingOpenElement)}}function rs(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==T.TEMPLATE&&e._err(t,se.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(T.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,se.endTagWithoutMatchingOpenElement)}function Uo(e,t){e.openElements.pop(),e.insertionMode=q.AFTER_HEAD,e._processToken(t)}function lI(e,t){switch(t.tagID){case T.HTML:{cn(e,t);break}case T.BASEFONT:case T.BGSOUND:case T.HEAD:case T.LINK:case T.META:case T.NOFRAMES:case T.STYLE:{pr(e,t);break}case T.NOSCRIPT:{e._err(t,se.nestedNoscriptInHead);break}default:zo(e,t)}}function oI(e,t){switch(t.tagID){case T.NOSCRIPT:{e.openElements.pop(),e.insertionMode=q.IN_HEAD;break}case T.BR:{zo(e,t);break}default:e._err(t,se.endTagWithoutMatchingOpenElement)}}function zo(e,t){const n=t.type===qe.EOF?se.openElementsLeftAfterEof:se.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=q.IN_HEAD,e._processToken(t)}function uI(e,t){switch(t.tagID){case T.HTML:{cn(e,t);break}case T.BODY:{e._insertElement(t,pe.HTML),e.framesetOk=!1,e.insertionMode=q.IN_BODY;break}case T.FRAMESET:{e._insertElement(t,pe.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,se.abandonedHeadElementChild),e.openElements.push(e.headElement,T.HEAD),pr(e,t),e.openElements.remove(e.headElement);break}case T.HEAD:{e._err(t,se.misplacedStartTagForHeadElement);break}default:Fo(e,t)}}function cI(e,t){switch(t.tagID){case T.BODY:case T.HTML:case T.BR:{Fo(e,t);break}case T.TEMPLATE:{rs(e,t);break}default:e._err(t,se.endTagWithoutMatchingOpenElement)}}function Fo(e,t){e._insertFakeElement(J.BODY,T.BODY),e.insertionMode=q.IN_BODY,ud(e,t)}function ud(e,t){switch(t.type){case qe.CHARACTER:{UC(e,t);break}case qe.WHITESPACE_CHARACTER:{HC(e,t);break}case qe.COMMENT:{l0(e,t);break}case qe.START_TAG:{cn(e,t);break}case qe.END_TAG:{cd(e,t);break}case qe.EOF:{VC(e,t);break}}}function HC(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function UC(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function fI(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function dI(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function hI(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,pe.HTML),e.insertionMode=q.IN_FRAMESET)}function mI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,pe.HTML)}function pI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&s0.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,pe.HTML)}function gI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,pe.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function bI(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,pe.HTML),n||(e.formElement=e.openElements.current))}function yI(e,t){e.framesetOk=!1;const n=t.tagID;for(let i=e.openElements.stackTop;i>=0;i--){const s=e.openElements.tagIDs[i];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[i],s))break}e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,pe.HTML)}function EI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,pe.HTML),e.tokenizer.state=Lt.PLAINTEXT}function xI(e,t){e.openElements.hasInScope(T.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.framesetOk=!1}function TI(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(J.A);n&&(hg(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function vI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function SI(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(T.NOBR)&&(hg(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function CI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function _I(e,t){e.treeAdapter.getDocumentMode(e.document)!==tr.QUIRKS&&e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,pe.HTML),e.framesetOk=!1,e.insertionMode=q.IN_TABLE}function zC(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function FC(e){const t=RC(e,qa.TYPE);return t!=null&&t.toLowerCase()===qD}function AI(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,pe.HTML),FC(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function kI(e,t){e._appendElement(t,pe.HTML),t.ackSelfClosing=!0}function wI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._appendElement(t,pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function NI(e,t){t.tagName=J.IMG,t.tagID=T.IMG,zC(e,t)}function RI(e,t){e._insertElement(t,pe.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Lt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=q.TEXT}function OI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Lt.RAWTEXT)}function LI(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Lt.RAWTEXT)}function LT(e,t){e._switchToTextParsing(t,Lt.RAWTEXT)}function DI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.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 II(e,t){e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML)}function MI(e,t){e.openElements.hasInScope(T.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,pe.HTML)}function PI(e,t){e.openElements.hasInScope(T.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(T.RTC),e._insertElement(t,pe.HTML)}function BI(e,t){e._reconstructActiveFormattingElements(),PC(t),dg(t),t.selfClosing?e._appendElement(t,pe.MATHML):e._insertElement(t,pe.MATHML),t.ackSelfClosing=!0}function jI(e,t){e._reconstructActiveFormattingElements(),BC(t),dg(t),t.selfClosing?e._appendElement(t,pe.SVG):e._insertElement(t,pe.SVG),t.ackSelfClosing=!0}function DT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML)}function cn(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:{vI(e,t);break}case T.A:{TI(e,t);break}case T.H1:case T.H2:case T.H3:case T.H4:case T.H5:case T.H6:{pI(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:{mI(e,t);break}case T.LI:case T.DD:case T.DT:{yI(e,t);break}case T.BR:case T.IMG:case T.WBR:case T.AREA:case T.EMBED:case T.KEYGEN:{zC(e,t);break}case T.HR:{wI(e,t);break}case T.RB:case T.RTC:{MI(e,t);break}case T.RT:case T.RP:{PI(e,t);break}case T.PRE:case T.LISTING:{gI(e,t);break}case T.XMP:{OI(e,t);break}case T.SVG:{jI(e,t);break}case T.HTML:{fI(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:{pr(e,t);break}case T.BODY:{dI(e,t);break}case T.FORM:{bI(e,t);break}case T.NOBR:{SI(e,t);break}case T.MATH:{BI(e,t);break}case T.TABLE:{_I(e,t);break}case T.INPUT:{AI(e,t);break}case T.PARAM:case T.TRACK:case T.SOURCE:{kI(e,t);break}case T.IMAGE:{NI(e,t);break}case T.BUTTON:{xI(e,t);break}case T.APPLET:case T.OBJECT:case T.MARQUEE:{CI(e,t);break}case T.IFRAME:{LI(e,t);break}case T.SELECT:{DI(e,t);break}case T.OPTION:case T.OPTGROUP:{II(e,t);break}case T.NOEMBED:case T.NOFRAMES:{LT(e,t);break}case T.FRAMESET:{hI(e,t);break}case T.TEXTAREA:{RI(e,t);break}case T.NOSCRIPT:{e.options.scriptingEnabled?LT(e,t):DT(e,t);break}case T.PLAINTEXT:{EI(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:DT(e,t)}}function HI(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 UI(e,t){e.openElements.hasInScope(T.BODY)&&(e.insertionMode=q.AFTER_BODY,ZC(e,t))}function zI(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function FI(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 qI(e){e.openElements.hasInButtonScope(T.P)||e._insertFakeElement(J.P,T.P),e._closePElement()}function VI(e){e.openElements.hasInListItemScope(T.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(T.LI),e.openElements.popUntilTagNamePopped(T.LI))}function YI(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function $I(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function GI(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function KI(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(J.BR,T.BR),e.openElements.pop(),e.framesetOk=!1}function qC(e,t){const n=t.tagName,i=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){const l=e.openElements.items[s],u=e.openElements.tagIDs[s];if(i===u&&(i!==T.UNKNOWN||e.treeAdapter.getTagName(l)===n)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(l,u))break}}function cd(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:{hg(e,t);break}case T.P:{qI(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:{zI(e,t);break}case T.LI:{VI(e);break}case T.DD:case T.DT:{YI(e,t);break}case T.H1:case T.H2:case T.H3:case T.H4:case T.H5:case T.H6:{$I(e);break}case T.BR:{KI(e);break}case T.BODY:{HI(e,t);break}case T.HTML:{UI(e,t);break}case T.FORM:{FI(e);break}case T.APPLET:case T.OBJECT:case T.MARQUEE:{GI(e,t);break}case T.TEMPLATE:{rs(e,t);break}default:qC(e,t)}}function VC(e,t){e.tmplInsertionModeStack.length>0?WC(e,t):mg(e,t)}function XI(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 QI(e,t){e._err(t,se.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function op(e,t){if(e.openElements.currentTagId!==void 0&&jC.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 qe.CHARACTER:{$C(e,t);break}case qe.WHITESPACE_CHARACTER:{YC(e,t);break}}else cu(e,t)}function WI(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,pe.HTML),e.insertionMode=q.IN_CAPTION}function ZI(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,pe.HTML),e.insertionMode=q.IN_COLUMN_GROUP}function JI(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.COLGROUP,T.COLGROUP),e.insertionMode=q.IN_COLUMN_GROUP,pg(e,t)}function eM(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,pe.HTML),e.insertionMode=q.IN_TABLE_BODY}function tM(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.TBODY,T.TBODY),e.insertionMode=q.IN_TABLE_BODY,fd(e,t)}function nM(e,t){e.openElements.hasInTableScope(T.TABLE)&&(e.openElements.popUntilTagNamePopped(T.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function rM(e,t){FC(t)?e._appendElement(t,pe.HTML):cu(e,t),t.ackSelfClosing=!0}function iM(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,pe.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function hl(e,t){switch(t.tagID){case T.TD:case T.TH:case T.TR:{tM(e,t);break}case T.STYLE:case T.SCRIPT:case T.TEMPLATE:{pr(e,t);break}case T.COL:{JI(e,t);break}case T.FORM:{iM(e,t);break}case T.TABLE:{nM(e,t);break}case T.TBODY:case T.TFOOT:case T.THEAD:{eM(e,t);break}case T.INPUT:{rM(e,t);break}case T.CAPTION:{WI(e,t);break}case T.COLGROUP:{ZI(e,t);break}default:cu(e,t)}}function Jo(e,t){switch(t.tagID){case T.TABLE:{e.openElements.hasInTableScope(T.TABLE)&&(e.openElements.popUntilTagNamePopped(T.TABLE),e._resetInsertionMode());break}case T.TEMPLATE:{rs(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:cu(e,t)}}function cu(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ud(e,t),e.fosterParentingEnabled=n}function YC(e,t){e.pendingCharacterTokens.push(t)}function $C(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function So(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)cu(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const GC=new Set([T.CAPTION,T.COL,T.COLGROUP,T.TBODY,T.TD,T.TFOOT,T.TH,T.THEAD,T.TR]);function aM(e,t){const n=t.tagID;GC.has(n)?e.openElements.hasInTableScope(T.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=q.IN_TABLE,hl(e,t)):cn(e,t)}function sM(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&&Jo(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:cd(e,t)}}function pg(e,t){switch(t.tagID){case T.HTML:{cn(e,t);break}case T.COL:{e._appendElement(t,pe.HTML),t.ackSelfClosing=!0;break}case T.TEMPLATE:{pr(e,t);break}default:If(e,t)}}function lM(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:{rs(e,t);break}case T.COL:break;default:If(e,t)}}function If(e,t){e.openElements.currentTagId===T.COLGROUP&&(e.openElements.pop(),e.insertionMode=q.IN_TABLE,e._processToken(t))}function fd(e,t){switch(t.tagID){case T.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,pe.HTML),e.insertionMode=q.IN_ROW;break}case T.TH:case T.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(J.TR,T.TR),e.insertionMode=q.IN_ROW,dd(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,hl(e,t));break}default:hl(e,t)}}function o0(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,Jo(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:Jo(e,t)}}function dd(e,t){switch(t.tagID){case T.TH:case T.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,pe.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,fd(e,t));break}default:hl(e,t)}}function KC(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,o0(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,o0(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:Jo(e,t)}}function oM(e,t){const n=t.tagID;GC.has(n)?(e.openElements.hasInTableScope(T.TD)||e.openElements.hasInTableScope(T.TH))&&(e._closeTableCell(),dd(e,t)):cn(e,t)}function uM(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(),KC(e,t));break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:break;default:cd(e,t)}}function XC(e,t){switch(t.tagID){case T.HTML:{cn(e,t);break}case T.OPTION:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e._insertElement(t,pe.HTML);break}case T.OPTGROUP:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop(),e._insertElement(t,pe.HTML);break}case T.HR:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop(),e._appendElement(t,pe.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:{pr(e,t);break}}}function QC(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:{rs(e,t);break}}}function cM(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)):XC(e,t)}function fM(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)):QC(e,t)}function dM(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:{pr(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,hl(e,t);break}case T.COL:{e.tmplInsertionModeStack[0]=q.IN_COLUMN_GROUP,e.insertionMode=q.IN_COLUMN_GROUP,pg(e,t);break}case T.TR:{e.tmplInsertionModeStack[0]=q.IN_TABLE_BODY,e.insertionMode=q.IN_TABLE_BODY,fd(e,t);break}case T.TD:case T.TH:{e.tmplInsertionModeStack[0]=q.IN_ROW,e.insertionMode=q.IN_ROW,dd(e,t);break}default:e.tmplInsertionModeStack[0]=q.IN_BODY,e.insertionMode=q.IN_BODY,cn(e,t)}}function hM(e,t){t.tagID===T.TEMPLATE&&rs(e,t)}function WC(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(T.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):mg(e,t)}function mM(e,t){t.tagID===T.HTML?cn(e,t):Mf(e,t)}function ZC(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 i=e.openElements.items[1];i&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(i))===null||n===void 0)&&n.endTag)&&e._setEndLocation(i,t)}}else Mf(e,t)}function Mf(e,t){e.insertionMode=q.IN_BODY,ud(e,t)}function pM(e,t){switch(t.tagID){case T.HTML:{cn(e,t);break}case T.FRAMESET:{e._insertElement(t,pe.HTML);break}case T.FRAME:{e._appendElement(t,pe.HTML),t.ackSelfClosing=!0;break}case T.NOFRAMES:{pr(e,t);break}}}function gM(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 bM(e,t){switch(t.tagID){case T.HTML:{cn(e,t);break}case T.NOFRAMES:{pr(e,t);break}}}function yM(e,t){t.tagID===T.HTML&&(e.insertionMode=q.AFTER_AFTER_FRAMESET)}function EM(e,t){t.tagID===T.HTML?cn(e,t):bf(e,t)}function bf(e,t){e.insertionMode=q.IN_BODY,ud(e,t)}function xM(e,t){switch(t.tagID){case T.HTML:{cn(e,t);break}case T.NOFRAMES:{pr(e,t);break}}}function TM(e,t){t.chars=Ct,e._insertCharacters(t)}function vM(e,t){e._insertCharacters(t),e.framesetOk=!1}function JC(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==pe.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function SM(e,t){if(jD(t))JC(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(n);i===pe.MATHML?PC(t):i===pe.SVG&&(HD(t),BC(t)),dg(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function CM(e,t){if(t.tagID===T.P||t.tagID===T.BR){JC(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const i=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(i)===pe.HTML){e._endTagOutsideForeignContent(t);break}const s=e.treeAdapter.getTagName(i);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(n);break}}}J.AREA,J.BASE,J.BASEFONT,J.BGSOUND,J.BR,J.COL,J.EMBED,J.FRAME,J.HR,J.IMG,J.INPUT,J.KEYGEN,J.LINK,J.META,J.PARAM,J.SOURCE,J.TRACK,J.WBR;const hd=e_("end"),Dr=e_("start");function e_(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function t_(e){const t=Dr(e),n=hd(e);if(t&&n)return{start:t,end:n}}const _M=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,AM=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),IT={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function n_(e,t){const n=PM(e),i=_C("type",{handlers:{root:kM,element:wM,text:NM,comment:i_,doctype:RM,raw:LM},unknown:DM}),s={parser:n?new OT(IT):OT.getFragmentParser(void 0,IT),handle(c){i(c,s)},stitches:!1,options:t||{}};i(e,s),vl(s,Dr());const l=n?s.parser.document:s.parser.getFragment(),u=B5(l,{file:s.options.file});return s.stitches&&dr(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 r_(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function kM(e,t){r_(e.children,t)}function wM(e,t){IM(e,t),r_(e.children,t),MM(e,t)}function NM(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:qe.CHARACTER,chars:e.value,location:fu(e)};vl(t,Dr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function RM(e,t){const n={type:qe.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:fu(e)};vl(t,Dr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function OM(e,t){t.stitches=!0;const n=BM(e);if("children"in e&&"children"in n){const i=n_({type:"root",children:e.children},t.options);n.children=i.children}i_({type:"comment",value:{stitch:n}},t)}function i_(e,t){const n=e.value,i={type:qe.COMMENT,data:n,location:fu(e)};vl(t,Dr(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function LM(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,a_(t,Dr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(_M,"<$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 DM(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))OM(n,t);else{let i="";throw AM.has(n.type)&&(i=". 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"+i)}}function vl(e,t){a_(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=Lt.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 a_(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 IM(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Lt.PLAINTEXT)return;vl(t,Dr(e));const i=t.parser.openElements.current;let s="namespaceURI"in i?i.namespaceURI:Ha.html;s===Ha.html&&n==="svg"&&(s=Ha.svg);const l=F5({...e,children:[]},{space:s===Ha.svg?"svg":"html"}),u={type:qe.START_TAG,tagName:n,tagID:Tl(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in l?l.attrs:[],location:fu(e)};t.parser.currentToken=u,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function MM(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Q5.includes(n)||t.parser.tokenizer.state===Lt.PLAINTEXT)return;vl(t,hd(e));const i={type:qe.END_TAG,tagName:n,tagID:Tl(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:fu(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Lt.RCDATA||t.parser.tokenizer.state===Lt.RAWTEXT||t.parser.tokenizer.state===Lt.SCRIPT_DATA)&&(t.parser.tokenizer.state=Lt.DATA)}function PM(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function fu(e){const t=Dr(e)||{line:void 0,column:void 0,offset:void 0},n=hd(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 BM(e){return"children"in e?Ka({...e,children:[]}):Ka(e)}function u0(e){return function(t,n){return n_(t,{...e,file:n})}}const Ra=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Ia={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Ra,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Ra],h2:[["className","sr-only"]],img:[...Ra,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Ra,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Ra],table:[...Ra],ul:[...Ra,["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"]},Ki={}.hasOwnProperty;function jM(e,t){let n={type:"root",children:[]};const i={schema:t?{...Ia,...t}:Ia,stack:[]},s=s_(i,e);return s&&(Array.isArray(s)?s.length===1?n=s[0]:n.children=s:n=s),n}function s_(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return HM(e,n);case"doctype":return UM(e,n);case"element":return zM(e,n);case"root":return FM(e,n);case"text":return qM(e,n)}}}function HM(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",i=n.indexOf("-->"),l={type:"comment",value:i<0?n:n.slice(0,i)};return du(l,t),l}}function UM(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return du(n,t),n}}function zM(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const i=l_(e,t.children),s=VM(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&&Ki.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)?i:void 0;const u={type:"element",tagName:n,properties:s,children:i};return du(u,t),u}function FM(e,t){const i={type:"root",children:l_(e,t.children)};return du(i,t),i}function qM(e,t){const i={type:"text",value:typeof t.value=="string"?t.value:""};return du(i,t),i}function l_(e,t){const n=[];if(Array.isArray(t)){const i=t;let s=-1;for(;++s<i.length;){const l=s_(e,i[s]);l&&(Array.isArray(l)?n.push(...l):n.push(l))}}return n}function VM(e,t){const n=e.stack[e.stack.length-1],i=e.schema.attributes,s=e.schema.required,l=i&&Ki.call(i,n)?i[n]:void 0,u=i&&Ki.call(i,"*")?i["*"]:void 0,c=t&&typeof t=="object"?t:{},d={};let h;for(h in c)if(Ki.call(c,h)){const m=c[h];let p=MT(e,PT(l,h),h,m);p==null&&(p=MT(e,PT(u,h),h,m)),p!=null&&(d[h]=p)}if(s&&Ki.call(s,n)){const m=s[n];for(h in m)Ki.call(m,h)&&!Ki.call(d,h)&&(d[h]=m[h])}return d}function MT(e,t,n,i){return t?Array.isArray(i)?YM(e,t,n,i):o_(e,t,n,i):void 0}function YM(e,t,n,i){let s=-1;const l=[];for(;++s<i.length;){const u=o_(e,t,n,i[s]);(typeof u=="number"||typeof u=="string")&&l.push(u)}return l}function o_(e,t,n,i){if(!(typeof i!="boolean"&&typeof i!="number"&&typeof i!="string")&&$M(e,n,i)){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(i))){s=!0;break}}else if(u===i){s=!0;break}}if(!s)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+i:i}}function $M(e,t,n){const i=e.schema.protocols&&Ki.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!i||i.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<i.length;){const m=i[h];if(l===m.length&&s.slice(0,m.length)===m)return!0}return!1}function du(e,t){const n=t_(t);t.data&&(e.data=Ka(t.data)),n&&(e.position=n)}function PT(e,t){let n,i=-1;if(e)for(;++i<e.length;){const s=e[i],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 u_(e){return function(t){return jM(t,e)}}function BT(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,s=n.indexOf(t);for(;s!==-1;)i++,s=n.indexOf(t,s+t.length);return i}const pn=oa(/[A-Za-z]/),un=oa(/[\dA-Za-z]/),GM=oa(/[#-'*+\--9=?A-Z^-~]/);function Pf(e){return e!==null&&(e<32||e===127)}const c0=oa(/\d/),KM=oa(/[\dA-Fa-f]/),XM=oa(/[!-/:-@[-`{-~]/);function Re(e){return e!==null&&e<-2}function Et(e){return e!==null&&(e<0||e===32)}function Ke(e){return e===-2||e===-1||e===32}const md=oa(new RegExp("\\p{P}|\\p{S}","u")),Xa=oa(/\s/);function oa(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function QM(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function WM(e,t,n){const s=id((n||{}).ignore||[]),l=ZM(t);let u=-1;for(;++u<l.length;)sd(e,"text",c);function c(h,m){let p=-1,y;for(;++p<m.length;){const E=m[p],v=y?y.children:void 0;if(s(E,v?v.indexOf(E):void 0,y))return;y=E}if(y)return d(h,m)}function d(h,m){const p=m[m.length-1],y=l[u][0],E=l[u][1];let v=0;const A=p.children.indexOf(h);let k=!1,N=[];y.lastIndex=0;let w=y.exec(h.value);for(;w;){const D=w.index,F={index:w.index,input:w.input,stack:[...m,h]};let O=E(...w,F);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?y.lastIndex=D+1:(v!==D&&N.push({type:"text",value:h.value.slice(v,D)}),Array.isArray(O)?N.push(...O):O&&N.push(O),v=D+w[0].length,k=!0),!y.global)break;w=y.exec(h.value)}return k?(v<h.value.length&&N.push({type:"text",value:h.value.slice(v)}),p.children.splice(A,1,...N)):N=[h],A+N.length}}function ZM(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 i=-1;for(;++i<n.length;){const s=n[i];t.push([JM(s[0]),e8(s[1])])}return t}function JM(e){return typeof e=="string"?new RegExp(QM(e),"g"):e}function e8(e){return typeof e=="function"?e:function(){return e}}const up="phrasing",cp=["autolink","link","image","label"];function t8(){return{transforms:[o8],enter:{literalAutolink:r8,literalAutolinkEmail:fp,literalAutolinkHttp:fp,literalAutolinkWww:fp},exit:{literalAutolink:l8,literalAutolinkEmail:s8,literalAutolinkHttp:i8,literalAutolinkWww:a8}}}function n8(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:up,notInConstruct:cp},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:up,notInConstruct:cp},{character:":",before:"[ps]",after:"\\/",inConstruct:up,notInConstruct:cp}]}}function r8(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function fp(e){this.config.enter.autolinkProtocol.call(this,e)}function i8(e){this.config.exit.autolinkProtocol.call(this,e)}function a8(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 s8(e){this.config.exit.autolinkEmail.call(this,e)}function l8(e){this.exit(e)}function o8(e){WM(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,u8],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),c8]],{ignore:["link","linkReference"]})}function u8(e,t,n,i,s){let l="";if(!c_(s)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!f8(n)))return!1;const u=d8(n+i);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 c8(e,t,n,i){return!c_(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function f8(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 d8(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const s=BT(e,"(");let l=BT(e,")");for(;i!==-1&&s>l;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),l++;return[e,n]}function c_(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Xa(n)||md(n))&&(!t||n!==47)}function fr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}f_.peek=T8;function h8(){this.buffer()}function m8(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function p8(){this.buffer()}function g8(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function b8(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=fr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function y8(e){this.exit(e)}function E8(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=fr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function x8(e){this.exit(e)}function T8(){return"["}function f_(e,t,n,i){const s=n.createTracker(i);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 v8(){return{enter:{gfmFootnoteCallString:h8,gfmFootnoteCall:m8,gfmFootnoteDefinitionLabelString:p8,gfmFootnoteDefinition:g8},exit:{gfmFootnoteCallString:b8,gfmFootnoteCall:y8,gfmFootnoteDefinitionLabelString:E8,gfmFootnoteDefinition:x8}}}function S8(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:f_},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,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(i),{before:d,after:"]"})),m(),d+=c.move("]:"),i.children&&i.children.length>0&&(c.shift(4),d+=c.move((t?`
|
|
51
|
+
`:" ")+l.indentLines(l.containerFlow(i,c.current()),t?d_:C8))),h(),d}}function C8(e,t,n){return t===0?e:d_(e,t,n)}function d_(e,t,n){return(n?"":" ")+e}const _8=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];h_.peek=R8;function A8(){return{canContainEols:["delete"],enter:{strikethrough:w8},exit:{strikethrough:N8}}}function k8(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:_8}],handlers:{delete:h_}}}function w8(e){this.enter({type:"delete",children:[]},e)}function N8(e){this.exit(e)}function h_(e,t,n,i){const s=n.createTracker(i),l=n.enter("strikethrough");let u=s.move("~~");return u+=n.containerPhrasing(e,{...s.current(),before:u,after:"~"}),u+=s.move("~~"),l(),u}function R8(){return"~"}function O8(e){return e.length}function L8(e,t){const n=t||{},i=(n.align||[]).concat(),s=n.stringLength||O8,l=[],u=[],c=[],d=[];let h=0,m=-1;for(;++m<e.length;){const S=[],A=[];let k=-1;for(e[m].length>h&&(h=e[m].length);++k<e[m].length;){const N=D8(e[m][k]);if(n.alignDelimiters!==!1){const w=s(N);A[k]=w,(d[k]===void 0||w>d[k])&&(d[k]=w)}S.push(N)}u[m]=S,c[m]=A}let p=-1;if(typeof i=="object"&&"length"in i)for(;++p<h;)l[p]=jT(i[p]);else{const S=jT(i);for(;++p<h;)l[p]=S}p=-1;const y=[],E=[];for(;++p<h;){const S=l[p];let A="",k="";S===99?(A=":",k=":"):S===108?A=":":S===114&&(k=":");let N=n.alignDelimiters===!1?1:Math.max(1,d[p]-A.length-k.length);const w=A+"-".repeat(N)+k;n.alignDelimiters!==!1&&(N=A.length+N+k.length,N>d[p]&&(d[p]=N),E[p]=N),y[p]=w}u.splice(1,0,y),c.splice(1,0,E),m=-1;const v=[];for(;++m<u.length;){const S=u[m],A=c[m];p=-1;const k=[];for(;++p<h;){const N=S[p]||"";let w="",D="";if(n.alignDelimiters!==!1){const F=d[p]-(A[p]||0),O=l[p];O===114?w=" ".repeat(F):O===99?F%2?(w=" ".repeat(F/2+.5),D=" ".repeat(F/2-.5)):(w=" ".repeat(F/2),D=w):D=" ".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(D),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 D8(e){return e==null?"":String(e)}function jT(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 I8(e,t,n,i){const s=n.enter("blockquote"),l=n.createTracker(i);l.move("> "),l.shift(2);const u=n.indentLines(n.containerFlow(e,l.current()),M8);return s(),u}function M8(e,t,n){return">"+(n?"":" ")+e}function P8(e,t){return HT(e,t.inConstruct,!0)&&!HT(e,t.notInConstruct,!1)}function HT(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function UT(e,t,n,i){let s=-1;for(;++s<n.unsafe.length;)if(n.unsafe[s].character===`
|
|
53
|
+
`&&P8(n.stack,n.unsafe[s]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
54
|
+
`}function B8(e,t){const n=String(e);let i=n.indexOf(t),s=i,l=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===s?++l>u&&(u=l):l=1,s=i+t.length,i=n.indexOf(t,s);return u}function j8(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 H8(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 U8(e,t,n,i){const s=H8(n),l=e.value||"",u=s==="`"?"GraveAccent":"Tilde";if(j8(e,n)){const p=n.enter("codeIndented"),y=n.indentLines(l,z8);return p(),y}const c=n.createTracker(i),d=s.repeat(Math.max(B8(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 z8(e,t,n){return(n?"":" ")+e}function gg(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 F8(e,t,n,i){const s=gg(n),l=s==='"'?"Quote":"Apostrophe",u=n.enter("definition");let c=n.enter("label");const d=n.createTracker(i);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 q8(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 eu(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ml(e){if(e===null||Et(e)||Xa(e))return 1;if(md(e))return 2}function Bf(e,t,n){const i=ml(e),s=ml(t);return i===void 0?s===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===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}}m_.peek=V8;function m_(e,t,n,i){const s=q8(n),l=n.enter("emphasis"),u=n.createTracker(i),c=u.move(s);let d=u.move(n.containerPhrasing(e,{after:s,before:c,...u.current()}));const h=d.charCodeAt(0),m=Bf(i.before.charCodeAt(i.before.length-1),h,s);m.inside&&(d=eu(h)+d.slice(1));const p=d.charCodeAt(d.length-1),y=Bf(i.after.charCodeAt(0),p,s);y.inside&&(d=d.slice(0,-1)+eu(p));const E=u.move(s);return l(),n.attentionEncodeSurroundingInfo={after:y.outside,before:m.outside},c+d+E}function V8(e,t,n){return n.options.emphasis||"*"}const Y8={};function bg(e,t){const n=Y8,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return p_(e,i,s)}function p_(e,t,n){if($8(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 zT(e.children,t,n)}return Array.isArray(e)?zT(e,t,n):""}function zT(e,t,n){const i=[];let s=-1;for(;++s<e.length;)i[s]=p_(e[s],t,n);return i.join("")}function $8(e){return!!(e&&typeof e=="object")}function G8(e,t){let n=!1;return dr(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,t0}),!!((!e.depth||e.depth<3)&&bg(e)&&(t.options.setext||n))}function K8(e,t,n,i){const s=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(i);if(G8(e,n)){const m=n.enter("headingSetext"),p=n.enter("phrasing"),y=n.containerPhrasing(e,{...l.current(),before:`
|
|
59
|
+
`,after:`
|
|
60
|
+
`});return p(),m(),y+`
|
|
61
|
+
`+(s===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.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=eu(h.charCodeAt(0))+h.slice(1)),h=h?u+" "+h:u,n.options.closeAtx&&(h+=" "+u),d(),c(),h}g_.peek=X8;function g_(e){return e.value||""}function X8(){return"<"}b_.peek=Q8;function b_(e,t,n,i){const s=gg(n),l=s==='"'?"Quote":"Apostrophe",u=n.enter("image");let c=n.enter("label");const d=n.createTracker(i);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 Q8(){return"!"}y_.peek=W8;function y_(e,t,n,i){const s=e.referenceType,l=n.enter("imageReference");let u=n.enter("label");const c=n.createTracker(i);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 W8(){return"!"}E_.peek=Z8;function E_(e,t,n){let i=e.value||"",s="`",l=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(i);)s+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++l<n.unsafe.length;){const u=n.unsafe[l],c=n.compilePattern(u);let d;if(u.atBreak)for(;d=c.exec(i);){let h=d.index;i.charCodeAt(h)===10&&i.charCodeAt(h-1)===13&&h--,i=i.slice(0,h)+" "+i.slice(d.index+1)}}return s+i+s}function Z8(){return"`"}function x_(e,t){const n=bg(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))}T_.peek=J8;function T_(e,t,n,i){const s=gg(n),l=s==='"'?"Quote":"Apostrophe",u=n.createTracker(i);let c,d;if(x_(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 J8(e,t,n){return x_(e,n)?"<":"["}v_.peek=e9;function v_(e,t,n,i){const s=e.referenceType,l=n.enter("linkReference");let u=n.enter("label");const c=n.createTracker(i);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 e9(){return"["}function yg(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 t9(e){const t=yg(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 n9(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 S_(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 r9(e,t,n,i){const s=n.enter("list"),l=n.bulletCurrent;let u=e.ordered?n9(n):yg(n);const c=e.ordered?u==="."?")":".":t9(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),S_(n)===u&&m){let p=-1;for(;++p<e.children.length;){const y=e.children[p];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(u=c),n.bulletCurrent=u;const h=n.containerFlow(e,i);return n.bulletLastUsed=u,n.bulletCurrent=l,s(),h}function i9(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 a9(e,t,n,i){const s=i9(n);let l=n.bulletCurrent||yg(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(i);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,y,E){return y?(E?"":" ".repeat(u))+p:(E?l:l+" ".repeat(u-l.length))+p}}function s9(e,t,n,i){const s=n.enter("paragraph"),l=n.enter("phrasing"),u=n.containerPhrasing(e,i);return l(),s(),u}const l9=id(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function o9(e,t,n,i){return(e.children.some(function(u){return l9(u)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function u9(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}C_.peek=c9;function C_(e,t,n,i){const s=u9(n),l=n.enter("strong"),u=n.createTracker(i),c=u.move(s+s);let d=u.move(n.containerPhrasing(e,{after:s,before:c,...u.current()}));const h=d.charCodeAt(0),m=Bf(i.before.charCodeAt(i.before.length-1),h,s);m.inside&&(d=eu(h)+d.slice(1));const p=d.charCodeAt(d.length-1),y=Bf(i.after.charCodeAt(0),p,s);y.inside&&(d=d.slice(0,-1)+eu(p));const E=u.move(s+s);return l(),n.attentionEncodeSurroundingInfo={after:y.outside,before:m.outside},c+d+E}function c9(e,t,n){return n.options.strong||"*"}function f9(e,t,n,i){return n.safe(e.value,i)}function d9(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 h9(e,t,n){const i=(S_(n)+(n.options.ruleSpaces?" ":"")).repeat(d9(n));return n.options.ruleSpaces?i.slice(0,-1):i}const __={blockquote:I8,break:UT,code:U8,definition:F8,emphasis:m_,hardBreak:UT,heading:K8,html:g_,image:b_,imageReference:y_,inlineCode:E_,link:T_,linkReference:v_,list:r9,listItem:a9,paragraph:s9,root:o9,strong:C_,text:f9,thematicBreak:h9},FT=document.createElement("i");function Eg(e){const t="&"+e+";";FT.innerHTML=t;const n=FT.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function A_(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 m9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function p9(e){return e.replace(m9,g9)}function g9(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),l=s===120||s===88;return A_(n.slice(l?2:1),l?16:10)}return Eg(n)||e}function b9(){return{enter:{table:y9,tableData:qT,tableHeader:qT,tableRow:x9},exit:{codeText:T9,table:E9,tableData:dp,tableHeader:dp,tableRow:dp}}}function y9(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 E9(e){this.exit(e),this.data.inTable=void 0}function x9(e){this.enter({type:"tableRow",children:[]},e)}function dp(e){this.exit(e)}function qT(e){this.enter({type:"tableCell",children:[]},e)}function T9(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,v9));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function v9(e,t){return t==="|"?t:e}function S9(e){const t=e||{},n=t.tableCellPadding,i=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:y,table:u,tableCell:d,tableRow:c}};function u(E,v,S,A){return h(m(E,S,A),E.align)}function c(E,v,S,A){const k=p(E,S,A),N=h([k]);return N.slice(0,N.indexOf(`
|
|
65
|
+
`))}function d(E,v,S,A){const k=S.enter("tableCell"),N=S.enter("phrasing"),w=S.containerPhrasing(E,{...A,before:l,after:l});return N(),k(),w}function h(E,v){return L8(E,{align:v,alignDelimiters:i,padding:n,stringLength:s})}function m(E,v,S){const A=E.children;let k=-1;const N=[],w=v.enter("table");for(;++k<A.length;)N[k]=p(A[k],v,S);return w(),N}function p(E,v,S){const A=E.children;let k=-1;const N=[],w=v.enter("tableRow");for(;++k<A.length;)N[k]=d(A[k],E,v,S);return w(),N}function y(E,v,S){let A=__.inlineCode(E,v,S);return S.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function C9(){return{exit:{taskListCheckValueChecked:VT,taskListCheckValueUnchecked:VT,paragraph:A9}}}function _9(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:k9}}}function VT(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function A9(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 i=n.children[0];if(i&&i.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&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function k9(e,t,n,i){const s=e.children[0],l=typeof e.checked=="boolean"&&s&&s.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",c=n.createTracker(i);l&&c.move(u);let d=__.listItem(e,t,n,{...i,...c.current()});return l&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(m){return m+u}}function w9(){return[t8(),v8(),A8(),b9(),C9()]}function N9(e){return{extensions:[n8(),S8(e),k8(),S9(e),_9()]}}function Vn(e,t,n,i){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,i.length<1e4)u=Array.from(i),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);l<i.length;)u=i.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 YT={}.hasOwnProperty;function k_(e){const t={};let n=-1;for(;++n<e.length;)R9(t,e[n]);return t}function R9(e,t){let n;for(n in t){const s=(YT.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let u;if(l)for(u in l){YT.call(s,u)||(s[u]=[]);const c=l[u];O9(s[u],Array.isArray(c)?c:c?[c]:[])}}}function O9(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Vn(e,0,0,i)}const L9={tokenize:j9,partial:!0},w_={tokenize:H9,partial:!0},N_={tokenize:U9,partial:!0},R_={tokenize:z9,partial:!0},D9={tokenize:F9,partial:!0},O_={name:"wwwAutolink",tokenize:P9,previous:D_},L_={name:"protocolAutolink",tokenize:B9,previous:I_},pi={name:"emailAutolink",tokenize:M9,previous:M_},Ir={};function I9(){return{text:Ir}}let Oa=48;for(;Oa<123;)Ir[Oa]=pi,Oa++,Oa===58?Oa=65:Oa===91&&(Oa=97);Ir[43]=pi;Ir[45]=pi;Ir[46]=pi;Ir[95]=pi;Ir[72]=[pi,L_];Ir[104]=[pi,L_];Ir[87]=[pi,O_];Ir[119]=[pi,O_];function M9(e,t,n){const i=this;let s,l;return u;function u(p){return!f0(p)||!M_.call(i,i.previous)||xg(i.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(p))}function c(p){return f0(p)?(e.consume(p),c):p===64?(e.consume(p),d):n(p)}function d(p){return p===46?e.check(D9,m,h)(p):p===45||p===95||un(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&&pn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function P9(e,t,n){const i=this;return s;function s(u){return u!==87&&u!==119||!D_.call(i,i.previous)||xg(i.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(L9,e.attempt(w_,e.attempt(N_,l),n),n)(u))}function l(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function B9(e,t,n){const i=this;let s="",l=!1;return u;function u(p){return(p===72||p===104)&&I_.call(i,i.previous)&&!xg(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(p),e.consume(p),c):n(p)}function c(p){if(pn(p)&&s.length<5)return s+=String.fromCodePoint(p),e.consume(p),c;if(p===58){const y=s.toLowerCase();if(y==="http"||y==="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||Pf(p)||Et(p)||Xa(p)||md(p)?n(p):e.attempt(w_,e.attempt(N_,m),n)(p)}function m(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function j9(e,t,n){let i=0;return s;function s(u){return(u===87||u===119)&&i<3?(i++,e.consume(u),s):u===46&&i===3?(e.consume(u),l):n(u)}function l(u){return u===null?n(u):t(u)}}function H9(e,t,n){let i,s,l;return u;function u(h){return h===46||h===95?e.check(R_,d,c)(h):h===null||Et(h)||Xa(h)||h!==45&&md(h)?d(h):(l=!0,e.consume(h),u)}function c(h){return h===95?i=!0:(s=i,i=void 0),e.consume(h),u}function d(h){return s||i||!l?n(h):t(h)}}function U9(e,t){let n=0,i=0;return s;function s(u){return u===40?(n++,e.consume(u),s):u===41&&i<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(R_,t,l)(u):u===null||Et(u)||Xa(u)?t(u):(e.consume(u),s)}function l(u){return u===41&&i++,e.consume(u),s}}function z9(e,t,n){return i;function i(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),i):c===38?(e.consume(c),l):c===93?(e.consume(c),s):c===60||c===null||Et(c)||Xa(c)?t(c):n(c)}function s(c){return c===null||c===40||c===91||Et(c)||Xa(c)?t(c):i(c)}function l(c){return pn(c)?u(c):n(c)}function u(c){return c===59?(e.consume(c),i):pn(c)?(e.consume(c),u):n(c)}}function F9(e,t,n){return i;function i(l){return e.consume(l),s}function s(l){return un(l)?n(l):t(l)}}function D_(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Et(e)}function I_(e){return!pn(e)}function M_(e){return!(e===47||f0(e))}function f0(e){return e===43||e===45||e===46||e===95||un(e)}function xg(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Sl(e){const t=[];let n=-1,i=0,s=0;for(;++n<e.length;){const l=e.charCodeAt(n);let u="";if(l===37&&un(e.charCodeAt(n+1))&&un(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(i,n),encodeURIComponent(u)),i=n+s+1,u=""),s&&(n+=s,s=0)}return t.join("")+e.slice(i)}function pd(e,t,n){const i=[];let s=-1;for(;++s<e.length;){const l=e[s].resolveAll;l&&!i.includes(l)&&(t=l(t,n),i.push(l))}return t}const d0={name:"attention",resolveAll:q9,tokenize:V9};function q9(e,t){let n=-1,i,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(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[i][1].end},y={...e[n][1].start};$T(p,-d),$T(y,d),u={type:d>1?"strongSequence":"emphasisSequence",start:p,end:{...e[i][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:y},l={type:d>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},s={type:d>1?"strong":"emphasis",start:{...u.start},end:{...c.end}},e[i][1].end={...u.start},e[n][1].start={...c.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=nr(h,[["enter",e[i][1],t],["exit",e[i][1],t]])),h=nr(h,[["enter",s,t],["enter",u,t],["exit",u,t],["enter",l,t]]),h=nr(h,pd(t.parser.constructs.insideSpan.null,e.slice(i+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,i-1,n-i+3,h),n=i+h.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function V9(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,s=ml(i);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=ml(d),p=!m||m===2&&s||n.includes(d),y=!s||s===2&&m||n.includes(i);return h._open=!!(l===42?p:p&&(s||!y)),h._close=!!(l===42?y:y&&(m||!p)),t(d)}}function $T(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Y9={name:"autolink",tokenize:$9};function $9(e,t,n){let i=0;return s;function s(E){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(E),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(E){return pn(E)?(e.consume(E),u):E===64?n(E):h(E)}function u(E){return E===43||E===45||E===46||un(E)?(i=1,c(E)):h(E)}function c(E){return E===58?(e.consume(E),i=0,d):(E===43||E===45||E===46||un(E))&&i++<32?(e.consume(E),c):(i=0,h(E))}function d(E){return E===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(E),e.exit("autolinkMarker"),e.exit("autolink"),t):E===null||E===32||E===60||Pf(E)?n(E):(e.consume(E),d)}function h(E){return E===64?(e.consume(E),m):GM(E)?(e.consume(E),h):n(E)}function m(E){return un(E)?p(E):n(E)}function p(E){return E===46?(e.consume(E),i=0,m):E===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(E),e.exit("autolinkMarker"),e.exit("autolink"),t):y(E)}function y(E){if((E===45||un(E))&&i++<63){const v=E===45?y:p;return e.consume(E),v}return n(E)}}function et(e,t,n,i){const s=i?i-1:Number.POSITIVE_INFINITY;let l=0;return u;function u(d){return Ke(d)?(e.enter(n),c(d)):t(d)}function c(d){return Ke(d)&&l++<s?(e.consume(d),c):(e.exit(n),t(d))}}const hu={partial:!0,tokenize:G9};function G9(e,t,n){return i;function i(l){return Ke(l)?et(e,s,"linePrefix")(l):s(l)}function s(l){return l===null||Re(l)?t(l):n(l)}}const P_={continuation:{tokenize:X9},exit:Q9,name:"blockQuote",tokenize:K9};function K9(e,t,n){const i=this;return s;function s(u){if(u===62){const c=i.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 Ke(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function X9(e,t,n){const i=this;return s;function s(u){return Ke(u)?et(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):l(u)}function l(u){return e.attempt(P_,t,n)(u)}}function Q9(e){e.exit("blockQuote")}const B_={name:"characterEscape",tokenize:W9};function W9(e,t,n){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),s}function s(l){return XM(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const j_={name:"characterReference",tokenize:Z9};function Z9(e,t,n){const i=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=un,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=KM,m):(e.enter("characterReferenceValue"),l=7,u=c0,m(p))}function m(p){if(p===59&&s){const y=e.exit("characterReferenceValue");return u===un&&!Eg(i.sliceSerialize(y))?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 GT={partial:!0,tokenize:eP},KT={concrete:!0,name:"codeFenced",tokenize:J9};function J9(e,t,n){const i=this,s={partial:!0,tokenize:F};let l=0,u=0,c;return d;function d(O){return h(O)}function h(O){const M=i.events[i.events.length-1];return l=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,c=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(O)}function m(O){return O===c?(u++,e.consume(O),m):u<3?n(O):(e.exit("codeFencedFenceSequence"),Ke(O)?et(e,p,"whitespace")(O):p(O))}function p(O){return O===null||Re(O)?(e.exit("codeFencedFence"),i.interrupt?t(O):e.check(GT,S,D)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(O))}function y(O){return O===null||Re(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(O)):Ke(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),et(e,E,"whitespace")(O)):O===96&&O===c?n(O):(e.consume(O),y)}function E(O){return O===null||Re(O)?p(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(O))}function v(O){return O===null||Re(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(O)):O===96&&O===c?n(O):(e.consume(O),v)}function S(O){return e.attempt(s,D,A)(O)}function A(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),k}function k(O){return l>0&&Ke(O)?et(e,N,"linePrefix",l+1)(O):N(O)}function N(O){return O===null||Re(O)?e.check(GT,S,D)(O):(e.enter("codeFlowValue"),w(O))}function w(O){return O===null||Re(O)?(e.exit("codeFlowValue"),N(O)):(e.consume(O),w)}function D(O){return e.exit("codeFenced"),t(O)}function F(O,M,U){let $=0;return H;function H(ie){return O.enter("lineEnding"),O.consume(ie),O.exit("lineEnding"),ee}function ee(ie){return O.enter("codeFencedFence"),Ke(ie)?et(O,X,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ie):X(ie)}function X(ie){return ie===c?(O.enter("codeFencedFenceSequence"),le(ie)):U(ie)}function le(ie){return ie===c?($++,O.consume(ie),le):$>=u?(O.exit("codeFencedFenceSequence"),Ke(ie)?et(O,fe,"whitespace")(ie):fe(ie)):U(ie)}function fe(ie){return ie===null||Re(ie)?(O.exit("codeFencedFence"),M(ie)):U(ie)}}}function eP(e,t,n){const i=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 i.parser.lazy[i.now().line]?n(u):t(u)}}const hp={name:"codeIndented",tokenize:nP},tP={partial:!0,tokenize:rP};function nP(e,t,n){const i=this;return s;function s(h){return e.enter("codeIndented"),et(e,l,"linePrefix",5)(h)}function l(h){const m=i.events[i.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):Re(h)?e.attempt(tP,u,d)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||Re(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),c)}function d(h){return e.exit("codeIndented"),t(h)}}function rP(e,t,n){const i=this;return s;function s(u){return i.parser.lazy[i.now().line]?n(u):Re(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):et(e,l,"linePrefix",5)(u)}function l(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):Re(u)?s(u):n(u)}}const iP={name:"codeText",previous:sP,resolve:aP,tokenize:lP};function aP(e){let t=e.length-4,n=3,i,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)s===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(s=i):(i===t||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return e}function sP(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function lP(e,t,n){let i=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),i++,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)):Re(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||Re(p)?(e.exit("codeTextData"),d(p)):(e.consume(p),h)}function m(p){return p===96?(e.consume(p),s++,m):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(l.type="codeTextData",h(p))}}class oP{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 i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const s=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&Co(this.left,i),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),Co(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Co(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);Co(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Co(this.left,n.reverse())}}}function Co(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 H_(e){const t={};let n=-1,i,s,l,u,c,d,h;const m=new oP(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(i=m.get(n),n&&i[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(d=i[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(i[0]==="enter")i[1].contentType&&(Object.assign(t,uP(m,n)),n=t[n],h=!0);else if(i[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&&(i[1].end={...m.get(s)[1].start},c=m.slice(s,n),c.unshift(i),m.splice(s,n-s+1,c))}}return Vn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function uP(e,t){const n=e.get(t)[1],i=e.get(t)[2];let s=t-1;const l=[];let u=n._tokenizer;u||(u=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const c=u.events,d=[],h={};let m,p,y=-1,E=n,v=0,S=0;const A=[S];for(;E;){for(;e.get(++s)[1]!==E;);l.push(s),E._tokenizer||(m=i.sliceStream(E),E.next||m.push(null),p&&u.defineSkip(E.start),E._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),E._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),p=E,E=E.next}for(E=n;++y<c.length;)c[y][0]==="exit"&&c[y-1][0]==="enter"&&c[y][1].type===c[y-1][1].type&&c[y][1].start.line!==c[y][1].end.line&&(S=y+1,A.push(S),E._tokenizer=void 0,E.previous=void 0,E=E.next);for(u.events=[],E?(E._tokenizer=void 0,E.previous=void 0):A.pop(),y=A.length;y--;){const k=c.slice(A[y],A[y+1]),N=l.pop();d.push([N,N+k.length-1]),e.splice(N,2,k)}for(d.reverse(),y=-1;++y<d.length;)h[v+d[y][0]]=v+d[y][1],v+=d[y][1]-d[y][0]-1;return h}const cP={resolve:dP,tokenize:hP},fP={partial:!0,tokenize:mP};function dP(e){return H_(e),e}function hP(e,t){let n;return i;function i(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s(c)}function s(c){return c===null?l(c):Re(c)?e.check(fP,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 mP(e,t,n){const i=this;return s;function s(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),et(e,l,"linePrefix")}function l(u){if(u===null||Re(u))return n(u);const c=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,n,t)(u)}}function U_(e,t,n,i,s,l,u,c,d){const h=d||Number.POSITIVE_INFINITY;let m=0;return p;function p(k){return k===60?(e.enter(i),e.enter(s),e.enter(l),e.consume(k),e.exit(l),y):k===null||k===32||k===41||Pf(k)?n(k):(e.enter(i),e.enter(u),e.enter(c),e.enter("chunkString",{contentType:"string"}),S(k))}function y(k){return k===62?(e.enter(l),e.consume(k),e.exit(l),e.exit(s),e.exit(i),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),E(k))}function E(k){return k===62?(e.exit("chunkString"),e.exit(c),y(k)):k===null||k===60||Re(k)?n(k):(e.consume(k),k===92?v:E)}function v(k){return k===60||k===62||k===92?(e.consume(k),E):E(k)}function S(k){return!m&&(k===null||k===41||Et(k))?(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(i),t(k)):m<h&&k===40?(e.consume(k),m++,S):k===41?(e.consume(k),m--,S):k===null||k===32||k===40||Pf(k)?n(k):(e.consume(k),k===92?A:S)}function A(k){return k===40||k===41||k===92?(e.consume(k),S):S(k)}}function z_(e,t,n,i,s,l){const u=this;let c=0,d;return h;function h(E){return e.enter(i),e.enter(s),e.consume(E),e.exit(s),e.enter(l),m}function m(E){return c>999||E===null||E===91||E===93&&!d||E===94&&!c&&"_hiddenFootnoteSupport"in u.parser.constructs?n(E):E===93?(e.exit(l),e.enter(s),e.consume(E),e.exit(s),e.exit(i),t):Re(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===null||E===91||E===93||Re(E)||c++>999?(e.exit("chunkString"),m(E)):(e.consume(E),d||(d=!Ke(E)),E===92?y:p)}function y(E){return E===91||E===92||E===93?(e.consume(E),c++,p):p(E)}}function F_(e,t,n,i,s,l){let u;return c;function c(y){return y===34||y===39||y===40?(e.enter(i),e.enter(s),e.consume(y),e.exit(s),u=y===40?41:y,d):n(y)}function d(y){return y===u?(e.enter(s),e.consume(y),e.exit(s),e.exit(i),t):(e.enter(l),h(y))}function h(y){return y===u?(e.exit(l),d(u)):y===null?n(y):Re(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),et(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===u||y===null||Re(y)?(e.exit("chunkString"),h(y)):(e.consume(y),y===92?p:m)}function p(y){return y===u||y===92?(e.consume(y),m):m(y)}}function qo(e,t){let n;return i;function i(s){return Re(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,i):Ke(s)?et(e,i,n?"linePrefix":"lineSuffix")(s):t(s)}}const pP={name:"definition",tokenize:bP},gP={partial:!0,tokenize:yP};function bP(e,t,n){const i=this;let s;return l;function l(E){return e.enter("definition"),u(E)}function u(E){return z_.call(i,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(E)}function c(E){return s=fr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),d):n(E)}function d(E){return Et(E)?qo(e,h)(E):h(E)}function h(E){return U_(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(E)}function m(E){return e.attempt(gP,p,p)(E)}function p(E){return Ke(E)?et(e,y,"whitespace")(E):y(E)}function y(E){return E===null||Re(E)?(e.exit("definition"),i.parser.defined.push(s),t(E)):n(E)}}function yP(e,t,n){return i;function i(c){return Et(c)?qo(e,s)(c):n(c)}function s(c){return F_(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function l(c){return Ke(c)?et(e,u,"whitespace")(c):u(c)}function u(c){return c===null||Re(c)?t(c):n(c)}}const EP={name:"hardBreakEscape",tokenize:xP};function xP(e,t,n){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),s}function s(l){return Re(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const TP={name:"headingAtx",resolve:vP,tokenize:SP};function vP(e,t){let n=e.length-2,i=3,s,l;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},l={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Vn(e,i,n-i+1,[["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]])),e}function SP(e,t,n){let i=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&&i++<6?(e.consume(m),u):m===null||Et(m)?(e.exit("atxHeadingSequence"),c(m)):n(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||Re(m)?(e.exit("atxHeading"),t(m)):Ke(m)?et(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||Et(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),h)}}const CP=["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"],XT=["pre","script","style","textarea"],_P={concrete:!0,name:"htmlFlow",resolveTo:wP,tokenize:NP},AP={partial:!0,tokenize:OP},kP={partial:!0,tokenize:RP};function wP(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 NP(e,t,n){const i=this;let s,l,u,c,d;return h;function h(I){return m(I)}function m(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),p}function p(I){return I===33?(e.consume(I),y):I===47?(e.consume(I),l=!0,S):I===63?(e.consume(I),s=3,i.interrupt?t:L):pn(I)?(e.consume(I),u=String.fromCharCode(I),A):n(I)}function y(I){return I===45?(e.consume(I),s=2,E):I===91?(e.consume(I),s=5,c=0,v):pn(I)?(e.consume(I),s=4,i.interrupt?t:L):n(I)}function E(I){return I===45?(e.consume(I),i.interrupt?t:L):n(I)}function v(I){const me="CDATA[";return I===me.charCodeAt(c++)?(e.consume(I),c===me.length?i.interrupt?t:X:v):n(I)}function S(I){return pn(I)?(e.consume(I),u=String.fromCharCode(I),A):n(I)}function A(I){if(I===null||I===47||I===62||Et(I)){const me=I===47,xe=u.toLowerCase();return!me&&!l&&XT.includes(xe)?(s=1,i.interrupt?t(I):X(I)):CP.includes(u.toLowerCase())?(s=6,me?(e.consume(I),k):i.interrupt?t(I):X(I)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(I):l?N(I):w(I))}return I===45||un(I)?(e.consume(I),u+=String.fromCharCode(I),A):n(I)}function k(I){return I===62?(e.consume(I),i.interrupt?t:X):n(I)}function N(I){return Ke(I)?(e.consume(I),N):H(I)}function w(I){return I===47?(e.consume(I),H):I===58||I===95||pn(I)?(e.consume(I),D):Ke(I)?(e.consume(I),w):H(I)}function D(I){return I===45||I===46||I===58||I===95||un(I)?(e.consume(I),D):F(I)}function F(I){return I===61?(e.consume(I),O):Ke(I)?(e.consume(I),F):w(I)}function O(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),d=I,M):Ke(I)?(e.consume(I),O):U(I)}function M(I){return I===d?(e.consume(I),d=null,$):I===null||Re(I)?n(I):(e.consume(I),M)}function U(I){return I===null||I===34||I===39||I===47||I===60||I===61||I===62||I===96||Et(I)?F(I):(e.consume(I),U)}function $(I){return I===47||I===62||Ke(I)?w(I):n(I)}function H(I){return I===62?(e.consume(I),ee):n(I)}function ee(I){return I===null||Re(I)?X(I):Ke(I)?(e.consume(I),ee):n(I)}function X(I){return I===45&&s===2?(e.consume(I),B):I===60&&s===1?(e.consume(I),K):I===62&&s===4?(e.consume(I),z):I===63&&s===3?(e.consume(I),L):I===93&&s===5?(e.consume(I),Te):Re(I)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(AP,Z,le)(I)):I===null||Re(I)?(e.exit("htmlFlowData"),le(I)):(e.consume(I),X)}function le(I){return e.check(kP,fe,Z)(I)}function fe(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),ie}function ie(I){return I===null||Re(I)?le(I):(e.enter("htmlFlowData"),X(I))}function B(I){return I===45?(e.consume(I),L):X(I)}function K(I){return I===47?(e.consume(I),u="",oe):X(I)}function oe(I){if(I===62){const me=u.toLowerCase();return XT.includes(me)?(e.consume(I),z):X(I)}return pn(I)&&u.length<8?(e.consume(I),u+=String.fromCharCode(I),oe):X(I)}function Te(I){return I===93?(e.consume(I),L):X(I)}function L(I){return I===62?(e.consume(I),z):I===45&&s===2?(e.consume(I),L):X(I)}function z(I){return I===null||Re(I)?(e.exit("htmlFlowData"),Z(I)):(e.consume(I),z)}function Z(I){return e.exit("htmlFlow"),t(I)}}function RP(e,t,n){const i=this;return s;function s(u){return Re(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):n(u)}function l(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}function OP(e,t,n){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(hu,t,n)}}const LP={name:"htmlText",tokenize:DP};function DP(e,t,n){const i=this;let s,l,u;return c;function c(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),d}function d(L){return L===33?(e.consume(L),h):L===47?(e.consume(L),F):L===63?(e.consume(L),w):pn(L)?(e.consume(L),U):n(L)}function h(L){return L===45?(e.consume(L),m):L===91?(e.consume(L),l=0,v):pn(L)?(e.consume(L),N):n(L)}function m(L){return L===45?(e.consume(L),E):n(L)}function p(L){return L===null?n(L):L===45?(e.consume(L),y):Re(L)?(u=p,K(L)):(e.consume(L),p)}function y(L){return L===45?(e.consume(L),E):p(L)}function E(L){return L===62?B(L):L===45?y(L):p(L)}function v(L){const z="CDATA[";return L===z.charCodeAt(l++)?(e.consume(L),l===z.length?S:v):n(L)}function S(L){return L===null?n(L):L===93?(e.consume(L),A):Re(L)?(u=S,K(L)):(e.consume(L),S)}function A(L){return L===93?(e.consume(L),k):S(L)}function k(L){return L===62?B(L):L===93?(e.consume(L),k):S(L)}function N(L){return L===null||L===62?B(L):Re(L)?(u=N,K(L)):(e.consume(L),N)}function w(L){return L===null?n(L):L===63?(e.consume(L),D):Re(L)?(u=w,K(L)):(e.consume(L),w)}function D(L){return L===62?B(L):w(L)}function F(L){return pn(L)?(e.consume(L),O):n(L)}function O(L){return L===45||un(L)?(e.consume(L),O):M(L)}function M(L){return Re(L)?(u=M,K(L)):Ke(L)?(e.consume(L),M):B(L)}function U(L){return L===45||un(L)?(e.consume(L),U):L===47||L===62||Et(L)?$(L):n(L)}function $(L){return L===47?(e.consume(L),B):L===58||L===95||pn(L)?(e.consume(L),H):Re(L)?(u=$,K(L)):Ke(L)?(e.consume(L),$):B(L)}function H(L){return L===45||L===46||L===58||L===95||un(L)?(e.consume(L),H):ee(L)}function ee(L){return L===61?(e.consume(L),X):Re(L)?(u=ee,K(L)):Ke(L)?(e.consume(L),ee):$(L)}function X(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),s=L,le):Re(L)?(u=X,K(L)):Ke(L)?(e.consume(L),X):(e.consume(L),fe)}function le(L){return L===s?(e.consume(L),s=void 0,ie):L===null?n(L):Re(L)?(u=le,K(L)):(e.consume(L),le)}function fe(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Et(L)?$(L):(e.consume(L),fe)}function ie(L){return L===47||L===62||Et(L)?$(L):n(L)}function B(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function K(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),oe}function oe(L){return Ke(L)?et(e,Te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):Te(L)}function Te(L){return e.enter("htmlTextData"),u(L)}}const Tg={name:"labelEnd",resolveAll:BP,resolveTo:jP,tokenize:HP},IP={tokenize:UP},MP={tokenize:zP},PP={tokenize:FP};function BP(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",t+=s}}return e.length!==n.length&&Vn(e,0,e.length,n),e}function jP(e,t){let n=e.length,i=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")){i=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+i+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+i+3)),c=nr(c,[["enter",m,t]]),c=nr(c,pd(t.parser.constructs.insideSpan.null,e.slice(l+i+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 HP(e,t,n){const i=this;let s=i.events.length,l,u;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){l=i.events[s][1];break}return c;function c(y){return l?l._inactive?p(y):(u=i.parser.defined.includes(fr(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),d):n(y)}function d(y){return y===40?e.attempt(IP,m,u?m:p)(y):y===91?e.attempt(MP,m,u?h:p)(y):u?m(y):p(y)}function h(y){return e.attempt(PP,m,p)(y)}function m(y){return t(y)}function p(y){return l._balanced=!0,n(y)}}function UP(e,t,n){return i;function i(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),s}function s(p){return Et(p)?qo(e,l)(p):l(p)}function l(p){return p===41?m(p):U_(e,u,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function u(p){return Et(p)?qo(e,d)(p):m(p)}function c(p){return n(p)}function d(p){return p===34||p===39||p===40?F_(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):m(p)}function h(p){return Et(p)?qo(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 zP(e,t,n){const i=this;return s;function s(c){return z_.call(i,e,l,u,"reference","referenceMarker","referenceString")(c)}function l(c){return i.parser.defined.includes(fr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function u(c){return n(c)}}function FP(e,t,n){return i;function i(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 qP={name:"labelStartImage",resolveAll:Tg.resolveAll,tokenize:VP};function VP(e,t,n){const i=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 i.parser.constructs?n(c):t(c)}}const YP={name:"labelStartLink",resolveAll:Tg.resolveAll,tokenize:$P};function $P(e,t,n){const i=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 i.parser.constructs?n(u):t(u)}}const mp={name:"lineEnding",tokenize:GP};function GP(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),et(e,t,"linePrefix")}}const yf={name:"thematicBreak",tokenize:KP};function KP(e,t,n){let i=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)):i>=3&&(h===null||Re(h))?(e.exit("thematicBreak"),t(h)):n(h)}function d(h){return h===s?(e.consume(h),i++,d):(e.exit("thematicBreakSequence"),Ke(h)?et(e,c,"whitespace")(h):c(h))}}const Rn={continuation:{tokenize:ZP},exit:e7,name:"list",tokenize:WP},XP={partial:!0,tokenize:t7},QP={partial:!0,tokenize:JP};function WP(e,t,n){const i=this,s=i.events[i.events.length-1];let l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,u=0;return c;function c(E){const v=i.containerState.type||(E===42||E===43||E===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!i.containerState.marker||E===i.containerState.marker:c0(E)){if(i.containerState.type||(i.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),E===42||E===45?e.check(yf,n,h)(E):h(E);if(!i.interrupt||E===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(E)}return n(E)}function d(E){return c0(E)&&++u<10?(e.consume(E),d):(!i.interrupt||u<2)&&(i.containerState.marker?E===i.containerState.marker:E===41||E===46)?(e.exit("listItemValue"),h(E)):n(E)}function h(E){return e.enter("listItemMarker"),e.consume(E),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||E,e.check(hu,i.interrupt?n:m,e.attempt(XP,y,p))}function m(E){return i.containerState.initialBlankLine=!0,l++,y(E)}function p(E){return Ke(E)?(e.enter("listItemPrefixWhitespace"),e.consume(E),e.exit("listItemPrefixWhitespace"),y):n(E)}function y(E){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(E)}}function ZP(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(hu,s,l);function s(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,et(e,t,"listItemIndent",i.containerState.size+1)(c)}function l(c){return i.containerState.furtherBlankLines||!Ke(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(QP,t,u)(c))}function u(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,et(e,e.attempt(Rn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function JP(e,t,n){const i=this;return et(e,s,"listItemIndent",i.containerState.size+1);function s(l){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(l):n(l)}}function e7(e){e.exit(this.containerState.type)}function t7(e,t,n){const i=this;return et(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){const u=i.events[i.events.length-1];return!Ke(l)&&u&&u[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const QT={name:"setextUnderline",resolveTo:n7,tokenize:r7};function n7(e,t){let n=e.length,i,s,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=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[i][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[i][1],t]),e[i][1].end={...e[l][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function r7(e,t,n){const i=this;let s;return l;function l(h){let m=i.events.length,p;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){p=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.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"),Ke(h)?et(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Re(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const i7={tokenize:d7,partial:!0};function a7(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:u7,continuation:{tokenize:c7},exit:f7}},text:{91:{name:"gfmFootnoteCall",tokenize:o7},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:s7,resolveTo:l7}}}}function s7(e,t,n){const i=this;let s=i.events.length;const l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u;for(;s--;){const d=i.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=fr(i.sliceSerialize({start:u.end,end:i.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 l7(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 i={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",i,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",i,t]];return e.splice(n,e.length-n+1,...c),e}function o7(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.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||Et(p))return n(p);if(p===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return s.includes(fr(i.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return Et(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 u7(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.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||Et(v))return n(v);if(v===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return l=fr(i.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return Et(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 y(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),s.includes(l)||s.push(l),et(e,E,"gfmFootnoteDefinitionWhitespace")):n(v)}function E(v){return t(v)}}function c7(e,t,n){return e.check(hu,t,e.attempt(i7,t,n))}function f7(e){e.exit("gfmFootnoteDefinition")}function d7(e,t,n){const i=this;return et(e,s,"gfmFootnoteDefinitionIndent",5);function s(l){const u=i.events[i.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(l):n(l)}}function h7(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:l,resolveAll:s};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},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)},y=[["enter",m,c],["enter",u[h][1],c],["exit",u[h][1],c],["enter",p,c]],E=c.parser.constructs.insideSpan.null;E&&Vn(y,y.length,0,pd(E,u.slice(h+1,d),c)),Vn(y,y.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,y),d=h+y.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 y;function y(v){return h===126&&m[m.length-1][1].type!=="characterEscape"?d(v):(u.enter("strikethroughSequenceTemporary"),E(v))}function E(v){const S=ml(h);if(v===126)return p>1?d(v):(u.consume(v),p++,E);if(p<2&&!n)return d(v);const A=u.exit("strikethroughSequenceTemporary"),k=ml(v);return A._open=!k||k===2&&!!S,A._close=!S||S===2&&!!k,c(v)}}}class m7{constructor(){this.map=[]}add(t,n,i){p7(this,t,n,i)}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 i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let s=i.pop();for(;s;){for(const l of s)t.push(l);s=i.pop()}this.map.length=0}}function p7(e,t,n,i){let s=0;if(!(n===0&&i.length===0)){for(;s<e.map.length;){if(e.map[s][0]===t){e.map[s][1]+=n,e.map[s][2].push(...i);return}s+=1}e.map.push([t,n,i])}}function g7(e,t){let n=!1;const i=[];for(;t<e.length;){const s=e[t];if(n){if(s[0]==="enter")s[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=i.length-1;i[l]=i[l]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function b7(){return{flow:{null:{name:"table",tokenize:y7,resolveAll:E7}}}}function y7(e,t,n){const i=this;let s=0,l=0,u;return c;function c(H){let ee=i.events.length-1;for(;ee>-1;){const fe=i.events[ee][1].type;if(fe==="lineEnding"||fe==="linePrefix")ee--;else break}const X=ee>-1?i.events[ee][1].type:null,le=X==="tableHead"||X==="tableRow"?O:d;return le===O&&i.parser.lazy[i.now().line]?n(H):le(H)}function d(H){return e.enter("tableHead"),e.enter("tableRow"),h(H)}function h(H){return H===124||(u=!0,l+=1),m(H)}function m(H){return H===null?n(H):Re(H)?l>1?(l=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),E):n(H):Ke(H)?et(e,m,"whitespace")(H):(l+=1,u&&(u=!1,s+=1),H===124?(e.enter("tableCellDivider"),e.consume(H),e.exit("tableCellDivider"),u=!0,m):(e.enter("data"),p(H)))}function p(H){return H===null||H===124||Et(H)?(e.exit("data"),m(H)):(e.consume(H),H===92?y:p)}function y(H){return H===92||H===124?(e.consume(H),p):p(H)}function E(H){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(H):(e.enter("tableDelimiterRow"),u=!1,Ke(H)?et(e,v,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):v(H))}function v(H){return H===45||H===58?A(H):H===124?(u=!0,e.enter("tableCellDivider"),e.consume(H),e.exit("tableCellDivider"),S):F(H)}function S(H){return Ke(H)?et(e,A,"whitespace")(H):A(H)}function A(H){return H===58?(l+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(H),e.exit("tableDelimiterMarker"),k):H===45?(l+=1,k(H)):H===null||Re(H)?D(H):F(H)}function k(H){return H===45?(e.enter("tableDelimiterFiller"),N(H)):F(H)}function N(H){return H===45?(e.consume(H),N):H===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(H),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(H))}function w(H){return Ke(H)?et(e,D,"whitespace")(H):D(H)}function D(H){return H===124?v(H):H===null||Re(H)?!u||s!==l?F(H):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(H)):F(H)}function F(H){return n(H)}function O(H){return e.enter("tableRow"),M(H)}function M(H){return H===124?(e.enter("tableCellDivider"),e.consume(H),e.exit("tableCellDivider"),M):H===null||Re(H)?(e.exit("tableRow"),t(H)):Ke(H)?et(e,M,"whitespace")(H):(e.enter("data"),U(H))}function U(H){return H===null||H===124||Et(H)?(e.exit("data"),M(H)):(e.consume(H),H===92?$:U)}function $(H){return H===92||H===124?(e.consume(H),U):U(H)}}function E7(e,t){let n=-1,i=!0,s=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,h,m,p;const y=new m7;for(;++n<e.length;){const E=e[n],v=E[1];E[0]==="enter"?v.type==="tableHead"?(c=!1,d!==0&&(WT(y,t,d,h,m),m=void 0,d=0),h={type:"table",start:Object.assign({},v.start),end:Object.assign({},v.end)},y.add(n,0,[["enter",h,t]])):v.type==="tableRow"||v.type==="tableDelimiterRow"?(i=!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)},y.add(n,0,[["enter",m,t]])),s=v.type==="tableDelimiterRow"?2:m?3:1):s&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")?(i=!1,u[2]===0&&(l[1]!==0&&(u[0]=u[1],p=Qc(y,t,l,s,void 0,p),l=[0,0,0,0]),u[2]=n)):v.type==="tableCellDivider"&&(i?i=!1:(l[1]!==0&&(u[0]=u[1],p=Qc(y,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=Qc(y,t,l,s,n,p)):u[1]!==0&&(p=Qc(y,t,u,s,n,p)),s=0):s&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")&&(u[3]=n)}for(d!==0&&WT(y,t,d,h,m),y.consume(t.events),n=-1;++n<t.events.length;){const E=t.events[n];E[0]==="enter"&&E[1].type==="table"&&(E[1]._align=g7(t.events,n))}return e}function Qc(e,t,n,i,s,l){const u=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(l.end=Object.assign({},tl(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const d=tl(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=tl(t.events,n[2]),m=tl(t.events,n[3]),p={type:c,start:Object.assign({},h),end:Object.assign({},m)};if(e.add(n[2],0,[["enter",p,t]]),i!==2){const y=t.events[n[2]],E=t.events[n[3]];if(y[1].end=Object.assign({},E[1].end),y[1].type="chunkText",y[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({},tl(t.events,s)),e.add(s,0,[["exit",l,t]]),l=void 0),l}function WT(e,t,n,i,s){const l=[],u=tl(t.events,n);s&&(s.end=Object.assign({},u),l.push(["exit",s,t])),i.end=Object.assign({},u),l.push(["exit",i,t]),e.add(n+1,0,l)}function tl(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const x7={name:"tasklistCheck",tokenize:v7};function T7(){return{text:{91:x7}}}function v7(e,t,n){const i=this;return s;function s(d){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),l)}function l(d){return Et(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 Re(d)?t(d):Ke(d)?e.check({tokenize:S7},t,n)(d):n(d)}}function S7(e,t,n){return et(e,i,"whitespace");function i(s){return s===null?n(s):t(s)}}function C7(e){return k_([I9(),a7(),h7(e),b7(),T7()])}const _7={};function A7(e){const t=this,n=e||_7,i=t.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),l=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),u=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(C7(n)),l.push(w9()),u.push(N9(n))}var k7=Object.defineProperty,w7=Object.defineProperties,N7=Object.getOwnPropertyDescriptors,ZT=Object.getOwnPropertySymbols,R7=Object.prototype.hasOwnProperty,O7=Object.prototype.propertyIsEnumerable,JT=(e,t,n)=>t in e?k7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q_=(e,t)=>{for(var n in t||(t={}))R7.call(t,n)&&JT(e,n,t[n]);if(ZT)for(var n of ZT(t))O7.call(t,n)&&JT(e,n,t[n]);return e},V_=(e,t)=>w7(e,N7(t)),L7=e=>{let t=new Uint8Array(e.length+1),n=!1,i=!1,s=0;for(;s<e.length;){if(e[s]==="\\"&&s+1<e.length&&e[s+1]==="`"){let l=n||i?1:0;t[s+1]=l,t[s+2]=l,s+=2;continue}if(e.substring(s,s+3)==="```"){i=!i;let l=n||i?1:0,u=Math.min(s+3,e.length);for(let c=s+1;c<=u;c+=1)t[c]=l;s=u;continue}!i&&e[s]==="`"&&(n=!n),t[s+1]=n||i?1:0,s+=1}return t},e2=null,yn=(e,t)=>{let n=e2;return(n===null||n.text!==e)&&(n={text:e,lookup:L7(e)},e2=n),n.lookup[Math.min(t,e.length)]===1},D7=(e,t)=>{let n=e.substring(t,t+3)==="```",i=t>0&&e.substring(t-1,t+2)==="```",s=t>1&&e.substring(t-2,t+1)==="```";return n||i||s},I7=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]==="`"&&!D7(e,n)&&(t+=1)}return t},ra=(e,t)=>{let n=!1,i=!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)==="```"){i=!i,l+=2;continue}if(!i&&e[l]==="`")if(n){if(s<t&&t<l)return!0;n=!1,s=-1}else n=!0,s=l}return!1},M7=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,P7=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(M7,(t,n,i,s)=>yn(e,s)?t:`${n}\\>${i}`),B7=/(\*\*)([^*]*\*?)$/,j7=/(__)([^_]*?)$/,H7=/(\*\*\*)([^*]*?)$/,U7=/(\*)([^*]*?)$/,z7=/(_)([^_]*?)$/,F7=/(`)([^`]*?)$/,q7=/(~~)([^~]*?)$/,is=/^[\s_~*`]*$/,Y_=/^[\s]*[-*+][\s]+$/,V7=/[\p{L}\p{N}_]/u,Y7=/^```[^`\n]*```?$/,$7=/^\*{4,}$/,G7=/(__)([^_]+)_$/,K7=/(~~)([^~]+)~$/,t2=/~~/g,hi=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:V7.test(e)},X7=(e,t)=>{let n=1;for(let i=t-1;i>=0;i-=1)if(e[i]==="]")n+=1;else if(e[i]==="["&&(n-=1,n===0))return i;return-1},$_=(e,t)=>{let n=1;for(let i=t+1;i<e.length;i+=1)if(e[i]==="[")n+=1;else if(e[i]==="]"&&(n-=1,n===0))return i;return-1},Q7=e=>e==="inlineLatex"||e==="blockLatex",W7=(e,t)=>t==="["&&e==="none"?"blockLatex":t==="]"&&e==="blockLatex"?"none":t==="("&&e==="none"?"inlineLatex":t===")"&&e==="inlineLatex"?"none":null,Z7=(e,t)=>t?e==="blockDollar"?"none":"blockDollar":e==="blockDollar"?e:e==="inlineDollar"?"none":"inlineDollar",gd=(e,t)=>{let n="none";for(let i=0;i<e.length&&i<t;i+=1){if(e[i]==="\\"&&e[i+1]==="$"){i+=1;continue}if(e[i]==="\\"){let s=W7(n,e[i+1]);if(s!==null){n=s,i+=1;continue}}if(e[i]==="$"&&!Q7(n)){let s=e[i+1]==="$";n=Z7(n,s),s&&(i+=1)}}return n!=="none"},J7=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===")")return!0;if(e[n]===`
|
|
66
|
+
`)return!1}return!1},G_=(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]==="]"?J7(e,t):!1;if(e[n]===`
|
|
67
|
+
`)return!1}return!1},eB=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===">")return!1;if(e[n]==="<"){let i=n+1<e.length?e[n+1]:"";return i>="a"&&i<="z"||i>="A"&&i<="Z"||i==="/"}if(e[n]===`
|
|
68
|
+
`)return!1}return!1},vg=(e,t,n)=>{let i=0;for(let d=t-1;d>=0;d-=1)if(e[d]===`
|
|
69
|
+
`){i=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(i,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},K_=e=>e.includes("$")||e.includes("\\(")||e.includes("\\["),tB=(e,t,n,i)=>n==="\\"||K_(e)&&gd(e,t)?!0:n!=="*"&&i==="*"?(t<e.length-2?e[t+2]:"")!=="*":n==="*"||(!n||n===" "||n===" "||n===`
|
|
71
|
+
`)&&(!i||i===" "||i===" "||i===`
|
|
72
|
+
`),jf=e=>e===" "||e===" "||e===`
|
|
73
|
+
`,nB=(e,t)=>!!(e&&t&&hi(e)&&hi(t)),rB=(e,t,n,i)=>{let s=nB(e,t),l=!!t&&!jf(t),u=!!e&&!jf(e);return s&&n%2===0&&!i?{count:!1}:u&&n%2===1||l?{count:!0,inWordAsteriskChain:s}:{count:!1}},X_=e=>{let t=0,n=!1,i=!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]!=="*"){hi(e[l])||(i=!1);continue}let u=l>0?e[l-1]:"",c=l<s-1?e[l+1]:"";if(tB(e,l,u,c))continue;let d=rB(u,c,t,i);d.count&&(t+=1,i=d.inWordAsteriskChain)}return t},iB=(e,t,n,i)=>!!(n==="\\"||K_(e)&&gd(e,t)||G_(e,t)||eB(e,t)||n==="_"||i==="_"||n&&i&&hi(n)&&hi(i)),aB=e=>{let t=0,n=!1,i=e.length;for(let s=0;s<i;s+=1){if(e[s]==="`"&&s+2<i&&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<i-1?e[s+1]:"";iB(e,s,l,u)||(t+=1)}return t},sB=e=>{let t=0,n=0,i=!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,i=!i,s+=2;continue}i||(e[s]==="*"?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0))}return n>=3&&(t+=Math.floor(n/3)),t},Sg=e=>{let t=0,n=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="`"&&i+2<e.length&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}n||e[i]==="*"&&i+1<e.length&&e[i+1]==="*"&&(t+=1,i+=1)}return t},n2=e=>{let t=0,n=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="`"&&i+2<e.length&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}n||e[i]==="_"&&i+1<e.length&&e[i+1]==="_"&&(t+=1,i+=1)}return t},lB=(e,t,n)=>{if(!t||is.test(t))return!0;let i=e.substring(0,n).lastIndexOf(`
|
|
74
|
+
`),s=i===-1?0:i+1,l=e.substring(s,n);return Y_.test(l)&&t.includes(`
|
|
75
|
+
`)?!0:vg(e,n,"*")},oB=e=>{let t=e.match(B7);if(!t)return e;let n=t[2],i=e.lastIndexOf(t[1]);return yn(e,i)||ra(e,i)||lB(e,n,i)?e:Sg(e)%2===1?n.endsWith("*")?`${e}*`:`${e}**`:e},uB=(e,t,n)=>{if(!t||is.test(t))return!0;let i=e.substring(0,n).lastIndexOf(`
|
|
76
|
+
`),s=i===-1?0:i+1,l=e.substring(s,n);return Y_.test(l)&&t.includes(`
|
|
77
|
+
`)?!0:vg(e,n,"_")},cB=e=>{let t=e.match(j7);if(!t){let s=e.match(G7);if(s){let l=e.lastIndexOf(s[1]);if(!(yn(e,l)||ra(e,l))&&n2(e)%2===1)return`${e}_`}return e}let n=t[2],i=e.lastIndexOf(t[1]);return yn(e,i)||ra(e,i)||uB(e,n,i)?e:n2(e)%2===1?`${e}__`:e},fB=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]!=="\\"&&!gd(e,n)){let i=n>0?e[n-1]:"",s=n<e.length-1?e[n+1]:"",l=!i||jf(i),u=!s||jf(s);if(l&&u||i&&s&&hi(i)&&hi(s)||u)continue;return n}}return-1},dB=e=>{if(!e.match(U7))return e;let t=fB(e);if(t===-1||yn(e,t)||ra(e,t))return e;let n=e.substring(t+1);return!n||is.test(n)?e:X_(e)%2===1?`${e}*`:e},Q_=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]!=="\\"&&!gd(e,n)&&!G_(e,n)){let i=n>0?e[n-1]:"",s=n<e.length-1?e[n+1]:"";if(i&&s&&hi(i)&&hi(s))continue;return n}}return-1},hB=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
78
|
+
`;)t-=1;if(t<e.length){let n=e.slice(0,t),i=e.slice(t);return`${n}_${i}`}return`${e}_`},mB=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(Sg(t)%2!==1)return null;let n=t.indexOf("**"),i=Q_(t);return n!==-1&&i!==-1&&n<i?`${t}_**`:null},pB=e=>{if(!e.match(z7))return e;let t=Q_(e);if(t===-1)return e;let n=e.substring(t+1);if(!n||is.test(n)||yn(e,t)||ra(e,t))return e;if(aB(e)%2===1){let i=mB(e);return i!==null?i:hB(e)}return e},gB=e=>{let t=Sg(e),n=X_(e);return t%2===0&&n%2===0},bB=(e,t,n)=>!t||is.test(t)||yn(e,n)||ra(e,n)?!0:vg(e,n,"*"),yB=e=>{if($7.test(e))return e;let t=e.match(H7);if(!t)return e;let n=t[2],i=e.lastIndexOf(t[1]);return bB(e,n,i)?e:sB(e)%2===1?gB(e)?e:`${e}***`:e},EB=/<[a-zA-Z/][^>]*$/,xB=e=>{let t=e.match(EB);return!t||t.index===void 0||yn(e,t.index)?e:e.substring(0,t.index).trimEnd()},TB=e=>!e.match(Y7)||e.includes(`
|
|
79
|
+
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,vB=e=>(e.match(/```/g)||[]).length%2===1,SB=e=>{let t=TB(e);if(t!==null)return t;let n=e.match(F7);if(n&&!vB(e)){let i=n[2];if(!i||is.test(i))return e;if(I7(e)%2===1)return`${e}\``}return e},W_=(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)==="```",CB=e=>{let t=0,n=!1;for(let i=0;i<e.length-1;i+=1)e[i]==="`"&&!W_(e,i)&&(n=!n),!n&&e[i]==="$"&&e[i+1]==="$"&&(t+=1,i+=1);return t},_B=e=>{let t=0,n=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="\\"){i+=1;continue}if(e[i]==="`"&&!W_(e,i)){n=!n;continue}!n&&e[i]==="$"&&(i+1<e.length&&e[i+1]==="$"?i+=1:t+=1)}return t},AB=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}$$`},kB=e=>CB(e)%2===0?e:AB(e),wB=e=>_B(e)%2===1?`${e}$`:e,NB=(e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let i=X7(e,t);if(i===-1||yn(e,i))return null;let s=i>0&&e[i-1]==="!",l=s?i-1:i,u=e.substring(0,l);if(s)return u;let c=e.substring(i+1,t);return n==="text-only"?`${u}${c}`:`${u}[${c}](streamdown:incomplete-link)`},r2=(e,t)=>{for(let n=0;n<t;n++)if(e[n]==="["&&!yn(e,n)){if(n>0&&e[n-1]==="!")continue;let i=$_(e,n);if(i===-1)return n;if(i+1<e.length&&e[i+1]==="("){let s=e.indexOf(")",i+2);s!==-1&&(n=s)}}return t},RB=(e,t,n)=>{let i=t>0&&e[t-1]==="!",s=i?t-1:t;if(!e.substring(t+1).includes("]")){let l=e.substring(0,s);if(i)return l;if(n==="text-only"){let u=r2(e,t);return e.substring(0,u)+e.substring(u+1)}return`${e}](streamdown:incomplete-link)`}if($_(e,t)===-1){let l=e.substring(0,s);if(i)return l;if(n==="text-only"){let u=r2(e,t);return e.substring(0,u)+e.substring(u+1)}return`${e}](streamdown:incomplete-link)`}return null},Z_=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(n!==-1&&!yn(e,n)){let i=NB(e,n,t);if(i!==null)return i}for(let i=e.length-1;i>=0;i-=1)if(e[i]==="["&&!yn(e,i)){let s=RB(e,i,t);if(s!==null)return s}return e},OB=/^-{1,2}$/,LB=/^[\s]*-{1,2}[\s]+$/,DB=/^={1,2}$/,IB=/^[\s]*={1,2}[\s]+$/,MB=e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
|
|
83
|
+
`);if(t===-1)return e;let n=e.substring(t+1),i=e.substring(0,t),s=n.trim();if(OB.test(s)&&!n.match(LB)){let l=i.split(`
|
|
84
|
+
`).at(-1);if(l&&l.trim().length>0)return`${e}`}if(DB.test(s)&&!n.match(IB)){let l=i.split(`
|
|
85
|
+
`).at(-1);if(l&&l.trim().length>0)return`${e}`}return e},PB=/([\p{L}\p{N}_])~(?!~)(?=[\p{L}\p{N}_])/gu,BB=e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace(PB,(t,n,i)=>{let s=i+n.length;return yn(e,s)?t:`${n}\\~`}),jB=e=>{var t,n;let i=e.match(q7);if(i){let s=i[2];if(!s||is.test(s))return e;let l=e.lastIndexOf(i[1]);if(yn(e,l)||ra(e,l))return e;if(((t=e.match(t2))==null?void 0:t.length)%2===1)return`${e}~~`}else{let s=e.match(K7);if(s){let l=e.lastIndexOf(s[0].slice(0,2));if(yn(e,l)||ra(e,l))return e;if(((n=e.match(t2))==null?void 0:n.length)%2===1)return`${e}~`}}return e},pp=e=>e!==!1,HB=e=>e===!0,mn={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},UB=[{handler:{name:"singleTilde",handle:BB,priority:mn.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:P7,priority:mn.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:xB,priority:mn.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:MB,priority:mn.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:Z_,priority:mn.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:yB,priority:mn.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:oB,priority:mn.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:cB,priority:mn.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:dB,priority:mn.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:pB,priority:mn.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:SB,priority:mn.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:jB,priority:mn.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:kB,priority:mn.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:wB,priority:mn.INLINE_KATEX},optionKey:"inlineKatex"}],zB=e=>{var t;let n=(t=e?.linkMode)!=null?t:"protocol";return UB.filter(({handler:i,optionKey:s})=>i.name==="links"?pp(e?.links)||pp(e?.images):i.name==="inlineKatex"?HB(e?.inlineKatex):pp(e?.[s])).map(({handler:i,earlyReturn:s})=>i.name==="links"?{handler:V_(q_({},i),{handle:l=>Z_(l,n)}),earlyReturn:n==="protocol"?s:void 0}:{handler:i,earlyReturn:s})},FB=(e,t)=>{var n;if(!e||typeof e!="string")return e;let i=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,s=zB(t),l=((n=t?.handlers)!=null?n:[]).map(c=>{var d;return{handler:V_(q_({},c),{priority:(d=c.priority)!=null?d:mn.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(i=c.handle(i),d!=null&&d(i))return i;return i},qB=FB;function J_(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=J_(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function e3(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=J_(e))&&(i&&(i+=" "),i+=t);return i}const VB=(e,t)=>{const n=new Array(e.length+t.length);for(let i=0;i<e.length;i++)n[i]=e[i];for(let i=0;i<t.length;i++)n[e.length+i]=t[i];return n},YB=(e,t)=>({classGroupId:e,validator:t}),t3=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Hf="-",i2=[],$B="arbitrary..",GB=e=>{const t=XB(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return KB(u);const c=u.split(Hf),d=c[0]===""&&c.length>1?1:0;return n3(c,d,t)},getConflictingClassGroupIds:(u,c)=>{if(c){const d=i[u],h=n[u];return d?h?VB(h,d):d:h||i2}return n[u]||i2}}},n3=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],l=n.nextPart.get(s);if(l){const h=n3(e,t+1,l);if(h)return h}const u=n.validators;if(u===null)return;const c=t===0?e.join(Hf):e.slice(t).join(Hf),d=u.length;for(let h=0;h<d;h++){const m=u[h];if(m.validator(c))return m.classGroupId}},KB=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),i=t.slice(0,n);return i?$B+i:void 0})(),XB=e=>{const{theme:t,classGroups:n}=e;return QB(n,t)},QB=(e,t)=>{const n=t3();for(const i in e){const s=e[i];Cg(s,n,i,t)}return n},Cg=(e,t,n,i)=>{const s=e.length;for(let l=0;l<s;l++){const u=e[l];WB(u,t,n,i)}},WB=(e,t,n,i)=>{if(typeof e=="string"){ZB(e,t,n);return}if(typeof e=="function"){JB(e,t,n,i);return}ej(e,t,n,i)},ZB=(e,t,n)=>{const i=e===""?t:r3(t,e);i.classGroupId=n},JB=(e,t,n,i)=>{if(tj(e)){Cg(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(YB(n,e))},ej=(e,t,n,i)=>{const s=Object.entries(e),l=s.length;for(let u=0;u<l;u++){const[c,d]=s[u];Cg(d,r3(t,c),n,i)}},r3=(e,t)=>{let n=e;const i=t.split(Hf),s=i.length;for(let l=0;l<s;l++){const u=i[l];let c=n.nextPart.get(u);c||(c=t3(),n.nextPart.set(u,c)),n=c}return n},tj=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,nj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null);const s=(l,u)=>{n[l]=u,t++,t>e&&(t=0,i=n,n=Object.create(null))};return{get(l){let u=n[l];if(u!==void 0)return u;if((u=i[l])!==void 0)return s(l,u),u},set(l,u){l in n?n[l]=u:s(l,u)}}},h0="!",a2=":",rj=[],s2=(e,t,n,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:s}),ij=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=s=>{const l=[];let u=0,c=0,d=0,h;const m=s.length;for(let S=0;S<m;S++){const A=s[S];if(u===0&&c===0){if(A===a2){l.push(s.slice(d,S)),d=S+1;continue}if(A==="/"){h=S;continue}}A==="["?u++:A==="]"?u--:A==="("?c++:A===")"&&c--}const p=l.length===0?s:s.slice(d);let y=p,E=!1;p.endsWith(h0)?(y=p.slice(0,-1),E=!0):p.startsWith(h0)&&(y=p.slice(1),E=!0);const v=h&&h>d?h-d:void 0;return s2(l,E,y,v)};if(t){const s=t+a2,l=i;i=u=>u.startsWith(s)?l(u.slice(s.length)):s2(rj,!1,u,void 0,!0)}if(n){const s=i;i=l=>n({className:l,parseClassName:s})}return i},aj=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,i)=>{t.set(n,1e6+i)}),n=>{const i=[];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(),i.push(...s),s=[]),i.push(u)):s.push(u)}return s.length>0&&(s.sort(),i.push(...s)),i}},sj=e=>({cache:nj(e.cacheSize),parseClassName:ij(e),sortModifiers:aj(e),postfixLookupClassGroupIds:lj(e),...GB(e)}),lj=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let i=0;i<n.length;i++)t[n[i]]=!0;return t},oj=/\s+/,uj=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:l,postfixLookupClassGroupIds:u}=t,c=[],d=e.trim().split(oj);let h="";for(let m=d.length-1;m>=0;m-=1){const p=d[m],{isExternal:y,modifiers:E,hasImportantModifier:v,baseClassName:S,maybePostfixModifierPosition:A}=n(p);if(y){h=p+(h.length>0?" "+h:h);continue}let k=!!A,N;if(k){const M=S.substring(0,A);N=i(M);const U=N&&u[N]?i(S):void 0;U&&U!==N&&(N=U,k=!1)}else N=i(S);if(!N){if(!k){h=p+(h.length>0?" "+h:h);continue}if(N=i(S),!N){h=p+(h.length>0?" "+h:h);continue}k=!1}const w=E.length===0?"":E.length===1?E[0]:l(E).join(":"),D=v?w+h0:w,F=D+N;if(c.indexOf(F)>-1)continue;c.push(F);const O=s(N,k);for(let M=0;M<O.length;++M){const U=O[M];c.push(D+U)}h=p+(h.length>0?" "+h:h)}return h},cj=(...e)=>{let t=0,n,i,s="";for(;t<e.length;)(n=e[t++])&&(i=i3(n))&&(s&&(s+=" "),s+=i);return s},i3=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=i3(e[i]))&&(n&&(n+=" "),n+=t);return n},fj=(e,...t)=>{let n,i,s,l;const u=d=>{const h=t.reduce((m,p)=>p(m),e());return n=sj(h),i=n.cache.get,s=n.cache.set,l=c,c(d)},c=d=>{const h=i(d);if(h)return h;const m=uj(d,n);return s(d,m),m};return l=u,(...d)=>l(cj(...d))},dj=[],qt=e=>{const t=n=>n[e]||dj;return t.isThemeGetter=!0,t},a3=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,s3=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hj=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,mj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pj=/\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$/,gj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fi=e=>hj.test(e),ze=e=>!!e&&!Number.isNaN(Number(e)),Tr=e=>!!e&&Number.isInteger(Number(e)),gp=e=>e.endsWith("%")&&ze(e.slice(0,-1)),ti=e=>mj.test(e),l3=()=>!0,Ej=e=>pj.test(e)&&!gj.test(e),_g=()=>!1,xj=e=>bj.test(e),Tj=e=>yj.test(e),vj=e=>!Ce(e)&&!_e(e),Sj=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)),Cj=e=>ua(e,c3,_g),Ce=e=>a3.test(e),La=e=>ua(e,f3,Ej),l2=e=>ua(e,Lj,ze),_j=e=>ua(e,h3,l3),Aj=e=>ua(e,d3,_g),o2=e=>ua(e,o3,_g),kj=e=>ua(e,u3,Tj),Wc=e=>ua(e,m3,xj),_e=e=>s3.test(e),_o=e=>as(e,f3),wj=e=>as(e,d3),u2=e=>as(e,o3),Nj=e=>as(e,c3),Rj=e=>as(e,u3),Zc=e=>as(e,m3,!0),Oj=e=>as(e,h3,!0),ua=(e,t,n)=>{const i=a3.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},as=(e,t,n=!1)=>{const i=s3.exec(e);return i?i[1]?t(i[1]):n:!1},o3=e=>e==="position"||e==="percentage",u3=e=>e==="image"||e==="url",c3=e=>e==="length"||e==="size"||e==="bg-size",f3=e=>e==="length",Lj=e=>e==="number",d3=e=>e==="family-name",h3=e=>e==="number"||e==="weight",m3=e=>e==="shadow",Dj=()=>{const e=qt("color"),t=qt("font"),n=qt("text"),i=qt("font-weight"),s=qt("tracking"),l=qt("leading"),u=qt("breakpoint"),c=qt("container"),d=qt("spacing"),h=qt("radius"),m=qt("shadow"),p=qt("inset-shadow"),y=qt("text-shadow"),E=qt("drop-shadow"),v=qt("blur"),S=qt("perspective"),A=qt("aspect"),k=qt("ease"),N=qt("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...D(),_e,Ce],O=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],U=()=>[_e,Ce,d],$=()=>[Fi,"full","auto",...U()],H=()=>[Tr,"none","subgrid",_e,Ce],ee=()=>["auto",{span:["full",Tr,_e,Ce]},Tr,_e,Ce],X=()=>[Tr,"auto",_e,Ce],le=()=>["auto","min","max","fr",_e,Ce],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...U()],K=()=>[Fi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],oe=()=>[Fi,"screen","full","dvw","lvw","svw","min","max","fit",...U()],Te=()=>[Fi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],L=()=>[e,_e,Ce],z=()=>[...D(),u2,o2,{position:[_e,Ce]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",Nj,Cj,{size:[_e,Ce]}],me=()=>[gp,_o,La],xe=()=>["","none","full",h,_e,Ce],W=()=>["",ze,_o,La],ye=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[ze,gp,u2,o2],Pe=()=>["","none",v,_e,Ce],Le=()=>["none",ze,_e,Ce],De=()=>["none",ze,_e,Ce],Ye=()=>[ze,_e,Ce],rt=()=>[Fi,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ti],breakpoint:[ti],color:[l3],container:[ti],"drop-shadow":[ti],ease:["in","out","in-out"],font:[vj],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ti],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ti],shadow:[ti],spacing:["px",ze],text:[ti],"text-shadow":[ti],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Fi,Ce,_e,A]}],container:["container"],"container-type":[{"@container":["","normal","size",_e,Ce]}],"container-named":[Sj],columns:[{columns:[ze,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:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{"inset-s":$(),start:$()}],end:[{"inset-e":$(),end:$()}],"inset-bs":[{"inset-bs":$()}],"inset-be":[{"inset-be":$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Tr,"auto",_e,Ce]}],basis:[{basis:[Fi,"full","auto",c,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ze,Fi,"auto","initial","none",Ce]}],grow:[{grow:["",ze,_e,Ce]}],shrink:[{shrink:["",ze,_e,Ce]}],order:[{order:[Tr,"first","last","none",_e,Ce]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pbs:[{pbs:U()}],pbe:[{pbe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],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":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...oe()]}],"min-inline-size":[{"min-inline":["auto",...oe()]}],"max-inline-size":[{"max-inline":["none",...oe()]}],"block-size":[{block:["auto",...Te()]}],"min-block-size":[{"min-block":["auto",...Te()]}],"max-block-size":[{"max-block":["none",...Te()]}],w:[{w:[c,"screen",...K()]}],"min-w":[{"min-w":[c,"screen","none",...K()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[u]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,_o,La]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Oj,_j]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gp,Ce]}],"font-family":[{font:[wj,Aj,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":[ze,"none",_e,l2]}],leading:[{leading:[l,...U()]}],"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:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ye(),"wavy"]}],"text-decoration-thickness":[{decoration:[ze,"from-font","auto",_e,La]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[ze,"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:U()}],"tab-size":[{tab:[Tr,_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:Z()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Tr,_e,Ce],radial:["",_e,Ce],conic:[Tr,_e,Ce]},Rj,kj]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:me()}],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:xe()}],"rounded-s":[{"rounded-s":xe()}],"rounded-e":[{"rounded-e":xe()}],"rounded-t":[{"rounded-t":xe()}],"rounded-r":[{"rounded-r":xe()}],"rounded-b":[{"rounded-b":xe()}],"rounded-l":[{"rounded-l":xe()}],"rounded-ss":[{"rounded-ss":xe()}],"rounded-se":[{"rounded-se":xe()}],"rounded-ee":[{"rounded-ee":xe()}],"rounded-es":[{"rounded-es":xe()}],"rounded-tl":[{"rounded-tl":xe()}],"rounded-tr":[{"rounded-tr":xe()}],"rounded-br":[{"rounded-br":xe()}],"rounded-bl":[{"rounded-bl":xe()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-bs":[{"border-bs":W()}],"border-w-be":[{"border-be":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ye(),"hidden","none"]}],"divide-style":[{divide:[...ye(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-bs":[{"border-bs":L()}],"border-color-be":[{"border-be":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...ye(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ze,_e,Ce]}],"outline-w":[{outline:["",ze,_o,La]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",m,Zc,Wc]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",p,Zc,Wc]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[ze,La]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",y,Zc,Wc]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[ze,_e,Ce]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"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":[ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[_e,Ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"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":D()}],"mask-image-conic-pos":[{"mask-conic":[ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_e,Ce]}],filter:[{filter:["","none",_e,Ce]}],blur:[{blur:Pe()}],brightness:[{brightness:[ze,_e,Ce]}],contrast:[{contrast:[ze,_e,Ce]}],"drop-shadow":[{"drop-shadow":["","none",E,Zc,Wc]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",ze,_e,Ce]}],"hue-rotate":[{"hue-rotate":[ze,_e,Ce]}],invert:[{invert:["",ze,_e,Ce]}],saturate:[{saturate:[ze,_e,Ce]}],sepia:[{sepia:["",ze,_e,Ce]}],"backdrop-filter":[{"backdrop-filter":["","none",_e,Ce]}],"backdrop-blur":[{"backdrop-blur":Pe()}],"backdrop-brightness":[{"backdrop-brightness":[ze,_e,Ce]}],"backdrop-contrast":[{"backdrop-contrast":[ze,_e,Ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ze,_e,Ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ze,_e,Ce]}],"backdrop-invert":[{"backdrop-invert":["",ze,_e,Ce]}],"backdrop-opacity":[{"backdrop-opacity":[ze,_e,Ce]}],"backdrop-saturate":[{"backdrop-saturate":[ze,_e,Ce]}],"backdrop-sepia":[{"backdrop-sepia":["",ze,_e,Ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"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:[ze,"initial",_e,Ce]}],ease:[{ease:["linear","initial",k,_e,Ce]}],delay:[{delay:[ze,_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:De()}],"scale-x":[{"scale-x":De()}],"scale-y":[{"scale-y":De()}],"scale-z":[{"scale-z":De()}],"scale-3d":["scale-3d"],skew:[{skew:Ye()}],"skew-x":[{"skew-x":Ye()}],"skew-y":[{"skew-y":Ye()}],transform:[{transform:[_e,Ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:rt()}],"translate-x":[{"translate-x":rt()}],"translate-y":[{"translate-y":rt()}],"translate-z":[{"translate-z":rt()}],"translate-none":["translate-none"],zoom:[{zoom:[Tr,_e,Ce]}],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"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":L()}],"scrollbar-track-color":[{"scrollbar-track":L()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mbs":[{"scroll-mbs":U()}],"scroll-mbe":[{"scroll-mbe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pbs":[{"scroll-pbs":U()}],"scroll-pbe":[{"scroll-pbe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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",...L()]}],"stroke-w":[{stroke:[ze,_o,La,l2]}],stroke:[{stroke:["none",...L()]}],"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"]}},p3=fj(Dj),Ij=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mj=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Pj={};function c2(e,t){return(Pj.jsx?Mj:Ij).test(e)}const Bj=/[ \t\n\f\r]/g;function jj(e){return typeof e=="object"?e.type==="text"?f2(e.value):!1:f2(e)}function f2(e){return e.replace(Bj,"")===""}var Qs={},bp,d2;function Hj(){if(d2)return bp;d2=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
|
|
86
|
+
`,h="/",m="*",p="",y="comment",E="declaration";function v(A,k){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];k=k||{};var N=1,w=1;function D(fe){var ie=fe.match(t);ie&&(N+=ie.length);var B=fe.lastIndexOf(d);w=~B?fe.length-B:w+fe.length}function F(){var fe={line:N,column:w};return function(ie){return ie.position=new O(fe),$(),ie}}function O(fe){this.start=fe,this.end={line:N,column:w},this.source=k.source}O.prototype.content=A;function M(fe){var ie=new Error(k.source+":"+N+":"+w+": "+fe);if(ie.reason=fe,ie.filename=k.source,ie.line=N,ie.column=w,ie.source=A,!k.silent)throw ie}function U(fe){var ie=fe.exec(A);if(ie){var B=ie[0];return D(B),A=A.slice(B.length),ie}}function $(){U(n)}function H(fe){var ie;for(fe=fe||[];ie=ee();)ie!==!1&&fe.push(ie);return fe}function ee(){var fe=F();if(!(h!=A.charAt(0)||m!=A.charAt(1))){for(var ie=2;p!=A.charAt(ie)&&(m!=A.charAt(ie)||h!=A.charAt(ie+1));)++ie;if(ie+=2,p===A.charAt(ie-1))return M("End of comment missing");var B=A.slice(2,ie-2);return w+=2,D(B),A=A.slice(ie),w+=2,fe({type:y,comment:B})}}function X(){var fe=F(),ie=U(i);if(ie){if(ee(),!U(s))return M("property missing ':'");var B=U(l),K=fe({type:E,property:S(ie[0].replace(e,p)),value:B?S(B[0].replace(e,p)):p});return U(u),K}}function le(){var fe=[];H(fe);for(var ie;ie=X();)ie!==!1&&(fe.push(ie),H(fe));return fe}return $(),le()}function S(A){return A?A.replace(c,p):p}return bp=v,bp}var h2;function Uj(){if(h2)return Qs;h2=1;var e=Qs&&Qs.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.default=n;const t=e(Hj());function n(i,s){let l=null;if(!i||typeof i!="string")return l;const u=(0,t.default)(i),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 Qs}var Ao={},m2;function zj(){if(m2)return Ao;m2=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(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(i,c),h.replace(t,u))};return Ao.camelCase=d,Ao}var ko,p2;function Fj(){if(p2)return ko;p2=1;var e=ko&&ko.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(Uj()),n=zj();function i(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 i.default=i,ko=i,ko}var qj=Fj();const Vj=R0(qj);function Vo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?g2(e.position):"start"in e||"end"in e?g2(e):"line"in e||"column"in e?m0(e):""}function m0(e){return b2(e&&e.line)+":"+b2(e&&e.column)}function g2(e){return m0(e&&e.start)+"-"+m0(e&&e.end)}function b2(e){return e&&typeof e=="number"?e:1}class fn extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=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 i=="string"){const d=i.indexOf(":");d===-1?l.ruleId=i:(l.source=i.slice(0,d),l.ruleId=i.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=Vo(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}}fn.prototype.file="";fn.prototype.name="";fn.prototype.reason="";fn.prototype.message="";fn.prototype.stack="";fn.prototype.column=void 0;fn.prototype.line=void 0;fn.prototype.ancestors=void 0;fn.prototype.cause=void 0;fn.prototype.fatal=void 0;fn.prototype.place=void 0;fn.prototype.ruleId=void 0;fn.prototype.source=void 0;const Ag={}.hasOwnProperty,Yj=new Map,$j=/[A-Z]/g,Gj=new Set(["table","tbody","thead","tfoot","tr"]),Kj=new Set(["td","th"]),g3="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Xj(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=rH(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");i=nH(n,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,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"?la:uu,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=b3(s,e,void 0);return l&&typeof l!="string"?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}function b3(e,t,n){if(t.type==="element")return Qj(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Wj(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Jj(e,t,n);if(t.type==="mdxjsEsm")return Zj(e,t);if(t.type==="root")return eH(e,t,n);if(t.type==="text")return tH(e,t)}function Qj(e,t,n){const i=e.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=la,e.schema=s),e.ancestors.push(t);const l=E3(e,t.tagName,!1),u=iH(e,t);let c=wg(e,t);return Gj.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!jj(d):!0})),y3(e,u,l,t),kg(u,c),e.ancestors.pop(),e.schema=i,e.create(t,l,u,n)}function Wj(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}tu(e,t.position)}function Zj(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);tu(e,t.position)}function Jj(e,t,n){const i=e.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=la,e.schema=s),e.ancestors.push(t);const l=t.name===null?e.Fragment:E3(e,t.name,!0),u=aH(e,t),c=wg(e,t);return y3(e,u,l,t),kg(u,c),e.ancestors.pop(),e.schema=i,e.create(t,l,u,n)}function eH(e,t,n){const i={};return kg(i,wg(e,t)),e.create(t,e.Fragment,i,n)}function tH(e,t){return t.value}function y3(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function kg(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function nH(e,t,n){return i;function i(s,l,u,c){const h=Array.isArray(u.children)?n:t;return c?h(l,u,c):h(l,u)}}function rH(e,t){return n;function n(i,s,l,u){const c=Array.isArray(l.children),d=Dr(i);return t(s,l,u,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function iH(e,t){const n={};let i,s;for(s in t.properties)if(s!=="children"&&Ag.call(t.properties,s)){const l=sH(e,s,t.properties[s]);if(l){const[u,c]=l;e.tableCellAlignToStyle&&u==="align"&&typeof c=="string"&&Kj.has(t.tagName)?i=c:n[u]=c}}if(i){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function aH(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const l=i.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 tu(e,t.position);else{const s=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const c=i.value.data.estree.body[0];c.type,l=e.evaluater.evaluateExpression(c.expression)}else tu(e,t.position);else l=i.value===null?!0:i.value;n[s]=l}return n}function wg(e,t){const n=[];let i=-1;const s=e.passKeys?new Map:Yj;for(;++i<t.children.length;){const l=t.children[i];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=b3(e,l,u);c!==void 0&&n.push(c)}return n}function sH(e,t,n){const i=od(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?xC(n):TC(n)),i.property==="style"){let s=typeof n=="object"?n:lH(e,String(n));return e.stylePropertyNameCase==="css"&&(s=oH(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?v5[i.property]||i.property:i.attribute,n]}}function lH(e,t){try{return Vj(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,s=new fn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=g3+"#cannot-parse-style-attribute",s}}function E3(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let l=-1,u;for(;++l<s.length;){const c=c2(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}i=u}else i=c2(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return Ag.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);tu(e)}function tu(e,t){const n=new fn("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=g3+"#cannot-handle-mdx-estrees-without-createevaluater",n}function oH(e){const t={};let n;for(n in e)Ag.call(e,n)&&(t[uH(n)]=e[n]);return t}function uH(e){let t=e.replace($j,cH);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function cH(e){return"-"+e.toLowerCase()}const yp={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"]},fH={tokenize:dH};function dH(e){const t=e.attempt(this.parser.constructs.contentInitial,i,s);let n;return t;function i(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),et(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 Re(c)?(e.consume(c),e.exit("chunkText"),l):(e.consume(c),u)}}const hH={tokenize:mH},y2={tokenize:pH};function mH(e){const t=this,n=[];let i=0,s,l,u;return c;function c(w){if(i<n.length){const D=n[i];return t.containerState=D[1],e.attempt(D[0].continuation,d,h)(w)}return h(w)}function d(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&N();const D=t.events.length;let F=D,O;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){O=t.events[F][1].end;break}k(i);let M=D;for(;M<t.events.length;)t.events[M][1].end={...O},M++;return Vn(t.events,F+1,0,t.events.slice(D)),t.events.length=M,h(w)}return c(w)}function h(w){if(i===n.length){if(!s)return y(w);if(s.currentConstruct&&s.currentConstruct.concrete)return v(w);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(y2,m,p)(w)}function m(w){return s&&N(),k(i),y(w)}function p(w){return t.parser.lazy[t.now().line]=i!==n.length,u=t.now().offset,v(w)}function y(w){return t.containerState={},e.attempt(y2,E,v)(w)}function E(w){return i++,n.push([t.currentConstruct,t.containerState]),y(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){A(e.exit("chunkFlow"),!0),k(0),e.consume(w);return}return Re(w)?(e.consume(w),A(e.exit("chunkFlow")),i=0,t.interrupt=void 0,c):(e.consume(w),S)}function A(w,D){const F=t.sliceStream(w);if(D&&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 O=s.events.length;for(;O--;)if(s.events[O][1].start.offset<u&&(!s.events[O][1].end||s.events[O][1].end.offset>u))return;const M=t.events.length;let U=M,$,H;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if($){H=t.events[U][1].end;break}$=!0}for(k(i),O=M;O<t.events.length;)t.events[O][1].end={...H},O++;Vn(t.events,U+1,0,t.events.slice(M)),t.events.length=O}}function k(w){let D=n.length;for(;D-- >w;){const F=n[D];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 pH(e,t,n){return et(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const gH={tokenize:bH};function bH(e){const t=this,n=e.attempt(hu,i,e.attempt(this.parser.constructs.flowInitial,s,et(e,e.attempt(this.parser.constructs.flow,s,e.attempt(cP,s)),"linePrefix")));return n;function i(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 yH={resolveAll:T3()},EH=x3("string"),xH=x3("text");function x3(e){return{resolveAll:T3(e==="text"?TH:void 0),tokenize:t};function t(n){const i=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 y=-1;if(p)for(;++y<p.length;){const E=p[y];if(!E.previous||E.previous.call(i,i.previous))return!0}return!1}}}function T3(e){return t;function t(n,i){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,i):n}}function TH(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 i=e[n-1][1],s=t.sliceStream(i);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:i.start._bufferIndex+u,_index:i.start._index+l,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const vH={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:P_},SH={91:pP},CH={[-2]:hp,[-1]:hp,32:hp},_H={35:TP,42:yf,45:[QT,yf],60:_P,61:QT,95:yf,96:KT,126:KT},AH={38:j_,92:B_},kH={[-5]:mp,[-4]:mp,[-3]:mp,33:qP,38:j_,42:d0,60:[Y9,LP],91:YP,92:[EP,B_],93:Tg,95:d0,96:iP},wH={null:[d0,yH]},NH={null:[42,95]},RH={null:[]},OH=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:NH,contentInitial:SH,disable:RH,document:vH,flow:_H,flowInitial:CH,insideSpan:wH,string:AH,text:kH},Symbol.toStringTag,{value:"Module"}));function LH(e,t,n){let i={_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(O),consume:N,enter:w,exit:D,interrupt:M(O,{interrupt:!0})},h={code:null,containerState:{},defineSkip:S,events:[],now:v,parser:e,previous:null,sliceSerialize:y,sliceStream:E,write:p};let m=t.tokenize.call(h,d);return t.resolveAll&&l.push(t),h;function p(ee){return u=nr(u,ee),A(),u[u.length-1]!==null?[]:(U(t,0),h.events=pd(l,h.events,h),h.events)}function y(ee,X){return IH(E(ee),X)}function E(ee){return DH(u,ee)}function v(){const{_bufferIndex:ee,_index:X,line:le,column:fe,offset:ie}=i;return{_bufferIndex:ee,_index:X,line:le,column:fe,offset:ie}}function S(ee){s[ee.line]=ee.column,H()}function A(){let ee;for(;i._index<u.length;){const X=u[i._index];if(typeof X=="string")for(ee=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===ee&&i._bufferIndex<X.length;)k(X.charCodeAt(i._bufferIndex));else k(X)}}function k(ee){m=m(ee)}function N(ee){Re(ee)?(i.line++,i.column=1,i.offset+=ee===-3?2:1,H()):ee!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=ee}function w(ee,X){const le=X||{};return le.type=ee,le.start=v(),h.events.push(["enter",le,h]),c.push(le),le}function D(ee){const X=c.pop();return X.end=v(),h.events.push(["exit",X,h]),X}function F(ee,X){U(ee,X.from)}function O(ee,X){X.restore()}function M(ee,X){return le;function le(fe,ie,B){let K,oe,Te,L;return Array.isArray(fe)?Z(fe):"tokenize"in fe?Z([fe]):z(fe);function z(W){return ye;function ye(ge){const ve=ge!==null&&W[ge],Pe=ge!==null&&W.null,Le=[...Array.isArray(ve)?ve:ve?[ve]:[],...Array.isArray(Pe)?Pe:Pe?[Pe]:[]];return Z(Le)(ge)}}function Z(W){return K=W,oe=0,W.length===0?B:I(W[oe])}function I(W){return ye;function ye(ge){return L=$(),Te=W,W.partial||(h.currentConstruct=W),W.name&&h.parser.constructs.disable.null.includes(W.name)?xe():W.tokenize.call(X?Object.assign(Object.create(h),X):h,d,me,xe)(ge)}}function me(W){return ee(Te,L),ie}function xe(W){return L.restore(),++oe<K.length?I(K[oe]):B}}}function U(ee,X){ee.resolveAll&&!l.includes(ee)&&l.push(ee),ee.resolve&&Vn(h.events,X,h.events.length-X,ee.resolve(h.events.slice(X),h)),ee.resolveTo&&(h.events=ee.resolveTo(h.events,h))}function $(){const ee=v(),X=h.previous,le=h.currentConstruct,fe=h.events.length,ie=Array.from(c);return{from:fe,restore:B};function B(){i=ee,h.previous=X,h.currentConstruct=le,h.events.length=fe,c=ie,H()}}function H(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function DH(e,t){const n=t.start._index,i=t.start._bufferIndex,s=t.end._index,l=t.end._bufferIndex;let u;if(n===s)u=[e[n].slice(i,l)];else{if(u=e.slice(n,s),i>-1){const c=u[0];typeof c=="string"?u[0]=c.slice(i):u.shift()}l>0&&u.push(e[s].slice(0,l))}return u}function IH(e,t){let n=-1;const i=[];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,i.push(u)}return i.join("")}function MH(e){const i={constructs:k_([OH,...(e||{}).extensions||[]]),content:s(fH),defined:[],document:s(hH),flow:s(gH),lazy:{},string:s(EH),text:s(xH)};return i;function s(l){return u;function u(c){return LH(i,l,c)}}}function PH(e){for(;!H_(e););return e}const E2=/[\0\t\n\r]/g;function BH(){let e=1,t="",n=!0,i;return s;function s(l,u,c){const d=[];let h,m,p,y,E;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(E2.lastIndex=p,h=E2.exec(l),y=h&&h.index!==void 0?h.index:l.length,E=l.charCodeAt(y),!h){t=l.slice(p);break}if(E===10&&p===y&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),p<y&&(d.push(l.slice(p,y)),e+=y-p),E){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:i=!0,e=1}p=y+1}return c&&(i&&d.push(-5),t&&d.push(t),d.push(null)),d}}const v3={}.hasOwnProperty;function jH(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),HH(n)(PH(MH(n).document().write(BH()(e,t,!0))))}function HH(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(xn),autolinkProtocol:$,autolinkEmail:$,atxHeading:l(pt),blockQuote:l(Pe),characterEscape:$,characterReference:$,codeFenced:l(Le),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:l(Le,u),codeText:l(De,u),codeTextData:$,data:$,codeFlowValue:$,definition:l(Ye),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:l(rt),hardBreakEscape:l(ct),hardBreakTrailing:l(ct),htmlFlow:l(Vt,u),htmlFlowData:$,htmlText:l(Vt,u),htmlTextData:$,image:l(Ut),label:u,link:l(xn),listItem:l(He),listItemValue:y,listOrdered:l(we,p),listUnordered:l(we),paragraph:l(At),reference:I,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:l(pt),strong:l(Ze),thematicBreak:l(sn)},exit:{atxHeading:d(),atxHeadingSequence:F,autolink:d(),autolinkEmail:ve,autolinkProtocol:ge,blockQuote:d(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:W,characterReference:ye,codeFenced:d(A),codeFencedFence:S,codeFencedFenceInfo:E,codeFencedFenceMeta:v,codeFlowValue:H,codeIndented:d(k),codeText:d(ie),codeTextData:H,data:H,definition:d(),definitionDestinationString:D,definitionLabelString:N,definitionTitleString:w,emphasis:d(),hardBreakEscape:d(X),hardBreakTrailing:d(X),htmlFlow:d(le),htmlFlowData:H,htmlText:d(fe),htmlTextData:H,image:d(K),label:Te,labelText:oe,lineEnding:ee,link:d(B),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:me,resourceDestinationString:L,resourceTitleString:z,resource:Z,setextHeading:d(U),setextHeadingLineSequence:M,setextHeadingText:O,strong:d(),thematicBreak:d()}};S3(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(ue){let Q={type:"root",children:[]};const Se={stack:[Q],tokenStack:[],config:t,enter:c,exit:h,buffer:u,resume:m,data:n},Ie=[];let Fe=-1;for(;++Fe<ue.length;)if(ue[Fe][1].type==="listOrdered"||ue[Fe][1].type==="listUnordered")if(ue[Fe][0]==="enter")Ie.push(Fe);else{const Yt=Ie.pop();Fe=s(ue,Yt,Fe)}for(Fe=-1;++Fe<ue.length;){const Yt=t[ue[Fe][0]];v3.call(Yt,ue[Fe][1].type)&&Yt[ue[Fe][1].type].call(Object.assign({sliceSerialize:ue[Fe][2].sliceSerialize},Se),ue[Fe][1])}if(Se.tokenStack.length>0){const Yt=Se.tokenStack[Se.tokenStack.length-1];(Yt[1]||x2).call(Se,void 0,Yt[0])}for(Q.position={start:qi(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:qi(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Fe=-1;++Fe<t.transforms.length;)Q=t.transforms[Fe](Q)||Q;return Q}function s(ue,Q,Se){let Ie=Q-1,Fe=-1,Yt=!1,Pr,dn,zt,Tn;for(;++Ie<=Se;){const gt=ue[Ie];switch(gt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{gt[0]==="enter"?Fe++:Fe--,Tn=void 0;break}case"lineEndingBlank":{gt[0]==="enter"&&(Pr&&!Tn&&!Fe&&!zt&&(zt=Ie),Tn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Tn=void 0}if(!Fe&>[0]==="enter"&>[1].type==="listItemPrefix"||Fe===-1&>[0]==="exit"&&(gt[1].type==="listUnordered"||gt[1].type==="listOrdered")){if(Pr){let gi=Ie;for(dn=void 0;gi--;){const ar=ue[gi];if(ar[1].type==="lineEnding"||ar[1].type==="lineEndingBlank"){if(ar[0]==="exit")continue;dn&&(ue[dn][1].type="lineEndingBlank",Yt=!0),ar[1].type="lineEnding",dn=gi}else if(!(ar[1].type==="linePrefix"||ar[1].type==="blockQuotePrefix"||ar[1].type==="blockQuotePrefixWhitespace"||ar[1].type==="blockQuoteMarker"||ar[1].type==="listItemIndent"))break}zt&&(!dn||zt<dn)&&(Pr._spread=!0),Pr.end=Object.assign({},dn?ue[dn][1].start:gt[1].end),ue.splice(dn||Ie,0,["exit",Pr,gt[2]]),Ie++,Se++}if(gt[1].type==="listItemPrefix"){const gi={type:"listItem",_spread:!1,start:Object.assign({},gt[1].start),end:void 0};Pr=gi,ue.splice(Ie,0,["enter",gi,gt[2]]),Ie++,Se++,zt=void 0,Tn=!0}}}return ue[Q][1]._spread=Yt,Se}function l(ue,Q){return Se;function Se(Ie){c.call(this,ue(Ie),Ie),Q&&Q.call(this,Ie)}}function u(){this.stack.push({type:"fragment",children:[]})}function c(ue,Q,Se){this.stack[this.stack.length-1].children.push(ue),this.stack.push(ue),this.tokenStack.push([Q,Se||void 0]),ue.position={start:qi(Q.start),end:void 0}}function d(ue){return Q;function Q(Se){ue&&ue.call(this,Se),h.call(this,Se)}}function h(ue,Q){const Se=this.stack.pop(),Ie=this.tokenStack.pop();if(Ie)Ie[0].type!==ue.type&&(Q?Q.call(this,ue,Ie[0]):(Ie[1]||x2).call(this,ue,Ie[0]));else throw new Error("Cannot close `"+ue.type+"` ("+Vo({start:ue.start,end:ue.end})+"): it’s not open");Se.position.end=qi(ue.end)}function m(){return bg(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function y(ue){if(this.data.expectingFirstListItemValue){const Q=this.stack[this.stack.length-2];Q.start=Number.parseInt(this.sliceSerialize(ue),10),this.data.expectingFirstListItemValue=void 0}}function E(){const ue=this.resume(),Q=this.stack[this.stack.length-1];Q.lang=ue}function v(){const ue=this.resume(),Q=this.stack[this.stack.length-1];Q.meta=ue}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const ue=this.resume(),Q=this.stack[this.stack.length-1];Q.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const ue=this.resume(),Q=this.stack[this.stack.length-1];Q.value=ue.replace(/(\r?\n|\r)$/g,"")}function N(ue){const Q=this.resume(),Se=this.stack[this.stack.length-1];Se.label=Q,Se.identifier=fr(this.sliceSerialize(ue)).toLowerCase()}function w(){const ue=this.resume(),Q=this.stack[this.stack.length-1];Q.title=ue}function D(){const ue=this.resume(),Q=this.stack[this.stack.length-1];Q.url=ue}function F(ue){const Q=this.stack[this.stack.length-1];if(!Q.depth){const Se=this.sliceSerialize(ue).length;Q.depth=Se}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function M(ue){const Q=this.stack[this.stack.length-1];Q.depth=this.sliceSerialize(ue).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function $(ue){const Se=this.stack[this.stack.length-1].children;let Ie=Se[Se.length-1];(!Ie||Ie.type!=="text")&&(Ie=Je(),Ie.position={start:qi(ue.start),end:void 0},Se.push(Ie)),this.stack.push(Ie)}function H(ue){const Q=this.stack.pop();Q.value+=this.sliceSerialize(ue),Q.position.end=qi(ue.end)}function ee(ue){const Q=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Se=Q.children[Q.children.length-1];Se.position.end=qi(ue.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Q.type)&&($.call(this,ue),H.call(this,ue))}function X(){this.data.atHardBreak=!0}function le(){const ue=this.resume(),Q=this.stack[this.stack.length-1];Q.value=ue}function fe(){const ue=this.resume(),Q=this.stack[this.stack.length-1];Q.value=ue}function ie(){const ue=this.resume(),Q=this.stack[this.stack.length-1];Q.value=ue}function B(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const Q=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=Q,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function K(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const Q=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=Q,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function oe(ue){const Q=this.sliceSerialize(ue),Se=this.stack[this.stack.length-2];Se.label=p9(Q),Se.identifier=fr(Q).toLowerCase()}function Te(){const ue=this.stack[this.stack.length-1],Q=this.resume(),Se=this.stack[this.stack.length-1];if(this.data.inReference=!0,Se.type==="link"){const Ie=ue.children;Se.children=Ie}else Se.alt=Q}function L(){const ue=this.resume(),Q=this.stack[this.stack.length-1];Q.url=ue}function z(){const ue=this.resume(),Q=this.stack[this.stack.length-1];Q.title=ue}function Z(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function me(ue){const Q=this.resume(),Se=this.stack[this.stack.length-1];Se.label=Q,Se.identifier=fr(this.sliceSerialize(ue)).toLowerCase(),this.data.referenceType="full"}function xe(ue){this.data.characterReferenceType=ue.type}function W(ue){const Q=this.sliceSerialize(ue),Se=this.data.characterReferenceType;let Ie;Se?(Ie=A_(Q,Se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ie=Eg(Q);const Fe=this.stack[this.stack.length-1];Fe.value+=Ie}function ye(ue){const Q=this.stack.pop();Q.position.end=qi(ue.end)}function ge(ue){H.call(this,ue);const Q=this.stack[this.stack.length-1];Q.url=this.sliceSerialize(ue)}function ve(ue){H.call(this,ue);const Q=this.stack[this.stack.length-1];Q.url="mailto:"+this.sliceSerialize(ue)}function Pe(){return{type:"blockquote",children:[]}}function Le(){return{type:"code",lang:null,meta:null,value:""}}function De(){return{type:"inlineCode",value:""}}function Ye(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function rt(){return{type:"emphasis",children:[]}}function pt(){return{type:"heading",depth:0,children:[]}}function ct(){return{type:"break"}}function Vt(){return{type:"html",value:""}}function Ut(){return{type:"image",title:null,url:"",alt:null}}function xn(){return{type:"link",title:null,url:"",children:[]}}function we(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function He(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function At(){return{type:"paragraph",children:[]}}function Ze(){return{type:"strong",children:[]}}function Je(){return{type:"text",value:""}}function sn(){return{type:"thematicBreak"}}}function qi(e){return{line:e.line,column:e.column,offset:e.offset}}function S3(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?S3(e,i):UH(e,i)}}function UH(e,t){let n;for(n in t)if(v3.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function x2(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Vo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Vo({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Vo({start:t.start,end:t.end})+") is still open")}function zH(e){const t=this;t.parser=n;function n(i){return jH(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function FH(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 qH(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
89
|
+
`}]}function VH(e,t){const n=t.value?t.value+`
|
|
90
|
+
`:"",i={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(i.className=["language-"+s[0]]);let l={type:"element",tagName:"code",properties:i,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 YH(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $H(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function GH(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=Sl(i.toLowerCase()),l=e.footnoteOrder.indexOf(i);let u,c=e.footnoteCounts.get(i);c===void 0?(c=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=l+1,c+=1,e.footnoteCounts.set(i,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 KH(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 XH(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function C3(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];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+=i:s.push({type:"text",value:i}),s}function QH(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return C3(e,t);const s={src:Sl(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,l),e.applyData(t,l)}function WH(e,t){const n={src:Sl(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 i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function ZH(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function JH(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return C3(e,t);const s={href:Sl(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function eU(e,t){const n={href:Sl(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function tU(e,t,n){const i=e.all(t),s=n?nU(n):_3(t),l={},u=[];if(typeof t.checked=="boolean"){const m=i[0];let p;m&&m.type==="element"&&m.tagName==="p"?p=m:(p={type:"element",tagName:"p",properties:{},children:[]},i.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<i.length;){const m=i[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=i[i.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 nU(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=_3(n[i])}return t}function _3(e){const t=e.spread;return t??e.children.length>1}function rU(e,t){const n={},i=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s<i.length;){const u=i[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(i,!0)};return e.patch(t,l),e.applyData(t,l)}function iU(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function aU(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function sU(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lU(e,t){const n=e.all(t),i=n.shift(),s=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!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=hd(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 oU(e,t,n){const i=n?n.children:void 0,l=(i?i.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],y={},E=u?u[d]:void 0;E&&(y.align=E);let v={type:"element",tagName:l,properties:y,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 uU(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const T2=9,v2=32;function cU(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),s=0;const l=[];for(;i;)l.push(S2(t.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=n.exec(t);return l.push(S2(t.slice(s),s>0,!1)),l.join("")}function S2(e,t,n){let i=0,s=e.length;if(t){let l=e.codePointAt(i);for(;l===T2||l===v2;)i++,l=e.codePointAt(i)}if(n){let l=e.codePointAt(s-1);for(;l===T2||l===v2;)s--,l=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function fU(e,t){const n={type:"text",value:cU(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function dU(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const hU={blockquote:FH,break:qH,code:VH,delete:YH,emphasis:$H,footnoteReference:GH,heading:KH,html:XH,imageReference:QH,image:WH,inlineCode:ZH,linkReference:JH,link:eU,listItem:tU,list:rU,paragraph:iU,root:aU,strong:sU,table:lU,tableCell:uU,tableRow:oU,text:fU,thematicBreak:dU,toml:Jc,yaml:Jc,definition:Jc,footnoteDefinition:Jc};function Jc(){}function mU(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 pU(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function gU(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||mU,i=e.options.footnoteBackLabel||pU,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(),y=Sl(p.toLowerCase());let E=0;const v=[],S=e.footnoteCounts.get(p);for(;S!==void 0&&++E<=S;){v.length>0&&v.push({type:"text",value:" "});let N=typeof n=="string"?n:n(d,E);typeof N=="string"&&(N={type:"text",value:N}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+y+(E>1?"-"+E:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(d,E),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const A=m[m.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const N=A.children[A.children.length-1];N&&N.type==="text"?N.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(...v)}else m.push(...v);const k={type:"element",tagName:"li",properties:{id:t+"fn-"+y},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:{...Ka(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 p0={}.hasOwnProperty,bU={};function yU(e,t){const n=t||bU,i=new Map,s=new Map,l=new Map,u={...hU,...n.handlers},c={all:h,applyData:xU,definitionById:i,footnoteById:s,footnoteCounts:l,footnoteOrder:[],handlers:u,one:d,options:n,patch:EU,wrap:vU};return dr(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const p=m.type==="definition"?i:s,y=String(m.identifier).toUpperCase();p.has(y)||p.set(y,m)}}),c;function d(m,p){const y=m.type,E=c.handlers[y];if(p0.call(c.handlers,y)&&E)return E(c,m,p);if(c.options.passThrough&&c.options.passThrough.includes(y)){if("children"in m){const{children:S,...A}=m,k=Ka(A);return k.children=c.all(m),k}return Ka(m)}return(c.options.unknownHandler||TU)(c,m,p)}function h(m){const p=[];if("children"in m){const y=m.children;let E=-1;for(;++E<y.length;){const v=c.one(y[E],m);if(v){if(E&&y[E-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=C2(v.value)),!Array.isArray(v)&&v.type==="element")){const S=v.children[0];S&&S.type==="text"&&(S.value=C2(S.value))}Array.isArray(v)?p.push(...v):p.push(v)}}}return p}}function EU(e,t){e.position&&(t.position=t_(e))}function xU(e,t){let n=t;if(e&&e.data){const i=e.data.hName,s=e.data.hChildren,l=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const u="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:u}}n.type==="element"&&l&&Object.assign(n.properties,Ka(l)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function TU(e,t){const n=t.data||{},i="value"in t&&!(p0.call(n,"hProperties")||p0.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function vU(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
|
|
95
|
+
`});++i<e.length;)i&&n.push({type:"text",value:`
|
|
96
|
+
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
97
|
+
`}),n}function C2(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function _2(e,t){const n=yU(e,t),i=n.one(e,void 0),s=gU(n),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&l.children.push({type:"text",value:`
|
|
98
|
+
`},s),l}function SU(e,t){return e&&"run"in e?async function(n,i){const s=_2(n,{file:i,...t});await e.run(s,i)}:function(n,i){return _2(n,{file:i,...e||t})}}function A2(e){if(e)throw e}var Ep,k2;function CU(){if(k2)return Ep;k2=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=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 y;for(y in h);return typeof y>"u"||e.call(h,y)},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(i)return i(h,m).value}else return;return h[m]};return Ep=function d(){var h,m,p,y,E,v,S=arguments[0],A=1,k=arguments.length,N=!1;for(typeof S=="boolean"&&(N=S,S=arguments[1]||{},A=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});A<k;++A)if(h=arguments[A],h!=null)for(m in h)p=c(S,m),y=c(h,m),S!==y&&(N&&y&&(l(y)||(E=s(y)))?(E?(E=!1,v=p&&s(p)?p:[]):v=p&&l(p)?p:{},u(S,{name:m,newValue:d(N,v,y)})):typeof y<"u"&&u(S,{name:m,newValue:y}));return S},Ep}var _U=CU();const xp=R0(_U);function g0(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 AU(){const e=[],t={run:n,use:i};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?kU(m,c)(...h):u(null,...h)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function kU(e,t){let n;return i;function i(...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 Sr={basename:wU,dirname:NU,extname:RU,join:OU,sep:"/"};function wU(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');mu(e);let n=0,i=-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 i<0&&(l=!0,i=s+1);return i<0?"":e.slice(n,i)}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&&(i=s):(c=-1,i=u));return n===i?i=u:i<0&&(i=e.length),e.slice(n,i)}function NU(e){if(mu(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function RU(e){mu(e);let t=e.length,n=-1,i=0,s=-1,l=0,u;for(;t--;){const c=e.codePointAt(t);if(c===47){if(u){i=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===i+1?"":e.slice(s,n)}function OU(...e){let t=-1,n;for(;++t<e.length;)mu(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":LU(n)}function LU(e){mu(e);const t=e.codePointAt(0)===47;let n=DU(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function DU(e,t){let n="",i=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||i!==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="",i=0):(n=n.slice(0,d),i=n.length-1-n.lastIndexOf("/")),s=u,l=0;continue}}else if(n.length>0){n="",i=0,s=u,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(s+1,u):n=e.slice(s+1,u),i=u-s-1;s=u,l=0}else c===46&&l>-1?l++:l=-1}return n}function mu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const IU={cwd:MU};function MU(){return"/"}function b0(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function PU(e){if(typeof e=="string")e=new URL(e);else if(!b0(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 BU(e)}function BU(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===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 Tp=["history","path","basename","stem","extname","dirname"];class jU{constructor(t){let n;t?b0(t)?n={path:t}:typeof t=="string"||HU(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":IU.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Tp.length;){const l=Tp[i];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let s;for(s in n)Tp.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?Sr.basename(this.path):void 0}set basename(t){Sp(t,"basename"),vp(t,"basename"),this.path=Sr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Sr.dirname(this.path):void 0}set dirname(t){w2(this.basename,"dirname"),this.path=Sr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Sr.extname(this.path):void 0}set extname(t){if(vp(t,"extname"),w2(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=Sr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){b0(t)&&(t=PU(t)),Sp(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Sr.basename(this.path,this.extname):void 0}set stem(t){Sp(t,"stem"),vp(t,"stem"),this.path=Sr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const s=this.message(t,n,i);throw s.fatal=!0,s}info(t,n,i){const s=this.message(t,n,i);return s.fatal=void 0,s}message(t,n,i){const s=new fn(t,n,i);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 vp(e,t){if(e&&e.includes(Sr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Sr.sep+"`")}function Sp(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function w2(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function HU(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const UU=(function(e){const i=this.constructor.prototype,s=i[e],l=function(){return s.apply(l,arguments)};return Object.setPrototypeOf(l,i),l}),zU={}.hasOwnProperty;class Ng extends UU{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=AU()}copy(){const t=new Ng;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(xp(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ap("data",this.frozen),this.namespace[t]=n,this):zU.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ap("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,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=n.call(t,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ef(t),i=this.parser||this.Parser;return Cp("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),Cp("process",this.parser||this.Parser),_p("process",this.compiler||this.Compiler),n?s(void 0,n):new Promise(s);function s(l,u){const c=ef(t),d=i.parse(c);i.run(d,c,function(m,p,y){if(m||!p||!y)return h(m);const E=p,v=i.stringify(E,y);VU(v)?y.value=v:y.result=v,h(m,y)});function h(m,p){m||!p?u(m):l?l(p):n(void 0,p)}}}processSync(t){let n=!1,i;return this.freeze(),Cp("processSync",this.parser||this.Parser),_p("processSync",this.compiler||this.Compiler),this.process(t,s),R2("processSync","process",n),i;function s(l,u){n=!0,A2(l),i=u}}run(t,n,i){N2(t),this.freeze();const s=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?l(void 0,i):new Promise(l);function l(u,c){const d=ef(n);s.run(t,d,h);function h(m,p,y){const E=p||t;m?c(m):u?u(E):i(void 0,E,y)}}}runSync(t,n){let i=!1,s;return this.run(t,n,l),R2("runSync","run",i),s;function l(u,c){A2(u),s=c,i=!0}}stringify(t,n){this.freeze();const i=ef(n),s=this.compiler||this.Compiler;return _p("stringify",s),N2(t),s(t,i)}use(t,...n){const i=this.attachers,s=this.namespace;if(Ap("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=xp(!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,y=-1;for(;++p<i.length;)if(i[p][0]===h){y=p;break}if(y===-1)i.push([h,...m]);else if(m.length>0){let[E,...v]=m;const S=i[y][1];g0(S)&&g0(E)&&(E=xp(!0,S,E)),i[y]=[h,E,...v]}}}}const FU=new Ng().freeze();function Cp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function _p(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ap(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 N2(e){if(!g0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function R2(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ef(e){return qU(e)?e:new jU(e)}function qU(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function VU(e){return typeof e=="string"||YU(e)}function YU(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Rg(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ss=Rg();function A3(e){ss=e}var Ma={exec:()=>null};function tt(e,t=""){let n=typeof e=="string"?e:e.source,i={replace:(s,l)=>{let u=typeof l=="string"?l:l.source;return u=u.replace(bn.caret,"$1"),n=n.replace(s,u),i},getRegex:()=>new RegExp(n,t)};return i}var $U=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),bn={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)}}>`)},GU=/^(?:[ \t]*(?:\n|$))+/,KU=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,XU=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,pu=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,QU=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Og=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,k3=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,w3=tt(k3).replace(/bull/g,Og).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(),WU=tt(k3).replace(/bull/g,Og).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(),Lg=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ZU=/^[^\n]+/,Dg=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,JU=tt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Dg).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ez=tt(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Og).getRegex(),bd="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",Ig=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,tz=tt("^ {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",Ig).replace("tag",bd).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),N3=tt(Lg).replace("hr",pu).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",bd).getRegex(),nz=tt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",N3).getRegex(),Mg={blockquote:nz,code:KU,def:JU,fences:XU,heading:QU,hr:pu,html:tz,lheading:w3,list:ez,newline:GU,paragraph:N3,table:Ma,text:ZU},O2=tt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",pu).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",bd).getRegex(),rz={...Mg,lheading:WU,table:O2,paragraph:tt(Lg).replace("hr",pu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",O2).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",bd).getRegex()},iz={...Mg,html:tt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ig).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:Ma,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:tt(Lg).replace("hr",pu).replace("heading",` *#{1,6} *[^
|
|
99
|
+
]`).replace("lheading",w3).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},az=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,sz=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,R3=/^( {2,}|\\)\n(?!\s*$)/,lz=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Cl=/[\p{P}\p{S}]/u,yd=/[\s\p{P}\p{S}]/u,Pg=/[^\s\p{P}\p{S}]/u,oz=tt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,yd).getRegex(),O3=/(?!~)[\p{P}\p{S}]/u,uz=/(?!~)[\s\p{P}\p{S}]/u,cz=/(?:[^\s\p{P}\p{S}]|~)/u,fz=tt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",$U?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),L3=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,dz=tt(L3,"u").replace(/punct/g,Cl).getRegex(),hz=tt(L3,"u").replace(/punct/g,O3).getRegex(),D3="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",mz=tt(D3,"gu").replace(/notPunctSpace/g,Pg).replace(/punctSpace/g,yd).replace(/punct/g,Cl).getRegex(),pz=tt(D3,"gu").replace(/notPunctSpace/g,cz).replace(/punctSpace/g,uz).replace(/punct/g,O3).getRegex(),gz=tt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Pg).replace(/punctSpace/g,yd).replace(/punct/g,Cl).getRegex(),bz=tt(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Cl).getRegex(),yz="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Ez=tt(yz,"gu").replace(/notPunctSpace/g,Pg).replace(/punctSpace/g,yd).replace(/punct/g,Cl).getRegex(),xz=tt(/\\(punct)/,"gu").replace(/punct/g,Cl).getRegex(),Tz=tt(/^<(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(),vz=tt(Ig).replace("(?:-->|$)","-->").getRegex(),Sz=tt("^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",vz).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Uf=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Cz=tt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Uf).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),I3=tt(/^!?\[(label)\]\[(ref)\]/).replace("label",Uf).replace("ref",Dg).getRegex(),M3=tt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Dg).getRegex(),_z=tt("reflink|nolink(?!\\()","g").replace("reflink",I3).replace("nolink",M3).getRegex(),L2=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Bg={_backpedal:Ma,anyPunctuation:xz,autolink:Tz,blockSkip:fz,br:R3,code:sz,del:Ma,delLDelim:Ma,delRDelim:Ma,emStrongLDelim:dz,emStrongRDelimAst:mz,emStrongRDelimUnd:gz,escape:az,link:Cz,nolink:M3,punctuation:oz,reflink:I3,reflinkSearch:_z,tag:Sz,text:lz,url:Ma},Az={...Bg,link:tt(/^!?\[(label)\]\((.*?)\)/).replace("label",Uf).getRegex(),reflink:tt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Uf).getRegex()},y0={...Bg,emStrongRDelimAst:pz,emStrongLDelim:hz,delLDelim:bz,delRDelim:Ez,url:tt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",L2).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:tt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",L2).getRegex()},kz={...y0,br:tt(R3).replace("{2,}","*").getRegex(),text:tt(y0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},tf={normal:Mg,gfm:rz,pedantic:iz},wo={normal:Bg,gfm:y0,breaks:kz,pedantic:Az},wz={"&":"&","<":"<",">":">",'"':""","'":"'"},D2=e=>wz[e];function vr(e,t){if(t){if(bn.escapeTest.test(e))return e.replace(bn.escapeReplace,D2)}else if(bn.escapeTestNoEncode.test(e))return e.replace(bn.escapeReplaceNoEncode,D2);return e}function I2(e){try{e=encodeURI(e).replace(bn.percentDecode,"%")}catch{return null}return e}function M2(e,t){let n=e.replace(bn.findPipe,(l,u,c)=>{let d=!1,h=u;for(;--h>=0&&c[h]==="\\";)d=!d;return d?"|":" |"}),i=n.split(bn.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(bn.slashPipe,"|");return i}function No(e,t,n){let i=e.length;if(i===0)return"";let s=0;for(;s<i&&e.charAt(i-s-1)===t;)s++;return e.slice(0,i-s)}function Nz(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return n>0?-2:-1}function Rz(e,t=0){let n=t,i="";for(let s of e)if(s===" "){let l=4-n%4;i+=" ".repeat(l),n+=l}else i+=s,n++;return i}function P2(e,t,n,i,s){let l=t.href,u=t.title||null,c=e[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let d={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:u,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,d}function Oz(e,t,n){let i=e.match(n.other.indentCodeCompensation);if(i===null)return t;let s=i[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 zf=class{options;rules;lexer;constructor(e){this.options=e||ss}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:No(n,`
|
|
102
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],i=Oz(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:i}}}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 i=No(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.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:No(t[0],`
|
|
103
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=No(t[0],`
|
|
104
|
+
`).split(`
|
|
105
|
+
`),i="",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,"");i=i?`${i}
|
|
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 y=l.at(-1);if(y?.type==="code")break;if(y?.type==="blockquote"){let E=y,v=E.raw+`
|
|
110
|
+
`+n.join(`
|
|
111
|
+
`),S=this.blockquote(v);l[l.length-1]=S,i=i.substring(0,i.length-E.raw.length)+S.raw,s=s.substring(0,s.length-E.text.length)+S.text;break}else if(y?.type==="list"){let E=y,v=E.raw+`
|
|
112
|
+
`+n.join(`
|
|
113
|
+
`),S=this.list(v);l[l.length-1]=S,i=i.substring(0,i.length-y.raw.length)+S.raw,s=s.substring(0,s.length-E.raw.length)+S.raw,n=v.substring(l.at(-1).raw.length).split(`
|
|
114
|
+
`);continue}}return{type:"blockquote",raw:i,tokens:l,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),i=n.length>1,s={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?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=Rz(t[2].split(`
|
|
115
|
+
`,1)[0],t[1].length),y=e.split(`
|
|
116
|
+
`,1)[0],E=!p.trim(),v=0;if(this.options.pedantic?(v=2,m=p.trimStart()):E?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),E&&this.rules.other.blankLine.test(y)&&(h+=y+`
|
|
117
|
+
`,e=e.substring(y.length+1),d=!0),!d){let S=this.rules.other.nextBulletRegex(v),A=this.rules.other.hrRegex(v),k=this.rules.other.fencesBeginRegex(v),N=this.rules.other.headingBeginRegex(v),w=this.rules.other.htmlBeginRegex(v),D=this.rules.other.blockquoteBeginRegex(v);for(;e;){let F=e.split(`
|
|
118
|
+
`,1)[0],O;if(y=F,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),O=y):O=y.replace(this.rules.other.tabCharGlobal," "),k.test(y)||N.test(y)||w.test(y)||D.test(y)||S.test(y)||A.test(y))break;if(O.search(this.rules.other.nonSpaceChar)>=v||!y.trim())m+=`
|
|
119
|
+
`+O.slice(v);else{if(E||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(p)||N.test(p)||A.test(p))break;m+=`
|
|
120
|
+
`+y}E=!y.trim(),h+=F+`
|
|
121
|
+
`,e=e.substring(F.length+1),p=O.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," "),i=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:i,title:s}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=M2(t[1]),i=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===i.length){for(let u of i)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(M2(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=No(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=Nz(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 i=t[2],s="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(i);l&&(i=l[1],s=l[3])}else s=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),P2(t,{href:i&&i.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 i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=t[i.toLowerCase()];if(!s){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return P2(n,s,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!(!i||!i[1]&&!i[2]&&!i[3]&&!i[4]||i[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[3])||!n||this.rules.inline.punctuation.exec(n))){let s=[...i[0]].length-1,l,u,c=s,d=0,h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+s);(i=h.exec(t))!==null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(u=[...l].length,i[3]||i[4]){c+=u;continue}else if((i[5]||i[6])&&s%3&&!((s+u)%3)){d+=u;continue}if(c-=u,c>0)continue;u=Math.min(u,u+c+d);let m=[...i[0]][0].length,p=e.slice(0,s+i.index+m+u);if(Math.min(s,u)%2){let E=p.slice(1,-1);return{type:"em",raw:p,text:E,tokens:this.lexer.inlineTokens(E)}}let y=p.slice(2,-2);return{type:"strong",raw:p,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&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 i=this.rules.inline.delLDelim.exec(e);if(i&&(!i[1]||!n||this.rules.inline.punctuation.exec(n))){let s=[...i[0]].length-1,l,u,c=s,d=this.rules.inline.delRDelim;for(d.lastIndex=0,t=t.slice(-1*e.length+s);(i=d.exec(t))!==null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l||(u=[...l].length,u!==s))continue;if(i[3]||i[4]){c+=u;continue}if(c-=u,c>0)continue;u=Math.min(u,u+c);let h=[...i[0]][0].length,m=e.slice(0,s+i.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,i;return t[2]==="@"?(n=t[1],i="mailto:"+n):(n=t[1],i=n),{type:"link",raw:t[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,i;if(t[2]==="@")n=t[0],i="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."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:n,href:i,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 E0{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ss,this.options.tokenizer=this.options.tokenizer||new zf,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:bn,block:tf.normal,inline:wo.normal};this.options.pedantic?(n.block=tf.pedantic,n.inline=wo.pedantic):this.options.gfm&&(n.block=tf.gfm,this.options.breaks?n.inline=wo.breaks:n.inline=wo.gfm),this.tokenizer.rules=n}static get rules(){return{block:tf,inline:wo}}static lex(t,n){return new E0(n).lex(t)}static lexInline(t,n){return new E0(n).inlineTokens(t)}lex(t){t=t.replace(bn.carriageReturn,`
|
|
124
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let i=this.inlineQueue[n];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],i=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(bn.tabCharGlobal," ").replace(bn.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);i&&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),i=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 i=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(i))!==null;)d.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(i))!==null;)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!==null;)l=s[2]?s[2].length:0,i=i.slice(0,s.index+l)+"["+"a".repeat(s[0].length-l-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;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,i,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,i,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),y;this.options.extensions.startInline.forEach(E=>{y=E.call({lexer:this},p),typeof y=="number"&&y>=0&&(m=Math.min(m,y))}),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}},Ff=class{options;parser;constructor(e){this.options=e||ss}space(e){return""}code({text:e,lang:t,escaped:n}){let i=(t||"").match(bn.notSpaceStart)?.[0],s=e.replace(bn.endingNewline,"")+`
|
|
138
|
+
`;return i?'<pre><code class="language-'+vr(i)+'">'+(n?s:vr(s,!0))+`</code></pre>
|
|
139
|
+
`:"<pre><code>"+(n?s:vr(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,i="";for(let u=0;u<e.items.length;u++){let c=e.items[u];i+=this.listitem(c)}let s=t?"ol":"ul",l=t&&n!==1?' start="'+n+'"':"";return"<"+s+l+`>
|
|
145
|
+
`+i+"</"+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 i="";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]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|
149
|
+
<thead>
|
|
150
|
+
`+t+`</thead>
|
|
151
|
+
`+i+`</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>${vr(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 i=this.parser.parseInline(n),s=I2(e);if(s===null)return i;e=s;let l='<a href="'+e+'"';return t&&(l+=' title="'+vr(t)+'"'),l+=">"+i+"</a>",l}image({href:e,title:t,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let s=I2(e);if(s===null)return vr(n);e=s;let l=`<img src="${e}" alt="${vr(n)}"`;return t&&(l+=` title="${vr(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:vr(e.text)}},jg=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}},cr=class x0{options;renderer;textRenderer;constructor(t){this.options=t||ss,this.options.renderer=this.options.renderer||new Ff,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new jg}static parse(t,n){return new x0(n).parse(t)}static parseInline(t,n){return new x0(n).parseInline(t)}parse(t){this.renderer.parser=this;let n="";for(let i=0;i<t.length;i++){let s=t[i];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 i="";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)){i+=c||"";continue}}let u=l;switch(u.type){case"escape":{i+=n.text(u);break}case"html":{i+=n.html(u);break}case"link":{i+=n.link(u);break}case"image":{i+=n.image(u);break}case"checkbox":{i+=n.checkbox(u);break}case"strong":{i+=n.strong(u);break}case"em":{i+=n.em(u);break}case"codespan":{i+=n.codespan(u);break}case"br":{i+=n.br(u);break}case"del":{i+=n.del(u);break}case"text":{i+=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 i}},Lo=class{options;block;constructor(e){this.options=e||ss}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?cr.parse:cr.parseInline}},Lz=class{defaults=Rg();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=cr;Renderer=Ff;TextRenderer=jg;Lexer=rr;Tokenizer=zf;Hooks=Lo;constructor(...t){this.use(...t)}walkTokens(t,n){let i=[];for(let s of t)switch(i=i.concat(n.call(this,s)),s.type){case"table":{let l=s;for(let u of l.header)i=i.concat(this.walkTokens(u.tokens,n));for(let u of l.rows)for(let c of u)i=i.concat(this.walkTokens(c.tokens,n));break}case"list":{let l=s;i=i.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);i=i.concat(this.walkTokens(c,n))}):l.tokens&&(i=i.concat(this.walkTokens(l.tokens,n)))}}return i}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.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),i.renderer){let l=this.defaults.renderer||new Ff(this.defaults);for(let u in i.renderer){if(!(u in l))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let c=u,d=i.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(i.tokenizer){let l=this.defaults.tokenizer||new zf(this.defaults);for(let u in i.tokenizer){if(!(u in l))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let c=u,d=i.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(i.hooks){let l=this.defaults.hooks||new Lo;for(let u in i.hooks){if(!(u in l))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let c=u,d=i.hooks[c],h=l[c];Lo.passThroughHooks.has(u)?l[c]=m=>{if(this.defaults.async&&Lo.passThroughHooksRespectAsync.has(u))return(async()=>{let y=await d.call(l,m);return h.call(l,y)})();let p=d.call(l,m);return h.call(l,p)}:l[c]=(...m)=>{if(this.defaults.async)return(async()=>{let y=await d.apply(l,m);return y===!1&&(y=await h.apply(l,m)),y})();let p=d.apply(l,m);return p===!1&&(p=h.apply(l,m)),p}}s.hooks=l}if(i.walkTokens){let l=this.defaults.walkTokens,u=i.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 cr.parse(t,n??this.defaults)}parseMarkdown(t){return(n,i)=>{let s={...i},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?cr.parse:cr.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?cr.parse:cr.parseInline)(c,l);return l.hooks&&(d=l.hooks.postprocess(d)),d}catch(c){return u(c)}}}onError(t,n){return i=>{if(i.message+=`
|
|
156
|
+
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+vr(i.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(i);throw i}}},Qa=new Lz;function mt(e,t){return Qa.parse(e,t)}mt.options=mt.setOptions=function(e){return Qa.setOptions(e),mt.defaults=Qa.defaults,A3(mt.defaults),mt};mt.getDefaults=Rg;mt.defaults=ss;mt.use=function(...e){return Qa.use(...e),mt.defaults=Qa.defaults,A3(mt.defaults),mt};mt.walkTokens=function(e,t){return Qa.walkTokens(e,t)};mt.parseInline=Qa.parseInline;mt.Parser=cr;mt.parser=cr.parse;mt.Renderer=Ff;mt.TextRenderer=jg;mt.Lexer=rr;mt.lexer=rr.lex;mt.Tokenizer=zf;mt.Hooks=Lo;mt.parse=mt;mt.options;mt.setOptions;mt.use;mt.walkTokens;mt.parseInline;cr.parse;rr.lex;var Dz=300,Iz="300px",Mz=500;function Pz(e={}){let{immediate:t=!1,debounceDelay:n=Dz,rootMargin:i=Iz,idleTimeout:s=Mz}=e,[l,u]=C.useState(!1),c=C.useRef(null),d=C.useRef(null),h=C.useRef(null),m=C.useMemo(()=>E=>{let v=Date.now();return window.setTimeout(()=>{E({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-v))})},1)},[]),p=C.useMemo(()=>typeof window<"u"&&window.requestIdleCallback?(E,v)=>window.requestIdleCallback(E,v):m,[m]),y=C.useMemo(()=>typeof window<"u"&&window.cancelIdleCallback?E=>window.cancelIdleCallback(E):E=>{clearTimeout(E)},[]);return C.useEffect(()=>{if(t){u(!0);return}let E=c.current;if(!E)return;d.current&&(clearTimeout(d.current),d.current=null),h.current&&(y(h.current),h.current=null);let v=()=>{d.current&&(clearTimeout(d.current),d.current=null),h.current&&(y(h.current),h.current=null)},S=w=>{h.current=p(D=>{D.timeRemaining()>0||D.didTimeout?(u(!0),w.disconnect()):h.current=p(()=>{u(!0),w.disconnect()},{timeout:s/2})},{timeout:s})},A=w=>{v(),d.current=window.setTimeout(()=>{var D,F;let O=w.takeRecords();(O.length===0||(F=(D=O.at(-1))==null?void 0:D.isIntersecting)!=null&&F)&&S(w)},n)},k=(w,D)=>{w.isIntersecting?A(D):v()},N=new IntersectionObserver(w=>{for(let D of w)k(D,N)},{rootMargin:i,threshold:0});return N.observe(E),()=>{d.current&&clearTimeout(d.current),h.current&&y(h.current),N.disconnect()}},[t,n,i,s,y,p]),{shouldRender:l,containerRef:c}}var Bz=320,jz=4,P3=()=>typeof performance>"u"?Date.now():performance.now();function B2(e){var t,n;let i=(t=e?.now)!=null?t:P3,s=(n=e?.maxBacklogMs)!=null?n:Bz,l=0,u=0;return{now:i,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,jz),y=Math.max(u,h),E=h+s,v=y+Math.max(0,c-1)*m,S=m;if(v>E&&c>1)if(y<E){let k=E-y;S=Math.max(p,k/(c-1))}else S=p;let A=Math.max(0,Math.round(y-h));return u=y+c*S,{baseDelay:A,step:S}},commitPass(){l=u}}}var B3=/\s/,Hg=/^\s+$/,Hz=new Set(["pre","svg","math","annotation"]),Uz=new Set(["img","hr"]),gu=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",Ug=e=>e.some(t=>gu(t)&&Hz.has(t.tagName)),zz=e=>{for(let t=e.length-1;t>=0;t--){let n=e[t];if(gu(n)&&n.tagName==="li")return n}},Fz=(e,t,n,i)=>{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:${i}`},qz=new Set(["ul","ol","li"]),j3=e=>{for(let t of e.children)if(gu(t)){if(t.tagName==="input")return t;if(qz.has(t.tagName))continue;let n=j3(t);if(n)return n}},H3=(e,t,n,i)=>{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(i)}ms`},Vz=(e,t,n,i)=>{let s=j3(e);s&&H3(s,t,n,i)},Yz=(e,t,n,i,s,l)=>{if(Ug(t))return;let u=i.prevContentLength,c=s.count;s.count+=1;let d=u>0&&c<u,h=d?0:l.baseDelay+s.newIndex++*l.step;H3(e,n,d?0:n.duration,h)},$z=e=>{var t;for(let n=e.length-1;n>=0;n-=1){let i=e[n];if(gu(i)){if((t=i.properties)!=null&&t["data-sd-animated"])break;i.properties={...i.properties,"data-sd-animated":!0}}}},U3=e=>{let t=[],n="",i=!1;for(let s of e){let l=B3.test(s);if(l!==i&&n){if(l){n+=s,i=!0;continue}t.push(n),n=""}n+=s,i=l}return n&&t.push(n),t},z3=e=>{let t=[],n="";for(let i of e)B3.test(i)?t.length>0&&!Hg.test(t.at(-1))?t[t.length-1]+=i:n+=i:(n&&(t.push(n),n=""),t.push(i));return n&&(t.length>0?t[t.length-1]+=n:t.push(n)),t},Gz=(e,t,n,i,s,l)=>{let u=`--sd-animation:sd-${t};--sd-duration:${s?0:n}ms;--sd-easing:${i}`;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}]}},j2=(e,t)=>!(e>0&&t<e),T0=e=>gu(e)&&Uz.has(e.tagName),Kz=(e,t,n)=>{let i=0,s=0;return sd(e,l=>l.type==="text"||T0(l),(l,u)=>{if(Ug(u))return ja;if(T0(l)){j2(n,s)&&(i+=1),s+=1;return}let c=l.value;if(!c.trim()){s+=c.length;return}let d=t.sep==="char"?z3(c):U3(c);for(let h of d){let m=s;s+=h.length,!Hg.test(h)&&j2(n,m)&&(i+=1)}}),i},Xz=(e,t,n,i,s,l)=>{var u;let c=t.at(-1);if(!(c&&"children"in c))return;if(Ug(t))return ja;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"?z3(m):U3(m),y=i.prevContentLength,E=!1,v=zz(t),S=!!(v&&!((u=v.properties)!=null&&u["data-sd-animate-marker"])),A=!1,k=p.map(N=>{let w=s.count;if(s.count+=N.length,Hg.test(N))return{type:"text",value:N};let D=y>0&&w<y,F=D?0:l.baseDelay+s.newIndex++*l.step;if(E=!0,v&&S&&!A){let O=D?0:n.duration;Fz(v,O,F,n.easing),Vz(v,n,O,F),A=!0}return Gz(N,n.animation,n.duration,n.easing,D,F)});return E&&$z(t),d.children.splice(h,1,...k),h+k.length},Qz=0;function F3(e){var t,n,i,s,l;let u={animation:(t=e?.animation)!=null?t:"fadeIn",duration:(n=e?.duration)!=null?n:150,easing:(i=e?.easing)!=null?i:"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=Qz++,h=()=>m=>{var p;let y={count:0,newIndex:0};c.prevContentLength=c.committedCharCount;let E=u.timeline,v=(p=E?.now())!=null?p:P3();E&&(c.pendingMark===null?c.pendingMark=E.mark():E.rewind(c.pendingMark));let S=E?E.take(Kz(m,u,c.prevContentLength),u.stagger,v):{baseDelay:0,step:u.stagger};sd(m,A=>A.type==="text"||T0(A),(A,k)=>{if(A.type==="text")return Xz(A,k,u,c,y,S);Yz(A,k,u,c,y,S)}),c.lastRenderCharCount=y.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}}}F3();var q3=C.createContext(!1),Wz=()=>C.useContext(q3),Ed=(...e)=>p3(e3(e)),Zz=(e,t)=>{if(!e||!t)return t;let n=`${e}:`;return t.split(/\s+/).filter(Boolean).map(i=>i.startsWith(n)?i:`${e}:${i}`).join(" ")},Jz=e=>e?(...t)=>Zz(e,p3(e3(t))):Ed,ol=(e,t,n)=>{let i=typeof t=="string"&&n.startsWith("text/csv")?"\uFEFF":"",s=typeof t=="string"?new Blob([i+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)},v0=C.createContext(Ed),Ve=()=>C.useContext(v0),eF=8,V3=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}},Y3=(e,t,n)=>{let i=C.useRef(null),s=C.useRef(!0),l=C.useRef(!1);return C.useEffect(()=>{let u=i.current;if(!(u&&t))return;let c=()=>{let d=u.scrollHeight-u.scrollTop-u.clientHeight<eF;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=i.current;u&&t&&e&&s.current&&u.scrollTo({top:u.scrollHeight,behavior:"instant"})},[e,t,n]),i},tF=Ed("block"),nF=Ed("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"),rF=e=>{let t={};for(let n of e.split(";")){let i=n.indexOf(":");if(i>0){let s=n.slice(0,i).trim(),l=n.slice(i+1).trim();s&&l&&(t[s]=l)}}return t},iF=C.memo(({children:e,result:t,language:n,className:i,maxHeight:s,startLine:l,lineNumbers:u=!0,...c})=>{let d=Ve(),{isAnimating:h}=C.useContext(an),m=V3(s),p=Y3(h,!!m,t),y=C.useMemo(()=>d(nF),[d]),E=C.useMemo(()=>d(tF),[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,rF(t.rootStyle)),S},[t.bg,t.fg,t.rootStyle]);return x.jsx("div",{className:d(i,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:x.jsx("pre",{className:d(i,"bg-[var(--sdm-bg,inherit)]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit))]"),style:v,children:x.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,A)=>x.jsx("span",{className:u?y:E,children:S.length===0||S.length===1&&S[0].content===""?`
|
|
157
|
+
`:S.map((k,N)=>{let w={},D=!!k.bgColor;if(k.color&&(w["--sdm-c"]=k.color),k.bgColor&&(w["--sdm-tbg"]=k.bgColor),k.htmlStyle)for(let[F,O]of Object.entries(k.htmlStyle))F==="color"?w["--sdm-c"]=O:F==="background-color"?(w["--sdm-tbg"]=O,D=!0):w[F]=O;return x.jsx("span",{className:d("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",D&&"bg-[var(--sdm-tbg)]",D&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:w,...k.htmlAttrs,children:k.content},N)})},A))})})})}),aF=({className:e,language:t,style:n,isIncomplete:i,...s})=>{let l=Ve();return x.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":i||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...s})},$3=C.createContext({code:""}),G3=()=>C.useContext($3),sF=({language:e})=>{let t=Ve();return x.jsx("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:x.jsx("span",{className:t("ml-1 font-mono lowercase"),children:e})})},lF=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
158
|
+
`;)t--;return e.slice(0,t)},oF=C.lazy(()=>sC(()=>import("./highlighted-body-KPVGNVTW-BeAfTlkH.js"),[]).then(e=>({default:e.HighlightedCodeBlockBody}))),uF=({code:e,language:t,className:n,children:i,isIncomplete:s=!1,startLine:l,lineNumbers:u,...c})=>{let d=Ve(),{codeBlockMaxHeight:h}=C.useContext(an),m=C.useMemo(()=>lF(e),[e]),p=C.useMemo(()=>({bg:"transparent",fg:"inherit",tokens:m.split(`
|
|
159
|
+
`).map(y=>[{content:y,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[m]);return x.jsx($3.Provider,{value:{code:e},children:x.jsxs(aF,{dir:"ltr",isIncomplete:s,language:t,children:[x.jsx(sF,{language:t}),i?x.jsx("div",{className:d("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:x.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:i})}):null,x.jsx(C.Suspense,{fallback:x.jsx(iF,{className:n,language:t,lineNumbers:u,maxHeight:h,result:p,startLine:l,...c}),children:x.jsx(oF,{className:n,code:m,language:t,lineNumbers:u,maxHeight:h,raw:p,startLine:l,...c})})]})})},cF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.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"})}),fF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.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"})}),dF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.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"})}),hF=e=>x.jsxs("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[x.jsx("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),mF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.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"})}),pF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.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"})}),gF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.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"})}),bF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.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"})}),yF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.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"})}),EF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.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"})}),Do={CheckIcon:cF,CopyIcon:fF,DownloadIcon:dF,ExternalLinkIcon:bF,Loader2Icon:hF,Maximize2Icon:mF,RotateCcwIcon:pF,XIcon:gF,ZoomInIcon:yF,ZoomOutIcon:EF},K3=C.createContext(Do),xF=(e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let n=Object.keys(e),i=Object.keys(t);return n.length!==i.length?!1:n.every(s=>e[s]===t[s])},H2=({icons:e,children:t})=>{let n=C.useRef(e),i=C.useRef(e?{...Do,...e}:Do);xF(n.current,e)||(n.current=e,i.current=e?{...Do,...e}:Do);let s=i.current;return x.jsx(K3.Provider,{value:s,children:t})},gr=()=>C.useContext(K3),X3={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"},S0=C.createContext(X3),Mr=()=>C.useContext(S0),C0=({onCopy:e,onError:t,timeout:n=2e3,children:i,className:s,code:l,...u})=>{let c=Ve(),[d,h]=C.useState(!1),m=C.useRef(0),{code:p}=G3(),{isAnimating:y}=C.useContext(an),E=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 A=gr(),k=d?A.CheckIcon:A.CopyIcon;return x.jsxs(x.Fragment,{children:[x.jsx("button",{"aria-label":E.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:y,onClick:S,title:E.copyCode,type:"button",...u,children:i??x.jsx(k,{"aria-hidden":"true",size:14})}),d&&x.jsx("output",{"aria-live":"polite",className:"sr-only",children:E.copied})]})},zg=(e,t,n)=>{if(typeof e=="boolean")return n;let i=e[t];if(typeof i!="object")return n;let s=i.download;return typeof s!="object"?n:s.filename||n},U2={"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"},TF=({onDownload:e,onError:t,language:n,children:i,className:s,code:l,...u})=>{let c=Ve(),{code:d}=G3(),{isAnimating:h,controls:m}=C.useContext(an),p=Mr(),y=gr(),E=l??d,v=n&&n in U2?U2[n]:"txt",S=`${zg(m,"code","file")}.${v}`,A="text/plain",k=()=>{try{ol(S,E,A),e?.()}catch(N){t?.(N)}};return x.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:i??x.jsx(y.DownloadIcon,{size:14})})},z2=()=>{let{Loader2Icon:e}=gr(),t=Ve();return x.jsxs("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[x.jsx("div",{className:t("h-[46px] w-full bg-muted/80")}),x.jsx("div",{className:t("flex w-full items-center justify-center p-4"),children:x.jsx(e,{className:t("size-4 animate-spin")})})]})},vF=/\.[^/.]+$/,SF=({node:e,className:t,src:n,alt:i,onLoad:s,onError:l,showControls:u=!0,showDownloadControl:c=!0,...d})=>{let{DownloadIcon:h}=gr(),m=Ve(),p=C.useRef(null),[y,E]=C.useState(!1),[v,S]=C.useState(!1),A=Mr(),k=d.width!=null||d.height!=null,N=(y||k)&&!v&&u&&c,w=v&&!k;C.useEffect(()=>{let M=p.current;if(M!=null&&M.complete){let U=M.naturalWidth>0;E(U),S(!U)}},[]);let D=C.useCallback(M=>{E(!0),S(!1),s?.(M)},[s]),F=C.useCallback(M=>{E(!1),S(!0),l?.(M)},[l]),O=async()=>{if(n)try{let M=await(await fetch(n)).blob(),U=new URL(n,window.location.origin).pathname.split("/").pop()||"",$=U.split(".").pop(),H=U.includes(".")&&$!==void 0&&$.length<=4,ee="";if(H)ee=U;else{let X=M.type,le="png";X.includes("jpeg")||X.includes("jpg")?le="jpg":X.includes("png")?le="png":X.includes("svg")?le="svg":X.includes("gif")?le="gif":X.includes("webp")&&(le="webp"),ee=`${(i||U||"image").replace(vF,"")}.${le}`}ol(ee,M,M.type)}catch{window.open(n,"_blank")}};return n?x.jsxs("div",{className:m("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[x.jsx("img",{alt:i,className:m("max-w-full rounded-lg",w&&"hidden",t),"data-streamdown":"image",onError:F,onLoad:D,ref:p,src:n,...d}),w&&x.jsx("span",{className:m("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:A.imageNotAvailable}),u&&x.jsx("div",{className:m("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"),"data-streamdown":"image-overlay"}),N&&x.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:O,title:A.downloadImage,type:"button",children:x.jsx(h,{size:14})})]}):null},Yo=0,Fg=()=>{Yo+=1,Yo===1&&(document.body.style.overflow="hidden")},qg=()=>{Yo=Math.max(0,Yo-1),Yo===0&&(document.body.style.overflow="")},CF=({url:e,isOpen:t,onClose:n,onConfirm:i})=>{let{CheckIcon:s,CopyIcon:l,ExternalLinkIcon:u,XIcon:c}=gr(),d=Ve(),[h,m]=C.useState(!1),p=Mr(),y=C.useCallback(async()=>{try{await navigator.clipboard.writeText(e),m(!0),setTimeout(()=>m(!1),2e3)}catch{}},[e]),E=C.useCallback(()=>{i(),n()},[i,n]);if(C.useEffect(()=>{if(t){Fg();let S=A=>{A.key==="Escape"&&n()};return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S),qg()}}},[t,n]),!t||typeof document>"u")return null;let v=x.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:x.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:[x.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:x.jsx(c,{size:16})}),x.jsxs("div",{className:d("flex flex-col gap-2"),children:[x.jsxs("div",{className:d("flex items-center gap-2 font-semibold text-lg"),children:[x.jsx(u,{size:20}),x.jsx("span",{children:p.openExternalLink})]}),x.jsx("p",{className:d("text-muted-foreground text-sm"),children:p.externalLinkWarning})]}),x.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}),x.jsxs("div",{className:d("flex gap-2"),children:[x.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:y,type:"button",children:h?x.jsxs(x.Fragment,{children:[x.jsx(s,{size:14}),x.jsx("span",{children:p.copied})]}):x.jsxs(x.Fragment,{children:[x.jsx(l,{size:14}),x.jsx("span",{children:p.copyLink})]})}),x.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:E,type:"button",children:[x.jsx(u,{size:14}),x.jsx("span",{children:p.openLink})]})]})]})});return ia.createPortal(v,document.body)},_0=C.createContext(null),Vg=()=>C.useContext(_0),Jq=()=>{var e;let t=Vg();return(e=t?.code)!=null?e:null},Yg=()=>{var e;let t=Vg();return(e=t?.mermaid)!=null?e:null},_F=e=>{var t;let n=Vg();return n!=null&&n.renderers&&e&&(t=n.renderers.find(i=>Array.isArray(i.language)?i.language.includes(e):i.language===e))!=null?t:null},AF=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},kF=(e,t)=>{var n;let i=(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*i,m=c.height*i;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(y=>{if(!y){l(new Error("Failed to create PNG blob"));return}s(y)},"image/png")},c.onerror=()=>l(new Error("Failed to load SVG image")),c.src=u})},Q3=({chart:e,children:t,className:n,onDownload:i,config:s,onError:l})=>{let u=Ve(),[c,d]=C.useState(!1),h=C.useRef(null),{isAnimating:m,controls:p}=C.useContext(an),y=gr(),E=Yg(),v=Mr(),S=zg(p,"mermaid","diagram"),A=async k=>{try{if(k==="mmd"){let M=`${S}.mmd`;ol(M,e,"text/plain"),d(!1),i?.(k);return}if(!E){l?.(new Error("Mermaid plugin not available"));return}let N=E.getMermaid(s),w=e.split("").reduce((M,U)=>(M<<5)-M+U.charCodeAt(0)|0,0),D=`mermaid-${Math.abs(w)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:F}=await N.render(D,e);if(!F){l?.(new Error("SVG not found. Please wait for the diagram to render."));return}let O=AF(F);if(k==="svg"){let M=`${S}.svg`;ol(M,O,"image/svg+xml"),d(!1),i?.(k);return}if(k==="png"){let M=await kF(O);ol(`${S}.png`,M,"image/png"),i?.(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)}},[]),x.jsxs("div",{className:u("relative"),ref:h,children:[x.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??x.jsx(y.DownloadIcon,{"aria-hidden":"true",size:14})}),c?x.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:[x.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:()=>A("svg"),title:v.downloadDiagramAsSvg,type:"button",children:v.mermaidFormatSvg}),x.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:()=>A("png"),title:v.downloadDiagramAsPng,type:"button",children:v.mermaidFormatPng}),x.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:()=>A("mmd"),title:v.downloadDiagramAsMmd,type:"button",children:v.mermaidFormatMmd})]}):null]})},wF=({chart:e,config:t,onFullscreen:n,onExit:i,className:s,...l})=>{let{Maximize2Icon:u,XIcon:c}=gr(),d=Ve(),[h,m]=C.useState(!1),{isAnimating:p,controls:y}=C.useContext(an),E=Mr(),v=(()=>{if(typeof y=="boolean")return y;let N=y.mermaid;return N===!1?!1:N===!0||N===void 0?!0:N.panZoom!==!1})(),S=(()=>{if(typeof y=="boolean")return y;let N=y.mermaid;return N===!1?!1:N===!0||N===void 0?!0:N.download!==!1})(),A=(()=>{if(typeof y=="boolean")return y;let N=y.mermaid;return N===!1?!1:N===!0||N===void 0?!0:N.copy!==!1})(),k=()=>{m(!h)};return C.useEffect(()=>{if(h){Fg();let N=w=>{w.key==="Escape"&&m(!1)};return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N),qg()}}},[h]),C.useEffect(()=>{h?n?.():i&&i()},[h,n,i]),x.jsxs(x.Fragment,{children:[x.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:E.viewFullscreen,type:"button",...l,"aria-label":E.viewFullscreen,children:x.jsx(u,{"aria-hidden":"true",size:14})}),h?ia.createPortal(x.jsxs("div",{"aria-label":E.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:[x.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?x.jsx(Q3,{chart:e,config:t}):null,A?x.jsx(C0,{code:e}):null,x.jsx("button",{"aria-label":E.exitFullscreen,className:d("rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:k,title:E.exitFullscreen,type:"button",children:x.jsx(c,{"aria-hidden":"true",size:20})})]}),x.jsx("div",{className:d("flex size-full items-center justify-center p-4"),onClick:N=>N.stopPropagation(),onKeyDown:N=>N.stopPropagation(),role:"presentation",children:x.jsx(MA,{chart:e,className:d("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:t,fullscreen:!0,showControls:v})})]}),document.body):null]})};function A0(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(A0).join("")}var W3=e=>{let t=[],n=[],i=e.querySelectorAll("thead th");for(let l of i)t.push(A0(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(A0(d).trim());n.push(u)}return{headers:t,rows:n}},Z3=e=>{var t;if(typeof e!="object")return",";let n=e.table;return typeof n!="object"?",":(t=n.csvSeparator)!=null?t:","},J3=(e,t=",")=>{let n;t==="auto"?Intl.NumberFormat().format(1.1).includes(",")?n=";":n=",":n=t;let{headers:i,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=i.length>0?s.length+1:s.length,c=new Array(u),d=0;i.length>0&&(c[d]=i.map(l).join(n),d+=1);for(let h of s)c[d]=h.map(l).join(n),d+=1;return c.join(`
|
|
162
|
+
`)},NF=e=>{let{headers:t,rows:n}=e,i=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(i).join(" "),u+=1);for(let c of n)l[u]=c.map(i).join(" "),u+=1;return l.join(`
|
|
165
|
+
`)},kp=e=>{let t=!1;for(let i of e)if(i==="\\"||i==="|"||i===`
|
|
166
|
+
`){t=!0;break}if(!t)return e;let n=[];for(let i of e)i==="\\"?n.push("\\\\"):i==="|"?n.push("\\|"):i===`
|
|
167
|
+
`?n.push("<br>"):n.push(i);return n.join("")},eA=e=>{let{headers:t,rows:n}=e;if(t.length===0)return"";let i=new Array(n.length+2),s=0,l=t.map(c=>kp(c));i[s]=`| ${l.join(" | ")} |`,s+=1;let u=new Array(t.length);for(let c=0;c<t.length;c+=1)u[c]="---";i[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?kp(c[h]):"";i[s]=`| ${d.join(" | ")} |`,s+=1}else{let d=c.map(h=>kp(h));i[s]=`| ${d.join(" | ")} |`,s+=1}return i.join(`
|
|
168
|
+
`)},tA=({children:e,className:t,onCopy:n,onError:i,timeout:s=2e3})=>{let l=Ve(),[u,c]=C.useState(!1),[d,h]=C.useState(!1),m=C.useRef(null),p=C.useRef(0),{isAnimating:y,controls:E}=C.useContext(an),v=Mr(),S=Z3(E),A=async w=>{var D,F;if(typeof window>"u"||!((D=navigator?.clipboard)!=null&&D.write)){i?.(new Error("Clipboard API not available"));return}try{let O=(F=m.current)==null?void 0:F.closest('[data-streamdown="table-wrapper"]'),M=O?.querySelector("table");if(!M){i?.(new Error("Table not found"));return}let U=W3(M),$="";w==="csv"?$=J3(U,S):w==="tsv"?$=NF(U):$=eA(U);let H=new ClipboardItem({"text/plain":new Blob([$],{type:"text/plain"}),"text/html":new Blob([M.outerHTML],{type:"text/html"})});await navigator.clipboard.write([H]),h(!0),c(!1),n?.(w),p.current=window.setTimeout(()=>h(!1),s)}catch(O){i?.(O)}};C.useEffect(()=>{let w=D=>{let F=D.composedPath();m.current&&!F.includes(m.current)&&c(!1)};return document.addEventListener("mousedown",w),()=>{document.removeEventListener("mousedown",w),window.clearTimeout(p.current)}},[]);let k=gr(),N=d?k.CheckIcon:k.CopyIcon;return x.jsxs("div",{className:l("relative"),ref:m,children:[x.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:y,onClick:()=>c(!u),title:v.copyTable,type:"button",children:e??x.jsx(N,{height:14,width:14})}),u?x.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:[x.jsx("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>A("md"),title:v.copyTableAsMarkdown,type:"button",children:v.tableFormatMarkdown}),x.jsx("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>A("csv"),title:v.copyTableAsCsv,type:"button",children:v.tableFormatCsv}),x.jsx("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>A("tsv"),title:v.copyTableAsTsv,type:"button",children:v.tableFormatTsv})]}):null]})},nA=({children:e,className:t,onDownload:n,onError:i})=>{let s=Ve(),[l,u]=C.useState(!1),c=C.useRef(null),{isAnimating:d,controls:h}=C.useContext(an),m=Mr(),p=gr(),y=Z3(h),E=v=>{var S;try{let A=(S=c.current)==null?void 0:S.closest('[data-streamdown="table-wrapper"]'),k=A?.querySelector("table");if(!k){i?.(new Error("Table not found"));return}let N=W3(k),w=v==="csv"?J3(N,y):eA(N),D=v==="csv"?"csv":"md",F=`${zg(h,"table","table")}.${D}`;ol(F,w,v==="csv"?"text/csv":"text/markdown"),u(!1),n?.(v)}catch(A){i?.(A)}};return C.useEffect(()=>{let v=S=>{let A=S.composedPath();c.current&&!A.includes(c.current)&&u(!1)};return document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v)}},[]),x.jsxs("div",{className:s("relative"),ref:c,children:[x.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??x.jsx(p.DownloadIcon,{size:14})}),l?x.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:[x.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>E("csv"),title:m.downloadTableAsCsv,type:"button",children:m.tableFormatCsv}),x.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>E("markdown"),title:m.downloadTableAsMarkdown,type:"button",children:m.tableFormatMarkdown})]}):null]})},RF=({children:e,className:t,showCopy:n=!0,showDownload:i=!0})=>{let{Maximize2Icon:s,XIcon:l}=gr(),u=Ve(),[c,d]=C.useState(!1),{isAnimating:h}=C.useContext(an),m=Mr(),p=()=>{d(!0)},y=()=>{d(!1)};return C.useEffect(()=>{if(c){Fg();let E=v=>{v.key==="Escape"&&d(!1)};return document.addEventListener("keydown",E),()=>{document.removeEventListener("keydown",E),qg()}}},[c]),x.jsxs(x.Fragment,{children:[x.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:x.jsx(s,{size:14})}),c?ia.createPortal(x.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:y,onKeyDown:E=>{E.key==="Escape"&&y()},role:"dialog",children:x.jsxs("div",{className:u("flex h-full flex-col"),"data-streamdown":"table-wrapper",onClick:E=>E.stopPropagation(),onKeyDown:E=>E.stopPropagation(),role:"presentation",children:[x.jsxs("div",{className:u("flex items-center justify-end gap-1 p-4"),children:[n?x.jsx(tA,{}):null,i?x.jsx(nA,{}):null,x.jsx("button",{className:u("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:y,title:m.exitFullscreen,type:"button",children:x.jsx(l,{size:20})})]}),x.jsx("div",{className:u("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:x.jsx("table",{className:u("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),document.body):null]})},OF=({children:e,className:t,maxHeight:n,showControls:i,showCopy:s=!0,showDownload:l=!0,showFullscreen:u=!0,...c})=>{let d=Ve(),{isAnimating:h}=C.useContext(an),m=V3(n),p=Y3(h,!!m,e),y=i&&s,E=i&&l,v=i&&u,S=y||E||v;return x.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?x.jsxs("div",{className:d("flex items-center justify-end gap-1"),children:[y?x.jsx(tA,{}):null,E?x.jsx(nA,{}):null,v?x.jsx(RF,{showCopy:y,showDownload:E,children:e}):null]}):null,x.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:x.jsx("table",{className:d("w-full divide-y divide-border",t),"data-streamdown":"table",...c,children:e})})]})},LF=/startLine=(\d+)/,DF=/\bnoLineNumbers\b/,IF=C.lazy(()=>sC(()=>Promise.resolve().then(()=>$q),void 0).then(e=>({default:e.Mermaid}))),MF=/language-([^\s]+)/,PF="node";function vt(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;let i=e,s=t;for(let l of n)if(l!==PF&&!Object.is(i[l],s[l]))return!1;return!0}function BF(e,t){var n,i;return((n=e?.properties)==null?void 0:n.metastring)===((i=t?.properties)==null?void 0:i.metastring)}var qf=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,wp=(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},F2=(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},nf=(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},jF=(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},$g=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("ol",{className:s("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...i,children:e})},(e,t)=>vt(e,t));$g.displayName="MarkdownOl";var rA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("li",{className:s("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...i,children:e})},(e,t)=>vt(e,t));rA.displayName="MarkdownLi";var iA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("ul",{className:s("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...i,children:e})},(e,t)=>vt(e,t));iA.displayName="MarkdownUl";var aA=C.memo(({className:e,node:t,...n})=>{let i=Ve();return x.jsx("hr",{className:i("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n})},(e,t)=>vt(e,t));aA.displayName="MarkdownHr";var sA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("span",{className:s("font-semibold",t),"data-streamdown":"strong",...i,children:e})},(e,t)=>vt(e,t));sA.displayName="MarkdownStrong";var HF=({children:e,className:t,href:n,node:i,...s})=>{let l=Ve(),{linkSafety:u}=C.useContext(an),[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]),y=C.useCallback(()=>{d(!1)},[]),E={url:n??"",isOpen:c,onClose:y,onConfirm:p};return u!=null&&u.enabled&&n?x.jsxs(x.Fragment,{children:[x.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(E):x.jsx(CF,{...E})]}):x.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})},lA=C.memo(HF,(e,t)=>vt(e,t));lA.displayName="MarkdownA";var oA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("h1",{className:s("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...i,children:e})},(e,t)=>vt(e,t));oA.displayName="MarkdownH1";var uA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("h2",{className:s("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...i,children:e})},(e,t)=>vt(e,t));uA.displayName="MarkdownH2";var cA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("h3",{className:s("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...i,children:e})},(e,t)=>vt(e,t));cA.displayName="MarkdownH3";var fA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("h4",{className:s("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...i,children:e})},(e,t)=>vt(e,t));fA.displayName="MarkdownH4";var dA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("h5",{className:s("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...i,children:e})},(e,t)=>vt(e,t));dA.displayName="MarkdownH5";var hA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("h6",{className:s("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...i,children:e})},(e,t)=>vt(e,t));hA.displayName="MarkdownH6";var mA=C.memo(({children:e,className:t,node:n,...i})=>{let{controls:s,tableMaxHeight:l}=C.useContext(an),u=qf(s,"table"),c=wp(s,"copy"),d=wp(s,"download"),h=wp(s,"fullscreen");return x.jsx(OF,{className:t,maxHeight:l,showControls:u,showCopy:c,showDownload:d,showFullscreen:h,...i,children:e})},(e,t)=>vt(e,t));mA.displayName="MarkdownTable";var pA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("thead",{className:s("bg-muted/80",t),"data-streamdown":"table-header",...i,children:e})},(e,t)=>vt(e,t));pA.displayName="MarkdownThead";var gA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("tbody",{className:s("divide-y divide-border",t),"data-streamdown":"table-body",...i,children:e})},(e,t)=>vt(e,t));gA.displayName="MarkdownTbody";var bA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("tr",{className:s("border-border",t),"data-streamdown":"table-row",...i,children:e})},(e,t)=>vt(e,t));bA.displayName="MarkdownTr";var yA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("th",{className:s("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...i,children:e})},(e,t)=>vt(e,t));yA.displayName="MarkdownTh";var EA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("td",{className:s("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...i,children:e})},(e,t)=>vt(e,t));EA.displayName="MarkdownTd";var xA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("blockquote",{className:s("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...i,children:e})},(e,t)=>vt(e,t));xA.displayName="MarkdownBlockquote";var TA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("sup",{className:s("text-sm",t),"data-streamdown":"superscript",...i,children:e})},(e,t)=>vt(e,t));TA.displayName="MarkdownSup";var vA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ve();return x.jsx("sub",{className:s("text-sm",t),"data-streamdown":"subscript",...i,children:e})},(e,t)=>vt(e,t));vA.displayName="MarkdownSub";var SA=C.memo(({children:e,className:t,node:n,...i})=>{if("data-footnotes"in i){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 y of h)if(y){if(typeof y=="string")y.trim()!==""&&(m=!0);else if(C.isValidElement(y))if(((c=y.props)==null?void 0:c["data-footnote-backref"])!==void 0)p=!0;else{let E=Array.isArray(y.props.children)?y.props.children:[y.props.children];for(let v of E){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===$g){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)?x.jsx("section",{className:t,...i,children:l}):null}return x.jsx("section",{className:t,...i,children:e})},(e,t)=>vt(e,t));SA.displayName="MarkdownSection";var UF=({node:e,className:t,children:n,...i})=>{var s,l;let u=Ve(),c=!("data-block"in i),{mermaid:d,controls:h,lineNumbers:m}=C.useContext(an),p=Yg(),y=Wz(),E=t?.match(MF),v=(s=E?.at(1))!=null?s:"",S=_F(v);if(c)return x.jsx("code",{className:u("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...i,children:n});let A=(l=e?.properties)==null?void 0:l.metastring,k=A?.match(LF),N=k?Number.parseInt(k[1],10):void 0,w=N!==void 0&&N>=1?N:void 0,D=!(A&&DF.test(A))&&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 ee=S.component;return x.jsx(C.Suspense,{fallback:x.jsx(z2,{}),children:x.jsx(ee,{code:F,isIncomplete:y,language:v,meta:A})})}if(v==="mermaid"&&p){let ee=qf(h,"mermaid"),X=nf(h,"download"),le=nf(h,"copy"),fe=nf(h,"fullscreen"),ie=nf(h,"panZoom"),B=ee&&(X||le||fe);return x.jsx(C.Suspense,{fallback:x.jsx(z2,{}),children:x.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:[x.jsx("div",{className:u("flex h-8 items-center text-muted-foreground text-xs"),children:x.jsx("span",{className:u("ml-1 font-mono lowercase"),children:"mermaid"})}),B?x.jsx("div",{className:u("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:x.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:[X?x.jsx(Q3,{chart:F,config:d?.config}):null,le?x.jsx(C0,{code:F}):null,fe?x.jsx(wF,{chart:F,config:d?.config}):null]})}):null,x.jsx("div",{className:u("rounded-md border border-border bg-background"),children:x.jsx(IF,{chart:F,config:d?.config,showControls:ie})})]})})}let O=qf(h,"code"),M=F2(h,"download"),U=F2(h,"copy"),{"data-block":$,...H}=i;return x.jsx(uF,{className:t,code:F,isIncomplete:y,language:v,lineNumbers:D,startLine:w,...H,children:O?x.jsxs(x.Fragment,{children:[M?x.jsx(TF,{code:F,language:v}):null,U?x.jsx(C0,{}):null]}):null})},CA=C.memo(UF,(e,t)=>vt(e,t)&&BF(e.node,t.node));CA.displayName="MarkdownCode";var zF=({node:e,className:t,...n})=>{let{controls:i}=C.useContext(an),s=qf(i,"image"),l=s&&jF(i,"download");return x.jsx(SF,{className:t,node:e,showControls:s,showDownloadControl:l,...n})},_A=C.memo(zF,(e,t)=>vt(e,t));_A.displayName="MarkdownImg";var AA=C.memo(({children:e,node:t,...n})=>{let i=(Array.isArray(e)?e:[e]).filter(s=>s!=null&&s!=="");if(i.length===1&&C.isValidElement(i[0])){let s=i[0].props.node,l=s?.tagName;if(l==="img")return x.jsx(x.Fragment,{children:e});if(l==="code"&&"data-block"in i[0].props)return x.jsx(x.Fragment,{children:e})}return x.jsx("p",{...n,children:e})},(e,t)=>vt(e,t));AA.displayName="MarkdownParagraph";var FF={ol:$g,li:rA,ul:iA,hr:aA,strong:sA,a:lA,h1:oA,h2:uA,h3:cA,h4:fA,h5:dA,h6:hA,table:mA,thead:pA,tbody:gA,tr:bA,th:yA,td:EA,blockquote:xA,code:CA,img:_A,pre:({children:e})=>C.isValidElement(e)?C.cloneElement(e,{"data-block":"true"}):e,sup:TA,sub:vA,p:AA,section:SA},qF=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,VF=new RegExp("\\p{L}","u");function kA(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,i=0,s=0;for(let l of t){if(qF.test(l)){n!=null||(n="rtl"),s+=1;continue}VF.test(l)&&(n!=null||(n="ltr"),i+=1)}return s>i?"rtl":i>s?"ltr":n??"ltr"}var YF=/^[ \t]{0,3}(`{3,}|~{3,})/,$F=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,q2=e=>{let t=e.split(`
|
|
169
|
+
`),n=null,i=0;for(let s of t){let l=YF.exec(s);if(n===null){if(l){let u=l[1];n=u[0],i=u.length}}else if(l){let u=l[1],c=u[0],d=u.length;c===n&&d>=i&&(n=null,i=0)}}return n!==null},GF=e=>{let t=e.split(`
|
|
170
|
+
`);for(let n of t){let i=n.trim();if(i.length>0&&i.includes("|")&&$F.test(i))return!0}return!1},KF=()=>e=>{dr(e,"html",(t,n,i)=>{!i||typeof n!="number"||(i.children[n]={type:"text",value:t.value})})},V2=[],Y2={allowDangerousHtml:!0},rf=new WeakMap,XF=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,i=e.remarkPlugins,s=e.remarkRehypeOptions;if(!(n||i||s)){let m="default";return this.keyCache.set(e,m),m}let l=m=>{if(!m||m.length===0)return"";let p="";for(let y=0;y<m.length;y+=1){let E=m[y];if(y>0&&(p+=","),Array.isArray(E)){let[v,S]=E;if(typeof v=="function"){let A=rf.get(v);A||(A=v.name,rf.set(v,A)),p+=A}else p+=String(v);p+=":",p+=JSON.stringify(S)}else if(typeof E=="function"){let v=rf.get(E);v||(v=E.name,rf.set(E,v)),p+=v}else p+=String(E)}return p},u=l(n),c=l(i),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 i=this.cache.keys().next().value;i&&this.cache.delete(i)}this.cache.set(n,t)}clear(){this.cache.clear()}},$2=new XF,wA=e=>{let t=QF(e),n=e.children||"",i=t.runSync(t.parse(n),n);return rq(i,e)},QF=e=>{let t=$2.get(e);if(t)return t;let n=ZF(e);return $2.set(e,n),n},WF=e=>e.some(t=>Array.isArray(t)?t[0]===u0:t===u0),ZF=e=>{let t=e.rehypePlugins||V2,n=e.remarkPlugins||V2,i=WF(t)?n:[...n,KF],s=e.remarkRehypeOptions?{...Y2,...e.remarkRehypeOptions}:Y2;return FU().use(zH).use(i).use(SU,s).use(t)},JF=e=>e,eq=(e,t,n,i)=>{n?e.children.splice(t,1):e.children[t]={type:"text",value:i}},tq=(e,t)=>{var n;for(let i in yp)if(Object.hasOwn(yp,i)&&Object.hasOwn(e.properties,i)){let s=e.properties[i],l=yp[i];(l===null||l.includes(e.tagName))&&(e.properties[i]=(n=t(String(s||""),i,e))!=null?n:void 0)}},nq=(e,t,n,i,s,l)=>{let u=!1;return i?u=!i.includes(e.tagName):s&&(u=s.includes(e.tagName)),!u&&l&&typeof t=="number"&&(u=!l(e,t,n)),u},rq=(e,t)=>{let{allowElement:n,allowedElements:i,disallowedElements:s,skipHtml:l,unwrapDisallowed:u,urlTransform:c}=t;if(n||i||s||l||c){let d=c||JF;dr(e,(h,m,p)=>{if(h.type==="raw"&&p&&typeof m=="number")return eq(p,m,l,h.value),m;if(h.type==="element"&&(tq(h,d),nq(h,m,p,i,s,n)&&p&&typeof m=="number"))return u&&h.children?p.children.splice(m,1,...h.children):p.children.splice(m,1),m})}return Xj(e,{Fragment:x.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0})},iq=/\[\^[\w-]{1,200}\](?!:)/,aq=/\[\^[\w-]{1,200}\]:/,sq=/<([A-Za-z][\w:-]*)[\s>/]/,lq=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),G2=new Map,K2=new Map,oq=e=>{let t=e.toLowerCase(),n=G2.get(t);if(n)return n;let i=new RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return G2.set(t,i),i},uq=e=>{let t=e.toLowerCase(),n=K2.get(t);if(n)return n;let i=new RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return K2.set(t,i),i},X2=(e,t)=>{if(lq.has(t.toLowerCase()))return 0;let n=e.match(oq(t));if(!n)return 0;let i=0;for(let s of n)s.trimEnd().endsWith("/>")||(i+=1);return i},Q2=(e,t)=>{let n=e.match(uq(t));return n?n.length:0},cq=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},fq=e=>{let t=iq.test(e),n=aq.test(e);if(t||n)return[e];let i=rr.lex(e,{gfm:!0}),s=[],l=[],u=!1;for(let c of i){let d=c.raw,h=s.length;if(l.length>0){s[h-1]+=d;let m=l.at(-1),p=X2(d,m),y=Q2(d,m);for(let E=0;E<p;E+=1)l.push(m);for(let E=0;E<y;E+=1)l.length>0&&l.at(-1)===m&&l.pop();continue}if(c.type==="html"&&c.block){let m=d.match(sq);if(m){let p=m[1],y=X2(d,p),E=Q2(d,p);y>E&&l.push(p)}}if(h>0&&!u){let m=s[h-1];if(cq(m)%2===1){s[h-1]=m+d;continue}}s.push(d),c.type!=="space"&&(u=c.type==="code")}return s},dq=/^\n*/,hq=/\n*$/,k0=/\n\n/g,mq=(e,t,n)=>{if(!t.includes(`
|
|
171
|
+
`))return e+t+n;let i=t.replace(k0,`
|
|
172
|
+
<!---->
|
|
173
|
+
`).replace(dq,`
|
|
174
|
+
|
|
175
|
+
`).replace(hq,`
|
|
176
|
+
|
|
177
|
+
`);return`${e}${i}${n}
|
|
178
|
+
|
|
179
|
+
`},pq=(e,t)=>{let n=new RegExp(`<(${t})(?=[\\s>/])([^>]*)>`,"gi"),i="",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(i+=e.slice(s,l.index),h.length===0){i+=u,s=d,l=n.exec(e);continue}if(h.startsWith(`
|
|
180
|
+
|
|
181
|
+
`)){let y=h.slice(2).replace(k0,`
|
|
182
|
+
<!---->
|
|
183
|
+
`);i+=`${u}
|
|
184
|
+
|
|
185
|
+
${y}`,s=e.length;break}if(!h.startsWith(`
|
|
186
|
+
`)){i+=u,s=d,l=n.exec(e);continue}let m=h.slice(1);if(m.trim().length===0){i+=u,s=d,l=n.exec(e);continue}let p=m.replace(k0,`
|
|
187
|
+
<!---->
|
|
188
|
+
`);i+=`${u}
|
|
189
|
+
|
|
190
|
+
${p}`,s=e.length;break}return s===0?e:i+e.slice(s)},gq=(e,t)=>{if(!t.length)return e;let n=e;for(let i of t){let s=new RegExp(`(<${i}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${i}\\s*>)`,"gi");n=n.replace(s,(l,u,c,d)=>mq(u,c,d)),n=pq(n,i)}return n},bq=/([\\`*_~[\]|])/g,yq=e=>e.replace(bq,"\\$1"),Eq=(e,t)=>{if(!t.length)return e;let n=e;for(let i of t){let s=new RegExp(`(<${i}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${i}\\s*>)`,"gi");n=n.replace(s,(l,u,c,d)=>{let h=yq(c).replace(/\n\n/g," ");return u+h+d})}return n},xq=new Set(["blockquote","dd","dt","figcaption","h1","h2","h3","h4","h5","h6","li","p","td","th"]),NA=new Set(["code","kbd","pre","samp","var"]);function RA(e){return e.children.map(t=>t.type==="text"?t.value:t.type==="element"&&!NA.has(t.tagName)?RA(t):"").join("")}function Tq(){return e=>{dr(e,"element",t=>{if(NA.has(t.tagName)){t.properties!=null||(t.properties={}),t.properties.dir="ltr";return}xq.has(t.tagName)&&(t.properties!=null||(t.properties={}),typeof t.properties.dir!="string"&&(t.properties.dir=kA(RA(t))))})}}var OA=e=>e.type==="text"?e.value:"children"in e&&Array.isArray(e.children)?e.children.map(OA).join(""):"",vq=e=>t=>{if(!e||e.length===0)return;let n=new Set(e.map(i=>i.toLowerCase()));dr(t,"element",i=>{if(n.has(i.tagName.toLowerCase())){let s=OA(i);i.children=s?[{type:"text",value:s}]:[]}})},Sq=()=>e=>{dr(e,"code",t=>{var n,i;t.meta&&(t.data=(n=t.data)!=null?n:{},t.data.hProperties={...(i=t.data.hProperties)!=null?i:{},metastring:t.meta})})},Cq=/^[ \t]*<[\w!/?-]/,_q=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,Aq=e=>typeof e!="string"||e.length===0||!Cq.test(e)?e:e.replace(_q,"$1"),W2,Z2,J2,ev,Ef={...Ia,clobberPrefix:"",protocols:{...Ia.protocols,href:[...(Z2=(W2=Ia.protocols)==null?void 0:W2.href)!=null?Z2:[],"tel","streamdown"]},attributes:{...Ia.attributes,code:[...(ev=(J2=Ia.attributes)==null?void 0:J2.code)!=null?ev:[],"metastring"]}},w0={raw:u0,sanitize:[u_,Ef],harden:[s5,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},kq={gfm:[A7,{}],codeMeta:Sq},tv=Object.values(w0),wq=Object.values(kq),Nq={block:" ▋",circle:" ●"},LA=["github-light","github-dark"],DA={enabled:!0},Rq={codeBlockMaxHeight:400,shikiTheme:LA,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:DA,tableMaxHeight:300},an=C.createContext(Rq),IA=C.memo(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:i,isIncomplete:s,dir:l,animatePlugin:u,...c})=>{C.useLayoutEffect(()=>{u?.commit()});let d=typeof e=="string"&&n?Aq(e):e,h=x.jsx(wA,{...c,children:d});return x.jsx(q3.Provider,{value:s,children:l?x.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||{}),i=Object.keys(t.components||{});if(n.length!==i.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)});IA.displayName="Block";var Oq=C.memo(({children:e,mode:t="streaming",dir:n,parseIncompleteMarkdown:i=!0,normalizeHtmlIndentation:s=!1,components:l,rehypePlugins:u=tv,remarkPlugins:c=wq,className:d,shikiTheme:h,mermaid:m,codeBlockMaxHeight:p=400,controls:y=!0,isAnimating:E=!1,tableMaxHeight:v=300,animated:S,BlockComponent:A=IA,parseMarkdownIntoBlocksFn:k=fq,caret:N,plugins:w,remend:D,linkSafety:F=DA,lineNumbers:O=!0,allowedTags:M,literalTagContent:U,translations:$,icons:H,prefix:ee,onAnimationStart:X,onAnimationEnd:le,...fe})=>{let ie=C.useId(),B=C.useMemo(()=>Jz(ee),[ee]),K=C.useRef(null),oe=C.useRef(X),Te=C.useRef(le);oe.current=X,Te.current=le,C.useEffect(()=>{var we,He,At;if(t==="static")return;let Ze=K.current;if(K.current=E,Ze===null){E&&((we=oe.current)==null||we.call(oe));return}E&&!Ze?(He=oe.current)==null||He.call(oe):!E&&Ze&&((At=Te.current)==null||At.call(Te))},[E,t]);let L=C.useMemo(()=>M?Object.keys(M):[],[M]),z=C.useMemo(()=>{if(typeof e!="string")return"";let we=t==="streaming"&&i?qB(e,D):e;return U&&U.length>0&&(we=Eq(we,U)),L.length>0&&(we=gq(we,L)),we},[e,t,i,D,L,U]),Z=C.useMemo(()=>k(z),[z,k]),I=C.useMemo(()=>n==="auto"?Z.map(kA):void 0,[Z,n]),me=C.useMemo(()=>Z.map((we,He)=>`${ie}-${He}`),[Z.length,ie]),xe=C.useMemo(()=>S===!0?"true":S?JSON.stringify(S):"",[S]),W=C.useRef(null),ye=C.useRef([]),ge=C.useRef([]),ve=C.useRef(null),Pe=C.useRef("");if(xe){if(Pe.current!==xe){Pe.current=xe;let we=xe!=="true"?S.maxBacklogMs:void 0;W.current=B2({maxBacklogMs:we}),ye.current=[],ge.current=[]}else W.current||(W.current=B2());E&&W.current&&W.current.beginPass(W.current.now())}else W.current=null,ye.current=[],ge.current=[],Pe.current="";C.useLayoutEffect(()=>{var we;E&&((we=W.current)==null||we.commitPass())});let Le=C.useMemo(()=>{var we,He;return{codeBlockMaxHeight:p,shikiTheme:(He=h??((we=w?.code)==null?void 0:we.getThemes()))!=null?He:LA,controls:y,isAnimating:E,lineNumbers:O,mode:t,mermaid:m,linkSafety:F,tableMaxHeight:v}},[p,h,y,E,O,t,m,F,w?.code,v]),De=C.useMemo(()=>$?JSON.stringify($):"",[$]),Ye=C.useMemo(()=>({...X3,...$}),[De]),rt=C.useMemo(()=>{let{inlineCode:we,...He}=l??{},At={...FF,...He};if(we){let Ze=At.code;At.code=Je=>"data-block"in Je?Ze?C.createElement(Ze,Je):null:C.createElement(we,Je)}return At},[l]),pt=C.useMemo(()=>{let we=[];return w!=null&&w.cjk&&(we=[...we,...w.cjk.remarkPluginsBefore]),we=[...we,...c],w!=null&&w.cjk&&(we=[...we,...w.cjk.remarkPluginsAfter]),w!=null&&w.math&&(we=[...we,w.math.remarkPlugin]),we},[c,w?.math,w?.cjk]),ct=C.useMemo(()=>{var we;let He=u;if(M&&Object.keys(M).length>0&&u===tv){let At={...Ef,tagNames:[...(we=Ef.tagNames)!=null?we:[],...Object.keys(M)],attributes:{...Ef.attributes,...M}};He=[w0.raw,[u_,At],w0.harden]}return U&&U.length>0&&(He=[...He,[vq,U]]),w!=null&&w.math&&(He=[...He,w.math.rehypePlugin]),n==="auto"&&t==="static"&&(He=[...He,Tq]),He},[u,w?.math,M,U,n,t]),Vt=C.useMemo(()=>{if(!E||Z.length===0)return!1;let we=Z.at(-1);return q2(we)||GF(we)},[E,Z]),Ut=C.useMemo(()=>N&&E&&!Vt?{"--streamdown-caret":`"${Nq[N]}"`}:void 0,[N,E,Vt]),xn=we=>{let He=null;if(W.current&&E){if(!ye.current[we]){let Ze=xe&&xe!=="true"?S:{},{maxBacklogMs:Je,...sn}=Ze;ye.current[we]=F3({...sn,timeline:W.current})}He=ye.current[we]}ve.current!==ct&&(ge.current=[],ve.current=ct),He&&!ge.current[we]&&(ge.current[we]=[...ct,He.rehypePlugin]);let At=He&&ge.current[we]?ge.current[we]:ct;return{blockAnimatePlugin:He,blockRehypePlugins:At}};return t==="static"?x.jsx(S0.Provider,{value:Ye,children:x.jsx(_0.Provider,{value:w??null,children:x.jsx(an.Provider,{value:Le,children:x.jsx(H2,{icons:H,children:x.jsx(v0.Provider,{value:B,children:x.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:x.jsx(wA,{components:rt,rehypePlugins:ct,remarkPlugins:pt,...fe,children:z})})})})})})}):x.jsx(S0.Provider,{value:Ye,children:x.jsx(_0.Provider,{value:w??null,children:x.jsx(an.Provider,{value:Le,children:x.jsx(H2,{icons:H,children:x.jsx(v0.Provider,{value:B,children:x.jsxs("div",{className:B("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",N&&!Vt?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,d),style:Ut,children:[Z.length===0&&N&&E&&x.jsx("span",{}),Z.map((we,He)=>{var At;let Ze=He===Z.length-1,Je=E&&Ze&&q2(we),{blockAnimatePlugin:sn,blockRehypePlugins:ue}=xn(He);return x.jsx(A,{animatePlugin:sn,components:rt,content:we,dir:(At=I?.[He])!=null?At:n!=="auto"?n:void 0,index:He,isIncomplete:Je,rehypePlugins:ue,remarkPlugins:pt,shouldNormalizeHtmlIndentation:s,shouldParseIncompleteMarkdown:i,...fe},me[He])})]})})})})})})},(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);Oq.displayName="Streamdown";var Lq=({children:e,className:t,minZoom:n=.5,maxZoom:i=3,zoomStep:s=.1,showControls:l=!0,initialZoom:u=1,fullscreen:c=!1})=>{let{RotateCcwIcon:d,ZoomInIcon:h,ZoomOutIcon:m}=gr(),p=Ve(),y=Mr(),E=C.useRef(null),v=C.useRef(null),[S,A]=C.useState(u),[k,N]=C.useState({x:0,y:0}),[w,D]=C.useState(!1),[F,O]=C.useState({x:0,y:0}),[M,U]=C.useState({x:0,y:0}),$=C.useCallback(K=>{A(oe=>Math.max(n,Math.min(i,oe+K)))},[n,i]),H=C.useCallback(()=>{$(s)},[$,s]),ee=C.useCallback(()=>{$(-s)},[$,s]),X=C.useCallback(()=>{A(u),N({x:0,y:0})},[u]),le=C.useCallback(K=>{K.preventDefault();let oe=K.deltaY>0?-s:s;$(oe)},[$,s]),fe=C.useCallback(K=>{if(K.button!==0||K.isPrimary===!1)return;D(!0),O({x:K.clientX,y:K.clientY}),U(k);let oe=K.currentTarget;oe instanceof HTMLElement&&oe.setPointerCapture(K.pointerId)},[k]),ie=C.useCallback(K=>{if(!w)return;K.preventDefault();let oe=K.clientX-F.x,Te=K.clientY-F.y;N({x:M.x+oe,y:M.y+Te})},[w,F,M]),B=C.useCallback(K=>{D(!1);let oe=K.currentTarget;oe instanceof HTMLElement&&oe.releasePointerCapture(K.pointerId)},[]);return C.useEffect(()=>{let K=E.current;if(K)return K.addEventListener("wheel",le,{passive:!1}),()=>{K.removeEventListener("wheel",le)}},[le]),C.useEffect(()=>{let K=v.current;if(K&&w)return document.body.style.userSelect="none",K.addEventListener("pointermove",ie,{passive:!1}),K.addEventListener("pointerup",B),K.addEventListener("pointercancel",B),()=>{document.body.style.userSelect="",K.removeEventListener("pointermove",ie),K.removeEventListener("pointerup",B),K.removeEventListener("pointercancel",B)}},[w,ie,B]),x.jsxs("div",{className:p("relative flex flex-col",c?"h-full w-full":"min-h-28 w-full",t),ref:E,style:{cursor:w?"grabbing":"grab"},children:[l?x.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:[x.jsx("button",{"aria-label":y.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>=i,onClick:H,title:y.zoomIn,type:"button",children:x.jsx(h,{"aria-hidden":"true",size:16})}),x.jsx("button",{"aria-label":y.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:ee,title:y.zoomOut,type:"button",children:x.jsx(m,{"aria-hidden":"true",size:16})}),x.jsx("button",{"aria-label":y.resetView,className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:X,title:y.resetView,type:"button",children:x.jsx(d,{"aria-hidden":"true",size:16})})]}):null,x.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:fe,ref:v,role:"application",style:{transform:`translate(${k.x}px, ${k.y}px) scale(${S})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},MA=({chart:e,className:t,config:n,fullscreen:i=!1,showControls:s=!0})=>{let l=Ve(),[u,c]=C.useState(null),[d,h]=C.useState(!1),[m,p]=C.useState(""),[y,E]=C.useState(""),[v,S]=C.useState(0),{mermaid:A}=C.useContext(an),k=Yg(),N=A?.errorComponent,{shouldRender:w,containerRef:D}=Pz({immediate:i});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 O=k.getMermaid(n),M=e.split("").reduce((H,ee)=>(H<<5)-H+ee.charCodeAt(0)|0,0),U=`mermaid-${Math.abs(M)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:$}=await O.render(U,e);p($),E($)}catch(O){if(!(y||m)){let M=O instanceof Error?O.message:"Failed to render Mermaid chart";c(M)}}finally{h(!1)}})()}},[e,n,v,w,k]),!(w||m||y))return x.jsx("div",{className:l("my-4 min-h-[200px]",t),ref:D});if(d&&!m&&!y)return x.jsx("div",{className:l("my-4 flex justify-center p-4",t),ref:D,children:x.jsxs("div",{className:l("flex items-center space-x-2 text-muted-foreground"),children:[x.jsx("div",{className:l("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),x.jsx("span",{className:l("text-sm"),children:"Loading diagram..."})]})});if(u&&!m&&!y){let O=()=>S(M=>M+1);return N?x.jsx("div",{ref:D,children:x.jsx(N,{chart:e,error:u,retry:O})}):x.jsxs("div",{className:l("rounded-md bg-red-50 p-4",t),ref:D,children:[x.jsxs("p",{className:l("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",u]}),x.jsxs("details",{className:l("mt-2"),children:[x.jsx("summary",{className:l("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),x.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||y;return x.jsx("div",{className:l("size-full",t),"data-streamdown":"mermaid",ref:D,children:x.jsx(Lq,{className:l(i?"size-full overflow-hidden":"overflow-hidden",t),fullscreen:i,maxZoom:3,minZoom:.5,showControls:s,zoomStep:.1,children:x.jsx("div",{"aria-label":"Mermaid chart",className:l("flex justify-center",i?"size-full items-center":null),dangerouslySetInnerHTML:{__html:F},role:"img"})})})};const PA=["all","fact","preference","episode","procedure","message"],bu={zh:{all:"全部",fact:"事实",preference:"偏好",episode:"事件",procedure:"方法",message:"对话"},en:{all:"All",fact:"Fact",preference:"Preference",episode:"Episode",procedure:"Procedure",message:"Message"}},N0={zh:{all:{title:"全部记忆",description:"保存 Agent 需要记住的事实、偏好和经验。"},timeline:{title:"时间线",description:"按发生和写入时间回看记忆。"},archive:{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."},archive:{title:"Archive",description:"Archived memories appear here."},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."}}},BA={all:"/",timeline:"/timeline",archive:"/archive",preferences:"/preferences",projects:"/scopes",tags:"/tags",settings:"/settings",mcp:"/mcp-service"},Dq=Object.fromEntries(Object.entries(BA).map(([e,t])=>[t,e]));function Vi(){return null}const ni=z6({component:Pq}),Iq=ni.addChildren([zi({getParentRoute:()=>ni,path:"/",component:Vi}),zi({getParentRoute:()=>ni,path:"/timeline",component:Vi}),zi({getParentRoute:()=>ni,path:"/archive",component:Vi}),zi({getParentRoute:()=>ni,path:"/preferences",component:Vi}),zi({getParentRoute:()=>ni,path:"/scopes",component:Vi}),zi({getParentRoute:()=>ni,path:"/tags",component:Vi}),zi({getParentRoute:()=>ni,path:"/settings",component:Vi}),zi({getParentRoute:()=>ni,path:"/mcp-service",component:Vi})]),Mq=Q6({routeTree:Iq}),Lr={zh:{brandSubtitle:"个人记忆库",workspace:"工作区",collections:"集合",connect:"连接",navAll:"全部记忆",navTimeline:"时间线",navArchive:"归档",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:"重试",noArchive:"暂无归档记忆",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:"语言更新失败,请稍后重试。",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:"通过 MCP 管理你的记忆",collapse:"收起",agentPage:"Agent 页面",chat:"对话",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",navArchive:"Archive",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 create a memory.",loadFailed:"Could not load memories",retry:"Retry",noArchive:"No archived memories",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",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:"Manage your memories through MCP",collapse:"Collapse",agentPage:"Agent page",chat:"Chat",configuration:"Configuration",processing:"Processing",readingMemory:"Reading memories and preparing a reply",agentPlaceholder:"Tell the memory assistant what to do...",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"}},nu=(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";function Pq(){const e=eR({select:W=>W.location.pathname}),t=U0(),n=Dq[e]??"all",[i,s]=C.useState([]),[l,u]=C.useState(null),[c,d]=C.useState(""),[h,m]=C.useState("all"),[p,y]=C.useState("all"),[E,v]=C.useState("zh"),[S,A]=C.useState(!1),[k,N]=C.useState(()=>localStorage.getItem("memory-one-theme")==="dark"),[w,D]=C.useState(!1),[F,O]=C.useState(!1),[M,U]=C.useState(!0),[$,H]=C.useState(!1),[ee,X]=C.useState(null),[le,fe]=C.useState(!1),ie=async(W=c)=>{U(!0),H(!1);try{const ye=W.trim()?`/api/search?query=${encodeURIComponent(W)}`:"/api/memories?limit=100",ge=await fetch(ye);if(!ge.ok)throw new Error("memory_load_failed");s(await ge.json())}catch{H(!0)}finally{U(!1)}},B=Lr[E],K=bu[E];C.useEffect(()=>{let W=!0;return fetch("/api/app-config").then(ye=>ye.ok?ye.json():null).then(ye=>{W&&(ye?.language==="zh"||ye?.language==="en"?v(ye.language):A(!0),fe(!0))}).catch(()=>{W&&fe(!0)}),()=>{W=!1}},[]);const oe=async W=>{if(!(await fetch("/api/app-config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({language:W})})).ok)throw new Error("language_save_failed");v(W),A(!1)};C.useEffect(()=>{u(null),O(!1),d(""),m(n==="preferences"?"preference":"all"),y("all"),ie("")},[n]),C.useEffect(()=>{document.documentElement.dataset.theme=k?"dark":"light",localStorage.setItem("memory-one-theme",k?"dark":"light")},[k]),C.useEffect(()=>{document.documentElement.lang=E==="zh"?"zh-CN":"en"},[E]),C.useEffect(()=>{let W=!0;return fetch("/api/version").then(ye=>ye.ok?ye.json():null).then(ye=>{!W||!ye?.updateAvailable||!ye.current||!ye.latest||X({current:ye.current,latest:ye.latest})}).catch(()=>{}),()=>{W=!1}},[]),C.useEffect(()=>{const W=ye=>{(ye.metaKey||ye.ctrlKey)&&ye.key.toLowerCase()==="k"&&(ye.preventDefault(),document.querySelector("#memory-search")?.focus())};return window.addEventListener("keydown",W),()=>window.removeEventListener("keydown",W)},[]);const Te=C.useMemo(()=>["all",...new Set(i.map(W=>W.project).filter(Boolean))],[i]),L=i.filter(W=>n==="archive"||n==="tags"||n==="settings"||n==="mcp"||n==="preferences"&&W.kind!=="preference"||n==="projects"&&!W.project?!1:(h==="all"||W.kind===h)&&(p==="all"||W.project===p)),z=C.useMemo(()=>{const W=new Map;for(const ye of L){const ge=ye.project??"__global__";W.set(ge,[...W.get(ge)??[],ye])}return[...W.entries()]},[L]),Z={total:i.length,projects:new Set(i.map(W=>W.project).filter(Boolean)).size,preferences:i.filter(W=>W.kind==="preference").length},I=N0[E][n],me=W=>{t({to:BA[W]})},xe=async W=>{const ge=await(await fetch("/api/memories",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({...W,project:W.project||null,source:W.source||null,metadata:W.kind==="preference"&&W.alwaysInclude?{always_include:!0}:{}})})).json();s(ve=>[ge,...ve]),u(ge),D(!1)};return x.jsxs("div",{className:`app-shell ${n==="mcp"?"app-shell-wide":""}`,children:[ee&&x.jsxs("div",{className:"version-notice",role:"status",children:[x.jsx(Ix,{size:14}),x.jsx("span",{children:B.versionNotice(ee.latest,ee.current)}),x.jsx("button",{className:"icon-button",onClick:()=>X(null),title:B.close,"aria-label":B.close,children:x.jsx(Po,{size:14})})]}),x.jsxs("aside",{className:`sidebar ${F?"sidebar-open":""}`,children:[x.jsxs("div",{className:"brand",children:[x.jsx("div",{className:"brand-mark",children:x.jsx(sR,{size:17})}),x.jsxs("div",{children:[x.jsx("strong",{children:"Memory One"}),x.jsx("span",{children:B.brandSubtitle})]}),x.jsx("button",{className:"icon-button mobile-close",onClick:()=>O(!1),title:B.close,children:x.jsx(Po,{size:17})})]}),x.jsxs(Np,{title:B.workspace,children:[x.jsx(Yi,{icon:x.jsx(aR,{size:17}),label:B.navAll,count:Z.total,active:n==="all",onClick:()=>me("all")}),x.jsx(Yi,{icon:x.jsx(uR,{size:17}),label:B.navTimeline,active:n==="timeline",onClick:()=>me("timeline")}),x.jsx(Yi,{icon:x.jsx(iR,{size:17}),label:B.navArchive,active:n==="archive",onClick:()=>me("archive")})]}),x.jsxs(Np,{title:B.collections,children:[x.jsx(Yi,{icon:x.jsx(Ix,{size:17}),label:B.navPreferences,count:Z.preferences,active:n==="preferences",onClick:()=>me("preferences")}),x.jsx(Yi,{icon:x.jsx(qv,{size:17}),label:B.navScopes,count:Z.projects,active:n==="projects",onClick:()=>me("projects")}),x.jsx(Yi,{icon:x.jsx($v,{size:17}),label:B.navTags,active:n==="tags",onClick:()=>me("tags")})]}),x.jsx(Np,{title:B.connect,children:x.jsx(Yi,{icon:x.jsx(ff,{size:17}),label:B.navMcp,active:n==="mcp",onClick:()=>me("mcp")})}),x.jsxs("div",{className:"sidebar-footer",children:[x.jsxs("div",{className:"storage-status",children:[x.jsx("span",{className:"status-dot"}),B.localStorage,x.jsx("span",{className:"mono",children:"SQLite"})]}),x.jsx(Yi,{icon:x.jsx(bR,{size:17}),label:B.navSettings,active:n==="settings",onClick:()=>me("settings")})]})]}),F&&x.jsx("button",{className:"sidebar-backdrop",onClick:()=>O(!1),"aria-label":B.close}),x.jsxs("main",{className:"main-content",children:[x.jsxs("header",{className:"topbar",children:[x.jsx("button",{className:"icon-button menu-button",onClick:()=>O(!0),title:B.openMenu,"aria-label":B.openMenu,children:x.jsx(hR,{size:19})}),x.jsxs("div",{className:"breadcrumbs",children:[x.jsx("span",{children:B.workspace}),x.jsx(jp,{size:14}),x.jsx("strong",{children:I.title})]}),x.jsxs("div",{className:"top-actions",children:[x.jsx("button",{className:"icon-button",onClick:()=>N(W=>!W),title:k?B.toggleLight:B.toggleDark,"aria-label":k?B.toggleLight:B.toggleDark,children:k?x.jsx(Yv,{size:17}):x.jsx(Vv,{size:17})}),x.jsx("div",{className:"avatar",children:"C"})]})]}),x.jsx("div",{className:"content-wrap",children:n==="mcp"?x.jsx(zq,{language:E}):n==="settings"?x.jsx(Vq,{language:E,onLanguageChange:W=>oe(W),dark:k,onToggleTheme:()=>N(W=>!W)}):x.jsxs(x.Fragment,{children:[x.jsxs("section",{className:"page-heading",children:[x.jsxs("div",{children:[x.jsxs("div",{className:"heading-kicker",children:[x.jsx("span",{className:"live-dot"}),B.localMemory]}),x.jsx("h1",{children:I.title}),x.jsx("p",{children:I.description})]}),x.jsxs("button",{className:"primary-button",onClick:()=>D(!0),children:[x.jsx(pR,{size:17}),B.newMemory]})]}),n!=="timeline"&&x.jsxs("section",{className:"stat-grid",children:[x.jsx(Ua,{label:B.memories,value:Z.total.toString().padStart(2,"0"),note:B.savedCount}),x.jsx(Ua,{label:B.scopes,value:Z.projects.toString().padStart(2,"0"),note:B.scopesNote}),x.jsx(Ua,{label:B.lastSync,value:B.justNow,note:B.localDatabase,date:!0}),x.jsxs("div",{className:"stat-card stat-callout",children:[x.jsx(z0,{size:19}),x.jsxs("div",{children:[x.jsx("strong",{children:B.localOnly}),x.jsx("span",{children:B.localOnlyDesc})]})]})]}),x.jsxs("section",{className:"toolbar",children:[x.jsxs("div",{className:"search-box",children:[x.jsx(gR,{size:17}),x.jsx("input",{id:"memory-search",value:c,onChange:W=>d(W.target.value),onKeyDown:W=>{W.key==="Enter"&&ie()},placeholder:B.search}),x.jsxs("kbd",{children:[x.jsx(cR,{size:11}),"K"]})]}),x.jsxs("div",{className:"toolbar-actions",children:[x.jsxs("div",{className:"select-wrap",children:[x.jsx(dR,{size:15}),x.jsx(Of,{value:h,onValueChange:m,options:PA.map(W=>({value:W,label:K[W]})),ariaLabel:B.type})]}),x.jsx("div",{className:"select-wrap project-select",children:x.jsx(Of,{value:p,onValueChange:y,options:Te.map(W=>({value:W,label:W==="all"?B.allScopes:W})),ariaLabel:B.scope})})]})]}),x.jsxs("div",{className:"list-header",children:[x.jsx("span",{children:M?B.reading:`${L.length}${B.countSuffix}`}),x.jsx("span",{className:"mono",children:n==="timeline"?B.sortTimeline:n==="all"&&p==="all"?B.sortGrouped:B.sortRecent})]}),x.jsxs("section",{className:n==="timeline"?"timeline-list":"memory-list",children:[$&&!M&&x.jsxs("div",{className:"empty-state",children:[x.jsx(Dx,{size:28}),x.jsx("strong",{children:B.loadFailed}),x.jsx("button",{className:"ghost-button",onClick:()=>{ie()},children:B.retry})]}),!$&&!M&&L.length===0&&x.jsxs("div",{className:"empty-state",children:[x.jsx(Dx,{size:28}),x.jsx("strong",{children:n==="archive"?B.noArchive:n==="tags"?B.noTags:B.emptyMatch}),x.jsx("span",{children:n==="archive"||n==="tags"?I.description:B.emptyHelp})]}),!$&&n==="timeline"&&x.jsx(Hq,{items:L,selectedId:l?.id,onSelect:u,language:E}),!$&&n!=="timeline"&&(n==="all"&&p==="all"?z.map(([W,ye])=>x.jsxs("div",{className:"memory-group",children:[x.jsxs("div",{className:"memory-group-header",children:[x.jsx("span",{children:W==="__global__"?B.globalMemory:W}),x.jsx("span",{className:"mono",children:ye.length.toString().padStart(2,"0")})]}),ye.map(ge=>x.jsx(nv,{item:ge,selected:l?.id===ge.id,onClick:()=>u(ge),language:E},ge.id))]},W)):L.map(W=>x.jsx(nv,{item:W,selected:l?.id===W.id,onClick:()=>u(W),language:E},W.id)))]})]})})]}),n!=="mcp"&&x.jsxs("aside",{className:`detail-panel ${l?"detail-open":""}`,children:[x.jsxs("div",{className:"detail-header",children:[x.jsx("span",{className:"eyebrow",children:B.detailEyebrow}),l&&x.jsx("button",{className:"icon-button",onClick:()=>u(null),title:B.close,children:x.jsx(Po,{size:17})})]}),l?x.jsx(Fq,{item:l,language:E}):x.jsxs("div",{className:"detail-empty",children:[x.jsx("div",{className:"detail-icon",children:x.jsx(Fv,{size:20})}),x.jsx("strong",{children:B.detailEmpty}),x.jsx("span",{children:B.detailEmptyDesc})]})]}),w&&x.jsx(Yq,{onClose:()=>D(!1),onCreate:xe,language:E}),x.jsx(Hv,{}),le&&S?x.jsx(qq,{language:E,onSelect:W=>oe(W)}):null]})}function Np({title:e,children:t}){return x.jsxs("div",{className:"sidebar-section",children:[x.jsx("span",{className:"eyebrow",children:e}),t]})}function Yi({icon:e,label:t,count:n,active:i,onClick:s}){return x.jsxs("button",{className:`nav-item ${i?"active":""}`,onClick:s,"aria-current":i?"page":void 0,children:[e,x.jsx("span",{children:t}),n!==void 0&&x.jsx("b",{children:n})]})}const Ws=[["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 relevant experience before every 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.","更新记忆内容或元数据。"],["memory_delete","Soft-delete a memory.","软删除一条记忆。"],["memory_feedback","Record whether a memory was useful.","记录记忆是否有帮助的相关性信号。"]];function Bq(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 jq(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 Hq({items:e,selectedId:t,onSelect:n,language:i}){const s=Lr[i],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 x.jsx("div",{className:"timeline-stream",children:l.map(([u,c])=>x.jsxs("section",{className:"timeline-day",children:[x.jsxs("header",{className:"timeline-day-heading",children:[x.jsx("time",{children:Bq(u==="undated"?null:u,i)}),x.jsxs("span",{className:"mono",children:[c.length.toString().padStart(2,"0")," ",s.timelineItems]})]}),x.jsx("div",{className:"timeline-day-items",children:c.map(d=>{const h=d.occurred_at??d.created_at;return x.jsxs("button",{className:`timeline-event ${t===d.id?"selected":""}`,onClick:()=>n(d),children:[x.jsx("span",{className:"timeline-event-rail","aria-hidden":"true",children:x.jsx("span",{className:"timeline-dot"})}),x.jsxs("span",{className:"timeline-event-body",children:[x.jsxs("span",{className:"timeline-event-meta",children:[x.jsx("span",{className:`kind-badge kind-${d.kind}`,children:bu[i][d.kind]??d.kind}),x.jsx("time",{children:jq(h,i)})]}),x.jsx("strong",{children:d.content}),x.jsxs("span",{className:"timeline-event-context",children:[d.project??d.scope,x.jsx("span",{"aria-hidden":"true",children:"·"}),d.source??Lr[i].agentWritten]})]})]},d.id)})})]},u))})}const Uq={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:"让 Codex 在每项任务开始前读取相关经验。",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:"Have Codex read relevant experience before each task.",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 zq({language:e}){const t=Lr[e],n=Uq[e],[i,s]=C.useState(null),[l,u]=C.useState(null),[c,d]=C.useState(null),[h,m]=C.useState(null),[p,y]=C.useState(!1),[E,v]=C.useState(""),[S,A]=C.useState(null),[k,N]=C.useState(""),[w,D]=C.useState(!1),[F,O]=C.useState(""),[M,U]=C.useState([]),[$,H]=C.useState(""),[ee,X]=C.useState(Ws.map(([Q])=>Q)),[le,fe]=C.useState(null),[ie,B]=C.useState(!1),[K,oe]=C.useState(""),[Te,L]=C.useState(!1),[z,Z]=C.useState(null),[I,me]=C.useState(null),[xe,W]=C.useState(""),[ye,ge]=C.useState("connection"),ve=typeof window<"u"&&window.location.hostname?window.location.hostname:"127.0.0.1",Pe=typeof window<"u"?window.location.port:"",De=`http://${ve}:${Pe==="5173"||!Pe?"8765":Pe}/mcp/`,Ye=new Map(c?.tools.map(Q=>[Q.tool_name,Q.calls])??[]),rt=c?.total_calls?Math.round(c.successful_calls/c.total_calls*100):0;C.useEffect(()=>{fetch("/api/mcp/config").then(Q=>Q.json()).then(Q=>Z(Q.use_bearer_key!==!1)),fetch("/api/mcp/stats").then(Q=>Q.json()).then(d),fetch("/api/integrations/codex").then(Q=>Q.json()).then(m),fetch(`/api/integrations/codex/mcp?endpoint=${encodeURIComponent(De)}`).then(Q=>Q.json()).then(A),fetch("/api/mcp/keys").then(Q=>Q.json()).then(U)},[]),C.useEffect(()=>{const Q=M.filter(Se=>Se.secret);S?.configured_key_id?N(S.configured_key_id):Q.some(Se=>Se.id===k)||N(Q[0]?.id??"")},[S,k,M]);const pt=async Q=>{Z(Q),await fetch("/api/mcp/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({use_bearer_key:Q})});const Se=await fetch(`/api/integrations/codex/mcp?endpoint=${encodeURIComponent(De)}`);A(await Se.json())},ct=async(Q,Se)=>{try{if(!navigator.clipboard)throw new Error("clipboard_unavailable");await navigator.clipboard.writeText(Q),s(Se),u(n.copied),window.setTimeout(()=>s(null),1500),window.setTimeout(()=>u(null),2200)}catch{u(n.copyFailed),window.setTimeout(()=>u(null),2600)}},Vt=async()=>{y(!0),v("");try{const Q=await fetch("/api/integrations/codex/install",{method:"POST"});if(!Q.ok)throw new Error("install_failed");m(await Q.json()),v(n.codexGuidanceWritten)}catch{v(n.writeFailed)}finally{y(!1)}},Ut=async()=>{D(!0),O("");try{const Q=await fetch("/api/integrations/codex/mcp/install",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({endpoint:De,...z===!0?{key_id:k}:{}})});if(!Q.ok)throw new Error("install_failed");A(await Q.json()),O(n.codexWritten)}catch{O(n.codexWriteFailed)}finally{D(!1)}},xn=async()=>{B(!0),oe("");try{const Q=await fetch("/api/mcp/keys",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:$.trim()||n.unnamedKey,allowed_tools:ee})});if(!Q.ok)throw new Error("create_key_failed");const Se=await Q.json();U(Ie=>[Se.key_record,...Ie]),fe(Se.key),H("")}catch{oe(n.keyCreateFailed)}finally{B(!1)}},we=async Q=>{const Se=M.find(Fe=>Fe.id===Q);!Se||!window.confirm(n.keyDeleteConfirm(Se.name))||!(await fetch(`/api/mcp/keys/${Q}`,{method:"DELETE"})).ok||U(Fe=>Fe.filter(Yt=>Yt.id!==Q))},He=async Q=>{const Se=await fetch(`/api/mcp/keys/${Q}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({name:xe})});if(!Se.ok)return;const Ie=await Se.json();U(Fe=>Fe.map(Yt=>Yt.id===Q?Ie:Yt)),me(null)},At=le?JSON.stringify({mcpServers:{"memory-one":{type:"http",url:De,...z===!0?{headers:{Authorization:`Bearer ${le}`}}:{}}}},null,2):"",Ze=h?.status==="configured"?n.configured:h?.status==="update_available"?n.needUpdate:n.notConfigured,Je=h?.status==="update_available"?n.update:n.enabled,sn=S?.status==="configured"&&(z!==!0||S.configured_key_id===k),ue=S?.status==="configured"?n.configured:S?.status==="update_available"?n.needUpdate:n.notConfigured;return x.jsxs("div",{className:`mcp-page ${z===null?"mcp-loading":""}`,children:[l?x.jsxs("div",{className:`copy-feedback ${l===n.copyFailed?"error":""}`,role:"status",children:[l===n.copyFailed?x.jsx(oR,{size:14}):x.jsx(Ba,{size:14}),l]}):null,x.jsx("div",{className:"mcp-navigation",children:x.jsxs("nav",{className:"mcp-tabs",role:"tablist","aria-label":n.mcpPage,children:[x.jsxs("button",{className:ye==="connection"?"active":"",role:"tab","aria-selected":ye==="connection",onClick:()=>ge("connection"),children:[x.jsx(ff,{size:15}),n.connectionTab]}),x.jsxs("button",{className:ye==="usage"?"active":"",role:"tab","aria-selected":ye==="usage",onClick:()=>ge("usage"),children:[x.jsx(Lx,{size:15}),n.usageTab]})]})}),ye==="connection"&&x.jsxs("div",{className:"mcp-grid",role:"tabpanel",children:[x.jsxs("section",{className:"mcp-panel mcp-endpoint",children:[x.jsxs("div",{className:"mcp-panel-header",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:t.serverEndpoint}),x.jsx("h2",{children:t.mcpEndpoint})]}),x.jsx("button",{className:"icon-button",onClick:()=>ct(De,"endpoint"),title:t.mcpCopyEndpoint,children:i==="endpoint"?x.jsx(Ba,{size:16}):x.jsx(Km,{size:16})})]}),x.jsx("div",{className:"endpoint-value",children:De}),x.jsxs("div",{className:"endpoint-compact-meta",children:[x.jsxs("span",{children:[x.jsx("i",{className:"status-dot"}),n.streamable]}),x.jsxs("label",{className:"switch-label",children:[x.jsx("span",{children:n.bearer}),x.jsx("input",{type:"checkbox",checked:z===!0,disabled:z===null,onChange:Q=>pt(Q.target.checked)}),x.jsx("i",{})]})]})]}),x.jsxs("section",{className:"mcp-panel codex-mcp-panel",children:[x.jsx("span",{className:"eyebrow codex-compact-heading",children:"Codex"}),x.jsxs("div",{className:"codex-compact-list",children:[x.jsxs("section",{className:"codex-compact-row",children:[x.jsxs("div",{className:"codex-compact-copy",children:[x.jsxs("div",{className:"codex-compact-title",children:[x.jsx("strong",{children:n.codexConnection}),x.jsx("span",{className:`integration-status status-${S?.status??"loading"}`,children:S?ue:n.detecting})]}),x.jsx("p",{children:z===!0?n.chooseKey:z===!1?n.autoConnection:n.readingAuth}),F?x.jsx("div",{className:"integration-message",role:"status",children:F}):null]}),x.jsxs("div",{className:"codex-compact-actions",children:[z===!0?x.jsxs("select",{"aria-label":n.bearer,value:k,onChange:Q=>N(Q.target.value),disabled:!M.some(Q=>Q.secret),children:[M.filter(Q=>Q.secret).map(Q=>x.jsxs("option",{value:Q.id,children:[Q.name," · ",Q.prefix,"••••"]},Q.id)),M.some(Q=>Q.secret)?null:x.jsx("option",{value:"",children:n.createFirst})]}):null,x.jsxs("button",{className:"primary-button",disabled:z===null||!S||z===!0&&!k||w||sn,onClick:()=>{Ut()},children:[w?x.jsx(cf,{className:"spin",size:16}):x.jsx(ff,{size:16}),sn?n.configured:S?.status==="not_configured"?n.configure:n.update]})]})]}),x.jsxs("section",{className:"codex-compact-row",children:[x.jsxs("div",{className:"codex-compact-copy",children:[x.jsxs("div",{className:"codex-compact-title",children:[x.jsx("strong",{children:n.taskMemory}),x.jsx("span",{className:`integration-status status-${h?.status??"loading"}`,children:h?Ze:n.reading})]}),x.jsx("p",{children:n.taskMemoryDesc}),E?x.jsx("div",{className:"integration-message",role:"status",children:E}):null]}),x.jsxs("button",{className:"primary-button",disabled:!h||p||h.status==="configured",onClick:Vt,children:[p?x.jsx(cf,{className:"spin",size:16}):x.jsx(fR,{size:16}),h?.status==="configured"?n.enabled:Je]})]})]})]}),z===!0&&x.jsxs("section",{className:"mcp-keys",role:"region","aria-label":n.keyManage,children:[x.jsxs("div",{className:"mcp-tools-heading",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:n.access}),x.jsx("h2",{children:n.keyManage})]}),x.jsx(Hc,{size:18})]}),x.jsx("p",{className:"mcp-key-note",children:n.keyNote}),x.jsx("div",{className:"mcp-key-create",children:x.jsxs("button",{className:"primary-button",onClick:()=>L(!0),children:[x.jsx(Hc,{size:15}),n.createKey]})}),le?x.jsxs("div",{className:"mcp-key-secret",children:[x.jsx("strong",{children:n.keyCreated}),x.jsx("code",{children:le}),x.jsxs("div",{children:[x.jsx("button",{className:"icon-button",onClick:()=>ct(At,"key-config"),title:n.copyConfig,children:i==="key-config"?x.jsx(Ba,{size:16}):x.jsx(Km,{size:16})}),x.jsx("span",{children:i==="key-config"?n.copiedConfig:n.copyAuthConfig})]})]}):null,x.jsx("div",{className:"mcp-key-list",children:M.length?M.map(Q=>x.jsxs("div",{className:"mcp-key-row",children:[x.jsx(Hc,{size:15}),x.jsxs("div",{children:[I===Q.id?x.jsx("input",{className:"mcp-key-name-input",autoFocus:!0,value:xe,onChange:Se=>W(Se.target.value),onKeyDown:Se=>{Se.key==="Enter"&&He(Q.id),Se.key==="Escape"&&me(null)},onBlur:()=>{He(Q.id)}}):x.jsx("strong",{children:Q.name}),x.jsxs("code",{children:[Q.prefix,"••••••••"]}),x.jsxs("span",{children:[Q.allowed_tools.length?n.toolCount(Q.allowed_tools.length,Ws.length):n.allTools,Q.last_used_at?` · ${n.recent(nu(Q.last_used_at,e))}`:` · ${n.never}`]}),x.jsx("div",{className:"tool-chip-list key-tool-list",children:(Q.allowed_tools.length?Q.allowed_tools:Ws.map(([Se])=>Se)).map(Se=>x.jsx("span",{className:"tool-chip",children:Se},Se))})]}),x.jsxs("div",{className:"mcp-key-actions",children:[Q.secret?x.jsx("button",{className:"icon-button",onClick:()=>ct(Q.secret,`key-${Q.id}`),title:n.copyConfig,children:i===`key-${Q.id}`?x.jsx(Ba,{size:14}):x.jsx(Km,{size:14})}):null,x.jsx("button",{className:"icon-button",onClick:()=>{me(Q.id),W(Q.name)},title:n.rename,children:x.jsx(mR,{size:14})}),x.jsx("button",{className:"ghost-button",onClick:()=>{we(Q.id)},children:n.delete})]})]},Q.id)):x.jsx("p",{className:"mcp-key-empty",children:n.keyEmpty})})]})]}),Te&&x.jsx("div",{className:"modal-backdrop",role:"presentation",onMouseDown:Q=>{Q.target===Q.currentTarget&&L(!1)},children:x.jsxs("section",{className:"key-create-modal",role:"dialog","aria-modal":"true","aria-label":n.createKey,children:[x.jsxs("div",{className:"composer-header",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:n.accessEyebrow}),x.jsx("h2",{children:n.createMcpKey})]}),x.jsx("button",{className:"icon-button",onClick:()=>L(!1),title:n.close,"aria-label":n.close,children:x.jsx(Po,{size:18})})]}),x.jsxs("label",{className:"config-field",children:[x.jsx("span",{children:n.keyName}),x.jsx("input",{autoFocus:!0,value:$,onChange:Q=>H(Q.target.value),placeholder:n.keyPlaceholder})]}),x.jsxs("div",{className:"mcp-key-tools",children:[x.jsx("span",{className:"key-tools-label",children:n.allowTools}),x.jsx("div",{className:"key-tools-grid",children:Ws.map(([Q])=>x.jsxs("label",{children:[x.jsx("input",{type:"checkbox",checked:ee.includes(Q),onChange:Se=>X(Ie=>Se.target.checked?[...Ie,Q]:Ie.filter(Fe=>Fe!==Q))}),Q]},Q))})]}),x.jsxs("div",{className:"modal-actions",children:[x.jsx("button",{className:"ghost-button",onClick:()=>L(!1),children:t.cancel}),x.jsxs("button",{className:"primary-button",onClick:()=>{xn(),L(!1)},disabled:ie||ee.length===0,children:[ie?x.jsx(cf,{className:"spin",size:15}):x.jsx(Hc,{size:15}),n.createKey]})]}),K?x.jsx("p",{className:"integration-message",role:"alert",children:K}):null]})}),ye==="usage"&&x.jsxs(x.Fragment,{children:[x.jsxs("section",{className:"mcp-usage",role:"tabpanel",children:[x.jsxs("div",{className:"mcp-tools-heading",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:n.usage}),x.jsx("h2",{children:n.usageTitle})]}),x.jsx(Lx,{size:18})]}),x.jsxs("div",{className:"mcp-metrics",children:[x.jsx(Ua,{label:"TOTAL CALLS",value:c?String(c.total_calls):"--",note:n.total}),x.jsx(Ua,{label:"SUCCESS RATE",value:c?.total_calls?`${rt}%`:"--",note:c?n.failed(c.failed_calls):n.reading}),x.jsx(Ua,{label:"AVG LATENCY",value:c?.total_calls?`${c.average_duration_ms} ms`:"--",note:n.latency}),x.jsx(Ua,{label:"LAST CALL",value:c?.last_called_at?nu(c.last_called_at,e):n.none,note:n.lastCall,date:!0})]})]}),x.jsxs("section",{className:"mcp-tools",children:[x.jsxs("div",{className:"mcp-tools-heading",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:t.toolsLabel}),x.jsx("h2",{children:t.toolsTitle})]}),x.jsxs("span",{className:"tool-count",children:[Ws.length," ",t.toolsCount]})]}),x.jsx("div",{className:"tool-list",children:Ws.map(([Q,Se,Ie])=>x.jsxs("article",{className:"tool-row",children:[x.jsx("div",{className:"tool-icon",children:x.jsx(ff,{size:15})}),x.jsxs("div",{children:[x.jsx("strong",{children:Q}),x.jsx("span",{children:e==="zh"?Ie:Se})]}),x.jsxs("div",{className:"tool-meta",children:[x.jsxs("code",{children:[Ye.get(Q)??0," ",n.callCount]}),x.jsx("code",{children:t.http})]})]},Q))})]})]})]})}function Ua({label:e,value:t,note:n,date:i}){return x.jsxs("div",{className:"stat-card",children:[x.jsx("span",{className:"stat-label",children:e}),x.jsx("strong",{className:i?"stat-date":"",children:t}),x.jsx("span",{className:"stat-note",children:n})]})}function nv({item:e,selected:t,onClick:n,language:i}){const s=Lr[i],l=bu[i],u=Math.round(e.confidence*100);return x.jsxs("button",{className:`memory-card ${t?"selected":""}`,onClick:n,children:[x.jsxs("div",{className:"card-top",children:[x.jsx("span",{className:`kind-badge kind-${e.kind}`,children:l[e.kind]??e.kind}),x.jsx("span",{className:"card-date",children:nu(e.occurred_at??e.created_at,i)})]}),x.jsx("p",{children:e.content}),x.jsxs("div",{className:"card-bottom",children:[x.jsx("span",{children:e.project?x.jsxs(x.Fragment,{children:[x.jsx(qv,{size:13}),e.project]}):x.jsxs(x.Fragment,{children:[x.jsx($v,{size:13}),e.scope]})}),x.jsxs("span",{className:"recall-count",children:[e.recall_count??0,s.recallTimes]}),x.jsxs("span",{className:"confidence",children:[x.jsx("span",{className:"confidence-meter",children:x.jsx("i",{style:{width:`${u}%`}})}),x.jsx("span",{children:s.confidence}),x.jsxs("span",{children:[u,"%"]})]})]})]})}function Fq({item:e,language:t}){const n=Lr[t],i=bu[t];return x.jsxs("div",{className:"detail-body",children:[x.jsx("div",{className:`detail-kind kind-badge kind-${e.kind}`,children:i[e.kind]??e.kind}),e.kind==="preference"&&e.metadata.always_include===!0&&x.jsx("div",{className:"detail-kind kind-badge",children:n.persistentPreference}),x.jsx("h2",{children:e.content}),x.jsxs("div",{className:"detail-meta",children:[x.jsxs("div",{children:[x.jsx("span",{children:n.created}),x.jsx("strong",{children:nu(e.created_at,t)})]}),x.jsxs("div",{children:[x.jsx("span",{children:n.updated}),x.jsx("strong",{children:nu(e.updated_at,t)})]}),x.jsxs("div",{children:[x.jsx("span",{children:n.source}),x.jsx("strong",{children:e.source??n.agentWritten})]}),x.jsxs("div",{children:[x.jsx("span",{children:n.recallCount}),x.jsxs("strong",{children:[e.recall_count??0," ",n.times]})]})]}),x.jsxs("div",{className:"detail-section",children:[x.jsx("span",{className:"eyebrow",children:n.scope}),x.jsxs("div",{className:"scope-value",children:[x.jsx(z0,{size:15}),e.scope,e.project&&x.jsxs(x.Fragment,{children:[x.jsx("span",{children:"/"}),e.project]})]})]}),x.jsxs("div",{className:"detail-section",children:[x.jsx("span",{className:"eyebrow",children:n.signals}),x.jsx(rv,{label:n.importance,value:e.importance,language:t}),x.jsx(rv,{label:n.confidence,value:e.confidence,language:t})]})]})}function rv({label:e,value:t,language:n}){return x.jsxs("div",{className:"signal-row",children:[x.jsx("span",{children:e}),x.jsx("div",{className:"signal-track",children:x.jsx("span",{style:{width:`${Math.round(t*100)}%`}})}),x.jsxs("b",{children:[Math.round(t*100),"%"]})]})}function qq({language:e,onSelect:t}){const n=Lr[e],[i,s]=C.useState(e),[l,u]=C.useState(!1),[c,d]=C.useState(""),h=async()=>{u(!0),d("");try{await Promise.resolve(t(i))}catch{d(n.languageSaveFailed)}finally{u(!1)}};return x.jsx("div",{className:"modal-backdrop language-setup-backdrop",children:x.jsxs("section",{className:"language-setup",role:"dialog","aria-modal":"true","aria-labelledby":"language-setup-title",children:[x.jsx("span",{className:"eyebrow",children:"Memory One"}),x.jsx("h2",{id:"language-setup-title",children:n.setupTitle}),x.jsx("p",{children:n.setupDescription}),x.jsxs("div",{className:"language-options",children:[x.jsxs("button",{className:i==="zh"?"selected":"",onClick:()=>s("zh"),children:[x.jsx("strong",{children:"中文"}),x.jsx("span",{children:"简体中文"})]}),x.jsxs("button",{className:i==="en"?"selected":"",onClick:()=>s("en"),children:[x.jsx("strong",{children:"English"}),x.jsx("span",{children:"English"})]})]}),c?x.jsx("p",{className:"settings-message",role:"alert",children:c}):null,x.jsxs("button",{className:"primary-button language-continue",onClick:()=>{h()},disabled:l,children:[l?x.jsx(cf,{className:"spin",size:15}):x.jsx(Ba,{size:15}),n.continue]})]})})}function Vq({language:e,onLanguageChange:t,dark:n,onToggleTheme:i}){const s=Lr[e],[l,u]=C.useState(!1),[c,d]=C.useState(""),h=async m=>{if(m!==e){u(!0),d("");try{await Promise.resolve(t(m)),d(Lr[m].languageSaved)}catch{d(s.languageSaveFailed)}finally{u(!1)}}};return x.jsxs("div",{className:"settings-page",children:[x.jsx("section",{className:"page-heading",children:x.jsxs("div",{children:[x.jsxs("div",{className:"heading-kicker",children:[x.jsx("span",{className:"live-dot"}),s.localMemory]}),x.jsx("h1",{children:N0[e].settings.title}),x.jsx("p",{children:N0[e].settings.description})]})}),x.jsxs("section",{className:"config-panel settings-panel",children:[x.jsxs("div",{className:"config-panel-heading",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:s.languageTitle}),x.jsx("h2",{children:s.languageTitle})]}),x.jsx("span",{className:"language-current",children:e==="zh"?"中文":"English"})]}),x.jsxs("div",{className:"settings-row language-settings-row",children:[x.jsxs("span",{children:[x.jsx("strong",{children:s.languageTitle}),x.jsx("small",{children:s.languageDescription})]}),x.jsxs("div",{className:"language-switch",role:"group","aria-label":s.languageTitle,children:[x.jsx("button",{className:e==="zh"?"selected":"",onClick:()=>{h("zh")},disabled:l,children:"中文"}),x.jsx("button",{className:e==="en"?"selected":"",onClick:()=>{h("en")},disabled:l,children:"English"})]})]}),c?x.jsx("p",{className:"settings-message",role:"status",children:c}):null]}),x.jsxs("section",{className:"config-panel settings-panel",children:[x.jsxs("div",{className:"config-panel-heading",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:s.appearanceEyebrow}),x.jsx("h2",{children:s.appearance})]}),n?x.jsx(Vv,{size:19}):x.jsx(Yv,{size:19})]}),x.jsxs("div",{className:"settings-row",children:[x.jsxs("span",{children:[x.jsx("strong",{children:s.darkMode}),x.jsx("small",{children:s.darkModeDescription})]}),x.jsx("button",{className:"ghost-button",onClick:i,children:n?s.toggleLight:s.toggleDark})]})]}),x.jsxs("section",{className:"config-panel settings-panel",children:[x.jsxs("div",{className:"config-panel-heading",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:s.storageEyebrow}),x.jsx("h2",{children:s.localDatabase})]}),x.jsx(z0,{size:19})]}),x.jsxs("div",{className:"settings-storage",children:[x.jsx("span",{className:"status-dot"}),x.jsx("strong",{children:"SQLite"}),x.jsx("span",{children:s.storageNote})]})]})]})}function Yq({onClose:e,onCreate:t,language:n}){const i=Lr[n],s=bu[n],[l,u]=C.useState(""),[c,d]=C.useState("fact"),[h,m]=C.useState(""),[p,y]=C.useState(""),[E,v]=C.useState(!1);return C.useEffect(()=>{const S=A=>{A.key==="Escape"&&e()};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[e]),x.jsx("div",{className:"modal-backdrop",onMouseDown:S=>{S.target===S.currentTarget&&e()},children:x.jsxs("div",{className:"composer",role:"dialog","aria-modal":"true","aria-labelledby":"composer-title",children:[x.jsxs("div",{className:"composer-header",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:i.newMemoryEyebrow}),x.jsx("h2",{id:"composer-title",children:i.composerTitle})]}),x.jsx("button",{className:"icon-button",onClick:e,title:i.close,children:x.jsx(Po,{size:18})})]}),x.jsxs("label",{children:[i.content,x.jsx("textarea",{autoFocus:!0,value:l,onChange:S=>u(S.target.value),placeholder:i.contentPlaceholder,rows:5})]}),x.jsxs("div",{className:"composer-grid",children:[x.jsxs("label",{children:[i.type,x.jsx(Of,{value:c,onValueChange:d,options:PA.slice(1).map(S=>({value:S,label:s[S]})),ariaLabel:i.type,className:"composer-select"})]}),x.jsxs("label",{children:[i.scope,x.jsx("input",{value:h,onChange:S=>m(S.target.value),placeholder:i.scopeOptional})]})]}),c==="preference"&&x.jsxs("label",{children:[i.preferenceRecall,x.jsx(Of,{value:E?"persistent":"conditional",onValueChange:S=>v(S==="persistent"),options:[{value:"conditional",label:i.conditionalPreference},{value:"persistent",label:`${i.persistentPreference} · ${i.persistentPreferenceHint}`}],ariaLabel:i.preferenceRecall,className:"composer-select"})]}),x.jsxs("label",{children:[i.source,x.jsx("input",{value:p,onChange:S=>y(S.target.value),placeholder:i.sourcePlaceholder})]}),x.jsxs("div",{className:"composer-footer",children:[x.jsxs("span",{children:[x.jsx(Ba,{size:14}),i.writeLocal]}),x.jsxs("div",{children:[x.jsx("button",{className:"ghost-button",onClick:e,children:i.cancel}),x.jsxs("button",{className:"primary-button",disabled:!l.trim(),onClick:()=>t({content:l,kind:c,project:h,source:p,alwaysInclude:E}),children:[i.save," ",x.jsx(Fv,{size:15})]})]})]})]})})}lN.createRoot(document.getElementById("root")).render(x.jsx(pl.StrictMode,{children:x.jsx(J6,{router:Mq})}));const $q=Object.freeze(Object.defineProperty({__proto__:null,Mermaid:MA},Symbol.toStringTag,{value:"Module"}));export{Jq as E,an as S,iF as c,x as j,C as r};
|