hermium 0.3.3 → 0.3.4

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.
Files changed (58) hide show
  1. package/dist/public/assets/js/ChatInputBlock-BNWxaUZs.js +1 -0
  2. package/dist/public/assets/js/MarkdownMessage-Dj4H-Hot.js +1 -0
  3. package/dist/public/assets/js/chat._sessionId-CdFGOM3V.js +1 -0
  4. package/dist/public/assets/js/chat.index-BjoDk7Pf.js +1 -0
  5. package/dist/public/assets/js/index-CGA2_Unz.js +1 -0
  6. package/dist/public/assets/js/index-C_aaviLR.js +60 -0
  7. package/dist/public/assets/js/memory-BE78tPkH.js +3 -0
  8. package/dist/public/assets/js/settings-RFphMDu9.js +1 -0
  9. package/dist/public/assets/js/skills-BNq1laCc.js +1 -0
  10. package/dist/public/assets/js/usage-CLJFoVEz.js +1 -0
  11. package/dist/server/_ssr/{ChatInputBlock-BTSt3ldw.mjs → ChatInputBlock-CrbSl9-U.mjs} +1 -1
  12. package/dist/server/_ssr/{MarkdownMessage-DzImLKnw.mjs → MarkdownMessage-DXbASNGx.mjs} +1 -1
  13. package/dist/server/_ssr/{chat._sessionId-CUSsvbBX.mjs → chat._sessionId-iub1hqTX.mjs} +4 -4
  14. package/dist/server/_ssr/{chat.index-YqIyLr2b.mjs → chat.index-QiK175_4.mjs} +1 -1
  15. package/dist/server/_ssr/{index--T6rScER.mjs → index-B981awUw.mjs} +2 -2
  16. package/dist/server/_ssr/{index-Be17Jodh.mjs → index-CKVADumM.mjs} +2 -2
  17. package/dist/server/_ssr/{memory-DLVdk8UN.mjs → memory-C1B4dJi_.mjs} +3 -3
  18. package/dist/server/_ssr/{router-C0m-TE_e.mjs → router-BNU46tgz.mjs} +35 -10
  19. package/dist/server/_ssr/{skills-DAVualEA.mjs → skills-BK-0zOm1.mjs} +5 -34
  20. package/dist/server/_ssr/{usage-CCOujow3.mjs → usage-DEWJSXAs.mjs} +1 -1
  21. package/dist/server/_tanstack-start-manifest_v-DZ_z1QIO.mjs +4 -0
  22. package/dist/server/index.mjs +107 -121
  23. package/dist/server/public/assets/js/ChatInputBlock-BNWxaUZs.js +1 -0
  24. package/dist/server/public/assets/js/MarkdownMessage-Dj4H-Hot.js +1 -0
  25. package/dist/server/public/assets/js/chat._sessionId-CdFGOM3V.js +1 -0
  26. package/dist/server/public/assets/js/chat.index-BjoDk7Pf.js +1 -0
  27. package/dist/server/public/assets/js/index-CGA2_Unz.js +1 -0
  28. package/dist/server/public/assets/js/index-C_aaviLR.js +60 -0
  29. package/dist/server/public/assets/js/memory-BE78tPkH.js +3 -0
  30. package/dist/server/public/assets/js/settings-RFphMDu9.js +1 -0
  31. package/dist/server/public/assets/js/skills-BNq1laCc.js +1 -0
  32. package/dist/server/public/assets/js/usage-CLJFoVEz.js +1 -0
  33. package/package.json +1 -1
  34. package/dist/public/assets/js/ChatInputBlock-D4CYR2D_.js +0 -1
  35. package/dist/public/assets/js/MarkdownMessage-Bu4diQAT.js +0 -1
  36. package/dist/public/assets/js/base-ui-DKZpRETY.js +0 -1
  37. package/dist/public/assets/js/chat._sessionId-IyYhnI65.js +0 -1
  38. package/dist/public/assets/js/chat.index-CdO1bi1g.js +0 -1
  39. package/dist/public/assets/js/index-CGq67I5U.js +0 -60
  40. package/dist/public/assets/js/index-CYDXRqze.js +0 -1
  41. package/dist/public/assets/js/memory-BC-tVM26.js +0 -3
  42. package/dist/public/assets/js/router-Cdi9aGOg.js +0 -1
  43. package/dist/public/assets/js/settings-CthZPCPZ.js +0 -1
  44. package/dist/public/assets/js/skills-COr12qk7.js +0 -1
  45. package/dist/public/assets/js/usage-oWmLZ5Lt.js +0 -1
  46. package/dist/server/_tanstack-start-manifest_v-wG3l04YA.mjs +0 -4
  47. package/dist/server/public/assets/js/ChatInputBlock-D4CYR2D_.js +0 -1
  48. package/dist/server/public/assets/js/MarkdownMessage-Bu4diQAT.js +0 -1
  49. package/dist/server/public/assets/js/base-ui-DKZpRETY.js +0 -1
  50. package/dist/server/public/assets/js/chat._sessionId-IyYhnI65.js +0 -1
  51. package/dist/server/public/assets/js/chat.index-CdO1bi1g.js +0 -1
  52. package/dist/server/public/assets/js/index-CGq67I5U.js +0 -60
  53. package/dist/server/public/assets/js/index-CYDXRqze.js +0 -1
  54. package/dist/server/public/assets/js/memory-BC-tVM26.js +0 -3
  55. package/dist/server/public/assets/js/router-Cdi9aGOg.js +0 -1
  56. package/dist/server/public/assets/js/settings-CthZPCPZ.js +0 -1
  57. package/dist/server/public/assets/js/skills-COr12qk7.js +0 -1
  58. package/dist/server/public/assets/js/usage-oWmLZ5Lt.js +0 -1
@@ -0,0 +1,60 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/skills-BNq1laCc.js","assets/js/MarkdownMessage-Dj4H-Hot.js","assets/js/memory-BE78tPkH.js","assets/js/index-CGA2_Unz.js","assets/js/ChatInputBlock-BNWxaUZs.js","assets/js/chat._sessionId-CdFGOM3V.js"])))=>i.map(i=>d[i]);
2
+ function AA(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(i,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Sd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wh={exports:{}},Wl={};var SE;function OA(){if(SE)return Wl;SE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,a,l){var c=null;if(l!==void 0&&(c=""+l),a.key!==void 0&&(c=""+a.key),"key"in a){l={};for(var u in a)u!=="key"&&(l[u]=a[u])}else l=a;return a=l.ref,{$$typeof:e,type:i,key:c,ref:a!==void 0?a:null,props:l}}return Wl.Fragment=t,Wl.jsx=n,Wl.jsxs=n,Wl}var xE;function MA(){return xE||(xE=1,Wh.exports=OA()),Wh.exports}var F=MA(),Zh={exports:{}},lt={};var _E;function NA(){if(_E)return lt;_E=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function y(D){return D===null||typeof D!="object"?null:(D=b&&D[b]||D["@@iterator"],typeof D=="function"?D:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,x={};function S(D,Z,z){this.props=D,this.context=Z,this.refs=x,this.updater=z||E}S.prototype.isReactComponent={},S.prototype.setState=function(D,Z){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,Z,"setState")},S.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function C(){}C.prototype=S.prototype;function k(D,Z,z){this.props=D,this.context=Z,this.refs=x,this.updater=z||E}var O=k.prototype=new C;O.constructor=k,_(O,S.prototype),O.isPureReactComponent=!0;var N=Array.isArray;function R(){}var P={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function G(D,Z,z){var le=z.ref;return{$$typeof:e,type:D,key:Z,ref:le!==void 0?le:null,props:z}}function U(D,Z){return G(D.type,Z,D.props)}function X(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function $(D){var Z={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(z){return Z[z]})}var W=/\/+/g;function V(D,Z){return typeof D=="object"&&D!==null&&D.key!=null?$(""+D.key):Z.toString(36)}function H(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(R,R):(D.status="pending",D.then(function(Z){D.status==="pending"&&(D.status="fulfilled",D.value=Z)},function(Z){D.status==="pending"&&(D.status="rejected",D.reason=Z)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function B(D,Z,z,le,ce){var ae=typeof D;(ae==="undefined"||ae==="boolean")&&(D=null);var be=!1;if(D===null)be=!0;else switch(ae){case"bigint":case"string":case"number":be=!0;break;case"object":switch(D.$$typeof){case e:case t:be=!0;break;case h:return be=D._init,B(be(D._payload),Z,z,le,ce)}}if(be)return ce=ce(D),be=le===""?"."+V(D,0):le,N(ce)?(z="",be!=null&&(z=be.replace(W,"$&/")+"/"),B(ce,Z,z,"",function(De){return De})):ce!=null&&(X(ce)&&(ce=U(ce,z+(ce.key==null||D&&D.key===ce.key?"":(""+ce.key).replace(W,"$&/")+"/")+be)),Z.push(ce)),1;be=0;var Ee=le===""?".":le+":";if(N(D))for(var ye=0;ye<D.length;ye++)le=D[ye],ae=Ee+V(le,ye),be+=B(le,Z,z,ae,ce);else if(ye=y(D),typeof ye=="function")for(D=ye.call(D),ye=0;!(le=D.next()).done;)le=le.value,ae=Ee+V(le,ye++),be+=B(le,Z,z,ae,ce);else if(ae==="object"){if(typeof D.then=="function")return B(H(D),Z,z,le,ce);throw Z=String(D),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return be}function q(D,Z,z){if(D==null)return D;var le=[],ce=0;return B(D,le,"","",function(ae){return Z.call(z,ae,ce++)}),le}function Q(D){if(D._status===-1){var Z=D._result;Z=Z(),Z.then(function(z){(D._status===0||D._status===-1)&&(D._status=1,D._result=z)},function(z){(D._status===0||D._status===-1)&&(D._status=2,D._result=z)}),D._status===-1&&(D._status=0,D._result=Z)}if(D._status===1)return D._result.default;throw D._result}var ee=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},M={map:q,forEach:function(D,Z,z){q(D,function(){Z.apply(this,arguments)},z)},count:function(D){var Z=0;return q(D,function(){Z++}),Z},toArray:function(D){return q(D,function(Z){return Z})||[]},only:function(D){if(!X(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return lt.Activity=g,lt.Children=M,lt.Component=S,lt.Fragment=n,lt.Profiler=a,lt.PureComponent=k,lt.StrictMode=i,lt.Suspense=p,lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,lt.__COMPILER_RUNTIME={__proto__:null,c:function(D){return P.H.useMemoCache(D)}},lt.cache=function(D){return function(){return D.apply(null,arguments)}},lt.cacheSignal=function(){return null},lt.cloneElement=function(D,Z,z){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var le=_({},D.props),ce=D.key;if(Z!=null)for(ae in Z.key!==void 0&&(ce=""+Z.key),Z)!I.call(Z,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&Z.ref===void 0||(le[ae]=Z[ae]);var ae=arguments.length-2;if(ae===1)le.children=z;else if(1<ae){for(var be=Array(ae),Ee=0;Ee<ae;Ee++)be[Ee]=arguments[Ee+2];le.children=be}return G(D.type,ce,le)},lt.createContext=function(D){return D={$$typeof:c,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:l,_context:D},D},lt.createElement=function(D,Z,z){var le,ce={},ae=null;if(Z!=null)for(le in Z.key!==void 0&&(ae=""+Z.key),Z)I.call(Z,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(ce[le]=Z[le]);var be=arguments.length-2;if(be===1)ce.children=z;else if(1<be){for(var Ee=Array(be),ye=0;ye<be;ye++)Ee[ye]=arguments[ye+2];ce.children=Ee}if(D&&D.defaultProps)for(le in be=D.defaultProps,be)ce[le]===void 0&&(ce[le]=be[le]);return G(D,ae,ce)},lt.createRef=function(){return{current:null}},lt.forwardRef=function(D){return{$$typeof:u,render:D}},lt.isValidElement=X,lt.lazy=function(D){return{$$typeof:h,_payload:{_status:-1,_result:D},_init:Q}},lt.memo=function(D,Z){return{$$typeof:d,type:D,compare:Z===void 0?null:Z}},lt.startTransition=function(D){var Z=P.T,z={};P.T=z;try{var le=D(),ce=P.S;ce!==null&&ce(z,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(R,ee)}catch(ae){ee(ae)}finally{Z!==null&&z.types!==null&&(Z.types=z.types),P.T=Z}},lt.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},lt.use=function(D){return P.H.use(D)},lt.useActionState=function(D,Z,z){return P.H.useActionState(D,Z,z)},lt.useCallback=function(D,Z){return P.H.useCallback(D,Z)},lt.useContext=function(D){return P.H.useContext(D)},lt.useDebugValue=function(){},lt.useDeferredValue=function(D,Z){return P.H.useDeferredValue(D,Z)},lt.useEffect=function(D,Z){return P.H.useEffect(D,Z)},lt.useEffectEvent=function(D){return P.H.useEffectEvent(D)},lt.useId=function(){return P.H.useId()},lt.useImperativeHandle=function(D,Z,z){return P.H.useImperativeHandle(D,Z,z)},lt.useInsertionEffect=function(D,Z){return P.H.useInsertionEffect(D,Z)},lt.useLayoutEffect=function(D,Z){return P.H.useLayoutEffect(D,Z)},lt.useMemo=function(D,Z){return P.H.useMemo(D,Z)},lt.useOptimistic=function(D,Z){return P.H.useOptimistic(D,Z)},lt.useReducer=function(D,Z,z){return P.H.useReducer(D,Z,z)},lt.useRef=function(D){return P.H.useRef(D)},lt.useState=function(D){return P.H.useState(D)},lt.useSyncExternalStore=function(D,Z,z){return P.H.useSyncExternalStore(D,Z,z)},lt.useTransition=function(){return P.H.useTransition()},lt.version="19.2.6",lt}var wE;function Nc(){return wE||(wE=1,Zh.exports=NA()),Zh.exports}var A=Nc();const pi=Sd(A),y_=AA({__proto__:null,default:pi},[A]);var Qh={exports:{}},Zl={},Jh={exports:{}},eg={};var RE;function IA(){return RE||(RE=1,(function(e){function t(B,q){var Q=B.length;B.push(q);e:for(;0<Q;){var ee=Q-1>>>1,M=B[ee];if(0<a(M,q))B[ee]=q,B[Q]=M,Q=ee;else break e}}function n(B){return B.length===0?null:B[0]}function i(B){if(B.length===0)return null;var q=B[0],Q=B.pop();if(Q!==q){B[0]=Q;e:for(var ee=0,M=B.length,D=M>>>1;ee<D;){var Z=2*(ee+1)-1,z=B[Z],le=Z+1,ce=B[le];if(0>a(z,Q))le<M&&0>a(ce,z)?(B[ee]=ce,B[le]=Q,ee=le):(B[ee]=z,B[Z]=Q,ee=Z);else if(le<M&&0>a(ce,Q))B[ee]=ce,B[le]=Q,ee=le;else break e}}return q}function a(B,q){var Q=B.sortIndex-q.sortIndex;return Q!==0?Q:B.id-q.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 c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var p=[],d=[],h=1,g=null,b=3,y=!1,E=!1,_=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function O(B){for(var q=n(d);q!==null;){if(q.callback===null)i(d);else if(q.startTime<=B)i(d),q.sortIndex=q.expirationTime,t(p,q);else break;q=n(d)}}function N(B){if(_=!1,O(B),!E)if(n(p)!==null)E=!0,R||(R=!0,$());else{var q=n(d);q!==null&&H(N,q.startTime-B)}}var R=!1,P=-1,I=5,G=-1;function U(){return x?!0:!(e.unstable_now()-G<I)}function X(){if(x=!1,R){var B=e.unstable_now();G=B;var q=!0;try{e:{E=!1,_&&(_=!1,C(P),P=-1),y=!0;var Q=b;try{t:{for(O(B),g=n(p);g!==null&&!(g.expirationTime>B&&U());){var ee=g.callback;if(typeof ee=="function"){g.callback=null,b=g.priorityLevel;var M=ee(g.expirationTime<=B);if(B=e.unstable_now(),typeof M=="function"){g.callback=M,O(B),q=!0;break t}g===n(p)&&i(p),O(B)}else i(p);g=n(p)}if(g!==null)q=!0;else{var D=n(d);D!==null&&H(N,D.startTime-B),q=!1}}break e}finally{g=null,b=Q,y=!1}q=void 0}}finally{q?$():R=!1}}}var $;if(typeof k=="function")$=function(){k(X)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,V=W.port2;W.port1.onmessage=X,$=function(){V.postMessage(null)}}else $=function(){S(X,0)};function H(B,q){P=S(function(){B(e.unstable_now())},q)}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"):I=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(B){switch(b){case 1:case 2:case 3:var q=3;break;default:q=b}var Q=b;b=q;try{return B()}finally{b=Q}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(B,q){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var Q=b;b=B;try{return q()}finally{b=Q}},e.unstable_scheduleCallback=function(B,q,Q){var ee=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ee+Q:ee):Q=ee,B){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=Q+M,B={id:h++,callback:q,priorityLevel:B,startTime:Q,expirationTime:M,sortIndex:-1},Q>ee?(B.sortIndex=Q,t(d,B),n(p)===null&&B===n(d)&&(_?(C(P),P=-1):_=!0,H(N,Q-ee))):(B.sortIndex=M,t(p,B),E||y||(E=!0,R||(R=!0,$()))),B},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(B){var q=b;return function(){var Q=b;b=q;try{return B.apply(this,arguments)}finally{b=Q}}}})(eg)),eg}var TE;function DA(){return TE||(TE=1,Jh.exports=IA()),Jh.exports}var tg={exports:{}},Xn={};var CE;function LA(){if(CE)return Xn;CE=1;var e=Nc();function t(p){var d="https://react.dev/errors/"+p;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)d+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+p+"; visit "+d+" 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},a=Symbol.for("react.portal");function l(p,d,h){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:g==null?null:""+g,children:p,containerInfo:d,implementation:h}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(p,d){if(p==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Xn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Xn.createPortal=function(p,d){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return l(p,d,null,h)},Xn.flushSync=function(p){var d=c.T,h=i.p;try{if(c.T=null,i.p=2,p)return p()}finally{c.T=d,i.p=h,i.d.f()}},Xn.preconnect=function(p,d){typeof p=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,i.d.C(p,d))},Xn.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},Xn.preinit=function(p,d){if(typeof p=="string"&&d&&typeof d.as=="string"){var h=d.as,g=u(h,d.crossOrigin),b=typeof d.integrity=="string"?d.integrity:void 0,y=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;h==="style"?i.d.S(p,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:y}):h==="script"&&i.d.X(p,{crossOrigin:g,integrity:b,fetchPriority:y,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Xn.preinitModule=function(p,d){if(typeof p=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var h=u(d.as,d.crossOrigin);i.d.M(p,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&i.d.M(p)},Xn.preload=function(p,d){if(typeof p=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var h=d.as,g=u(h,d.crossOrigin);i.d.L(p,h,{crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Xn.preloadModule=function(p,d){if(typeof p=="string")if(d){var h=u(d.as,d.crossOrigin);i.d.m(p,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else i.d.m(p)},Xn.requestFormReset=function(p){i.d.r(p)},Xn.unstable_batchedUpdates=function(p,d){return p(d)},Xn.useFormState=function(p,d,h){return c.H.useFormState(p,d,h)},Xn.useFormStatus=function(){return c.H.useHostTransitionStatus()},Xn.version="19.2.6",Xn}var kE;function v_(){if(kE)return tg.exports;kE=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(),tg.exports=LA(),tg.exports}var AE;function PA(){if(AE)return Zl;AE=1;var e=DA(),t=Nc(),n=v_();function i(r){var o="https://react.dev/errors/"+r;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)o+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function l(r){var o=r,s=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(s=o.return),r=o.return;while(r)}return o.tag===3?s:null}function c(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function u(r){if(r.tag===31){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function p(r){if(l(r)!==r)throw Error(i(188))}function d(r){var o=r.alternate;if(!o){if(o=l(r),o===null)throw Error(i(188));return o!==r?null:r}for(var s=r,f=o;;){var m=s.return;if(m===null)break;var v=m.alternate;if(v===null){if(f=m.return,f!==null){s=f;continue}break}if(m.child===v.child){for(v=m.child;v;){if(v===s)return p(m),r;if(v===f)return p(m),o;v=v.sibling}throw Error(i(188))}if(s.return!==f.return)s=m,f=v;else{for(var w=!1,L=m.child;L;){if(L===s){w=!0,s=m,f=v;break}if(L===f){w=!0,f=m,s=v;break}L=L.sibling}if(!w){for(L=v.child;L;){if(L===s){w=!0,s=v,f=m;break}if(L===f){w=!0,f=v,s=m;break}L=L.sibling}if(!w)throw Error(i(189))}}if(s.alternate!==f)throw Error(i(190))}if(s.tag!==3)throw Error(i(188));return s.stateNode.current===s?r:o}function h(r){var o=r.tag;if(o===5||o===26||o===27||o===6)return r;for(r=r.child;r!==null;){if(o=h(r),o!==null)return o;r=r.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),k=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function $(r){return r===null||typeof r!="object"?null:(r=X&&r[X]||r["@@iterator"],typeof r=="function"?r:null)}var W=Symbol.for("react.client.reference");function V(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===W?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case _:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case N:return"Suspense";case R:return"SuspenseList";case G:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case E:return"Portal";case k:return r.displayName||"Context";case C:return(r._context.displayName||"Context")+".Consumer";case O:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case P:return o=r.displayName||null,o!==null?o:V(r.type)||"Memo";case I:o=r._payload,r=r._init;try{return V(r(o))}catch{}}return null}var H=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ee=[],M=-1;function D(r){return{current:r}}function Z(r){0>M||(r.current=ee[M],ee[M]=null,M--)}function z(r,o){M++,ee[M]=r.current,r.current=o}var le=D(null),ce=D(null),ae=D(null),be=D(null);function Ee(r,o){switch(z(ae,o),z(ce,r),z(le,null),o.nodeType){case 9:case 11:r=(r=o.documentElement)&&(r=r.namespaceURI)?$0(r):0;break;default:if(r=o.tagName,o=o.namespaceURI)o=$0(o),r=q0(o,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}Z(le),z(le,r)}function ye(){Z(le),Z(ce),Z(ae)}function De(r){r.memoizedState!==null&&z(be,r);var o=le.current,s=q0(o,r.type);o!==s&&(z(ce,r),z(le,s))}function qe(r){ce.current===r&&(Z(le),Z(ce)),be.current===r&&(Z(be),Vl._currentValue=Q)}var Te,$e;function Xe(r){if(Te===void 0)try{throw Error()}catch(s){var o=s.stack.trim().match(/\n( *(at )?)/);Te=o&&o[1]||"",$e=-1<s.stack.indexOf(`
3
+ at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
4
+ `+Te+r+$e}var at=!1;function Se(r,o){if(!r||at)return"";at=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(o){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(se){var oe=se}Reflect.construct(r,[],he)}else{try{he.call()}catch(se){oe=se}r.call(he.prototype)}}else{try{throw Error()}catch(se){oe=se}(he=r())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(se){if(se&&oe&&typeof se.stack=="string")return[se.stack,oe.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=f.DetermineComponentFrameRoot(),w=v[0],L=v[1];if(w&&L){var K=w.split(`
5
+ `),ie=L.split(`
6
+ `);for(m=f=0;f<K.length&&!K[f].includes("DetermineComponentFrameRoot");)f++;for(;m<ie.length&&!ie[m].includes("DetermineComponentFrameRoot");)m++;if(f===K.length||m===ie.length)for(f=K.length-1,m=ie.length-1;1<=f&&0<=m&&K[f]!==ie[m];)m--;for(;1<=f&&0<=m;f--,m--)if(K[f]!==ie[m]){if(f!==1||m!==1)do if(f--,m--,0>m||K[f]!==ie[m]){var de=`
7
+ `+K[f].replace(" at new "," at ");return r.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",r.displayName)),de}while(1<=f&&0<=m);break}}}finally{at=!1,Error.prepareStackTrace=s}return(s=r?r.displayName||r.name:"")?Xe(s):""}function Ne(r,o){switch(r.tag){case 26:case 27:case 5:return Xe(r.type);case 16:return Xe("Lazy");case 13:return r.child!==o&&o!==null?Xe("Suspense Fallback"):Xe("Suspense");case 19:return Xe("SuspenseList");case 0:case 15:return Se(r.type,!1);case 11:return Se(r.type.render,!1);case 1:return Se(r.type,!0);case 31:return Xe("Activity");default:return""}}function ze(r){try{var o="",s=null;do o+=Ne(r,s),s=r,r=r.return;while(r);return o}catch(f){return`
8
+ Error generating stack: `+f.message+`
9
+ `+f.stack}}var ke=Object.prototype.hasOwnProperty,Fe=e.unstable_scheduleCallback,me=e.unstable_cancelCallback,Ae=e.unstable_shouldYield,ge=e.unstable_requestPaint,ve=e.unstable_now,Ce=e.unstable_getCurrentPriorityLevel,ne=e.unstable_ImmediatePriority,ue=e.unstable_UserBlockingPriority,Ie=e.unstable_NormalPriority,Ve=e.unstable_LowPriority,it=e.unstable_IdlePriority,He=e.log,We=e.unstable_setDisableYieldValue,ut=null,At=null;function rn(r){if(typeof He=="function"&&We(r),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(ut,r)}catch{}}var xt=Math.clz32?Math.clz32:cn,On=Math.log,st=Math.LN2;function cn(r){return r>>>=0,r===0?32:31-(On(r)/st|0)|0}var Sn=256,gn=262144,zn=4194304;function Wt(r){var o=r&42;if(o!==0)return o;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 Y(r,o,s){var f=r.pendingLanes;if(f===0)return 0;var m=0,v=r.suspendedLanes,w=r.pingedLanes;r=r.warmLanes;var L=f&134217727;return L!==0?(f=L&~v,f!==0?m=Wt(f):(w&=L,w!==0?m=Wt(w):s||(s=L&~r,s!==0&&(m=Wt(s))))):(L=f&~v,L!==0?m=Wt(L):w!==0?m=Wt(w):s||(s=f&~r,s!==0&&(m=Wt(s)))),m===0?0:o!==0&&o!==m&&(o&v)===0&&(v=m&-m,s=o&-o,v>=s||v===32&&(s&4194048)!==0)?o:m}function fe(r,o){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&o)===0}function we(r,o){switch(r){case 1:case 2:case 4:case 8:case 64:return o+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 o+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 tt(){var r=zn;return zn<<=1,(zn&62914560)===0&&(zn=4194304),r}function zt(r){for(var o=[],s=0;31>s;s++)o.push(r);return o}function Dt(r,o){r.pendingLanes|=o,o!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function Ue(r,o,s,f,m,v){var w=r.pendingLanes;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=s,r.entangledLanes&=s,r.errorRecoveryDisabledLanes&=s,r.shellSuspendCounter=0;var L=r.entanglements,K=r.expirationTimes,ie=r.hiddenUpdates;for(s=w&~s;0<s;){var de=31-xt(s),he=1<<de;L[de]=0,K[de]=-1;var oe=ie[de];if(oe!==null)for(ie[de]=null,de=0;de<oe.length;de++){var se=oe[de];se!==null&&(se.lane&=-536870913)}s&=~he}f!==0&&Oe(r,f,0),v!==0&&m===0&&r.tag!==0&&(r.suspendedLanes|=v&~(w&~o))}function Oe(r,o,s){r.pendingLanes|=o,r.suspendedLanes&=~o;var f=31-xt(o);r.entangledLanes|=o,r.entanglements[f]=r.entanglements[f]|1073741824|s&261930}function Je(r,o){var s=r.entangledLanes|=o;for(r=r.entanglements;s;){var f=31-xt(s),m=1<<f;m&o|r[f]&o&&(r[f]|=o),s&=~m}}function sn(r,o){var s=o&-o;return s=(s&42)!==0?1:Zt(s),(s&(r.suspendedLanes|o))!==0?0:s}function Zt(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 tr(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function no(){var r=q.p;return r!==0?r:(r=window.event,r===void 0?32:hE(r.type))}function ro(r,o){var s=q.p;try{return q.p=r,o()}finally{q.p=s}}var Br=Math.random().toString(36).slice(2),mn="__reactFiber$"+Br,Yn="__reactProps$"+Br,io="__reactContainer$"+Br,rl="__reactEvents$"+Br,Vc="__reactListeners$"+Br,Ya="__reactHandles$"+Br,Yc="__reactResources$"+Br,ta="__reactMarker$"+Br;function il(r){delete r[mn],delete r[Yn],delete r[rl],delete r[Vc],delete r[Ya]}function nr(r){var o=r[mn];if(o)return o;for(var s=r.parentNode;s;){if(o=s[io]||s[mn]){if(s=o.alternate,o.child!==null||s!==null&&s.child!==null)for(r=Q0(r);r!==null;){if(s=r[mn])return s;r=Q0(r)}return o}r=s,s=r.parentNode}return null}function _i(r){if(r=r[mn]||r[io]){var o=r.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return r}return null}function oo(r){var o=r.tag;if(o===5||o===26||o===27||o===6)return r.stateNode;throw Error(i(33))}function ao(r){var o=r[Yc];return o||(o=r[Yc]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function xn(r){r[ta]=!0}var Kc=new Set,na={};function wi(r,o){xe(r,o),xe(r+"Capture",o)}function xe(r,o){for(na[r]=o,r=0;r<o.length;r++)Kc.add(o[r])}var Ke=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]*$"),bt={},Bt={};function bn(r){return ke.call(Bt,r)?!0:ke.call(bt,r)?!1:Ke.test(r)?Bt[r]=!0:(bt[r]=!0,!1)}function Kn(r,o,s){if(bn(o))if(s===null)r.removeAttribute(o);else{switch(typeof s){case"undefined":case"function":case"symbol":r.removeAttribute(o);return;case"boolean":var f=o.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){r.removeAttribute(o);return}}r.setAttribute(o,""+s)}}function wr(r,o,s){if(s===null)r.removeAttribute(o);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttribute(o,""+s)}}function lr(r,o,s,f){if(f===null)r.removeAttribute(s);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(s);return}r.setAttributeNS(o,s,""+f)}}function Qt(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Rr(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Xc(r,o,s){var f=Object.getOwnPropertyDescriptor(r.constructor.prototype,o);if(!r.hasOwnProperty(o)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var m=f.get,v=f.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return m.call(this)},set:function(w){s=""+w,v.call(this,w)}}),Object.defineProperty(r,o,{enumerable:f.enumerable}),{getValue:function(){return s},setValue:function(w){s=""+w},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function Ka(r){if(!r._valueTracker){var o=Rr(r)?"checked":"value";r._valueTracker=Xc(r,o,""+r[o])}}function ol(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var s=o.getValue(),f="";return r&&(f=Rr(r)?r.checked?"true":"false":r.value),r=f,r!==s?(o.setValue(r),!0):!1}function Xa(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 Xd=/[\n"\\]/g;function cr(r){return r.replace(Xd,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function al(r,o,s,f,m,v,w,L){r.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?r.type=w:r.removeAttribute("type"),o!=null?w==="number"?(o===0&&r.value===""||r.value!=o)&&(r.value=""+Qt(o)):r.value!==""+Qt(o)&&(r.value=""+Qt(o)):w!=="submit"&&w!=="reset"||r.removeAttribute("value"),o!=null?Wa(r,w,Qt(o)):s!=null?Wa(r,w,Qt(s)):f!=null&&r.removeAttribute("value"),m==null&&v!=null&&(r.defaultChecked=!!v),m!=null&&(r.checked=m&&typeof m!="function"&&typeof m!="symbol"),L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?r.name=""+Qt(L):r.removeAttribute("name")}function ra(r,o,s,f,m,v,w,L){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(r.type=v),o!=null||s!=null){if(!(v!=="submit"&&v!=="reset"||o!=null)){Ka(r);return}s=s!=null?""+Qt(s):"",o=o!=null?""+Qt(o):s,L||o===r.value||(r.value=o),r.defaultValue=o}f=f??m,f=typeof f!="function"&&typeof f!="symbol"&&!!f,r.checked=L?r.checked:!!f,r.defaultChecked=!!f,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(r.name=w),Ka(r)}function Wa(r,o,s){o==="number"&&Xa(r.ownerDocument)===r||r.defaultValue===""+s||(r.defaultValue=""+s)}function Bn(r,o,s,f){if(r=r.options,o){o={};for(var m=0;m<s.length;m++)o["$"+s[m]]=!0;for(s=0;s<r.length;s++)m=o.hasOwnProperty("$"+r[s].value),r[s].selected!==m&&(r[s].selected=m),m&&f&&(r[s].defaultSelected=!0)}else{for(s=""+Qt(s),o=null,m=0;m<r.length;m++){if(r[m].value===s){r[m].selected=!0,f&&(r[m].defaultSelected=!0);return}o!==null||r[m].disabled||(o=r[m])}o!==null&&(o.selected=!0)}}function Wc(r,o,s){if(o!=null&&(o=""+Qt(o),o!==r.value&&(r.value=o),s==null)){r.defaultValue!==o&&(r.defaultValue=o);return}r.defaultValue=s!=null?""+Qt(s):""}function Za(r,o,s,f){if(o==null){if(f!=null){if(s!=null)throw Error(i(92));if(H(f)){if(1<f.length)throw Error(i(93));f=f[0]}s=f}s==null&&(s=""),o=s}s=Qt(o),r.defaultValue=s,f=r.textContent,f===s&&f!==""&&f!==null&&(r.value=f),Ka(r)}function rt(r,o){if(o){var s=r.firstChild;if(s&&s===r.lastChild&&s.nodeType===3){s.nodeValue=o;return}}r.textContent=o}var Zc=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 _n(r,o,s){var f=o.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?f?r.setProperty(o,""):o==="float"?r.cssFloat="":r[o]="":f?r.setProperty(o,s):typeof s!="number"||s===0||Zc.has(o)?o==="float"?r.cssFloat=s:r[o]=(""+s).trim():r[o]=s+"px"}function Ut(r,o,s){if(o!=null&&typeof o!="object")throw Error(i(62));if(r=r.style,s!=null){for(var f in s)!s.hasOwnProperty(f)||o!=null&&o.hasOwnProperty(f)||(f.indexOf("--")===0?r.setProperty(f,""):f==="float"?r.cssFloat="":r[f]="");for(var m in o)f=o[m],o.hasOwnProperty(m)&&s[m]!==f&&_n(r,m,f)}else for(var v in o)o.hasOwnProperty(v)&&_n(r,v,o[v])}function so(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 Ri=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"]]),sl=/^[\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 lo(r){return sl.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Re(){}var je=null;function ct(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var _t=null,ln=null;function Ur(r){var o=_i(r);if(o&&(r=o.stateNode)){var s=r[Yn]||null;e:switch(r=o.stateNode,o.type){case"input":if(al(r,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),o=s.name,s.type==="radio"&&o!=null){for(s=r;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+cr(""+o)+'"][type="radio"]'),o=0;o<s.length;o++){var f=s[o];if(f!==r&&f.form===r.form){var m=f[Yn]||null;if(!m)throw Error(i(90));al(f,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(o=0;o<s.length;o++)f=s[o],f.form===r.form&&ol(f)}break e;case"textarea":Wc(r,s.value,s.defaultValue);break e;case"select":o=s.value,o!=null&&Bn(r,!!s.multiple,o,!1)}}}var ll=!1;function Qc(r,o,s){if(ll)return r(o,s);ll=!0;try{var f=r(o);return f}finally{if(ll=!1,(_t!==null||ln!==null)&&(Uu(),_t&&(o=_t,r=ln,ln=_t=null,Ur(o),r)))for(o=0;o<r.length;o++)Ur(r[o])}}function cl(r,o){var s=r.stateNode;if(s===null)return null;var f=s[Yn]||null;if(f===null)return null;s=f[o];e:switch(o){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(s&&typeof s!="function")throw Error(i(231,o,typeof s));return s}var Ti=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wd=!1;if(Ti)try{var ul={};Object.defineProperty(ul,"passive",{get:function(){Wd=!0}}),window.addEventListener("test",ul,ul),window.removeEventListener("test",ul,ul)}catch{Wd=!1}var co=null,Zd=null,Jc=null;function qb(){if(Jc)return Jc;var r,o=Zd,s=o.length,f,m="value"in co?co.value:co.textContent,v=m.length;for(r=0;r<s&&o[r]===m[r];r++);var w=s-r;for(f=1;f<=w&&o[s-f]===m[v-f];f++);return Jc=m.slice(r,1<f?1-f:void 0)}function eu(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function tu(){return!0}function Vb(){return!1}function ur(r){function o(s,f,m,v,w){this._reactName=s,this._targetInst=m,this.type=f,this.nativeEvent=v,this.target=w,this.currentTarget=null;for(var L in r)r.hasOwnProperty(L)&&(s=r[L],this[L]=s?s(v):v[L]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?tu:Vb,this.isPropagationStopped=Vb,this}return g(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=tu)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=tu)},persist:function(){},isPersistent:tu}),o}var ia={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nu=ur(ia),fl=g({},ia,{view:0,detail:0}),CC=ur(fl),Qd,Jd,dl,ru=g({},fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tp,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!==dl&&(dl&&r.type==="mousemove"?(Qd=r.screenX-dl.screenX,Jd=r.screenY-dl.screenY):Jd=Qd=0,dl=r),Qd)},movementY:function(r){return"movementY"in r?r.movementY:Jd}}),Yb=ur(ru),kC=g({},ru,{dataTransfer:0}),AC=ur(kC),OC=g({},fl,{relatedTarget:0}),ep=ur(OC),MC=g({},ia,{animationName:0,elapsedTime:0,pseudoElement:0}),NC=ur(MC),IC=g({},ia,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),DC=ur(IC),LC=g({},ia,{data:0}),Kb=ur(LC),PC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zC={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"},BC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function UC(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=BC[r])?!!o[r]:!1}function tp(){return UC}var FC=g({},fl,{key:function(r){if(r.key){var o=PC[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=eu(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?zC[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tp,charCode:function(r){return r.type==="keypress"?eu(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?eu(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),HC=ur(FC),jC=g({},ru,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xb=ur(jC),GC=g({},fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tp}),$C=ur(GC),qC=g({},ia,{propertyName:0,elapsedTime:0,pseudoElement:0}),VC=ur(qC),YC=g({},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}),KC=ur(YC),XC=g({},ia,{newState:0,oldState:0}),WC=ur(XC),ZC=[9,13,27,32],np=Ti&&"CompositionEvent"in window,pl=null;Ti&&"documentMode"in document&&(pl=document.documentMode);var QC=Ti&&"TextEvent"in window&&!pl,Wb=Ti&&(!np||pl&&8<pl&&11>=pl),Zb=" ",Qb=!1;function Jb(r,o){switch(r){case"keyup":return ZC.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ey(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Qa=!1;function JC(r,o){switch(r){case"compositionend":return ey(o);case"keypress":return o.which!==32?null:(Qb=!0,Zb);case"textInput":return r=o.data,r===Zb&&Qb?null:r;default:return null}}function ek(r,o){if(Qa)return r==="compositionend"||!np&&Jb(r,o)?(r=qb(),Jc=Zd=co=null,Qa=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Wb&&o.locale!=="ko"?null:o.data;default:return null}}var tk={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 ty(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!tk[r.type]:o==="textarea"}function ny(r,o,s,f){_t?ln?ln.push(f):ln=[f]:_t=f,o=Vu(o,"onChange"),0<o.length&&(s=new nu("onChange","change",null,s,f),r.push({event:s,listeners:o}))}var hl=null,gl=null;function nk(r){B0(r,0)}function iu(r){var o=oo(r);if(ol(o))return r}function ry(r,o){if(r==="change")return o}var iy=!1;if(Ti){var rp;if(Ti){var ip="oninput"in document;if(!ip){var oy=document.createElement("div");oy.setAttribute("oninput","return;"),ip=typeof oy.oninput=="function"}rp=ip}else rp=!1;iy=rp&&(!document.documentMode||9<document.documentMode)}function ay(){hl&&(hl.detachEvent("onpropertychange",sy),gl=hl=null)}function sy(r){if(r.propertyName==="value"&&iu(gl)){var o=[];ny(o,gl,r,ct(r)),Qc(nk,o)}}function rk(r,o,s){r==="focusin"?(ay(),hl=o,gl=s,hl.attachEvent("onpropertychange",sy)):r==="focusout"&&ay()}function ik(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return iu(gl)}function ok(r,o){if(r==="click")return iu(o)}function ak(r,o){if(r==="input"||r==="change")return iu(o)}function sk(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var Tr=typeof Object.is=="function"?Object.is:sk;function ml(r,o){if(Tr(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var s=Object.keys(r),f=Object.keys(o);if(s.length!==f.length)return!1;for(f=0;f<s.length;f++){var m=s[f];if(!ke.call(o,m)||!Tr(r[m],o[m]))return!1}return!0}function ly(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function cy(r,o){var s=ly(r);r=0;for(var f;s;){if(s.nodeType===3){if(f=r+s.textContent.length,r<=o&&f>=o)return{node:s,offset:o-r};r=f}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=ly(s)}}function uy(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?uy(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function fy(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var o=Xa(r.document);o instanceof r.HTMLIFrameElement;){try{var s=typeof o.contentWindow.location.href=="string"}catch{s=!1}if(s)r=o.contentWindow;else break;o=Xa(r.document)}return o}function op(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}var lk=Ti&&"documentMode"in document&&11>=document.documentMode,Ja=null,ap=null,bl=null,sp=!1;function dy(r,o,s){var f=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;sp||Ja==null||Ja!==Xa(f)||(f=Ja,"selectionStart"in f&&op(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&&ml(bl,f)||(bl=f,f=Vu(ap,"onSelect"),0<f.length&&(o=new nu("onSelect","select",null,o,s),r.push({event:o,listeners:f}),o.target=Ja)))}function oa(r,o){var s={};return s[r.toLowerCase()]=o.toLowerCase(),s["Webkit"+r]="webkit"+o,s["Moz"+r]="moz"+o,s}var es={animationend:oa("Animation","AnimationEnd"),animationiteration:oa("Animation","AnimationIteration"),animationstart:oa("Animation","AnimationStart"),transitionrun:oa("Transition","TransitionRun"),transitionstart:oa("Transition","TransitionStart"),transitioncancel:oa("Transition","TransitionCancel"),transitionend:oa("Transition","TransitionEnd")},lp={},py={};Ti&&(py=document.createElement("div").style,"AnimationEvent"in window||(delete es.animationend.animation,delete es.animationiteration.animation,delete es.animationstart.animation),"TransitionEvent"in window||delete es.transitionend.transition);function aa(r){if(lp[r])return lp[r];if(!es[r])return r;var o=es[r],s;for(s in o)if(o.hasOwnProperty(s)&&s in py)return lp[r]=o[s];return r}var hy=aa("animationend"),gy=aa("animationiteration"),my=aa("animationstart"),ck=aa("transitionrun"),uk=aa("transitionstart"),fk=aa("transitioncancel"),by=aa("transitionend"),yy=new Map,cp="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(" ");cp.push("scrollEnd");function Wr(r,o){yy.set(r,o),wi(o,[r])}var ou=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=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(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Fr=[],ts=0,up=0;function au(){for(var r=ts,o=up=ts=0;o<r;){var s=Fr[o];Fr[o++]=null;var f=Fr[o];Fr[o++]=null;var m=Fr[o];Fr[o++]=null;var v=Fr[o];if(Fr[o++]=null,f!==null&&m!==null){var w=f.pending;w===null?m.next=m:(m.next=w.next,w.next=m),f.pending=m}v!==0&&vy(s,m,v)}}function su(r,o,s,f){Fr[ts++]=r,Fr[ts++]=o,Fr[ts++]=s,Fr[ts++]=f,up|=f,r.lanes|=f,r=r.alternate,r!==null&&(r.lanes|=f)}function fp(r,o,s,f){return su(r,o,s,f),lu(r)}function sa(r,o){return su(r,null,null,o),lu(r)}function vy(r,o,s){r.lanes|=s;var f=r.alternate;f!==null&&(f.lanes|=s);for(var m=!1,v=r.return;v!==null;)v.childLanes|=s,f=v.alternate,f!==null&&(f.childLanes|=s),v.tag===22&&(r=v.stateNode,r===null||r._visibility&1||(m=!0)),r=v,v=v.return;return r.tag===3?(v=r.stateNode,m&&o!==null&&(m=31-xt(s),r=v.hiddenUpdates,f=r[m],f===null?r[m]=[o]:f.push(o),o.lane=s|536870912),v):null}function lu(r){if(50<Ul)throw Ul=0,Eh=null,Error(i(185));for(var o=r.return;o!==null;)r=o,o=r.return;return r.tag===3?r.stateNode:null}var ns={};function dk(r,o,s,f){this.tag=r,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,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 Cr(r,o,s,f){return new dk(r,o,s,f)}function dp(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Ci(r,o){var s=r.alternate;return s===null?(s=Cr(r.tag,o,r.key,r.mode),s.elementType=r.elementType,s.type=r.type,s.stateNode=r.stateNode,s.alternate=r,r.alternate=s):(s.pendingProps=o,s.type=r.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=r.flags&65011712,s.childLanes=r.childLanes,s.lanes=r.lanes,s.child=r.child,s.memoizedProps=r.memoizedProps,s.memoizedState=r.memoizedState,s.updateQueue=r.updateQueue,o=r.dependencies,s.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},s.sibling=r.sibling,s.index=r.index,s.ref=r.ref,s.refCleanup=r.refCleanup,s}function Ey(r,o){r.flags&=65011714;var s=r.alternate;return s===null?(r.childLanes=0,r.lanes=o,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=s.childLanes,r.lanes=s.lanes,r.child=s.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=s.memoizedProps,r.memoizedState=s.memoizedState,r.updateQueue=s.updateQueue,r.type=s.type,o=s.dependencies,r.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),r}function cu(r,o,s,f,m,v){var w=0;if(f=r,typeof r=="function")dp(r)&&(w=1);else if(typeof r=="string")w=bA(r,s,le.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case G:return r=Cr(31,s,o,m),r.elementType=G,r.lanes=v,r;case _:return la(s.children,m,v,o);case x:w=8,m|=24;break;case S:return r=Cr(12,s,o,m|2),r.elementType=S,r.lanes=v,r;case N:return r=Cr(13,s,o,m),r.elementType=N,r.lanes=v,r;case R:return r=Cr(19,s,o,m),r.elementType=R,r.lanes=v,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case k:w=10;break e;case C:w=9;break e;case O:w=11;break e;case P:w=14;break e;case I:w=16,f=null;break e}w=29,s=Error(i(130,r===null?"null":typeof r,"")),f=null}return o=Cr(w,s,o,m),o.elementType=r,o.type=f,o.lanes=v,o}function la(r,o,s,f){return r=Cr(7,r,f,o),r.lanes=s,r}function pp(r,o,s){return r=Cr(6,r,null,o),r.lanes=s,r}function Sy(r){var o=Cr(18,null,null,0);return o.stateNode=r,o}function hp(r,o,s){return o=Cr(4,r.children!==null?r.children:[],r.key,o),o.lanes=s,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}var xy=new WeakMap;function Hr(r,o){if(typeof r=="object"&&r!==null){var s=xy.get(r);return s!==void 0?s:(o={value:r,source:o,stack:ze(o)},xy.set(r,o),o)}return{value:r,source:o,stack:ze(o)}}var rs=[],is=0,uu=null,yl=0,jr=[],Gr=0,uo=null,ri=1,ii="";function ki(r,o){rs[is++]=yl,rs[is++]=uu,uu=r,yl=o}function _y(r,o,s){jr[Gr++]=ri,jr[Gr++]=ii,jr[Gr++]=uo,uo=r;var f=ri;r=ii;var m=32-xt(f)-1;f&=~(1<<m),s+=1;var v=32-xt(o)+m;if(30<v){var w=m-m%5;v=(f&(1<<w)-1).toString(32),f>>=w,m-=w,ri=1<<32-xt(o)+m|s<<m|f,ii=v+r}else ri=1<<v|s<<m|f,ii=r}function gp(r){r.return!==null&&(ki(r,1),_y(r,1,0))}function mp(r){for(;r===uu;)uu=rs[--is],rs[is]=null,yl=rs[--is],rs[is]=null;for(;r===uo;)uo=jr[--Gr],jr[Gr]=null,ii=jr[--Gr],jr[Gr]=null,ri=jr[--Gr],jr[Gr]=null}function wy(r,o){jr[Gr++]=ri,jr[Gr++]=ii,jr[Gr++]=uo,ri=o.id,ii=o.overflow,uo=r}var Un=null,tn=null,Tt=!1,fo=null,$r=!1,bp=Error(i(519));function po(r){var o=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vl(Hr(o,r)),bp}function Ry(r){var o=r.stateNode,s=r.type,f=r.memoizedProps;switch(o[mn]=r,o[Yn]=f,s){case"dialog":vt("cancel",o),vt("close",o);break;case"iframe":case"object":case"embed":vt("load",o);break;case"video":case"audio":for(s=0;s<Hl.length;s++)vt(Hl[s],o);break;case"source":vt("error",o);break;case"img":case"image":case"link":vt("error",o),vt("load",o);break;case"details":vt("toggle",o);break;case"input":vt("invalid",o),ra(o,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0);break;case"select":vt("invalid",o);break;case"textarea":vt("invalid",o),Za(o,f.value,f.defaultValue,f.children)}s=f.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||o.textContent===""+s||f.suppressHydrationWarning===!0||j0(o.textContent,s)?(f.popover!=null&&(vt("beforetoggle",o),vt("toggle",o)),f.onScroll!=null&&vt("scroll",o),f.onScrollEnd!=null&&vt("scrollend",o),f.onClick!=null&&(o.onclick=Re),o=!0):o=!1,o||po(r,!0)}function Ty(r){for(Un=r.return;Un;)switch(Un.tag){case 5:case 31:case 13:$r=!1;return;case 27:case 3:$r=!0;return;default:Un=Un.return}}function os(r){if(r!==Un)return!1;if(!Tt)return Ty(r),Tt=!0,!1;var o=r.tag,s;if((s=o!==3&&o!==27)&&((s=o===5)&&(s=r.type,s=!(s!=="form"&&s!=="button")||Lh(r.type,r.memoizedProps)),s=!s),s&&tn&&po(r),Ty(r),o===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));tn=Z0(r)}else if(o===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));tn=Z0(r)}else o===27?(o=tn,Co(r.type)?(r=Fh,Fh=null,tn=r):tn=o):tn=Un?Vr(r.stateNode.nextSibling):null;return!0}function ca(){tn=Un=null,Tt=!1}function yp(){var r=fo;return r!==null&&(hr===null?hr=r:hr.push.apply(hr,r),fo=null),r}function vl(r){fo===null?fo=[r]:fo.push(r)}var vp=D(null),ua=null,Ai=null;function ho(r,o,s){z(vp,o._currentValue),o._currentValue=s}function Oi(r){r._currentValue=vp.current,Z(vp)}function Ep(r,o,s){for(;r!==null;){var f=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,f!==null&&(f.childLanes|=o)):f!==null&&(f.childLanes&o)!==o&&(f.childLanes|=o),r===s)break;r=r.return}}function Sp(r,o,s,f){var m=r.child;for(m!==null&&(m.return=r);m!==null;){var v=m.dependencies;if(v!==null){var w=m.child;v=v.firstContext;e:for(;v!==null;){var L=v;v=m;for(var K=0;K<o.length;K++)if(L.context===o[K]){v.lanes|=s,L=v.alternate,L!==null&&(L.lanes|=s),Ep(v.return,s,r),f||(w=null);break e}v=L.next}}else if(m.tag===18){if(w=m.return,w===null)throw Error(i(341));w.lanes|=s,v=w.alternate,v!==null&&(v.lanes|=s),Ep(w,s,r),w=null}else w=m.child;if(w!==null)w.return=m;else for(w=m;w!==null;){if(w===r){w=null;break}if(m=w.sibling,m!==null){m.return=w.return,w=m;break}w=w.return}m=w}}function as(r,o,s,f){r=null;for(var m=o,v=!1;m!==null;){if(!v){if((m.flags&524288)!==0)v=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var w=m.alternate;if(w===null)throw Error(i(387));if(w=w.memoizedProps,w!==null){var L=m.type;Tr(m.pendingProps.value,w.value)||(r!==null?r.push(L):r=[L])}}else if(m===be.current){if(w=m.alternate,w===null)throw Error(i(387));w.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(r!==null?r.push(Vl):r=[Vl])}m=m.return}r!==null&&Sp(o,r,s,f),o.flags|=262144}function fu(r){for(r=r.firstContext;r!==null;){if(!Tr(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function fa(r){ua=r,Ai=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Fn(r){return Cy(ua,r)}function du(r,o){return ua===null&&fa(r),Cy(r,o)}function Cy(r,o){var s=o._currentValue;if(o={context:o,memoizedValue:s,next:null},Ai===null){if(r===null)throw Error(i(308));Ai=o,r.dependencies={lanes:0,firstContext:o},r.flags|=524288}else Ai=Ai.next=o;return s}var pk=typeof AbortController<"u"?AbortController:function(){var r=[],o=this.signal={aborted:!1,addEventListener:function(s,f){r.push(f)}};this.abort=function(){o.aborted=!0,r.forEach(function(s){return s()})}},hk=e.unstable_scheduleCallback,gk=e.unstable_NormalPriority,wn={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xp(){return{controller:new pk,data:new Map,refCount:0}}function El(r){r.refCount--,r.refCount===0&&hk(gk,function(){r.controller.abort()})}var Sl=null,_p=0,ss=0,ls=null;function mk(r,o){if(Sl===null){var s=Sl=[];_p=0,ss=Th(),ls={status:"pending",value:void 0,then:function(f){s.push(f)}}}return _p++,o.then(ky,ky),o}function ky(){if(--_p===0&&Sl!==null){ls!==null&&(ls.status="fulfilled");var r=Sl;Sl=null,ss=0,ls=null;for(var o=0;o<r.length;o++)(0,r[o])()}}function bk(r,o){var s=[],f={status:"pending",value:null,reason:null,then:function(m){s.push(m)}};return r.then(function(){f.status="fulfilled",f.value=o;for(var m=0;m<s.length;m++)(0,s[m])(o)},function(m){for(f.status="rejected",f.reason=m,m=0;m<s.length;m++)(0,s[m])(void 0)}),f}var Ay=B.S;B.S=function(r,o){d0=ve(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&mk(r,o),Ay!==null&&Ay(r,o)};var da=D(null);function wp(){var r=da.current;return r!==null?r:Yt.pooledCache}function pu(r,o){o===null?z(da,da.current):z(da,o.pool)}function Oy(){var r=wp();return r===null?null:{parent:wn._currentValue,pool:r}}var cs=Error(i(460)),Rp=Error(i(474)),hu=Error(i(542)),gu={then:function(){}};function My(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Ny(r,o,s){switch(s=r[s],s===void 0?r.push(o):s!==o&&(o.then(Re,Re),o=s),o.status){case"fulfilled":return o.value;case"rejected":throw r=o.reason,Dy(r),r;default:if(typeof o.status=="string")o.then(Re,Re);else{if(r=Yt,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=o,r.status="pending",r.then(function(f){if(o.status==="pending"){var m=o;m.status="fulfilled",m.value=f}},function(f){if(o.status==="pending"){var m=o;m.status="rejected",m.reason=f}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw r=o.reason,Dy(r),r}throw ha=o,cs}}function pa(r){try{var o=r._init;return o(r._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(ha=s,cs):s}}var ha=null;function Iy(){if(ha===null)throw Error(i(459));var r=ha;return ha=null,r}function Dy(r){if(r===cs||r===hu)throw Error(i(483))}var us=null,xl=0;function mu(r){var o=xl;return xl+=1,us===null&&(us=[]),Ny(us,r,o)}function _l(r,o){o=o.props.ref,r.ref=o!==void 0?o:null}function bu(r,o){throw o.$$typeof===b?Error(i(525)):(r=Object.prototype.toString.call(o),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r)))}function Ly(r){function o(te,J){if(r){var re=te.deletions;re===null?(te.deletions=[J],te.flags|=16):re.push(J)}}function s(te,J){if(!r)return null;for(;J!==null;)o(te,J),J=J.sibling;return null}function f(te){for(var J=new Map;te!==null;)te.key!==null?J.set(te.key,te):J.set(te.index,te),te=te.sibling;return J}function m(te,J){return te=Ci(te,J),te.index=0,te.sibling=null,te}function v(te,J,re){return te.index=re,r?(re=te.alternate,re!==null?(re=re.index,re<J?(te.flags|=67108866,J):re):(te.flags|=67108866,J)):(te.flags|=1048576,J)}function w(te){return r&&te.alternate===null&&(te.flags|=67108866),te}function L(te,J,re,pe){return J===null||J.tag!==6?(J=pp(re,te.mode,pe),J.return=te,J):(J=m(J,re),J.return=te,J)}function K(te,J,re,pe){var Ze=re.type;return Ze===_?de(te,J,re.props.children,pe,re.key):J!==null&&(J.elementType===Ze||typeof Ze=="object"&&Ze!==null&&Ze.$$typeof===I&&pa(Ze)===J.type)?(J=m(J,re.props),_l(J,re),J.return=te,J):(J=cu(re.type,re.key,re.props,null,te.mode,pe),_l(J,re),J.return=te,J)}function ie(te,J,re,pe){return J===null||J.tag!==4||J.stateNode.containerInfo!==re.containerInfo||J.stateNode.implementation!==re.implementation?(J=hp(re,te.mode,pe),J.return=te,J):(J=m(J,re.children||[]),J.return=te,J)}function de(te,J,re,pe,Ze){return J===null||J.tag!==7?(J=la(re,te.mode,pe,Ze),J.return=te,J):(J=m(J,re),J.return=te,J)}function he(te,J,re){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return J=pp(""+J,te.mode,re),J.return=te,J;if(typeof J=="object"&&J!==null){switch(J.$$typeof){case y:return re=cu(J.type,J.key,J.props,null,te.mode,re),_l(re,J),re.return=te,re;case E:return J=hp(J,te.mode,re),J.return=te,J;case I:return J=pa(J),he(te,J,re)}if(H(J)||$(J))return J=la(J,te.mode,re,null),J.return=te,J;if(typeof J.then=="function")return he(te,mu(J),re);if(J.$$typeof===k)return he(te,du(te,J),re);bu(te,J)}return null}function oe(te,J,re,pe){var Ze=J!==null?J.key:null;if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return Ze!==null?null:L(te,J,""+re,pe);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case y:return re.key===Ze?K(te,J,re,pe):null;case E:return re.key===Ze?ie(te,J,re,pe):null;case I:return re=pa(re),oe(te,J,re,pe)}if(H(re)||$(re))return Ze!==null?null:de(te,J,re,pe,null);if(typeof re.then=="function")return oe(te,J,mu(re),pe);if(re.$$typeof===k)return oe(te,J,du(te,re),pe);bu(te,re)}return null}function se(te,J,re,pe,Ze){if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return te=te.get(re)||null,L(J,te,""+pe,Ze);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case y:return te=te.get(pe.key===null?re:pe.key)||null,K(J,te,pe,Ze);case E:return te=te.get(pe.key===null?re:pe.key)||null,ie(J,te,pe,Ze);case I:return pe=pa(pe),se(te,J,re,pe,Ze)}if(H(pe)||$(pe))return te=te.get(re)||null,de(J,te,pe,Ze,null);if(typeof pe.then=="function")return se(te,J,re,mu(pe),Ze);if(pe.$$typeof===k)return se(te,J,re,du(J,pe),Ze);bu(J,pe)}return null}function Be(te,J,re,pe){for(var Ze=null,Mt=null,Ge=J,dt=J=0,Rt=null;Ge!==null&&dt<re.length;dt++){Ge.index>dt?(Rt=Ge,Ge=null):Rt=Ge.sibling;var Nt=oe(te,Ge,re[dt],pe);if(Nt===null){Ge===null&&(Ge=Rt);break}r&&Ge&&Nt.alternate===null&&o(te,Ge),J=v(Nt,J,dt),Mt===null?Ze=Nt:Mt.sibling=Nt,Mt=Nt,Ge=Rt}if(dt===re.length)return s(te,Ge),Tt&&ki(te,dt),Ze;if(Ge===null){for(;dt<re.length;dt++)Ge=he(te,re[dt],pe),Ge!==null&&(J=v(Ge,J,dt),Mt===null?Ze=Ge:Mt.sibling=Ge,Mt=Ge);return Tt&&ki(te,dt),Ze}for(Ge=f(Ge);dt<re.length;dt++)Rt=se(Ge,te,dt,re[dt],pe),Rt!==null&&(r&&Rt.alternate!==null&&Ge.delete(Rt.key===null?dt:Rt.key),J=v(Rt,J,dt),Mt===null?Ze=Rt:Mt.sibling=Rt,Mt=Rt);return r&&Ge.forEach(function(No){return o(te,No)}),Tt&&ki(te,dt),Ze}function nt(te,J,re,pe){if(re==null)throw Error(i(151));for(var Ze=null,Mt=null,Ge=J,dt=J=0,Rt=null,Nt=re.next();Ge!==null&&!Nt.done;dt++,Nt=re.next()){Ge.index>dt?(Rt=Ge,Ge=null):Rt=Ge.sibling;var No=oe(te,Ge,Nt.value,pe);if(No===null){Ge===null&&(Ge=Rt);break}r&&Ge&&No.alternate===null&&o(te,Ge),J=v(No,J,dt),Mt===null?Ze=No:Mt.sibling=No,Mt=No,Ge=Rt}if(Nt.done)return s(te,Ge),Tt&&ki(te,dt),Ze;if(Ge===null){for(;!Nt.done;dt++,Nt=re.next())Nt=he(te,Nt.value,pe),Nt!==null&&(J=v(Nt,J,dt),Mt===null?Ze=Nt:Mt.sibling=Nt,Mt=Nt);return Tt&&ki(te,dt),Ze}for(Ge=f(Ge);!Nt.done;dt++,Nt=re.next())Nt=se(Ge,te,dt,Nt.value,pe),Nt!==null&&(r&&Nt.alternate!==null&&Ge.delete(Nt.key===null?dt:Nt.key),J=v(Nt,J,dt),Mt===null?Ze=Nt:Mt.sibling=Nt,Mt=Nt);return r&&Ge.forEach(function(kA){return o(te,kA)}),Tt&&ki(te,dt),Ze}function $t(te,J,re,pe){if(typeof re=="object"&&re!==null&&re.type===_&&re.key===null&&(re=re.props.children),typeof re=="object"&&re!==null){switch(re.$$typeof){case y:e:{for(var Ze=re.key;J!==null;){if(J.key===Ze){if(Ze=re.type,Ze===_){if(J.tag===7){s(te,J.sibling),pe=m(J,re.props.children),pe.return=te,te=pe;break e}}else if(J.elementType===Ze||typeof Ze=="object"&&Ze!==null&&Ze.$$typeof===I&&pa(Ze)===J.type){s(te,J.sibling),pe=m(J,re.props),_l(pe,re),pe.return=te,te=pe;break e}s(te,J);break}else o(te,J);J=J.sibling}re.type===_?(pe=la(re.props.children,te.mode,pe,re.key),pe.return=te,te=pe):(pe=cu(re.type,re.key,re.props,null,te.mode,pe),_l(pe,re),pe.return=te,te=pe)}return w(te);case E:e:{for(Ze=re.key;J!==null;){if(J.key===Ze)if(J.tag===4&&J.stateNode.containerInfo===re.containerInfo&&J.stateNode.implementation===re.implementation){s(te,J.sibling),pe=m(J,re.children||[]),pe.return=te,te=pe;break e}else{s(te,J);break}else o(te,J);J=J.sibling}pe=hp(re,te.mode,pe),pe.return=te,te=pe}return w(te);case I:return re=pa(re),$t(te,J,re,pe)}if(H(re))return Be(te,J,re,pe);if($(re)){if(Ze=$(re),typeof Ze!="function")throw Error(i(150));return re=Ze.call(re),nt(te,J,re,pe)}if(typeof re.then=="function")return $t(te,J,mu(re),pe);if(re.$$typeof===k)return $t(te,J,du(te,re),pe);bu(te,re)}return typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint"?(re=""+re,J!==null&&J.tag===6?(s(te,J.sibling),pe=m(J,re),pe.return=te,te=pe):(s(te,J),pe=pp(re,te.mode,pe),pe.return=te,te=pe),w(te)):s(te,J)}return function(te,J,re,pe){try{xl=0;var Ze=$t(te,J,re,pe);return us=null,Ze}catch(Ge){if(Ge===cs||Ge===hu)throw Ge;var Mt=Cr(29,Ge,null,te.mode);return Mt.lanes=pe,Mt.return=te,Mt}}}var ga=Ly(!0),Py=Ly(!1),go=!1;function Tp(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cp(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function mo(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function bo(r,o,s){var f=r.updateQueue;if(f===null)return null;if(f=f.shared,(Lt&2)!==0){var m=f.pending;return m===null?o.next=o:(o.next=m.next,m.next=o),f.pending=o,o=lu(r),vy(r,null,s),o}return su(r,f,o,s),lu(r)}function wl(r,o,s){if(o=o.updateQueue,o!==null&&(o=o.shared,(s&4194048)!==0)){var f=o.lanes;f&=r.pendingLanes,s|=f,o.lanes=s,Je(r,s)}}function kp(r,o){var s=r.updateQueue,f=r.alternate;if(f!==null&&(f=f.updateQueue,s===f)){var m=null,v=null;if(s=s.firstBaseUpdate,s!==null){do{var w={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};v===null?m=v=w:v=v.next=w,s=s.next}while(s!==null);v===null?m=v=o:v=v.next=o}else m=v=o;s={baseState:f.baseState,firstBaseUpdate:m,lastBaseUpdate:v,shared:f.shared,callbacks:f.callbacks},r.updateQueue=s;return}r=s.lastBaseUpdate,r===null?s.firstBaseUpdate=o:r.next=o,s.lastBaseUpdate=o}var Ap=!1;function Rl(){if(Ap){var r=ls;if(r!==null)throw r}}function Tl(r,o,s,f){Ap=!1;var m=r.updateQueue;go=!1;var v=m.firstBaseUpdate,w=m.lastBaseUpdate,L=m.shared.pending;if(L!==null){m.shared.pending=null;var K=L,ie=K.next;K.next=null,w===null?v=ie:w.next=ie,w=K;var de=r.alternate;de!==null&&(de=de.updateQueue,L=de.lastBaseUpdate,L!==w&&(L===null?de.firstBaseUpdate=ie:L.next=ie,de.lastBaseUpdate=K))}if(v!==null){var he=m.baseState;w=0,de=ie=K=null,L=v;do{var oe=L.lane&-536870913,se=oe!==L.lane;if(se?(wt&oe)===oe:(f&oe)===oe){oe!==0&&oe===ss&&(Ap=!0),de!==null&&(de=de.next={lane:0,tag:L.tag,payload:L.payload,callback:null,next:null});e:{var Be=r,nt=L;oe=o;var $t=s;switch(nt.tag){case 1:if(Be=nt.payload,typeof Be=="function"){he=Be.call($t,he,oe);break e}he=Be;break e;case 3:Be.flags=Be.flags&-65537|128;case 0:if(Be=nt.payload,oe=typeof Be=="function"?Be.call($t,he,oe):Be,oe==null)break e;he=g({},he,oe);break e;case 2:go=!0}}oe=L.callback,oe!==null&&(r.flags|=64,se&&(r.flags|=8192),se=m.callbacks,se===null?m.callbacks=[oe]:se.push(oe))}else se={lane:oe,tag:L.tag,payload:L.payload,callback:L.callback,next:null},de===null?(ie=de=se,K=he):de=de.next=se,w|=oe;if(L=L.next,L===null){if(L=m.shared.pending,L===null)break;se=L,L=se.next,se.next=null,m.lastBaseUpdate=se,m.shared.pending=null}}while(!0);de===null&&(K=he),m.baseState=K,m.firstBaseUpdate=ie,m.lastBaseUpdate=de,v===null&&(m.shared.lanes=0),xo|=w,r.lanes=w,r.memoizedState=he}}function zy(r,o){if(typeof r!="function")throw Error(i(191,r));r.call(o)}function By(r,o){var s=r.callbacks;if(s!==null)for(r.callbacks=null,r=0;r<s.length;r++)zy(s[r],o)}var fs=D(null),yu=D(0);function Uy(r,o){r=Ui,z(yu,r),z(fs,o),Ui=r|o.baseLanes}function Op(){z(yu,Ui),z(fs,fs.current)}function Mp(){Ui=yu.current,Z(fs),Z(yu)}var kr=D(null),qr=null;function yo(r){var o=r.alternate;z(yn,yn.current&1),z(kr,r),qr===null&&(o===null||fs.current!==null||o.memoizedState!==null)&&(qr=r)}function Np(r){z(yn,yn.current),z(kr,r),qr===null&&(qr=r)}function Fy(r){r.tag===22?(z(yn,yn.current),z(kr,r),qr===null&&(qr=r)):vo()}function vo(){z(yn,yn.current),z(kr,kr.current)}function Ar(r){Z(kr),qr===r&&(qr=null),Z(yn)}var yn=D(0);function vu(r){for(var o=r;o!==null;){if(o.tag===13){var s=o.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Bh(s)||Uh(s)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Mi=0,ft=null,jt=null,Rn=null,Eu=!1,ds=!1,ma=!1,Su=0,Cl=0,ps=null,yk=0;function un(){throw Error(i(321))}function Ip(r,o){if(o===null)return!1;for(var s=0;s<o.length&&s<r.length;s++)if(!Tr(r[s],o[s]))return!1;return!0}function Dp(r,o,s,f,m,v){return Mi=v,ft=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,B.H=r===null||r.memoizedState===null?_v:Xp,ma=!1,v=s(f,m),ma=!1,ds&&(v=jy(o,s,f,m)),Hy(r),v}function Hy(r){B.H=Ol;var o=jt!==null&&jt.next!==null;if(Mi=0,Rn=jt=ft=null,Eu=!1,Cl=0,ps=null,o)throw Error(i(300));r===null||Tn||(r=r.dependencies,r!==null&&fu(r)&&(Tn=!0))}function jy(r,o,s,f){ft=r;var m=0;do{if(ds&&(ps=null),Cl=0,ds=!1,25<=m)throw Error(i(301));if(m+=1,Rn=jt=null,r.updateQueue!=null){var v=r.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}B.H=wv,v=o(s,f)}while(ds);return v}function vk(){var r=B.H,o=r.useState()[0];return o=typeof o.then=="function"?kl(o):o,r=r.useState()[0],(jt!==null?jt.memoizedState:null)!==r&&(ft.flags|=1024),o}function Lp(){var r=Su!==0;return Su=0,r}function Pp(r,o,s){o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~s}function zp(r){if(Eu){for(r=r.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Eu=!1}Mi=0,Rn=jt=ft=null,ds=!1,Cl=Su=0,ps=null}function rr(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rn===null?ft.memoizedState=Rn=r:Rn=Rn.next=r,Rn}function vn(){if(jt===null){var r=ft.alternate;r=r!==null?r.memoizedState:null}else r=jt.next;var o=Rn===null?ft.memoizedState:Rn.next;if(o!==null)Rn=o,jt=r;else{if(r===null)throw ft.alternate===null?Error(i(467)):Error(i(310));jt=r,r={memoizedState:jt.memoizedState,baseState:jt.baseState,baseQueue:jt.baseQueue,queue:jt.queue,next:null},Rn===null?ft.memoizedState=Rn=r:Rn=Rn.next=r}return Rn}function xu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kl(r){var o=Cl;return Cl+=1,ps===null&&(ps=[]),r=Ny(ps,r,o),o=ft,(Rn===null?o.memoizedState:Rn.next)===null&&(o=o.alternate,B.H=o===null||o.memoizedState===null?_v:Xp),r}function _u(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return kl(r);if(r.$$typeof===k)return Fn(r)}throw Error(i(438,String(r)))}function Bp(r){var o=null,s=ft.updateQueue;if(s!==null&&(o=s.memoCache),o==null){var f=ft.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(o={data:f.data.map(function(m){return m.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),s===null&&(s=xu(),ft.updateQueue=s),s.memoCache=o,s=o.data[o.index],s===void 0)for(s=o.data[o.index]=Array(r),f=0;f<r;f++)s[f]=U;return o.index++,s}function Ni(r,o){return typeof o=="function"?o(r):o}function wu(r){var o=vn();return Up(o,jt,r)}function Up(r,o,s){var f=r.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=s;var m=r.baseQueue,v=f.pending;if(v!==null){if(m!==null){var w=m.next;m.next=v.next,v.next=w}o.baseQueue=m=v,f.pending=null}if(v=r.baseState,m===null)r.memoizedState=v;else{o=m.next;var L=w=null,K=null,ie=o,de=!1;do{var he=ie.lane&-536870913;if(he!==ie.lane?(wt&he)===he:(Mi&he)===he){var oe=ie.revertLane;if(oe===0)K!==null&&(K=K.next={lane:0,revertLane:0,gesture:null,action:ie.action,hasEagerState:ie.hasEagerState,eagerState:ie.eagerState,next:null}),he===ss&&(de=!0);else if((Mi&oe)===oe){ie=ie.next,oe===ss&&(de=!0);continue}else he={lane:0,revertLane:ie.revertLane,gesture:null,action:ie.action,hasEagerState:ie.hasEagerState,eagerState:ie.eagerState,next:null},K===null?(L=K=he,w=v):K=K.next=he,ft.lanes|=oe,xo|=oe;he=ie.action,ma&&s(v,he),v=ie.hasEagerState?ie.eagerState:s(v,he)}else oe={lane:he,revertLane:ie.revertLane,gesture:ie.gesture,action:ie.action,hasEagerState:ie.hasEagerState,eagerState:ie.eagerState,next:null},K===null?(L=K=oe,w=v):K=K.next=oe,ft.lanes|=he,xo|=he;ie=ie.next}while(ie!==null&&ie!==o);if(K===null?w=v:K.next=L,!Tr(v,r.memoizedState)&&(Tn=!0,de&&(s=ls,s!==null)))throw s;r.memoizedState=v,r.baseState=w,r.baseQueue=K,f.lastRenderedState=v}return m===null&&(f.lanes=0),[r.memoizedState,f.dispatch]}function Fp(r){var o=vn(),s=o.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=r;var f=s.dispatch,m=s.pending,v=o.memoizedState;if(m!==null){s.pending=null;var w=m=m.next;do v=r(v,w.action),w=w.next;while(w!==m);Tr(v,o.memoizedState)||(Tn=!0),o.memoizedState=v,o.baseQueue===null&&(o.baseState=v),s.lastRenderedState=v}return[v,f]}function Gy(r,o,s){var f=ft,m=vn(),v=Tt;if(v){if(s===void 0)throw Error(i(407));s=s()}else s=o();var w=!Tr((jt||m).memoizedState,s);if(w&&(m.memoizedState=s,Tn=!0),m=m.queue,Gp(Vy.bind(null,f,m,r),[r]),m.getSnapshot!==o||w||Rn!==null&&Rn.memoizedState.tag&1){if(f.flags|=2048,hs(9,{destroy:void 0},qy.bind(null,f,m,s,o),null),Yt===null)throw Error(i(349));v||(Mi&127)!==0||$y(f,o,s)}return s}function $y(r,o,s){r.flags|=16384,r={getSnapshot:o,value:s},o=ft.updateQueue,o===null?(o=xu(),ft.updateQueue=o,o.stores=[r]):(s=o.stores,s===null?o.stores=[r]:s.push(r))}function qy(r,o,s,f){o.value=s,o.getSnapshot=f,Yy(o)&&Ky(r)}function Vy(r,o,s){return s(function(){Yy(o)&&Ky(r)})}function Yy(r){var o=r.getSnapshot;r=r.value;try{var s=o();return!Tr(r,s)}catch{return!0}}function Ky(r){var o=sa(r,2);o!==null&&gr(o,r,2)}function Hp(r){var o=rr();if(typeof r=="function"){var s=r;if(r=s(),ma){rn(!0);try{s()}finally{rn(!1)}}}return o.memoizedState=o.baseState=r,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ni,lastRenderedState:r},o}function Xy(r,o,s,f){return r.baseState=s,Up(r,jt,typeof f=="function"?f:Ni)}function Ek(r,o,s,f,m){if(Cu(r))throw Error(i(485));if(r=o.action,r!==null){var v={payload:m,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){v.listeners.push(w)}};B.T!==null?s(!0):v.isTransition=!1,f(v),s=o.pending,s===null?(v.next=o.pending=v,Wy(o,v)):(v.next=s.next,o.pending=s.next=v)}}function Wy(r,o){var s=o.action,f=o.payload,m=r.state;if(o.isTransition){var v=B.T,w={};B.T=w;try{var L=s(m,f),K=B.S;K!==null&&K(w,L),Zy(r,o,L)}catch(ie){jp(r,o,ie)}finally{v!==null&&w.types!==null&&(v.types=w.types),B.T=v}}else try{v=s(m,f),Zy(r,o,v)}catch(ie){jp(r,o,ie)}}function Zy(r,o,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(f){Qy(r,o,f)},function(f){return jp(r,o,f)}):Qy(r,o,s)}function Qy(r,o,s){o.status="fulfilled",o.value=s,Jy(o),r.state=s,o=r.pending,o!==null&&(s=o.next,s===o?r.pending=null:(s=s.next,o.next=s,Wy(r,s)))}function jp(r,o,s){var f=r.pending;if(r.pending=null,f!==null){f=f.next;do o.status="rejected",o.reason=s,Jy(o),o=o.next;while(o!==f)}r.action=null}function Jy(r){r=r.listeners;for(var o=0;o<r.length;o++)(0,r[o])()}function ev(r,o){return o}function tv(r,o){if(Tt){var s=Yt.formState;if(s!==null){e:{var f=ft;if(Tt){if(tn){t:{for(var m=tn,v=$r;m.nodeType!==8;){if(!v){m=null;break t}if(m=Vr(m.nextSibling),m===null){m=null;break t}}v=m.data,m=v==="F!"||v==="F"?m:null}if(m){tn=Vr(m.nextSibling),f=m.data==="F!";break e}}po(f)}f=!1}f&&(o=s[0])}}return s=rr(),s.memoizedState=s.baseState=o,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ev,lastRenderedState:o},s.queue=f,s=Ev.bind(null,ft,f),f.dispatch=s,f=Hp(!1),v=Kp.bind(null,ft,!1,f.queue),f=rr(),m={state:o,dispatch:null,action:r,pending:null},f.queue=m,s=Ek.bind(null,ft,m,v,s),m.dispatch=s,f.memoizedState=r,[o,s,!1]}function nv(r){var o=vn();return rv(o,jt,r)}function rv(r,o,s){if(o=Up(r,o,ev)[0],r=wu(Ni)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var f=kl(o)}catch(w){throw w===cs?hu:w}else f=o;o=vn();var m=o.queue,v=m.dispatch;return s!==o.memoizedState&&(ft.flags|=2048,hs(9,{destroy:void 0},Sk.bind(null,m,s),null)),[f,v,r]}function Sk(r,o){r.action=o}function iv(r){var o=vn(),s=jt;if(s!==null)return rv(o,s,r);vn(),o=o.memoizedState,s=vn();var f=s.queue.dispatch;return s.memoizedState=r,[o,f,!1]}function hs(r,o,s,f){return r={tag:r,create:s,deps:f,inst:o,next:null},o=ft.updateQueue,o===null&&(o=xu(),ft.updateQueue=o),s=o.lastEffect,s===null?o.lastEffect=r.next=r:(f=s.next,s.next=r,r.next=f,o.lastEffect=r),r}function ov(){return vn().memoizedState}function Ru(r,o,s,f){var m=rr();ft.flags|=r,m.memoizedState=hs(1|o,{destroy:void 0},s,f===void 0?null:f)}function Tu(r,o,s,f){var m=vn();f=f===void 0?null:f;var v=m.memoizedState.inst;jt!==null&&f!==null&&Ip(f,jt.memoizedState.deps)?m.memoizedState=hs(o,v,s,f):(ft.flags|=r,m.memoizedState=hs(1|o,v,s,f))}function av(r,o){Ru(8390656,8,r,o)}function Gp(r,o){Tu(2048,8,r,o)}function xk(r){ft.flags|=4;var o=ft.updateQueue;if(o===null)o=xu(),ft.updateQueue=o,o.events=[r];else{var s=o.events;s===null?o.events=[r]:s.push(r)}}function sv(r){var o=vn().memoizedState;return xk({ref:o,nextImpl:r}),function(){if((Lt&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}function lv(r,o){return Tu(4,2,r,o)}function cv(r,o){return Tu(4,4,r,o)}function uv(r,o){if(typeof o=="function"){r=r();var s=o(r);return function(){typeof s=="function"?s():o(null)}}if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function fv(r,o,s){s=s!=null?s.concat([r]):null,Tu(4,4,uv.bind(null,o,r),s)}function $p(){}function dv(r,o){var s=vn();o=o===void 0?null:o;var f=s.memoizedState;return o!==null&&Ip(o,f[1])?f[0]:(s.memoizedState=[r,o],r)}function pv(r,o){var s=vn();o=o===void 0?null:o;var f=s.memoizedState;if(o!==null&&Ip(o,f[1]))return f[0];if(f=r(),ma){rn(!0);try{r()}finally{rn(!1)}}return s.memoizedState=[f,o],f}function qp(r,o,s){return s===void 0||(Mi&1073741824)!==0&&(wt&261930)===0?r.memoizedState=o:(r.memoizedState=s,r=h0(),ft.lanes|=r,xo|=r,s)}function hv(r,o,s,f){return Tr(s,o)?s:fs.current!==null?(r=qp(r,s,f),Tr(r,o)||(Tn=!0),r):(Mi&42)===0||(Mi&1073741824)!==0&&(wt&261930)===0?(Tn=!0,r.memoizedState=s):(r=h0(),ft.lanes|=r,xo|=r,o)}function gv(r,o,s,f,m){var v=q.p;q.p=v!==0&&8>v?v:8;var w=B.T,L={};B.T=L,Kp(r,!1,o,s);try{var K=m(),ie=B.S;if(ie!==null&&ie(L,K),K!==null&&typeof K=="object"&&typeof K.then=="function"){var de=bk(K,f);Al(r,o,de,Nr(r))}else Al(r,o,f,Nr(r))}catch(he){Al(r,o,{then:function(){},status:"rejected",reason:he},Nr())}finally{q.p=v,w!==null&&L.types!==null&&(w.types=L.types),B.T=w}}function _k(){}function Vp(r,o,s,f){if(r.tag!==5)throw Error(i(476));var m=mv(r).queue;gv(r,m,o,Q,s===null?_k:function(){return bv(r),s(f)})}function mv(r){var o=r.memoizedState;if(o!==null)return o;o={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ni,lastRenderedState:Q},next:null};var s={};return o.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ni,lastRenderedState:s},next:null},r.memoizedState=o,r=r.alternate,r!==null&&(r.memoizedState=o),o}function bv(r){var o=mv(r);o.next===null&&(o=r.alternate.memoizedState),Al(r,o.next.queue,{},Nr())}function Yp(){return Fn(Vl)}function yv(){return vn().memoizedState}function vv(){return vn().memoizedState}function wk(r){for(var o=r.return;o!==null;){switch(o.tag){case 24:case 3:var s=Nr();r=mo(s);var f=bo(o,r,s);f!==null&&(gr(f,o,s),wl(f,o,s)),o={cache:xp()},r.payload=o;return}o=o.return}}function Rk(r,o,s){var f=Nr();s={lane:f,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Cu(r)?Sv(o,s):(s=fp(r,o,s,f),s!==null&&(gr(s,r,f),xv(s,o,f)))}function Ev(r,o,s){var f=Nr();Al(r,o,s,f)}function Al(r,o,s,f){var m={lane:f,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Cu(r))Sv(o,m);else{var v=r.alternate;if(r.lanes===0&&(v===null||v.lanes===0)&&(v=o.lastRenderedReducer,v!==null))try{var w=o.lastRenderedState,L=v(w,s);if(m.hasEagerState=!0,m.eagerState=L,Tr(L,w))return su(r,o,m,0),Yt===null&&au(),!1}catch{}if(s=fp(r,o,m,f),s!==null)return gr(s,r,f),xv(s,o,f),!0}return!1}function Kp(r,o,s,f){if(f={lane:2,revertLane:Th(),gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},Cu(r)){if(o)throw Error(i(479))}else o=fp(r,s,f,2),o!==null&&gr(o,r,2)}function Cu(r){var o=r.alternate;return r===ft||o!==null&&o===ft}function Sv(r,o){ds=Eu=!0;var s=r.pending;s===null?o.next=o:(o.next=s.next,s.next=o),r.pending=o}function xv(r,o,s){if((s&4194048)!==0){var f=o.lanes;f&=r.pendingLanes,s|=f,o.lanes=s,Je(r,s)}}var Ol={readContext:Fn,use:_u,useCallback:un,useContext:un,useEffect:un,useImperativeHandle:un,useLayoutEffect:un,useInsertionEffect:un,useMemo:un,useReducer:un,useRef:un,useState:un,useDebugValue:un,useDeferredValue:un,useTransition:un,useSyncExternalStore:un,useId:un,useHostTransitionStatus:un,useFormState:un,useActionState:un,useOptimistic:un,useMemoCache:un,useCacheRefresh:un};Ol.useEffectEvent=un;var _v={readContext:Fn,use:_u,useCallback:function(r,o){return rr().memoizedState=[r,o===void 0?null:o],r},useContext:Fn,useEffect:av,useImperativeHandle:function(r,o,s){s=s!=null?s.concat([r]):null,Ru(4194308,4,uv.bind(null,o,r),s)},useLayoutEffect:function(r,o){return Ru(4194308,4,r,o)},useInsertionEffect:function(r,o){Ru(4,2,r,o)},useMemo:function(r,o){var s=rr();o=o===void 0?null:o;var f=r();if(ma){rn(!0);try{r()}finally{rn(!1)}}return s.memoizedState=[f,o],f},useReducer:function(r,o,s){var f=rr();if(s!==void 0){var m=s(o);if(ma){rn(!0);try{s(o)}finally{rn(!1)}}}else m=o;return f.memoizedState=f.baseState=m,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:m},f.queue=r,r=r.dispatch=Rk.bind(null,ft,r),[f.memoizedState,r]},useRef:function(r){var o=rr();return r={current:r},o.memoizedState=r},useState:function(r){r=Hp(r);var o=r.queue,s=Ev.bind(null,ft,o);return o.dispatch=s,[r.memoizedState,s]},useDebugValue:$p,useDeferredValue:function(r,o){var s=rr();return qp(s,r,o)},useTransition:function(){var r=Hp(!1);return r=gv.bind(null,ft,r.queue,!0,!1),rr().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,o,s){var f=ft,m=rr();if(Tt){if(s===void 0)throw Error(i(407));s=s()}else{if(s=o(),Yt===null)throw Error(i(349));(wt&127)!==0||$y(f,o,s)}m.memoizedState=s;var v={value:s,getSnapshot:o};return m.queue=v,av(Vy.bind(null,f,v,r),[r]),f.flags|=2048,hs(9,{destroy:void 0},qy.bind(null,f,v,s,o),null),s},useId:function(){var r=rr(),o=Yt.identifierPrefix;if(Tt){var s=ii,f=ri;s=(f&~(1<<32-xt(f)-1)).toString(32)+s,o="_"+o+"R_"+s,s=Su++,0<s&&(o+="H"+s.toString(32)),o+="_"}else s=yk++,o="_"+o+"r_"+s.toString(32)+"_";return r.memoizedState=o},useHostTransitionStatus:Yp,useFormState:tv,useActionState:tv,useOptimistic:function(r){var o=rr();o.memoizedState=o.baseState=r;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=s,o=Kp.bind(null,ft,!0,s),s.dispatch=o,[r,o]},useMemoCache:Bp,useCacheRefresh:function(){return rr().memoizedState=wk.bind(null,ft)},useEffectEvent:function(r){var o=rr(),s={impl:r};return o.memoizedState=s,function(){if((Lt&2)!==0)throw Error(i(440));return s.impl.apply(void 0,arguments)}}},Xp={readContext:Fn,use:_u,useCallback:dv,useContext:Fn,useEffect:Gp,useImperativeHandle:fv,useInsertionEffect:lv,useLayoutEffect:cv,useMemo:pv,useReducer:wu,useRef:ov,useState:function(){return wu(Ni)},useDebugValue:$p,useDeferredValue:function(r,o){var s=vn();return hv(s,jt.memoizedState,r,o)},useTransition:function(){var r=wu(Ni)[0],o=vn().memoizedState;return[typeof r=="boolean"?r:kl(r),o]},useSyncExternalStore:Gy,useId:yv,useHostTransitionStatus:Yp,useFormState:nv,useActionState:nv,useOptimistic:function(r,o){var s=vn();return Xy(s,jt,r,o)},useMemoCache:Bp,useCacheRefresh:vv};Xp.useEffectEvent=sv;var wv={readContext:Fn,use:_u,useCallback:dv,useContext:Fn,useEffect:Gp,useImperativeHandle:fv,useInsertionEffect:lv,useLayoutEffect:cv,useMemo:pv,useReducer:Fp,useRef:ov,useState:function(){return Fp(Ni)},useDebugValue:$p,useDeferredValue:function(r,o){var s=vn();return jt===null?qp(s,r,o):hv(s,jt.memoizedState,r,o)},useTransition:function(){var r=Fp(Ni)[0],o=vn().memoizedState;return[typeof r=="boolean"?r:kl(r),o]},useSyncExternalStore:Gy,useId:yv,useHostTransitionStatus:Yp,useFormState:iv,useActionState:iv,useOptimistic:function(r,o){var s=vn();return jt!==null?Xy(s,jt,r,o):(s.baseState=r,[r,s.queue.dispatch])},useMemoCache:Bp,useCacheRefresh:vv};wv.useEffectEvent=sv;function Wp(r,o,s,f){o=r.memoizedState,s=s(f,o),s=s==null?o:g({},o,s),r.memoizedState=s,r.lanes===0&&(r.updateQueue.baseState=s)}var Zp={enqueueSetState:function(r,o,s){r=r._reactInternals;var f=Nr(),m=mo(f);m.payload=o,s!=null&&(m.callback=s),o=bo(r,m,f),o!==null&&(gr(o,r,f),wl(o,r,f))},enqueueReplaceState:function(r,o,s){r=r._reactInternals;var f=Nr(),m=mo(f);m.tag=1,m.payload=o,s!=null&&(m.callback=s),o=bo(r,m,f),o!==null&&(gr(o,r,f),wl(o,r,f))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var s=Nr(),f=mo(s);f.tag=2,o!=null&&(f.callback=o),o=bo(r,f,s),o!==null&&(gr(o,r,s),wl(o,r,s))}};function Rv(r,o,s,f,m,v,w){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(f,v,w):o.prototype&&o.prototype.isPureReactComponent?!ml(s,f)||!ml(m,v):!0}function Tv(r,o,s,f){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(s,f),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(s,f),o.state!==r&&Zp.enqueueReplaceState(o,o.state,null)}function ba(r,o){var s=o;if("ref"in o){s={};for(var f in o)f!=="ref"&&(s[f]=o[f])}if(r=r.defaultProps){s===o&&(s=g({},s));for(var m in r)s[m]===void 0&&(s[m]=r[m])}return s}function Cv(r){ou(r)}function kv(r){console.error(r)}function Av(r){ou(r)}function ku(r,o){try{var s=r.onUncaughtError;s(o.value,{componentStack:o.stack})}catch(f){setTimeout(function(){throw f})}}function Ov(r,o,s){try{var f=r.onCaughtError;f(s.value,{componentStack:s.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Qp(r,o,s){return s=mo(s),s.tag=3,s.payload={element:null},s.callback=function(){ku(r,o)},s}function Mv(r){return r=mo(r),r.tag=3,r}function Nv(r,o,s,f){var m=s.type.getDerivedStateFromError;if(typeof m=="function"){var v=f.value;r.payload=function(){return m(v)},r.callback=function(){Ov(o,s,f)}}var w=s.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(r.callback=function(){Ov(o,s,f),typeof m!="function"&&(_o===null?_o=new Set([this]):_o.add(this));var L=f.stack;this.componentDidCatch(f.value,{componentStack:L!==null?L:""})})}function Tk(r,o,s,f,m){if(s.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(o=s.alternate,o!==null&&as(o,s,m,!0),s=kr.current,s!==null){switch(s.tag){case 31:case 13:return qr===null?Fu():s.alternate===null&&fn===0&&(fn=3),s.flags&=-257,s.flags|=65536,s.lanes=m,f===gu?s.flags|=16384:(o=s.updateQueue,o===null?s.updateQueue=new Set([f]):o.add(f),_h(r,f,m)),!1;case 22:return s.flags|=65536,f===gu?s.flags|=16384:(o=s.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([f])},s.updateQueue=o):(s=o.retryQueue,s===null?o.retryQueue=new Set([f]):s.add(f)),_h(r,f,m)),!1}throw Error(i(435,s.tag))}return _h(r,f,m),Fu(),!1}if(Tt)return o=kr.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=m,f!==bp&&(r=Error(i(422),{cause:f}),vl(Hr(r,s)))):(f!==bp&&(o=Error(i(423),{cause:f}),vl(Hr(o,s))),r=r.current.alternate,r.flags|=65536,m&=-m,r.lanes|=m,f=Hr(f,s),m=Qp(r.stateNode,f,m),kp(r,m),fn!==4&&(fn=2)),!1;var v=Error(i(520),{cause:f});if(v=Hr(v,s),Bl===null?Bl=[v]:Bl.push(v),fn!==4&&(fn=2),o===null)return!0;f=Hr(f,s),s=o;do{switch(s.tag){case 3:return s.flags|=65536,r=m&-m,s.lanes|=r,r=Qp(s.stateNode,f,r),kp(s,r),!1;case 1:if(o=s.type,v=s.stateNode,(s.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(_o===null||!_o.has(v))))return s.flags|=65536,m&=-m,s.lanes|=m,m=Mv(m),Nv(m,r,s,f),kp(s,m),!1}s=s.return}while(s!==null);return!1}var Jp=Error(i(461)),Tn=!1;function Hn(r,o,s,f){o.child=r===null?Py(o,null,s,f):ga(o,r.child,s,f)}function Iv(r,o,s,f,m){s=s.render;var v=o.ref;if("ref"in f){var w={};for(var L in f)L!=="ref"&&(w[L]=f[L])}else w=f;return fa(o),f=Dp(r,o,s,w,v,m),L=Lp(),r!==null&&!Tn?(Pp(r,o,m),Ii(r,o,m)):(Tt&&L&&gp(o),o.flags|=1,Hn(r,o,f,m),o.child)}function Dv(r,o,s,f,m){if(r===null){var v=s.type;return typeof v=="function"&&!dp(v)&&v.defaultProps===void 0&&s.compare===null?(o.tag=15,o.type=v,Lv(r,o,v,f,m)):(r=cu(s.type,null,f,o,o.mode,m),r.ref=o.ref,r.return=o,o.child=r)}if(v=r.child,!sh(r,m)){var w=v.memoizedProps;if(s=s.compare,s=s!==null?s:ml,s(w,f)&&r.ref===o.ref)return Ii(r,o,m)}return o.flags|=1,r=Ci(v,f),r.ref=o.ref,r.return=o,o.child=r}function Lv(r,o,s,f,m){if(r!==null){var v=r.memoizedProps;if(ml(v,f)&&r.ref===o.ref)if(Tn=!1,o.pendingProps=f=v,sh(r,m))(r.flags&131072)!==0&&(Tn=!0);else return o.lanes=r.lanes,Ii(r,o,m)}return eh(r,o,s,f,m)}function Pv(r,o,s,f){var m=f.children,v=r!==null?r.memoizedState:null;if(r===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.mode==="hidden"){if((o.flags&128)!==0){if(v=v!==null?v.baseLanes|s:s,r!==null){for(f=o.child=r.child,m=0;f!==null;)m=m|f.lanes|f.childLanes,f=f.sibling;f=m&~v}else f=0,o.child=null;return zv(r,o,v,s,f)}if((s&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},r!==null&&pu(o,v!==null?v.cachePool:null),v!==null?Uy(o,v):Op(),Fy(o);else return f=o.lanes=536870912,zv(r,o,v!==null?v.baseLanes|s:s,s,f)}else v!==null?(pu(o,v.cachePool),Uy(o,v),vo(),o.memoizedState=null):(r!==null&&pu(o,null),Op(),vo());return Hn(r,o,m,s),o.child}function Ml(r,o){return r!==null&&r.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function zv(r,o,s,f,m){var v=wp();return v=v===null?null:{parent:wn._currentValue,pool:v},o.memoizedState={baseLanes:s,cachePool:v},r!==null&&pu(o,null),Op(),Fy(o),r!==null&&as(r,o,f,!0),o.childLanes=m,null}function Au(r,o){return o=Mu({mode:o.mode,children:o.children},r.mode),o.ref=r.ref,r.child=o,o.return=r,o}function Bv(r,o,s){return ga(o,r.child,null,s),r=Au(o,o.pendingProps),r.flags|=2,Ar(o),o.memoizedState=null,r}function Ck(r,o,s){var f=o.pendingProps,m=(o.flags&128)!==0;if(o.flags&=-129,r===null){if(Tt){if(f.mode==="hidden")return r=Au(o,f),o.lanes=536870912,Ml(null,r);if(Np(o),(r=tn)?(r=W0(r,$r),r=r!==null&&r.data==="&"?r:null,r!==null&&(o.memoizedState={dehydrated:r,treeContext:uo!==null?{id:ri,overflow:ii}:null,retryLane:536870912,hydrationErrors:null},s=Sy(r),s.return=o,o.child=s,Un=o,tn=null)):r=null,r===null)throw po(o);return o.lanes=536870912,null}return Au(o,f)}var v=r.memoizedState;if(v!==null){var w=v.dehydrated;if(Np(o),m)if(o.flags&256)o.flags&=-257,o=Bv(r,o,s);else if(o.memoizedState!==null)o.child=r.child,o.flags|=128,o=null;else throw Error(i(558));else if(Tn||as(r,o,s,!1),m=(s&r.childLanes)!==0,Tn||m){if(f=Yt,f!==null&&(w=sn(f,s),w!==0&&w!==v.retryLane))throw v.retryLane=w,sa(r,w),gr(f,r,w),Jp;Fu(),o=Bv(r,o,s)}else r=v.treeContext,tn=Vr(w.nextSibling),Un=o,Tt=!0,fo=null,$r=!1,r!==null&&wy(o,r),o=Au(o,f),o.flags|=4096;return o}return r=Ci(r.child,{mode:f.mode,children:f.children}),r.ref=o.ref,o.child=r,r.return=o,r}function Ou(r,o){var s=o.ref;if(s===null)r!==null&&r.ref!==null&&(o.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(i(284));(r===null||r.ref!==s)&&(o.flags|=4194816)}}function eh(r,o,s,f,m){return fa(o),s=Dp(r,o,s,f,void 0,m),f=Lp(),r!==null&&!Tn?(Pp(r,o,m),Ii(r,o,m)):(Tt&&f&&gp(o),o.flags|=1,Hn(r,o,s,m),o.child)}function Uv(r,o,s,f,m,v){return fa(o),o.updateQueue=null,s=jy(o,f,s,m),Hy(r),f=Lp(),r!==null&&!Tn?(Pp(r,o,v),Ii(r,o,v)):(Tt&&f&&gp(o),o.flags|=1,Hn(r,o,s,v),o.child)}function Fv(r,o,s,f,m){if(fa(o),o.stateNode===null){var v=ns,w=s.contextType;typeof w=="object"&&w!==null&&(v=Fn(w)),v=new s(f,v),o.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Zp,o.stateNode=v,v._reactInternals=o,v=o.stateNode,v.props=f,v.state=o.memoizedState,v.refs={},Tp(o),w=s.contextType,v.context=typeof w=="object"&&w!==null?Fn(w):ns,v.state=o.memoizedState,w=s.getDerivedStateFromProps,typeof w=="function"&&(Wp(o,s,w,f),v.state=o.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(w=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),w!==v.state&&Zp.enqueueReplaceState(v,v.state,null),Tl(o,f,v,m),Rl(),v.state=o.memoizedState),typeof v.componentDidMount=="function"&&(o.flags|=4194308),f=!0}else if(r===null){v=o.stateNode;var L=o.memoizedProps,K=ba(s,L);v.props=K;var ie=v.context,de=s.contextType;w=ns,typeof de=="object"&&de!==null&&(w=Fn(de));var he=s.getDerivedStateFromProps;de=typeof he=="function"||typeof v.getSnapshotBeforeUpdate=="function",L=o.pendingProps!==L,de||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(L||ie!==w)&&Tv(o,v,f,w),go=!1;var oe=o.memoizedState;v.state=oe,Tl(o,f,v,m),Rl(),ie=o.memoizedState,L||oe!==ie||go?(typeof he=="function"&&(Wp(o,s,he,f),ie=o.memoizedState),(K=go||Rv(o,s,K,f,oe,ie,w))?(de||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(o.flags|=4194308)):(typeof v.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=f,o.memoizedState=ie),v.props=f,v.state=ie,v.context=w,f=K):(typeof v.componentDidMount=="function"&&(o.flags|=4194308),f=!1)}else{v=o.stateNode,Cp(r,o),w=o.memoizedProps,de=ba(s,w),v.props=de,he=o.pendingProps,oe=v.context,ie=s.contextType,K=ns,typeof ie=="object"&&ie!==null&&(K=Fn(ie)),L=s.getDerivedStateFromProps,(ie=typeof L=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(w!==he||oe!==K)&&Tv(o,v,f,K),go=!1,oe=o.memoizedState,v.state=oe,Tl(o,f,v,m),Rl();var se=o.memoizedState;w!==he||oe!==se||go||r!==null&&r.dependencies!==null&&fu(r.dependencies)?(typeof L=="function"&&(Wp(o,s,L,f),se=o.memoizedState),(de=go||Rv(o,s,de,f,oe,se,K)||r!==null&&r.dependencies!==null&&fu(r.dependencies))?(ie||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(f,se,K),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(f,se,K)),typeof v.componentDidUpdate=="function"&&(o.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof v.componentDidUpdate!="function"||w===r.memoizedProps&&oe===r.memoizedState||(o.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||w===r.memoizedProps&&oe===r.memoizedState||(o.flags|=1024),o.memoizedProps=f,o.memoizedState=se),v.props=f,v.state=se,v.context=K,f=de):(typeof v.componentDidUpdate!="function"||w===r.memoizedProps&&oe===r.memoizedState||(o.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||w===r.memoizedProps&&oe===r.memoizedState||(o.flags|=1024),f=!1)}return v=f,Ou(r,o),f=(o.flags&128)!==0,v||f?(v=o.stateNode,s=f&&typeof s.getDerivedStateFromError!="function"?null:v.render(),o.flags|=1,r!==null&&f?(o.child=ga(o,r.child,null,m),o.child=ga(o,null,s,m)):Hn(r,o,s,m),o.memoizedState=v.state,r=o.child):r=Ii(r,o,m),r}function Hv(r,o,s,f){return ca(),o.flags|=256,Hn(r,o,s,f),o.child}var th={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function nh(r){return{baseLanes:r,cachePool:Oy()}}function rh(r,o,s){return r=r!==null?r.childLanes&~s:0,o&&(r|=Mr),r}function jv(r,o,s){var f=o.pendingProps,m=!1,v=(o.flags&128)!==0,w;if((w=v)||(w=r!==null&&r.memoizedState===null?!1:(yn.current&2)!==0),w&&(m=!0,o.flags&=-129),w=(o.flags&32)!==0,o.flags&=-33,r===null){if(Tt){if(m?yo(o):vo(),(r=tn)?(r=W0(r,$r),r=r!==null&&r.data!=="&"?r:null,r!==null&&(o.memoizedState={dehydrated:r,treeContext:uo!==null?{id:ri,overflow:ii}:null,retryLane:536870912,hydrationErrors:null},s=Sy(r),s.return=o,o.child=s,Un=o,tn=null)):r=null,r===null)throw po(o);return Uh(r)?o.lanes=32:o.lanes=536870912,null}var L=f.children;return f=f.fallback,m?(vo(),m=o.mode,L=Mu({mode:"hidden",children:L},m),f=la(f,m,s,null),L.return=o,f.return=o,L.sibling=f,o.child=L,f=o.child,f.memoizedState=nh(s),f.childLanes=rh(r,w,s),o.memoizedState=th,Ml(null,f)):(yo(o),ih(o,L))}var K=r.memoizedState;if(K!==null&&(L=K.dehydrated,L!==null)){if(v)o.flags&256?(yo(o),o.flags&=-257,o=oh(r,o,s)):o.memoizedState!==null?(vo(),o.child=r.child,o.flags|=128,o=null):(vo(),L=f.fallback,m=o.mode,f=Mu({mode:"visible",children:f.children},m),L=la(L,m,s,null),L.flags|=2,f.return=o,L.return=o,f.sibling=L,o.child=f,ga(o,r.child,null,s),f=o.child,f.memoizedState=nh(s),f.childLanes=rh(r,w,s),o.memoizedState=th,o=Ml(null,f));else if(yo(o),Uh(L)){if(w=L.nextSibling&&L.nextSibling.dataset,w)var ie=w.dgst;w=ie,f=Error(i(419)),f.stack="",f.digest=w,vl({value:f,source:null,stack:null}),o=oh(r,o,s)}else if(Tn||as(r,o,s,!1),w=(s&r.childLanes)!==0,Tn||w){if(w=Yt,w!==null&&(f=sn(w,s),f!==0&&f!==K.retryLane))throw K.retryLane=f,sa(r,f),gr(w,r,f),Jp;Bh(L)||Fu(),o=oh(r,o,s)}else Bh(L)?(o.flags|=192,o.child=r.child,o=null):(r=K.treeContext,tn=Vr(L.nextSibling),Un=o,Tt=!0,fo=null,$r=!1,r!==null&&wy(o,r),o=ih(o,f.children),o.flags|=4096);return o}return m?(vo(),L=f.fallback,m=o.mode,K=r.child,ie=K.sibling,f=Ci(K,{mode:"hidden",children:f.children}),f.subtreeFlags=K.subtreeFlags&65011712,ie!==null?L=Ci(ie,L):(L=la(L,m,s,null),L.flags|=2),L.return=o,f.return=o,f.sibling=L,o.child=f,Ml(null,f),f=o.child,L=r.child.memoizedState,L===null?L=nh(s):(m=L.cachePool,m!==null?(K=wn._currentValue,m=m.parent!==K?{parent:K,pool:K}:m):m=Oy(),L={baseLanes:L.baseLanes|s,cachePool:m}),f.memoizedState=L,f.childLanes=rh(r,w,s),o.memoizedState=th,Ml(r.child,f)):(yo(o),s=r.child,r=s.sibling,s=Ci(s,{mode:"visible",children:f.children}),s.return=o,s.sibling=null,r!==null&&(w=o.deletions,w===null?(o.deletions=[r],o.flags|=16):w.push(r)),o.child=s,o.memoizedState=null,s)}function ih(r,o){return o=Mu({mode:"visible",children:o},r.mode),o.return=r,r.child=o}function Mu(r,o){return r=Cr(22,r,null,o),r.lanes=0,r}function oh(r,o,s){return ga(o,r.child,null,s),r=ih(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function Gv(r,o,s){r.lanes|=o;var f=r.alternate;f!==null&&(f.lanes|=o),Ep(r.return,o,s)}function ah(r,o,s,f,m,v){var w=r.memoizedState;w===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:f,tail:s,tailMode:m,treeForkCount:v}:(w.isBackwards=o,w.rendering=null,w.renderingStartTime=0,w.last=f,w.tail=s,w.tailMode=m,w.treeForkCount=v)}function $v(r,o,s){var f=o.pendingProps,m=f.revealOrder,v=f.tail;f=f.children;var w=yn.current,L=(w&2)!==0;if(L?(w=w&1|2,o.flags|=128):w&=1,z(yn,w),Hn(r,o,f,s),f=Tt?yl:0,!L&&r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Gv(r,s,o);else if(r.tag===19)Gv(r,s,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(m){case"forwards":for(s=o.child,m=null;s!==null;)r=s.alternate,r!==null&&vu(r)===null&&(m=s),s=s.sibling;s=m,s===null?(m=o.child,o.child=null):(m=s.sibling,s.sibling=null),ah(o,!1,m,s,v,f);break;case"backwards":case"unstable_legacy-backwards":for(s=null,m=o.child,o.child=null;m!==null;){if(r=m.alternate,r!==null&&vu(r)===null){o.child=m;break}r=m.sibling,m.sibling=s,s=m,m=r}ah(o,!0,s,null,v,f);break;case"together":ah(o,!1,null,null,void 0,f);break;default:o.memoizedState=null}return o.child}function Ii(r,o,s){if(r!==null&&(o.dependencies=r.dependencies),xo|=o.lanes,(s&o.childLanes)===0)if(r!==null){if(as(r,o,s,!1),(s&o.childLanes)===0)return null}else return null;if(r!==null&&o.child!==r.child)throw Error(i(153));if(o.child!==null){for(r=o.child,s=Ci(r,r.pendingProps),o.child=s,s.return=o;r.sibling!==null;)r=r.sibling,s=s.sibling=Ci(r,r.pendingProps),s.return=o;s.sibling=null}return o.child}function sh(r,o){return(r.lanes&o)!==0?!0:(r=r.dependencies,!!(r!==null&&fu(r)))}function kk(r,o,s){switch(o.tag){case 3:Ee(o,o.stateNode.containerInfo),ho(o,wn,r.memoizedState.cache),ca();break;case 27:case 5:De(o);break;case 4:Ee(o,o.stateNode.containerInfo);break;case 10:ho(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,Np(o),null;break;case 13:var f=o.memoizedState;if(f!==null)return f.dehydrated!==null?(yo(o),o.flags|=128,null):(s&o.child.childLanes)!==0?jv(r,o,s):(yo(o),r=Ii(r,o,s),r!==null?r.sibling:null);yo(o);break;case 19:var m=(r.flags&128)!==0;if(f=(s&o.childLanes)!==0,f||(as(r,o,s,!1),f=(s&o.childLanes)!==0),m){if(f)return $v(r,o,s);o.flags|=128}if(m=o.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),z(yn,yn.current),f)break;return null;case 22:return o.lanes=0,Pv(r,o,s,o.pendingProps);case 24:ho(o,wn,r.memoizedState.cache)}return Ii(r,o,s)}function qv(r,o,s){if(r!==null)if(r.memoizedProps!==o.pendingProps)Tn=!0;else{if(!sh(r,s)&&(o.flags&128)===0)return Tn=!1,kk(r,o,s);Tn=(r.flags&131072)!==0}else Tn=!1,Tt&&(o.flags&1048576)!==0&&_y(o,yl,o.index);switch(o.lanes=0,o.tag){case 16:e:{var f=o.pendingProps;if(r=pa(o.elementType),o.type=r,typeof r=="function")dp(r)?(f=ba(r,f),o.tag=1,o=Fv(null,o,r,f,s)):(o.tag=0,o=eh(null,o,r,f,s));else{if(r!=null){var m=r.$$typeof;if(m===O){o.tag=11,o=Iv(null,o,r,f,s);break e}else if(m===P){o.tag=14,o=Dv(null,o,r,f,s);break e}}throw o=V(r)||r,Error(i(306,o,""))}}return o;case 0:return eh(r,o,o.type,o.pendingProps,s);case 1:return f=o.type,m=ba(f,o.pendingProps),Fv(r,o,f,m,s);case 3:e:{if(Ee(o,o.stateNode.containerInfo),r===null)throw Error(i(387));f=o.pendingProps;var v=o.memoizedState;m=v.element,Cp(r,o),Tl(o,f,null,s);var w=o.memoizedState;if(f=w.cache,ho(o,wn,f),f!==v.cache&&Sp(o,[wn],s,!0),Rl(),f=w.element,v.isDehydrated)if(v={element:f,isDehydrated:!1,cache:w.cache},o.updateQueue.baseState=v,o.memoizedState=v,o.flags&256){o=Hv(r,o,f,s);break e}else if(f!==m){m=Hr(Error(i(424)),o),vl(m),o=Hv(r,o,f,s);break e}else for(r=o.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,tn=Vr(r.firstChild),Un=o,Tt=!0,fo=null,$r=!0,s=Py(o,null,f,s),o.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(ca(),f===m){o=Ii(r,o,s);break e}Hn(r,o,f,s)}o=o.child}return o;case 26:return Ou(r,o),r===null?(s=nE(o.type,null,o.pendingProps,null))?o.memoizedState=s:Tt||(s=o.type,r=o.pendingProps,f=Yu(ae.current).createElement(s),f[mn]=o,f[Yn]=r,jn(f,s,r),xn(f),o.stateNode=f):o.memoizedState=nE(o.type,r.memoizedProps,o.pendingProps,r.memoizedState),null;case 27:return De(o),r===null&&Tt&&(f=o.stateNode=J0(o.type,o.pendingProps,ae.current),Un=o,$r=!0,m=tn,Co(o.type)?(Fh=m,tn=Vr(f.firstChild)):tn=m),Hn(r,o,o.pendingProps.children,s),Ou(r,o),r===null&&(o.flags|=4194304),o.child;case 5:return r===null&&Tt&&((m=f=tn)&&(f=iA(f,o.type,o.pendingProps,$r),f!==null?(o.stateNode=f,Un=o,tn=Vr(f.firstChild),$r=!1,m=!0):m=!1),m||po(o)),De(o),m=o.type,v=o.pendingProps,w=r!==null?r.memoizedProps:null,f=v.children,Lh(m,v)?f=null:w!==null&&Lh(m,w)&&(o.flags|=32),o.memoizedState!==null&&(m=Dp(r,o,vk,null,null,s),Vl._currentValue=m),Ou(r,o),Hn(r,o,f,s),o.child;case 6:return r===null&&Tt&&((r=s=tn)&&(s=oA(s,o.pendingProps,$r),s!==null?(o.stateNode=s,Un=o,tn=null,r=!0):r=!1),r||po(o)),null;case 13:return jv(r,o,s);case 4:return Ee(o,o.stateNode.containerInfo),f=o.pendingProps,r===null?o.child=ga(o,null,f,s):Hn(r,o,f,s),o.child;case 11:return Iv(r,o,o.type,o.pendingProps,s);case 7:return Hn(r,o,o.pendingProps,s),o.child;case 8:return Hn(r,o,o.pendingProps.children,s),o.child;case 12:return Hn(r,o,o.pendingProps.children,s),o.child;case 10:return f=o.pendingProps,ho(o,o.type,f.value),Hn(r,o,f.children,s),o.child;case 9:return m=o.type._context,f=o.pendingProps.children,fa(o),m=Fn(m),f=f(m),o.flags|=1,Hn(r,o,f,s),o.child;case 14:return Dv(r,o,o.type,o.pendingProps,s);case 15:return Lv(r,o,o.type,o.pendingProps,s);case 19:return $v(r,o,s);case 31:return Ck(r,o,s);case 22:return Pv(r,o,s,o.pendingProps);case 24:return fa(o),f=Fn(wn),r===null?(m=wp(),m===null&&(m=Yt,v=xp(),m.pooledCache=v,v.refCount++,v!==null&&(m.pooledCacheLanes|=s),m=v),o.memoizedState={parent:f,cache:m},Tp(o),ho(o,wn,m)):((r.lanes&s)!==0&&(Cp(r,o),Tl(o,null,null,s),Rl()),m=r.memoizedState,v=o.memoizedState,m.parent!==f?(m={parent:f,cache:f},o.memoizedState=m,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=m),ho(o,wn,f)):(f=v.cache,ho(o,wn,f),f!==m.cache&&Sp(o,[wn],s,!0))),Hn(r,o,o.pendingProps.children,s),o.child;case 29:throw o.pendingProps}throw Error(i(156,o.tag))}function Di(r){r.flags|=4}function lh(r,o,s,f,m){if((o=(r.mode&32)!==0)&&(o=!1),o){if(r.flags|=16777216,(m&335544128)===m)if(r.stateNode.complete)r.flags|=8192;else if(y0())r.flags|=8192;else throw ha=gu,Rp}else r.flags&=-16777217}function Vv(r,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!sE(o))if(y0())r.flags|=8192;else throw ha=gu,Rp}function Nu(r,o){o!==null&&(r.flags|=4),r.flags&16384&&(o=r.tag!==22?tt():536870912,r.lanes|=o,ys|=o)}function Nl(r,o){if(!Tt)switch(r.tailMode){case"hidden":o=r.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?r.tail=null:s.sibling=null;break;case"collapsed":s=r.tail;for(var f=null;s!==null;)s.alternate!==null&&(f=s),s=s.sibling;f===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:f.sibling=null}}function nn(r){var o=r.alternate!==null&&r.alternate.child===r.child,s=0,f=0;if(o)for(var m=r.child;m!==null;)s|=m.lanes|m.childLanes,f|=m.subtreeFlags&65011712,f|=m.flags&65011712,m.return=r,m=m.sibling;else for(m=r.child;m!==null;)s|=m.lanes|m.childLanes,f|=m.subtreeFlags,f|=m.flags,m.return=r,m=m.sibling;return r.subtreeFlags|=f,r.childLanes=s,o}function Ak(r,o,s){var f=o.pendingProps;switch(mp(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nn(o),null;case 1:return nn(o),null;case 3:return s=o.stateNode,f=null,r!==null&&(f=r.memoizedState.cache),o.memoizedState.cache!==f&&(o.flags|=2048),Oi(wn),ye(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(r===null||r.child===null)&&(os(o)?Di(o):r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,yp())),nn(o),null;case 26:var m=o.type,v=o.memoizedState;return r===null?(Di(o),v!==null?(nn(o),Vv(o,v)):(nn(o),lh(o,m,null,f,s))):v?v!==r.memoizedState?(Di(o),nn(o),Vv(o,v)):(nn(o),o.flags&=-16777217):(r=r.memoizedProps,r!==f&&Di(o),nn(o),lh(o,m,r,f,s)),null;case 27:if(qe(o),s=ae.current,m=o.type,r!==null&&o.stateNode!=null)r.memoizedProps!==f&&Di(o);else{if(!f){if(o.stateNode===null)throw Error(i(166));return nn(o),null}r=le.current,os(o)?Ry(o):(r=J0(m,f,s),o.stateNode=r,Di(o))}return nn(o),null;case 5:if(qe(o),m=o.type,r!==null&&o.stateNode!=null)r.memoizedProps!==f&&Di(o);else{if(!f){if(o.stateNode===null)throw Error(i(166));return nn(o),null}if(v=le.current,os(o))Ry(o);else{var w=Yu(ae.current);switch(v){case 1:v=w.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:v=w.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":v=w.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":v=w.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":v=w.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof f.is=="string"?w.createElement("select",{is:f.is}):w.createElement("select"),f.multiple?v.multiple=!0:f.size&&(v.size=f.size);break;default:v=typeof f.is=="string"?w.createElement(m,{is:f.is}):w.createElement(m)}}v[mn]=o,v[Yn]=f;e:for(w=o.child;w!==null;){if(w.tag===5||w.tag===6)v.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===o)break e;for(;w.sibling===null;){if(w.return===null||w.return===o)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}o.stateNode=v;e:switch(jn(v,m,f),m){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}f&&Di(o)}}return nn(o),lh(o,o.type,r===null?null:r.memoizedProps,o.pendingProps,s),null;case 6:if(r&&o.stateNode!=null)r.memoizedProps!==f&&Di(o);else{if(typeof f!="string"&&o.stateNode===null)throw Error(i(166));if(r=ae.current,os(o)){if(r=o.stateNode,s=o.memoizedProps,f=null,m=Un,m!==null)switch(m.tag){case 27:case 5:f=m.memoizedProps}r[mn]=o,r=!!(r.nodeValue===s||f!==null&&f.suppressHydrationWarning===!0||j0(r.nodeValue,s)),r||po(o,!0)}else r=Yu(r).createTextNode(f),r[mn]=o,o.stateNode=r}return nn(o),null;case 31:if(s=o.memoizedState,r===null||r.memoizedState!==null){if(f=os(o),s!==null){if(r===null){if(!f)throw Error(i(318));if(r=o.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[mn]=o}else ca(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;nn(o),r=!1}else s=yp(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=s),r=!0;if(!r)return o.flags&256?(Ar(o),o):(Ar(o),null);if((o.flags&128)!==0)throw Error(i(558))}return nn(o),null;case 13:if(f=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(m=os(o),f!==null&&f.dehydrated!==null){if(r===null){if(!m)throw Error(i(318));if(m=o.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[mn]=o}else ca(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;nn(o),m=!1}else m=yp(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=m),m=!0;if(!m)return o.flags&256?(Ar(o),o):(Ar(o),null)}return Ar(o),(o.flags&128)!==0?(o.lanes=s,o):(s=f!==null,r=r!==null&&r.memoizedState!==null,s&&(f=o.child,m=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(m=f.alternate.memoizedState.cachePool.pool),v=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(v=f.memoizedState.cachePool.pool),v!==m&&(f.flags|=2048)),s!==r&&s&&(o.child.flags|=8192),Nu(o,o.updateQueue),nn(o),null);case 4:return ye(),r===null&&Oh(o.stateNode.containerInfo),nn(o),null;case 10:return Oi(o.type),nn(o),null;case 19:if(Z(yn),f=o.memoizedState,f===null)return nn(o),null;if(m=(o.flags&128)!==0,v=f.rendering,v===null)if(m)Nl(f,!1);else{if(fn!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(v=vu(r),v!==null){for(o.flags|=128,Nl(f,!1),r=v.updateQueue,o.updateQueue=r,Nu(o,r),o.subtreeFlags=0,r=s,s=o.child;s!==null;)Ey(s,r),s=s.sibling;return z(yn,yn.current&1|2),Tt&&ki(o,f.treeForkCount),o.child}r=r.sibling}f.tail!==null&&ve()>zu&&(o.flags|=128,m=!0,Nl(f,!1),o.lanes=4194304)}else{if(!m)if(r=vu(v),r!==null){if(o.flags|=128,m=!0,r=r.updateQueue,o.updateQueue=r,Nu(o,r),Nl(f,!0),f.tail===null&&f.tailMode==="hidden"&&!v.alternate&&!Tt)return nn(o),null}else 2*ve()-f.renderingStartTime>zu&&s!==536870912&&(o.flags|=128,m=!0,Nl(f,!1),o.lanes=4194304);f.isBackwards?(v.sibling=o.child,o.child=v):(r=f.last,r!==null?r.sibling=v:o.child=v,f.last=v)}return f.tail!==null?(r=f.tail,f.rendering=r,f.tail=r.sibling,f.renderingStartTime=ve(),r.sibling=null,s=yn.current,z(yn,m?s&1|2:s&1),Tt&&ki(o,f.treeForkCount),r):(nn(o),null);case 22:case 23:return Ar(o),Mp(),f=o.memoizedState!==null,r!==null?r.memoizedState!==null!==f&&(o.flags|=8192):f&&(o.flags|=8192),f?(s&536870912)!==0&&(o.flags&128)===0&&(nn(o),o.subtreeFlags&6&&(o.flags|=8192)):nn(o),s=o.updateQueue,s!==null&&Nu(o,s.retryQueue),s=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==s&&(o.flags|=2048),r!==null&&Z(da),null;case 24:return s=null,r!==null&&(s=r.memoizedState.cache),o.memoizedState.cache!==s&&(o.flags|=2048),Oi(wn),nn(o),null;case 25:return null;case 30:return null}throw Error(i(156,o.tag))}function Ok(r,o){switch(mp(o),o.tag){case 1:return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return Oi(wn),ye(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 26:case 27:case 5:return qe(o),null;case 31:if(o.memoizedState!==null){if(Ar(o),o.alternate===null)throw Error(i(340));ca()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 13:if(Ar(o),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(i(340));ca()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return Z(yn),null;case 4:return ye(),null;case 10:return Oi(o.type),null;case 22:case 23:return Ar(o),Mp(),r!==null&&Z(da),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 24:return Oi(wn),null;case 25:return null;default:return null}}function Yv(r,o){switch(mp(o),o.tag){case 3:Oi(wn),ye();break;case 26:case 27:case 5:qe(o);break;case 4:ye();break;case 31:o.memoizedState!==null&&Ar(o);break;case 13:Ar(o);break;case 19:Z(yn);break;case 10:Oi(o.type);break;case 22:case 23:Ar(o),Mp(),r!==null&&Z(da);break;case 24:Oi(wn)}}function Il(r,o){try{var s=o.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var m=f.next;s=m;do{if((s.tag&r)===r){f=void 0;var v=s.create,w=s.inst;f=v(),w.destroy=f}s=s.next}while(s!==m)}}catch(L){Ht(o,o.return,L)}}function Eo(r,o,s){try{var f=o.updateQueue,m=f!==null?f.lastEffect:null;if(m!==null){var v=m.next;f=v;do{if((f.tag&r)===r){var w=f.inst,L=w.destroy;if(L!==void 0){w.destroy=void 0,m=o;var K=s,ie=L;try{ie()}catch(de){Ht(m,K,de)}}}f=f.next}while(f!==v)}}catch(de){Ht(o,o.return,de)}}function Kv(r){var o=r.updateQueue;if(o!==null){var s=r.stateNode;try{By(o,s)}catch(f){Ht(r,r.return,f)}}}function Xv(r,o,s){s.props=ba(r.type,r.memoizedProps),s.state=r.memoizedState;try{s.componentWillUnmount()}catch(f){Ht(r,o,f)}}function Dl(r,o){try{var s=r.ref;if(s!==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 s=="function"?r.refCleanup=s(f):s.current=f}}catch(m){Ht(r,o,m)}}function oi(r,o){var s=r.ref,f=r.refCleanup;if(s!==null)if(typeof f=="function")try{f()}catch(m){Ht(r,o,m)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(m){Ht(r,o,m)}else s.current=null}function Wv(r){var o=r.type,s=r.memoizedProps,f=r.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":s.autoFocus&&f.focus();break e;case"img":s.src?f.src=s.src:s.srcSet&&(f.srcset=s.srcSet)}}catch(m){Ht(r,r.return,m)}}function ch(r,o,s){try{var f=r.stateNode;Qk(f,r.type,s,o),f[Yn]=o}catch(m){Ht(r,r.return,m)}}function Zv(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Co(r.type)||r.tag===4}function uh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Zv(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&&Co(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 fh(r,o,s){var f=r.tag;if(f===5||f===6)r=r.stateNode,o?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(r,o):(o=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,o.appendChild(r),s=s._reactRootContainer,s!=null||o.onclick!==null||(o.onclick=Re));else if(f!==4&&(f===27&&Co(r.type)&&(s=r.stateNode,o=null),r=r.child,r!==null))for(fh(r,o,s),r=r.sibling;r!==null;)fh(r,o,s),r=r.sibling}function Iu(r,o,s){var f=r.tag;if(f===5||f===6)r=r.stateNode,o?s.insertBefore(r,o):s.appendChild(r);else if(f!==4&&(f===27&&Co(r.type)&&(s=r.stateNode),r=r.child,r!==null))for(Iu(r,o,s),r=r.sibling;r!==null;)Iu(r,o,s),r=r.sibling}function Qv(r){var o=r.stateNode,s=r.memoizedProps;try{for(var f=r.type,m=o.attributes;m.length;)o.removeAttributeNode(m[0]);jn(o,f,s),o[mn]=r,o[Yn]=s}catch(v){Ht(r,r.return,v)}}var Li=!1,Cn=!1,dh=!1,Jv=typeof WeakSet=="function"?WeakSet:Set,Ln=null;function Mk(r,o){if(r=r.containerInfo,Ih=ef,r=fy(r),op(r)){if("selectionStart"in r)var s={start:r.selectionStart,end:r.selectionEnd};else e:{s=(s=r.ownerDocument)&&s.defaultView||window;var f=s.getSelection&&s.getSelection();if(f&&f.rangeCount!==0){s=f.anchorNode;var m=f.anchorOffset,v=f.focusNode;f=f.focusOffset;try{s.nodeType,v.nodeType}catch{s=null;break e}var w=0,L=-1,K=-1,ie=0,de=0,he=r,oe=null;t:for(;;){for(var se;he!==s||m!==0&&he.nodeType!==3||(L=w+m),he!==v||f!==0&&he.nodeType!==3||(K=w+f),he.nodeType===3&&(w+=he.nodeValue.length),(se=he.firstChild)!==null;)oe=he,he=se;for(;;){if(he===r)break t;if(oe===s&&++ie===m&&(L=w),oe===v&&++de===f&&(K=w),(se=he.nextSibling)!==null)break;he=oe,oe=he.parentNode}he=se}s=L===-1||K===-1?null:{start:L,end:K}}else s=null}s=s||{start:0,end:0}}else s=null;for(Dh={focusedElem:r,selectionRange:s},ef=!1,Ln=o;Ln!==null;)if(o=Ln,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,Ln=r;else for(;Ln!==null;){switch(o=Ln,v=o.alternate,r=o.flags,o.tag){case 0:if((r&4)!==0&&(r=o.updateQueue,r=r!==null?r.events:null,r!==null))for(s=0;s<r.length;s++)m=r[s],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&v!==null){r=void 0,s=o,m=v.memoizedProps,v=v.memoizedState,f=s.stateNode;try{var Be=ba(s.type,m);r=f.getSnapshotBeforeUpdate(Be,v),f.__reactInternalSnapshotBeforeUpdate=r}catch(nt){Ht(s,s.return,nt)}}break;case 3:if((r&1024)!==0){if(r=o.stateNode.containerInfo,s=r.nodeType,s===9)zh(r);else if(s===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":zh(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=o.sibling,r!==null){r.return=o.return,Ln=r;break}Ln=o.return}}function e0(r,o,s){var f=s.flags;switch(s.tag){case 0:case 11:case 15:zi(r,s),f&4&&Il(5,s);break;case 1:if(zi(r,s),f&4)if(r=s.stateNode,o===null)try{r.componentDidMount()}catch(w){Ht(s,s.return,w)}else{var m=ba(s.type,o.memoizedProps);o=o.memoizedState;try{r.componentDidUpdate(m,o,r.__reactInternalSnapshotBeforeUpdate)}catch(w){Ht(s,s.return,w)}}f&64&&Kv(s),f&512&&Dl(s,s.return);break;case 3:if(zi(r,s),f&64&&(r=s.updateQueue,r!==null)){if(o=null,s.child!==null)switch(s.child.tag){case 27:case 5:o=s.child.stateNode;break;case 1:o=s.child.stateNode}try{By(r,o)}catch(w){Ht(s,s.return,w)}}break;case 27:o===null&&f&4&&Qv(s);case 26:case 5:zi(r,s),o===null&&f&4&&Wv(s),f&512&&Dl(s,s.return);break;case 12:zi(r,s);break;case 31:zi(r,s),f&4&&r0(r,s);break;case 13:zi(r,s),f&4&&i0(r,s),f&64&&(r=s.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(s=Fk.bind(null,s),aA(r,s))));break;case 22:if(f=s.memoizedState!==null||Li,!f){o=o!==null&&o.memoizedState!==null||Cn,m=Li;var v=Cn;Li=f,(Cn=o)&&!v?Bi(r,s,(s.subtreeFlags&8772)!==0):zi(r,s),Li=m,Cn=v}break;case 30:break;default:zi(r,s)}}function t0(r){var o=r.alternate;o!==null&&(r.alternate=null,t0(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&il(o)),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 on=null,fr=!1;function Pi(r,o,s){for(s=s.child;s!==null;)n0(r,o,s),s=s.sibling}function n0(r,o,s){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(ut,s)}catch{}switch(s.tag){case 26:Cn||oi(s,o),Pi(r,o,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Cn||oi(s,o);var f=on,m=fr;Co(s.type)&&(on=s.stateNode,fr=!1),Pi(r,o,s),Gl(s.stateNode),on=f,fr=m;break;case 5:Cn||oi(s,o);case 6:if(f=on,m=fr,on=null,Pi(r,o,s),on=f,fr=m,on!==null)if(fr)try{(on.nodeType===9?on.body:on.nodeName==="HTML"?on.ownerDocument.body:on).removeChild(s.stateNode)}catch(v){Ht(s,o,v)}else try{on.removeChild(s.stateNode)}catch(v){Ht(s,o,v)}break;case 18:on!==null&&(fr?(r=on,K0(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,s.stateNode),Ts(r)):K0(on,s.stateNode));break;case 4:f=on,m=fr,on=s.stateNode.containerInfo,fr=!0,Pi(r,o,s),on=f,fr=m;break;case 0:case 11:case 14:case 15:Eo(2,s,o),Cn||Eo(4,s,o),Pi(r,o,s);break;case 1:Cn||(oi(s,o),f=s.stateNode,typeof f.componentWillUnmount=="function"&&Xv(s,o,f)),Pi(r,o,s);break;case 21:Pi(r,o,s);break;case 22:Cn=(f=Cn)||s.memoizedState!==null,Pi(r,o,s),Cn=f;break;default:Pi(r,o,s)}}function r0(r,o){if(o.memoizedState===null&&(r=o.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Ts(r)}catch(s){Ht(o,o.return,s)}}}function i0(r,o){if(o.memoizedState===null&&(r=o.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Ts(r)}catch(s){Ht(o,o.return,s)}}function Nk(r){switch(r.tag){case 31:case 13:case 19:var o=r.stateNode;return o===null&&(o=r.stateNode=new Jv),o;case 22:return r=r.stateNode,o=r._retryCache,o===null&&(o=r._retryCache=new Jv),o;default:throw Error(i(435,r.tag))}}function Du(r,o){var s=Nk(r);o.forEach(function(f){if(!s.has(f)){s.add(f);var m=Hk.bind(null,r,f);f.then(m,m)}})}function dr(r,o){var s=o.deletions;if(s!==null)for(var f=0;f<s.length;f++){var m=s[f],v=r,w=o,L=w;e:for(;L!==null;){switch(L.tag){case 27:if(Co(L.type)){on=L.stateNode,fr=!1;break e}break;case 5:on=L.stateNode,fr=!1;break e;case 3:case 4:on=L.stateNode.containerInfo,fr=!0;break e}L=L.return}if(on===null)throw Error(i(160));n0(v,w,m),on=null,fr=!1,v=m.alternate,v!==null&&(v.return=null),m.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)o0(o,r),o=o.sibling}var Zr=null;function o0(r,o){var s=r.alternate,f=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:dr(o,r),pr(r),f&4&&(Eo(3,r,r.return),Il(3,r),Eo(5,r,r.return));break;case 1:dr(o,r),pr(r),f&512&&(Cn||s===null||oi(s,s.return)),f&64&&Li&&(r=r.updateQueue,r!==null&&(f=r.callbacks,f!==null&&(s=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=s===null?f:s.concat(f))));break;case 26:var m=Zr;if(dr(o,r),pr(r),f&512&&(Cn||s===null||oi(s,s.return)),f&4){var v=s!==null?s.memoizedState:null;if(f=r.memoizedState,s===null)if(f===null)if(r.stateNode===null){e:{f=r.type,s=r.memoizedProps,m=m.ownerDocument||m;t:switch(f){case"title":v=m.getElementsByTagName("title")[0],(!v||v[ta]||v[mn]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=m.createElement(f),m.head.insertBefore(v,m.querySelector("head > title"))),jn(v,f,s),v[mn]=r,xn(v),f=v;break e;case"link":var w=oE("link","href",m).get(f+(s.href||""));if(w){for(var L=0;L<w.length;L++)if(v=w[L],v.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&v.getAttribute("rel")===(s.rel==null?null:s.rel)&&v.getAttribute("title")===(s.title==null?null:s.title)&&v.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){w.splice(L,1);break t}}v=m.createElement(f),jn(v,f,s),m.head.appendChild(v);break;case"meta":if(w=oE("meta","content",m).get(f+(s.content||""))){for(L=0;L<w.length;L++)if(v=w[L],v.getAttribute("content")===(s.content==null?null:""+s.content)&&v.getAttribute("name")===(s.name==null?null:s.name)&&v.getAttribute("property")===(s.property==null?null:s.property)&&v.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&v.getAttribute("charset")===(s.charSet==null?null:s.charSet)){w.splice(L,1);break t}}v=m.createElement(f),jn(v,f,s),m.head.appendChild(v);break;default:throw Error(i(468,f))}v[mn]=r,xn(v),f=v}r.stateNode=f}else aE(m,r.type,r.stateNode);else r.stateNode=iE(m,f,r.memoizedProps);else v!==f?(v===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):v.count--,f===null?aE(m,r.type,r.stateNode):iE(m,f,r.memoizedProps)):f===null&&r.stateNode!==null&&ch(r,r.memoizedProps,s.memoizedProps)}break;case 27:dr(o,r),pr(r),f&512&&(Cn||s===null||oi(s,s.return)),s!==null&&f&4&&ch(r,r.memoizedProps,s.memoizedProps);break;case 5:if(dr(o,r),pr(r),f&512&&(Cn||s===null||oi(s,s.return)),r.flags&32){m=r.stateNode;try{rt(m,"")}catch(Be){Ht(r,r.return,Be)}}f&4&&r.stateNode!=null&&(m=r.memoizedProps,ch(r,m,s!==null?s.memoizedProps:m)),f&1024&&(dh=!0);break;case 6:if(dr(o,r),pr(r),f&4){if(r.stateNode===null)throw Error(i(162));f=r.memoizedProps,s=r.stateNode;try{s.nodeValue=f}catch(Be){Ht(r,r.return,Be)}}break;case 3:if(Wu=null,m=Zr,Zr=Ku(o.containerInfo),dr(o,r),Zr=m,pr(r),f&4&&s!==null&&s.memoizedState.isDehydrated)try{Ts(o.containerInfo)}catch(Be){Ht(r,r.return,Be)}dh&&(dh=!1,a0(r));break;case 4:f=Zr,Zr=Ku(r.stateNode.containerInfo),dr(o,r),pr(r),Zr=f;break;case 12:dr(o,r),pr(r);break;case 31:dr(o,r),pr(r),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,Du(r,f)));break;case 13:dr(o,r),pr(r),r.child.flags&8192&&r.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Pu=ve()),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,Du(r,f)));break;case 22:m=r.memoizedState!==null;var K=s!==null&&s.memoizedState!==null,ie=Li,de=Cn;if(Li=ie||m,Cn=de||K,dr(o,r),Cn=de,Li=ie,pr(r),f&8192)e:for(o=r.stateNode,o._visibility=m?o._visibility&-2:o._visibility|1,m&&(s===null||K||Li||Cn||ya(r)),s=null,o=r;;){if(o.tag===5||o.tag===26){if(s===null){K=s=o;try{if(v=K.stateNode,m)w=v.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{L=K.stateNode;var he=K.memoizedProps.style,oe=he!=null&&he.hasOwnProperty("display")?he.display:null;L.style.display=oe==null||typeof oe=="boolean"?"":(""+oe).trim()}}catch(Be){Ht(K,K.return,Be)}}}else if(o.tag===6){if(s===null){K=o;try{K.stateNode.nodeValue=m?"":K.memoizedProps}catch(Be){Ht(K,K.return,Be)}}}else if(o.tag===18){if(s===null){K=o;try{var se=K.stateNode;m?X0(se,!0):X0(K.stateNode,!1)}catch(Be){Ht(K,K.return,Be)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===r)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break e;for(;o.sibling===null;){if(o.return===null||o.return===r)break e;s===o&&(s=null),o=o.return}s===o&&(s=null),o.sibling.return=o.return,o=o.sibling}f&4&&(f=r.updateQueue,f!==null&&(s=f.retryQueue,s!==null&&(f.retryQueue=null,Du(r,s))));break;case 19:dr(o,r),pr(r),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,Du(r,f)));break;case 30:break;case 21:break;default:dr(o,r),pr(r)}}function pr(r){var o=r.flags;if(o&2){try{for(var s,f=r.return;f!==null;){if(Zv(f)){s=f;break}f=f.return}if(s==null)throw Error(i(160));switch(s.tag){case 27:var m=s.stateNode,v=uh(r);Iu(r,v,m);break;case 5:var w=s.stateNode;s.flags&32&&(rt(w,""),s.flags&=-33);var L=uh(r);Iu(r,L,w);break;case 3:case 4:var K=s.stateNode.containerInfo,ie=uh(r);fh(r,ie,K);break;default:throw Error(i(161))}}catch(de){Ht(r,r.return,de)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function a0(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var o=r;a0(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),r=r.sibling}}function zi(r,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)e0(r,o.alternate,o),o=o.sibling}function ya(r){for(r=r.child;r!==null;){var o=r;switch(o.tag){case 0:case 11:case 14:case 15:Eo(4,o,o.return),ya(o);break;case 1:oi(o,o.return);var s=o.stateNode;typeof s.componentWillUnmount=="function"&&Xv(o,o.return,s),ya(o);break;case 27:Gl(o.stateNode);case 26:case 5:oi(o,o.return),ya(o);break;case 22:o.memoizedState===null&&ya(o);break;case 30:ya(o);break;default:ya(o)}r=r.sibling}}function Bi(r,o,s){for(s=s&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var f=o.alternate,m=r,v=o,w=v.flags;switch(v.tag){case 0:case 11:case 15:Bi(m,v,s),Il(4,v);break;case 1:if(Bi(m,v,s),f=v,m=f.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(ie){Ht(f,f.return,ie)}if(f=v,m=f.updateQueue,m!==null){var L=f.stateNode;try{var K=m.shared.hiddenCallbacks;if(K!==null)for(m.shared.hiddenCallbacks=null,m=0;m<K.length;m++)zy(K[m],L)}catch(ie){Ht(f,f.return,ie)}}s&&w&64&&Kv(v),Dl(v,v.return);break;case 27:Qv(v);case 26:case 5:Bi(m,v,s),s&&f===null&&w&4&&Wv(v),Dl(v,v.return);break;case 12:Bi(m,v,s);break;case 31:Bi(m,v,s),s&&w&4&&r0(m,v);break;case 13:Bi(m,v,s),s&&w&4&&i0(m,v);break;case 22:v.memoizedState===null&&Bi(m,v,s),Dl(v,v.return);break;case 30:break;default:Bi(m,v,s)}o=o.sibling}}function ph(r,o){var s=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),r=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(r=o.memoizedState.cachePool.pool),r!==s&&(r!=null&&r.refCount++,s!=null&&El(s))}function hh(r,o){r=null,o.alternate!==null&&(r=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==r&&(o.refCount++,r!=null&&El(r))}function Qr(r,o,s,f){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)s0(r,o,s,f),o=o.sibling}function s0(r,o,s,f){var m=o.flags;switch(o.tag){case 0:case 11:case 15:Qr(r,o,s,f),m&2048&&Il(9,o);break;case 1:Qr(r,o,s,f);break;case 3:Qr(r,o,s,f),m&2048&&(r=null,o.alternate!==null&&(r=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==r&&(o.refCount++,r!=null&&El(r)));break;case 12:if(m&2048){Qr(r,o,s,f),r=o.stateNode;try{var v=o.memoizedProps,w=v.id,L=v.onPostCommit;typeof L=="function"&&L(w,o.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(K){Ht(o,o.return,K)}}else Qr(r,o,s,f);break;case 31:Qr(r,o,s,f);break;case 13:Qr(r,o,s,f);break;case 23:break;case 22:v=o.stateNode,w=o.alternate,o.memoizedState!==null?v._visibility&2?Qr(r,o,s,f):Ll(r,o):v._visibility&2?Qr(r,o,s,f):(v._visibility|=2,gs(r,o,s,f,(o.subtreeFlags&10256)!==0||!1)),m&2048&&ph(w,o);break;case 24:Qr(r,o,s,f),m&2048&&hh(o.alternate,o);break;default:Qr(r,o,s,f)}}function gs(r,o,s,f,m){for(m=m&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var v=r,w=o,L=s,K=f,ie=w.flags;switch(w.tag){case 0:case 11:case 15:gs(v,w,L,K,m),Il(8,w);break;case 23:break;case 22:var de=w.stateNode;w.memoizedState!==null?de._visibility&2?gs(v,w,L,K,m):Ll(v,w):(de._visibility|=2,gs(v,w,L,K,m)),m&&ie&2048&&ph(w.alternate,w);break;case 24:gs(v,w,L,K,m),m&&ie&2048&&hh(w.alternate,w);break;default:gs(v,w,L,K,m)}o=o.sibling}}function Ll(r,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var s=r,f=o,m=f.flags;switch(f.tag){case 22:Ll(s,f),m&2048&&ph(f.alternate,f);break;case 24:Ll(s,f),m&2048&&hh(f.alternate,f);break;default:Ll(s,f)}o=o.sibling}}var Pl=8192;function ms(r,o,s){if(r.subtreeFlags&Pl)for(r=r.child;r!==null;)l0(r,o,s),r=r.sibling}function l0(r,o,s){switch(r.tag){case 26:ms(r,o,s),r.flags&Pl&&r.memoizedState!==null&&yA(s,Zr,r.memoizedState,r.memoizedProps);break;case 5:ms(r,o,s);break;case 3:case 4:var f=Zr;Zr=Ku(r.stateNode.containerInfo),ms(r,o,s),Zr=f;break;case 22:r.memoizedState===null&&(f=r.alternate,f!==null&&f.memoizedState!==null?(f=Pl,Pl=16777216,ms(r,o,s),Pl=f):ms(r,o,s));break;default:ms(r,o,s)}}function c0(r){var o=r.alternate;if(o!==null&&(r=o.child,r!==null)){o.child=null;do o=r.sibling,r.sibling=null,r=o;while(r!==null)}}function zl(r){var o=r.deletions;if((r.flags&16)!==0){if(o!==null)for(var s=0;s<o.length;s++){var f=o[s];Ln=f,f0(f,r)}c0(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)u0(r),r=r.sibling}function u0(r){switch(r.tag){case 0:case 11:case 15:zl(r),r.flags&2048&&Eo(9,r,r.return);break;case 3:zl(r);break;case 12:zl(r);break;case 22:var o=r.stateNode;r.memoizedState!==null&&o._visibility&2&&(r.return===null||r.return.tag!==13)?(o._visibility&=-3,Lu(r)):zl(r);break;default:zl(r)}}function Lu(r){var o=r.deletions;if((r.flags&16)!==0){if(o!==null)for(var s=0;s<o.length;s++){var f=o[s];Ln=f,f0(f,r)}c0(r)}for(r=r.child;r!==null;){switch(o=r,o.tag){case 0:case 11:case 15:Eo(8,o,o.return),Lu(o);break;case 22:s=o.stateNode,s._visibility&2&&(s._visibility&=-3,Lu(o));break;default:Lu(o)}r=r.sibling}}function f0(r,o){for(;Ln!==null;){var s=Ln;switch(s.tag){case 0:case 11:case 15:Eo(8,s,o);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var f=s.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:El(s.memoizedState.cache)}if(f=s.child,f!==null)f.return=s,Ln=f;else e:for(s=r;Ln!==null;){f=Ln;var m=f.sibling,v=f.return;if(t0(f),f===s){Ln=null;break e}if(m!==null){m.return=v,Ln=m;break e}Ln=v}}}var Ik={getCacheForType:function(r){var o=Fn(wn),s=o.data.get(r);return s===void 0&&(s=r(),o.data.set(r,s)),s},cacheSignal:function(){return Fn(wn).controller.signal}},Dk=typeof WeakMap=="function"?WeakMap:Map,Lt=0,Yt=null,yt=null,wt=0,Ft=0,Or=null,So=!1,bs=!1,gh=!1,Ui=0,fn=0,xo=0,va=0,mh=0,Mr=0,ys=0,Bl=null,hr=null,bh=!1,Pu=0,d0=0,zu=1/0,Bu=null,_o=null,Mn=0,wo=null,vs=null,Fi=0,yh=0,vh=null,p0=null,Ul=0,Eh=null;function Nr(){return(Lt&2)!==0&&wt!==0?wt&-wt:B.T!==null?Th():no()}function h0(){if(Mr===0)if((wt&536870912)===0||Tt){var r=gn;gn<<=1,(gn&3932160)===0&&(gn=262144),Mr=r}else Mr=536870912;return r=kr.current,r!==null&&(r.flags|=32),Mr}function gr(r,o,s){(r===Yt&&(Ft===2||Ft===9)||r.cancelPendingCommit!==null)&&(Es(r,0),Ro(r,wt,Mr,!1)),Dt(r,s),((Lt&2)===0||r!==Yt)&&(r===Yt&&((Lt&2)===0&&(va|=s),fn===4&&Ro(r,wt,Mr,!1)),ai(r))}function g0(r,o,s){if((Lt&6)!==0)throw Error(i(327));var f=!s&&(o&127)===0&&(o&r.expiredLanes)===0||fe(r,o),m=f?zk(r,o):xh(r,o,!0),v=f;do{if(m===0){bs&&!f&&Ro(r,o,0,!1);break}else{if(s=r.current.alternate,v&&!Lk(s)){m=xh(r,o,!1),v=!1;continue}if(m===2){if(v=o,r.errorRecoveryDisabledLanes&v)var w=0;else w=r.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){o=w;e:{var L=r;m=Bl;var K=L.current.memoizedState.isDehydrated;if(K&&(Es(L,w).flags|=256),w=xh(L,w,!1),w!==2){if(gh&&!K){L.errorRecoveryDisabledLanes|=v,va|=v,m=4;break e}v=hr,hr=m,v!==null&&(hr===null?hr=v:hr.push.apply(hr,v))}m=w}if(v=!1,m!==2)continue}}if(m===1){Es(r,0),Ro(r,o,0,!0);break}e:{switch(f=r,v=m,v){case 0:case 1:throw Error(i(345));case 4:if((o&4194048)!==o)break;case 6:Ro(f,o,Mr,!So);break e;case 2:hr=null;break;case 3:case 5:break;default:throw Error(i(329))}if((o&62914560)===o&&(m=Pu+300-ve(),10<m)){if(Ro(f,o,Mr,!So),Y(f,0,!0)!==0)break e;Fi=o,f.timeoutHandle=V0(m0.bind(null,f,s,hr,Bu,bh,o,Mr,va,ys,So,v,"Throttled",-0,0),m);break e}m0(f,s,hr,Bu,bh,o,Mr,va,ys,So,v,null,-0,0)}}break}while(!0);ai(r)}function m0(r,o,s,f,m,v,w,L,K,ie,de,he,oe,se){if(r.timeoutHandle=-1,he=o.subtreeFlags,he&8192||(he&16785408)===16785408){he={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Re},l0(o,v,he);var Be=(v&62914560)===v?Pu-ve():(v&4194048)===v?d0-ve():0;if(Be=vA(he,Be),Be!==null){Fi=v,r.cancelPendingCommit=Be(w0.bind(null,r,o,v,s,f,m,w,L,K,de,he,null,oe,se)),Ro(r,v,w,!ie);return}}w0(r,o,v,s,f,m,w,L,K)}function Lk(r){for(var o=r;;){var s=o.tag;if((s===0||s===11||s===15)&&o.flags&16384&&(s=o.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var f=0;f<s.length;f++){var m=s[f],v=m.getSnapshot;m=m.value;try{if(!Tr(v(),m))return!1}catch{return!1}}if(s=o.child,o.subtreeFlags&16384&&s!==null)s.return=o,o=s;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Ro(r,o,s,f){o&=~mh,o&=~va,r.suspendedLanes|=o,r.pingedLanes&=~o,f&&(r.warmLanes|=o),f=r.expirationTimes;for(var m=o;0<m;){var v=31-xt(m),w=1<<v;f[v]=-1,m&=~w}s!==0&&Oe(r,s,o)}function Uu(){return(Lt&6)===0?(Fl(0),!1):!0}function Sh(){if(yt!==null){if(Ft===0)var r=yt.return;else r=yt,Ai=ua=null,zp(r),us=null,xl=0,r=yt;for(;r!==null;)Yv(r.alternate,r),r=r.return;yt=null}}function Es(r,o){var s=r.timeoutHandle;s!==-1&&(r.timeoutHandle=-1,tA(s)),s=r.cancelPendingCommit,s!==null&&(r.cancelPendingCommit=null,s()),Fi=0,Sh(),Yt=r,yt=s=Ci(r.current,null),wt=o,Ft=0,Or=null,So=!1,bs=fe(r,o),gh=!1,ys=Mr=mh=va=xo=fn=0,hr=Bl=null,bh=!1,(o&8)!==0&&(o|=o&32);var f=r.entangledLanes;if(f!==0)for(r=r.entanglements,f&=o;0<f;){var m=31-xt(f),v=1<<m;o|=r[m],f&=~v}return Ui=o,au(),s}function b0(r,o){ft=null,B.H=Ol,o===cs||o===hu?(o=Iy(),Ft=3):o===Rp?(o=Iy(),Ft=4):Ft=o===Jp?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Or=o,yt===null&&(fn=1,ku(r,Hr(o,r.current)))}function y0(){var r=kr.current;return r===null?!0:(wt&4194048)===wt?qr===null:(wt&62914560)===wt||(wt&536870912)!==0?r===qr:!1}function v0(){var r=B.H;return B.H=Ol,r===null?Ol:r}function E0(){var r=B.A;return B.A=Ik,r}function Fu(){fn=4,So||(wt&4194048)!==wt&&kr.current!==null||(bs=!0),(xo&134217727)===0&&(va&134217727)===0||Yt===null||Ro(Yt,wt,Mr,!1)}function xh(r,o,s){var f=Lt;Lt|=2;var m=v0(),v=E0();(Yt!==r||wt!==o)&&(Bu=null,Es(r,o)),o=!1;var w=fn;e:do try{if(Ft!==0&&yt!==null){var L=yt,K=Or;switch(Ft){case 8:Sh(),w=6;break e;case 3:case 2:case 9:case 6:kr.current===null&&(o=!0);var ie=Ft;if(Ft=0,Or=null,Ss(r,L,K,ie),s&&bs){w=0;break e}break;default:ie=Ft,Ft=0,Or=null,Ss(r,L,K,ie)}}Pk(),w=fn;break}catch(de){b0(r,de)}while(!0);return o&&r.shellSuspendCounter++,Ai=ua=null,Lt=f,B.H=m,B.A=v,yt===null&&(Yt=null,wt=0,au()),w}function Pk(){for(;yt!==null;)S0(yt)}function zk(r,o){var s=Lt;Lt|=2;var f=v0(),m=E0();Yt!==r||wt!==o?(Bu=null,zu=ve()+500,Es(r,o)):bs=fe(r,o);e:do try{if(Ft!==0&&yt!==null){o=yt;var v=Or;t:switch(Ft){case 1:Ft=0,Or=null,Ss(r,o,v,1);break;case 2:case 9:if(My(v)){Ft=0,Or=null,x0(o);break}o=function(){Ft!==2&&Ft!==9||Yt!==r||(Ft=7),ai(r)},v.then(o,o);break e;case 3:Ft=7;break e;case 4:Ft=5;break e;case 7:My(v)?(Ft=0,Or=null,x0(o)):(Ft=0,Or=null,Ss(r,o,v,7));break;case 5:var w=null;switch(yt.tag){case 26:w=yt.memoizedState;case 5:case 27:var L=yt;if(w?sE(w):L.stateNode.complete){Ft=0,Or=null;var K=L.sibling;if(K!==null)yt=K;else{var ie=L.return;ie!==null?(yt=ie,Hu(ie)):yt=null}break t}}Ft=0,Or=null,Ss(r,o,v,5);break;case 6:Ft=0,Or=null,Ss(r,o,v,6);break;case 8:Sh(),fn=6;break e;default:throw Error(i(462))}}Bk();break}catch(de){b0(r,de)}while(!0);return Ai=ua=null,B.H=f,B.A=m,Lt=s,yt!==null?0:(Yt=null,wt=0,au(),fn)}function Bk(){for(;yt!==null&&!Ae();)S0(yt)}function S0(r){var o=qv(r.alternate,r,Ui);r.memoizedProps=r.pendingProps,o===null?Hu(r):yt=o}function x0(r){var o=r,s=o.alternate;switch(o.tag){case 15:case 0:o=Uv(s,o,o.pendingProps,o.type,void 0,wt);break;case 11:o=Uv(s,o,o.pendingProps,o.type.render,o.ref,wt);break;case 5:zp(o);default:Yv(s,o),o=yt=Ey(o,Ui),o=qv(s,o,Ui)}r.memoizedProps=r.pendingProps,o===null?Hu(r):yt=o}function Ss(r,o,s,f){Ai=ua=null,zp(o),us=null,xl=0;var m=o.return;try{if(Tk(r,m,o,s,wt)){fn=1,ku(r,Hr(s,r.current)),yt=null;return}}catch(v){if(m!==null)throw yt=m,v;fn=1,ku(r,Hr(s,r.current)),yt=null;return}o.flags&32768?(Tt||f===1?r=!0:bs||(wt&536870912)!==0?r=!1:(So=r=!0,(f===2||f===9||f===3||f===6)&&(f=kr.current,f!==null&&f.tag===13&&(f.flags|=16384))),_0(o,r)):Hu(o)}function Hu(r){var o=r;do{if((o.flags&32768)!==0){_0(o,So);return}r=o.return;var s=Ak(o.alternate,o,Ui);if(s!==null){yt=s;return}if(o=o.sibling,o!==null){yt=o;return}yt=o=r}while(o!==null);fn===0&&(fn=5)}function _0(r,o){do{var s=Ok(r.alternate,r);if(s!==null){s.flags&=32767,yt=s;return}if(s=r.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!o&&(r=r.sibling,r!==null)){yt=r;return}yt=r=s}while(r!==null);fn=6,yt=null}function w0(r,o,s,f,m,v,w,L,K){r.cancelPendingCommit=null;do ju();while(Mn!==0);if((Lt&6)!==0)throw Error(i(327));if(o!==null){if(o===r.current)throw Error(i(177));if(v=o.lanes|o.childLanes,v|=up,Ue(r,s,v,w,L,K),r===Yt&&(yt=Yt=null,wt=0),vs=o,wo=r,Fi=s,yh=v,vh=m,p0=f,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,jk(Ie,function(){return A0(),null})):(r.callbackNode=null,r.callbackPriority=0),f=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||f){f=B.T,B.T=null,m=q.p,q.p=2,w=Lt,Lt|=4;try{Mk(r,o,s)}finally{Lt=w,q.p=m,B.T=f}}Mn=1,R0(),T0(),C0()}}function R0(){if(Mn===1){Mn=0;var r=wo,o=vs,s=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||s){s=B.T,B.T=null;var f=q.p;q.p=2;var m=Lt;Lt|=4;try{o0(o,r);var v=Dh,w=fy(r.containerInfo),L=v.focusedElem,K=v.selectionRange;if(w!==L&&L&&L.ownerDocument&&uy(L.ownerDocument.documentElement,L)){if(K!==null&&op(L)){var ie=K.start,de=K.end;if(de===void 0&&(de=ie),"selectionStart"in L)L.selectionStart=ie,L.selectionEnd=Math.min(de,L.value.length);else{var he=L.ownerDocument||document,oe=he&&he.defaultView||window;if(oe.getSelection){var se=oe.getSelection(),Be=L.textContent.length,nt=Math.min(K.start,Be),$t=K.end===void 0?nt:Math.min(K.end,Be);!se.extend&&nt>$t&&(w=$t,$t=nt,nt=w);var te=cy(L,nt),J=cy(L,$t);if(te&&J&&(se.rangeCount!==1||se.anchorNode!==te.node||se.anchorOffset!==te.offset||se.focusNode!==J.node||se.focusOffset!==J.offset)){var re=he.createRange();re.setStart(te.node,te.offset),se.removeAllRanges(),nt>$t?(se.addRange(re),se.extend(J.node,J.offset)):(re.setEnd(J.node,J.offset),se.addRange(re))}}}}for(he=[],se=L;se=se.parentNode;)se.nodeType===1&&he.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof L.focus=="function"&&L.focus(),L=0;L<he.length;L++){var pe=he[L];pe.element.scrollLeft=pe.left,pe.element.scrollTop=pe.top}}ef=!!Ih,Dh=Ih=null}finally{Lt=m,q.p=f,B.T=s}}r.current=o,Mn=2}}function T0(){if(Mn===2){Mn=0;var r=wo,o=vs,s=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||s){s=B.T,B.T=null;var f=q.p;q.p=2;var m=Lt;Lt|=4;try{e0(r,o.alternate,o)}finally{Lt=m,q.p=f,B.T=s}}Mn=3}}function C0(){if(Mn===4||Mn===3){Mn=0,ge();var r=wo,o=vs,s=Fi,f=p0;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?Mn=5:(Mn=0,vs=wo=null,k0(r,r.pendingLanes));var m=r.pendingLanes;if(m===0&&(_o=null),tr(s),o=o.stateNode,At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(ut,o,void 0,(o.current.flags&128)===128)}catch{}if(f!==null){o=B.T,m=q.p,q.p=2,B.T=null;try{for(var v=r.onRecoverableError,w=0;w<f.length;w++){var L=f[w];v(L.value,{componentStack:L.stack})}}finally{B.T=o,q.p=m}}(Fi&3)!==0&&ju(),ai(r),m=r.pendingLanes,(s&261930)!==0&&(m&42)!==0?r===Eh?Ul++:(Ul=0,Eh=r):Ul=0,Fl(0)}}function k0(r,o){(r.pooledCacheLanes&=o)===0&&(o=r.pooledCache,o!=null&&(r.pooledCache=null,El(o)))}function ju(){return R0(),T0(),C0(),A0()}function A0(){if(Mn!==5)return!1;var r=wo,o=yh;yh=0;var s=tr(Fi),f=B.T,m=q.p;try{q.p=32>s?32:s,B.T=null,s=vh,vh=null;var v=wo,w=Fi;if(Mn=0,vs=wo=null,Fi=0,(Lt&6)!==0)throw Error(i(331));var L=Lt;if(Lt|=4,u0(v.current),s0(v,v.current,w,s),Lt=L,Fl(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(ut,v)}catch{}return!0}finally{q.p=m,B.T=f,k0(r,o)}}function O0(r,o,s){o=Hr(s,o),o=Qp(r.stateNode,o,2),r=bo(r,o,2),r!==null&&(Dt(r,2),ai(r))}function Ht(r,o,s){if(r.tag===3)O0(r,r,s);else for(;o!==null;){if(o.tag===3){O0(o,r,s);break}else if(o.tag===1){var f=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(_o===null||!_o.has(f))){r=Hr(s,r),s=Mv(2),f=bo(o,s,2),f!==null&&(Nv(s,f,o,r),Dt(f,2),ai(f));break}}o=o.return}}function _h(r,o,s){var f=r.pingCache;if(f===null){f=r.pingCache=new Dk;var m=new Set;f.set(o,m)}else m=f.get(o),m===void 0&&(m=new Set,f.set(o,m));m.has(s)||(gh=!0,m.add(s),r=Uk.bind(null,r,o,s),o.then(r,r))}function Uk(r,o,s){var f=r.pingCache;f!==null&&f.delete(o),r.pingedLanes|=r.suspendedLanes&s,r.warmLanes&=~s,Yt===r&&(wt&s)===s&&(fn===4||fn===3&&(wt&62914560)===wt&&300>ve()-Pu?(Lt&2)===0&&Es(r,0):mh|=s,ys===wt&&(ys=0)),ai(r)}function M0(r,o){o===0&&(o=tt()),r=sa(r,o),r!==null&&(Dt(r,o),ai(r))}function Fk(r){var o=r.memoizedState,s=0;o!==null&&(s=o.retryLane),M0(r,s)}function Hk(r,o){var s=0;switch(r.tag){case 31:case 13:var f=r.stateNode,m=r.memoizedState;m!==null&&(s=m.retryLane);break;case 19:f=r.stateNode;break;case 22:f=r.stateNode._retryCache;break;default:throw Error(i(314))}f!==null&&f.delete(o),M0(r,s)}function jk(r,o){return Fe(r,o)}var Gu=null,xs=null,wh=!1,$u=!1,Rh=!1,To=0;function ai(r){r!==xs&&r.next===null&&(xs===null?Gu=xs=r:xs=xs.next=r),$u=!0,wh||(wh=!0,$k())}function Fl(r,o){if(!Rh&&$u){Rh=!0;do for(var s=!1,f=Gu;f!==null;){if(r!==0){var m=f.pendingLanes;if(m===0)var v=0;else{var w=f.suspendedLanes,L=f.pingedLanes;v=(1<<31-xt(42|r)+1)-1,v&=m&~(w&~L),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(s=!0,L0(f,v))}else v=wt,v=Y(f,f===Yt?v:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(v&3)===0||fe(f,v)||(s=!0,L0(f,v));f=f.next}while(s);Rh=!1}}function Gk(){N0()}function N0(){$u=wh=!1;var r=0;To!==0&&eA()&&(r=To);for(var o=ve(),s=null,f=Gu;f!==null;){var m=f.next,v=I0(f,o);v===0?(f.next=null,s===null?Gu=m:s.next=m,m===null&&(xs=s)):(s=f,(r!==0||(v&3)!==0)&&($u=!0)),f=m}Mn!==0&&Mn!==5||Fl(r),To!==0&&(To=0)}function I0(r,o){for(var s=r.suspendedLanes,f=r.pingedLanes,m=r.expirationTimes,v=r.pendingLanes&-62914561;0<v;){var w=31-xt(v),L=1<<w,K=m[w];K===-1?((L&s)===0||(L&f)!==0)&&(m[w]=we(L,o)):K<=o&&(r.expiredLanes|=L),v&=~L}if(o=Yt,s=wt,s=Y(r,r===o?s:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),f=r.callbackNode,s===0||r===o&&(Ft===2||Ft===9)||r.cancelPendingCommit!==null)return f!==null&&f!==null&&me(f),r.callbackNode=null,r.callbackPriority=0;if((s&3)===0||fe(r,s)){if(o=s&-s,o===r.callbackPriority)return o;switch(f!==null&&me(f),tr(s)){case 2:case 8:s=ue;break;case 32:s=Ie;break;case 268435456:s=it;break;default:s=Ie}return f=D0.bind(null,r),s=Fe(s,f),r.callbackPriority=o,r.callbackNode=s,o}return f!==null&&f!==null&&me(f),r.callbackPriority=2,r.callbackNode=null,2}function D0(r,o){if(Mn!==0&&Mn!==5)return r.callbackNode=null,r.callbackPriority=0,null;var s=r.callbackNode;if(ju()&&r.callbackNode!==s)return null;var f=wt;return f=Y(r,r===Yt?f:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),f===0?null:(g0(r,f,o),I0(r,ve()),r.callbackNode!=null&&r.callbackNode===s?D0.bind(null,r):null)}function L0(r,o){if(ju())return null;g0(r,o,!0)}function $k(){nA(function(){(Lt&6)!==0?Fe(ne,Gk):N0()})}function Th(){if(To===0){var r=ss;r===0&&(r=Sn,Sn<<=1,(Sn&261888)===0&&(Sn=256)),To=r}return To}function P0(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:lo(""+r)}function z0(r,o){var s=o.ownerDocument.createElement("input");return s.name=o.name,s.value=o.value,r.id&&s.setAttribute("form",r.id),o.parentNode.insertBefore(s,o),r=new FormData(r),s.parentNode.removeChild(s),r}function qk(r,o,s,f,m){if(o==="submit"&&s&&s.stateNode===m){var v=P0((m[Yn]||null).action),w=f.submitter;w&&(o=(o=w[Yn]||null)?P0(o.formAction):w.getAttribute("formAction"),o!==null&&(v=o,w=null));var L=new nu("action","action",null,f,m);r.push({event:L,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(To!==0){var K=w?z0(m,w):new FormData(m);Vp(s,{pending:!0,data:K,method:m.method,action:v},null,K)}}else typeof v=="function"&&(L.preventDefault(),K=w?z0(m,w):new FormData(m),Vp(s,{pending:!0,data:K,method:m.method,action:v},v,K))},currentTarget:m}]})}}for(var Ch=0;Ch<cp.length;Ch++){var kh=cp[Ch],Vk=kh.toLowerCase(),Yk=kh[0].toUpperCase()+kh.slice(1);Wr(Vk,"on"+Yk)}Wr(hy,"onAnimationEnd"),Wr(gy,"onAnimationIteration"),Wr(my,"onAnimationStart"),Wr("dblclick","onDoubleClick"),Wr("focusin","onFocus"),Wr("focusout","onBlur"),Wr(ck,"onTransitionRun"),Wr(uk,"onTransitionStart"),Wr(fk,"onTransitionCancel"),Wr(by,"onTransitionEnd"),xe("onMouseEnter",["mouseout","mouseover"]),xe("onMouseLeave",["mouseout","mouseover"]),xe("onPointerEnter",["pointerout","pointerover"]),xe("onPointerLeave",["pointerout","pointerover"]),wi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wi("onBeforeInput",["compositionend","keypress","textInput","paste"]),wi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hl="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(" "),Kk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hl));function B0(r,o){o=(o&4)!==0;for(var s=0;s<r.length;s++){var f=r[s],m=f.event;f=f.listeners;e:{var v=void 0;if(o)for(var w=f.length-1;0<=w;w--){var L=f[w],K=L.instance,ie=L.currentTarget;if(L=L.listener,K!==v&&m.isPropagationStopped())break e;v=L,m.currentTarget=ie;try{v(m)}catch(de){ou(de)}m.currentTarget=null,v=K}else for(w=0;w<f.length;w++){if(L=f[w],K=L.instance,ie=L.currentTarget,L=L.listener,K!==v&&m.isPropagationStopped())break e;v=L,m.currentTarget=ie;try{v(m)}catch(de){ou(de)}m.currentTarget=null,v=K}}}}function vt(r,o){var s=o[rl];s===void 0&&(s=o[rl]=new Set);var f=r+"__bubble";s.has(f)||(U0(o,r,2,!1),s.add(f))}function Ah(r,o,s){var f=0;o&&(f|=4),U0(s,r,f,o)}var qu="_reactListening"+Math.random().toString(36).slice(2);function Oh(r){if(!r[qu]){r[qu]=!0,Kc.forEach(function(s){s!=="selectionchange"&&(Kk.has(s)||Ah(s,!1,r),Ah(s,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[qu]||(o[qu]=!0,Ah("selectionchange",!1,o))}}function U0(r,o,s,f){switch(hE(o)){case 2:var m=xA;break;case 8:m=_A;break;default:m=qh}s=m.bind(null,o,s,r),m=void 0,!Wd||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(m=!0),f?m!==void 0?r.addEventListener(o,s,{capture:!0,passive:m}):r.addEventListener(o,s,!0):m!==void 0?r.addEventListener(o,s,{passive:m}):r.addEventListener(o,s,!1)}function Mh(r,o,s,f,m){var v=f;if((o&1)===0&&(o&2)===0&&f!==null)e:for(;;){if(f===null)return;var w=f.tag;if(w===3||w===4){var L=f.stateNode.containerInfo;if(L===m)break;if(w===4)for(w=f.return;w!==null;){var K=w.tag;if((K===3||K===4)&&w.stateNode.containerInfo===m)return;w=w.return}for(;L!==null;){if(w=nr(L),w===null)return;if(K=w.tag,K===5||K===6||K===26||K===27){f=v=w;continue e}L=L.parentNode}}f=f.return}Qc(function(){var ie=v,de=ct(s),he=[];e:{var oe=yy.get(r);if(oe!==void 0){var se=nu,Be=r;switch(r){case"keypress":if(eu(s)===0)break e;case"keydown":case"keyup":se=HC;break;case"focusin":Be="focus",se=ep;break;case"focusout":Be="blur",se=ep;break;case"beforeblur":case"afterblur":se=ep;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":se=Yb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=AC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=$C;break;case hy:case gy:case my:se=NC;break;case by:se=VC;break;case"scroll":case"scrollend":se=CC;break;case"wheel":se=KC;break;case"copy":case"cut":case"paste":se=DC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=Xb;break;case"toggle":case"beforetoggle":se=WC}var nt=(o&4)!==0,$t=!nt&&(r==="scroll"||r==="scrollend"),te=nt?oe!==null?oe+"Capture":null:oe;nt=[];for(var J=ie,re;J!==null;){var pe=J;if(re=pe.stateNode,pe=pe.tag,pe!==5&&pe!==26&&pe!==27||re===null||te===null||(pe=cl(J,te),pe!=null&&nt.push(jl(J,pe,re))),$t)break;J=J.return}0<nt.length&&(oe=new se(oe,Be,null,s,de),he.push({event:oe,listeners:nt}))}}if((o&7)===0){e:{if(oe=r==="mouseover"||r==="pointerover",se=r==="mouseout"||r==="pointerout",oe&&s!==je&&(Be=s.relatedTarget||s.fromElement)&&(nr(Be)||Be[io]))break e;if((se||oe)&&(oe=de.window===de?de:(oe=de.ownerDocument)?oe.defaultView||oe.parentWindow:window,se?(Be=s.relatedTarget||s.toElement,se=ie,Be=Be?nr(Be):null,Be!==null&&($t=l(Be),nt=Be.tag,Be!==$t||nt!==5&&nt!==27&&nt!==6)&&(Be=null)):(se=null,Be=ie),se!==Be)){if(nt=Yb,pe="onMouseLeave",te="onMouseEnter",J="mouse",(r==="pointerout"||r==="pointerover")&&(nt=Xb,pe="onPointerLeave",te="onPointerEnter",J="pointer"),$t=se==null?oe:oo(se),re=Be==null?oe:oo(Be),oe=new nt(pe,J+"leave",se,s,de),oe.target=$t,oe.relatedTarget=re,pe=null,nr(de)===ie&&(nt=new nt(te,J+"enter",Be,s,de),nt.target=re,nt.relatedTarget=$t,pe=nt),$t=pe,se&&Be)t:{for(nt=Xk,te=se,J=Be,re=0,pe=te;pe;pe=nt(pe))re++;pe=0;for(var Ze=J;Ze;Ze=nt(Ze))pe++;for(;0<re-pe;)te=nt(te),re--;for(;0<pe-re;)J=nt(J),pe--;for(;re--;){if(te===J||J!==null&&te===J.alternate){nt=te;break t}te=nt(te),J=nt(J)}nt=null}else nt=null;se!==null&&F0(he,oe,se,nt,!1),Be!==null&&$t!==null&&F0(he,$t,Be,nt,!0)}}e:{if(oe=ie?oo(ie):window,se=oe.nodeName&&oe.nodeName.toLowerCase(),se==="select"||se==="input"&&oe.type==="file")var Mt=ry;else if(ty(oe))if(iy)Mt=ak;else{Mt=ik;var Ge=rk}else se=oe.nodeName,!se||se.toLowerCase()!=="input"||oe.type!=="checkbox"&&oe.type!=="radio"?ie&&so(ie.elementType)&&(Mt=ry):Mt=ok;if(Mt&&(Mt=Mt(r,ie))){ny(he,Mt,s,de);break e}Ge&&Ge(r,oe,ie),r==="focusout"&&ie&&oe.type==="number"&&ie.memoizedProps.value!=null&&Wa(oe,"number",oe.value)}switch(Ge=ie?oo(ie):window,r){case"focusin":(ty(Ge)||Ge.contentEditable==="true")&&(Ja=Ge,ap=ie,bl=null);break;case"focusout":bl=ap=Ja=null;break;case"mousedown":sp=!0;break;case"contextmenu":case"mouseup":case"dragend":sp=!1,dy(he,s,de);break;case"selectionchange":if(lk)break;case"keydown":case"keyup":dy(he,s,de)}var dt;if(np)e:{switch(r){case"compositionstart":var Rt="onCompositionStart";break e;case"compositionend":Rt="onCompositionEnd";break e;case"compositionupdate":Rt="onCompositionUpdate";break e}Rt=void 0}else Qa?Jb(r,s)&&(Rt="onCompositionEnd"):r==="keydown"&&s.keyCode===229&&(Rt="onCompositionStart");Rt&&(Wb&&s.locale!=="ko"&&(Qa||Rt!=="onCompositionStart"?Rt==="onCompositionEnd"&&Qa&&(dt=qb()):(co=de,Zd="value"in co?co.value:co.textContent,Qa=!0)),Ge=Vu(ie,Rt),0<Ge.length&&(Rt=new Kb(Rt,r,null,s,de),he.push({event:Rt,listeners:Ge}),dt?Rt.data=dt:(dt=ey(s),dt!==null&&(Rt.data=dt)))),(dt=QC?JC(r,s):ek(r,s))&&(Rt=Vu(ie,"onBeforeInput"),0<Rt.length&&(Ge=new Kb("onBeforeInput","beforeinput",null,s,de),he.push({event:Ge,listeners:Rt}),Ge.data=dt)),qk(he,r,ie,s,de)}B0(he,o)})}function jl(r,o,s){return{instance:r,listener:o,currentTarget:s}}function Vu(r,o){for(var s=o+"Capture",f=[];r!==null;){var m=r,v=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||v===null||(m=cl(r,s),m!=null&&f.unshift(jl(r,m,v)),m=cl(r,o),m!=null&&f.push(jl(r,m,v))),r.tag===3)return f;r=r.return}return[]}function Xk(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function F0(r,o,s,f,m){for(var v=o._reactName,w=[];s!==null&&s!==f;){var L=s,K=L.alternate,ie=L.stateNode;if(L=L.tag,K!==null&&K===f)break;L!==5&&L!==26&&L!==27||ie===null||(K=ie,m?(ie=cl(s,v),ie!=null&&w.unshift(jl(s,ie,K))):m||(ie=cl(s,v),ie!=null&&w.push(jl(s,ie,K)))),s=s.return}w.length!==0&&r.push({event:o,listeners:w})}var Wk=/\r\n?/g,Zk=/\u0000|\uFFFD/g;function H0(r){return(typeof r=="string"?r:""+r).replace(Wk,`
10
+ `).replace(Zk,"")}function j0(r,o){return o=H0(o),H0(r)===o}function Gt(r,o,s,f,m,v){switch(s){case"children":typeof f=="string"?o==="body"||o==="textarea"&&f===""||rt(r,f):(typeof f=="number"||typeof f=="bigint")&&o!=="body"&&rt(r,""+f);break;case"className":wr(r,"class",f);break;case"tabIndex":wr(r,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":wr(r,s,f);break;case"style":Ut(r,f,v);break;case"data":if(o!=="object"){wr(r,"data",f);break}case"src":case"href":if(f===""&&(o!=="a"||s!=="href")){r.removeAttribute(s);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){r.removeAttribute(s);break}f=lo(""+f),r.setAttribute(s,f);break;case"action":case"formAction":if(typeof f=="function"){r.setAttribute(s,"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 v=="function"&&(s==="formAction"?(o!=="input"&&Gt(r,o,"name",m.name,m,null),Gt(r,o,"formEncType",m.formEncType,m,null),Gt(r,o,"formMethod",m.formMethod,m,null),Gt(r,o,"formTarget",m.formTarget,m,null)):(Gt(r,o,"encType",m.encType,m,null),Gt(r,o,"method",m.method,m,null),Gt(r,o,"target",m.target,m,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){r.removeAttribute(s);break}f=lo(""+f),r.setAttribute(s,f);break;case"onClick":f!=null&&(r.onclick=Re);break;case"onScroll":f!=null&&vt("scroll",r);break;case"onScrollEnd":f!=null&&vt("scrollend",r);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(i(61));if(s=f.__html,s!=null){if(m.children!=null)throw Error(i(60));r.innerHTML=s}}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}s=lo(""+f),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);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(s,""+f):r.removeAttribute(s);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(s,""):r.removeAttribute(s);break;case"capture":case"download":f===!0?r.setAttribute(s,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?r.setAttribute(s,f):r.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?r.setAttribute(s,f):r.removeAttribute(s);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?r.removeAttribute(s):r.setAttribute(s,f);break;case"popover":vt("beforetoggle",r),vt("toggle",r),Kn(r,"popover",f);break;case"xlinkActuate":lr(r,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":lr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":lr(r,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":lr(r,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":lr(r,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":lr(r,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":lr(r,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":lr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":lr(r,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":Kn(r,"is",f);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=Ri.get(s)||s,Kn(r,s,f))}}function Nh(r,o,s,f,m,v){switch(s){case"style":Ut(r,f,v);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(i(61));if(s=f.__html,s!=null){if(m.children!=null)throw Error(i(60));r.innerHTML=s}}break;case"children":typeof f=="string"?rt(r,f):(typeof f=="number"||typeof f=="bigint")&&rt(r,""+f);break;case"onScroll":f!=null&&vt("scroll",r);break;case"onScrollEnd":f!=null&&vt("scrollend",r);break;case"onClick":f!=null&&(r.onclick=Re);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!na.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(m=s.endsWith("Capture"),o=s.slice(2,m?s.length-7:void 0),v=r[Yn]||null,v=v!=null?v[s]:null,typeof v=="function"&&r.removeEventListener(o,v,m),typeof f=="function")){typeof v!="function"&&v!==null&&(s in r?r[s]=null:r.hasAttribute(s)&&r.removeAttribute(s)),r.addEventListener(o,f,m);break e}s in r?r[s]=f:f===!0?r.setAttribute(s,""):Kn(r,s,f)}}}function jn(r,o,s){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":vt("error",r),vt("load",r);var f=!1,m=!1,v;for(v in s)if(s.hasOwnProperty(v)){var w=s[v];if(w!=null)switch(v){case"src":f=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,o));default:Gt(r,o,v,w,s,null)}}m&&Gt(r,o,"srcSet",s.srcSet,s,null),f&&Gt(r,o,"src",s.src,s,null);return;case"input":vt("invalid",r);var L=v=w=m=null,K=null,ie=null;for(f in s)if(s.hasOwnProperty(f)){var de=s[f];if(de!=null)switch(f){case"name":m=de;break;case"type":w=de;break;case"checked":K=de;break;case"defaultChecked":ie=de;break;case"value":v=de;break;case"defaultValue":L=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(i(137,o));break;default:Gt(r,o,f,de,s,null)}}ra(r,v,L,K,ie,w,m,!1);return;case"select":vt("invalid",r),f=w=v=null;for(m in s)if(s.hasOwnProperty(m)&&(L=s[m],L!=null))switch(m){case"value":v=L;break;case"defaultValue":w=L;break;case"multiple":f=L;default:Gt(r,o,m,L,s,null)}o=v,s=w,r.multiple=!!f,o!=null?Bn(r,!!f,o,!1):s!=null&&Bn(r,!!f,s,!0);return;case"textarea":vt("invalid",r),v=m=f=null;for(w in s)if(s.hasOwnProperty(w)&&(L=s[w],L!=null))switch(w){case"value":f=L;break;case"defaultValue":m=L;break;case"children":v=L;break;case"dangerouslySetInnerHTML":if(L!=null)throw Error(i(91));break;default:Gt(r,o,w,L,s,null)}Za(r,f,m,v);return;case"option":for(K in s)s.hasOwnProperty(K)&&(f=s[K],f!=null)&&(K==="selected"?r.selected=f&&typeof f!="function"&&typeof f!="symbol":Gt(r,o,K,f,s,null));return;case"dialog":vt("beforetoggle",r),vt("toggle",r),vt("cancel",r),vt("close",r);break;case"iframe":case"object":vt("load",r);break;case"video":case"audio":for(f=0;f<Hl.length;f++)vt(Hl[f],r);break;case"image":vt("error",r),vt("load",r);break;case"details":vt("toggle",r);break;case"embed":case"source":case"link":vt("error",r),vt("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(ie in s)if(s.hasOwnProperty(ie)&&(f=s[ie],f!=null))switch(ie){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,o));default:Gt(r,o,ie,f,s,null)}return;default:if(so(o)){for(de in s)s.hasOwnProperty(de)&&(f=s[de],f!==void 0&&Nh(r,o,de,f,s,void 0));return}}for(L in s)s.hasOwnProperty(L)&&(f=s[L],f!=null&&Gt(r,o,L,f,s,null))}function Qk(r,o,s,f){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,v=null,w=null,L=null,K=null,ie=null,de=null;for(se in s){var he=s[se];if(s.hasOwnProperty(se)&&he!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":K=he;default:f.hasOwnProperty(se)||Gt(r,o,se,null,f,he)}}for(var oe in f){var se=f[oe];if(he=s[oe],f.hasOwnProperty(oe)&&(se!=null||he!=null))switch(oe){case"type":v=se;break;case"name":m=se;break;case"checked":ie=se;break;case"defaultChecked":de=se;break;case"value":w=se;break;case"defaultValue":L=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(i(137,o));break;default:se!==he&&Gt(r,o,oe,se,f,he)}}al(r,w,L,K,ie,de,v,m);return;case"select":se=w=L=oe=null;for(v in s)if(K=s[v],s.hasOwnProperty(v)&&K!=null)switch(v){case"value":break;case"multiple":se=K;default:f.hasOwnProperty(v)||Gt(r,o,v,null,f,K)}for(m in f)if(v=f[m],K=s[m],f.hasOwnProperty(m)&&(v!=null||K!=null))switch(m){case"value":oe=v;break;case"defaultValue":L=v;break;case"multiple":w=v;default:v!==K&&Gt(r,o,m,v,f,K)}o=L,s=w,f=se,oe!=null?Bn(r,!!s,oe,!1):!!f!=!!s&&(o!=null?Bn(r,!!s,o,!0):Bn(r,!!s,s?[]:"",!1));return;case"textarea":se=oe=null;for(L in s)if(m=s[L],s.hasOwnProperty(L)&&m!=null&&!f.hasOwnProperty(L))switch(L){case"value":break;case"children":break;default:Gt(r,o,L,null,f,m)}for(w in f)if(m=f[w],v=s[w],f.hasOwnProperty(w)&&(m!=null||v!=null))switch(w){case"value":oe=m;break;case"defaultValue":se=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(i(91));break;default:m!==v&&Gt(r,o,w,m,f,v)}Wc(r,oe,se);return;case"option":for(var Be in s)oe=s[Be],s.hasOwnProperty(Be)&&oe!=null&&!f.hasOwnProperty(Be)&&(Be==="selected"?r.selected=!1:Gt(r,o,Be,null,f,oe));for(K in f)oe=f[K],se=s[K],f.hasOwnProperty(K)&&oe!==se&&(oe!=null||se!=null)&&(K==="selected"?r.selected=oe&&typeof oe!="function"&&typeof oe!="symbol":Gt(r,o,K,oe,f,se));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 nt in s)oe=s[nt],s.hasOwnProperty(nt)&&oe!=null&&!f.hasOwnProperty(nt)&&Gt(r,o,nt,null,f,oe);for(ie in f)if(oe=f[ie],se=s[ie],f.hasOwnProperty(ie)&&oe!==se&&(oe!=null||se!=null))switch(ie){case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(i(137,o));break;default:Gt(r,o,ie,oe,f,se)}return;default:if(so(o)){for(var $t in s)oe=s[$t],s.hasOwnProperty($t)&&oe!==void 0&&!f.hasOwnProperty($t)&&Nh(r,o,$t,void 0,f,oe);for(de in f)oe=f[de],se=s[de],!f.hasOwnProperty(de)||oe===se||oe===void 0&&se===void 0||Nh(r,o,de,oe,f,se);return}}for(var te in s)oe=s[te],s.hasOwnProperty(te)&&oe!=null&&!f.hasOwnProperty(te)&&Gt(r,o,te,null,f,oe);for(he in f)oe=f[he],se=s[he],!f.hasOwnProperty(he)||oe===se||oe==null&&se==null||Gt(r,o,he,oe,f,se)}function G0(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jk(){if(typeof performance.getEntriesByType=="function"){for(var r=0,o=0,s=performance.getEntriesByType("resource"),f=0;f<s.length;f++){var m=s[f],v=m.transferSize,w=m.initiatorType,L=m.duration;if(v&&L&&G0(w)){for(w=0,L=m.responseEnd,f+=1;f<s.length;f++){var K=s[f],ie=K.startTime;if(ie>L)break;var de=K.transferSize,he=K.initiatorType;de&&G0(he)&&(K=K.responseEnd,w+=de*(K<L?1:(L-ie)/(K-ie)))}if(--f,o+=8*(v+w)/(m.duration/1e3),r++,10<r)break}}if(0<r)return o/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Ih=null,Dh=null;function Yu(r){return r.nodeType===9?r:r.ownerDocument}function $0(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 q0(r,o){if(r===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&o==="foreignObject"?0:r}function Lh(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Ph=null;function eA(){var r=window.event;return r&&r.type==="popstate"?r===Ph?!1:(Ph=r,!0):(Ph=null,!1)}var V0=typeof setTimeout=="function"?setTimeout:void 0,tA=typeof clearTimeout=="function"?clearTimeout:void 0,Y0=typeof Promise=="function"?Promise:void 0,nA=typeof queueMicrotask=="function"?queueMicrotask:typeof Y0<"u"?function(r){return Y0.resolve(null).then(r).catch(rA)}:V0;function rA(r){setTimeout(function(){throw r})}function Co(r){return r==="head"}function K0(r,o){var s=o,f=0;do{var m=s.nextSibling;if(r.removeChild(s),m&&m.nodeType===8)if(s=m.data,s==="/$"||s==="/&"){if(f===0){r.removeChild(m),Ts(o);return}f--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")f++;else if(s==="html")Gl(r.ownerDocument.documentElement);else if(s==="head"){s=r.ownerDocument.head,Gl(s);for(var v=s.firstChild;v;){var w=v.nextSibling,L=v.nodeName;v[ta]||L==="SCRIPT"||L==="STYLE"||L==="LINK"&&v.rel.toLowerCase()==="stylesheet"||s.removeChild(v),v=w}}else s==="body"&&Gl(r.ownerDocument.body);s=m}while(s);Ts(o)}function X0(r,o){var s=r;r=0;do{var f=s.nextSibling;if(s.nodeType===1?o?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(o?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),f&&f.nodeType===8)if(s=f.data,s==="/$"){if(r===0)break;r--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||r++;s=f}while(s)}function zh(r){var o=r.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var s=o;switch(o=o.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":zh(s),il(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}r.removeChild(s)}}function iA(r,o,s,f){for(;r.nodeType===1;){var m=s;if(r.nodeName.toLowerCase()!==o.toLowerCase()){if(!f&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(f){if(!r[ta])switch(o){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(v=r.getAttribute("rel"),v==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(v!==m.rel||r.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||r.getAttribute("title")!==(m.title==null?null:m.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(v=r.getAttribute("src"),(v!==(m.src==null?null:m.src)||r.getAttribute("type")!==(m.type==null?null:m.type)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&v&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(o==="input"&&r.type==="hidden"){var v=m.name==null?null:""+m.name;if(m.type==="hidden"&&r.getAttribute("name")===v)return r}else return r;if(r=Vr(r.nextSibling),r===null)break}return null}function oA(r,o,s){if(o==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!s||(r=Vr(r.nextSibling),r===null))return null;return r}function W0(r,o){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=Vr(r.nextSibling),r===null))return null;return r}function Bh(r){return r.data==="$?"||r.data==="$~"}function Uh(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function aA(r,o){var s=r.ownerDocument;if(r.data==="$~")r._reactRetry=o;else if(r.data!=="$?"||s.readyState!=="loading")o();else{var f=function(){o(),s.removeEventListener("DOMContentLoaded",f)};s.addEventListener("DOMContentLoaded",f),r._reactRetry=f}}function Vr(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return r}var Fh=null;function Z0(r){r=r.nextSibling;for(var o=0;r;){if(r.nodeType===8){var s=r.data;if(s==="/$"||s==="/&"){if(o===0)return Vr(r.nextSibling);o--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||o++}r=r.nextSibling}return null}function Q0(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var s=r.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(o===0)return r;o--}else s!=="/$"&&s!=="/&"||o++}r=r.previousSibling}return null}function J0(r,o,s){switch(o=Yu(s),r){case"html":if(r=o.documentElement,!r)throw Error(i(452));return r;case"head":if(r=o.head,!r)throw Error(i(453));return r;case"body":if(r=o.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function Gl(r){for(var o=r.attributes;o.length;)r.removeAttributeNode(o[0]);il(r)}var Yr=new Map,eE=new Set;function Ku(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Hi=q.d;q.d={f:sA,r:lA,D:cA,C:uA,L:fA,m:dA,X:hA,S:pA,M:gA};function sA(){var r=Hi.f(),o=Uu();return r||o}function lA(r){var o=_i(r);o!==null&&o.tag===5&&o.type==="form"?bv(o):Hi.r(r)}var _s=typeof document>"u"?null:document;function tE(r,o,s){var f=_s;if(f&&typeof o=="string"&&o){var m=cr(o);m='link[rel="'+r+'"][href="'+m+'"]',typeof s=="string"&&(m+='[crossorigin="'+s+'"]'),eE.has(m)||(eE.add(m),r={rel:r,crossOrigin:s,href:o},f.querySelector(m)===null&&(o=f.createElement("link"),jn(o,"link",r),xn(o),f.head.appendChild(o)))}}function cA(r){Hi.D(r),tE("dns-prefetch",r,null)}function uA(r,o){Hi.C(r,o),tE("preconnect",r,o)}function fA(r,o,s){Hi.L(r,o,s);var f=_s;if(f&&r&&o){var m='link[rel="preload"][as="'+cr(o)+'"]';o==="image"&&s&&s.imageSrcSet?(m+='[imagesrcset="'+cr(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(m+='[imagesizes="'+cr(s.imageSizes)+'"]')):m+='[href="'+cr(r)+'"]';var v=m;switch(o){case"style":v=ws(r);break;case"script":v=Rs(r)}Yr.has(v)||(r=g({rel:"preload",href:o==="image"&&s&&s.imageSrcSet?void 0:r,as:o},s),Yr.set(v,r),f.querySelector(m)!==null||o==="style"&&f.querySelector($l(v))||o==="script"&&f.querySelector(ql(v))||(o=f.createElement("link"),jn(o,"link",r),xn(o),f.head.appendChild(o)))}}function dA(r,o){Hi.m(r,o);var s=_s;if(s&&r){var f=o&&typeof o.as=="string"?o.as:"script",m='link[rel="modulepreload"][as="'+cr(f)+'"][href="'+cr(r)+'"]',v=m;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Rs(r)}if(!Yr.has(v)&&(r=g({rel:"modulepreload",href:r},o),Yr.set(v,r),s.querySelector(m)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(ql(v)))return}f=s.createElement("link"),jn(f,"link",r),xn(f),s.head.appendChild(f)}}}function pA(r,o,s){Hi.S(r,o,s);var f=_s;if(f&&r){var m=ao(f).hoistableStyles,v=ws(r);o=o||"default";var w=m.get(v);if(!w){var L={loading:0,preload:null};if(w=f.querySelector($l(v)))L.loading=5;else{r=g({rel:"stylesheet",href:r,"data-precedence":o},s),(s=Yr.get(v))&&Hh(r,s);var K=w=f.createElement("link");xn(K),jn(K,"link",r),K._p=new Promise(function(ie,de){K.onload=ie,K.onerror=de}),K.addEventListener("load",function(){L.loading|=1}),K.addEventListener("error",function(){L.loading|=2}),L.loading|=4,Xu(w,o,f)}w={type:"stylesheet",instance:w,count:1,state:L},m.set(v,w)}}}function hA(r,o){Hi.X(r,o);var s=_s;if(s&&r){var f=ao(s).hoistableScripts,m=Rs(r),v=f.get(m);v||(v=s.querySelector(ql(m)),v||(r=g({src:r,async:!0},o),(o=Yr.get(m))&&jh(r,o),v=s.createElement("script"),xn(v),jn(v,"link",r),s.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},f.set(m,v))}}function gA(r,o){Hi.M(r,o);var s=_s;if(s&&r){var f=ao(s).hoistableScripts,m=Rs(r),v=f.get(m);v||(v=s.querySelector(ql(m)),v||(r=g({src:r,async:!0,type:"module"},o),(o=Yr.get(m))&&jh(r,o),v=s.createElement("script"),xn(v),jn(v,"link",r),s.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},f.set(m,v))}}function nE(r,o,s,f){var m=(m=ae.current)?Ku(m):null;if(!m)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(o=ws(s.href),s=ao(m).hoistableStyles,f=s.get(o),f||(f={type:"style",instance:null,count:0,state:null},s.set(o,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){r=ws(s.href);var v=ao(m).hoistableStyles,w=v.get(r);if(w||(m=m.ownerDocument||m,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(r,w),(v=m.querySelector($l(r)))&&!v._p&&(w.instance=v,w.state.loading=5),Yr.has(r)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Yr.set(r,s),v||mA(m,r,s,w.state))),o&&f===null)throw Error(i(528,""));return w}if(o&&f!==null)throw Error(i(529,""));return null;case"script":return o=s.async,s=s.src,typeof s=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=Rs(s),s=ao(m).hoistableScripts,f=s.get(o),f||(f={type:"script",instance:null,count:0,state:null},s.set(o,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function ws(r){return'href="'+cr(r)+'"'}function $l(r){return'link[rel="stylesheet"]['+r+"]"}function rE(r){return g({},r,{"data-precedence":r.precedence,precedence:null})}function mA(r,o,s,f){r.querySelector('link[rel="preload"][as="style"]['+o+"]")?f.loading=1:(o=r.createElement("link"),f.preload=o,o.addEventListener("load",function(){return f.loading|=1}),o.addEventListener("error",function(){return f.loading|=2}),jn(o,"link",s),xn(o),r.head.appendChild(o))}function Rs(r){return'[src="'+cr(r)+'"]'}function ql(r){return"script[async]"+r}function iE(r,o,s){if(o.count++,o.instance===null)switch(o.type){case"style":var f=r.querySelector('style[data-href~="'+cr(s.href)+'"]');if(f)return o.instance=f,xn(f),f;var m=g({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return f=(r.ownerDocument||r).createElement("style"),xn(f),jn(f,"style",m),Xu(f,s.precedence,r),o.instance=f;case"stylesheet":m=ws(s.href);var v=r.querySelector($l(m));if(v)return o.state.loading|=4,o.instance=v,xn(v),v;f=rE(s),(m=Yr.get(m))&&Hh(f,m),v=(r.ownerDocument||r).createElement("link"),xn(v);var w=v;return w._p=new Promise(function(L,K){w.onload=L,w.onerror=K}),jn(v,"link",f),o.state.loading|=4,Xu(v,s.precedence,r),o.instance=v;case"script":return v=Rs(s.src),(m=r.querySelector(ql(v)))?(o.instance=m,xn(m),m):(f=s,(m=Yr.get(v))&&(f=g({},s),jh(f,m)),r=r.ownerDocument||r,m=r.createElement("script"),xn(m),jn(m,"link",f),r.head.appendChild(m),o.instance=m);case"void":return null;default:throw Error(i(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(f=o.instance,o.state.loading|=4,Xu(f,s.precedence,r));return o.instance}function Xu(r,o,s){for(var f=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=f.length?f[f.length-1]:null,v=m,w=0;w<f.length;w++){var L=f[w];if(L.dataset.precedence===o)v=L;else if(v!==m)break}v?v.parentNode.insertBefore(r,v.nextSibling):(o=s.nodeType===9?s.head:s,o.insertBefore(r,o.firstChild))}function Hh(r,o){r.crossOrigin==null&&(r.crossOrigin=o.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=o.referrerPolicy),r.title==null&&(r.title=o.title)}function jh(r,o){r.crossOrigin==null&&(r.crossOrigin=o.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=o.referrerPolicy),r.integrity==null&&(r.integrity=o.integrity)}var Wu=null;function oE(r,o,s){if(Wu===null){var f=new Map,m=Wu=new Map;m.set(s,f)}else m=Wu,f=m.get(s),f||(f=new Map,m.set(s,f));if(f.has(r))return f;for(f.set(r,null),s=s.getElementsByTagName(r),m=0;m<s.length;m++){var v=s[m];if(!(v[ta]||v[mn]||r==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var w=v.getAttribute(o)||"";w=r+w;var L=f.get(w);L?L.push(v):f.set(w,[v])}}return f}function aE(r,o,s){r=r.ownerDocument||r,r.head.insertBefore(s,o==="title"?r.querySelector("head > title"):null)}function bA(r,o,s){if(s===1||o.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;return o.rel==="stylesheet"?(r=o.disabled,typeof o.precedence=="string"&&r==null):!0;case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function sE(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function yA(r,o,s,f){if(s.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var m=ws(f.href),v=o.querySelector($l(m));if(v){o=v._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(r.count++,r=Zu.bind(r),o.then(r,r)),s.state.loading|=4,s.instance=v,xn(v);return}v=o.ownerDocument||o,f=rE(f),(m=Yr.get(m))&&Hh(f,m),v=v.createElement("link"),xn(v);var w=v;w._p=new Promise(function(L,K){w.onload=L,w.onerror=K}),jn(v,"link",f),s.instance=v}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(s,o),(o=s.state.preload)&&(s.state.loading&3)===0&&(r.count++,s=Zu.bind(r),o.addEventListener("load",s),o.addEventListener("error",s))}}var Gh=0;function vA(r,o){return r.stylesheets&&r.count===0&&Ju(r,r.stylesheets),0<r.count||0<r.imgCount?function(s){var f=setTimeout(function(){if(r.stylesheets&&Ju(r,r.stylesheets),r.unsuspend){var v=r.unsuspend;r.unsuspend=null,v()}},6e4+o);0<r.imgBytes&&Gh===0&&(Gh=62500*Jk());var m=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Ju(r,r.stylesheets),r.unsuspend)){var v=r.unsuspend;r.unsuspend=null,v()}},(r.imgBytes>Gh?50:800)+o);return r.unsuspend=s,function(){r.unsuspend=null,clearTimeout(f),clearTimeout(m)}}:null}function Zu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ju(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Qu=null;function Ju(r,o){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Qu=new Map,o.forEach(EA,r),Qu=null,Zu.call(r))}function EA(r,o){if(!(o.state.loading&4)){var s=Qu.get(r);if(s)var f=s.get(null);else{s=new Map,Qu.set(r,s);for(var m=r.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<m.length;v++){var w=m[v];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(s.set(w.dataset.precedence,w),f=w)}f&&s.set(null,f)}m=o.instance,w=m.getAttribute("data-precedence"),v=s.get(w)||f,v===f&&s.set(null,m),s.set(w,m),this.count++,f=Zu.bind(this),m.addEventListener("load",f),m.addEventListener("error",f),v?v.parentNode.insertBefore(m,v.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(m,r.firstChild)),o.state.loading|=4}}var Vl={$$typeof:k,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function SA(r,o,s,f,m,v,w,L,K){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=zt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zt(0),this.hiddenUpdates=zt(null),this.identifierPrefix=f,this.onUncaughtError=m,this.onCaughtError=v,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=K,this.incompleteTransitions=new Map}function lE(r,o,s,f,m,v,w,L,K,ie,de,he){return r=new SA(r,o,s,w,K,ie,de,he,L),o=1,v===!0&&(o|=24),v=Cr(3,null,null,o),r.current=v,v.stateNode=r,o=xp(),o.refCount++,r.pooledCache=o,o.refCount++,v.memoizedState={element:f,isDehydrated:s,cache:o},Tp(v),r}function cE(r){return r?(r=ns,r):ns}function uE(r,o,s,f,m,v){m=cE(m),f.context===null?f.context=m:f.pendingContext=m,f=mo(o),f.payload={element:s},v=v===void 0?null:v,v!==null&&(f.callback=v),s=bo(r,f,o),s!==null&&(gr(s,r,o),wl(s,r,o))}function fE(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var s=r.retryLane;r.retryLane=s!==0&&s<o?s:o}}function $h(r,o){fE(r,o),(r=r.alternate)&&fE(r,o)}function dE(r){if(r.tag===13||r.tag===31){var o=sa(r,67108864);o!==null&&gr(o,r,67108864),$h(r,67108864)}}function pE(r){if(r.tag===13||r.tag===31){var o=Nr();o=Zt(o);var s=sa(r,o);s!==null&&gr(s,r,o),$h(r,o)}}var ef=!0;function xA(r,o,s,f){var m=B.T;B.T=null;var v=q.p;try{q.p=2,qh(r,o,s,f)}finally{q.p=v,B.T=m}}function _A(r,o,s,f){var m=B.T;B.T=null;var v=q.p;try{q.p=8,qh(r,o,s,f)}finally{q.p=v,B.T=m}}function qh(r,o,s,f){if(ef){var m=Vh(f);if(m===null)Mh(r,o,f,tf,s),gE(r,f);else if(RA(m,r,o,s,f))f.stopPropagation();else if(gE(r,f),o&4&&-1<wA.indexOf(r)){for(;m!==null;){var v=_i(m);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var w=Wt(v.pendingLanes);if(w!==0){var L=v;for(L.pendingLanes|=2,L.entangledLanes|=2;w;){var K=1<<31-xt(w);L.entanglements[1]|=K,w&=~K}ai(v),(Lt&6)===0&&(zu=ve()+500,Fl(0))}}break;case 31:case 13:L=sa(v,2),L!==null&&gr(L,v,2),Uu(),$h(v,2)}if(v=Vh(f),v===null&&Mh(r,o,f,tf,s),v===m)break;m=v}m!==null&&f.stopPropagation()}else Mh(r,o,f,null,s)}}function Vh(r){return r=ct(r),Yh(r)}var tf=null;function Yh(r){if(tf=null,r=nr(r),r!==null){var o=l(r);if(o===null)r=null;else{var s=o.tag;if(s===13){if(r=c(o),r!==null)return r;r=null}else if(s===31){if(r=u(o),r!==null)return r;r=null}else if(s===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null)}}return tf=r,null}function hE(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ce()){case ne:return 2;case ue:return 8;case Ie:case Ve:return 32;case it:return 268435456;default:return 32}default:return 32}}var Kh=!1,ko=null,Ao=null,Oo=null,Yl=new Map,Kl=new Map,Mo=[],wA="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 gE(r,o){switch(r){case"focusin":case"focusout":ko=null;break;case"dragenter":case"dragleave":Ao=null;break;case"mouseover":case"mouseout":Oo=null;break;case"pointerover":case"pointerout":Yl.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kl.delete(o.pointerId)}}function Xl(r,o,s,f,m,v){return r===null||r.nativeEvent!==v?(r={blockedOn:o,domEventName:s,eventSystemFlags:f,nativeEvent:v,targetContainers:[m]},o!==null&&(o=_i(o),o!==null&&dE(o)),r):(r.eventSystemFlags|=f,o=r.targetContainers,m!==null&&o.indexOf(m)===-1&&o.push(m),r)}function RA(r,o,s,f,m){switch(o){case"focusin":return ko=Xl(ko,r,o,s,f,m),!0;case"dragenter":return Ao=Xl(Ao,r,o,s,f,m),!0;case"mouseover":return Oo=Xl(Oo,r,o,s,f,m),!0;case"pointerover":var v=m.pointerId;return Yl.set(v,Xl(Yl.get(v)||null,r,o,s,f,m)),!0;case"gotpointercapture":return v=m.pointerId,Kl.set(v,Xl(Kl.get(v)||null,r,o,s,f,m)),!0}return!1}function mE(r){var o=nr(r.target);if(o!==null){var s=l(o);if(s!==null){if(o=s.tag,o===13){if(o=c(s),o!==null){r.blockedOn=o,ro(r.priority,function(){pE(s)});return}}else if(o===31){if(o=u(s),o!==null){r.blockedOn=o,ro(r.priority,function(){pE(s)});return}}else if(o===3&&s.stateNode.current.memoizedState.isDehydrated){r.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}r.blockedOn=null}function nf(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var s=Vh(r.nativeEvent);if(s===null){s=r.nativeEvent;var f=new s.constructor(s.type,s);je=f,s.target.dispatchEvent(f),je=null}else return o=_i(s),o!==null&&dE(o),r.blockedOn=s,!1;o.shift()}return!0}function bE(r,o,s){nf(r)&&s.delete(o)}function TA(){Kh=!1,ko!==null&&nf(ko)&&(ko=null),Ao!==null&&nf(Ao)&&(Ao=null),Oo!==null&&nf(Oo)&&(Oo=null),Yl.forEach(bE),Kl.forEach(bE)}function rf(r,o){r.blockedOn===o&&(r.blockedOn=null,Kh||(Kh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,TA)))}var of=null;function yE(r){of!==r&&(of=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){of===r&&(of=null);for(var o=0;o<r.length;o+=3){var s=r[o],f=r[o+1],m=r[o+2];if(typeof f!="function"){if(Yh(f||s)===null)continue;break}var v=_i(s);v!==null&&(r.splice(o,3),o-=3,Vp(v,{pending:!0,data:m,method:s.method,action:f},f,m))}}))}function Ts(r){function o(K){return rf(K,r)}ko!==null&&rf(ko,r),Ao!==null&&rf(Ao,r),Oo!==null&&rf(Oo,r),Yl.forEach(o),Kl.forEach(o);for(var s=0;s<Mo.length;s++){var f=Mo[s];f.blockedOn===r&&(f.blockedOn=null)}for(;0<Mo.length&&(s=Mo[0],s.blockedOn===null);)mE(s),s.blockedOn===null&&Mo.shift();if(s=(r.ownerDocument||r).$$reactFormReplay,s!=null)for(f=0;f<s.length;f+=3){var m=s[f],v=s[f+1],w=m[Yn]||null;if(typeof v=="function")w||yE(s);else if(w){var L=null;if(v&&v.hasAttribute("formAction")){if(m=v,w=v[Yn]||null)L=w.formAction;else if(Yh(m)!==null)continue}else L=w.action;typeof L=="function"?s[f+1]=L:(s.splice(f,3),f-=3),yE(s)}}}function vE(){function r(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(w){return m=w})},focusReset:"manual",scroll:"manual"})}function o(){m!==null&&(m(),m=null),f||setTimeout(s,20)}function s(){if(!f&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var f=!1,m=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(s,100),function(){f=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),m!==null&&(m(),m=null)}}}function Xh(r){this._internalRoot=r}af.prototype.render=Xh.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(i(409));var s=o.current,f=Nr();uE(s,f,r,o,null,null)},af.prototype.unmount=Xh.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;uE(r.current,2,null,r,null,null),Uu(),o[io]=null}};function af(r){this._internalRoot=r}af.prototype.unstable_scheduleHydration=function(r){if(r){var o=no();r={blockedOn:null,target:r,priority:o};for(var s=0;s<Mo.length&&o!==0&&o<Mo[s].priority;s++);Mo.splice(s,0,r),s===0&&mE(r)}};var EE=t.version;if(EE!=="19.2.6")throw Error(i(527,EE,"19.2.6"));q.findDOMNode=function(r){var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=d(o),r=r!==null?h(r):null,r=r===null?null:r.stateNode,r};var CA={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sf.isDisabled&&sf.supportsFiber)try{ut=sf.inject(CA),At=sf}catch{}}return Zl.createRoot=function(r,o){if(!a(r))throw Error(i(299));var s=!1,f="",m=Cv,v=kv,w=Av;return o!=null&&(o.unstable_strictMode===!0&&(s=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onUncaughtError!==void 0&&(m=o.onUncaughtError),o.onCaughtError!==void 0&&(v=o.onCaughtError),o.onRecoverableError!==void 0&&(w=o.onRecoverableError)),o=lE(r,1,!1,null,null,s,f,null,m,v,w,vE),r[io]=o.current,Oh(r),new Xh(o)},Zl.hydrateRoot=function(r,o,s){if(!a(r))throw Error(i(299));var f=!1,m="",v=Cv,w=kv,L=Av,K=null;return s!=null&&(s.unstable_strictMode===!0&&(f=!0),s.identifierPrefix!==void 0&&(m=s.identifierPrefix),s.onUncaughtError!==void 0&&(v=s.onUncaughtError),s.onCaughtError!==void 0&&(w=s.onCaughtError),s.onRecoverableError!==void 0&&(L=s.onRecoverableError),s.formState!==void 0&&(K=s.formState)),o=lE(r,1,!0,o,s??null,f,m,K,v,w,L,vE),o.context=cE(null),s=o.current,f=Nr(),f=Zt(f),m=mo(f),m.callback=null,bo(s,m,f),s=f,o.current.lanes=s,Dt(o,s),ai(o),r[io]=o.current,Oh(r),new af(o)},Zl.version="19.2.6",Zl}var OE;function zA(){if(OE)return Qh.exports;OE=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(),Qh.exports=PA(),Qh.exports}var BA=zA(),UA="__TSS_CONTEXT",Jg=Symbol.for("TSS_SERVER_FUNCTION"),FA="application/x-tss-framed",ji={JSON:0,CHUNK:1,END:2,ERROR:3},HA=/;\s*v=(\d+)/;function jA(e){const t=e.match(HA);return t?parseInt(t[1],10):void 0}function GA(e){const t=jA(e);if(t!==void 0&&t!==1)throw new Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var E_=()=>window.__TSS_START_OPTIONS__;const S_=!1;function _c(e){return e[e.length-1]}function $A(e){return typeof e=="function"}function zo(e,t){return $A(e)?e(t):e}const x_=Object.prototype.hasOwnProperty,ME=Object.prototype.propertyIsEnumerable;function __(e){for(const t in e)if(x_.call(e,t))return!0;return!1}const qA=()=>Object.create(null),Ea=(e,t)=>Bo(e,t,qA);function Bo(e,t,n=()=>({}),i=0){if(e===t)return e;if(i>500)return t;const a=t,l=DE(e)&&DE(a);if(!l&&!($s(e)&&$s(a)))return a;const c=l?e:NE(e);if(!c)return a;const u=l?a:NE(a);if(!u)return a;const p=c.length,d=u.length,h=l?new Array(d):n();let g=0;for(let b=0;b<d;b++){const y=l?b:u[b],E=e[y],_=a[y];if(E===_){h[y]=E,(l?b<p:x_.call(e,y))&&g++;continue}if(E===null||_===null||typeof E!="object"||typeof _!="object"){h[y]=_;continue}const x=Bo(E,_,n,i+1);h[y]=x,x===E&&g++}return p===d&&g===p?e:h}function NE(e){const t=Object.getOwnPropertyNames(e);for(const a of t)if(!ME.call(e,a))return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;const i=t;for(const a of n){if(!ME.call(e,a))return!1;i.push(a)}return i}function $s(e){if(!IE(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!IE(n)||!n.hasOwnProperty("isPrototypeOf"))}function IE(e){return Object.prototype.toString.call(e)==="[object Object]"}function DE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function br(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,a=e.length;i<a;i++)if(!br(e[i],t[i],n))return!1;return!0}if($s(e)&&$s(t)){const i=n?.ignoreUndefined??!0;if(n?.partial){for(const c in t)if((!i||t[c]!==void 0)&&!br(e[c],t[c],n))return!1;return!0}let a=0;if(!i)a=Object.keys(e).length;else for(const c in e)e[c]!==void 0&&a++;let l=0;for(const c in t)if((!i||t[c]!==void 0)&&(l++,l>a||!br(e[c],t[c],n)))return!1;return a===l}return!1}function Na(e){let t,n;const i=new Promise((a,l)=>{t=a,n=l});return i.status="pending",i.resolve=a=>{i.status="resolved",i.value=a,t(a),e?.(a)},i.reject=a=>{i.status="rejected",n(a)},i}function VA(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function wc(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function YA(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function LE(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 YA(t)}const KA=["http:","https:","mailto:","tel:"];function Kf(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}const XA={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},WA=/[&><\u2028\u2029]/g;function ZA(e){return e.replace(WA,t=>XA[t])}function Ql(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="",a;for(;(a=t.exec(e))!==null;)i+=LE(e.slice(n,a.index))+a[0],n=t.lastIndex;i=i+LE(n?e.slice(n):e);let l=!1;return i.startsWith("//")&&(l=!0,i="/"+i.replace(/^\/+/,"")),{path:i,handledProtocolRelativeURL:l}}function QA(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function JA(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 vr(){throw new Error("Invariant failed")}function Rc(e){const t=new Map;let n,i;const a=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 c=t.get(l);if(c)return a(c),c.value},set(l,c){if(t.size>=e&&n){const p=n;t.delete(p.key),p.next&&(n=p.next,p.next.prev=void 0),p===i&&(i=void 0)}const u=t.get(l);if(u)u.value=c,a(u);else{const p={key:l,value:c,prev:i};i&&(i.next=p),i=p,n||(n=p),t.set(l,p)}},clear(){t.clear(),n=void 0,i=void 0}}}const Uo=4,w_=5;function eO(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function R_(e,t,n=new Uint16Array(6)){const i=e.indexOf("/",t),a=i===-1?e.length:i,l=e.substring(t,a);if(!l||!l.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n;if(l==="$"){const u=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=u,n[4]=u,n[5]=u,n}if(l.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=a,n[4]=a,n[5]=a,n;const c=eO(l);if(c){const[u,p]=c,d=l.charCodeAt(u+1);if(d===45){if(u+2<l.length&&l.charCodeAt(u+2)===36){const h=u+3,g=p;if(h<g)return n[0]=3,n[1]=t+u,n[2]=t+h,n[3]=t+g,n[4]=t+p+1,n[5]=a,n}}else if(d===36){const h=u+1,g=u+2;return g===p?(n[0]=2,n[1]=t+u,n[2]=t+h,n[3]=t+g,n[4]=t+p+1,n[5]=e.length,n):(n[0]=1,n[1]=t+u,n[2]=t+g,n[3]=t+p,n[4]=t+p+1,n[5]=a,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n}function xd(e,t,n,i,a,l,c){c?.(n);let u=i;{const p=n.fullPath??n.from,d=p.length,h=n.options?.caseSensitive??e,g=n.options?.params?.parse??n.options?.parseParams;for(;u<d;){const y=R_(p,u,t);let E;const _=u,x=y[5];switch(u=x+1,l++,y[0]){case 0:{const S=p.substring(y[2],y[3]);if(h){const C=a.static?.get(S);if(C)E=C;else{a.static??=new Map;const k=wa(n.fullPath??n.from);k.parent=a,k.depth=l,E=k,a.static.set(S,k)}}else{const C=S.toLowerCase(),k=a.staticInsensitive?.get(C);if(k)E=k;else{a.staticInsensitive??=new Map;const O=wa(n.fullPath??n.from);O.parent=a,O.depth=l,E=O,a.staticInsensitive.set(C,O)}}break}case 1:{const S=p.substring(_,y[1]),C=p.substring(y[4],x),k=h&&!!(S||C),O=S?k?S:S.toLowerCase():void 0,N=C?k?C:C.toLowerCase():void 0,R=!g&&a.dynamic?.find(P=>!P.parse&&P.caseSensitive===k&&P.prefix===O&&P.suffix===N);if(R)E=R;else{const P=rg(1,n.fullPath??n.from,k,O,N);E=P,P.depth=l,P.parent=a,a.dynamic??=[],a.dynamic.push(P)}break}case 3:{const S=p.substring(_,y[1]),C=p.substring(y[4],x),k=h&&!!(S||C),O=S?k?S:S.toLowerCase():void 0,N=C?k?C:C.toLowerCase():void 0,R=!g&&a.optional?.find(P=>!P.parse&&P.caseSensitive===k&&P.prefix===O&&P.suffix===N);if(R)E=R;else{const P=rg(3,n.fullPath??n.from,k,O,N);E=P,P.parent=a,P.depth=l,a.optional??=[],a.optional.push(P)}break}case 2:{const S=p.substring(_,y[1]),C=p.substring(y[4],x),k=h&&!!(S||C),O=S?k?S:S.toLowerCase():void 0,N=C?k?C:C.toLowerCase():void 0,R=rg(2,n.fullPath??n.from,k,O,N);E=R,R.parent=a,R.depth=l,a.wildcard??=[],a.wildcard.push(R)}}a=E}if(g&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const y=wa(n.fullPath??n.from);y.kind=w_,y.parent=a,l++,y.depth=l,a.pathless??=[],a.pathless.push(y),a=y}const b=(n.path||!n.children)&&!n.isRoot;if(b&&p.endsWith("/")){const y=wa(n.fullPath??n.from);y.kind=Uo,y.parent=a,l++,y.depth=l,a.index=y,a=y}a.parse=g??null,a.priority=n.options?.params?.priority??0,b&&!a.route&&(a.route=n,a.fullPath=n.fullPath??n.from)}if(n.children)for(const p of n.children)xd(e,t,p,u,a,l,c)}function ng(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 Lo(e){if(e.pathless)for(const t of e.pathless)Lo(t);if(e.static)for(const t of e.static.values())Lo(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())Lo(t);if(e.dynamic?.length){e.dynamic.sort(ng);for(const t of e.dynamic)Lo(t)}if(e.optional?.length){e.optional.sort(ng);for(const t of e.optional)Lo(t)}if(e.wildcard?.length){e.wildcard.sort(ng);for(const t of e.wildcard)Lo(t)}}function wa(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 rg(e,t,n,i,a){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:a}}function tO(e,t){const n=wa("/"),i=new Uint16Array(6);for(const a of e)xd(!1,i,a,1,n,0);Lo(n),t.masksTree=n,t.flatCache=Rc(1e3)}function nO(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const i=Im(e,t.masksTree);return t.flatCache.set(e,i),i}function rO(e,t,n,i,a){e||="/",i||="/";const l=t?`case\0${e}`:e;let c=a.singleCache.get(l);return c||(c=wa("/"),xd(t,new Uint16Array(6),{from:e},1,c,0),a.singleCache.set(l,c)),Im(i,c,n)}function iO(e,t,n=!1){const i=n?e:`nofuzz\0${e}`,a=t.matchCache.get(i);if(a!==void 0)return a;e||="/";let l;try{l=Im(e,t.segmentTree,n)}catch(c){if(c instanceof URIError)l=null;else throw c}return l&&(l.branch=C_(l.route)),t.matchCache.set(i,l),l}function oO(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function aO(e,t=!1,n){const i=wa(e.fullPath),a=new Uint16Array(6),l={},c={};let u=0;return xd(t,a,e,1,i,0,p=>{if(n?.(p,u),p.id in l&&vr(),l[p.id]=p,u!==0&&p.path){const d=oO(p.fullPath);(!c[d]||p.fullPath.endsWith("/"))&&(c[d]=p)}u++}),Lo(i),{processedTree:{segmentTree:i,singleCache:Rc(1e3),matchCache:Rc(1e3),flatCache:null,masksTree:null},routesById:l,routesByPath:c}}function Im(e,t,n=!1){const i=e.split("/"),a=lO(e,i,t,n);if(!a)return null;const[l]=T_(e,i,a);return{route:a.node.route,rawParams:l}}function T_(e,t,n){const i=sO(n.node);let a=null;const l=Object.create(null);let c=n.extract?.part??0,u=n.extract?.node??0,p=n.extract?.path??0,d=n.extract?.segment??0;for(;u<i.length;c++,u++,p++,d++){const h=i[u];if(h.kind===Uo)break;if(h.kind===w_){d--,c--,p--;continue}const g=t[c],b=p;if(g&&(p+=g.length),h.kind===1){a??=n.node.fullPath.split("/");const y=a[d],E=h.prefix?.length??0;if(y.charCodeAt(E)===123){const _=h.suffix?.length??0,x=y.substring(E+2,y.length-_-1),S=g.substring(E,g.length-_);l[x]=decodeURIComponent(S)}else{const _=y.substring(1);l[_]=decodeURIComponent(g)}}else if(h.kind===3){if(n.skipped&1<<u){c--,p=b-1;continue}a??=n.node.fullPath.split("/");const y=a[d],E=h.prefix?.length??0,_=h.suffix?.length??0,x=y.substring(E+3,y.length-_-1),S=h.suffix||h.prefix?g.substring(E,g.length-_):g;S&&(l[x]=decodeURIComponent(S))}else if(h.kind===2){const y=h,E=e.substring(b+(y.prefix?.length??0),e.length-(y.suffix?.length??0)),_=decodeURIComponent(E);l["*"]=_,l._splat=_;break}}return n.rawParams&&Object.assign(l,n.rawParams),[l,{part:c,node:u,path:p,segment:d}]}function C_(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function sO(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function lO(e,t,n,i){if(e==="/"&&n.index)return{node:n.index,skipped:0};const a=!_c(t),l=a&&e!=="/",c=t.length-(a?1:0),u=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let p=null,d=null;for(;u.length;){const h=u.pop(),{node:g,index:b,skipped:y,depth:E,statics:_,dynamics:x,optionals:S}=h;let{extract:C,rawParams:k}=h;if(g.kind===2&&g.route&&!cf(d,h))continue;if(g.parse){if(!PE(e,t,h))continue;k=h.rawParams,C=h.extract}i&&g.route&&g.kind!==Uo&&cf(p,h)&&(p=h);const O=b===c;if(O&&(g.route&&(!l||g.kind===Uo||g.kind===2)&&cf(d,h)&&(d=h),!g.optional&&!g.wildcard&&!g.index&&!g.pathless))continue;const N=O?void 0:t[b];let R;if(O&&g.index){const P={node:g.index,index:b,skipped:y,depth:E+1,statics:_,dynamics:x,optionals:S,extract:C,rawParams:k};let I=!0;if(g.index.parse&&(PE(e,t,P)||(I=!1)),I){if(!x&&!S&&!y&&cO(_,c))return P;cf(d,P)&&(d=P)}}if(g.wildcard)for(let P=g.wildcard.length-1;P>=0;P--){const I=g.wildcard[P],{prefix:G,suffix:U}=I;if(!(G&&(O||!(I.caseSensitive?N:R??=N.toLowerCase()).startsWith(G)))){if(U){if(O)continue;const X=t.slice(b).join("/").slice(-U.length);if((I.caseSensitive?X:X.toLowerCase())!==U)continue}u.push({node:I,index:c,skipped:y,depth:E+1,statics:_,dynamics:x,optionals:S,extract:C,rawParams:k})}}if(g.optional){const P=y|1<<E,I=E+1;for(let G=g.optional.length-1;G>=0;G--){const U=g.optional[G];u.push({node:U,index:b,skipped:P,depth:I,statics:_,dynamics:x,optionals:S,extract:C,rawParams:k})}if(!O)for(let G=g.optional.length-1;G>=0;G--){const U=g.optional[G],{prefix:X,suffix:$}=U;if(X||$){const W=U.caseSensitive?N:R??=N.toLowerCase();if(X&&!W.startsWith(X)||$&&!W.endsWith($))continue}u.push({node:U,index:b+1,skipped:y,depth:I,statics:_,dynamics:x,optionals:S+lf(c,b),extract:C,rawParams:k})}}if(!O&&g.dynamic&&N)for(let P=g.dynamic.length-1;P>=0;P--){const I=g.dynamic[P],{prefix:G,suffix:U}=I;if(G||U){const X=I.caseSensitive?N:R??=N.toLowerCase();if(G&&!X.startsWith(G)||U&&!X.endsWith(U))continue}u.push({node:I,index:b+1,skipped:y,depth:E+1,statics:_,dynamics:x+lf(c,b),optionals:S,extract:C,rawParams:k})}if(!O&&g.staticInsensitive){const P=g.staticInsensitive.get(R??=N.toLowerCase());P&&u.push({node:P,index:b+1,skipped:y,depth:E+1,statics:_+lf(c,b),dynamics:x,optionals:S,extract:C,rawParams:k})}if(!O&&g.static){const P=g.static.get(N);P&&u.push({node:P,index:b+1,skipped:y,depth:E+1,statics:_+lf(c,b),dynamics:x,optionals:S,extract:C,rawParams:k})}if(g.pathless){const P=E+1;for(let I=g.pathless.length-1;I>=0;I--){const G=g.pathless[I];u.push({node:G,index:b,skipped:y,depth:P,statics:_,dynamics:x,optionals:S,extract:C,rawParams:k})}}}if(d)return d;if(i&&p){let h=p.index;for(let b=0;b<p.index;b++)h+=t[b].length;const g=h===e.length?"/":e.slice(h);return p.rawParams??=Object.create(null),p.rawParams["**"]=decodeURIComponent(g),p}return null}function lf(e,t){return 2**(e-t-1)}function cO(e,t){return e===2**(t-1)-1}function PE(e,t,n){let i,a;try{[i,a]=T_(e,t,n)}catch{return null}if(n.rawParams=i,n.extract=a,!n.node.parse)return!0;try{if(n.node.parse(i)===!1)return null}catch{}return!0}function cf(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===Uo)>(e.node.kind===Uo)||t.node.kind===Uo==(e.node.kind===Uo)&&t.depth>e.depth))):!0}function zf(e){return Dm(e.filter(t=>t!==void 0).join("/"))}function Dm(e){return e.replace(/\/{2,}/g,"/")}function k_(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Vi(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function A_(e){return Vi(k_(e))}function Xf(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function uO(e,t,n){return Xf(e,n)===Xf(t,n)}function fO({base:e,to:t,trailingSlash:n="never",cache:i}){const a=t.startsWith("/"),l=!a&&t===".";let c;if(i){c=a?t:l?e:e+"\0"+t;const d=i.get(c);if(d)return d}let u;if(l)u=e.split("/");else if(a)u=t.split("/");else{for(u=e.split("/");u.length>1&&_c(u)==="";)u.pop();const d=t.split("/");for(let h=0,g=d.length;h<g;h++){const b=d[h];b===""?h?h===g-1&&u.push(b):u=[b]:b===".."?u.pop():b==="."||u.push(b)}}u.length>1&&(_c(u)===""?n==="never"&&u.pop():n==="always"&&u.push(""));const p=Dm(u.join("/"))||"/";return c&&i&&i.set(c,p),p}function dO(e){const t=new Map(e.map(a=>[encodeURIComponent(a),a])),n=Array.from(t.keys()).map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),i=new RegExp(n,"g");return a=>a.replace(i,l=>t.get(l)??l)}function ig(e,t,n){const i=t[e];return typeof i!="string"?i:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(i)?i:i.split("/").map(a=>BE(a,n)).join("/"):BE(i,n)}function zE({path:e,params:t,decoder:n,...i}){let a=!1;const l=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:l,isMissingParams:a};if(!e.includes("$"))return{interpolatedPath:e,usedParams:l,isMissingParams:a};const c=e.length;let u=0,p,d="";for(;u<c;){const h=u;p=R_(e,h,p);const g=p[5];if(u=g+1,h===g)continue;const b=p[0];if(b===0){d+="/"+e.substring(h,g);continue}if(b===2){const y=t._splat;l._splat=y,l["*"]=y;const E=e.substring(h,p[1]),_=e.substring(p[4],g);if(!y){a=!0,(E||_)&&(d+="/"+E+_);continue}const x=ig("_splat",t,n);d+="/"+E+x+_;continue}if(b===1){const y=e.substring(p[2],p[3]);!a&&!(y in t)&&(a=!0),l[y]=t[y];const E=e.substring(h,p[1]),_=e.substring(p[4],g),x=ig(y,t,n)??"undefined";d+="/"+E+x+_;continue}if(b===3){const y=e.substring(p[2],p[3]),E=t[y];if(E==null)continue;l[y]=E;const _=e.substring(h,p[1]),x=e.substring(p[4],g),S=ig(y,t,n)??"";d+="/"+_+S+x;continue}}return e.endsWith("/")&&(d+="/"),{usedParams:l,interpolatedPath:d||"/",isMissingParams:a}}function BE(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function Pn(e){return e?.isNotFound===!0}function pO(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}const hO="tsr-scroll-restoration-v1_3";function gO(){const e=pO();if(!e)return null;let t={};try{const i=JSON.parse(e.getItem("tsr-scroll-restoration-v1_3")||"{}");$s(i)&&(t=i)}catch{}return{get state(){return t},set:i=>{t=zo(i,t)||t},persist:()=>{try{e.setItem(hO,JSON.stringify(t))}catch{}}}}const UE=gO(),mO=e=>e.state.__TSR_key||e.href;function bO(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let uf=!1;const Jl="window",FE="data-scroll-restoration-id";function yO(e,t){if(!UE)return;const n=UE;if((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!n)return;e.isScrollRestorationSetup=!0,uf=!1;const i=e.options.getScrollRestorationKey||mO,a=new Map;window.history.scrollRestoration="manual";const l=u=>{if(!(uf||!e.isScrollRestoring))if(u.target===document||u.target===window)a.set(Jl,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const p=u.target;a.set(p,{scrollX:p.scrollLeft||0,scrollY:p.scrollTop||0})}},c=u=>{if(!e.isScrollRestoring||!u||a.size===0||!n)return;const p=n.state[u]||={};for(const[d,h]of a){let g;if(d===Jl)g=Jl;else if(d.isConnected){const b=d.getAttribute(FE);g=b?`[${FE}="${b}"]`:bO(d)}g&&(p[g]=h)}};document.addEventListener("scroll",l,!0),e.subscribe("onBeforeLoad",u=>{c(u.fromLocation?i(u.fromLocation):void 0),a.clear()}),window.addEventListener("pagehide",()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),n.persist()}),e.subscribe("onRendered",u=>{const p=i(u.toLocation),d=e.options.scrollRestorationBehavior,h=e.options.scrollToTopSelectors;if(a.clear(),!e.resetNextScroll){e.resetNextScroll=!0;return}if(!(typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))){uf=!0;try{const g=e.isScrollRestoring?n.state[p]:void 0;let b=!1;if(g)for(const y in g){const E=g[y];if(!$s(E))continue;const{scrollX:_,scrollY:x}=E;if(!(!Number.isFinite(_)||!Number.isFinite(x))){if(y===Jl)window.scrollTo({top:x,left:_,behavior:d}),b=!0;else if(y){let S;try{S=document.querySelector(y)}catch{continue}S&&(S.scrollLeft=_,S.scrollTop=x,b=!0)}}}if(!b){const y=e.history.location.hash.slice(1);if(y){const E=window.history.state?.__hashScrollIntoViewOptions??!0;if(E){const _=document.getElementById(y);_&&_.scrollIntoView(E)}}else{const E={top:0,left:0,behavior:d};if(window.scrollTo(E),h)for(const _ of h){if(_===Jl)continue;const x=typeof _=="function"?_():document.querySelector(_);x&&x.scrollTo(E)}}}}finally{uf=!1}e.isScrollRestoring&&n.set(g=>(g[p]||={},g))}})}function O_(e,t=String){const n=new URLSearchParams;for(const i in e){const a=e[i];a!==void 0&&n.set(i,t(a))}return n.toString()}function og(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function vO(e){const t=new URLSearchParams(e),n=Object.create(null);for(const[i,a]of t.entries()){const l=n[i];l==null?n[i]=og(a):Array.isArray(l)?l.push(og(a)):n[i]=[l,og(a)]}return n}const EO=xO(JSON.parse),SO=_O(JSON.stringify,JSON.parse);function xO(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=vO(t);for(const i in n){const a=n[i];if(typeof a=="string")try{n[i]=e(a)}catch{}}return n}}function _O(e,t){const n=typeof t=="function";function i(a){if(typeof a=="object"&&a!==null)try{return e(a)}catch{}else if(n&&typeof a=="string")try{return t(a),e(a)}catch{}return a}return a=>{const l=O_(a,i);return l?`?${l}`:""}}const Oa="__root__";function M_(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!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 yr(e){return e instanceof Response&&!!e.options}function wO(e){if(e!==null&&typeof e=="object"&&e.isSerializedRedirect)return M_(e)}function RO(e){return{input:({url:t})=>{for(const n of e)t=em(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=N_(e[n],t);return t}}}function TO(e){const t=A_(e.basepath),n=`/${t}`,i=`${n}/`,a=e.caseSensitive?n:n.toLowerCase(),l=e.caseSensitive?i:i.toLowerCase();return{input:({url:c})=>{const u=e.caseSensitive?c.pathname:c.pathname.toLowerCase();return u===a?c.pathname="/":u.startsWith(l)&&(c.pathname=c.pathname.slice(n.length)),c},output:({url:c})=>(c.pathname=zf(["/",t,c.pathname]),c)}}function em(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 N_(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 CO(e,t){const{createMutableStore:n,createReadonlyStore:i,batch:a,init:l}=t,c=new Map,u=new Map,p=new Map,d=n(e.status),h=n(e.loadedAt),g=n(e.isLoading),b=n(e.isTransitioning),y=n(e.location),E=n(e.resolvedLocation),_=n(e.statusCode),x=n(e.redirect),S=n([]),C=n([]),k=n([]),O=i(()=>ag(c,S.get())),N=i(()=>ag(u,C.get())),R=i(()=>ag(p,k.get())),P=i(()=>S.get()[0]),I=i(()=>S.get().some(q=>c.get(q)?.get().status==="pending")),G=i(()=>({locationHref:y.get().href,resolvedLocationHref:E.get()?.href,status:d.get()})),U=i(()=>({status:d.get(),loadedAt:h.get(),isLoading:g.get(),isTransitioning:b.get(),matches:O.get(),location:y.get(),resolvedLocation:E.get(),statusCode:_.get(),redirect:x.get()})),X=Rc(64);function $(q){let Q=X.get(q);return Q||(Q=i(()=>{const ee=S.get();for(const M of ee){const D=c.get(M);if(D&&D.routeId===q)return D.get()}}),X.set(q,Q)),Q}const W={status:d,loadedAt:h,isLoading:g,isTransitioning:b,location:y,resolvedLocation:E,statusCode:_,redirect:x,matchesId:S,pendingIds:C,cachedIds:k,matches:O,pendingMatches:N,cachedMatches:R,firstId:P,hasPending:I,matchRouteDeps:G,matchStores:c,pendingMatchStores:u,cachedMatchStores:p,__store:U,getRouteMatchStore:$,setMatches:V,setPending:H,setCached:B};V(e.matches),l?.(W);function V(q){sg(q,c,S,n,a)}function H(q){sg(q,u,C,n,a)}function B(q){sg(q,p,k,n,a)}return W}function ag(e,t){const n=[];for(const i of t){const a=e.get(i);a&&n.push(a.get())}return n}function sg(e,t,n,i,a){const l=e.map(u=>u.id),c=new Set(l);a(()=>{for(const u of t.keys())c.has(u)||t.delete(u);for(const u of e){const p=t.get(u.id);if(!p){const d=i(u);d.routeId=u.routeId,t.set(u.id,d);continue}p.routeId=u.routeId,p.get()!==u&&p.set(u)}JA(n.get(),l)||n.set(l)})}const tm=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},kO=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),_d=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Ma=(e,t,n=!0)=>{const i={...e.router.options.context??{}},a=n?t:t-1;for(let l=0;l<=a;l++){const c=e.matches[l];if(!c)continue;const u=e.router.getMatch(c.id);u&&Object.assign(i,u.__routeContext,u.__beforeLoadContext)}return i},HE=(e,t)=>{if(!e.matches.length)return;const n=t.routeId,i=e.matches.findIndex(c=>c.routeId===e.router.routeTree.id),a=i>=0?i:0;let l=n?e.matches.findIndex(c=>c.routeId===n):e.firstBadMatchIndex??e.matches.length-1;l<0&&(l=a);for(let c=l;c>=0;c--){const u=e.matches[c];if(e.router.looseRoutesById[u.routeId].options.notFoundComponent)return c}return n?l:a},Fo=(e,t,n)=>{if(!(!yr(n)&&!Pn(n)))throw yr(n)&&n.redirectHandled&&!n.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,i=>({...i,status:yr(n)?"redirected":Pn(n)?"notFound":i.status==="pending"?"success":i.status,context:Ma(e,t.index),isFetching:!1,error:n})),Pn(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),yr(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n))),n},I_=(e,t)=>{const n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},jE=(e,t,n)=>{const i=Ma(e,n);e.updateMatch(t,a=>({...a,context:i}))},ec=(e,t,n,i)=>{const{id:a,routeId:l}=e.matches[t],c=e.router.looseRoutesById[l];if(n instanceof Promise)throw n;n.routerCode=i,e.firstBadMatchIndex??=t,Fo(e,e.router.getMatch(a),n);try{c.options.onError?.(n)}catch(u){n=u,Fo(e,e.router.getMatch(a),n)}e.updateMatch(a,u=>(u._nonReactive.beforeLoadPromise?.resolve(),u._nonReactive.beforeLoadPromise=void 0,u._nonReactive.loadPromise?.resolve(),{...u,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!yr(n)&&!Pn(n)&&(e.serialError??=n)},D_=(e,t,n,i)=>{if(i._nonReactive.pendingTimeout!==void 0)return;const a=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!_d(e,t)&&(n.options.loader||n.options.beforeLoad||P_(n))&&typeof a=="number"&&a!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){const l=setTimeout(()=>{tm(e)},a);i._nonReactive.pendingTimeout=l}},AO=(e,t,n)=>{const i=e.router.getMatch(t);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;D_(e,t,n,i);const a=()=>{const l=e.router.getMatch(t);l.preload&&(l.status==="redirected"||l.status==="notFound")&&Fo(e,l,l.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(a):a()},OO=(e,t,n,i)=>{const a=e.router.getMatch(t);let l=a._nonReactive.loadPromise;a._nonReactive.loadPromise=Na(()=>{l?.resolve(),l=void 0});const{paramsError:c,searchError:u}=a;c&&ec(e,n,c,"PARSE_PARAMS"),u&&ec(e,n,u,"VALIDATE_SEARCH"),D_(e,t,i,a);const p=new AbortController;let d=!1;const h=()=>{d||(d=!0,e.updateMatch(t,O=>({...O,isFetching:"beforeLoad",fetchCount:O.fetchCount+1,abortController:p})))},g=()=>{a._nonReactive.beforeLoadPromise?.resolve(),a._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,O=>({...O,isFetching:!1}))};if(!i.options.beforeLoad){e.router.batch(()=>{h(),g()});return}a._nonReactive.beforeLoadPromise=Na();const b={...Ma(e,n,!1),...a.__routeContext},{search:y,params:E,cause:_}=a,x=_d(e,t),S={search:y,abortController:p,params:E,preload:x,context:b,location:e.location,navigate:O=>e.router.navigate({...O,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:x?"preload":_,matches:e.matches,routeId:i.id,...e.router.options.additionalContext},C=O=>{if(O===void 0){e.router.batch(()=>{h(),g()});return}(yr(O)||Pn(O))&&(h(),ec(e,n,O,"BEFORE_LOAD")),e.router.batch(()=>{h(),e.updateMatch(t,N=>({...N,__beforeLoadContext:O})),g()})};let k;try{if(k=i.options.beforeLoad(S),wc(k))return h(),k.catch(O=>{ec(e,n,O,"BEFORE_LOAD")}).then(C)}catch(O){h(),ec(e,n,O,"BEFORE_LOAD")}C(k)},MO=(e,t)=>{const{id:n,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i],l=()=>u(),c=()=>OO(e,n,t,a),u=()=>{if(I_(e,n))return;const p=AO(e,n,a);return wc(p)?p.then(c):c()};return l()},NO=(e,t,n)=>{const i=e.router.getMatch(t);if(!i||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const a={ssr:e.router.options.ssr,matches:e.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([n.options.head?.(a),n.options.scripts?.(a),n.options.headers?.(a)]).then(([l,c,u])=>({meta:l?.meta,links:l?.links,headScripts:l?.scripts,headers:u,scripts:c,styles:l?.styles}))},L_=(e,t,n,i,a)=>{const l=t[i-1],{params:c,loaderDeps:u,abortController:p,cause:d}=e.router.getMatch(n),h=Ma(e,i),g=_d(e,n);return{params:c,deps:u,preload:!!g,parentMatchPromise:l,abortController:p,context:h,location:e.location,navigate:b=>e.router.navigate({...b,_fromLocation:e.location}),cause:g?"preload":d,route:a,...e.router.options.additionalContext}},GE=async(e,t,n,i,a)=>{try{const l=e.router.getMatch(n);try{(!(S_??e.router.isServer)||l.ssr===!0)&&Tc(a);const c=a.options.loader,u=typeof c=="function"?c:c?.handler,p=u?.(L_(e,t,n,i,a)),d=!!u&&wc(p);if((d||a._lazyPromise||a._componentsPromise||a.options.head||a.options.scripts||a.options.headers||l._nonReactive.minPendingPromise)&&e.updateMatch(n,g=>({...g,isFetching:"loader"})),u){const g=d?await p:p;Fo(e,e.router.getMatch(n),g),g!==void 0&&e.updateMatch(n,b=>({...b,loaderData:g}))}a._lazyPromise&&await a._lazyPromise;const h=l._nonReactive.minPendingPromise;h&&await h,a._componentsPromise&&await a._componentsPromise,e.updateMatch(n,g=>({...g,error:void 0,context:Ma(e,i),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(c){let u=c;if(u?.name==="AbortError"){if(l.abortController.signal.aborted){l._nonReactive.loaderPromise?.resolve(),l._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,d=>({...d,status:d.status==="pending"?"success":d.status,isFetching:!1,context:Ma(e,i)}));return}const p=l._nonReactive.minPendingPromise;p&&await p,Pn(c)&&await a.options.notFoundComponent?.preload?.(),Fo(e,e.router.getMatch(n),c);try{a.options.onError?.(c)}catch(d){u=d,Fo(e,e.router.getMatch(n),d)}!yr(u)&&!Pn(u)&&await Tc(a,["errorComponent"]),e.updateMatch(n,d=>({...d,error:u,context:Ma(e,i),status:"error",isFetching:!1}))}}catch(l){const c=e.router.getMatch(n);c&&(c._nonReactive.loaderPromise=void 0),Fo(e,c,l)}},IO=async(e,t,n)=>{async function i(y,E,_,x,S){const C=Date.now()-E.updatedAt,k=y?S.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:S.options.staleTime??e.router.options.defaultStaleTime??0,O=S.options.shouldReload,N=typeof O=="function"?O(L_(e,t,a,n,S)):O,{status:R,invalid:P}=x,I=C>=k&&(!!e.forceStaleReload||x.cause==="enter"||_!==void 0&&_!==x.id);c=R==="success"&&(P||(N??I)),y&&S.options.preload===!1||(c&&!e.sync&&h?(u=!0,(async()=>{try{await GE(e,t,a,n,S);const G=e.router.getMatch(a);G._nonReactive.loaderPromise?.resolve(),G._nonReactive.loadPromise?.resolve(),G._nonReactive.loaderPromise=void 0,G._nonReactive.loadPromise=void 0}catch(G){yr(G)&&await e.router.navigate(G.options)}})()):R!=="success"||c?await GE(e,t,a,n,S):jE(e,a,n))}const{id:a,routeId:l}=e.matches[n];let c=!1,u=!1;const p=e.router.looseRoutesById[l],d=p.options.loader,h=((typeof d=="function"?void 0:d?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(I_(e,a)){if(!e.router.getMatch(a))return e.matches[n];jE(e,a,n)}else{const y=e.router.getMatch(a),E=e.router.stores.matchesId.get()[n],_=(E&&e.router.stores.matchStores.get(E)||null)?.routeId===l?E:e.router.stores.matches.get().find(S=>S.routeId===l)?.id,x=_d(e,a);if(y._nonReactive.loaderPromise){if(y.status==="success"&&!e.sync&&!y.preload&&h)return y;await y._nonReactive.loaderPromise;const S=e.router.getMatch(a),C=S._nonReactive.error||S.error;C&&Fo(e,S,C),S.status==="pending"&&await i(x,y,_,S,p)}else{const S=x&&!e.router.stores.matchStores.has(a),C=e.router.getMatch(a);C._nonReactive.loaderPromise=Na(),S!==C.preload&&e.updateMatch(a,k=>({...k,preload:S})),await i(x,y,_,C,p)}}const g=e.router.getMatch(a);u||(g._nonReactive.loaderPromise?.resolve(),g._nonReactive.loadPromise?.resolve(),g._nonReactive.loadPromise=void 0),clearTimeout(g._nonReactive.pendingTimeout),g._nonReactive.pendingTimeout=void 0,u||(g._nonReactive.loaderPromise=void 0),g._nonReactive.dehydrated=void 0;const b=u?g.isFetching:!1;return b!==g.isFetching||g.invalid!==!1?(e.updateMatch(a,y=>({...y,isFetching:b,invalid:!1})),e.router.getMatch(a)):g};async function $E(e){const t=e,n=[];kO(t.router)&&tm(t);let i;for(let b=0;b<t.matches.length;b++){try{const y=MO(t,b);wc(y)&&await y}catch(y){if(yr(y))throw y;if(Pn(y))i=y;else if(!t.preload)throw y;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const a=t.firstBadMatchIndex??t.matches.length,l=i&&!t.preload?HE(t,i):void 0,c=i&&t.preload?0:l!==void 0?Math.min(l+1,a):a;let u,p;for(let b=0;b<c;b++)n.push(IO(t,n,b));try{await Promise.all(n)}catch{const b=await Promise.allSettled(n);for(const y of b){if(y.status!=="rejected")continue;const E=y.reason;if(yr(E))throw E;Pn(E)?u??=E:p??=E}if(p!==void 0)throw p}const d=u??(i&&!t.preload?i:void 0);let h=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!d&&i&&t.preload)return t.matches;if(d){const b=HE(t,d);b===void 0&&vr();const y=t.matches[b],E=t.router.looseRoutesById[y.routeId],_=t.router.options?.defaultNotFoundComponent;!E.options.notFoundComponent&&_&&(E.options.notFoundComponent=_),d.routeId=y.routeId;const x=y.routeId===t.router.routeTree.id;t.updateMatch(y.id,S=>({...S,...x?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:d},isFetching:!1})),h=b,await Tc(E,["notFoundComponent"])}else if(!t.preload){const b=t.matches[0];b.globalNotFound||t.router.getMatch(b.id)?.globalNotFound&&t.updateMatch(b.id,y=>({...y,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const b=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Tc(b,["errorComponent"])}for(let b=0;b<=h;b++){const{id:y,routeId:E}=t.matches[b],_=t.router.looseRoutesById[E];try{const x=NO(t,y,_);if(x){const S=await x;t.updateMatch(y,C=>({...C,...S}))}}catch(x){console.error(`Error executing head for route ${E}:`,x)}}const g=tm(t);if(wc(g)&&await g,d)throw d;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function qE(e,t){const n=t.map(i=>e.options[i]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Tc(e,t=Bf){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(i=>{const{id:a,...l}=i.options;Object.assign(e.options,l),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const n=()=>e._componentsLoaded?void 0:t===Bf?(()=>{if(e._componentsPromise===void 0){const i=qE(e,Bf);i?e._componentsPromise=i.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():qE(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function P_(e){for(const t of Bf)if(e.options[t]?.preload)return!0;return!1}const Bf=["component","errorComponent","pendingComponent","notFoundComponent"];var jo="__TSR_index",VE="popstate",YE="beforeunload";function DO(e){let t=e.getLocation();const n=new Set,i=c=>{t=e.getLocation(),n.forEach(u=>u({location:t,action:c}))},a=c=>{e.notifyOnIndexChange??!0?i(c):t=e.getLocation()},l=async({task:c,navigateOpts:u,...p})=>{if(u?.ignoreBlocker??!1){c();return}const d=e.getBlockers?.()??[],h=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&d.length&&h)for(const g of d){const b=Wf(p.path,p.state);if(await g.blockerFn({currentLocation:t,nextLocation:b,action:p.type})){e.onBlocked?.();return}}c()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:c=>(n.add(c),()=>{n.delete(c)}),push:(c,u,p)=>{const d=t.state[jo];u=KE(d+1,u),l({task:()=>{e.pushState(c,u),i({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:c,state:u})},replace:(c,u,p)=>{const d=t.state[jo];u=KE(d,u),l({task:()=>{e.replaceState(c,u),i({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:c,state:u})},go:(c,u)=>{l({task:()=>{e.go(c),a({type:"GO",index:c})},navigateOpts:u,type:"GO"})},back:c=>{l({task:()=>{e.back(c?.ignoreBlocker??!1),a({type:"BACK"})},navigateOpts:c,type:"BACK"})},forward:c=>{l({task:()=>{e.forward(c?.ignoreBlocker??!1),a({type:"FORWARD"})},navigateOpts:c,type:"FORWARD"})},canGoBack:()=>t.state[jo]!==0,createHref:c=>e.createHref(c),block:c=>{if(!e.setBlockers)return()=>{};const u=e.getBlockers?.()??[];return e.setBlockers([...u,c]),()=>{const p=e.getBlockers?.()??[];e.setBlockers?.(p.filter(d=>d!==c))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:i}}function KE(e,t){t||(t={});const n=Lm();return{...t,key:n,__TSR_key:n,[jo]:e}}function LO(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let a=[];const l=()=>a,c=I=>a=I,u=(I=>I),p=(()=>Wf(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const I=Lm();t.history.replaceState({[jo]:0,key:I,__TSR_key:I},"")}let d=p(),h,g=!1,b=!1,y=!1,E=!1;const _=()=>d;let x,S;const C=()=>{x&&(P._ignoreSubscribers=!0,(x.isPush?t.history.pushState:t.history.replaceState)(x.state,"",x.href),P._ignoreSubscribers=!1,x=void 0,S=void 0,h=void 0)},k=(I,G,U)=>{const X=u(G);S||(h=d),d=Wf(G,U),x={href:X,state:U,isPush:x?.isPush||I==="push"},S||(S=Promise.resolve().then(()=>C()))},O=I=>{d=p(),P.notify({type:I})},N=async()=>{if(b){b=!1;return}const I=p(),G=I.state[jo]-d.state[jo],U=G===1,X=G===-1,$=!U&&!X||g;g=!1;const W=$?"GO":X?"BACK":"FORWARD",V=$?{type:"GO",index:G}:{type:X?"BACK":"FORWARD"};if(y)y=!1;else{const H=l();if(typeof document<"u"&&H.length){for(const B of H)if(await B.blockerFn({currentLocation:d,nextLocation:I,action:W})){b=!0,t.history.go(1),P.notify(V);return}}}d=p(),P.notify(V)},R=I=>{if(E){E=!1;return}let G=!1;const U=l();if(typeof document<"u"&&U.length)for(const X of U){const $=X.enableBeforeUnload??!0;if($===!0){G=!0;break}if(typeof $=="function"&&$()===!0){G=!0;break}}if(G)return I.preventDefault(),I.returnValue=""},P=DO({getLocation:_,getLength:()=>t.history.length,pushState:(I,G)=>k("push",I,G),replaceState:(I,G)=>k("replace",I,G),back:I=>(I&&(y=!0),E=!0,t.history.back()),forward:I=>{I&&(y=!0),E=!0,t.history.forward()},go:I=>{g=!0,t.history.go(I)},createHref:I=>u(I),flush:C,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener(YE,R,{capture:!0}),t.removeEventListener(VE,N)},onBlocked:()=>{h&&d!==h&&(d=h)},getBlockers:l,setBlockers:c,notifyOnIndexChange:!1});return t.addEventListener(YE,R,{capture:!0}),t.addEventListener(VE,N),t.history.pushState=function(...I){const G=n.apply(t.history,I);return P._ignoreSubscribers||O("PUSH"),G},t.history.replaceState=function(...I){const G=i.apply(t.history,I);return P._ignoreSubscribers||O("REPLACE"),G},P}function PO(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Wf(e,t){const n=PO(e),i=n.indexOf("#"),a=n.indexOf("?"),l=Lm();return{href:n,pathname:n.substring(0,i>0?a>0?Math.min(i,a):i:a>0?a:n.length),hash:i>-1?n.substring(i):"",search:a>-1?n.slice(a,i===-1?void 0:i):"",state:t||{[jo]:0,key:l,__TSR_key:l}}}function Lm(){return(Math.random()+1).toString(36).substring(7)}function zO(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function Ps(e,t){const n=t,i=e;return{fromLocation:n,toLocation:i,pathChanged:n?.pathname!==i.pathname,hrefChanged:n?.href!==i.href,hashChanged:n?.hash!==i.hash}}var BO=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=n=>n(),this.update=n=>{const i=this.options,a=this.basepath??i?.basepath??"/",l=this.basepath===void 0,c=i?.rewrite;if(this.options={...i,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=dO(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=LO()),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=Rc(1e3),h=this.buildRouteTree(),this.setRoutes(h)}if(!this.stores&&this.latestLocation){const h=this.getStoreConfig(this);this.batch=h.batch,this.stores=CO(FO(this.latestLocation),h),yO(this)}let u=!1;const p=this.options.basepath??"/",d=this.options.rewrite;if(l||a!==p||c!==d){this.basepath=p;const h=[],g=A_(p);g&&g!=="/"&&h.push(TO({basepath:p})),d&&h.push(d),this.rewrite=h.length===0?void 0:h.length===1?h[0]:RO(h),this.history&&this.updateLatestLocation(),u=!0}u&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=aO(this.routeTree,this.options.caseSensitive,(i,a)=>{i.init({originalIndex:a})});return this.options.routeMasks&&tO(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,i)=>{const a={eventType:n,fn:i};return this.subscribers.add(a),()=>{this.subscribers.delete(a)}},this.emit=n=>{this.subscribers.forEach(i=>{i.eventType===n.type&&i.fn(n)})},this.parseLocation=(n,i)=>{const a=({pathname:p,search:d,hash:h,href:g,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const S=this.options.parseSearch(d),C=this.options.stringifySearch(S);return{href:p+C+h,publicHref:p+C+h,pathname:Ql(p).path,external:!1,searchStr:C,search:Ea(i?.search,S),hash:Ql(h.slice(1)).path,state:Bo(i?.state,b)}}const y=new URL(g,this.origin),E=em(this.rewrite,y),_=this.options.parseSearch(E.search),x=this.options.stringifySearch(_);return E.search=x,{href:E.href.replace(E.origin,""),publicHref:g,pathname:Ql(E.pathname).path,external:!!this.rewrite&&E.origin!==this.origin,searchStr:x,search:Ea(i?.search,_),hash:Ql(E.hash.slice(1)).path,state:Bo(i?.state,b)}},l=a(n),{__tempLocation:c,__tempKey:u}=l.state;if(c&&(!u||u===this.tempLocationKey)){const p=a(c);return p.state.key=l.state.key,p.state.__TSR_key=l.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:l}}return l},this.resolvePathWithBase=(n,i)=>fO({base:n,to:i.includes("//")?Dm(i):i,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,i,a)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:i},a):this.matchRoutesInternal(n,i),this.getMatchedRoutes=n=>HO({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const i=this.getMatch(n);i&&(i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(n=>{this.cancelMatch(n)}),this.stores.matchesId.get().forEach(n=>{if(this.stores.pendingMatchStores.has(n))return;const i=this.stores.matchStores.get(n)?.get();i&&(i.status==="pending"||i.isFetching==="loader")&&this.cancelMatch(n)})},this.buildLocation=n=>{const i=(l={})=>{const c=l._fromLocation||this.pendingBuiltLocation||this.latestLocation,u=this.matchRoutesLightweight(c);l.from;const p=l.unsafeRelative==="path"?c.pathname:l.from??u.fullPath,d=l.to?`${l.to}`:void 0,h=u.search,g=Object.assign(Object.create(null),u.params),b=d?.charCodeAt(0)===47?"/":this.resolvePathWithBase(p,"."),y=d?this.resolvePathWithBase(b,d):b,E=l.params===!1||l.params===null?Object.create(null):(l.params??!0)===!0?g:Object.assign(g,zo(l.params,g)),_=this.routesByPath[Vi(y)];let x;if(_)x=this.getRouteBranch(_);else if(y.includes("$"))x=[];else{const X=this.getMatchedRoutes(y);x=X.matchedRoutes,this.options.notFoundRoute&&(!X.foundRoute||X.foundRoute.path!=="/"&&X.routeParams["**"])&&(x=[...x,this.options.notFoundRoute])}if(x.length&&__(E))for(const X of x){const $=X.options.params?.stringify??X.options.stringifyParams;if($)try{Object.assign(E,$(E))}catch{}}const S=n.leaveParams?y:Ql(zE({path:y,params:E,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let C=h;if(n._includeValidateSearch&&this.options.search?.strict){const X={};x.forEach($=>{if($.options.validateSearch)try{Object.assign(X,Uf($.options.validateSearch,{...X,...C}))}catch{}}),C=X}C=jO({search:C,dest:l,destRoutes:x,_includeValidateSearch:n._includeValidateSearch}),C=Ea(h,C);const k=this.options.stringifySearch(C),O=l.hash===!0?c.hash:l.hash?zo(l.hash,c.hash):void 0,N=O?`#${O}`:"";let R=l.state===!0?c.state:l.state?zo(l.state,c.state):{};R=Bo(c.state,R);const P=`${S}${k}${N}`;let I,G,U=!1;if(this.rewrite){const X=new URL(P,this.origin),$=N_(this.rewrite,X);I=X.href.replace(X.origin,""),$.origin!==this.origin?(G=$.href,U=!0):G=$.pathname+$.search+$.hash}else I=QA(P),G=I;return{publicHref:G,href:I,pathname:S,search:C,searchStr:k,state:R,hash:O??"",external:U,unmaskOnReload:l.unmaskOnReload}},a=(l={},c)=>{const u=i(l);let p=c?i(c):void 0;if(!p){const d=Object.create(null);if(this.options.routeMasks){const h=nO(u.pathname,this.processedTree);if(h){Object.assign(d,h.rawParams);const{from:g,params:b,...y}=h.route,E=b===!1||b===null?Object.create(null):(b??!0)===!0?d:Object.assign(d,zo(b,d));c={from:n.from,...y,params:E},p=i(c)}}}return p&&(u.maskedLocation=p),u};return n.mask?a(n,{from:n.from,...n.mask}):a(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:i,...a})=>{const l=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(h=>{a.state[h]=this.latestLocation.state[h]});const d=br(a.state,this.latestLocation.state);return p.forEach(h=>{delete a.state[h]}),d},c=Vi(this.latestLocation.href)===Vi(a.href);let u=this.commitLocationPromise;if(this.commitLocationPromise=Na(()=>{u?.resolve(),u=void 0}),c&&l())this.load();else{let{maskedLocation:p,hashScrollIntoView:d,...h}=a;p&&(h={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...h,search:h.searchStr,state:{...h.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(h.unmaskOnReload??this.options.unmaskOnReload??!1)&&(h.state.__tempKey=this.tempLocationKey)),h.state.__hashScrollIntoViewOptions=d??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[a.replace?"replace":"push"](h.publicHref,h.state,{ignoreBlocker:i})}return this.resetNextScroll=a.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:i,hashScrollIntoView:a,viewTransition:l,ignoreBlocker:c,href:u,...p}={})=>{if(u){const g=this.history.location.state.__TSR_index,b=Wf(u,{__TSR_index:n?g:g+1}),y=new URL(b.pathname,this.origin);p.to=em(this.rewrite,y).pathname,p.search=this.options.parseSearch(b.search),p.hash=b.hash.slice(1)}const d=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=d;const h=this.commitLocation({...d,viewTransition:l,replace:n,resetScroll:i,hashScrollIntoView:a,ignoreBlocker:c});return Promise.resolve().then(()=>{this.pendingBuiltLocation===d&&(this.pendingBuiltLocation=void 0)}),h},this.navigate=async({to:n,reloadDocument:i,href:a,publicHref:l,...c})=>{let u=!1;if(a)try{new URL(`${a}`),u=!0}catch{}if(u&&!i&&(i=!0),i){if(n!==void 0||!a){const d=this.buildLocation({to:n,...c});a=a??d.publicHref,l=l??d.publicHref}const p=!u&&l?l:a;if(Kf(p,this.protocolAllowlist))return Promise.resolve();if(!c.ignoreBlocker){const d=this.history.getBlockers?.()??[];for(const h of d)if(h?.blockerFn&&await h.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return c.replace?window.location.replace(p):window.location.href=p,Promise.resolve()}return this.buildAndCommitLocation({...c,href:a,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation),i=this.stores.cachedMatches.get().filter(a=>!n.some(l=>l.id===a.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(n),this.stores.setCached(i)})},this.load=async n=>{let i,a,l;const c=this.stores.resolvedLocation.get()??this.stores.location.get();for(l=new Promise(p=>{this.startTransition(async()=>{try{this.beforeLoad();const d=this.latestLocation,h=Ps(d,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...h}),this.emit({type:"onBeforeLoad",...h}),await $E({router:this,sync:n?.sync,forceStaleReload:c.href===d.href,matches:this.stores.pendingMatches.get(),location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let g=null,b=null,y=null,E=null;this.batch(()=>{const _=this.stores.pendingMatches.get(),x=_.length,S=this.stores.matches.get();g=x?S.filter(O=>!this.stores.pendingMatchStores.has(O.id)):null;const C=new Set;for(const O of this.stores.pendingMatchStores.values())O.routeId&&C.add(O.routeId);const k=new Set;for(const O of this.stores.matchStores.values())O.routeId&&k.add(O.routeId);b=x?S.filter(O=>!C.has(O.routeId)):null,y=x?_.filter(O=>!k.has(O.routeId)):null,E=x?_.filter(O=>k.has(O.routeId)):S,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),x&&(this.stores.setMatches(_),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...g.filter(O=>O.status!=="error"&&O.status!=="notFound"&&O.status!=="redirected")]),this.clearExpiredCache())});for(const[_,x]of[[b,"onLeave"],[y,"onEnter"],[E,"onStay"]])if(_)for(const S of _)this.looseRoutesById[S.routeId].options[x]?.(S)})})}})}catch(d){yr(d)?(i=d,this.navigate({...i.options,replace:!0,ignoreBlocker:!0})):Pn(d)&&(a=d);const h=i?i.status:a?404:this.stores.matches.get().some(g=>g.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(h),this.stores.redirect.set(i)})}this.latestLoadPromise===l&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),p()})}),this.latestLoadPromise=l,await l;this.latestLoadPromise&&l!==this.latestLoadPromise;)await this.latestLoadPromise;let u;this.hasNotFoundMatch()?u=404:this.stores.matches.get().some(p=>p.status==="error")&&(u=500),u!==void 0&&this.stores.statusCode.set(u)},this.startViewTransition=n=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let a;if(typeof i=="object"&&this.isViewTransitionTypesSupported){const l=this.latestLocation,c=this.stores.resolvedLocation.get(),u=typeof i.types=="function"?i.types(Ps(l,c)):i.types;if(u===!1){n();return}a={update:n,types:u}}else a=n;document.startViewTransition(a)}else n()},this.updateMatch=(n,i)=>{this.startTransition(()=>{const a=this.stores.pendingMatchStores.get(n);if(a){a.set(i);return}const l=this.stores.matchStores.get(n);if(l){l.set(i);return}const c=this.stores.cachedMatchStores.get(n);if(c){const u=i(c.get());u.status==="redirected"?this.stores.cachedMatchStores.delete(n)&&this.stores.cachedIds.set(p=>p.filter(d=>d!==n)):c.set(u)}})},this.getMatch=n=>this.stores.cachedMatchStores.get(n)?.get()??this.stores.pendingMatchStores.get(n)?.get()??this.stores.matchStores.get(n)?.get(),this.invalidate=n=>{const i=a=>n?.filter?.(a)??!0?{...a,invalid:!0,...n?.forcePending||a.status==="error"||a.status==="notFound"?{status:"pending",error:void 0}:void 0}:a;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(i)),this.stores.setCached(this.stores.cachedMatches.get().map(i)),this.stores.setPending(this.stores.pendingMatches.get().map(i))}),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const i=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const a=n.options._builtLocation??this.buildLocation(n.options),l=this.getParsedLocationHref(a);n.options.href=l,n.headers.set("Location",l)}else if(i)try{const a=new URL(i);if(this.origin&&a.origin===this.origin){const l=a.pathname+a.search+a.hash;n.options.href=l,n.headers.set("Location",l)}}catch{}if(n.options.href&&!n.options._builtLocation&&Kf(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=n?.filter;i!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(a=>!i(a))):this.stores.setCached([])},this.clearExpiredCache=()=>{const n=Date.now(),i=a=>{const l=this.looseRoutesById[a.routeId];if(!l.options.loader)return!0;const c=(a.preload?l.options.preloadGcTime??this.options.defaultPreloadGcTime:l.options.gcTime??this.options.defaultGcTime)??300*1e3;return a.status==="error"?!0:n-a.updatedAt>=c};this.clearCache({filter:i})},this.loadRouteChunk=Tc,this.preloadRoute=async n=>{const i=n._builtLocation??this.buildLocation(n);let a=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:n});const l=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),c=new Set([...l,...this.stores.cachedIds.get()]),u=a.filter(p=>!c.has(p.id));if(u.length){const p=this.stores.cachedMatches.get();this.stores.setCached([...p,...u])}try{return a=await $E({router:this,matches:a,location:i,preload:!0,updateMatch:(p,d)=>{l.has(p)?a=a.map(h=>h.id===p?d(h):h):this.updateMatch(p,d)}}),a}catch(p){if(yr(p))return p.options.reloadDocument?void 0:await this.preloadRoute({...p.options,_fromLocation:i});Pn(p)||console.error(p);return}},this.matchRoute=(n,i)=>{const a={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},l=this.buildLocation(a);if(i?.pending&&this.stores.status.get()!=="pending")return!1;const c=(i?.pending===void 0?!this.stores.isLoading.get():i.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),u=rO(l.pathname,i?.caseSensitive??!1,i?.fuzzy??!1,c.pathname,this.processedTree);return!u||n.params&&!br(u.rawParams,n.params,{partial:!0})?!1:i?.includeSearch??!0?br(c.search,l.search,{partial:!0})?u.rawParams:!1:u.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(n=>n.status==="notFound"||n.globalNotFound),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??SO,parseSearch:e.parseSearch??EO,protocolAllowlist:e.protocolAllowlist??KA}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}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=C_(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const n=this.getMatchedRoutes(e.pathname),{foundRoute:i,routeParams:a}=n;let{matchedRoutes:l}=n,c=!1;(i?i.path!=="/"&&a["**"]:Vi(e.pathname))&&(this.options.notFoundRoute?l=[...l,this.options.notFoundRoute]:c=!0);const u=c?$O(this.options.notFoundMode,l):void 0,p=new Array(l.length),d=new Map;for(const h of this.stores.matchStores.values())h.routeId&&d.set(h.routeId,h.get());for(let h=0;h<l.length;h++){const g=l[h],b=p[h-1];let y,E,_;{const $=b?.search??e.search,W=b?._strictSearch??void 0;try{const V=Uf(g.options.validateSearch,{...$})??void 0;y={...$,...V},E={...W,...V},_=void 0}catch(V){let H=V;if(V instanceof Zf||(H=new Zf(V.message,{cause:V})),t?.throwOnError)throw H;y=$,E={},_=H}}const x=g.options.loaderDeps?.({search:y})??"",S=x?JSON.stringify(x):"",{interpolatedPath:C,usedParams:k}=zE({path:g.fullPath,params:a,decoder:this.pathParamsDecoder,server:this.isServer}),O=g.id+C+S,N=this.getMatch(O),R=d.get(g.id),P=N?._strictParams??k;let I;if(!N)try{XE(g,P)}catch($){if(Pn($)||yr($)?I=$:I=new UO($.message,{cause:$}),t?.throwOnError)throw I}Object.assign(a,P);const G=R?"stay":"enter";let U;if(N)U={...N,cause:G,params:R?.params??a,_strictParams:P,search:Ea(R?R.search:N.search,y),_strictSearch:E};else{const $=g.options.loader||g.options.beforeLoad||g.lazyFn||P_(g)?"pending":"success";U={id:O,ssr:g.options.ssr,index:h,routeId:g.id,params:R?.params??a,_strictParams:P,pathname:C,updatedAt:Date.now(),search:R?Ea(R.search,y):y,_strictSearch:E,searchError:void 0,status:$,isFetching:!1,error:void 0,paramsError:I,__routeContext:void 0,_nonReactive:{loadPromise:Na()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:G,loaderDeps:R?Bo(R.loaderDeps,x):x,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:g.options.staticData||{},fullPath:g.fullPath}}t?.preload||(U.globalNotFound=u===g.id),U.searchError=_;const X=this.getParentContext(b);U.context={...X,...U.__routeContext,...U.__beforeLoadContext},p[h]=U}for(let h=0;h<p.length;h++){const g=p[h],b=this.looseRoutesById[g.routeId],y=this.getMatch(g.id),E=d.get(g.routeId);if(g.params=E?Ea(E.params,a):a,!y){const _=p[h-1],x=this.getParentContext(_);if(b.options.context){const S={deps:g.loaderDeps,params:g.params,context:x??{},location:e,navigate:C=>this.navigate({...C,_fromLocation:e}),buildLocation:this.buildLocation,cause:g.cause,abortController:g.abortController,preload:!!g.preload,matches:p,routeId:b.id};g.__routeContext=b.options.context(S)??void 0}g.context={...x,...g.__routeContext,...g.__beforeLoadContext}}}return p}matchRoutesLightweight(e){const{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),i=_c(t),a={...e.search};for(const d of t)try{Object.assign(a,Uf(d.options.validateSearch,a))}catch{}const l=_c(this.stores.matchesId.get()),c=l&&this.stores.matchStores.get(l)?.get(),u=c&&c.routeId===i.id&&c.pathname===e.pathname;let p;if(u)p=c.params;else{const d=Object.assign(Object.create(null),n);for(const h of t)try{XE(h,d)}catch{}p=d}return{matchedRoutes:t,fullPath:i.fullPath,search:a,params:p}}},Zf=class extends Error{},UO=class extends Error{};function FO(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Uf(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Zf("Async validation not supported");if(n.issues)throw new Zf(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 HO({pathname:e,routesById:t,processedTree:n}){const i=Object.create(null),a=Vi(e);let l;const c=iO(a,n,!0);return c&&(l=c.route,Object.assign(i,c.rawParams)),{matchedRoutes:c?.branch||[t.__root__],routeParams:i,foundRoute:l}}function jO({search:e,dest:t,destRoutes:n,_includeValidateSearch:i}){return GO(n)(e,t,i??!1)}function GO(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const a of e){if("search"in a.options)a.options.search?.middlewares&&t.middlewares.push(...a.options.search.middlewares);else if(a.options.preSearchFilters||a.options.postSearchFilters){const l=({search:c,next:u})=>{let p=c;"preSearchFilters"in a.options&&a.options.preSearchFilters&&(p=a.options.preSearchFilters.reduce((h,g)=>g(h),c));const d=u(p);return"postSearchFilters"in a.options&&a.options.postSearchFilters?a.options.postSearchFilters.reduce((h,g)=>g(h),d):d};t.middlewares.push(l)}if(a.options.validateSearch){const l=({search:c,next:u})=>{const p=u(c);if(!t._includeValidateSearch)return p;try{return{...p,...Uf(a.options.validateSearch,p)??void 0}}catch{return p}};t.middlewares.push(l)}}const n=({search:a})=>{const l=t.dest;return l.search?l.search===!0?a:zo(l.search,a):{}};t.middlewares.push(n);const i=(a,l,c)=>{if(a>=c.length)return l;const u=c[a];return u({search:l,next:d=>i(a+1,d,c)})};return function(l,c,u){return t.dest=c,t._includeValidateSearch=u,i(0,l,t.middlewares)}}function $O(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const i=t[n];if(i.children)return i.id}return Oa}function XE(e,t){const n=e.options.params?.parse??e.options.parseParams;if(n){const i=n(t);if(i===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(t,i)}}const fi=Symbol.for("TSR_DEFERRED_PROMISE");function qO(e,t){const n=e;return n[fi]||(n[fi]={status:"pending"},n.then(i=>{n[fi].status="success",n[fi].data=i}).catch(i=>{n[fi].status="error",n[fi].error={data:zO(i),__isServerError:!0}})),n}const VO="Error preloading route! ☝️";function WE(e,t){if(e)return typeof e=="string"?e:e[t]}function YO(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}function KO(e){if(e.tag!=="link")return;const t=e.attrs?.rel,n=e.attrs?.href;if(typeof n=="string"&&(typeof t=="string"?t.split(/\s+/):[]).includes("stylesheet"))return n}function XO(e,t){const n=KO(t);return!!n&&e?.inlineCss?.styles[n]!==void 0}var z_=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=Oa:this.parentRoute||vr();let a=i?Oa:n?.path;a&&a!=="/"&&(a=k_(a));const l=n?.id||a;let c=i?Oa:zf([this.parentRoute.id==="__root__"?"":this.parentRoute.id,l]);a==="__root__"&&(a="/"),c!=="__root__"&&(c=zf(["/",c]));const u=c==="__root__"?"/":zf([this.parentRoute.fullPath,a]);this._path=a,this._id=c,this._fullPath=u,this._to=Vi(u)},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=>M_({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.")}},WO=class extends z_{constructor(e){super(e)}};function ZO(e){if(typeof document<"u"&&document.querySelector){const t=e.stores.location.get(),n=t.state.__hashScrollIntoViewOptions??!0;if(n&&t.hash!==""){const i=document.getElementById(t.hash);i&&i.scrollIntoView(n)}}}var QO=(e=>(e[e.AggregateError=1]="AggregateError",e[e.ArrowFunction=2]="ArrowFunction",e[e.ErrorPrototypeStack=4]="ErrorPrototypeStack",e[e.ObjectAssign=8]="ObjectAssign",e[e.BigIntTypedArray=16]="BigIntTypedArray",e[e.RegExp=32]="RegExp",e))(QO||{}),Yi=Symbol.asyncIterator,B_=Symbol.hasInstance,zs=Symbol.isConcatSpreadable,Ki=Symbol.iterator,U_=Symbol.match,F_=Symbol.matchAll,H_=Symbol.replace,j_=Symbol.search,G_=Symbol.species,$_=Symbol.split,q_=Symbol.toPrimitive,Bs=Symbol.toStringTag,V_=Symbol.unscopables,Y_={[Yi]:0,[B_]:1,[zs]:2,[Ki]:3,[U_]:4,[F_]:5,[H_]:6,[j_]:7,[G_]:8,[$_]:9,[q_]:10,[Bs]:11,[V_]:12},JO={0:Yi,1:B_,2:zs,3:Ki,4:U_,5:F_,6:H_,7:j_,8:G_,9:$_,10:q_,11:Bs,12:V_},j=void 0,eM={2:!0,3:!1,1:j,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:Number.NaN},tM={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},nM={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function It(e,t,n,i,a,l,c,u,p,d,h,g){return{t:e,i:t,s:n,c:i,m:a,p:l,e:c,a:u,f:p,b:d,o:h,l:g}}function Vo(e){return It(2,j,e,j,j,j,j,j,j,j,j,j)}var K_=Vo(2),X_=Vo(3),rM=Vo(1),iM=Vo(0),oM=Vo(4),aM=Vo(5),sM=Vo(6),lM=Vo(7);function cM(e){switch(e){case'"':return'\\"';case"\\":return"\\\\";case`
11
+ `:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case" ":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return j}}function Yo(e){let t="",n=0,i;for(let a=0,l=e.length;a<l;a++)i=cM(e[a]),i&&(t+=e.slice(n,a)+i,n=a+1);return n===0?t=e:t+=e.slice(n),t}function uM(e){switch(e){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return`
12
+ `;case"\\r":return"\r";case"\\b":return"\b";case"\\t":return" ";case"\\f":return"\f";case"\\x3C":return"<";case"\\u2028":return"\u2028";case"\\u2029":return"\u2029";default:return e}}function Ko(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,uM)}var ff="__SEROVAL_REFS__",W_=new Map,Ls=new Map;function Z_(e){return W_.has(e)}function fM(e){return Ls.has(e)}function dM(e){if(Z_(e))return W_.get(e);throw new GM(e)}function pM(e){if(fM(e))return Ls.get(e);throw new $M(e)}typeof globalThis<"u"?Object.defineProperty(globalThis,ff,{value:Ls,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,ff,{value:Ls,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,ff,{value:Ls,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,ff,{value:Ls,configurable:!0,writable:!1,enumerable:!1});function Pm(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function hM(e){let t=tM[Pm(e)];return e.name!==t?{name:e.name}:e.constructor.name!==t?{name:e.constructor.name}:{}}function Q_(e,t){let n=hM(e),i=Object.getOwnPropertyNames(e);for(let a=0,l=i.length,c;a<l;a++)c=i[a],c!=="name"&&c!=="message"&&(c==="stack"?t&4&&(n=n||{},n[c]=e[c]):(n=n||{},n[c]=e[c]));return n}function J_(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:Object.isExtensible(e)?0:1}function gM(e){switch(e){case Number.POSITIVE_INFINITY:return aM;case Number.NEGATIVE_INFINITY:return sM}return e!==e?lM:Object.is(e,-0)?oM:It(0,j,e,j,j,j,j,j,j,j,j,j)}function ew(e){return It(1,j,Yo(e),j,j,j,j,j,j,j,j,j)}function mM(e){return It(3,j,""+e,j,j,j,j,j,j,j,j,j)}function bM(e){return It(4,e,j,j,j,j,j,j,j,j,j,j)}function yM(e,t){let n=t.valueOf();return It(5,e,n!==n?"":t.toISOString(),j,j,j,j,j,j,j,j,j)}function vM(e,t){return It(6,e,j,Yo(t.source),t.flags,j,j,j,j,j,j,j)}function EM(e,t){return It(17,e,Y_[t],j,j,j,j,j,j,j,j,j)}function SM(e,t){return It(18,e,Yo(dM(t)),j,j,j,j,j,j,j,j,j)}function xM(e,t,n){return It(25,e,n,Yo(t),j,j,j,j,j,j,j,j)}function _M(e,t,n){return It(9,e,j,j,j,j,j,n,j,j,J_(t),j)}function wM(e,t){return It(21,e,j,j,j,j,j,j,t,j,j,j)}function RM(e,t,n){return It(15,e,j,t.constructor.name,j,j,j,j,n,t.byteOffset,j,t.length)}function TM(e,t,n){return It(16,e,j,t.constructor.name,j,j,j,j,n,t.byteOffset,j,t.byteLength)}function CM(e,t,n){return It(20,e,j,j,j,j,j,j,n,t.byteOffset,j,t.byteLength)}function kM(e,t,n){return It(13,e,Pm(t),j,Yo(t.message),n,j,j,j,j,j,j)}function AM(e,t,n){return It(14,e,Pm(t),j,Yo(t.message),n,j,j,j,j,j,j)}function OM(e,t){return It(7,e,j,j,j,j,j,t,j,j,j,j)}function MM(e,t){return It(28,j,j,j,j,j,j,[e,t],j,j,j,j)}function NM(e,t){return It(30,j,j,j,j,j,j,[e,t],j,j,j,j)}function IM(e,t,n){return It(31,e,j,j,j,j,j,n,t,j,j,j)}function DM(e,t){return It(32,e,j,j,j,j,j,j,t,j,j,j)}function LM(e,t){return It(33,e,j,j,j,j,j,j,t,j,j,j)}function PM(e,t){return It(34,e,j,j,j,j,j,j,t,j,j,j)}function zM(e,t,n,i){return It(35,e,n,j,j,j,j,t,j,j,j,i)}var BM={parsing:1,serialization:2,deserialization:3};function UM(e){return`Seroval Error (step: ${BM[e]})`}var FM=(e,t)=>UM(e),tw=class extends Error{constructor(e,t){super(FM(e)),this.cause=t}},ZE=class extends tw{constructor(e){super("parsing",e)}},HM=class extends tw{constructor(e){super("deserialization",e)}};function Zi(e){return`Seroval Error (specific: ${e})`}var wd=class extends Error{constructor(t){super(Zi(1)),this.value=t}},nw=class extends Error{constructor(e){super(Zi(2))}},jM=class extends Error{constructor(e){super(Zi(3))}},Ic=class extends Error{constructor(e){super(Zi(4))}},GM=class extends Error{constructor(e){super(Zi(5)),this.value=e}},$M=class extends Error{constructor(e){super(Zi(6))}},qM=class extends Error{constructor(e){super(Zi(7))}},Qi=class extends Error{constructor(e){super(Zi(8))}},VM=class extends Error{constructor(e){super(Zi(9))}},YM=class{constructor(e,t){this.value=e,this.replacement=t}},Rd=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e},KM=(e,t)=>{e.s(t),e.p.s=1,e.p.v=t},XM=(e,t)=>{e.f(t),e.p.s=2,e.p.v=t};Rd.toString();KM.toString();XM.toString();var WM=()=>{let e=[],t=[],n=!0,i=!1,a=0,l=(p,d,h)=>{for(h=0;h<a;h++)t[h]&&t[h][d](p)},c=(p,d,h,g)=>{for(d=0,h=e.length;d<h;d++)g=e[d],!n&&d===h-1?p[i?"return":"throw"](g):p.next(g)},u=(p,d)=>(n&&(d=a++,t[d]=p),c(p),()=>{n&&(t[d]=t[a],t[a--]=void 0)});return{__SEROVAL_STREAM__:!0,on:p=>u(p),next:p=>{n&&(e.push(p),l(p,"next"))},throw:p=>{n&&(e.push(p),l(p,"throw"),n=!1,i=!1,t.length=0)},return:p=>{n&&(e.push(p),l(p,"return"),n=!1,i=!0,t.length=0)}}},ZM=e=>t=>()=>{let n=0,i={[e]:()=>i,next:()=>{if(n>t.d)return{done:!0,value:void 0};let a=n++,l=t.v[a];if(a===t.t)throw l;return{done:a===t.d,value:l}}};return i},QM=(e,t)=>n=>()=>{let i=0,a=-1,l=!1,c=[],u=[],p=(h=0,g=u.length)=>{for(;h<g;h++)u[h].s({done:!0,value:void 0})};n.on({next:h=>{let g=u.shift();g&&g.s({done:!1,value:h}),c.push(h)},throw:h=>{let g=u.shift();g&&g.f(h),p(),a=c.length,l=!0,c.push(h)},return:h=>{let g=u.shift();g&&g.s({done:!0,value:h}),p(),a=c.length,c.push(h)}});let d={[e]:()=>d,next:()=>{if(a===-1){let b=i++;if(b>=c.length){let y=t();return u.push(y),y.p}return{done:!1,value:c[b]}}if(i>a)return{done:!0,value:void 0};let h=i++,g=c[h];if(h!==a)return{done:!1,value:g};if(l)throw g;return{done:!0,value:g}}};return d},rw=e=>{let t=atob(e),n=t.length,i=new Uint8Array(n);for(let a=0;a<n;a++)i[a]=t.charCodeAt(a);return i.buffer};rw.toString();function JM(e){return"__SEROVAL_SEQUENCE__"in e}function iw(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function eN(e){let t=[],n=-1,i=-1,a=e[Ki]();for(;;)try{let l=a.next();if(t.push(l.value),l.done){i=t.length-1;break}}catch(l){n=t.length,t.push(l)}return iw(t,n,i)}var tN=ZM(Ki);function nN(e){return tN(e)}var rN={},iN={},oN={0:{},1:{},2:{},3:{},4:{},5:{}};function aN(e){return"__SEROVAL_STREAM__"in e}function za(){return WM()}function sN(e){let t=za(),n=e[Yi]();async function i(){try{let a=await n.next();a.done?t.return(a.value):(t.next(a.value),await i())}catch(a){t.throw(a)}}return i().catch(()=>{}),t}var lN=QM(Yi,Rd);function cN(e){return lN(e)}async function uN(e){try{return[1,await e]}catch(t){return[0,t]}}function fN(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:63^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function Ff(e,t){e.marked.add(t)}function dN(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function Td(e,t){let n=e.refs.get(t);return n!=null?(Ff(e,n),{type:1,value:bM(n)}):{type:0,value:dN(e,t)}}function zm(e,t){let n=Td(e,t);return n.type===1?n:Z_(t)?{type:2,value:SM(n.value,t)}:n}function Ra(e,t){let n=zm(e,t);if(n.type!==0)return n.value;if(t in Y_)return EM(n.value,t);throw new wd(t)}function Cd(e,t){let n=Td(e,oN[t]);return n.type===1?n.value:It(26,n.value,t,j,j,j,j,j,j,j,j,j)}function pN(e){let t=Td(e,rN);return t.type===1?t.value:It(27,t.value,j,j,j,j,j,j,Ra(e,Ki),j,j,j)}function hN(e){let t=Td(e,iN);return t.type===1?t.value:It(29,t.value,j,j,j,j,j,[Cd(e,1),Ra(e,Yi)],j,j,j,j)}function gN(e,t,n,i){return It(n?11:10,e,j,j,j,i,j,j,j,j,J_(t),j)}function mN(e,t,n,i){return It(8,t,j,j,j,j,{k:n,v:i},j,Cd(e,0),j,j,j)}function bN(e,t,n){let i=new Uint8Array(n),a="";for(let l=0,c=i.length;l<c;l++)a+=String.fromCharCode(i[l]);return It(19,t,Yo(btoa(a)),j,j,j,j,j,Cd(e,5),j,j,j)}function yN(e,t){return{base:fN(e,t),child:void 0}}var vN=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return In(this._p,this.depth,e)}};async function EN(e,t,n){let i=[];for(let a=0,l=n.length;a<l;a++)a in n?i[a]=await In(e,t,n[a]):i[a]=0;return i}async function SN(e,t,n,i){return _M(n,i,await EN(e,t,i))}async function Bm(e,t,n){let i=Object.entries(n),a=[],l=[];for(let c=0,u=i.length;c<u;c++)a.push(Yo(i[c][0])),l.push(await In(e,t,i[c][1]));return Ki in n&&(a.push(Ra(e.base,Ki)),l.push(MM(pN(e.base),await In(e,t,eN(n))))),Yi in n&&(a.push(Ra(e.base,Yi)),l.push(NM(hN(e.base),await In(e,t,sN(n))))),Bs in n&&(a.push(Ra(e.base,Bs)),l.push(ew(n[Bs]))),zs in n&&(a.push(Ra(e.base,zs)),l.push(n[zs]?K_:X_)),{k:a,v:l}}async function lg(e,t,n,i,a){return gN(n,i,a,await Bm(e,t,i))}async function xN(e,t,n,i){return wM(n,await In(e,t,i.valueOf()))}async function _N(e,t,n,i){return RM(n,i,await In(e,t,i.buffer))}async function wN(e,t,n,i){return TM(n,i,await In(e,t,i.buffer))}async function RN(e,t,n,i){return CM(n,i,await In(e,t,i.buffer))}async function QE(e,t,n,i){let a=Q_(i,e.base.features);return kM(n,i,a?await Bm(e,t,a):j)}async function TN(e,t,n,i){let a=Q_(i,e.base.features);return AM(n,i,a?await Bm(e,t,a):j)}async function CN(e,t,n,i){let a=[],l=[];for(let[c,u]of i.entries())a.push(await In(e,t,c)),l.push(await In(e,t,u));return mN(e.base,n,a,l)}async function kN(e,t,n,i){let a=[];for(let l of i.keys())a.push(await In(e,t,l));return OM(n,a)}async function ow(e,t,n,i){let a=e.base.plugins;if(a)for(let l=0,c=a.length;l<c;l++){let u=a[l];if(u.parse.async&&u.test(i))return xM(n,u.tag,await u.parse.async(i,new vN(e,t),{id:n}))}return j}async function AN(e,t,n,i){let[a,l]=await uN(i);return It(12,n,a,j,j,j,j,j,await In(e,t,l),j,j,j)}function ON(e,t,n,i,a){let l=[],c=n.on({next:u=>{Ff(this.base,t),In(this,e,u).then(p=>{l.push(DM(t,p))},p=>{a(p),c()})},throw:u=>{Ff(this.base,t),In(this,e,u).then(p=>{l.push(LM(t,p)),i(l),c()},p=>{a(p),c()})},return:u=>{Ff(this.base,t),In(this,e,u).then(p=>{l.push(PM(t,p)),i(l),c()},p=>{a(p),c()})}})}async function MN(e,t,n,i){return IM(n,Cd(e.base,4),await new Promise(ON.bind(e,t,n,i)))}async function NN(e,t,n,i){let a=[];for(let l=0,c=i.v.length;l<c;l++)a[l]=await In(e,t,i.v[l]);return zM(n,a,i.t,i.d)}async function IN(e,t,n,i){if(Array.isArray(i))return SN(e,t,n,i);if(aN(i))return MN(e,t,n,i);if(JM(i))return NN(e,t,n,i);let a=i.constructor;if(a===YM)return In(e,t,i.replacement);let l=await ow(e,t,n,i);if(l)return l;switch(a){case Object:return lg(e,t,n,i,!1);case j:return lg(e,t,n,i,!0);case Date:return yM(n,i);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return QE(e,t,n,i);case Number:case Boolean:case String:case BigInt:return xN(e,t,n,i);case ArrayBuffer:return bN(e.base,n,i);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return _N(e,t,n,i);case DataView:return RN(e,t,n,i);case Map:return CN(e,t,n,i);case Set:return kN(e,t,n,i)}if(a===Promise||i instanceof Promise)return AN(e,t,n,i);let c=e.base.features;if(c&32&&a===RegExp)return vM(n,i);if(c&16)switch(a){case BigInt64Array:case BigUint64Array:return wN(e,t,n,i)}if(c&1&&typeof AggregateError<"u"&&(a===AggregateError||i instanceof AggregateError))return TN(e,t,n,i);if(i instanceof Error)return QE(e,t,n,i);if(Ki in i||Yi in i)return lg(e,t,n,i,!!a);throw new wd(i)}async function DN(e,t,n){let i=zm(e.base,n);if(i.type!==0)return i.value;let a=await ow(e,t,i.value,n);if(a)return a;throw new wd(n)}async function In(e,t,n){switch(typeof n){case"boolean":return n?K_:X_;case"undefined":return rM;case"string":return ew(n);case"number":return gM(n);case"bigint":return mM(n);case"object":{if(n){let i=zm(e.base,n);return i.type===0?await IN(e,t+1,i.value,n):i.value}return iM}case"symbol":return Ra(e.base,n);case"function":return DN(e,t,n);default:throw new wd(n)}}async function LN(e,t){try{return await In(e,0,t)}catch(n){throw n instanceof ZE?n:new ZE(n)}}var PN=(e=>(e[e.Vanilla=1]="Vanilla",e[e.Cross=2]="Cross",e))(PN||{});function aw(e,t){for(let n=0,i=t.length;n<i;n++){let a=t[n];e.has(a)||(e.add(a),a.extends&&aw(e,a.extends))}}function sw(e){if(e){let t=new Set;return aw(t,e),[...t]}}function zN(e){switch(e){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new qM(e)}}var BN=1e6,UN=1e4,FN=2e4;function lw(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var HN=1e3;function jN(e,t){var n;let i=t.refs||new Map;return"types"in i||Object.assign(i,{types:new Map}),{mode:e,plugins:t.plugins,refs:i,features:(n=t.features)!=null?n:63^(t.disabledFeatures||0),depthLimit:t.depthLimit||HN}}function GN(e){return{mode:2,base:jN(2,e),child:j}}var $N=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return Kt(this._p,this.depth,e)}};function cw(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new Qi({t:4,i:t});if(e.refs.has(t))throw new Error("Conflicted ref id: "+t)}function qN(e,t,n){return cw(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function VN(e,t,n){return cw(e.base,t),e.base.refs.set(t,n),n}function Dn(e,t,n){return e.mode===1?qN(e,t,n):VN(e,t,n)}function nm(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new Qi(e)}function YN(e,t){return Dn(e,t.i,pM(Ko(t.s)))}function KN(e,t,n){let i=n.a,a=i.length,l=Dn(e,n.i,new Array(a));for(let c=0,u;c<a;c++)u=i[c],u&&(l[c]=Kt(e,t,u));return lw(l,n.o),l}function XN(e){switch(e){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function WN(e){switch(e){case Yi:case zs:case Bs:case Ki:return!0;default:return!1}}function JE(e,t,n){XN(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function ZN(e,t,n,i,a){if(typeof i=="string")JE(n,Ko(i),Kt(e,t,a));else{let l=Kt(e,t,i);switch(typeof l){case"string":JE(n,l,Kt(e,t,a));break;case"symbol":WN(l)&&(n[l]=Kt(e,t,a));break;default:throw new Qi(i)}}}function uw(e,t,n){e.base.refs.types.set(t,n)}function Dc(e,t,n,i){if(e.base.refs.types.get(n)!==i)throw new Qi(t)}function fw(e,t,n,i){let a=n.k;if(a.length>0)for(let l=0,c=n.v,u=a.length;l<u;l++)ZN(e,t,i,a[l],c[l]);return i}function QN(e,t,n){let i=Dn(e,n.i,n.t===10?{}:Object.create(null));return fw(e,t,n.p,i),lw(i,n.o),i}function JN(e,t){return Dn(e,t.i,new Date(t.s))}function eI(e,t){if(e.base.features&32){let n=Ko(t.c);if(n.length>FN)throw new Qi(t);return Dn(e,t.i,new RegExp(n,t.m))}throw new nw(t)}function tI(e,t,n){let i=Dn(e,n.i,new Set);for(let a=0,l=n.a,c=l.length;a<c;a++)i.add(Kt(e,t,l[a]));return i}function nI(e,t,n){let i=Dn(e,n.i,new Map);for(let a=0,l=n.e.k,c=n.e.v,u=l.length;a<u;a++)i.set(Kt(e,t,l[a]),Kt(e,t,c[a]));return i}function rI(e,t){if(t.s.length>BN)throw new Qi(t);return Dn(e,t.i,rw(Ko(t.s)))}function iI(e,t,n){var i;let a=zN(n.c),l=Kt(e,t,n.f),c=(i=n.b)!=null?i:0;if(c<0||c>l.byteLength)throw new Qi(n);return Dn(e,n.i,new a(l,c,n.l))}function oI(e,t,n){var i;let a=Kt(e,t,n.f),l=(i=n.b)!=null?i:0;if(l<0||l>a.byteLength)throw new Qi(n);return Dn(e,n.i,new DataView(a,l,n.l))}function dw(e,t,n,i){if(n.p){let a=fw(e,t,n.p,{});Object.defineProperties(i,Object.getOwnPropertyDescriptors(a))}return i}function aI(e,t,n){let i=Dn(e,n.i,new AggregateError([],Ko(n.m)));return dw(e,t,n,i)}function sI(e,t,n){let i=nm(n,nM,n.s),a=Dn(e,n.i,new i(Ko(n.m)));return dw(e,t,n,a)}function lI(e,t,n){let i=Rd(),a=Dn(e,n.i,i.p),l=Kt(e,t,n.f);return n.s?i.s(l):i.f(l),a}function cI(e,t,n){return Dn(e,n.i,Object(Kt(e,t,n.f)))}function uI(e,t,n){let i=e.base.plugins;if(i){let a=Ko(n.c);for(let l=0,c=i.length;l<c;l++){let u=i[l];if(u.tag===a)return Dn(e,n.i,u.deserialize(n.s,new $N(e,t),{id:n.i}))}}throw new jM(n.c)}function fI(e,t){let n=Dn(e,t.i,Dn(e,t.s,Rd()).p);return uw(e,t.s,22),n}function dI(e,t,n){let i=e.base.refs.get(n.i);if(i)return Dc(e,n,n.i,22),i.s(Kt(e,t,n.a[1])),j;throw new Ic("Promise")}function pI(e,t,n){let i=e.base.refs.get(n.i);if(i)return Dc(e,n,n.i,22),i.f(Kt(e,t,n.a[1])),j;throw new Ic("Promise")}function hI(e,t,n){Kt(e,t,n.a[0]);let i=Kt(e,t,n.a[1]);return nN(i)}function gI(e,t,n){Kt(e,t,n.a[0]);let i=Kt(e,t,n.a[1]);return cN(i)}function mI(e,t,n){let i=Dn(e,n.i,za());uw(e,n.i,31);let a=n.a,l=a.length;if(l)for(let c=0;c<l;c++)Kt(e,t,a[c]);return i}function bI(e,t,n){let i=e.base.refs.get(n.i);if(i)return Dc(e,n,n.i,31),i.next(Kt(e,t,n.f)),j;throw new Ic("Stream")}function yI(e,t,n){let i=e.base.refs.get(n.i);if(i)return Dc(e,n,n.i,31),i.throw(Kt(e,t,n.f)),j;throw new Ic("Stream")}function vI(e,t,n){let i=e.base.refs.get(n.i);if(i)return Dc(e,n,n.i,31),i.return(Kt(e,t,n.f)),j;throw new Ic("Stream")}function EI(e,t,n){return Kt(e,t,n.f),j}function SI(e,t,n){return Kt(e,t,n.a[1]),j}function xI(e,t,n){let i=Dn(e,n.i,iw([],n.s,n.l));for(let a=0,l=n.a.length;a<l;a++)i.v[a]=Kt(e,t,n.a[a]);return i}function Kt(e,t,n){if(t>e.base.depthLimit)throw new VM(e.base.depthLimit);switch(t+=1,n.t){case 2:return nm(n,eM,n.s);case 0:return Number(n.s);case 1:return Ko(String(n.s));case 3:if(String(n.s).length>UN)throw new Qi(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return YN(e,n);case 9:return KN(e,t,n);case 10:case 11:return QN(e,t,n);case 5:return JN(e,n);case 6:return eI(e,n);case 7:return tI(e,t,n);case 8:return nI(e,t,n);case 19:return rI(e,n);case 16:case 15:return iI(e,t,n);case 20:return oI(e,t,n);case 14:return aI(e,t,n);case 13:return sI(e,t,n);case 12:return lI(e,t,n);case 17:return nm(n,JO,n.s);case 21:return cI(e,t,n);case 25:return uI(e,t,n);case 22:return fI(e,n);case 23:return dI(e,t,n);case 24:return pI(e,t,n);case 28:return hI(e,t,n);case 30:return gI(e,t,n);case 31:return mI(e,t,n);case 32:return bI(e,t,n);case 33:return yI(e,t,n);case 34:return vI(e,t,n);case 27:return EI(e,t,n);case 29:return SI(e,t,n);case 35:return xI(e,t,n);default:throw new nw(n)}}function _I(e,t){try{return Kt(e,0,t)}catch(n){throw new HM(n)}}var wI=()=>T;wI.toString();function eS(e,t){let n=sw(t.plugins),i=GN({plugins:n,refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit});return _I(i,e)}async function RI(e,t={}){let n=sw(t.plugins),i=yN(1,{plugins:n,disabledFeatures:t.disabledFeatures});return{t:await LN(i,e),f:i.base.features,m:Array.from(i.base.marked)}}function TI(e){return{tag:"$TSR/t/"+e.key,test:e.test,parse:{sync(t,n,i){return{v:n.parse(e.toSerializable(t))}},async async(t,n,i){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,i){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,i){return e.fromSerializable(n.deserialize(t.v))}}}var CI=class{constructor(e,t){this.stream=e,this.hint=t?.hint??"binary"}};const Qf=globalThis.Buffer,pw=!!Qf&&typeof Qf.from=="function";function hw(e){if(e.length===0)return"";if(pw)return Qf.from(e).toString("base64");const t=32768,n=[];for(let i=0;i<e.length;i+=t){const a=e.subarray(i,i+t);n.push(String.fromCharCode.apply(null,a))}return btoa(n.join(""))}function gw(e){if(e.length===0)return new Uint8Array(0);if(pw){const i=Qf.from(e,"base64");return new Uint8Array(i.buffer,i.byteOffset,i.byteLength)}const t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}const tc=Object.create(null),nc=Object.create(null),kI=e=>new ReadableStream({start(t){e.on({next(n){try{t.enqueue(gw(n))}catch{}},throw(n){t.error(n)},return(){try{t.close()}catch{}}})}}),AI=new TextEncoder,OI=e=>new ReadableStream({start(t){e.on({next(n){try{typeof n=="string"?t.enqueue(AI.encode(n)):t.enqueue(gw(n.$b64))}catch{}},throw(n){t.error(n)},return(){try{t.close()}catch{}}})}}),MI="(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))",NI="(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})";function tS(e){const t=za(),n=e.getReader();return(async()=>{try{for(;;){const{done:i,value:a}=await n.read();if(i){t.return(void 0);break}t.next(hw(a))}}catch(i){t.throw(i)}finally{n.releaseLock()}})(),t}function nS(e){const t=za(),n=e.getReader(),i=new TextDecoder("utf-8",{fatal:!0});return(async()=>{try{for(;;){const{done:a,value:l}=await n.read();if(a){try{const c=i.decode();c.length>0&&t.next(c)}catch{}t.return(void 0);break}try{const c=i.decode(l,{stream:!0});c.length>0&&t.next(c)}catch{t.next({$b64:hw(l)})}}}catch(a){t.throw(a)}finally{n.releaseLock()}})(),t}const II={tag:"tss/RawStream",extends:[{tag:"tss/RawStreamFactory",test(e){return e===tc},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return MI},deserialize(e,t,n){return tc}},{tag:"tss/RawStreamFactoryText",test(e){return e===nc},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return NI},deserialize(e,t,n){return nc}}],test(e){return e instanceof CI},parse:{sync(e,t,n){const i=e.hint==="text"?nc:tc;return{hint:t.parse(e.hint),factory:t.parse(i),stream:t.parse(za())}},async async(e,t,n){const i=e.hint==="text"?nc:tc,a=e.hint==="text"?nS(e.stream):tS(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(i),stream:await t.parse(a)}},stream(e,t,n){const i=e.hint==="text"?nc:tc,a=e.hint==="text"?nS(e.stream):tS(e.stream);return{hint:t.parse(e.hint),factory:t.parse(i),stream:t.parse(a)}}},serialize(e,t,n){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t,n){const i=t.deserialize(e.stream);return t.deserialize(e.hint)==="text"?OI(i):kI(i)}};function DI(e){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize(){throw new Error("RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.")},deserialize(t,n,i){return e(typeof n?.deserialize=="function"?n.deserialize(t.streamId):t.streamId)}}}const LI={tag:"$TSR/Error",test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return"new Error("+t.serialize(e.message)+")"},deserialize(e,t){return new Error(t.deserialize(e.message))}};var Po={},mw=e=>new ReadableStream({start:t=>{e.on({next:n=>{try{t.enqueue(n)}catch{}},throw:n=>{t.error(n)},return:()=>{try{t.close()}catch{}}})}}),PI={tag:"seroval-plugins/web/ReadableStreamFactory",test(e){return e===Po},parse:{sync(){return Po},async async(){return await Promise.resolve(Po)},stream(){return Po}},serialize(){return mw.toString()},deserialize(){return Po}};function rS(e){let t=za(),n=e.getReader();async function i(){try{let a=await n.read();a.done?t.return(a.value):(t.next(a.value),await i())}catch(a){t.throw(a)}}return i().catch(()=>{}),t}var zI={tag:"seroval/plugins/web/ReadableStream",extends:[PI],test(e){return typeof ReadableStream>"u"?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(Po),stream:t.parse(za())}},async async(e,t){return{factory:await t.parse(Po),stream:await t.parse(rS(e))}},stream(e,t){return{factory:t.parse(Po),stream:t.parse(rS(e))}}},serialize(e,t){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t){let n=t.deserialize(e.stream);return mw(n)}},BI=zI;const UI=[LI,II,BI];function FI(){return[...E_()?.serializationAdapters?.map(TI)??[],...UI]}var iS=new TextDecoder,HI=new Uint8Array(0),oS=16*1024*1024,aS=32*1024*1024,sS=1024,lS=1e5;function jI(e){const t=new Map,n=new Map,i=new Set;let a=!1,l=null,c=0,u;const p=new ReadableStream({start(g){u=g},cancel(){a=!0;try{l?.cancel()}catch{}t.forEach(g=>{try{g.error(new Error("Framed response cancelled"))}catch{}}),t.clear(),n.clear(),i.clear()}});function d(g){const b=n.get(g);if(b)return b;if(i.has(g))return new ReadableStream({start(E){E.close()}});if(n.size>=sS)throw new Error(`Too many raw streams in framed response (max ${sS})`);const y=new ReadableStream({start(E){t.set(g,E)},cancel(){i.add(g),t.delete(g),n.delete(g)}});return n.set(g,y),y}function h(g){return d(g),t.get(g)}return(async()=>{const g=e.getReader();l=g;const b=[];let y=0;function E(){if(y<9)return null;const x=b[0];if(x.length>=9)return{type:x[0],streamId:(x[1]<<24|x[2]<<16|x[3]<<8|x[4])>>>0,length:(x[5]<<24|x[6]<<16|x[7]<<8|x[8])>>>0};const S=new Uint8Array(9);let C=0,k=9;for(let O=0;O<b.length&&k>0;O++){const N=b[O],R=Math.min(N.length,k);S.set(N.subarray(0,R),C),C+=R,k-=R}return{type:S[0],streamId:(S[1]<<24|S[2]<<16|S[3]<<8|S[4])>>>0,length:(S[5]<<24|S[6]<<16|S[7]<<8|S[8])>>>0}}function _(x){if(x===0)return HI;const S=new Uint8Array(x);let C=0,k=x;for(;k>0&&b.length>0;){const O=b[0];if(!O)break;const N=Math.min(O.length,k);S.set(O.subarray(0,N),C),C+=N,k-=N,N===O.length?b.shift():b[0]=O.subarray(N)}return y-=x,S}try{for(;;){const{done:x,value:S}=await g.read();if(a||x)break;if(S){if(y+S.length>aS)throw new Error(`Framed response buffer exceeded ${aS} bytes`);for(b.push(S),y+=S.length;;){const C=E();if(!C)break;const{type:k,streamId:O,length:N}=C;if(k!==ji.JSON&&k!==ji.CHUNK&&k!==ji.END&&k!==ji.ERROR)throw new Error(`Unknown frame type: ${k}`);if(k===ji.JSON){if(O!==0)throw new Error("Invalid JSON frame streamId (expected 0)")}else if(O===0)throw new Error("Invalid raw frame streamId (expected non-zero)");if(N>oS)throw new Error(`Frame payload too large: ${N} bytes (max ${oS})`);const R=9+N;if(y<R)break;if(++c>lS)throw new Error(`Too many frames in framed response (max ${lS})`);_(9);const P=_(N);switch(k){case ji.JSON:try{u.enqueue(iS.decode(P))}catch{}break;case ji.CHUNK:{const I=h(O);I&&I.enqueue(P);break}case ji.END:{const I=h(O);if(i.add(O),I){try{I.close()}catch{}t.delete(O)}break}case ji.ERROR:{const I=h(O);if(i.add(O),I){const G=iS.decode(P);I.error(new Error(G)),t.delete(O)}break}}}}}if(y!==0)throw new Error("Incomplete frame at end of framed response");try{u.close()}catch{}t.forEach(x=>{try{x.close()}catch{}}),t.clear()}catch(x){try{u.error(x)}catch{}t.forEach(S=>{try{S.error(x)}catch{}}),t.clear()}finally{try{g.releaseLock()}catch{}l=null}})(),{getOrCreateStream:d,jsonChunks:p}}var Cc=null;async function rm(e){e.length>0&&await Promise.allSettled(e)}var GI=Object.prototype.hasOwnProperty;function bw(e){for(const t in e)if(GI.call(e,t))return!0;return!1}async function $I(e,t,n){Cc||(Cc=FI());const i=t[0],a=i.fetch??n,l=i.data instanceof FormData?"formData":"payload",c=i.headers?new Headers(i.headers):new Headers;if(c.set("x-tsr-serverFn","true"),l==="payload"&&c.set("accept",`${FA}, application/x-ndjson, application/json`),i.method==="GET"){if(l==="formData")throw new Error("FormData is not supported with GET requests");const p=await yw(i);if(p!==void 0){const d=O_({payload:p});e.includes("?")?e+=`&${d}`:e+=`?${d}`}}let u;if(i.method==="POST"){const p=await qI(i);p?.contentType&&c.set("content-type",p.contentType),u=p?.body}return await VI(async()=>a(e,{method:i.method,headers:c,signal:i.signal,body:u}))}async function yw(e){let t=!1;const n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&bw(e.context)&&(t=!0,n.context=e.context),t)return vw(n)}async function vw(e){return JSON.stringify(await Promise.resolve(RI(e,{plugins:Cc})))}async function qI(e){if(e.data instanceof FormData){let n;return e.context&&bw(e.context)&&(n=await vw(e.context)),n!==void 0&&e.data.set(UA,n),{body:e.data}}const t=await yw(e);if(t)return{body:t,contentType:"application/json"}}async function VI(e){let t;try{t=await e()}catch(i){if(i instanceof Response)t=i;else throw console.log(i),i}if(t.headers.get("x-tss-raw")==="true")return t;const n=t.headers.get("content-type");if(n||vr(),t.headers.get("x-tss-serialized")){let i;if(n.includes("application/x-tss-framed")){if(GA(n),!t.body)throw new Error("No response body for framed response");const{getOrCreateStream:a,jsonChunks:l}=jI(t.body),c=[DI(a),...Cc||[]],u=new Map;i=await YI({jsonStream:l,onMessage:p=>eS(p,{refs:u,plugins:c}),onError(p,d){console.error(p,d)}})}else if(n.includes("application/json")){const a=await t.json(),l=[];i=eS(a,{plugins:Cc}),await rm(l)}if(i||vr(),i instanceof Error)throw i;return i}if(n.includes("application/json")){const i=await t.json(),a=wO(i);if(a)throw a;if(Pn(i))throw i;return i}if(!t.ok)throw new Error(await t.text());return t}async function YI({jsonStream:e,onMessage:t,onError:n}){const i=e.getReader(),{value:a,done:l}=await i.read();if(l||!a)throw new Error("Stream ended before first object");const c=JSON.parse(a);let u=!1;const p=(async()=>{try{for(;;){const{value:g,done:b}=await i.read();if(b)break;if(g)try{const y=[];try{t(JSON.parse(g))}finally{}await rm(y)}catch(y){n?.(`Invalid JSON: ${g}`,y)}}}catch(g){u||n?.("Stream processing error:",g)}})();let d;const h=[];try{d=t(c)}catch(g){throw u=!0,i.cancel().catch(()=>{}),g}return await rm(h),Promise.resolve(d).catch(()=>{u=!0,i.cancel().catch(()=>{})}),p.finally(()=>{try{i.releaseLock()}catch{}}),d}function KI(e){const t="/_serverFn/"+e;return Object.assign((...a)=>{const l=E_()?.serverFns?.fetch;return $I(t,a,l??fetch)},{url:t,serverFnMeta:{id:e},[Jg]:!0})}var XI={key:"$TSS/serverfn",test:e=>typeof e!="function"||!(Jg in e)?!1:!!e[Jg],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>KI(e)};function cS(e){return e.replaceAll("\0","/").replaceAll("�","/")}function WI(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function ZI(e){window.$_TSR||vr();const t=e.options.serializationAdapters;if(t?.length){const x=new Map;t.forEach(S=>{x.set(S.key,S.fromSerializable)}),window.$_TSR.t=x,window.$_TSR.buffer.forEach(S=>S())}window.$_TSR.initialized=!0,window.$_TSR.router||vr();const n=window.$_TSR.router;n.matches.forEach(x=>{x.i=cS(x.i)}),n.lastMatchId&&(n.lastMatchId=cS(n.lastMatchId));const{manifest:i,dehydratedData:a,lastMatchId:l}=n;e.ssr={manifest:i};const c=document.querySelector('meta[property="csp-nonce"]')?.content;e.options.ssr={nonce:c},await e.options.hydrate?.(a);const u=e.matchRoutes(e.stores.location.get()),p=Promise.all(u.map(x=>e.loadRouteChunk(e.looseRoutesById[x.routeId])));function d(x){const S=e.looseRoutesById[x.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(S){const C=Na();x._nonReactive.minPendingPromise=C,x._forcePending=!0,setTimeout(()=>{C.resolve(),e.updateMatch(x.id,k=>(k._nonReactive.minPendingPromise=void 0,{...k,_forcePending:void 0}))},S)}}function h(x){const S=e.looseRoutesById[x.routeId];S&&(S.options.ssr=x.ssr)}let g;u.forEach(x=>{const S=n.matches.find(C=>C.i===x.id);if(!S){x._nonReactive.dehydrated=!1,x.ssr=!1,h(x);return}WI(x,S),h(x),x._nonReactive.dehydrated=x.ssr!==!1,(x.ssr==="data-only"||x.ssr===!1)&&g===void 0&&(g=x.index,d(x))}),e.stores.setMatches(u);const b=e.stores.matches.get(),y=e.stores.location.get();await Promise.all(b.map(async x=>{try{const S=e.looseRoutesById[x.routeId],C=b[x.index-1]?.context??e.options.context;if(S.options.context){const R={deps:x.loaderDeps,params:x.params,context:C??{},location:y,navigate:P=>e.navigate({...P,_fromLocation:y}),buildLocation:e.buildLocation,cause:x.cause,abortController:x.abortController,preload:!1,matches:u,routeId:S.id};x.__routeContext=S.options.context(R)??void 0}x.context={...C,...x.__routeContext,...x.__beforeLoadContext};const k={ssr:e.options.ssr,matches:b,match:x,params:x.params,loaderData:x.loaderData},O=await S.options.head?.(k),N=await S.options.scripts?.(k);x.meta=O?.meta,x.links=O?.links,x.headScripts=O?.scripts,x.styles=O?.styles,x.scripts=N}catch(S){if(Pn(S))x.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${x.routeId}`,S);else throw x.error=S,console.error(`Error during hydration for route ${x.routeId}:`,S),S}}));const E=u[u.length-1].id!==l;if(!u.some(x=>x.ssr===!1)&&!E)return u.forEach(x=>{x._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),p;const _=Promise.resolve().then(()=>e.load()).catch(x=>{console.error("Error during router hydration:",x)});if(E){const x=u[1];x||vr(),d(x),x._displayPending=!0,x._nonReactive.displayPendingPromise=_,_.then(()=>{e.batch(()=>{e.stores.status.get()==="pending"&&(e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(x.id,S=>({...S,_displayPending:void 0,displayPendingPromise:void 0}))})})}return p}var Jf=A.use,gc=typeof window<"u"?A.useLayoutEffect:A.useEffect;function cg(e){const t=A.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function QI(e,t,n={},i={}){A.useEffect(()=>{if(!e.current||i.disabled||typeof IntersectionObserver!="function")return;const a=new IntersectionObserver(([l])=>{t(l)},n);return a.observe(e.current),()=>{a.disconnect()}},[t,n,i.disabled,e])}function JI(e){const t=A.useRef(null);return A.useImperativeHandle(e,()=>t.current,[]),t}function eD({promise:e}){if(Jf)return Jf(e);const t=qO(e);if(t[fi].status==="pending")throw t;if(t[fi].status==="error")throw t[fi].error;return t[fi].data}function tD(e){const t=F.jsx(nD,{...e});return e.fallback?F.jsx(A.Suspense,{fallback:e.fallback,children:t}):t}function nD(e){const t=eD(e);return e.children(t)}function Um(e){const t=e.errorComponent??Fm;return F.jsx(rD,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:i})=>n?A.createElement(t,{error:n,reset:i}):e.children})}var rD=class extends A.Component{constructor(...e){super(...e),this.state={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}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Fm({error:e}){const[t,n]=A.useState(!1);return F.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[F.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[F.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),F.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"})]}),F.jsx("div",{style:{height:".25rem"}}),t?F.jsx("div",{children:F.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?F.jsx("code",{children:e.message}):null})}):null]})}function iD({children:e,fallback:t=null}){return Hm()?F.jsx(pi.Fragment,{children:e}):F.jsx(pi.Fragment,{children:t})}function Hm(){return pi.useSyncExternalStore(oD,()=>!0,()=>!1)}function oD(){return()=>{}}var Ew=A.createContext(null);function qn(e){return A.useContext(Ew)}var kd=A.createContext(void 0),aD=A.createContext(void 0),an=(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))(an||{});function sD({update:e,notify:t,unwatched:n}){return{link:i,unlink:a,propagate:l,checkDirty:c,shallowPropagate:u};function i(d,h,g){const b=h.depsTail;if(b!==void 0&&b.dep===d)return;const y=b!==void 0?b.nextDep:h.deps;if(y!==void 0&&y.dep===d){y.version=g,h.depsTail=y;return}const E=d.subsTail;if(E!==void 0&&E.version===g&&E.sub===h)return;const _=h.depsTail=d.subsTail={version:g,dep:d,sub:h,prevDep:b,nextDep:y,prevSub:E,nextSub:void 0};y!==void 0&&(y.prevDep=_),b!==void 0?b.nextDep=_:h.deps=_,E!==void 0?E.nextSub=_:d.subs=_}function a(d,h=d.sub){const g=d.dep,b=d.prevDep,y=d.nextDep,E=d.nextSub,_=d.prevSub;return y!==void 0?y.prevDep=b:h.depsTail=b,b!==void 0?b.nextDep=y:h.deps=y,E!==void 0?E.prevSub=_:g.subsTail=_,_!==void 0?_.nextSub=E:(g.subs=E)===void 0&&n(g),y}function l(d){let h=d.nextSub,g;e:do{const b=d.sub;let y=b.flags;if(y&60?y&12?y&4?!(y&48)&&p(d,b)?(b.flags=y|40,y&=1):y=0:b.flags=y&-9|32:y=0:b.flags=y|32,y&2&&t(b),y&1){const E=b.subs;if(E!==void 0){const _=(d=E).nextSub;_!==void 0&&(g={value:h,prev:g},h=_);continue}}if((d=h)!==void 0){h=d.nextSub;continue}for(;g!==void 0;)if(d=g.value,g=g.prev,d!==void 0){h=d.nextSub;continue e}break}while(!0)}function c(d,h){let g,b=0,y=!1;e:do{const E=d.dep,_=E.flags;if(h.flags&16)y=!0;else if((_&17)===17){if(e(E)){const x=E.subs;x.nextSub!==void 0&&u(x),y=!0}}else if((_&33)===33){(d.nextSub!==void 0||d.prevSub!==void 0)&&(g={value:d,prev:g}),d=E.deps,h=E,++b;continue}if(!y){const x=d.nextDep;if(x!==void 0){d=x;continue}}for(;b--;){const x=h.subs,S=x.nextSub!==void 0;if(S?(d=g.value,g=g.prev):d=x,y){if(e(h)){S&&u(x),h=d.sub;continue}y=!1}else h.flags&=-33;h=d.sub;const C=d.nextDep;if(C!==void 0){d=C;continue e}}return y}while(!0)}function u(d){do{const h=d.sub,g=h.flags;(g&48)===32&&(h.flags=g|16,(g&6)===2&&t(h))}while((d=d.nextSub)!==void 0)}function p(d,h){let g=h.depsTail;for(;g!==void 0;){if(g===d)return!0;g=g.prevDep}return!1}}function lD(e,t,n){const i=typeof e=="object",a=i?e:void 0;return{next:(i?e.next:e)?.bind(a),error:(i?e.error:t)?.bind(a),complete:(i?e.complete:n)?.bind(a)}}const im=[];let Hf=0;const{link:uS,unlink:cD,propagate:uD,checkDirty:Sw,shallowPropagate:fS}=sD({update(e){return e._update()},notify(e){im[om++]=e,e.flags&=~an.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=an.Mutable|an.Dirty,ed(e))}});let df=0,om=0,ui,am=0;function xw(e){try{++am,e()}finally{--am||_w()}}function ed(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=cD(n,e)}function _w(){if(!(am>0)){for(;df<om;){const e=im[df];im[df++]=void 0,e.notify()}df=0,om=0}}function dS(e,t){const n=typeof e=="function",i=e,a={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?an.None:an.Mutable,get(){return ui!==void 0&&uS(a,ui,Hf),a._snapshot},subscribe(l){const c=lD(l),u={current:!1},p=fD(()=>{a.get(),u.current?c.next?.(a._snapshot):u.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(l){const c=ui,u=t?.compare??Object.is;if(n)ui=a,++Hf,a.depsTail=void 0;else if(l===void 0)return!1;n&&(a.flags=an.Mutable|an.RecursedCheck);try{const p=a._snapshot,d=typeof l=="function"?l(p):l===void 0&&n?i(p):l;return p===void 0||!u(p,d)?(a._snapshot=d,!0):!1}finally{ui=c,n&&(a.flags&=~an.RecursedCheck),ed(a)}}};return n?(a.flags=an.Mutable|an.Dirty,a.get=function(){const l=a.flags;if(l&an.Dirty||l&an.Pending&&Sw(a.deps,a)){if(a._update()){const c=a.subs;c!==void 0&&fS(c)}}else l&an.Pending&&(a.flags=l&~an.Pending);return ui!==void 0&&uS(a,ui,Hf),a._snapshot}):a.set=function(l){if(a._update(l)){const c=a.subs;c!==void 0&&(uD(c),fS(c),_w())}},a}function fD(e){const t=()=>{const i=ui;ui=n,++Hf,n.depsTail=void 0,n.flags=an.Watching|an.RecursedCheck;try{return e()}finally{ui=i,n.flags&=~an.RecursedCheck,ed(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:an.Watching|an.RecursedCheck,notify(){const i=this.flags;i&an.Dirty||i&an.Pending&&Sw(this.deps,this)?t():this.flags=an.Watching},stop(){this.flags=an.None,this.depsTail=void 0,ed(this)}};return t(),n}var ug={exports:{}},fg={},dg={exports:{}},pg={};var pS;function dD(){if(pS)return pg;pS=1;var e=Nc();function t(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,a=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue;function u(g,b){var y=b(),E=i({inst:{value:y,getSnapshot:b}}),_=E[0].inst,x=E[1];return l(function(){_.value=y,_.getSnapshot=b,p(_)&&x({inst:_})},[g,y,b]),a(function(){return p(_)&&x({inst:_}),g(function(){p(_)&&x({inst:_})})},[g]),c(y),y}function p(g){var b=g.getSnapshot;g=g.value;try{var y=b();return!n(g,y)}catch{return!0}}function d(g,b){return b()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:u;return pg.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,pg}var hS;function ww(){return hS||(hS=1,dg.exports=dD()),dg.exports}var gS;function pD(){if(gS)return fg;gS=1;var e=Nc(),t=ww();function n(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var i=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,l=e.useRef,c=e.useEffect,u=e.useMemo,p=e.useDebugValue;return fg.useSyncExternalStoreWithSelector=function(d,h,g,b,y){var E=l(null);if(E.current===null){var _={hasValue:!1,value:null};E.current=_}else _=E.current;E=u(function(){function S(R){if(!C){if(C=!0,k=R,R=b(R),y!==void 0&&_.hasValue){var P=_.value;if(y(P,R))return O=P}return O=R}if(P=O,i(k,R))return P;var I=b(R);return y!==void 0&&y(P,I)?(k=R,P):(k=R,O=I)}var C=!1,k,O,N=g===void 0?null:g;return[function(){return S(h())},N===null?void 0:function(){return S(N())}]},[h,g,b,y]);var x=a(d,E[0],E[1]);return c(function(){_.hasValue=!0,_.value=x},[x]),p(x),x},fg}var mS;function hD(){return mS||(mS=1,ug.exports=pD()),ug.exports}var Rw=hD();function gD(e,t){return e===t}function En(e,t,n=gD){const i=A.useCallback(c=>{if(!e)return()=>{};const{unsubscribe:u}=e.subscribe(c);return u},[e]),a=A.useCallback(()=>e?.get(),[e]);return Rw.useSyncExternalStoreWithSelector(i,a,a,t,n)}var mD={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function Ba(e){const t=qn(),n=A.useContext(e.from?aD:kd),i=e.from??n,a=i?e.from?t.stores.getRouteMatchStore(i):t.stores.matchStores.get(i):void 0,l=A.useRef(void 0);return En(a??mD,c=>{if((e.shouldThrow??!0)&&!c&&vr(),c===void 0)return;const u=e.select?e.select(c):c;if(e.structuralSharing??t.options.defaultStructuralSharing){const p=Bo(l.current,u);return l.current=p,p}return u})}function Tw(e){return Ba({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Cw(e){const{select:t,...n}=e;return Ba({...n,select:i=>t?t(i.loaderDeps):i.loaderDeps})}function kw(e){return Ba({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 Aw(e){return Ba({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function jm(e){const t=qn();return A.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Ow(e){return Ba({...e,select:t=>e.select?e.select(t.context):t.context})}var yi=v_();function bD(e,t){const n=qn(),i=JI(t),{activeProps:a,inactiveProps:l,activeOptions:c,to:u,preload:p,preloadDelay:d,preloadIntentProximity:h,hashScrollIntoView:g,replace:b,startTransition:y,resetScroll:E,viewTransition:_,children:x,target:S,disabled:C,style:k,className:O,onClick:N,onBlur:R,onFocus:P,onMouseEnter:I,onMouseLeave:G,onTouchStart:U,ignoreBlocker:X,params:$,search:W,hash:V,state:H,mask:B,reloadDocument:q,unsafeRelative:Q,from:ee,_fromLocation:M,...D}=e,Z=Hm(),z=A.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),le=En(n.stores.location,Ce=>Ce,(Ce,ne)=>Ce.href===ne.href),ce=A.useMemo(()=>{const Ce={_fromLocation:le,...z};return n.buildLocation(Ce)},[n,le,z]),ae=ce.maskedLocation?ce.maskedLocation.publicHref:ce.publicHref,be=ce.maskedLocation?ce.maskedLocation.external:ce.external,Ee=A.useMemo(()=>_D(ae,be,n.history,C),[C,be,ae,n.history]),ye=A.useMemo(()=>{if(Ee?.external)return Kf(Ee.href,n.protocolAllowlist)?void 0:Ee.href;if(!wD(u)&&!(typeof u!="string"||u.indexOf(":")===-1))try{return new URL(u),Kf(u,n.protocolAllowlist)?void 0:u}catch{}},[u,Ee,n.protocolAllowlist]),De=A.useMemo(()=>{if(ye)return!1;if(c?.exact){if(!uO(le.pathname,ce.pathname,n.basepath))return!1}else{const Ce=Xf(le.pathname,n.basepath),ne=Xf(ce.pathname,n.basepath);if(!(Ce.startsWith(ne)&&(Ce.length===ne.length||Ce[ne.length]==="/")))return!1}return(c?.includeSearch??!0)&&!br(le.search,ce.search,{partial:!c?.exact,ignoreUndefined:!c?.explicitUndefined})?!1:c?.includeHash?Z&&le.hash===ce.hash:!0},[c?.exact,c?.explicitUndefined,c?.includeHash,c?.includeSearch,le,ye,Z,ce.hash,ce.pathname,ce.search,n.basepath]),qe=De?zo(a,{})??yD:hg,Te=De?hg:zo(l,{})??hg,$e=[O,qe.className,Te.className].filter(Boolean).join(" "),Xe=(k||qe.style||Te.style)&&{...k,...qe.style,...Te.style},[at,Se]=A.useState(!1),Ne=A.useRef(!1),ze=e.reloadDocument||ye?!1:p??n.options.defaultPreload,ke=d??n.options.defaultPreloadDelay??0,Fe=A.useCallback(()=>{n.preloadRoute({...z,_builtLocation:ce}).catch(Ce=>{console.warn(Ce),console.warn(VO)})},[n,z,ce]);QI(i,A.useCallback(Ce=>{Ce?.isIntersecting&&Fe()},[Fe]),xD,{disabled:!!C||ze!=="viewport"}),A.useEffect(()=>{Ne.current||!C&&ze==="render"&&(Fe(),Ne.current=!0)},[C,Fe,ze]);const me=Ce=>{const ne=Ce.currentTarget.getAttribute("target"),ue=S!==void 0?S:ne;if(!C&&!RD(Ce)&&!Ce.defaultPrevented&&(!ue||ue==="_self")&&Ce.button===0){Ce.preventDefault(),yi.flushSync(()=>{Se(!0)});const Ie=n.subscribe("onResolved",()=>{Ie(),Se(!1)});n.navigate({...z,replace:b,resetScroll:E,hashScrollIntoView:g,startTransition:y,viewTransition:_,ignoreBlocker:X})}};if(ye)return{...D,ref:i,href:ye,...x&&{children:x},...S&&{target:S},...C&&{disabled:C},...k&&{style:k},...O&&{className:O},...N&&{onClick:N},...R&&{onBlur:R},...P&&{onFocus:P},...I&&{onMouseEnter:I},...G&&{onMouseLeave:G},...U&&{onTouchStart:U}};const Ae=Ce=>{if(C||ze!=="intent")return;if(!ke){Fe();return}const ne=Ce.currentTarget;if(rc.has(ne))return;const ue=setTimeout(()=>{rc.delete(ne),Fe()},ke);rc.set(ne,ue)},ge=Ce=>{C||ze!=="intent"||Fe()},ve=Ce=>{if(C||!ze||!ke)return;const ne=Ce.currentTarget,ue=rc.get(ne);ue&&(clearTimeout(ue),rc.delete(ne))};return{...D,...qe,...Te,href:Ee?.href,ref:i,onClick:Cs([N,me]),onBlur:Cs([R,ve]),onFocus:Cs([P,Ae]),onMouseEnter:Cs([I,Ae]),onMouseLeave:Cs([G,ve]),onTouchStart:Cs([U,ge]),disabled:!!C,target:S,...Xe&&{style:Xe},...$e&&{className:$e},...C&&vD,...De&&ED,...Z&&at&&SD}}var hg={},yD={className:"active"},vD={role:"link","aria-disabled":!0},ED={"data-status":"active","aria-current":"page"},SD={"data-transitioning":"transitioning"},rc=new WeakMap,xD={rootMargin:"100px"},Cs=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function _D(e,t,n,i){if(!i)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function wD(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var di=A.forwardRef((e,t)=>{const{_asChild:n,...i}=e,{type:a,...l}=bD(i,t),c=typeof i.children=="function"?i.children({isActive:l["data-status"]==="active"}):i.children;if(!n){const{disabled:u,...p}=l;return A.createElement("a",p,c)}return A.createElement(n,l,c)});function RD(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var TD=class extends z_{constructor(t){super(t),this.useMatch=n=>Ba({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Ow({...n,from:this.id}),this.useSearch=n=>Aw({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>kw({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Cw({...n,from:this.id}),this.useLoaderData=n=>Tw({...n,from:this.id}),this.useNavigate=()=>jm({from:this.fullPath}),this.Link=pi.forwardRef((n,i)=>F.jsx(di,{ref:i,from:this.fullPath,...n}))}};function CD(e){return new TD(e)}var kD=class extends WO{constructor(e){super(e),this.useMatch=t=>Ba({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>Ow({...t,from:this.id}),this.useSearch=t=>Aw({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>kw({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Cw({...t,from:this.id}),this.useLoaderData=t=>Tw({...t,from:this.id}),this.useNavigate=()=>jm({from:this.fullPath}),this.Link=pi.forwardRef((t,n)=>F.jsx(di,{ref:n,from:this.fullPath,...t}))}};function AD(e){return new kD(e)}function Ua(e){return new OD(e,{silent:!0}).createRoute}var OD=class{constructor(e,t){this.path=e,this.createRoute=n=>{const i=CD(n);return i.isRoot=!1,i},this.silent=t?.silent}};function Fa(e,t){let n,i,a,l;const c=()=>(n||(n=e().then(p=>{n=void 0,i=p[t]}).catch(p=>{if(a=p,VA(a)&&a instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const d=`tanstack_router_reload:${a.message}`;sessionStorage.getItem(d)||(sessionStorage.setItem(d,"1"),l=!0)}})),n),u=function(d){if(l)throw window.location.reload(),new Promise(()=>{});if(a)throw a;if(!i)if(Jf)Jf(c());else throw c();return A.createElement(i,d)};return u.preload=c,u}function MD(e){const t=qn(),n=`not-found-${En(t.stores.location,i=>i.pathname)}-${En(t.stores.status,i=>i)}`;return F.jsx(Um,{getResetKey:()=>n,onCatch:(i,a)=>{if(Pn(i))e.onCatch?.(i,a);else throw i},errorComponent:({error:i})=>{if(Pn(i))return e.fallback?.(i);throw i},children:e.children})}function ND(){return F.jsx("p",{children:"Not Found"})}function Os(e){return F.jsx(F.Fragment,{children:e.children})}function Mw(e,t,n){return t.options.notFoundComponent?F.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?F.jsx(e.options.defaultNotFoundComponent,{...n}):F.jsx(ND,{})}function ID(e){return null}function DD(){return ID(qn()),null}var Nw=A.memo(function({matchId:t}){const n=qn(),i=n.stores.matchStores.get(t);i||vr();const a=En(n.stores.loadedAt,c=>c),l=En(i,c=>c);return F.jsx(LD,{router:n,matchId:t,resetKey:a,matchState:A.useMemo(()=>{const c=l.routeId,u=n.routesById[c].parentRoute?.id;return{routeId:c,ssr:l.ssr,_displayPending:l._displayPending,parentRouteId:u}},[l._displayPending,l.routeId,l.ssr,n.routesById])})});function LD({router:e,matchId:t,resetKey:n,matchState:i}){const a=e.routesById[i.routeId],l=a.options.pendingComponent??e.options.defaultPendingComponent,c=l?F.jsx(l,{}):null,u=a.options.errorComponent??e.options.defaultErrorComponent,p=a.options.onCatch??e.options.defaultOnCatch,d=a.isRoot?a.options.notFoundComponent??e.options.notFoundRoute?.options.component:a.options.notFoundComponent,h=i.ssr===!1||i.ssr==="data-only",g=(!a.isRoot||a.options.wrapInSuspense||h)&&(a.options.wrapInSuspense??l??(a.options.errorComponent?.preload||h))?A.Suspense:Os,b=u?Um:Os,y=d?MD:Os;return F.jsxs(a.isRoot?a.options.shellComponent??Os:Os,{children:[F.jsx(kd.Provider,{value:t,children:F.jsx(g,{fallback:c,children:F.jsx(b,{getResetKey:()=>n,errorComponent:u||Fm,onCatch:(E,_)=>{if(Pn(E))throw E.routeId??=i.routeId,E;p?.(E,_)},children:F.jsx(y,{fallback:E=>{if(E.routeId??=i.routeId,!d||E.routeId&&E.routeId!==i.routeId||!E.routeId&&!a.isRoot)throw E;return A.createElement(d,E)},children:h||i._displayPending?F.jsx(iD,{fallback:c,children:F.jsx(bS,{matchId:t})}):F.jsx(bS,{matchId:t})})})})}),i.parentRouteId===Oa?F.jsxs(F.Fragment,{children:[F.jsx(PD,{resetKey:n}),e.options.scrollRestoration&&S_?F.jsx(DD,{}):null]}):null]})}function PD({resetKey:e}){const t=qn(),n=A.useRef(void 0);return gc(()=>{const i=t.latestLocation.href;(n.current===void 0||n.current!==i)&&(t.emit({type:"onRendered",...Ps(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=i)},[t.latestLocation.state.__TSR_key,e,t]),null}var bS=A.memo(function({matchId:t}){const n=qn(),i=(h,g)=>n.getMatch(h.id)?._nonReactive[g]??h._nonReactive[g],a=n.stores.matchStores.get(t);a||vr();const l=En(a,h=>h),c=l.routeId,u=n.routesById[c],p=A.useMemo(()=>{const h=(n.routesById[c].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:c,loaderDeps:l.loaderDeps,params:l._strictParams,search:l._strictSearch});return h?JSON.stringify(h):void 0},[c,l.loaderDeps,l._strictParams,l._strictSearch,n.options.defaultRemountDeps,n.routesById]),d=A.useMemo(()=>{const h=u.options.component??n.options.defaultComponent;return h?F.jsx(h,{},p):F.jsx(zD,{})},[p,u.options.component,n.options.defaultComponent]);if(l._displayPending)throw i(l,"displayPendingPromise");if(l._forcePending)throw i(l,"minPendingPromise");if(l.status==="pending"){const h=u.options.pendingMinMs??n.options.defaultPendingMinMs;if(h){const g=n.getMatch(l.id);if(g&&!g._nonReactive.minPendingPromise){const b=Na();g._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),g._nonReactive.minPendingPromise=void 0},h)}}throw i(l,"loadPromise")}if(l.status==="notFound")return Pn(l.error)||vr(),Mw(n,u,l.error);if(l.status==="redirected")throw yr(l.error)||vr(),i(l,"loadPromise");if(l.status==="error")throw l.error;return d}),zD=A.memo(function(){const t=qn(),n=A.useContext(kd);let i,a=!1,l;{const d=n?t.stores.matchStores.get(n):void 0;[i,a]=En(d,h=>[h?.routeId,h?.globalNotFound??!1]),l=En(t.stores.matchesId,h=>h[h.findIndex(g=>g===n)+1])}const c=i?t.routesById[i]:void 0,u=t.options.defaultPendingComponent?F.jsx(t.options.defaultPendingComponent,{}):null;if(a)return c||vr(),Mw(t,c,void 0);if(!l)return null;const p=F.jsx(Nw,{matchId:l});return i===Oa?F.jsx(A.Suspense,{fallback:u,children:p}):p});function BD(){const e=qn(),t=A.useRef({router:e,mounted:!1}),[n,i]=A.useState(!1),a=En(e.stores.isLoading,g=>g),l=En(e.stores.hasPending,g=>g),c=cg(a),u=a||n||l,p=cg(u),d=a||l,h=cg(d);return e.startTransition=g=>{i(!0),A.startTransition(()=>{g(),i(!1)})},A.useEffect(()=>{const g=e.history.subscribe(e.load),b=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Vi(e.latestLocation.publicHref)!==Vi(b.publicHref)&&e.commitLocation({...b,replace:!0}),()=>{g()}},[e,e.history]),gc(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(b){console.error(b)}})()},[e]),gc(()=>{c&&!a&&e.emit({type:"onLoad",...Ps(e.stores.location.get(),e.stores.resolvedLocation.get())})},[c,e,a]),gc(()=>{h&&!d&&e.emit({type:"onBeforeRouteMount",...Ps(e.stores.location.get(),e.stores.resolvedLocation.get())})},[d,h,e]),gc(()=>{if(p&&!u){const g=Ps(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...g}),xw(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())}),g.hrefChanged&&ZO(e)}},[u,p,e]),null}function UD(){const e=qn(),t=e.routesById[Oa].options.pendingComponent??e.options.defaultPendingComponent,n=t?F.jsx(t,{}):null,i=F.jsxs(typeof document<"u"&&e.ssr?Os:A.Suspense,{fallback:n,children:[F.jsx(BD,{}),F.jsx(FD,{})]});return e.options.InnerWrap?F.jsx(e.options.InnerWrap,{children:i}):i}function FD(){const e=qn(),t=En(e.stores.firstId,a=>a),n=En(e.stores.loadedAt,a=>a),i=t?F.jsx(Nw,{matchId:t}):null;return F.jsx(kd.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?i:F.jsx(Um,{getResetKey:()=>n,errorComponent:Fm,onCatch:void 0,children:i})})}var HD=e=>({createMutableStore:dS,createReadonlyStore:dS,batch:xw}),jD=e=>new GD(e),GD=class extends BO{constructor(e){super(e,HD)}};function $D({router:e,children:t,...n}){__(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const i=F.jsx(Ew.Provider,{value:e,children:t});return e.options.Wrap?F.jsx(e.options.Wrap,{children:i}):i}function qD({router:e,...t}){return F.jsx($D,{router:e,...t,children:F.jsx(UD,{})})}function Iw(e){const t=qn(),n=A.useRef(void 0);return En(t.stores.location,i=>{const a=i;if(t.options.defaultStructuralSharing){const l=Bo(n.current,a);return n.current=l,l}return a})}function Dw(e){const{attrs:t,children:n,nonce:i}=e;switch(e.tag){case"title":return F.jsx("title",{...t,suppressHydrationWarning:!0,children:n});case"meta":return F.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return F.jsx("link",{...t,precedence:t?.precedence??(t?.rel==="stylesheet"?"default":void 0),nonce:i,suppressHydrationWarning:!0});case"style":return e.inlineCss,F.jsx("style",{...t,dangerouslySetInnerHTML:{__html:n},nonce:i});case"script":return F.jsx(VD,{attrs:t,children:n});default:return null}}function VD({attrs:e,children:t}){qn();const n=Hm(),i=typeof e?.type=="string"&&e.type!==""&&e.type!=="text/javascript"&&e.type!=="module";if(A.useEffect(()=>{if(!i){if(e?.src){const a=(()=>{try{const c=document.baseURI||window.location.href;return new URL(e.src,c).href}catch{return e.src}})();if(Array.from(document.querySelectorAll("script[src]")).find(c=>c.src===a))return;const l=document.createElement("script");for(const[c,u]of Object.entries(e))c!=="suppressHydrationWarning"&&u!==void 0&&u!==!1&&l.setAttribute(c,typeof u=="boolean"?"":String(u));return document.head.appendChild(l),()=>{l.parentNode&&l.parentNode.removeChild(l)}}if(typeof t=="string"){const a=typeof e?.type=="string"?e.type:"text/javascript",l=typeof e?.nonce=="string"?e.nonce:void 0;if(Array.from(document.querySelectorAll("script:not([src])")).find(u=>{if(!(u instanceof HTMLScriptElement))return!1;const p=u.getAttribute("type")??"text/javascript",d=u.getAttribute("nonce")??void 0;return u.textContent===t&&p===a&&d===l}))return;const c=document.createElement("script");if(c.textContent=t,e)for(const[u,p]of Object.entries(e))u!=="suppressHydrationWarning"&&p!==void 0&&p!==!1&&c.setAttribute(u,typeof p=="boolean"?"":String(p));return document.head.appendChild(c),()=>{c.parentNode&&c.parentNode.removeChild(c)}}}},[e,t,i]),i&&typeof t=="string")return F.jsx("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!n){if(e?.src)return F.jsx("script",{...e,suppressHydrationWarning:!0});if(typeof t=="string")return F.jsx("script",{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var YD=e=>{const t=qn(),n=t.options.ssr?.nonce,i=En(t.stores.matches,d=>d.map(h=>h.meta).filter(Boolean),br),a=A.useMemo(()=>{const d=[],h={};let g;for(let b=i.length-1;b>=0;b--){const y=i[b];for(let E=y.length-1;E>=0;E--){const _=y[E];if(_)if(_.title)g||(g={tag:"title",children:_.title});else if("script:ld+json"in _)try{const x=JSON.stringify(_["script:ld+json"]);d.push({tag:"script",attrs:{type:"application/ld+json"},children:ZA(x)})}catch{}else{const x=_.name??_.property;if(x){if(h[x])continue;h[x]=!0}d.push({tag:"meta",attrs:{..._,nonce:n}})}}}return g&&d.push(g),n&&d.push({tag:"meta",attrs:{property:"csp-nonce",content:n}}),d.reverse(),d},[i,n]),l=En(t.stores.matches,d=>{const h=d.map(y=>y.links).filter(Boolean).flat(1).map(y=>({tag:"link",attrs:{...y,nonce:n}})),g=t.ssr?.manifest,b=d.map(y=>g?.routes[y.routeId]?.assets??[]).filter(Boolean).flat(1).flatMap(y=>y.tag==="link"?XO(g,y)?[]:[{tag:"link",attrs:{...y.attrs,crossOrigin:WE(e,"stylesheet")??y.attrs?.crossOrigin,suppressHydrationWarning:!0,nonce:n}}]:y.tag==="style"?[{tag:"style",attrs:{...y.attrs,nonce:n},children:y.children,...y.inlineCss?{inlineCss:!0}:{}}]:[]);return[...h,...b]},br),c=En(t.stores.matches,d=>{const h=[];return d.map(g=>t.looseRoutesById[g.routeId]).forEach(g=>t.ssr?.manifest?.routes[g.id]?.preloads?.filter(Boolean).forEach(b=>{const y=YO(b);h.push({tag:"link",attrs:{rel:"modulepreload",href:y.href,crossOrigin:WE(e,"modulepreload")??y.crossOrigin,nonce:n}})})),h},br),u=En(t.stores.matches,d=>d.map(h=>h.styles).flat(1).filter(Boolean).map(({children:h,...g})=>({tag:"style",attrs:{...g,nonce:n},children:h})),br),p=En(t.stores.matches,d=>d.map(h=>h.headScripts).flat(1).filter(Boolean).map(({children:h,...g})=>({tag:"script",attrs:{...g,nonce:n},children:h})),br);return KD([...a,...c,...l,...u,...p],d=>JSON.stringify(d))};function KD(e,t){const n=new Set;return e.filter(i=>{const a=t(i);return n.has(a)?!1:(n.add(a),!0)})}function XD(e){const t=YD(e.assetCrossOrigin),n=qn().options.ssr?.nonce;return F.jsx(F.Fragment,{children:t.map(i=>A.createElement(Dw,{...i,key:`tsr-meta-${JSON.stringify(i)}`,nonce:n}))})}var WD=()=>{const e=qn(),t=e.options.ssr?.nonce,n=l=>{const c=[],u=e.ssr?.manifest;return u?(l.map(p=>e.looseRoutesById[p.routeId]).forEach(p=>u.routes[p.id]?.assets?.filter(d=>d.tag==="script").forEach(d=>{c.push({tag:"script",attrs:{...d.attrs,nonce:t},children:d.children})})),c):[]},i=l=>l.map(c=>c.scripts).flat(1).filter(Boolean).map(({children:c,...u})=>({tag:"script",attrs:{...u,suppressHydrationWarning:!0,nonce:t},children:c})),a=En(e.stores.matches,n,br);return ZD(e,En(e.stores.matches,i,br),a)};function ZD(e,t,n){let i;e.serverSsr&&(i=e.serverSsr.takeBufferedScripts());const a=[...t,...n];return i&&a.unshift(i),F.jsx(F.Fragment,{children:a.map((l,c)=>A.createElement(Dw,{...l,key:`tsr-scripts-${l.tag}-${c}`}))})}const yS={};function $n(e,t){const n=A.useRef(yS);return n.current===yS&&(n.current=e(t)),n}const sm=[];let lm;function QD(){return lm}function JD(e){sm.push(e)}function Gm(e){const t=(n,i)=>{const a=$n(e2).current;let l;try{lm=a;for(const c of sm)c.before(a);l=e(n,i);for(const c of sm)c.after(a);a.didInitialize=!0}finally{lm=void 0}return l};return t.displayName=e.displayName||e.name,t}function Lw(e){return A.forwardRef(Gm(e))}function e2(){return{didInitialize:!1}}function $m(e){const t=A.useRef(!0);t.current&&(t.current=!1,e())}const t2=()=>{},Me=typeof document<"u"?A.useLayoutEffect:t2;function n2(e,t){return function(i,...a){const l=new URL(e);return l.searchParams.set("code",i.toString()),a.forEach(c=>l.searchParams.append("args[]",c)),`${t} error #${i}; visit ${l} for the full message.`}}const Vn=n2("https://base-ui.com/production-error","Base UI"),Pw=A.createContext(void 0);function Lc(e){const t=A.useContext(Pw);if(t===void 0&&!e)throw new Error(Vn(72));return t}const r2=[];function Ad(e){A.useEffect(e,r2)}const ic=0;class ti{static create(){return new ti}currentId=ic;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=ic,n()},t)}isStarted(){return this.currentId!==ic}clear=()=>{this.currentId!==ic&&(clearTimeout(this.currentId),this.currentId=ic)};disposeEffect=()=>this.clear}function Sr(){const e=$n(ti.create).current;return Ad(e.disposeEffect),e}const Zs=typeof navigator<"u",gg=i2(),zw=a2(),Bw=o2(),Uw=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),Fw=gg.platform==="MacIntel"&&gg.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(gg.platform),Hw=Zs&&/apple/i.test(navigator.vendor),cm=Zs&&/android/i.test(zw)||/android/i.test(Bw),jw=Zs&&zw.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,Gw=Bw.includes("jsdom/");function i2(){if(!Zs)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function o2(){if(!Zs)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function a2(){if(!Zs)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}function Dr(e){e.preventDefault(),e.stopPropagation()}function s2(e){return"nativeEvent"in e}function $w(e){return e.pointerType===""&&e.isTrusted?!0:cm&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function qw(e){return Gw?!1:!cm&&e.width===0&&e.height===0||cm&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function qs(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Vw(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function l2(e,t){return t!=null&&!qs(t)?0:typeof e=="function"?e():e}function td(e,t,n){const i=l2(e,n);return typeof i=="number"?i:i?.[t]}function vS(e){return typeof e=="function"?e():e}function Yw(e,t){return t||e==="click"||e==="mousedown"}function Zn(){}const um=Object.freeze([]),An=Object.freeze({}),Pc="none",Ia="trigger-press",Wn="trigger-hover",Us="trigger-focus",qm="outside-press",Kw="item-press",c2="close-press",Vs="focus-out",Od="escape-key",jf="list-navigation",u2="cancel-open",mc="sibling-open",f2="disabled",Vm="imperative-action";function ht(e,t,n,i){let a=!1,l=!1;const c=An;return{reason:e,event:t??new Event("base-ui"),cancel(){a=!0},allowPropagation(){l=!0},get isCanceled(){return a},get isPropagationAllowed(){return l},trigger:n,...c}}const Xw=A.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new ti,currentIdRef:{current:null},currentContextRef:{current:null}});function d2(e){const{children:t,delay:n,timeoutMs:i=0}=e,a=A.useRef(n),l=A.useRef(n),c=A.useRef(null),u=A.useRef(null),p=Sr();return F.jsx(Xw.Provider,{value:A.useMemo(()=>({hasProvider:!0,delayRef:a,initialDelayRef:l,currentIdRef:c,timeoutMs:i,currentContextRef:u,timeout:p}),[i,p]),children:t})}function p2(e,t={open:!1}){const n="rootStore"in e?e.rootStore:e,i=n.useState("floatingId"),{open:a}=t,l=A.useContext(Xw),{currentIdRef:c,delayRef:u,timeoutMs:p,initialDelayRef:d,currentContextRef:h,hasProvider:g,timeout:b}=l,[y,E]=A.useState(!1);return Me(()=>{function _(){E(!1),h.current?.setIsInstantPhase(!1),c.current=null,h.current=null,u.current=d.current}if(c.current&&!a&&c.current===i){if(E(!1),p){const x=i;return b.start(p,()=>{n.select("open")||c.current&&c.current!==x||_()}),()=>{b.clear()}}_()}},[a,i,c,u,p,d,h,b,n]),Me(()=>{if(!a)return;const _=h.current,x=c.current;b.clear(),h.current={onOpenChange:n.setOpen,setIsInstantPhase:E},c.current=i,u.current={open:0,close:td(d.current,"close")},x!==null&&x!==i?(E(!0),_?.setIsInstantPhase(!0),_?.onOpenChange(!1,ht(Pc))):(E(!1),_?.setIsInstantPhase(!1))},[a,i,n,c,u,p,d,h,b]),Me(()=>()=>{h.current=null},[h]),A.useMemo(()=>({hasProvider:g,delayRef:u,isInstantPhase:y}),[g,u,y])}function Md(){return typeof window<"u"}function Jn(e){return Ym(e)?(e.nodeName||"").toLowerCase():"#document"}function pn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Si(e){var t;return(t=(Ym(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ym(e){return Md()?e instanceof Node||e instanceof pn(e).Node:!1}function Et(e){return Md()?e instanceof Element||e instanceof pn(e).Element:!1}function en(e){return Md()?e instanceof HTMLElement||e instanceof pn(e).HTMLElement:!1}function Ys(e){return!Md()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pn(e).ShadowRoot}function Xo(e){const{overflow:t,overflowX:n,overflowY:i,display:a}=xr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&a!=="inline"&&a!=="contents"}function h2(e){return/^(table|td|th)$/.test(Jn(e))}function Nd(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const g2=/transform|translate|scale|rotate|perspective|filter/,m2=/paint|layout|strict|content/,Sa=e=>!!e&&e!=="none";let mg;function Km(e){const t=Et(e)?xr(e):e;return Sa(t.transform)||Sa(t.translate)||Sa(t.scale)||Sa(t.rotate)||Sa(t.perspective)||!Id()&&(Sa(t.backdropFilter)||Sa(t.filter))||g2.test(t.willChange||"")||m2.test(t.contain||"")}function b2(e){let t=vi(e);for(;en(t)&&!hi(t);){if(Km(t))return t;if(Nd(t))return null;t=vi(t)}return null}function Id(){return mg==null&&(mg=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),mg}function hi(e){return/^(html|body|#document)$/.test(Jn(e))}function xr(e){return pn(e).getComputedStyle(e)}function Dd(e){return Et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function vi(e){if(Jn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ys(e)&&e.host||Si(e);return Ys(t)?t.host:t}function Ww(e){const t=vi(e);return hi(t)?e.ownerDocument?e.ownerDocument.body:e.body:en(t)&&Xo(t)?t:Ww(t)}function kc(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Ww(e),l=a===((i=e.ownerDocument)==null?void 0:i.body),c=pn(a);if(l){const u=fm(c);return t.concat(c,c.visualViewport||[],Xo(a)?a:[],u&&n?kc(u):[])}else return t.concat(a,kc(a,[],n))}function fm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mt(e,t,n,i){return e.addEventListener(t,n,i),()=>{e.removeEventListener(t,n,i)}}function gi(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}function qo(e,t,n,i){const a=$n(Zw).current;return v2(a,e,t,n,i)&&Qw(a,[e,t,n,i]),a.callback}function y2(e){const t=$n(Zw).current;return E2(t,e)&&Qw(t,e),t.callback}function Zw(){return{callback:null,cleanup:null,refs:[]}}function v2(e,t,n,i,a){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==i||e.refs[3]!==a}function E2(e,t){return e.refs.length!==t.length||e.refs.some((n,i)=>n!==t[i])}function Qw(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const i=Array(t.length).fill(null);for(let a=0;a<t.length;a+=1){const l=t[a];if(l!=null)switch(typeof l){case"function":{const c=l(n);typeof c=="function"&&(i[a]=c);break}case"object":{l.current=n;break}}}e.cleanup=()=>{for(let a=0;a<t.length;a+=1){const l=t[a];if(l!=null)switch(typeof l){case"function":{const c=i[a];typeof c=="function"?c():l(null);break}case"object":{l.current=null;break}}}}}}}function Gn(e){const t=$n(S2,e).current;return t.next=e,Me(t.effect),t}function S2(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const bg=y_[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],x2=bg&&bg!==A.useLayoutEffect?bg:e=>e();function Qe(e){const t=$n(_2).current;return t.next=e,x2(t.effect),t.trampoline}function _2(){const e={next:void 0,callback:w2,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function w2(){}const pf=null;class R2{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,i=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,i>0)for(let a=0;a<n.length;a+=1)n[a]?.(t)};request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const hf=new R2;class dn{static create(){return new dn}static request(t){return hf.request(t)}static cancel(t){return hf.cancel(t)}currentId=pf;request(t){this.cancel(),this.currentId=hf.request(()=>{this.currentId=pf,t()})}cancel=()=>{this.currentId!==pf&&(hf.cancel(this.currentId),this.currentId=pf)};disposeEffect=()=>this.cancel}function Ld(){const e=$n(dn.create).current;return Ad(e.disposeEffect),e}function Ct(e){return e?.ownerDocument||document}const Jw={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},e1={...Jw,position:"fixed",top:0,left:0},T2={...Jw,position:"absolute"},Ks=A.forwardRef(function(t,n){const[i,a]=A.useState();Me(()=>{Hw&&a("button")},[]);const l={tabIndex:0,role:i};return F.jsx("span",{...t,ref:n,style:e1,"aria-hidden":i?void 0:!0,...l,"data-base-ui-focus-guard":""})}),dm="data-base-ui-focusable",t1="active",n1="selected",r1="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Go="ArrowLeft",$o="ArrowRight",Xm="ArrowUp",zc="ArrowDown";function Lr(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function ot(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Ys(n)){let i=t;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function sr(e){return"composedPath"in e?e.composedPath()[0]:e.target}function nd(e,t){if(!Et(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute("data-trigger-disabled");for(const[,i]of t.entries())if(ot(i,n))return!i.hasAttribute("data-trigger-disabled");return!1}function Jr(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function C2(e){return e.matches("html,body")}function Pd(e){return en(e)&&e.matches(r1)}function k2(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${r1}`)!=null}function pm(e){return e?e.getAttribute("role")==="combobox"&&Pd(e):!1}function A2(e){if(!e||Gw)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function rd(e){return e?e.hasAttribute(dm)?e:e.querySelector(`[${dm}]`)||e:null}const O2=["top","right","bottom","left"],Xs=Math.min,Pr=Math.max,id=Math.round,Ta=Math.floor,mi=e=>({x:e,y:e}),M2={left:"right",right:"left",bottom:"top",top:"bottom"};function hm(e,t,n){return Pr(e,Xs(t,n))}function Xi(e,t){return typeof e=="function"?e(t):e}function Er(e){return e.split("-")[0]}function Wo(e){return e.split("-")[1]}function Wm(e){return e==="x"?"y":"x"}function Zm(e){return e==="y"?"height":"width"}function Xr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Qm(e){return Wm(Xr(e))}function N2(e,t,n){n===void 0&&(n=!1);const i=Wo(e),a=Qm(e),l=Zm(a);let c=a==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=od(c)),[c,od(c)]}function I2(e){const t=od(e);return[gm(e),t,gm(t)]}function gm(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ES=["left","right"],SS=["right","left"],D2=["top","bottom"],L2=["bottom","top"];function P2(e,t,n){switch(e){case"top":case"bottom":return n?t?SS:ES:t?ES:SS;case"left":case"right":return t?D2:L2;default:return[]}}function z2(e,t,n,i){const a=Wo(e);let l=P2(Er(e),n==="start",i);return a&&(l=l.map(c=>c+"-"+a),t&&(l=l.concat(l.map(gm)))),l}function od(e){const t=Er(e);return M2[t]+e.slice(t.length)}function B2(e){return{top:0,right:0,bottom:0,left:0,...e}}function i1(e){return typeof e!="number"?B2(e):{top:e,right:e,bottom:e,left:e}}function ad(e){const{x:t,y:n,width:i,height:a}=e;return{width:i,height:a,top:n,left:t,right:t+i,bottom:n+a,x:t,y:n}}function gf(e,t,n){return Math.floor(e/t)!==n}function sd(e,t){return t<0||t>=e.length}function yg(e,t){return or(e.current,{disabledIndices:t})}function xS(e,t){return or(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function or(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:i,amount:a=1}={}){let l=t;do l+=n?-a:a;while(l>=0&&l<=e.length-1&&Fs(e,l,i));return l}function U2(e,{event:t,orientation:n,loopFocus:i,onLoop:a,rtl:l,cols:c,disabledIndices:u,minIndex:p,maxIndex:d,prevIndex:h,stopEvent:g=!1}){let b=h,y;if(t.key===Xm?y="up":t.key===zc&&(y="down"),y){const E=[],_=[];let x=!1,S=0;{let G=null,U=-1;e.forEach((X,$)=>{if(X==null)return;S+=1;const W=X.closest('[role="row"]');W&&(x=!0),(W!==G||U===-1)&&(G=W,U+=1,E[U]=[]),E[U].push($),_[$]=U})}let C=!1,k=0;if(x)for(const G of E){const U=G.length;U>k&&(k=U),U!==c&&(C=!0)}const O=C&&S<e.length,N=k||c,R=G=>{if(!C||h===-1)return;const U=_[h];if(U==null)return;const X=E[U].indexOf(h),$=G==="up"?-1:1;for(let W=U+$,V=0;V<E.length;V+=1,W+=$){if(W<0||W>=E.length){if(!i||O)return;if(W=W<0?E.length-1:0,a){const B=Math.min(X,E[W].length-1),q=E[W][B]??E[W][0],Q=a(t,h,q);W=_[Q]??W}}const H=E[W];for(let B=Math.min(X,H.length-1);B>=0;B-=1){const q=H[B];if(!Fs(e,q,u))return q}}},P=G=>{if(!O||h===-1)return;const U=h%N,X=G==="up"?-N:N,$=d-d%N,W=Ta(d/N)+1;for(let V=h-U+X,H=0;H<W;H+=1,V+=X){if(V<0||V>d){if(!i)return;V=V<0?$:0}const B=Math.min(V+N-1,d);for(let q=Math.min(V+U,B);q>=V;q-=1)if(!Fs(e,q,u))return q}};g&&Dr(t);const I=R(y)??P(y);if(I!==void 0)b=I;else if(h===-1)b=y==="up"?d:p;else if(b=or(e,{startingIndex:h,amount:N,decrement:y==="up",disabledIndices:u}),i){if(y==="up"&&(h-N<p||b<0)){const G=h%N,U=d%N,X=d-(U-G);U===G?b=d:b=U>G?X:X-N,a&&(b=a(t,h,b))}y==="down"&&h+N>d&&(b=or(e,{startingIndex:h%N-N,amount:N,disabledIndices:u}),a&&(b=a(t,h,b)))}sd(e,b)&&(b=h)}if(n==="both"){const E=Ta(h/c);t.key===(l?Go:$o)&&(g&&Dr(t),h%c!==c-1?(b=or(e,{startingIndex:h,disabledIndices:u}),i&&gf(b,c,E)&&(b=or(e,{startingIndex:h-h%c-1,disabledIndices:u}),a&&(b=a(t,h,b)))):i&&(b=or(e,{startingIndex:h-h%c-1,disabledIndices:u}),a&&(b=a(t,h,b))),gf(b,c,E)&&(b=h)),t.key===(l?$o:Go)&&(g&&Dr(t),h%c!==0?(b=or(e,{startingIndex:h,decrement:!0,disabledIndices:u}),i&&gf(b,c,E)&&(b=or(e,{startingIndex:h+(c-h%c),decrement:!0,disabledIndices:u}),a&&(b=a(t,h,b)))):i&&(b=or(e,{startingIndex:h+(c-h%c),decrement:!0,disabledIndices:u}),a&&(b=a(t,h,b))),gf(b,c,E)&&(b=h));const _=Ta(d/c)===E;sd(e,b)&&(i&&_?(b=t.key===(l?$o:Go)?d:or(e,{startingIndex:h-h%c-1,disabledIndices:u}),a&&(b=a(t,h,b))):b=h)}return b}function F2(e,t,n){const i=[];let a=0;return e.forEach(({width:l,height:c},u)=>{let p=!1;for(;!p;){const d=[];for(let h=0;h<l;h+=1)for(let g=0;g<c;g+=1)d.push(a+h+g*t);a%t+l<=t&&d.every(h=>i[h]==null)?(d.forEach(h=>{i[h]=u}),p=!0):a+=1}}),[...i]}function H2(e,t,n,i,a){if(e===-1)return-1;const l=n.indexOf(e),c=t[e];switch(a){case"tl":return l;case"tr":return c?l+c.width-1:l;case"bl":return c?l+(c.height-1)*i:l;case"br":return n.lastIndexOf(e);default:return-1}}function j2(e,t){return t.flatMap((n,i)=>e.includes(n)?[i]:[])}function Fs(e,t,n){if(typeof n=="function"?n(t):n?.includes(t)??!1)return!0;const a=e[t];return a?zd(a)?!n&&(a.hasAttribute("disabled")||a.getAttribute("aria-disabled")==="true"):!0:!1}function G2(e){return e.visibility==="hidden"||e.visibility==="collapse"}function zd(e,t=e?xr(e):null){return!e||!e.isConnected||!t||G2(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}const $2='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function q2(e){const t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;const n=e.getRootNode();return Ys(n)?n.host:null}function mm(e){for(const t of Array.from(e.children))if(Jn(t)==="summary")return t;return null}function V2(e,t){const n=mm(t);return!!n&&(e===n||ot(n,e))}function o1(e){const t=e?Jn(e):"";return e!=null&&e.matches($2)&&(t!=="summary"||e.parentElement!=null&&Jn(e.parentElement)==="details"&&mm(e.parentElement)===e)&&(t!=="details"||mm(e)==null)&&(t!=="input"||e.type!=="hidden")}function a1(e){if(!o1(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=q2(t)){const n=t!==e,i=Jn(t)==="slot";if(t.hasAttribute("inert")||n&&Jn(t)==="details"&&!t.open&&!V2(e,t)||t.hasAttribute("hidden")||!i&&!Y2(t,n))return!1}return!0}function Y2(e,t){const n=xr(e);return t?n.display!=="none":zd(e,n)}function s1(e){const t=e.tabIndex;if(t<0){const n=Jn(e);if(n==="details"||n==="audio"||n==="video"||en(e)&&e.isContentEditable)return 0}return t}function vg(e){if(Jn(e)!=="input")return null;const t=e;return t.type==="radio"&&t.name!==""?t:null}function K2(e,t){const n=vg(e);if(!n)return!0;const i=t.find(a=>{const l=vg(a);return l?.name===n.name&&l.form===n.form&&l.checked});return i?i===n:t.find(a=>{const l=vg(a);return l?.name===n.name&&l.form===n.form})===n}function l1(e){if(en(e)&&Jn(e)==="slot"){const t=e.assignedElements({flatten:!0});if(t.length>0)return t}return en(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function c1(e,t){l1(e).forEach(n=>{o1(n)&&t.push(n),c1(n,t)})}function u1(e,t,n){l1(e).forEach(i=>{en(i)&&i.matches(t)&&n.push(i),u1(i,t,n)})}function Jm(e){return a1(e)&&s1(e)>=0}function f1(e){const t=[];return c1(e,t),t.filter(a1)}function Bc(e){const t=f1(e);return t.filter(n=>s1(n)>=0&&K2(n,t))}function d1(e,t){const n=Bc(e),i=n.length;if(i===0)return;const a=Lr(Ct(e)),l=n.indexOf(a),c=l===-1?t===1?0:i-1:l+t;return n[c]}function eb(e){return d1(Ct(e).body,1)||e}function p1(e){return d1(Ct(e).body,-1)||e}function h1(e,t){if(!e)return null;const n=Bc(Ct(e).body),i=n.length;if(i===0)return null;const a=n.indexOf(e);if(a===-1)return null;const l=(a+t+i)%i;return n[l]}function X2(e){return h1(e,1)}function W2(e){return h1(e,-1)}function Hs(e,t){const n=t||e.currentTarget,i=e.relatedTarget;return!i||!ot(n,i)}function Z2(e){Bc(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function _S(e){const t=[];u1(e,"[data-tabindex]",t),t.forEach(n=>{const i=n.dataset.tabindex;delete n.dataset.tabindex,i?n.setAttribute("tabindex",i):n.removeAttribute("tabindex")})}function bi(e,t,n=!0){return e.filter(a=>a.parentId===t).flatMap(a=>[...!n||a.context?.open?[a]:[],...bi(e,a.id,n)])}function wS(e,t){let n=[],i=e.find(a=>a.id===t)?.parentId;for(;i;){const a=e.find(l=>l.id===i);i=a?.parentId,a&&(n=n.concat(a))}return n}function Ac(e){return`data-base-ui-${e}`}let mf=0;function Gf(e,t={}){const{preventScroll:n=!1,cancelPrevious:i=!0,sync:a=!1}=t;i&&cancelAnimationFrame(mf);const l=()=>e?.focus({preventScroll:n});if(a)return l(),Zn;const c=requestAnimationFrame(l);return mf=c,()=>{mf===c&&(cancelAnimationFrame(c),mf=0)}}const Eg={inert:new WeakMap,"aria-hidden":new WeakMap},RS="data-base-ui-inert",bm={inert:new WeakSet,"aria-hidden":new WeakSet};let oc=new WeakMap,Sg=0;function Q2(e){return bm[e]}function g1(e){return e?Ys(e)?e.host:g1(e.parentNode):null}const xg=(e,t)=>t.map(n=>{if(e.contains(n))return n;const i=g1(n);return e.contains(i)?i:null}).filter(n=>n!=null),TS=e=>{const t=new Set;return e.forEach(n=>{let i=n;for(;i&&!t.has(i);)t.add(i),i=i.parentNode}),t},CS=(e,t,n)=>{const i=[],a=l=>{!l||n.has(l)||Array.from(l.children).forEach(c=>{Jn(c)!=="script"&&(t.has(c)?a(c):i.push(c))})};return a(e),i};function J2(e,t,n,i,{mark:a=!0,markerIgnoreElements:l=[]}){const c=i?"inert":n?"aria-hidden":null;let u=null,p=null;const d=xg(t,e),h=a?xg(t,l):[],g=new Set(h),b=a?CS(t,TS(d),new Set(d)).filter(_=>!g.has(_)):[],y=[],E=[];if(c){const _=Eg[c],x=Q2(c);p=x,u=_;const S=xg(t,Array.from(t.querySelectorAll("[aria-live]"))),C=d.concat(S);CS(t,TS(C),new Set(C)).forEach(O=>{const N=O.getAttribute(c),R=N!==null&&N!=="false",P=(_.get(O)||0)+1;_.set(O,P),y.push(O),P===1&&R&&x.add(O),R||O.setAttribute(c,c==="inert"?"":"true")})}return a&&b.forEach(_=>{const x=(oc.get(_)||0)+1;oc.set(_,x),E.push(_),x===1&&_.setAttribute(RS,"")}),Sg+=1,()=>{u&&y.forEach(_=>{const S=(u.get(_)||0)-1;u.set(_,S),S||(!p?.has(_)&&c&&_.removeAttribute(c),p?.delete(_))}),a&&E.forEach(_=>{const x=(oc.get(_)||0)-1;oc.set(_,x),x||_.removeAttribute(RS)}),Sg-=1,Sg||(Eg.inert=new WeakMap,Eg["aria-hidden"]=new WeakMap,bm.inert=new WeakSet,bm["aria-hidden"]=new WeakSet,oc=new WeakMap)}}function kS(e,t={}){const{ariaHidden:n=!1,inert:i=!1,mark:a=!0,markerIgnoreElements:l=[]}=t,c=Ct(e[0]).body;return J2(e,c,n,i,{mark:a,markerIgnoreElements:l})}const eL={...y_};let AS=0;function tL(e,t="mui"){const[n,i]=A.useState(e),a=e||n;return A.useEffect(()=>{n==null&&(AS+=1,i(`${t}-${AS}`))},[n,t]),a}const OS=eL.useId;function Ha(e,t){if(OS!==void 0){const n=OS();return e??(t?`${t}-${n}`:n)}return tL(e,t)}const nL=parseInt(A.version,10);function tb(e){return nL>=e}function MS(e){if(!A.isValidElement(e))return null;const t=e,n=t.props;return(tb(19)?n?.ref:t.ref)??null}function ym(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function rL(e,t){const n={};for(const i in e){const a=e[i];if(t?.hasOwnProperty(i)){const l=t[i](a);l!=null&&Object.assign(n,l);continue}a===!0?n[`data-${i.toLowerCase()}`]="":a&&(n[`data-${i.toLowerCase()}`]=a.toString())}return n}function iL(e,t){return typeof e=="function"?e(t):e}function oL(e,t){return typeof e=="function"?e(t):e}const nb={};function Ei(e,t,n,i,a){if(!n&&!i&&!e)return ld(t);let l=ld(e);return t&&(l=$f(l,t)),n&&(l=$f(l,n)),i&&(l=$f(l,i)),l}function aL(e){if(e.length===0)return nb;if(e.length===1)return ld(e[0]);let t=ld(e[0]);for(let n=1;n<e.length;n+=1)t=$f(t,e[n]);return t}function ld(e){return rb(e)?{...b1(e,nb)}:sL(e)}function $f(e,t){return rb(t)?b1(t,e):lL(e,t)}function sL(e){const t={...e};for(const n in t){const i=t[n];m1(n,i)&&(t[n]=y1(i))}return t}function lL(e,t){if(!t)return e;for(const n in t){const i=t[n];switch(n){case"style":{e[n]=ym(e.style,i);break}case"className":{e[n]=v1(e.className,i);break}default:m1(n,i)?e[n]=cL(e[n],i):e[n]=i}}return e}function m1(e,t){const n=e.charCodeAt(0),i=e.charCodeAt(1),a=e.charCodeAt(2);return n===111&&i===110&&a>=65&&a<=90&&(typeof t=="function"||typeof t>"u")}function rb(e){return typeof e=="function"}function b1(e,t){return rb(e)?e(t):e??nb}function cL(e,t){return t?e?(...n)=>{const i=n[0];if(E1(i)){const l=i;cd(l);const c=t(...n);return l.baseUIHandlerPrevented||e?.(...n),c}const a=t(...n);return e?.(...n),a}:y1(t):e}function y1(e){return e&&((...t)=>{const n=t[0];return E1(n)&&cd(n),e(...t)})}function cd(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function v1(e,t){return t?e?t+" "+e:t:e}function E1(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function hn(e,t,n={}){const i=t.render,a=uL(t,n);if(n.enabled===!1)return null;const l=n.state??An;return pL(e,i,a,l)}function uL(e,t={}){const{className:n,style:i,render:a}=e,{state:l=An,ref:c,props:u,stateAttributesMapping:p,enabled:d=!0}=t,h=d?iL(n,l):void 0,g=d?oL(i,l):void 0,b=d?rL(l,p):An,y=d&&u?fL(u):void 0,E=d?ym(b,y)??{}:An;return typeof document<"u"&&(d?Array.isArray(c)?E.ref=y2([E.ref,MS(a),...c]):E.ref=qo(E.ref,MS(a),c):qo(null,null)),d?(h!==void 0&&(E.className=v1(E.className,h)),g!==void 0&&(E.style=ym(E.style,g)),E):An}function fL(e){return Array.isArray(e)?aL(e):Ei(void 0,e)}const dL=Symbol.for("react.lazy");function pL(e,t,n,i){if(t){if(typeof t=="function")return t(n,i);const a=Ei(n,t.props);a.ref=n.ref;let l=t;return l?.$$typeof===dL&&(l=A.Children.toArray(t)[0]),A.cloneElement(l,a)}if(e&&typeof e=="string")return hL(e,n);throw new Error(Vn(8))}function hL(e,t){return e==="button"?A.createElement("button",{type:"button",...t,key:t.key}):e==="img"?A.createElement("img",{alt:"",...t,key:t.key}):A.createElement(e,t)}const gL=500,mL=500,bL={style:{transition:"none"}},yL="data-base-ui-click-trigger",vL={fallbackAxisSide:"none"},S1={fallbackAxisSide:"end"},EL={clipPath:"inset(50%)",position:"fixed",top:0,left:0},x1=A.createContext(null),_1=()=>A.useContext(x1),SL=Ac("portal");function w1(e={}){const{ref:t,container:n,componentProps:i=An,elementProps:a}=e,l=Ha(),u=_1()?.portalNode,[p,d]=A.useState(null),[h,g]=A.useState(null),b=Qe(x=>{x!==null&&g(x)}),y=A.useRef(null);Me(()=>{if(n===null){y.current&&(y.current=null,g(null),d(null));return}if(l==null)return;const x=(n&&(Ym(n)?n:n.current))??u??document.body;if(x==null){y.current&&(y.current=null,g(null),d(null));return}y.current!==x&&(y.current=x,g(null),d(x))},[n,u,l]);const E=hn("div",i,{ref:[t,b],props:[{id:l,[SL]:""},a]});return{portalNode:h,portalSubtree:p&&E?yi.createPortal(E,p):null}}const R1=A.forwardRef(function(t,n){const{children:i,container:a,className:l,render:c,renderGuards:u,style:p,...d}=t,{portalNode:h,portalSubtree:g}=w1({container:a,ref:n,componentProps:t,elementProps:d}),b=A.useRef(null),y=A.useRef(null),E=A.useRef(null),_=A.useRef(null),[x,S]=A.useState(null),C=A.useRef(!1),k=x?.modal,O=x?.open,N=typeof u=="boolean"?u:!!x&&!x.modal&&x.open&&!!h;A.useEffect(()=>{if(!h||k)return;function P(I){h&&I.relatedTarget&&Hs(I)&&(I.type==="focusin"?C.current&&(_S(h),C.current=!1):(Z2(h),C.current=!0))}return gi(mt(h,"focusin",P,!0),mt(h,"focusout",P,!0))},[h,k]),A.useEffect(()=>{!h||O!==!1||(_S(h),C.current=!1)},[O,h]);const R=A.useMemo(()=>({beforeOutsideRef:b,afterOutsideRef:y,beforeInsideRef:E,afterInsideRef:_,portalNode:h,setFocusManagerState:S}),[h]);return F.jsxs(A.Fragment,{children:[g,F.jsxs(x1.Provider,{value:R,children:[N&&h&&F.jsx(Ks,{"data-type":"outside",ref:b,onFocus:P=>{if(Hs(P,h))E.current?.focus();else{const I=x?x.domReference:null;p1(I)?.focus()}}}),N&&h&&F.jsx("span",{"aria-owns":h.id,style:EL}),h&&yi.createPortal(i,h),N&&h&&F.jsx(Ks,{"data-type":"outside",ref:y,onFocus:P=>{if(Hs(P,h))_.current?.focus();else{const I=x?x.domReference:null;eb(I)?.focus(),x?.closeOnFocusOut&&x?.onOpenChange(!1,ht(Vs,P.nativeEvent))}}})]})]})});function T1(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}class ib{nodesRef={current:[]};events=T1();addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(i=>i===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const C1=A.createContext(null),k1=A.createContext(null),Ji=()=>A.useContext(C1)?.id||null,Zo=e=>{const t=A.useContext(k1);return e??t};function A1(e){const t=Ha(),n=Zo(e),i=Ji();return Me(()=>{if(!t)return;const a={id:t,parentId:i};return n?.addNode(a),()=>{n?.removeNode(a)}},[n,t,i]),t}function xL(e){const{children:t,id:n}=e,i=Ji();return F.jsx(C1.Provider,{value:A.useMemo(()=>({id:n,parentId:i}),[n,i]),children:t})}function _L(e){const{children:t,externalTree:n}=e,i=$n(()=>n??new ib).current;return F.jsx(k1.Provider,{value:i,children:t})}function qi(e){return e==null?e:"current"in e?e.current:e}function wL(e,t){const n=pn(sr(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const NS=20;let Ho=[];function ob(){Ho=Ho.filter(e=>e.deref()?.isConnected)}function RL(e){ob(),e&&Jn(e)!=="body"&&(Ho.push(new WeakRef(e)),Ho.length>NS&&(Ho=Ho.slice(-NS)))}function _g(){return ob(),Ho[Ho.length-1]?.deref()}function TL(e){return e?Jm(e)?e:Bc(e)[0]||e:null}function IS(e,t){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const i=f1(e).filter(l=>{const c=l.getAttribute("data-tabindex")||"";return Jm(l)||l.hasAttribute("data-tabindex")&&!c.startsWith("-")}),a=e.getAttribute("tabindex");t.current.includes("floating")||i.length===0?a!=="0"&&e.setAttribute("tabindex","0"):(a!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function O1(e){const{context:t,children:n,disabled:i=!1,initialFocus:a=!0,returnFocus:l=!0,restoreFocus:c=!1,modal:u=!0,closeOnFocusOut:p=!0,openInteractionType:d="",nextFocusableElement:h,previousFocusableElement:g,beforeContentFocusGuardRef:b,externalTree:y,getInsideElements:E}=e,_="rootStore"in t?t.rootStore:t,x=_.useState("open"),S=_.useState("domReferenceElement"),C=_.useState("floatingElement"),{events:k,dataRef:O}=_.context,N=Qe(()=>O.current.floatingContext?.nodeId),R=a===!1,P=pm(S)&&R,I=A.useRef(["content"]),G=Gn(a),U=Gn(l),X=Gn(d),$=Zo(y),W=_1(),V=A.useRef(!1),H=A.useRef(!1),B=A.useRef(!1),q=A.useRef(null),Q=A.useRef(""),ee=A.useRef(""),M=A.useRef(null),D=A.useRef(null),Z=qo(M,b,W?.beforeInsideRef),z=qo(D,W?.afterInsideRef),le=Sr(),ce=Sr(),ae=Ld(),be=W!=null,Ee=rd(C),ye=Qe((Te=Ee)=>Te?Bc(Te):[]),De=Qe(()=>E?.().filter(Te=>Te!=null)??[]);A.useEffect(()=>{if(i||!u)return;function Te(Xe){Xe.key==="Tab"&&ot(Ee,Lr(Ct(Ee)))&&ye().length===0&&!P&&Dr(Xe)}const $e=Ct(Ee);return mt($e,"keydown",Te)},[i,S,Ee,u,I,P,ye]),A.useEffect(()=>{if(i||!x)return;const Te=Ct(Ee);function $e(){B.current=!1}function Xe(Se){const Ne=sr(Se),ze=De(),ke=ot(C,Ne)||ot(S,Ne)||ot(W?.portalNode,Ne)||ze.some(Fe=>Fe===Ne||ot(Fe,Ne));B.current=!ke,ee.current=Se.pointerType||"keyboard",Ne?.closest(`[${yL}]`)&&(H.current=!0)}function at(){ee.current="keyboard"}return gi(mt(Te,"pointerdown",Xe,!0),mt(Te,"pointerup",$e,!0),mt(Te,"pointercancel",$e,!0),mt(Te,"keydown",at,!0))},[i,C,S,Ee,x,W,De]),A.useEffect(()=>{if(i||!p)return;const Te=Ct(Ee);function $e(){H.current=!0,ce.start(0,()=>{H.current=!1})}function Xe(ze){const ke=sr(ze);Jm(ke)&&(q.current=ke)}function at(ze){const ke=ze.relatedTarget,Fe=ze.currentTarget,me=sr(ze);queueMicrotask(()=>{const Ae=N(),ge=_.context.triggerElements,ve=De(),Ce=ke?.hasAttribute(Ac("focus-guard"))&&[M.current,D.current,W?.beforeInsideRef.current,W?.afterInsideRef.current,W?.beforeOutsideRef.current,W?.afterOutsideRef.current,qi(g),qi(h)].includes(ke),ne=!(ot(S,ke)||ot(C,ke)||ot(ke,C)||ot(W?.portalNode,ke)||ve.some(ue=>ue===ke||ot(ue,ke))||ke!=null&&ge.hasElement(ke)||ge.hasMatchingElement(ue=>ot(ue,ke))||Ce||$&&(bi($.nodesRef.current,Ae).find(ue=>ot(ue.context?.elements.floating,ke)||ot(ue.context?.elements.domReference,ke))||wS($.nodesRef.current,Ae).find(ue=>[ue.context?.elements.floating,rd(ue.context?.elements.floating)].includes(ke)||ue.context?.elements.domReference===ke)));if(Fe===S&&Ee&&IS(Ee,I),c&&Fe!==S&&!zd(me)&&Lr(Te)===Te.body){if(en(Ee)&&(Ee.focus(),c==="popup")){ae.request(()=>{Ee.focus()});return}const ue=ye(),Ie=q.current,Ve=(Ie&&ue.includes(Ie)?Ie:null)||ue[ue.length-1]||Ee;en(Ve)&&Ve.focus()}if(O.current.insideReactTree){O.current.insideReactTree=!1;return}(P||!u)&&ke&&ne&&!H.current&&(P||ke!==_g())&&(V.current=!0,_.setOpen(!1,ht(Vs,ze)))})}function Se(){B.current||(O.current.insideReactTree=!0,le.start(0,()=>{O.current.insideReactTree=!1}))}const Ne=en(S)?S:null;if(!(!C&&!Ne))return gi(Ne&&mt(Ne,"focusout",at),Ne&&mt(Ne,"pointerdown",$e),C&&mt(C,"focusin",Xe),C&&mt(C,"focusout",at),C&&W&&mt(C,"focusout",Se,!0))},[i,S,C,Ee,u,$,W,_,p,c,ye,P,N,I,O,le,ce,ae,h,g,De]),A.useEffect(()=>{if(i||!C||!x)return;const Te=Array.from(W?.portalNode?.querySelectorAll(`[${Ac("portal")}]`)||[]),Xe=($?wS($.nodesRef.current,N()):[]).find(Fe=>pm(Fe.context?.elements.domReference||null))?.context?.elements.domReference,Se=[...[C,...Te,M.current,D.current,W?.beforeOutsideRef.current,W?.afterOutsideRef.current,...De()],Xe,qi(g),qi(h),P?S:null].filter(Fe=>Fe!=null),Ne=kS(Se,{ariaHidden:u||P,mark:!1}),ze=[C,...Te].filter(Fe=>Fe!=null),ke=kS(ze);return()=>{ke(),Ne()}},[x,i,S,C,u,I,W,P,$,N,h,g,De]),Me(()=>{if(!x||i||!en(Ee))return;const Te=Ct(Ee),$e=Lr(Te);queueMicrotask(()=>{const Xe=G.current,at=typeof Xe=="function"?Xe(X.current||""):Xe;if(at===void 0||at===!1||ot(Ee,$e))return;let Ne=null;const ze=()=>(Ne==null&&(Ne=ye(Ee)),Ne[0]||Ee);let ke;at===!0||at===null?ke=ze():ke=qi(at),ke=ke||ze(),Gf(ke,{preventScroll:ke===Ee})})},[i,x,Ee,R,ye,G,X]),Me(()=>{if(i||!Ee)return;const Te=Ct(Ee),$e=Lr(Te);RL($e);function Xe(Se){if(Se.open||(Q.current=wL(Se.nativeEvent,ee.current)),Se.reason===Wn&&Se.nativeEvent.type==="mouseleave"&&(V.current=!0),Se.reason===qm)if(Se.nested)V.current=!1;else if($w(Se.nativeEvent)||qw(Se.nativeEvent))V.current=!1;else{let Ne=!1;Ct(Ee).createElement("div").focus({get preventScroll(){return Ne=!0,!1}}),Ne?V.current=!1:V.current=!0}}k.on("openchange",Xe);function at(){const Se=U.current;let Ne=typeof Se=="function"?Se(Q.current):Se;if(Ne===void 0||Ne===!1)return null;if(Ne===null&&(Ne=!0),typeof Ne=="boolean"){const ke=S||_g();return ke&&ke.isConnected?ke:null}const ze=S||_g();return qi(Ne)||ze||null}return()=>{k.off("openchange",Xe);const Se=Lr(Te),Ne=De(),ze=ot(C,Se)||Ne.some(me=>me===Se||ot(me,Se))||$&&bi($.nodesRef.current,N(),!1).some(me=>ot(me.context?.elements.floating,Se)),ke=U.current,Fe=at();queueMicrotask(()=>{const me=TL(Fe),Ae=typeof ke!="boolean";ke&&!V.current&&en(me)&&(!(!Ae&&me!==Se&&Se!==Te.body)||ze)&&me.focus({preventScroll:!0}),V.current=!1})}},[i,C,Ee,U,O,k,$,S,N,De]),Me(()=>{if(!Uw||x||!C)return;const Te=Lr(Ct(C));!en(Te)||!Pd(Te)||ot(C,Te)&&Te.blur()},[x,C]),Me(()=>{if(!(i||!W))return W.setFocusManagerState({modal:u,closeOnFocusOut:p,open:x,onOpenChange:_.setOpen,domReference:S}),()=>{W.setFocusManagerState(null)}},[i,W,u,x,_,p,S]),Me(()=>{if(!(i||!Ee))return IS(Ee,I),()=>{queueMicrotask(ob)}},[i,Ee,I]);const qe=!i&&(u?!P:!0)&&(be||u);return F.jsxs(A.Fragment,{children:[qe&&F.jsx(Ks,{"data-type":"inside",ref:Z,onFocus:Te=>{if(u){const $e=ye();Gf($e[$e.length-1])}else W?.portalNode&&(V.current=!1,Hs(Te,W.portalNode)?eb(S)?.focus():qi(g??W.beforeOutsideRef)?.focus())}}),n,qe&&F.jsx(Ks,{"data-type":"inside",ref:z,onFocus:Te=>{u?Gf(ye()[0]):W?.portalNode&&(p&&(V.current=!0),Hs(Te,W.portalNode)?p1(S)?.focus():qi(h??W.afterOutsideRef)?.focus())}})]})}function CL(e,t={}){const n="rootStore"in e?e.rootStore:e,i=n.context.dataRef,{enabled:a=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,stickIfOpen:p=!0,touchOpenDelay:d=0,reason:h=Ia}=t,g=A.useRef(void 0),b=Ld(),y=Sr(),E=A.useMemo(()=>({onPointerDown(_){g.current=_.pointerType},onMouseDown(_){const x=g.current,S=_.nativeEvent,C=n.select("open");if(_.button!==0||l==="click"||qs(x,!0)&&u)return;const k=i.current.openEvent,O=k?.type,N=n.select("domReferenceElement")!==_.currentTarget,R=C&&N||!(C&&c&&(!(k&&p)||O==="click"||O==="mousedown")),P=sr(S);if(Pd(P)){const G=ht(h,S,P);R&&x==="touch"&&d>0?y.start(d,()=>{n.setOpen(!0,G)}):n.setOpen(R,G);return}const I=_.currentTarget;b.request(()=>{const G=ht(h,S,I);R&&x==="touch"&&d>0?y.start(d,()=>{n.setOpen(!0,G)}):n.setOpen(R,G)})},onClick(_){if(l==="mousedown-only")return;const x=g.current;if(l==="mousedown"&&x){g.current=void 0;return}if(qs(x,!0)&&u)return;const S=n.select("open"),C=i.current.openEvent,k=n.select("domReferenceElement")!==_.currentTarget,O=S&&k||!(S&&c&&(!(C&&p)||Vw(C))),N=ht(h,_.nativeEvent,_.currentTarget);O&&x==="touch"&&d>0?y.start(d,()=>{n.setOpen(!0,N)}):n.setOpen(O,N)},onKeyDown(){g.current=void 0}}),[i,l,u,n,p,c,b,y,d,h]);return A.useMemo(()=>a?{reference:E}:An,[a,E])}function kL(e,t){let n=null,i=null,a=!1;return{contextElement:e||void 0,getBoundingClientRect(){const l=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},c=t.axis==="x"||t.axis==="both",u=t.axis==="y"||t.axis==="both",p=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch";let d=l.width,h=l.height,g=l.x,b=l.y;return n==null&&t.x&&c&&(n=l.x-t.x),i==null&&t.y&&u&&(i=l.y-t.y),g-=n||0,b-=i||0,d=0,h=0,!a||p?(d=t.axis==="y"?l.width:0,h=t.axis==="x"?l.height:0,g=c&&t.x!=null?t.x:g,b=u&&t.y!=null?t.y:b):a&&!p&&(h=t.axis==="x"?l.height:h,d=t.axis==="y"?l.width:d),a=!0,{width:d,height:h,x:g,y:b,top:b,right:g+d,bottom:b+h,left:g}}}}function DS(e){return e!=null&&e.clientX!=null}function AL(e,t={}){const n="rootStore"in e?e.rootStore:e,i=n.useState("open"),a=n.useState("floatingElement"),l=n.useState("domReferenceElement"),c=n.context.dataRef,{enabled:u=!0,axis:p="both"}=t,d=A.useRef(!1),h=A.useRef(null),[g,b]=A.useState(),[y,E]=A.useState([]),_=Qe((O,N,R)=>{d.current||c.current.openEvent&&!DS(c.current.openEvent)||n.set("positionReference",kL(R??l,{x:O,y:N,axis:p,dataRef:c,pointerType:g}))}),x=Qe(O=>{i?h.current||E([]):_(O.clientX,O.clientY,O.currentTarget)}),S=qs(g)?a:i,C=A.useCallback(()=>{if(!S||!u)return;const O=pn(a);function N(R){const P=sr(R);ot(a,P)?(h.current?.(),h.current=null):_(R.clientX,R.clientY)}if(!c.current.openEvent||DS(c.current.openEvent)){const R=()=>{h.current?.(),h.current=null};return h.current=mt(O,"mousemove",N),R}n.set("positionReference",l)},[S,u,a,c,l,n,_]);A.useEffect(()=>C(),[C,y]),A.useEffect(()=>{u&&!a&&(d.current=!1)},[u,a]),A.useEffect(()=>{!u&&i&&(d.current=!0)},[u,i]);const k=A.useMemo(()=>{function O(N){b(N.pointerType)}return{onPointerDown:O,onPointerEnter:O,onMouseMove:x,onMouseEnter:x}},[x]);return A.useMemo(()=>u?{reference:k,trigger:k}:{},[u,k])}const OL={intentional:"onClick",sloppy:"onPointerDown"};function ML(){return!1}function NL(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function ab(e,t={}){const n="rootStore"in e?e.rootStore:e,i=n.useState("open"),a=n.useState("floatingElement"),{dataRef:l}=n.context,{enabled:c=!0,escapeKey:u=!0,outsidePress:p=!0,outsidePressEvent:d="sloppy",referencePress:h=ML,referencePressEvent:g="sloppy",bubbles:b,externalTree:y}=t,E=Zo(y),_=Qe(typeof p=="function"?p:()=>!1),x=typeof p=="function"?_:p,S=x!==!1,C=Qe(()=>d),k=A.useRef(!1),O=A.useRef(!1),N=A.useRef(!1),{escapeKey:R,outsidePress:P}=NL(b),I=A.useRef(null),G=Sr(),U=Sr(),X=Qe(()=>{U.clear(),l.current.insideReactTree=!1}),$=A.useRef(!1),W=A.useRef(""),V=Qe(h),H=Qe(D=>{if(!i||!c||!u||D.key!=="Escape"||$.current)return;const Z=l.current.floatingContext?.nodeId,z=E?bi(E.nodesRef.current,Z):[];if(!R&&z.length>0){let ae=!0;if(z.forEach(be=>{be.context?.open&&!be.context.dataRef.current.__escapeKeyBubbles&&(ae=!1)}),!ae)return}const le=s2(D)?D.nativeEvent:D,ce=ht(Od,le);n.setOpen(!1,ce),!R&&!ce.isPropagationAllowed&&D.stopPropagation()}),B=Qe(()=>{l.current.insideReactTree=!0,U.start(0,X)});A.useEffect(()=>{if(!i||!c)return;l.current.__escapeKeyBubbles=R,l.current.__outsidePressBubbles=P;const D=new ti,Z=new ti;function z(){D.clear(),$.current=!0}function le(){D.start(Id()?5:0,()=>{$.current=!1})}function ce(){N.current=!0,Z.start(0,()=>{N.current=!1})}function ae(){k.current=!1,O.current=!1}function be(){const ge=W.current,ve=ge==="pen"||!ge?"mouse":ge,Ce=C(),ne=typeof Ce=="function"?Ce():Ce;return typeof ne=="string"?ne:ne[ve]}function Ee(ge){const ve=be();return ve==="intentional"&&ge.type!=="click"||ve==="sloppy"&&ge.type==="click"}function ye(ge){const ve=l.current.floatingContext?.nodeId,Ce=E&&bi(E.nodesRef.current,ve).some(ne=>Jr(ge,ne.context?.elements.floating));return Jr(ge,n.select("floatingElement"))||Jr(ge,n.select("domReferenceElement"))||Ce}function De(ge){if(Ee(ge)){X();return}if(l.current.insideReactTree){X();return}const ve=sr(ge),Ce=`[${Ac("inert")}]`,ne=Et(ve)?ve.getRootNode():null,ue=Array.from((Ys(ne)?ne:Ct(n.select("floatingElement"))).querySelectorAll(Ce)),Ie=n.context.triggerElements;if(ve&&(Ie.hasElement(ve)||Ie.hasMatchingElement(We=>ot(We,ve))))return;let Ve=Et(ve)?ve:null;for(;Ve&&!hi(Ve);){const We=vi(Ve);if(hi(We)||!Et(We))break;Ve=We}if(ue.length&&Et(ve)&&!C2(ve)&&!ot(ve,n.select("floatingElement"))&&ue.every(We=>!ot(Ve,We)))return;if(en(ve)&&!("touches"in ge)){const We=hi(ve),ut=xr(ve),At=/auto|scroll/,rn=We||At.test(ut.overflowX),xt=We||At.test(ut.overflowY),On=rn&&ve.clientWidth>0&&ve.scrollWidth>ve.clientWidth,st=xt&&ve.clientHeight>0&&ve.scrollHeight>ve.clientHeight,cn=ut.direction==="rtl",Sn=st&&(cn?ge.offsetX<=ve.offsetWidth-ve.clientWidth:ge.offsetX>ve.clientWidth),gn=On&&ge.offsetY>ve.clientHeight;if(Sn||gn)return}if(ye(ge))return;if(be()==="intentional"&&N.current){Z.clear(),N.current=!1;return}if(typeof x=="function"&&!x(ge))return;const it=l.current.floatingContext?.nodeId,He=E?bi(E.nodesRef.current,it):[];if(He.length>0){let We=!0;if(He.forEach(ut=>{ut.context?.open&&!ut.context.dataRef.current.__outsidePressBubbles&&(We=!1)}),!We)return}n.setOpen(!1,ht(qm,ge)),X()}function qe(ge){be()!=="sloppy"||ge.pointerType==="touch"||!n.select("open")||!c||Jr(ge,n.select("floatingElement"))||Jr(ge,n.select("domReferenceElement"))||De(ge)}function Te(ge){if(be()!=="sloppy"||!n.select("open")||!c||Jr(ge,n.select("floatingElement"))||Jr(ge,n.select("domReferenceElement")))return;const ve=ge.touches[0];ve&&(I.current={startTime:Date.now(),startX:ve.clientX,startY:ve.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},G.start(1e3,()=>{I.current&&(I.current.dismissOnTouchEnd=!1,I.current.dismissOnMouseDown=!1)}))}function $e(ge,ve){const Ce=sr(ge);if(!Ce)return;const ne=mt(Ce,ge.type,()=>{ve(ge),ne()})}function Xe(ge){W.current="touch",$e(ge,Te)}function at(ge){G.clear(),ge.type==="pointerdown"&&(W.current=ge.pointerType),!(ge.type==="mousedown"&&I.current&&!I.current.dismissOnMouseDown)&&$e(ge,ve=>{ve.type==="pointerdown"?qe(ve):De(ve)})}function Se(ge){if(!k.current)return;const ve=O.current;if(ae(),be()==="intentional"){if(ge.type==="pointercancel"){ve&&ce();return}if(!ye(ge)){if(ve){ce();return}typeof x=="function"&&!x(ge)||(Z.clear(),N.current=!0,X())}}}function Ne(ge){if(be()!=="sloppy"||!I.current||Jr(ge,n.select("floatingElement"))||Jr(ge,n.select("domReferenceElement")))return;const ve=ge.touches[0];if(!ve)return;const Ce=Math.abs(ve.clientX-I.current.startX),ne=Math.abs(ve.clientY-I.current.startY),ue=Math.sqrt(Ce*Ce+ne*ne);ue>5&&(I.current.dismissOnTouchEnd=!0),ue>10&&(De(ge),G.clear(),I.current=null)}function ze(ge){$e(ge,Ne)}function ke(ge){be()!=="sloppy"||!I.current||Jr(ge,n.select("floatingElement"))||Jr(ge,n.select("domReferenceElement"))||(I.current.dismissOnTouchEnd&&De(ge),G.clear(),I.current=null)}function Fe(ge){$e(ge,ke)}const me=Ct(a),Ae=gi(u&&gi(mt(me,"keydown",H),mt(me,"compositionstart",z),mt(me,"compositionend",le)),S&&gi(mt(me,"click",at,!0),mt(me,"pointerdown",at,!0),mt(me,"pointerup",Se,!0),mt(me,"pointercancel",Se,!0),mt(me,"mousedown",at,!0),mt(me,"mouseup",Se,!0),mt(me,"touchstart",Xe,!0),mt(me,"touchmove",ze,!0),mt(me,"touchend",Fe,!0)));return()=>{Ae(),D.clear(),Z.clear(),ae(),N.current=!1}},[l,a,u,S,x,i,c,R,P,H,X,C,E,n,G]),A.useEffect(X,[x,X]);const q=A.useMemo(()=>({onKeyDown:H,[OL[g]]:D=>{V()&&n.setOpen(!1,ht(Ia,D.nativeEvent))},...g!=="intentional"&&{onClick(D){V()&&n.setOpen(!1,ht(Ia,D.nativeEvent))}}}),[H,n,g,V]),Q=Qe(D=>{if(!i||!c||D.button!==0)return;const Z=sr(D.nativeEvent);ot(n.select("floatingElement"),Z)&&(k.current||(k.current=!0,O.current=!1))}),ee=Qe(D=>{!i||!c||(D.defaultPrevented||D.nativeEvent.defaultPrevented)&&k.current&&(O.current=!0)}),M=A.useMemo(()=>({onKeyDown:H,onPointerDown:ee,onMouseDown:ee,onClickCapture:B,onMouseDownCapture(D){B(),Q(D)},onPointerDownCapture(D){B(),Q(D)},onMouseUpCapture:B,onTouchEndCapture:B,onTouchMoveCapture:B}),[H,B,Q,ee]);return A.useMemo(()=>c?{reference:q,floating:M,trigger:q}:{},[c,q,M])}function LS(e,t,n){let{reference:i,floating:a}=e;const l=Xr(t),c=Qm(t),u=Zm(c),p=Er(t),d=l==="y",h=i.x+i.width/2-a.width/2,g=i.y+i.height/2-a.height/2,b=i[u]/2-a[u]/2;let y;switch(p){case"top":y={x:h,y:i.y-a.height};break;case"bottom":y={x:h,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:g};break;case"left":y={x:i.x-a.width,y:g};break;default:y={x:i.x,y:i.y}}switch(Wo(t)){case"start":y[c]-=b*(n&&d?-1:1);break;case"end":y[c]+=b*(n&&d?-1:1);break}return y}async function IL(e,t){var n;t===void 0&&(t={});const{x:i,y:a,platform:l,rects:c,elements:u,strategy:p}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:b=!1,padding:y=0}=Xi(t,e),E=i1(y),x=u[b?g==="floating"?"reference":"floating":g],S=ad(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(x)))==null||n?x:x.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(u.floating)),boundary:d,rootBoundary:h,strategy:p})),C=g==="floating"?{x:i,y:a,width:c.floating.width,height:c.floating.height}:c.reference,k=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u.floating)),O=await(l.isElement==null?void 0:l.isElement(k))?await(l.getScale==null?void 0:l.getScale(k))||{x:1,y:1}:{x:1,y:1},N=ad(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:C,offsetParent:k,strategy:p}):C);return{top:(S.top-N.top+E.top)/O.y,bottom:(N.bottom-S.bottom+E.bottom)/O.y,left:(S.left-N.left+E.left)/O.x,right:(N.right-S.right+E.right)/O.x}}const DL=50,LL=async(e,t,n)=>{const{placement:i="bottom",strategy:a="absolute",middleware:l=[],platform:c}=n,u=c.detectOverflow?c:{...c,detectOverflow:IL},p=await(c.isRTL==null?void 0:c.isRTL(t));let d=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:h,y:g}=LS(d,i,p),b=i,y=0;const E={};for(let _=0;_<l.length;_++){const x=l[_];if(!x)continue;const{name:S,fn:C}=x,{x:k,y:O,data:N,reset:R}=await C({x:h,y:g,initialPlacement:i,placement:b,strategy:a,middlewareData:E,rects:d,platform:u,elements:{reference:e,floating:t}});h=k??h,g=O??g,E[S]={...E[S],...N},R&&y<DL&&(y++,typeof R=="object"&&(R.placement&&(b=R.placement),R.rects&&(d=R.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):R.rects),{x:h,y:g}=LS(d,b,p)),_=-1)}return{x:h,y:g,placement:b,strategy:a,middlewareData:E}},PL=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:a,middlewareData:l,rects:c,initialPlacement:u,platform:p,elements:d}=t,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:_=!0,...x}=Xi(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const S=Er(a),C=Xr(u),k=Er(u)===u,O=await(p.isRTL==null?void 0:p.isRTL(d.floating)),N=b||(k||!_?[od(u)]:I2(u)),R=E!=="none";!b&&R&&N.push(...z2(u,_,E,O));const P=[u,...N],I=await p.detectOverflow(t,x),G=[];let U=((i=l.flip)==null?void 0:i.overflows)||[];if(h&&G.push(I[S]),g){const V=N2(a,c,O);G.push(I[V[0]],I[V[1]])}if(U=[...U,{placement:a,overflows:G}],!G.every(V=>V<=0)){var X,$;const V=(((X=l.flip)==null?void 0:X.index)||0)+1,H=P[V];if(H&&(!(g==="alignment"?C!==Xr(H):!1)||U.every(Q=>Xr(Q.placement)===C?Q.overflows[0]>0:!0)))return{data:{index:V,overflows:U},reset:{placement:H}};let B=($=U.filter(q=>q.overflows[0]<=0).sort((q,Q)=>q.overflows[1]-Q.overflows[1])[0])==null?void 0:$.placement;if(!B)switch(y){case"bestFit":{var W;const q=(W=U.filter(Q=>{if(R){const ee=Xr(Q.placement);return ee===C||ee==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(ee=>ee>0).reduce((ee,M)=>ee+M,0)]).sort((Q,ee)=>Q[1]-ee[1])[0])==null?void 0:W[0];q&&(B=q);break}case"initialPlacement":B=u;break}if(a!==B)return{reset:{placement:B}}}return{}}}};function PS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function zS(e){return O2.some(t=>e[t]>=0)}const zL=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:i}=t,{strategy:a="referenceHidden",...l}=Xi(e,t);switch(a){case"referenceHidden":{const c=await i.detectOverflow(t,{...l,elementContext:"reference"}),u=PS(c,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:zS(u)}}}case"escaped":{const c=await i.detectOverflow(t,{...l,altBoundary:!0}),u=PS(c,n.floating);return{data:{escapedOffsets:u,escaped:zS(u)}}}default:return{}}}}},M1=new Set(["left","top"]);async function BL(e,t){const{placement:n,platform:i,elements:a}=e,l=await(i.isRTL==null?void 0:i.isRTL(a.floating)),c=Er(n),u=Wo(n),p=Xr(n)==="y",d=M1.has(c)?-1:1,h=l&&p?-1:1,g=Xi(t,e);let{mainAxis:b,crossAxis:y,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return u&&typeof E=="number"&&(y=u==="end"?E*-1:E),p?{x:y*h,y:b*d}:{x:b*d,y:y*h}}const UL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:a,y:l,placement:c,middlewareData:u}=t,p=await BL(t,e);return c===((n=u.offset)==null?void 0:n.placement)&&(i=u.arrow)!=null&&i.alignmentOffset?{}:{x:a+p.x,y:l+p.y,data:{...p,placement:c}}}}},FL=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:a,platform:l}=t,{mainAxis:c=!0,crossAxis:u=!1,limiter:p={fn:S=>{let{x:C,y:k}=S;return{x:C,y:k}}},...d}=Xi(e,t),h={x:n,y:i},g=await l.detectOverflow(t,d),b=Xr(Er(a)),y=Wm(b);let E=h[y],_=h[b];if(c){const S=y==="y"?"top":"left",C=y==="y"?"bottom":"right",k=E+g[S],O=E-g[C];E=hm(k,E,O)}if(u){const S=b==="y"?"top":"left",C=b==="y"?"bottom":"right",k=_+g[S],O=_-g[C];_=hm(k,_,O)}const x=p.fn({...t,[y]:E,[b]:_});return{...x,data:{x:x.x-n,y:x.y-i,enabled:{[y]:c,[b]:u}}}}}},HL=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:a,rects:l,middlewareData:c}=t,{offset:u=0,mainAxis:p=!0,crossAxis:d=!0}=Xi(e,t),h={x:n,y:i},g=Xr(a),b=Wm(g);let y=h[b],E=h[g];const _=Xi(u,t),x=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(p){const k=b==="y"?"height":"width",O=l.reference[b]-l.floating[k]+x.mainAxis,N=l.reference[b]+l.reference[k]-x.mainAxis;y<O?y=O:y>N&&(y=N)}if(d){var S,C;const k=b==="y"?"width":"height",O=M1.has(Er(a)),N=l.reference[g]-l.floating[k]+(O&&((S=c.offset)==null?void 0:S[g])||0)+(O?0:x.crossAxis),R=l.reference[g]+l.reference[k]+(O?0:((C=c.offset)==null?void 0:C[g])||0)-(O?x.crossAxis:0);E<N?E=N:E>R&&(E=R)}return{[b]:y,[g]:E}}}},jL=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:a,rects:l,platform:c,elements:u}=t,{apply:p=()=>{},...d}=Xi(e,t),h=await c.detectOverflow(t,d),g=Er(a),b=Wo(a),y=Xr(a)==="y",{width:E,height:_}=l.floating;let x,S;g==="top"||g==="bottom"?(x=g,S=b===(await(c.isRTL==null?void 0:c.isRTL(u.floating))?"start":"end")?"left":"right"):(S=g,x=b==="end"?"top":"bottom");const C=_-h.top-h.bottom,k=E-h.left-h.right,O=Xs(_-h[x],C),N=Xs(E-h[S],k),R=!t.middlewareData.shift;let P=O,I=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=k),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(P=C),R&&!b){const U=Pr(h.left,0),X=Pr(h.right,0),$=Pr(h.top,0),W=Pr(h.bottom,0);y?I=E-2*(U!==0||X!==0?U+X:Pr(h.left,h.right)):P=_-2*($!==0||W!==0?$+W:Pr(h.top,h.bottom))}await p({...t,availableWidth:I,availableHeight:P});const G=await c.getDimensions(u.floating);return E!==G.width||_!==G.height?{reset:{rects:!0}}:{}}}};function N1(e){const t=xr(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=en(e),l=a?e.offsetWidth:n,c=a?e.offsetHeight:i,u=id(n)!==l||id(i)!==c;return u&&(n=l,i=c),{width:n,height:i,$:u}}function sb(e){return Et(e)?e:e.contextElement}function js(e){const t=sb(e);if(!en(t))return mi(1);const n=t.getBoundingClientRect(),{width:i,height:a,$:l}=N1(t);let c=(l?id(n.width):n.width)/i,u=(l?id(n.height):n.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!u||!Number.isFinite(u))&&(u=1),{x:c,y:u}}const GL=mi(0);function I1(e){const t=pn(e);return!Id()||!t.visualViewport?GL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $L(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==pn(e)?!1:t}function Da(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),l=sb(e);let c=mi(1);t&&(i?Et(i)&&(c=js(i)):c=js(e));const u=$L(l,n,i)?I1(l):mi(0);let p=(a.left+u.x)/c.x,d=(a.top+u.y)/c.y,h=a.width/c.x,g=a.height/c.y;if(l){const b=pn(l),y=i&&Et(i)?pn(i):i;let E=b,_=fm(E);for(;_&&i&&y!==E;){const x=js(_),S=_.getBoundingClientRect(),C=xr(_),k=S.left+(_.clientLeft+parseFloat(C.paddingLeft))*x.x,O=S.top+(_.clientTop+parseFloat(C.paddingTop))*x.y;p*=x.x,d*=x.y,h*=x.x,g*=x.y,p+=k,d+=O,E=pn(_),_=fm(E)}}return ad({width:h,height:g,x:p,y:d})}function Bd(e,t){const n=Dd(e).scrollLeft;return t?t.left+n:Da(Si(e)).left+n}function D1(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-Bd(e,n),a=n.top+t.scrollTop;return{x:i,y:a}}function qL(e){let{elements:t,rect:n,offsetParent:i,strategy:a}=e;const l=a==="fixed",c=Si(i),u=t?Nd(t.floating):!1;if(i===c||u&&l)return n;let p={scrollLeft:0,scrollTop:0},d=mi(1);const h=mi(0),g=en(i);if((g||!g&&!l)&&((Jn(i)!=="body"||Xo(c))&&(p=Dd(i)),g)){const y=Da(i);d=js(i),h.x=y.x+i.clientLeft,h.y=y.y+i.clientTop}const b=c&&!g&&!l?D1(c,p):mi(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-p.scrollLeft*d.x+h.x+b.x,y:n.y*d.y-p.scrollTop*d.y+h.y+b.y}}function VL(e){return Array.from(e.getClientRects())}function YL(e){const t=Si(e),n=Dd(e),i=e.ownerDocument.body,a=Pr(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),l=Pr(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let c=-n.scrollLeft+Bd(e);const u=-n.scrollTop;return xr(i).direction==="rtl"&&(c+=Pr(t.clientWidth,i.clientWidth)-a),{width:a,height:l,x:c,y:u}}const BS=25;function KL(e,t){const n=pn(e),i=Si(e),a=n.visualViewport;let l=i.clientWidth,c=i.clientHeight,u=0,p=0;if(a){l=a.width,c=a.height;const h=Id();(!h||h&&t==="fixed")&&(u=a.offsetLeft,p=a.offsetTop)}const d=Bd(i);if(d<=0){const h=i.ownerDocument,g=h.body,b=getComputedStyle(g),y=h.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(i.clientWidth-g.clientWidth-y);E<=BS&&(l-=E)}else d<=BS&&(l+=d);return{width:l,height:c,x:u,y:p}}function XL(e,t){const n=Da(e,!0,t==="fixed"),i=n.top+e.clientTop,a=n.left+e.clientLeft,l=en(e)?js(e):mi(1),c=e.clientWidth*l.x,u=e.clientHeight*l.y,p=a*l.x,d=i*l.y;return{width:c,height:u,x:p,y:d}}function US(e,t,n){let i;if(t==="viewport")i=KL(e,n);else if(t==="document")i=YL(Si(e));else if(Et(t))i=XL(t,n);else{const a=I1(e);i={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return ad(i)}function L1(e,t){const n=vi(e);return n===t||!Et(n)||hi(n)?!1:xr(n).position==="fixed"||L1(n,t)}function WL(e,t){const n=t.get(e);if(n)return n;let i=kc(e,[],!1).filter(u=>Et(u)&&Jn(u)!=="body"),a=null;const l=xr(e).position==="fixed";let c=l?vi(e):e;for(;Et(c)&&!hi(c);){const u=xr(c),p=Km(c);!p&&u.position==="fixed"&&(a=null),(l?!p&&!a:!p&&u.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Xo(c)&&!p&&L1(e,c))?i=i.filter(h=>h!==c):a=u,c=vi(c)}return t.set(e,i),i}function ZL(e){let{element:t,boundary:n,rootBoundary:i,strategy:a}=e;const c=[...n==="clippingAncestors"?Nd(t)?[]:WL(t,this._c):[].concat(n),i],u=US(t,c[0],a);let p=u.top,d=u.right,h=u.bottom,g=u.left;for(let b=1;b<c.length;b++){const y=US(t,c[b],a);p=Pr(y.top,p),d=Xs(y.right,d),h=Xs(y.bottom,h),g=Pr(y.left,g)}return{width:d-g,height:h-p,x:g,y:p}}function QL(e){const{width:t,height:n}=N1(e);return{width:t,height:n}}function JL(e,t,n){const i=en(t),a=Si(t),l=n==="fixed",c=Da(e,!0,l,t);let u={scrollLeft:0,scrollTop:0};const p=mi(0);function d(){p.x=Bd(a)}if(i||!i&&!l)if((Jn(t)!=="body"||Xo(a))&&(u=Dd(t)),i){const y=Da(t,!0,l,t);p.x=y.x+t.clientLeft,p.y=y.y+t.clientTop}else a&&d();l&&!i&&a&&d();const h=a&&!i&&!l?D1(a,u):mi(0),g=c.left+u.scrollLeft-p.x-h.x,b=c.top+u.scrollTop-p.y-h.y;return{x:g,y:b,width:c.width,height:c.height}}function wg(e){return xr(e).position==="static"}function FS(e,t){if(!en(e)||xr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Si(e)===n&&(n=n.ownerDocument.body),n}function P1(e,t){const n=pn(e);if(Nd(e))return n;if(!en(e)){let a=vi(e);for(;a&&!hi(a);){if(Et(a)&&!wg(a))return a;a=vi(a)}return n}let i=FS(e,t);for(;i&&h2(i)&&wg(i);)i=FS(i,t);return i&&hi(i)&&wg(i)&&!Km(i)?n:i||b2(e)||n}const eP=async function(e){const t=this.getOffsetParent||P1,n=this.getDimensions,i=await n(e.floating);return{reference:JL(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function tP(e){return xr(e).direction==="rtl"}const nP={convertOffsetParentRelativeRectToViewportRelativeRect:qL,getDocumentElement:Si,getClippingRect:ZL,getOffsetParent:P1,getElementRects:eP,getClientRects:VL,getDimensions:QL,getScale:js,isElement:Et,isRTL:tP};function z1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rP(e,t){let n=null,i;const a=Si(e);function l(){var u;clearTimeout(i),(u=n)==null||u.disconnect(),n=null}function c(u,p){u===void 0&&(u=!1),p===void 0&&(p=1),l();const d=e.getBoundingClientRect(),{left:h,top:g,width:b,height:y}=d;if(u||t(),!b||!y)return;const E=Ta(g),_=Ta(a.clientWidth-(h+b)),x=Ta(a.clientHeight-(g+y)),S=Ta(h),k={rootMargin:-E+"px "+-_+"px "+-x+"px "+-S+"px",threshold:Pr(0,Xs(1,p))||1};let O=!0;function N(R){const P=R[0].intersectionRatio;if(P!==p){if(!O)return c();P?c(!1,P):i=setTimeout(()=>{c(!1,1e-7)},1e3)}P===1&&!z1(d,e.getBoundingClientRect())&&c(),O=!1}try{n=new IntersectionObserver(N,{...k,root:a.ownerDocument})}catch{n=new IntersectionObserver(N,k)}n.observe(e)}return c(!0),l}function HS(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,d=sb(e),h=a||l?[...d?kc(d):[],...t?kc(t):[]]:[];h.forEach(S=>{a&&S.addEventListener("scroll",n,{passive:!0}),l&&S.addEventListener("resize",n)});const g=d&&u?rP(d,n):null;let b=-1,y=null;c&&(y=new ResizeObserver(S=>{let[C]=S;C&&C.target===d&&y&&t&&(y.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var k;(k=y)==null||k.observe(t)})),n()}),d&&!p&&y.observe(d),t&&y.observe(t));let E,_=p?Da(e):null;p&&x();function x(){const S=Da(e);_&&!z1(_,S)&&n(),_=S,E=requestAnimationFrame(x)}return n(),()=>{var S;h.forEach(C=>{a&&C.removeEventListener("scroll",n),l&&C.removeEventListener("resize",n)}),g?.(),(S=y)==null||S.disconnect(),y=null,p&&cancelAnimationFrame(E)}}const iP=UL,oP=FL,aP=PL,sP=jL,lP=zL,cP=HL,uP=(e,t,n)=>{const i=new Map,a={platform:nP,...n},l={...a.platform,_c:i};return LL(e,t,{...a,platform:l})};var fP=typeof document<"u",dP=function(){},qf=fP?A.useLayoutEffect:dP;function ud(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,a;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(!ud(e[i],t[i]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,a[i]))return!1;for(i=n;i--!==0;){const l=a[i];if(!(l==="_owner"&&e.$$typeof)&&!ud(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function B1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jS(e,t){const n=B1(e);return Math.round(t*n)/n}function Rg(e){const t=A.useRef(e);return qf(()=>{t.current=e}),t}function pP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:a,elements:{reference:l,floating:c}={},transform:u=!0,whileElementsMounted:p,open:d}=e,[h,g]=A.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,y]=A.useState(i);ud(b,i)||y(i);const[E,_]=A.useState(null),[x,S]=A.useState(null),C=A.useCallback(Q=>{Q!==R.current&&(R.current=Q,_(Q))},[]),k=A.useCallback(Q=>{Q!==P.current&&(P.current=Q,S(Q))},[]),O=l||E,N=c||x,R=A.useRef(null),P=A.useRef(null),I=A.useRef(h),G=p!=null,U=Rg(p),X=Rg(a),$=Rg(d),W=A.useCallback(()=>{if(!R.current||!P.current)return;const Q={placement:t,strategy:n,middleware:b};X.current&&(Q.platform=X.current),uP(R.current,P.current,Q).then(ee=>{const M={...ee,isPositioned:$.current!==!1};V.current&&!ud(I.current,M)&&(I.current=M,yi.flushSync(()=>{g(M)}))})},[b,t,n,X,$]);qf(()=>{d===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,g(Q=>({...Q,isPositioned:!1})))},[d]);const V=A.useRef(!1);qf(()=>(V.current=!0,()=>{V.current=!1}),[]),qf(()=>{if(O&&(R.current=O),N&&(P.current=N),O&&N){if(U.current)return U.current(O,N,W);W()}},[O,N,W,U,G]);const H=A.useMemo(()=>({reference:R,floating:P,setReference:C,setFloating:k}),[C,k]),B=A.useMemo(()=>({reference:O,floating:N}),[O,N]),q=A.useMemo(()=>{const Q={position:n,left:0,top:0};if(!B.floating)return Q;const ee=jS(B.floating,h.x),M=jS(B.floating,h.y);return u?{...Q,transform:"translate("+ee+"px, "+M+"px)",...B1(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ee,top:M}},[n,u,B.floating,h.x,h.y]);return A.useMemo(()=>({...h,update:W,refs:H,elements:B,floatingStyles:q}),[h,W,H,B,q])}const hP=(e,t)=>{const n=iP(e);return{name:n.name,fn:n.fn,options:[e,t]}},gP=(e,t)=>{const n=oP(e);return{name:n.name,fn:n.fn,options:[e,t]}},mP=(e,t)=>({fn:cP(e).fn,options:[e,t]}),bP=(e,t)=>{const n=aP(e);return{name:n.name,fn:n.fn,options:[e,t]}},yP=(e,t)=>{const n=sP(e);return{name:n.name,fn:n.fn,options:[e,t]}},vP=(e,t)=>{const n=lP(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ye=(e,t,n,i,a,l,...c)=>{if(c.length>0)throw new Error(Vn(1));let u;if(e)u=e;else throw new Error("Missing arguments");return u};var U1=ww();const EP=tb(19),SP=EP?_P:wP;function F1(e,t,n,i,a){return SP(e,t,n,i,a)}function xP(e,t,n,i,a){const l=A.useCallback(()=>t(e.getSnapshot(),n,i,a),[e,t,n,i,a]);return U1.useSyncExternalStore(e.subscribe,l,l)}JD({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){const i=e.syncHooks[n],a=i.selector(i.store.state,i.a1,i.a2,i.a3);(i.didChange||!Object.is(i.value,a))&&(t=!0,i.value=a,i.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{const n=new Set;for(const a of e.syncHooks)n.add(a.store);const i=[];for(const a of n)i.push(a.subscribe(t));return()=>{for(const a of i)a()}}),U1.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function _P(e,t,n,i,a){const l=QD();if(!l)return xP(e,t,n,i,a);const c=l.syncIndex;l.syncIndex+=1;let u;return l.didInitialize?(u=l.syncHooks[c],(u.store!==e||u.selector!==t||!Object.is(u.a1,n)||!Object.is(u.a2,i)||!Object.is(u.a3,a))&&(u.store!==e&&(l.didChangeStore=!0),u.store=e,u.selector=t,u.a1=n,u.a2=i,u.a3=a,u.didChange=!0)):(u={store:e,selector:t,a1:n,a2:i,a3:a,value:t(e.getSnapshot(),n,i,a),didChange:!1},l.syncHooks.push(u)),u.value}function wP(e,t,n,i,a){return Rw.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,l=>t(l,n,i,a))}class RP{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const i of this.listeners){if(n!==this.updateTick)return;i(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,i,a){return F1(this,t,n,i,a)}}class Ud extends RP{constructor(t,n={},i){super(t),this.context=n,this.selectors=i}useSyncedValue(t,n){A.useDebugValue(t),Me(()=>{this.state[t]!==n&&this.set(t,n)},[t,n])}useSyncedValueWithCleanup(t,n){const i=this;Me(()=>(i.state[t]!==n&&i.set(t,n),()=>{i.set(t,void 0)}),[i,t,n])}useSyncedValues(t){const n=this,i=Object.values(t);Me(()=>{n.update(t)},[n,...i])}useControlledProp(t,n){A.useDebugValue(t);const i=n!==void 0;Me(()=>{i&&!Object.is(this.state[t],n)&&super.setState({...this.state,[t]:n})},[t,n,i])}select(t,n,i,a){const l=this.selectors[t];return l(this.state,n,i,a)}useState(t,n,i,a){return A.useDebugValue(t),F1(this,this.selectors[t],n,i,a)}useContextCallback(t,n){A.useDebugValue(t);const i=Qe(n??Zn);this.context[t]=i}useStateSetter(t){const n=A.useRef(void 0);return n.current===void 0&&(n.current=i=>{this.set(t,i)}),n.current}observe(t,n){let i;typeof t=="function"?i=t:i=this.selectors[t];let a=i(this.state);return n(a,a,this),this.subscribe(l=>{const c=i(l);if(!Object.is(a,c)){const u=a;a=c,n(c,u,this)}})}}const TP={open:Ye(e=>e.open),transitionStatus:Ye(e=>e.transitionStatus),domReferenceElement:Ye(e=>e.domReferenceElement),referenceElement:Ye(e=>e.positionReference??e.referenceElement),floatingElement:Ye(e=>e.floatingElement),floatingId:Ye(e=>e.floatingId)};class lb extends Ud{constructor(t){const{syncOnly:n,nested:i,onOpenChange:a,triggerElements:l,...c}=t;super({...c,positionReference:c.referenceElement,domReferenceElement:c.referenceElement},{onOpenChange:a,dataRef:{current:{}},events:T1(),nested:i,triggerElements:l},TP),this.syncOnly=n}syncOpenEvent=(t,n)=>{(!t||!this.state.open||n!=null&&Vw(n))&&(this.context.dataRef.current.openEvent=t?n:void 0)};dispatchOpenChange=(t,n)=>{this.syncOpenEvent(t,n.event);const i={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",i)};setOpen=(t,n)=>{if(this.syncOnly){this.context.onOpenChange?.(t,n);return}this.dispatchOpenChange(t,n),this.context.onOpenChange?.(t,n)}}function H1(e,t=!1,n=!1){const[i,a]=A.useState(e&&t?"idle":void 0),[l,c]=A.useState(e);return e&&!l&&(c(!0),a("starting")),!e&&l&&i!=="ending"&&!n&&a("ending"),!e&&!l&&i==="ending"&&a(void 0),Me(()=>{if(!e&&l&&i!=="ending"&&n){const u=dn.request(()=>{a("ending")});return()=>{dn.cancel(u)}}},[e,l,i,n]),Me(()=>{if(!e||t)return;const u=dn.request(()=>{a(void 0)});return()=>{dn.cancel(u)}},[t,e]),Me(()=>{if(!e||!t)return;e&&l&&i!=="idle"&&a("starting");const u=dn.request(()=>{a("idle")});return()=>{dn.cancel(u)}},[t,e,l,i]),{mounted:l,setMounted:c,transitionStatus:i}}let La=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const CP={[La.startingStyle]:""},kP={[La.endingStyle]:""},Qs={transitionStatus(e){return e==="starting"?CP:e==="ending"?kP:null}};function cb(e,t=!1,n=!0){const i=Ld();return Qe((a,l=null)=>{i.cancel();const c=qi(e);if(c==null)return;const u=c,p=()=>{yi.flushSync(a)};if(typeof u.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){a();return}function d(){Promise.all(u.getAnimations().map(h=>h.finished)).then(()=>{l?.aborted||p()}).catch(()=>{if(n){l?.aborted||p();return}const h=u.getAnimations();!l?.aborted&&h.length>0&&h.some(g=>g.pending||g.playState!=="finished")&&d()})}if(t){const h=La.startingStyle;if(!u.hasAttribute(h)){i.request(d);return}const g=new MutationObserver(()=>{u.hasAttribute(h)||(g.disconnect(),d())});g.observe(u,{attributes:!0,attributeFilter:[h]}),l?.addEventListener("abort",()=>g.disconnect(),{once:!0});return}i.request(d)})}function Uc(e){const{enabled:t=!0,open:n,ref:i,onComplete:a}=e,l=Qe(a),c=cb(i,n,!1);A.useEffect(()=>{if(!t)return;const u=new AbortController;return c(l,u.signal),()=>{u.abort()}},[t,n,l,c])}function AP(e,t){const n=A.useRef(null),i=A.useRef(null);return A.useCallback(a=>{if(e!==void 0){if(n.current!==null){const l=n.current,c=i.current,u=t.context.triggerElements.getById(l);c&&u===c&&t.context.triggerElements.delete(l),n.current=null,i.current=null}a!==null&&(n.current=e,i.current=a,t.context.triggerElements.add(e,a))}},[t,e])}function j1(e,t,n,i){const a=n.useState("isMountedByTrigger",e),l=AP(e,n),c=Qe(u=>{if(l(u),!u||!n.select("open"))return;const p=n.select("activeTriggerId");if(p===e){n.update({activeTriggerElement:u,...i});return}p==null&&n.update({activeTriggerId:e,activeTriggerElement:u,...i})});return Me(()=>{a&&n.update({activeTriggerElement:t.current,...i})},[a,n,t,...Object.values(i)]),{registerTrigger:c,isMountedByThisTrigger:a}}function ub(e){const t=e.useState("open");Me(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const n=e.context.triggerElements.entries().next();if(!n.done){const[i,a]=n.value;e.update({activeTriggerId:i,activeTriggerElement:a})}}},[t,e])}function fb(e,t,n){const{mounted:i,setMounted:a,transitionStatus:l}=H1(e);t.useSyncedValues({mounted:i,transitionStatus:l});const c=Qe(()=>{a(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),u=t.useState("preventUnmountingOnClose");return Uc({enabled:!u,open:e,ref:t.context.popupRef,onComplete(){e||c()}}),{forceUnmount:c,transitionStatus:l}}class Fc{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,n){const i=this.idMap.get(t);i!==n&&(i!==void 0&&this.elementsSet.delete(i),this.elementsSet.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elementsSet.delete(n),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(const n of this.elementsSet)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function OP(){return new lb({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Fc,floatingId:"",syncOnly:!1,nested:!1,onOpenChange:void 0})}function db(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:OP(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:An,inactiveTriggerProps:An,popupProps:An}}const bf=Ye(e=>e.triggerIdProp??e.activeTriggerId),pb={open:Ye(e=>e.openProp??e.open),mounted:Ye(e=>e.mounted),transitionStatus:Ye(e=>e.transitionStatus),floatingRootContext:Ye(e=>e.floatingRootContext),preventUnmountingOnClose:Ye(e=>e.preventUnmountingOnClose),payload:Ye(e=>e.payload),activeTriggerId:bf,activeTriggerElement:Ye(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:Ye((e,t)=>t!==void 0&&bf(e)===t),isOpenedByTrigger:Ye((e,t)=>t!==void 0&&bf(e)===t&&e.open),isMountedByTrigger:Ye((e,t)=>t!==void 0&&bf(e)===t&&e.mounted),triggerProps:Ye((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:Ye(e=>e.popupProps),popupElement:Ye(e=>e.popupElement),positionerElement:Ye(e=>e.positionerElement)};function MP(e){const{open:t=!1,onOpenChange:n,elements:i={}}=e,a=Ha(),l=Ji()!=null,c=$n(()=>new lb({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:i.reference??null,floatingElement:i.floating??null,triggerElements:new Fc,floatingId:a,syncOnly:!1,nested:l})).current;return Me(()=>{const u={open:t,floatingId:a};i.reference!==void 0&&(u.referenceElement=i.reference,u.domReferenceElement=Et(i.reference)?i.reference:null),i.floating!==void 0&&(u.floatingElement=i.floating),c.update(u)},[t,a,i.reference,i.floating,c]),c.context.onOpenChange=n,c.context.nested=l,c}function NP(e={}){const{nodeId:t,externalTree:n}=e,i=MP(e),a=e.rootContext||i,l={reference:a.useState("referenceElement"),floating:a.useState("floatingElement"),domReference:a.useState("domReferenceElement")},[c,u]=A.useState(null),p=A.useRef(null),d=Zo(n);Me(()=>{l.domReference&&(p.current=l.domReference)},[l.domReference]);const h=pP({...e,elements:{...l,...c&&{reference:c}}}),g=A.useCallback(I=>{const G=Et(I)?{getBoundingClientRect:()=>I.getBoundingClientRect(),getClientRects:()=>I.getClientRects(),contextElement:I}:I;u(G),h.refs.setReference(G)},[h.refs]),[b,y]=A.useState(void 0),[E,_]=A.useState(null);a.useSyncedValue("referenceElement",b??null);const x=Et(b)?b:null;a.useSyncedValue("domReferenceElement",b===void 0?l.domReference:x),a.useSyncedValue("floatingElement",E);const S=A.useCallback(I=>{(Et(I)||I===null)&&(p.current=I,y(I)),(Et(h.refs.reference.current)||h.refs.reference.current===null||I!==null&&!Et(I))&&h.refs.setReference(I)},[h.refs,y]),C=A.useCallback(I=>{_(I),h.refs.setFloating(I)},[h.refs]),k=A.useMemo(()=>({...h.refs,setReference:S,setFloating:C,setPositionReference:g,domReference:p}),[h.refs,S,C,g]),O=A.useMemo(()=>({...h.elements,domReference:l.domReference}),[h.elements,l.domReference]),N=a.useState("open"),R=a.useState("floatingId"),P=A.useMemo(()=>({...h,dataRef:a.context.dataRef,open:N,onOpenChange:a.setOpen,events:a.context.events,floatingId:R,refs:k,elements:O,nodeId:t,rootStore:a}),[h,k,O,t,a,N,R]);return Me(()=>{a.context.dataRef.current.floatingContext=P;const I=d?.nodesRef.current.find(G=>G.id===t);I&&(I.context=P)}),A.useMemo(()=>({...h,context:P,refs:k,elements:O,rootStore:a}),[h,k,O,P,a])}function hb(e){const{popupStore:t,treatPopupAsFloatingElement:n=!1,onOpenChange:i}=e,a=Ha(),l=Ji()!=null,c=t.useState("open"),u=t.useState("activeTriggerElement"),p=t.useState(n?"popupElement":"positionerElement"),d=t.context.triggerElements,h=$n(()=>new lb({open:c,transitionStatus:void 0,referenceElement:u,floatingElement:p,triggerElements:d,onOpenChange:i,floatingId:a,syncOnly:!0,nested:l})).current;return Me(()=>{const g={open:c,floatingId:a,referenceElement:u,floatingElement:p};Et(u)&&(g.domReferenceElement=u),h.state.positionReference===h.state.referenceElement&&(g.positionReference=u),h.update(g)},[c,a,u,p,h]),h.context.onOpenChange=i,h.context.nested=l,h}const Tg=jw&&Hw;function G1(e,t={}){const n="rootStore"in e?e.rootStore:e,{events:i,dataRef:a}=n.context,{enabled:l=!0,delay:c}=t,u=A.useRef(!1),p=A.useRef(null),d=Sr(),h=A.useRef(!0);A.useEffect(()=>{const b=n.select("domReferenceElement");if(!l)return;const y=pn(b);function E(){const S=n.select("domReferenceElement");!n.select("open")&&en(S)&&S===Lr(Ct(S))&&(u.current=!0)}function _(){h.current=!0}function x(){h.current=!1}return gi(mt(y,"blur",E),Tg&&mt(y,"keydown",_,!0),Tg&&mt(y,"pointerdown",x,!0))},[n,l]),A.useEffect(()=>{if(!l)return;function b(y){if(y.reason===Ia||y.reason===Od){const E=n.select("domReferenceElement");Et(E)&&(p.current=E,u.current=!0)}}return i.on("openchange",b),()=>{i.off("openchange",b)}},[i,l,n]);const g=A.useMemo(()=>({onMouseLeave(){u.current=!1,p.current=null},onFocus(b){const y=b.currentTarget;if(u.current){if(p.current===y)return;u.current=!1,p.current=null}const E=sr(b.nativeEvent);if(Et(E)){if(Tg&&!b.relatedTarget){if(!h.current&&!Pd(E))return}else if(!A2(E))return}const _=nd(b.relatedTarget,n.context.triggerElements),{nativeEvent:x,currentTarget:S}=b,C=typeof c=="function"?c():c;if(n.select("open")&&_||C===0||C===void 0){n.setOpen(!0,ht(Us,x,S));return}d.start(C,()=>{u.current||n.setOpen(!0,ht(Us,x,S))})},onBlur(b){u.current=!1,p.current=null;const y=b.relatedTarget,E=b.nativeEvent,_=Et(y)&&y.hasAttribute(Ac("focus-guard"))&&y.getAttribute("data-type")==="outside";d.start(0,()=>{const x=n.select("domReferenceElement"),S=Lr(Ct(x));!y&&S===x||ot(a.current.floatingContext?.refs.floating.current,S)||ot(x,S)||_||nd(y??S,n.context.triggerElements)||n.setOpen(!1,ht(Us,E))})}}),[a,n,d,c]);return A.useMemo(()=>l?{reference:g,trigger:g}:{},[l,g])}class gb{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new ti,this.restTimeout=new ti,this.handleCloseOptions=void 0}static create(){return new gb}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}const fd=new WeakMap;function dd(e){if(!e.performedPointerEventsMutation)return;const t=e.pointerEventsScopeElement;t&&fd.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),fd.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function $1(e,t){const{scopeElement:n,referenceElement:i,floatingElement:a}=t,l=fd.get(n);l&&l!==e&&dd(l),dd(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=i,e.pointerEventsFloatingElement=a,fd.set(n,e),n.style.pointerEvents="none",i.style.pointerEvents="auto",a.style.pointerEvents="auto"}function q1(e){const t=$n(gb.create).current,n=e.context.dataRef.current;return n.hoverInteractionState||(n.hoverInteractionState=t),Ad(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}function V1(e,t={}){const n="rootStore"in e?e.rootStore:e,i=n.useState("open"),a=n.useState("floatingElement"),l=n.useState("domReferenceElement"),{dataRef:c}=n.context,{enabled:u=!0,closeDelay:p=0,nodeId:d}=t,h=q1(n),g=Zo(),b=Ji(),y=Qe(()=>Yw(c.current.openEvent?.type,h.interactedInside)),E=Qe(()=>{const O=c.current.openEvent?.type;return O?.includes("mouse")&&O!=="mousedown"}),_=Qe(O=>nd(O,n.context.triggerElements)),x=A.useCallback(O=>{const N=td(p,"close",h.pointerType),R=()=>{n.setOpen(!1,ht(Wn,O)),g?.events.emit("floating.closed",O)};N?h.openChangeTimeout.start(N,R):(h.openChangeTimeout.clear(),R())},[p,n,h,g]),S=Qe(()=>{dd(h)}),C=Qe(O=>{const N=sr(O);if(!k2(N)){h.interactedInside=!1;return}h.interactedInside=N?.closest("[aria-haspopup]")!=null});Me(()=>{i||(h.pointerType=void 0,h.restTimeoutPending=!1,h.interactedInside=!1,S())},[i,h,S]),A.useEffect(()=>S,[S]),Me(()=>{if(u&&i&&h.handleCloseOptions?.blockPointerEvents&&E()&&Et(l)&&a){const O=l,N=a,R=Ct(a),P=g?.nodesRef.current.find(G=>G.id===b)?.context?.elements.floating;P&&(P.style.pointerEvents="");const I=h.handleCloseOptions?.getScope?.()??h.pointerEventsScopeElement??P??O.closest("[data-rootownerid]")??R.body;return $1(h,{scopeElement:I,referenceElement:O,floatingElement:N}),()=>{S()}}},[u,i,l,a,h,E,g,b,S]);const k=Sr();A.useEffect(()=>{if(!u)return;function O(){h.openChangeTimeout.clear(),k.clear(),g?.events.off("floating.closed",R),S()}function N(I){if(g&&b&&bi(g.nodesRef.current,b).length>0){g.events.on("floating.closed",R);return}if(_(I.relatedTarget))return;const G=c.current.floatingContext?.nodeId??d,U=I.relatedTarget;if(!(g&&G&&Et(U)&&bi(g.nodesRef.current,G,!1).some($=>ot($.context?.elements.floating,U)))){if(h.handler){h.handler(I);return}S(),y()||x(I)}}function R(I){!g||!b||bi(g.nodesRef.current,b).length>0||k.start(0,()=>{g.events.off("floating.closed",R),n.setOpen(!1,ht(Wn,I)),g.events.emit("floating.closed",I)})}const P=a;return gi(P&&mt(P,"mouseenter",O),P&&mt(P,"mouseleave",N),P&&mt(P,"pointerdown",C,!0),()=>{g?.events.off("floating.closed",R)})},[u,a,n,c,d,y,_,x,S,C,h,g,b,k])}const IP={current:null};function Y1(e,t={}){const n="rootStore"in e?e.rootStore:e,{dataRef:i,events:a}=n.context,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:p=!1,restMs:d=0,move:h=!0,triggerElementRef:g=IP,externalTree:b,isActiveTrigger:y=!0,getHandleCloseContext:E,isClosing:_}=t,x=Zo(b),S=q1(n),C=A.useRef(!1),k=Gn(u),O=Gn(c),N=Gn(d),R=Gn(l),P=Gn(_);y&&(S.handleCloseOptions=k.current?.__options);const I=Qe(()=>Yw(i.current.openEvent?.type,S.interactedInside)),G=Qe(V=>nd(V,n.context.triggerElements)),U=Qe((V,H,B)=>{const q=n.context.triggerElements;if(q.hasElement(H))return!V||!ot(V,H);if(!Et(B))return!1;const Q=B;return q.hasMatchingElement(ee=>ot(ee,Q))&&(!V||!ot(V,Q))}),X=Qe((V,H=!0)=>{const B=td(O.current,"close",S.pointerType);B?S.openChangeTimeout.start(B,()=>{n.setOpen(!1,ht(Wn,V)),x?.events.emit("floating.closed",V)}):H&&(S.openChangeTimeout.clear(),n.setOpen(!1,ht(Wn,V)),x?.events.emit("floating.closed",V))}),$=Qe(()=>{if(!S.handler)return;Ct(n.select("domReferenceElement")).removeEventListener("mousemove",S.handler),S.handler=void 0}),W=Qe(()=>{dd(S)});return A.useEffect(()=>$,[$]),A.useEffect(()=>{if(!l)return;function V(H){H.open?C.current=!1:(C.current=H.reason===Wn,$(),S.openChangeTimeout.clear(),S.restTimeout.clear(),S.blockMouseMove=!0,S.restTimeoutPending=!1)}return a.on("openchange",V),()=>{a.off("openchange",V)}},[l,a,S,$]),A.useEffect(()=>{if(!l)return;const V=g.current??(y?n.select("domReferenceElement"):null);if(!Et(V))return;function H(q){if(S.openChangeTimeout.clear(),S.blockMouseMove=!1,p&&!qs(S.pointerType))return;const Q=vS(N.current),ee=td(O.current,"open",S.pointerType),M=sr(q),D=q.currentTarget??null,Z=n.select("domReferenceElement");let z=D;if(Et(M)&&!n.context.triggerElements.hasElement(M)){for(const Te of n.context.triggerElements.elements())if(ot(Te,M)){z=Te;break}}Et(D)&&Et(Z)&&!n.context.triggerElements.hasElement(D)&&ot(D,Z)&&(z=Z);const le=z==null?!1:U(Z,z,M),ce=n.select("open"),ae=P.current?.()??n.select("transitionStatus")==="ending",be=!ce&&ae&&C.current,Ee=!le&&Et(z)&&Et(Z)&&ot(Z,z)&&be,ye=Q>0&&!ee,De=le&&(ce||be)||Ee,qe=!ce||le;if(De){n.setOpen(!0,ht(Wn,q,z));return}ye||(ee?S.openChangeTimeout.start(ee,()=>{qe&&n.setOpen(!0,ht(Wn,q,z))}):qe&&n.setOpen(!0,ht(Wn,q,z)))}function B(q){if(I()){W();return}$();const Q=n.select("domReferenceElement"),ee=Ct(Q);S.restTimeout.clear(),S.restTimeoutPending=!1;const M=i.current.floatingContext??E?.();if(G(q.relatedTarget))return;if(k.current&&M){n.select("open")||S.openChangeTimeout.clear();const z=g.current;S.handler=k.current({...M,tree:x,x:q.clientX,y:q.clientY,onClose(){W(),$(),R.current&&!I()&&z===n.select("domReferenceElement")&&X(q,!0)}}),ee.addEventListener("mousemove",S.handler),S.handler(q);return}(S.pointerType!=="touch"||!ot(n.select("floatingElement"),q.relatedTarget))&&X(q)}return h?gi(mt(V,"mousemove",H,{once:!0}),mt(V,"mouseenter",H),mt(V,"mouseleave",B)):gi(mt(V,"mouseenter",H),mt(V,"mouseleave",B))},[$,W,i,O,X,n,l,k,S,y,U,I,G,p,h,N,g,x,R,E,P]),A.useMemo(()=>{if(!l)return;function V(H){S.pointerType=H.pointerType}return{onPointerDown:V,onPointerEnter:V,onMouseMove(H){const{nativeEvent:B}=H,q=H.currentTarget,Q=n.select("domReferenceElement"),ee=n.select("open"),M=U(Q,q,H.target);if(p&&!qs(S.pointerType))return;if(ee&&M&&S.handleCloseOptions?.blockPointerEvents){const z=n.select("floatingElement");if(z){const le=S.handleCloseOptions?.getScope?.()??q.ownerDocument.body;$1(S,{scopeElement:le,referenceElement:q,floatingElement:z})}}const D=vS(N.current);if(ee&&!M||D===0||!M&&S.restTimeoutPending&&H.movementX**2+H.movementY**2<2)return;S.restTimeout.clear();function Z(){if(S.restTimeoutPending=!1,I())return;const z=n.select("open");!S.blockMouseMove&&(!z||M)&&n.setOpen(!0,ht(Wn,B,q))}S.pointerType==="touch"?yi.flushSync(()=>{Z()}):M&&ee?Z():(S.restTimeoutPending=!0,S.restTimeout.start(D,Z))}}},[l,S,I,U,p,n,N])}function Fd(e=[]){const t=e.map(d=>d?.reference),n=e.map(d=>d?.floating),i=e.map(d=>d?.item),a=e.map(d=>d?.trigger),l=A.useCallback(d=>yf(d,e,"reference"),t),c=A.useCallback(d=>yf(d,e,"floating"),n),u=A.useCallback(d=>yf(d,e,"item"),i),p=A.useCallback(d=>yf(d,e,"trigger"),a);return A.useMemo(()=>({getReferenceProps:l,getFloatingProps:c,getItemProps:u,getTriggerProps:p}),[l,c,u,p])}function yf(e,t,n){const i=new Map,a=n==="item",l={};n==="floating"&&(l.tabIndex=-1,l[dm]="");for(const c in e)a&&e&&(c===t1||c===n1)||(l[c]=e[c]);for(let c=0;c<t.length;c+=1){let u;const p=t[c]?.[n];typeof p=="function"?u=e?p(e):null:u=p,u&&GS(l,u,a,i)}return GS(l,e,a,i),l}function GS(e,t,n,i){for(const a in t){const l=t[a];n&&(a===t1||a===n1)||(a.startsWith("on")?(i.has(a)||i.set(a,[]),typeof l=="function"&&(i.get(a)?.push(l),e[a]=(...c)=>i.get(a)?.map(u=>u(...c)).find(u=>u!==void 0))):e[a]=l)}}const DP="Escape";function Hd(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function vf(e,t){return Hd(t,e===Xm||e===zc,e===Go||e===$o)}function Cg(e,t,n){return Hd(t,e===zc,n?e===Go:e===$o)||e==="Enter"||e===" "||e===""}function LP(e,t,n){return Hd(t,n?e===Go:e===$o,e===zc)}function PP(e,t,n,i){const a=n?e===$o:e===Go,l=e===Xm;return t==="both"||t==="horizontal"&&i&&i>1?e===DP:Hd(t,a,l)}function zP(e,t){const n="rootStore"in e?e.rootStore:e,i=n.useState("open"),a=n.useState("floatingElement"),l=n.useState("domReferenceElement"),c=n.context.dataRef,{listRef:u,activeIndex:p,onNavigate:d=()=>{},enabled:h=!0,selectedIndex:g=null,allowEscape:b=!1,loopFocus:y=!1,nested:E=!1,rtl:_=!1,virtual:x=!1,focusItemOnOpen:S="auto",focusItemOnHover:C=!0,openOnArrowKeyDown:k=!0,disabledIndices:O=void 0,orientation:N="vertical",parentOrientation:R,cols:P=1,id:I,resetOnPointerLeave:G=!0,externalTree:U}=t,X=rd(a),$=Gn(X),W=Ji(),V=Zo(U);Me(()=>{c.current.orientation=N},[c,N]);const H=pm(l),B=A.useRef(S),q=A.useRef(g??-1),Q=A.useRef(null),ee=A.useRef(!0),M=Qe(me=>{d(q.current===-1?null:q.current,me)}),D=A.useRef(M),Z=A.useRef(!!a),z=A.useRef(i),le=A.useRef(!1),ce=A.useRef(!1),ae=A.useRef(null),be=Gn(O),Ee=Gn(i),ye=Gn(g),De=Gn(G),qe=Qe(()=>{function me(Ce){x?V?.events.emit("virtualfocus",Ce):ae.current=Gf(Ce,{sync:le.current,preventScroll:!0})}const Ae=u.current[q.current],ge=ce.current;Ae&&me(Ae),(le.current?Ce=>Ce():requestAnimationFrame)(()=>{const Ce=u.current[q.current]||Ae;if(!Ce)return;Ae||me(Ce),Xe&&(ge||!ee.current)&&Ce.scrollIntoView?.({block:"nearest",inline:"nearest"})})});Me(()=>{h&&(i&&a?(q.current=g??-1,B.current&&g!=null&&(ce.current=!0,M())):Z.current&&(q.current=-1,D.current()))},[h,i,a,g,M]),Me(()=>{if(h){if(!i){le.current=!1;return}if(a)if(p==null){if(le.current=!1,ye.current!=null)return;if(Z.current&&(q.current=-1,qe()),(!z.current||!Z.current)&&B.current&&(Q.current!=null||B.current===!0&&Q.current==null)){let me=0;const Ae=()=>{u.current[0]==null?(me<2&&(me?requestAnimationFrame:queueMicrotask)(Ae),me+=1):(q.current=Q.current==null||Cg(Q.current,N,_)||E?yg(u):xS(u),Q.current=null,M())};Ae()}}else sd(u.current,p)||(q.current=p,qe(),ce.current=!1)}},[h,i,a,p,ye,E,u,N,_,M,qe,be]),Me(()=>{if(!h||a||!V||x||!Z.current)return;const me=V.nodesRef.current,Ae=me.find(Ce=>Ce.id===W)?.context?.elements.floating,ge=Lr(Ct(a)),ve=me.some(Ce=>Ce.context&&ot(Ce.context.elements.floating,ge));Ae&&!ve&&ee.current&&Ae.focus({preventScroll:!0})},[h,a,V,W,x]),Me(()=>{D.current=M,z.current=i,Z.current=!!a}),Me(()=>{i||(Q.current=null,B.current=S)},[i,S]);const Te=p!=null,$e=Qe(me=>{if(!Ee.current)return;const Ae=u.current.indexOf(me.currentTarget);Ae!==-1&&(q.current!==Ae||p!==Ae)&&(q.current=Ae,M(me))}),Xe=A.useMemo(()=>({onFocus(Ae){le.current=!0,$e(Ae)},onClick:({currentTarget:Ae})=>Ae.focus({preventScroll:!0}),onMouseMove(Ae){le.current=!0,ce.current=!1,C&&$e(Ae)},onPointerLeave(Ae){if(!Ee.current||!ee.current||Ae.pointerType==="touch")return;le.current=!0;const ge=Ae.relatedTarget;if(!(!C||u.current.includes(ge))&&De.current&&(ae.current?.(),ae.current=null,q.current=-1,M(Ae),!x)){const ve=$.current,Ce=Lr(Ct(ve));ve&&ot(ve,Ce)&&ve.focus({preventScroll:!0})}}}),[$e,Ee,$,C,u,M,De,x]),at=A.useCallback(()=>R??V?.nodesRef.current.find(me=>me.id===W)?.context?.dataRef?.current.orientation,[W,V,R]),Se=Qe(me=>{if(ee.current=!1,le.current=!0,me.which===229||!Ee.current&&me.currentTarget===$.current)return;if(E&&PP(me.key,N,_,P)){vf(me.key,at())||Dr(me),n.setOpen(!1,ht(jf,me.nativeEvent)),en(l)&&(x?V?.events.emit("virtualfocus",l):l.focus());return}const Ae=q.current,ge=yg(u,O),ve=xS(u,O);if(H||(me.key==="Home"&&(Dr(me),q.current=ge,M(me)),me.key==="End"&&(Dr(me),q.current=ve,M(me))),P>1){const Ce=Array.from({length:u.current.length},()=>({width:1,height:1})),ne=F2(Ce,P),ue=ne.findIndex(it=>it!=null&&!Fs(u.current,it,O)),Ie=ne.reduce((it,He,We)=>He!=null&&!Fs(u.current,He,O)?We:it,-1),Ve=ne[U2(ne.map(it=>it!=null?u.current[it]:null),{event:me,orientation:N,loopFocus:y,rtl:_,cols:P,disabledIndices:j2([...(typeof O!="function"?O:null)||u.current.map((it,He)=>Fs(u.current,He,O)?He:void 0),void 0],ne),minIndex:ue,maxIndex:Ie,prevIndex:H2(q.current>ve?ge:q.current,Ce,ne,P,me.key===zc?"bl":me.key===(_?Go:$o)?"tr":"tl"),stopEvent:!0})];if(Ve!=null&&(q.current=Ve,M(me)),N==="both")return}if(vf(me.key,N)){if(Dr(me),i&&!x&&Lr(me.currentTarget.ownerDocument)===me.currentTarget){q.current=Cg(me.key,N,_)?ge:ve,M(me);return}Cg(me.key,N,_)?y?Ae>=ve?b&&Ae!==u.current.length?q.current=-1:(le.current=!1,q.current=ge):q.current=or(u.current,{startingIndex:Ae,disabledIndices:O}):q.current=Math.min(ve,or(u.current,{startingIndex:Ae,disabledIndices:O})):y?Ae<=ge?b&&Ae!==-1?q.current=u.current.length:(le.current=!1,q.current=ve):q.current=or(u.current,{startingIndex:Ae,decrement:!0,disabledIndices:O}):q.current=Math.max(ge,or(u.current,{startingIndex:Ae,decrement:!0,disabledIndices:O})),sd(u.current,q.current)&&(q.current=-1),M(me)}}),Ne=A.useMemo(()=>x&&i&&Te&&{"aria-activedescendant":`${I}-${p}`},[x,i,Te,I,p]),ze=A.useMemo(()=>({"aria-orientation":N==="both"?void 0:N,...H?{}:Ne,onKeyDown(me){if(me.key==="Tab"&&me.shiftKey&&i&&!x){const Ae=sr(me.nativeEvent);if(Ae&&!ot($.current,Ae))return;Dr(me),n.setOpen(!1,ht(Vs,me.nativeEvent)),en(l)&&l.focus();return}Se(me)},onPointerMove(){ee.current=!0}}),[Ne,Se,$,N,H,n,i,x,l]),ke=A.useMemo(()=>{function me(ge){S==="auto"&&$w(ge.nativeEvent)&&(B.current=!x)}function Ae(ge){B.current=S,S==="auto"&&qw(ge.nativeEvent)&&(B.current=!0)}return{onKeyDown(ge){const ve=n.select("open");ee.current=!1;const Ce=ge.key.startsWith("Arrow"),ne=LP(ge.key,at(),_),ue=vf(ge.key,N),Ie=(E?ne:ue)||ge.key==="Enter"||ge.key.trim()==="";if(x&&ve)return Se(ge);if(!(!ve&&!k&&Ce)){if(Ie){const Ve=vf(ge.key,at());Q.current=E&&Ve?null:ge.key}if(E){ne&&(Dr(ge),ve?(q.current=yg(u,be.current),M(ge)):n.setOpen(!0,ht(jf,ge.nativeEvent,ge.currentTarget)));return}ue&&(ye.current!=null&&(q.current=ye.current),Dr(ge),!ve&&k?n.setOpen(!0,ht(jf,ge.nativeEvent,ge.currentTarget)):Se(ge),ve&&M(ge))}},onFocus(ge){n.select("open")&&!x&&(q.current=-1,M(ge))},onPointerDown:Ae,onPointerEnter:Ae,onMouseDown:me,onClick:me}},[Se,be,S,u,E,M,n,k,N,at,_,ye,x]),Fe=A.useMemo(()=>({...Ne,...ke}),[Ne,ke]);return A.useMemo(()=>h?{reference:Fe,floating:ze,item:Xe,trigger:ke}:{},[h,Fe,ze,ke,Xe])}const BP=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function K1(e,t={}){const n="rootStore"in e?e.rootStore:e,i=n.useState("open"),a=n.useState("floatingId"),l=n.useState("domReferenceElement"),c=n.useState("floatingElement"),{role:u="dialog"}=t,p=Ha(),d=l?.id||p,h=A.useMemo(()=>rd(c)?.id||a,[c,a]),g=BP.get(u)??u,y=Ji()!=null,E=A.useMemo(()=>g==="tooltip"||u==="label"?An:{"aria-haspopup":g==="alertdialog"?"dialog":g,"aria-expanded":"false",...g==="listbox"&&{role:"combobox"},...g==="menu"&&y&&{role:"menuitem"},...u==="select"&&{"aria-autocomplete":"none"},...u==="combobox"&&{"aria-autocomplete":"list"}},[g,y,u]),_=A.useMemo(()=>g==="tooltip"||u==="label"?{[`aria-${u==="label"?"labelledby":"describedby"}`]:i?h:void 0}:{...E,"aria-expanded":i?"true":"false","aria-controls":i?h:void 0,...g==="menu"&&{id:d}},[g,h,i,d,u,E]),x=A.useMemo(()=>{const C={id:h,...g&&{role:g}};return g==="tooltip"||u==="label"?C:{...C,...g==="menu"&&{"aria-labelledby":d}}},[g,h,d,u]),S=A.useCallback(({active:C,selected:k})=>{const O={role:"option",...C&&{id:`${h}-fui-option`}};switch(u){case"select":case"combobox":return{...O,"aria-selected":k}}return{}},[h,u]);return A.useMemo(()=>({reference:_,floating:x,item:S,trigger:E}),[_,x,E,S])}function UP(e,t){const n="rootStore"in e?e.rootStore:e,i=n.context.dataRef,a=n.useState("open"),{listRef:l,elementsRef:c,activeIndex:u,onMatch:p,onTypingChange:d,enabled:h=!0,resetMs:g=750,selectedIndex:b=null}=t,y=Sr(),E=A.useRef(""),_=A.useRef(b??u??-1),x=A.useRef(null);Me(()=>{!a&&b!==null||(y.clear(),x.current=null,E.current!==""&&(E.current=""))},[a,b,y]),Me(()=>{a&&E.current===""&&(_.current=b??u??-1)},[a,b,u]);const S=Qe(R=>{R?i.current.typing||(i.current.typing=R,d?.(R)):i.current.typing&&(i.current.typing=R,d?.(R))}),C=Qe(R=>{function P(H){const B=c?.current[H];return!B||zd(B)}function I(H,B,q=0){if(H.length===0)return-1;const Q=(q%H.length+H.length)%H.length,ee=B.toLocaleLowerCase();for(let M=0;M<H.length;M+=1){const D=(Q+M)%H.length;if(!(!H[D]?.toLocaleLowerCase().startsWith(ee)||!P(D)))return D}return-1}const G=l.current;if(E.current.length>0&&R.key===" "&&(Dr(R),S(!0)),E.current.length>0&&E.current[0]!==" "&&I(G,E.current)===-1&&R.key!==" "&&S(!1),G==null||R.key.length!==1||R.ctrlKey||R.metaKey||R.altKey)return;a&&R.key!==" "&&(Dr(R),S(!0));const U=E.current==="";U&&(_.current=b??u??-1),G.every(H=>H?H[0]?.toLocaleLowerCase()!==H[1]?.toLocaleLowerCase():!0)&&E.current===R.key&&(E.current="",_.current=x.current),E.current+=R.key,y.start(g,()=>{E.current="",_.current=x.current,S(!1)});const W=((U?b??u??-1:_.current)??0)+1,V=I(G,E.current,W);V!==-1?(p?.(V),x.current=V):R.key!==" "&&(E.current="",S(!1))}),k=Qe(R=>{const P=R.relatedTarget,I=n.select("domReferenceElement"),G=n.select("floatingElement"),U=ot(I,P),X=ot(G,P);U||X||(y.clear(),E.current="",_.current=x.current,S(!1))}),O=A.useMemo(()=>({onKeyDown:C,onBlur:k}),[C,k]),N=A.useMemo(()=>({onKeyDown:C,onBlur:k}),[C,k]);return A.useMemo(()=>h?{reference:O,floating:N}:{},[h,O,N])}const $S=.1,FP=$S*$S,qt=.5;function Ef(e,t,n,i,a,l){return i>=t!=l>=t&&e<=(a-n)*(t-i)/(l-i)+n}function Sf(e,t,n,i,a,l,c,u,p,d){let h=!1;return Ef(e,t,n,i,a,l)&&(h=!h),Ef(e,t,a,l,c,u)&&(h=!h),Ef(e,t,c,u,p,d)&&(h=!h),Ef(e,t,p,d,n,i)&&(h=!h),h}function HP(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function xf(e,t,n,i,a,l){const c=Math.min(n,a),u=Math.max(n,a),p=Math.min(i,l),d=Math.max(i,l);return e>=c&&e<=u&&t>=p&&t<=d}function X1(e={}){const{blockPointerEvents:t=!1}=e,n=new ti,i=({x:a,y:l,placement:c,elements:u,onClose:p,nodeId:d,tree:h})=>{const g=c?.split("-")[0];let b=!1,y=null,E=null,_=typeof performance<"u"?performance.now():0;function x(C,k){const O=performance.now(),N=O-_;if(y===null||E===null||N===0)return y=C,E=k,_=O,!1;const R=C-y,P=k-E,I=R*R+P*P,G=N*N*FP;return y=C,E=k,_=O,I<G}function S(){n.clear(),p()}return function(k){n.clear();const O=u.domReference,N=u.floating;if(!O||!N||g==null||a==null||l==null)return;const{clientX:R,clientY:P}=k,I=sr(k),G=k.type==="mouseleave",U=ot(N,I),X=ot(O,I);if(U&&(b=!0,!G))return;if(X&&(b=!1,!G)){b=!0;return}if(G&&Et(k.relatedTarget)&&ot(N,k.relatedTarget))return;function $(){return!!(h&&bi(h.nodesRef.current,d).length>0)}function W(){$()||S()}if($())return;const V=O.getBoundingClientRect(),H=N.getBoundingClientRect(),B=a>H.right-H.width/2,q=l>H.bottom-H.height/2,Q=H.width>V.width,ee=H.height>V.height,M=(Q?V:H).left,D=(Q?V:H).right,Z=(ee?V:H).top,z=(ee?V:H).bottom;if(g==="top"&&l>=V.bottom-1||g==="bottom"&&l<=V.top+1||g==="left"&&a>=V.right-1||g==="right"&&a<=V.left+1){W();return}let le=!1;switch(g){case"top":le=xf(R,P,M,V.top+1,D,H.bottom-1);break;case"bottom":le=xf(R,P,M,H.top+1,D,V.bottom-1);break;case"left":le=xf(R,P,H.right-1,z,V.left+1,Z);break;case"right":le=xf(R,P,V.right-1,z,H.left+1,Z);break}if(le)return;if(b&&!HP(R,P,V)){W();return}if(!G&&x(R,P)){W();return}let ce=!1;switch(g){case"top":{const ae=Q?qt/2:qt*4,be=Q||B?a+ae:a-ae,Ee=Q?a-ae:B?a+ae:a-ae,ye=l+qt+1,De=B||Q?H.bottom-qt:H.top,qe=B?Q?H.bottom-qt:H.top:H.bottom-qt;ce=Sf(R,P,be,ye,Ee,ye,H.left,De,H.right,qe);break}case"bottom":{const ae=Q?qt/2:qt*4,be=Q||B?a+ae:a-ae,Ee=Q?a-ae:B?a+ae:a-ae,ye=l-qt,De=B||Q?H.top+qt:H.bottom,qe=B?Q?H.top+qt:H.bottom:H.top+qt;ce=Sf(R,P,be,ye,Ee,ye,H.left,De,H.right,qe);break}case"left":{const ae=ee?qt/2:qt*4,be=ee||q?l+ae:l-ae,Ee=ee?l-ae:q?l+ae:l-ae,ye=a+qt+1,De=q||ee?H.right-qt:H.left,qe=q?ee?H.right-qt:H.left:H.right-qt;ce=Sf(R,P,De,H.top,qe,H.bottom,ye,be,ye,Ee);break}case"right":{const ae=ee?qt/2:qt*4,be=ee||q?l+ae:l-ae,Ee=ee?l-ae:q?l+ae:l-ae,ye=a-qt,De=q||ee?H.left+qt:H.right,qe=q?ee?H.left+qt:H.right:H.left+qt;ce=Sf(R,P,ye,be,ye,Ee,De,H.top,qe,H.bottom);break}}ce?b||n.start(40,W):W()}};return i.__options={...e,blockPointerEvents:t},i}const jP={...pb,disabled:Ye(e=>e.disabled),instantType:Ye(e=>e.instantType),isInstantPhase:Ye(e=>e.isInstantPhase),trackCursorAxis:Ye(e=>e.trackCursorAxis),disableHoverablePopup:Ye(e=>e.disableHoverablePopup),lastOpenChangeReason:Ye(e=>e.openChangeReason),closeOnClick:Ye(e=>e.closeOnClick),closeDelay:Ye(e=>e.closeDelay),hasViewport:Ye(e=>e.hasViewport)};class mb extends Ud{constructor(t){super({...GP(),...t},{popupRef:A.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Fc},jP)}setOpen=(t,n)=>{const i=n.reason,a=i===Wn,l=t&&i===Us,c=!t&&(i===Ia||i===Od);if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(t,n),n.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(t,n);const u=()=>{const p={open:t,openChangeReason:i};l?p.instantType="focus":c?p.instantType="dismiss":i===Wn&&(p.instantType=void 0);const d=n.trigger?.id??null;(d||t)&&(p.activeTriggerId=d,p.activeTriggerElement=n.trigger??null),this.update(p)};a?yi.flushSync(u):u()};static useStore(t,n){const i=$n(()=>new mb(n)).current,a=t??i,l=hb({popupStore:a,onOpenChange:a.setOpen});return a.state.floatingRootContext=l,a}}function GP(){return{...db(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}const $P=Gm(function(t){const{disabled:n=!1,defaultOpen:i=!1,open:a,disableHoverablePopup:l=!1,trackCursorAxis:c="none",actionsRef:u,onOpenChange:p,onOpenChangeComplete:d,handle:h,triggerId:g,defaultTriggerId:b=null,children:y}=t,E=mb.useStore(h?.store,{open:i,openProp:a,activeTriggerId:b,triggerIdProp:g});$m(()=>{a===void 0&&E.state.open===!1&&i===!0&&E.update({open:!0,activeTriggerId:b})}),E.useControlledProp("openProp",a),E.useControlledProp("triggerIdProp",g),E.useContextCallback("onOpenChange",p),E.useContextCallback("onOpenChangeComplete",d);const _=E.useState("open"),x=!n&&_,S=E.useState("activeTriggerId"),C=E.useState("payload");E.useSyncedValues({trackCursorAxis:c,disableHoverablePopup:l}),Me(()=>{_&&n&&E.setOpen(!1,ht(f2))},[_,n,E]),E.useSyncedValue("disabled",n),ub(E);const{forceUnmount:k,transitionStatus:O}=fb(x,E),N=E.select("floatingRootContext"),R=E.useState("isInstantPhase"),P=E.useState("instantType"),I=E.useState("lastOpenChangeReason"),G=A.useRef(null);Me(()=>{O==="ending"&&I===Pc||O!=="ending"&&R?(P!=="delay"&&(G.current=P),E.set("instantType","delay")):G.current!==null&&(E.set("instantType",G.current),G.current=null)},[O,R,I,P,E]),Me(()=>{x&&S==null&&E.set("payload",void 0)},[E,S,x]);const U=A.useCallback(()=>{E.setOpen(!1,ht(Vm))},[E]);A.useImperativeHandle(u,()=>({unmount:k,close:U}),[k,U]);const X=ab(N,{enabled:!n,referencePress:()=>E.select("closeOnClick")}),$=AL(N,{enabled:!n&&c!=="none",axis:c==="none"?void 0:c}),{getReferenceProps:W,getFloatingProps:V,getTriggerProps:H}=Fd([X,$]),B=A.useMemo(()=>W(),[W]),q=A.useMemo(()=>H(),[H]),Q=A.useMemo(()=>V(),[V]);return E.useSyncedValues({activeTriggerProps:B,inactiveTriggerProps:q,popupProps:Q}),F.jsx(Pw.Provider,{value:E,children:typeof y=="function"?y({payload:C}):y})});let Ca=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=La.startingStyle]="startingStyle",e[e.endingStyle=La.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),pd=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const qP={[pd.popupOpen]:""},VP={[pd.popupOpen]:"",[pd.pressed]:""},YP={[Ca.open]:""},KP={[Ca.closed]:""},XP={[Ca.anchorHidden]:""},WP={open(e){return e?qP:null}},qS={open(e){return e?VP:null}},Js={open(e){return e?YP:KP},anchorHidden(e){return e?XP:null}};function eo(e){return Ha(e,"base-ui")}const W1=A.createContext(void 0);function ZP(){return A.useContext(W1)}let QP=(function(e){return e[e.popupOpen=pd.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});const JP=600,ez=Lw(function(t,n){const{className:i,render:a,handle:l,payload:c,disabled:u,delay:p,closeOnClick:d=!0,closeDelay:h,id:g,style:b,...y}=t,E=Lc(!0),_=l?.store??E;if(!_)throw new Error(Vn(82));const x=eo(g),S=_.useState("isTriggerActive",x),C=_.useState("isOpenedByTrigger",x),k=_.useState("floatingRootContext"),O=A.useRef(null),N=p??JP,R=h??0,{registerTrigger:P,isMountedByThisTrigger:I}=j1(x,O,_,{payload:c,closeOnClick:d,closeDelay:R}),G=ZP(),{delayRef:U,isInstantPhase:X,hasProvider:$}=p2(k,{open:C});_.useSyncedValue("isInstantPhase",X);const W=_.useState("disabled"),V=u??W,H=_.useState("trackCursorAxis"),B=_.useState("disableHoverablePopup"),q=Y1(k,{enabled:!V,mouseOnly:!0,move:!1,handleClose:!B&&H!=="both"?X1():null,restMs(){const Z=G?.delay,z=typeof U.current=="object"?U.current.open:void 0;let le=N;return $&&(z!==0?le=p??Z??N:le=0),le},delay(){const Z=typeof U.current=="object"?U.current.close:void 0;let z=R;return h==null&&$&&(z=Z),{close:z}},triggerElementRef:O,isActiveTrigger:S,isClosing:()=>_.select("transitionStatus")==="ending"}),Q=G1(k,{enabled:!V}).reference,ee={open:C},M=_.useState("triggerProps",I);return hn("button",t,{state:ee,ref:[n,P,O],props:[q,Q,M,{onPointerDown(){_.set("closeOnClick",d)},id:x,[QP.triggerDisabled]:V?"":void 0},y],stateAttributesMapping:WP})}),Z1=A.createContext(void 0);function tz(){const e=A.useContext(Z1);if(e===void 0)throw new Error(Vn(70));return e}const nz=A.forwardRef(function(t,n){const{children:i,container:a,className:l,render:c,style:u,...p}=t,{portalNode:d,portalSubtree:h}=w1({container:a,ref:n,componentProps:t,elementProps:p});return!h&&!d?null:F.jsxs(A.Fragment,{children:[h,d&&yi.createPortal(i,d)]})}),rz=A.forwardRef(function(t,n){const{keepMounted:i=!1,...a}=t;return Lc().useState("mounted")||i?F.jsx(Z1.Provider,{value:i,children:F.jsx(nz,{ref:n,...a})}):null}),Q1=A.createContext(void 0);function J1(){const e=A.useContext(Q1);if(e===void 0)throw new Error(Vn(71));return e}const iz=A.createContext(void 0);function eR(){return A.useContext(iz)?.direction??"ltr"}const oz=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:a,rects:l,platform:c,elements:u,middlewareData:p}=t,{element:d,padding:h=0,offsetParent:g="real"}=Xi(e,t)||{};if(d==null)return{};const b=i1(h),y={x:n,y:i},E=Qm(a),_=Zm(E),x=await c.getDimensions(d),S=E==="y",C=S?"top":"left",k=S?"bottom":"right",O=S?"clientHeight":"clientWidth",N=l.reference[_]+l.reference[E]-y[E]-l.floating[_],R=y[E]-l.reference[E],P=g==="real"?await c.getOffsetParent?.(d):u.floating;let I=u.floating[O]||l.floating[_];(!I||!await c.isElement?.(P))&&(I=u.floating[O]||l.floating[_]);const G=N/2-R/2,U=I/2-x[_]/2-1,X=Math.min(b[C],U),$=Math.min(b[k],U),W=X,V=I-x[_]-$,H=I/2-x[_]/2+G,B=hm(W,H,V),q=!p.arrow&&Wo(a)!=null&&H!==B&&l.reference[_]/2-(H<W?X:$)-x[_]/2<0,Q=q?H<W?H-W:H-V:0;return{[E]:y[E]+Q,data:{[E]:B,centerOffset:H-B-Q,...q&&{alignmentOffset:Q}},reset:q}}}),az=(e,t)=>({...oz(e),options:[e,t]}),sz={name:"hide",async fn(e){const{width:t,height:n,x:i,y:a}=e.rects.reference,l=t===0&&n===0&&i===0&&a===0;return{data:{referenceHidden:(await vP().fn(e)).data?.referenceHidden||l}}}},Vf={sideX:"left",sideY:"top"},tR={name:"adaptiveOrigin",async fn(e){const{x:t,y:n,rects:{floating:i},elements:{floating:a},platform:l,strategy:c,placement:u}=e,p=pn(a),d=p.getComputedStyle(a);if(!(d.transitionDuration!=="0s"&&d.transitionDuration!==""))return{x:t,y:n,data:Vf};const g=await l.getOffsetParent?.(a);let b={width:0,height:0};if(c==="fixed"&&p?.visualViewport)b={width:p.visualViewport.width,height:p.visualViewport.height};else if(g===p){const C=Ct(a);b={width:C.documentElement.clientWidth,height:C.documentElement.clientHeight}}else await l.isElement?.(g)&&(b=await l.getDimensions(g));const y=Er(u);let E=t,_=n;y==="left"&&(E=b.width-(t+i.width)),y==="top"&&(_=b.height-(n+i.height));const x=y==="left"?"right":Vf.sideX,S=y==="top"?"bottom":Vf.sideY;return{x:E,y:_,data:{sideX:x,sideY:S}}}};function nR(e,t,n){const i=e==="inline-start"||e==="inline-end";return{top:"top",right:i?n?"inline-start":"inline-end":"right",bottom:"bottom",left:i?n?"inline-end":"inline-start":"left"}[t]}function VS(e,t,n){const{rects:i,placement:a}=e;return{side:nR(t,Er(a),n),align:Wo(a)||"center",anchor:{width:i.reference.width,height:i.reference.height},positioner:{width:i.floating.width,height:i.floating.height}}}function rR(e){const{anchor:t,positionMethod:n="absolute",side:i="bottom",sideOffset:a=0,align:l="center",alignOffset:c=0,collisionBoundary:u,collisionPadding:p=5,sticky:d=!1,arrowPadding:h=5,disableAnchorTracking:g=!1,keepMounted:b=!1,floatingRootContext:y,mounted:E,collisionAvoidance:_,shiftCrossAxis:x=!1,nodeId:S,adaptiveOrigin:C,lazyFlip:k=!1,externalTree:O}=e,[N,R]=A.useState(null);!E&&N!==null&&R(null);const P=_.side||"flip",I=_.align||"flip",G=_.fallbackAxisSide||"end",U=typeof t=="function"?t:void 0,X=Qe(U),$=U?X:t,W=Gn(t),V=Gn(E),B=eR()==="rtl",q=N||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":B?"left":"right","inline-start":B?"right":"left"}[i],Q=l==="center"?q:`${q}-${l}`;let ee=p;const M=1,D=i==="bottom"?M:0,Z=i==="top"?M:0,z=i==="right"?M:0,le=i==="left"?M:0;typeof ee=="number"?ee={top:ee+D,right:ee+le,bottom:ee+Z,left:ee+z}:ee&&(ee={top:(ee.top||0)+D,right:(ee.right||0)+le,bottom:(ee.bottom||0)+Z,left:(ee.left||0)+z});const ce={boundary:u==="clipping-ancestors"?"clippingAncestors":u,padding:ee},ae=A.useRef(null),be=Gn(a),Ee=Gn(c),qe=[hP(st=>{const cn=VS(st,i,B),Sn=typeof be.current=="function"?be.current(cn):be.current,gn=typeof Ee.current=="function"?Ee.current(cn):Ee.current;return{mainAxis:Sn,crossAxis:gn,alignmentAxis:gn}},[typeof a!="function"?a:0,typeof c!="function"?c:0,B,i])],Te=I==="none"&&P!=="shift",$e=!Te&&(d||x||P==="shift"),Xe=P==="none"?null:bP({...ce,padding:{top:ee.top+M,right:ee.right+M,bottom:ee.bottom+M,left:ee.left+M},mainAxis:!x&&P==="flip",crossAxis:I==="flip"?"alignment":!1,fallbackAxisSideDirection:G}),at=Te?null:gP(st=>{const cn=Ct(st.elements.floating).documentElement;return{...ce,rootBoundary:x?{x:0,y:0,width:cn.clientWidth,height:cn.clientHeight}:void 0,mainAxis:I!=="none",crossAxis:$e,limiter:d||x?void 0:mP(Sn=>{if(!ae.current)return{};const{width:gn,height:zn}=ae.current.getBoundingClientRect(),Wt=Xr(Er(Sn.placement)),Y=Wt==="y"?gn:zn,fe=Wt==="y"?ee.left+ee.right:ee.top+ee.bottom;return{offset:Y/2+fe/2}})}},[ce,d,x,ee,I]);P==="shift"||I==="shift"||l==="center"?qe.push(at,Xe):qe.push(Xe,at),qe.push(yP({...ce,apply({elements:{floating:st},availableWidth:cn,availableHeight:Sn,rects:gn}){if(!V.current)return;const zn=st.style;zn.setProperty("--available-width",`${cn}px`),zn.setProperty("--available-height",`${Sn}px`);const Wt=pn(st).devicePixelRatio||1,{x:Y,y:fe,width:we,height:tt}=gn.reference,zt=(Math.round((Y+we)*Wt)-Math.round(Y*Wt))/Wt,Dt=(Math.round((fe+tt)*Wt)-Math.round(fe*Wt))/Wt;zn.setProperty("--anchor-width",`${zt}px`),zn.setProperty("--anchor-height",`${Dt}px`)}}),az(()=>({element:ae.current||Ct(ae.current).createElement("div"),padding:h,offsetParent:"floating"}),[h]),{name:"transformOrigin",fn(st){const{elements:cn,middlewareData:Sn,placement:gn,rects:zn,y:Wt}=st,Y=Er(gn),fe=Xr(Y),we=ae.current,tt=Sn.arrow?.x||0,zt=Sn.arrow?.y||0,Dt=we?.clientWidth||0,Ue=we?.clientHeight||0,Oe=tt+Dt/2,Je=zt+Ue/2,sn=Math.abs(Sn.shift?.y||0),Zt=zn.reference.height/2,tr=typeof a=="function"?a(VS(st,i,B)):a,no=sn>tr,ro={top:`${Oe}px calc(100% + ${tr}px)`,bottom:`${Oe}px ${-tr}px`,left:`calc(100% + ${tr}px) ${Je}px`,right:`${-tr}px ${Je}px`}[Y],Br=`${Oe}px ${zn.reference.y+Zt-Wt}px`;return cn.floating.style.setProperty("--transform-origin",$e&&fe==="y"&&no?Br:ro),{}}},sz,C),Me(()=>{!E&&y&&y.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[E,y]);const Se=A.useMemo(()=>({elementResize:!g&&typeof ResizeObserver<"u",layoutShift:!g&&typeof IntersectionObserver<"u"}),[g]),{refs:Ne,elements:ze,x:ke,y:Fe,middlewareData:me,update:Ae,placement:ge,context:ve,isPositioned:Ce,floatingStyles:ne}=NP({rootContext:y,open:b?E:void 0,placement:Q,middleware:qe,strategy:n,whileElementsMounted:b?void 0:(...st)=>HS(...st,Se),nodeId:S,externalTree:O}),{sideX:ue,sideY:Ie}=me.adaptiveOrigin||Vf,Ve=Ce?n:"fixed",it=A.useMemo(()=>{const st=C?{position:Ve,[ue]:ke,[Ie]:Fe}:{position:Ve,...ne};return Ce||(st.opacity=0),st},[C,Ve,ue,ke,Ie,Fe,ne,Ce]),He=A.useRef(null);Me(()=>{if(!E)return;const st=W.current,cn=typeof st=="function"?st():st,gn=(YS(cn)?cn.current:cn)||null||null;gn!==He.current&&(Ne.setPositionReference(gn),He.current=gn)},[E,Ne,$,W]),A.useEffect(()=>{if(!E)return;const st=W.current;typeof st!="function"&&YS(st)&&st.current!==He.current&&(Ne.setPositionReference(st.current),He.current=st.current)},[E,Ne,$,W]),A.useEffect(()=>{if(b&&E&&ze.domReference&&ze.floating)return HS(ze.domReference,ze.floating,Ae,Se)},[b,E,ze,Ae,Se]);const We=Er(ge),ut=nR(i,We,B),At=Wo(ge)||"center",rn=!!me.hide?.referenceHidden;Me(()=>{k&&E&&Ce&&R(We)},[k,E,Ce,We]);const xt=A.useMemo(()=>({position:"absolute",top:me.arrow?.y,left:me.arrow?.x}),[me.arrow]),On=me.arrow?.centerOffset!==0;return A.useMemo(()=>({positionerStyles:it,arrowStyles:xt,arrowRef:ae,arrowUncentered:On,side:ut,align:At,physicalSide:We,anchorHidden:rn,refs:Ne,context:ve,isPositioned:Ce,update:Ae}),[it,xt,ae,On,ut,At,We,rn,Ne,ve,Ce,Ae])}function YS(e){return e!=null&&"current"in e}function bb(e){return e==="starting"?bL:An}function iR(e,t,{styles:n,transitionStatus:i,props:a,refs:l,hidden:c,inert:u=!1}){const p={...n};return u&&(p.pointerEvents="none"),hn("div",e,{state:t,ref:l,props:[{role:"presentation",hidden:c,style:p},bb(i),a],stateAttributesMapping:Js})}const lz=A.forwardRef(function(t,n){const{render:i,className:a,anchor:l,positionMethod:c="absolute",side:u="top",align:p="center",sideOffset:d=0,alignOffset:h=0,collisionBoundary:g="clipping-ancestors",collisionPadding:b=5,arrowPadding:y=5,sticky:E=!1,disableAnchorTracking:_=!1,collisionAvoidance:x=S1,style:S,...C}=t,k=Lc(),O=tz(),N=k.useState("open"),R=k.useState("mounted"),P=k.useState("trackCursorAxis"),I=k.useState("disableHoverablePopup"),G=k.useState("floatingRootContext"),U=k.useState("instantType"),X=k.useState("transitionStatus"),$=k.useState("hasViewport"),W=rR({anchor:l,positionMethod:c,floatingRootContext:G,mounted:R,side:u,sideOffset:d,align:p,alignOffset:h,collisionBoundary:g,collisionPadding:b,sticky:E,arrowPadding:y,disableAnchorTracking:_,keepMounted:O,collisionAvoidance:x,adaptiveOrigin:$?tR:void 0}),V=A.useMemo(()=>({open:N,side:W.side,align:W.align,anchorHidden:W.anchorHidden,instant:P!=="none"?"tracking-cursor":U}),[N,W.side,W.align,W.anchorHidden,P,U]),H=iR(t,V,{styles:W.positionerStyles,transitionStatus:X,props:C,refs:[n,k.useStateSetter("positionerElement")],hidden:!R,inert:!N||P==="both"||I});return F.jsx(Q1.Provider,{value:W,children:H})}),cz={...Js,...Qs},uz=A.forwardRef(function(t,n){const{className:i,render:a,style:l,...c}=t,u=Lc(),{side:p,align:d}=J1(),h=u.useState("open"),g=u.useState("instantType"),b=u.useState("transitionStatus"),y=u.useState("popupProps"),E=u.useState("floatingRootContext");Uc({open:h,ref:u.context.popupRef,onComplete(){h&&u.context.onOpenChangeComplete?.(!0)}});const _=u.useState("disabled"),x=u.useState("closeDelay");return V1(E,{enabled:!_,closeDelay:x}),hn("div",t,{state:{open:h,side:p,align:d,instant:g,transitionStatus:b},ref:[n,u.context.popupRef,u.useStateSetter("popupElement")],props:[y,bb(b),c],stateAttributesMapping:cz})}),fz=A.forwardRef(function(t,n){const{className:i,render:a,style:l,...c}=t,u=Lc(),p=u.useState("open"),d=u.useState("instantType"),{arrowRef:h,side:g,align:b,arrowUncentered:y,arrowStyles:E}=J1();return hn("div",t,{state:{open:p,side:g,align:b,uncentered:y,instant:d},ref:[n,h],props:[{style:E,"aria-hidden":!0},c],stateAttributesMapping:Js})}),dz=function(t){const{delay:n,closeDelay:i,timeout:a=400}=t,l=A.useMemo(()=>({delay:n,closeDelay:i}),[n,i]),c=A.useMemo(()=>({open:n,close:i}),[n,i]);return F.jsx(W1.Provider,{value:l,children:F.jsx(d2,{delay:c,timeoutMs:a,children:t.children})})};function oR(e){return tb(19)?e:e?"true":void 0}function aR(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=aR(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function sR(){for(var e,t,n=0,i="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=aR(e))&&(i&&(i+=" "),i+=t);return i}const pz=(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},hz=(e,t)=>({classGroupId:e,validator:t}),lR=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),hd="-",KS=[],gz="arbitrary..",mz=e=>{const t=yz(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return bz(c);const u=c.split(hd),p=u[0]===""&&u.length>1?1:0;return cR(u,p,t)},getConflictingClassGroupIds:(c,u)=>{if(u){const p=i[c],d=n[c];return p?d?pz(d,p):p:d||KS}return n[c]||KS}}},cR=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],l=n.nextPart.get(a);if(l){const d=cR(e,t+1,l);if(d)return d}const c=n.validators;if(c===null)return;const u=t===0?e.join(hd):e.slice(t).join(hd),p=c.length;for(let d=0;d<p;d++){const h=c[d];if(h.validator(u))return h.classGroupId}},bz=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?gz+i:void 0})(),yz=e=>{const{theme:t,classGroups:n}=e;return vz(n,t)},vz=(e,t)=>{const n=lR();for(const i in e){const a=e[i];yb(a,n,i,t)}return n},yb=(e,t,n,i)=>{const a=e.length;for(let l=0;l<a;l++){const c=e[l];Ez(c,t,n,i)}},Ez=(e,t,n,i)=>{if(typeof e=="string"){Sz(e,t,n);return}if(typeof e=="function"){xz(e,t,n,i);return}_z(e,t,n,i)},Sz=(e,t,n)=>{const i=e===""?t:uR(t,e);i.classGroupId=n},xz=(e,t,n,i)=>{if(wz(e)){yb(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(hz(n,e))},_z=(e,t,n,i)=>{const a=Object.entries(e),l=a.length;for(let c=0;c<l;c++){const[u,p]=a[c];yb(p,uR(t,u),n,i)}},uR=(e,t)=>{let n=e;const i=t.split(hd),a=i.length;for(let l=0;l<a;l++){const c=i[l];let u=n.nextPart.get(c);u||(u=lR(),n.nextPart.set(c,u)),n=u}return n},wz=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Rz=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null);const a=(l,c)=>{n[l]=c,t++,t>e&&(t=0,i=n,n=Object.create(null))};return{get(l){let c=n[l];if(c!==void 0)return c;if((c=i[l])!==void 0)return a(l,c),c},set(l,c){l in n?n[l]=c:a(l,c)}}},vm="!",XS=":",Tz=[],WS=(e,t,n,i,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:a}),Cz=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=a=>{const l=[];let c=0,u=0,p=0,d;const h=a.length;for(let _=0;_<h;_++){const x=a[_];if(c===0&&u===0){if(x===XS){l.push(a.slice(p,_)),p=_+1;continue}if(x==="/"){d=_;continue}}x==="["?c++:x==="]"?c--:x==="("?u++:x===")"&&u--}const g=l.length===0?a:a.slice(p);let b=g,y=!1;g.endsWith(vm)?(b=g.slice(0,-1),y=!0):g.startsWith(vm)&&(b=g.slice(1),y=!0);const E=d&&d>p?d-p:void 0;return WS(l,y,b,E)};if(t){const a=t+XS,l=i;i=c=>c.startsWith(a)?l(c.slice(a.length)):WS(Tz,!1,c,void 0,!0)}if(n){const a=i;i=l=>n({className:l,parseClassName:a})}return i},kz=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,i)=>{t.set(n,1e6+i)}),n=>{const i=[];let a=[];for(let l=0;l<n.length;l++){const c=n[l],u=c[0]==="[",p=t.has(c);u||p?(a.length>0&&(a.sort(),i.push(...a),a=[]),i.push(c)):a.push(c)}return a.length>0&&(a.sort(),i.push(...a)),i}},Az=e=>({cache:Rz(e.cacheSize),parseClassName:Cz(e),sortModifiers:kz(e),postfixLookupClassGroupIds:Oz(e),...mz(e)}),Oz=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},Mz=/\s+/,Nz=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:l,postfixLookupClassGroupIds:c}=t,u=[],p=e.trim().split(Mz);let d="";for(let h=p.length-1;h>=0;h-=1){const g=p[h],{isExternal:b,modifiers:y,hasImportantModifier:E,baseClassName:_,maybePostfixModifierPosition:x}=n(g);if(b){d=g+(d.length>0?" "+d:d);continue}let S=!!x,C;if(S){const P=_.substring(0,x);C=i(P);const I=C&&c[C]?i(_):void 0;I&&I!==C&&(C=I,S=!1)}else C=i(_);if(!C){if(!S){d=g+(d.length>0?" "+d:d);continue}if(C=i(_),!C){d=g+(d.length>0?" "+d:d);continue}S=!1}const k=y.length===0?"":y.length===1?y[0]:l(y).join(":"),O=E?k+vm:k,N=O+C;if(u.indexOf(N)>-1)continue;u.push(N);const R=a(C,S);for(let P=0;P<R.length;++P){const I=R[P];u.push(O+I)}d=g+(d.length>0?" "+d:d)}return d},Iz=(...e)=>{let t=0,n,i,a="";for(;t<e.length;)(n=e[t++])&&(i=fR(n))&&(a&&(a+=" "),a+=i);return a},fR=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=fR(e[i]))&&(n&&(n+=" "),n+=t);return n},Dz=(e,...t)=>{let n,i,a,l;const c=p=>{const d=t.reduce((h,g)=>g(h),e());return n=Az(d),i=n.cache.get,a=n.cache.set,l=u,u(p)},u=p=>{const d=i(p);if(d)return d;const h=Nz(p,n);return a(p,h),h};return l=c,(...p)=>l(Iz(...p))},Lz=[],Nn=e=>{const t=n=>n[e]||Lz;return t.isThemeGetter=!0,t},dR=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,pR=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Pz=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,zz=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bz=/\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$/,Uz=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Fz=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hz=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Io=e=>Pz.test(e),gt=e=>!!e&&!Number.isNaN(Number(e)),si=e=>!!e&&Number.isInteger(Number(e)),kg=e=>e.endsWith("%")&&gt(e.slice(0,-1)),Gi=e=>zz.test(e),hR=()=>!0,jz=e=>Bz.test(e)&&!Uz.test(e),vb=()=>!1,Gz=e=>Fz.test(e),$z=e=>Hz.test(e),qz=e=>!Le(e)&&!Pe(e),Vz=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)),Yz=e=>Qo(e,bR,vb),Le=e=>dR.test(e),xa=e=>Qo(e,yR,jz),ZS=e=>Qo(e,tB,gt),Kz=e=>Qo(e,ER,hR),Xz=e=>Qo(e,vR,vb),QS=e=>Qo(e,gR,vb),Wz=e=>Qo(e,mR,$z),_f=e=>Qo(e,SR,Gz),Pe=e=>pR.test(e),ac=e=>ja(e,yR),Zz=e=>ja(e,vR),JS=e=>ja(e,gR),Qz=e=>ja(e,bR),Jz=e=>ja(e,mR),wf=e=>ja(e,SR,!0),eB=e=>ja(e,ER,!0),Qo=(e,t,n)=>{const i=dR.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},ja=(e,t,n=!1)=>{const i=pR.exec(e);return i?i[1]?t(i[1]):n:!1},gR=e=>e==="position"||e==="percentage",mR=e=>e==="image"||e==="url",bR=e=>e==="length"||e==="size"||e==="bg-size",yR=e=>e==="length",tB=e=>e==="number",vR=e=>e==="family-name",ER=e=>e==="number"||e==="weight",SR=e=>e==="shadow",nB=()=>{const e=Nn("color"),t=Nn("font"),n=Nn("text"),i=Nn("font-weight"),a=Nn("tracking"),l=Nn("leading"),c=Nn("breakpoint"),u=Nn("container"),p=Nn("spacing"),d=Nn("radius"),h=Nn("shadow"),g=Nn("inset-shadow"),b=Nn("text-shadow"),y=Nn("drop-shadow"),E=Nn("blur"),_=Nn("perspective"),x=Nn("aspect"),S=Nn("ease"),C=Nn("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...O(),Pe,Le],R=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],I=()=>[Pe,Le,p],G=()=>[Io,"full","auto",...I()],U=()=>[si,"none","subgrid",Pe,Le],X=()=>["auto",{span:["full",si,Pe,Le]},si,Pe,Le],$=()=>[si,"auto",Pe,Le],W=()=>["auto","min","max","fr",Pe,Le],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...I()],q=()=>[Io,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],Q=()=>[Io,"screen","full","dvw","lvw","svw","min","max","fit",...I()],ee=()=>[Io,"screen","full","lh","dvh","lvh","svh","min","max","fit",...I()],M=()=>[e,Pe,Le],D=()=>[...O(),JS,QS,{position:[Pe,Le]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",Qz,Yz,{size:[Pe,Le]}],le=()=>[kg,ac,xa],ce=()=>["","none","full",d,Pe,Le],ae=()=>["",gt,ac,xa],be=()=>["solid","dashed","dotted","double"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>[gt,kg,JS,QS],De=()=>["","none",E,Pe,Le],qe=()=>["none",gt,Pe,Le],Te=()=>["none",gt,Pe,Le],$e=()=>[gt,Pe,Le],Xe=()=>[Io,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Gi],breakpoint:[Gi],color:[hR],container:[Gi],"drop-shadow":[Gi],ease:["in","out","in-out"],font:[qz],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Gi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Gi],shadow:[Gi],spacing:["px",gt],text:[Gi],"text-shadow":[Gi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Io,Le,Pe,x]}],container:["container"],"container-type":[{"@container":["","normal","size",Pe,Le]}],"container-named":[Vz],columns:[{columns:[gt,Le,Pe,u]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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:N()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{"inset-s":G(),start:G()}],end:[{"inset-e":G(),end:G()}],"inset-bs":[{"inset-bs":G()}],"inset-be":[{"inset-be":G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[si,"auto",Pe,Le]}],basis:[{basis:[Io,"full","auto",u,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[gt,Io,"auto","initial","none",Le]}],grow:[{grow:["",gt,Pe,Le]}],shrink:[{shrink:["",gt,Pe,Le]}],order:[{order:[si,"first","last","none",Pe,Le]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pbs:[{pbs:I()}],pbe:[{pbe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],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":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...Q()]}],"min-inline-size":[{"min-inline":["auto",...Q()]}],"max-inline-size":[{"max-inline":["none",...Q()]}],"block-size":[{block:["auto",...ee()]}],"min-block-size":[{"min-block":["auto",...ee()]}],"max-block-size":[{"max-block":["none",...ee()]}],w:[{w:[u,"screen",...q()]}],"min-w":[{"min-w":[u,"screen","none",...q()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",n,ac,xa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,eB,Kz]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",kg,Le]}],"font-family":[{font:[Zz,Xz,t]}],"font-features":[{"font-features":[Le]}],"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:[a,Pe,Le]}],"line-clamp":[{"line-clamp":[gt,"none",Pe,ZS]}],leading:[{leading:[l,...I()]}],"list-image":[{"list-image":["none",Pe,Le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Pe,Le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[gt,"from-font","auto",Pe,xa]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[gt,"auto",Pe,Le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"tab-size":[{tab:[si,Pe,Le]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Pe,Le]}],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",Pe,Le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},si,Pe,Le],radial:["",Pe,Le],conic:[si,Pe,Le]},Jz,Wz]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[gt,Pe,Le]}],"outline-w":[{outline:["",gt,ac,xa]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",h,wf,_f]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",g,wf,_f]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[gt,xa]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",b,wf,_f]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[gt,Pe,Le]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ee()}],"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":[gt]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[Pe,Le]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":O()}],"mask-image-conic-pos":[{"mask-conic":[gt]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Pe,Le]}],filter:[{filter:["","none",Pe,Le]}],blur:[{blur:De()}],brightness:[{brightness:[gt,Pe,Le]}],contrast:[{contrast:[gt,Pe,Le]}],"drop-shadow":[{"drop-shadow":["","none",y,wf,_f]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",gt,Pe,Le]}],"hue-rotate":[{"hue-rotate":[gt,Pe,Le]}],invert:[{invert:["",gt,Pe,Le]}],saturate:[{saturate:[gt,Pe,Le]}],sepia:[{sepia:["",gt,Pe,Le]}],"backdrop-filter":[{"backdrop-filter":["","none",Pe,Le]}],"backdrop-blur":[{"backdrop-blur":De()}],"backdrop-brightness":[{"backdrop-brightness":[gt,Pe,Le]}],"backdrop-contrast":[{"backdrop-contrast":[gt,Pe,Le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",gt,Pe,Le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[gt,Pe,Le]}],"backdrop-invert":[{"backdrop-invert":["",gt,Pe,Le]}],"backdrop-opacity":[{"backdrop-opacity":[gt,Pe,Le]}],"backdrop-saturate":[{"backdrop-saturate":[gt,Pe,Le]}],"backdrop-sepia":[{"backdrop-sepia":["",gt,Pe,Le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Pe,Le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[gt,"initial",Pe,Le]}],ease:[{ease:["linear","initial",S,Pe,Le]}],delay:[{delay:[gt,Pe,Le]}],animate:[{animate:["none",C,Pe,Le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,Pe,Le]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:qe()}],"rotate-x":[{"rotate-x":qe()}],"rotate-y":[{"rotate-y":qe()}],"rotate-z":[{"rotate-z":qe()}],scale:[{scale:Te()}],"scale-x":[{"scale-x":Te()}],"scale-y":[{"scale-y":Te()}],"scale-z":[{"scale-z":Te()}],"scale-3d":["scale-3d"],skew:[{skew:$e()}],"skew-x":[{"skew-x":$e()}],"skew-y":[{"skew-y":$e()}],transform:[{transform:[Pe,Le,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Xe()}],"translate-x":[{"translate-x":Xe()}],"translate-y":[{"translate-y":Xe()}],"translate-z":[{"translate-z":Xe()}],"translate-none":["translate-none"],zoom:[{zoom:[si,Pe,Le]}],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",Pe,Le]}],"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":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mbs":[{"scroll-mbs":I()}],"scroll-mbe":[{"scroll-mbe":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pbs":[{"scroll-pbs":I()}],"scroll-pbe":[{"scroll-pbe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",Pe,Le]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[gt,ac,xa,ZS]}],stroke:[{stroke:["none",...M()]}],"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"]}},rB=Dz(nB);function Ot(...e){return rB(sR(e))}function iB({delay:e=0,...t}){return F.jsx(dz,{"data-slot":"tooltip-provider",delay:e,...t})}function oB({...e}){return F.jsx($P,{"data-slot":"tooltip",...e})}function aB({...e}){return F.jsx(ez,{"data-slot":"tooltip-trigger",...e})}function sB({className:e,side:t="top",sideOffset:n=4,align:i="center",alignOffset:a=0,children:l,...c}){return F.jsx(rz,{children:F.jsx(lz,{align:i,alignOffset:a,side:t,sideOffset:n,className:"isolate z-50",children:F.jsxs(uz,{"data-slot":"tooltip-content",className:Ot("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...c,children:[l,F.jsx(fz,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}function Eb(e){return hn(e.defaultTagName??"div",e,e)}const ex=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tx=sR,xR=(e,t)=>n=>{var i;if(t?.variants==null)return tx(e,n?.class,n?.className);const{variants:a,defaultVariants:l}=t,c=Object.keys(a).map(d=>{const h=n?.[d],g=l?.[d];if(h===null)return null;const b=ex(h)||ex(g);return a[d][b]}),u=n&&Object.entries(n).reduce((d,h)=>{let[g,b]=h;return b===void 0||(d[g]=b),d},{}),p=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((d,h)=>{let{class:g,className:b,...y}=h;return Object.entries(y).every(E=>{let[_,x]=E;return Array.isArray(x)?x.includes({...l,...u}[_]):{...l,...u}[_]===x})?[...d,g,b]:d},[]);return tx(e,c,p,n?.class,n?.className)},Ag=768;function lB(){const[e,t]=A.useState(void 0);return A.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Ag-1}px)`),i=()=>{t(window.innerWidth<Ag)};return n.addEventListener("change",i),t(window.innerWidth<Ag),()=>n.removeEventListener("change",i)},[]),!!e}const cB=A.createContext(void 0);function Sb(e=!1){const t=A.useContext(cB);if(t===void 0&&!e)throw new Error(Vn(16));return t}function uB(e){const{focusableWhenDisabled:t,disabled:n,composite:i=!1,tabIndex:a=0,isNativeButton:l}=e,c=i&&t!==!1,u=i&&t===!1;return{props:A.useMemo(()=>{const d={onKeyDown(h){n&&t&&h.key!=="Tab"&&h.preventDefault()}};return i||(d.tabIndex=a,!l&&n&&(d.tabIndex=t?a:-1)),(l&&(t||c)||!l&&n)&&(d["aria-disabled"]=n),l&&(!t||u)&&(d.disabled=n),d},[i,n,t,c,u,l,a])}}function el(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:i=0,native:a=!0,composite:l}=e,c=A.useRef(null),u=Sb(!0),p=l??u!==void 0,{props:d}=uB({focusableWhenDisabled:n,disabled:t,composite:p,tabIndex:i,isNativeButton:a}),h=A.useCallback(()=>{const y=c.current;Og(y)&&p&&t&&d.disabled===void 0&&y.disabled&&(y.disabled=!1)},[t,d.disabled,p]);Me(h,[h]);const g=A.useCallback((y={})=>{const{onClick:E,onMouseDown:_,onKeyUp:x,onKeyDown:S,onPointerDown:C,...k}=y;return Ei({type:a?"button":void 0,onClick(N){if(t){N.preventDefault();return}E?.(N)},onMouseDown(N){t||_?.(N)},onKeyDown(N){if(t||(cd(N),S?.(N),N.baseUIHandlerPrevented))return;const R=N.target===N.currentTarget,P=N.currentTarget,I=Og(P),G=!a&&fB(P),U=R&&(a?I:!G),X=N.key==="Enter",$=N.key===" ",W=P.getAttribute("role"),V=W?.startsWith("menuitem")||W==="option"||W==="gridcell";if(R&&p&&$){if(N.defaultPrevented&&V)return;N.preventDefault(),G||a&&I?(P.click(),N.preventBaseUIHandler()):U&&(E?.(N),N.preventBaseUIHandler());return}U&&(!a&&($||X)&&N.preventDefault(),!a&&X&&E?.(N))},onKeyUp(N){if(!t){if(cd(N),x?.(N),N.target===N.currentTarget&&a&&p&&Og(N.currentTarget)&&N.key===" "){N.preventDefault();return}N.baseUIHandlerPrevented||N.target===N.currentTarget&&!a&&!p&&N.key===" "&&E?.(N)}},onPointerDown(N){if(t){N.preventDefault();return}C?.(N)}},a?void 0:{role:"button"},d,k)},[t,d,p,a]),b=Qe(y=>{c.current=y,h()});return{getButtonProps:g,buttonRef:b}}function Og(e){return en(e)&&e.tagName==="BUTTON"}function fB(e){return!!(e?.tagName==="A"&&e?.href)}const dB=A.forwardRef(function(t,n){const{render:i,className:a,disabled:l=!1,focusableWhenDisabled:c=!1,nativeButton:u=!0,style:p,...d}=t,{getButtonProps:h,buttonRef:g}=el({disabled:l,focusableWhenDisabled:c,native:u});return hn("button",t,{state:{disabled:l},ref:[n,g],props:[d,h]})}),pB=xR("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function _R({className:e,variant:t="default",size:n="default",...i}){return F.jsx(dB,{"data-slot":"button",className:Ot(pB({variant:t,size:n,className:e})),...i})}let nx=(function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});const hB={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},bc={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},gB={disabled:!1,...bc},wR={valid(e){return e===null?null:e?{[nx.valid]:""}:{[nx.invalid]:""}}},mB=A.createContext({invalid:void 0,name:void 0,validityData:{state:hB,errors:[],error:"",value:"",initialValue:null},setValidityData:Zn,disabled:void 0,touched:bc.touched,setTouched:Zn,dirty:bc.dirty,setDirty:Zn,filled:bc.filled,setFilled:Zn,focused:bc.focused,setFocused:Zn,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:gB,markedDirtyRef:{current:!1},registerFieldControl:Zn,validation:{getValidationProps:(e=An)=>e,getInputValidationProps:(e=An)=>e,inputRef:{current:null},commit:async()=>{}}});function jd(e=!0){const t=A.useContext(mB);if(t.setValidityData===Zn&&!e)throw new Error(Vn(28));return t}const bB=A.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:Zn,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function yB(){return A.useContext(bB)}const vB=A.createContext({controlId:void 0,registerControlId:Zn,labelId:void 0,setLabelId:Zn,messageIds:[],setMessageIds:Zn,getDescriptionProps:e=>e});function xb(){return A.useContext(vB)}function EB(e,t,n,i=!0,a){const[l,c]=A.useState(),u=eo(a?`${a}-label`:void 0),p=e??t??l;return Me(()=>{const d=e||t||!i?void 0:SB(n.current,u);l!==d&&c(d)}),p}function SB(e,t){const n=xB(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function xB(e){if(!e)return;const t=e.parentElement;if(t&&t.tagName==="LABEL")return t;const n=e.id;if(n){const a=e.nextElementSibling;if(a&&a.htmlFor===n)return a}const i=e.labels;return i&&i[0]}function RR(e={}){const{id:t,implicit:n=!1,controlRef:i}=e,{controlId:a,registerControlId:l}=xb(),c=eo(t),u=n?a:void 0,p=$n(()=>Symbol("labelable-control")),d=A.useRef(!1),h=A.useRef(t!=null),g=Qe(()=>{!d.current||l===Zn||(d.current=!1,l(p.current,void 0))});return Me(()=>{if(l===Zn)return;let b;if(n){const y=i?.current;Et(y)&&y.closest("label")!=null?b=t??null:b=u??c}else if(t!=null)h.current=!0,b=t;else if(h.current)b=c;else{g();return}if(b===void 0){g();return}d.current=!0,l(p.current,b)},[t,i,u,l,n,c,p,g]),A.useEffect(()=>g,[g]),a??c}function _b({controlled:e,default:t,name:n,state:i="value"}){const{current:a}=A.useRef(e!==void 0),[l,c]=A.useState(t),u=a?e:l,p=A.useCallback(d=>{a||c(d)},[]);return[u,p]}function TR(e,t){const{enabled:n=!0,getValue:i,id:a,value:l}=t,{registerFieldControl:c}=jd(),u=A.useRef(null);u.current||(u.current=Symbol()),Me(()=>{const p=u.current;if(!(!p||!n))return c(p,{controlRef:e,getValue:i,id:a,value:l}),()=>{c(p,void 0)}},[e,n,i,a,c,l])}const _B=A.forwardRef(function(t,n){const{render:i,className:a,id:l,name:c,value:u,disabled:p=!1,onValueChange:d,defaultValue:h,autoFocus:g=!1,style:b,...y}=t,{state:E,name:_,disabled:x,setTouched:S,setDirty:C,validityData:k,setFocused:O,setFilled:N,validationMode:R,validation:P}=jd(),I=x||p,G=_??c,U={...E,disabled:I},{labelId:X}=xb(),$=RR({id:l});Me(()=>{const ee=u!=null;P.inputRef.current?.value||ee&&u!==""?N(!0):ee&&u===""&&N(!1)},[P.inputRef,N,u]);const W=A.useRef(null);Me(()=>{g&&W.current===Lr(Ct(W.current))&&O(!0)},[g,O]);const[V]=_b({controlled:u,default:h,name:"FieldControl",state:"value"}),H=u!==void 0,B=H?V:void 0,q=Qe(()=>P.inputRef.current?.value);return TR(P.inputRef,{id:$,value:B,getValue:q}),hn("input",t,{ref:[n,W],state:U,props:[{id:$,disabled:I,name:G,ref:P.inputRef,"aria-labelledby":X,autoFocus:g,...H?{value:B}:{defaultValue:h},onChange(ee){const M=ee.currentTarget.value;d?.(M,ht(Pc,ee.nativeEvent)),C(M!==k.initialValue),N(M!=="")},onFocus(){O(!0)},onBlur(ee){S(!0),O(!1),R==="onBlur"&&P.commit(ee.currentTarget.value)},onKeyDown(ee){ee.currentTarget.tagName==="INPUT"&&ee.key==="Enter"&&(S(!0),P.commit(ee.currentTarget.value))}},P.getInputValidationProps(),y],stateAttributesMapping:wR})}),wB=A.forwardRef(function(t,n){return F.jsx(_B,{ref:n,...t})});function CG({className:e,type:t,...n}){return F.jsx(wB,{type:t,"data-slot":"input",className:Ot("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...n})}const CR=A.createContext(void 0);function Ga(e){const t=A.useContext(CR);if(e===!1&&t===void 0)throw new Error(Vn(27));return t}const RB={...Js,...Qs},TB=A.forwardRef(function(t,n){const{render:i,className:a,style:l,forceRender:c=!1,...u}=t,{store:p}=Ga(),d=p.useState("open"),h=p.useState("nested"),g=p.useState("mounted"),b=p.useState("transitionStatus");return hn("div",t,{state:{open:d,transitionStatus:b},ref:[p.context.backdropRef,n],stateAttributesMapping:RB,props:[{role:"presentation",hidden:!g,style:{userSelect:"none",WebkitUserSelect:"none"}},u],enabled:c||!h})}),CB=A.forwardRef(function(t,n){const{render:i,className:a,disabled:l=!1,nativeButton:c=!0,style:u,...p}=t,{store:d}=Ga(),h=d.useState("open");function g(_){h&&d.setOpen(!1,ht(c2,_.nativeEvent))}const{getButtonProps:b,buttonRef:y}=el({disabled:l,native:c});return hn("button",t,{state:{disabled:l},ref:[n,y],props:[{onClick:g},p,b]})}),kB=A.forwardRef(function(t,n){const{render:i,className:a,style:l,id:c,...u}=t,{store:p}=Ga(),d=eo(c);return p.useSyncedValueWithCleanup("descriptionElementId",d),hn("p",t,{ref:n,props:[{id:d},u]})});let AB=(function(e){return e.nestedDialogs="--nested-dialogs",e})({}),OB=(function(e){return e[e.open=Ca.open]="open",e[e.closed=Ca.closed]="closed",e[e.startingStyle=Ca.startingStyle]="startingStyle",e[e.endingStyle=Ca.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});const kR=A.createContext(void 0);function MB(){const e=A.useContext(kR);if(e===void 0)throw new Error(Vn(26));return e}const AR="ArrowUp",OR="ArrowDown",MR="ArrowLeft",NR="ArrowRight",IR="Home",DR="End",NB=new Set([MR,NR]),IB=new Set([AR,OR]),DB=new Set([...NB,...IB]);[...DB];const LR=new Set([AR,OR,MR,NR,IR,DR]),LB={...Js,...Qs,nestedDialogOpen(e){return e?{[OB.nestedDialogOpen]:""}:null}},PB=A.forwardRef(function(t,n){const{className:i,finalFocus:a,initialFocus:l,render:c,style:u,...p}=t,{store:d}=Ga(),h=d.useState("descriptionElementId"),g=d.useState("disablePointerDismissal"),b=d.useState("floatingRootContext"),y=d.useState("popupProps"),E=d.useState("modal"),_=d.useState("mounted"),x=d.useState("nested"),S=d.useState("nestedOpenDialogCount"),C=d.useState("open"),k=d.useState("openMethod"),O=d.useState("titleElementId"),N=d.useState("transitionStatus"),R=d.useState("role");MB(),Uc({open:C,ref:d.context.popupRef,onComplete(){C&&d.context.onOpenChangeComplete?.(!0)}});function P($){return $==="touch"?d.context.popupRef.current:!0}const I=l===void 0?P:l,G=S>0,X=hn("div",t,{state:{open:C,nested:x,transitionStatus:N,nestedDialogOpen:G},props:[y,{"aria-labelledby":O??void 0,"aria-describedby":h??void 0,role:R,tabIndex:-1,hidden:!_,onKeyDown($){LR.has($.key)&&$.stopPropagation()},style:{[AB.nestedDialogs]:S}},p],ref:[n,d.context.popupRef,d.useStateSetter("popupElement")],stateAttributesMapping:LB});return F.jsx(O1,{context:b,openInteractionType:k,disabled:!_,closeOnFocusOut:!g,initialFocus:I,returnFocus:a,modal:E!==!1,restoreFocus:"popup",children:X})}),PR=A.forwardRef(function(t,n){const{cutout:i,...a}=t;let l;if(i){const c=i.getBoundingClientRect();l=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${c.left}px ${c.top}px,${c.left}px ${c.bottom}px,${c.right}px ${c.bottom}px,${c.right}px ${c.top}px,${c.left}px ${c.top}px)`}return F.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...a,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:l}})}),zB=A.forwardRef(function(t,n){const{keepMounted:i=!1,...a}=t,{store:l}=Ga(),c=l.useState("mounted"),u=l.useState("modal"),p=l.useState("open");return c||i?F.jsx(kR.Provider,{value:i,children:F.jsxs(R1,{ref:n,...a,children:[c&&u===!0&&F.jsx(PR,{ref:l.context.internalBackdropRef,inert:oR(!p)}),t.children]})}):null});let rx={},ix={},ox="";function BB(e){if(typeof document>"u")return!1;const t=Ct(e);return pn(t).innerWidth-t.documentElement.clientWidth>0}function UB(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=Ct(e),i=n.documentElement,a=n.body,l=Xo(i)?i:a,c=l.style.overflowY,u=i.style.scrollbarGutter;i.style.scrollbarGutter="stable",l.style.overflowY="scroll";const p=l.offsetWidth;l.style.overflowY="hidden";const d=l.offsetWidth;return l.style.overflowY=c,i.style.scrollbarGutter=u,p===d}function FB(e){const t=Ct(e),n=t.documentElement,i=t.body,a=Xo(n)?n:i,l={overflowY:a.style.overflowY,overflowX:a.style.overflowX};return Object.assign(a.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(a.style,l)}}function HB(e){const t=Ct(e),n=t.documentElement,i=t.body,a=pn(n);let l=0,c=0,u=!1;const p=dn.create();if(Uw&&(a.visualViewport?.scale??1)!==1)return()=>{};function d(){const y=a.getComputedStyle(n),E=a.getComputedStyle(i),S=(y.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";l=n.scrollTop,c=n.scrollLeft,rx={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},ox=n.style.scrollBehavior,ix={position:i.style.position,height:i.style.height,width:i.style.width,boxSizing:i.style.boxSizing,overflowY:i.style.overflowY,overflowX:i.style.overflowX,scrollBehavior:i.style.scrollBehavior};const C=n.scrollHeight>n.clientHeight,k=n.scrollWidth>n.clientWidth,O=y.overflowY==="scroll"||E.overflowY==="scroll",N=y.overflowX==="scroll"||E.overflowX==="scroll",R=Math.max(0,a.innerWidth-i.clientWidth),P=Math.max(0,a.innerHeight-i.clientHeight),I=parseFloat(E.marginTop)+parseFloat(E.marginBottom),G=parseFloat(E.marginLeft)+parseFloat(E.marginRight),U=Xo(n)?n:i;if(u=UB(e),u){n.style.scrollbarGutter=S,U.style.overflowY="hidden",U.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:S,overflowY:"hidden",overflowX:"hidden"}),(C||O)&&(n.style.overflowY="scroll"),(k||N)&&(n.style.overflowX="scroll"),Object.assign(i.style,{position:"relative",height:I||P?`calc(100dvh - ${I+P}px)`:"100dvh",width:G||R?`calc(100vw - ${G+R}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),i.scrollTop=l,i.scrollLeft=c,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function h(){Object.assign(n.style,rx),Object.assign(i.style,ix),u||(n.scrollTop=l,n.scrollLeft=c,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=ox)}function g(){h(),p.request(d)}d();const b=mt(a,"resize",g);return()=>{p.cancel(),h(),typeof a.removeEventListener=="function"&&b()}}class jB{lockCount=0;restore=null;timeoutLock=ti.create();timeoutUnlock=ti.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const i=Ct(t).documentElement,a=pn(i).getComputedStyle(i).overflowY;if(a==="hidden"||a==="clip"){this.restore=Zn;return}const l=Fw||!BB(t);this.restore=l?FB(t):HB(t)}}const GB=new jB;function zR(e=!0,t=null){Me(()=>{if(e)return GB.acquire(t)},[e,t])}function $B(e){const t=A.useRef(""),n=A.useCallback(a=>{a.defaultPrevented||(t.current=a.pointerType,e(a,a.pointerType))},[e]);return{onClick:A.useCallback(a=>{if(a.detail===0){e(a,"keyboard");return}"pointerType"in a?e(a,a.pointerType):e(a,t.current),t.current=""},[e]),onPointerDown:n}}function BR(e,t){const n=A.useRef(e),i=Qe(t);Me(()=>{n.current!==e&&i(n.current)},[e,i]),Me(()=>{n.current=e},[e])}function UR(e){const[t,n]=A.useState(null),i=Qe((c,u)=>{e||n(u||(Fw?"touch":""))});BR(e,c=>{c&&!e&&n(null)});const{onClick:a,onPointerDown:l}=$B(i);return A.useMemo(()=>({openMethod:t,triggerProps:{onClick:a,onPointerDown:l}}),[t,a,l])}function qB(e){const{store:t,parentContext:n,actionsRef:i,isDrawer:a}=e,l=t.useState("open"),c=t.useState("disablePointerDismissal"),u=t.useState("modal"),p=t.useState("popupElement"),{openMethod:d,triggerProps:h}=UR(l);ub(t);const{forceUnmount:g}=fb(l,t),b=A.useCallback(()=>{t.setOpen(!1,ht(Vm))},[t]);A.useImperativeHandle(i,()=>({unmount:g,close:b}),[g,b]);const y=hb({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0}),[E,_]=A.useState(0),[x,S]=A.useState(0),C=E===0,k=K1(y),O=ab(y,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:u==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(X){if(!t.context.outsidePressEnabledRef.current||"button"in X&&X.button!==0||"touches"in X&&X.touches.length!==1)return!1;const $=sr(X);if(C&&!c){const W=$;return u&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===W||t.context.backdropRef.current===W||ot(W,p)&&!W?.hasAttribute("data-base-ui-portal"):!0}return!1},escapeKey:C});zR(l&&u===!0,p);const{getReferenceProps:N,getFloatingProps:R,getTriggerProps:P}=Fd([k,O]);t.useContextCallback("onNestedDialogOpen",(X,$)=>{_(X),S($)}),t.useContextCallback("onNestedDialogClose",()=>{_(0),S(0)}),A.useEffect(()=>(n?.onNestedDialogOpen&&l&&n.onNestedDialogOpen(E+1,x+(a?1:0)),n?.onNestedDialogClose&&!l&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&l&&n.onNestedDialogClose()}),[a,l,E,x,n]);const I=A.useMemo(()=>N(h),[N,h]),G=A.useMemo(()=>P(h),[P,h]),U=A.useMemo(()=>R(),[R]);t.useSyncedValues({openMethod:d,activeTriggerProps:I,inactiveTriggerProps:G,popupProps:U,floatingRootContext:y,nestedOpenDialogCount:E,nestedOpenDrawerCount:x})}const VB={...pb,modal:Ye(e=>e.modal),nested:Ye(e=>e.nested),nestedOpenDialogCount:Ye(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:Ye(e=>e.nestedOpenDrawerCount),disablePointerDismissal:Ye(e=>e.disablePointerDismissal),openMethod:Ye(e=>e.openMethod),descriptionElementId:Ye(e=>e.descriptionElementId),titleElementId:Ye(e=>e.titleElementId),viewportElement:Ye(e=>e.viewportElement),role:Ye(e=>e.role)};class wb extends Ud{constructor(t){super(YB(t),{popupRef:A.createRef(),backdropRef:A.createRef(),internalBackdropRef:A.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new Fc,onOpenChange:void 0,onOpenChangeComplete:void 0},VB)}setOpen=(t,n)=>{if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!t&&n.trigger==null&&this.state.activeTriggerId!=null&&(n.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(t,n),n.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(t,n);const i={open:t},a=n.trigger?.id??null;(a||t)&&(i.activeTriggerId=a,i.activeTriggerElement=n.trigger??null),this.update(i)};static useStore(t,n){const i=$n(()=>new wb(n)).current;return t??i}}function YB(e={}){return{...db(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}const ax=A.createContext(!1);function KB(e){const{children:t,open:n,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:l,disablePointerDismissal:c=!1,modal:u=!0,actionsRef:p,handle:d,triggerId:h,defaultTriggerId:g=null}=e,b=Ga(!0),y=A.useContext(ax),E=!!b,_=wb.useStore(d?.store,{open:i,openProp:n,activeTriggerId:g,triggerIdProp:h,modal:u,disablePointerDismissal:c,nested:E});$m(()=>{n===void 0&&_.state.open===!1&&i===!0&&_.update({open:!0,activeTriggerId:g})}),_.useControlledProp("openProp",n),_.useControlledProp("triggerIdProp",h),_.useSyncedValues({disablePointerDismissal:c,nested:E,modal:u}),_.useContextCallback("onOpenChange",a),_.useContextCallback("onOpenChangeComplete",l);const x=_.useState("payload");qB({store:_,actionsRef:p,parentContext:b?.store.context,isDrawer:y});const S=A.useMemo(()=>({store:_}),[_]);return F.jsx(ax.Provider,{value:!1,children:F.jsx(CR.Provider,{value:S,children:typeof t=="function"?t({payload:x}):t})})}const XB=A.forwardRef(function(t,n){const{render:i,className:a,style:l,id:c,...u}=t,{store:p}=Ga(),d=eo(c);return p.useSyncedValueWithCleanup("titleElementId",d),hn("h2",t,{ref:n,props:[{id:d},u]})});var WB={outline:{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"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const Pt=(e,t,n,i)=>{const a=A.forwardRef(({color:l="currentColor",size:c=24,stroke:u=2,title:p,className:d,children:h,...g},b)=>A.createElement("svg",{ref:b,...WB[e],width:c,height:c,className:["tabler-icon",`tabler-icon-${t}`,d].join(" "),strokeWidth:u,stroke:l,...g},[p&&A.createElement("title",{key:"svg-title"},p),...i.map(([y,E])=>A.createElement(y,E)),...Array.isArray(h)?h:[h]]));return a.displayName=`${n}`,a};const ZB=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]],kG=Pt("outline","arrow-left","ArrowLeft",ZB);const QB=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]],AG=Pt("outline","arrow-up","ArrowUp",QB);const JB=[["path",{d:"M15.5 13a3.5 3.5 0 0 0 -3.5 3.5v1a3.5 3.5 0 0 0 7 0v-1.8",key:"svg-0"}],["path",{d:"M8.5 13a3.5 3.5 0 0 1 3.5 3.5v1a3.5 3.5 0 0 1 -7 0v-1.8",key:"svg-1"}],["path",{d:"M17.5 16a3.5 3.5 0 0 0 0 -7h-.5",key:"svg-2"}],["path",{d:"M19 9.3v-2.8a3.5 3.5 0 0 0 -7 0",key:"svg-3"}],["path",{d:"M6.5 16a3.5 3.5 0 0 1 0 -7h.5",key:"svg-4"}],["path",{d:"M5 9.3v-2.8a3.5 3.5 0 0 1 7 0v10",key:"svg-5"}]],e3=Pt("outline","brain","Brain",JB);const t3=[["path",{d:"M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -6",key:"svg-0"}],["path",{d:"M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -10",key:"svg-1"}],["path",{d:"M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -14",key:"svg-2"}],["path",{d:"M4 20h14",key:"svg-3"}]],n3=Pt("outline","chart-bar","ChartBar",t3);const r3=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],OG=Pt("outline","check","Check",r3);const i3=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],o3=Pt("outline","chevron-down","ChevronDown",i3);const a3=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],MG=Pt("outline","chevron-right","ChevronRight",a3);const s3=[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]],l3=Pt("outline","chevron-up","ChevronUp",s3);const c3=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M9 12h6",key:"svg-1"}],["path",{d:"M12 9v6",key:"svg-2"}]],u3=Pt("outline","circle-plus","CirclePlus",c3);const f3=[["path",{d:"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]],d3=Pt("outline","copy","Copy",f3);const p3=[["path",{d:"M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],h3=Pt("outline","dots","Dots",p3);const g3=[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2",key:"svg-1"}]],NG=Pt("outline","file","File",g3);const m3=[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M9 4l0 16",key:"svg-1"}]],b3=Pt("outline","layout-sidebar","LayoutSidebar",m3);const y3=[["path",{d:"M12 3a9 9 0 1 0 9 9",key:"svg-0"}]],IG=Pt("outline","loader-2","Loader2",y3);const v3=[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008",key:"svg-0"}]],E3=Pt("outline","moon","Moon",v3);const S3=[["path",{d:"M15 7l-6.5 6.5a1.5 1.5 0 0 0 3 3l6.5 -6.5a3 3 0 0 0 -6 -6l-6.5 6.5a4.5 4.5 0 0 0 9 9l6.5 -6.5",key:"svg-0"}]],DG=Pt("outline","paperclip","Paperclip",S3);const x3=[["path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",key:"svg-0"}],["path",{d:"M13.5 6.5l4 4",key:"svg-1"}]],_3=Pt("outline","pencil","Pencil",x3);const w3=[["path",{d:"M15 8h.01",key:"svg-0"}],["path",{d:"M6 13l2.644 -2.644a1.21 1.21 0 0 1 1.712 0l3.644 3.644",key:"svg-1"}],["path",{d:"M13 13l1.644 -1.644a1.21 1.21 0 0 1 1.712 0l1.644 1.644",key:"svg-2"}],["path",{d:"M3 7v-2a2 2 0 0 1 2 -2h2",key:"svg-3"}],["path",{d:"M3 17v2a2 2 0 0 0 2 2h2",key:"svg-4"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"svg-5"}],["path",{d:"M17 21h2a2 2 0 0 0 2 -2v-2",key:"svg-6"}]],LG=Pt("outline","photo-scan","PhotoScan",w3);const R3=[["path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4",key:"svg-0"}],["path",{d:"M9 15l-4.5 4.5",key:"svg-1"}],["path",{d:"M14.5 4l5.5 5.5",key:"svg-2"}]],sx=Pt("outline","pin","Pin",R3);const T3=[["path",{d:"M3 3l18 18",key:"svg-0"}],["path",{d:"M15 4.5l-3.249 3.249m-2.57 1.433l-2.181 .818l-1.5 1.5l7 7l1.5 -1.5l.82 -2.186m1.43 -2.563l3.25 -3.251",key:"svg-1"}],["path",{d:"M9 15l-4.5 4.5",key:"svg-2"}],["path",{d:"M14.5 4l5.5 5.5",key:"svg-3"}]],C3=Pt("outline","pinned-off","PinnedOff",T3);const k3=[["path",{d:"M5 7a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -10",key:"svg-0"}]],PG=Pt("outline","player-stop","PlayerStop",k3);const A3=[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]],zG=Pt("outline","refresh","Refresh",A3);const O3=[["path",{d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]],lx=Pt("outline","search","Search",O3);const M3=[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]],N3=Pt("outline","settings","Settings",M3);const I3=[["path",{d:"M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6",key:"svg-0"}]],BG=Pt("outline","sparkles","Sparkles",I3);const D3=[["path",{d:"M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]],L3=Pt("outline","sun","Sun",D3);const P3=[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]],z3=Pt("outline","trash","Trash",P3);const B3=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]],UG=Pt("outline","user","User",B3);const U3=[["path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3",key:"svg-0"}],["path",{d:"M15 6l3 3",key:"svg-1"}],["path",{d:"M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2",key:"svg-2"}],["path",{d:"M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2",key:"svg-3"}]],F3=Pt("outline","wand","Wand",U3);const H3=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],FR=Pt("outline","x","X",H3);function j3({...e}){return F.jsx(KB,{"data-slot":"sheet",...e})}function G3({...e}){return F.jsx(zB,{"data-slot":"sheet-portal",...e})}function $3({className:e,...t}){return F.jsx(TB,{"data-slot":"sheet-overlay",className:Ot("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",e),...t})}function q3({className:e,children:t,side:n="right",showCloseButton:i=!0,...a}){return F.jsxs(G3,{children:[F.jsx($3,{}),F.jsxs(PB,{"data-slot":"sheet-content","data-side":n,className:Ot("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",e),...a,children:[t,i&&F.jsxs(CB,{"data-slot":"sheet-close",render:F.jsx(_R,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"}),children:[F.jsx(FR,{}),F.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function V3({className:e,...t}){return F.jsx("div",{"data-slot":"sheet-header",className:Ot("flex flex-col gap-0.5 p-4",e),...t})}function Y3({className:e,...t}){return F.jsx(XB,{"data-slot":"sheet-title",className:Ot("font-heading text-base font-medium text-foreground",e),...t})}function K3({className:e,...t}){return F.jsx(kB,{"data-slot":"sheet-description",className:Ot("text-sm text-muted-foreground",e),...t})}const X3="sidebar_state",W3=3600*24*7,Z3="16rem",Q3="18rem",J3="3rem",eU="b",HR=A.createContext(null);function Hc(){const e=A.useContext(HR);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function tU({defaultOpen:e=!0,open:t,onOpenChange:n,className:i,style:a,children:l,...c}){const u=lB(),[p,d]=A.useState(!1),[h,g]=A.useState(e),b=t??h,y=A.useCallback(S=>{const C=typeof S=="function"?S(b):S;n?n(C):g(C),document.cookie=`${X3}=${C}; path=/; max-age=${W3}`},[n,b]),E=A.useCallback(()=>u?d(S=>!S):y(S=>!S),[u,y,d]);A.useEffect(()=>{const S=C=>{C.key===eU&&(C.metaKey||C.ctrlKey)&&(C.preventDefault(),E())};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[E]);const _=b?"expanded":"collapsed",x=A.useMemo(()=>({state:_,open:b,setOpen:y,isMobile:u,openMobile:p,setOpenMobile:d,toggleSidebar:E}),[_,b,y,u,p,d,E]);return F.jsx(HR.Provider,{value:x,children:F.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Z3,"--sidebar-width-icon":J3,...a},className:Ot("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",i),...c,children:l})})}function nU({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:i,children:a,dir:l,...c}){const{isMobile:u,state:p,openMobile:d,setOpenMobile:h}=Hc();return n==="none"?F.jsx("div",{"data-slot":"sidebar",className:Ot("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",i),...c,children:a}):u?F.jsx(j3,{open:d,onOpenChange:h,...c,children:F.jsxs(q3,{dir:l,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Q3},side:e,children:[F.jsxs(V3,{className:"sr-only",children:[F.jsx(Y3,{children:"Sidebar"}),F.jsx(K3,{children:"Displays the mobile sidebar."})]}),F.jsx("div",{className:"flex h-full w-full flex-col",children:a})]})}):F.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":p,"data-collapsible":p==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[F.jsx("div",{"data-slot":"sidebar-gap",className:Ot("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),F.jsx("div",{"data-slot":"sidebar-container","data-side":e,className:Ot("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...c,children:F.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:a})})]})}function rU({className:e,onClick:t,...n}){const{toggleSidebar:i}=Hc();return F.jsxs(_R,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:Ot(e),onClick:a=>{t?.(a),i()},...n,children:[F.jsx(b3,{}),F.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function iU({className:e,...t}){return F.jsx("main",{"data-slot":"sidebar-inset",className:Ot("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function oU({className:e,...t}){return F.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:Ot("flex flex-col gap-2 p-2",e),...t})}function aU({className:e,...t}){return F.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:Ot("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function sU({className:e,...t}){return F.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:Ot("relative flex w-full min-w-0 flex-col p-2",e),...t})}function lU({className:e,render:t,...n}){return Eb({defaultTagName:"div",props:Ei({className:Ot("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",e)},n),render:t,state:{slot:"sidebar-group-label",sidebar:"group-label"}})}function Ms({className:e,...t}){return F.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:Ot("flex w-full min-w-0 flex-col gap-0",e),...t})}function ka({className:e,...t}){return F.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:Ot("group/menu-item relative",e),...t})}const cU=xR("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Aa({render:e,isActive:t=!1,variant:n="default",size:i="default",tooltip:a,className:l,...c}){const{isMobile:u,state:p}=Hc(),d=Eb({defaultTagName:"button",props:Ei({className:Ot(cU({variant:n,size:i}),l)},c),render:a?F.jsx(aB,{render:e}):e,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:i,active:t}});return a?(typeof a=="string"&&(a={children:a}),F.jsxs(oB,{children:[d,F.jsx(sB,{side:"right",align:"center",hidden:p!=="collapsed"||u,...a})]})):d}function uU({className:e,...t}){return F.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:Ot("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden",e),...t})}function fU({render:e,size:t="md",isActive:n=!1,className:i,...a}){return Eb({defaultTagName:"a",props:Ei({className:Ot("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",i)},a),render:e,state:{slot:"sidebar-menu-sub-button",sidebar:"menu-sub-button",size:t,active:n}})}const dU="modulepreload",pU=function(e){return"/"+e},cx={},Wi=function(t,n,i){let a=Promise.resolve();if(n&&n.length>0){let p=function(d){return Promise.all(d.map(h=>Promise.resolve(h).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),u=c?.nonce||c?.getAttribute("nonce");a=p(n.map(d=>{if(d=pU(d),d in cx)return;cx[d]=!0;const h=d.endsWith(".css"),g=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${g}`))return;const b=document.createElement("link");if(b.rel=h?"stylesheet":dU,h||(b.as="script"),b.crossOrigin="",b.href=d,u&&b.setAttribute("nonce",u),document.head.appendChild(b),h)return new Promise((y,E)=>{b.addEventListener("load",y),b.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${d}`)))})}))}function l(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return a.then(c=>{for(const u of c||[])u.status==="rejected"&&l(u.reason);return t().catch(l)})};function hU(e){const{open:t,defaultOpen:n,onOpenChange:i,disabled:a}=e,l=t!==void 0,[c,u]=_b({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:p,setMounted:d,transitionStatus:h}=H1(c,!0,!0),[g,b]=A.useState(c),[{height:y,width:E},_]=A.useState({height:void 0,width:void 0}),x=eo(),[S,C]=A.useState(),k=S??x,[O,N]=A.useState(!1),[R,P]=A.useState(!1),I=A.useRef(null),G=A.useRef(null),U=A.useRef(null),X=A.useRef(null),$=cb(X,!1),W=Qe(V=>{const H=!c,B=ht(Ia,V.nativeEvent);if(i(H,B),B.isCanceled)return;const q=X.current;G.current==="css-animation"&&q!=null&&q.style.removeProperty("animation-name"),!O&&!R&&(G.current!=null&&G.current!=="css-animation"&&!p&&H&&d(!0),G.current==="css-animation"&&(!g&&H&&b(!0),!p&&H&&d(!0))),u(H),G.current==="none"&&p&&!H&&d(!1)});return Me(()=>{l&&G.current==="none"&&!c&&d(!1)},[l,c,t,d]),A.useMemo(()=>({abortControllerRef:I,animationTypeRef:G,disabled:a,handleTrigger:W,height:y,mounted:p,open:c,panelId:k,panelRef:X,runOnceAnimationsFinish:$,setDimensions:_,setHiddenUntilFound:N,setKeepMounted:P,setMounted:d,setOpen:u,setPanelIdState:C,setVisible:b,transitionDimensionRef:U,transitionStatus:h,visible:g,width:E}),[I,G,a,W,y,p,c,k,X,$,_,N,P,d,u,b,U,h,g,E])}const jR=A.createContext(void 0);function GR(){const e=A.useContext(jR);if(e===void 0)throw new Error(Vn(15));return e}let yc=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=La.startingStyle]="startingStyle",e[e.endingStyle=La.endingStyle]="endingStyle",e})({}),gU=(function(e){return e.panelOpen="data-panel-open",e})({});const mU={[yc.open]:""},bU={[yc.closed]:""},yU={open(e){return e?{[gU.panelOpen]:""}:null}},vU={open(e){return e?mU:bU}},$R={...vU,...Qs},EU=A.forwardRef(function(t,n){const{render:i,className:a,defaultOpen:l=!1,disabled:c=!1,onOpenChange:u,open:p,style:d,...h}=t,g=Qe(u),b=hU({open:p,defaultOpen:l,onOpenChange:g,disabled:c}),y=A.useMemo(()=>({open:b.open,disabled:b.disabled,transitionStatus:b.transitionStatus}),[b.open,b.disabled,b.transitionStatus]),E=A.useMemo(()=>({...b,onOpenChange:g,state:y}),[b,g,y]),_=hn("div",t,{state:y,ref:n,props:h,stateAttributesMapping:$R});return F.jsx(jR.Provider,{value:E,children:_})}),SU={...yU,...Qs},xU=A.forwardRef(function(t,n){const{panelId:i,open:a,handleTrigger:l,state:c,disabled:u}=GR(),{className:p,disabled:d=u,id:h,render:g,nativeButton:b=!0,style:y,...E}=t,{getButtonProps:_,buttonRef:x}=el({disabled:d,focusableWhenDisabled:!0,native:b}),S=A.useMemo(()=>({"aria-controls":a?i:void 0,"aria-expanded":a,onClick:l}),[i,a,l]);return hn("button",t,{state:c,ref:[n,x],props:[S,E,_],stateAttributesMapping:SU})});let _U=(function(e){return e.disabled="data-disabled",e.orientation="data-orientation",e})({});function wU(e){const{abortControllerRef:t,animationTypeRef:n,externalRef:i,height:a,hiddenUntilFound:l,keepMounted:c,id:u,mounted:p,onOpenChange:d,open:h,panelRef:g,runOnceAnimationsFinish:b,setDimensions:y,setMounted:E,setOpen:_,setVisible:x,transitionDimensionRef:S,visible:C,width:k}=e,O=A.useRef(!1),N=A.useRef(null),R=A.useRef(h),P=A.useRef(h),I=Ld(),G=A.useMemo(()=>n.current==="css-animation"?!C:!h&&!p,[h,p,C,n]),U=Qe($=>{if(!$)return;if(n.current==null||S.current==null){const H=getComputedStyle($),B=H.animationName!=="none"&&H.animationName!=="",q=H.transitionDuration!=="0s"&&H.transitionDuration!=="";B&&q||(H.animationName==="none"&&H.transitionDuration!=="0s"?n.current="css-transition":H.animationName!=="none"&&H.transitionDuration==="0s"?n.current="css-animation":n.current="none"),$.getAttribute(_U.orientation)==="horizontal"||H.transitionProperty.indexOf("width")>-1?S.current="width":S.current="height"}if(n.current!=="css-transition")return;(a===void 0||k===void 0)&&(y({height:$.scrollHeight,width:$.scrollWidth}),P.current&&$.style.setProperty("transition-duration","0s"));let W=-1,V=-1;return W=dn.request(()=>{P.current=!1,V=dn.request(()=>{setTimeout(()=>{$.style.removeProperty("transition-duration")})})}),()=>{dn.cancel(W),dn.cancel(V)}}),X=qo(i,g,U);return Me(()=>{if(n.current!=="css-transition")return;const $=g.current;if(!$)return;let W=-1;if(t.current!=null&&(t.current.abort(),t.current=null),h){const V={"justify-content":$.style.justifyContent,"align-items":$.style.alignItems,"align-content":$.style.alignContent,"justify-items":$.style.justifyItems};Object.keys(V).forEach(H=>{$.style.setProperty(H,"initial","important")}),!P.current&&!c&&$.setAttribute(yc.startingStyle,""),y({height:$.scrollHeight,width:$.scrollWidth}),W=dn.request(()=>{Object.entries(V).forEach(([H,B])=>{B===""?$.style.removeProperty(H):$.style.setProperty(H,B)})})}else{if($.scrollHeight===0&&$.scrollWidth===0)return;y({height:$.scrollHeight,width:$.scrollWidth});const V=new AbortController;t.current=V;const H=V.signal;let B=null;const q=yc.endingStyle;return B=new MutationObserver(Q=>{Q.some(M=>M.type==="attributes"&&M.attributeName===q)&&(B?.disconnect(),B=null,b(()=>{y({height:0,width:0}),$.style.removeProperty("content-visibility"),E(!1),t.current===V&&(t.current=null)},H))}),B.observe($,{attributes:!0,attributeFilter:[q]}),()=>{B?.disconnect(),I.cancel(),t.current===V&&(V.abort(),t.current=null)}}return()=>{dn.cancel(W)}},[t,n,I,l,c,p,h,g,b,y,E]),Me(()=>{if(n.current!=="css-animation")return;const $=g.current;$&&(N.current=$.style.animationName||N.current,$.style.setProperty("animation-name","none"),y({height:$.scrollHeight,width:$.scrollWidth}),!R.current&&!O.current&&$.style.removeProperty("animation-name"),h?(t.current!=null&&(t.current.abort(),t.current=null),E(!0),x(!0)):(t.current=new AbortController,b(()=>{E(!1),x(!1),t.current=null},t.current.signal)))},[t,n,h,g,b,y,E,x,C]),Ad(()=>{const $=dn.request(()=>{R.current=!1});return()=>dn.cancel($)}),Me(()=>{if(!l)return;const $=g.current;if(!$)return;let W=-1,V=-1;return h&&O.current&&($.style.transitionDuration="0s",y({height:$.scrollHeight,width:$.scrollWidth}),W=dn.request(()=>{O.current=!1,V=dn.request(()=>{setTimeout(()=>{$.style.removeProperty("transition-duration")})})})),()=>{dn.cancel(W),dn.cancel(V)}},[l,h,g,y]),Me(()=>{const $=g.current;$&&l&&G&&($.setAttribute("hidden","until-found"),n.current==="css-transition"&&$.setAttribute(yc.startingStyle,""))},[l,G,n,g]),A.useEffect(function(){const W=g.current;if(!W)return;function V(H){O.current=!0,_(!0),d(!0,ht(Pc,H))}return mt(W,"beforematch",V)},[d,g,_]),A.useMemo(()=>({props:{hidden:G,id:u,ref:X}}),[G,u,X])}let ux=(function(e){return e.collapsiblePanelHeight="--collapsible-panel-height",e.collapsiblePanelWidth="--collapsible-panel-width",e})({});const RU=A.forwardRef(function(t,n){const{className:i,hiddenUntilFound:a,keepMounted:l,render:c,id:u,style:p,...d}=t,{abortControllerRef:h,animationTypeRef:g,height:b,mounted:y,onOpenChange:E,open:_,panelId:x,panelRef:S,runOnceAnimationsFinish:C,setDimensions:k,setHiddenUntilFound:O,setKeepMounted:N,setMounted:R,setPanelIdState:P,setOpen:I,setVisible:G,state:U,transitionDimensionRef:X,visible:$,width:W,transitionStatus:V}=GR(),H=a??!1,B=l??!1;Me(()=>{if(u)return P(u),()=>{P(void 0)}},[u,P]),Me(()=>{O(H)},[O,H]),Me(()=>{N(B)},[N,B]);const{props:q}=wU({abortControllerRef:h,animationTypeRef:g,externalRef:n,height:b,hiddenUntilFound:H,id:x,keepMounted:B,mounted:y,onOpenChange:E,open:_,panelRef:S,runOnceAnimationsFinish:C,setDimensions:k,setMounted:R,setOpen:I,setVisible:G,transitionDimensionRef:X,visible:$,width:W});Uc({open:_&&V==="idle",ref:S,onComplete(){_&&k({height:void 0,width:void 0})}});const Q=A.useMemo(()=>({...U,transitionStatus:V}),[U,V]),ee=hn("div",t,{state:Q,ref:[n,S],props:[q,{style:{[ux.collapsiblePanelHeight]:b===void 0?"auto":`${b}px`,[ux.collapsiblePanelWidth]:W===void 0?"auto":`${W}px`}},d],stateAttributesMapping:$R});return B||H||y?ee:null});function TU({...e}){return F.jsx(EU,{"data-slot":"collapsible",...e})}function CU({...e}){return F.jsx(xU,{"data-slot":"collapsible-trigger",...e})}function kU({...e}){return F.jsx(RU,{"data-slot":"collapsible-content",...e})}function Mg(e,t){return!!(e===t||t!=="/"&&e.startsWith(t))}function AU({routes:e}){const{state:t}=Hc(),n=t==="collapsed",[i,a]=A.useState(null),l=Iw();return F.jsx(Ms,{children:e.map(c=>{const u=!n&&i===c.id,p=!!c.subs?.length,d=Mg(l.pathname,c.link)||c.subs?.some(h=>Mg(l.pathname,h.link));return F.jsx(ka,{children:p?F.jsxs(TU,{open:u,onOpenChange:h=>a(h?c.id:null),className:"w-full",children:[F.jsxs(CU,{render:F.jsx(Aa,{className:Ot("flex w-full items-center rounded-lg px-2 transition-colors",u||d?"bg-sidebar-muted text-foreground":"text-muted-foreground hover:bg-sidebar-muted hover:text-foreground",n&&"justify-center")}),children:[c.icon,!n&&F.jsx("span",{className:"ml-2 flex-1 text-sm font-medium",children:c.title}),!n&&p&&F.jsx("span",{className:"ml-auto",children:u?F.jsx(l3,{className:"size-4"}):F.jsx(o3,{className:"size-4"})})]}),!n&&F.jsx(kU,{children:F.jsx(uU,{className:"my-1 ml-3.5",children:c.subs?.map(h=>{const g=Mg(l.pathname,h.link);return F.jsx(ka,{className:"h-auto",children:F.jsx(fU,{render:F.jsx(di,{to:h.link,className:Ot("flex items-center rounded-md px-4 py-1.5 text-sm font-medium",g?"bg-sidebar-muted text-foreground":"text-muted-foreground hover:bg-sidebar-muted hover:text-foreground")}),children:h.title})},`${c.id}-${h.title}`)})})})]}):F.jsxs(Aa,{tooltip:c.title,render:F.jsx(di,{to:c.link,className:Ot("flex items-center rounded-lg px-2 transition-colors",d?"bg-sidebar-muted text-foreground":"text-muted-foreground hover:bg-sidebar-muted hover:text-foreground",n&&"justify-center")}),children:[c.icon,!n&&F.jsx("span",{className:"ml-2 text-sm font-medium",children:c.title})]})},c.id)})})}const fx=e=>{let t;const n=new Set,i=(d,h)=>{const g=typeof d=="function"?d(t):d;if(!Object.is(g,t)){const b=t;t=h??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(y=>y(t,b))}},a=()=>t,u={setState:i,getState:a,getInitialState:()=>p,subscribe:d=>(n.add(d),()=>n.delete(d))},p=t=e(i,a,u);return u},OU=(e=>e?fx(e):fx),MU=e=>e;function NU(e,t=MU){const n=pi.useSyncExternalStore(e.subscribe,pi.useCallback(()=>t(e.getState()),[e,t]),pi.useCallback(()=>t(e.getInitialState()),[e,t]));return pi.useDebugValue(n),n}const dx=e=>{const t=OU(e),n=i=>NU(t,i);return Object.assign(n,t),n},IU=(e=>e?dx(e):dx);function DU(){return typeof window>"u"?"":window.location.origin}function LU(){return typeof window<"u"&&localStorage.getItem("hermium_api_key")||""}function PU(){localStorage.removeItem("hermium_api_key")}async function ni(e,t={}){const i=`${DU()}${e}`,a={"Content-Type":"application/json",...t.headers},l=LU();l&&(a.Authorization=`Bearer ${l}`);const c=await fetch(i,{...t,headers:a});if(c.status===401&&!e.startsWith("/api/hermes/v1/"))throw PU(),window.location.href="/login",new Error("Unauthorized");if(!c.ok){const d=await c.text().catch(()=>"");throw d.trim().startsWith("<!DOCTYPE")||d.trim().startsWith("<html")?new Error(`API unreachable (HTTP ${c.status}). Is the API server running on :4000?`):new Error(`API Error ${c.status}: ${d||c.statusText}`)}const u=await c.json(),p=u&&typeof u=="object"&&"data"in u?u.data:u;if(u&&typeof u=="object"&&"error"in u&&u.error)throw new Error(u.error.message);return p}async function zU(){return(await ni("/api/hermes/sessions")).sessions}async function px(e){try{return await ni(`/api/hermes/sessions/${e}`)}catch{return null}}async function BU(e){return ni("/api/hermes/sessions",{method:"POST",body:JSON.stringify(e)})}async function UU(e,t){await ni(`/api/hermes/sessions/${e}/rename`,{method:"POST",body:JSON.stringify({title:t})})}async function FU(e){await ni(`/api/hermes/sessions/${e}`,{method:"DELETE"})}async function Em(e,t){await ni(`/api/hermes/sessions/${e}/messages`,{method:"POST",body:JSON.stringify(t)})}async function HU(e){return ni("/api/hermes/chat/run",{method:"POST",body:JSON.stringify(e)})}const sc=new Map;function jU(){return typeof window<"u"?localStorage.getItem("hermium_server_url")||"http://localhost:4000":""}function GU(){return typeof window<"u"&&localStorage.getItem("hermium_api_key")||""}function $U(e,t){const n=sc.get(e);n&&(n.close(),sc.delete(e));const i=GU();let a;function l(){let g=`${jU()}/api/hermes/chat/stream?run_id=${encodeURIComponent(e)}`;return i&&(g+=`&token=${encodeURIComponent(i)}`),a&&(g+=`&last_event_id=${encodeURIComponent(a)}`),g}let c=null,u=!1,p=0;const d=3e4;function h(){if(u||typeof window>"u")return;const g=l();console.log(`[EventSource] Connecting to ${g}`),c=new EventSource(g),sc.set(e,c);const b=E=>{if(!u){E.lastEventId&&(a=E.lastEventId);try{const _=JSON.parse(E.data);_&&typeof _=="object"&&(console.log(`[EventSource] Event: ${_.event||E.type}`),t.onEvent(_))}catch{}}},y=["run.started","run.queued","message.delta","reasoning.delta","thinking.delta","reasoning.available","tool.started","tool.completed","run.completed","run.error","error","abort.started","abort.completed","ping"];for(const E of y)c.addEventListener(E,b);c.onmessage=b,c.onerror=()=>{if(!u)if(c&&c.readyState===EventSource.CLOSED){console.log(`[EventSource] Closed for run ${e}, manual reconnect scheduled`),sc.delete(e),p++;const E=Math.min(1e3*Math.pow(2,p-1),d);setTimeout(h,E)}else console.log(`[EventSource] Transient error for run ${e}, browser auto-reconnecting...`)},c.onopen=()=>{console.log(`[EventSource] Connected for run ${e}`),p=0}}return h(),()=>{console.log(`[EventSource] Aborting / closing for run ${e}`),u=!0,c&&c.close(),sc.delete(e),t.onClose?.()}}async function qU(e){const t=new FormData;for(const a of e)t.append("file",a);const n=await fetch("/api/hermes/files/upload",{method:"POST",body:t});if(!n.ok){const a=await n.json().catch(()=>({error:`HTTP ${n.status}`}));throw new Error(a.error||`Upload failed: ${n.status}`)}return(await n.json()).files}const Rf="hermium_active_session_id",qR="hermium_pinned_sessions";function VU(){try{const e=localStorage.getItem(qR);return e?JSON.parse(e):[]}catch{return[]}}function hx(e){localStorage.setItem(qR,JSON.stringify(e))}function lc(){return Date.now().toString(36)+Math.random().toString(36).slice(2,8)}const vc=new Map;function cc(e,t,n=500){const i=`${e}:${t.id}`,a=vc.get(i);a&&clearTimeout(a);const l=setTimeout(()=>{vc.delete(i),Em(e,t).catch(c=>{console.error("[store] Debounced save failed:",c)})},n);vc.set(i,l)}function YU(e,t){const n=new Map;for(const i of e)n.set(i.id,i);for(const i of t){const a=n.get(i.id);if(!a){n.set(i.id,i);continue}const l=(i.content?.length||0)+(i.reasoning?.length||0),c=(a.content?.length||0)+(a.reasoning?.length||0);l>c&&n.set(i.id,i)}return Array.from(n.values()).sort((i,a)=>(i.timestamp||0)-(a.timestamp||0))}const $i=IU((e,t)=>({sessions:[],activeSessionId:null,messages:[],isStreaming:!1,isLoadingSessions:!1,sessionsLoaded:!1,pinnedSessionIds:VU(),activeStream:null,setSessions:n=>e({sessions:n}),setActiveSessionId:n=>e({activeSessionId:n}),setMessages:n=>e({messages:n}),appendMessage:n=>e(i=>({messages:[...i.messages,n]})),updateMessage:(n,i)=>e(a=>({messages:a.messages.map(l=>l.id===n?{...l,...i}:l)})),setStreaming:n=>e({isStreaming:n}),async loadSessions(){e({isLoadingSessions:!0});try{const n=await zU(),a=[...t().sessions.filter(c=>!n.some(u=>u.id===c.id)&&c.id===t().activeSessionId),...n];if(e({sessions:a,sessionsLoaded:!0}),!t().activeSessionId){const c=localStorage.getItem(Rf);c&&a.some(u=>u.id===c)&&await t().switchSession(c)}}catch(n){console.error("Failed to load sessions:",n)}finally{e({isLoadingSessions:!1})}},async switchSession(n){const i=t();if(console.log(`[store] switchSession: ${n}. currentActive=${i.activeSessionId}, msgs=${i.messages.length}, streaming=${i.isStreaming}`),i.activeSessionId===n&&i.messages.length>0){await t().syncFromDb(n),localStorage.setItem(Rf,n),e(a=>a.sessions.find(c=>c.id===n)?{sessions:a.sessions.map(c=>c.id===n?{...c,lastActiveAt:Date.now()}:c)}:a);return}i.activeStream?.abort(),e({activeSessionId:n,messages:[],isStreaming:!1,activeStream:null}),localStorage.setItem(Rf,n);try{const a=await px(n);a?.messages&&e({messages:a.messages})}catch(a){console.error("Failed to load session messages:",a)}e(a=>a.sessions.find(c=>c.id===n)?{sessions:a.sessions.map(c=>c.id===n?{...c,lastActiveAt:Date.now()}:c)}:a)},async syncFromDb(n){try{const i=await px(n);if(!i?.messages)return;const a=t().messages,l=YU(i.messages,a),c=l.map(p=>p.content+(p.reasoning||"")).join(""),u=a.map(p=>p.content+(p.reasoning||"")).join("");(c!==u||l.length!==a.length)&&(console.log(`[store] syncFromDb: updating ${a.length} → ${l.length} messages`),e({messages:l}))}catch(i){console.error("[store] syncFromDb failed:",i)}},async createNewSession(){const n=lc();try{await BU({id:n,title:"",source:"api_server"})}catch(i){console.error("Failed to create session on server:",i)}return e({activeSessionId:n,messages:[],isStreaming:!1,activeStream:null}),localStorage.setItem(Rf,n),n},async deleteSession(n){try{await FU(n)}catch(i){console.error("Failed to delete session:",i)}e(i=>{const a=i.sessions.filter(u=>u.id!==n),l=i.pinnedSessionIds.filter(u=>u!==n);l.length!==i.pinnedSessionIds.length&&hx(l);const c=i.activeSessionId===n?a[0]?.id??null:i.activeSessionId;return i.activeSessionId===n&&i.activeStream?.abort(),c!==i.activeSessionId&&setTimeout(()=>{c?t().switchSession(c):e({activeSessionId:null,messages:[]})},0),{sessions:a,pinnedSessionIds:l,activeStream:i.activeSessionId===n?null:i.activeStream}})},async saveAndAppendMessage(n,i){e(a=>{const l=[...a.messages,i];let c=a.sessions.map(u=>u.id===n?{...u,messageCount:(u.messageCount??0)+1,updatedAt:Date.now()}:u);return c.some(u=>u.id===n)||c.unshift({id:n,title:"",source:"api_server",createdAt:Date.now(),updatedAt:Date.now(),messageCount:1}),{messages:l,sessions:c}});try{await Em(n,i)}catch(a){console.error("Failed to save message:",a)}},updateSessionTitle(n){e(i=>{const a=i.sessions.find(d=>d.id===n),l=!!a?.title&&a.title!=="New Session";if(!a||l)return i;const c=i.messages.find(d=>d.role==="user");if(!c)return i;const u=c.content.trim();let p=u;if(u.length>40){const d=u.slice(0,60).match(/^[^.!?]+[.!?]/);if(d)p=d[0].trim();else{const h=u.slice(0,40),g=h.lastIndexOf(" ");p=g>20?h.slice(0,g):h}}return p=p.replace(/[,:;\-]+$/,"").trim(),p.length<u.length&&(p+="…"),p=p.charAt(0).toUpperCase()+p.slice(1),{sessions:i.sessions.map(d=>d.id===n?{...d,title:p,updatedAt:Date.now()}:d)}})},updateSession(n,i){e(a=>({sessions:a.sessions.map(l=>l.id===n?{...l,...i}:l)}))},togglePin(n){e(i=>{const l=i.pinnedSessionIds.includes(n)?i.pinnedSessionIds.filter(c=>c!==n):[...i.pinnedSessionIds,n];return hx(l),{pinnedSessionIds:l}})},async sendMessage(n,i,a){const l=t();if(console.log(`[store] sendMessage. isStreaming=${l.isStreaming}, sessionId=${l.activeSessionId}`),l.isStreaming)return;let c=l.activeSessionId;if(c||(c=await t().createNewSession()),!c)return;let u=[],p;if(a&&a.length>0){const g=a.map(b=>b.file);u=await qU(g),p=a.map((b,y)=>{const E=u[y];return{id:b.id,name:b.name,type:b.type,size:b.size,url:`/api/hermes/download?path=${encodeURIComponent(E.path)}&name=${encodeURIComponent(E.name)}`}})}const d={id:lc(),role:"user",content:n,timestamp:Date.now(),attachments:p};await t().saveAndAppendMessage(c,d),t().updateSessionTitle(c),e({isStreaming:!0});let h;if(p&&p.length>0){const g=[];n.trim()&&g.push({type:"text",text:n.trim()});for(let b=0;b<u.length;b++){const y=u[b],E=a[b];E.type.startsWith("image/")?g.push({type:"image",name:y.name,path:y.path,media_type:E.type}):g.push({type:"file",name:y.name,path:y.path,media_type:E.type})}h=g}else h=n.trim();try{const{run_id:g}=await HU({input:h,session_id:c});console.log(`[store] runChat returned run_id=${g}`);const b=lc()+"_ai";t().appendMessage({id:b,role:"assistant",content:"",timestamp:Date.now(),isStreaming:!0});const y=$U(g,{onEvent:E=>{if(E.event!=="ping"){if(E.event==="message.delta"&&E.delta){const _=t(),x=_.messages.find(S=>S.id===b);if(x){const S=x.content+E.delta,C={...x,content:S};e({messages:_.messages.map(k=>k.id===b?C:k)}),cc(c,C,500)}}if((E.event==="reasoning.delta"||E.event==="thinking.delta")&&E.delta){const _=t(),x=_.messages.find(S=>S.id===b);if(x){const S=(x.reasoning||"")+E.delta,C={...x,reasoning:S,reasoningStartedAt:x.reasoningStartedAt||Date.now()};e({messages:_.messages.map(k=>k.id===b?C:k)}),cc(c,C,500)}}if(E.event==="reasoning.available"){const _=t(),x=_.messages.find(S=>S.id===b);if(x&&x.reasoning){const S={...x,reasoningEndedAt:Date.now()};e({messages:_.messages.map(C=>C.id===b?S:C)}),cc(c,S,500)}}if(E.event==="tool.started"){const _=E.tool||E.name||"tool",x=E.preview||"",S=E.tool_call_id||void 0,C=t(),k=C.messages.find(O=>O.id===b);if(k){const O=[...k.toolCalls||[],{name:_,preview:x,callId:S,status:"running"}],N={...k,toolCalls:O};e({messages:C.messages.map(R=>R.id===b?N:R)}),cc(c,N,500)}}if(E.event==="tool.completed"){const _=E.tool||E.name,x=E.output,S=E.tool_call_id||void 0,C=t(),k=C.messages.find(O=>O.id===b);if(k&&k.toolCalls){const O=k.toolCalls.map(R=>S&&R.callId===S?{...R,status:"done",output:x||R.output}:!S&&R.name===_&&R.status==="running"?{...R,status:"done",output:x||R.output}:R),N={...k,toolCalls:O};e({messages:C.messages.map(R=>R.id===b?N:R)}),cc(c,N,500)}}if(E.event==="run.completed"){const _=t(),x=_.messages.find(S=>S.id===b);if(x){y();const S={...x,isStreaming:!1,reasoningEndedAt:x.reasoning?Date.now():void 0};e({messages:_.messages.map(O=>O.id===b?S:O),isStreaming:!1,activeStream:null});const C=`${c}:${b}`,k=vc.get(C);k&&clearTimeout(k),vc.delete(C),Em(c,S).catch(console.error)}}if(E.event==="run.error"){y();const _=t();e({messages:_.messages.map(x=>x.id===b?{...x,role:"system",content:E.error||"Stream error",systemType:"error",isStreaming:!1}:x),isStreaming:!1,activeStream:null})}}},onError:E=>{e(_=>({messages:[..._.messages,{id:lc()+"_err",role:"system",content:E.message,timestamp:Date.now(),systemType:"error"}],isStreaming:!1,activeStream:null}))},onClose:()=>{console.log(`[store] onClose fired. activeStream=${t().activeStream?.runId||"null"}`),e({activeStream:null}),setTimeout(()=>{const E=t();E.isStreaming&&!E.activeStream&&(console.log("[store] onClose timeout → isStreaming=false"),e({isStreaming:!1}))},2e3)}});e({activeStream:{runId:g,abort:y}})}catch(g){e(b=>({messages:[...b.messages,{id:lc()+"_err",role:"system",content:g instanceof Error?g.message:"Unknown error",timestamp:Date.now(),systemType:"error"}],isStreaming:!1,activeStream:null}))}},abortStream(){const{activeStream:n}=t();console.log(`[store] abortStream. activeStream=${n?.runId||"null"}`),n&&(n.abort(),e({isStreaming:!1,activeStream:null}))}})),VR=A.createContext(void 0);function YR(e){const t=A.useContext(VR);if(t===void 0&&!e)throw new Error(Vn(33));return t}const KR=A.createContext(void 0);function $a(e){const t=A.useContext(KR);if(t===void 0&&!e)throw new Error(Vn(36));return t}const KU=A.createContext(void 0);function Gd(e=!0){const t=A.useContext(KU);if(t===void 0&&!e)throw new Error(Vn(25));return t}function XU(e){const{closeOnClick:t,highlighted:n,id:i,nodeId:a,store:l,typingRef:c,itemRef:u,itemMetadata:p}=e,{events:d}=l.useState("floatingTreeRoot"),h=Gd(!0),g=h!==void 0;return A.useMemo(()=>({id:i,role:"menuitem",tabIndex:n?0:-1,onKeyDown(b){b.key===" "&&c?.current&&b.preventDefault()},onMouseMove(b){a&&d.emit("itemhover",{nodeId:a,target:b.currentTarget})},onClick(b){t&&d.emit("close",{domEvent:b,reason:Kw})},onMouseUp(b){if(h){const y=h.initialCursorPointRef.current;if(h.initialCursorPointRef.current=null,g&&y&&Math.abs(b.clientX-y.x)<=1&&Math.abs(b.clientY-y.y)<=1||g&&!jw&&b.button===2)return}u.current&&l.context.allowMouseUpTriggerRef.current&&(!g||b.button===2)&&(!p||p.type==="regular-item")&&u.current.click()}}),[t,n,i,d,a,l,c,u,h,g,p])}const WU={type:"regular-item"};function ZU(e){const{closeOnClick:t,disabled:n=!1,highlighted:i,id:a,store:l,typingRef:c=l.context.typingRef,nativeButton:u,itemMetadata:p,nodeId:d}=e,h=A.useRef(null),{getButtonProps:g,buttonRef:b}=el({disabled:n,focusableWhenDisabled:!0,native:u,composite:!0}),y=XU({closeOnClick:t,highlighted:i,id:a,nodeId:d,store:l,typingRef:c,itemRef:h,itemMetadata:p}),E=A.useCallback(x=>Ei(y,{onMouseEnter(){p.type==="submenu-trigger"&&p.setActive()}},x,g),[y,g,p]),_=qo(h,b);return A.useMemo(()=>({getItemProps:E,itemRef:_}),[E,_])}const XR=A.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function QU(){return A.useContext(XR)}let JU=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function WR(e={}){const{label:t,metadata:n,textRef:i,indexGuessBehavior:a,index:l}=e,{register:c,unregister:u,subscribeMapChange:p,elementsRef:d,labelsRef:h,nextIndexRef:g}=QU(),b=A.useRef(-1),[y,E]=A.useState(l??(a===JU.GuessFromOrder?()=>{if(b.current===-1){const S=g.current;g.current+=1,b.current=S}return b.current}:-1)),_=A.useRef(null),x=A.useCallback(S=>{if(_.current=S,y!==-1&&S!==null&&(d.current[y]=S,h)){const C=t!==void 0;h.current[y]=C?t:i?.current?.textContent??S.textContent}},[y,d,h,t,i]);return Me(()=>{if(l!=null)return;const S=_.current;if(S)return c(S,n),()=>{u(S)}},[l,c,u,n]),Me(()=>{if(l==null)return p(S=>{const C=_.current?S.get(_.current)?.index:null;C!=null&&E(C)})},[l,p,E]),A.useMemo(()=>({ref:x,index:y}),[y,x])}const e4=A.forwardRef(function(t,n){const{render:i,className:a,id:l,label:c,nativeButton:u=!1,disabled:p=!1,closeOnClick:d=!0,style:h,...g}=t,b=WR({label:c}),y=YR(!0),E=eo(l),{store:_}=$a(),x=_.useState("isActive",b.index),S=_.useState("itemProps"),{getItemProps:C,itemRef:k}=ZU({closeOnClick:d,disabled:p,highlighted:x,id:E,store:_,nativeButton:u,nodeId:y?.context.nodeId,itemMetadata:WU});return hn("div",t,{state:{disabled:p,highlighted:x},props:[S,g,C],ref:[k,n,b.ref]})}),t4=A.createContext(void 0);function n4(e){return A.useContext(t4)}const r4={...Js,...Qs},i4=A.forwardRef(function(t,n){const{render:i,className:a,style:l,finalFocus:c,...u}=t,{store:p}=$a(),{side:d,align:h}=YR(),g=n4()!=null,b=p.useState("open"),y=p.useState("transitionStatus"),E=p.useState("popupProps"),_=p.useState("mounted"),x=p.useState("instantType"),S=p.useState("activeTriggerElement"),C=p.useState("parent"),k=p.useState("lastOpenChangeReason"),O=p.useState("rootId"),N=p.useState("floatingRootContext"),R=p.useState("floatingTreeRoot"),P=p.useState("closeDelay"),I=p.useState("activeTriggerElement"),G=C.type==="context-menu";Uc({open:b,ref:p.context.popupRef,onComplete(){b&&p.context.onOpenChangeComplete?.(!0)}}),A.useEffect(()=>{function B(q){p.setOpen(!1,ht(q.reason,q.domEvent))}return R.events.on("close",B),()=>{R.events.off("close",B)}},[R.events,p]);const U=p.useState("hoverEnabled"),X=p.useState("disabled");V1(N,{enabled:U&&!X&&!G&&C.type!=="menubar",closeDelay:P});const $={transitionStatus:y,side:d,align:h,open:b,nested:C.type==="menu",instant:x},W=A.useCallback(B=>{p.set("popupElement",B)},[p]),V=hn("div",t,{state:$,ref:[n,p.context.popupRef,W],stateAttributesMapping:r4,props:[E,{onKeyDown(B){g&&LR.has(B.key)&&B.stopPropagation()}},bb(y),u,{"data-rootownerid":O}]});let H=C.type===void 0||G;return(S||C.type==="menubar"&&k!==qm)&&(H=!0),F.jsx(O1,{context:N,modal:G,disabled:!_,returnFocus:c===void 0?H:c,initialFocus:C.type!=="menu",restoreFocus:!0,externalTree:C.type!=="menubar"?R:void 0,previousFocusableElement:I,nextFocusableElement:C.type===void 0?p.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:C.type===void 0?p.context.beforeContentFocusGuardRef:void 0,children:V})}),ZR=A.createContext(void 0);function o4(){const e=A.useContext(ZR);if(e===void 0)throw new Error(Vn(32));return e}const a4=A.forwardRef(function(t,n){const{keepMounted:i=!1,...a}=t,{store:l}=$a();return l.useState("mounted")||i?F.jsx(ZR.Provider,{value:i,children:F.jsx(R1,{ref:n,...a})}):null});function s4(e){const{children:t,elementsRef:n,labelsRef:i,onMapChange:a}=e,l=Qe(a),c=A.useRef(0),u=$n(c4).current,p=$n(l4).current,[d,h]=A.useState(0),g=A.useRef(d),b=Qe((S,C)=>{p.set(S,C??null),g.current+=1,h(g.current)}),y=Qe(S=>{p.delete(S),g.current+=1,h(g.current)}),E=A.useMemo(()=>{const S=new Map;return Array.from(p.keys()).filter(k=>k.isConnected).sort(u4).forEach((k,O)=>{const N=p.get(k)??{};S.set(k,{...N,index:O})}),S},[p,d]);Me(()=>{if(typeof MutationObserver!="function"||E.size===0)return;const S=new MutationObserver(C=>{const k=new Set,O=N=>k.has(N)?k.delete(N):k.add(N);C.forEach(N=>{N.removedNodes.forEach(O),N.addedNodes.forEach(O)}),k.size===0&&(g.current+=1,h(g.current))});return E.forEach((C,k)=>{k.parentElement&&S.observe(k.parentElement,{childList:!0})}),()=>{S.disconnect()}},[E]),Me(()=>{g.current===d&&(n.current.length!==E.size&&(n.current.length=E.size),i&&i.current.length!==E.size&&(i.current.length=E.size),c.current=E.size),l(E)},[l,E,n,i,d]),Me(()=>()=>{n.current=[]},[n]),Me(()=>()=>{i&&(i.current=[])},[i]);const _=Qe(S=>(u.add(S),()=>{u.delete(S)}));Me(()=>{u.forEach(S=>S(E))},[u,E]);const x=A.useMemo(()=>({register:b,unregister:y,subscribeMapChange:_,elementsRef:n,labelsRef:i,nextIndexRef:c}),[b,y,_,n,i,c]);return F.jsx(XR.Provider,{value:x,children:t})}function l4(){return new Map}function c4(){return new Set}function u4(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const f4=20;function d4(e,t,n,i){const[a,l]=A.useState(!1);Me(()=>{if(!e||!t||n==null){l(!1);return}const c=Ct(n).documentElement.clientWidth,u=n.offsetWidth;l(c>0&&u>0&&u>=c-f4)},[e,t,n]),zR(e&&(!t||a),i)}const p4=A.forwardRef(function(t,n){const{anchor:i,positionMethod:a="absolute",className:l,render:c,side:u,align:p,sideOffset:d=0,alignOffset:h=0,collisionBoundary:g="clipping-ancestors",collisionPadding:b=5,arrowPadding:y=5,sticky:E=!1,disableAnchorTracking:_=!1,collisionAvoidance:x=vL,style:S,...C}=t,{store:k}=$a(),O=o4(),N=Gd(!0),R=k.useState("parent"),P=k.useState("floatingRootContext"),I=k.useState("floatingTreeRoot"),G=k.useState("mounted"),U=k.useState("open"),X=k.useState("modal"),$=k.useState("openMethod"),W=k.useState("activeTriggerElement"),V=k.useState("transitionStatus"),H=k.useState("positionerElement"),B=k.useState("instantType"),q=k.useState("hasViewport"),Q=k.useState("lastOpenChangeReason"),ee=k.useState("floatingNodeId"),M=k.useState("floatingParentNodeId"),D=P.useState("domReferenceElement"),Z=A.useRef(null),z=cb(H,!1,!1);let le=i,ce=d,ae=h,be=p,Ee=x;R.type==="context-menu"&&(le=i??R.context?.anchor,be=be??"start",!u&&be!=="center"&&(ae=t.alignOffset??2,ce=t.sideOffset??-5));let ye=u,De=be;R.type==="menu"?(ye=ye??"inline-end",De=De??"start",Ee=t.collisionAvoidance??S1):R.type==="menubar"&&(ye=ye??"bottom",De=De??"start");const qe=R.type==="context-menu",Te=rR({anchor:le,floatingRootContext:P,positionMethod:N?"fixed":a,mounted:G,side:ye,sideOffset:ce,align:De,alignOffset:ae,arrowPadding:qe?0:y,collisionBoundary:g,collisionPadding:b,sticky:E,nodeId:ee,keepMounted:O,disableAnchorTracking:_,collisionAvoidance:Ee,shiftCrossAxis:qe&&!("side"in Ee&&Ee.side==="flip"),externalTree:I,adaptiveOrigin:q?tR:void 0});A.useEffect(()=>{function Fe(me){me.open&&(me.parentNodeId===ee&&k.set("hoverEnabled",!1),me.nodeId!==ee&&me.parentNodeId===k.select("floatingParentNodeId")&&k.setOpen(!1,ht(mc)))}return I.events.on("menuopenchange",Fe),()=>{I.events.off("menuopenchange",Fe)}},[k,I.events,ee]),A.useEffect(()=>{if(k.select("floatingParentNodeId")==null)return;function Fe(me){if(me.open||me.nodeId!==k.select("floatingParentNodeId"))return;const Ae=me.reason??mc;k.setOpen(!1,ht(Ae))}return I.events.on("menuopenchange",Fe),()=>{I.events.off("menuopenchange",Fe)}},[I.events,k]);const $e=Sr();A.useEffect(()=>{U||$e.clear()},[U,$e]),A.useEffect(()=>{function Fe(me){if(!(!U||me.nodeId!==k.select("floatingParentNodeId")))if(me.target&&W&&W!==me.target){const Ae=k.select("closeDelay");Ae>0?$e.isStarted()||$e.start(Ae,()=>{k.setOpen(!1,ht(mc))}):k.setOpen(!1,ht(mc))}else $e.clear()}return I.events.on("itemhover",Fe),()=>{I.events.off("itemhover",Fe)}},[I.events,U,W,k,$e]),A.useEffect(()=>{const Fe={open:U,nodeId:ee,parentNodeId:M,reason:k.select("lastOpenChangeReason")};I.events.emit("menuopenchange",Fe)},[I.events,U,k,ee,M]),Me(()=>{const Fe=D,me=Z.current;if(Fe&&(Z.current=Fe),me&&Fe&&Fe!==me){k.set("instantType",void 0);const Ae=new AbortController;return z(()=>{k.set("instantType","trigger-change")},Ae.signal),()=>{Ae.abort()}}},[D,z,k]);const Xe={open:U,side:Te.side,align:Te.align,anchorHidden:Te.anchorHidden,nested:R.type==="menu",instant:B},at=R.type==="menubar"&&R.context.modal;d4(U&&(at||X&&Q!==Wn),$==="touch",H,W);const Ne=iR(t,Xe,{styles:Te.positionerStyles,transitionStatus:V,props:C,refs:[n,k.useStateSetter("positionerElement")],hidden:!G,inert:!U}),ze=G&&R.type!=="menu"&&(R.type!=="menubar"&&X&&Q!==Wn||R.type==="menubar"&&R.context.modal);let ke=null;return R.type==="menubar"?ke=R.context.contentElement:R.type===void 0&&(ke=W),F.jsxs(VR.Provider,{value:Te,children:[ze&&F.jsx(PR,{ref:R.type==="context-menu"||R.type==="nested-context-menu"?R.context.internalBackdropRef:null,inert:oR(!U),cutout:ke}),F.jsx(xL,{id:ee,children:F.jsx(s4,{elementsRef:k.context.itemDomElements,labelsRef:k.context.itemLabels,children:Ne})})]})}),h4=A.createContext(null);function QR(e){return A.useContext(h4)}const g4={...pb,disabled:Ye(e=>e.parent.type==="menubar"&&e.parent.context.disabled||e.disabled),modal:Ye(e=>(e.parent.type===void 0||e.parent.type==="context-menu")&&(e.modal??!0)),openMethod:Ye(e=>e.openMethod),allowMouseEnter:Ye(e=>e.allowMouseEnter),stickIfOpen:Ye(e=>e.stickIfOpen),parent:Ye(e=>e.parent),rootId:Ye(e=>e.parent.type==="menu"?e.parent.store.select("rootId"):e.parent.type!==void 0?e.parent.context.rootId:e.rootId),activeIndex:Ye(e=>e.activeIndex),isActive:Ye((e,t)=>e.activeIndex===t),hoverEnabled:Ye(e=>e.hoverEnabled),instantType:Ye(e=>e.instantType),lastOpenChangeReason:Ye(e=>e.openChangeReason),floatingTreeRoot:Ye(e=>e.parent.type==="menu"?e.parent.store.select("floatingTreeRoot"):e.floatingTreeRoot),floatingNodeId:Ye(e=>e.floatingNodeId),floatingParentNodeId:Ye(e=>e.floatingParentNodeId),itemProps:Ye(e=>e.itemProps),closeDelay:Ye(e=>e.closeDelay),hasViewport:Ye(e=>e.hasViewport),keyboardEventRelay:Ye(e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type==="menu")return e.parent.store.select("keyboardEventRelay")})};class Rb extends Ud{constructor(t){super({...m4(),...t},{positionerRef:A.createRef(),popupRef:A.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:A.createRef(),beforeContentFocusGuardRef:A.createRef(),onOpenChangeComplete:void 0,triggerElements:new Fc},g4),this.unsubscribeParentListener=this.observe("parent",n=>{if(this.unsubscribeParentListener?.(),n.type==="menu"){let i=n.store.select("rootId"),a=n.store.select("floatingTreeRoot"),l=n.store.select("keyboardEventRelay");this.unsubscribeParentListener=n.store.subscribe(()=>{const c=n.store.select("rootId"),u=n.store.select("floatingTreeRoot"),p=n.store.select("keyboardEventRelay");i===c&&a===u&&l===p||(i=c,a=u,l=p,this.notifyAll())}),this.context.allowMouseUpTriggerRef=n.store.context.allowMouseUpTriggerRef;return}n.type!==void 0&&(this.context.allowMouseUpTriggerRef=n.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(t,n){this.state.floatingRootContext.context.events.emit("setOpen",{open:t,eventDetails:n})}static useStore(t,n){const i=$n(()=>new Rb(n)).current;return t??i}unsubscribeParentListener=null}function m4(){return{...db(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new ib,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:An,keyboardEventRelay:void 0,closeDelay:0,hasViewport:!1}}const b4=A.createContext(void 0);function y4(){return A.useContext(b4)}const v4=Gm(function(t){const{children:n,open:i,onOpenChange:a,onOpenChangeComplete:l,defaultOpen:c=!1,disabled:u=!1,modal:p,loopFocus:d=!0,orientation:h="vertical",actionsRef:g,closeParentOnEsc:b=!1,handle:y,triggerId:E,defaultTriggerId:_=null,highlightItemOnHover:x=!0}=t,S=Gd(!0),C=$a(!0),k=QR(!0),O=y4(),N=A.useMemo(()=>O&&C?{type:"menu",store:C.store}:k?{type:"menubar",context:k}:S&&!C?{type:"context-menu",context:S}:{type:void 0},[S,C,k,O]),R=Rb.useStore(y?.store,{open:c,openProp:i,activeTriggerId:_,triggerIdProp:E,parent:N});$m(()=>{i===void 0&&R.state.open===!1&&c===!0&&R.update({open:!0,activeTriggerId:_})}),R.useControlledProp("openProp",i),R.useControlledProp("triggerIdProp",E),R.useContextCallback("onOpenChangeComplete",l);const P=R.useState("floatingTreeRoot"),I=A1(P),G=Ji();Me(()=>{S&&!C?R.update({parent:{type:"context-menu",context:S},floatingNodeId:I,floatingParentNodeId:G}):C&&R.update({floatingNodeId:I,floatingParentNodeId:G})},[S,C,I,G,R]);const U=R.useState("open"),X=R.useState("activeTriggerElement"),$=R.useState("positionerElement"),W=R.useState("hoverEnabled"),V=R.useState("disabled"),H=R.useState("lastOpenChangeReason"),B=R.useState("parent"),q=R.useState("activeIndex"),Q=R.useState("payload"),ee=R.useState("floatingParentNodeId"),M=A.useRef(null),D=ee!=null,{openMethod:Z,triggerProps:z}=UR(U);R.useSyncedValues({disabled:u,modal:B.type===void 0?p:void 0,openMethod:Z,rootId:Ha()}),ub(R);const{forceUnmount:le}=fb(U,R,()=>{R.update({allowMouseEnter:!1,stickIfOpen:!0})}),ce=A.useRef(B.type!=="context-menu"),ae=Sr();A.useEffect(()=>{if(U||(M.current=null),B.type==="context-menu"){if(!U){ae.clear(),ce.current=!1;return}ae.start(500,()=>{ce.current=!0})}},[ae,U,B.type]),Me(()=>{!U&&!W&&R.set("hoverEnabled",!0)},[U,W,R]);const be=A.useRef(!0),Ee=Sr(),ye=Qe((He,We)=>{const ut=We.reason;if(U===He&&We.trigger===X&&H===ut||(We.preventUnmountOnClose=()=>{R.set("preventUnmountingOnClose",!0)},!He&&We.trigger==null&&(We.trigger=X??void 0),a?.(He,We),We.isCanceled))return;R.state.floatingRootContext.dispatchOpenChange(He,We);const At=We.event;if(He===!1&&At?.type==="click"&&At.pointerType==="touch"&&!be.current)return;if(!He&&q!==null){const cn=R.context.itemDomElements.current[q];queueMicrotask(()=>{cn?.setAttribute("tabindex","-1")})}He&&ut===Us?(be.current=!1,Ee.start(300,()=>{be.current=!0})):(be.current=!0,Ee.clear());const rn=(ut===Ia||ut===Kw)&&At.detail===0&&At?.isTrusted,xt=!He&&(ut===Od||ut==null),On={open:He,openChangeReason:ut};M.current=We.event??null;const st=We.trigger?.id??null;(st||He)&&(On.activeTriggerId=st,On.activeTriggerElement=We.trigger??null),R.update(On),B.type==="menubar"&&(ut===Us||ut===Vs||ut===Wn||ut===jf||ut===mc)?R.set("instantType","group"):rn||xt?R.set("instantType",rn?"click":"dismiss"):R.set("instantType",void 0)}),De=A.useCallback(()=>{R.setOpen(!1,ht(Vm))},[R]);A.useImperativeHandle(g,()=>({unmount:le,close:De}),[le,De]);let qe;B.type==="context-menu"&&(qe=B.context),A.useImperativeHandle(qe?.positionerRef,()=>$,[$]),A.useImperativeHandle(qe?.actionsRef,()=>({setOpen:ye}),[ye]);const Te=hb({popupStore:R,onOpenChange:ye}),$e=Te.context.events;A.useEffect(()=>{const He=({open:We,eventDetails:ut})=>ye(We,ut);return $e.on("setOpen",He),()=>{$e?.off("setOpen",He)}},[$e,ye]);const Xe=ab(Te,{enabled:!V,bubbles:{escapeKey:b&&B.type==="menu"},outsidePress(){return B.type!=="context-menu"||M.current?.type==="contextmenu"?!0:ce.current},externalTree:D?P:void 0}),at=K1(Te,{role:"menu"}),Se=eR(),Ne=A.useCallback(He=>{R.select("activeIndex")!==He&&R.set("activeIndex",He)},[R]),ze=zP(Te,{enabled:!V,listRef:R.context.itemDomElements,activeIndex:q,nested:B.type!==void 0,loopFocus:d,orientation:h,parentOrientation:B.type==="menubar"?B.context.orientation:void 0,rtl:Se==="rtl",disabledIndices:um,onNavigate:Ne,openOnArrowKeyDown:B.type!=="context-menu",externalTree:D?P:void 0,focusItemOnHover:x}),ke=A.useCallback(He=>{R.context.typingRef.current=He},[R]),Fe=UP(Te,{listRef:R.context.itemLabels,elementsRef:R.context.itemDomElements,activeIndex:q,resetMs:gL,onMatch:He=>{U&&He!==q&&R.set("activeIndex",He)},onTypingChange:ke}),{getReferenceProps:me,getFloatingProps:Ae,getItemProps:ge,getTriggerProps:ve}=Fd([Xe,at,ze,Fe]),Ce=A.useMemo(()=>{const He=Ei(me(),{onMouseMove(){R.set("allowMouseEnter",!0)}},z);return delete He.role,He},[me,R,z]),ne=A.useMemo(()=>{const He=ve();if(!He)return He;const We=Ei(He,z);return delete We.role,delete We["aria-controls"],We},[ve,z]),ue=A.useMemo(()=>Ae({onMouseMove(){R.set("allowMouseEnter",!0),B.type==="menu"&&R.set("hoverEnabled",!1)},onClick(){R.select("hoverEnabled")&&R.set("hoverEnabled",!1)},onKeyDown(He){const We=R.select("keyboardEventRelay");We&&!He.isPropagationStopped()&&We(He)}}),[Ae,B.type,R]),Ie=A.useMemo(()=>ge(),[ge]);R.useSyncedValues({floatingRootContext:Te,activeTriggerProps:Ce,inactiveTriggerProps:ne,popupProps:ue,itemProps:Ie});const Ve=A.useMemo(()=>({store:R,parent:N}),[R,N]),it=F.jsx(KR.Provider,{value:Ve,children:typeof n=="function"?n({payload:Q}):n});return B.type===void 0||B.type==="context-menu"?F.jsx(_L,{externalTree:P,children:it}):it});function E4(e){const t=e.getBoundingClientRect(),n=pn(e),i=n.getComputedStyle(e,"::before"),a=n.getComputedStyle(e,"::after");if(!(i.content!=="none"||a.content!=="none"))return t;const c=parseFloat(i.width)||0,u=parseFloat(i.height)||0,p=parseFloat(a.width)||0,d=parseFloat(a.height)||0,h=Math.max(t.width,c,p),g=Math.max(t.height,u,d),b=h-t.width,y=g-t.height;return{left:t.left-b/2,right:t.right+b/2,top:t.top-y/2,bottom:t.bottom+y/2}}function S4(e={}){const{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:i}=Sb(),{ref:a,index:l}=WR(e),c=n===l,u=A.useRef(null),p=qo(a,u);return{compositeProps:A.useMemo(()=>({tabIndex:c?0:-1,onFocus(){i(l)},onMouseMove(){const h=u.current;if(!t||!h)return;const g=h.hasAttribute("disabled")||h.ariaDisabled==="true";!c&&!g&&h.focus()}}),[c,i,l,t]),compositeRef:p,index:l}}function x4(e){const{render:t,className:n,style:i,state:a=An,props:l=um,refs:c=um,metadata:u,stateAttributesMapping:p,tag:d="div",...h}=e,{compositeProps:g,compositeRef:b}=S4({metadata:u});return hn(d,e,{state:a,ref:[...c,b],props:[g,...l,h],stateAttributesMapping:p})}function JR(e){if(en(e)&&e.hasAttribute("data-rootownerid"))return e.getAttribute("data-rootownerid")??void 0;if(!hi(e))return JR(vi(e))}function _4(e,t){const n=A.useRef(null),i=Qe(l=>{yi.flushSync(()=>{e.setOpen(!1,ht(Vs,l.nativeEvent,l.currentTarget))}),W2(n.current)?.focus()}),a=Qe(l=>{const c=e.select("positionerElement");if(c&&Hs(l,c))e.context.beforeContentFocusGuardRef.current?.focus();else{yi.flushSync(()=>{e.setOpen(!1,ht(Vs,l.nativeEvent,l.currentTarget))});let u=X2(e.context.triggerFocusTargetRef.current||t.current);for(;u!==null&&ot(c,u);){const p=u;if(u=eb(u),u===p)break}u?.focus()}});return{preFocusGuardRef:n,handlePreFocusGuardFocus:i,handleFocusTargetFocus:a}}function w4(e){const{enabled:t=!0,mouseDownAction:n,open:i}=e,a=A.useRef(!1);return A.useMemo(()=>t?{onMouseDown:l=>{(n==="open"&&!i||n==="close"&&i)&&(a.current=!0,Ct(l.currentTarget).addEventListener("click",()=>{a.current=!1},{once:!0}))},onClick:l=>{a.current&&(a.current=!1,l.preventBaseUIHandler())}}:An,[t,n,i])}const Tf=2,R4=Lw(function(t,n){const{render:i,className:a,disabled:l=!1,nativeButton:c=!0,id:u,openOnHover:p,delay:d=100,closeDelay:h=0,handle:g,payload:b,style:y,...E}=t,_=$a(!0),x=g?.store??_?.store;if(!x)throw new Error(Vn(85));const S=eo(u),C=x.useState("isTriggerActive",S),k=x.useState("floatingRootContext"),O=x.useState("isOpenedByTrigger",S),N=A.useRef(null),R=C4(),P=Sb(!0),I=Zo(),G=A.useMemo(()=>I??new ib,[I]),U=A1(G),X=Ji(),{registerTrigger:$,isMountedByThisTrigger:W}=j1(S,N,x,{payload:b,closeDelay:h,parent:R,floatingTreeRoot:G,floatingNodeId:U,floatingParentNodeId:X,keyboardEventRelay:P?.relayKeyboardEvent}),V=R.type==="menubar",H=x.useState("disabled"),B=l||H||V&&R.context.disabled,{getButtonProps:q,buttonRef:Q}=el({disabled:B,native:c});A.useEffect(()=>{!O&&R.type===void 0&&(x.context.allowMouseUpTriggerRef.current=!1)},[x,O,R.type]);const ee=A.useRef(null),M=Sr(),D=Qe(ze=>{if(!ee.current)return;M.clear(),x.context.allowMouseUpTriggerRef.current=!1;const ke=ze.target;if(ot(ee.current,ke)||ot(x.select("positionerElement"),ke)||ke===ee.current||ke!=null&&JR(ke)===x.select("rootId"))return;const Fe=E4(ee.current);ze.clientX>=Fe.left-Tf&&ze.clientX<=Fe.right+Tf&&ze.clientY>=Fe.top-Tf&&ze.clientY<=Fe.bottom+Tf||G.events.emit("close",{domEvent:ze,reason:u2})});A.useEffect(()=>{O&&x.select("lastOpenChangeReason")===Wn&&Ct(ee.current).addEventListener("mouseup",D,{once:!0})},[O,D,x]);const Z=V&&R.context.hasSubmenuOpen,le=Y1(k,{enabled:(p??Z)&&!B&&R.type!=="context-menu"&&(!V||Z&&!W),handleClose:X1({blockPointerEvents:!V}),mouseOnly:!0,move:!1,restMs:R.type===void 0?d:void 0,delay:{close:h},triggerElementRef:N,externalTree:G,isActiveTrigger:C,isClosing:()=>x.select("transitionStatus")==="ending"}),ce=T4(O,x.select("lastOpenChangeReason")),ae=CL(k,{enabled:!B&&R.type!=="context-menu",event:O&&V?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:R.type===void 0?ce:!1}),be=G1(k,{enabled:!B&&Z}),Ee=w4({open:O,enabled:V,mouseDownAction:"open"}),ye=Fd([ae,be]),De={disabled:B,open:O},qe=x.useState("triggerProps",W),Te=[ee,n,Q,$,N],$e=[ye.getReferenceProps(),le??An,qe,{"aria-haspopup":"menu",id:S,onMouseDown:ze=>{if(x.select("open"))return;M.start(200,()=>{x.context.allowMouseUpTriggerRef.current=!0}),Ct(ze.currentTarget).addEventListener("mouseup",D,{once:!0})}},V?{role:"menuitem"}:{},Ee,E,q],{preFocusGuardRef:Xe,handlePreFocusGuardFocus:at,handleFocusTargetFocus:Se}=_4(x,N),Ne=hn("button",t,{enabled:!V,stateAttributesMapping:qS,state:De,ref:Te,props:$e});return V?F.jsx(x4,{tag:"button",render:i,className:a,style:y,state:De,refs:Te,props:$e,stateAttributesMapping:qS}):O?F.jsxs(A.Fragment,{children:[F.jsx(Ks,{ref:Xe,onFocus:at},`${S}-pre-focus-guard`),F.jsx(A.Fragment,{children:Ne},S),F.jsx(Ks,{ref:x.context.triggerFocusTargetRef,onFocus:Se},`${S}-post-focus-guard`)]}):F.jsx(A.Fragment,{children:Ne},S)});function T4(e,t){const n=Sr(),[i,a]=A.useState(!1);return Me(()=>{e&&t==="trigger-hover"?(a(!0),n.start(mL,()=>{a(!1)})):e||(n.clear(),a(!1))},[e,t,n]),i}function C4(){const e=Gd(!0),t=$a(!0),n=QR();return A.useMemo(()=>n?{type:"menubar",context:n}:e&&!t?{type:"context-menu",context:e}:{type:void 0},[e,t,n])}function k4({...e}){return F.jsx(v4,{"data-slot":"dropdown-menu",...e})}function A4({...e}){return F.jsx(R4,{"data-slot":"dropdown-menu-trigger",...e})}function O4({align:e="start",alignOffset:t=0,side:n="bottom",sideOffset:i=4,className:a,...l}){return F.jsx(a4,{children:F.jsx(p4,{className:"isolate z-50 outline-none",align:e,alignOffset:t,side:n,sideOffset:i,children:F.jsx(i4,{"data-slot":"dropdown-menu-content",className:Ot("z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95 animate-none! relative bg-popover/70 before:pointer-events-none before:absolute before:inset-0 before:-z-1 before:rounded-[inherit] before:backdrop-blur-2xl before:backdrop-saturate-150 **:data-[slot$=-item]:focus:bg-foreground/10 **:data-[slot$=-item]:data-highlighted:bg-foreground/10 **:data-[slot$=-separator]:bg-foreground/5 **:data-[slot$=-trigger]:focus:bg-foreground/10 **:data-[slot$=-trigger]:aria-expanded:bg-foreground/10! **:data-[variant=destructive]:focus:bg-foreground/10! **:data-[variant=destructive]:text-accent-foreground! **:data-[variant=destructive]:**:text-accent-foreground!",a),...l})})})}function Cf({className:e,inset:t,variant:n="default",...i}){return F.jsx(e4,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:Ot("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",e),...i})}const M4=[],N4=()=>F.jsx("img",{src:"/logo.png",alt:"Hermium",className:"h-7 w-7 rounded-md object-cover shrink-0"});function I4(){const{state:e}=Hc(),t=e==="collapsed",n=jm(),i=Iw(),a=$i(D=>D.sessions),l=$i(D=>D.activeSessionId),c=$i(D=>D.sessionsLoaded),u=$i(D=>D.pinnedSessionIds),p=$i(D=>D.loadSessions),d=$i(D=>D.deleteSession),h=$i(D=>D.togglePin),g=$i(D=>D.updateSession),b=()=>{$i.setState({activeSessionId:null,messages:[],isStreaming:!1,activeStream:null}),n({to:"/"})},[y,E]=A.useState(""),[_,x]=A.useState(!1),S=A.useRef(null),[C,k]=A.useState(null),[O,N]=A.useState(""),R=A.useRef(null),[P,I]=A.useState("light");A.useEffect(()=>{Wi(async()=>{const{getStoredTheme:D,resolveTheme:Z}=await import("./theme-CPkdkpaj.js");return{getStoredTheme:D,resolveTheme:Z}},[]).then(({getStoredTheme:D,resolveTheme:Z})=>{I(Z(D()))})},[]);const G=()=>{Wi(async()=>{const{toggleTheme:D}=await import("./theme-CPkdkpaj.js");return{toggleTheme:D}},[]).then(({toggleTheme:D})=>{const Z=D();I(Z==="dark"?"dark":"light")})};A.useEffect(()=>{c||p()},[c,p]);const U=async D=>{try{await d(D)}catch{}},X=async D=>{const Z=O.trim();if(!Z){k(null);return}try{await UU(D,Z),g(D,{title:Z})}catch{}k(null)},$=D=>{navigator.clipboard.writeText(D).catch(()=>{})},W=D=>{k(D.id),N(D.title),setTimeout(()=>R.current?.focus(),0)},V=i.pathname.startsWith("/chat/"),H=a.filter(D=>(D.messageCount??0)>0),B=y?H.filter(D=>(D.title||"").toLowerCase().includes(y.toLowerCase())):H,q=B.filter(D=>u.includes(D.id)),Q=B.filter(D=>!u.includes(D.id)),ee=()=>{x(!0),setTimeout(()=>S.current?.focus(),0)},M=()=>{x(!1),E("")};return F.jsxs(nU,{variant:"inset",collapsible:"offcanvas",children:[F.jsxs(oU,{className:"flex flex-row items-center justify-between px-2 py-3",children:[F.jsxs(di,{to:"/",className:"flex items-center gap-2.5",children:[F.jsx(N4,{}),!t&&F.jsx("span",{className:"font-semibold text-sm text-foreground tracking-tight",children:"Hermium"})]}),F.jsx(rU,{})]}),F.jsx(aU,{children:F.jsx("div",{className:"relative flex flex-col flex-1 min-h-0 gap-1 px-0.5 py-1",children:F.jsxs("div",{className:"flex flex-col gap-1 h-full justify-between",children:[F.jsxs("div",{className:"flex flex-col gap-1 flex-1 min-h-0",children:[F.jsx(Ms,{children:F.jsx(ka,{children:F.jsxs(Aa,{onClick:b,className:"flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-sidebar-muted transition-colors",children:[F.jsx(u3,{className:"size-4"}),!t&&F.jsx("span",{children:"New Chat"})]})})}),F.jsx(Ms,{children:F.jsx(ka,{children:F.jsxs(Aa,{tooltip:"Memory",render:F.jsx(di,{to:"/memory",className:Ot("flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm font-medium transition-colors",i.pathname==="/memory"?"bg-sidebar-muted text-foreground":"text-muted-foreground hover:text-foreground hover:bg-sidebar-muted")}),children:[F.jsx(e3,{className:"size-4"}),!t&&F.jsx("span",{children:"Memory"})]})})}),F.jsx(Ms,{children:F.jsx(ka,{children:F.jsxs(Aa,{tooltip:"Skills",render:F.jsx(di,{to:"/skills",className:Ot("flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm font-medium transition-colors",i.pathname==="/skills"?"bg-sidebar-muted text-foreground":"text-muted-foreground hover:text-foreground hover:bg-sidebar-muted")}),children:[F.jsx(F3,{className:"size-4"}),!t&&F.jsx("span",{children:"Skills"})]})})}),F.jsx(Ms,{children:F.jsx(ka,{children:F.jsxs(Aa,{tooltip:"Usage",render:F.jsx(di,{to:"/usage",className:Ot("flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm font-medium transition-colors",i.pathname==="/usage"?"bg-sidebar-muted text-foreground":"text-muted-foreground hover:text-foreground hover:bg-sidebar-muted")}),children:[F.jsx(n3,{className:"size-4"}),!t&&F.jsx("span",{children:"Usage"})]})})}),F.jsx(AU,{routes:M4}),!t&&F.jsxs(sU,{className:"px-0 flex flex-col min-h-0",children:[F.jsx("div",{className:"group/search flex items-center justify-between px-0.5 pb-0.5 shrink-0",children:_?F.jsxs("div",{className:"flex w-full items-center gap-1 min-w-0",children:[F.jsx(lx,{className:"size-3.5 shrink-0 text-muted-foreground"}),F.jsx("input",{ref:S,value:y,onChange:D=>E(D.target.value),onKeyDown:D=>{D.key==="Escape"&&M()},placeholder:"Search...",className:"flex-1 min-w-0 bg-transparent border-none outline-none text-xs text-foreground placeholder:text-muted-foreground/50"}),F.jsx("button",{onClick:M,className:"flex shrink-0 items-center justify-center rounded-md p-1 text-muted-foreground hover:text-foreground hover:bg-sidebar-muted transition-colors","aria-label":"Close search",title:"Close search",children:F.jsx(FR,{className:"size-4"})})]}):F.jsxs(F.Fragment,{children:[F.jsx(lU,{className:"!text-[11px] !font-normal text-muted-foreground/60",children:"Chats"}),F.jsx("button",{onClick:ee,className:"flex shrink-0 items-center justify-center rounded p-0.5 text-muted-foreground opacity-0 hover:text-foreground group-hover/search:opacity-100 transition-opacity","aria-label":"Search chats",children:F.jsx(lx,{className:"size-3.5"})})]})}),F.jsx("div",{className:"flex-1 overflow-y-auto min-h-0",children:F.jsxs(Ms,{children:[B.length===0&&y&&F.jsxs("p",{className:"px-2 py-4 text-xs text-muted-foreground",children:['No chats match "',y,'"']}),B.length===0&&!y&&F.jsx("p",{className:"px-2 py-4 text-xs text-muted-foreground",children:"No conversations yet. Start chatting!"}),q.map(D=>F.jsx(gx,{session:D,isActive:V&&l===D.id,isEditing:C===D.id,editTitle:O,setEditTitle:N,renameInputRef:R,onRename:Z=>X(Z),onCancelRename:()=>k(null),onStartRename:()=>W(D),onTogglePin:()=>h(D.id),onCopyId:()=>$(D.id),onDelete:()=>U(D.id),isPinned:!0},D.id)),Q.slice(0,20).map(D=>F.jsx(gx,{session:D,isActive:V&&l===D.id,isEditing:C===D.id,editTitle:O,setEditTitle:N,renameInputRef:R,onRename:Z=>X(Z),onCancelRename:()=>k(null),onStartRename:()=>W(D),onTogglePin:()=>h(D.id),onCopyId:()=>$(D.id),onDelete:()=>U(D.id)},D.id))]})})]})]}),F.jsx("div",{className:"shrink-0 space-y-1",children:F.jsxs("div",{className:"flex items-center flex-row gap-1",children:[F.jsxs(di,{to:"/settings",className:"flex items-center gap-1.5 rounded-md text-xs font-medium text-muted-foreground hover:bg-sidebar-muted hover:text-foreground transition-colors flex-1 px-2 py-1","aria-label":"Settings",children:[F.jsx(N3,{className:"size-3.5 shrink-0"}),F.jsx("span",{children:"Settings"})]}),F.jsxs("button",{onClick:G,className:"flex items-center justify-center rounded-md text-muted-foreground hover:bg-sidebar-muted hover:text-foreground transition-colors p-1.5","aria-label":"Toggle theme",children:[F.jsx(L3,{className:Ot("size-3.5",P==="dark"&&"hidden")}),F.jsx(E3,{className:Ot("size-3.5",P==="light"&&"hidden")})]})]})})]})})})]})}function gx({session:e,isActive:t,isEditing:n,editTitle:i,setEditTitle:a,renameInputRef:l,onRename:c,onCancelRename:u,onStartRename:p,onTogglePin:d,onCopyId:h,onDelete:g,isPinned:b=!1}){return F.jsx(ka,{className:"group/chat",children:F.jsx("div",{className:"relative",children:n?F.jsx("input",{ref:l,value:i,onChange:y=>a(y.target.value),onKeyDown:y=>{y.key==="Enter"&&c(e.id),y.key==="Escape"&&u()},onBlur:()=>u(),className:"w-full px-2 py-1 text-xs font-medium bg-transparent border-b border-sidebar-ring text-foreground outline-none"}):F.jsxs(F.Fragment,{children:[F.jsxs(Aa,{isActive:t,className:"px-2 py-0.5 pr-8 text-xs font-medium text-muted-foreground hover:text-foreground data-[active=true]:bg-sidebar-muted data-[active=true]:text-foreground",onDoubleClick:p,render:F.jsx(di,{to:"/chat/$sessionId",params:{sessionId:e.id},className:"flex items-center gap-1.5"}),children:[b&&F.jsx(sx,{className:"size-3 shrink-0 text-amber-500"}),F.jsx("span",{className:"truncate",children:e.title})]}),F.jsxs(k4,{children:[F.jsx(A4,{render:F.jsx("button",{className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 flex items-center justify-center rounded-md p-1 text-muted-foreground opacity-0 hover:bg-sidebar-muted hover:text-foreground group-hover/chat:opacity-100 transition-opacity"}),children:F.jsx(h3,{className:"size-4"})}),F.jsxs(O4,{align:"end",side:"right",sideOffset:4,children:[F.jsxs(Cf,{className:"gap-2",onClick:p,children:[F.jsx(_3,{className:"size-3.5"}),"Rename"]}),F.jsx(Cf,{className:"gap-2",onClick:d,children:b?F.jsxs(F.Fragment,{children:[F.jsx(C3,{className:"size-3.5"}),"Unpin"]}):F.jsxs(F.Fragment,{children:[F.jsx(sx,{className:"size-3.5"}),"Pin"]})}),F.jsxs(Cf,{className:"gap-2",onClick:h,children:[F.jsx(d3,{className:"size-3.5"}),"Copy ID"]}),F.jsxs(Cf,{className:"gap-2 text-destructive",onClick:g,children:[F.jsx(z3,{className:"size-3.5"}),"Delete"]})]})]})]})})})}function D4({children:e}){return F.jsxs("div",{className:"relative flex h-dvh w-full",children:[F.jsx(I4,{}),F.jsx(iU,{className:"flex flex-col min-w-0",children:e})]})}function L4({children:e}){return F.jsx(tU,{children:F.jsx(D4,{children:e})})}const P4="/assets/css/styles-B8p6jk5Z.css",z4=`
13
+ (function() {
14
+ try {
15
+ var theme = localStorage.getItem('hermium-theme') || 'system';
16
+ var resolved = theme === 'system'
17
+ ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light')
18
+ : theme;
19
+ if (resolved === 'dark') {
20
+ document.documentElement.classList.add('dark');
21
+ } else {
22
+ document.documentElement.classList.remove('dark');
23
+ }
24
+ } catch (e) {}
25
+ })();
26
+ `,Jo=AD({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"Hermium"}],links:[{rel:"stylesheet",href:P4}],scripts:[{type:"text/javascript",children:z4}]}),notFoundComponent:()=>F.jsxs("main",{className:"container mx-auto p-4 pt-16",children:[F.jsx("h1",{children:"404"}),F.jsx("p",{children:"The requested page could not be found."})]}),shellComponent:B4});function B4({children:e}){return F.jsxs("html",{lang:"en",suppressHydrationWarning:!0,children:[F.jsx("head",{children:F.jsx(XD,{})}),F.jsxs("body",{children:[F.jsx(iB,{children:F.jsx(L4,{children:e})}),F.jsx(WD,{})]})]})}const U4=()=>Wi(()=>import("./usage-CLJFoVEz.js"),[]),F4=Ua("/usage")({component:Fa(U4,"component")});async function H4(){return ni("/api/hermes/skills")}async function FG(e){return(await ni(`/api/hermes/skills/${e}`)).content}async function HG(e,t){return(await ni(`/api/hermes/skills/${e}/${t}/files`)).files}async function jG(e,t){await ni("/api/hermes/skills/toggle",{method:"PUT",body:JSON.stringify({name:e,enabled:t})})}const j4=()=>Wi(()=>import("./skills-BNq1laCc.js"),__vite__mapDeps([0,1])),G4=Ua("/skills")({loader:async()=>await H4(),component:Fa(j4,"component")}),$4=()=>Wi(()=>import("./settings-RFphMDu9.js"),[]),q4=Ua("/settings")({component:Fa($4,"component")}),V4=()=>Wi(()=>import("./memory-BE78tPkH.js"),__vite__mapDeps([2,1])),Y4=Ua("/memory")({component:Fa(V4,"component")}),K4=()=>Wi(()=>import("./index-CGA2_Unz.js"),__vite__mapDeps([3,4])),X4=Ua("/")({component:Fa(K4,"component")}),W4=()=>Wi(()=>import("./chat.index-BjoDk7Pf.js"),[]),Z4=Ua("/chat/")({component:Fa(W4,"component")}),Q4=()=>Wi(()=>import("./chat._sessionId-CdFGOM3V.js"),__vite__mapDeps([5,1,4])),J4=Ua("/chat/$sessionId")({component:Fa(Q4,"component")}),eF=F4.update({id:"/usage",path:"/usage",getParentRoute:()=>Jo}),tF=G4.update({id:"/skills",path:"/skills",getParentRoute:()=>Jo}),nF=q4.update({id:"/settings",path:"/settings",getParentRoute:()=>Jo}),rF=Y4.update({id:"/memory",path:"/memory",getParentRoute:()=>Jo}),iF=X4.update({id:"/",path:"/",getParentRoute:()=>Jo}),oF=Z4.update({id:"/chat/",path:"/chat/",getParentRoute:()=>Jo}),aF=J4.update({id:"/chat/$sessionId",path:"/chat/$sessionId",getParentRoute:()=>Jo}),sF={IndexRoute:iF,MemoryRoute:rF,SettingsRoute:nF,SkillsRoute:tF,UsageRoute:eF,ChatSessionIdRoute:aF,ChatIndexRoute:oF},lF=Jo._addFileChildren(sF);function cF(){return jD({routeTree:lF,scrollRestoration:!0,defaultPreload:"intent",defaultPreloadStaleTime:0})}async function uF(){const e=await cF();let t;return t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t},t.push(XI),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:"",serializationAdapters:t}),e.stores.matchesId.get().length||await ZI(e),e}async function fF(){const e=await uF();return window.$_TSR?.h(),e}var Ng;function dF(){return Ng||(Ng=fF()),F.jsx(tD,{promise:Ng,children:e=>F.jsx(qD,{router:e})})}A.startTransition(()=>{BA.hydrateRoot(document,F.jsx(A.StrictMode,{children:F.jsx(dF,{})}))});const eT=A.createContext(void 0);function pF(){const e=A.useContext(eT);if(e===void 0)throw new Error(Vn(63));return e}let mx=(function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});const tT={...wR,checked(e){return e?{[mx.checked]:""}:{[mx.unchecked]:""}}},GG=A.forwardRef(function(t,n){const{checked:i,className:a,defaultChecked:l,"aria-labelledby":c,form:u,id:p,inputRef:d,name:h,nativeButton:g=!1,onCheckedChange:b,readOnly:y=!1,required:E=!1,disabled:_=!1,render:x,uncheckedValue:S,value:C,style:k,...O}=t,{clearErrors:N}=yB(),{state:R,setTouched:P,setDirty:I,validityData:G,setFilled:U,setFocused:X,shouldValidateOnChange:$,validationMode:W,disabled:V,name:H,validation:B}=jd(),{labelId:q}=xb(),Q=V||_,ee=H??h,M=Qe(b),D=A.useRef(null),Z=qo(D,d,B.inputRef),z=A.useRef(null),le=eo(),ce=RR({id:p,implicit:!1,controlRef:z}),ae=g?void 0:ce,[be,Ee]=_b({controlled:i,default:!!l,name:"Switch",state:"checked"});TR(z,{id:le,value:be}),Me(()=>{D.current&&U(D.current.checked)},[D,U]),BR(be,()=>{N(ee),I(be!==G.initialValue),U(be),$()?B.commit(be):B.commit(be,!0)});const{getButtonProps:ye,buttonRef:De}=el({disabled:Q,native:g}),qe=EB(c,q,D,!g,ae),Te={id:g?ce:le,role:"switch","aria-checked":be,"aria-readonly":y||void 0,"aria-required":E||void 0,"aria-labelledby":qe,onFocus(){Q||X(!0)},onBlur(){const Se=D.current;!Se||Q||(P(!0),X(!1),W==="onBlur"&&B.commit(Se.checked))},onClick(Se){y||Q||(Se.preventDefault(),D.current?.dispatchEvent(new PointerEvent("click",{bubbles:!0,shiftKey:Se.shiftKey,ctrlKey:Se.ctrlKey,altKey:Se.altKey,metaKey:Se.metaKey})))}},$e=A.useMemo(()=>Ei({checked:be,disabled:Q,form:u,id:ae,name:ee,required:E,style:ee?T2:e1,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:Z,onChange(Se){if(Se.nativeEvent.defaultPrevented)return;if(y){Se.preventDefault();return}const Ne=Se.currentTarget.checked,ze=ht(Pc,Se.nativeEvent);M?.(Ne,ze),!ze.isCanceled&&Ee(Ne)},onFocus(){z.current?.focus()}},B.getInputValidationProps,C!==void 0?{value:C}:An),[be,Q,u,Z,ae,ee,M,y,E,Ee,B,C]),Xe=A.useMemo(()=>({...R,checked:be,disabled:Q,readOnly:y,required:E}),[R,be,Q,y,E]),at=hn("span",t,{state:Xe,ref:[n,z,De],props:[Te,B.getValidationProps,O,ye],stateAttributesMapping:tT});return F.jsxs(eT.Provider,{value:Xe,children:[at,!be&&ee&&S!==void 0&&F.jsx("input",{type:"hidden",form:u,name:ee,value:S}),F.jsx("input",{...$e,suppressHydrationWarning:!0})]})}),$G=A.forwardRef(function(t,n){const{render:i,className:a,style:l,...c}=t,{state:u}=jd(),p=pF(),d={...u,...p};return hn("span",t,{state:d,ref:n,stateAttributesMapping:tT,props:c})});function hF(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const gF=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mF=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bF={};function bx(e,t){return(bF.jsx?mF:gF).test(e)}const yF=/[ \t\n\f\r]/g;function vF(e){return typeof e=="object"?e.type==="text"?yx(e.value):!1:yx(e)}function yx(e){return e.replace(yF,"")===""}class jc{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}jc.prototype.normal={};jc.prototype.property={};jc.prototype.space=void 0;function nT(e,t){const n={},i={};for(const a of e)Object.assign(n,a.property),Object.assign(i,a.normal);return new jc(n,i,t)}function Sm(e){return e.toLowerCase()}class _r{constructor(t,n){this.attribute=n,this.property=t}}_r.prototype.attribute="";_r.prototype.booleanish=!1;_r.prototype.boolean=!1;_r.prototype.commaOrSpaceSeparated=!1;_r.prototype.commaSeparated=!1;_r.prototype.defined=!1;_r.prototype.mustUseProperty=!1;_r.prototype.number=!1;_r.prototype.overloadedBoolean=!1;_r.prototype.property="";_r.prototype.spaceSeparated=!1;_r.prototype.space=void 0;let EF=0;const pt=qa(),kn=qa(),xm=qa(),_e=qa(),Jt=qa(),Gs=qa(),Ir=qa();function qa(){return 2**++EF}const _m=Object.freeze(Object.defineProperty({__proto__:null,boolean:pt,booleanish:kn,commaOrSpaceSeparated:Ir,commaSeparated:Gs,number:_e,overloadedBoolean:xm,spaceSeparated:Jt},Symbol.toStringTag,{value:"Module"})),Ig=Object.keys(_m);class Tb extends _r{constructor(t,n,i,a){let l=-1;if(super(t,n),vx(this,"space",a),typeof i=="number")for(;++l<Ig.length;){const c=Ig[l];vx(this,Ig[l],(i&_m[c])===_m[c])}}}Tb.prototype.defined=!0;function vx(e,t,n){n&&(e[t]=n)}function tl(e){const t={},n={};for(const[i,a]of Object.entries(e.properties)){const l=new Tb(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,n[Sm(i)]=i,n[Sm(l.attribute)]=i}return new jc(t,n,e.space)}const rT=tl({properties:{ariaActiveDescendant:null,ariaAtomic:kn,ariaAutoComplete:null,ariaBusy:kn,ariaChecked:kn,ariaColCount:_e,ariaColIndex:_e,ariaColSpan:_e,ariaControls:Jt,ariaCurrent:null,ariaDescribedBy:Jt,ariaDetails:null,ariaDisabled:kn,ariaDropEffect:Jt,ariaErrorMessage:null,ariaExpanded:kn,ariaFlowTo:Jt,ariaGrabbed:kn,ariaHasPopup:null,ariaHidden:kn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Jt,ariaLevel:_e,ariaLive:null,ariaModal:kn,ariaMultiLine:kn,ariaMultiSelectable:kn,ariaOrientation:null,ariaOwns:Jt,ariaPlaceholder:null,ariaPosInSet:_e,ariaPressed:kn,ariaReadOnly:kn,ariaRelevant:null,ariaRequired:kn,ariaRoleDescription:Jt,ariaRowCount:_e,ariaRowIndex:_e,ariaRowSpan:_e,ariaSelected:kn,ariaSetSize:_e,ariaSort:null,ariaValueMax:_e,ariaValueMin:_e,ariaValueNow:_e,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function iT(e,t){return t in e?e[t]:t}function oT(e,t){return iT(e,t.toLowerCase())}const SF=tl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Gs,acceptCharset:Jt,accessKey:Jt,action:null,allow:null,allowFullScreen:pt,allowPaymentRequest:pt,allowUserMedia:pt,alt:null,as:null,async:pt,autoCapitalize:null,autoComplete:Jt,autoFocus:pt,autoPlay:pt,blocking:Jt,capture:null,charSet:null,checked:pt,cite:null,className:Jt,cols:_e,colSpan:null,content:null,contentEditable:kn,controls:pt,controlsList:Jt,coords:_e|Gs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:pt,defer:pt,dir:null,dirName:null,disabled:pt,download:xm,draggable:kn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:pt,formTarget:null,headers:Jt,height:_e,hidden:xm,high:_e,href:null,hrefLang:null,htmlFor:Jt,httpEquiv:Jt,id:null,imageSizes:null,imageSrcSet:null,inert:pt,inputMode:null,integrity:null,is:null,isMap:pt,itemId:null,itemProp:Jt,itemRef:Jt,itemScope:pt,itemType:Jt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:pt,low:_e,manifest:null,max:null,maxLength:_e,media:null,method:null,min:null,minLength:_e,multiple:pt,muted:pt,name:null,nonce:null,noModule:pt,noValidate:pt,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:pt,optimum:_e,pattern:null,ping:Jt,placeholder:null,playsInline:pt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:pt,referrerPolicy:null,rel:Jt,required:pt,reversed:pt,rows:_e,rowSpan:_e,sandbox:Jt,scope:null,scoped:pt,seamless:pt,selected:pt,shadowRootClonable:pt,shadowRootDelegatesFocus:pt,shadowRootMode:null,shape:null,size:_e,sizes:null,slot:null,span:_e,spellCheck:kn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_e,step:null,style:null,tabIndex:_e,target:null,title:null,translate:null,type:null,typeMustMatch:pt,useMap:null,value:kn,width:_e,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Jt,axis:null,background:null,bgColor:null,border:_e,borderColor:null,bottomMargin:_e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:pt,declare:pt,event:null,face:null,frame:null,frameBorder:null,hSpace:_e,leftMargin:_e,link:null,longDesc:null,lowSrc:null,marginHeight:_e,marginWidth:_e,noResize:pt,noHref:pt,noShade:pt,noWrap:pt,object:null,profile:null,prompt:null,rev:null,rightMargin:_e,rules:null,scheme:null,scrolling:kn,standby:null,summary:null,text:null,topMargin:_e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:pt,disableRemotePlayback:pt,prefix:null,property:null,results:_e,security:null,unselectable:null},space:"html",transform:oT}),xF=tl({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",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:Ir,accentHeight:_e,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_e,amplitude:_e,arabicForm:null,ascent:_e,attributeName:null,attributeType:null,azimuth:_e,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_e,by:null,calcMode:null,capHeight:_e,className:Jt,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:_e,diffuseConstant:_e,direction:null,display:null,dur:null,divisor:_e,dominantBaseline:null,download:pt,dx:null,dy:null,edgeMode:null,editable:null,elevation:_e,enableBackground:null,end:null,event:null,exponent:_e,externalResourcesRequired:null,fill:null,fillOpacity:_e,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:Gs,g2:Gs,glyphName:Gs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_e,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_e,horizOriginX:_e,horizOriginY:_e,id:null,ideographic:_e,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_e,k:_e,k1:_e,k2:_e,k3:_e,k4:_e,kernelMatrix:Ir,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_e,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:_e,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:_e,overlineThickness:_e,paintOrder:null,panose1:null,path:null,pathLength:_e,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Jt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_e,pointsAtY:_e,pointsAtZ:_e,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ir,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ir,rev:Ir,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ir,requiredFeatures:Ir,requiredFonts:Ir,requiredFormats:Ir,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:_e,specularExponent:_e,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_e,strikethroughThickness:_e,string:null,stroke:null,strokeDashArray:Ir,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_e,strokeOpacity:_e,strokeWidth:null,style:null,surfaceScale:_e,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ir,tabIndex:_e,tableValues:null,target:null,targetX:_e,targetY:_e,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ir,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_e,underlineThickness:_e,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_e,values:null,vAlphabetic:_e,vMathematical:_e,vectorEffect:null,vHanging:_e,vIdeographic:_e,version:null,vertAdvY:_e,vertOriginX:_e,vertOriginY:_e,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_e,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:iT}),aT=tl({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()}}),sT=tl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:oT}),lT=tl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),_F={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"},wF=/[A-Z]/g,Ex=/-[a-z]/g,RF=/^data[-\w.:]+$/i;function TF(e,t){const n=Sm(t);let i=t,a=_r;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&RF.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Ex,kF);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Ex.test(l)){let c=l.replace(wF,CF);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}a=Tb}return new a(i,t)}function CF(e){return"-"+e.toLowerCase()}function kF(e){return e.charAt(1).toUpperCase()}const AF=nT([rT,SF,aT,sT,lT],"html"),Cb=nT([rT,xF,aT,sT,lT],"svg");function OF(e){return e.join(" ").trim()}var ks={},Dg,Sx;function MF(){if(Sx)return Dg;Sx=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,u=/^\s+|\s+$/g,p=`
27
+ `,d="/",h="*",g="",b="comment",y="declaration";function E(x,S){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];S=S||{};var C=1,k=1;function O(V){var H=V.match(t);H&&(C+=H.length);var B=V.lastIndexOf(p);k=~B?V.length-B:k+V.length}function N(){var V={line:C,column:k};return function(H){return H.position=new R(V),G(),H}}function R(V){this.start=V,this.end={line:C,column:k},this.source=S.source}R.prototype.content=x;function P(V){var H=new Error(S.source+":"+C+":"+k+": "+V);if(H.reason=V,H.filename=S.source,H.line=C,H.column=k,H.source=x,!S.silent)throw H}function I(V){var H=V.exec(x);if(H){var B=H[0];return O(B),x=x.slice(B.length),H}}function G(){I(n)}function U(V){var H;for(V=V||[];H=X();)H!==!1&&V.push(H);return V}function X(){var V=N();if(!(d!=x.charAt(0)||h!=x.charAt(1))){for(var H=2;g!=x.charAt(H)&&(h!=x.charAt(H)||d!=x.charAt(H+1));)++H;if(H+=2,g===x.charAt(H-1))return P("End of comment missing");var B=x.slice(2,H-2);return k+=2,O(B),x=x.slice(H),k+=2,V({type:b,comment:B})}}function $(){var V=N(),H=I(i);if(H){if(X(),!I(a))return P("property missing ':'");var B=I(l),q=V({type:y,property:_(H[0].replace(e,g)),value:B?_(B[0].replace(e,g)):g});return I(c),q}}function W(){var V=[];U(V);for(var H;H=$();)H!==!1&&(V.push(H),U(V));return V}return G(),W()}function _(x){return x?x.replace(u,g):g}return Dg=E,Dg}var xx;function NF(){if(xx)return ks;xx=1;var e=ks&&ks.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ks,"__esModule",{value:!0}),ks.default=n;const t=e(MF());function n(i,a){let l=null;if(!i||typeof i!="string")return l;const c=(0,t.default)(i),u=typeof a=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:d,value:h}=p;u?a(d,h,p):h&&(l=l||{},l[d]=h)}),l}return ks}var uc={},_x;function IF(){if(_x)return uc;_x=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(d){return!d||n.test(d)||e.test(d)},c=function(d,h){return h.toUpperCase()},u=function(d,h){return"".concat(h,"-")},p=function(d,h){return h===void 0&&(h={}),l(d)?d:(d=d.toLowerCase(),h.reactCompat?d=d.replace(a,u):d=d.replace(i,u),d.replace(t,c))};return uc.camelCase=p,uc}var fc,wx;function DF(){if(wx)return fc;wx=1;var e=fc&&fc.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(NF()),n=IF();function i(a,l){var c={};return!a||typeof a!="string"||(0,t.default)(a,function(u,p){u&&p&&(c[(0,n.camelCase)(u,l)]=p)}),c}return i.default=i,fc=i,fc}var LF=DF();const PF=Sd(LF),cT=uT("end"),kb=uT("start");function uT(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 zF(e){const t=kb(e),n=cT(e);if(t&&n)return{start:t,end:n}}function Ec(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Rx(e.position):"start"in e||"end"in e?Rx(e):"line"in e||"column"in e?wm(e):""}function wm(e){return Tx(e&&e.line)+":"+Tx(e&&e.column)}function Rx(e){return wm(e&&e.start)+"-"+wm(e&&e.end)}function Tx(e){return e&&typeof e=="number"?e:1}class er extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let a="",l={},c=!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"?a=t:!l.cause&&t&&(c=!0,a=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof i=="string"){const p=i.indexOf(":");p===-1?l.ruleId=i:(l.source=i.slice(0,p),l.ruleId=i.slice(p+1))}if(!l.place&&l.ancestors&&l.ancestors){const p=l.ancestors[l.ancestors.length-1];p&&(l.place=p.position)}const u=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=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=u?u.line:void 0,this.name=Ec(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=c&&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}}er.prototype.file="";er.prototype.name="";er.prototype.reason="";er.prototype.message="";er.prototype.stack="";er.prototype.column=void 0;er.prototype.line=void 0;er.prototype.ancestors=void 0;er.prototype.cause=void 0;er.prototype.fatal=void 0;er.prototype.place=void 0;er.prototype.ruleId=void 0;er.prototype.source=void 0;const Ab={}.hasOwnProperty,BF=new Map,UF=/[A-Z]/g,FF=new Set(["table","tbody","thead","tfoot","tr"]),HF=new Set(["td","th"]),fT="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function jF(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=WF(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=XF(n,t.jsx,t.jsxs)}const a={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"?Cb:AF,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=dT(a,e,void 0);return l&&typeof l!="string"?l:a.create(e,a.Fragment,{children:l||void 0},void 0)}function dT(e,t,n){if(t.type==="element")return GF(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return $F(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return VF(e,t,n);if(t.type==="mdxjsEsm")return qF(e,t);if(t.type==="root")return YF(e,t,n);if(t.type==="text")return KF(e,t)}function GF(e,t,n){const i=e.schema;let a=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=Cb,e.schema=a),e.ancestors.push(t);const l=hT(e,t.tagName,!1),c=ZF(e,t);let u=Mb(e,t);return FF.has(t.tagName)&&(u=u.filter(function(p){return typeof p=="string"?!vF(p):!0})),pT(e,c,l,t),Ob(c,u),e.ancestors.pop(),e.schema=i,e.create(t,l,c,n)}function $F(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)}Oc(e,t.position)}function qF(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Oc(e,t.position)}function VF(e,t,n){const i=e.schema;let a=i;t.name==="svg"&&i.space==="html"&&(a=Cb,e.schema=a),e.ancestors.push(t);const l=t.name===null?e.Fragment:hT(e,t.name,!0),c=QF(e,t),u=Mb(e,t);return pT(e,c,l,t),Ob(c,u),e.ancestors.pop(),e.schema=i,e.create(t,l,c,n)}function YF(e,t,n){const i={};return Ob(i,Mb(e,t)),e.create(t,e.Fragment,i,n)}function KF(e,t){return t.value}function pT(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function Ob(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function XF(e,t,n){return i;function i(a,l,c,u){const d=Array.isArray(c.children)?n:t;return u?d(l,c,u):d(l,c)}}function WF(e,t){return n;function n(i,a,l,c){const u=Array.isArray(l.children),p=kb(i);return t(a,l,c,u,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function ZF(e,t){const n={};let i,a;for(a in t.properties)if(a!=="children"&&Ab.call(t.properties,a)){const l=JF(e,a,t.properties[a]);if(l){const[c,u]=l;e.tableCellAlignToStyle&&c==="align"&&typeof u=="string"&&HF.has(t.tagName)?i=u:n[c]=u}}if(i){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function QF(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 c=l.expression;c.type;const u=c.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Oc(e,t.position);else{const a=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const u=i.value.data.estree.body[0];u.type,l=e.evaluater.evaluateExpression(u.expression)}else Oc(e,t.position);else l=i.value===null?!0:i.value;n[a]=l}return n}function Mb(e,t){const n=[];let i=-1;const a=e.passKeys?new Map:BF;for(;++i<t.children.length;){const l=t.children[i];let c;if(e.passKeys){const p=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(p){const d=a.get(p)||0;c=p+"-"+d,a.set(p,d+1)}}const u=dT(e,l,c);u!==void 0&&n.push(u)}return n}function JF(e,t,n){const i=TF(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?hF(n):OF(n)),i.property==="style"){let a=typeof n=="object"?n:e6(e,String(n));return e.stylePropertyNameCase==="css"&&(a=t6(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?_F[i.property]||i.property:i.attribute,n]}}function e6(e,t){try{return PF(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,a=new er("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=fT+"#cannot-parse-style-attribute",a}}function hT(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let l=-1,c;for(;++l<a.length;){const u=bx(a[l])?{type:"Identifier",name:a[l]}:{type:"Literal",value:a[l]};c=c?{type:"MemberExpression",object:c,property:u,computed:!!(l&&u.type==="Literal"),optional:!1}:u}i=c}else i=bx(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const a=i.value;return Ab.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(i);Oc(e)}function Oc(e,t){const n=new er("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=fT+"#cannot-handle-mdx-estrees-without-createevaluater",n}function t6(e){const t={};let n;for(n in e)Ab.call(e,n)&&(t[n6(n)]=e[n]);return t}function n6(e){let t=e.replace(UF,r6);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function r6(e){return"-"+e.toLowerCase()}const Lg={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"]},i6={};function Nb(e,t){const n=i6,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return gT(e,i,a)}function gT(e,t,n){if(o6(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 Cx(e.children,t,n)}return Array.isArray(e)?Cx(e,t,n):""}function Cx(e,t,n){const i=[];let a=-1;for(;++a<e.length;)i[a]=gT(e[a],t,n);return i.join("")}function o6(e){return!!(e&&typeof e=="object")}const kx=document.createElement("i");function Ib(e){const t="&"+e+";";kx.innerHTML=t;const n=kx.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function zr(e,t,n,i){const a=e.length;let l=0,c;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,i.length<1e4)c=Array.from(i),c.unshift(t,n),e.splice(...c);else for(n&&e.splice(t,n);l<i.length;)c=i.slice(l,l+1e4),c.unshift(t,0),e.splice(...c),l+=1e4,t+=1e4}function Kr(e,t){return e.length>0?(zr(e,e.length,0,t),e):t}const Ax={}.hasOwnProperty;function mT(e){const t={};let n=-1;for(;++n<e.length;)a6(t,e[n]);return t}function a6(e,t){let n;for(n in t){const a=(Ax.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let c;if(l)for(c in l){Ax.call(a,c)||(a[c]=[]);const u=l[c];s6(a[c],Array.isArray(u)?u:u?[u]:[])}}}function s6(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);zr(e,0,0,i)}function bT(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)}function ei(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ar=ea(/[A-Za-z]/),Qn=ea(/[\dA-Za-z]/),l6=ea(/[#-'*+\--9=?A-Z^-~]/);function gd(e){return e!==null&&(e<32||e===127)}const Rm=ea(/\d/),c6=ea(/[\dA-Fa-f]/),u6=ea(/[!-/:-@[-`{-~]/);function et(e){return e!==null&&e<-2}function Xt(e){return e!==null&&(e<0||e===32)}function St(e){return e===-2||e===-1||e===32}const $d=ea(/\p{P}|\p{S}/u),Pa=ea(/\s/);function ea(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function nl(e){const t=[];let n=-1,i=0,a=0;for(;++n<e.length;){const l=e.charCodeAt(n);let c="";if(l===37&&Qn(e.charCodeAt(n+1))&&Qn(e.charCodeAt(n+2)))a=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(c=String.fromCharCode(l));else if(l>55295&&l<57344){const u=e.charCodeAt(n+1);l<56320&&u>56319&&u<57344?(c=String.fromCharCode(l,u),a=1):c="�"}else c=String.fromCharCode(l);c&&(t.push(e.slice(i,n),encodeURIComponent(c)),i=n+a+1,c=""),a&&(n+=a,a=0)}return t.join("")+e.slice(i)}function kt(e,t,n,i){const a=i?i-1:Number.POSITIVE_INFINITY;let l=0;return c;function c(p){return St(p)?(e.enter(n),u(p)):t(p)}function u(p){return St(p)&&l++<a?(e.consume(p),u):(e.exit(n),t(p))}}const f6={tokenize:d6};function d6(e){const t=e.attempt(this.parser.constructs.contentInitial,i,a);let n;return t;function i(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),kt(e,t,"linePrefix")}function a(u){return e.enter("paragraph"),l(u)}function l(u){const p=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=p),n=p,c(u)}function c(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return et(u)?(e.consume(u),e.exit("chunkText"),l):(e.consume(u),c)}}const p6={tokenize:h6},Ox={tokenize:g6};function h6(e){const t=this,n=[];let i=0,a,l,c;return u;function u(k){if(i<n.length){const O=n[i];return t.containerState=O[1],e.attempt(O[0].continuation,p,d)(k)}return d(k)}function p(k){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&C();const O=t.events.length;let N=O,R;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){R=t.events[N][1].end;break}S(i);let P=O;for(;P<t.events.length;)t.events[P][1].end={...R},P++;return zr(t.events,N+1,0,t.events.slice(O)),t.events.length=P,d(k)}return u(k)}function d(k){if(i===n.length){if(!a)return b(k);if(a.currentConstruct&&a.currentConstruct.concrete)return E(k);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ox,h,g)(k)}function h(k){return a&&C(),S(i),b(k)}function g(k){return t.parser.lazy[t.now().line]=i!==n.length,c=t.now().offset,E(k)}function b(k){return t.containerState={},e.attempt(Ox,y,E)(k)}function y(k){return i++,n.push([t.currentConstruct,t.containerState]),b(k)}function E(k){if(k===null){a&&C(),S(0),e.consume(k);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:l}),_(k)}function _(k){if(k===null){x(e.exit("chunkFlow"),!0),S(0),e.consume(k);return}return et(k)?(e.consume(k),x(e.exit("chunkFlow")),i=0,t.interrupt=void 0,u):(e.consume(k),_)}function x(k,O){const N=t.sliceStream(k);if(O&&N.push(null),k.previous=l,l&&(l.next=k),l=k,a.defineSkip(k.start),a.write(N),t.parser.lazy[k.start.line]){let R=a.events.length;for(;R--;)if(a.events[R][1].start.offset<c&&(!a.events[R][1].end||a.events[R][1].end.offset>c))return;const P=t.events.length;let I=P,G,U;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(G){U=t.events[I][1].end;break}G=!0}for(S(i),R=P;R<t.events.length;)t.events[R][1].end={...U},R++;zr(t.events,I+1,0,t.events.slice(P)),t.events.length=R}}function S(k){let O=n.length;for(;O-- >k;){const N=n[O];t.containerState=N[1],N[0].exit.call(t,e)}n.length=k}function C(){a.write([null]),l=void 0,a=void 0,t.containerState._closeFlow=void 0}}function g6(e,t,n){return kt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ws(e){if(e===null||Xt(e)||Pa(e))return 1;if($d(e))return 2}function qd(e,t,n){const i=[];let a=-1;for(;++a<e.length;){const l=e[a].resolveAll;l&&!i.includes(l)&&(t=l(t,n),i.push(l))}return t}const Tm={name:"attention",resolveAll:m6,tokenize:b6};function m6(e,t){let n=-1,i,a,l,c,u,p,d,h;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;p=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 g={...e[i][1].end},b={...e[n][1].start};Mx(g,-p),Mx(b,p),c={type:p>1?"strongSequence":"emphasisSequence",start:g,end:{...e[i][1].end}},u={type:p>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:b},l={type:p>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},a={type:p>1?"strong":"emphasis",start:{...c.start},end:{...u.end}},e[i][1].end={...c.start},e[n][1].start={...u.end},d=[],e[i][1].end.offset-e[i][1].start.offset&&(d=Kr(d,[["enter",e[i][1],t],["exit",e[i][1],t]])),d=Kr(d,[["enter",a,t],["enter",c,t],["exit",c,t],["enter",l,t]]),d=Kr(d,qd(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),d=Kr(d,[["exit",l,t],["enter",u,t],["exit",u,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,d=Kr(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,zr(e,i-1,n-i+3,d),n=i+d.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function b6(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,a=Ws(i);let l;return c;function c(p){return l=p,e.enter("attentionSequence"),u(p)}function u(p){if(p===l)return e.consume(p),u;const d=e.exit("attentionSequence"),h=Ws(p),g=!h||h===2&&a||n.includes(p),b=!a||a===2&&h||n.includes(i);return d._open=!!(l===42?g:g&&(a||!b)),d._close=!!(l===42?b:b&&(h||!g)),t(p)}}function Mx(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const y6={name:"autolink",tokenize:v6};function v6(e,t,n){let i=0;return a;function a(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(y){return ar(y)?(e.consume(y),c):y===64?n(y):d(y)}function c(y){return y===43||y===45||y===46||Qn(y)?(i=1,u(y)):d(y)}function u(y){return y===58?(e.consume(y),i=0,p):(y===43||y===45||y===46||Qn(y))&&i++<32?(e.consume(y),u):(i=0,d(y))}function p(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||gd(y)?n(y):(e.consume(y),p)}function d(y){return y===64?(e.consume(y),h):l6(y)?(e.consume(y),d):n(y)}function h(y){return Qn(y)?g(y):n(y)}function g(y){return y===46?(e.consume(y),i=0,h):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):b(y)}function b(y){if((y===45||Qn(y))&&i++<63){const E=y===45?b:g;return e.consume(y),E}return n(y)}}const Gc={partial:!0,tokenize:E6};function E6(e,t,n){return i;function i(l){return St(l)?kt(e,a,"linePrefix")(l):a(l)}function a(l){return l===null||et(l)?t(l):n(l)}}const yT={continuation:{tokenize:x6},exit:_6,name:"blockQuote",tokenize:S6};function S6(e,t,n){const i=this;return a;function a(c){if(c===62){const u=i.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),l}return n(c)}function l(c){return St(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function x6(e,t,n){const i=this;return a;function a(c){return St(c)?kt(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):l(c)}function l(c){return e.attempt(yT,t,n)(c)}}function _6(e){e.exit("blockQuote")}const vT={name:"characterEscape",tokenize:w6};function w6(e,t,n){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),a}function a(l){return u6(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const ET={name:"characterReference",tokenize:R6};function R6(e,t,n){const i=this;let a=0,l,c;return u;function u(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),p}function p(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),l=31,c=Qn,h(g))}function d(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,c=c6,h):(e.enter("characterReferenceValue"),l=7,c=Rm,h(g))}function h(g){if(g===59&&a){const b=e.exit("characterReferenceValue");return c===Qn&&!Ib(i.sliceSerialize(b))?n(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(g)&&a++<l?(e.consume(g),h):n(g)}}const Nx={partial:!0,tokenize:C6},Ix={concrete:!0,name:"codeFenced",tokenize:T6};function T6(e,t,n){const i=this,a={partial:!0,tokenize:N};let l=0,c=0,u;return p;function p(R){return d(R)}function d(R){const P=i.events[i.events.length-1];return l=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,u=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(R)}function h(R){return R===u?(c++,e.consume(R),h):c<3?n(R):(e.exit("codeFencedFenceSequence"),St(R)?kt(e,g,"whitespace")(R):g(R))}function g(R){return R===null||et(R)?(e.exit("codeFencedFence"),i.interrupt?t(R):e.check(Nx,_,O)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(R))}function b(R){return R===null||et(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(R)):St(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),kt(e,y,"whitespace")(R)):R===96&&R===u?n(R):(e.consume(R),b)}function y(R){return R===null||et(R)?g(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(R))}function E(R){return R===null||et(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(R)):R===96&&R===u?n(R):(e.consume(R),E)}function _(R){return e.attempt(a,O,x)(R)}function x(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),S}function S(R){return l>0&&St(R)?kt(e,C,"linePrefix",l+1)(R):C(R)}function C(R){return R===null||et(R)?e.check(Nx,_,O)(R):(e.enter("codeFlowValue"),k(R))}function k(R){return R===null||et(R)?(e.exit("codeFlowValue"),C(R)):(e.consume(R),k)}function O(R){return e.exit("codeFenced"),t(R)}function N(R,P,I){let G=0;return U;function U(H){return R.enter("lineEnding"),R.consume(H),R.exit("lineEnding"),X}function X(H){return R.enter("codeFencedFence"),St(H)?kt(R,$,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):$(H)}function $(H){return H===u?(R.enter("codeFencedFenceSequence"),W(H)):I(H)}function W(H){return H===u?(G++,R.consume(H),W):G>=c?(R.exit("codeFencedFenceSequence"),St(H)?kt(R,V,"whitespace")(H):V(H)):I(H)}function V(H){return H===null||et(H)?(R.exit("codeFencedFence"),P(H)):I(H)}}}function C6(e,t,n){const i=this;return a;function a(c){return c===null?n(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l)}function l(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}const Pg={name:"codeIndented",tokenize:A6},k6={partial:!0,tokenize:O6};function A6(e,t,n){const i=this;return a;function a(d){return e.enter("codeIndented"),kt(e,l,"linePrefix",5)(d)}function l(d){const h=i.events[i.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?c(d):n(d)}function c(d){return d===null?p(d):et(d)?e.attempt(k6,c,p)(d):(e.enter("codeFlowValue"),u(d))}function u(d){return d===null||et(d)?(e.exit("codeFlowValue"),c(d)):(e.consume(d),u)}function p(d){return e.exit("codeIndented"),t(d)}}function O6(e,t,n){const i=this;return a;function a(c){return i.parser.lazy[i.now().line]?n(c):et(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),a):kt(e,l,"linePrefix",5)(c)}function l(c){const u=i.events[i.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(c):et(c)?a(c):n(c)}}const M6={name:"codeText",previous:I6,resolve:N6,tokenize:D6};function N6(e){let t=e.length-4,n=3,i,a;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;)a===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(a=i):(i===t||e[i][1].type==="lineEnding")&&(e[a][1].type="codeTextData",i!==a+2&&(e[a][1].end=e[i-1][1].end,e.splice(a+2,i-a-2),t-=i-a-2,i=a+2),a=void 0);return e}function I6(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function D6(e,t,n){let i=0,a,l;return c;function c(g){return e.enter("codeText"),e.enter("codeTextSequence"),u(g)}function u(g){return g===96?(e.consume(g),i++,u):(e.exit("codeTextSequence"),p(g))}function p(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),p):g===96?(l=e.enter("codeTextSequence"),a=0,h(g)):et(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("codeTextData"),d(g))}function d(g){return g===null||g===32||g===96||et(g)?(e.exit("codeTextData"),p(g)):(e.consume(g),d)}function h(g){return g===96?(e.consume(g),a++,h):a===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(l.type="codeTextData",d(g))}}class L6{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 a=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return i&&dc(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),dc(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),dc(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);dc(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);dc(this.left,n.reverse())}}}function dc(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 ST(e){const t={};let n=-1,i,a,l,c,u,p,d;const h=new L6(e);for(;++n<h.length;){for(;n in t;)n=t[n];if(i=h.get(n),n&&i[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(p=i[1]._tokenizer.events,l=0,l<p.length&&p[l][1].type==="lineEndingBlank"&&(l+=2),l<p.length&&p[l][1].type==="content"))for(;++l<p.length&&p[l][1].type!=="content";)p[l][1].type==="chunkText"&&(p[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,P6(h,n)),n=t[n],d=!0);else if(i[1]._container){for(l=n,a=void 0;l--;)if(c=h.get(l),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(a&&(h.get(a)[1].type="lineEndingBlank"),c[1].type="lineEnding",a=l);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;a&&(i[1].end={...h.get(a)[1].start},u=h.slice(a,n),u.unshift(i),h.splice(a,n-a+1,u))}}return zr(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!d}function P6(e,t){const n=e.get(t)[1],i=e.get(t)[2];let a=t-1;const l=[];let c=n._tokenizer;c||(c=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const u=c.events,p=[],d={};let h,g,b=-1,y=n,E=0,_=0;const x=[_];for(;y;){for(;e.get(++a)[1]!==y;);l.push(a),y._tokenizer||(h=i.sliceStream(y),y.next||h.push(null),g&&c.defineSkip(y.start),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(h),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=y,y=y.next}for(y=n;++b<u.length;)u[b][0]==="exit"&&u[b-1][0]==="enter"&&u[b][1].type===u[b-1][1].type&&u[b][1].start.line!==u[b][1].end.line&&(_=b+1,x.push(_),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(c.events=[],y?(y._tokenizer=void 0,y.previous=void 0):x.pop(),b=x.length;b--;){const S=u.slice(x[b],x[b+1]),C=l.pop();p.push([C,C+S.length-1]),e.splice(C,2,S)}for(p.reverse(),b=-1;++b<p.length;)d[E+p[b][0]]=E+p[b][1],E+=p[b][1]-p[b][0]-1;return d}const z6={resolve:U6,tokenize:F6},B6={partial:!0,tokenize:H6};function U6(e){return ST(e),e}function F6(e,t){let n;return i;function i(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(u)}function a(u){return u===null?l(u):et(u)?e.check(B6,c,l)(u):(e.consume(u),a)}function l(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function c(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function H6(e,t,n){const i=this;return a;function a(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),kt(e,l,"linePrefix")}function l(c){if(c===null||et(c))return n(c);const u=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(c):e.interrupt(i.parser.constructs.flow,n,t)(c)}}function xT(e,t,n,i,a,l,c,u,p){const d=p||Number.POSITIVE_INFINITY;let h=0;return g;function g(S){return S===60?(e.enter(i),e.enter(a),e.enter(l),e.consume(S),e.exit(l),b):S===null||S===32||S===41||gd(S)?n(S):(e.enter(i),e.enter(c),e.enter(u),e.enter("chunkString",{contentType:"string"}),_(S))}function b(S){return S===62?(e.enter(l),e.consume(S),e.exit(l),e.exit(a),e.exit(i),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===62?(e.exit("chunkString"),e.exit(u),b(S)):S===null||S===60||et(S)?n(S):(e.consume(S),S===92?E:y)}function E(S){return S===60||S===62||S===92?(e.consume(S),y):y(S)}function _(S){return!h&&(S===null||S===41||Xt(S))?(e.exit("chunkString"),e.exit(u),e.exit(c),e.exit(i),t(S)):h<d&&S===40?(e.consume(S),h++,_):S===41?(e.consume(S),h--,_):S===null||S===32||S===40||gd(S)?n(S):(e.consume(S),S===92?x:_)}function x(S){return S===40||S===41||S===92?(e.consume(S),_):_(S)}}function _T(e,t,n,i,a,l){const c=this;let u=0,p;return d;function d(y){return e.enter(i),e.enter(a),e.consume(y),e.exit(a),e.enter(l),h}function h(y){return u>999||y===null||y===91||y===93&&!p||y===94&&!u&&"_hiddenFootnoteSupport"in c.parser.constructs?n(y):y===93?(e.exit(l),e.enter(a),e.consume(y),e.exit(a),e.exit(i),t):et(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),g(y))}function g(y){return y===null||y===91||y===93||et(y)||u++>999?(e.exit("chunkString"),h(y)):(e.consume(y),p||(p=!St(y)),y===92?b:g)}function b(y){return y===91||y===92||y===93?(e.consume(y),u++,g):g(y)}}function wT(e,t,n,i,a,l){let c;return u;function u(b){return b===34||b===39||b===40?(e.enter(i),e.enter(a),e.consume(b),e.exit(a),c=b===40?41:b,p):n(b)}function p(b){return b===c?(e.enter(a),e.consume(b),e.exit(a),e.exit(i),t):(e.enter(l),d(b))}function d(b){return b===c?(e.exit(l),p(c)):b===null?n(b):et(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),kt(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===c||b===null||et(b)?(e.exit("chunkString"),d(b)):(e.consume(b),b===92?g:h)}function g(b){return b===c||b===92?(e.consume(b),h):h(b)}}function Sc(e,t){let n;return i;function i(a){return et(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,i):St(a)?kt(e,i,n?"linePrefix":"lineSuffix")(a):t(a)}}const j6={name:"definition",tokenize:$6},G6={partial:!0,tokenize:q6};function $6(e,t,n){const i=this;let a;return l;function l(y){return e.enter("definition"),c(y)}function c(y){return _T.call(i,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function u(y){return a=ei(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),p):n(y)}function p(y){return Xt(y)?Sc(e,d)(y):d(y)}function d(y){return xT(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function h(y){return e.attempt(G6,g,g)(y)}function g(y){return St(y)?kt(e,b,"whitespace")(y):b(y)}function b(y){return y===null||et(y)?(e.exit("definition"),i.parser.defined.push(a),t(y)):n(y)}}function q6(e,t,n){return i;function i(u){return Xt(u)?Sc(e,a)(u):n(u)}function a(u){return wT(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return St(u)?kt(e,c,"whitespace")(u):c(u)}function c(u){return u===null||et(u)?t(u):n(u)}}const V6={name:"hardBreakEscape",tokenize:Y6};function Y6(e,t,n){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),a}function a(l){return et(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const K6={name:"headingAtx",resolve:X6,tokenize:W6};function X6(e,t){let n=e.length-2,i=3,a,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&&(a={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"},zr(e,i,n-i+1,[["enter",a,t],["enter",l,t],["exit",l,t],["exit",a,t]])),e}function W6(e,t,n){let i=0;return a;function a(h){return e.enter("atxHeading"),l(h)}function l(h){return e.enter("atxHeadingSequence"),c(h)}function c(h){return h===35&&i++<6?(e.consume(h),c):h===null||Xt(h)?(e.exit("atxHeadingSequence"),u(h)):n(h)}function u(h){return h===35?(e.enter("atxHeadingSequence"),p(h)):h===null||et(h)?(e.exit("atxHeading"),t(h)):St(h)?kt(e,u,"whitespace")(h):(e.enter("atxHeadingText"),d(h))}function p(h){return h===35?(e.consume(h),p):(e.exit("atxHeadingSequence"),u(h))}function d(h){return h===null||h===35||Xt(h)?(e.exit("atxHeadingText"),u(h)):(e.consume(h),d)}}const Z6=["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"],Dx=["pre","script","style","textarea"],Q6={concrete:!0,name:"htmlFlow",resolveTo:t5,tokenize:n5},J6={partial:!0,tokenize:i5},e5={partial:!0,tokenize:r5};function t5(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 n5(e,t,n){const i=this;let a,l,c,u,p;return d;function d(z){return h(z)}function h(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),g}function g(z){return z===33?(e.consume(z),b):z===47?(e.consume(z),l=!0,_):z===63?(e.consume(z),a=3,i.interrupt?t:M):ar(z)?(e.consume(z),c=String.fromCharCode(z),x):n(z)}function b(z){return z===45?(e.consume(z),a=2,y):z===91?(e.consume(z),a=5,u=0,E):ar(z)?(e.consume(z),a=4,i.interrupt?t:M):n(z)}function y(z){return z===45?(e.consume(z),i.interrupt?t:M):n(z)}function E(z){const le="CDATA[";return z===le.charCodeAt(u++)?(e.consume(z),u===le.length?i.interrupt?t:$:E):n(z)}function _(z){return ar(z)?(e.consume(z),c=String.fromCharCode(z),x):n(z)}function x(z){if(z===null||z===47||z===62||Xt(z)){const le=z===47,ce=c.toLowerCase();return!le&&!l&&Dx.includes(ce)?(a=1,i.interrupt?t(z):$(z)):Z6.includes(c.toLowerCase())?(a=6,le?(e.consume(z),S):i.interrupt?t(z):$(z)):(a=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(z):l?C(z):k(z))}return z===45||Qn(z)?(e.consume(z),c+=String.fromCharCode(z),x):n(z)}function S(z){return z===62?(e.consume(z),i.interrupt?t:$):n(z)}function C(z){return St(z)?(e.consume(z),C):U(z)}function k(z){return z===47?(e.consume(z),U):z===58||z===95||ar(z)?(e.consume(z),O):St(z)?(e.consume(z),k):U(z)}function O(z){return z===45||z===46||z===58||z===95||Qn(z)?(e.consume(z),O):N(z)}function N(z){return z===61?(e.consume(z),R):St(z)?(e.consume(z),N):k(z)}function R(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),p=z,P):St(z)?(e.consume(z),R):I(z)}function P(z){return z===p?(e.consume(z),p=null,G):z===null||et(z)?n(z):(e.consume(z),P)}function I(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||Xt(z)?N(z):(e.consume(z),I)}function G(z){return z===47||z===62||St(z)?k(z):n(z)}function U(z){return z===62?(e.consume(z),X):n(z)}function X(z){return z===null||et(z)?$(z):St(z)?(e.consume(z),X):n(z)}function $(z){return z===45&&a===2?(e.consume(z),B):z===60&&a===1?(e.consume(z),q):z===62&&a===4?(e.consume(z),D):z===63&&a===3?(e.consume(z),M):z===93&&a===5?(e.consume(z),ee):et(z)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(J6,Z,W)(z)):z===null||et(z)?(e.exit("htmlFlowData"),W(z)):(e.consume(z),$)}function W(z){return e.check(e5,V,Z)(z)}function V(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),H}function H(z){return z===null||et(z)?W(z):(e.enter("htmlFlowData"),$(z))}function B(z){return z===45?(e.consume(z),M):$(z)}function q(z){return z===47?(e.consume(z),c="",Q):$(z)}function Q(z){if(z===62){const le=c.toLowerCase();return Dx.includes(le)?(e.consume(z),D):$(z)}return ar(z)&&c.length<8?(e.consume(z),c+=String.fromCharCode(z),Q):$(z)}function ee(z){return z===93?(e.consume(z),M):$(z)}function M(z){return z===62?(e.consume(z),D):z===45&&a===2?(e.consume(z),M):$(z)}function D(z){return z===null||et(z)?(e.exit("htmlFlowData"),Z(z)):(e.consume(z),D)}function Z(z){return e.exit("htmlFlow"),t(z)}}function r5(e,t,n){const i=this;return a;function a(c){return et(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):n(c)}function l(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}function i5(e,t,n){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Gc,t,n)}}const o5={name:"htmlText",tokenize:a5};function a5(e,t,n){const i=this;let a,l,c;return u;function u(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),p}function p(M){return M===33?(e.consume(M),d):M===47?(e.consume(M),N):M===63?(e.consume(M),k):ar(M)?(e.consume(M),I):n(M)}function d(M){return M===45?(e.consume(M),h):M===91?(e.consume(M),l=0,E):ar(M)?(e.consume(M),C):n(M)}function h(M){return M===45?(e.consume(M),y):n(M)}function g(M){return M===null?n(M):M===45?(e.consume(M),b):et(M)?(c=g,q(M)):(e.consume(M),g)}function b(M){return M===45?(e.consume(M),y):g(M)}function y(M){return M===62?B(M):M===45?b(M):g(M)}function E(M){const D="CDATA[";return M===D.charCodeAt(l++)?(e.consume(M),l===D.length?_:E):n(M)}function _(M){return M===null?n(M):M===93?(e.consume(M),x):et(M)?(c=_,q(M)):(e.consume(M),_)}function x(M){return M===93?(e.consume(M),S):_(M)}function S(M){return M===62?B(M):M===93?(e.consume(M),S):_(M)}function C(M){return M===null||M===62?B(M):et(M)?(c=C,q(M)):(e.consume(M),C)}function k(M){return M===null?n(M):M===63?(e.consume(M),O):et(M)?(c=k,q(M)):(e.consume(M),k)}function O(M){return M===62?B(M):k(M)}function N(M){return ar(M)?(e.consume(M),R):n(M)}function R(M){return M===45||Qn(M)?(e.consume(M),R):P(M)}function P(M){return et(M)?(c=P,q(M)):St(M)?(e.consume(M),P):B(M)}function I(M){return M===45||Qn(M)?(e.consume(M),I):M===47||M===62||Xt(M)?G(M):n(M)}function G(M){return M===47?(e.consume(M),B):M===58||M===95||ar(M)?(e.consume(M),U):et(M)?(c=G,q(M)):St(M)?(e.consume(M),G):B(M)}function U(M){return M===45||M===46||M===58||M===95||Qn(M)?(e.consume(M),U):X(M)}function X(M){return M===61?(e.consume(M),$):et(M)?(c=X,q(M)):St(M)?(e.consume(M),X):G(M)}function $(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),a=M,W):et(M)?(c=$,q(M)):St(M)?(e.consume(M),$):(e.consume(M),V)}function W(M){return M===a?(e.consume(M),a=void 0,H):M===null?n(M):et(M)?(c=W,q(M)):(e.consume(M),W)}function V(M){return M===null||M===34||M===39||M===60||M===61||M===96?n(M):M===47||M===62||Xt(M)?G(M):(e.consume(M),V)}function H(M){return M===47||M===62||Xt(M)?G(M):n(M)}function B(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),t):n(M)}function q(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),Q}function Q(M){return St(M)?kt(e,ee,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):ee(M)}function ee(M){return e.enter("htmlTextData"),c(M)}}const Db={name:"labelEnd",resolveAll:u5,resolveTo:f5,tokenize:d5},s5={tokenize:p5},l5={tokenize:h5},c5={tokenize:g5};function u5(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 a=i.type==="labelImage"?4:2;i.type="data",t+=a}}return e.length!==n.length&&zr(e,0,e.length,n),e}function f5(e,t){let n=e.length,i=0,a,l,c,u;for(;n--;)if(a=e[n][1],l){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(c){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(l=n,a.type!=="labelLink")){i=2;break}}else a.type==="labelEnd"&&(c=n);const p={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[l][1].start},end:{...e[c][1].end}},h={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[c-2][1].start}};return u=[["enter",p,t],["enter",d,t]],u=Kr(u,e.slice(l+1,l+i+3)),u=Kr(u,[["enter",h,t]]),u=Kr(u,qd(t.parser.constructs.insideSpan.null,e.slice(l+i+4,c-3),t)),u=Kr(u,[["exit",h,t],e[c-2],e[c-1],["exit",d,t]]),u=Kr(u,e.slice(c+1)),u=Kr(u,[["exit",p,t]]),zr(e,l,e.length,u),e}function d5(e,t,n){const i=this;let a=i.events.length,l,c;for(;a--;)if((i.events[a][1].type==="labelImage"||i.events[a][1].type==="labelLink")&&!i.events[a][1]._balanced){l=i.events[a][1];break}return u;function u(b){return l?l._inactive?g(b):(c=i.parser.defined.includes(ei(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),p):n(b)}function p(b){return b===40?e.attempt(s5,h,c?h:g)(b):b===91?e.attempt(l5,h,c?d:g)(b):c?h(b):g(b)}function d(b){return e.attempt(c5,h,g)(b)}function h(b){return t(b)}function g(b){return l._balanced=!0,n(b)}}function p5(e,t,n){return i;function i(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),a}function a(g){return Xt(g)?Sc(e,l)(g):l(g)}function l(g){return g===41?h(g):xT(e,c,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return Xt(g)?Sc(e,p)(g):h(g)}function u(g){return n(g)}function p(g){return g===34||g===39||g===40?wT(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):h(g)}function d(g){return Xt(g)?Sc(e,h)(g):h(g)}function h(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):n(g)}}function h5(e,t,n){const i=this;return a;function a(u){return _T.call(i,e,l,c,"reference","referenceMarker","referenceString")(u)}function l(u){return i.parser.defined.includes(ei(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function c(u){return n(u)}}function g5(e,t,n){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),a}function a(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const m5={name:"labelStartImage",resolveAll:Db.resolveAll,tokenize:b5};function b5(e,t,n){const i=this;return a;function a(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),l}function l(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),c):n(u)}function c(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const y5={name:"labelStartLink",resolveAll:Db.resolveAll,tokenize:v5};function v5(e,t,n){const i=this;return a;function a(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),l}function l(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(c):t(c)}}const zg={name:"lineEnding",tokenize:E5};function E5(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),kt(e,t,"linePrefix")}}const Yf={name:"thematicBreak",tokenize:S5};function S5(e,t,n){let i=0,a;return l;function l(d){return e.enter("thematicBreak"),c(d)}function c(d){return a=d,u(d)}function u(d){return d===a?(e.enter("thematicBreakSequence"),p(d)):i>=3&&(d===null||et(d))?(e.exit("thematicBreak"),t(d)):n(d)}function p(d){return d===a?(e.consume(d),i++,p):(e.exit("thematicBreakSequence"),St(d)?kt(e,u,"whitespace")(d):u(d))}}const mr={continuation:{tokenize:R5},exit:C5,name:"list",tokenize:w5},x5={partial:!0,tokenize:k5},_5={partial:!0,tokenize:T5};function w5(e,t,n){const i=this,a=i.events[i.events.length-1];let l=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,c=0;return u;function u(y){const E=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:Rm(y)){if(i.containerState.type||(i.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(Yf,n,d)(y):d(y);if(!i.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(y)}return n(y)}function p(y){return Rm(y)&&++c<10?(e.consume(y),p):(!i.interrupt||c<2)&&(i.containerState.marker?y===i.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),d(y)):n(y)}function d(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||y,e.check(Gc,i.interrupt?n:h,e.attempt(x5,b,g))}function h(y){return i.containerState.initialBlankLine=!0,l++,b(y)}function g(y){return St(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),b):n(y)}function b(y){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function R5(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Gc,a,l);function a(u){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,kt(e,t,"listItemIndent",i.containerState.size+1)(u)}function l(u){return i.containerState.furtherBlankLines||!St(u)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(u)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(_5,t,c)(u))}function c(u){return i.containerState._closeFlow=!0,i.interrupt=void 0,kt(e,e.attempt(mr,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function T5(e,t,n){const i=this;return kt(e,a,"listItemIndent",i.containerState.size+1);function a(l){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(l):n(l)}}function C5(e){e.exit(this.containerState.type)}function k5(e,t,n){const i=this;return kt(e,a,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(l){const c=i.events[i.events.length-1];return!St(l)&&c&&c[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const Lx={name:"setextUnderline",resolveTo:A5,tokenize:O5};function A5(e,t){let n=e.length,i,a,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",l?(e.splice(a,0,["enter",c,t]),e.splice(l+1,0,["exit",e[i][1],t]),e[i][1].end={...e[l][1].end}):e[i][1]=c,e.push(["exit",c,t]),e}function O5(e,t,n){const i=this;let a;return l;function l(d){let h=i.events.length,g;for(;h--;)if(i.events[h][1].type!=="lineEnding"&&i.events[h][1].type!=="linePrefix"&&i.events[h][1].type!=="content"){g=i.events[h][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||g)?(e.enter("setextHeadingLine"),a=d,c(d)):n(d)}function c(d){return e.enter("setextHeadingLineSequence"),u(d)}function u(d){return d===a?(e.consume(d),u):(e.exit("setextHeadingLineSequence"),St(d)?kt(e,p,"lineSuffix")(d):p(d))}function p(d){return d===null||et(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const M5={tokenize:N5};function N5(e){const t=this,n=e.attempt(Gc,i,e.attempt(this.parser.constructs.flowInitial,a,kt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(z6,a)),"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 a(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const I5={resolveAll:TT()},D5=RT("string"),L5=RT("text");function RT(e){return{resolveAll:TT(e==="text"?P5:void 0),tokenize:t};function t(n){const i=this,a=this.parser.constructs[e],l=n.attempt(a,c,u);return c;function c(h){return d(h)?l(h):u(h)}function u(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),p}function p(h){return d(h)?(n.exit("data"),l(h)):(n.consume(h),p)}function d(h){if(h===null)return!0;const g=a[h];let b=-1;if(g)for(;++b<g.length;){const y=g[b];if(!y.previous||y.previous.call(i,i.previous))return!0}return!1}}}function TT(e){return t;function t(n,i){let a=-1,l;for(;++a<=n.length;)l===void 0?n[a]&&n[a][1].type==="data"&&(l=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==l+2&&(n[l][1].end=n[a-1][1].end,n.splice(l+2,a-l-2),a=l+2),l=void 0);return e?e(n,i):n}}function P5(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],a=t.sliceStream(i);let l=a.length,c=-1,u=0,p;for(;l--;){const d=a[l];if(typeof d=="string"){for(c=d.length;d.charCodeAt(c-1)===32;)u++,c--;if(c)break;c=-1}else if(d===-2)p=!0,u++;else if(d!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const d={type:n===e.length||p||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?c:i.start._bufferIndex+c,_index:i.start._index+l,line:i.end.line,column:i.end.column-u,offset:i.end.offset-u},end:{...i.end}};i.end={...d.start},i.start.offset===i.end.offset?Object.assign(i,d):(e.splice(n,0,["enter",d,t],["exit",d,t]),n+=2)}n++}return e}const z5={42:mr,43:mr,45:mr,48:mr,49:mr,50:mr,51:mr,52:mr,53:mr,54:mr,55:mr,56:mr,57:mr,62:yT},B5={91:j6},U5={[-2]:Pg,[-1]:Pg,32:Pg},F5={35:K6,42:Yf,45:[Lx,Yf],60:Q6,61:Lx,95:Yf,96:Ix,126:Ix},H5={38:ET,92:vT},j5={[-5]:zg,[-4]:zg,[-3]:zg,33:m5,38:ET,42:Tm,60:[y6,o5],91:y5,92:[V6,vT],93:Db,95:Tm,96:M6},G5={null:[Tm,I5]},$5={null:[42,95]},q5={null:[]},V5=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:$5,contentInitial:B5,disable:q5,document:z5,flow:F5,flowInitial:U5,insideSpan:G5,string:H5,text:j5},Symbol.toStringTag,{value:"Module"}));function Y5(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 a={},l=[];let c=[],u=[];const p={attempt:P(N),check:P(R),consume:C,enter:k,exit:O,interrupt:P(R,{interrupt:!0})},d={code:null,containerState:{},defineSkip:_,events:[],now:E,parser:e,previous:null,sliceSerialize:b,sliceStream:y,write:g};let h=t.tokenize.call(d,p);return t.resolveAll&&l.push(t),d;function g(X){return c=Kr(c,X),x(),c[c.length-1]!==null?[]:(I(t,0),d.events=qd(l,d.events,d),d.events)}function b(X,$){return X5(y(X),$)}function y(X){return K5(c,X)}function E(){const{_bufferIndex:X,_index:$,line:W,column:V,offset:H}=i;return{_bufferIndex:X,_index:$,line:W,column:V,offset:H}}function _(X){a[X.line]=X.column,U()}function x(){let X;for(;i._index<c.length;){const $=c[i._index];if(typeof $=="string")for(X=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===X&&i._bufferIndex<$.length;)S($.charCodeAt(i._bufferIndex));else S($)}}function S(X){h=h(X)}function C(X){et(X)?(i.line++,i.column=1,i.offset+=X===-3?2:1,U()):X!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),d.previous=X}function k(X,$){const W=$||{};return W.type=X,W.start=E(),d.events.push(["enter",W,d]),u.push(W),W}function O(X){const $=u.pop();return $.end=E(),d.events.push(["exit",$,d]),$}function N(X,$){I(X,$.from)}function R(X,$){$.restore()}function P(X,$){return W;function W(V,H,B){let q,Q,ee,M;return Array.isArray(V)?Z(V):"tokenize"in V?Z([V]):D(V);function D(ae){return be;function be(Ee){const ye=Ee!==null&&ae[Ee],De=Ee!==null&&ae.null,qe=[...Array.isArray(ye)?ye:ye?[ye]:[],...Array.isArray(De)?De:De?[De]:[]];return Z(qe)(Ee)}}function Z(ae){return q=ae,Q=0,ae.length===0?B:z(ae[Q])}function z(ae){return be;function be(Ee){return M=G(),ee=ae,ae.partial||(d.currentConstruct=ae),ae.name&&d.parser.constructs.disable.null.includes(ae.name)?ce():ae.tokenize.call($?Object.assign(Object.create(d),$):d,p,le,ce)(Ee)}}function le(ae){return X(ee,M),H}function ce(ae){return M.restore(),++Q<q.length?z(q[Q]):B}}}function I(X,$){X.resolveAll&&!l.includes(X)&&l.push(X),X.resolve&&zr(d.events,$,d.events.length-$,X.resolve(d.events.slice($),d)),X.resolveTo&&(d.events=X.resolveTo(d.events,d))}function G(){const X=E(),$=d.previous,W=d.currentConstruct,V=d.events.length,H=Array.from(u);return{from:V,restore:B};function B(){i=X,d.previous=$,d.currentConstruct=W,d.events.length=V,u=H,U()}}function U(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function K5(e,t){const n=t.start._index,i=t.start._bufferIndex,a=t.end._index,l=t.end._bufferIndex;let c;if(n===a)c=[e[n].slice(i,l)];else{if(c=e.slice(n,a),i>-1){const u=c[0];typeof u=="string"?c[0]=u.slice(i):c.shift()}l>0&&c.push(e[a].slice(0,l))}return c}function X5(e,t){let n=-1;const i=[];let a;for(;++n<e.length;){const l=e[n];let c;if(typeof l=="string")c=l;else switch(l){case-5:{c="\r";break}case-4:{c=`
28
+ `;break}case-3:{c=`\r
29
+ `;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&a)continue;c=" ";break}default:c=String.fromCharCode(l)}a=l===-2,i.push(c)}return i.join("")}function W5(e){const i={constructs:mT([V5,...(e||{}).extensions||[]]),content:a(f6),defined:[],document:a(p6),flow:a(M5),lazy:{},string:a(D5),text:a(L5)};return i;function a(l){return c;function c(u){return Y5(i,l,u)}}}function Z5(e){for(;!ST(e););return e}const Px=/[\0\t\n\r]/g;function Q5(){let e=1,t="",n=!0,i;return a;function a(l,c,u){const p=[];let d,h,g,b,y;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(c||void 0).decode(l)),g=0,t="",n&&(l.charCodeAt(0)===65279&&g++,n=void 0);g<l.length;){if(Px.lastIndex=g,d=Px.exec(l),b=d&&d.index!==void 0?d.index:l.length,y=l.charCodeAt(b),!d){t=l.slice(g);break}if(y===10&&g===b&&i)p.push(-3),i=void 0;else switch(i&&(p.push(-5),i=void 0),g<b&&(p.push(l.slice(g,b)),e+=b-g),y){case 0:{p.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,p.push(-2);e++<h;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:i=!0,e=1}g=b+1}return u&&(i&&p.push(-5),t&&p.push(t),p.push(null)),p}}const J5=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function eH(e){return e.replace(J5,tH)}function tH(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),l=a===120||a===88;return bT(n.slice(l?2:1),l?16:10)}return Ib(n)||e}const CT={}.hasOwnProperty;function nH(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),rH(n)(Z5(W5(n).document().write(Q5()(e,t,!0))))}function rH(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(ke),autolinkProtocol:G,autolinkEmail:G,atxHeading:l(at),blockQuote:l(De),characterEscape:G,characterReference:G,codeFenced:l(qe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(qe,c),codeText:l(Te,c),codeTextData:G,data:G,codeFlowValue:G,definition:l($e),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(Xe),hardBreakEscape:l(Se),hardBreakTrailing:l(Se),htmlFlow:l(Ne,c),htmlFlowData:G,htmlText:l(Ne,c),htmlTextData:G,image:l(ze),label:c,link:l(ke),listItem:l(me),listItemValue:b,listOrdered:l(Fe,g),listUnordered:l(Fe),paragraph:l(Ae),reference:z,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(at),strong:l(ge),thematicBreak:l(Ce)},exit:{atxHeading:p(),atxHeadingSequence:N,autolink:p(),autolinkEmail:ye,autolinkProtocol:Ee,blockQuote:p(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:ae,characterReference:be,codeFenced:p(x),codeFencedFence:_,codeFencedFenceInfo:y,codeFencedFenceMeta:E,codeFlowValue:U,codeIndented:p(S),codeText:p(H),codeTextData:U,data:U,definition:p(),definitionDestinationString:O,definitionLabelString:C,definitionTitleString:k,emphasis:p(),hardBreakEscape:p($),hardBreakTrailing:p($),htmlFlow:p(W),htmlFlowData:U,htmlText:p(V),htmlTextData:U,image:p(q),label:ee,labelText:Q,lineEnding:X,link:p(B),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:le,resourceDestinationString:M,resourceTitleString:D,resource:Z,setextHeading:p(I),setextHeadingLineSequence:P,setextHeadingText:R,strong:p(),thematicBreak:p()}};kT(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(ne){let ue={type:"root",children:[]};const Ie={stack:[ue],tokenStack:[],config:t,enter:u,exit:d,buffer:c,resume:h,data:n},Ve=[];let it=-1;for(;++it<ne.length;)if(ne[it][1].type==="listOrdered"||ne[it][1].type==="listUnordered")if(ne[it][0]==="enter")Ve.push(it);else{const He=Ve.pop();it=a(ne,He,it)}for(it=-1;++it<ne.length;){const He=t[ne[it][0]];CT.call(He,ne[it][1].type)&&He[ne[it][1].type].call(Object.assign({sliceSerialize:ne[it][2].sliceSerialize},Ie),ne[it][1])}if(Ie.tokenStack.length>0){const He=Ie.tokenStack[Ie.tokenStack.length-1];(He[1]||zx).call(Ie,void 0,He[0])}for(ue.position={start:Do(ne.length>0?ne[0][1].start:{line:1,column:1,offset:0}),end:Do(ne.length>0?ne[ne.length-2][1].end:{line:1,column:1,offset:0})},it=-1;++it<t.transforms.length;)ue=t.transforms[it](ue)||ue;return ue}function a(ne,ue,Ie){let Ve=ue-1,it=-1,He=!1,We,ut,At,rn;for(;++Ve<=Ie;){const xt=ne[Ve];switch(xt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{xt[0]==="enter"?it++:it--,rn=void 0;break}case"lineEndingBlank":{xt[0]==="enter"&&(We&&!rn&&!it&&!At&&(At=Ve),rn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:rn=void 0}if(!it&&xt[0]==="enter"&&xt[1].type==="listItemPrefix"||it===-1&&xt[0]==="exit"&&(xt[1].type==="listUnordered"||xt[1].type==="listOrdered")){if(We){let On=Ve;for(ut=void 0;On--;){const st=ne[On];if(st[1].type==="lineEnding"||st[1].type==="lineEndingBlank"){if(st[0]==="exit")continue;ut&&(ne[ut][1].type="lineEndingBlank",He=!0),st[1].type="lineEnding",ut=On}else if(!(st[1].type==="linePrefix"||st[1].type==="blockQuotePrefix"||st[1].type==="blockQuotePrefixWhitespace"||st[1].type==="blockQuoteMarker"||st[1].type==="listItemIndent"))break}At&&(!ut||At<ut)&&(We._spread=!0),We.end=Object.assign({},ut?ne[ut][1].start:xt[1].end),ne.splice(ut||Ve,0,["exit",We,xt[2]]),Ve++,Ie++}if(xt[1].type==="listItemPrefix"){const On={type:"listItem",_spread:!1,start:Object.assign({},xt[1].start),end:void 0};We=On,ne.splice(Ve,0,["enter",On,xt[2]]),Ve++,Ie++,At=void 0,rn=!0}}}return ne[ue][1]._spread=He,Ie}function l(ne,ue){return Ie;function Ie(Ve){u.call(this,ne(Ve),Ve),ue&&ue.call(this,Ve)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(ne,ue,Ie){this.stack[this.stack.length-1].children.push(ne),this.stack.push(ne),this.tokenStack.push([ue,Ie||void 0]),ne.position={start:Do(ue.start),end:void 0}}function p(ne){return ue;function ue(Ie){ne&&ne.call(this,Ie),d.call(this,Ie)}}function d(ne,ue){const Ie=this.stack.pop(),Ve=this.tokenStack.pop();if(Ve)Ve[0].type!==ne.type&&(ue?ue.call(this,ne,Ve[0]):(Ve[1]||zx).call(this,ne,Ve[0]));else throw new Error("Cannot close `"+ne.type+"` ("+Ec({start:ne.start,end:ne.end})+"): it’s not open");Ie.position.end=Do(ne.end)}function h(){return Nb(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function b(ne){if(this.data.expectingFirstListItemValue){const ue=this.stack[this.stack.length-2];ue.start=Number.parseInt(this.sliceSerialize(ne),10),this.data.expectingFirstListItemValue=void 0}}function y(){const ne=this.resume(),ue=this.stack[this.stack.length-1];ue.lang=ne}function E(){const ne=this.resume(),ue=this.stack[this.stack.length-1];ue.meta=ne}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const ne=this.resume(),ue=this.stack[this.stack.length-1];ue.value=ne.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const ne=this.resume(),ue=this.stack[this.stack.length-1];ue.value=ne.replace(/(\r?\n|\r)$/g,"")}function C(ne){const ue=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=ue,Ie.identifier=ei(this.sliceSerialize(ne)).toLowerCase()}function k(){const ne=this.resume(),ue=this.stack[this.stack.length-1];ue.title=ne}function O(){const ne=this.resume(),ue=this.stack[this.stack.length-1];ue.url=ne}function N(ne){const ue=this.stack[this.stack.length-1];if(!ue.depth){const Ie=this.sliceSerialize(ne).length;ue.depth=Ie}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function P(ne){const ue=this.stack[this.stack.length-1];ue.depth=this.sliceSerialize(ne).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function G(ne){const Ie=this.stack[this.stack.length-1].children;let Ve=Ie[Ie.length-1];(!Ve||Ve.type!=="text")&&(Ve=ve(),Ve.position={start:Do(ne.start),end:void 0},Ie.push(Ve)),this.stack.push(Ve)}function U(ne){const ue=this.stack.pop();ue.value+=this.sliceSerialize(ne),ue.position.end=Do(ne.end)}function X(ne){const ue=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ie=ue.children[ue.children.length-1];Ie.position.end=Do(ne.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ue.type)&&(G.call(this,ne),U.call(this,ne))}function $(){this.data.atHardBreak=!0}function W(){const ne=this.resume(),ue=this.stack[this.stack.length-1];ue.value=ne}function V(){const ne=this.resume(),ue=this.stack[this.stack.length-1];ue.value=ne}function H(){const ne=this.resume(),ue=this.stack[this.stack.length-1];ue.value=ne}function B(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=ue,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function q(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=ue,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function Q(ne){const ue=this.sliceSerialize(ne),Ie=this.stack[this.stack.length-2];Ie.label=eH(ue),Ie.identifier=ei(ue).toLowerCase()}function ee(){const ne=this.stack[this.stack.length-1],ue=this.resume(),Ie=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ie.type==="link"){const Ve=ne.children;Ie.children=Ve}else Ie.alt=ue}function M(){const ne=this.resume(),ue=this.stack[this.stack.length-1];ue.url=ne}function D(){const ne=this.resume(),ue=this.stack[this.stack.length-1];ue.title=ne}function Z(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function le(ne){const ue=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=ue,Ie.identifier=ei(this.sliceSerialize(ne)).toLowerCase(),this.data.referenceType="full"}function ce(ne){this.data.characterReferenceType=ne.type}function ae(ne){const ue=this.sliceSerialize(ne),Ie=this.data.characterReferenceType;let Ve;Ie?(Ve=bT(ue,Ie==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ve=Ib(ue);const it=this.stack[this.stack.length-1];it.value+=Ve}function be(ne){const ue=this.stack.pop();ue.position.end=Do(ne.end)}function Ee(ne){U.call(this,ne);const ue=this.stack[this.stack.length-1];ue.url=this.sliceSerialize(ne)}function ye(ne){U.call(this,ne);const ue=this.stack[this.stack.length-1];ue.url="mailto:"+this.sliceSerialize(ne)}function De(){return{type:"blockquote",children:[]}}function qe(){return{type:"code",lang:null,meta:null,value:""}}function Te(){return{type:"inlineCode",value:""}}function $e(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Xe(){return{type:"emphasis",children:[]}}function at(){return{type:"heading",depth:0,children:[]}}function Se(){return{type:"break"}}function Ne(){return{type:"html",value:""}}function ze(){return{type:"image",title:null,url:"",alt:null}}function ke(){return{type:"link",title:null,url:"",children:[]}}function Fe(ne){return{type:"list",ordered:ne.type==="listOrdered",start:null,spread:ne._spread,children:[]}}function me(ne){return{type:"listItem",spread:ne._spread,checked:null,children:[]}}function Ae(){return{type:"paragraph",children:[]}}function ge(){return{type:"strong",children:[]}}function ve(){return{type:"text",value:""}}function Ce(){return{type:"thematicBreak"}}}function Do(e){return{line:e.line,column:e.column,offset:e.offset}}function kT(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?kT(e,i):iH(e,i)}}function iH(e,t){let n;for(n in t)if(CT.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 zx(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ec({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ec({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ec({start:t.start,end:t.end})+") is still open")}function oH(e){const t=this;t.parser=n;function n(i){return nH(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function aH(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 sH(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
30
+ `}]}function lH(e,t){const n=t.value?t.value+`
31
+ `:"",i={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(i.className=["language-"+a[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 cH(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uH(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function fH(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=nl(i.toLowerCase()),l=e.footnoteOrder.indexOf(i);let c,u=e.footnoteCounts.get(i);u===void 0?(u=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=l+1,u+=1,e.footnoteCounts.set(i,u);const p={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,p);const d={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(t,d),e.applyData(t,d)}function dH(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 pH(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function AT(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 a=e.all(t),l=a[0];l&&l.type==="text"?l.value="["+l.value:a.unshift({type:"text",value:"["});const c=a[a.length-1];return c&&c.type==="text"?c.value+=i:a.push({type:"text",value:i}),a}function hH(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return AT(e,t);const a={src:nl(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(a.title=i.title);const l={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,l),e.applyData(t,l)}function gH(e,t){const n={src:nl(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 mH(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 bH(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return AT(e,t);const a={href:nl(i.url||"")};i.title!==null&&i.title!==void 0&&(a.title=i.title);const l={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function yH(e,t){const n={href:nl(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 vH(e,t,n){const i=e.all(t),a=n?EH(n):OT(t),l={},c=[];if(typeof t.checked=="boolean"){const h=i[0];let g;h&&h.type==="element"&&h.tagName==="p"?g=h:(g={type:"element",tagName:"p",properties:{},children:[]},i.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let u=-1;for(;++u<i.length;){const h=i[u];(a||u!==0||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
32
+ `}),h.type==="element"&&h.tagName==="p"&&!a?c.push(...h.children):c.push(h)}const p=i[i.length-1];p&&(a||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
33
+ `});const d={type:"element",tagName:"li",properties:l,children:c};return e.patch(t,d),e.applyData(t,d)}function EH(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=OT(n[i])}return t}function OT(e){const t=e.spread;return t??e.children.length>1}function SH(e,t){const n={},i=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<i.length;){const c=i[a];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.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 xH(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _H(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function wH(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function RH(e,t){const n=e.all(t),i=n.shift(),a=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],c),a.push(c)}if(n.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=kb(t.children[1]),p=cT(t.children[t.children.length-1]);u&&p&&(c.position={start:u,end:p}),a.push(c)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,l),e.applyData(t,l)}function TH(e,t,n){const i=n?n.children:void 0,l=(i?i.indexOf(t):1)===0?"th":"td",c=n&&n.type==="table"?n.align:void 0,u=c?c.length:t.children.length;let p=-1;const d=[];for(;++p<u;){const g=t.children[p],b={},y=c?c[p]:void 0;y&&(b.align=y);let E={type:"element",tagName:l,properties:b,children:[]};g&&(E.children=e.all(g),e.patch(g,E),E=e.applyData(g,E)),d.push(E)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,h),e.applyData(t,h)}function CH(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Bx=9,Ux=32;function kH(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),a=0;const l=[];for(;i;)l.push(Fx(t.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=n.exec(t);return l.push(Fx(t.slice(a),a>0,!1)),l.join("")}function Fx(e,t,n){let i=0,a=e.length;if(t){let l=e.codePointAt(i);for(;l===Bx||l===Ux;)i++,l=e.codePointAt(i)}if(n){let l=e.codePointAt(a-1);for(;l===Bx||l===Ux;)a--,l=e.codePointAt(a-1)}return a>i?e.slice(i,a):""}function AH(e,t){const n={type:"text",value:kH(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function OH(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const MH={blockquote:aH,break:sH,code:lH,delete:cH,emphasis:uH,footnoteReference:fH,heading:dH,html:pH,imageReference:hH,image:gH,inlineCode:mH,linkReference:bH,link:yH,listItem:vH,list:SH,paragraph:xH,root:_H,strong:wH,table:RH,tableCell:CH,tableRow:TH,text:AH,thematicBreak:OH,toml:kf,yaml:kf,definition:kf,footnoteDefinition:kf};function kf(){}const MT=-1,Vd=0,xc=1,md=2,Lb=3,Pb=4,zb=5,Bb=6,NT=7,IT=8,NH=typeof self=="object"?self:globalThis,Hx=(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 NH[e](t)},IH=(e,t)=>{const n=(a,l)=>(e.set(l,a),a),i=a=>{if(e.has(a))return e.get(a);const[l,c]=t[a];switch(l){case Vd:case MT:return n(c,a);case xc:{const u=n([],a);for(const p of c)u.push(i(p));return u}case md:{const u=n({},a);for(const[p,d]of c)u[i(p)]=i(d);return u}case Lb:return n(new Date(c),a);case Pb:{const{source:u,flags:p}=c;return n(new RegExp(u,p),a)}case zb:{const u=n(new Map,a);for(const[p,d]of c)u.set(i(p),i(d));return u}case Bb:{const u=n(new Set,a);for(const p of c)u.add(i(p));return u}case NT:{const{name:u,message:p}=c;return n(Hx(u,p),a)}case IT:return n(BigInt(c),a);case"BigInt":return n(Object(BigInt(c)),a);case"ArrayBuffer":return n(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:u}=new Uint8Array(c);return n(new DataView(u),c)}}return n(Hx(l,c),a)};return i},jx=e=>IH(new Map,e)(0),As="",{toString:DH}={},{keys:LH}=Object,pc=e=>{const t=typeof e;if(t!=="object"||!e)return[Vd,t];const n=DH.call(e).slice(8,-1);switch(n){case"Array":return[xc,As];case"Object":return[md,As];case"Date":return[Lb,As];case"RegExp":return[Pb,As];case"Map":return[zb,As];case"Set":return[Bb,As];case"DataView":return[xc,n]}return n.includes("Array")?[xc,n]:n.includes("Error")?[NT,n]:[md,n]},Af=([e,t])=>e===Vd&&(t==="function"||t==="symbol"),PH=(e,t,n,i)=>{const a=(c,u)=>{const p=i.push(c)-1;return n.set(u,p),p},l=c=>{if(n.has(c))return n.get(c);let[u,p]=pc(c);switch(u){case Vd:{let h=c;switch(p){case"bigint":u=IT,h=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);h=null;break;case"undefined":return a([MT],c)}return a([u,h],c)}case xc:{if(p){let b=c;return p==="DataView"?b=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(b=new Uint8Array(c)),a([p,[...b]],c)}const h=[],g=a([u,h],c);for(const b of c)h.push(l(b));return g}case md:{if(p)switch(p){case"BigInt":return a([p,c.toString()],c);case"Boolean":case"Number":case"String":return a([p,c.valueOf()],c)}if(t&&"toJSON"in c)return l(c.toJSON());const h=[],g=a([u,h],c);for(const b of LH(c))(e||!Af(pc(c[b])))&&h.push([l(b),l(c[b])]);return g}case Lb:return a([u,c.toISOString()],c);case Pb:{const{source:h,flags:g}=c;return a([u,{source:h,flags:g}],c)}case zb:{const h=[],g=a([u,h],c);for(const[b,y]of c)(e||!(Af(pc(b))||Af(pc(y))))&&h.push([l(b),l(y)]);return g}case Bb:{const h=[],g=a([u,h],c);for(const b of c)(e||!Af(pc(b)))&&h.push(l(b));return g}}const{message:d}=c;return a([u,{name:p,message:d}],c)};return l},Gx=(e,{json:t,lossy:n}={})=>{const i=[];return PH(!(t||n),!!t,new Map,i)(e),i},bd=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?jx(Gx(e,t)):structuredClone(e):(e,t)=>jx(Gx(e,t));function zH(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 BH(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function UH(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||zH,i=e.options.footnoteBackLabel||BH,a=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let p=-1;for(;++p<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[p]);if(!d)continue;const h=e.all(d),g=String(d.identifier).toUpperCase(),b=nl(g.toLowerCase());let y=0;const E=[],_=e.footnoteCounts.get(g);for(;_!==void 0&&++y<=_;){E.length>0&&E.push({type:"text",value:" "});let C=typeof n=="string"?n:n(p,y);typeof C=="string"&&(C={type:"text",value:C}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+b+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(p,y),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const x=h[h.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const C=x.children[x.children.length-1];C&&C.type==="text"?C.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...E)}else h.push(...E);const S={type:"element",tagName:"li",properties:{id:t+"fn-"+b},children:e.wrap(h,!0)};e.patch(d,S),u.push(S)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...bd(c),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
34
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
35
+ `}]}}const $c=(function(e){if(e==null)return GH;if(typeof e=="function")return Yd(e);if(typeof e=="object")return Array.isArray(e)?FH(e):HH(e);if(typeof e=="string")return jH(e);throw new Error("Expected function, string, or object as test")});function FH(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=$c(e[n]);return Yd(i);function i(...a){let l=-1;for(;++l<t.length;)if(t[l].apply(this,a))return!0;return!1}}function HH(e){const t=e;return Yd(n);function n(i){const a=i;let l;for(l in e)if(a[l]!==t[l])return!1;return!0}}function jH(e){return Yd(t);function t(n){return n&&n.type===e}}function Yd(e){return t;function t(n,i,a){return!!($H(n)&&e.call(this,n,typeof i=="number"?i:void 0,a||void 0))}}function GH(){return!0}function $H(e){return e!==null&&typeof e=="object"&&"type"in e}const DT=[],qH=!0,Cm=!1,VH="skip";function LT(e,t,n,i){let a;typeof t=="function"&&typeof n!="function"?(i=n,n=t):a=t;const l=$c(a),c=i?-1:1;u(e,void 0,[])();function u(p,d,h){const g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){const y=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(p.type+(y?"<"+y+">":""))+")"})}return b;function b(){let y=DT,E,_,x;if((!t||l(p,d,h[h.length-1]||void 0))&&(y=YH(n(p,h)),y[0]===Cm))return y;if("children"in p&&p.children){const S=p;if(S.children&&y[0]!==VH)for(_=(i?S.children.length:-1)+c,x=h.concat(S);_>-1&&_<S.children.length;){const C=S.children[_];if(E=u(C,_,x)(),E[0]===Cm)return E;_=typeof E[1]=="number"?E[1]:_+c}}return y}}}function YH(e){return Array.isArray(e)?e:typeof e=="number"?[qH,e]:e==null?DT:[e]}function Kd(e,t,n,i){let a,l,c;typeof t=="function"&&typeof n!="function"?(l=void 0,c=t,a=n):(l=t,c=n,a=i),LT(e,l,u,a);function u(p,d){const h=d[d.length-1],g=h?h.children.indexOf(p):void 0;return c(p,g,h)}}const km={}.hasOwnProperty,KH={};function XH(e,t){const n=t||KH,i=new Map,a=new Map,l=new Map,c={...MH,...n.handlers},u={all:d,applyData:ZH,definitionById:i,footnoteById:a,footnoteCounts:l,footnoteOrder:[],handlers:c,one:p,options:n,patch:WH,wrap:JH};return Kd(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const g=h.type==="definition"?i:a,b=String(h.identifier).toUpperCase();g.has(b)||g.set(b,h)}}),u;function p(h,g){const b=h.type,y=u.handlers[b];if(km.call(u.handlers,b)&&y)return y(u,h,g);if(u.options.passThrough&&u.options.passThrough.includes(b)){if("children"in h){const{children:_,...x}=h,S=bd(x);return S.children=u.all(h),S}return bd(h)}return(u.options.unknownHandler||QH)(u,h,g)}function d(h){const g=[];if("children"in h){const b=h.children;let y=-1;for(;++y<b.length;){const E=u.one(b[y],h);if(E){if(y&&b[y-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=$x(E.value)),!Array.isArray(E)&&E.type==="element")){const _=E.children[0];_&&_.type==="text"&&(_.value=$x(_.value))}Array.isArray(E)?g.push(...E):g.push(E)}}}return g}}function WH(e,t){e.position&&(t.position=zF(e))}function ZH(e,t){let n=t;if(e&&e.data){const i=e.data.hName,a=e.data.hChildren,l=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const c="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:c}}n.type==="element"&&l&&Object.assign(n.properties,bd(l)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function QH(e,t){const n=t.data||{},i="value"in t&&!(km.call(n,"hProperties")||km.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 JH(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
36
+ `});++i<e.length;)i&&n.push({type:"text",value:`
37
+ `}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
38
+ `}),n}function $x(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function qx(e,t){const n=XH(e,t),i=n.one(e,void 0),a=UH(n),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return a&&l.children.push({type:"text",value:`
39
+ `},a),l}function e9(e,t){return e&&"run"in e?async function(n,i){const a=qx(n,{file:i,...t});await e.run(a,i)}:function(n,i){return qx(n,{file:i,...e||t})}}function Vx(e){if(e)throw e}var Bg,Yx;function t9(){if(Yx)return Bg;Yx=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},l=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var h=e.call(d,"constructor"),g=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!h&&!g)return!1;var b;for(b in d);return typeof b>"u"||e.call(d,b)},c=function(d,h){n&&h.name==="__proto__"?n(d,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):d[h.name]=h.newValue},u=function(d,h){if(h==="__proto__")if(e.call(d,h)){if(i)return i(d,h).value}else return;return d[h]};return Bg=function p(){var d,h,g,b,y,E,_=arguments[0],x=1,S=arguments.length,C=!1;for(typeof _=="boolean"&&(C=_,_=arguments[1]||{},x=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});x<S;++x)if(d=arguments[x],d!=null)for(h in d)g=u(_,h),b=u(d,h),_!==b&&(C&&b&&(l(b)||(y=a(b)))?(y?(y=!1,E=g&&a(g)?g:[]):E=g&&l(g)?g:{},c(_,{name:h,newValue:p(C,E,b)})):typeof b<"u"&&c(_,{name:h,newValue:b}));return _},Bg}var n9=t9();const Ug=Sd(n9);function Am(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 r9(){const e=[],t={run:n,use:i};return t;function n(...a){let l=-1;const c=a.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);u(null,...a);function u(p,...d){const h=e[++l];let g=-1;if(p){c(p);return}for(;++g<a.length;)(d[g]===null||d[g]===void 0)&&(d[g]=a[g]);a=d,h?i9(h,u)(...d):c(null,...d)}}function i(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function i9(e,t){let n;return i;function i(...c){const u=e.length>c.length;let p;u&&c.push(a);try{p=e.apply(this,c)}catch(d){const h=d;if(u&&n)throw h;return a(h)}u||(p&&p.then&&typeof p.then=="function"?p.then(l,a):p instanceof Error?a(p):l(p))}function a(c,...u){n||(n=!0,t(c,...u))}function l(c){a(null,c)}}const ci={basename:o9,dirname:a9,extname:s9,join:l9,sep:"/"};function o9(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');qc(e);let n=0,i=-1,a=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(l){n=a+1;break}}else i<0&&(l=!0,i=a+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let c=-1,u=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(l){n=a+1;break}}else c<0&&(l=!0,c=a+1),u>-1&&(e.codePointAt(a)===t.codePointAt(u--)?u<0&&(i=a):(u=-1,i=c));return n===i?i=c:i<0&&(i=e.length),e.slice(n,i)}function a9(e){if(qc(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 s9(e){qc(e);let t=e.length,n=-1,i=0,a=-1,l=0,c;for(;t--;){const u=e.codePointAt(t);if(u===47){if(c){i=t+1;break}continue}n<0&&(c=!0,n=t+1),u===46?a<0?a=t:l!==1&&(l=1):a>-1&&(l=-1)}return a<0||n<0||l===0||l===1&&a===n-1&&a===i+1?"":e.slice(a,n)}function l9(...e){let t=-1,n;for(;++t<e.length;)qc(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":c9(n)}function c9(e){qc(e);const t=e.codePointAt(0)===47;let n=u9(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function u9(e,t){let n="",i=0,a=-1,l=0,c=-1,u,p;for(;++c<=e.length;){if(c<e.length)u=e.codePointAt(c);else{if(u===47)break;u=47}if(u===47){if(!(a===c-1||l===1))if(a!==c-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(p=n.lastIndexOf("/"),p!==n.length-1){p<0?(n="",i=0):(n=n.slice(0,p),i=n.length-1-n.lastIndexOf("/")),a=c,l=0;continue}}else if(n.length>0){n="",i=0,a=c,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(a+1,c):n=e.slice(a+1,c),i=c-a-1;a=c,l=0}else u===46&&l>-1?l++:l=-1}return n}function qc(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const f9={cwd:d9};function d9(){return"/"}function Om(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function p9(e){if(typeof e=="string")e=new URL(e);else if(!Om(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 h9(e)}function h9(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 a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const Fg=["history","path","basename","stem","extname","dirname"];class PT{constructor(t){let n;t?Om(t)?n={path:t}:typeof t=="string"||g9(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":f9.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Fg.length;){const l=Fg[i];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let a;for(a in n)Fg.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?ci.basename(this.path):void 0}set basename(t){jg(t,"basename"),Hg(t,"basename"),this.path=ci.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ci.dirname(this.path):void 0}set dirname(t){Kx(this.basename,"dirname"),this.path=ci.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ci.extname(this.path):void 0}set extname(t){if(Hg(t,"extname"),Kx(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=ci.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Om(t)&&(t=p9(t)),jg(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ci.basename(this.path,this.extname):void 0}set stem(t){jg(t,"stem"),Hg(t,"stem"),this.path=ci.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const a=this.message(t,n,i);throw a.fatal=!0,a}info(t,n,i){const a=this.message(t,n,i);return a.fatal=void 0,a}message(t,n,i){const a=new er(t,n,i);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Hg(e,t){if(e&&e.includes(ci.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ci.sep+"`")}function jg(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Kx(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function g9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const m9=(function(e){const i=this.constructor.prototype,a=i[e],l=function(){return a.apply(l,arguments)};return Object.setPrototypeOf(l,i),l}),b9={}.hasOwnProperty;class Ub extends m9{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=r9()}copy(){const t=new Ub;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Ug(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(qg("data",this.frozen),this.namespace[t]=n,this):b9.call(this.namespace,t)&&this.namespace[t]||void 0:t?(qg("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 a=n.call(t,...i);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Of(t),i=this.parser||this.Parser;return Gg("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),Gg("process",this.parser||this.Parser),$g("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(l,c){const u=Of(t),p=i.parse(u);i.run(p,u,function(h,g,b){if(h||!g||!b)return d(h);const y=g,E=i.stringify(y,b);E9(E)?b.value=E:b.result=E,d(h,b)});function d(h,g){h||!g?c(h):l?l(g):n(void 0,g)}}}processSync(t){let n=!1,i;return this.freeze(),Gg("processSync",this.parser||this.Parser),$g("processSync",this.compiler||this.Compiler),this.process(t,a),Wx("processSync","process",n),i;function a(l,c){n=!0,Vx(l),i=c}}run(t,n,i){Xx(t),this.freeze();const a=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?l(void 0,i):new Promise(l);function l(c,u){const p=Of(n);a.run(t,p,d);function d(h,g,b){const y=g||t;h?u(h):c?c(y):i(void 0,y,b)}}}runSync(t,n){let i=!1,a;return this.run(t,n,l),Wx("runSync","run",i),a;function l(c,u){Vx(c),a=u,i=!0}}stringify(t,n){this.freeze();const i=Of(n),a=this.compiler||this.Compiler;return $g("stringify",a),Xx(t),a(t,i)}use(t,...n){const i=this.attachers,a=this.namespace;if(qg("use",this.frozen),t!=null)if(typeof t=="function")p(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(d){if(typeof d=="function")p(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[h,...g]=d;p(h,g)}else c(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function c(d){if(!("plugins"in d)&&!("settings"in d))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");u(d.plugins),d.settings&&(a.settings=Ug(!0,a.settings,d.settings))}function u(d){let h=-1;if(d!=null)if(Array.isArray(d))for(;++h<d.length;){const g=d[h];l(g)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function p(d,h){let g=-1,b=-1;for(;++g<i.length;)if(i[g][0]===d){b=g;break}if(b===-1)i.push([d,...h]);else if(h.length>0){let[y,...E]=h;const _=i[b][1];Am(_)&&Am(y)&&(y=Ug(!0,_,y)),i[b]=[d,y,...E]}}}}const y9=new Ub().freeze();function Gg(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function $g(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function qg(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 Xx(e){if(!Am(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Wx(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Of(e){return v9(e)?e:new PT(e)}function v9(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function E9(e){return typeof e=="string"||S9(e)}function S9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const x9="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Zx=[],Qx={allowDangerousHtml:!0},_9=/^(https?|ircs?|mailto|xmpp)$/i,w9=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function qG(e){const t=R9(e),n=T9(e);return C9(t.runSync(t.parse(n),n),e)}function R9(e){const t=e.rehypePlugins||Zx,n=e.remarkPlugins||Zx,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Qx}:Qx;return y9().use(oH).use(n).use(e9,i).use(t)}function T9(e){const t=e.children||"",n=new PT;return typeof t=="string"&&(n.value=t),n}function C9(e,t){const n=t.allowedElements,i=t.allowElement,a=t.components,l=t.disallowedElements,c=t.skipHtml,u=t.unwrapDisallowed,p=t.urlTransform||k9;for(const h of w9)Object.hasOwn(t,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+x9+h.id,void 0);return Kd(e,d),jF(e,{Fragment:F.Fragment,components:a,ignoreInvalidStyle:!0,jsx:F.jsx,jsxs:F.jsxs,passKeys:!0,passNode:!0});function d(h,g,b){if(h.type==="raw"&&b&&typeof g=="number")return c?b.children.splice(g,1):b.children[g]={type:"text",value:h.value},g;if(h.type==="element"){let y;for(y in Lg)if(Object.hasOwn(Lg,y)&&Object.hasOwn(h.properties,y)){const E=h.properties[y],_=Lg[y];(_===null||_.includes(h.tagName))&&(h.properties[y]=p(String(E||""),y,h))}}if(h.type==="element"){let y=n?!n.includes(h.tagName):l?l.includes(h.tagName):!1;if(!y&&i&&typeof g=="number"&&(y=!i(h,g,b)),y&&b&&typeof g=="number")return u&&h.children?b.children.splice(g,1,...h.children):b.children.splice(g,1),g}}}function k9(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||i!==-1&&t>i||_9.test(e.slice(0,t))?e:""}function Jx(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,a=n.indexOf(t);for(;a!==-1;)i++,a=n.indexOf(t,a+t.length);return i}function A9(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function O9(e,t,n){const a=$c((n||{}).ignore||[]),l=M9(t);let c=-1;for(;++c<l.length;)LT(e,"text",u);function u(d,h){let g=-1,b;for(;++g<h.length;){const y=h[g],E=b?b.children:void 0;if(a(y,E?E.indexOf(y):void 0,b))return;b=y}if(b)return p(d,h)}function p(d,h){const g=h[h.length-1],b=l[c][0],y=l[c][1];let E=0;const x=g.children.indexOf(d);let S=!1,C=[];b.lastIndex=0;let k=b.exec(d.value);for(;k;){const O=k.index,N={index:k.index,input:k.input,stack:[...h,d]};let R=y(...k,N);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?b.lastIndex=O+1:(E!==O&&C.push({type:"text",value:d.value.slice(E,O)}),Array.isArray(R)?C.push(...R):R&&C.push(R),E=O+k[0].length,S=!0),!b.global)break;k=b.exec(d.value)}return S?(E<d.value.length&&C.push({type:"text",value:d.value.slice(E)}),g.children.splice(x,1,...C)):C=[d],x+C.length}}function M9(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 a=n[i];t.push([N9(a[0]),I9(a[1])])}return t}function N9(e){return typeof e=="string"?new RegExp(A9(e),"g"):e}function I9(e){return typeof e=="function"?e:function(){return e}}const Vg="phrasing",Yg=["autolink","link","image","label"];function D9(){return{transforms:[H9],enter:{literalAutolink:P9,literalAutolinkEmail:Kg,literalAutolinkHttp:Kg,literalAutolinkWww:Kg},exit:{literalAutolink:F9,literalAutolinkEmail:U9,literalAutolinkHttp:z9,literalAutolinkWww:B9}}}function L9(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Vg,notInConstruct:Yg},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Vg,notInConstruct:Yg},{character:":",before:"[ps]",after:"\\/",inConstruct:Vg,notInConstruct:Yg}]}}function P9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Kg(e){this.config.enter.autolinkProtocol.call(this,e)}function z9(e){this.config.exit.autolinkProtocol.call(this,e)}function B9(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 U9(e){this.config.exit.autolinkEmail.call(this,e)}function F9(e){this.exit(e)}function H9(e){O9(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,j9],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,G9]],{ignore:["link","linkReference"]})}function j9(e,t,n,i,a){let l="";if(!zT(a)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!$9(n)))return!1;const c=q9(n+i);if(!c[0])return!1;const u={type:"link",title:null,url:l+t+c[0],children:[{type:"text",value:t+c[0]}]};return c[1]?[u,{type:"text",value:c[1]}]:u}function G9(e,t,n,i){return!zT(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function $9(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 q9(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 a=Jx(e,"(");let l=Jx(e,")");for(;i!==-1&&a>l;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),l++;return[e,n]}function zT(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Pa(n)||$d(n))&&(!t||n!==47)}BT.peek=ej;function V9(){this.buffer()}function Y9(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function K9(){this.buffer()}function X9(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function W9(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ei(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Z9(e){this.exit(e)}function Q9(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ei(this.sliceSerialize(e)).toLowerCase(),n.label=t}function J9(e){this.exit(e)}function ej(){return"["}function BT(e,t,n,i){const a=n.createTracker(i);let l=a.move("[^");const c=n.enter("footnoteReference"),u=n.enter("reference");return l+=a.move(n.safe(n.associationId(e),{after:"]",before:l})),u(),c(),l+=a.move("]"),l}function tj(){return{enter:{gfmFootnoteCallString:V9,gfmFootnoteCall:Y9,gfmFootnoteDefinitionLabelString:K9,gfmFootnoteDefinition:X9},exit:{gfmFootnoteCallString:W9,gfmFootnoteCall:Z9,gfmFootnoteDefinitionLabelString:Q9,gfmFootnoteDefinition:J9}}}function nj(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:BT},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,a,l,c){const u=l.createTracker(c);let p=u.move("[^");const d=l.enter("footnoteDefinition"),h=l.enter("label");return p+=u.move(l.safe(l.associationId(i),{before:p,after:"]"})),h(),p+=u.move("]:"),i.children&&i.children.length>0&&(u.shift(4),p+=u.move((t?`
40
+ `:" ")+l.indentLines(l.containerFlow(i,u.current()),t?UT:rj))),d(),p}}function rj(e,t,n){return t===0?e:UT(e,t,n)}function UT(e,t,n){return(n?"":" ")+e}const ij=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];FT.peek=cj;function oj(){return{canContainEols:["delete"],enter:{strikethrough:sj},exit:{strikethrough:lj}}}function aj(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ij}],handlers:{delete:FT}}}function sj(e){this.enter({type:"delete",children:[]},e)}function lj(e){this.exit(e)}function FT(e,t,n,i){const a=n.createTracker(i),l=n.enter("strikethrough");let c=a.move("~~");return c+=n.containerPhrasing(e,{...a.current(),before:c,after:"~"}),c+=a.move("~~"),l(),c}function cj(){return"~"}function uj(e){return e.length}function fj(e,t){const n=t||{},i=(n.align||[]).concat(),a=n.stringLength||uj,l=[],c=[],u=[],p=[];let d=0,h=-1;for(;++h<e.length;){const _=[],x=[];let S=-1;for(e[h].length>d&&(d=e[h].length);++S<e[h].length;){const C=dj(e[h][S]);if(n.alignDelimiters!==!1){const k=a(C);x[S]=k,(p[S]===void 0||k>p[S])&&(p[S]=k)}_.push(C)}c[h]=_,u[h]=x}let g=-1;if(typeof i=="object"&&"length"in i)for(;++g<d;)l[g]=e_(i[g]);else{const _=e_(i);for(;++g<d;)l[g]=_}g=-1;const b=[],y=[];for(;++g<d;){const _=l[g];let x="",S="";_===99?(x=":",S=":"):_===108?x=":":_===114&&(S=":");let C=n.alignDelimiters===!1?1:Math.max(1,p[g]-x.length-S.length);const k=x+"-".repeat(C)+S;n.alignDelimiters!==!1&&(C=x.length+C+S.length,C>p[g]&&(p[g]=C),y[g]=C),b[g]=k}c.splice(1,0,b),u.splice(1,0,y),h=-1;const E=[];for(;++h<c.length;){const _=c[h],x=u[h];g=-1;const S=[];for(;++g<d;){const C=_[g]||"";let k="",O="";if(n.alignDelimiters!==!1){const N=p[g]-(x[g]||0),R=l[g];R===114?k=" ".repeat(N):R===99?N%2?(k=" ".repeat(N/2+.5),O=" ".repeat(N/2-.5)):(k=" ".repeat(N/2),O=k):O=" ".repeat(N)}n.delimiterStart!==!1&&!g&&S.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&C==="")&&(n.delimiterStart!==!1||g)&&S.push(" "),n.alignDelimiters!==!1&&S.push(k),S.push(C),n.alignDelimiters!==!1&&S.push(O),n.padding!==!1&&S.push(" "),(n.delimiterEnd!==!1||g!==d-1)&&S.push("|")}E.push(n.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return E.join(`
41
+ `)}function dj(e){return e==null?"":String(e)}function e_(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 pj(e,t,n,i){const a=n.enter("blockquote"),l=n.createTracker(i);l.move("> "),l.shift(2);const c=n.indentLines(n.containerFlow(e,l.current()),hj);return a(),c}function hj(e,t,n){return">"+(n?"":" ")+e}function gj(e,t){return t_(e,t.inConstruct,!0)&&!t_(e,t.notInConstruct,!1)}function t_(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 n_(e,t,n,i){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
42
+ `&&gj(n.stack,n.unsafe[a]))return/[ \t]/.test(i.before)?"":" ";return`\\
43
+ `}function mj(e,t){const n=String(e);let i=n.indexOf(t),a=i,l=0,c=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===a?++l>c&&(c=l):l=1,a=i+t.length,i=n.indexOf(t,a);return c}function bj(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 yj(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 vj(e,t,n,i){const a=yj(n),l=e.value||"",c=a==="`"?"GraveAccent":"Tilde";if(bj(e,n)){const g=n.enter("codeIndented"),b=n.indentLines(l,Ej);return g(),b}const u=n.createTracker(i),p=a.repeat(Math.max(mj(l,a)+1,3)),d=n.enter("codeFenced");let h=u.move(p);if(e.lang){const g=n.enter(`codeFencedLang${c}`);h+=u.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...u.current()})),g()}if(e.lang&&e.meta){const g=n.enter(`codeFencedMeta${c}`);h+=u.move(" "),h+=u.move(n.safe(e.meta,{before:h,after:`
44
+ `,encode:["`"],...u.current()})),g()}return h+=u.move(`
45
+ `),l&&(h+=u.move(l+`
46
+ `)),h+=u.move(p),d(),h}function Ej(e,t,n){return(n?"":" ")+e}function Fb(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 Sj(e,t,n,i){const a=Fb(n),l=a==='"'?"Quote":"Apostrophe",c=n.enter("definition");let u=n.enter("label");const p=n.createTracker(i);let d=p.move("[");return d+=p.move(n.safe(n.associationId(e),{before:d,after:"]",...p.current()})),d+=p.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),d+=p.move("<"),d+=p.move(n.safe(e.url,{before:d,after:">",...p.current()})),d+=p.move(">")):(u=n.enter("destinationRaw"),d+=p.move(n.safe(e.url,{before:d,after:e.title?" ":`
47
+ `,...p.current()}))),u(),e.title&&(u=n.enter(`title${l}`),d+=p.move(" "+a),d+=p.move(n.safe(e.title,{before:d,after:a,...p.current()})),d+=p.move(a),u()),c(),d}function xj(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 Mc(e){return"&#x"+e.toString(16).toUpperCase()+";"}function yd(e,t,n){const i=Ws(e),a=Ws(t);return i===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}HT.peek=_j;function HT(e,t,n,i){const a=xj(n),l=n.enter("emphasis"),c=n.createTracker(i),u=c.move(a);let p=c.move(n.containerPhrasing(e,{after:a,before:u,...c.current()}));const d=p.charCodeAt(0),h=yd(i.before.charCodeAt(i.before.length-1),d,a);h.inside&&(p=Mc(d)+p.slice(1));const g=p.charCodeAt(p.length-1),b=yd(i.after.charCodeAt(0),g,a);b.inside&&(p=p.slice(0,-1)+Mc(g));const y=c.move(a);return l(),n.attentionEncodeSurroundingInfo={after:b.outside,before:h.outside},u+p+y}function _j(e,t,n){return n.options.emphasis||"*"}function wj(e,t){let n=!1;return Kd(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,Cm}),!!((!e.depth||e.depth<3)&&Nb(e)&&(t.options.setext||n))}function Rj(e,t,n,i){const a=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(i);if(wj(e,n)){const h=n.enter("headingSetext"),g=n.enter("phrasing"),b=n.containerPhrasing(e,{...l.current(),before:`
48
+ `,after:`
49
+ `});return g(),h(),b+`
50
+ `+(a===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
51
+ `))+1))}const c="#".repeat(a),u=n.enter("headingAtx"),p=n.enter("phrasing");l.move(c+" ");let d=n.containerPhrasing(e,{before:"# ",after:`
52
+ `,...l.current()});return/^[\t ]/.test(d)&&(d=Mc(d.charCodeAt(0))+d.slice(1)),d=d?c+" "+d:c,n.options.closeAtx&&(d+=" "+c),p(),u(),d}jT.peek=Tj;function jT(e){return e.value||""}function Tj(){return"<"}GT.peek=Cj;function GT(e,t,n,i){const a=Fb(n),l=a==='"'?"Quote":"Apostrophe",c=n.enter("image");let u=n.enter("label");const p=n.createTracker(i);let d=p.move("![");return d+=p.move(n.safe(e.alt,{before:d,after:"]",...p.current()})),d+=p.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),d+=p.move("<"),d+=p.move(n.safe(e.url,{before:d,after:">",...p.current()})),d+=p.move(">")):(u=n.enter("destinationRaw"),d+=p.move(n.safe(e.url,{before:d,after:e.title?" ":")",...p.current()}))),u(),e.title&&(u=n.enter(`title${l}`),d+=p.move(" "+a),d+=p.move(n.safe(e.title,{before:d,after:a,...p.current()})),d+=p.move(a),u()),d+=p.move(")"),c(),d}function Cj(){return"!"}$T.peek=kj;function $T(e,t,n,i){const a=e.referenceType,l=n.enter("imageReference");let c=n.enter("label");const u=n.createTracker(i);let p=u.move("![");const d=n.safe(e.alt,{before:p,after:"]",...u.current()});p+=u.move(d+"]["),c();const h=n.stack;n.stack=[],c=n.enter("reference");const g=n.safe(n.associationId(e),{before:p,after:"]",...u.current()});return c(),n.stack=h,l(),a==="full"||!d||d!==g?p+=u.move(g+"]"):a==="shortcut"?p=p.slice(0,-1):p+=u.move("]"),p}function kj(){return"!"}qT.peek=Aj;function qT(e,t,n){let i=e.value||"",a="`",l=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(i);)a+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++l<n.unsafe.length;){const c=n.unsafe[l],u=n.compilePattern(c);let p;if(c.atBreak)for(;p=u.exec(i);){let d=p.index;i.charCodeAt(d)===10&&i.charCodeAt(d-1)===13&&d--,i=i.slice(0,d)+" "+i.slice(p.index+1)}}return a+i+a}function Aj(){return"`"}function VT(e,t){const n=Nb(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))}YT.peek=Oj;function YT(e,t,n,i){const a=Fb(n),l=a==='"'?"Quote":"Apostrophe",c=n.createTracker(i);let u,p;if(VT(e,n)){const h=n.stack;n.stack=[],u=n.enter("autolink");let g=c.move("<");return g+=c.move(n.containerPhrasing(e,{before:g,after:">",...c.current()})),g+=c.move(">"),u(),n.stack=h,g}u=n.enter("link"),p=n.enter("label");let d=c.move("[");return d+=c.move(n.containerPhrasing(e,{before:d,after:"](",...c.current()})),d+=c.move("]("),p(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(p=n.enter("destinationLiteral"),d+=c.move("<"),d+=c.move(n.safe(e.url,{before:d,after:">",...c.current()})),d+=c.move(">")):(p=n.enter("destinationRaw"),d+=c.move(n.safe(e.url,{before:d,after:e.title?" ":")",...c.current()}))),p(),e.title&&(p=n.enter(`title${l}`),d+=c.move(" "+a),d+=c.move(n.safe(e.title,{before:d,after:a,...c.current()})),d+=c.move(a),p()),d+=c.move(")"),u(),d}function Oj(e,t,n){return VT(e,n)?"<":"["}KT.peek=Mj;function KT(e,t,n,i){const a=e.referenceType,l=n.enter("linkReference");let c=n.enter("label");const u=n.createTracker(i);let p=u.move("[");const d=n.containerPhrasing(e,{before:p,after:"]",...u.current()});p+=u.move(d+"]["),c();const h=n.stack;n.stack=[],c=n.enter("reference");const g=n.safe(n.associationId(e),{before:p,after:"]",...u.current()});return c(),n.stack=h,l(),a==="full"||!d||d!==g?p+=u.move(g+"]"):a==="shortcut"?p=p.slice(0,-1):p+=u.move("]"),p}function Mj(){return"["}function Hb(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 Nj(e){const t=Hb(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 Ij(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 XT(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 Dj(e,t,n,i){const a=n.enter("list"),l=n.bulletCurrent;let c=e.ordered?Ij(n):Hb(n);const u=e.ordered?c==="."?")":".":Nj(n);let p=t&&n.bulletLastUsed?c===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&h&&(!h.children||!h.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&&(p=!0),XT(n)===c&&h){let g=-1;for(;++g<e.children.length;){const b=e.children[g];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(c=u),n.bulletCurrent=c;const d=n.containerFlow(e,i);return n.bulletLastUsed=c,n.bulletCurrent=l,a(),d}function Lj(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 Pj(e,t,n,i){const a=Lj(n);let l=n.bulletCurrent||Hb(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 c=l.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(c=Math.ceil(c/4)*4);const u=n.createTracker(i);u.move(l+" ".repeat(c-l.length)),u.shift(c);const p=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,u.current()),h);return p(),d;function h(g,b,y){return b?(y?"":" ".repeat(c))+g:(y?l:l+" ".repeat(c-l.length))+g}}function zj(e,t,n,i){const a=n.enter("paragraph"),l=n.enter("phrasing"),c=n.containerPhrasing(e,i);return l(),a(),c}const Bj=$c(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Uj(e,t,n,i){return(e.children.some(function(c){return Bj(c)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function Fj(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}WT.peek=Hj;function WT(e,t,n,i){const a=Fj(n),l=n.enter("strong"),c=n.createTracker(i),u=c.move(a+a);let p=c.move(n.containerPhrasing(e,{after:a,before:u,...c.current()}));const d=p.charCodeAt(0),h=yd(i.before.charCodeAt(i.before.length-1),d,a);h.inside&&(p=Mc(d)+p.slice(1));const g=p.charCodeAt(p.length-1),b=yd(i.after.charCodeAt(0),g,a);b.inside&&(p=p.slice(0,-1)+Mc(g));const y=c.move(a+a);return l(),n.attentionEncodeSurroundingInfo={after:b.outside,before:h.outside},u+p+y}function Hj(e,t,n){return n.options.strong||"*"}function jj(e,t,n,i){return n.safe(e.value,i)}function Gj(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 $j(e,t,n){const i=(XT(n)+(n.options.ruleSpaces?" ":"")).repeat(Gj(n));return n.options.ruleSpaces?i.slice(0,-1):i}const ZT={blockquote:pj,break:n_,code:vj,definition:Sj,emphasis:HT,hardBreak:n_,heading:Rj,html:jT,image:GT,imageReference:$T,inlineCode:qT,link:YT,linkReference:KT,list:Dj,listItem:Pj,paragraph:zj,root:Uj,strong:WT,text:jj,thematicBreak:$j};function qj(){return{enter:{table:Vj,tableData:r_,tableHeader:r_,tableRow:Kj},exit:{codeText:Xj,table:Yj,tableData:Xg,tableHeader:Xg,tableRow:Xg}}}function Vj(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 Yj(e){this.exit(e),this.data.inTable=void 0}function Kj(e){this.enter({type:"tableRow",children:[]},e)}function Xg(e){this.exit(e)}function r_(e){this.enter({type:"tableCell",children:[]},e)}function Xj(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Wj));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Wj(e,t){return t==="|"?t:e}function Zj(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,a=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
53
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:c,tableCell:p,tableRow:u}};function c(y,E,_,x){return d(h(y,_,x),y.align)}function u(y,E,_,x){const S=g(y,_,x),C=d([S]);return C.slice(0,C.indexOf(`
54
+ `))}function p(y,E,_,x){const S=_.enter("tableCell"),C=_.enter("phrasing"),k=_.containerPhrasing(y,{...x,before:l,after:l});return C(),S(),k}function d(y,E){return fj(y,{align:E,alignDelimiters:i,padding:n,stringLength:a})}function h(y,E,_){const x=y.children;let S=-1;const C=[],k=E.enter("table");for(;++S<x.length;)C[S]=g(x[S],E,_);return k(),C}function g(y,E,_){const x=y.children;let S=-1;const C=[],k=E.enter("tableRow");for(;++S<x.length;)C[S]=p(x[S],y,E,_);return k(),C}function b(y,E,_){let x=ZT.inlineCode(y,E,_);return _.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function Qj(){return{exit:{taskListCheckValueChecked:i_,taskListCheckValueUnchecked:i_,paragraph:e8}}}function Jj(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:t8}}}function i_(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function e8(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 a=t.children;let l=-1,c;for(;++l<a.length;){const u=a[l];if(u.type==="paragraph"){c=u;break}}c===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 t8(e,t,n,i){const a=e.children[0],l=typeof e.checked=="boolean"&&a&&a.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",u=n.createTracker(i);l&&u.move(c);let p=ZT.listItem(e,t,n,{...i,...u.current()});return l&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),p;function d(h){return h+c}}function n8(){return[D9(),tj(),oj(),qj(),Qj()]}function r8(e){return{extensions:[L9(),nj(e),aj(),Zj(e),Jj()]}}const i8={tokenize:u8,partial:!0},QT={tokenize:f8,partial:!0},JT={tokenize:d8,partial:!0},eC={tokenize:p8,partial:!0},o8={tokenize:h8,partial:!0},tC={name:"wwwAutolink",tokenize:l8,previous:rC},nC={name:"protocolAutolink",tokenize:c8,previous:iC},to={name:"emailAutolink",tokenize:s8,previous:oC},xi={};function a8(){return{text:xi}}let _a=48;for(;_a<123;)xi[_a]=to,_a++,_a===58?_a=65:_a===91&&(_a=97);xi[43]=to;xi[45]=to;xi[46]=to;xi[95]=to;xi[72]=[to,nC];xi[104]=[to,nC];xi[87]=[to,tC];xi[119]=[to,tC];function s8(e,t,n){const i=this;let a,l;return c;function c(g){return!Mm(g)||!oC.call(i,i.previous)||jb(i.events)?n(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(g))}function u(g){return Mm(g)?(e.consume(g),u):g===64?(e.consume(g),p):n(g)}function p(g){return g===46?e.check(o8,h,d)(g):g===45||g===95||Qn(g)?(l=!0,e.consume(g),p):h(g)}function d(g){return e.consume(g),a=!0,p}function h(g){return l&&a&&ar(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(g)):n(g)}}function l8(e,t,n){const i=this;return a;function a(c){return c!==87&&c!==119||!rC.call(i,i.previous)||jb(i.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(i8,e.attempt(QT,e.attempt(JT,l),n),n)(c))}function l(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(c)}}function c8(e,t,n){const i=this;let a="",l=!1;return c;function c(g){return(g===72||g===104)&&iC.call(i,i.previous)&&!jb(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(g),e.consume(g),u):n(g)}function u(g){if(ar(g)&&a.length<5)return a+=String.fromCodePoint(g),e.consume(g),u;if(g===58){const b=a.toLowerCase();if(b==="http"||b==="https")return e.consume(g),p}return n(g)}function p(g){return g===47?(e.consume(g),l?d:(l=!0,p)):n(g)}function d(g){return g===null||gd(g)||Xt(g)||Pa(g)||$d(g)?n(g):e.attempt(QT,e.attempt(JT,h),n)(g)}function h(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function u8(e,t,n){let i=0;return a;function a(c){return(c===87||c===119)&&i<3?(i++,e.consume(c),a):c===46&&i===3?(e.consume(c),l):n(c)}function l(c){return c===null?n(c):t(c)}}function f8(e,t,n){let i,a,l;return c;function c(d){return d===46||d===95?e.check(eC,p,u)(d):d===null||Xt(d)||Pa(d)||d!==45&&$d(d)?p(d):(l=!0,e.consume(d),c)}function u(d){return d===95?i=!0:(a=i,i=void 0),e.consume(d),c}function p(d){return a||i||!l?n(d):t(d)}}function d8(e,t){let n=0,i=0;return a;function a(c){return c===40?(n++,e.consume(c),a):c===41&&i<n?l(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(eC,t,l)(c):c===null||Xt(c)||Pa(c)?t(c):(e.consume(c),a)}function l(c){return c===41&&i++,e.consume(c),a}}function p8(e,t,n){return i;function i(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),i):u===38?(e.consume(u),l):u===93?(e.consume(u),a):u===60||u===null||Xt(u)||Pa(u)?t(u):n(u)}function a(u){return u===null||u===40||u===91||Xt(u)||Pa(u)?t(u):i(u)}function l(u){return ar(u)?c(u):n(u)}function c(u){return u===59?(e.consume(u),i):ar(u)?(e.consume(u),c):n(u)}}function h8(e,t,n){return i;function i(l){return e.consume(l),a}function a(l){return Qn(l)?n(l):t(l)}}function rC(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Xt(e)}function iC(e){return!ar(e)}function oC(e){return!(e===47||Mm(e))}function Mm(e){return e===43||e===45||e===46||e===95||Qn(e)}function jb(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}const g8={tokenize:_8,partial:!0};function m8(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:E8,continuation:{tokenize:S8},exit:x8}},text:{91:{name:"gfmFootnoteCall",tokenize:v8},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:b8,resolveTo:y8}}}}function b8(e,t,n){const i=this;let a=i.events.length;const l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c;for(;a--;){const p=i.events[a][1];if(p.type==="labelImage"){c=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return u;function u(p){if(!c||!c._balanced)return n(p);const d=ei(i.sliceSerialize({start:c.end,end:i.now()}));return d.codePointAt(0)!==94||!l.includes(d.slice(1))?n(p):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),t(p))}}function y8(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)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},u=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",l,t],["enter",c,t],["exit",c,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...u),e}function v8(e,t,n){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let l=0,c;return u;function u(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),p}function p(g){return g!==94?n(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(g){if(l>999||g===93&&!c||g===null||g===91||Xt(g))return n(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return a.includes(ei(i.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(g)}return Xt(g)||(c=!0),l++,e.consume(g),g===92?h:d}function h(g){return g===91||g===92||g===93?(e.consume(g),l++,d):d(g)}}function E8(e,t,n){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let l,c=0,u;return p;function p(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(E)}function h(E){if(c>999||E===93&&!u||E===null||E===91||Xt(E))return n(E);if(E===93){e.exit("chunkString");const _=e.exit("gfmFootnoteDefinitionLabelString");return l=ei(i.sliceSerialize(_)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return Xt(E)||(u=!0),c++,e.consume(E),E===92?g:h}function g(E){return E===91||E===92||E===93?(e.consume(E),c++,h):h(E)}function b(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),a.includes(l)||a.push(l),kt(e,y,"gfmFootnoteDefinitionWhitespace")):n(E)}function y(E){return t(E)}}function S8(e,t,n){return e.check(Gc,t,e.attempt(g8,t,n))}function x8(e){e.exit("gfmFootnoteDefinition")}function _8(e,t,n){const i=this;return kt(e,a,"gfmFootnoteDefinitionIndent",5);function a(l){const c=i.events[i.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?t(l):n(l)}}function w8(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:l,resolveAll:a};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function a(c,u){let p=-1;for(;++p<c.length;)if(c[p][0]==="enter"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._close){let d=p;for(;d--;)if(c[d][0]==="exit"&&c[d][1].type==="strikethroughSequenceTemporary"&&c[d][1]._open&&c[p][1].end.offset-c[p][1].start.offset===c[d][1].end.offset-c[d][1].start.offset){c[p][1].type="strikethroughSequence",c[d][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},c[d][1].start),end:Object.assign({},c[p][1].end)},g={type:"strikethroughText",start:Object.assign({},c[d][1].end),end:Object.assign({},c[p][1].start)},b=[["enter",h,u],["enter",c[d][1],u],["exit",c[d][1],u],["enter",g,u]],y=u.parser.constructs.insideSpan.null;y&&zr(b,b.length,0,qd(y,c.slice(d+1,p),u)),zr(b,b.length,0,[["exit",g,u],["enter",c[p][1],u],["exit",c[p][1],u],["exit",h,u]]),zr(c,d-1,p-d+3,b),p=d+b.length-2;break}}for(p=-1;++p<c.length;)c[p][1].type==="strikethroughSequenceTemporary"&&(c[p][1].type="data");return c}function l(c,u,p){const d=this.previous,h=this.events;let g=0;return b;function b(E){return d===126&&h[h.length-1][1].type!=="characterEscape"?p(E):(c.enter("strikethroughSequenceTemporary"),y(E))}function y(E){const _=Ws(d);if(E===126)return g>1?p(E):(c.consume(E),g++,y);if(g<2&&!n)return p(E);const x=c.exit("strikethroughSequenceTemporary"),S=Ws(E);return x._open=!S||S===2&&!!_,x._close=!_||_===2&&!!S,u(E)}}}class R8{constructor(){this.map=[]}add(t,n,i){T8(this,t,n,i)}consume(t){if(this.map.sort(function(l,c){return l[0]-c[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 a=i.pop();for(;a;){for(const l of a)t.push(l);a=i.pop()}this.map.length=0}}function T8(e,t,n,i){let a=0;if(!(n===0&&i.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...i);return}a+=1}e.map.push([t,n,i])}}function C8(e,t){let n=!1;const i=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=i.length-1;i[l]=i[l]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function k8(){return{flow:{null:{name:"table",tokenize:A8,resolveAll:O8}}}}function A8(e,t,n){const i=this;let a=0,l=0,c;return u;function u(U){let X=i.events.length-1;for(;X>-1;){const V=i.events[X][1].type;if(V==="lineEnding"||V==="linePrefix")X--;else break}const $=X>-1?i.events[X][1].type:null,W=$==="tableHead"||$==="tableRow"?R:p;return W===R&&i.parser.lazy[i.now().line]?n(U):W(U)}function p(U){return e.enter("tableHead"),e.enter("tableRow"),d(U)}function d(U){return U===124||(c=!0,l+=1),h(U)}function h(U){return U===null?n(U):et(U)?l>1?(l=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),y):n(U):St(U)?kt(e,h,"whitespace")(U):(l+=1,c&&(c=!1,a+=1),U===124?(e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),c=!0,h):(e.enter("data"),g(U)))}function g(U){return U===null||U===124||Xt(U)?(e.exit("data"),h(U)):(e.consume(U),U===92?b:g)}function b(U){return U===92||U===124?(e.consume(U),g):g(U)}function y(U){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(U):(e.enter("tableDelimiterRow"),c=!1,St(U)?kt(e,E,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):E(U))}function E(U){return U===45||U===58?x(U):U===124?(c=!0,e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),_):N(U)}function _(U){return St(U)?kt(e,x,"whitespace")(U):x(U)}function x(U){return U===58?(l+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(U),e.exit("tableDelimiterMarker"),S):U===45?(l+=1,S(U)):U===null||et(U)?O(U):N(U)}function S(U){return U===45?(e.enter("tableDelimiterFiller"),C(U)):N(U)}function C(U){return U===45?(e.consume(U),C):U===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(U),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(U))}function k(U){return St(U)?kt(e,O,"whitespace")(U):O(U)}function O(U){return U===124?E(U):U===null||et(U)?!c||a!==l?N(U):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(U)):N(U)}function N(U){return n(U)}function R(U){return e.enter("tableRow"),P(U)}function P(U){return U===124?(e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),P):U===null||et(U)?(e.exit("tableRow"),t(U)):St(U)?kt(e,P,"whitespace")(U):(e.enter("data"),I(U))}function I(U){return U===null||U===124||Xt(U)?(e.exit("data"),P(U)):(e.consume(U),U===92?G:I)}function G(U){return U===92||U===124?(e.consume(U),I):I(U)}}function O8(e,t){let n=-1,i=!0,a=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,p=0,d,h,g;const b=new R8;for(;++n<e.length;){const y=e[n],E=y[1];y[0]==="enter"?E.type==="tableHead"?(u=!1,p!==0&&(o_(b,t,p,d,h),h=void 0,p=0),d={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},b.add(n,0,[["enter",d,t]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(i=!0,g=void 0,l=[0,0,0,0],c=[0,n+1,0,0],u&&(u=!1,h={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},b.add(n,0,[["enter",h,t]])),a=E.type==="tableDelimiterRow"?2:h?3:1):a&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(i=!1,c[2]===0&&(l[1]!==0&&(c[0]=c[1],g=Mf(b,t,l,a,void 0,g),l=[0,0,0,0]),c[2]=n)):E.type==="tableCellDivider"&&(i?i=!1:(l[1]!==0&&(c[0]=c[1],g=Mf(b,t,l,a,void 0,g)),l=c,c=[l[1],n,0,0])):E.type==="tableHead"?(u=!0,p=n):E.type==="tableRow"||E.type==="tableDelimiterRow"?(p=n,l[1]!==0?(c[0]=c[1],g=Mf(b,t,l,a,n,g)):c[1]!==0&&(g=Mf(b,t,c,a,n,g)),a=0):a&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(c[3]=n)}for(p!==0&&o_(b,t,p,d,h),b.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=C8(t.events,n))}return e}function Mf(e,t,n,i,a,l){const c=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(l.end=Object.assign({},Ns(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const p=Ns(t.events,n[1]);if(l={type:c,start:Object.assign({},p),end:Object.assign({},p)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const d=Ns(t.events,n[2]),h=Ns(t.events,n[3]),g={type:u,start:Object.assign({},d),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",g,t]]),i!==2){const b=t.events[n[2]],y=t.events[n[3]];if(b[1].end=Object.assign({},y[1].end),b[1].type="chunkText",b[1].contentType="text",n[3]>n[2]+1){const E=n[2]+1,_=n[3]-n[2]-1;e.add(E,_,[])}}e.add(n[3]+1,0,[["exit",g,t]])}return a!==void 0&&(l.end=Object.assign({},Ns(t.events,a)),e.add(a,0,[["exit",l,t]]),l=void 0),l}function o_(e,t,n,i,a){const l=[],c=Ns(t.events,n);a&&(a.end=Object.assign({},c),l.push(["exit",a,t])),i.end=Object.assign({},c),l.push(["exit",i,t]),e.add(n+1,0,l)}function Ns(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const M8={name:"tasklistCheck",tokenize:I8};function N8(){return{text:{91:M8}}}function I8(e,t,n){const i=this;return a;function a(p){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(p):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),l)}function l(p){return Xt(p)?(e.enter("taskListCheckValueUnchecked"),e.consume(p),e.exit("taskListCheckValueUnchecked"),c):p===88||p===120?(e.enter("taskListCheckValueChecked"),e.consume(p),e.exit("taskListCheckValueChecked"),c):n(p)}function c(p){return p===93?(e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(p)}function u(p){return et(p)?t(p):St(p)?e.check({tokenize:D8},t,n)(p):n(p)}}function D8(e,t,n){return kt(e,i,"whitespace");function i(a){return a===null?n(a):t(a)}}function L8(e){return mT([a8(),m8(),w8(e),k8(),N8()])}const P8={};function VG(e){const t=this,n=e||P8,i=t.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),l=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(L8(n)),l.push(n8()),c.push(r8(n))}const a_=(function(e,t,n){const i=$c(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(i(e.children[t],t,e))return e.children[t]}),Va=(function(e){if(e==null)return U8;if(typeof e=="string")return B8(e);if(typeof e=="object")return z8(e);if(typeof e=="function")return Gb(e);throw new Error("Expected function, string, or array as `test`")});function z8(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Va(e[n]);return Gb(i);function i(...a){let l=-1;for(;++l<t.length;)if(t[l].apply(this,a))return!0;return!1}}function B8(e){return Gb(t);function t(n){return n.tagName===e}}function Gb(e){return t;function t(n,i,a){return!!(F8(n)&&e.call(this,n,typeof i=="number"?i:void 0,a||void 0))}}function U8(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function F8(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const s_=/\n/g,l_=/[\t ]+/g,Nm=Va("br"),c_=Va(K8),H8=Va("p"),u_=Va("tr"),j8=Va(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Y8,X8]),aC=Va(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function G8(e,t){const n=t||{},i="children"in e?e.children:[],a=aC(e),l=cC(e,{whitespace:n.whitespace||"normal"}),c=[];(e.type==="text"||e.type==="comment")&&c.push(...lC(e,{breakBefore:!0,breakAfter:!0}));let u=-1;for(;++u<i.length;)c.push(...sC(i[u],e,{whitespace:l,breakBefore:u?void 0:a,breakAfter:u<i.length-1?Nm(i[u+1]):a}));const p=[];let d;for(u=-1;++u<c.length;){const h=c[u];typeof h=="number"?d!==void 0&&h>d&&(d=h):h&&(d!==void 0&&d>-1&&p.push(`
55
+ `.repeat(d)||" "),d=-1,p.push(h))}return p.join("")}function sC(e,t,n){return e.type==="element"?$8(e,t,n):e.type==="text"?n.whitespace==="normal"?lC(e,n):q8(e):[]}function $8(e,t,n){const i=cC(e,n),a=e.children||[];let l=-1,c=[];if(j8(e))return c;let u,p;for(Nm(e)||u_(e)&&a_(t,e,u_)?p=`
56
+ `:H8(e)?(u=2,p=2):aC(e)&&(u=1,p=1);++l<a.length;)c=c.concat(sC(a[l],e,{whitespace:i,breakBefore:l?void 0:u,breakAfter:l<a.length-1?Nm(a[l+1]):p}));return c_(e)&&a_(t,e,c_)&&c.push(" "),u&&c.unshift(u),p&&c.push(p),c}function lC(e,t){const n=String(e.value),i=[],a=[];let l=0;for(;l<=n.length;){s_.lastIndex=l;const p=s_.exec(n),d=p&&"index"in p?p.index:n.length;i.push(V8(n.slice(l,d).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),l===0?t.breakBefore:!0,d===n.length?t.breakAfter:!0)),l=d+1}let c=-1,u;for(;++c<i.length;)i[c].charCodeAt(i[c].length-1)===8203||c<i.length-1&&i[c+1].charCodeAt(0)===8203?(a.push(i[c]),u=void 0):i[c]?(typeof u=="number"&&a.push(u),a.push(i[c]),u=0):(c===0||c===i.length-1)&&a.push(0);return a}function q8(e){return[String(e.value)]}function V8(e,t,n){const i=[];let a=0,l;for(;a<e.length;){l_.lastIndex=a;const c=l_.exec(e);l=c?c.index:e.length,!a&&!l&&c&&!t&&i.push(""),a!==l&&i.push(e.slice(a,l)),a=c?l+c[0].length:l}return a!==l&&!n&&i.push(""),i.join(" ")}function cC(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function Y8(e){return!!(e.properties||{}).hidden}function K8(e){return e.tagName==="td"||e.tagName==="th"}function X8(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function W8(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",c="(?!struct)("+i+"|"+t.optional(a)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},h={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},b={className:"title",begin:t.optional(a)+e.IDENT_RE,relevance:0},y=t.optional(a)+e.IDENT_RE+"\\s*\\(",E=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],_=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],x=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],S=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],O={type:_,keyword:E,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:x},N={className:"function.dispatch",relevance:0,keywords:{_hint:S},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},R=[N,g,u,n,e.C_BLOCK_COMMENT_MODE,h,d],P={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:O,contains:R.concat([{begin:/\(/,end:/\)/,keywords:O,contains:R.concat(["self"]),relevance:0}]),relevance:0},I={className:"function",begin:"("+c+"[\\*&\\s]+)+"+y,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:O,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:O,relevance:0},{begin:y,returnBegin:!0,contains:[b],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[d,h]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,d,h,u,{begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,d,h,u]}]},u,n,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:O,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(P,I,N,R,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:O,contains:["self",u]},{begin:e.IDENT_RE+"::",keywords:O},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Z8(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=W8(e),i=n.keywords;return i.type=[...i.type,...t.type],i.literal=[...i.literal,...t.literal],i.built_in=[...i.built_in,...t.built_in],i._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function Q8(e){const t=e.regex,n={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},l=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),c={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},u={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,a]};a.contains.push(u);const p={match:/\\"/},d={className:"string",begin:/'/,end:/'/},h={match:/\\'/},g={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},b=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],y=e.SHEBANG({binary:`(${b.join("|")})`,relevance:10}),E={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},_=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],x=["true","false"],S={match:/(\/[a-z._-]+)+/},C=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],k=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],O=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],N=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:_,literal:x,built_in:[...C,...k,"set","shopt",...O,...N]},contains:[y,e.SHEBANG(),E,g,l,c,S,u,p,d,h,n]}}function J8(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",c="("+i+"|"+t.optional(a)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",u={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},h={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},b={className:"title",begin:t.optional(a)+e.IDENT_RE,relevance:0},y=t.optional(a)+e.IDENT_RE+"\\s*\\(",x={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},S=[g,u,n,e.C_BLOCK_COMMENT_MODE,h,d],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:x,contains:S.concat([{begin:/\(/,end:/\)/,keywords:x,contains:S.concat(["self"]),relevance:0}]),relevance:0},k={begin:"("+c+"[\\*&\\s]+)+"+y,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:x,relevance:0},{begin:y,returnBegin:!0,contains:[e.inherit(b,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,d,h,u,{begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,d,h,u]}]},u,n,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C",aliases:["h"],keywords:x,disableAutodetect:!0,illegal:"</",contains:[].concat(C,k,S,[g,{begin:e.IDENT_RE+"::",keywords:x},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:g,strings:d,keywords:x}}}function e7(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",c="(?!struct)("+i+"|"+t.optional(a)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},h={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},b={className:"title",begin:t.optional(a)+e.IDENT_RE,relevance:0},y=t.optional(a)+e.IDENT_RE+"\\s*\\(",E=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],_=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],x=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],S=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],O={type:_,keyword:E,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:x},N={className:"function.dispatch",relevance:0,keywords:{_hint:S},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},R=[N,g,u,n,e.C_BLOCK_COMMENT_MODE,h,d],P={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:O,contains:R.concat([{begin:/\(/,end:/\)/,keywords:O,contains:R.concat(["self"]),relevance:0}]),relevance:0},I={className:"function",begin:"("+c+"[\\*&\\s]+)+"+y,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:O,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:O,relevance:0},{begin:y,returnBegin:!0,contains:[b],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[d,h]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,d,h,u,{begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,d,h,u]}]},u,n,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:O,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(P,I,N,R,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:O,contains:["self",u]},{begin:e.IDENT_RE+"::",keywords:O},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function t7(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],i=["default","false","null","true"],a=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],l=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],c={keyword:a.concat(l),built_in:t,literal:i},u=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),p={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},h={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},g=e.inherit(h,{illegal:/\n/}),b={className:"subst",begin:/\{/,end:/\}/,keywords:c},y=e.inherit(b,{illegal:/\n/}),E={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,y]},_={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},b]},x=e.inherit(_,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},y]});b.contains=[_,E,h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,e.C_BLOCK_COMMENT_MODE],y.contains=[x,E,g,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const S={variants:[d,_,E,h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},C={begin:"<",end:">",contains:[{beginKeywords:"in out"},u]},k=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",O={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:c,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},S,p,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},u,C,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,C,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+k+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:c,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,C],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,relevance:0,contains:[S,p,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},O]}}const n7=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r7=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],i7=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],o7=[...r7,...i7],a7=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),s7=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),l7=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),c7=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function u7(e){const t=e.regex,n=n7(e),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},a="and or not only",l=/@-?\w[\w]*(-\w+)*/,c="[a-zA-Z-][a-zA-Z0-9_-]*",u=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,i,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+c,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+s7.join("|")+")"},{begin:":(:)?("+l7.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+c7.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...u,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...u,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:l},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:a7.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...u,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+o7.join("|")+")\\b"}]}}function f7(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function d7(e){const l={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:l,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:l,illegal:/["']/}]}]}}function p7(e){const t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function h7(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},i=e.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const a={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},l={className:"literal",begin:/\bon|off|true|false|yes|no\b/},c={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},u={begin:/\[/,end:/\]/,contains:[i,l,a,c,n,"self"],relevance:0},p=/[A-Za-z0-9_-]+/,d=/"(\\"|[^"])*"/,h=/'[^']*'/,g=t.either(p,d,h),b=t.concat(g,"(\\s*\\.\\s*",g,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:b,className:"attr",starts:{end:/$/,contains:[i,u,l,a,c,n]}}]}}var Is="[0-9](_*[0-9])*",Nf=`\\.(${Is})`,If="[0-9a-fA-F](_*[0-9a-fA-F])*",f_={className:"number",variants:[{begin:`(\\b(${Is})((${Nf})|\\.)?|(${Nf}))[eE][+-]?(${Is})[fFdD]?\\b`},{begin:`\\b(${Is})((${Nf})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Nf})[fFdD]?\\b`},{begin:`\\b(${Is})[fFdD]\\b`},{begin:`\\b0[xX]((${If})\\.?|(${If})?\\.(${If}))[pP][+-]?(${Is})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${If})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function uC(e,t,n){return n===-1?"":e.replace(t,i=>uC(e,t,n-1))}function g7(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",i=n+uC("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),p={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},d={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},h={className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:p,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[h,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+i+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:p,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f_,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},f_,d]}}const d_="[A-Za-z$_][0-9A-Za-z$_]*",m7=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],b7=["true","false","null","undefined","NaN","Infinity"],fC=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],dC=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],pC=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],y7=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],v7=[].concat(pC,fC,dC);function E7(e){const t=e.regex,n=(Q,{after:ee})=>{const M="</"+Q[0].slice(1);return Q.input.indexOf(M,ee)!==-1},i=d_,a={begin:"<>",end:"</>"},l=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,ee)=>{const M=Q[0].length+Q.index,D=Q.input[M];if(D==="<"||D===","){ee.ignoreMatch();return}D===">"&&(n(Q,{after:M})||ee.ignoreMatch());let Z;const z=Q.input.substring(M);if(Z=z.match(/^\s*=/)){ee.ignoreMatch();return}if((Z=z.match(/^\s+extends\s+/))&&Z.index===0){ee.ignoreMatch();return}}},u={$pattern:d_,keyword:m7,literal:b7,built_in:v7,"variable.language":y7},p="[0-9](_?[0-9])*",d=`\\.(${p})`,h="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${h})((${d})|\\.)?|(${d}))[eE][+-]?(${p})\\b`},{begin:`\\b(${h})\\b((${d})\\b|\\.)?|(${d})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},b={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},y={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"xml"}},E={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"css"}},_={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"graphql"}},x={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,b]},C={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},k=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,y,E,_,x,{match:/\$\d+/},g];b.contains=k.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(k)});const O=[].concat(C,b.contains),N=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(O)}]),R={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:N},P={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,t.concat(i,"(",t.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},I={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...fC,...dC]}},G={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[R],illegal:/%/},X={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function $(Q){return t.concat("(?!",Q.join("|"),")")}const W={match:t.concat(/\b/,$([...pC,"super","import"].map(Q=>`${Q}\\s*\\(`)),i,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},V={begin:t.concat(/\./,t.lookahead(t.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},H={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},R]},B="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",q={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(B)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[R]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:N,CLASS_REFERENCE:I},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),G,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,y,E,_,x,C,{match:/\$\d+/},g,I,{scope:"attr",match:i+t.lookahead(":"),relevance:0},q,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,e.REGEXP_MODE,{className:"function",begin:B,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:N}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:l},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[R,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},V,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[R]},W,X,P,H,{match:/\$[(.]/}]}}function S7(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],a={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:i},contains:[t,n,e.QUOTE_STRING_MODE,a,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Ds="[0-9](_*[0-9])*",Df=`\\.(${Ds})`,Lf="[0-9a-fA-F](_*[0-9a-fA-F])*",x7={className:"number",variants:[{begin:`(\\b(${Ds})((${Df})|\\.)?|(${Df}))[eE][+-]?(${Ds})[fFdD]?\\b`},{begin:`\\b(${Ds})((${Df})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Df})[fFdD]?\\b`},{begin:`\\b(${Ds})[fFdD]\\b`},{begin:`\\b0[xX]((${Lf})\\.?|(${Lf})?\\.(${Lf}))[pP][+-]?(${Ds})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Lf})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function _7(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},i={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},a={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},l={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},c={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[l,a]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,l,a]}]};a.contains.push(c);const u={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},p={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(c,{className:"string"}),"self"]}]},d=x7,h=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),g={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},b=g;return b.variants[1].contains=[g],g.variants[1].contains=[b],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,h,n,i,u,p,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[g,e.C_LINE_COMMENT_MODE,h],relevance:0},e.C_LINE_COMMENT_MODE,h,u,p,c,e.C_NUMBER_MODE]},h]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},u,p]},c,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
57
+ `},d]}}const w7=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),R7=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],T7=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],C7=[...R7,...T7],k7=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),hC=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),gC=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),A7=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),O7=hC.concat(gC).sort().reverse();function M7(e){const t=w7(e),n=O7,i="and or not only",a="[\\w-]+",l="("+a+"|@\\{"+a+"\\})",c=[],u=[],p=function(k){return{className:"string",begin:"~?"+k+".*?"+k}},d=function(k,O,N){return{className:k,begin:O,relevance:N}},h={$pattern:/[a-z-]+/,keyword:i,attribute:k7.join(" ")},g={begin:"\\(",end:"\\)",contains:u,keywords:h,relevance:0};u.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p("'"),p('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,g,d("variable","@@?"+a,10),d("variable","@\\{"+a+"\\}"),d("built_in","~?`[^`]*?`"),{className:"attribute",begin:a+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const b=u.concat({begin:/\{/,end:/\}/,contains:c}),y={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(u)},E={begin:l+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+A7.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:u}}]},_={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:h,returnEnd:!0,contains:u,relevance:0}},x={className:"variable",variants:[{begin:"@"+a+"\\s*:",relevance:15},{begin:"@"+a}],starts:{end:"[;}]",returnEnd:!0,contains:b}},S={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:l,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,y,d("keyword","all\\b"),d("variable","@\\{"+a+"\\}"),{begin:"\\b("+C7.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,d("selector-tag",l,0),d("selector-id","#"+l),d("selector-class","\\."+l,0),d("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+hC.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+gC.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:b},{begin:"!important"},t.FUNCTION_DISPATCH]},C={begin:a+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[S]};return c.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,_,x,C,E,S,y,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:c}}function N7(e){const t="\\[=*\\[",n="\\]=*\\]",i={begin:t,end:n,contains:["self"]},a=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[i],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:a.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:a}].concat(a)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[i],relevance:5}])}}function I7(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},i={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},a={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},l={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},c={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,i,a,l,c]}}function D7(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},a={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},l={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},c={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},u=/[A-Za-z][A-Za-z0-9+.-]*/,p={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,u,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},d={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},h={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},g=e.inherit(d,{contains:[]}),b=e.inherit(h,{contains:[]});d.contains.push(b),h.contains.push(g);let y=[n,p];return[d,h,g,b].forEach(S=>{S.contains=S.contains.concat(y)}),y=y.concat(d,h),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:y},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:y}]}]},n,l,d,h,{className:"quote",begin:"^>\\s+",contains:y,end:"$"},a,i,p,c,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function L7(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,u={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},p={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:u,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+p.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:p,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function P7(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],i=/[dualxmsipngr]{0,12}/,a={$pattern:/[\w.]+/,keyword:n.join(" ")},l={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:a},c={begin:/->\{/,end:/\}/},u={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},p={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[u]},d={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},h=[e.BACKSLASH_ESCAPE,l,p],g=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],b=(_,x,S="\\1")=>{const C=S==="\\1"?S:t.concat(S,x);return t.concat(t.concat("(?:",_,")"),x,/(?:\\.|[^\\\/])*?/,C,/(?:\\.|[^\\\/])*?/,S,i)},y=(_,x,S)=>t.concat(t.concat("(?:",_,")"),x,/(?:\\.|[^\\\/])*?/,S,i),E=[p,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),c,{className:"string",contains:h,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},d,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:b("s|tr|y",t.either(...g,{capture:!0}))},{begin:b("s|tr|y","\\(","\\)")},{begin:b("s|tr|y","\\[","\\]")},{begin:b("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:y("(?:m|qr)?",/\//,/\//)},{begin:y("m|qr",t.either(...g,{capture:!0}),/\1/)},{begin:y("m|qr",/\(/,/\)/)},{begin:y("m|qr",/\[/,/\]/)},{begin:y("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,u]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,u,d]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return l.contains=E,c.contains=E,{name:"Perl",aliases:["pl","pm"],keywords:a,contains:E}}function z7(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,i=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),a=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),l=t.concat(/[A-Z]+/,n),c={scope:"variable",match:"\\$+"+i},u={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},p={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},d=e.inherit(e.APOS_STRING_MODE,{illegal:null}),h=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(p)}),g={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(p),"on:begin":(V,H)=>{H.data._beginMatch=V[1]||V[2]},"on:end":(V,H)=>{H.data._beginMatch!==V[1]&&H.ignoreMatch()}},b=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),y=`[
58
+ ]`,E={scope:"string",variants:[h,d,g,b]},_={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},x=["false","null","true"],S=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],C=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],O={keyword:S,literal:(V=>{const H=[];return V.forEach(B=>{H.push(B),B.toLowerCase()===B?H.push(B.toUpperCase()):H.push(B.toLowerCase())}),H})(x),built_in:C},N=V=>V.map(H=>H.replace(/\|\d+$/,"")),R={variants:[{match:[/new/,t.concat(y,"+"),t.concat("(?!",N(C).join("\\b|"),"\\b)"),a],scope:{1:"keyword",4:"title.class"}}]},P=t.concat(i,"\\b(?!\\()"),I={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),P],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[a,t.concat(/::/,t.lookahead(/(?!class\b)/)),P],scope:{1:"title.class",3:"variable.constant"}},{match:[a,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[a,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},G={scope:"attr",match:t.concat(i,t.lookahead(":"),t.lookahead(/(?!::)/))},U={relevance:0,begin:/\(/,end:/\)/,keywords:O,contains:[G,c,I,e.C_BLOCK_COMMENT_MODE,E,_,R]},X={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",N(S).join("\\b|"),"|",N(C).join("\\b|"),"\\b)"),i,t.concat(y,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[U]};U.contains.push(X);const $=[G,I,e.C_BLOCK_COMMENT_MODE,E,_,R],W={begin:t.concat(/#\[\s*\\?/,t.either(a,l)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:x,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:x,keyword:["new","array"]},contains:["self",...$]},...$,{scope:"meta",variants:[{match:a},{match:l}]}]};return{case_insensitive:!1,keywords:O,contains:[W,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},u,{scope:"variable.language",match:/\$this\b/},c,X,I,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},R,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:O,contains:["self",W,c,I,e.C_BLOCK_COMMENT_MODE,E,_]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},E,_]}}function B7(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function U7(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function F7(e){const t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],u={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},p={className:"meta",begin:/^(>>>|\.\.\.) /},d={className:"subst",begin:/\{/,end:/\}/,keywords:u,illegal:/#/},h={begin:/\{\{/,relevance:0},g={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,p],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,p],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,p,h,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,p,h,d]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,h,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,h,d]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},b="[0-9](_?[0-9])*",y=`(\\b(${b}))?\\.(${b})|\\b(${b})\\.`,E=`\\b|${i.join("|")}`,_={className:"number",relevance:0,variants:[{begin:`(\\b(${b})|(${y}))[eE][+-]?(${b})[jJ]?(?=${E})`},{begin:`(${y})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${E})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${E})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${E})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${E})`},{begin:`\\b(${b})[jJ](?=${E})`}]},x={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:u,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},S={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:["self",p,_,g,e.HASH_COMMENT_MODE]}]};return d.contains=[g,_,p],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:u,illegal:/(<\/|\?)|=>/,contains:[p,_,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},g,x,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[S]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[_,S,g]}]}}function H7(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function j7(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),a=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,l=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[a,i]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[l,i]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:a},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:l},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function G7(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),a=t.concat(i,/(::\w+)*/),c={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},u={className:"doctag",begin:"@[A-Za-z]+"},p={begin:"#<",end:">"},d=[e.COMMENT("#","$",{contains:[u]}),e.COMMENT("^=begin","^=end",{contains:[u],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],h={className:"subst",begin:/#\{/,end:/\}/,keywords:c},g={className:"string",contains:[e.BACKSLASH_ESCAPE,h],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,h]})]}]},b="[1-9](_?[0-9])*|0",y="[0-9](_?[0-9])*",E={className:"number",relevance:0,variants:[{begin:`\\b(${b})(\\.(${y}))?([eE][+-]?(${y})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},_={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:c}]},R=[g,{variants:[{match:[/class\s+/,a,/\s+<\s+/,a]},{match:[/\b(class|module)\s+/,a]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:c},{match:[/(include|extend)\s+/,a],scope:{2:"title.class"},keywords:c},{relevance:0,match:[a,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:i,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[_]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[g,{begin:n}],relevance:0},E,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:c},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,h],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(p,d),relevance:0}].concat(p,d);h.contains=R,_.contains=R;const U=[{begin:/^\s*=>/,starts:{end:"$",contains:R}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:c,contains:R}}];return d.unshift(p),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:c,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(U).concat(d).concat(R)}}function $7(e){const t=e.regex,n=/(r#)?/,i=t.concat(n,e.UNDERSCORE_IDENT_RE),a=t.concat(n,e.IDENT_RE),l={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,a,t.lookahead(/\s*\(/))},c="([ui](8|16|32|64|128|size)|f(32|64))?",u=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],p=["true","false","Some","None","Ok","Err"],d=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],h=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:h,keyword:u,literal:p,built_in:d},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+c},{begin:"\\b0o([0-7_]+)"+c},{begin:"\\b0x([A-Fa-f0-9_]+)"+c},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+c}],relevance:0},{begin:[/fn/,/\s+/,i],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,i],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,i,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:d,type:h}},{className:"punctuation",begin:"->"},l]}}const q7=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),V7=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Y7=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],K7=[...V7,...Y7],X7=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),W7=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Z7=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Q7=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function J7(e){const t=q7(e),n=Z7,i=W7,a="@[a-z-]+",l="and or not only",u={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+K7.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},u,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Q7.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,u,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:a,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:l,attribute:X7.join(" ")},contains:[{begin:a,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},u,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function eG(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function tG(e){const t=e.regex,n=e.COMMENT("--","$"),i={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},a={begin:/"/,end:/"/,contains:[{match:/""/}]},l=["true","false","unknown"],c=["double precision","large object","with timezone","without timezone"],u=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],p=["add","asc","collation","desc","final","first","last","view"],d=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],h=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],g=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],b=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],y=h,E=[...d,...p].filter(N=>!h.includes(N)),_={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},x={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},S={match:t.concat(/\b/,t.either(...y),/\s*\(/),relevance:0,keywords:{built_in:y}};function C(N){return t.concat(/\b/,t.either(...N.map(R=>R.replace(/\s+/,"\\s+"))),/\b/)}const k={scope:"keyword",match:C(b),relevance:0};function O(N,{exceptions:R,when:P}={}){const I=P;return R=R||[],N.map(G=>G.match(/\|\d+$/)||R.includes(G)?G:I(G)?`${G}|0`:G)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:O(E,{when:N=>N.length<3}),literal:l,type:u,built_in:g},contains:[{scope:"type",match:C(c)},k,S,_,i,a,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,x]}}function mC(e){return e?typeof e=="string"?e:e.source:null}function hc(e){return Vt("(?=",e,")")}function Vt(...e){return e.map(n=>mC(n)).join("")}function nG(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function ir(...e){return"("+(nG(e).capture?"":"?:")+e.map(i=>mC(i)).join("|")+")"}const $b=e=>Vt(/\b/,e,/\w$/.test(e)?/\b/:/\B/),rG=["Protocol","Type"].map($b),p_=["init","self"].map($b),iG=["Any","Self"],Wg=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],h_=["false","nil","true"],oG=["assignment","associativity","higherThan","left","lowerThan","none","right"],aG=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],g_=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],bC=ir(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),yC=ir(bC,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Zg=Vt(bC,yC,"*"),vC=ir(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),vd=ir(vC,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),li=Vt(vC,vd,"*"),Pf=Vt(/[A-Z]/,vd,"*"),sG=["attached","autoclosure",Vt(/convention\(/,ir("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Vt(/objc\(/,li,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],lG=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function cG(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),i=[e.C_LINE_COMMENT_MODE,n],a={match:[/\./,ir(...rG,...p_)],className:{2:"keyword"}},l={match:Vt(/\./,ir(...Wg)),relevance:0},c=Wg.filter(Se=>typeof Se=="string").concat(["_|0"]),u=Wg.filter(Se=>typeof Se!="string").concat(iG).map($b),p={variants:[{className:"keyword",match:ir(...u,...p_)}]},d={$pattern:ir(/\b\w+/,/#\w+/),keyword:c.concat(aG),literal:h_},h=[a,l,p],g={match:Vt(/\./,ir(...g_)),relevance:0},b={className:"built_in",match:Vt(/\b/,ir(...g_),/(?=\()/)},y=[g,b],E={match:/->/,relevance:0},_={className:"operator",relevance:0,variants:[{match:Zg},{match:`\\.(\\.|${yC})+`}]},x=[E,_],S="([0-9]_*)+",C="([0-9a-fA-F]_*)+",k={className:"number",relevance:0,variants:[{match:`\\b(${S})(\\.(${S}))?([eE][+-]?(${S}))?\\b`},{match:`\\b0x(${C})(\\.(${C}))?([pP][+-]?(${S}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},O=(Se="")=>({className:"subst",variants:[{match:Vt(/\\/,Se,/[0\\tnr"']/)},{match:Vt(/\\/,Se,/u\{[0-9a-fA-F]{1,8}\}/)}]}),N=(Se="")=>({className:"subst",match:Vt(/\\/,Se,/[\t ]*(?:[\r\n]|\r\n)/)}),R=(Se="")=>({className:"subst",label:"interpol",begin:Vt(/\\/,Se,/\(/),end:/\)/}),P=(Se="")=>({begin:Vt(Se,/"""/),end:Vt(/"""/,Se),contains:[O(Se),N(Se),R(Se)]}),I=(Se="")=>({begin:Vt(Se,/"/),end:Vt(/"/,Se),contains:[O(Se),R(Se)]}),G={className:"string",variants:[P(),P("#"),P("##"),P("###"),I(),I("#"),I("##"),I("###")]},U=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],X={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:U},$=Se=>{const Ne=Vt(Se,/\//),ze=Vt(/\//,Se);return{begin:Ne,end:ze,contains:[...U,{scope:"comment",begin:`#(?!.*${ze})`,end:/$/}]}},W={scope:"regexp",variants:[$("###"),$("##"),$("#"),X]},V={match:Vt(/`/,li,/`/)},H={className:"variable",match:/\$\d+/},B={className:"variable",match:`\\$${vd}+`},q=[V,H,B],Q={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:lG,contains:[...x,k,G]}]}},ee={scope:"keyword",match:Vt(/@/,ir(...sG),hc(ir(/\(/,/\s+/)))},M={scope:"meta",match:Vt(/@/,li)},D=[Q,ee,M],Z={match:hc(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Vt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,vd,"+")},{className:"type",match:Pf,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Vt(/\s+&\s+/,hc(Pf)),relevance:0}]},z={begin:/</,end:/>/,keywords:d,contains:[...i,...h,...D,E,Z]};Z.contains.push(z);const le={match:Vt(li,/\s*:/),keywords:"_|0",relevance:0},ce={begin:/\(/,end:/\)/,relevance:0,keywords:d,contains:["self",le,...i,W,...h,...y,...x,k,G,...q,...D,Z]},ae={begin:/</,end:/>/,keywords:"repeat each",contains:[...i,Z]},be={begin:ir(hc(Vt(li,/\s*:/)),hc(Vt(li,/\s+/,li,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:li}]},Ee={begin:/\(/,end:/\)/,keywords:d,contains:[be,...i,...h,...x,k,G,...D,Z,ce],endsParent:!0,illegal:/["']/},ye={match:[/(func|macro)/,/\s+/,ir(V.match,li,Zg)],className:{1:"keyword",3:"title.function"},contains:[ae,Ee,t],illegal:[/\[/,/%/]},De={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ae,Ee,t],illegal:/\[|%/},qe={match:[/operator/,/\s+/,Zg],className:{1:"keyword",3:"title"}},Te={begin:[/precedencegroup/,/\s+/,Pf],className:{1:"keyword",3:"title"},contains:[Z],keywords:[...oG,...h_],end:/}/},$e={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Xe={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},at={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,li,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:d,contains:[ae,...h,{begin:/:/,end:/\{/,keywords:d,contains:[{scope:"title.class.inherited",match:Pf},...h],relevance:0}]};for(const Se of G.variants){const Ne=Se.contains.find(ke=>ke.label==="interpol");Ne.keywords=d;const ze=[...h,...y,...x,k,G,...q];Ne.contains=[...ze,{begin:/\(/,end:/\)/,contains:["self",...ze]}]}return{name:"Swift",keywords:d,contains:[...i,ye,De,$e,Xe,at,qe,Te,{beginKeywords:"import",end:/$/,contains:[...i],relevance:0},W,...h,...y,...x,k,G,...q,...D,Z,ce]}}const Ed="[A-Za-z$_][0-9A-Za-z$_]*",EC=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],SC=["true","false","null","undefined","NaN","Infinity"],xC=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],_C=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],wC=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],RC=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],TC=[].concat(wC,xC,_C);function uG(e){const t=e.regex,n=(Q,{after:ee})=>{const M="</"+Q[0].slice(1);return Q.input.indexOf(M,ee)!==-1},i=Ed,a={begin:"<>",end:"</>"},l=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,ee)=>{const M=Q[0].length+Q.index,D=Q.input[M];if(D==="<"||D===","){ee.ignoreMatch();return}D===">"&&(n(Q,{after:M})||ee.ignoreMatch());let Z;const z=Q.input.substring(M);if(Z=z.match(/^\s*=/)){ee.ignoreMatch();return}if((Z=z.match(/^\s+extends\s+/))&&Z.index===0){ee.ignoreMatch();return}}},u={$pattern:Ed,keyword:EC,literal:SC,built_in:TC,"variable.language":RC},p="[0-9](_?[0-9])*",d=`\\.(${p})`,h="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${h})((${d})|\\.)?|(${d}))[eE][+-]?(${p})\\b`},{begin:`\\b(${h})\\b((${d})\\b|\\.)?|(${d})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},b={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},y={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"xml"}},E={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"css"}},_={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"graphql"}},x={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,b]},C={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},k=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,y,E,_,x,{match:/\$\d+/},g];b.contains=k.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(k)});const O=[].concat(C,b.contains),N=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(O)}]),R={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:N},P={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,t.concat(i,"(",t.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},I={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...xC,..._C]}},G={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[R],illegal:/%/},X={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function $(Q){return t.concat("(?!",Q.join("|"),")")}const W={match:t.concat(/\b/,$([...wC,"super","import"].map(Q=>`${Q}\\s*\\(`)),i,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},V={begin:t.concat(/\./,t.lookahead(t.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},H={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},R]},B="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",q={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(B)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[R]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:N,CLASS_REFERENCE:I},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),G,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,y,E,_,x,C,{match:/\$\d+/},g,I,{scope:"attr",match:i+t.lookahead(":"),relevance:0},q,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,e.REGEXP_MODE,{className:"function",begin:B,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:N}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:l},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[R,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},V,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[R]},W,X,P,H,{match:/\$[(.]/}]}}function fG(e){const t=e.regex,n=uG(e),i=Ed,a=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],l={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},c={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:a},contains:[n.exports.CLASS_REFERENCE]},u={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},p=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],d={$pattern:Ed,keyword:EC.concat(p),literal:SC,built_in:TC.concat(a),"variable.language":RC},h={className:"meta",begin:"@"+i},g=(_,x,S)=>{const C=_.contains.findIndex(k=>k.label===x);if(C===-1)throw new Error("can not find mode to replace");_.contains.splice(C,1,S)};Object.assign(n.keywords,d),n.exports.PARAMS_CONTAINS.push(h);const b=n.contains.find(_=>_.scope==="attr"),y=Object.assign({},b,{match:t.concat(i,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,b,y]),n.contains=n.contains.concat([h,l,c,y]),g(n,"shebang",e.SHEBANG()),g(n,"use_strict",u);const E=n.contains.find(_=>_.label==="func.def");return E.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function dG(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},i={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},a=/\d{1,2}\/\d{1,2}\/\d{4}/,l=/\d{4}-\d{1,2}-\d{1,2}/,c=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,u=/\d{1,2}(:\d{1,2}){1,2}/,p={className:"literal",variants:[{begin:t.concat(/# */,t.either(l,a),/ *#/)},{begin:t.concat(/# */,u,/ *#/)},{begin:t.concat(/# */,c,/ *#/)},{begin:t.concat(/# */,t.either(l,a),/ +/,t.either(c,u),/ *#/)}]},d={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},h={className:"label",begin:/^\w+:/},g=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),b=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,i,p,d,h,g,b,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[b]}]}}function pG(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),i=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],a={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},l={className:"variable",begin:/\$[\w_]+/},c={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},u={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},p={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},d={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:i},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},l,c,a,e.QUOTE_STRING_MODE,p,d,u]}}function hG(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},l={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},c=e.inherit(l,{begin:/\(/,end:/\)/}),u=e.inherit(e.APOS_STRING_MODE,{className:"string"}),p=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),d={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[a]},{begin:/'/,end:/'/,contains:[a]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[l,p,u,c,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[l,c,p,u]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[p]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[d],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:d}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function gG(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},a={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},l={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},c={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,a]},u=e.inherit(c,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),b={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},y={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},E={begin:/\{/,end:/\}/,contains:[y],illegal:"\\n",relevance:0},_={begin:"\\[",end:"\\]",contains:[y],illegal:"\\n",relevance:0},x=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},b,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},E,_,l,c],S=[...x];return S.pop(),S.push(u),y.contains=S,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:x}}const mG={arduino:Z8,bash:Q8,c:J8,cpp:e7,csharp:t7,css:u7,diff:f7,go:d7,graphql:p7,ini:h7,java:g7,javascript:E7,json:S7,kotlin:_7,less:M7,lua:N7,makefile:I7,markdown:D7,objectivec:L7,perl:P7,php:z7,"php-template":B7,plaintext:U7,python:F7,"python-repl":H7,r:j7,ruby:G7,rust:$7,scss:J7,shell:eG,sql:tG,swift:cG,typescript:fG,vbnet:dG,wasm:pG,xml:hG,yaml:gG};var Qg,m_;function bG(){if(m_)return Qg;m_=1;function e(Y){return Y instanceof Map?Y.clear=Y.delete=Y.set=function(){throw new Error("map is read-only")}:Y instanceof Set&&(Y.add=Y.clear=Y.delete=function(){throw new Error("set is read-only")}),Object.freeze(Y),Object.getOwnPropertyNames(Y).forEach(fe=>{const we=Y[fe],tt=typeof we;(tt==="object"||tt==="function")&&!Object.isFrozen(we)&&e(we)}),Y}class t{constructor(fe){fe.data===void 0&&(fe.data={}),this.data=fe.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(Y){return Y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function i(Y,...fe){const we=Object.create(null);for(const tt in Y)we[tt]=Y[tt];return fe.forEach(function(tt){for(const zt in tt)we[zt]=tt[zt]}),we}const a="</span>",l=Y=>!!Y.scope,c=(Y,{prefix:fe})=>{if(Y.startsWith("language:"))return Y.replace("language:","language-");if(Y.includes(".")){const we=Y.split(".");return[`${fe}${we.shift()}`,...we.map((tt,zt)=>`${tt}${"_".repeat(zt+1)}`)].join(" ")}return`${fe}${Y}`};class u{constructor(fe,we){this.buffer="",this.classPrefix=we.classPrefix,fe.walk(this)}addText(fe){this.buffer+=n(fe)}openNode(fe){if(!l(fe))return;const we=c(fe.scope,{prefix:this.classPrefix});this.span(we)}closeNode(fe){l(fe)&&(this.buffer+=a)}value(){return this.buffer}span(fe){this.buffer+=`<span class="${fe}">`}}const p=(Y={})=>{const fe={children:[]};return Object.assign(fe,Y),fe};class d{constructor(){this.rootNode=p(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(fe){this.top.children.push(fe)}openNode(fe){const we=p({scope:fe});this.add(we),this.stack.push(we)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(fe){return this.constructor._walk(fe,this.rootNode)}static _walk(fe,we){return typeof we=="string"?fe.addText(we):we.children&&(fe.openNode(we),we.children.forEach(tt=>this._walk(fe,tt)),fe.closeNode(we)),fe}static _collapse(fe){typeof fe!="string"&&fe.children&&(fe.children.every(we=>typeof we=="string")?fe.children=[fe.children.join("")]:fe.children.forEach(we=>{d._collapse(we)}))}}class h extends d{constructor(fe){super(),this.options=fe}addText(fe){fe!==""&&this.add(fe)}startScope(fe){this.openNode(fe)}endScope(){this.closeNode()}__addSublanguage(fe,we){const tt=fe.root;we&&(tt.scope=`language:${we}`),this.add(tt)}toHTML(){return new u(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function g(Y){return Y?typeof Y=="string"?Y:Y.source:null}function b(Y){return _("(?=",Y,")")}function y(Y){return _("(?:",Y,")*")}function E(Y){return _("(?:",Y,")?")}function _(...Y){return Y.map(we=>g(we)).join("")}function x(Y){const fe=Y[Y.length-1];return typeof fe=="object"&&fe.constructor===Object?(Y.splice(Y.length-1,1),fe):{}}function S(...Y){return"("+(x(Y).capture?"":"?:")+Y.map(tt=>g(tt)).join("|")+")"}function C(Y){return new RegExp(Y.toString()+"|").exec("").length-1}function k(Y,fe){const we=Y&&Y.exec(fe);return we&&we.index===0}const O=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function N(Y,{joinWith:fe}){let we=0;return Y.map(tt=>{we+=1;const zt=we;let Dt=g(tt),Ue="";for(;Dt.length>0;){const Oe=O.exec(Dt);if(!Oe){Ue+=Dt;break}Ue+=Dt.substring(0,Oe.index),Dt=Dt.substring(Oe.index+Oe[0].length),Oe[0][0]==="\\"&&Oe[1]?Ue+="\\"+String(Number(Oe[1])+zt):(Ue+=Oe[0],Oe[0]==="("&&we++)}return Ue}).map(tt=>`(${tt})`).join(fe)}const R=/\b\B/,P="[a-zA-Z]\\w*",I="[a-zA-Z_]\\w*",G="\\b\\d+(\\.\\d+)?",U="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",X="\\b(0b[01]+)",$="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",W=(Y={})=>{const fe=/^#![ ]*\//;return Y.binary&&(Y.begin=_(fe,/.*\b/,Y.binary,/\b.*/)),i({scope:"meta",begin:fe,end:/$/,relevance:0,"on:begin":(we,tt)=>{we.index!==0&&tt.ignoreMatch()}},Y)},V={begin:"\\\\[\\s\\S]",relevance:0},H={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[V]},B={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[V]},q={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Q=function(Y,fe,we={}){const tt=i({scope:"comment",begin:Y,end:fe,contains:[]},we);tt.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const zt=S("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return tt.contains.push({begin:_(/[ ]+/,"(",zt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),tt},ee=Q("//","$"),M=Q("/\\*","\\*/"),D=Q("#","$"),Z={scope:"number",begin:G,relevance:0},z={scope:"number",begin:U,relevance:0},le={scope:"number",begin:X,relevance:0},ce={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[V,{begin:/\[/,end:/\]/,relevance:0,contains:[V]}]},ae={scope:"title",begin:P,relevance:0},be={scope:"title",begin:I,relevance:0},Ee={begin:"\\.\\s*"+I,relevance:0};var De=Object.freeze({__proto__:null,APOS_STRING_MODE:H,BACKSLASH_ESCAPE:V,BINARY_NUMBER_MODE:le,BINARY_NUMBER_RE:X,COMMENT:Q,C_BLOCK_COMMENT_MODE:M,C_LINE_COMMENT_MODE:ee,C_NUMBER_MODE:z,C_NUMBER_RE:U,END_SAME_AS_BEGIN:function(Y){return Object.assign(Y,{"on:begin":(fe,we)=>{we.data._beginMatch=fe[1]},"on:end":(fe,we)=>{we.data._beginMatch!==fe[1]&&we.ignoreMatch()}})},HASH_COMMENT_MODE:D,IDENT_RE:P,MATCH_NOTHING_RE:R,METHOD_GUARD:Ee,NUMBER_MODE:Z,NUMBER_RE:G,PHRASAL_WORDS_MODE:q,QUOTE_STRING_MODE:B,REGEXP_MODE:ce,RE_STARTERS_RE:$,SHEBANG:W,TITLE_MODE:ae,UNDERSCORE_IDENT_RE:I,UNDERSCORE_TITLE_MODE:be});function qe(Y,fe){Y.input[Y.index-1]==="."&&fe.ignoreMatch()}function Te(Y,fe){Y.className!==void 0&&(Y.scope=Y.className,delete Y.className)}function $e(Y,fe){fe&&Y.beginKeywords&&(Y.begin="\\b("+Y.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",Y.__beforeBegin=qe,Y.keywords=Y.keywords||Y.beginKeywords,delete Y.beginKeywords,Y.relevance===void 0&&(Y.relevance=0))}function Xe(Y,fe){Array.isArray(Y.illegal)&&(Y.illegal=S(...Y.illegal))}function at(Y,fe){if(Y.match){if(Y.begin||Y.end)throw new Error("begin & end are not supported with match");Y.begin=Y.match,delete Y.match}}function Se(Y,fe){Y.relevance===void 0&&(Y.relevance=1)}const Ne=(Y,fe)=>{if(!Y.beforeMatch)return;if(Y.starts)throw new Error("beforeMatch cannot be used with starts");const we=Object.assign({},Y);Object.keys(Y).forEach(tt=>{delete Y[tt]}),Y.keywords=we.keywords,Y.begin=_(we.beforeMatch,b(we.begin)),Y.starts={relevance:0,contains:[Object.assign(we,{endsParent:!0})]},Y.relevance=0,delete we.beforeMatch},ze=["of","and","for","in","not","or","if","then","parent","list","value"],ke="keyword";function Fe(Y,fe,we=ke){const tt=Object.create(null);return typeof Y=="string"?zt(we,Y.split(" ")):Array.isArray(Y)?zt(we,Y):Object.keys(Y).forEach(function(Dt){Object.assign(tt,Fe(Y[Dt],fe,Dt))}),tt;function zt(Dt,Ue){fe&&(Ue=Ue.map(Oe=>Oe.toLowerCase())),Ue.forEach(function(Oe){const Je=Oe.split("|");tt[Je[0]]=[Dt,me(Je[0],Je[1])]})}}function me(Y,fe){return fe?Number(fe):Ae(Y)?0:1}function Ae(Y){return ze.includes(Y.toLowerCase())}const ge={},ve=Y=>{console.error(Y)},Ce=(Y,...fe)=>{console.log(`WARN: ${Y}`,...fe)},ne=(Y,fe)=>{ge[`${Y}/${fe}`]||(console.log(`Deprecated as of ${Y}. ${fe}`),ge[`${Y}/${fe}`]=!0)},ue=new Error;function Ie(Y,fe,{key:we}){let tt=0;const zt=Y[we],Dt={},Ue={};for(let Oe=1;Oe<=fe.length;Oe++)Ue[Oe+tt]=zt[Oe],Dt[Oe+tt]=!0,tt+=C(fe[Oe-1]);Y[we]=Ue,Y[we]._emit=Dt,Y[we]._multi=!0}function Ve(Y){if(Array.isArray(Y.begin)){if(Y.skip||Y.excludeBegin||Y.returnBegin)throw ve("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ue;if(typeof Y.beginScope!="object"||Y.beginScope===null)throw ve("beginScope must be object"),ue;Ie(Y,Y.begin,{key:"beginScope"}),Y.begin=N(Y.begin,{joinWith:""})}}function it(Y){if(Array.isArray(Y.end)){if(Y.skip||Y.excludeEnd||Y.returnEnd)throw ve("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ue;if(typeof Y.endScope!="object"||Y.endScope===null)throw ve("endScope must be object"),ue;Ie(Y,Y.end,{key:"endScope"}),Y.end=N(Y.end,{joinWith:""})}}function He(Y){Y.scope&&typeof Y.scope=="object"&&Y.scope!==null&&(Y.beginScope=Y.scope,delete Y.scope)}function We(Y){He(Y),typeof Y.beginScope=="string"&&(Y.beginScope={_wrap:Y.beginScope}),typeof Y.endScope=="string"&&(Y.endScope={_wrap:Y.endScope}),Ve(Y),it(Y)}function ut(Y){function fe(Ue,Oe){return new RegExp(g(Ue),"m"+(Y.case_insensitive?"i":"")+(Y.unicodeRegex?"u":"")+(Oe?"g":""))}class we{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Oe,Je){Je.position=this.position++,this.matchIndexes[this.matchAt]=Je,this.regexes.push([Je,Oe]),this.matchAt+=C(Oe)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Oe=this.regexes.map(Je=>Je[1]);this.matcherRe=fe(N(Oe,{joinWith:"|"}),!0),this.lastIndex=0}exec(Oe){this.matcherRe.lastIndex=this.lastIndex;const Je=this.matcherRe.exec(Oe);if(!Je)return null;const sn=Je.findIndex((tr,no)=>no>0&&tr!==void 0),Zt=this.matchIndexes[sn];return Je.splice(0,sn),Object.assign(Je,Zt)}}class tt{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Oe){if(this.multiRegexes[Oe])return this.multiRegexes[Oe];const Je=new we;return this.rules.slice(Oe).forEach(([sn,Zt])=>Je.addRule(sn,Zt)),Je.compile(),this.multiRegexes[Oe]=Je,Je}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Oe,Je){this.rules.push([Oe,Je]),Je.type==="begin"&&this.count++}exec(Oe){const Je=this.getMatcher(this.regexIndex);Je.lastIndex=this.lastIndex;let sn=Je.exec(Oe);if(this.resumingScanAtSamePosition()&&!(sn&&sn.index===this.lastIndex)){const Zt=this.getMatcher(0);Zt.lastIndex=this.lastIndex+1,sn=Zt.exec(Oe)}return sn&&(this.regexIndex+=sn.position+1,this.regexIndex===this.count&&this.considerAll()),sn}}function zt(Ue){const Oe=new tt;return Ue.contains.forEach(Je=>Oe.addRule(Je.begin,{rule:Je,type:"begin"})),Ue.terminatorEnd&&Oe.addRule(Ue.terminatorEnd,{type:"end"}),Ue.illegal&&Oe.addRule(Ue.illegal,{type:"illegal"}),Oe}function Dt(Ue,Oe){const Je=Ue;if(Ue.isCompiled)return Je;[Te,at,We,Ne].forEach(Zt=>Zt(Ue,Oe)),Y.compilerExtensions.forEach(Zt=>Zt(Ue,Oe)),Ue.__beforeBegin=null,[$e,Xe,Se].forEach(Zt=>Zt(Ue,Oe)),Ue.isCompiled=!0;let sn=null;return typeof Ue.keywords=="object"&&Ue.keywords.$pattern&&(Ue.keywords=Object.assign({},Ue.keywords),sn=Ue.keywords.$pattern,delete Ue.keywords.$pattern),sn=sn||/\w+/,Ue.keywords&&(Ue.keywords=Fe(Ue.keywords,Y.case_insensitive)),Je.keywordPatternRe=fe(sn,!0),Oe&&(Ue.begin||(Ue.begin=/\B|\b/),Je.beginRe=fe(Je.begin),!Ue.end&&!Ue.endsWithParent&&(Ue.end=/\B|\b/),Ue.end&&(Je.endRe=fe(Je.end)),Je.terminatorEnd=g(Je.end)||"",Ue.endsWithParent&&Oe.terminatorEnd&&(Je.terminatorEnd+=(Ue.end?"|":"")+Oe.terminatorEnd)),Ue.illegal&&(Je.illegalRe=fe(Ue.illegal)),Ue.contains||(Ue.contains=[]),Ue.contains=[].concat(...Ue.contains.map(function(Zt){return rn(Zt==="self"?Ue:Zt)})),Ue.contains.forEach(function(Zt){Dt(Zt,Je)}),Ue.starts&&Dt(Ue.starts,Oe),Je.matcher=zt(Je),Je}if(Y.compilerExtensions||(Y.compilerExtensions=[]),Y.contains&&Y.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return Y.classNameAliases=i(Y.classNameAliases||{}),Dt(Y)}function At(Y){return Y?Y.endsWithParent||At(Y.starts):!1}function rn(Y){return Y.variants&&!Y.cachedVariants&&(Y.cachedVariants=Y.variants.map(function(fe){return i(Y,{variants:null},fe)})),Y.cachedVariants?Y.cachedVariants:At(Y)?i(Y,{starts:Y.starts?i(Y.starts):null}):Object.isFrozen(Y)?i(Y):Y}var xt="11.11.1";class On extends Error{constructor(fe,we){super(fe),this.name="HTMLInjectionError",this.html=we}}const st=n,cn=i,Sn=Symbol("nomatch"),gn=7,zn=function(Y){const fe=Object.create(null),we=Object.create(null),tt=[];let zt=!0;const Dt="Could not find the language '{}', did you forget to load/include a language module?",Ue={disableAutodetect:!0,name:"Plain text",contains:[]};let Oe={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:h};function Je(xe){return Oe.noHighlightRe.test(xe)}function sn(xe){let Ke=xe.className+" ";Ke+=xe.parentNode?xe.parentNode.className:"";const bt=Oe.languageDetectRe.exec(Ke);if(bt){const Bt=nr(bt[1]);return Bt||(Ce(Dt.replace("{}",bt[1])),Ce("Falling back to no-highlight mode for this block.",xe)),Bt?bt[1]:"no-highlight"}return Ke.split(/\s+/).find(Bt=>Je(Bt)||nr(Bt))}function Zt(xe,Ke,bt){let Bt="",bn="";typeof Ke=="object"?(Bt=xe,bt=Ke.ignoreIllegals,bn=Ke.language):(ne("10.7.0","highlight(lang, code, ...args) has been deprecated."),ne("10.7.0",`Please use highlight(code, options) instead.
59
+ https://github.com/highlightjs/highlight.js/issues/2277`),bn=xe,Bt=Ke),bt===void 0&&(bt=!0);const Kn={code:Bt,language:bn};na("before:highlight",Kn);const wr=Kn.result?Kn.result:tr(Kn.language,Kn.code,bt);return wr.code=Kn.code,na("after:highlight",wr),wr}function tr(xe,Ke,bt,Bt){const bn=Object.create(null);function Kn(Re,je){return Re.keywords[je]}function wr(){if(!rt.keywords){_n.addText(Ut);return}let Re=0;rt.keywordPatternRe.lastIndex=0;let je=rt.keywordPatternRe.exec(Ut),ct="";for(;je;){ct+=Ut.substring(Re,je.index);const _t=Bn.case_insensitive?je[0].toLowerCase():je[0],ln=Kn(rt,_t);if(ln){const[Ur,ll]=ln;if(_n.addText(ct),ct="",bn[_t]=(bn[_t]||0)+1,bn[_t]<=gn&&(so+=ll),Ur.startsWith("_"))ct+=je[0];else{const Qc=Bn.classNameAliases[Ur]||Ur;Rr(je[0],Qc)}}else ct+=je[0];Re=rt.keywordPatternRe.lastIndex,je=rt.keywordPatternRe.exec(Ut)}ct+=Ut.substring(Re),_n.addText(ct)}function lr(){if(Ut==="")return;let Re=null;if(typeof rt.subLanguage=="string"){if(!fe[rt.subLanguage]){_n.addText(Ut);return}Re=tr(rt.subLanguage,Ut,!0,Zc[rt.subLanguage]),Zc[rt.subLanguage]=Re._top}else Re=ro(Ut,rt.subLanguage.length?rt.subLanguage:null);rt.relevance>0&&(so+=Re.relevance),_n.__addSublanguage(Re._emitter,Re.language)}function Qt(){rt.subLanguage!=null?lr():wr(),Ut=""}function Rr(Re,je){Re!==""&&(_n.startScope(je),_n.addText(Re),_n.endScope())}function Xc(Re,je){let ct=1;const _t=je.length-1;for(;ct<=_t;){if(!Re._emit[ct]){ct++;continue}const ln=Bn.classNameAliases[Re[ct]]||Re[ct],Ur=je[ct];ln?Rr(Ur,ln):(Ut=Ur,wr(),Ut=""),ct++}}function Ka(Re,je){return Re.scope&&typeof Re.scope=="string"&&_n.openNode(Bn.classNameAliases[Re.scope]||Re.scope),Re.beginScope&&(Re.beginScope._wrap?(Rr(Ut,Bn.classNameAliases[Re.beginScope._wrap]||Re.beginScope._wrap),Ut=""):Re.beginScope._multi&&(Xc(Re.beginScope,je),Ut="")),rt=Object.create(Re,{parent:{value:rt}}),rt}function ol(Re,je,ct){let _t=k(Re.endRe,ct);if(_t){if(Re["on:end"]){const ln=new t(Re);Re["on:end"](je,ln),ln.isMatchIgnored&&(_t=!1)}if(_t){for(;Re.endsParent&&Re.parent;)Re=Re.parent;return Re}}if(Re.endsWithParent)return ol(Re.parent,je,ct)}function Xa(Re){return rt.matcher.regexIndex===0?(Ut+=Re[0],1):(lo=!0,0)}function Xd(Re){const je=Re[0],ct=Re.rule,_t=new t(ct),ln=[ct.__beforeBegin,ct["on:begin"]];for(const Ur of ln)if(Ur&&(Ur(Re,_t),_t.isMatchIgnored))return Xa(je);return ct.skip?Ut+=je:(ct.excludeBegin&&(Ut+=je),Qt(),!ct.returnBegin&&!ct.excludeBegin&&(Ut=je)),Ka(ct,Re),ct.returnBegin?0:je.length}function cr(Re){const je=Re[0],ct=Ke.substring(Re.index),_t=ol(rt,Re,ct);if(!_t)return Sn;const ln=rt;rt.endScope&&rt.endScope._wrap?(Qt(),Rr(je,rt.endScope._wrap)):rt.endScope&&rt.endScope._multi?(Qt(),Xc(rt.endScope,Re)):ln.skip?Ut+=je:(ln.returnEnd||ln.excludeEnd||(Ut+=je),Qt(),ln.excludeEnd&&(Ut=je));do rt.scope&&_n.closeNode(),!rt.skip&&!rt.subLanguage&&(so+=rt.relevance),rt=rt.parent;while(rt!==_t.parent);return _t.starts&&Ka(_t.starts,Re),ln.returnEnd?0:je.length}function al(){const Re=[];for(let je=rt;je!==Bn;je=je.parent)je.scope&&Re.unshift(je.scope);Re.forEach(je=>_n.openNode(je))}let ra={};function Wa(Re,je){const ct=je&&je[0];if(Ut+=Re,ct==null)return Qt(),0;if(ra.type==="begin"&&je.type==="end"&&ra.index===je.index&&ct===""){if(Ut+=Ke.slice(je.index,je.index+1),!zt){const _t=new Error(`0 width match regex (${xe})`);throw _t.languageName=xe,_t.badRule=ra.rule,_t}return 1}if(ra=je,je.type==="begin")return Xd(je);if(je.type==="illegal"&&!bt){const _t=new Error('Illegal lexeme "'+ct+'" for mode "'+(rt.scope||"<unnamed>")+'"');throw _t.mode=rt,_t}else if(je.type==="end"){const _t=cr(je);if(_t!==Sn)return _t}if(je.type==="illegal"&&ct==="")return Ut+=`
60
+ `,1;if(sl>1e5&&sl>je.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ut+=ct,ct.length}const Bn=nr(xe);if(!Bn)throw ve(Dt.replace("{}",xe)),new Error('Unknown language: "'+xe+'"');const Wc=ut(Bn);let Za="",rt=Bt||Wc;const Zc={},_n=new Oe.__emitter(Oe);al();let Ut="",so=0,Ri=0,sl=0,lo=!1;try{if(Bn.__emitTokens)Bn.__emitTokens(Ke,_n);else{for(rt.matcher.considerAll();;){sl++,lo?lo=!1:rt.matcher.considerAll(),rt.matcher.lastIndex=Ri;const Re=rt.matcher.exec(Ke);if(!Re)break;const je=Ke.substring(Ri,Re.index),ct=Wa(je,Re);Ri=Re.index+ct}Wa(Ke.substring(Ri))}return _n.finalize(),Za=_n.toHTML(),{language:xe,value:Za,relevance:so,illegal:!1,_emitter:_n,_top:rt}}catch(Re){if(Re.message&&Re.message.includes("Illegal"))return{language:xe,value:st(Ke),illegal:!0,relevance:0,_illegalBy:{message:Re.message,index:Ri,context:Ke.slice(Ri-100,Ri+100),mode:Re.mode,resultSoFar:Za},_emitter:_n};if(zt)return{language:xe,value:st(Ke),illegal:!1,relevance:0,errorRaised:Re,_emitter:_n,_top:rt};throw Re}}function no(xe){const Ke={value:st(xe),illegal:!1,relevance:0,_top:Ue,_emitter:new Oe.__emitter(Oe)};return Ke._emitter.addText(xe),Ke}function ro(xe,Ke){Ke=Ke||Oe.languages||Object.keys(fe);const bt=no(xe),Bt=Ke.filter(nr).filter(oo).map(Qt=>tr(Qt,xe,!1));Bt.unshift(bt);const bn=Bt.sort((Qt,Rr)=>{if(Qt.relevance!==Rr.relevance)return Rr.relevance-Qt.relevance;if(Qt.language&&Rr.language){if(nr(Qt.language).supersetOf===Rr.language)return 1;if(nr(Rr.language).supersetOf===Qt.language)return-1}return 0}),[Kn,wr]=bn,lr=Kn;return lr.secondBest=wr,lr}function Br(xe,Ke,bt){const Bt=Ke&&we[Ke]||bt;xe.classList.add("hljs"),xe.classList.add(`language-${Bt}`)}function mn(xe){let Ke=null;const bt=sn(xe);if(Je(bt))return;if(na("before:highlightElement",{el:xe,language:bt}),xe.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",xe);return}if(xe.children.length>0&&(Oe.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(xe)),Oe.throwUnescapedHTML))throw new On("One of your code blocks includes unescaped HTML.",xe.innerHTML);Ke=xe;const Bt=Ke.textContent,bn=bt?Zt(Bt,{language:bt,ignoreIllegals:!0}):ro(Bt);xe.innerHTML=bn.value,xe.dataset.highlighted="yes",Br(xe,bt,bn.language),xe.result={language:bn.language,re:bn.relevance,relevance:bn.relevance},bn.secondBest&&(xe.secondBest={language:bn.secondBest.language,relevance:bn.secondBest.relevance}),na("after:highlightElement",{el:xe,result:bn,text:Bt})}function Yn(xe){Oe=cn(Oe,xe)}const io=()=>{Ya(),ne("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function rl(){Ya(),ne("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Vc=!1;function Ya(){function xe(){Ya()}if(document.readyState==="loading"){Vc||window.addEventListener("DOMContentLoaded",xe,!1),Vc=!0;return}document.querySelectorAll(Oe.cssSelector).forEach(mn)}function Yc(xe,Ke){let bt=null;try{bt=Ke(Y)}catch(Bt){if(ve("Language definition for '{}' could not be registered.".replace("{}",xe)),zt)ve(Bt);else throw Bt;bt=Ue}bt.name||(bt.name=xe),fe[xe]=bt,bt.rawDefinition=Ke.bind(null,Y),bt.aliases&&_i(bt.aliases,{languageName:xe})}function ta(xe){delete fe[xe];for(const Ke of Object.keys(we))we[Ke]===xe&&delete we[Ke]}function il(){return Object.keys(fe)}function nr(xe){return xe=(xe||"").toLowerCase(),fe[xe]||fe[we[xe]]}function _i(xe,{languageName:Ke}){typeof xe=="string"&&(xe=[xe]),xe.forEach(bt=>{we[bt.toLowerCase()]=Ke})}function oo(xe){const Ke=nr(xe);return Ke&&!Ke.disableAutodetect}function ao(xe){xe["before:highlightBlock"]&&!xe["before:highlightElement"]&&(xe["before:highlightElement"]=Ke=>{xe["before:highlightBlock"](Object.assign({block:Ke.el},Ke))}),xe["after:highlightBlock"]&&!xe["after:highlightElement"]&&(xe["after:highlightElement"]=Ke=>{xe["after:highlightBlock"](Object.assign({block:Ke.el},Ke))})}function xn(xe){ao(xe),tt.push(xe)}function Kc(xe){const Ke=tt.indexOf(xe);Ke!==-1&&tt.splice(Ke,1)}function na(xe,Ke){const bt=xe;tt.forEach(function(Bt){Bt[bt]&&Bt[bt](Ke)})}function wi(xe){return ne("10.7.0","highlightBlock will be removed entirely in v12.0"),ne("10.7.0","Please use highlightElement now."),mn(xe)}Object.assign(Y,{highlight:Zt,highlightAuto:ro,highlightAll:Ya,highlightElement:mn,highlightBlock:wi,configure:Yn,initHighlighting:io,initHighlightingOnLoad:rl,registerLanguage:Yc,unregisterLanguage:ta,listLanguages:il,getLanguage:nr,registerAliases:_i,autoDetection:oo,inherit:cn,addPlugin:xn,removePlugin:Kc}),Y.debugMode=function(){zt=!1},Y.safeMode=function(){zt=!0},Y.versionString=xt,Y.regex={concat:_,lookahead:b,either:S,optional:E,anyNumberOfTimes:y};for(const xe in De)typeof De[xe]=="object"&&e(De[xe]);return Object.assign(Y,De),Y},Wt=zn({});return Wt.newInstance=()=>zn({}),Qg=Wt,Wt.HighlightJS=Wt,Wt.default=Wt,Qg}var yG=bG();const vG=Sd(yG),b_={},EG="hljs-";function SG(e){const t=vG.newInstance();return e&&l(e),{highlight:n,highlightAuto:i,listLanguages:a,register:l,registerAlias:c,registered:u};function n(p,d,h){const g=h||b_,b=typeof g.prefix=="string"?g.prefix:EG;if(!t.getLanguage(p))throw new Error("Unknown language: `"+p+"` is not registered");t.configure({__emitter:xG,classPrefix:b});const y=t.highlight(d,{ignoreIllegals:!0,language:p});if(y.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:y.errorRaised});const E=y._emitter.root,_=E.data;return _.language=y.language,_.relevance=y.relevance,E}function i(p,d){const g=(d||b_).subset||a();let b=-1,y=0,E;for(;++b<g.length;){const _=g[b];if(!t.getLanguage(_))continue;const x=n(_,p,d);x.data&&x.data.relevance!==void 0&&x.data.relevance>y&&(y=x.data.relevance,E=x)}return E||{type:"root",children:[],data:{language:void 0,relevance:y}}}function a(){return t.listLanguages()}function l(p,d){if(typeof p=="string")t.registerLanguage(p,d);else{let h;for(h in p)Object.hasOwn(p,h)&&t.registerLanguage(h,p[h])}}function c(p,d){if(typeof p=="string")t.registerAliases(typeof d=="string"?d:[...d],{languageName:p});else{let h;for(h in p)if(Object.hasOwn(p,h)){const g=p[h];t.registerAliases(typeof g=="string"?g:[...g],{languageName:h})}}}function u(p){return!!t.getLanguage(p)}}class xG{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],i=n.children[n.children.length-1];i&&i.type==="text"?i.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const i=this.stack[this.stack.length-1],a=t.root.children;n?i.children.push({type:"element",tagName:"span",properties:{className:[n]},children:a}):i.children.push(...a)}openNode(t){const n=this,i=t.split(".").map(function(c,u){return u?c+"_".repeat(u):n.options.classPrefix+c}),a=this.stack[this.stack.length-1],l={type:"element",tagName:"span",properties:{className:i},children:[]};a.children.push(l),this.stack.push(l)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const _G={};function YG(e){const t=e||_G,n=t.aliases,i=t.detect||!1,a=t.languages||mG,l=t.plainText,c=t.prefix,u=t.subset;let p="hljs";const d=SG(a);if(n&&d.registerAlias(n),c){const h=c.indexOf("-");p=h===-1?c:c.slice(0,h)}return function(h,g){Kd(h,"element",function(b,y,E){if(b.tagName!=="code"||!E||E.type!=="element"||E.tagName!=="pre")return;const _=wG(b);if(_===!1||!_&&!i||_&&l&&l.includes(_))return;Array.isArray(b.properties.className)||(b.properties.className=[]),b.properties.className.includes(p)||b.properties.className.unshift(p);const x=G8(b,{whitespace:"pre"});let S;try{S=_?d.highlight(_,x,{prefix:c}):d.highlightAuto(x,{prefix:c,subset:u})}catch(C){const k=C;if(_&&/Unknown language/.test(k.message)){g.message("Cannot highlight as `"+_+"`, it’s not registered",{ancestors:[E,b],cause:k,place:b.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw k}!_&&S.data&&S.data.language&&b.properties.className.push("language-"+S.data.language),S.children.length>0&&(b.children=S.children)})}}function wG(e){const t=e.properties.className;let n=-1;if(!Array.isArray(t))return;let i;for(;++n<t.length;){const a=String(t[n]);if(a==="no-highlight"||a==="nohighlight")return!1;!i&&a.slice(0,5)==="lang-"&&(i=a.slice(5)),!i&&a.slice(0,9)==="language-"&&(i=a.slice(9))}return i}export{HG as A,_R as B,F as C,A as D,YG as E,VG as F,ni as G,jG as H,kG as I,$i as J,jm as K,Hc as L,qG as M,G4 as R,rU as S,AG as a,e3 as b,OG as c,o3 as d,MG as e,d3 as f,NG as g,IG as h,DG as i,_3 as j,LG as k,sx as l,PG as m,zG as n,lx as o,BG as p,UG as q,F3 as r,FR as s,CG as t,J4 as u,GG as v,$G as w,Ot as x,BU as y,FG as z};