lorenz 0.1.9 → 0.1.11

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 (71) hide show
  1. package/README.md +2 -2
  2. package/RELEASE-MANIFEST.json +1 -1
  3. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/bundle.js +1 -1
  4. package/node_modules/@lorenz/config/dist/parse.d.ts.map +1 -1
  5. package/node_modules/@lorenz/config/dist/parse.js +98 -26
  6. package/node_modules/@lorenz/config/dist/parse.js.map +1 -1
  7. package/node_modules/@lorenz/dashboard/dist/assets/index-CInuwNxv.js +227 -0
  8. package/node_modules/@lorenz/dashboard/dist/index.html +1 -1
  9. package/node_modules/@lorenz/domain/dist/index.d.ts +6 -0
  10. package/node_modules/@lorenz/domain/dist/index.d.ts.map +1 -1
  11. package/node_modules/@lorenz/domain/dist/index.js +67 -0
  12. package/node_modules/@lorenz/domain/dist/index.js.map +1 -1
  13. package/node_modules/@lorenz/jira-tracker/dist/client.d.ts +13 -2
  14. package/node_modules/@lorenz/jira-tracker/dist/client.d.ts.map +1 -1
  15. package/node_modules/@lorenz/jira-tracker/dist/client.js +90 -34
  16. package/node_modules/@lorenz/jira-tracker/dist/client.js.map +1 -1
  17. package/node_modules/@lorenz/jira-tracker/dist/tools.d.ts.map +1 -1
  18. package/node_modules/@lorenz/jira-tracker/dist/tools.js +2 -2
  19. package/node_modules/@lorenz/jira-tracker/dist/tools.js.map +1 -1
  20. package/node_modules/@lorenz/linear-tracker/dist/client.d.ts +22 -0
  21. package/node_modules/@lorenz/linear-tracker/dist/client.d.ts.map +1 -1
  22. package/node_modules/@lorenz/linear-tracker/dist/client.js +357 -107
  23. package/node_modules/@lorenz/linear-tracker/dist/client.js.map +1 -1
  24. package/node_modules/@lorenz/linear-tracker/dist/diagnostics.d.ts +3 -0
  25. package/node_modules/@lorenz/linear-tracker/dist/diagnostics.d.ts.map +1 -0
  26. package/node_modules/@lorenz/linear-tracker/dist/diagnostics.js +30 -0
  27. package/node_modules/@lorenz/linear-tracker/dist/diagnostics.js.map +1 -0
  28. package/node_modules/@lorenz/linear-tracker/dist/tools.d.ts.map +1 -1
  29. package/node_modules/@lorenz/linear-tracker/dist/tools.js +8 -33
  30. package/node_modules/@lorenz/linear-tracker/dist/tools.js.map +1 -1
  31. package/node_modules/@lorenz/orchestrator/dist/codec.js +2 -0
  32. package/node_modules/@lorenz/orchestrator/dist/codec.js.map +1 -1
  33. package/node_modules/@lorenz/orchestrator/dist/index.d.ts.map +1 -1
  34. package/node_modules/@lorenz/orchestrator/dist/index.js +15 -0
  35. package/node_modules/@lorenz/orchestrator/dist/index.js.map +1 -1
  36. package/node_modules/@lorenz/presenter/dist/index.d.ts.map +1 -1
  37. package/node_modules/@lorenz/presenter/dist/index.js +7 -7
  38. package/node_modules/@lorenz/presenter/dist/index.js.map +1 -1
  39. package/node_modules/@lorenz/projections/dist/index.d.ts.map +1 -1
  40. package/node_modules/@lorenz/projections/dist/index.js +1 -0
  41. package/node_modules/@lorenz/projections/dist/index.js.map +1 -1
  42. package/node_modules/@lorenz/runtime/dist/index.d.ts +1 -0
  43. package/node_modules/@lorenz/runtime/dist/index.d.ts.map +1 -1
  44. package/node_modules/@lorenz/runtime/dist/index.js +28 -15
  45. package/node_modules/@lorenz/runtime/dist/index.js.map +1 -1
  46. package/node_modules/@lorenz/runtime-events/dist/index.d.ts +3 -0
  47. package/node_modules/@lorenz/runtime-events/dist/index.d.ts.map +1 -1
  48. package/node_modules/@lorenz/traceviz-emitter/dist/index.d.ts +1 -1
  49. package/node_modules/@lorenz/traceviz-emitter/dist/index.d.ts.map +1 -1
  50. package/node_modules/@lorenz/traceviz-emitter/dist/index.js +3 -2
  51. package/node_modules/@lorenz/traceviz-emitter/dist/index.js.map +1 -1
  52. package/node_modules/@lorenz/traceviz-server/dist/parser.js +2 -2
  53. package/node_modules/@lorenz/traceviz-server/dist/parser.js.map +1 -1
  54. package/node_modules/@lorenz/tracker-sdk/dist/index.d.ts +1 -0
  55. package/node_modules/@lorenz/tracker-sdk/dist/index.d.ts.map +1 -1
  56. package/node_modules/@lorenz/tracker-sdk/dist/index.js +1 -0
  57. package/node_modules/@lorenz/tracker-sdk/dist/index.js.map +1 -1
  58. package/node_modules/@lorenz/tracker-sdk/dist/pagination.d.ts +27 -0
  59. package/node_modules/@lorenz/tracker-sdk/dist/pagination.d.ts.map +1 -0
  60. package/node_modules/@lorenz/tracker-sdk/dist/pagination.js +58 -0
  61. package/node_modules/@lorenz/tracker-sdk/dist/pagination.js.map +1 -0
  62. package/node_modules/@lorenz/tui/dist/index.d.ts +3 -1
  63. package/node_modules/@lorenz/tui/dist/index.d.ts.map +1 -1
  64. package/node_modules/@lorenz/tui/dist/index.js +21 -24
  65. package/node_modules/@lorenz/tui/dist/index.js.map +1 -1
  66. package/node_modules/@lorenz/worker-sdk/dist/local.d.ts +10 -7
  67. package/node_modules/@lorenz/worker-sdk/dist/local.d.ts.map +1 -1
  68. package/node_modules/@lorenz/worker-sdk/dist/local.js +10 -7
  69. package/node_modules/@lorenz/worker-sdk/dist/local.js.map +1 -1
  70. package/package.json +1 -1
  71. package/node_modules/@lorenz/dashboard/dist/assets/index-DD4yVBDF.js +0 -227
@@ -1,227 +0,0 @@
1
- (function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function r(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(c){if(c.ep)return;c.ep=!0;const f=r(c);fetch(c.href,f)}})();function Cp(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var _s={exports:{}},ki={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var wm;function K1(){if(wm)return ki;wm=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(u,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var p in c)p!=="key"&&(f[p]=c[p])}else f=c;return c=f.ref,{$$typeof:l,type:u,key:d,ref:c!==void 0?c:null,props:f}}return ki.Fragment=i,ki.jsx=r,ki.jsxs=r,ki}var zm;function J1(){return zm||(zm=1,_s.exports=K1()),_s.exports}var v=J1(),Ms={exports:{}},ve={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Nm;function F1(){if(Nm)return ve;Nm=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),k=Symbol.iterator;function S(z){return z===null||typeof z!="object"?null:(z=k&&z[k]||z["@@iterator"],typeof z=="function"?z:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,J={};function q(z,D,T){this.props=z,this.context=D,this.refs=J,this.updater=T||U}q.prototype.isReactComponent={},q.prototype.setState=function(z,D){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,D,"setState")},q.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function ne(){}ne.prototype=q.prototype;function F(z,D,T){this.props=z,this.context=D,this.refs=J,this.updater=T||U}var de=F.prototype=new ne;de.constructor=F,G(de,q.prototype),de.isPureReactComponent=!0;var pe=Array.isArray;function B(){}var I={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function ce(z,D,T){var W=T.ref;return{$$typeof:l,type:z,key:D,ref:W!==void 0?W:null,props:T}}function Te(z,D){return ce(z.type,D,z.props)}function te(z){return typeof z=="object"&&z!==null&&z.$$typeof===l}function P(z){var D={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(T){return D[T]})}var Se=/\/+/g;function ue(z,D){return typeof z=="object"&&z!==null&&z.key!=null?P(""+z.key):D.toString(36)}function Q(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(B,B):(z.status="pending",z.then(function(D){z.status==="pending"&&(z.status="fulfilled",z.value=D)},function(D){z.status==="pending"&&(z.status="rejected",z.reason=D)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function C(z,D,T,W,ie){var le=typeof z;(le==="undefined"||le==="boolean")&&(z=null);var ke=!1;if(z===null)ke=!0;else switch(le){case"bigint":case"string":case"number":ke=!0;break;case"object":switch(z.$$typeof){case l:case i:ke=!0;break;case g:return ke=z._init,C(ke(z._payload),D,T,W,ie)}}if(ke)return ie=ie(z),ke=W===""?"."+ue(z,0):W,pe(ie)?(T="",ke!=null&&(T=ke.replace(Se,"$&/")+"/"),C(ie,D,T,"",function(vt){return vt})):ie!=null&&(te(ie)&&(ie=Te(ie,T+(ie.key==null||z&&z.key===ie.key?"":(""+ie.key).replace(Se,"$&/")+"/")+ke)),D.push(ie)),1;ke=0;var Xe=W===""?".":W+":";if(pe(z))for(var ye=0;ye<z.length;ye++)W=z[ye],le=Xe+ue(W,ye),ke+=C(W,D,T,le,ie);else if(ye=S(z),typeof ye=="function")for(z=ye.call(z),ye=0;!(W=z.next()).done;)W=W.value,le=Xe+ue(W,ye++),ke+=C(W,D,T,le,ie);else if(le==="object"){if(typeof z.then=="function")return C(Q(z),D,T,W,ie);throw D=String(z),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return ke}function V(z,D,T){if(z==null)return z;var W=[],ie=0;return C(z,W,"","",function(le){return D.call(T,le,ie++)}),W}function Z(z){if(z._status===-1){var D=z._result;D=D(),D.then(function(T){(z._status===0||z._status===-1)&&(z._status=1,z._result=T)},function(T){(z._status===0||z._status===-1)&&(z._status=2,z._result=T)}),z._status===-1&&(z._status=0,z._result=D)}if(z._status===1)return z._result.default;throw z._result}var he=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},E={map:V,forEach:function(z,D,T){V(z,function(){D.apply(this,arguments)},T)},count:function(z){var D=0;return V(z,function(){D++}),D},toArray:function(z){return V(z,function(D){return D})||[]},only:function(z){if(!te(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return ve.Activity=b,ve.Children=E,ve.Component=q,ve.Fragment=r,ve.Profiler=c,ve.PureComponent=F,ve.StrictMode=u,ve.Suspense=y,ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,ve.__COMPILER_RUNTIME={__proto__:null,c:function(z){return I.H.useMemoCache(z)}},ve.cache=function(z){return function(){return z.apply(null,arguments)}},ve.cacheSignal=function(){return null},ve.cloneElement=function(z,D,T){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var W=G({},z.props),ie=z.key;if(D!=null)for(le in D.key!==void 0&&(ie=""+D.key),D)!X.call(D,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&D.ref===void 0||(W[le]=D[le]);var le=arguments.length-2;if(le===1)W.children=T;else if(1<le){for(var ke=Array(le),Xe=0;Xe<le;Xe++)ke[Xe]=arguments[Xe+2];W.children=ke}return ce(z.type,ie,W)},ve.createContext=function(z){return z={$$typeof:d,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:f,_context:z},z},ve.createElement=function(z,D,T){var W,ie={},le=null;if(D!=null)for(W in D.key!==void 0&&(le=""+D.key),D)X.call(D,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ie[W]=D[W]);var ke=arguments.length-2;if(ke===1)ie.children=T;else if(1<ke){for(var Xe=Array(ke),ye=0;ye<ke;ye++)Xe[ye]=arguments[ye+2];ie.children=Xe}if(z&&z.defaultProps)for(W in ke=z.defaultProps,ke)ie[W]===void 0&&(ie[W]=ke[W]);return ce(z,le,ie)},ve.createRef=function(){return{current:null}},ve.forwardRef=function(z){return{$$typeof:p,render:z}},ve.isValidElement=te,ve.lazy=function(z){return{$$typeof:g,_payload:{_status:-1,_result:z},_init:Z}},ve.memo=function(z,D){return{$$typeof:m,type:z,compare:D===void 0?null:D}},ve.startTransition=function(z){var D=I.T,T={};I.T=T;try{var W=z(),ie=I.S;ie!==null&&ie(T,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(B,he)}catch(le){he(le)}finally{D!==null&&T.types!==null&&(D.types=T.types),I.T=D}},ve.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},ve.use=function(z){return I.H.use(z)},ve.useActionState=function(z,D,T){return I.H.useActionState(z,D,T)},ve.useCallback=function(z,D){return I.H.useCallback(z,D)},ve.useContext=function(z){return I.H.useContext(z)},ve.useDebugValue=function(){},ve.useDeferredValue=function(z,D){return I.H.useDeferredValue(z,D)},ve.useEffect=function(z,D){return I.H.useEffect(z,D)},ve.useEffectEvent=function(z){return I.H.useEffectEvent(z)},ve.useId=function(){return I.H.useId()},ve.useImperativeHandle=function(z,D,T){return I.H.useImperativeHandle(z,D,T)},ve.useInsertionEffect=function(z,D){return I.H.useInsertionEffect(z,D)},ve.useLayoutEffect=function(z,D){return I.H.useLayoutEffect(z,D)},ve.useMemo=function(z,D){return I.H.useMemo(z,D)},ve.useOptimistic=function(z,D){return I.H.useOptimistic(z,D)},ve.useReducer=function(z,D,T){return I.H.useReducer(z,D,T)},ve.useRef=function(z){return I.H.useRef(z)},ve.useState=function(z){return I.H.useState(z)},ve.useSyncExternalStore=function(z,D,T){return I.H.useSyncExternalStore(z,D,T)},ve.useTransition=function(){return I.H.useTransition()},ve.version="19.2.6",ve}var Am;function sc(){return Am||(Am=1,Ms.exports=F1()),Ms.exports}var ee=sc(),js={exports:{}},wi={},Os={exports:{}},Ds={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Cm;function I1(){return Cm||(Cm=1,(function(l){function i(C,V){var Z=C.length;C.push(V);e:for(;0<Z;){var he=Z-1>>>1,E=C[he];if(0<c(E,V))C[he]=V,C[Z]=E,Z=he;else break e}}function r(C){return C.length===0?null:C[0]}function u(C){if(C.length===0)return null;var V=C[0],Z=C.pop();if(Z!==V){C[0]=Z;e:for(var he=0,E=C.length,z=E>>>1;he<z;){var D=2*(he+1)-1,T=C[D],W=D+1,ie=C[W];if(0>c(T,Z))W<E&&0>c(ie,T)?(C[he]=ie,C[W]=Z,he=W):(C[he]=T,C[D]=Z,he=D);else if(W<E&&0>c(ie,Z))C[he]=ie,C[W]=Z,he=W;else break e}}return V}function c(C,V){var Z=C.sortIndex-V.sortIndex;return Z!==0?Z:C.id-V.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var d=Date,p=d.now();l.unstable_now=function(){return d.now()-p}}var y=[],m=[],g=1,b=null,k=3,S=!1,U=!1,G=!1,J=!1,q=typeof setTimeout=="function"?setTimeout:null,ne=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function de(C){for(var V=r(m);V!==null;){if(V.callback===null)u(m);else if(V.startTime<=C)u(m),V.sortIndex=V.expirationTime,i(y,V);else break;V=r(m)}}function pe(C){if(G=!1,de(C),!U)if(r(y)!==null)U=!0,B||(B=!0,P());else{var V=r(m);V!==null&&Q(pe,V.startTime-C)}}var B=!1,I=-1,X=5,ce=-1;function Te(){return J?!0:!(l.unstable_now()-ce<X)}function te(){if(J=!1,B){var C=l.unstable_now();ce=C;var V=!0;try{e:{U=!1,G&&(G=!1,ne(I),I=-1),S=!0;var Z=k;try{t:{for(de(C),b=r(y);b!==null&&!(b.expirationTime>C&&Te());){var he=b.callback;if(typeof he=="function"){b.callback=null,k=b.priorityLevel;var E=he(b.expirationTime<=C);if(C=l.unstable_now(),typeof E=="function"){b.callback=E,de(C),V=!0;break t}b===r(y)&&u(y),de(C)}else u(y);b=r(y)}if(b!==null)V=!0;else{var z=r(m);z!==null&&Q(pe,z.startTime-C),V=!1}}break e}finally{b=null,k=Z,S=!1}V=void 0}}finally{V?P():B=!1}}}var P;if(typeof F=="function")P=function(){F(te)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,ue=Se.port2;Se.port1.onmessage=te,P=function(){ue.postMessage(null)}}else P=function(){q(te,0)};function Q(C,V){I=q(function(){C(l.unstable_now())},V)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(C){C.callback=null},l.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<C?Math.floor(1e3/C):5},l.unstable_getCurrentPriorityLevel=function(){return k},l.unstable_next=function(C){switch(k){case 1:case 2:case 3:var V=3;break;default:V=k}var Z=k;k=V;try{return C()}finally{k=Z}},l.unstable_requestPaint=function(){J=!0},l.unstable_runWithPriority=function(C,V){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var Z=k;k=C;try{return V()}finally{k=Z}},l.unstable_scheduleCallback=function(C,V,Z){var he=l.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?he+Z:he):Z=he,C){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=Z+E,C={id:g++,callback:V,priorityLevel:C,startTime:Z,expirationTime:E,sortIndex:-1},Z>he?(C.sortIndex=Z,i(m,C),r(y)===null&&C===r(m)&&(G?(ne(I),I=-1):G=!0,Q(pe,Z-he))):(C.sortIndex=E,i(y,C),U||S||(U=!0,B||(B=!0,P()))),C},l.unstable_shouldYield=Te,l.unstable_wrapCallback=function(C){var V=k;return function(){var Z=k;k=V;try{return C.apply(this,arguments)}finally{k=Z}}}})(Ds)),Ds}var _m;function $1(){return _m||(_m=1,Os.exports=I1()),Os.exports}var Rs={exports:{}},xt={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Mm;function W1(){if(Mm)return xt;Mm=1;var l=sc();function i(y){var m="https://react.dev/errors/"+y;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+y+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(y,m,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:y,containerInfo:m,implementation:g}}var d=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(y,m){if(y==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return xt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,xt.createPortal=function(y,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return f(y,m,null,g)},xt.flushSync=function(y){var m=d.T,g=u.p;try{if(d.T=null,u.p=2,y)return y()}finally{d.T=m,u.p=g,u.d.f()}},xt.preconnect=function(y,m){typeof y=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(y,m))},xt.prefetchDNS=function(y){typeof y=="string"&&u.d.D(y)},xt.preinit=function(y,m){if(typeof y=="string"&&m&&typeof m.as=="string"){var g=m.as,b=p(g,m.crossOrigin),k=typeof m.integrity=="string"?m.integrity:void 0,S=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?u.d.S(y,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:k,fetchPriority:S}):g==="script"&&u.d.X(y,{crossOrigin:b,integrity:k,fetchPriority:S,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},xt.preinitModule=function(y,m){if(typeof y=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=p(m.as,m.crossOrigin);u.d.M(y,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(y)},xt.preload=function(y,m){if(typeof y=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,b=p(g,m.crossOrigin);u.d.L(y,g,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},xt.preloadModule=function(y,m){if(typeof y=="string")if(m){var g=p(m.as,m.crossOrigin);u.d.m(y,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(y)},xt.requestFormReset=function(y){u.d.r(y)},xt.unstable_batchedUpdates=function(y,m){return y(m)},xt.useFormState=function(y,m,g){return d.H.useFormState(y,m,g)},xt.useFormStatus=function(){return d.H.useHostTransitionStatus()},xt.version="19.2.6",xt}var jm;function P1(){if(jm)return Rs.exports;jm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Rs.exports=W1(),Rs.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var Om;function ex(){if(Om)return wi;Om=1;var l=$1(),i=sc(),r=P1();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(f(e)!==e)throw Error(u(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return y(o),e;if(s===a)return y(o),t;s=s.sibling}throw Error(u(188))}if(n.return!==a.return)n=o,a=s;else{for(var h=!1,x=o.child;x;){if(x===n){h=!0,n=o,a=s;break}if(x===a){h=!0,a=o,n=s;break}x=x.sibling}if(!h){for(x=s.child;x;){if(x===n){h=!0,n=s,a=o;break}if(x===a){h=!0,a=s,n=o;break}x=x.sibling}if(!h)throw Error(u(189))}}if(n.alternate!==a)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,k=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),ne=Symbol.for("react.consumer"),F=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),pe=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),Te=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function P(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case G:return"Fragment";case q:return"Profiler";case J:return"StrictMode";case pe:return"Suspense";case B:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case F:return e.displayName||"Context";case ne:return(e._context.displayName||"Context")+".Consumer";case de:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case I:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case X:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}var Q=Array.isArray,C=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},he=[],E=-1;function z(e){return{current:e}}function D(e){0>E||(e.current=he[E],he[E]=null,E--)}function T(e,t){E++,he[E]=e.current,e.current=t}var W=z(null),ie=z(null),le=z(null),ke=z(null);function Xe(e,t){switch(T(le,t),T(ie,e),T(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Jh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Jh(t),e=Fh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(W),T(W,e)}function ye(){D(W),D(ie),D(le)}function vt(e){e.memoizedState!==null&&T(ke,e);var t=W.current,n=Fh(t,e.type);t!==n&&(T(ie,e),T(W,n))}function kt(e){ie.current===e&&(D(W),D(ie)),ke.current===e&&(D(ke),vi._currentValue=Z)}var sn,Ln;function wt(e){if(sn===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);sn=t&&t[1]||"",Ln=-1<n.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+sn+e+Ln}var Bl=!1;function Ll(e,t){if(!e||Bl)return"";Bl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(O){var j=O}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(O){j=O}e.call(Y.prototype)}}else{try{throw Error()}catch(O){j=O}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(O){if(O&&j&&typeof O.stack=="string")return[O.stack,j.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=a.DetermineComponentFrameRoot(),h=s[0],x=s[1];if(h&&x){var w=h.split(`
44
- `),M=x.split(`
45
- `);for(o=a=0;a<w.length&&!w[a].includes("DetermineComponentFrameRoot");)a++;for(;o<M.length&&!M[o].includes("DetermineComponentFrameRoot");)o++;if(a===w.length||o===M.length)for(a=w.length-1,o=M.length-1;1<=a&&0<=o&&w[a]!==M[o];)o--;for(;1<=a&&0<=o;a--,o--)if(w[a]!==M[o]){if(a!==1||o!==1)do if(a--,o--,0>o||w[a]!==M[o]){var R=`
46
- `+w[a].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=a&&0<=o);break}}}finally{Bl=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?wt(n):""}function Bi(e,t){switch(e.tag){case 26:case 27:case 5:return wt(e.type);case 16:return wt("Lazy");case 13:return e.child!==t&&t!==null?wt("Suspense Fallback"):wt("Suspense");case 19:return wt("SuspenseList");case 0:case 15:return Ll(e.type,!1);case 11:return Ll(e.type.render,!1);case 1:return Ll(e.type,!0);case 31:return wt("Activity");default:return""}}function Li(e){try{var t="",n=null;do t+=Bi(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}var Hl=Object.prototype.hasOwnProperty,ql=l.unstable_scheduleCallback,ja=l.unstable_cancelCallback,mu=l.unstable_shouldYield,pu=l.unstable_requestPaint,St=l.unstable_now,gu=l.unstable_getCurrentPriorityLevel,L=l.unstable_ImmediatePriority,$=l.unstable_UserBlockingPriority,ge=l.unstable_NormalPriority,Ne=l.unstable_LowPriority,Be=l.unstable_IdlePriority,Bt=l.log,xn=l.unstable_setDisableYieldValue,Et=null,ot=null;function zt(e){if(typeof Bt=="function"&&xn(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(Et,e)}catch{}}var Qe=Math.clz32?Math.clz32:Og,Hn=Math.log,an=Math.LN2;function Og(e){return e>>>=0,e===0?32:31-(Hn(e)/an|0)|0}var Hi=256,qi=262144,Yi=4194304;function pl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Gi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,s=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var x=a&134217727;return x!==0?(a=x&~s,a!==0?o=pl(a):(h&=x,h!==0?o=pl(h):n||(n=x&~e,n!==0&&(o=pl(n))))):(x=a&~s,x!==0?o=pl(x):h!==0?o=pl(h):n||(n=a&~e,n!==0&&(o=pl(n)))),o===0?0:t!==0&&t!==o&&(t&s)===0&&(s=o&-o,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:o}function Oa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Dg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ac(){var e=Yi;return Yi<<=1,(Yi&62914560)===0&&(Yi=4194304),e}function yu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Da(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Rg(e,t,n,a,o,s){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var x=e.entanglements,w=e.expirationTimes,M=e.hiddenUpdates;for(n=h&~n;0<n;){var R=31-Qe(n),Y=1<<R;x[R]=0,w[R]=-1;var j=M[R];if(j!==null)for(M[R]=null,R=0;R<j.length;R++){var O=j[R];O!==null&&(O.lane&=-536870913)}n&=~Y}a!==0&&Cc(e,a,0),s!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=s&~(h&~t))}function Cc(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Qe(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function _c(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Qe(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function Mc(e,t){var n=t&-t;return n=(n&42)!==0?1:xu(n),(n&(e.suspendedLanes|t))!==0?0:n}function xu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function bu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function jc(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:xm(e.type))}function Oc(e,t){var n=V.p;try{return V.p=e,t()}finally{V.p=n}}var qn=Math.random().toString(36).slice(2),ht="__reactFiber$"+qn,Nt="__reactProps$"+qn,Yl="__reactContainer$"+qn,vu="__reactEvents$"+qn,Ug="__reactListeners$"+qn,Bg="__reactHandles$"+qn,Dc="__reactResources$"+qn,Ra="__reactMarker$"+qn;function Su(e){delete e[ht],delete e[Nt],delete e[vu],delete e[Ug],delete e[Bg]}function Gl(e){var t=e[ht];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yl]||n[ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=nm(e);e!==null;){if(n=e[ht])return n;e=nm(e)}return t}e=n,n=e.parentNode}return null}function Vl(e){if(e=e[ht]||e[Yl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ua(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Xl(e){var t=e[Dc];return t||(t=e[Dc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ft(e){e[Ra]=!0}var Rc=new Set,Uc={};function gl(e,t){Ql(e,t),Ql(e+"Capture",t)}function Ql(e,t){for(Uc[e]=t,e=0;e<t.length;e++)Rc.add(t[e])}var Lg=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]*$"),Bc={},Lc={};function Hg(e){return Hl.call(Lc,e)?!0:Hl.call(Bc,e)?!1:Lg.test(e)?Lc[e]=!0:(Bc[e]=!0,!1)}function Vi(e,t,n){if(Hg(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Xi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function bn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qg(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){n=""+h,s.call(this,h)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Eu(e){if(!e._valueTracker){var t=Hc(e)?"checked":"value";e._valueTracker=qg(e,t,""+e[t])}}function qc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Hc(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Qi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Yg=/[\n"\\]/g;function Jt(e){return e.replace(Yg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Tu(e,t,n,a,o,s,h,x){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Kt(t)):e.value!==""+Kt(t)&&(e.value=""+Kt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?ku(e,h,Kt(t)):n!=null?ku(e,h,Kt(n)):a!=null&&e.removeAttribute("value"),o==null&&s!=null&&(e.defaultChecked=!!s),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Kt(x):e.removeAttribute("name")}function Yc(e,t,n,a,o,s,h,x){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Eu(e);return}n=n!=null?""+Kt(n):"",t=t!=null?""+Kt(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=x?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Eu(e)}function ku(e,t,n){t==="number"&&Qi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Zl(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Kt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Gc(e,t,n){if(t!=null&&(t=""+Kt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Kt(n):""}function Vc(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(u(92));if(Q(a)){if(1<a.length)throw Error(u(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Kt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Eu(e)}function Kl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gg=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 Xc(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Gg.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Qc(e,t,n){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&Xc(e,o,a)}else for(var s in t)t.hasOwnProperty(s)&&Xc(e,s,t[s])}function wu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Vg=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"]]),Xg=/^[\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 Zi(e){return Xg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function vn(){}var zu=null;function Nu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jl=null,Fl=null;function Zc(e){var t=Vl(e);if(t&&(e=t.stateNode)){var n=e[Nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Tu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Jt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[Nt]||null;if(!o)throw Error(u(90));Tu(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&qc(a)}break e;case"textarea":Gc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Zl(e,!!n.multiple,t,!1)}}}var Au=!1;function Kc(e,t,n){if(Au)return e(t,n);Au=!0;try{var a=e(t);return a}finally{if(Au=!1,(Jl!==null||Fl!==null)&&(Or(),Jl&&(t=Jl,e=Fl,Fl=Jl=null,Zc(t),e)))for(t=0;t<e.length;t++)Zc(e[t])}}function Ba(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Nt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(u(231,t,typeof n));return n}var Sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cu=!1;if(Sn)try{var La={};Object.defineProperty(La,"passive",{get:function(){Cu=!0}}),window.addEventListener("test",La,La),window.removeEventListener("test",La,La)}catch{Cu=!1}var Yn=null,_u=null,Ki=null;function Jc(){if(Ki)return Ki;var e,t=_u,n=t.length,a,o="value"in Yn?Yn.value:Yn.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var h=n-e;for(a=1;a<=h&&t[n-a]===o[s-a];a++);return Ki=o.slice(e,1<a?1-a:void 0)}function Ji(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Fi(){return!0}function Fc(){return!1}function At(e){function t(n,a,o,s,h){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=s,this.target=h,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(s):s[x]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Fi:Fc,this.isPropagationStopped=Fc,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Fi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fi)},persist:function(){},isPersistent:Fi}),t}var yl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ii=At(yl),Ha=b({},yl,{view:0,detail:0}),Qg=At(Ha),Mu,ju,qa,$i=b({},Ha,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Du,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==qa&&(qa&&e.type==="mousemove"?(Mu=e.screenX-qa.screenX,ju=e.screenY-qa.screenY):ju=Mu=0,qa=e),Mu)},movementY:function(e){return"movementY"in e?e.movementY:ju}}),Ic=At($i),Zg=b({},$i,{dataTransfer:0}),Kg=At(Zg),Jg=b({},Ha,{relatedTarget:0}),Ou=At(Jg),Fg=b({},yl,{animationName:0,elapsedTime:0,pseudoElement:0}),Ig=At(Fg),$g=b({},yl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Wg=At($g),Pg=b({},yl,{data:0}),$c=At(Pg),ey={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ty={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"},ny={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ly(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ny[e])?!!t[e]:!1}function Du(){return ly}var ay=b({},Ha,{key:function(e){if(e.key){var t=ey[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ty[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Du,charCode:function(e){return e.type==="keypress"?Ji(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),iy=At(ay),ry=b({},$i,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wc=At(ry),uy=b({},Ha,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Du}),oy=At(uy),sy=b({},yl,{propertyName:0,elapsedTime:0,pseudoElement:0}),cy=At(sy),fy=b({},$i,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),dy=At(fy),hy=b({},yl,{newState:0,oldState:0}),my=At(hy),py=[9,13,27,32],Ru=Sn&&"CompositionEvent"in window,Ya=null;Sn&&"documentMode"in document&&(Ya=document.documentMode);var gy=Sn&&"TextEvent"in window&&!Ya,Pc=Sn&&(!Ru||Ya&&8<Ya&&11>=Ya),ef=" ",tf=!1;function nf(e,t){switch(e){case"keyup":return py.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Il=!1;function yy(e,t){switch(e){case"compositionend":return lf(t);case"keypress":return t.which!==32?null:(tf=!0,ef);case"textInput":return e=t.data,e===ef&&tf?null:e;default:return null}}function xy(e,t){if(Il)return e==="compositionend"||!Ru&&nf(e,t)?(e=Jc(),Ki=_u=Yn=null,Il=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pc&&t.locale!=="ko"?null:t.data;default:return null}}var by={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 af(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!by[e.type]:t==="textarea"}function rf(e,t,n,a){Jl?Fl?Fl.push(a):Fl=[a]:Jl=a,t=qr(t,"onChange"),0<t.length&&(n=new Ii("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Ga=null,Va=null;function vy(e){Gh(e,0)}function Wi(e){var t=Ua(e);if(qc(t))return e}function uf(e,t){if(e==="change")return t}var of=!1;if(Sn){var Uu;if(Sn){var Bu="oninput"in document;if(!Bu){var sf=document.createElement("div");sf.setAttribute("oninput","return;"),Bu=typeof sf.oninput=="function"}Uu=Bu}else Uu=!1;of=Uu&&(!document.documentMode||9<document.documentMode)}function cf(){Ga&&(Ga.detachEvent("onpropertychange",ff),Va=Ga=null)}function ff(e){if(e.propertyName==="value"&&Wi(Va)){var t=[];rf(t,Va,e,Nu(e)),Kc(vy,t)}}function Sy(e,t,n){e==="focusin"?(cf(),Ga=t,Va=n,Ga.attachEvent("onpropertychange",ff)):e==="focusout"&&cf()}function Ey(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wi(Va)}function Ty(e,t){if(e==="click")return Wi(t)}function ky(e,t){if(e==="input"||e==="change")return Wi(t)}function wy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lt=typeof Object.is=="function"?Object.is:wy;function Xa(e,t){if(Lt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!Hl.call(t,o)||!Lt(e[o],t[o]))return!1}return!0}function df(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hf(e,t){var n=df(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=df(n)}}function mf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qi(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qi(e.document)}return t}function Lu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var zy=Sn&&"documentMode"in document&&11>=document.documentMode,$l=null,Hu=null,Qa=null,qu=!1;function gf(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qu||$l==null||$l!==Qi(a)||(a=$l,"selectionStart"in a&&Lu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Qa&&Xa(Qa,a)||(Qa=a,a=qr(Hu,"onSelect"),0<a.length&&(t=new Ii("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=$l)))}function xl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wl={animationend:xl("Animation","AnimationEnd"),animationiteration:xl("Animation","AnimationIteration"),animationstart:xl("Animation","AnimationStart"),transitionrun:xl("Transition","TransitionRun"),transitionstart:xl("Transition","TransitionStart"),transitioncancel:xl("Transition","TransitionCancel"),transitionend:xl("Transition","TransitionEnd")},Yu={},yf={};Sn&&(yf=document.createElement("div").style,"AnimationEvent"in window||(delete Wl.animationend.animation,delete Wl.animationiteration.animation,delete Wl.animationstart.animation),"TransitionEvent"in window||delete Wl.transitionend.transition);function bl(e){if(Yu[e])return Yu[e];if(!Wl[e])return e;var t=Wl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yf)return Yu[e]=t[n];return e}var xf=bl("animationend"),bf=bl("animationiteration"),vf=bl("animationstart"),Ny=bl("transitionrun"),Ay=bl("transitionstart"),Cy=bl("transitioncancel"),Sf=bl("transitionend"),Ef=new Map,Gu="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(" ");Gu.push("scrollEnd");function rn(e,t){Ef.set(e,t),gl(t,[e])}var Pi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ft=[],Pl=0,Vu=0;function er(){for(var e=Pl,t=Vu=Pl=0;t<e;){var n=Ft[t];Ft[t++]=null;var a=Ft[t];Ft[t++]=null;var o=Ft[t];Ft[t++]=null;var s=Ft[t];if(Ft[t++]=null,a!==null&&o!==null){var h=a.pending;h===null?o.next=o:(o.next=h.next,h.next=o),a.pending=o}s!==0&&Tf(n,o,s)}}function tr(e,t,n,a){Ft[Pl++]=e,Ft[Pl++]=t,Ft[Pl++]=n,Ft[Pl++]=a,Vu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Xu(e,t,n,a){return tr(e,t,n,a),nr(e)}function vl(e,t){return tr(e,null,null,t),nr(e)}function Tf(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,s=e.return;s!==null;)s.childLanes|=n,a=s.alternate,a!==null&&(a.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(o=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,o&&t!==null&&(o=31-Qe(n),e=s.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),s):null}function nr(e){if(50<hi)throw hi=0,es=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ea={};function _y(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,n,a){return new _y(e,t,n,a)}function Qu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function En(e,t){var n=e.alternate;return n===null?(n=Ht(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function kf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function lr(e,t,n,a,o,s){var h=0;if(a=e,typeof e=="function")Qu(e)&&(h=1);else if(typeof e=="string")h=R1(e,n,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=Ht(31,n,t,o),e.elementType=ce,e.lanes=s,e;case G:return Sl(n.children,o,s,t);case J:h=8,o|=24;break;case q:return e=Ht(12,n,t,o|2),e.elementType=q,e.lanes=s,e;case pe:return e=Ht(13,n,t,o),e.elementType=pe,e.lanes=s,e;case B:return e=Ht(19,n,t,o),e.elementType=B,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:h=10;break e;case ne:h=9;break e;case de:h=11;break e;case I:h=14;break e;case X:h=16,a=null;break e}h=29,n=Error(u(130,e===null?"null":typeof e,"")),a=null}return t=Ht(h,n,t,o),t.elementType=e,t.type=a,t.lanes=s,t}function Sl(e,t,n,a){return e=Ht(7,e,a,t),e.lanes=n,e}function Zu(e,t,n){return e=Ht(6,e,null,t),e.lanes=n,e}function wf(e){var t=Ht(18,null,null,0);return t.stateNode=e,t}function Ku(e,t,n){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zf=new WeakMap;function It(e,t){if(typeof e=="object"&&e!==null){var n=zf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Li(t)},zf.set(e,t),t)}return{value:e,source:t,stack:Li(t)}}var ta=[],na=0,ar=null,Za=0,$t=[],Wt=0,Gn=null,cn=1,fn="";function Tn(e,t){ta[na++]=Za,ta[na++]=ar,ar=e,Za=t}function Nf(e,t,n){$t[Wt++]=cn,$t[Wt++]=fn,$t[Wt++]=Gn,Gn=e;var a=cn;e=fn;var o=32-Qe(a)-1;a&=~(1<<o),n+=1;var s=32-Qe(t)+o;if(30<s){var h=o-o%5;s=(a&(1<<h)-1).toString(32),a>>=h,o-=h,cn=1<<32-Qe(t)+o|n<<o|a,fn=s+e}else cn=1<<s|n<<o|a,fn=e}function Ju(e){e.return!==null&&(Tn(e,1),Nf(e,1,0))}function Fu(e){for(;e===ar;)ar=ta[--na],ta[na]=null,Za=ta[--na],ta[na]=null;for(;e===Gn;)Gn=$t[--Wt],$t[Wt]=null,fn=$t[--Wt],$t[Wt]=null,cn=$t[--Wt],$t[Wt]=null}function Af(e,t){$t[Wt++]=cn,$t[Wt++]=fn,$t[Wt++]=Gn,cn=t.id,fn=t.overflow,Gn=e}var mt=null,Fe=null,je=!1,Vn=null,Pt=!1,Iu=Error(u(519));function Xn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ka(It(t,e)),Iu}function Cf(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[ht]=e,t[Nt]=a,n){case"dialog":Ce("cancel",t),Ce("close",t);break;case"iframe":case"object":case"embed":Ce("load",t);break;case"video":case"audio":for(n=0;n<pi.length;n++)Ce(pi[n],t);break;case"source":Ce("error",t);break;case"img":case"image":case"link":Ce("error",t),Ce("load",t);break;case"details":Ce("toggle",t);break;case"input":Ce("invalid",t),Yc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ce("invalid",t);break;case"textarea":Ce("invalid",t),Vc(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Zh(t.textContent,n)?(a.popover!=null&&(Ce("beforetoggle",t),Ce("toggle",t)),a.onScroll!=null&&Ce("scroll",t),a.onScrollEnd!=null&&Ce("scrollend",t),a.onClick!=null&&(t.onclick=vn),t=!0):t=!1,t||Xn(e,!0)}function _f(e){for(mt=e.return;mt;)switch(mt.tag){case 5:case 31:case 13:Pt=!1;return;case 27:case 3:Pt=!0;return;default:mt=mt.return}}function la(e){if(e!==mt)return!1;if(!je)return _f(e),je=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||ps(e.type,e.memoizedProps)),n=!n),n&&Fe&&Xn(e),_f(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Fe=tm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Fe=tm(e)}else t===27?(t=Fe,al(e.type)?(e=vs,vs=null,Fe=e):Fe=t):Fe=mt?tn(e.stateNode.nextSibling):null;return!0}function El(){Fe=mt=null,je=!1}function $u(){var e=Vn;return e!==null&&(jt===null?jt=e:jt.push.apply(jt,e),Vn=null),e}function Ka(e){Vn===null?Vn=[e]:Vn.push(e)}var Wu=z(null),Tl=null,kn=null;function Qn(e,t,n){T(Wu,t._currentValue),t._currentValue=n}function wn(e){e._currentValue=Wu.current,D(Wu)}function Pu(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function eo(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var s=o.dependencies;if(s!==null){var h=o.child;s=s.firstContext;e:for(;s!==null;){var x=s;s=o;for(var w=0;w<t.length;w++)if(x.context===t[w]){s.lanes|=n,x=s.alternate,x!==null&&(x.lanes|=n),Pu(s.return,n,e),a||(h=null);break e}s=x.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(u(341));h.lanes|=n,s=h.alternate,s!==null&&(s.lanes|=n),Pu(h,n,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function aa(e,t,n,a){e=null;for(var o=t,s=!1;o!==null;){if(!s){if((o.flags&524288)!==0)s=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(u(387));if(h=h.memoizedProps,h!==null){var x=o.type;Lt(o.pendingProps.value,h.value)||(e!==null?e.push(x):e=[x])}}else if(o===ke.current){if(h=o.alternate,h===null)throw Error(u(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(vi):e=[vi])}o=o.return}e!==null&&eo(t,e,n,a),t.flags|=262144}function ir(e){for(e=e.firstContext;e!==null;){if(!Lt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function kl(e){Tl=e,kn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return Mf(Tl,e)}function rr(e,t){return Tl===null&&kl(e),Mf(e,t)}function Mf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},kn===null){if(e===null)throw Error(u(308));kn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else kn=kn.next=t;return n}var My=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},jy=l.unstable_scheduleCallback,Oy=l.unstable_NormalPriority,nt={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function to(){return{controller:new My,data:new Map,refCount:0}}function Ja(e){e.refCount--,e.refCount===0&&jy(Oy,function(){e.controller.abort()})}var Fa=null,no=0,ia=0,ra=null;function Dy(e,t){if(Fa===null){var n=Fa=[];no=0,ia=rs(),ra={status:"pending",value:void 0,then:function(a){n.push(a)}}}return no++,t.then(jf,jf),t}function jf(){if(--no===0&&Fa!==null){ra!==null&&(ra.status="fulfilled");var e=Fa;Fa=null,ia=0,ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ry(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var Of=C.S;C.S=function(e,t){gh=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Dy(e,t),Of!==null&&Of(e,t)};var wl=z(null);function lo(){var e=wl.current;return e!==null?e:Ze.pooledCache}function ur(e,t){t===null?T(wl,wl.current):T(wl,t.pool)}function Df(){var e=lo();return e===null?null:{parent:nt._currentValue,pool:e}}var ua=Error(u(460)),ao=Error(u(474)),or=Error(u(542)),sr={then:function(){}};function Rf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Uf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(vn,vn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Lf(e),e;default:if(typeof t.status=="string")t.then(vn,vn);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Lf(e),e}throw Nl=t,ua}}function zl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Nl=n,ua):n}}var Nl=null;function Bf(){if(Nl===null)throw Error(u(459));var e=Nl;return Nl=null,e}function Lf(e){if(e===ua||e===or)throw Error(u(483))}var oa=null,Ia=0;function cr(e){var t=Ia;return Ia+=1,oa===null&&(oa=[]),Uf(oa,e,t)}function $a(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fr(e,t){throw t.$$typeof===k?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Hf(e){function t(A,N){if(e){var _=A.deletions;_===null?(A.deletions=[N],A.flags|=16):_.push(N)}}function n(A,N){if(!e)return null;for(;N!==null;)t(A,N),N=N.sibling;return null}function a(A){for(var N=new Map;A!==null;)A.key!==null?N.set(A.key,A):N.set(A.index,A),A=A.sibling;return N}function o(A,N){return A=En(A,N),A.index=0,A.sibling=null,A}function s(A,N,_){return A.index=_,e?(_=A.alternate,_!==null?(_=_.index,_<N?(A.flags|=67108866,N):_):(A.flags|=67108866,N)):(A.flags|=1048576,N)}function h(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function x(A,N,_,H){return N===null||N.tag!==6?(N=Zu(_,A.mode,H),N.return=A,N):(N=o(N,_),N.return=A,N)}function w(A,N,_,H){var fe=_.type;return fe===G?R(A,N,_.props.children,H,_.key):N!==null&&(N.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===X&&zl(fe)===N.type)?(N=o(N,_.props),$a(N,_),N.return=A,N):(N=lr(_.type,_.key,_.props,null,A.mode,H),$a(N,_),N.return=A,N)}function M(A,N,_,H){return N===null||N.tag!==4||N.stateNode.containerInfo!==_.containerInfo||N.stateNode.implementation!==_.implementation?(N=Ku(_,A.mode,H),N.return=A,N):(N=o(N,_.children||[]),N.return=A,N)}function R(A,N,_,H,fe){return N===null||N.tag!==7?(N=Sl(_,A.mode,H,fe),N.return=A,N):(N=o(N,_),N.return=A,N)}function Y(A,N,_){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Zu(""+N,A.mode,_),N.return=A,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case S:return _=lr(N.type,N.key,N.props,null,A.mode,_),$a(_,N),_.return=A,_;case U:return N=Ku(N,A.mode,_),N.return=A,N;case X:return N=zl(N),Y(A,N,_)}if(Q(N)||P(N))return N=Sl(N,A.mode,_,null),N.return=A,N;if(typeof N.then=="function")return Y(A,cr(N),_);if(N.$$typeof===F)return Y(A,rr(A,N),_);fr(A,N)}return null}function j(A,N,_,H){var fe=N!==null?N.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return fe!==null?null:x(A,N,""+_,H);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case S:return _.key===fe?w(A,N,_,H):null;case U:return _.key===fe?M(A,N,_,H):null;case X:return _=zl(_),j(A,N,_,H)}if(Q(_)||P(_))return fe!==null?null:R(A,N,_,H,null);if(typeof _.then=="function")return j(A,N,cr(_),H);if(_.$$typeof===F)return j(A,N,rr(A,_),H);fr(A,_)}return null}function O(A,N,_,H,fe){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return A=A.get(_)||null,x(N,A,""+H,fe);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case S:return A=A.get(H.key===null?_:H.key)||null,w(N,A,H,fe);case U:return A=A.get(H.key===null?_:H.key)||null,M(N,A,H,fe);case X:return H=zl(H),O(A,N,_,H,fe)}if(Q(H)||P(H))return A=A.get(_)||null,R(N,A,H,fe,null);if(typeof H.then=="function")return O(A,N,_,cr(H),fe);if(H.$$typeof===F)return O(A,N,_,rr(N,H),fe);fr(N,H)}return null}function oe(A,N,_,H){for(var fe=null,Oe=null,se=N,we=N=0,Me=null;se!==null&&we<_.length;we++){se.index>we?(Me=se,se=null):Me=se.sibling;var De=j(A,se,_[we],H);if(De===null){se===null&&(se=Me);break}e&&se&&De.alternate===null&&t(A,se),N=s(De,N,we),Oe===null?fe=De:Oe.sibling=De,Oe=De,se=Me}if(we===_.length)return n(A,se),je&&Tn(A,we),fe;if(se===null){for(;we<_.length;we++)se=Y(A,_[we],H),se!==null&&(N=s(se,N,we),Oe===null?fe=se:Oe.sibling=se,Oe=se);return je&&Tn(A,we),fe}for(se=a(se);we<_.length;we++)Me=O(se,A,we,_[we],H),Me!==null&&(e&&Me.alternate!==null&&se.delete(Me.key===null?we:Me.key),N=s(Me,N,we),Oe===null?fe=Me:Oe.sibling=Me,Oe=Me);return e&&se.forEach(function(sl){return t(A,sl)}),je&&Tn(A,we),fe}function me(A,N,_,H){if(_==null)throw Error(u(151));for(var fe=null,Oe=null,se=N,we=N=0,Me=null,De=_.next();se!==null&&!De.done;we++,De=_.next()){se.index>we?(Me=se,se=null):Me=se.sibling;var sl=j(A,se,De.value,H);if(sl===null){se===null&&(se=Me);break}e&&se&&sl.alternate===null&&t(A,se),N=s(sl,N,we),Oe===null?fe=sl:Oe.sibling=sl,Oe=sl,se=Me}if(De.done)return n(A,se),je&&Tn(A,we),fe;if(se===null){for(;!De.done;we++,De=_.next())De=Y(A,De.value,H),De!==null&&(N=s(De,N,we),Oe===null?fe=De:Oe.sibling=De,Oe=De);return je&&Tn(A,we),fe}for(se=a(se);!De.done;we++,De=_.next())De=O(se,A,we,De.value,H),De!==null&&(e&&De.alternate!==null&&se.delete(De.key===null?we:De.key),N=s(De,N,we),Oe===null?fe=De:Oe.sibling=De,Oe=De);return e&&se.forEach(function(Z1){return t(A,Z1)}),je&&Tn(A,we),fe}function Ve(A,N,_,H){if(typeof _=="object"&&_!==null&&_.type===G&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case S:e:{for(var fe=_.key;N!==null;){if(N.key===fe){if(fe=_.type,fe===G){if(N.tag===7){n(A,N.sibling),H=o(N,_.props.children),H.return=A,A=H;break e}}else if(N.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===X&&zl(fe)===N.type){n(A,N.sibling),H=o(N,_.props),$a(H,_),H.return=A,A=H;break e}n(A,N);break}else t(A,N);N=N.sibling}_.type===G?(H=Sl(_.props.children,A.mode,H,_.key),H.return=A,A=H):(H=lr(_.type,_.key,_.props,null,A.mode,H),$a(H,_),H.return=A,A=H)}return h(A);case U:e:{for(fe=_.key;N!==null;){if(N.key===fe)if(N.tag===4&&N.stateNode.containerInfo===_.containerInfo&&N.stateNode.implementation===_.implementation){n(A,N.sibling),H=o(N,_.children||[]),H.return=A,A=H;break e}else{n(A,N);break}else t(A,N);N=N.sibling}H=Ku(_,A.mode,H),H.return=A,A=H}return h(A);case X:return _=zl(_),Ve(A,N,_,H)}if(Q(_))return oe(A,N,_,H);if(P(_)){if(fe=P(_),typeof fe!="function")throw Error(u(150));return _=fe.call(_),me(A,N,_,H)}if(typeof _.then=="function")return Ve(A,N,cr(_),H);if(_.$$typeof===F)return Ve(A,N,rr(A,_),H);fr(A,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,N!==null&&N.tag===6?(n(A,N.sibling),H=o(N,_),H.return=A,A=H):(n(A,N),H=Zu(_,A.mode,H),H.return=A,A=H),h(A)):n(A,N)}return function(A,N,_,H){try{Ia=0;var fe=Ve(A,N,_,H);return oa=null,fe}catch(se){if(se===ua||se===or)throw se;var Oe=Ht(29,se,null,A.mode);return Oe.lanes=H,Oe.return=A,Oe}finally{}}}var Al=Hf(!0),qf=Hf(!1),Zn=!1;function io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ro(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Re&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=nr(e),Tf(e,null,n),t}return tr(e,a,t,n),nr(e)}function Wa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,_c(e,n)}}function uo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?o=s=h:s=s.next=h,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var oo=!1;function Pa(){if(oo){var e=ra;if(e!==null)throw e}}function ei(e,t,n,a){oo=!1;var o=e.updateQueue;Zn=!1;var s=o.firstBaseUpdate,h=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var w=x,M=w.next;w.next=null,h===null?s=M:h.next=M,h=w;var R=e.alternate;R!==null&&(R=R.updateQueue,x=R.lastBaseUpdate,x!==h&&(x===null?R.firstBaseUpdate=M:x.next=M,R.lastBaseUpdate=w))}if(s!==null){var Y=o.baseState;h=0,R=M=w=null,x=s;do{var j=x.lane&-536870913,O=j!==x.lane;if(O?(_e&j)===j:(a&j)===j){j!==0&&j===ia&&(oo=!0),R!==null&&(R=R.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var oe=e,me=x;j=t;var Ve=n;switch(me.tag){case 1:if(oe=me.payload,typeof oe=="function"){Y=oe.call(Ve,Y,j);break e}Y=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=me.payload,j=typeof oe=="function"?oe.call(Ve,Y,j):oe,j==null)break e;Y=b({},Y,j);break e;case 2:Zn=!0}}j=x.callback,j!==null&&(e.flags|=64,O&&(e.flags|=8192),O=o.callbacks,O===null?o.callbacks=[j]:O.push(j))}else O={lane:j,tag:x.tag,payload:x.payload,callback:x.callback,next:null},R===null?(M=R=O,w=Y):R=R.next=O,h|=j;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;O=x,x=O.next,O.next=null,o.lastBaseUpdate=O,o.shared.pending=null}}while(!0);R===null&&(w=Y),o.baseState=w,o.firstBaseUpdate=M,o.lastBaseUpdate=R,s===null&&(o.shared.lanes=0),Pn|=h,e.lanes=h,e.memoizedState=Y}}function Yf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Gf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Yf(n[e],t)}var sa=z(null),dr=z(0);function Vf(e,t){e=Dn,T(dr,e),T(sa,t),Dn=e|t.baseLanes}function so(){T(dr,Dn),T(sa,sa.current)}function co(){Dn=dr.current,D(sa),D(dr)}var qt=z(null),en=null;function Fn(e){var t=e.alternate;T(et,et.current&1),T(qt,e),en===null&&(t===null||sa.current!==null||t.memoizedState!==null)&&(en=e)}function fo(e){T(et,et.current),T(qt,e),en===null&&(en=e)}function Xf(e){e.tag===22?(T(et,et.current),T(qt,e),en===null&&(en=e)):In()}function In(){T(et,et.current),T(qt,qt.current)}function Yt(e){D(qt),en===e&&(en=null),D(et)}var et=z(0);function hr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||xs(n)||bs(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var zn=0,Ee=null,Ye=null,lt=null,mr=!1,ca=!1,Cl=!1,pr=0,ti=0,fa=null,Uy=0;function We(){throw Error(u(321))}function ho(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Lt(e[n],t[n]))return!1;return!0}function mo(e,t,n,a,o,s){return zn=s,Ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,C.H=e===null||e.memoizedState===null?Nd:Co,Cl=!1,s=n(a,o),Cl=!1,ca&&(s=Zf(t,n,a,o)),Qf(e),s}function Qf(e){C.H=ai;var t=Ye!==null&&Ye.next!==null;if(zn=0,lt=Ye=Ee=null,mr=!1,ti=0,fa=null,t)throw Error(u(300));e===null||at||(e=e.dependencies,e!==null&&ir(e)&&(at=!0))}function Zf(e,t,n,a){Ee=e;var o=0;do{if(ca&&(fa=null),ti=0,ca=!1,25<=o)throw Error(u(301));if(o+=1,lt=Ye=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}C.H=Ad,s=t(n,a)}while(ca);return s}function By(){var e=C.H,t=e.useState()[0];return t=typeof t.then=="function"?ni(t):t,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(Ee.flags|=1024),t}function po(){var e=pr!==0;return pr=0,e}function go(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function yo(e){if(mr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mr=!1}zn=0,lt=Ye=Ee=null,ca=!1,ti=pr=0,fa=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?Ee.memoizedState=lt=e:lt=lt.next=e,lt}function tt(){if(Ye===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=lt===null?Ee.memoizedState:lt.next;if(t!==null)lt=t,Ye=e;else{if(e===null)throw Ee.alternate===null?Error(u(467)):Error(u(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},lt===null?Ee.memoizedState=lt=e:lt=lt.next=e}return lt}function gr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ni(e){var t=ti;return ti+=1,fa===null&&(fa=[]),e=Uf(fa,e,t),t=Ee,(lt===null?t.memoizedState:lt.next)===null&&(t=t.alternate,C.H=t===null||t.memoizedState===null?Nd:Co),e}function yr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ni(e);if(e.$$typeof===F)return pt(e)}throw Error(u(438,String(e)))}function xo(e){var t=null,n=Ee.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=Ee.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=gr(),Ee.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=Te;return t.index++,n}function Nn(e,t){return typeof t=="function"?t(e):t}function xr(e){var t=tt();return bo(t,Ye,e)}function bo(e,t,n){var a=e.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=n;var o=e.baseQueue,s=a.pending;if(s!==null){if(o!==null){var h=o.next;o.next=s.next,s.next=h}t.baseQueue=o=s,a.pending=null}if(s=e.baseState,o===null)e.memoizedState=s;else{t=o.next;var x=h=null,w=null,M=t,R=!1;do{var Y=M.lane&-536870913;if(Y!==M.lane?(_e&Y)===Y:(zn&Y)===Y){var j=M.revertLane;if(j===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),Y===ia&&(R=!0);else if((zn&j)===j){M=M.next,j===ia&&(R=!0);continue}else Y={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},w===null?(x=w=Y,h=s):w=w.next=Y,Ee.lanes|=j,Pn|=j;Y=M.action,Cl&&n(s,Y),s=M.hasEagerState?M.eagerState:n(s,Y)}else j={lane:Y,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},w===null?(x=w=j,h=s):w=w.next=j,Ee.lanes|=Y,Pn|=Y;M=M.next}while(M!==null&&M!==t);if(w===null?h=s:w.next=x,!Lt(s,e.memoizedState)&&(at=!0,R&&(n=ra,n!==null)))throw n;e.memoizedState=s,e.baseState=h,e.baseQueue=w,a.lastRenderedState=s}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function vo(e){var t=tt(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var h=o=o.next;do s=e(s,h.action),h=h.next;while(h!==o);Lt(s,t.memoizedState)||(at=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,a]}function Kf(e,t,n){var a=Ee,o=tt(),s=je;if(s){if(n===void 0)throw Error(u(407));n=n()}else n=t();var h=!Lt((Ye||o).memoizedState,n);if(h&&(o.memoizedState=n,at=!0),o=o.queue,To(If.bind(null,a,o,e),[e]),o.getSnapshot!==t||h||lt!==null&&lt.memoizedState.tag&1){if(a.flags|=2048,da(9,{destroy:void 0},Ff.bind(null,a,o,n,t),null),Ze===null)throw Error(u(349));s||(zn&127)!==0||Jf(a,t,n)}return n}function Jf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ee.updateQueue,t===null?(t=gr(),Ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ff(e,t,n,a){t.value=n,t.getSnapshot=a,$f(t)&&Wf(e)}function If(e,t,n){return n(function(){$f(t)&&Wf(e)})}function $f(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lt(e,n)}catch{return!0}}function Wf(e){var t=vl(e,2);t!==null&&Ot(t,e,2)}function So(e){var t=Tt();if(typeof e=="function"){var n=e;if(e=n(),Cl){zt(!0);try{n()}finally{zt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:e},t}function Pf(e,t,n,a){return e.baseState=n,bo(e,Ye,typeof a=="function"?a:Nn)}function Ly(e,t,n,a,o){if(Sr(e))throw Error(u(485));if(e=t.action,e!==null){var s={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){s.listeners.push(h)}};C.T!==null?n(!0):s.isTransition=!1,a(s),n=t.pending,n===null?(s.next=t.pending=s,ed(t,s)):(s.next=n.next,t.pending=n.next=s)}}function ed(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var s=C.T,h={};C.T=h;try{var x=n(o,a),w=C.S;w!==null&&w(h,x),td(e,t,x)}catch(M){Eo(e,t,M)}finally{s!==null&&h.types!==null&&(s.types=h.types),C.T=s}}else try{s=n(o,a),td(e,t,s)}catch(M){Eo(e,t,M)}}function td(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){nd(e,t,a)},function(a){return Eo(e,t,a)}):nd(e,t,n)}function nd(e,t,n){t.status="fulfilled",t.value=n,ld(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ed(e,n)))}function Eo(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,ld(t),t=t.next;while(t!==a)}e.action=null}function ld(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ad(e,t){return t}function id(e,t){if(je){var n=Ze.formState;if(n!==null){e:{var a=Ee;if(je){if(Fe){t:{for(var o=Fe,s=Pt;o.nodeType!==8;){if(!s){o=null;break t}if(o=tn(o.nextSibling),o===null){o=null;break t}}s=o.data,o=s==="F!"||s==="F"?o:null}if(o){Fe=tn(o.nextSibling),a=o.data==="F!";break e}}Xn(a)}a=!1}a&&(t=n[0])}}return n=Tt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ad,lastRenderedState:t},n.queue=a,n=kd.bind(null,Ee,a),a.dispatch=n,a=So(!1),s=Ao.bind(null,Ee,!1,a.queue),a=Tt(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=Ly.bind(null,Ee,o,s,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function rd(e){var t=tt();return ud(t,Ye,e)}function ud(e,t,n){if(t=bo(e,t,ad)[0],e=xr(Nn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=ni(t)}catch(h){throw h===ua?or:h}else a=t;t=tt();var o=t.queue,s=o.dispatch;return n!==t.memoizedState&&(Ee.flags|=2048,da(9,{destroy:void 0},Hy.bind(null,o,n),null)),[a,s,e]}function Hy(e,t){e.action=t}function od(e){var t=tt(),n=Ye;if(n!==null)return ud(t,n,e);tt(),t=t.memoizedState,n=tt();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function da(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=Ee.updateQueue,t===null&&(t=gr(),Ee.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function sd(){return tt().memoizedState}function br(e,t,n,a){var o=Tt();Ee.flags|=e,o.memoizedState=da(1|t,{destroy:void 0},n,a===void 0?null:a)}function vr(e,t,n,a){var o=tt();a=a===void 0?null:a;var s=o.memoizedState.inst;Ye!==null&&a!==null&&ho(a,Ye.memoizedState.deps)?o.memoizedState=da(t,s,n,a):(Ee.flags|=e,o.memoizedState=da(1|t,s,n,a))}function cd(e,t){br(8390656,8,e,t)}function To(e,t){vr(2048,8,e,t)}function qy(e){Ee.flags|=4;var t=Ee.updateQueue;if(t===null)t=gr(),Ee.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function fd(e){var t=tt().memoizedState;return qy({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function dd(e,t){return vr(4,2,e,t)}function hd(e,t){return vr(4,4,e,t)}function md(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function pd(e,t,n){n=n!=null?n.concat([e]):null,vr(4,4,md.bind(null,t,e),n)}function ko(){}function gd(e,t){var n=tt();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&ho(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function yd(e,t){var n=tt();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&ho(t,a[1]))return a[0];if(a=e(),Cl){zt(!0);try{e()}finally{zt(!1)}}return n.memoizedState=[a,t],a}function wo(e,t,n){return n===void 0||(zn&1073741824)!==0&&(_e&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=xh(),Ee.lanes|=e,Pn|=e,n)}function xd(e,t,n,a){return Lt(n,t)?n:sa.current!==null?(e=wo(e,n,a),Lt(e,t)||(at=!0),e):(zn&42)===0||(zn&1073741824)!==0&&(_e&261930)===0?(at=!0,e.memoizedState=n):(e=xh(),Ee.lanes|=e,Pn|=e,t)}function bd(e,t,n,a,o){var s=V.p;V.p=s!==0&&8>s?s:8;var h=C.T,x={};C.T=x,Ao(e,!1,t,n);try{var w=o(),M=C.S;if(M!==null&&M(x,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var R=Ry(w,a);li(e,t,R,Xt(e))}else li(e,t,a,Xt(e))}catch(Y){li(e,t,{then:function(){},status:"rejected",reason:Y},Xt())}finally{V.p=s,h!==null&&x.types!==null&&(h.types=x.types),C.T=h}}function Yy(){}function zo(e,t,n,a){if(e.tag!==5)throw Error(u(476));var o=vd(e).queue;bd(e,o,t,Z,n===null?Yy:function(){return Sd(e),n(a)})}function vd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:Z},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Sd(e){var t=vd(e);t.next===null&&(t=e.alternate.memoizedState),li(e,t.next.queue,{},Xt())}function No(){return pt(vi)}function Ed(){return tt().memoizedState}function Td(){return tt().memoizedState}function Gy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Xt();e=Kn(n);var a=Jn(t,e,n);a!==null&&(Ot(a,t,n),Wa(a,t,n)),t={cache:to()},e.payload=t;return}t=t.return}}function Vy(e,t,n){var a=Xt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Sr(e)?wd(t,n):(n=Xu(e,t,n,a),n!==null&&(Ot(n,e,a),zd(n,t,a)))}function kd(e,t,n){var a=Xt();li(e,t,n,a)}function li(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sr(e))wd(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var h=t.lastRenderedState,x=s(h,n);if(o.hasEagerState=!0,o.eagerState=x,Lt(x,h))return tr(e,t,o,0),Ze===null&&er(),!1}catch{}finally{}if(n=Xu(e,t,o,a),n!==null)return Ot(n,e,a),zd(n,t,a),!0}return!1}function Ao(e,t,n,a){if(a={lane:2,revertLane:rs(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Sr(e)){if(t)throw Error(u(479))}else t=Xu(e,n,a,2),t!==null&&Ot(t,e,2)}function Sr(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function wd(e,t){ca=mr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zd(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,_c(e,n)}}var ai={readContext:pt,use:yr,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We};ai.useEffectEvent=We;var Nd={readContext:pt,use:yr,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:cd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,br(4194308,4,md.bind(null,t,e),n)},useLayoutEffect:function(e,t){return br(4194308,4,e,t)},useInsertionEffect:function(e,t){br(4,2,e,t)},useMemo:function(e,t){var n=Tt();t=t===void 0?null:t;var a=e();if(Cl){zt(!0);try{e()}finally{zt(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Tt();if(n!==void 0){var o=n(t);if(Cl){zt(!0);try{n(t)}finally{zt(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=Vy.bind(null,Ee,e),[a.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=So(e);var t=e.queue,n=kd.bind(null,Ee,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ko,useDeferredValue:function(e,t){var n=Tt();return wo(n,e,t)},useTransition:function(){var e=So(!1);return e=bd.bind(null,Ee,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Ee,o=Tt();if(je){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),Ze===null)throw Error(u(349));(_e&127)!==0||Jf(a,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,cd(If.bind(null,a,s,e),[e]),a.flags|=2048,da(9,{destroy:void 0},Ff.bind(null,a,s,n,t),null),n},useId:function(){var e=Tt(),t=Ze.identifierPrefix;if(je){var n=fn,a=cn;n=(a&~(1<<32-Qe(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=pr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Uy++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:No,useFormState:id,useActionState:id,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ao.bind(null,Ee,!0,n),n.dispatch=t,[e,t]},useMemoCache:xo,useCacheRefresh:function(){return Tt().memoizedState=Gy.bind(null,Ee)},useEffectEvent:function(e){var t=Tt(),n={impl:e};return t.memoizedState=n,function(){if((Re&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},Co={readContext:pt,use:yr,useCallback:gd,useContext:pt,useEffect:To,useImperativeHandle:pd,useInsertionEffect:dd,useLayoutEffect:hd,useMemo:yd,useReducer:xr,useRef:sd,useState:function(){return xr(Nn)},useDebugValue:ko,useDeferredValue:function(e,t){var n=tt();return xd(n,Ye.memoizedState,e,t)},useTransition:function(){var e=xr(Nn)[0],t=tt().memoizedState;return[typeof e=="boolean"?e:ni(e),t]},useSyncExternalStore:Kf,useId:Ed,useHostTransitionStatus:No,useFormState:rd,useActionState:rd,useOptimistic:function(e,t){var n=tt();return Pf(n,Ye,e,t)},useMemoCache:xo,useCacheRefresh:Td};Co.useEffectEvent=fd;var Ad={readContext:pt,use:yr,useCallback:gd,useContext:pt,useEffect:To,useImperativeHandle:pd,useInsertionEffect:dd,useLayoutEffect:hd,useMemo:yd,useReducer:vo,useRef:sd,useState:function(){return vo(Nn)},useDebugValue:ko,useDeferredValue:function(e,t){var n=tt();return Ye===null?wo(n,e,t):xd(n,Ye.memoizedState,e,t)},useTransition:function(){var e=vo(Nn)[0],t=tt().memoizedState;return[typeof e=="boolean"?e:ni(e),t]},useSyncExternalStore:Kf,useId:Ed,useHostTransitionStatus:No,useFormState:od,useActionState:od,useOptimistic:function(e,t){var n=tt();return Ye!==null?Pf(n,Ye,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:xo,useCacheRefresh:Td};Ad.useEffectEvent=fd;function _o(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Mo={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Xt(),o=Kn(a);o.payload=t,n!=null&&(o.callback=n),t=Jn(e,o,a),t!==null&&(Ot(t,e,a),Wa(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Xt(),o=Kn(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Jn(e,o,a),t!==null&&(Ot(t,e,a),Wa(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xt(),a=Kn(n);a.tag=2,t!=null&&(a.callback=t),t=Jn(e,a,n),t!==null&&(Ot(t,e,n),Wa(t,e,n))}};function Cd(e,t,n,a,o,s,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,h):t.prototype&&t.prototype.isPureReactComponent?!Xa(n,a)||!Xa(o,s):!0}function _d(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Mo.enqueueReplaceState(t,t.state,null)}function _l(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Md(e){Pi(e)}function jd(e){console.error(e)}function Od(e){Pi(e)}function Er(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Dd(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function jo(e,t,n){return n=Kn(n),n.tag=3,n.payload={element:null},n.callback=function(){Er(e,t)},n}function Rd(e){return e=Kn(e),e.tag=3,e}function Ud(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var s=a.value;e.payload=function(){return o(s)},e.callback=function(){Dd(t,n,a)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Dd(t,n,a),typeof o!="function"&&(el===null?el=new Set([this]):el.add(this));var x=a.stack;this.componentDidCatch(a.value,{componentStack:x!==null?x:""})})}function Xy(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&aa(t,n,o,!0),n=qt.current,n!==null){switch(n.tag){case 31:case 13:return en===null?Dr():n.alternate===null&&Pe===0&&(Pe=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===sr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),ls(e,a,o)),!1;case 22:return n.flags|=65536,a===sr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),ls(e,a,o)),!1}throw Error(u(435,n.tag))}return ls(e,a,o),Dr(),!1}if(je)return t=qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==Iu&&(e=Error(u(422),{cause:a}),Ka(It(e,n)))):(a!==Iu&&(t=Error(u(423),{cause:a}),Ka(It(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=It(a,n),o=jo(e.stateNode,a,o),uo(e,o),Pe!==4&&(Pe=2)),!1;var s=Error(u(520),{cause:a});if(s=It(s,n),di===null?di=[s]:di.push(s),Pe!==4&&(Pe=2),t===null)return!0;a=It(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=jo(n.stateNode,a,e),uo(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(el===null||!el.has(s))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Rd(o),Ud(o,e,n,a),uo(n,o),!1}n=n.return}while(n!==null);return!1}var Oo=Error(u(461)),at=!1;function gt(e,t,n,a){t.child=e===null?qf(t,null,n,a):Al(t,e.child,n,a)}function Bd(e,t,n,a,o){n=n.render;var s=t.ref;if("ref"in a){var h={};for(var x in a)x!=="ref"&&(h[x]=a[x])}else h=a;return kl(t),a=mo(e,t,n,h,s,o),x=po(),e!==null&&!at?(go(e,t,o),An(e,t,o)):(je&&x&&Ju(t),t.flags|=1,gt(e,t,a,o),t.child)}function Ld(e,t,n,a,o){if(e===null){var s=n.type;return typeof s=="function"&&!Qu(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,Hd(e,t,s,a,o)):(e=lr(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Yo(e,o)){var h=s.memoizedProps;if(n=n.compare,n=n!==null?n:Xa,n(h,a)&&e.ref===t.ref)return An(e,t,o)}return t.flags|=1,e=En(s,a),e.ref=t.ref,e.return=t,t.child=e}function Hd(e,t,n,a,o){if(e!==null){var s=e.memoizedProps;if(Xa(s,a)&&e.ref===t.ref)if(at=!1,t.pendingProps=a=s,Yo(e,o))(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,An(e,t,o)}return Do(e,t,n,a,o)}function qd(e,t,n,a){var o=a.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~s}else a=0,t.child=null;return Yd(e,t,s,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ur(t,s!==null?s.cachePool:null),s!==null?Vf(t,s):so(),Xf(t);else return a=t.lanes=536870912,Yd(e,t,s!==null?s.baseLanes|n:n,n,a)}else s!==null?(ur(t,s.cachePool),Vf(t,s),In(),t.memoizedState=null):(e!==null&&ur(t,null),so(),In());return gt(e,t,o,n),t.child}function ii(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Yd(e,t,n,a,o){var s=lo();return s=s===null?null:{parent:nt._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&ur(t,null),so(),Xf(t),e!==null&&aa(e,t,a,!0),t.childLanes=o,null}function Tr(e,t){return t=wr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Gd(e,t,n){return Al(t,e.child,null,n),e=Tr(t,t.pendingProps),e.flags|=2,Yt(t),t.memoizedState=null,e}function Qy(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(a.mode==="hidden")return e=Tr(t,a),t.lanes=536870912,ii(null,e);if(fo(t),(e=Fe)?(e=em(e,Pt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Gn!==null?{id:cn,overflow:fn}:null,retryLane:536870912,hydrationErrors:null},n=wf(e),n.return=t,t.child=n,mt=t,Fe=null)):e=null,e===null)throw Xn(t);return t.lanes=536870912,null}return Tr(t,a)}var s=e.memoizedState;if(s!==null){var h=s.dehydrated;if(fo(t),o)if(t.flags&256)t.flags&=-257,t=Gd(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(at||aa(e,t,n,!1),o=(n&e.childLanes)!==0,at||o){if(a=Ze,a!==null&&(h=Mc(a,n),h!==0&&h!==s.retryLane))throw s.retryLane=h,vl(e,h),Ot(a,e,h),Oo;Dr(),t=Gd(e,t,n)}else e=s.treeContext,Fe=tn(h.nextSibling),mt=t,je=!0,Vn=null,Pt=!1,e!==null&&Af(t,e),t=Tr(t,a),t.flags|=4096;return t}return e=En(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function kr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Do(e,t,n,a,o){return kl(t),n=mo(e,t,n,a,void 0,o),a=po(),e!==null&&!at?(go(e,t,o),An(e,t,o)):(je&&a&&Ju(t),t.flags|=1,gt(e,t,n,o),t.child)}function Vd(e,t,n,a,o,s){return kl(t),t.updateQueue=null,n=Zf(t,a,n,o),Qf(e),a=po(),e!==null&&!at?(go(e,t,s),An(e,t,s)):(je&&a&&Ju(t),t.flags|=1,gt(e,t,n,s),t.child)}function Xd(e,t,n,a,o){if(kl(t),t.stateNode===null){var s=ea,h=n.contextType;typeof h=="object"&&h!==null&&(s=pt(h)),s=new n(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Mo,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},io(t),h=n.contextType,s.context=typeof h=="object"&&h!==null?pt(h):ea,s.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(_o(t,n,h,a),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(h=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),h!==s.state&&Mo.enqueueReplaceState(s,s.state,null),ei(t,a,s,o),Pa(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var x=t.memoizedProps,w=_l(n,x);s.props=w;var M=s.context,R=n.contextType;h=ea,typeof R=="object"&&R!==null&&(h=pt(R));var Y=n.getDerivedStateFromProps;R=typeof Y=="function"||typeof s.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,R||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(x||M!==h)&&_d(t,s,a,h),Zn=!1;var j=t.memoizedState;s.state=j,ei(t,a,s,o),Pa(),M=t.memoizedState,x||j!==M||Zn?(typeof Y=="function"&&(_o(t,n,Y,a),M=t.memoizedState),(w=Zn||Cd(t,n,w,a,j,M,h))?(R||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=M),s.props=a,s.state=M,s.context=h,a=w):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,ro(e,t),h=t.memoizedProps,R=_l(n,h),s.props=R,Y=t.pendingProps,j=s.context,M=n.contextType,w=ea,typeof M=="object"&&M!==null&&(w=pt(M)),x=n.getDerivedStateFromProps,(M=typeof x=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h!==Y||j!==w)&&_d(t,s,a,w),Zn=!1,j=t.memoizedState,s.state=j,ei(t,a,s,o),Pa();var O=t.memoizedState;h!==Y||j!==O||Zn||e!==null&&e.dependencies!==null&&ir(e.dependencies)?(typeof x=="function"&&(_o(t,n,x,a),O=t.memoizedState),(R=Zn||Cd(t,n,R,a,j,O,w)||e!==null&&e.dependencies!==null&&ir(e.dependencies))?(M||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,O,w),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,O,w)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=O),s.props=a,s.state=O,s.context=w,a=R):(typeof s.componentDidUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,kr(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=Al(t,e.child,null,o),t.child=Al(t,null,n,o)):gt(e,t,n,o),t.memoizedState=s.state,e=t.child):e=An(e,t,o),e}function Qd(e,t,n,a){return El(),t.flags|=256,gt(e,t,n,a),t.child}var Ro={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Uo(e){return{baseLanes:e,cachePool:Df()}}function Bo(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Vt),e}function Zd(e,t,n){var a=t.pendingProps,o=!1,s=(t.flags&128)!==0,h;if((h=s)||(h=e!==null&&e.memoizedState===null?!1:(et.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(o?Fn(t):In(),(e=Fe)?(e=em(e,Pt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Gn!==null?{id:cn,overflow:fn}:null,retryLane:536870912,hydrationErrors:null},n=wf(e),n.return=t,t.child=n,mt=t,Fe=null)):e=null,e===null)throw Xn(t);return bs(e)?t.lanes=32:t.lanes=536870912,null}var x=a.children;return a=a.fallback,o?(In(),o=t.mode,x=wr({mode:"hidden",children:x},o),a=Sl(a,o,n,null),x.return=t,a.return=t,x.sibling=a,t.child=x,a=t.child,a.memoizedState=Uo(n),a.childLanes=Bo(e,h,n),t.memoizedState=Ro,ii(null,a)):(Fn(t),Lo(t,x))}var w=e.memoizedState;if(w!==null&&(x=w.dehydrated,x!==null)){if(s)t.flags&256?(Fn(t),t.flags&=-257,t=Ho(e,t,n)):t.memoizedState!==null?(In(),t.child=e.child,t.flags|=128,t=null):(In(),x=a.fallback,o=t.mode,a=wr({mode:"visible",children:a.children},o),x=Sl(x,o,n,null),x.flags|=2,a.return=t,x.return=t,a.sibling=x,t.child=a,Al(t,e.child,null,n),a=t.child,a.memoizedState=Uo(n),a.childLanes=Bo(e,h,n),t.memoizedState=Ro,t=ii(null,a));else if(Fn(t),bs(x)){if(h=x.nextSibling&&x.nextSibling.dataset,h)var M=h.dgst;h=M,a=Error(u(419)),a.stack="",a.digest=h,Ka({value:a,source:null,stack:null}),t=Ho(e,t,n)}else if(at||aa(e,t,n,!1),h=(n&e.childLanes)!==0,at||h){if(h=Ze,h!==null&&(a=Mc(h,n),a!==0&&a!==w.retryLane))throw w.retryLane=a,vl(e,a),Ot(h,e,a),Oo;xs(x)||Dr(),t=Ho(e,t,n)}else xs(x)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Fe=tn(x.nextSibling),mt=t,je=!0,Vn=null,Pt=!1,e!==null&&Af(t,e),t=Lo(t,a.children),t.flags|=4096);return t}return o?(In(),x=a.fallback,o=t.mode,w=e.child,M=w.sibling,a=En(w,{mode:"hidden",children:a.children}),a.subtreeFlags=w.subtreeFlags&65011712,M!==null?x=En(M,x):(x=Sl(x,o,n,null),x.flags|=2),x.return=t,a.return=t,a.sibling=x,t.child=a,ii(null,a),a=t.child,x=e.child.memoizedState,x===null?x=Uo(n):(o=x.cachePool,o!==null?(w=nt._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=Df(),x={baseLanes:x.baseLanes|n,cachePool:o}),a.memoizedState=x,a.childLanes=Bo(e,h,n),t.memoizedState=Ro,ii(e.child,a)):(Fn(t),n=e.child,e=n.sibling,n=En(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function Lo(e,t){return t=wr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function wr(e,t){return e=Ht(22,e,null,t),e.lanes=0,e}function Ho(e,t,n){return Al(t,e.child,null,n),e=Lo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Kd(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Pu(e.return,t,n)}function qo(e,t,n,a,o,s){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:s}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=n,h.tailMode=o,h.treeForkCount=s)}function Jd(e,t,n){var a=t.pendingProps,o=a.revealOrder,s=a.tail;a=a.children;var h=et.current,x=(h&2)!==0;if(x?(h=h&1|2,t.flags|=128):h&=1,T(et,h),gt(e,t,a,n),a=je?Za:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Kd(e,n,t);else if(e.tag===19)Kd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&hr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),qo(t,!1,o,n,s,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&hr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}qo(t,!0,n,null,s,a);break;case"together":qo(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function An(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Pn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(aa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,n=En(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=En(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Yo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ir(e)))}function Zy(e,t,n){switch(t.tag){case 3:Xe(t,t.stateNode.containerInfo),Qn(t,nt,e.memoizedState.cache),El();break;case 27:case 5:vt(t);break;case 4:Xe(t,t.stateNode.containerInfo);break;case 10:Qn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,fo(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Fn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Zd(e,t,n):(Fn(t),e=An(e,t,n),e!==null?e.sibling:null);Fn(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(aa(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return Jd(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),T(et,et.current),a)break;return null;case 22:return t.lanes=0,qd(e,t,n,t.pendingProps);case 24:Qn(t,nt,e.memoizedState.cache)}return An(e,t,n)}function Fd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)at=!0;else{if(!Yo(e,n)&&(t.flags&128)===0)return at=!1,Zy(e,t,n);at=(e.flags&131072)!==0}else at=!1,je&&(t.flags&1048576)!==0&&Nf(t,Za,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=zl(t.elementType),t.type=e,typeof e=="function")Qu(e)?(a=_l(e,a),t.tag=1,t=Xd(null,t,e,a,n)):(t.tag=0,t=Do(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===de){t.tag=11,t=Bd(null,t,e,a,n);break e}else if(o===I){t.tag=14,t=Ld(null,t,e,a,n);break e}}throw t=ue(e)||e,Error(u(306,t,""))}}return t;case 0:return Do(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=_l(a,t.pendingProps),Xd(e,t,a,o,n);case 3:e:{if(Xe(t,t.stateNode.containerInfo),e===null)throw Error(u(387));a=t.pendingProps;var s=t.memoizedState;o=s.element,ro(e,t),ei(t,a,null,n);var h=t.memoizedState;if(a=h.cache,Qn(t,nt,a),a!==s.cache&&eo(t,[nt],n,!0),Pa(),a=h.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Qd(e,t,a,n);break e}else if(a!==o){o=It(Error(u(424)),t),Ka(o),t=Qd(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Fe=tn(e.firstChild),mt=t,je=!0,Vn=null,Pt=!0,n=qf(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(El(),a===o){t=An(e,t,n);break e}gt(e,t,a,n)}t=t.child}return t;case 26:return kr(e,t),e===null?(n=rm(t.type,null,t.pendingProps,null))?t.memoizedState=n:je||(n=t.type,e=t.pendingProps,a=Yr(le.current).createElement(n),a[ht]=t,a[Nt]=e,yt(a,n,e),ft(a),t.stateNode=a):t.memoizedState=rm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return vt(t),e===null&&je&&(a=t.stateNode=lm(t.type,t.pendingProps,le.current),mt=t,Pt=!0,o=Fe,al(t.type)?(vs=o,Fe=tn(a.firstChild)):Fe=o),gt(e,t,t.pendingProps.children,n),kr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((o=a=Fe)&&(a=E1(a,t.type,t.pendingProps,Pt),a!==null?(t.stateNode=a,mt=t,Fe=tn(a.firstChild),Pt=!1,o=!0):o=!1),o||Xn(t)),vt(t),o=t.type,s=t.pendingProps,h=e!==null?e.memoizedProps:null,a=s.children,ps(o,s)?a=null:h!==null&&ps(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=mo(e,t,By,null,null,n),vi._currentValue=o),kr(e,t),gt(e,t,a,n),t.child;case 6:return e===null&&je&&((e=n=Fe)&&(n=T1(n,t.pendingProps,Pt),n!==null?(t.stateNode=n,mt=t,Fe=null,e=!0):e=!1),e||Xn(t)),null;case 13:return Zd(e,t,n);case 4:return Xe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Al(t,null,a,n):gt(e,t,a,n),t.child;case 11:return Bd(e,t,t.type,t.pendingProps,n);case 7:return gt(e,t,t.pendingProps,n),t.child;case 8:return gt(e,t,t.pendingProps.children,n),t.child;case 12:return gt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Qn(t,t.type,a.value),gt(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,kl(t),o=pt(o),a=a(o),t.flags|=1,gt(e,t,a,n),t.child;case 14:return Ld(e,t,t.type,t.pendingProps,n);case 15:return Hd(e,t,t.type,t.pendingProps,n);case 19:return Jd(e,t,n);case 31:return Qy(e,t,n);case 22:return qd(e,t,n,t.pendingProps);case 24:return kl(t),a=pt(nt),e===null?(o=lo(),o===null&&(o=Ze,s=to(),o.pooledCache=s,s.refCount++,s!==null&&(o.pooledCacheLanes|=n),o=s),t.memoizedState={parent:a,cache:o},io(t),Qn(t,nt,o)):((e.lanes&n)!==0&&(ro(e,t),ei(t,null,null,n),Pa()),o=e.memoizedState,s=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Qn(t,nt,a)):(a=s.cache,Qn(t,nt,a),a!==o.cache&&eo(t,[nt],n,!0))),gt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Cn(e){e.flags|=4}function Go(e,t,n,a,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Eh())e.flags|=8192;else throw Nl=sr,ao}else e.flags&=-16777217}function Id(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!fm(t))if(Eh())e.flags|=8192;else throw Nl=sr,ao}function zr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ac():536870912,e.lanes|=t,ga|=t)}function ri(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ie(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Ky(e,t,n){var a=t.pendingProps;switch(Fu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ie(t),null;case 1:return Ie(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),wn(nt),ye(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(la(t)?Cn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$u())),Ie(t),null;case 26:var o=t.type,s=t.memoizedState;return e===null?(Cn(t),s!==null?(Ie(t),Id(t,s)):(Ie(t),Go(t,o,null,a,n))):s?s!==e.memoizedState?(Cn(t),Ie(t),Id(t,s)):(Ie(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Cn(t),Ie(t),Go(t,o,e,a,n)),null;case 27:if(kt(t),n=le.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Cn(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return Ie(t),null}e=W.current,la(t)?Cf(t):(e=lm(o,a,n),t.stateNode=e,Cn(t))}return Ie(t),null;case 5:if(kt(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Cn(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return Ie(t),null}if(s=W.current,la(t))Cf(t);else{var h=Yr(le.current);switch(s){case 1:s=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:s=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":s=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":s=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":s=h.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?h.createElement(o,{is:a.is}):h.createElement(o)}}s[ht]=t,s[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)s.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=s;e:switch(yt(s,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Cn(t)}}return Ie(t),Go(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Cn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=le.current,la(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=mt,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Zh(e.nodeValue,n)),e||Xn(t,!0)}else e=Yr(e).createTextNode(a),e[ht]=t,t.stateNode=e}return Ie(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=la(t),n!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ht]=t}else El(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ie(t),e=!1}else n=$u(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Yt(t),t):(Yt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Ie(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=la(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(u(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[ht]=t}else El(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ie(t),o=!1}else o=$u(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Yt(t),t):(Yt(t),null)}return Yt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),zr(t,t.updateQueue),Ie(t),null);case 4:return ye(),e===null&&cs(t.stateNode.containerInfo),Ie(t),null;case 10:return wn(t.type),Ie(t),null;case 19:if(D(et),a=t.memoizedState,a===null)return Ie(t),null;if(o=(t.flags&128)!==0,s=a.rendering,s===null)if(o)ri(a,!1);else{if(Pe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=hr(e),s!==null){for(t.flags|=128,ri(a,!1),e=s.updateQueue,t.updateQueue=e,zr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)kf(n,e),n=n.sibling;return T(et,et.current&1|2),je&&Tn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&St()>Mr&&(t.flags|=128,o=!0,ri(a,!1),t.lanes=4194304)}else{if(!o)if(e=hr(s),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,zr(t,e),ri(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!je)return Ie(t),null}else 2*St()-a.renderingStartTime>Mr&&n!==536870912&&(t.flags|=128,o=!0,ri(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(e=a.last,e!==null?e.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=St(),e.sibling=null,n=et.current,T(et,o?n&1|2:n&1),je&&Tn(t,a.treeForkCount),e):(Ie(t),null);case 22:case 23:return Yt(t),co(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Ie(t),t.subtreeFlags&6&&(t.flags|=8192)):Ie(t),n=t.updateQueue,n!==null&&zr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&D(wl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),wn(nt),Ie(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Jy(e,t){switch(Fu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wn(nt),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return kt(t),null;case 31:if(t.memoizedState!==null){if(Yt(t),t.alternate===null)throw Error(u(340));El()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Yt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));El()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(et),null;case 4:return ye(),null;case 10:return wn(t.type),null;case 22:case 23:return Yt(t),co(),e!==null&&D(wl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wn(nt),null;case 25:return null;default:return null}}function $d(e,t){switch(Fu(t),t.tag){case 3:wn(nt),ye();break;case 26:case 27:case 5:kt(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&Yt(t);break;case 13:Yt(t);break;case 19:D(et);break;case 10:wn(t.type);break;case 22:case 23:Yt(t),co(),e!==null&&D(wl);break;case 24:wn(nt)}}function ui(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var s=n.create,h=n.inst;a=s(),h.destroy=a}n=n.next}while(n!==o)}}catch(x){He(t,t.return,x)}}function $n(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var s=o.next;a=s;do{if((a.tag&e)===e){var h=a.inst,x=h.destroy;if(x!==void 0){h.destroy=void 0,o=t;var w=n,M=x;try{M()}catch(R){He(o,w,R)}}}a=a.next}while(a!==s)}}catch(R){He(t,t.return,R)}}function Wd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Gf(t,n)}catch(a){He(e,e.return,a)}}}function Pd(e,t,n){n.props=_l(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){He(e,t,a)}}function oi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){He(e,t,o)}}function dn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){He(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){He(e,t,o)}else n.current=null}function eh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){He(e,e.return,o)}}function Vo(e,t,n){try{var a=e.stateNode;g1(a,e.type,n,t),a[Nt]=t}catch(o){He(e,e.return,o)}}function th(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&al(e.type)||e.tag===4}function Xo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||th(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&al(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qo(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vn));else if(a!==4&&(a===27&&al(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qo(e,t,n),e=e.sibling;e!==null;)Qo(e,t,n),e=e.sibling}function Nr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&al(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Nr(e,t,n),e=e.sibling;e!==null;)Nr(e,t,n),e=e.sibling}function nh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);yt(t,a,n),t[ht]=e,t[Nt]=n}catch(s){He(e,e.return,s)}}var _n=!1,it=!1,Zo=!1,lh=typeof WeakSet=="function"?WeakSet:Set,dt=null;function Fy(e,t){if(e=e.containerInfo,hs=Jr,e=pf(e),Lu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var h=0,x=-1,w=-1,M=0,R=0,Y=e,j=null;t:for(;;){for(var O;Y!==n||o!==0&&Y.nodeType!==3||(x=h+o),Y!==s||a!==0&&Y.nodeType!==3||(w=h+a),Y.nodeType===3&&(h+=Y.nodeValue.length),(O=Y.firstChild)!==null;)j=Y,Y=O;for(;;){if(Y===e)break t;if(j===n&&++M===o&&(x=h),j===s&&++R===a&&(w=h),(O=Y.nextSibling)!==null)break;Y=j,j=Y.parentNode}Y=O}n=x===-1||w===-1?null:{start:x,end:w}}else n=null}n=n||{start:0,end:0}}else n=null;for(ms={focusedElem:e,selectionRange:n},Jr=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){switch(t=dt,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,n=t,o=s.memoizedProps,s=s.memoizedState,a=n.stateNode;try{var oe=_l(n.type,o);e=a.getSnapshotBeforeUpdate(oe,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(me){He(n,n.return,me)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ys(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ys(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,dt=e;break}dt=t.return}}function ah(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:jn(e,n),a&4&&ui(5,n);break;case 1:if(jn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){He(n,n.return,h)}else{var o=_l(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){He(n,n.return,h)}}a&64&&Wd(n),a&512&&oi(n,n.return);break;case 3:if(jn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Gf(e,t)}catch(h){He(n,n.return,h)}}break;case 27:t===null&&a&4&&nh(n);case 26:case 5:jn(e,n),t===null&&a&4&&eh(n),a&512&&oi(n,n.return);break;case 12:jn(e,n);break;case 31:jn(e,n),a&4&&uh(e,n);break;case 13:jn(e,n),a&4&&oh(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=a1.bind(null,n),k1(e,n))));break;case 22:if(a=n.memoizedState!==null||_n,!a){t=t!==null&&t.memoizedState!==null||it,o=_n;var s=it;_n=a,(it=t)&&!s?On(e,n,(n.subtreeFlags&8772)!==0):jn(e,n),_n=o,it=s}break;case 30:break;default:jn(e,n)}}function ih(e){var t=e.alternate;t!==null&&(e.alternate=null,ih(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Su(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var $e=null,Ct=!1;function Mn(e,t,n){for(n=n.child;n!==null;)rh(e,t,n),n=n.sibling}function rh(e,t,n){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Et,n)}catch{}switch(n.tag){case 26:it||dn(n,t),Mn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:it||dn(n,t);var a=$e,o=Ct;al(n.type)&&($e=n.stateNode,Ct=!1),Mn(e,t,n),yi(n.stateNode),$e=a,Ct=o;break;case 5:it||dn(n,t);case 6:if(a=$e,o=Ct,$e=null,Mn(e,t,n),$e=a,Ct=o,$e!==null)if(Ct)try{($e.nodeType===9?$e.body:$e.nodeName==="HTML"?$e.ownerDocument.body:$e).removeChild(n.stateNode)}catch(s){He(n,t,s)}else try{$e.removeChild(n.stateNode)}catch(s){He(n,t,s)}break;case 18:$e!==null&&(Ct?(e=$e,Wh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ka(e)):Wh($e,n.stateNode));break;case 4:a=$e,o=Ct,$e=n.stateNode.containerInfo,Ct=!0,Mn(e,t,n),$e=a,Ct=o;break;case 0:case 11:case 14:case 15:$n(2,n,t),it||$n(4,n,t),Mn(e,t,n);break;case 1:it||(dn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Pd(n,t,a)),Mn(e,t,n);break;case 21:Mn(e,t,n);break;case 22:it=(a=it)||n.memoizedState!==null,Mn(e,t,n),it=a;break;default:Mn(e,t,n)}}function uh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ka(e)}catch(n){He(t,t.return,n)}}}function oh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ka(e)}catch(n){He(t,t.return,n)}}function Iy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new lh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new lh),t;default:throw Error(u(435,e.tag))}}function Ar(e,t){var n=Iy(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=i1.bind(null,e,a);a.then(o,o)}})}function _t(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],s=e,h=t,x=h;e:for(;x!==null;){switch(x.tag){case 27:if(al(x.type)){$e=x.stateNode,Ct=!1;break e}break;case 5:$e=x.stateNode,Ct=!1;break e;case 3:case 4:$e=x.stateNode.containerInfo,Ct=!0;break e}x=x.return}if($e===null)throw Error(u(160));rh(s,h,o),$e=null,Ct=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)sh(t,e),t=t.sibling}var un=null;function sh(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_t(t,e),Mt(e),a&4&&($n(3,e,e.return),ui(3,e),$n(5,e,e.return));break;case 1:_t(t,e),Mt(e),a&512&&(it||n===null||dn(n,n.return)),a&64&&_n&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=un;if(_t(t,e),Mt(e),a&512&&(it||n===null||dn(n,n.return)),a&4){var s=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":s=o.getElementsByTagName("title")[0],(!s||s[Ra]||s[ht]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=o.createElement(a),o.head.insertBefore(s,o.querySelector("head > title"))),yt(s,a,n),s[ht]=e,ft(s),a=s;break e;case"link":var h=sm("link","href",o).get(a+(n.href||""));if(h){for(var x=0;x<h.length;x++)if(s=h[x],s.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&s.getAttribute("rel")===(n.rel==null?null:n.rel)&&s.getAttribute("title")===(n.title==null?null:n.title)&&s.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(x,1);break t}}s=o.createElement(a),yt(s,a,n),o.head.appendChild(s);break;case"meta":if(h=sm("meta","content",o).get(a+(n.content||""))){for(x=0;x<h.length;x++)if(s=h[x],s.getAttribute("content")===(n.content==null?null:""+n.content)&&s.getAttribute("name")===(n.name==null?null:n.name)&&s.getAttribute("property")===(n.property==null?null:n.property)&&s.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(x,1);break t}}s=o.createElement(a),yt(s,a,n),o.head.appendChild(s);break;default:throw Error(u(468,a))}s[ht]=e,ft(s),a=s}e.stateNode=a}else cm(o,e.type,e.stateNode);else e.stateNode=om(o,a,e.memoizedProps);else s!==a?(s===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):s.count--,a===null?cm(o,e.type,e.stateNode):om(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Vo(e,e.memoizedProps,n.memoizedProps)}break;case 27:_t(t,e),Mt(e),a&512&&(it||n===null||dn(n,n.return)),n!==null&&a&4&&Vo(e,e.memoizedProps,n.memoizedProps);break;case 5:if(_t(t,e),Mt(e),a&512&&(it||n===null||dn(n,n.return)),e.flags&32){o=e.stateNode;try{Kl(o,"")}catch(oe){He(e,e.return,oe)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Vo(e,o,n!==null?n.memoizedProps:o)),a&1024&&(Zo=!0);break;case 6:if(_t(t,e),Mt(e),a&4){if(e.stateNode===null)throw Error(u(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(oe){He(e,e.return,oe)}}break;case 3:if(Xr=null,o=un,un=Gr(t.containerInfo),_t(t,e),un=o,Mt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ka(t.containerInfo)}catch(oe){He(e,e.return,oe)}Zo&&(Zo=!1,ch(e));break;case 4:a=un,un=Gr(e.stateNode.containerInfo),_t(t,e),Mt(e),un=a;break;case 12:_t(t,e),Mt(e);break;case 31:_t(t,e),Mt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ar(e,a)));break;case 13:_t(t,e),Mt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(_r=St()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ar(e,a)));break;case 22:o=e.memoizedState!==null;var w=n!==null&&n.memoizedState!==null,M=_n,R=it;if(_n=M||o,it=R||w,_t(t,e),it=R,_n=M,Mt(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||w||_n||it||Ml(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){w=n=t;try{if(s=w.stateNode,o)h=s.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{x=w.stateNode;var Y=w.memoizedProps.style,j=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;x.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(oe){He(w,w.return,oe)}}}else if(t.tag===6){if(n===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(oe){He(w,w.return,oe)}}}else if(t.tag===18){if(n===null){w=t;try{var O=w.stateNode;o?Ph(O,!0):Ph(w.stateNode,!1)}catch(oe){He(w,w.return,oe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Ar(e,n))));break;case 19:_t(t,e),Mt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ar(e,a)));break;case 30:break;case 21:break;default:_t(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(th(a)){n=a;break}a=a.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var o=n.stateNode,s=Xo(e);Nr(e,s,o);break;case 5:var h=n.stateNode;n.flags&32&&(Kl(h,""),n.flags&=-33);var x=Xo(e);Nr(e,x,h);break;case 3:case 4:var w=n.stateNode.containerInfo,M=Xo(e);Qo(e,M,w);break;default:throw Error(u(161))}}catch(R){He(e,e.return,R)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ch(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ch(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function jn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ah(e,t.alternate,t),t=t.sibling}function Ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$n(4,t,t.return),Ml(t);break;case 1:dn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Pd(t,t.return,n),Ml(t);break;case 27:yi(t.stateNode);case 26:case 5:dn(t,t.return),Ml(t);break;case 22:t.memoizedState===null&&Ml(t);break;case 30:Ml(t);break;default:Ml(t)}e=e.sibling}}function On(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,s=t,h=s.flags;switch(s.tag){case 0:case 11:case 15:On(o,s,n),ui(4,s);break;case 1:if(On(o,s,n),a=s,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(M){He(a,a.return,M)}if(a=s,o=a.updateQueue,o!==null){var x=a.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)Yf(w[o],x)}catch(M){He(a,a.return,M)}}n&&h&64&&Wd(s),oi(s,s.return);break;case 27:nh(s);case 26:case 5:On(o,s,n),n&&a===null&&h&4&&eh(s),oi(s,s.return);break;case 12:On(o,s,n);break;case 31:On(o,s,n),n&&h&4&&uh(o,s);break;case 13:On(o,s,n),n&&h&4&&oh(o,s);break;case 22:s.memoizedState===null&&On(o,s,n),oi(s,s.return);break;case 30:break;default:On(o,s,n)}t=t.sibling}}function Ko(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ja(n))}function Jo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ja(e))}function on(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fh(e,t,n,a),t=t.sibling}function fh(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:on(e,t,n,a),o&2048&&ui(9,t);break;case 1:on(e,t,n,a);break;case 3:on(e,t,n,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ja(e)));break;case 12:if(o&2048){on(e,t,n,a),e=t.stateNode;try{var s=t.memoizedProps,h=s.id,x=s.onPostCommit;typeof x=="function"&&x(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){He(t,t.return,w)}}else on(e,t,n,a);break;case 31:on(e,t,n,a);break;case 13:on(e,t,n,a);break;case 23:break;case 22:s=t.stateNode,h=t.alternate,t.memoizedState!==null?s._visibility&2?on(e,t,n,a):si(e,t):s._visibility&2?on(e,t,n,a):(s._visibility|=2,ha(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Ko(h,t);break;case 24:on(e,t,n,a),o&2048&&Jo(t.alternate,t);break;default:on(e,t,n,a)}}function ha(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,h=t,x=n,w=a,M=h.flags;switch(h.tag){case 0:case 11:case 15:ha(s,h,x,w,o),ui(8,h);break;case 23:break;case 22:var R=h.stateNode;h.memoizedState!==null?R._visibility&2?ha(s,h,x,w,o):si(s,h):(R._visibility|=2,ha(s,h,x,w,o)),o&&M&2048&&Ko(h.alternate,h);break;case 24:ha(s,h,x,w,o),o&&M&2048&&Jo(h.alternate,h);break;default:ha(s,h,x,w,o)}t=t.sibling}}function si(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:si(n,a),o&2048&&Ko(a.alternate,a);break;case 24:si(n,a),o&2048&&Jo(a.alternate,a);break;default:si(n,a)}t=t.sibling}}var ci=8192;function ma(e,t,n){if(e.subtreeFlags&ci)for(e=e.child;e!==null;)dh(e,t,n),e=e.sibling}function dh(e,t,n){switch(e.tag){case 26:ma(e,t,n),e.flags&ci&&e.memoizedState!==null&&U1(n,un,e.memoizedState,e.memoizedProps);break;case 5:ma(e,t,n);break;case 3:case 4:var a=un;un=Gr(e.stateNode.containerInfo),ma(e,t,n),un=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ci,ci=16777216,ma(e,t,n),ci=a):ma(e,t,n));break;default:ma(e,t,n)}}function hh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function fi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];dt=a,ph(a,e)}hh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)mh(e),e=e.sibling}function mh(e){switch(e.tag){case 0:case 11:case 15:fi(e),e.flags&2048&&$n(9,e,e.return);break;case 3:fi(e);break;case 12:fi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Cr(e)):fi(e);break;default:fi(e)}}function Cr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];dt=a,ph(a,e)}hh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$n(8,t,t.return),Cr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Cr(t));break;default:Cr(t)}e=e.sibling}}function ph(e,t){for(;dt!==null;){var n=dt;switch(n.tag){case 0:case 11:case 15:$n(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ja(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,dt=a;else e:for(n=e;dt!==null;){a=dt;var o=a.sibling,s=a.return;if(ih(a),a===n){dt=null;break e}if(o!==null){o.return=s,dt=o;break e}dt=s}}}var $y={getCacheForType:function(e){var t=pt(nt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return pt(nt).controller.signal}},Wy=typeof WeakMap=="function"?WeakMap:Map,Re=0,Ze=null,Ae=null,_e=0,Le=0,Gt=null,Wn=!1,pa=!1,Fo=!1,Dn=0,Pe=0,Pn=0,jl=0,Io=0,Vt=0,ga=0,di=null,jt=null,$o=!1,_r=0,gh=0,Mr=1/0,jr=null,el=null,st=0,tl=null,ya=null,Rn=0,Wo=0,Po=null,yh=null,hi=0,es=null;function Xt(){return(Re&2)!==0&&_e!==0?_e&-_e:C.T!==null?rs():jc()}function xh(){if(Vt===0)if((_e&536870912)===0||je){var e=qi;qi<<=1,(qi&3932160)===0&&(qi=262144),Vt=e}else Vt=536870912;return e=qt.current,e!==null&&(e.flags|=32),Vt}function Ot(e,t,n){(e===Ze&&(Le===2||Le===9)||e.cancelPendingCommit!==null)&&(xa(e,0),nl(e,_e,Vt,!1)),Da(e,n),((Re&2)===0||e!==Ze)&&(e===Ze&&((Re&2)===0&&(jl|=n),Pe===4&&nl(e,_e,Vt,!1)),hn(e))}function bh(e,t,n){if((Re&6)!==0)throw Error(u(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Oa(e,t),o=a?t1(e,t):ns(e,t,!0),s=a;do{if(o===0){pa&&!a&&nl(e,t,0,!1);break}else{if(n=e.current.alternate,s&&!Py(n)){o=ns(e,t,!1),s=!1;continue}if(o===2){if(s=t,e.errorRecoveryDisabledLanes&s)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var x=e;o=di;var w=x.current.memoizedState.isDehydrated;if(w&&(xa(x,h).flags|=256),h=ns(x,h,!1),h!==2){if(Fo&&!w){x.errorRecoveryDisabledLanes|=s,jl|=s,o=4;break e}s=jt,jt=o,s!==null&&(jt===null?jt=s:jt.push.apply(jt,s))}o=h}if(s=!1,o!==2)continue}}if(o===1){xa(e,0),nl(e,t,0,!0);break}e:{switch(a=e,s=o,s){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:nl(a,t,Vt,!Wn);break e;case 2:jt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=_r+300-St(),10<o)){if(nl(a,t,Vt,!Wn),Gi(a,0,!0)!==0)break e;Rn=t,a.timeoutHandle=Ih(vh.bind(null,a,n,jt,jr,$o,t,Vt,jl,ga,Wn,s,"Throttled",-0,0),o);break e}vh(a,n,jt,jr,$o,t,Vt,jl,ga,Wn,s,null,-0,0)}}break}while(!0);hn(e)}function vh(e,t,n,a,o,s,h,x,w,M,R,Y,j,O){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:vn},dh(t,s,Y);var oe=(s&62914560)===s?_r-St():(s&4194048)===s?gh-St():0;if(oe=B1(Y,oe),oe!==null){Rn=s,e.cancelPendingCommit=oe(Ah.bind(null,e,t,s,n,a,o,h,x,w,R,Y,null,j,O)),nl(e,s,h,!M);return}}Ah(e,t,s,n,a,o,h,x,w)}function Py(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var o=n[a],s=o.getSnapshot;o=o.value;try{if(!Lt(s(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function nl(e,t,n,a){t&=~Io,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var s=31-Qe(o),h=1<<s;a[s]=-1,o&=~h}n!==0&&Cc(e,n,t)}function Or(){return(Re&6)===0?(mi(0),!1):!0}function ts(){if(Ae!==null){if(Le===0)var e=Ae.return;else e=Ae,kn=Tl=null,yo(e),oa=null,Ia=0,e=Ae;for(;e!==null;)$d(e.alternate,e),e=e.return;Ae=null}}function xa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,b1(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Rn=0,ts(),Ze=e,Ae=n=En(e.current,null),_e=t,Le=0,Gt=null,Wn=!1,pa=Oa(e,t),Fo=!1,ga=Vt=Io=jl=Pn=Pe=0,jt=di=null,$o=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-Qe(a),s=1<<o;t|=e[o],a&=~s}return Dn=t,er(),n}function Sh(e,t){Ee=null,C.H=ai,t===ua||t===or?(t=Bf(),Le=3):t===ao?(t=Bf(),Le=4):Le=t===Oo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Gt=t,Ae===null&&(Pe=1,Er(e,It(t,e.current)))}function Eh(){var e=qt.current;return e===null?!0:(_e&4194048)===_e?en===null:(_e&62914560)===_e||(_e&536870912)!==0?e===en:!1}function Th(){var e=C.H;return C.H=ai,e===null?ai:e}function kh(){var e=C.A;return C.A=$y,e}function Dr(){Pe=4,Wn||(_e&4194048)!==_e&&qt.current!==null||(pa=!0),(Pn&134217727)===0&&(jl&134217727)===0||Ze===null||nl(Ze,_e,Vt,!1)}function ns(e,t,n){var a=Re;Re|=2;var o=Th(),s=kh();(Ze!==e||_e!==t)&&(jr=null,xa(e,t)),t=!1;var h=Pe;e:do try{if(Le!==0&&Ae!==null){var x=Ae,w=Gt;switch(Le){case 8:ts(),h=6;break e;case 3:case 2:case 9:case 6:qt.current===null&&(t=!0);var M=Le;if(Le=0,Gt=null,ba(e,x,w,M),n&&pa){h=0;break e}break;default:M=Le,Le=0,Gt=null,ba(e,x,w,M)}}e1(),h=Pe;break}catch(R){Sh(e,R)}while(!0);return t&&e.shellSuspendCounter++,kn=Tl=null,Re=a,C.H=o,C.A=s,Ae===null&&(Ze=null,_e=0,er()),h}function e1(){for(;Ae!==null;)wh(Ae)}function t1(e,t){var n=Re;Re|=2;var a=Th(),o=kh();Ze!==e||_e!==t?(jr=null,Mr=St()+500,xa(e,t)):pa=Oa(e,t);e:do try{if(Le!==0&&Ae!==null){t=Ae;var s=Gt;t:switch(Le){case 1:Le=0,Gt=null,ba(e,t,s,1);break;case 2:case 9:if(Rf(s)){Le=0,Gt=null,zh(t);break}t=function(){Le!==2&&Le!==9||Ze!==e||(Le=7),hn(e)},s.then(t,t);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:Rf(s)?(Le=0,Gt=null,zh(t)):(Le=0,Gt=null,ba(e,t,s,7));break;case 5:var h=null;switch(Ae.tag){case 26:h=Ae.memoizedState;case 5:case 27:var x=Ae;if(h?fm(h):x.stateNode.complete){Le=0,Gt=null;var w=x.sibling;if(w!==null)Ae=w;else{var M=x.return;M!==null?(Ae=M,Rr(M)):Ae=null}break t}}Le=0,Gt=null,ba(e,t,s,5);break;case 6:Le=0,Gt=null,ba(e,t,s,6);break;case 8:ts(),Pe=6;break e;default:throw Error(u(462))}}n1();break}catch(R){Sh(e,R)}while(!0);return kn=Tl=null,C.H=a,C.A=o,Re=n,Ae!==null?0:(Ze=null,_e=0,er(),Pe)}function n1(){for(;Ae!==null&&!mu();)wh(Ae)}function wh(e){var t=Fd(e.alternate,e,Dn);e.memoizedProps=e.pendingProps,t===null?Rr(e):Ae=t}function zh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Vd(n,t,t.pendingProps,t.type,void 0,_e);break;case 11:t=Vd(n,t,t.pendingProps,t.type.render,t.ref,_e);break;case 5:yo(t);default:$d(n,t),t=Ae=kf(t,Dn),t=Fd(n,t,Dn)}e.memoizedProps=e.pendingProps,t===null?Rr(e):Ae=t}function ba(e,t,n,a){kn=Tl=null,yo(t),oa=null,Ia=0;var o=t.return;try{if(Xy(e,o,t,n,_e)){Pe=1,Er(e,It(n,e.current)),Ae=null;return}}catch(s){if(o!==null)throw Ae=o,s;Pe=1,Er(e,It(n,e.current)),Ae=null;return}t.flags&32768?(je||a===1?e=!0:pa||(_e&536870912)!==0?e=!1:(Wn=e=!0,(a===2||a===9||a===3||a===6)&&(a=qt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Nh(t,e)):Rr(t)}function Rr(e){var t=e;do{if((t.flags&32768)!==0){Nh(t,Wn);return}e=t.return;var n=Ky(t.alternate,t,Dn);if(n!==null){Ae=n;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);Pe===0&&(Pe=5)}function Nh(e,t){do{var n=Jy(e.alternate,e);if(n!==null){n.flags&=32767,Ae=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=n}while(e!==null);Pe=6,Ae=null}function Ah(e,t,n,a,o,s,h,x,w){e.cancelPendingCommit=null;do Ur();while(st!==0);if((Re&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(s=t.lanes|t.childLanes,s|=Vu,Rg(e,n,s,h,x,w),e===Ze&&(Ae=Ze=null,_e=0),ya=t,tl=e,Rn=n,Wo=s,Po=o,yh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,r1(ge,function(){return Oh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=C.T,C.T=null,o=V.p,V.p=2,h=Re,Re|=4;try{Fy(e,t,n)}finally{Re=h,V.p=o,C.T=a}}st=1,Ch(),_h(),Mh()}}function Ch(){if(st===1){st=0;var e=tl,t=ya,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=C.T,C.T=null;var a=V.p;V.p=2;var o=Re;Re|=4;try{sh(t,e);var s=ms,h=pf(e.containerInfo),x=s.focusedElem,w=s.selectionRange;if(h!==x&&x&&x.ownerDocument&&mf(x.ownerDocument.documentElement,x)){if(w!==null&&Lu(x)){var M=w.start,R=w.end;if(R===void 0&&(R=M),"selectionStart"in x)x.selectionStart=M,x.selectionEnd=Math.min(R,x.value.length);else{var Y=x.ownerDocument||document,j=Y&&Y.defaultView||window;if(j.getSelection){var O=j.getSelection(),oe=x.textContent.length,me=Math.min(w.start,oe),Ve=w.end===void 0?me:Math.min(w.end,oe);!O.extend&&me>Ve&&(h=Ve,Ve=me,me=h);var A=hf(x,me),N=hf(x,Ve);if(A&&N&&(O.rangeCount!==1||O.anchorNode!==A.node||O.anchorOffset!==A.offset||O.focusNode!==N.node||O.focusOffset!==N.offset)){var _=Y.createRange();_.setStart(A.node,A.offset),O.removeAllRanges(),me>Ve?(O.addRange(_),O.extend(N.node,N.offset)):(_.setEnd(N.node,N.offset),O.addRange(_))}}}}for(Y=[],O=x;O=O.parentNode;)O.nodeType===1&&Y.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Y.length;x++){var H=Y[x];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Jr=!!hs,ms=hs=null}finally{Re=o,V.p=a,C.T=n}}e.current=t,st=2}}function _h(){if(st===2){st=0;var e=tl,t=ya,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=C.T,C.T=null;var a=V.p;V.p=2;var o=Re;Re|=4;try{ah(e,t.alternate,t)}finally{Re=o,V.p=a,C.T=n}}st=3}}function Mh(){if(st===4||st===3){st=0,pu();var e=tl,t=ya,n=Rn,a=yh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?st=5:(st=0,ya=tl=null,jh(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(el=null),bu(n),t=t.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(Et,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=C.T,o=V.p,V.p=2,C.T=null;try{for(var s=e.onRecoverableError,h=0;h<a.length;h++){var x=a[h];s(x.value,{componentStack:x.stack})}}finally{C.T=t,V.p=o}}(Rn&3)!==0&&Ur(),hn(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===es?hi++:(hi=0,es=e):hi=0,mi(0)}}function jh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ja(t)))}function Ur(){return Ch(),_h(),Mh(),Oh()}function Oh(){if(st!==5)return!1;var e=tl,t=Wo;Wo=0;var n=bu(Rn),a=C.T,o=V.p;try{V.p=32>n?32:n,C.T=null,n=Po,Po=null;var s=tl,h=Rn;if(st=0,ya=tl=null,Rn=0,(Re&6)!==0)throw Error(u(331));var x=Re;if(Re|=4,mh(s.current),fh(s,s.current,h,n),Re=x,mi(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(Et,s)}catch{}return!0}finally{V.p=o,C.T=a,jh(e,t)}}function Dh(e,t,n){t=It(n,t),t=jo(e.stateNode,t,2),e=Jn(e,t,2),e!==null&&(Da(e,2),hn(e))}function He(e,t,n){if(e.tag===3)Dh(e,e,n);else for(;t!==null;){if(t.tag===3){Dh(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(el===null||!el.has(a))){e=It(n,e),n=Rd(2),a=Jn(t,n,2),a!==null&&(Ud(n,a,t,e),Da(a,2),hn(a));break}}t=t.return}}function ls(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Wy;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(Fo=!0,o.add(n),e=l1.bind(null,e,t,n),t.then(e,e))}function l1(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ze===e&&(_e&n)===n&&(Pe===4||Pe===3&&(_e&62914560)===_e&&300>St()-_r?(Re&2)===0&&xa(e,0):Io|=n,ga===_e&&(ga=0)),hn(e)}function Rh(e,t){t===0&&(t=Ac()),e=vl(e,t),e!==null&&(Da(e,t),hn(e))}function a1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rh(e,n)}function i1(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Rh(e,n)}function r1(e,t){return ql(e,t)}var Br=null,va=null,as=!1,Lr=!1,is=!1,ll=0;function hn(e){e!==va&&e.next===null&&(va===null?Br=va=e:va=va.next=e),Lr=!0,as||(as=!0,o1())}function mi(e,t){if(!is&&Lr){is=!0;do for(var n=!1,a=Br;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var s=0;else{var h=a.suspendedLanes,x=a.pingedLanes;s=(1<<31-Qe(42|e)+1)-1,s&=o&~(h&~x),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,Hh(a,s))}else s=_e,s=Gi(a,a===Ze?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||Oa(a,s)||(n=!0,Hh(a,s));a=a.next}while(n);is=!1}}function u1(){Uh()}function Uh(){Lr=as=!1;var e=0;ll!==0&&x1()&&(e=ll);for(var t=St(),n=null,a=Br;a!==null;){var o=a.next,s=Bh(a,t);s===0?(a.next=null,n===null?Br=o:n.next=o,o===null&&(va=n)):(n=a,(e!==0||(s&3)!==0)&&(Lr=!0)),a=o}st!==0&&st!==5||mi(e),ll!==0&&(ll=0)}function Bh(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var h=31-Qe(s),x=1<<h,w=o[h];w===-1?((x&n)===0||(x&a)!==0)&&(o[h]=Dg(x,t)):w<=t&&(e.expiredLanes|=x),s&=~x}if(t=Ze,n=_e,n=Gi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&ja(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Oa(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&ja(a),bu(n)){case 2:case 8:n=$;break;case 32:n=ge;break;case 268435456:n=Be;break;default:n=ge}return a=Lh.bind(null,e),n=ql(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&ja(a),e.callbackPriority=2,e.callbackNode=null,2}function Lh(e,t){if(st!==0&&st!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ur()&&e.callbackNode!==n)return null;var a=_e;return a=Gi(e,e===Ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(bh(e,a,t),Bh(e,St()),e.callbackNode!=null&&e.callbackNode===n?Lh.bind(null,e):null)}function Hh(e,t){if(Ur())return null;bh(e,t,!0)}function o1(){v1(function(){(Re&6)!==0?ql(L,u1):Uh()})}function rs(){if(ll===0){var e=ia;e===0&&(e=Hi,Hi<<=1,(Hi&261888)===0&&(Hi=256)),ll=e}return ll}function qh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Zi(""+e)}function Yh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function s1(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var s=qh((o[Nt]||null).action),h=a.submitter;h&&(t=(t=h[Nt]||null)?qh(t.formAction):h.getAttribute("formAction"),t!==null&&(s=t,h=null));var x=new Ii("action","action",null,a,o);e.push({event:x,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ll!==0){var w=h?Yh(o,h):new FormData(o);zo(n,{pending:!0,data:w,method:o.method,action:s},null,w)}}else typeof s=="function"&&(x.preventDefault(),w=h?Yh(o,h):new FormData(o),zo(n,{pending:!0,data:w,method:o.method,action:s},s,w))},currentTarget:o}]})}}for(var us=0;us<Gu.length;us++){var os=Gu[us],c1=os.toLowerCase(),f1=os[0].toUpperCase()+os.slice(1);rn(c1,"on"+f1)}rn(xf,"onAnimationEnd"),rn(bf,"onAnimationIteration"),rn(vf,"onAnimationStart"),rn("dblclick","onDoubleClick"),rn("focusin","onFocus"),rn("focusout","onBlur"),rn(Ny,"onTransitionRun"),rn(Ay,"onTransitionStart"),rn(Cy,"onTransitionCancel"),rn(Sf,"onTransitionEnd"),Ql("onMouseEnter",["mouseout","mouseover"]),Ql("onMouseLeave",["mouseout","mouseover"]),Ql("onPointerEnter",["pointerout","pointerover"]),Ql("onPointerLeave",["pointerout","pointerover"]),gl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),gl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),gl("onBeforeInput",["compositionend","keypress","textInput","paste"]),gl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),gl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),gl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pi="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(" "),d1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pi));function Gh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var h=a.length-1;0<=h;h--){var x=a[h],w=x.instance,M=x.currentTarget;if(x=x.listener,w!==s&&o.isPropagationStopped())break e;s=x,o.currentTarget=M;try{s(o)}catch(R){Pi(R)}o.currentTarget=null,s=w}else for(h=0;h<a.length;h++){if(x=a[h],w=x.instance,M=x.currentTarget,x=x.listener,w!==s&&o.isPropagationStopped())break e;s=x,o.currentTarget=M;try{s(o)}catch(R){Pi(R)}o.currentTarget=null,s=w}}}}function Ce(e,t){var n=t[vu];n===void 0&&(n=t[vu]=new Set);var a=e+"__bubble";n.has(a)||(Vh(t,e,2,!1),n.add(a))}function ss(e,t,n){var a=0;t&&(a|=4),Vh(n,e,a,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function cs(e){if(!e[Hr]){e[Hr]=!0,Rc.forEach(function(n){n!=="selectionchange"&&(d1.has(n)||ss(n,!1,e),ss(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hr]||(t[Hr]=!0,ss("selectionchange",!1,t))}}function Vh(e,t,n,a){switch(xm(t)){case 2:var o=q1;break;case 8:o=Y1;break;default:o=ws}n=o.bind(null,t,n,e),o=void 0,!Cu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function fs(e,t,n,a,o){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var h=a.tag;if(h===3||h===4){var x=a.stateNode.containerInfo;if(x===o)break;if(h===4)for(h=a.return;h!==null;){var w=h.tag;if((w===3||w===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;x!==null;){if(h=Gl(x),h===null)return;if(w=h.tag,w===5||w===6||w===26||w===27){a=s=h;continue e}x=x.parentNode}}a=a.return}Kc(function(){var M=s,R=Nu(n),Y=[];e:{var j=Ef.get(e);if(j!==void 0){var O=Ii,oe=e;switch(e){case"keypress":if(Ji(n)===0)break e;case"keydown":case"keyup":O=iy;break;case"focusin":oe="focus",O=Ou;break;case"focusout":oe="blur",O=Ou;break;case"beforeblur":case"afterblur":O=Ou;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=Ic;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=Kg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=oy;break;case xf:case bf:case vf:O=Ig;break;case Sf:O=cy;break;case"scroll":case"scrollend":O=Qg;break;case"wheel":O=dy;break;case"copy":case"cut":case"paste":O=Wg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=Wc;break;case"toggle":case"beforetoggle":O=my}var me=(t&4)!==0,Ve=!me&&(e==="scroll"||e==="scrollend"),A=me?j!==null?j+"Capture":null:j;me=[];for(var N=M,_;N!==null;){var H=N;if(_=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||_===null||A===null||(H=Ba(N,A),H!=null&&me.push(gi(N,H,_))),Ve)break;N=N.return}0<me.length&&(j=new O(j,oe,null,n,R),Y.push({event:j,listeners:me}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",j&&n!==zu&&(oe=n.relatedTarget||n.fromElement)&&(Gl(oe)||oe[Yl]))break e;if((O||j)&&(j=R.window===R?R:(j=R.ownerDocument)?j.defaultView||j.parentWindow:window,O?(oe=n.relatedTarget||n.toElement,O=M,oe=oe?Gl(oe):null,oe!==null&&(Ve=f(oe),me=oe.tag,oe!==Ve||me!==5&&me!==27&&me!==6)&&(oe=null)):(O=null,oe=M),O!==oe)){if(me=Ic,H="onMouseLeave",A="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(me=Wc,H="onPointerLeave",A="onPointerEnter",N="pointer"),Ve=O==null?j:Ua(O),_=oe==null?j:Ua(oe),j=new me(H,N+"leave",O,n,R),j.target=Ve,j.relatedTarget=_,H=null,Gl(R)===M&&(me=new me(A,N+"enter",oe,n,R),me.target=_,me.relatedTarget=Ve,H=me),Ve=H,O&&oe)t:{for(me=h1,A=O,N=oe,_=0,H=A;H;H=me(H))_++;H=0;for(var fe=N;fe;fe=me(fe))H++;for(;0<_-H;)A=me(A),_--;for(;0<H-_;)N=me(N),H--;for(;_--;){if(A===N||N!==null&&A===N.alternate){me=A;break t}A=me(A),N=me(N)}me=null}else me=null;O!==null&&Xh(Y,j,O,me,!1),oe!==null&&Ve!==null&&Xh(Y,Ve,oe,me,!0)}}e:{if(j=M?Ua(M):window,O=j.nodeName&&j.nodeName.toLowerCase(),O==="select"||O==="input"&&j.type==="file")var Oe=uf;else if(af(j))if(of)Oe=ky;else{Oe=Ey;var se=Sy}else O=j.nodeName,!O||O.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?M&&wu(M.elementType)&&(Oe=uf):Oe=Ty;if(Oe&&(Oe=Oe(e,M))){rf(Y,Oe,n,R);break e}se&&se(e,j,M),e==="focusout"&&M&&j.type==="number"&&M.memoizedProps.value!=null&&ku(j,"number",j.value)}switch(se=M?Ua(M):window,e){case"focusin":(af(se)||se.contentEditable==="true")&&($l=se,Hu=M,Qa=null);break;case"focusout":Qa=Hu=$l=null;break;case"mousedown":qu=!0;break;case"contextmenu":case"mouseup":case"dragend":qu=!1,gf(Y,n,R);break;case"selectionchange":if(zy)break;case"keydown":case"keyup":gf(Y,n,R)}var we;if(Ru)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Il?nf(e,n)&&(Me="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Me="onCompositionStart");Me&&(Pc&&n.locale!=="ko"&&(Il||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Il&&(we=Jc()):(Yn=R,_u="value"in Yn?Yn.value:Yn.textContent,Il=!0)),se=qr(M,Me),0<se.length&&(Me=new $c(Me,e,null,n,R),Y.push({event:Me,listeners:se}),we?Me.data=we:(we=lf(n),we!==null&&(Me.data=we)))),(we=gy?yy(e,n):xy(e,n))&&(Me=qr(M,"onBeforeInput"),0<Me.length&&(se=new $c("onBeforeInput","beforeinput",null,n,R),Y.push({event:se,listeners:Me}),se.data=we)),s1(Y,e,M,n,R)}Gh(Y,t)})}function gi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,s=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||s===null||(o=Ba(e,n),o!=null&&a.unshift(gi(e,o,s)),o=Ba(e,t),o!=null&&a.push(gi(e,o,s))),e.tag===3)return a;e=e.return}return[]}function h1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Xh(e,t,n,a,o){for(var s=t._reactName,h=[];n!==null&&n!==a;){var x=n,w=x.alternate,M=x.stateNode;if(x=x.tag,w!==null&&w===a)break;x!==5&&x!==26&&x!==27||M===null||(w=M,o?(M=Ba(n,s),M!=null&&h.unshift(gi(n,M,w))):o||(M=Ba(n,s),M!=null&&h.push(gi(n,M,w)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var m1=/\r\n?/g,p1=/\u0000|\uFFFD/g;function Qh(e){return(typeof e=="string"?e:""+e).replace(m1,`
49
- `).replace(p1,"")}function Zh(e,t){return t=Qh(t),Qh(e)===t}function Ge(e,t,n,a,o,s){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Kl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Kl(e,""+a);break;case"className":Xi(e,"class",a);break;case"tabIndex":Xi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Xi(e,n,a);break;case"style":Qc(e,a,s);break;case"data":if(t!=="object"){Xi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Zi(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(n==="formAction"?(t!=="input"&&Ge(e,t,"name",o.name,o,null),Ge(e,t,"formEncType",o.formEncType,o,null),Ge(e,t,"formMethod",o.formMethod,o,null),Ge(e,t,"formTarget",o.formTarget,o,null)):(Ge(e,t,"encType",o.encType,o,null),Ge(e,t,"method",o.method,o,null),Ge(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Zi(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=vn);break;case"onScroll":a!=null&&Ce("scroll",e);break;case"onScrollEnd":a!=null&&Ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Zi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ce("beforetoggle",e),Ce("toggle",e),Vi(e,"popover",a);break;case"xlinkActuate":bn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":bn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":bn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":bn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":bn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":bn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":bn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":bn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":bn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Vi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Vg.get(n)||n,Vi(e,n,a))}}function ds(e,t,n,a,o,s){switch(n){case"style":Qc(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Kl(e,a):(typeof a=="number"||typeof a=="bigint")&&Kl(e,""+a);break;case"onScroll":a!=null&&Ce("scroll",e);break;case"onScrollEnd":a!=null&&Ce("scrollend",e);break;case"onClick":a!=null&&(e.onclick=vn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Uc.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),s=e[Nt]||null,s=s!=null?s[n]:null,typeof s=="function"&&e.removeEventListener(t,s,o),typeof a=="function")){typeof s!="function"&&s!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Vi(e,n,a)}}}function yt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ce("error",e),Ce("load",e);var a=!1,o=!1,s;for(s in n)if(n.hasOwnProperty(s)){var h=n[s];if(h!=null)switch(s){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ge(e,t,s,h,n,null)}}o&&Ge(e,t,"srcSet",n.srcSet,n,null),a&&Ge(e,t,"src",n.src,n,null);return;case"input":Ce("invalid",e);var x=s=h=o=null,w=null,M=null;for(a in n)if(n.hasOwnProperty(a)){var R=n[a];if(R!=null)switch(a){case"name":o=R;break;case"type":h=R;break;case"checked":w=R;break;case"defaultChecked":M=R;break;case"value":s=R;break;case"defaultValue":x=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(u(137,t));break;default:Ge(e,t,a,R,n,null)}}Yc(e,s,x,w,M,h,o,!1);return;case"select":Ce("invalid",e),a=h=s=null;for(o in n)if(n.hasOwnProperty(o)&&(x=n[o],x!=null))switch(o){case"value":s=x;break;case"defaultValue":h=x;break;case"multiple":a=x;default:Ge(e,t,o,x,n,null)}t=s,n=h,e.multiple=!!a,t!=null?Zl(e,!!a,t,!1):n!=null&&Zl(e,!!a,n,!0);return;case"textarea":Ce("invalid",e),s=o=a=null;for(h in n)if(n.hasOwnProperty(h)&&(x=n[h],x!=null))switch(h){case"value":a=x;break;case"defaultValue":o=x;break;case"children":s=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(u(91));break;default:Ge(e,t,h,x,n,null)}Vc(e,a,o,s);return;case"option":for(w in n)if(n.hasOwnProperty(w)&&(a=n[w],a!=null))switch(w){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ge(e,t,w,a,n,null)}return;case"dialog":Ce("beforetoggle",e),Ce("toggle",e),Ce("cancel",e),Ce("close",e);break;case"iframe":case"object":Ce("load",e);break;case"video":case"audio":for(a=0;a<pi.length;a++)Ce(pi[a],e);break;case"image":Ce("error",e),Ce("load",e);break;case"details":Ce("toggle",e);break;case"embed":case"source":case"link":Ce("error",e),Ce("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in n)if(n.hasOwnProperty(M)&&(a=n[M],a!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ge(e,t,M,a,n,null)}return;default:if(wu(t)){for(R in n)n.hasOwnProperty(R)&&(a=n[R],a!==void 0&&ds(e,t,R,a,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(a=n[x],a!=null&&Ge(e,t,x,a,n,null))}function g1(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,s=null,h=null,x=null,w=null,M=null,R=null;for(O in n){var Y=n[O];if(n.hasOwnProperty(O)&&Y!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":w=Y;default:a.hasOwnProperty(O)||Ge(e,t,O,null,a,Y)}}for(var j in a){var O=a[j];if(Y=n[j],a.hasOwnProperty(j)&&(O!=null||Y!=null))switch(j){case"type":s=O;break;case"name":o=O;break;case"checked":M=O;break;case"defaultChecked":R=O;break;case"value":h=O;break;case"defaultValue":x=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(u(137,t));break;default:O!==Y&&Ge(e,t,j,O,a,Y)}}Tu(e,h,x,w,M,R,s,o);return;case"select":O=h=x=j=null;for(s in n)if(w=n[s],n.hasOwnProperty(s)&&w!=null)switch(s){case"value":break;case"multiple":O=w;default:a.hasOwnProperty(s)||Ge(e,t,s,null,a,w)}for(o in a)if(s=a[o],w=n[o],a.hasOwnProperty(o)&&(s!=null||w!=null))switch(o){case"value":j=s;break;case"defaultValue":x=s;break;case"multiple":h=s;default:s!==w&&Ge(e,t,o,s,a,w)}t=x,n=h,a=O,j!=null?Zl(e,!!n,j,!1):!!a!=!!n&&(t!=null?Zl(e,!!n,t,!0):Zl(e,!!n,n?[]:"",!1));return;case"textarea":O=j=null;for(x in n)if(o=n[x],n.hasOwnProperty(x)&&o!=null&&!a.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Ge(e,t,x,null,a,o)}for(h in a)if(o=a[h],s=n[h],a.hasOwnProperty(h)&&(o!=null||s!=null))switch(h){case"value":j=o;break;case"defaultValue":O=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==s&&Ge(e,t,h,o,a,s)}Gc(e,j,O);return;case"option":for(var oe in n)if(j=n[oe],n.hasOwnProperty(oe)&&j!=null&&!a.hasOwnProperty(oe))switch(oe){case"selected":e.selected=!1;break;default:Ge(e,t,oe,null,a,j)}for(w in a)if(j=a[w],O=n[w],a.hasOwnProperty(w)&&j!==O&&(j!=null||O!=null))switch(w){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Ge(e,t,w,j,a,O)}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 me in n)j=n[me],n.hasOwnProperty(me)&&j!=null&&!a.hasOwnProperty(me)&&Ge(e,t,me,null,a,j);for(M in a)if(j=a[M],O=n[M],a.hasOwnProperty(M)&&j!==O&&(j!=null||O!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(u(137,t));break;default:Ge(e,t,M,j,a,O)}return;default:if(wu(t)){for(var Ve in n)j=n[Ve],n.hasOwnProperty(Ve)&&j!==void 0&&!a.hasOwnProperty(Ve)&&ds(e,t,Ve,void 0,a,j);for(R in a)j=a[R],O=n[R],!a.hasOwnProperty(R)||j===O||j===void 0&&O===void 0||ds(e,t,R,j,a,O);return}}for(var A in n)j=n[A],n.hasOwnProperty(A)&&j!=null&&!a.hasOwnProperty(A)&&Ge(e,t,A,null,a,j);for(Y in a)j=a[Y],O=n[Y],!a.hasOwnProperty(Y)||j===O||j==null&&O==null||Ge(e,t,Y,j,a,O)}function Kh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function y1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],s=o.transferSize,h=o.initiatorType,x=o.duration;if(s&&x&&Kh(h)){for(h=0,x=o.responseEnd,a+=1;a<n.length;a++){var w=n[a],M=w.startTime;if(M>x)break;var R=w.transferSize,Y=w.initiatorType;R&&Kh(Y)&&(w=w.responseEnd,h+=R*(w<x?1:(x-M)/(w-M)))}if(--a,t+=8*(s+h)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var hs=null,ms=null;function Yr(e){return e.nodeType===9?e:e.ownerDocument}function Jh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Fh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ps(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var gs=null;function x1(){var e=window.event;return e&&e.type==="popstate"?e===gs?!1:(gs=e,!0):(gs=null,!1)}var Ih=typeof setTimeout=="function"?setTimeout:void 0,b1=typeof clearTimeout=="function"?clearTimeout:void 0,$h=typeof Promise=="function"?Promise:void 0,v1=typeof queueMicrotask=="function"?queueMicrotask:typeof $h<"u"?function(e){return $h.resolve(null).then(e).catch(S1)}:Ih;function S1(e){setTimeout(function(){throw e})}function al(e){return e==="head"}function Wh(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),ka(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")yi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,yi(n);for(var s=n.firstChild;s;){var h=s.nextSibling,x=s.nodeName;s[Ra]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=h}}else n==="body"&&yi(e.ownerDocument.body);n=o}while(n);ka(t)}function Ph(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function ys(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ys(n),Su(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function E1(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ra])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=tn(e.nextSibling),e===null)break}return null}function T1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=tn(e.nextSibling),e===null))return null;return e}function em(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=tn(e.nextSibling),e===null))return null;return e}function xs(e){return e.data==="$?"||e.data==="$~"}function bs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function k1(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function tn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var vs=null;function tm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return tn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function nm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function lm(e,t,n){switch(t=Yr(n),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function yi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Su(e)}var nn=new Map,am=new Set;function Gr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Un=V.d;V.d={f:w1,r:z1,D:N1,C:A1,L:C1,m:_1,X:j1,S:M1,M:O1};function w1(){var e=Un.f(),t=Or();return e||t}function z1(e){var t=Vl(e);t!==null&&t.tag===5&&t.type==="form"?Sd(t):Un.r(e)}var Sa=typeof document>"u"?null:document;function im(e,t,n){var a=Sa;if(a&&typeof t=="string"&&t){var o=Jt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),am.has(o)||(am.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),yt(t,"link",e),ft(t),a.head.appendChild(t)))}}function N1(e){Un.D(e),im("dns-prefetch",e,null)}function A1(e,t){Un.C(e,t),im("preconnect",e,t)}function C1(e,t,n){Un.L(e,t,n);var a=Sa;if(a&&e&&t){var o='link[rel="preload"][as="'+Jt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Jt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Jt(n.imageSizes)+'"]')):o+='[href="'+Jt(e)+'"]';var s=o;switch(t){case"style":s=Ea(e);break;case"script":s=Ta(e)}nn.has(s)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),nn.set(s,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(xi(s))||t==="script"&&a.querySelector(bi(s))||(t=a.createElement("link"),yt(t,"link",e),ft(t),a.head.appendChild(t)))}}function _1(e,t){Un.m(e,t);var n=Sa;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Jt(a)+'"][href="'+Jt(e)+'"]',s=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Ta(e)}if(!nn.has(s)&&(e=b({rel:"modulepreload",href:e},t),nn.set(s,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(bi(s)))return}a=n.createElement("link"),yt(a,"link",e),ft(a),n.head.appendChild(a)}}}function M1(e,t,n){Un.S(e,t,n);var a=Sa;if(a&&e){var o=Xl(a).hoistableStyles,s=Ea(e);t=t||"default";var h=o.get(s);if(!h){var x={loading:0,preload:null};if(h=a.querySelector(xi(s)))x.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=nn.get(s))&&Ss(e,n);var w=h=a.createElement("link");ft(w),yt(w,"link",e),w._p=new Promise(function(M,R){w.onload=M,w.onerror=R}),w.addEventListener("load",function(){x.loading|=1}),w.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Vr(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:x},o.set(s,h)}}}function j1(e,t){Un.X(e,t);var n=Sa;if(n&&e){var a=Xl(n).hoistableScripts,o=Ta(e),s=a.get(o);s||(s=n.querySelector(bi(o)),s||(e=b({src:e,async:!0},t),(t=nn.get(o))&&Es(e,t),s=n.createElement("script"),ft(s),yt(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(o,s))}}function O1(e,t){Un.M(e,t);var n=Sa;if(n&&e){var a=Xl(n).hoistableScripts,o=Ta(e),s=a.get(o);s||(s=n.querySelector(bi(o)),s||(e=b({src:e,async:!0,type:"module"},t),(t=nn.get(o))&&Es(e,t),s=n.createElement("script"),ft(s),yt(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(o,s))}}function rm(e,t,n,a){var o=(o=le.current)?Gr(o):null;if(!o)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ea(n.href),n=Xl(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ea(n.href);var s=Xl(o).hoistableStyles,h=s.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,h),(s=o.querySelector(xi(e)))&&!s._p&&(h.instance=s,h.state.loading=5),nn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},nn.set(e,n),s||D1(o,e,n,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ta(n),n=Xl(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Ea(e){return'href="'+Jt(e)+'"'}function xi(e){return'link[rel="stylesheet"]['+e+"]"}function um(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function D1(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),yt(t,"link",n),ft(t),e.head.appendChild(t))}function Ta(e){return'[src="'+Jt(e)+'"]'}function bi(e){return"script[async]"+e}function om(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Jt(n.href)+'"]');if(a)return t.instance=a,ft(a),a;var o=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ft(a),yt(a,"style",o),Vr(a,n.precedence,e),t.instance=a;case"stylesheet":o=Ea(n.href);var s=e.querySelector(xi(o));if(s)return t.state.loading|=4,t.instance=s,ft(s),s;a=um(n),(o=nn.get(o))&&Ss(a,o),s=(e.ownerDocument||e).createElement("link"),ft(s);var h=s;return h._p=new Promise(function(x,w){h.onload=x,h.onerror=w}),yt(s,"link",a),t.state.loading|=4,Vr(s,n.precedence,e),t.instance=s;case"script":return s=Ta(n.src),(o=e.querySelector(bi(s)))?(t.instance=o,ft(o),o):(a=n,(o=nn.get(s))&&(a=b({},n),Es(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),ft(o),yt(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Vr(a,n.precedence,e));return t.instance}function Vr(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,s=o,h=0;h<a.length;h++){var x=a[h];if(x.dataset.precedence===t)s=x;else if(s!==o)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Ss(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Es(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Xr=null;function sm(e,t,n){if(Xr===null){var a=new Map,o=Xr=new Map;o.set(n,a)}else o=Xr,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var s=n[o];if(!(s[Ra]||s[ht]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var h=s.getAttribute(t)||"";h=e+h;var x=a.get(h);x?x.push(s):a.set(h,[s])}}return a}function cm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function R1(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function fm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function U1(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ea(a.href),s=t.querySelector(xi(o));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Qr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,ft(s);return}s=t.ownerDocument||t,a=um(a),(o=nn.get(o))&&Ss(a,o),s=s.createElement("link"),ft(s);var h=s;h._p=new Promise(function(x,w){h.onload=x,h.onerror=w}),yt(s,"link",a),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Qr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Ts=0;function B1(e,t){return e.stylesheets&&e.count===0&&Kr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Kr(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Ts===0&&(Ts=62500*y1());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Kr(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Ts?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function Qr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Kr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zr=null;function Kr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zr=new Map,t.forEach(L1,e),Zr=null,Qr.call(e))}function L1(e,t){if(!(t.state.loading&4)){var n=Zr.get(e);if(n)var a=n.get(null);else{n=new Map,Zr.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<o.length;s++){var h=o[s];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),a=h)}a&&n.set(null,a)}o=t.instance,h=o.getAttribute("data-precedence"),s=n.get(h)||a,s===a&&n.set(null,o),n.set(h,o),this.count++,a=Qr.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),s?s.parentNode.insertBefore(o,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var vi={$$typeof:F,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function H1(e,t,n,a,o,s,h,x,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=yu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yu(0),this.hiddenUpdates=yu(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=s,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function dm(e,t,n,a,o,s,h,x,w,M,R,Y){return e=new H1(e,t,n,h,w,M,R,Y,x),t=1,s===!0&&(t|=24),s=Ht(3,null,null,t),e.current=s,s.stateNode=e,t=to(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:n,cache:t},io(s),e}function hm(e){return e?(e=ea,e):ea}function mm(e,t,n,a,o,s){o=hm(o),a.context===null?a.context=o:a.pendingContext=o,a=Kn(t),a.payload={element:n},s=s===void 0?null:s,s!==null&&(a.callback=s),n=Jn(e,a,t),n!==null&&(Ot(n,e,t),Wa(n,e,t))}function pm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ks(e,t){pm(e,t),(e=e.alternate)&&pm(e,t)}function gm(e){if(e.tag===13||e.tag===31){var t=vl(e,67108864);t!==null&&Ot(t,e,67108864),ks(e,67108864)}}function ym(e){if(e.tag===13||e.tag===31){var t=Xt();t=xu(t);var n=vl(e,t);n!==null&&Ot(n,e,t),ks(e,t)}}var Jr=!0;function q1(e,t,n,a){var o=C.T;C.T=null;var s=V.p;try{V.p=2,ws(e,t,n,a)}finally{V.p=s,C.T=o}}function Y1(e,t,n,a){var o=C.T;C.T=null;var s=V.p;try{V.p=8,ws(e,t,n,a)}finally{V.p=s,C.T=o}}function ws(e,t,n,a){if(Jr){var o=zs(a);if(o===null)fs(e,t,a,Fr,n),bm(e,a);else if(V1(o,e,t,n,a))a.stopPropagation();else if(bm(e,a),t&4&&-1<G1.indexOf(e)){for(;o!==null;){var s=Vl(o);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var h=pl(s.pendingLanes);if(h!==0){var x=s;for(x.pendingLanes|=2,x.entangledLanes|=2;h;){var w=1<<31-Qe(h);x.entanglements[1]|=w,h&=~w}hn(s),(Re&6)===0&&(Mr=St()+500,mi(0))}}break;case 31:case 13:x=vl(s,2),x!==null&&Ot(x,s,2),Or(),ks(s,2)}if(s=zs(a),s===null&&fs(e,t,a,Fr,n),s===o)break;o=s}o!==null&&a.stopPropagation()}else fs(e,t,a,null,n)}}function zs(e){return e=Nu(e),Ns(e)}var Fr=null;function Ns(e){if(Fr=null,e=Gl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Fr=e,null}function xm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(gu()){case L:return 2;case $:return 8;case ge:case Ne:return 32;case Be:return 268435456;default:return 32}default:return 32}}var As=!1,il=null,rl=null,ul=null,Si=new Map,Ei=new Map,ol=[],G1="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 bm(e,t){switch(e){case"focusin":case"focusout":il=null;break;case"dragenter":case"dragleave":rl=null;break;case"mouseover":case"mouseout":ul=null;break;case"pointerover":case"pointerout":Si.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ei.delete(t.pointerId)}}function Ti(e,t,n,a,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:s,targetContainers:[o]},t!==null&&(t=Vl(t),t!==null&&gm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function V1(e,t,n,a,o){switch(t){case"focusin":return il=Ti(il,e,t,n,a,o),!0;case"dragenter":return rl=Ti(rl,e,t,n,a,o),!0;case"mouseover":return ul=Ti(ul,e,t,n,a,o),!0;case"pointerover":var s=o.pointerId;return Si.set(s,Ti(Si.get(s)||null,e,t,n,a,o)),!0;case"gotpointercapture":return s=o.pointerId,Ei.set(s,Ti(Ei.get(s)||null,e,t,n,a,o)),!0}return!1}function vm(e){var t=Gl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,Oc(e.priority,function(){ym(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,Oc(e.priority,function(){ym(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ir(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zs(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);zu=a,n.target.dispatchEvent(a),zu=null}else return t=Vl(n),t!==null&&gm(t),e.blockedOn=n,!1;t.shift()}return!0}function Sm(e,t,n){Ir(e)&&n.delete(t)}function X1(){As=!1,il!==null&&Ir(il)&&(il=null),rl!==null&&Ir(rl)&&(rl=null),ul!==null&&Ir(ul)&&(ul=null),Si.forEach(Sm),Ei.forEach(Sm)}function $r(e,t){e.blockedOn===t&&(e.blockedOn=null,As||(As=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,X1)))}var Wr=null;function Em(e){Wr!==e&&(Wr=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Wr===e&&(Wr=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(Ns(a||n)===null)continue;break}var s=Vl(n);s!==null&&(e.splice(t,3),t-=3,zo(s,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function ka(e){function t(w){return $r(w,e)}il!==null&&$r(il,e),rl!==null&&$r(rl,e),ul!==null&&$r(ul,e),Si.forEach(t),Ei.forEach(t);for(var n=0;n<ol.length;n++){var a=ol[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ol.length&&(n=ol[0],n.blockedOn===null);)vm(n),n.blockedOn===null&&ol.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],s=n[a+1],h=o[Nt]||null;if(typeof s=="function")h||Em(n);else if(h){var x=null;if(s&&s.hasAttribute("formAction")){if(o=s,h=s[Nt]||null)x=h.formAction;else if(Ns(o)!==null)continue}else x=h.action;typeof x=="function"?n[a+1]=x:(n.splice(a,3),a-=3),Em(n)}}}function Tm(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Cs(e){this._internalRoot=e}Pr.prototype.render=Cs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var n=t.current,a=Xt();mm(n,a,e,t,null,null)},Pr.prototype.unmount=Cs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mm(e.current,2,null,e,null,null),Or(),t[Yl]=null}};function Pr(e){this._internalRoot=e}Pr.prototype.unstable_scheduleHydration=function(e){if(e){var t=jc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ol.length&&t!==0&&t<ol[n].priority;n++);ol.splice(n,0,e),n===0&&vm(e)}};var km=i.version;if(km!=="19.2.6")throw Error(u(527,km,"19.2.6"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=m(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var Q1={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eu.isDisabled&&eu.supportsFiber)try{Et=eu.inject(Q1),ot=eu}catch{}}return wi.createRoot=function(e,t){if(!c(e))throw Error(u(299));var n=!1,a="",o=Md,s=jd,h=Od;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=dm(e,1,!1,null,null,n,a,null,o,s,h,Tm),e[Yl]=t.current,cs(e),new Cs(t)},wi.hydrateRoot=function(e,t,n){if(!c(e))throw Error(u(299));var a=!1,o="",s=Md,h=jd,x=Od,w=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(w=n.formState)),t=dm(e,1,!0,t,n??null,a,o,w,s,h,x,Tm),t.context=hm(null),n=t.current,a=Xt(),a=xu(a),o=Kn(a),o.callback=null,Jn(n,o,a),n=a,t.current.lanes=n,Da(t,n),hn(t),e[Yl]=t.current,cs(e),new Pr(t)},wi.version="19.2.6",wi}var Dm;function tx(){if(Dm)return js.exports;Dm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),js.exports=ex(),js.exports}var nx=tx();/**
50
- * @license lucide-react v0.500.0 - ISC
51
- *
52
- * This source code is licensed under the ISC license.
53
- * See the LICENSE file in the root directory of this source tree.
54
- */const lx=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ax=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,u)=>u?u.toUpperCase():r.toLowerCase()),Rm=l=>{const i=ax(l);return i.charAt(0).toUpperCase()+i.slice(1)},_p=(...l)=>l.filter((i,r,u)=>!!i&&i.trim()!==""&&u.indexOf(i)===r).join(" ").trim(),ix=l=>{for(const i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/**
55
- * @license lucide-react v0.500.0 - ISC
56
- *
57
- * This source code is licensed under the ISC license.
58
- * See the LICENSE file in the root directory of this source tree.
59
- */var rx={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"};/**
60
- * @license lucide-react v0.500.0 - ISC
61
- *
62
- * This source code is licensed under the ISC license.
63
- * See the LICENSE file in the root directory of this source tree.
64
- */const ux=ee.forwardRef(({color:l="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:u,className:c="",children:f,iconNode:d,...p},y)=>ee.createElement("svg",{ref:y,...rx,width:i,height:i,stroke:l,strokeWidth:u?Number(r)*24/Number(i):r,className:_p("lucide",c),...!f&&!ix(p)&&{"aria-hidden":"true"},...p},[...d.map(([m,g])=>ee.createElement(m,g)),...Array.isArray(f)?f:[f]]));/**
65
- * @license lucide-react v0.500.0 - ISC
66
- *
67
- * This source code is licensed under the ISC license.
68
- * See the LICENSE file in the root directory of this source tree.
69
- */const qe=(l,i)=>{const r=ee.forwardRef(({className:u,...c},f)=>ee.createElement(ux,{ref:f,iconNode:i,className:_p(`lucide-${lx(Rm(l))}`,`lucide-${l}`,u),...c}));return r.displayName=Rm(l),r};/**
70
- * @license lucide-react v0.500.0 - ISC
71
- *
72
- * This source code is licensed under the ISC license.
73
- * See the LICENSE file in the root directory of this source tree.
74
- */const ox=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Mp=qe("activity",ox);/**
75
- * @license lucide-react v0.500.0 - ISC
76
- *
77
- * This source code is licensed under the ISC license.
78
- * See the LICENSE file in the root directory of this source tree.
79
- */const sx=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],cx=qe("archive",sx);/**
80
- * @license lucide-react v0.500.0 - ISC
81
- *
82
- * This source code is licensed under the ISC license.
83
- * See the LICENSE file in the root directory of this source tree.
84
- */const fx=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],dx=qe("arrow-down-to-line",fx);/**
85
- * @license lucide-react v0.500.0 - ISC
86
- *
87
- * This source code is licensed under the ISC license.
88
- * See the LICENSE file in the root directory of this source tree.
89
- */const hx=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],mx=qe("arrow-left",hx);/**
90
- * @license lucide-react v0.500.0 - ISC
91
- *
92
- * This source code is licensed under the ISC license.
93
- * See the LICENSE file in the root directory of this source tree.
94
- */const px=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],gx=qe("arrow-up-down",px);/**
95
- * @license lucide-react v0.500.0 - ISC
96
- *
97
- * This source code is licensed under the ISC license.
98
- * See the LICENSE file in the root directory of this source tree.
99
- */const yx=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],xx=qe("arrow-up-from-line",yx);/**
100
- * @license lucide-react v0.500.0 - ISC
101
- *
102
- * This source code is licensed under the ISC license.
103
- * See the LICENSE file in the root directory of this source tree.
104
- */const bx=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],jp=qe("arrow-up",bx);/**
105
- * @license lucide-react v0.500.0 - ISC
106
- *
107
- * This source code is licensed under the ISC license.
108
- * See the LICENSE file in the root directory of this source tree.
109
- */const vx=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],Um=qe("brain",vx);/**
110
- * @license lucide-react v0.500.0 - ISC
111
- *
112
- * This source code is licensed under the ISC license.
113
- * See the LICENSE file in the root directory of this source tree.
114
- */const Sx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],cc=qe("chevron-down",Sx);/**
115
- * @license lucide-react v0.500.0 - ISC
116
- *
117
- * This source code is licensed under the ISC license.
118
- * See the LICENSE file in the root directory of this source tree.
119
- */const Ex=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Tx=qe("chevron-right",Ex);/**
120
- * @license lucide-react v0.500.0 - ISC
121
- *
122
- * This source code is licensed under the ISC license.
123
- * See the LICENSE file in the root directory of this source tree.
124
- */const kx=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],wx=qe("chevron-up",kx);/**
125
- * @license lucide-react v0.500.0 - ISC
126
- *
127
- * This source code is licensed under the ISC license.
128
- * See the LICENSE file in the root directory of this source tree.
129
- */const zx=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],Nx=qe("chevrons-down-up",zx);/**
130
- * @license lucide-react v0.500.0 - ISC
131
- *
132
- * This source code is licensed under the ISC license.
133
- * See the LICENSE file in the root directory of this source tree.
134
- */const Ax=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Cx=qe("chevrons-up-down",Ax);/**
135
- * @license lucide-react v0.500.0 - ISC
136
- *
137
- * This source code is licensed under the ISC license.
138
- * See the LICENSE file in the root directory of this source tree.
139
- */const _x=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Mx=qe("circle-check-big",_x);/**
140
- * @license lucide-react v0.500.0 - ISC
141
- *
142
- * This source code is licensed under the ISC license.
143
- * See the LICENSE file in the root directory of this source tree.
144
- */const jx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ox=qe("circle-help",jx);/**
145
- * @license lucide-react v0.500.0 - ISC
146
- *
147
- * This source code is licensed under the ISC license.
148
- * See the LICENSE file in the root directory of this source tree.
149
- */const Dx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Rx=qe("clock",Dx);/**
150
- * @license lucide-react v0.500.0 - ISC
151
- *
152
- * This source code is licensed under the ISC license.
153
- * See the LICENSE file in the root directory of this source tree.
154
- */const Ux=[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]],Bx=qe("code",Ux);/**
155
- * @license lucide-react v0.500.0 - ISC
156
- *
157
- * This source code is licensed under the ISC license.
158
- * See the LICENSE file in the root directory of this source tree.
159
- */const Lx=[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]],Hx=qe("coins",Lx);/**
160
- * @license lucide-react v0.500.0 - ISC
161
- *
162
- * This source code is licensed under the ISC license.
163
- * See the LICENSE file in the root directory of this source tree.
164
- */const qx=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ca=qe("external-link",qx);/**
165
- * @license lucide-react v0.500.0 - ISC
166
- *
167
- * This source code is licensed under the ISC license.
168
- * See the LICENSE file in the root directory of this source tree.
169
- */const Yx=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],cu=qe("file-text",Yx);/**
170
- * @license lucide-react v0.500.0 - ISC
171
- *
172
- * This source code is licensed under the ISC license.
173
- * See the LICENSE file in the root directory of this source tree.
174
- */const Gx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Vx=qe("info",Gx);/**
175
- * @license lucide-react v0.500.0 - ISC
176
- *
177
- * This source code is licensed under the ISC license.
178
- * See the LICENSE file in the root directory of this source tree.
179
- */const Xx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Is=qe("loader-circle",Xx);/**
180
- * @license lucide-react v0.500.0 - ISC
181
- *
182
- * This source code is licensed under the ISC license.
183
- * See the LICENSE file in the root directory of this source tree.
184
- */const Qx=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],Zx=qe("message-square",Qx);/**
185
- * @license lucide-react v0.500.0 - ISC
186
- *
187
- * This source code is licensed under the ISC license.
188
- * See the LICENSE file in the root directory of this source tree.
189
- */const Kx=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],Jx=qe("octagon-alert",Kx);/**
190
- * @license lucide-react v0.500.0 - ISC
191
- *
192
- * This source code is licensed under the ISC license.
193
- * See the LICENSE file in the root directory of this source tree.
194
- */const Fx=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Ix=qe("refresh-cw",Fx);/**
195
- * @license lucide-react v0.500.0 - ISC
196
- *
197
- * This source code is licensed under the ISC license.
198
- * See the LICENSE file in the root directory of this source tree.
199
- */const $x=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Wx=qe("rotate-ccw",$x);/**
200
- * @license lucide-react v0.500.0 - ISC
201
- *
202
- * This source code is licensed under the ISC license.
203
- * See the LICENSE file in the root directory of this source tree.
204
- */const Px=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],eb=qe("search",Px);/**
205
- * @license lucide-react v0.500.0 - ISC
206
- *
207
- * This source code is licensed under the ISC license.
208
- * See the LICENSE file in the root directory of this source tree.
209
- */const tb=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Op=qe("triangle-alert",tb);/**
210
- * @license lucide-react v0.500.0 - ISC
211
- *
212
- * This source code is licensed under the ISC license.
213
- * See the LICENSE file in the root directory of this source tree.
214
- */const nb=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],lb=qe("wrench",nb);function ab(l){if(!l)return"";try{return decodeURIComponent(l)}catch(i){if(i instanceof URIError)return null;throw i}}function Bm(l){const r=(l.replace(/^#/,"")||"/").match(/^\/trace(?:\/(.+)?)?$/);if(r){const u=ab(r[1]);return u===null?{view:"overview"}:{view:"trace",issueId:u}}return{view:"overview"}}function ib(){const[l,i]=ee.useState(()=>Bm(window.location.hash));ee.useEffect(()=>{function u(){i(Bm(window.location.hash))}return window.addEventListener("hashchange",u),()=>window.removeEventListener("hashchange",u)},[]);const r=ee.useCallback(u=>{window.location.hash=u},[]);return{route:l,navigate:r}}function Dp(){const[l,i]=ee.useState("disconnected"),[r,u]=ee.useState(null),c=ee.useRef(null),f=ee.useRef(null),d=ee.useRef(!1),p=ee.useCallback(()=>{var b,k;if(d.current||((b=c.current)==null?void 0:b.readyState)===WebSocket.OPEN||((k=c.current)==null?void 0:k.readyState)===WebSocket.CONNECTING)return;i("connecting");const m=window.location.protocol==="https:"?"wss:":"ws:",g=new WebSocket(`${m}//${window.location.host}/ws`);c.current=g,g.onopen=()=>{i("connected")},g.onmessage=S=>{try{const U=JSON.parse(S.data);U.type!=="ping"&&u(U)}catch{}},g.onclose=()=>{i("disconnected"),!d.current&&c.current===g&&(c.current=null,f.current=setTimeout(p,3e3))},g.onerror=()=>{g.close()}},[]),y=ee.useCallback(m=>{var g;((g=c.current)==null?void 0:g.readyState)===WebSocket.OPEN&&c.current.send(JSON.stringify(m))},[]);return ee.useEffect(()=>(d.current=!1,p(),()=>{d.current=!0,f.current&&clearTimeout(f.current);const m=c.current;c.current=null,m==null||m.close()}),[p]),{status:l,lastMessage:r,sendMessage:y}}async function rb(){try{const l=await fetch("/api/v1/state");return l.ok?await l.json():null}catch{return null}}function ub(){const[l,i]=ee.useState(null),{status:r,lastMessage:u}=Dp();return ee.useEffect(()=>{rb().then(c=>{c&&i(c)})},[]),ee.useEffect(()=>{(u==null?void 0:u.type)==="ops_state"&&i(u.state)},[u]),{state:l,connected:r==="connected"}}function Rp(l){var i,r,u="";if(typeof l=="string"||typeof l=="number")u+=l;else if(typeof l=="object")if(Array.isArray(l)){var c=l.length;for(i=0;i<c;i++)l[i]&&(r=Rp(l[i]))&&(u&&(u+=" "),u+=r)}else for(r in l)l[r]&&(u&&(u+=" "),u+=r);return u}function ob(){for(var l,i,r=0,u="",c=arguments.length;r<c;r++)(l=arguments[r])&&(i=Rp(l))&&(u&&(u+=" "),u+=i);return u}const sb=(l,i)=>{const r=new Array(l.length+i.length);for(let u=0;u<l.length;u++)r[u]=l[u];for(let u=0;u<i.length;u++)r[l.length+u]=i[u];return r},cb=(l,i)=>({classGroupId:l,validator:i}),Up=(l=new Map,i=null,r)=>({nextPart:l,validators:i,classGroupId:r}),uu="-",Lm=[],fb="arbitrary..",db=l=>{const i=mb(l),{conflictingClassGroups:r,conflictingClassGroupModifiers:u}=l;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return hb(d);const p=d.split(uu),y=p[0]===""&&p.length>1?1:0;return Bp(p,y,i)},getConflictingClassGroupIds:(d,p)=>{if(p){const y=u[d],m=r[d];return y?m?sb(m,y):y:m||Lm}return r[d]||Lm}}},Bp=(l,i,r)=>{if(l.length-i===0)return r.classGroupId;const c=l[i],f=r.nextPart.get(c);if(f){const m=Bp(l,i+1,f);if(m)return m}const d=r.validators;if(d===null)return;const p=i===0?l.join(uu):l.slice(i).join(uu),y=d.length;for(let m=0;m<y;m++){const g=d[m];if(g.validator(p))return g.classGroupId}},hb=l=>l.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=l.slice(1,-1),r=i.indexOf(":"),u=i.slice(0,r);return u?fb+u:void 0})(),mb=l=>{const{theme:i,classGroups:r}=l;return pb(r,i)},pb=(l,i)=>{const r=Up();for(const u in l){const c=l[u];fc(c,r,u,i)}return r},fc=(l,i,r,u)=>{const c=l.length;for(let f=0;f<c;f++){const d=l[f];gb(d,i,r,u)}},gb=(l,i,r,u)=>{if(typeof l=="string"){yb(l,i,r);return}if(typeof l=="function"){xb(l,i,r,u);return}bb(l,i,r,u)},yb=(l,i,r)=>{const u=l===""?i:Lp(i,l);u.classGroupId=r},xb=(l,i,r,u)=>{if(vb(l)){fc(l(u),i,r,u);return}i.validators===null&&(i.validators=[]),i.validators.push(cb(r,l))},bb=(l,i,r,u)=>{const c=Object.entries(l),f=c.length;for(let d=0;d<f;d++){const[p,y]=c[d];fc(y,Lp(i,p),r,u)}},Lp=(l,i)=>{let r=l;const u=i.split(uu),c=u.length;for(let f=0;f<c;f++){const d=u[f];let p=r.nextPart.get(d);p||(p=Up(),r.nextPart.set(d,p)),r=p}return r},vb=l=>"isThemeGetter"in l&&l.isThemeGetter===!0,Sb=l=>{if(l<1)return{get:()=>{},set:()=>{}};let i=0,r=Object.create(null),u=Object.create(null);const c=(f,d)=>{r[f]=d,i++,i>l&&(i=0,u=r,r=Object.create(null))};return{get(f){let d=r[f];if(d!==void 0)return d;if((d=u[f])!==void 0)return c(f,d),d},set(f,d){f in r?r[f]=d:c(f,d)}}},$s="!",Hm=":",Eb=[],qm=(l,i,r,u,c)=>({modifiers:l,hasImportantModifier:i,baseClassName:r,maybePostfixModifierPosition:u,isExternal:c}),Tb=l=>{const{prefix:i,experimentalParseClassName:r}=l;let u=c=>{const f=[];let d=0,p=0,y=0,m;const g=c.length;for(let G=0;G<g;G++){const J=c[G];if(d===0&&p===0){if(J===Hm){f.push(c.slice(y,G)),y=G+1;continue}if(J==="/"){m=G;continue}}J==="["?d++:J==="]"?d--:J==="("?p++:J===")"&&p--}const b=f.length===0?c:c.slice(y);let k=b,S=!1;b.endsWith($s)?(k=b.slice(0,-1),S=!0):b.startsWith($s)&&(k=b.slice(1),S=!0);const U=m&&m>y?m-y:void 0;return qm(f,S,k,U)};if(i){const c=i+Hm,f=u;u=d=>d.startsWith(c)?f(d.slice(c.length)):qm(Eb,!1,d,void 0,!0)}if(r){const c=u;u=f=>r({className:f,parseClassName:c})}return u},kb=l=>{const i=new Map;return l.orderSensitiveModifiers.forEach((r,u)=>{i.set(r,1e6+u)}),r=>{const u=[];let c=[];for(let f=0;f<r.length;f++){const d=r[f],p=d[0]==="[",y=i.has(d);p||y?(c.length>0&&(c.sort(),u.push(...c),c=[]),u.push(d)):c.push(d)}return c.length>0&&(c.sort(),u.push(...c)),u}},wb=l=>({cache:Sb(l.cacheSize),parseClassName:Tb(l),sortModifiers:kb(l),postfixLookupClassGroupIds:zb(l),...db(l)}),zb=l=>{const i=Object.create(null),r=l.postfixLookupClassGroups;if(r)for(let u=0;u<r.length;u++)i[r[u]]=!0;return i},Nb=/\s+/,Ab=(l,i)=>{const{parseClassName:r,getClassGroupId:u,getConflictingClassGroupIds:c,sortModifiers:f,postfixLookupClassGroupIds:d}=i,p=[],y=l.trim().split(Nb);let m="";for(let g=y.length-1;g>=0;g-=1){const b=y[g],{isExternal:k,modifiers:S,hasImportantModifier:U,baseClassName:G,maybePostfixModifierPosition:J}=r(b);if(k){m=b+(m.length>0?" "+m:m);continue}let q=!!J,ne;if(q){const I=G.substring(0,J);ne=u(I);const X=ne&&d[ne]?u(G):void 0;X&&X!==ne&&(ne=X,q=!1)}else ne=u(G);if(!ne){if(!q){m=b+(m.length>0?" "+m:m);continue}if(ne=u(G),!ne){m=b+(m.length>0?" "+m:m);continue}q=!1}const F=S.length===0?"":S.length===1?S[0]:f(S).join(":"),de=U?F+$s:F,pe=de+ne;if(p.indexOf(pe)>-1)continue;p.push(pe);const B=c(ne,q);for(let I=0;I<B.length;++I){const X=B[I];p.push(de+X)}m=b+(m.length>0?" "+m:m)}return m},Cb=(...l)=>{let i=0,r,u,c="";for(;i<l.length;)(r=l[i++])&&(u=Hp(r))&&(c&&(c+=" "),c+=u);return c},Hp=l=>{if(typeof l=="string")return l;let i,r="";for(let u=0;u<l.length;u++)l[u]&&(i=Hp(l[u]))&&(r&&(r+=" "),r+=i);return r},_b=(l,...i)=>{let r,u,c,f;const d=y=>{const m=i.reduce((g,b)=>b(g),l());return r=wb(m),u=r.cache.get,c=r.cache.set,f=p,p(y)},p=y=>{const m=u(y);if(m)return m;const g=Ab(y,r);return c(y,g),g};return f=d,(...y)=>f(Cb(...y))},Mb=[],ct=l=>{const i=r=>r[l]||Mb;return i.isThemeGetter=!0,i},qp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,jb=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ob=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Db=/\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$/,Rb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ub=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cl=l=>jb.test(l),ze=l=>!!l&&!Number.isNaN(Number(l)),mn=l=>!!l&&Number.isInteger(Number(l)),Us=l=>l.endsWith("%")&&ze(l.slice(0,-1)),Bn=l=>Ob.test(l),Gp=()=>!0,Lb=l=>Db.test(l)&&!Rb.test(l),dc=()=>!1,Hb=l=>Ub.test(l),qb=l=>Bb.test(l),Yb=l=>!ae(l)&&!re(l),Gb=l=>l.startsWith("@container")&&(l[10]==="/"&&l[11]!==void 0||l[11]==="s"&&l[16]!==void 0&&l.startsWith("-size/",10)||l[11]==="n"&&l[18]!==void 0&&l.startsWith("-normal/",10)),Vb=l=>hl(l,Qp,dc),ae=l=>qp.test(l),Ol=l=>hl(l,Zp,Lb),Ym=l=>hl(l,$b,ze),Xb=l=>hl(l,Jp,Gp),Qb=l=>hl(l,Kp,dc),Gm=l=>hl(l,Vp,dc),Zb=l=>hl(l,Xp,qb),tu=l=>hl(l,Fp,Hb),re=l=>Yp.test(l),zi=l=>Rl(l,Zp),Kb=l=>Rl(l,Kp),Vm=l=>Rl(l,Vp),Jb=l=>Rl(l,Qp),Fb=l=>Rl(l,Xp),nu=l=>Rl(l,Fp,!0),Ib=l=>Rl(l,Jp,!0),hl=(l,i,r)=>{const u=qp.exec(l);return u?u[1]?i(u[1]):r(u[2]):!1},Rl=(l,i,r=!1)=>{const u=Yp.exec(l);return u?u[1]?i(u[1]):r:!1},Vp=l=>l==="position"||l==="percentage",Xp=l=>l==="image"||l==="url",Qp=l=>l==="length"||l==="size"||l==="bg-size",Zp=l=>l==="length",$b=l=>l==="number",Kp=l=>l==="family-name",Jp=l=>l==="number"||l==="weight",Fp=l=>l==="shadow",Wb=()=>{const l=ct("color"),i=ct("font"),r=ct("text"),u=ct("font-weight"),c=ct("tracking"),f=ct("leading"),d=ct("breakpoint"),p=ct("container"),y=ct("spacing"),m=ct("radius"),g=ct("shadow"),b=ct("inset-shadow"),k=ct("text-shadow"),S=ct("drop-shadow"),U=ct("blur"),G=ct("perspective"),J=ct("aspect"),q=ct("ease"),ne=ct("animate"),F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],de=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],pe=()=>[...de(),re,ae],B=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],X=()=>[re,ae,y],ce=()=>[cl,"full","auto",...X()],Te=()=>[mn,"none","subgrid",re,ae],te=()=>["auto",{span:["full",mn,re,ae]},mn,re,ae],P=()=>[mn,"auto",re,ae],Se=()=>["auto","min","max","fr",re,ae],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...X()],V=()=>[cl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...X()],Z=()=>[cl,"screen","full","dvw","lvw","svw","min","max","fit",...X()],he=()=>[cl,"screen","full","lh","dvh","lvh","svh","min","max","fit",...X()],E=()=>[l,re,ae],z=()=>[...de(),Vm,Gm,{position:[re,ae]}],D=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",Jb,Vb,{size:[re,ae]}],W=()=>[Us,zi,Ol],ie=()=>["","none","full",m,re,ae],le=()=>["",ze,zi,Ol],ke=()=>["solid","dashed","dotted","double"],Xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>[ze,Us,Vm,Gm],vt=()=>["","none",U,re,ae],kt=()=>["none",ze,re,ae],sn=()=>["none",ze,re,ae],Ln=()=>[ze,re,ae],wt=()=>[cl,"full",...X()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Bn],breakpoint:[Bn],color:[Gp],container:[Bn],"drop-shadow":[Bn],ease:["in","out","in-out"],font:[Yb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Bn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Bn],shadow:[Bn],spacing:["px",ze],text:[Bn],"text-shadow":[Bn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",cl,ae,re,J]}],container:["container"],"container-type":[{"@container":["","normal","size",re,ae]}],"container-named":[Gb],columns:[{columns:[ze,ae,re,p]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"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:pe()}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ce()}],"inset-x":[{"inset-x":ce()}],"inset-y":[{"inset-y":ce()}],start:[{"inset-s":ce(),start:ce()}],end:[{"inset-e":ce(),end:ce()}],"inset-bs":[{"inset-bs":ce()}],"inset-be":[{"inset-be":ce()}],top:[{top:ce()}],right:[{right:ce()}],bottom:[{bottom:ce()}],left:[{left:ce()}],visibility:["visible","invisible","collapse"],z:[{z:[mn,"auto",re,ae]}],basis:[{basis:[cl,"full","auto",p,...X()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ze,cl,"auto","initial","none",ae]}],grow:[{grow:["",ze,re,ae]}],shrink:[{shrink:["",ze,re,ae]}],order:[{order:[mn,"first","last","none",re,ae]}],"grid-cols":[{"grid-cols":Te()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":Te()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Se()}],"auto-rows":[{"auto-rows":Se()}],gap:[{gap:X()}],"gap-x":[{"gap-x":X()}],"gap-y":[{"gap-y":X()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:X()}],px:[{px:X()}],py:[{py:X()}],ps:[{ps:X()}],pe:[{pe:X()}],pbs:[{pbs:X()}],pbe:[{pbe:X()}],pt:[{pt:X()}],pr:[{pr:X()}],pb:[{pb:X()}],pl:[{pl:X()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mbs:[{mbs:C()}],mbe:[{mbe:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":X()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":X()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...he()]}],"min-block-size":[{"min-block":["auto",...he()]}],"max-block-size":[{"max-block":["none",...he()]}],w:[{w:[p,"screen",...V()]}],"min-w":[{"min-w":[p,"screen","none",...V()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[d]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",r,zi,Ol]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[u,Ib,Xb]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Us,ae]}],"font-family":[{font:[Kb,Qb,i]}],"font-features":[{"font-features":[ae]}],"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:[c,re,ae]}],"line-clamp":[{"line-clamp":[ze,"none",re,Ym]}],leading:[{leading:[f,...X()]}],"list-image":[{"list-image":["none",re,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,ae]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ke(),"wavy"]}],"text-decoration-thickness":[{decoration:[ze,"from-font","auto",re,Ol]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[ze,"auto",re,ae]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:X()}],"tab-size":[{tab:[mn,re,ae]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re,ae]}],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",re,ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:D()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},mn,re,ae],radial:["",re,ae],conic:[mn,re,ae]},Fb,Zb]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ke(),"hidden","none"]}],"divide-style":[{divide:[...ke(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-bs":[{"border-bs":E()}],"border-color-be":[{"border-be":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...ke(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ze,re,ae]}],"outline-w":[{outline:["",ze,zi,Ol]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",g,nu,tu]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",b,nu,tu]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[ze,Ol]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",k,nu,tu]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[ze,re,ae]}],"mix-blend":[{"mix-blend":[...Xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Xe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"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":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"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":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"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":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"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":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"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":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"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":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[re,ae]}],"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":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"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":de()}],"mask-image-conic-pos":[{"mask-conic":[ze]}],"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":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:D()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",re,ae]}],filter:[{filter:["","none",re,ae]}],blur:[{blur:vt()}],brightness:[{brightness:[ze,re,ae]}],contrast:[{contrast:[ze,re,ae]}],"drop-shadow":[{"drop-shadow":["","none",S,nu,tu]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",ze,re,ae]}],"hue-rotate":[{"hue-rotate":[ze,re,ae]}],invert:[{invert:["",ze,re,ae]}],saturate:[{saturate:[ze,re,ae]}],sepia:[{sepia:["",ze,re,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",re,ae]}],"backdrop-blur":[{"backdrop-blur":vt()}],"backdrop-brightness":[{"backdrop-brightness":[ze,re,ae]}],"backdrop-contrast":[{"backdrop-contrast":[ze,re,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ze,re,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ze,re,ae]}],"backdrop-invert":[{"backdrop-invert":["",ze,re,ae]}],"backdrop-opacity":[{"backdrop-opacity":[ze,re,ae]}],"backdrop-saturate":[{"backdrop-saturate":[ze,re,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",ze,re,ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":X()}],"border-spacing-x":[{"border-spacing-x":X()}],"border-spacing-y":[{"border-spacing-y":X()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",re,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ze,"initial",re,ae]}],ease:[{ease:["linear","initial",q,re,ae]}],delay:[{delay:[ze,re,ae]}],animate:[{animate:["none",ne,re,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[G,re,ae]}],"perspective-origin":[{"perspective-origin":pe()}],rotate:[{rotate:kt()}],"rotate-x":[{"rotate-x":kt()}],"rotate-y":[{"rotate-y":kt()}],"rotate-z":[{"rotate-z":kt()}],scale:[{scale:sn()}],"scale-x":[{"scale-x":sn()}],"scale-y":[{"scale-y":sn()}],"scale-z":[{"scale-z":sn()}],"scale-3d":["scale-3d"],skew:[{skew:Ln()}],"skew-x":[{"skew-x":Ln()}],"skew-y":[{"skew-y":Ln()}],transform:[{transform:[re,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:pe()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:wt()}],"translate-x":[{"translate-x":wt()}],"translate-y":[{"translate-y":wt()}],"translate-z":[{"translate-z":wt()}],"translate-none":["translate-none"],zoom:[{zoom:[mn,re,ae]}],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"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",re,ae]}],"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":E()}],"scrollbar-track-color":[{"scrollbar-track":E()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":X()}],"scroll-mx":[{"scroll-mx":X()}],"scroll-my":[{"scroll-my":X()}],"scroll-ms":[{"scroll-ms":X()}],"scroll-me":[{"scroll-me":X()}],"scroll-mbs":[{"scroll-mbs":X()}],"scroll-mbe":[{"scroll-mbe":X()}],"scroll-mt":[{"scroll-mt":X()}],"scroll-mr":[{"scroll-mr":X()}],"scroll-mb":[{"scroll-mb":X()}],"scroll-ml":[{"scroll-ml":X()}],"scroll-p":[{"scroll-p":X()}],"scroll-px":[{"scroll-px":X()}],"scroll-py":[{"scroll-py":X()}],"scroll-ps":[{"scroll-ps":X()}],"scroll-pe":[{"scroll-pe":X()}],"scroll-pbs":[{"scroll-pbs":X()}],"scroll-pbe":[{"scroll-pbe":X()}],"scroll-pt":[{"scroll-pt":X()}],"scroll-pr":[{"scroll-pr":X()}],"scroll-pb":[{"scroll-pb":X()}],"scroll-pl":[{"scroll-pl":X()}],"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",re,ae]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[ze,zi,Ol,Ym]}],stroke:[{stroke:["none",...E()]}],"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"]}},Pb=_b(Wb);function ut(...l){return Pb(ob(l))}function hc(l){if(l<1e3)return`${l}ms`;if(l<6e4)return`${(l/1e3).toFixed(1)}s`;const i=Math.floor(l/6e4),r=Math.floor(l%6e4/1e3);return`${i}m ${r}s`}function Aa(l){return l>=1e6?`${(l/1e6).toFixed(1)}M`:l>=1e3?`${(l/1e3).toFixed(1)}K`:l.toString()}function dl(l){return new Date(l).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}async function e0(){const l=await fetch("/api/v1/tickets");return l.ok?(await l.json()).tickets:[]}async function t0(l){const i=await fetch(`/api/v1/tickets/${encodeURIComponent(l)}/events`);return i.ok?(await i.json()).events:[]}async function Ip(l=5){const i=await fetch(`/api/v1/issues/recent?limit=${l}`);return i.ok?(await i.json()).issues:[]}async function n0(l,i=20){const r=await fetch(`/api/v1/issues/search?q=${encodeURIComponent(l)}&limit=${i}`);return r.ok?(await r.json()).issues:[]}function l0(l){const i=Date.now()-l,r=Math.floor(i/1e3);if(r<60)return"just now";const u=Math.floor(r/60);if(u<60)return`${u}m ago`;const c=Math.floor(u/60);return c<24?`${c}h ago`:`${Math.floor(c/24)}d ago`}function a0(){const[l,i]=ee.useState([]);return ee.useEffect(()=>{Ip(5).then(i)},[]),v.jsxs("div",{className:"rounded-lg border border-border bg-card",children:[v.jsx("div",{className:"border-b border-border px-4 py-3",children:v.jsx("h3",{className:"text-sm font-medium text-foreground",children:"Recent Issues"})}),l.length===0?v.jsx("div",{className:"px-4 py-6 text-center text-sm text-muted",children:"No recent issues"}):v.jsx("div",{className:"divide-y divide-border",children:l.map(r=>v.jsxs("div",{className:ut("flex items-center gap-3 px-4 py-3","transition-colors hover:bg-surface"),children:[v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("a",{href:`#/trace/${encodeURIComponent(r.issueId)}`,className:"inline-flex items-center gap-1 truncate font-mono text-sm text-accent-blue hover:underline",title:"View trace",children:[v.jsx(cu,{className:"h-3 w-3 shrink-0"}),r.issueIdentifier]}),r.url&&v.jsx("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-muted hover:text-foreground",title:"Open in tracker",children:v.jsx(Ca,{className:"h-3.5 w-3.5"})})]}),r.title&&v.jsx("p",{className:"truncate text-xs text-muted",children:r.title})]}),v.jsx("span",{className:"shrink-0 text-xs text-muted",children:l0(r.updatedAt)})]},r.issueId))})]})}function i0({label:l,value:i,icon:r,color:u}){return v.jsxs("div",{className:ut("rounded-lg border border-border bg-card p-4","transition-colors hover:border-muted"),children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("div",{className:ut("text-sm",u),children:r}),v.jsx("span",{className:"text-xs text-muted",children:l})]}),v.jsx("div",{className:"mt-2 text-2xl font-semibold tracking-tight",children:i})]})}function r0({sessions:l}){return v.jsxs("div",{className:"rounded-lg border border-border bg-card",children:[v.jsx("div",{className:"border-b border-border px-4 py-3",children:v.jsx("h3",{className:"text-sm font-medium text-foreground",children:"Running Sessions"})}),l.length===0?v.jsx("div",{className:"px-4 py-6 text-center text-sm text-muted",children:"No active sessions"}):v.jsx("div",{className:"overflow-x-auto",children:v.jsxs("table",{className:"w-full text-sm",children:[v.jsx("thead",{children:v.jsxs("tr",{className:"border-b border-border text-left text-xs text-muted",children:[v.jsx("th",{className:"px-4 py-2 font-medium",children:"Issue"}),v.jsx("th",{className:"px-4 py-2 font-medium",children:"Agent"}),v.jsx("th",{className:"px-4 py-2 font-medium",children:"Worker"}),v.jsx("th",{className:"px-4 py-2 font-medium",children:"Turns"}),v.jsx("th",{className:"px-4 py-2 font-medium",children:"Tokens"}),v.jsx("th",{className:"px-4 py-2 font-medium",children:"Session"}),v.jsx("th",{className:"px-4 py-2 font-medium",children:"Event"})]})}),v.jsx("tbody",{className:"divide-y divide-border",children:l.map(i=>v.jsxs("tr",{className:"hover:bg-surface",children:[v.jsx("td",{className:"px-4 py-2",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("a",{href:`#/trace/${encodeURIComponent(i.issue_id)}`,className:"inline-flex items-center gap-1 font-mono text-accent-blue hover:underline",title:"View trace",children:[v.jsx(cu,{className:"h-3 w-3"}),i.issue_identifier]}),i.issue_url&&v.jsx("a",{href:i.issue_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-muted hover:text-foreground",title:"Open in tracker",children:v.jsx(Ca,{className:"h-3.5 w-3.5"})})]})}),v.jsx("td",{className:"px-4 py-2",children:v.jsx("span",{className:"rounded bg-surface px-2 py-0.5 text-xs text-muted",children:i.agent_kind})}),v.jsx("td",{className:"px-4 py-2 text-muted",children:i.worker_host??"local"}),v.jsx("td",{className:"px-4 py-2 font-mono",children:i.turn_count}),v.jsx("td",{className:"px-4 py-2 font-mono",children:Aa(i.tokens.total_tokens)}),v.jsx("td",{className:"px-4 py-2 font-mono text-muted",children:i.session_id??"n/a"}),v.jsx("td",{className:"px-4 py-2 text-muted",children:i.last_event??"n/a"})]},i.issue_id))})]})})]})}function u0({entries:l}){return v.jsxs("div",{className:"rounded-lg border border-border bg-card",children:[v.jsx("div",{className:"border-b border-border px-4 py-3",children:v.jsx("h3",{className:"text-sm font-medium text-foreground",children:"Retry Queue"})}),l.length===0?v.jsx("div",{className:"px-4 py-6 text-center text-sm text-muted",children:"No pending retries"}):v.jsx("div",{className:"overflow-x-auto",children:v.jsxs("table",{className:"w-full text-sm",children:[v.jsx("thead",{children:v.jsxs("tr",{className:"border-b border-border text-left text-xs text-muted",children:[v.jsx("th",{className:"px-4 py-2 font-medium",children:"Issue"}),v.jsx("th",{className:"px-4 py-2 font-medium",children:"Attempt"}),v.jsx("th",{className:"px-4 py-2 font-medium",children:"Due"}),v.jsx("th",{className:"px-4 py-2 font-medium",children:"Worker"}),v.jsx("th",{className:"px-4 py-2 font-medium",children:"Workspace"}),v.jsx("th",{className:"px-4 py-2 font-medium",children:"Error"})]})}),v.jsx("tbody",{className:"divide-y divide-border",children:l.map(i=>v.jsxs("tr",{className:"hover:bg-surface",children:[v.jsx("td",{className:"px-4 py-2",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("a",{href:`#/trace/${encodeURIComponent(i.issue_id)}`,className:"inline-flex items-center gap-1 font-mono text-accent-blue hover:underline",title:"View trace",children:[v.jsx(cu,{className:"h-3 w-3"}),i.issue_identifier]}),i.issue_url&&v.jsx("a",{href:i.issue_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-muted hover:text-foreground",title:"Open in tracker",children:v.jsx(Ca,{className:"h-3.5 w-3.5"})})]})}),v.jsx("td",{className:"px-4 py-2 font-mono",children:i.attempt}),v.jsx("td",{className:"px-4 py-2 font-mono",children:dl(i.due_at)}),v.jsx("td",{className:"px-4 py-2 text-muted",children:i.worker_host??"local"}),v.jsx("td",{className:"px-4 py-2 font-mono text-muted",children:i.workspace_path??"n/a"}),v.jsx("td",{className:"px-4 py-2 text-muted",children:i.error??"n/a"})]},i.issue_id))})]})})]})}function o0({entries:l}){return v.jsxs("div",{className:"rounded-lg border border-border bg-card",children:[v.jsx("div",{className:"border-b border-border px-4 py-3",children:v.jsx("h3",{className:"text-sm font-medium text-foreground",children:"Blocked Issues"})}),l.length===0?v.jsx("div",{className:"px-4 py-6 text-center text-sm text-muted",children:"No blocked issues"}):v.jsx("div",{className:"overflow-x-auto",children:v.jsxs("table",{className:"w-full text-sm",children:[v.jsx("thead",{children:v.jsxs("tr",{className:"border-b border-border text-left text-xs text-muted",children:[v.jsx("th",{className:"px-4 py-2 font-medium",children:"Issue"}),v.jsx("th",{className:"px-4 py-2 font-medium",children:"Reason"}),v.jsx("th",{className:"px-4 py-2 font-medium",children:"Worker"})]})}),v.jsx("tbody",{className:"divide-y divide-border",children:l.map(i=>v.jsxs("tr",{className:"hover:bg-surface",children:[v.jsx("td",{className:"px-4 py-2",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("a",{href:`#/trace/${encodeURIComponent(i.issue_id)}`,className:"inline-flex items-center gap-1 font-mono text-accent-blue hover:underline",title:"View trace",children:[v.jsx(cu,{className:"h-3 w-3"}),i.issue_identifier]}),i.issue_url&&v.jsx("a",{href:i.issue_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-muted hover:text-foreground",title:"Open in tracker",children:v.jsx(Ca,{className:"h-3.5 w-3.5"})})]})}),v.jsx("td",{className:"px-4 py-2 text-muted",children:i.label}),v.jsx("td",{className:"px-4 py-2 text-muted",children:i.worker_host??"n/a"})]},i.issue_id))})]})})]})}function s0({state:l,connected:i}){const r=(l==null?void 0:l.running)??[],u=(l==null?void 0:l.retrying)??[],c=(l==null?void 0:l.blocked)??[],f=(l==null?void 0:l.counts)??{running:0,retrying:0,blocked:0},d=(l==null?void 0:l.usage_totals)??{total_tokens:0},p=[{label:"Running",value:f.running.toString(),icon:v.jsx(Mp,{className:"h-4 w-4"}),color:"text-accent-green"},{label:"Retrying",value:f.retrying.toString(),icon:v.jsx(Ix,{className:"h-4 w-4"}),color:"text-accent-orange"},{label:"Blocked",value:f.blocked.toString(),icon:v.jsx(Jx,{className:"h-4 w-4"}),color:"text-accent-red"},{label:"Total Tokens",value:Aa(d.total_tokens),icon:v.jsx(Hx,{className:"h-4 w-4"}),color:"text-accent-purple"}];return v.jsxs("div",{className:"space-y-6",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("div",{className:ut("h-2 w-2 rounded-full",i?"bg-accent-green":"bg-accent-red animate-pulse")}),v.jsx("span",{className:"text-xs text-muted",children:i?"Stream connected":"Connecting..."})]}),v.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-4",children:p.map(y=>v.jsx(i0,{...y},y.label))}),v.jsxs("div",{className:"space-y-6",children:[v.jsx(r0,{sessions:r}),v.jsx(u0,{entries:u}),v.jsx(o0,{entries:c})]}),v.jsx(a0,{})]})}function c0(l){if(l.length===0)return f0();let i=1/0,r=-1/0;for(const g of l){const b=new Date(g.timestamp).getTime();Number.isNaN(b)||(b<i&&(i=b),b>r&&(r=b))}const u=Number.isFinite(i)&&Number.isFinite(r)?r-i:0,c=l.filter(g=>g.kind==="turn_started").length;let f=0,d=0;for(const g of l)g.kind==="turn_completed"&&g.usage&&(f+=g.usage.inputTokens,d+=g.usage.outputTokens);const p=f+d,y=new Map;for(const g of l)if(g.kind==="tool_call"){const b=y.get(g.toolName);b?(b.count++,g.isError&&b.errorCount++,g.durationMs!=null&&(b.totalDurationMs+=g.durationMs)):y.set(g.toolName,{count:1,errorCount:g.isError?1:0,totalDurationMs:g.durationMs??0})}const m=[];for(const[g,b]of y)m.push({toolName:g,count:b.count,errorCount:b.errorCount,totalDurationMs:b.totalDurationMs});return m.sort((g,b)=>b.count-g.count),{durationMs:u,totalEvents:l.length,totalTurns:c,tokenUsage:{inputTokens:f,outputTokens:d,totalTokens:p},toolBreakdown:m}}function f0(){return{durationMs:0,totalEvents:0,totalTurns:0,tokenUsage:{inputTokens:0,outputTokens:0,totalTokens:0},toolBreakdown:[]}}const d0=50;function h0(l,i,r){return r<0||r>l.length?{events:l,needsRefresh:!0}:{events:[...l.slice(0,r),...i],needsRefresh:!1}}function m0(l,i){return l===i?!0:l.length!==i.length?!1:l.every((r,u)=>r===i[u]||JSON.stringify(r)===JSON.stringify(i[u]))}function p0(){const l=ee.useRef(!0),i=ee.useRef(!1),[r,u]=ee.useState(!1),[c,f]=ee.useState(0),d=ee.useCallback(g=>{i.current!==g&&(i.current=g,u(g))},[]);ee.useEffect(()=>{const g=()=>{const b=window.scrollY<d0;if(l.current===b){b&&d(!1);return}l.current=b,b&&(d(!1),f(k=>k+1))};return window.addEventListener("scroll",g,{passive:!0}),g(),()=>window.removeEventListener("scroll",g)},[d]);const p=ee.useCallback(()=>d(!0),[d]),y=ee.useCallback(()=>d(!1),[d]),m=ee.useCallback(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);return{followingRef:l,followResumeVersion:c,hasNewUpdates:r,markNewUpdates:p,clearNewUpdates:y,scrollToTop:m}}function g0(){const[l,i]=ee.useState([]),[r,u]=ee.useState(null),[c,f]=ee.useState([]),[d,p]=ee.useState(null),[y,m]=ee.useState(!1),[g,b]=ee.useState(null),[k,S]=ee.useState(null),{status:U,lastMessage:G,sendMessage:J}=Dp(),{followingRef:q,followResumeVersion:ne,hasNewUpdates:F,markNewUpdates:de,clearNewUpdates:pe,scrollToTop:B}=p0(),I=ee.useRef(!1),X=ee.useRef(c);X.current=c;const ce=ee.useRef(r);ce.current=r;const Te=ee.useRef(U);Te.current=U;const te=ee.useRef(y);te.current=y;const P=ee.useRef(0),Se=ee.useRef(0),ue=ee.useCallback(async()=>{const Z=await e0();i(Z)},[]),Q=ee.useCallback((Z,he=Z.length>0)=>{X.current=Z,P.current+=1,f(Z),p(c0(Z)),S(he)},[]),C=ee.useCallback(async(Z,he)=>{const E=++Se.current,z=P.current,D=(he==null?void 0:he.silent)??!1;D||(m(!0),S(null),b(null));try{const T=await t0(Z);if(ce.current!==Z||E!==Se.current)return;const W=X.current.length;if(P.current!==z&&T.length<=W)return;b(null),Q(T)}catch{if(ce.current!==Z||E!==Se.current)return;D||(b("Failed to load trace data"),Q([],!1))}finally{!D&&ce.current===Z&&E===Se.current&&m(!1)}},[Q]),V=ee.useCallback(Z=>{Te.current==="connected"?J({type:"subscribe",issueId:Z}):C(Z,{silent:!0})},[J,C]);return ee.useEffect(()=>{ue()},[ue]),ee.useEffect(()=>{Se.current+=1,I.current=!1,X.current=[],f([]),p(null),S(null),b(null);const Z=r!==null;te.current=Z,m(Z)},[r]),ee.useEffect(()=>{!r||U==="connected"||te.current&&C(r)},[U,r,C]),ee.useEffect(()=>{if(!(U!=="connected"||!r))return J({type:"subscribe",issueId:r}),()=>{J({type:"unsubscribe",issueId:r})}},[U,r,J]),ee.useEffect(()=>{ne>0&&I.current&&r&&(I.current=!1,V(r))},[ne,r,V]),ee.useEffect(()=>{if(!G)return;const Z=G;if(Z.type==="init")i(Z.tickets);else if(Z.type==="update")i(Z.tickets);else if(Z.type==="events"&&Z.issueId===r)te.current?(te.current=!1,I.current=!1,m(!1),b(null),pe(),Q(Z.events)):m0(Z.events,X.current)?(I.current=!1,pe()):q.current?Z.events.length>=X.current.length&&(b(null),Q(Z.events)):(I.current=!0,de());else if(Z.type==="events_append"&&Z.issueId===r)if(q.current){const he=h0(X.current,Z.events,Z.fromIndex);if(he.needsRefresh){V(r);return}Q(he.events)}else I.current=!0,de()},[G,r,de,pe,V,Q]),{tickets:l,selectedTicketId:r,setSelectedTicketId:u,events:c,stats:d,loading:y,error:g,traceExists:k,wsStatus:U,hasNewUpdates:F,scrollToTop:B}}function y0(l){switch(l){case"completed":return"bg-accent-green";case"running":return"bg-accent-blue animate-pulse";case"failed":return"bg-accent-red";default:return"bg-muted"}}function x0({tickets:l,selectedId:i,onSelect:r}){const u=l.find(c=>c.issueId===i);return v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("div",{className:"relative",children:[v.jsx("label",{htmlFor:"ticket-selector",className:"absolute w-px h-px p-0 -m-px overflow-hidden [clip:rect(0,0,0,0)] whitespace-nowrap border-0",children:"Select an issue"}),v.jsxs("select",{id:"ticket-selector",value:i??"",onChange:c=>r(c.target.value||null),className:ut("appearance-none rounded-lg border border-border bg-card px-3 py-1.5 pr-8 text-sm","focus:outline-none focus:ring-2 focus:ring-accent-purple/50","cursor-pointer min-w-[240px]"),children:[v.jsx("option",{value:"",children:"Select an issue..."}),l.map(c=>v.jsxs("option",{value:c.issueId,children:[c.identifier,c.title?` - ${c.title}`:"",` (${c.turnCount} turns)`]},c.issueId))]}),v.jsx(cc,{"aria-hidden":"true",className:"pointer-events-none absolute right-2 top-1/2 h-4 w-4 -translate-y-1/2 text-muted"}),i&&v.jsx("span",{role:"img","aria-label":(u==null?void 0:u.status)??"idle",className:ut("absolute right-10 top-1/2 -translate-y-1/2 h-2 w-2 rounded-full",y0((u==null?void 0:u.status)??"idle"))})]}),(u==null?void 0:u.url)&&v.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 rounded-lg border border-border bg-card px-2.5 py-1.5 text-xs text-muted transition-colors hover:border-muted hover:text-foreground",title:"Open in Linear",children:[v.jsx(Ca,{className:"h-3.5 w-3.5"}),"Linear"]})]})}function b0(){const[l,i]=ee.useState(""),[r,u]=ee.useState([]),[c,f]=ee.useState([]),[d,p]=ee.useState(!1),[y,m]=ee.useState(!1),g=ee.useRef(null);ee.useEffect(()=>{Ip(5).then(u)},[]);const b=ee.useCallback(async S=>{p(!0);try{const U=await n0(S);f(U),m(!0)}finally{p(!1)}},[]);ee.useEffect(()=>{if(l.length<2){f([]),m(!1);return}return g.current=setTimeout(()=>{b(l)},300),()=>{g.current&&clearTimeout(g.current)}},[l,b]);const k=l.length>=2;return{query:l,setQuery:i,issues:k?c:r,searching:d,isSearchMode:k,noResults:k&&y&&c.length===0&&!d}}function v0(l){const i=Date.now()-l,r=Math.floor(i/1e3);if(r<60)return"just now";const u=Math.floor(r/60);if(u<60)return`${u}m ago`;const c=Math.floor(u/60);return c<24?`${c}h ago`:`${Math.floor(c/24)}d ago`}function S0({onSelect:l}){const{query:i,setQuery:r,issues:u,searching:c,isSearchMode:f,noResults:d}=b0();return v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{className:"relative",children:[v.jsx(eb,{"aria-hidden":"true",className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted"}),v.jsx("input",{type:"text",value:i,onChange:p=>r(p.target.value),placeholder:"Search by ID or title…",className:ut("w-full rounded-lg border border-border bg-card py-2 pl-9 pr-3 text-sm text-foreground","placeholder:text-muted focus:border-accent-purple/50 focus:outline-none focus:ring-2 focus:ring-accent-purple/50")}),c&&v.jsx(Is,{"aria-hidden":"true",className:"absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 animate-spin text-muted"})]}),f?v.jsxs("h2",{className:"text-xs font-medium uppercase tracking-wide text-muted",children:["Results matching “",i,"”"]}):v.jsx("h2",{className:"text-xs font-medium uppercase tracking-wide text-muted",children:"Recent"}),d&&v.jsx("p",{className:"py-8 text-center text-sm text-muted",children:"No results"}),u.length>0&&v.jsx("div",{className:"divide-y divide-border rounded-lg border border-border bg-card",children:u.map(p=>v.jsxs("button",{onClick:()=>l(p.issueId),className:ut("flex w-full items-center gap-3 px-4 py-3 text-left","transition-colors hover:bg-muted/10","focus:outline-none focus:bg-muted/10"),children:[v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:p.issueIdentifier}),p.title&&v.jsx("p",{className:"truncate text-xs text-muted",children:p.title})]}),v.jsx("span",{className:"shrink-0 text-xs text-muted",children:v0(p.updatedAt)}),p.url&&v.jsx(Ca,{"aria-hidden":"true",className:"h-3.5 w-3.5 shrink-0 text-muted"})]},p.issueId))}),!f&&u.length===0&&v.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[v.jsx("p",{className:"text-sm text-muted",children:"No issues found"}),v.jsx("p",{className:"mt-1 text-xs text-muted/70",children:"Issues will appear here once they are processed"})]})]})}function E0({label:l,value:i,icon:r,color:u}){return v.jsxs("div",{className:"rounded-lg border border-border bg-card p-4",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("div",{className:ut("text-sm",u),"aria-hidden":"true",children:r}),v.jsx("span",{className:"text-xs text-muted",children:l})]}),v.jsx("div",{className:"mt-2 text-2xl font-semibold tracking-tight",children:i})]})}function T0({stats:l}){const i=l.toolBreakdown.reduce((c,f)=>c+f.count,0),r=l.toolBreakdown.reduce((c,f)=>c+f.errorCount,0),u=[{label:"Duration",value:hc(l.durationMs),icon:v.jsx(Rx,{className:"h-4 w-4"}),color:"text-accent-blue"},{label:"Turns",value:l.totalTurns.toString(),icon:v.jsx(Wx,{className:"h-4 w-4"}),color:"text-accent-purple"},{label:"Input Tokens",value:Aa(l.tokenUsage.inputTokens),icon:v.jsx(dx,{className:"h-4 w-4"}),color:"text-accent-green"},{label:"Output Tokens",value:Aa(l.tokenUsage.outputTokens),icon:v.jsx(xx,{className:"h-4 w-4"}),color:"text-accent-orange"},{label:"Tool Calls",value:i.toString(),icon:v.jsx(lb,{className:"h-4 w-4"}),color:"text-foreground"},{label:"Errors",value:r.toString(),icon:v.jsx(Op,{className:"h-4 w-4"}),color:r>0?"text-accent-red":"text-muted"}];return v.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-6",children:u.map(c=>v.jsx(E0,{...c},c.label))})}function k0(l,i){const r={};return(l[l.length-1]===""?[...l,""]:l).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const w0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,z0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,N0={};function Xm(l,i){return(N0.jsx?z0:w0).test(l)}const A0=/[ \t\n\f\r]/g;function C0(l){return typeof l=="object"?l.type==="text"?Qm(l.value):!1:Qm(l)}function Qm(l){return l.replace(A0,"")===""}class Ri{constructor(i,r,u){this.normal=r,this.property=i,u&&(this.space=u)}}Ri.prototype.normal={};Ri.prototype.property={};Ri.prototype.space=void 0;function $p(l,i){const r={},u={};for(const c of l)Object.assign(r,c.property),Object.assign(u,c.normal);return new Ri(r,u,i)}function Ws(l){return l.toLowerCase()}class Ut{constructor(i,r){this.attribute=r,this.property=i}}Ut.prototype.attribute="";Ut.prototype.booleanish=!1;Ut.prototype.boolean=!1;Ut.prototype.commaOrSpaceSeparated=!1;Ut.prototype.commaSeparated=!1;Ut.prototype.defined=!1;Ut.prototype.mustUseProperty=!1;Ut.prototype.number=!1;Ut.prototype.overloadedBoolean=!1;Ut.prototype.property="";Ut.prototype.spaceSeparated=!1;Ut.prototype.space=void 0;let _0=0;const be=Ul(),rt=Ul(),Ps=Ul(),K=Ul(),Ke=Ul(),Dl=Ul(),Qt=Ul();function Ul(){return 2**++_0}const ec=Object.freeze(Object.defineProperty({__proto__:null,boolean:be,booleanish:rt,commaOrSpaceSeparated:Qt,commaSeparated:Dl,number:K,overloadedBoolean:Ps,spaceSeparated:Ke},Symbol.toStringTag,{value:"Module"})),Bs=Object.keys(ec);class mc extends Ut{constructor(i,r,u,c){let f=-1;if(super(i,r),Zm(this,"space",c),typeof u=="number")for(;++f<Bs.length;){const d=Bs[f];Zm(this,Bs[f],(u&ec[d])===ec[d])}}}mc.prototype.defined=!0;function Zm(l,i,r){r&&(l[i]=r)}function _a(l){const i={},r={};for(const[u,c]of Object.entries(l.properties)){const f=new mc(u,l.transform(l.attributes||{},u),c,l.space);l.mustUseProperty&&l.mustUseProperty.includes(u)&&(f.mustUseProperty=!0),i[u]=f,r[Ws(u)]=u,r[Ws(f.attribute)]=u}return new Ri(i,r,l.space)}const Wp=_a({properties:{ariaActiveDescendant:null,ariaAtomic:rt,ariaAutoComplete:null,ariaBusy:rt,ariaChecked:rt,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:Ke,ariaCurrent:null,ariaDescribedBy:Ke,ariaDetails:null,ariaDisabled:rt,ariaDropEffect:Ke,ariaErrorMessage:null,ariaExpanded:rt,ariaFlowTo:Ke,ariaGrabbed:rt,ariaHasPopup:null,ariaHidden:rt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ke,ariaLevel:K,ariaLive:null,ariaModal:rt,ariaMultiLine:rt,ariaMultiSelectable:rt,ariaOrientation:null,ariaOwns:Ke,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:rt,ariaReadOnly:rt,ariaRelevant:null,ariaRequired:rt,ariaRoleDescription:Ke,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:rt,ariaSetSize:K,ariaSort:null,ariaValueMax:K,ariaValueMin:K,ariaValueNow:K,ariaValueText:null,role:null},transform(l,i){return i==="role"?i:"aria-"+i.slice(4).toLowerCase()}});function Pp(l,i){return i in l?l[i]:i}function eg(l,i){return Pp(l,i.toLowerCase())}const M0=_a({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Dl,acceptCharset:Ke,accessKey:Ke,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alpha:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:Ke,autoFocus:be,autoPlay:be,blocking:Ke,capture:null,charSet:null,checked:be,cite:null,className:Ke,closedBy:null,colorSpace:null,cols:K,colSpan:K,command:null,commandFor:null,content:null,contentEditable:rt,controls:be,controlsList:Ke,coords:K|Dl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:be,defer:be,dir:null,dirName:null,disabled:be,download:Ps,draggable:rt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:Ke,height:K,hidden:Ps,high:K,href:null,hrefLang:null,htmlFor:Ke,httpEquiv:Ke,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:Ke,itemRef:Ke,itemScope:be,itemType:Ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:be,muted:be,name:null,nonce:null,noModule:be,noValidate:be,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:be,optimum:K,pattern:null,ping:Ke,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:Ke,required:be,reversed:be,rows:K,rowSpan:K,sandbox:Ke,scope:null,scoped:be,seamless:be,selected:be,shadowRootClonable:be,shadowRootCustomElementRegistry:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shadowRootSerializable:be,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:rt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:K,step:null,style:null,tabIndex:K,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:rt,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ke,axis:null,background:null,bgColor:null,border:K,borderColor:null,bottomMargin:K,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:be,declare:be,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:rt,standby:null,summary:null,text:null,topMargin:K,valueType:null,version:null,vAlign:null,vLink:null,vSpace:K,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:be,disablePictureInPicture:be,disableRemotePlayback:be,exportParts:Dl,part:Ke,prefix:null,property:null,results:K,security:null,unselectable:null},space:"html",transform:eg}),j0=_a({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Qt,accentHeight:K,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:K,amplitude:K,arabicForm:null,ascent:K,attributeName:null,attributeType:null,azimuth:K,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:K,by:null,calcMode:null,capHeight:K,className:Ke,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:K,diffuseConstant:K,direction:null,display:null,dur:null,divisor:K,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:K,enableBackground:null,end:null,event:null,exponent:K,externalResourcesRequired:null,fill:null,fillOpacity:K,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:Dl,g2:Dl,glyphName:Dl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:K,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:K,horizOriginX:K,horizOriginY:K,id:null,ideographic:K,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:K,k:K,k1:K,k2:K,k3:K,k4:K,kernelMatrix:Qt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:K,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:K,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:K,overlineThickness:K,paintOrder:null,panose1:null,path:null,pathLength:K,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:K,pointsAtY:K,pointsAtZ:K,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qt,rev:Qt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qt,requiredFeatures:Qt,requiredFonts:Qt,requiredFormats:Qt,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:K,specularExponent:K,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:K,strikethroughThickness:K,string:null,stroke:null,strokeDashArray:Qt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:K,strokeOpacity:K,strokeWidth:null,style:null,surfaceScale:K,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qt,tabIndex:K,tableValues:null,target:null,targetX:K,targetY:K,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:K,underlineThickness:K,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:K,values:null,vAlphabetic:K,vMathematical:K,vectorEffect:null,vHanging:K,vIdeographic:K,version:null,vertAdvY:K,vertOriginX:K,vertOriginY:K,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:K,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Pp}),tg=_a({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(l,i){return"xlink:"+i.slice(5).toLowerCase()}}),ng=_a({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:eg}),lg=_a({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(l,i){return"xml:"+i.slice(3).toLowerCase()}}),O0={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"},D0=/[A-Z]/g,Km=/-[a-z]/g,R0=/^data[-\w.:]+$/i;function U0(l,i){const r=Ws(i);let u=i,c=Ut;if(r in l.normal)return l.property[l.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&R0.test(i)){if(i.charAt(4)==="-"){const f=i.slice(5).replace(Km,L0);u="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=i.slice(4);if(!Km.test(f)){let d=f.replace(D0,B0);d.charAt(0)!=="-"&&(d="-"+d),i="data"+d}}c=mc}return new c(u,i)}function B0(l){return"-"+l.toLowerCase()}function L0(l){return l.charAt(1).toUpperCase()}const H0=$p([Wp,M0,tg,ng,lg],"html"),pc=$p([Wp,j0,tg,ng,lg],"svg");function q0(l){return l.join(" ").trim()}var wa={},Ls,Jm;function Y0(){if(Jm)return Ls;Jm=1;var l=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,r=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,c=/^:\s*/,f=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,d=/^[;\s]*/,p=/^\s+|\s+$/g,y=`
215
- `,m="/",g="*",b="",k="comment",S="declaration";function U(J,q){if(typeof J!="string")throw new TypeError("First argument must be a string");if(!J)return[];q=q||{};var ne=1,F=1;function de(ue){var Q=ue.match(i);Q&&(ne+=Q.length);var C=ue.lastIndexOf(y);F=~C?ue.length-C:F+ue.length}function pe(){var ue={line:ne,column:F};return function(Q){return Q.position=new B(ue),ce(),Q}}function B(ue){this.start=ue,this.end={line:ne,column:F},this.source=q.source}B.prototype.content=J;function I(ue){var Q=new Error(q.source+":"+ne+":"+F+": "+ue);if(Q.reason=ue,Q.filename=q.source,Q.line=ne,Q.column=F,Q.source=J,!q.silent)throw Q}function X(ue){var Q=ue.exec(J);if(Q){var C=Q[0];return de(C),J=J.slice(C.length),Q}}function ce(){X(r)}function Te(ue){var Q;for(ue=ue||[];Q=te();)Q!==!1&&ue.push(Q);return ue}function te(){var ue=pe();if(!(m!=J.charAt(0)||g!=J.charAt(1))){for(var Q=2;b!=J.charAt(Q)&&(g!=J.charAt(Q)||m!=J.charAt(Q+1));)++Q;if(Q+=2,b===J.charAt(Q-1))return I("End of comment missing");var C=J.slice(2,Q-2);return F+=2,de(C),J=J.slice(Q),F+=2,ue({type:k,comment:C})}}function P(){var ue=pe(),Q=X(u);if(Q){if(te(),!X(c))return I("property missing ':'");var C=X(f),V=ue({type:S,property:G(Q[0].replace(l,b)),value:C?G(C[0].replace(l,b)):b});return X(d),V}}function Se(){var ue=[];Te(ue);for(var Q;Q=P();)Q!==!1&&(ue.push(Q),Te(ue));return ue}return ce(),Se()}function G(J){return J?J.replace(p,b):b}return Ls=U,Ls}var Fm;function G0(){if(Fm)return wa;Fm=1;var l=wa&&wa.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(wa,"__esModule",{value:!0}),wa.default=r;const i=l(Y0());function r(u,c){let f=null;if(!u||typeof u!="string")return f;const d=(0,i.default)(u),p=typeof c=="function";return d.forEach(y=>{if(y.type!=="declaration")return;const{property:m,value:g}=y;p?c(m,g,y):g&&(f=f||{},f[m]=g)}),f}return wa}var Ni={},Im;function V0(){if(Im)return Ni;Im=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.camelCase=void 0;var l=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,r=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,c=/^-(ms)-/,f=function(m){return!m||r.test(m)||l.test(m)},d=function(m,g){return g.toUpperCase()},p=function(m,g){return"".concat(g,"-")},y=function(m,g){return g===void 0&&(g={}),f(m)?m:(m=m.toLowerCase(),g.reactCompat?m=m.replace(c,p):m=m.replace(u,p),m.replace(i,d))};return Ni.camelCase=y,Ni}var Ai,$m;function X0(){if($m)return Ai;$m=1;var l=Ai&&Ai.__importDefault||function(c){return c&&c.__esModule?c:{default:c}},i=l(G0()),r=V0();function u(c,f){var d={};return!c||typeof c!="string"||(0,i.default)(c,function(p,y){p&&y&&(d[(0,r.camelCase)(p,f)]=y)}),d}return u.default=u,Ai=u,Ai}var Q0=X0();const Z0=Cp(Q0),ag=ig("end"),gc=ig("start");function ig(l){return i;function i(r){const u=r&&r.position&&r.position[l]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function K0(l){const i=gc(l),r=ag(l);if(i&&r)return{start:i,end:r}}function Mi(l){return!l||typeof l!="object"?"":"position"in l||"type"in l?Wm(l.position):"start"in l||"end"in l?Wm(l):"line"in l||"column"in l?tc(l):""}function tc(l){return Pm(l&&l.line)+":"+Pm(l&&l.column)}function Wm(l){return tc(l&&l.start)+"-"+tc(l&&l.end)}function Pm(l){return l&&typeof l=="number"?l:1}class bt extends Error{constructor(i,r,u){super(),typeof r=="string"&&(u=r,r=void 0);let c="",f={},d=!1;if(r&&("line"in r&&"column"in r?f={place:r}:"start"in r&&"end"in r?f={place:r}:"type"in r?f={ancestors:[r],place:r.position}:f={...r}),typeof i=="string"?c=i:!f.cause&&i&&(d=!0,c=i.message,f.cause=i),!f.ruleId&&!f.source&&typeof u=="string"){const y=u.indexOf(":");y===-1?f.ruleId=u:(f.source=u.slice(0,y),f.ruleId=u.slice(y+1))}if(!f.place&&f.ancestors&&f.ancestors){const y=f.ancestors[f.ancestors.length-1];y&&(f.place=y.position)}const p=f.place&&"start"in f.place?f.place.start:f.place;this.ancestors=f.ancestors||void 0,this.cause=f.cause||void 0,this.column=p?p.column:void 0,this.fatal=void 0,this.file="",this.message=c,this.line=p?p.line:void 0,this.name=Mi(f.place)||"1:1",this.place=f.place||void 0,this.reason=this.message,this.ruleId=f.ruleId||void 0,this.source=f.source||void 0,this.stack=d&&f.cause&&typeof f.cause.stack=="string"?f.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}bt.prototype.file="";bt.prototype.name="";bt.prototype.reason="";bt.prototype.message="";bt.prototype.stack="";bt.prototype.column=void 0;bt.prototype.line=void 0;bt.prototype.ancestors=void 0;bt.prototype.cause=void 0;bt.prototype.fatal=void 0;bt.prototype.place=void 0;bt.prototype.ruleId=void 0;bt.prototype.source=void 0;const yc={}.hasOwnProperty,J0=new Map,F0=/[A-Z]/g,I0=new Set(["table","tbody","thead","tfoot","tr"]),$0=new Set(["td","th"]),rg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function W0(l,i){if(!i||i.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=i.filePath||void 0;let u;if(i.development){if(typeof i.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=rv(r,i.jsxDEV)}else{if(typeof i.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof i.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=iv(r,i.jsx,i.jsxs)}const c={Fragment:i.Fragment,ancestors:[],components:i.components||{},create:u,elementAttributeNameCase:i.elementAttributeNameCase||"react",evaluater:i.createEvaluater?i.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:i.ignoreInvalidStyle||!1,passKeys:i.passKeys!==!1,passNode:i.passNode||!1,schema:i.space==="svg"?pc:H0,stylePropertyNameCase:i.stylePropertyNameCase||"dom",tableCellAlignToStyle:i.tableCellAlignToStyle!==!1},f=ug(c,l,void 0);return f&&typeof f!="string"?f:c.create(l,c.Fragment,{children:f||void 0},void 0)}function ug(l,i,r){if(i.type==="element")return P0(l,i,r);if(i.type==="mdxFlowExpression"||i.type==="mdxTextExpression")return ev(l,i);if(i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement")return nv(l,i,r);if(i.type==="mdxjsEsm")return tv(l,i);if(i.type==="root")return lv(l,i,r);if(i.type==="text")return av(l,i)}function P0(l,i,r){const u=l.schema;let c=u;i.tagName.toLowerCase()==="svg"&&u.space==="html"&&(c=pc,l.schema=c),l.ancestors.push(i);const f=sg(l,i.tagName,!1),d=uv(l,i);let p=bc(l,i);return I0.has(i.tagName)&&(p=p.filter(function(y){return typeof y=="string"?!C0(y):!0})),og(l,d,f,i),xc(d,p),l.ancestors.pop(),l.schema=u,l.create(i,f,d,r)}function ev(l,i){if(i.data&&i.data.estree&&l.evaluater){const u=i.data.estree.body[0];return u.type,l.evaluater.evaluateExpression(u.expression)}Di(l,i.position)}function tv(l,i){if(i.data&&i.data.estree&&l.evaluater)return l.evaluater.evaluateProgram(i.data.estree);Di(l,i.position)}function nv(l,i,r){const u=l.schema;let c=u;i.name==="svg"&&u.space==="html"&&(c=pc,l.schema=c),l.ancestors.push(i);const f=i.name===null?l.Fragment:sg(l,i.name,!0),d=ov(l,i),p=bc(l,i);return og(l,d,f,i),xc(d,p),l.ancestors.pop(),l.schema=u,l.create(i,f,d,r)}function lv(l,i,r){const u={};return xc(u,bc(l,i)),l.create(i,l.Fragment,u,r)}function av(l,i){return i.value}function og(l,i,r,u){typeof r!="string"&&r!==l.Fragment&&l.passNode&&(i.node=u)}function xc(l,i){if(i.length>0){const r=i.length>1?i:i[0];r&&(l.children=r)}}function iv(l,i,r){return u;function u(c,f,d,p){const m=Array.isArray(d.children)?r:i;return p?m(f,d,p):m(f,d)}}function rv(l,i){return r;function r(u,c,f,d){const p=Array.isArray(f.children),y=gc(u);return i(c,f,d,p,{columnNumber:y?y.column-1:void 0,fileName:l,lineNumber:y?y.line:void 0},void 0)}}function uv(l,i){const r={};let u,c;for(c in i.properties)if(c!=="children"&&yc.call(i.properties,c)){const f=sv(l,c,i.properties[c]);if(f){const[d,p]=f;l.tableCellAlignToStyle&&d==="align"&&typeof p=="string"&&$0.has(i.tagName)?u=p:r[d]=p}}if(u){const f=r.style||(r.style={});f[l.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return r}function ov(l,i){const r={};for(const u of i.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&l.evaluater){const f=u.data.estree.body[0];f.type;const d=f.expression;d.type;const p=d.properties[0];p.type,Object.assign(r,l.evaluater.evaluateExpression(p.argument))}else Di(l,i.position);else{const c=u.name;let f;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&l.evaluater){const p=u.value.data.estree.body[0];p.type,f=l.evaluater.evaluateExpression(p.expression)}else Di(l,i.position);else f=u.value===null?!0:u.value;r[c]=f}return r}function bc(l,i){const r=[];let u=-1;const c=l.passKeys?new Map:J0;for(;++u<i.children.length;){const f=i.children[u];let d;if(l.passKeys){const y=f.type==="element"?f.tagName:f.type==="mdxJsxFlowElement"||f.type==="mdxJsxTextElement"?f.name:void 0;if(y){const m=c.get(y)||0;d=y+"-"+m,c.set(y,m+1)}}const p=ug(l,f,d);p!==void 0&&r.push(p)}return r}function sv(l,i,r){const u=U0(l.schema,i);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=u.commaSeparated?k0(r):q0(r)),u.property==="style"){let c=typeof r=="object"?r:cv(l,String(r));return l.stylePropertyNameCase==="css"&&(c=fv(c)),["style",c]}return[l.elementAttributeNameCase==="react"&&u.space?O0[u.property]||u.property:u.attribute,r]}}function cv(l,i){try{return Z0(i,{reactCompat:!0})}catch(r){if(l.ignoreInvalidStyle)return{};const u=r,c=new bt("Cannot parse `style` attribute",{ancestors:l.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw c.file=l.filePath||void 0,c.url=rg+"#cannot-parse-style-attribute",c}}function sg(l,i,r){let u;if(!r)u={type:"Literal",value:i};else if(i.includes(".")){const c=i.split(".");let f=-1,d;for(;++f<c.length;){const p=Xm(c[f])?{type:"Identifier",name:c[f]}:{type:"Literal",value:c[f]};d=d?{type:"MemberExpression",object:d,property:p,computed:!!(f&&p.type==="Literal"),optional:!1}:p}u=d}else u=Xm(i)&&!/^[a-z]/.test(i)?{type:"Identifier",name:i}:{type:"Literal",value:i};if(u.type==="Literal"){const c=u.value;return yc.call(l.components,c)?l.components[c]:c}if(l.evaluater)return l.evaluater.evaluateExpression(u);Di(l)}function Di(l,i){const r=new bt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:l.ancestors,place:i,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=l.filePath||void 0,r.url=rg+"#cannot-handle-mdx-estrees-without-createevaluater",r}function fv(l){const i={};let r;for(r in l)yc.call(l,r)&&(i[dv(r)]=l[r]);return i}function dv(l){let i=l.replace(F0,hv);return i.slice(0,3)==="ms-"&&(i="-"+i),i}function hv(l){return"-"+l.toLowerCase()}const Hs={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"]},mv={};function pv(l,i){const r=mv,u=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,c=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return cg(l,u,c)}function cg(l,i,r){if(gv(l)){if("value"in l)return l.type==="html"&&!r?"":l.value;if(i&&"alt"in l&&l.alt)return l.alt;if("children"in l)return ep(l.children,i,r)}return Array.isArray(l)?ep(l,i,r):""}function ep(l,i,r){const u=[];let c=-1;for(;++c<l.length;)u[c]=cg(l[c],i,r);return u.join("")}function gv(l){return!!(l&&typeof l=="object")}const tp=document.createElement("i");function vc(l){const i="&"+l+";";tp.innerHTML=i;const r=tp.textContent;return r.charCodeAt(r.length-1)===59&&l!=="semi"||r===i?!1:r}function yn(l,i,r,u){const c=l.length;let f=0,d;if(i<0?i=-i>c?0:c+i:i=i>c?c:i,r=r>0?r:0,u.length<1e4)d=Array.from(u),d.unshift(i,r),l.splice(...d);else for(r&&l.splice(i,r);f<u.length;)d=u.slice(f,f+1e4),d.unshift(i,0),l.splice(...d),f+=1e4,i+=1e4}function ln(l,i){return l.length>0?(yn(l,l.length,0,i),l):i}const np={}.hasOwnProperty;function yv(l){const i={};let r=-1;for(;++r<l.length;)xv(i,l[r]);return i}function xv(l,i){let r;for(r in i){const c=(np.call(l,r)?l[r]:void 0)||(l[r]={}),f=i[r];let d;if(f)for(d in f){np.call(c,d)||(c[d]=[]);const p=f[d];bv(c[d],Array.isArray(p)?p:p?[p]:[])}}}function bv(l,i){let r=-1;const u=[];for(;++r<i.length;)(i[r].add==="after"?l:u).push(i[r]);yn(l,0,0,u)}function fg(l,i){const r=Number.parseInt(l,i);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Na(l){return l.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const gn=ml(/[A-Za-z]/),Zt=ml(/[\dA-Za-z]/),vv=ml(/[#-'*+\--9=?A-Z^-~]/);function nc(l){return l!==null&&(l<32||l===127)}const lc=ml(/\d/),Sv=ml(/[\dA-Fa-f]/),Ev=ml(/[!-/:-@[-`{-~]/);function xe(l){return l!==null&&l<-2}function Rt(l){return l!==null&&(l<0||l===32)}function Ue(l){return l===-2||l===-1||l===32}const Tv=ml(new RegExp("\\p{P}|\\p{S}","u")),kv=ml(/\s/);function ml(l){return i;function i(r){return r!==null&&r>-1&&l.test(String.fromCharCode(r))}}function Ma(l){const i=[];let r=-1,u=0,c=0;for(;++r<l.length;){const f=l.charCodeAt(r);let d="";if(f===37&&Zt(l.charCodeAt(r+1))&&Zt(l.charCodeAt(r+2)))c=2;else if(f<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(f))||(d=String.fromCharCode(f));else if(f>55295&&f<57344){const p=l.charCodeAt(r+1);f<56320&&p>56319&&p<57344?(d=String.fromCharCode(f,p),c=1):d="�"}else d=String.fromCharCode(f);d&&(i.push(l.slice(u,r),encodeURIComponent(d)),u=r+c+1,d=""),c&&(r+=c,c=0)}return i.join("")+l.slice(u)}function Je(l,i,r,u){const c=u?u-1:Number.POSITIVE_INFINITY;let f=0;return d;function d(y){return Ue(y)?(l.enter(r),p(y)):i(y)}function p(y){return Ue(y)&&f++<c?(l.consume(y),p):(l.exit(r),i(y))}}const wv={tokenize:zv};function zv(l){const i=l.attempt(this.parser.constructs.contentInitial,u,c);let r;return i;function u(p){if(p===null){l.consume(p);return}return l.enter("lineEnding"),l.consume(p),l.exit("lineEnding"),Je(l,i,"linePrefix")}function c(p){return l.enter("paragraph"),f(p)}function f(p){const y=l.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=y),r=y,d(p)}function d(p){if(p===null){l.exit("chunkText"),l.exit("paragraph"),l.consume(p);return}return xe(p)?(l.consume(p),l.exit("chunkText"),f):(l.consume(p),d)}}const Nv={tokenize:Av},lp={tokenize:Cv};function Av(l){const i=this,r=[];let u=0,c,f,d;return p;function p(F){if(u<r.length){const de=r[u];return i.containerState=de[1],l.attempt(de[0].continuation,y,m)(F)}return m(F)}function y(F){if(u++,i.containerState._closeFlow){i.containerState._closeFlow=void 0,c&&ne();const de=i.events.length;let pe=de,B;for(;pe--;)if(i.events[pe][0]==="exit"&&i.events[pe][1].type==="chunkFlow"){B=i.events[pe][1].end;break}q(u);let I=de;for(;I<i.events.length;)i.events[I][1].end={...B},I++;return yn(i.events,pe+1,0,i.events.slice(de)),i.events.length=I,m(F)}return p(F)}function m(F){if(u===r.length){if(!c)return k(F);if(c.currentConstruct&&c.currentConstruct.concrete)return U(F);i.interrupt=!!(c.currentConstruct&&!c._gfmTableDynamicInterruptHack)}return i.containerState={},l.check(lp,g,b)(F)}function g(F){return c&&ne(),q(u),k(F)}function b(F){return i.parser.lazy[i.now().line]=u!==r.length,d=i.now().offset,U(F)}function k(F){return i.containerState={},l.attempt(lp,S,U)(F)}function S(F){return u++,r.push([i.currentConstruct,i.containerState]),k(F)}function U(F){if(F===null){c&&ne(),q(0),l.consume(F);return}return c=c||i.parser.flow(i.now()),l.enter("chunkFlow",{_tokenizer:c,contentType:"flow",previous:f}),G(F)}function G(F){if(F===null){J(l.exit("chunkFlow"),!0),q(0),l.consume(F);return}return xe(F)?(l.consume(F),J(l.exit("chunkFlow")),u=0,i.interrupt=void 0,p):(l.consume(F),G)}function J(F,de){const pe=i.sliceStream(F);if(de&&pe.push(null),F.previous=f,f&&(f.next=F),f=F,c.defineSkip(F.start),c.write(pe),i.parser.lazy[F.start.line]){let B=c.events.length;for(;B--;)if(c.events[B][1].start.offset<d&&(!c.events[B][1].end||c.events[B][1].end.offset>d))return;const I=i.events.length;let X=I,ce,Te;for(;X--;)if(i.events[X][0]==="exit"&&i.events[X][1].type==="chunkFlow"){if(ce){Te=i.events[X][1].end;break}ce=!0}for(q(u),B=I;B<i.events.length;)i.events[B][1].end={...Te},B++;yn(i.events,X+1,0,i.events.slice(I)),i.events.length=B}}function q(F){let de=r.length;for(;de-- >F;){const pe=r[de];i.containerState=pe[1],pe[0].exit.call(i,l)}r.length=F}function ne(){c.write([null]),f=void 0,c=void 0,i.containerState._closeFlow=void 0}}function Cv(l,i,r){return Je(l,l.attempt(this.parser.constructs.document,i,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ap(l){if(l===null||Rt(l)||kv(l))return 1;if(Tv(l))return 2}function Sc(l,i,r){const u=[];let c=-1;for(;++c<l.length;){const f=l[c].resolveAll;f&&!u.includes(f)&&(i=f(i,r),u.push(f))}return i}const ac={name:"attention",resolveAll:_v,tokenize:Mv};function _v(l,i){let r=-1,u,c,f,d,p,y,m,g;for(;++r<l.length;)if(l[r][0]==="enter"&&l[r][1].type==="attentionSequence"&&l[r][1]._close){for(u=r;u--;)if(l[u][0]==="exit"&&l[u][1].type==="attentionSequence"&&l[u][1]._open&&i.sliceSerialize(l[u][1]).charCodeAt(0)===i.sliceSerialize(l[r][1]).charCodeAt(0)){if((l[u][1]._close||l[r][1]._open)&&(l[r][1].end.offset-l[r][1].start.offset)%3&&!((l[u][1].end.offset-l[u][1].start.offset+l[r][1].end.offset-l[r][1].start.offset)%3))continue;y=l[u][1].end.offset-l[u][1].start.offset>1&&l[r][1].end.offset-l[r][1].start.offset>1?2:1;const b={...l[u][1].end},k={...l[r][1].start};ip(b,-y),ip(k,y),d={type:y>1?"strongSequence":"emphasisSequence",start:b,end:{...l[u][1].end}},p={type:y>1?"strongSequence":"emphasisSequence",start:{...l[r][1].start},end:k},f={type:y>1?"strongText":"emphasisText",start:{...l[u][1].end},end:{...l[r][1].start}},c={type:y>1?"strong":"emphasis",start:{...d.start},end:{...p.end}},l[u][1].end={...d.start},l[r][1].start={...p.end},m=[],l[u][1].end.offset-l[u][1].start.offset&&(m=ln(m,[["enter",l[u][1],i],["exit",l[u][1],i]])),m=ln(m,[["enter",c,i],["enter",d,i],["exit",d,i],["enter",f,i]]),m=ln(m,Sc(i.parser.constructs.insideSpan.null,l.slice(u+1,r),i)),m=ln(m,[["exit",f,i],["enter",p,i],["exit",p,i],["exit",c,i]]),l[r][1].end.offset-l[r][1].start.offset?(g=2,m=ln(m,[["enter",l[r][1],i],["exit",l[r][1],i]])):g=0,yn(l,u-1,r-u+3,m),r=u+m.length-g-2;break}}for(r=-1;++r<l.length;)l[r][1].type==="attentionSequence"&&(l[r][1].type="data");return l}function Mv(l,i){const r=this.parser.constructs.attentionMarkers.null,u=this.previous,c=ap(u);let f;return d;function d(y){return f=y,l.enter("attentionSequence"),p(y)}function p(y){if(y===f)return l.consume(y),p;const m=l.exit("attentionSequence"),g=ap(y),b=!g||g===2&&c||r.includes(y),k=!c||c===2&&g||r.includes(u);return m._open=!!(f===42?b:b&&(c||!k)),m._close=!!(f===42?k:k&&(g||!b)),i(y)}}function ip(l,i){l.column+=i,l.offset+=i,l._bufferIndex+=i}const jv={name:"autolink",tokenize:Ov};function Ov(l,i,r){let u=0;return c;function c(S){return l.enter("autolink"),l.enter("autolinkMarker"),l.consume(S),l.exit("autolinkMarker"),l.enter("autolinkProtocol"),f}function f(S){return gn(S)?(l.consume(S),d):S===64?r(S):m(S)}function d(S){return S===43||S===45||S===46||Zt(S)?(u=1,p(S)):m(S)}function p(S){return S===58?(l.consume(S),u=0,y):(S===43||S===45||S===46||Zt(S))&&u++<32?(l.consume(S),p):(u=0,m(S))}function y(S){return S===62?(l.exit("autolinkProtocol"),l.enter("autolinkMarker"),l.consume(S),l.exit("autolinkMarker"),l.exit("autolink"),i):S===null||S===32||S===60||nc(S)?r(S):(l.consume(S),y)}function m(S){return S===64?(l.consume(S),g):vv(S)?(l.consume(S),m):r(S)}function g(S){return Zt(S)?b(S):r(S)}function b(S){return S===46?(l.consume(S),u=0,g):S===62?(l.exit("autolinkProtocol").type="autolinkEmail",l.enter("autolinkMarker"),l.consume(S),l.exit("autolinkMarker"),l.exit("autolink"),i):k(S)}function k(S){if((S===45||Zt(S))&&u++<63){const U=S===45?k:b;return l.consume(S),U}return r(S)}}const fu={partial:!0,tokenize:Dv};function Dv(l,i,r){return u;function u(f){return Ue(f)?Je(l,c,"linePrefix")(f):c(f)}function c(f){return f===null||xe(f)?i(f):r(f)}}const dg={continuation:{tokenize:Uv},exit:Bv,name:"blockQuote",tokenize:Rv};function Rv(l,i,r){const u=this;return c;function c(d){if(d===62){const p=u.containerState;return p.open||(l.enter("blockQuote",{_container:!0}),p.open=!0),l.enter("blockQuotePrefix"),l.enter("blockQuoteMarker"),l.consume(d),l.exit("blockQuoteMarker"),f}return r(d)}function f(d){return Ue(d)?(l.enter("blockQuotePrefixWhitespace"),l.consume(d),l.exit("blockQuotePrefixWhitespace"),l.exit("blockQuotePrefix"),i):(l.exit("blockQuotePrefix"),i(d))}}function Uv(l,i,r){const u=this;return c;function c(d){return Ue(d)?Je(l,f,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):f(d)}function f(d){return l.attempt(dg,i,r)(d)}}function Bv(l){l.exit("blockQuote")}const hg={name:"characterEscape",tokenize:Lv};function Lv(l,i,r){return u;function u(f){return l.enter("characterEscape"),l.enter("escapeMarker"),l.consume(f),l.exit("escapeMarker"),c}function c(f){return Ev(f)?(l.enter("characterEscapeValue"),l.consume(f),l.exit("characterEscapeValue"),l.exit("characterEscape"),i):r(f)}}const mg={name:"characterReference",tokenize:Hv};function Hv(l,i,r){const u=this;let c=0,f,d;return p;function p(b){return l.enter("characterReference"),l.enter("characterReferenceMarker"),l.consume(b),l.exit("characterReferenceMarker"),y}function y(b){return b===35?(l.enter("characterReferenceMarkerNumeric"),l.consume(b),l.exit("characterReferenceMarkerNumeric"),m):(l.enter("characterReferenceValue"),f=31,d=Zt,g(b))}function m(b){return b===88||b===120?(l.enter("characterReferenceMarkerHexadecimal"),l.consume(b),l.exit("characterReferenceMarkerHexadecimal"),l.enter("characterReferenceValue"),f=6,d=Sv,g):(l.enter("characterReferenceValue"),f=7,d=lc,g(b))}function g(b){if(b===59&&c){const k=l.exit("characterReferenceValue");return d===Zt&&!vc(u.sliceSerialize(k))?r(b):(l.enter("characterReferenceMarker"),l.consume(b),l.exit("characterReferenceMarker"),l.exit("characterReference"),i)}return d(b)&&c++<f?(l.consume(b),g):r(b)}}const rp={partial:!0,tokenize:Yv},up={concrete:!0,name:"codeFenced",tokenize:qv};function qv(l,i,r){const u=this,c={partial:!0,tokenize:pe};let f=0,d=0,p;return y;function y(B){return m(B)}function m(B){const I=u.events[u.events.length-1];return f=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,p=B,l.enter("codeFenced"),l.enter("codeFencedFence"),l.enter("codeFencedFenceSequence"),g(B)}function g(B){return B===p?(d++,l.consume(B),g):d<3?r(B):(l.exit("codeFencedFenceSequence"),Ue(B)?Je(l,b,"whitespace")(B):b(B))}function b(B){return B===null||xe(B)?(l.exit("codeFencedFence"),u.interrupt?i(B):l.check(rp,G,de)(B)):(l.enter("codeFencedFenceInfo"),l.enter("chunkString",{contentType:"string"}),k(B))}function k(B){return B===null||xe(B)?(l.exit("chunkString"),l.exit("codeFencedFenceInfo"),b(B)):Ue(B)?(l.exit("chunkString"),l.exit("codeFencedFenceInfo"),Je(l,S,"whitespace")(B)):B===96&&B===p?r(B):(l.consume(B),k)}function S(B){return B===null||xe(B)?b(B):(l.enter("codeFencedFenceMeta"),l.enter("chunkString",{contentType:"string"}),U(B))}function U(B){return B===null||xe(B)?(l.exit("chunkString"),l.exit("codeFencedFenceMeta"),b(B)):B===96&&B===p?r(B):(l.consume(B),U)}function G(B){return l.attempt(c,de,J)(B)}function J(B){return l.enter("lineEnding"),l.consume(B),l.exit("lineEnding"),q}function q(B){return f>0&&Ue(B)?Je(l,ne,"linePrefix",f+1)(B):ne(B)}function ne(B){return B===null||xe(B)?l.check(rp,G,de)(B):(l.enter("codeFlowValue"),F(B))}function F(B){return B===null||xe(B)?(l.exit("codeFlowValue"),ne(B)):(l.consume(B),F)}function de(B){return l.exit("codeFenced"),i(B)}function pe(B,I,X){let ce=0;return Te;function Te(Q){return B.enter("lineEnding"),B.consume(Q),B.exit("lineEnding"),te}function te(Q){return B.enter("codeFencedFence"),Ue(Q)?Je(B,P,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):P(Q)}function P(Q){return Q===p?(B.enter("codeFencedFenceSequence"),Se(Q)):X(Q)}function Se(Q){return Q===p?(ce++,B.consume(Q),Se):ce>=d?(B.exit("codeFencedFenceSequence"),Ue(Q)?Je(B,ue,"whitespace")(Q):ue(Q)):X(Q)}function ue(Q){return Q===null||xe(Q)?(B.exit("codeFencedFence"),I(Q)):X(Q)}}}function Yv(l,i,r){const u=this;return c;function c(d){return d===null?r(d):(l.enter("lineEnding"),l.consume(d),l.exit("lineEnding"),f)}function f(d){return u.parser.lazy[u.now().line]?r(d):i(d)}}const qs={name:"codeIndented",tokenize:Vv},Gv={partial:!0,tokenize:Xv};function Vv(l,i,r){const u=this;return c;function c(m){return l.enter("codeIndented"),Je(l,f,"linePrefix",5)(m)}function f(m){const g=u.events[u.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?d(m):r(m)}function d(m){return m===null?y(m):xe(m)?l.attempt(Gv,d,y)(m):(l.enter("codeFlowValue"),p(m))}function p(m){return m===null||xe(m)?(l.exit("codeFlowValue"),d(m)):(l.consume(m),p)}function y(m){return l.exit("codeIndented"),i(m)}}function Xv(l,i,r){const u=this;return c;function c(d){return u.parser.lazy[u.now().line]?r(d):xe(d)?(l.enter("lineEnding"),l.consume(d),l.exit("lineEnding"),c):Je(l,f,"linePrefix",5)(d)}function f(d){const p=u.events[u.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?i(d):xe(d)?c(d):r(d)}}const Qv={name:"codeText",previous:Kv,resolve:Zv,tokenize:Jv};function Zv(l){let i=l.length-4,r=3,u,c;if((l[r][1].type==="lineEnding"||l[r][1].type==="space")&&(l[i][1].type==="lineEnding"||l[i][1].type==="space")){for(u=r;++u<i;)if(l[u][1].type==="codeTextData"){l[r][1].type="codeTextPadding",l[i][1].type="codeTextPadding",r+=2,i-=2;break}}for(u=r-1,i++;++u<=i;)c===void 0?u!==i&&l[u][1].type!=="lineEnding"&&(c=u):(u===i||l[u][1].type==="lineEnding")&&(l[c][1].type="codeTextData",u!==c+2&&(l[c][1].end=l[u-1][1].end,l.splice(c+2,u-c-2),i-=u-c-2,u=c+2),c=void 0);return l}function Kv(l){return l!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Jv(l,i,r){let u=0,c,f;return d;function d(b){return l.enter("codeText"),l.enter("codeTextSequence"),p(b)}function p(b){return b===96?(l.consume(b),u++,p):(l.exit("codeTextSequence"),y(b))}function y(b){return b===null?r(b):b===32?(l.enter("space"),l.consume(b),l.exit("space"),y):b===96?(f=l.enter("codeTextSequence"),c=0,g(b)):xe(b)?(l.enter("lineEnding"),l.consume(b),l.exit("lineEnding"),y):(l.enter("codeTextData"),m(b))}function m(b){return b===null||b===32||b===96||xe(b)?(l.exit("codeTextData"),y(b)):(l.consume(b),m)}function g(b){return b===96?(l.consume(b),c++,g):c===u?(l.exit("codeTextSequence"),l.exit("codeText"),i(b)):(f.type="codeTextData",m(b))}}class Fv{constructor(i){this.left=i?[...i]:[],this.right=[]}get(i){if(i<0||i>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+i+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return i<this.left.length?this.left[i]:this.right[this.right.length-i+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(i,r){const u=r??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(i,u):i>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-i+this.left.length).reverse():this.left.slice(i).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(i,r,u){const c=r||0;this.setCursor(Math.trunc(i));const f=this.right.splice(this.right.length-c,Number.POSITIVE_INFINITY);return u&&Ci(this.left,u),f.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(i){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(i)}pushMany(i){this.setCursor(Number.POSITIVE_INFINITY),Ci(this.left,i)}unshift(i){this.setCursor(0),this.right.push(i)}unshiftMany(i){this.setCursor(0),Ci(this.right,i.reverse())}setCursor(i){if(!(i===this.left.length||i>this.left.length&&this.right.length===0||i<0&&this.left.length===0))if(i<this.left.length){const r=this.left.splice(i,Number.POSITIVE_INFINITY);Ci(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-i,Number.POSITIVE_INFINITY);Ci(this.left,r.reverse())}}}function Ci(l,i){let r=0;if(i.length<1e4)l.push(...i);else for(;r<i.length;)l.push(...i.slice(r,r+1e4)),r+=1e4}function pg(l){const i={};let r=-1,u,c,f,d,p,y,m;const g=new Fv(l);for(;++r<g.length;){for(;r in i;)r=i[r];if(u=g.get(r),r&&u[1].type==="chunkFlow"&&g.get(r-1)[1].type==="listItemPrefix"&&(y=u[1]._tokenizer.events,f=0,f<y.length&&y[f][1].type==="lineEndingBlank"&&(f+=2),f<y.length&&y[f][1].type==="content"))for(;++f<y.length&&y[f][1].type!=="content";)y[f][1].type==="chunkText"&&(y[f][1]._isInFirstContentOfListItem=!0,f++);if(u[0]==="enter")u[1].contentType&&(Object.assign(i,Iv(g,r)),r=i[r],m=!0);else if(u[1]._container){for(f=r,c=void 0;f--;)if(d=g.get(f),d[1].type==="lineEnding"||d[1].type==="lineEndingBlank")d[0]==="enter"&&(c&&(g.get(c)[1].type="lineEndingBlank"),d[1].type="lineEnding",c=f);else if(!(d[1].type==="linePrefix"||d[1].type==="listItemIndent"))break;c&&(u[1].end={...g.get(c)[1].start},p=g.slice(c,r),p.unshift(u),g.splice(c,r-c+1,p))}}return yn(l,0,Number.POSITIVE_INFINITY,g.slice(0)),!m}function Iv(l,i){const r=l.get(i)[1],u=l.get(i)[2];let c=i-1;const f=[];let d=r._tokenizer;d||(d=u.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(d._contentTypeTextTrailing=!0));const p=d.events,y=[],m={};let g,b,k=-1,S=r,U=0,G=0;const J=[G];for(;S;){for(;l.get(++c)[1]!==S;);f.push(c),S._tokenizer||(g=u.sliceStream(S),S.next||g.push(null),b&&d.defineSkip(S.start),S._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=!0),d.write(g),S._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=void 0)),b=S,S=S.next}for(S=r;++k<p.length;)p[k][0]==="exit"&&p[k-1][0]==="enter"&&p[k][1].type===p[k-1][1].type&&p[k][1].start.line!==p[k][1].end.line&&(G=k+1,J.push(G),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(d.events=[],S?(S._tokenizer=void 0,S.previous=void 0):J.pop(),k=J.length;k--;){const q=p.slice(J[k],J[k+1]),ne=f.pop();y.push([ne,ne+q.length-1]),l.splice(ne,2,q)}for(y.reverse(),k=-1;++k<y.length;)m[U+y[k][0]]=U+y[k][1],U+=y[k][1]-y[k][0]-1;return m}const $v={resolve:Pv,tokenize:eS},Wv={partial:!0,tokenize:tS};function Pv(l){return pg(l),l}function eS(l,i){let r;return u;function u(p){return l.enter("content"),r=l.enter("chunkContent",{contentType:"content"}),c(p)}function c(p){return p===null?f(p):xe(p)?l.check(Wv,d,f)(p):(l.consume(p),c)}function f(p){return l.exit("chunkContent"),l.exit("content"),i(p)}function d(p){return l.consume(p),l.exit("chunkContent"),r.next=l.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,c}}function tS(l,i,r){const u=this;return c;function c(d){return l.exit("chunkContent"),l.enter("lineEnding"),l.consume(d),l.exit("lineEnding"),Je(l,f,"linePrefix")}function f(d){if(d===null||xe(d))return r(d);const p=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?i(d):l.interrupt(u.parser.constructs.flow,r,i)(d)}}function gg(l,i,r,u,c,f,d,p,y){const m=y||Number.POSITIVE_INFINITY;let g=0;return b;function b(q){return q===60?(l.enter(u),l.enter(c),l.enter(f),l.consume(q),l.exit(f),k):q===null||q===32||q===41||nc(q)?r(q):(l.enter(u),l.enter(d),l.enter(p),l.enter("chunkString",{contentType:"string"}),G(q))}function k(q){return q===62?(l.enter(f),l.consume(q),l.exit(f),l.exit(c),l.exit(u),i):(l.enter(p),l.enter("chunkString",{contentType:"string"}),S(q))}function S(q){return q===62?(l.exit("chunkString"),l.exit(p),k(q)):q===null||q===60||xe(q)?r(q):(l.consume(q),q===92?U:S)}function U(q){return q===60||q===62||q===92?(l.consume(q),S):S(q)}function G(q){return!g&&(q===null||q===41||Rt(q))?(l.exit("chunkString"),l.exit(p),l.exit(d),l.exit(u),i(q)):g<m&&q===40?(l.consume(q),g++,G):q===41?(l.consume(q),g--,G):q===null||q===32||q===40||nc(q)?r(q):(l.consume(q),q===92?J:G)}function J(q){return q===40||q===41||q===92?(l.consume(q),G):G(q)}}function yg(l,i,r,u,c,f){const d=this;let p=0,y;return m;function m(S){return l.enter(u),l.enter(c),l.consume(S),l.exit(c),l.enter(f),g}function g(S){return p>999||S===null||S===91||S===93&&!y||S===94&&!p&&"_hiddenFootnoteSupport"in d.parser.constructs?r(S):S===93?(l.exit(f),l.enter(c),l.consume(S),l.exit(c),l.exit(u),i):xe(S)?(l.enter("lineEnding"),l.consume(S),l.exit("lineEnding"),g):(l.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===null||S===91||S===93||xe(S)||p++>999?(l.exit("chunkString"),g(S)):(l.consume(S),y||(y=!Ue(S)),S===92?k:b)}function k(S){return S===91||S===92||S===93?(l.consume(S),p++,b):b(S)}}function xg(l,i,r,u,c,f){let d;return p;function p(k){return k===34||k===39||k===40?(l.enter(u),l.enter(c),l.consume(k),l.exit(c),d=k===40?41:k,y):r(k)}function y(k){return k===d?(l.enter(c),l.consume(k),l.exit(c),l.exit(u),i):(l.enter(f),m(k))}function m(k){return k===d?(l.exit(f),y(d)):k===null?r(k):xe(k)?(l.enter("lineEnding"),l.consume(k),l.exit("lineEnding"),Je(l,m,"linePrefix")):(l.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===d||k===null||xe(k)?(l.exit("chunkString"),m(k)):(l.consume(k),k===92?b:g)}function b(k){return k===d||k===92?(l.consume(k),g):g(k)}}function ji(l,i){let r;return u;function u(c){return xe(c)?(l.enter("lineEnding"),l.consume(c),l.exit("lineEnding"),r=!0,u):Ue(c)?Je(l,u,r?"linePrefix":"lineSuffix")(c):i(c)}}const nS={name:"definition",tokenize:aS},lS={partial:!0,tokenize:iS};function aS(l,i,r){const u=this;let c;return f;function f(S){return l.enter("definition"),d(S)}function d(S){return yg.call(u,l,p,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function p(S){return c=Na(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),S===58?(l.enter("definitionMarker"),l.consume(S),l.exit("definitionMarker"),y):r(S)}function y(S){return Rt(S)?ji(l,m)(S):m(S)}function m(S){return gg(l,g,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function g(S){return l.attempt(lS,b,b)(S)}function b(S){return Ue(S)?Je(l,k,"whitespace")(S):k(S)}function k(S){return S===null||xe(S)?(l.exit("definition"),u.parser.defined.push(c),i(S)):r(S)}}function iS(l,i,r){return u;function u(p){return Rt(p)?ji(l,c)(p):r(p)}function c(p){return xg(l,f,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(p)}function f(p){return Ue(p)?Je(l,d,"whitespace")(p):d(p)}function d(p){return p===null||xe(p)?i(p):r(p)}}const rS={name:"hardBreakEscape",tokenize:uS};function uS(l,i,r){return u;function u(f){return l.enter("hardBreakEscape"),l.consume(f),c}function c(f){return xe(f)?(l.exit("hardBreakEscape"),i(f)):r(f)}}const oS={name:"headingAtx",resolve:sS,tokenize:cS};function sS(l,i){let r=l.length-2,u=3,c,f;return l[u][1].type==="whitespace"&&(u+=2),r-2>u&&l[r][1].type==="whitespace"&&(r-=2),l[r][1].type==="atxHeadingSequence"&&(u===r-1||r-4>u&&l[r-2][1].type==="whitespace")&&(r-=u+1===r?2:4),r>u&&(c={type:"atxHeadingText",start:l[u][1].start,end:l[r][1].end},f={type:"chunkText",start:l[u][1].start,end:l[r][1].end,contentType:"text"},yn(l,u,r-u+1,[["enter",c,i],["enter",f,i],["exit",f,i],["exit",c,i]])),l}function cS(l,i,r){let u=0;return c;function c(g){return l.enter("atxHeading"),f(g)}function f(g){return l.enter("atxHeadingSequence"),d(g)}function d(g){return g===35&&u++<6?(l.consume(g),d):g===null||Rt(g)?(l.exit("atxHeadingSequence"),p(g)):r(g)}function p(g){return g===35?(l.enter("atxHeadingSequence"),y(g)):g===null||xe(g)?(l.exit("atxHeading"),i(g)):Ue(g)?Je(l,p,"whitespace")(g):(l.enter("atxHeadingText"),m(g))}function y(g){return g===35?(l.consume(g),y):(l.exit("atxHeadingSequence"),p(g))}function m(g){return g===null||g===35||Rt(g)?(l.exit("atxHeadingText"),p(g)):(l.consume(g),m)}}const fS=["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"],op=["pre","script","style","textarea"],dS={concrete:!0,name:"htmlFlow",resolveTo:pS,tokenize:gS},hS={partial:!0,tokenize:xS},mS={partial:!0,tokenize:yS};function pS(l){let i=l.length;for(;i--&&!(l[i][0]==="enter"&&l[i][1].type==="htmlFlow"););return i>1&&l[i-2][1].type==="linePrefix"&&(l[i][1].start=l[i-2][1].start,l[i+1][1].start=l[i-2][1].start,l.splice(i-2,2)),l}function gS(l,i,r){const u=this;let c,f,d,p,y;return m;function m(T){return g(T)}function g(T){return l.enter("htmlFlow"),l.enter("htmlFlowData"),l.consume(T),b}function b(T){return T===33?(l.consume(T),k):T===47?(l.consume(T),f=!0,G):T===63?(l.consume(T),c=3,u.interrupt?i:E):gn(T)?(l.consume(T),d=String.fromCharCode(T),J):r(T)}function k(T){return T===45?(l.consume(T),c=2,S):T===91?(l.consume(T),c=5,p=0,U):gn(T)?(l.consume(T),c=4,u.interrupt?i:E):r(T)}function S(T){return T===45?(l.consume(T),u.interrupt?i:E):r(T)}function U(T){const W="CDATA[";return T===W.charCodeAt(p++)?(l.consume(T),p===W.length?u.interrupt?i:P:U):r(T)}function G(T){return gn(T)?(l.consume(T),d=String.fromCharCode(T),J):r(T)}function J(T){if(T===null||T===47||T===62||Rt(T)){const W=T===47,ie=d.toLowerCase();return!W&&!f&&op.includes(ie)?(c=1,u.interrupt?i(T):P(T)):fS.includes(d.toLowerCase())?(c=6,W?(l.consume(T),q):u.interrupt?i(T):P(T)):(c=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(T):f?ne(T):F(T))}return T===45||Zt(T)?(l.consume(T),d+=String.fromCharCode(T),J):r(T)}function q(T){return T===62?(l.consume(T),u.interrupt?i:P):r(T)}function ne(T){return Ue(T)?(l.consume(T),ne):Te(T)}function F(T){return T===47?(l.consume(T),Te):T===58||T===95||gn(T)?(l.consume(T),de):Ue(T)?(l.consume(T),F):Te(T)}function de(T){return T===45||T===46||T===58||T===95||Zt(T)?(l.consume(T),de):pe(T)}function pe(T){return T===61?(l.consume(T),B):Ue(T)?(l.consume(T),pe):F(T)}function B(T){return T===null||T===60||T===61||T===62||T===96?r(T):T===34||T===39?(l.consume(T),y=T,I):Ue(T)?(l.consume(T),B):X(T)}function I(T){return T===y?(l.consume(T),y=null,ce):T===null||xe(T)?r(T):(l.consume(T),I)}function X(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Rt(T)?pe(T):(l.consume(T),X)}function ce(T){return T===47||T===62||Ue(T)?F(T):r(T)}function Te(T){return T===62?(l.consume(T),te):r(T)}function te(T){return T===null||xe(T)?P(T):Ue(T)?(l.consume(T),te):r(T)}function P(T){return T===45&&c===2?(l.consume(T),C):T===60&&c===1?(l.consume(T),V):T===62&&c===4?(l.consume(T),z):T===63&&c===3?(l.consume(T),E):T===93&&c===5?(l.consume(T),he):xe(T)&&(c===6||c===7)?(l.exit("htmlFlowData"),l.check(hS,D,Se)(T)):T===null||xe(T)?(l.exit("htmlFlowData"),Se(T)):(l.consume(T),P)}function Se(T){return l.check(mS,ue,D)(T)}function ue(T){return l.enter("lineEnding"),l.consume(T),l.exit("lineEnding"),Q}function Q(T){return T===null||xe(T)?Se(T):(l.enter("htmlFlowData"),P(T))}function C(T){return T===45?(l.consume(T),E):P(T)}function V(T){return T===47?(l.consume(T),d="",Z):P(T)}function Z(T){if(T===62){const W=d.toLowerCase();return op.includes(W)?(l.consume(T),z):P(T)}return gn(T)&&d.length<8?(l.consume(T),d+=String.fromCharCode(T),Z):P(T)}function he(T){return T===93?(l.consume(T),E):P(T)}function E(T){return T===62?(l.consume(T),z):T===45&&c===2?(l.consume(T),E):P(T)}function z(T){return T===null||xe(T)?(l.exit("htmlFlowData"),D(T)):(l.consume(T),z)}function D(T){return l.exit("htmlFlow"),i(T)}}function yS(l,i,r){const u=this;return c;function c(d){return xe(d)?(l.enter("lineEnding"),l.consume(d),l.exit("lineEnding"),f):r(d)}function f(d){return u.parser.lazy[u.now().line]?r(d):i(d)}}function xS(l,i,r){return u;function u(c){return l.enter("lineEnding"),l.consume(c),l.exit("lineEnding"),l.attempt(fu,i,r)}}const bS={name:"htmlText",tokenize:vS};function vS(l,i,r){const u=this;let c,f,d;return p;function p(E){return l.enter("htmlText"),l.enter("htmlTextData"),l.consume(E),y}function y(E){return E===33?(l.consume(E),m):E===47?(l.consume(E),pe):E===63?(l.consume(E),F):gn(E)?(l.consume(E),X):r(E)}function m(E){return E===45?(l.consume(E),g):E===91?(l.consume(E),f=0,U):gn(E)?(l.consume(E),ne):r(E)}function g(E){return E===45?(l.consume(E),S):r(E)}function b(E){return E===null?r(E):E===45?(l.consume(E),k):xe(E)?(d=b,V(E)):(l.consume(E),b)}function k(E){return E===45?(l.consume(E),S):b(E)}function S(E){return E===62?C(E):E===45?k(E):b(E)}function U(E){const z="CDATA[";return E===z.charCodeAt(f++)?(l.consume(E),f===z.length?G:U):r(E)}function G(E){return E===null?r(E):E===93?(l.consume(E),J):xe(E)?(d=G,V(E)):(l.consume(E),G)}function J(E){return E===93?(l.consume(E),q):G(E)}function q(E){return E===62?C(E):E===93?(l.consume(E),q):G(E)}function ne(E){return E===null||E===62?C(E):xe(E)?(d=ne,V(E)):(l.consume(E),ne)}function F(E){return E===null?r(E):E===63?(l.consume(E),de):xe(E)?(d=F,V(E)):(l.consume(E),F)}function de(E){return E===62?C(E):F(E)}function pe(E){return gn(E)?(l.consume(E),B):r(E)}function B(E){return E===45||Zt(E)?(l.consume(E),B):I(E)}function I(E){return xe(E)?(d=I,V(E)):Ue(E)?(l.consume(E),I):C(E)}function X(E){return E===45||Zt(E)?(l.consume(E),X):E===47||E===62||Rt(E)?ce(E):r(E)}function ce(E){return E===47?(l.consume(E),C):E===58||E===95||gn(E)?(l.consume(E),Te):xe(E)?(d=ce,V(E)):Ue(E)?(l.consume(E),ce):C(E)}function Te(E){return E===45||E===46||E===58||E===95||Zt(E)?(l.consume(E),Te):te(E)}function te(E){return E===61?(l.consume(E),P):xe(E)?(d=te,V(E)):Ue(E)?(l.consume(E),te):ce(E)}function P(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(l.consume(E),c=E,Se):xe(E)?(d=P,V(E)):Ue(E)?(l.consume(E),P):(l.consume(E),ue)}function Se(E){return E===c?(l.consume(E),c=void 0,Q):E===null?r(E):xe(E)?(d=Se,V(E)):(l.consume(E),Se)}function ue(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||Rt(E)?ce(E):(l.consume(E),ue)}function Q(E){return E===47||E===62||Rt(E)?ce(E):r(E)}function C(E){return E===62?(l.consume(E),l.exit("htmlTextData"),l.exit("htmlText"),i):r(E)}function V(E){return l.exit("htmlTextData"),l.enter("lineEnding"),l.consume(E),l.exit("lineEnding"),Z}function Z(E){return Ue(E)?Je(l,he,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):he(E)}function he(E){return l.enter("htmlTextData"),d(E)}}const Ec={name:"labelEnd",resolveAll:kS,resolveTo:wS,tokenize:zS},SS={tokenize:NS},ES={tokenize:AS},TS={tokenize:CS};function kS(l){let i=-1;const r=[];for(;++i<l.length;){const u=l[i][1];if(r.push(l[i]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const c=u.type==="labelImage"?4:2;u.type="data",i+=c}}return l.length!==r.length&&yn(l,0,l.length,r),l}function wS(l,i){let r=l.length,u=0,c,f,d,p;for(;r--;)if(c=l[r][1],f){if(c.type==="link"||c.type==="labelLink"&&c._inactive)break;l[r][0]==="enter"&&c.type==="labelLink"&&(c._inactive=!0)}else if(d){if(l[r][0]==="enter"&&(c.type==="labelImage"||c.type==="labelLink")&&!c._balanced&&(f=r,c.type!=="labelLink")){u=2;break}}else c.type==="labelEnd"&&(d=r);const y={type:l[f][1].type==="labelLink"?"link":"image",start:{...l[f][1].start},end:{...l[l.length-1][1].end}},m={type:"label",start:{...l[f][1].start},end:{...l[d][1].end}},g={type:"labelText",start:{...l[f+u+2][1].end},end:{...l[d-2][1].start}};return p=[["enter",y,i],["enter",m,i]],p=ln(p,l.slice(f+1,f+u+3)),p=ln(p,[["enter",g,i]]),p=ln(p,Sc(i.parser.constructs.insideSpan.null,l.slice(f+u+4,d-3),i)),p=ln(p,[["exit",g,i],l[d-2],l[d-1],["exit",m,i]]),p=ln(p,l.slice(d+1)),p=ln(p,[["exit",y,i]]),yn(l,f,l.length,p),l}function zS(l,i,r){const u=this;let c=u.events.length,f,d;for(;c--;)if((u.events[c][1].type==="labelImage"||u.events[c][1].type==="labelLink")&&!u.events[c][1]._balanced){f=u.events[c][1];break}return p;function p(k){return f?f._inactive?b(k):(d=u.parser.defined.includes(Na(u.sliceSerialize({start:f.end,end:u.now()}))),l.enter("labelEnd"),l.enter("labelMarker"),l.consume(k),l.exit("labelMarker"),l.exit("labelEnd"),y):r(k)}function y(k){return k===40?l.attempt(SS,g,d?g:b)(k):k===91?l.attempt(ES,g,d?m:b)(k):d?g(k):b(k)}function m(k){return l.attempt(TS,g,b)(k)}function g(k){return i(k)}function b(k){return f._balanced=!0,r(k)}}function NS(l,i,r){return u;function u(b){return l.enter("resource"),l.enter("resourceMarker"),l.consume(b),l.exit("resourceMarker"),c}function c(b){return Rt(b)?ji(l,f)(b):f(b)}function f(b){return b===41?g(b):gg(l,d,p,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(b)}function d(b){return Rt(b)?ji(l,y)(b):g(b)}function p(b){return r(b)}function y(b){return b===34||b===39||b===40?xg(l,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(b):g(b)}function m(b){return Rt(b)?ji(l,g)(b):g(b)}function g(b){return b===41?(l.enter("resourceMarker"),l.consume(b),l.exit("resourceMarker"),l.exit("resource"),i):r(b)}}function AS(l,i,r){const u=this;return c;function c(p){return yg.call(u,l,f,d,"reference","referenceMarker","referenceString")(p)}function f(p){return u.parser.defined.includes(Na(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?i(p):r(p)}function d(p){return r(p)}}function CS(l,i,r){return u;function u(f){return l.enter("reference"),l.enter("referenceMarker"),l.consume(f),l.exit("referenceMarker"),c}function c(f){return f===93?(l.enter("referenceMarker"),l.consume(f),l.exit("referenceMarker"),l.exit("reference"),i):r(f)}}const _S={name:"labelStartImage",resolveAll:Ec.resolveAll,tokenize:MS};function MS(l,i,r){const u=this;return c;function c(p){return l.enter("labelImage"),l.enter("labelImageMarker"),l.consume(p),l.exit("labelImageMarker"),f}function f(p){return p===91?(l.enter("labelMarker"),l.consume(p),l.exit("labelMarker"),l.exit("labelImage"),d):r(p)}function d(p){return p===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(p):i(p)}}const jS={name:"labelStartLink",resolveAll:Ec.resolveAll,tokenize:OS};function OS(l,i,r){const u=this;return c;function c(d){return l.enter("labelLink"),l.enter("labelMarker"),l.consume(d),l.exit("labelMarker"),l.exit("labelLink"),f}function f(d){return d===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(d):i(d)}}const Ys={name:"lineEnding",tokenize:DS};function DS(l,i){return r;function r(u){return l.enter("lineEnding"),l.consume(u),l.exit("lineEnding"),Je(l,i,"linePrefix")}}const ru={name:"thematicBreak",tokenize:RS};function RS(l,i,r){let u=0,c;return f;function f(m){return l.enter("thematicBreak"),d(m)}function d(m){return c=m,p(m)}function p(m){return m===c?(l.enter("thematicBreakSequence"),y(m)):u>=3&&(m===null||xe(m))?(l.exit("thematicBreak"),i(m)):r(m)}function y(m){return m===c?(l.consume(m),u++,y):(l.exit("thematicBreakSequence"),Ue(m)?Je(l,p,"whitespace")(m):p(m))}}const Dt={continuation:{tokenize:HS},exit:YS,name:"list",tokenize:LS},US={partial:!0,tokenize:GS},BS={partial:!0,tokenize:qS};function LS(l,i,r){const u=this,c=u.events[u.events.length-1];let f=c&&c[1].type==="linePrefix"?c[2].sliceSerialize(c[1],!0).length:0,d=0;return p;function p(S){const U=u.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(U==="listUnordered"?!u.containerState.marker||S===u.containerState.marker:lc(S)){if(u.containerState.type||(u.containerState.type=U,l.enter(U,{_container:!0})),U==="listUnordered")return l.enter("listItemPrefix"),S===42||S===45?l.check(ru,r,m)(S):m(S);if(!u.interrupt||S===49)return l.enter("listItemPrefix"),l.enter("listItemValue"),y(S)}return r(S)}function y(S){return lc(S)&&++d<10?(l.consume(S),y):(!u.interrupt||d<2)&&(u.containerState.marker?S===u.containerState.marker:S===41||S===46)?(l.exit("listItemValue"),m(S)):r(S)}function m(S){return l.enter("listItemMarker"),l.consume(S),l.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||S,l.check(fu,u.interrupt?r:g,l.attempt(US,k,b))}function g(S){return u.containerState.initialBlankLine=!0,f++,k(S)}function b(S){return Ue(S)?(l.enter("listItemPrefixWhitespace"),l.consume(S),l.exit("listItemPrefixWhitespace"),k):r(S)}function k(S){return u.containerState.size=f+u.sliceSerialize(l.exit("listItemPrefix"),!0).length,i(S)}}function HS(l,i,r){const u=this;return u.containerState._closeFlow=void 0,l.check(fu,c,f);function c(p){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,Je(l,i,"listItemIndent",u.containerState.size+1)(p)}function f(p){return u.containerState.furtherBlankLines||!Ue(p)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,d(p)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,l.attempt(BS,i,d)(p))}function d(p){return u.containerState._closeFlow=!0,u.interrupt=void 0,Je(l,l.attempt(Dt,i,r),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p)}}function qS(l,i,r){const u=this;return Je(l,c,"listItemIndent",u.containerState.size+1);function c(f){const d=u.events[u.events.length-1];return d&&d[1].type==="listItemIndent"&&d[2].sliceSerialize(d[1],!0).length===u.containerState.size?i(f):r(f)}}function YS(l){l.exit(this.containerState.type)}function GS(l,i,r){const u=this;return Je(l,c,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function c(f){const d=u.events[u.events.length-1];return!Ue(f)&&d&&d[1].type==="listItemPrefixWhitespace"?i(f):r(f)}}const sp={name:"setextUnderline",resolveTo:VS,tokenize:XS};function VS(l,i){let r=l.length,u,c,f;for(;r--;)if(l[r][0]==="enter"){if(l[r][1].type==="content"){u=r;break}l[r][1].type==="paragraph"&&(c=r)}else l[r][1].type==="content"&&l.splice(r,1),!f&&l[r][1].type==="definition"&&(f=r);const d={type:"setextHeading",start:{...l[u][1].start},end:{...l[l.length-1][1].end}};return l[c][1].type="setextHeadingText",f?(l.splice(c,0,["enter",d,i]),l.splice(f+1,0,["exit",l[u][1],i]),l[u][1].end={...l[f][1].end}):l[u][1]=d,l.push(["exit",d,i]),l}function XS(l,i,r){const u=this;let c;return f;function f(m){let g=u.events.length,b;for(;g--;)if(u.events[g][1].type!=="lineEnding"&&u.events[g][1].type!=="linePrefix"&&u.events[g][1].type!=="content"){b=u.events[g][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||b)?(l.enter("setextHeadingLine"),c=m,d(m)):r(m)}function d(m){return l.enter("setextHeadingLineSequence"),p(m)}function p(m){return m===c?(l.consume(m),p):(l.exit("setextHeadingLineSequence"),Ue(m)?Je(l,y,"lineSuffix")(m):y(m))}function y(m){return m===null||xe(m)?(l.exit("setextHeadingLine"),i(m)):r(m)}}const QS={tokenize:ZS};function ZS(l){const i=this,r=l.attempt(fu,u,l.attempt(this.parser.constructs.flowInitial,c,Je(l,l.attempt(this.parser.constructs.flow,c,l.attempt($v,c)),"linePrefix")));return r;function u(f){if(f===null){l.consume(f);return}return l.enter("lineEndingBlank"),l.consume(f),l.exit("lineEndingBlank"),i.currentConstruct=void 0,r}function c(f){if(f===null){l.consume(f);return}return l.enter("lineEnding"),l.consume(f),l.exit("lineEnding"),i.currentConstruct=void 0,r}}const KS={resolveAll:vg()},JS=bg("string"),FS=bg("text");function bg(l){return{resolveAll:vg(l==="text"?IS:void 0),tokenize:i};function i(r){const u=this,c=this.parser.constructs[l],f=r.attempt(c,d,p);return d;function d(g){return m(g)?f(g):p(g)}function p(g){if(g===null){r.consume(g);return}return r.enter("data"),r.consume(g),y}function y(g){return m(g)?(r.exit("data"),f(g)):(r.consume(g),y)}function m(g){if(g===null)return!0;const b=c[g];let k=-1;if(b)for(;++k<b.length;){const S=b[k];if(!S.previous||S.previous.call(u,u.previous))return!0}return!1}}}function vg(l){return i;function i(r,u){let c=-1,f;for(;++c<=r.length;)f===void 0?r[c]&&r[c][1].type==="data"&&(f=c,c++):(!r[c]||r[c][1].type!=="data")&&(c!==f+2&&(r[f][1].end=r[c-1][1].end,r.splice(f+2,c-f-2),c=f+2),f=void 0);return l?l(r,u):r}}function IS(l,i){let r=0;for(;++r<=l.length;)if((r===l.length||l[r][1].type==="lineEnding")&&l[r-1][1].type==="data"){const u=l[r-1][1],c=i.sliceStream(u);let f=c.length,d=-1,p=0,y;for(;f--;){const m=c[f];if(typeof m=="string"){for(d=m.length;m.charCodeAt(d-1)===32;)p++,d--;if(d)break;d=-1}else if(m===-2)y=!0,p++;else if(m!==-1){f++;break}}if(i._contentTypeTextTrailing&&r===l.length&&(p=0),p){const m={type:r===l.length||y||p<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:f?d:u.start._bufferIndex+d,_index:u.start._index+f,line:u.end.line,column:u.end.column-p,offset:u.end.offset-p},end:{...u.end}};u.end={...m.start},u.start.offset===u.end.offset?Object.assign(u,m):(l.splice(r,0,["enter",m,i],["exit",m,i]),r+=2)}r++}return l}const $S={42:Dt,43:Dt,45:Dt,48:Dt,49:Dt,50:Dt,51:Dt,52:Dt,53:Dt,54:Dt,55:Dt,56:Dt,57:Dt,62:dg},WS={91:nS},PS={[-2]:qs,[-1]:qs,32:qs},e2={35:oS,42:ru,45:[sp,ru],60:dS,61:sp,95:ru,96:up,126:up},t2={38:mg,92:hg},n2={[-5]:Ys,[-4]:Ys,[-3]:Ys,33:_S,38:mg,42:ac,60:[jv,bS],91:jS,92:[rS,hg],93:Ec,95:ac,96:Qv},l2={null:[ac,KS]},a2={null:[42,95]},i2={null:[]},r2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:a2,contentInitial:WS,disable:i2,document:$S,flow:e2,flowInitial:PS,insideSpan:l2,string:t2,text:n2},Symbol.toStringTag,{value:"Module"}));function u2(l,i,r){let u={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const c={},f=[];let d=[],p=[];const y={attempt:I(pe),check:I(B),consume:ne,enter:F,exit:de,interrupt:I(B,{interrupt:!0})},m={code:null,containerState:{},defineSkip:G,events:[],now:U,parser:l,previous:null,sliceSerialize:k,sliceStream:S,write:b};let g=i.tokenize.call(m,y);return i.resolveAll&&f.push(i),m;function b(te){return d=ln(d,te),J(),d[d.length-1]!==null?[]:(X(i,0),m.events=Sc(f,m.events,m),m.events)}function k(te,P){return s2(S(te),P)}function S(te){return o2(d,te)}function U(){const{_bufferIndex:te,_index:P,line:Se,column:ue,offset:Q}=u;return{_bufferIndex:te,_index:P,line:Se,column:ue,offset:Q}}function G(te){c[te.line]=te.column,Te()}function J(){let te;for(;u._index<d.length;){const P=d[u._index];if(typeof P=="string")for(te=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===te&&u._bufferIndex<P.length;)q(P.charCodeAt(u._bufferIndex));else q(P)}}function q(te){g=g(te)}function ne(te){xe(te)?(u.line++,u.column=1,u.offset+=te===-3?2:1,Te()):te!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===d[u._index].length&&(u._bufferIndex=-1,u._index++)),m.previous=te}function F(te,P){const Se=P||{};return Se.type=te,Se.start=U(),m.events.push(["enter",Se,m]),p.push(Se),Se}function de(te){const P=p.pop();return P.end=U(),m.events.push(["exit",P,m]),P}function pe(te,P){X(te,P.from)}function B(te,P){P.restore()}function I(te,P){return Se;function Se(ue,Q,C){let V,Z,he,E;return Array.isArray(ue)?D(ue):"tokenize"in ue?D([ue]):z(ue);function z(le){return ke;function ke(Xe){const ye=Xe!==null&&le[Xe],vt=Xe!==null&&le.null,kt=[...Array.isArray(ye)?ye:ye?[ye]:[],...Array.isArray(vt)?vt:vt?[vt]:[]];return D(kt)(Xe)}}function D(le){return V=le,Z=0,le.length===0?C:T(le[Z])}function T(le){return ke;function ke(Xe){return E=ce(),he=le,le.partial||(m.currentConstruct=le),le.name&&m.parser.constructs.disable.null.includes(le.name)?ie():le.tokenize.call(P?Object.assign(Object.create(m),P):m,y,W,ie)(Xe)}}function W(le){return te(he,E),Q}function ie(le){return E.restore(),++Z<V.length?T(V[Z]):C}}}function X(te,P){te.resolveAll&&!f.includes(te)&&f.push(te),te.resolve&&yn(m.events,P,m.events.length-P,te.resolve(m.events.slice(P),m)),te.resolveTo&&(m.events=te.resolveTo(m.events,m))}function ce(){const te=U(),P=m.previous,Se=m.currentConstruct,ue=m.events.length,Q=Array.from(p);return{from:ue,restore:C};function C(){u=te,m.previous=P,m.currentConstruct=Se,m.events.length=ue,p=Q,Te()}}function Te(){u.line in c&&u.column<2&&(u.column=c[u.line],u.offset+=c[u.line]-1)}}function o2(l,i){const r=i.start._index,u=i.start._bufferIndex,c=i.end._index,f=i.end._bufferIndex;let d;if(r===c)d=[l[r].slice(u,f)];else{if(d=l.slice(r,c),u>-1){const p=d[0];typeof p=="string"?d[0]=p.slice(u):d.shift()}f>0&&d.push(l[c].slice(0,f))}return d}function s2(l,i){let r=-1;const u=[];let c;for(;++r<l.length;){const f=l[r];let d;if(typeof f=="string")d=f;else switch(f){case-5:{d="\r";break}case-4:{d=`
216
- `;break}case-3:{d=`\r
217
- `;break}case-2:{d=i?" ":" ";break}case-1:{if(!i&&c)continue;d=" ";break}default:d=String.fromCharCode(f)}c=f===-2,u.push(d)}return u.join("")}function c2(l){const u={constructs:yv([r2,...(l||{}).extensions||[]]),content:c(wv),defined:[],document:c(Nv),flow:c(QS),lazy:{},string:c(JS),text:c(FS)};return u;function c(f){return d;function d(p){return u2(u,f,p)}}}function f2(l){for(;!pg(l););return l}const cp=/[\0\t\n\r]/g;function d2(){let l=1,i="",r=!0,u;return c;function c(f,d,p){const y=[];let m,g,b,k,S;for(f=i+(typeof f=="string"?f.toString():new TextDecoder(d||void 0).decode(f)),b=0,i="",r&&(f.charCodeAt(0)===65279&&b++,r=void 0);b<f.length;){if(cp.lastIndex=b,m=cp.exec(f),k=m&&m.index!==void 0?m.index:f.length,S=f.charCodeAt(k),!m){i=f.slice(b);break}if(S===10&&b===k&&u)y.push(-3),u=void 0;else switch(u&&(y.push(-5),u=void 0),b<k&&(y.push(f.slice(b,k)),l+=k-b),S){case 0:{y.push(65533),l++;break}case 9:{for(g=Math.ceil(l/4)*4,y.push(-2);l++<g;)y.push(-1);break}case 10:{y.push(-4),l=1;break}default:u=!0,l=1}b=k+1}return p&&(u&&y.push(-5),i&&y.push(i),y.push(null)),y}}const h2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function m2(l){return l.replace(h2,p2)}function p2(l,i,r){if(i)return i;if(r.charCodeAt(0)===35){const c=r.charCodeAt(1),f=c===120||c===88;return fg(r.slice(f?2:1),f?16:10)}return vc(r)||l}const Sg={}.hasOwnProperty;function g2(l,i,r){return i&&typeof i=="object"&&(r=i,i=void 0),y2(r)(f2(c2(r).document().write(d2()(l,i,!0))))}function y2(l){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:f(Hl),autolinkProtocol:ce,autolinkEmail:ce,atxHeading:f(Bl),blockQuote:f(vt),characterEscape:ce,characterReference:ce,codeFenced:f(kt),codeFencedFenceInfo:d,codeFencedFenceMeta:d,codeIndented:f(kt,d),codeText:f(sn,d),codeTextData:ce,data:ce,codeFlowValue:ce,definition:f(Ln),definitionDestinationString:d,definitionLabelString:d,definitionTitleString:d,emphasis:f(wt),hardBreakEscape:f(Ll),hardBreakTrailing:f(Ll),htmlFlow:f(Bi,d),htmlFlowData:ce,htmlText:f(Bi,d),htmlTextData:ce,image:f(Li),label:d,link:f(Hl),listItem:f(ja),listItemValue:k,listOrdered:f(ql,b),listUnordered:f(ql),paragraph:f(mu),reference:T,referenceString:d,resourceDestinationString:d,resourceTitleString:d,setextHeading:f(Bl),strong:f(pu),thematicBreak:f(gu)},exit:{atxHeading:y(),atxHeadingSequence:pe,autolink:y(),autolinkEmail:ye,autolinkProtocol:Xe,blockQuote:y(),characterEscapeValue:Te,characterReferenceMarkerHexadecimal:ie,characterReferenceMarkerNumeric:ie,characterReferenceValue:le,characterReference:ke,codeFenced:y(J),codeFencedFence:G,codeFencedFenceInfo:S,codeFencedFenceMeta:U,codeFlowValue:Te,codeIndented:y(q),codeText:y(Q),codeTextData:Te,data:Te,definition:y(),definitionDestinationString:de,definitionLabelString:ne,definitionTitleString:F,emphasis:y(),hardBreakEscape:y(P),hardBreakTrailing:y(P),htmlFlow:y(Se),htmlFlowData:Te,htmlText:y(ue),htmlTextData:Te,image:y(V),label:he,labelText:Z,lineEnding:te,link:y(C),listItem:y(),listOrdered:y(),listUnordered:y(),paragraph:y(),referenceString:W,resourceDestinationString:E,resourceTitleString:z,resource:D,setextHeading:y(X),setextHeadingLineSequence:I,setextHeadingText:B,strong:y(),thematicBreak:y()}};Eg(i,(l||{}).mdastExtensions||[]);const r={};return u;function u(L){let $={type:"root",children:[]};const ge={stack:[$],tokenStack:[],config:i,enter:p,exit:m,buffer:d,resume:g,data:r},Ne=[];let Be=-1;for(;++Be<L.length;)if(L[Be][1].type==="listOrdered"||L[Be][1].type==="listUnordered")if(L[Be][0]==="enter")Ne.push(Be);else{const Bt=Ne.pop();Be=c(L,Bt,Be)}for(Be=-1;++Be<L.length;){const Bt=i[L[Be][0]];Sg.call(Bt,L[Be][1].type)&&Bt[L[Be][1].type].call(Object.assign({sliceSerialize:L[Be][2].sliceSerialize},ge),L[Be][1])}if(ge.tokenStack.length>0){const Bt=ge.tokenStack[ge.tokenStack.length-1];(Bt[1]||fp).call(ge,void 0,Bt[0])}for($.position={start:fl(L.length>0?L[0][1].start:{line:1,column:1,offset:0}),end:fl(L.length>0?L[L.length-2][1].end:{line:1,column:1,offset:0})},Be=-1;++Be<i.transforms.length;)$=i.transforms[Be]($)||$;return $}function c(L,$,ge){let Ne=$-1,Be=-1,Bt=!1,xn,Et,ot,zt;for(;++Ne<=ge;){const Qe=L[Ne];switch(Qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qe[0]==="enter"?Be++:Be--,zt=void 0;break}case"lineEndingBlank":{Qe[0]==="enter"&&(xn&&!zt&&!Be&&!ot&&(ot=Ne),zt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:zt=void 0}if(!Be&&Qe[0]==="enter"&&Qe[1].type==="listItemPrefix"||Be===-1&&Qe[0]==="exit"&&(Qe[1].type==="listUnordered"||Qe[1].type==="listOrdered")){if(xn){let Hn=Ne;for(Et=void 0;Hn--;){const an=L[Hn];if(an[1].type==="lineEnding"||an[1].type==="lineEndingBlank"){if(an[0]==="exit")continue;Et&&(L[Et][1].type="lineEndingBlank",Bt=!0),an[1].type="lineEnding",Et=Hn}else if(!(an[1].type==="linePrefix"||an[1].type==="blockQuotePrefix"||an[1].type==="blockQuotePrefixWhitespace"||an[1].type==="blockQuoteMarker"||an[1].type==="listItemIndent"))break}ot&&(!Et||ot<Et)&&(xn._spread=!0),xn.end=Object.assign({},Et?L[Et][1].start:Qe[1].end),L.splice(Et||Ne,0,["exit",xn,Qe[2]]),Ne++,ge++}if(Qe[1].type==="listItemPrefix"){const Hn={type:"listItem",_spread:!1,start:Object.assign({},Qe[1].start),end:void 0};xn=Hn,L.splice(Ne,0,["enter",Hn,Qe[2]]),Ne++,ge++,ot=void 0,zt=!0}}}return L[$][1]._spread=Bt,ge}function f(L,$){return ge;function ge(Ne){p.call(this,L(Ne),Ne),$&&$.call(this,Ne)}}function d(){this.stack.push({type:"fragment",children:[]})}function p(L,$,ge){this.stack[this.stack.length-1].children.push(L),this.stack.push(L),this.tokenStack.push([$,ge||void 0]),L.position={start:fl($.start),end:void 0}}function y(L){return $;function $(ge){L&&L.call(this,ge),m.call(this,ge)}}function m(L,$){const ge=this.stack.pop(),Ne=this.tokenStack.pop();if(Ne)Ne[0].type!==L.type&&($?$.call(this,L,Ne[0]):(Ne[1]||fp).call(this,L,Ne[0]));else throw new Error("Cannot close `"+L.type+"` ("+Mi({start:L.start,end:L.end})+"): it’s not open");ge.position.end=fl(L.end)}function g(){return pv(this.stack.pop())}function b(){this.data.expectingFirstListItemValue=!0}function k(L){if(this.data.expectingFirstListItemValue){const $=this.stack[this.stack.length-2];$.start=Number.parseInt(this.sliceSerialize(L),10),this.data.expectingFirstListItemValue=void 0}}function S(){const L=this.resume(),$=this.stack[this.stack.length-1];$.lang=L}function U(){const L=this.resume(),$=this.stack[this.stack.length-1];$.meta=L}function G(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function J(){const L=this.resume(),$=this.stack[this.stack.length-1];$.value=L.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function q(){const L=this.resume(),$=this.stack[this.stack.length-1];$.value=L.replace(/(\r?\n|\r)$/g,"")}function ne(L){const $=this.resume(),ge=this.stack[this.stack.length-1];ge.label=$,ge.identifier=Na(this.sliceSerialize(L)).toLowerCase()}function F(){const L=this.resume(),$=this.stack[this.stack.length-1];$.title=L}function de(){const L=this.resume(),$=this.stack[this.stack.length-1];$.url=L}function pe(L){const $=this.stack[this.stack.length-1];if(!$.depth){const ge=this.sliceSerialize(L).length;$.depth=ge}}function B(){this.data.setextHeadingSlurpLineEnding=!0}function I(L){const $=this.stack[this.stack.length-1];$.depth=this.sliceSerialize(L).codePointAt(0)===61?1:2}function X(){this.data.setextHeadingSlurpLineEnding=void 0}function ce(L){const ge=this.stack[this.stack.length-1].children;let Ne=ge[ge.length-1];(!Ne||Ne.type!=="text")&&(Ne=St(),Ne.position={start:fl(L.start),end:void 0},ge.push(Ne)),this.stack.push(Ne)}function Te(L){const $=this.stack.pop();$.value+=this.sliceSerialize(L),$.position.end=fl(L.end)}function te(L){const $=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ge=$.children[$.children.length-1];ge.position.end=fl(L.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&i.canContainEols.includes($.type)&&(ce.call(this,L),Te.call(this,L))}function P(){this.data.atHardBreak=!0}function Se(){const L=this.resume(),$=this.stack[this.stack.length-1];$.value=L}function ue(){const L=this.resume(),$=this.stack[this.stack.length-1];$.value=L}function Q(){const L=this.resume(),$=this.stack[this.stack.length-1];$.value=L}function C(){const L=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=$,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function V(){const L=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=$,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function Z(L){const $=this.sliceSerialize(L),ge=this.stack[this.stack.length-2];ge.label=m2($),ge.identifier=Na($).toLowerCase()}function he(){const L=this.stack[this.stack.length-1],$=this.resume(),ge=this.stack[this.stack.length-1];if(this.data.inReference=!0,ge.type==="link"){const Ne=L.children;ge.children=Ne}else ge.alt=$}function E(){const L=this.resume(),$=this.stack[this.stack.length-1];$.url=L}function z(){const L=this.resume(),$=this.stack[this.stack.length-1];$.title=L}function D(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function W(L){const $=this.resume(),ge=this.stack[this.stack.length-1];ge.label=$,ge.identifier=Na(this.sliceSerialize(L)).toLowerCase(),this.data.referenceType="full"}function ie(L){this.data.characterReferenceType=L.type}function le(L){const $=this.sliceSerialize(L),ge=this.data.characterReferenceType;let Ne;ge?(Ne=fg($,ge==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ne=vc($);const Be=this.stack[this.stack.length-1];Be.value+=Ne}function ke(L){const $=this.stack.pop();$.position.end=fl(L.end)}function Xe(L){Te.call(this,L);const $=this.stack[this.stack.length-1];$.url=this.sliceSerialize(L)}function ye(L){Te.call(this,L);const $=this.stack[this.stack.length-1];$.url="mailto:"+this.sliceSerialize(L)}function vt(){return{type:"blockquote",children:[]}}function kt(){return{type:"code",lang:null,meta:null,value:""}}function sn(){return{type:"inlineCode",value:""}}function Ln(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function wt(){return{type:"emphasis",children:[]}}function Bl(){return{type:"heading",depth:0,children:[]}}function Ll(){return{type:"break"}}function Bi(){return{type:"html",value:""}}function Li(){return{type:"image",title:null,url:"",alt:null}}function Hl(){return{type:"link",title:null,url:"",children:[]}}function ql(L){return{type:"list",ordered:L.type==="listOrdered",start:null,spread:L._spread,children:[]}}function ja(L){return{type:"listItem",spread:L._spread,checked:null,children:[]}}function mu(){return{type:"paragraph",children:[]}}function pu(){return{type:"strong",children:[]}}function St(){return{type:"text",value:""}}function gu(){return{type:"thematicBreak"}}}function fl(l){return{line:l.line,column:l.column,offset:l.offset}}function Eg(l,i){let r=-1;for(;++r<i.length;){const u=i[r];Array.isArray(u)?Eg(l,u):x2(l,u)}}function x2(l,i){let r;for(r in i)if(Sg.call(i,r))switch(r){case"canContainEols":{const u=i[r];u&&l[r].push(...u);break}case"transforms":{const u=i[r];u&&l[r].push(...u);break}case"enter":case"exit":{const u=i[r];u&&Object.assign(l[r],u);break}}}function fp(l,i){throw l?new Error("Cannot close `"+l.type+"` ("+Mi({start:l.start,end:l.end})+"): a different token (`"+i.type+"`, "+Mi({start:i.start,end:i.end})+") is open"):new Error("Cannot close document, a token (`"+i.type+"`, "+Mi({start:i.start,end:i.end})+") is still open")}function b2(l){const i=this;i.parser=r;function r(u){return g2(u,{...i.data("settings"),...l,extensions:i.data("micromarkExtensions")||[],mdastExtensions:i.data("fromMarkdownExtensions")||[]})}}function v2(l,i){const r={type:"element",tagName:"blockquote",properties:{},children:l.wrap(l.all(i),!0)};return l.patch(i,r),l.applyData(i,r)}function S2(l,i){const r={type:"element",tagName:"br",properties:{},children:[]};return l.patch(i,r),[l.applyData(i,r),{type:"text",value:`
218
- `}]}function E2(l,i){const r=i.value?i.value+`
219
- `:"",u={},c=i.lang?i.lang.split(/\s+/):[];c.length>0&&(u.className=["language-"+c[0]]);let f={type:"element",tagName:"code",properties:u,children:[{type:"text",value:r}]};return i.meta&&(f.data={meta:i.meta}),l.patch(i,f),f=l.applyData(i,f),f={type:"element",tagName:"pre",properties:{},children:[f]},l.patch(i,f),f}function T2(l,i){const r={type:"element",tagName:"del",properties:{},children:l.all(i)};return l.patch(i,r),l.applyData(i,r)}function k2(l,i){const r={type:"element",tagName:"em",properties:{},children:l.all(i)};return l.patch(i,r),l.applyData(i,r)}function w2(l,i){const r=typeof l.options.clobberPrefix=="string"?l.options.clobberPrefix:"user-content-",u=String(i.identifier).toUpperCase(),c=Ma(u.toLowerCase()),f=l.footnoteOrder.indexOf(u);let d,p=l.footnoteCounts.get(u);p===void 0?(p=0,l.footnoteOrder.push(u),d=l.footnoteOrder.length):d=f+1,p+=1,l.footnoteCounts.set(u,p);const y={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+c,id:r+"fnref-"+c+(p>1?"-"+p:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(d)}]};l.patch(i,y);const m={type:"element",tagName:"sup",properties:{},children:[y]};return l.patch(i,m),l.applyData(i,m)}function z2(l,i){const r={type:"element",tagName:"h"+i.depth,properties:{},children:l.all(i)};return l.patch(i,r),l.applyData(i,r)}function N2(l,i){if(l.options.allowDangerousHtml){const r={type:"raw",value:i.value};return l.patch(i,r),l.applyData(i,r)}}function Tg(l,i){const r=i.referenceType;let u="]";if(r==="collapsed"?u+="[]":r==="full"&&(u+="["+(i.label||i.identifier)+"]"),i.type==="imageReference")return[{type:"text",value:"!["+i.alt+u}];const c=l.all(i),f=c[0];f&&f.type==="text"?f.value="["+f.value:c.unshift({type:"text",value:"["});const d=c[c.length-1];return d&&d.type==="text"?d.value+=u:c.push({type:"text",value:u}),c}function A2(l,i){const r=String(i.identifier).toUpperCase(),u=l.definitionById.get(r);if(!u)return Tg(l,i);const c={src:Ma(u.url||""),alt:i.alt};u.title!==null&&u.title!==void 0&&(c.title=u.title);const f={type:"element",tagName:"img",properties:c,children:[]};return l.patch(i,f),l.applyData(i,f)}function C2(l,i){const r={src:Ma(i.url)};i.alt!==null&&i.alt!==void 0&&(r.alt=i.alt),i.title!==null&&i.title!==void 0&&(r.title=i.title);const u={type:"element",tagName:"img",properties:r,children:[]};return l.patch(i,u),l.applyData(i,u)}function _2(l,i){const r={type:"text",value:i.value.replace(/\r?\n|\r/g," ")};l.patch(i,r);const u={type:"element",tagName:"code",properties:{},children:[r]};return l.patch(i,u),l.applyData(i,u)}function M2(l,i){const r=String(i.identifier).toUpperCase(),u=l.definitionById.get(r);if(!u)return Tg(l,i);const c={href:Ma(u.url||"")};u.title!==null&&u.title!==void 0&&(c.title=u.title);const f={type:"element",tagName:"a",properties:c,children:l.all(i)};return l.patch(i,f),l.applyData(i,f)}function j2(l,i){const r={href:Ma(i.url)};i.title!==null&&i.title!==void 0&&(r.title=i.title);const u={type:"element",tagName:"a",properties:r,children:l.all(i)};return l.patch(i,u),l.applyData(i,u)}function O2(l,i,r){const u=l.all(i),c=r?D2(r):kg(i),f={},d=[];if(typeof i.checked=="boolean"){const g=u[0];let b;g&&g.type==="element"&&g.tagName==="p"?b=g:(b={type:"element",tagName:"p",properties:{},children:[]},u.unshift(b)),b.children.length>0&&b.children.unshift({type:"text",value:" "}),b.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:i.checked,disabled:!0},children:[]}),f.className=["task-list-item"]}let p=-1;for(;++p<u.length;){const g=u[p];(c||p!==0||g.type!=="element"||g.tagName!=="p")&&d.push({type:"text",value:`
220
- `}),g.type==="element"&&g.tagName==="p"&&!c?d.push(...g.children):d.push(g)}const y=u[u.length-1];y&&(c||y.type!=="element"||y.tagName!=="p")&&d.push({type:"text",value:`
221
- `});const m={type:"element",tagName:"li",properties:f,children:d};return l.patch(i,m),l.applyData(i,m)}function D2(l){let i=!1;if(l.type==="list"){i=l.spread||!1;const r=l.children;let u=-1;for(;!i&&++u<r.length;)i=kg(r[u])}return i}function kg(l){const i=l.spread;return i??l.children.length>1}function R2(l,i){const r={},u=l.all(i);let c=-1;for(typeof i.start=="number"&&i.start!==1&&(r.start=i.start);++c<u.length;){const d=u[c];if(d.type==="element"&&d.tagName==="li"&&d.properties&&Array.isArray(d.properties.className)&&d.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const f={type:"element",tagName:i.ordered?"ol":"ul",properties:r,children:l.wrap(u,!0)};return l.patch(i,f),l.applyData(i,f)}function U2(l,i){const r={type:"element",tagName:"p",properties:{},children:l.all(i)};return l.patch(i,r),l.applyData(i,r)}function B2(l,i){const r={type:"root",children:l.wrap(l.all(i))};return l.patch(i,r),l.applyData(i,r)}function L2(l,i){const r={type:"element",tagName:"strong",properties:{},children:l.all(i)};return l.patch(i,r),l.applyData(i,r)}function H2(l,i){const r=l.all(i),u=r.shift(),c=[];if(u){const d={type:"element",tagName:"thead",properties:{},children:l.wrap([u],!0)};l.patch(i.children[0],d),c.push(d)}if(r.length>0){const d={type:"element",tagName:"tbody",properties:{},children:l.wrap(r,!0)},p=gc(i.children[1]),y=ag(i.children[i.children.length-1]);p&&y&&(d.position={start:p,end:y}),c.push(d)}const f={type:"element",tagName:"table",properties:{},children:l.wrap(c,!0)};return l.patch(i,f),l.applyData(i,f)}function q2(l,i,r){const u=r?r.children:void 0,f=(u?u.indexOf(i):1)===0?"th":"td",d=r&&r.type==="table"?r.align:void 0,p=d?d.length:i.children.length;let y=-1;const m=[];for(;++y<p;){const b=i.children[y],k={},S=d?d[y]:void 0;S&&(k.align=S);let U={type:"element",tagName:f,properties:k,children:[]};b&&(U.children=l.all(b),l.patch(b,U),U=l.applyData(b,U)),m.push(U)}const g={type:"element",tagName:"tr",properties:{},children:l.wrap(m,!0)};return l.patch(i,g),l.applyData(i,g)}function Y2(l,i){const r={type:"element",tagName:"td",properties:{},children:l.all(i)};return l.patch(i,r),l.applyData(i,r)}const dp=9,hp=32;function G2(l){const i=String(l),r=/\r?\n|\r/g;let u=r.exec(i),c=0;const f=[];for(;u;)f.push(mp(i.slice(c,u.index),c>0,!0),u[0]),c=u.index+u[0].length,u=r.exec(i);return f.push(mp(i.slice(c),c>0,!1)),f.join("")}function mp(l,i,r){let u=0,c=l.length;if(i){let f=l.codePointAt(u);for(;f===dp||f===hp;)u++,f=l.codePointAt(u)}if(r){let f=l.codePointAt(c-1);for(;f===dp||f===hp;)c--,f=l.codePointAt(c-1)}return c>u?l.slice(u,c):""}function V2(l,i){const r={type:"text",value:G2(String(i.value))};return l.patch(i,r),l.applyData(i,r)}function X2(l,i){const r={type:"element",tagName:"hr",properties:{},children:[]};return l.patch(i,r),l.applyData(i,r)}const Q2={blockquote:v2,break:S2,code:E2,delete:T2,emphasis:k2,footnoteReference:w2,heading:z2,html:N2,imageReference:A2,image:C2,inlineCode:_2,linkReference:M2,link:j2,listItem:O2,list:R2,paragraph:U2,root:B2,strong:L2,table:H2,tableCell:Y2,tableRow:q2,text:V2,thematicBreak:X2,toml:lu,yaml:lu,definition:lu,footnoteDefinition:lu};function lu(){}const wg=-1,du=0,Oi=1,ou=2,Tc=3,kc=4,wc=5,zc=6,zg=7,Ng=8,Z2=typeof self=="object"?self:globalThis,pp=(l,i)=>{switch(l){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+l)}return new Z2[l](i)},K2=(l,i)=>{const r=(c,f)=>(l.set(f,c),c),u=c=>{if(l.has(c))return l.get(c);const[f,d]=i[c];switch(f){case du:case wg:return r(d,c);case Oi:{const p=r([],c);for(const y of d)p.push(u(y));return p}case ou:{const p=r({},c);for(const[y,m]of d)p[u(y)]=u(m);return p}case Tc:return r(new Date(d),c);case kc:{const{source:p,flags:y}=d;return r(new RegExp(p,y),c)}case wc:{const p=r(new Map,c);for(const[y,m]of d)p.set(u(y),u(m));return p}case zc:{const p=r(new Set,c);for(const y of d)p.add(u(y));return p}case zg:{const{name:p,message:y}=d;return r(pp(p,y),c)}case Ng:return r(BigInt(d),c);case"BigInt":return r(Object(BigInt(d)),c);case"ArrayBuffer":return r(new Uint8Array(d).buffer,d);case"DataView":{const{buffer:p}=new Uint8Array(d);return r(new DataView(p),d)}}return r(pp(f,d),c)};return u},gp=l=>K2(new Map,l)(0),za="",{toString:J2}={},{keys:F2}=Object,_i=l=>{const i=typeof l;if(i!=="object"||!l)return[du,i];const r=J2.call(l).slice(8,-1);switch(r){case"Array":return[Oi,za];case"Object":return[ou,za];case"Date":return[Tc,za];case"RegExp":return[kc,za];case"Map":return[wc,za];case"Set":return[zc,za];case"DataView":return[Oi,r]}return r.includes("Array")?[Oi,r]:r.includes("Error")?[zg,r]:[ou,r]},au=([l,i])=>l===du&&(i==="function"||i==="symbol"),I2=(l,i,r,u)=>{const c=(d,p)=>{const y=u.push(d)-1;return r.set(p,y),y},f=d=>{if(r.has(d))return r.get(d);let[p,y]=_i(d);switch(p){case du:{let g=d;switch(y){case"bigint":p=Ng,g=d.toString();break;case"function":case"symbol":if(l)throw new TypeError("unable to serialize "+y);g=null;break;case"undefined":return c([wg],d)}return c([p,g],d)}case Oi:{if(y){let k=d;return y==="DataView"?k=new Uint8Array(d.buffer):y==="ArrayBuffer"&&(k=new Uint8Array(d)),c([y,[...k]],d)}const g=[],b=c([p,g],d);for(const k of d)g.push(f(k));return b}case ou:{if(y)switch(y){case"BigInt":return c([y,d.toString()],d);case"Boolean":case"Number":case"String":return c([y,d.valueOf()],d)}if(i&&"toJSON"in d)return f(d.toJSON());const g=[],b=c([p,g],d);for(const k of F2(d))(l||!au(_i(d[k])))&&g.push([f(k),f(d[k])]);return b}case Tc:return c([p,d.toISOString()],d);case kc:{const{source:g,flags:b}=d;return c([p,{source:g,flags:b}],d)}case wc:{const g=[],b=c([p,g],d);for(const[k,S]of d)(l||!(au(_i(k))||au(_i(S))))&&g.push([f(k),f(S)]);return b}case zc:{const g=[],b=c([p,g],d);for(const k of d)(l||!au(_i(k)))&&g.push(f(k));return b}}const{message:m}=d;return c([p,{name:y,message:m}],d)};return f},yp=(l,{json:i,lossy:r}={})=>{const u=[];return I2(!(i||r),!!i,new Map,u)(l),u},su=typeof structuredClone=="function"?(l,i)=>i&&("json"in i||"lossy"in i)?gp(yp(l,i)):structuredClone(l):(l,i)=>gp(yp(l,i));function $2(l,i){const r=[{type:"text",value:"↩"}];return i>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(i)}]}),r}function W2(l,i){return"Back to reference "+(l+1)+(i>1?"-"+i:"")}function P2(l){const i=typeof l.options.clobberPrefix=="string"?l.options.clobberPrefix:"user-content-",r=l.options.footnoteBackContent||$2,u=l.options.footnoteBackLabel||W2,c=l.options.footnoteLabel||"Footnotes",f=l.options.footnoteLabelTagName||"h2",d=l.options.footnoteLabelProperties||{className:["sr-only"]},p=[];let y=-1;for(;++y<l.footnoteOrder.length;){const m=l.footnoteById.get(l.footnoteOrder[y]);if(!m)continue;const g=l.all(m),b=String(m.identifier).toUpperCase(),k=Ma(b.toLowerCase());let S=0;const U=[],G=l.footnoteCounts.get(b);for(;G!==void 0&&++S<=G;){U.length>0&&U.push({type:"text",value:" "});let ne=typeof r=="string"?r:r(y,S);typeof ne=="string"&&(ne={type:"text",value:ne}),U.push({type:"element",tagName:"a",properties:{href:"#"+i+"fnref-"+k+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(y,S),className:["data-footnote-backref"]},children:Array.isArray(ne)?ne:[ne]})}const J=g[g.length-1];if(J&&J.type==="element"&&J.tagName==="p"){const ne=J.children[J.children.length-1];ne&&ne.type==="text"?ne.value+=" ":J.children.push({type:"text",value:" "}),J.children.push(...U)}else g.push(...U);const q={type:"element",tagName:"li",properties:{id:i+"fn-"+k},children:l.wrap(g,!0)};l.patch(m,q),p.push(q)}if(p.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:f,properties:{...su(d),id:"footnote-label"},children:[{type:"text",value:c}]},{type:"text",value:`
222
- `},{type:"element",tagName:"ol",properties:{},children:l.wrap(p,!0)},{type:"text",value:`
223
- `}]}}const Ag=(function(l){if(l==null)return lE;if(typeof l=="function")return hu(l);if(typeof l=="object")return Array.isArray(l)?eE(l):tE(l);if(typeof l=="string")return nE(l);throw new Error("Expected function, string, or object as test")});function eE(l){const i=[];let r=-1;for(;++r<l.length;)i[r]=Ag(l[r]);return hu(u);function u(...c){let f=-1;for(;++f<i.length;)if(i[f].apply(this,c))return!0;return!1}}function tE(l){const i=l;return hu(r);function r(u){const c=u;let f;for(f in l)if(c[f]!==i[f])return!1;return!0}}function nE(l){return hu(i);function i(r){return r&&r.type===l}}function hu(l){return i;function i(r,u,c){return!!(aE(r)&&l.call(this,r,typeof u=="number"?u:void 0,c||void 0))}}function lE(){return!0}function aE(l){return l!==null&&typeof l=="object"&&"type"in l}const Cg=[],iE=!0,xp=!1,rE="skip";function uE(l,i,r,u){let c;typeof i=="function"&&typeof r!="function"?(u=r,r=i):c=i;const f=Ag(c),d=u?-1:1;p(l,void 0,[])();function p(y,m,g){const b=y&&typeof y=="object"?y:{};if(typeof b.type=="string"){const S=typeof b.tagName=="string"?b.tagName:typeof b.name=="string"?b.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(y.type+(S?"<"+S+">":""))+")"})}return k;function k(){let S=Cg,U,G,J;if((!i||f(y,m,g[g.length-1]||void 0))&&(S=oE(r(y,g)),S[0]===xp))return S;if("children"in y&&y.children){const q=y;if(q.children&&S[0]!==rE)for(G=(u?q.children.length:-1)+d,J=g.concat(q);G>-1&&G<q.children.length;){const ne=q.children[G];if(U=p(ne,G,J)(),U[0]===xp)return U;G=typeof U[1]=="number"?U[1]:G+d}}return S}}}function oE(l){return Array.isArray(l)?l:typeof l=="number"?[iE,l]:l==null?Cg:[l]}function _g(l,i,r,u){let c,f,d;typeof i=="function"&&typeof r!="function"?(f=void 0,d=i,c=r):(f=i,d=r,c=u),uE(l,f,p,c);function p(y,m){const g=m[m.length-1],b=g?g.children.indexOf(y):void 0;return d(y,b,g)}}const ic={}.hasOwnProperty,sE={};function cE(l,i){const r=i||sE,u=new Map,c=new Map,f=new Map,d={...Q2,...r.handlers},p={all:m,applyData:dE,definitionById:u,footnoteById:c,footnoteCounts:f,footnoteOrder:[],handlers:d,one:y,options:r,patch:fE,wrap:mE};return _g(l,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const b=g.type==="definition"?u:c,k=String(g.identifier).toUpperCase();b.has(k)||b.set(k,g)}}),p;function y(g,b){const k=g.type,S=p.handlers[k];if(ic.call(p.handlers,k)&&S)return S(p,g,b);if(p.options.passThrough&&p.options.passThrough.includes(k)){if("children"in g){const{children:G,...J}=g,q=su(J);return q.children=p.all(g),q}return su(g)}return(p.options.unknownHandler||hE)(p,g,b)}function m(g){const b=[];if("children"in g){const k=g.children;let S=-1;for(;++S<k.length;){const U=p.one(k[S],g);if(U){if(S&&k[S-1].type==="break"&&(!Array.isArray(U)&&U.type==="text"&&(U.value=bp(U.value)),!Array.isArray(U)&&U.type==="element")){const G=U.children[0];G&&G.type==="text"&&(G.value=bp(G.value))}Array.isArray(U)?b.push(...U):b.push(U)}}}return b}}function fE(l,i){l.position&&(i.position=K0(l))}function dE(l,i){let r=i;if(l&&l.data){const u=l.data.hName,c=l.data.hChildren,f=l.data.hProperties;if(typeof u=="string")if(r.type==="element")r.tagName=u;else{const d="children"in r?r.children:[r];r={type:"element",tagName:u,properties:{},children:d}}r.type==="element"&&f&&Object.assign(r.properties,su(f)),"children"in r&&r.children&&c!==null&&c!==void 0&&(r.children=c)}return r}function hE(l,i){const r=i.data||{},u="value"in i&&!(ic.call(r,"hProperties")||ic.call(r,"hChildren"))?{type:"text",value:i.value}:{type:"element",tagName:"div",properties:{},children:l.all(i)};return l.patch(i,u),l.applyData(i,u)}function mE(l,i){const r=[];let u=-1;for(i&&r.push({type:"text",value:`
224
- `});++u<l.length;)u&&r.push({type:"text",value:`
225
- `}),r.push(l[u]);return i&&l.length>0&&r.push({type:"text",value:`
226
- `}),r}function bp(l){let i=0,r=l.charCodeAt(i);for(;r===9||r===32;)i++,r=l.charCodeAt(i);return l.slice(i)}function vp(l,i){const r=cE(l,i),u=r.one(l,void 0),c=P2(r),f=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return c&&f.children.push({type:"text",value:`
227
- `},c),f}function pE(l,i){return l&&"run"in l?async function(r,u){const c=vp(r,{file:u,...i});await l.run(c,u)}:function(r,u){return vp(r,{file:u,...l||i})}}function Sp(l){if(l)throw l}var Gs,Ep;function gE(){if(Ep)return Gs;Ep=1;var l=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=function(m){return typeof Array.isArray=="function"?Array.isArray(m):i.call(m)==="[object Array]"},f=function(m){if(!m||i.call(m)!=="[object Object]")return!1;var g=l.call(m,"constructor"),b=m.constructor&&m.constructor.prototype&&l.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!g&&!b)return!1;var k;for(k in m);return typeof k>"u"||l.call(m,k)},d=function(m,g){r&&g.name==="__proto__"?r(m,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):m[g.name]=g.newValue},p=function(m,g){if(g==="__proto__")if(l.call(m,g)){if(u)return u(m,g).value}else return;return m[g]};return Gs=function y(){var m,g,b,k,S,U,G=arguments[0],J=1,q=arguments.length,ne=!1;for(typeof G=="boolean"&&(ne=G,G=arguments[1]||{},J=2),(G==null||typeof G!="object"&&typeof G!="function")&&(G={});J<q;++J)if(m=arguments[J],m!=null)for(g in m)b=p(G,g),k=p(m,g),G!==k&&(ne&&k&&(f(k)||(S=c(k)))?(S?(S=!1,U=b&&c(b)?b:[]):U=b&&f(b)?b:{},d(G,{name:g,newValue:y(ne,U,k)})):typeof k<"u"&&d(G,{name:g,newValue:k}));return G},Gs}var yE=gE();const Vs=Cp(yE);function rc(l){if(typeof l!="object"||l===null)return!1;const i=Object.getPrototypeOf(l);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in l)&&!(Symbol.iterator in l)}function xE(){const l=[],i={run:r,use:u};return i;function r(...c){let f=-1;const d=c.pop();if(typeof d!="function")throw new TypeError("Expected function as last argument, not "+d);p(null,...c);function p(y,...m){const g=l[++f];let b=-1;if(y){d(y);return}for(;++b<c.length;)(m[b]===null||m[b]===void 0)&&(m[b]=c[b]);c=m,g?bE(g,p)(...m):d(null,...m)}}function u(c){if(typeof c!="function")throw new TypeError("Expected `middelware` to be a function, not "+c);return l.push(c),i}}function bE(l,i){let r;return u;function u(...d){const p=l.length>d.length;let y;p&&d.push(c);try{y=l.apply(this,d)}catch(m){const g=m;if(p&&r)throw g;return c(g)}p||(y&&y.then&&typeof y.then=="function"?y.then(f,c):y instanceof Error?c(y):f(y))}function c(d,...p){r||(r=!0,i(d,...p))}function f(d){c(null,d)}}const pn={basename:vE,dirname:SE,extname:EE,join:TE,sep:"/"};function vE(l,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');Ui(l);let r=0,u=-1,c=l.length,f;if(i===void 0||i.length===0||i.length>l.length){for(;c--;)if(l.codePointAt(c)===47){if(f){r=c+1;break}}else u<0&&(f=!0,u=c+1);return u<0?"":l.slice(r,u)}if(i===l)return"";let d=-1,p=i.length-1;for(;c--;)if(l.codePointAt(c)===47){if(f){r=c+1;break}}else d<0&&(f=!0,d=c+1),p>-1&&(l.codePointAt(c)===i.codePointAt(p--)?p<0&&(u=c):(p=-1,u=d));return r===u?u=d:u<0&&(u=l.length),l.slice(r,u)}function SE(l){if(Ui(l),l.length===0)return".";let i=-1,r=l.length,u;for(;--r;)if(l.codePointAt(r)===47){if(u){i=r;break}}else u||(u=!0);return i<0?l.codePointAt(0)===47?"/":".":i===1&&l.codePointAt(0)===47?"//":l.slice(0,i)}function EE(l){Ui(l);let i=l.length,r=-1,u=0,c=-1,f=0,d;for(;i--;){const p=l.codePointAt(i);if(p===47){if(d){u=i+1;break}continue}r<0&&(d=!0,r=i+1),p===46?c<0?c=i:f!==1&&(f=1):c>-1&&(f=-1)}return c<0||r<0||f===0||f===1&&c===r-1&&c===u+1?"":l.slice(c,r)}function TE(...l){let i=-1,r;for(;++i<l.length;)Ui(l[i]),l[i]&&(r=r===void 0?l[i]:r+"/"+l[i]);return r===void 0?".":kE(r)}function kE(l){Ui(l);const i=l.codePointAt(0)===47;let r=wE(l,!i);return r.length===0&&!i&&(r="."),r.length>0&&l.codePointAt(l.length-1)===47&&(r+="/"),i?"/"+r:r}function wE(l,i){let r="",u=0,c=-1,f=0,d=-1,p,y;for(;++d<=l.length;){if(d<l.length)p=l.codePointAt(d);else{if(p===47)break;p=47}if(p===47){if(!(c===d-1||f===1))if(c!==d-1&&f===2){if(r.length<2||u!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(y=r.lastIndexOf("/"),y!==r.length-1){y<0?(r="",u=0):(r=r.slice(0,y),u=r.length-1-r.lastIndexOf("/")),c=d,f=0;continue}}else if(r.length>0){r="",u=0,c=d,f=0;continue}}i&&(r=r.length>0?r+"/..":"..",u=2)}else r.length>0?r+="/"+l.slice(c+1,d):r=l.slice(c+1,d),u=d-c-1;c=d,f=0}else p===46&&f>-1?f++:f=-1}return r}function Ui(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}const zE={cwd:NE};function NE(){return"/"}function uc(l){return!!(l!==null&&typeof l=="object"&&"href"in l&&l.href&&"protocol"in l&&l.protocol&&l.auth===void 0)}function AE(l){if(typeof l=="string")l=new URL(l);else if(!uc(l)){const i=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+l+"`");throw i.code="ERR_INVALID_ARG_TYPE",i}if(l.protocol!=="file:"){const i=new TypeError("The URL must be of scheme file");throw i.code="ERR_INVALID_URL_SCHEME",i}return CE(l)}function CE(l){if(l.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const i=l.pathname;let r=-1;for(;++r<i.length;)if(i.codePointAt(r)===37&&i.codePointAt(r+1)===50){const u=i.codePointAt(r+2);if(u===70||u===102){const c=new TypeError("File URL path must not include encoded / characters");throw c.code="ERR_INVALID_FILE_URL_PATH",c}}return decodeURIComponent(i)}const Xs=["history","path","basename","stem","extname","dirname"];class Mg{constructor(i){let r;i?uc(i)?r={path:i}:typeof i=="string"||_E(i)?r={value:i}:r=i:r={},this.cwd="cwd"in r?"":zE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Xs.length;){const f=Xs[u];f in r&&r[f]!==void 0&&r[f]!==null&&(this[f]=f==="history"?[...r[f]]:r[f])}let c;for(c in r)Xs.includes(c)||(this[c]=r[c])}get basename(){return typeof this.path=="string"?pn.basename(this.path):void 0}set basename(i){Zs(i,"basename"),Qs(i,"basename"),this.path=pn.join(this.dirname||"",i)}get dirname(){return typeof this.path=="string"?pn.dirname(this.path):void 0}set dirname(i){Tp(this.basename,"dirname"),this.path=pn.join(i||"",this.basename)}get extname(){return typeof this.path=="string"?pn.extname(this.path):void 0}set extname(i){if(Qs(i,"extname"),Tp(this.dirname,"extname"),i){if(i.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(i.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=pn.join(this.dirname,this.stem+(i||""))}get path(){return this.history[this.history.length-1]}set path(i){uc(i)&&(i=AE(i)),Zs(i,"path"),this.path!==i&&this.history.push(i)}get stem(){return typeof this.path=="string"?pn.basename(this.path,this.extname):void 0}set stem(i){Zs(i,"stem"),Qs(i,"stem"),this.path=pn.join(this.dirname||"",i+(this.extname||""))}fail(i,r,u){const c=this.message(i,r,u);throw c.fatal=!0,c}info(i,r,u){const c=this.message(i,r,u);return c.fatal=void 0,c}message(i,r,u){const c=new bt(i,r,u);return this.path&&(c.name=this.path+":"+c.name,c.file=this.path),c.fatal=!1,this.messages.push(c),c}toString(i){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(i||void 0).decode(this.value)}}function Qs(l,i){if(l&&l.includes(pn.sep))throw new Error("`"+i+"` cannot be a path: did not expect `"+pn.sep+"`")}function Zs(l,i){if(!l)throw new Error("`"+i+"` cannot be empty")}function Tp(l,i){if(!l)throw new Error("Setting `"+i+"` requires `path` to be set too")}function _E(l){return!!(l&&typeof l=="object"&&"byteLength"in l&&"byteOffset"in l)}const ME=(function(l){const u=this.constructor.prototype,c=u[l],f=function(){return c.apply(f,arguments)};return Object.setPrototypeOf(f,u),f}),jE={}.hasOwnProperty;class Nc extends ME{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=xE()}copy(){const i=new Nc;let r=-1;for(;++r<this.attachers.length;){const u=this.attachers[r];i.use(...u)}return i.data(Vs(!0,{},this.namespace)),i}data(i,r){return typeof i=="string"?arguments.length===2?(Fs("data",this.frozen),this.namespace[i]=r,this):jE.call(this.namespace,i)&&this.namespace[i]||void 0:i?(Fs("data",this.frozen),this.namespace=i,this):this.namespace}freeze(){if(this.frozen)return this;const i=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const c=r.call(i,...u);typeof c=="function"&&this.transformers.use(c)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(i){this.freeze();const r=iu(i),u=this.parser||this.Parser;return Ks("parse",u),u(String(r),r)}process(i,r){const u=this;return this.freeze(),Ks("process",this.parser||this.Parser),Js("process",this.compiler||this.Compiler),r?c(void 0,r):new Promise(c);function c(f,d){const p=iu(i),y=u.parse(p);u.run(y,p,function(g,b,k){if(g||!b||!k)return m(g);const S=b,U=u.stringify(S,k);RE(U)?k.value=U:k.result=U,m(g,k)});function m(g,b){g||!b?d(g):f?f(b):r(void 0,b)}}}processSync(i){let r=!1,u;return this.freeze(),Ks("processSync",this.parser||this.Parser),Js("processSync",this.compiler||this.Compiler),this.process(i,c),wp("processSync","process",r),u;function c(f,d){r=!0,Sp(f),u=d}}run(i,r,u){kp(i),this.freeze();const c=this.transformers;return!u&&typeof r=="function"&&(u=r,r=void 0),u?f(void 0,u):new Promise(f);function f(d,p){const y=iu(r);c.run(i,y,m);function m(g,b,k){const S=b||i;g?p(g):d?d(S):u(void 0,S,k)}}}runSync(i,r){let u=!1,c;return this.run(i,r,f),wp("runSync","run",u),c;function f(d,p){Sp(d),c=p,u=!0}}stringify(i,r){this.freeze();const u=iu(r),c=this.compiler||this.Compiler;return Js("stringify",c),kp(i),c(i,u)}use(i,...r){const u=this.attachers,c=this.namespace;if(Fs("use",this.frozen),i!=null)if(typeof i=="function")y(i,r);else if(typeof i=="object")Array.isArray(i)?p(i):d(i);else throw new TypeError("Expected usable value, not `"+i+"`");return this;function f(m){if(typeof m=="function")y(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[g,...b]=m;y(g,b)}else d(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function d(m){if(!("plugins"in m)&&!("settings"in m))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");p(m.plugins),m.settings&&(c.settings=Vs(!0,c.settings,m.settings))}function p(m){let g=-1;if(m!=null)if(Array.isArray(m))for(;++g<m.length;){const b=m[g];f(b)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function y(m,g){let b=-1,k=-1;for(;++b<u.length;)if(u[b][0]===m){k=b;break}if(k===-1)u.push([m,...g]);else if(g.length>0){let[S,...U]=g;const G=u[k][1];rc(G)&&rc(S)&&(S=Vs(!0,G,S)),u[k]=[m,S,...U]}}}}const OE=new Nc().freeze();function Ks(l,i){if(typeof i!="function")throw new TypeError("Cannot `"+l+"` without `parser`")}function Js(l,i){if(typeof i!="function")throw new TypeError("Cannot `"+l+"` without `compiler`")}function Fs(l,i){if(i)throw new Error("Cannot call `"+l+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function kp(l){if(!rc(l)||typeof l.type!="string")throw new TypeError("Expected node, got `"+l+"`")}function wp(l,i,r){if(!r)throw new Error("`"+l+"` finished async. Use `"+i+"` instead")}function iu(l){return DE(l)?l:new Mg(l)}function DE(l){return!!(l&&typeof l=="object"&&"message"in l&&"messages"in l)}function RE(l){return typeof l=="string"||UE(l)}function UE(l){return!!(l&&typeof l=="object"&&"byteLength"in l&&"byteOffset"in l)}const BE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",zp=[],Np={allowDangerousHtml:!0},LE=/^(https?|ircs?|mailto|xmpp)$/i,HE=[{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 qE(l){const i=YE(l),r=GE(l);return VE(i.runSync(i.parse(r),r),l)}function YE(l){const i=l.rehypePlugins||zp,r=l.remarkPlugins||zp,u=l.remarkRehypeOptions?{...l.remarkRehypeOptions,...Np}:Np;return OE().use(b2).use(r).use(pE,u).use(i)}function GE(l){const i=l.children||"",r=new Mg;return typeof i=="string"&&(r.value=i),r}function VE(l,i){const r=i.allowedElements,u=i.allowElement,c=i.components,f=i.disallowedElements,d=i.skipHtml,p=i.unwrapDisallowed,y=i.urlTransform||XE;for(const g of HE)Object.hasOwn(i,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+BE+g.id,void 0);return _g(l,m),W0(l,{Fragment:v.Fragment,components:c,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function m(g,b,k){if(g.type==="raw"&&k&&typeof b=="number")return d?k.children.splice(b,1):k.children[b]={type:"text",value:g.value},b;if(g.type==="element"){let S;for(S in Hs)if(Object.hasOwn(Hs,S)&&Object.hasOwn(g.properties,S)){const U=g.properties[S],G=Hs[S];(G===null||G.includes(g.tagName))&&(g.properties[S]=y(String(U||""),S,g))}}if(g.type==="element"){let S=r?!r.includes(g.tagName):f?f.includes(g.tagName):!1;if(!S&&u&&typeof b=="number"&&(S=!u(g,b,k)),S&&k&&typeof b=="number")return p&&g.children?k.children.splice(b,1,...g.children):k.children.splice(b,1),b}}}function XE(l){const i=l.indexOf(":"),r=l.indexOf("?"),u=l.indexOf("#"),c=l.indexOf("/");return i===-1||c!==-1&&i>c||r!==-1&&i>r||u!==-1&&i>u||LE.test(l.slice(0,i))?l:""}function oc({children:l,className:i}){return v.jsx("div",{className:i,children:v.jsx(qE,{components:{p:({children:r})=>v.jsx("p",{className:"mb-2 last:mb-0",children:r}),h1:({children:r})=>v.jsx("h1",{className:"mb-2 text-lg font-bold",children:r}),h2:({children:r})=>v.jsx("h2",{className:"mb-2 text-base font-bold",children:r}),h3:({children:r})=>v.jsx("h3",{className:"mb-1 text-sm font-bold",children:r}),ul:({children:r})=>v.jsx("ul",{className:"mb-2 list-disc pl-4 last:mb-0",children:r}),ol:({children:r})=>v.jsx("ol",{className:"mb-2 list-decimal pl-4 last:mb-0",children:r}),li:({children:r})=>v.jsx("li",{className:"mb-0.5",children:r}),code:({children:r,className:u})=>(u==null?void 0:u.includes("language-"))?v.jsx("code",{className:"block overflow-x-auto rounded bg-background p-2 text-xs",children:r}):v.jsx("code",{className:"rounded bg-background px-1 py-0.5 text-xs",children:r}),pre:({children:r})=>v.jsx("pre",{className:"mb-2 last:mb-0",children:r}),blockquote:({children:r})=>v.jsx("blockquote",{className:"mb-2 border-l-2 border-muted pl-3 italic last:mb-0",children:r}),strong:({children:r})=>v.jsx("strong",{className:"font-semibold",children:r}),a:({children:r,href:u})=>v.jsx("a",{href:u,className:"text-accent-blue underline",target:"_blank",rel:"noreferrer",children:r})},children:l})})}function jg(l){return l==="Enter"||l===" "}function Ap(l){return typeof Element<"u"&&l instanceof Element&&l.closest("a")!=null}function QE({event:l}){const[i,r]=ee.useState(!1),u=l.text.length>200,c=()=>r(p=>!p),f=p=>{Ap(p.target)||c()},d=p=>{Ap(p.target)||jg(p.key)&&(p.preventDefault(),c())};return v.jsx("div",{className:"border-l-4 border-accent-purple rounded-r-md bg-background/50 p-3",children:u?v.jsxs("div",{role:"button",tabIndex:0,className:"flex w-full cursor-pointer items-start gap-2 bg-transparent p-0 text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-accent-purple/60","aria-expanded":i,"aria-label":"Toggle thought details",onClick:f,onKeyDown:d,children:[v.jsx(Um,{"aria-hidden":"true",className:"mt-0.5 h-4 w-4 shrink-0 text-accent-purple"}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-xs text-muted",children:dl(l.timestamp)}),v.jsx(cc,{className:ut("h-3 w-3 text-muted transition-transform",i&&"rotate-180")})]}),v.jsx("div",{className:ut("mt-1",!i&&"line-clamp-3"),children:v.jsx(oc,{className:"text-sm italic text-foreground/80",children:l.text})})]})]}):v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx(Um,{"aria-hidden":"true",className:"mt-0.5 h-4 w-4 shrink-0 text-accent-purple"}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("div",{className:"flex items-center gap-2",children:v.jsx("span",{className:"text-xs text-muted",children:dl(l.timestamp)})}),v.jsx("div",{className:"mt-1",children:v.jsx(oc,{className:"text-sm italic text-foreground/80",children:l.text})})]})]})})}function ZE({event:l}){return v.jsx("div",{className:"border-l-4 border-accent-blue rounded-r-md bg-background/50 p-3",children:v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx(Zx,{"aria-hidden":"true",className:"mt-0.5 h-4 w-4 shrink-0 text-accent-blue"}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("span",{className:"text-xs text-muted",children:dl(l.timestamp)}),v.jsx(oc,{className:"mt-1 text-sm",children:l.text})]})]})})}function KE(l){return Object.keys(l).length>0}function JE({event:l}){const[i,r]=ee.useState(!1),u=KE(l.input),c=()=>r(d=>!d),f=d=>{jg(d.key)&&(d.preventDefault(),c())};return v.jsxs("div",{className:ut("border-l-4 rounded-r-md bg-background/50 p-3",l.isError?"border-accent-red":"border-accent-orange"),children:[v.jsxs("div",{role:"button",tabIndex:0,className:ut("flex w-full cursor-pointer items-start gap-2 bg-transparent p-0 text-left focus:outline-none focus-visible:ring-2",l.isError?"focus-visible:ring-accent-red/60":"focus-visible:ring-accent-orange/60"),"aria-expanded":i,"aria-label":`Toggle ${l.toolName} details`,onClick:c,onKeyDown:f,children:[v.jsx(Bx,{"aria-hidden":"true",className:ut("mt-0.5 h-4 w-4 shrink-0",l.isError?"text-accent-red":"text-accent-orange")}),v.jsx("div",{className:"min-w-0 flex-1",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-xs text-muted",children:dl(l.timestamp)}),v.jsx("span",{className:"font-mono text-sm font-medium",children:l.toolName}),l.durationMs!=null&&v.jsx("span",{className:"text-xs text-muted",children:hc(l.durationMs)}),l.isError&&v.jsx("span",{className:"rounded-full bg-accent-red/20 px-1.5 py-0.5 text-xs text-accent-red",children:"error"}),v.jsx(cc,{className:ut("ml-auto h-3 w-3 text-muted transition-transform",i&&"rotate-180")})]})})]}),v.jsx("div",{className:ut("overflow-hidden transition-all duration-200",i?"mt-2 max-h-[2000px] opacity-100":"max-h-0 opacity-0"),children:v.jsxs("div",{className:"space-y-2 pl-6",children:[u&&v.jsxs("div",{children:[v.jsx("span",{className:"text-xs font-medium text-muted",children:"Input"}),v.jsx("pre",{className:"mt-1 max-h-64 overflow-auto rounded-md bg-background p-2 text-xs font-mono text-foreground/80",children:JSON.stringify(l.input,null,2)})]}),l.output!=null&&v.jsxs("div",{children:[v.jsx("span",{className:"text-xs font-medium text-muted",children:"Output"}),v.jsx("pre",{className:"mt-1 max-h-64 overflow-auto rounded-md bg-background p-2 text-xs font-mono text-foreground/80",children:typeof l.output=="string"?l.output:JSON.stringify(l.output,null,2)})]})]})})]})}function FE({event:l}){return v.jsx("div",{className:"border-l-4 border-accent-green rounded-r-md bg-background/50 p-3",children:v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx(Mx,{"aria-hidden":"true",className:"mt-0.5 h-4 w-4 shrink-0 text-accent-green"}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-xs text-muted",children:dl(l.timestamp)}),v.jsx("span",{className:"text-xs font-medium text-accent-green",children:"Turn completed"})]}),v.jsxs("div",{className:"mt-1 flex items-center gap-3 text-xs text-muted",children:[l.usage&&v.jsxs(v.Fragment,{children:[v.jsxs("span",{children:["In:"," ",v.jsx("span",{className:"text-foreground",children:Aa(l.usage.inputTokens)})," ","tokens"]}),v.jsxs("span",{children:["Out:"," ",v.jsx("span",{className:"text-foreground",children:Aa(l.usage.outputTokens)})," ","tokens"]})]}),l.durationMs!=null&&v.jsxs("span",{children:["Duration:"," ",v.jsx("span",{className:"text-foreground",children:hc(l.durationMs)})]})]})]})]})})}function IE({event:l}){const i=l.kind==="turn_failed";return v.jsx("div",{className:ut("border-l-4 rounded-r-md bg-background/50 p-3",i?"border-accent-red":"border-muted"),children:v.jsxs("div",{className:"flex items-start gap-2",children:[i?v.jsx(Op,{"aria-hidden":"true",className:"mt-0.5 h-4 w-4 shrink-0 text-accent-red"}):v.jsx(Vx,{"aria-hidden":"true",className:"mt-0.5 h-4 w-4 shrink-0 text-muted"}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("span",{className:"text-xs text-muted",children:dl(l.timestamp)}),v.jsx("p",{className:"mt-1 text-sm",children:l.text})]})]})})}function $E(l){const i=new WeakSet;return JSON.stringify(l,(r,u)=>typeof u=="bigint"?u.toString():typeof u!="object"||u===null?u:i.has(u)?"[Circular]":(i.add(u),u),2)}function WE({event:l}){return v.jsx("div",{className:"border-l-4 border-muted rounded-r-md bg-background/50 p-3",children:v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx(Ox,{"aria-hidden":"true",className:"mt-0.5 h-4 w-4 shrink-0 text-muted"}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-xs text-muted",children:dl(l.timestamp)}),v.jsx("span",{className:"text-xs font-medium text-muted",children:"Unknown event"})]}),v.jsx("pre",{className:"mt-2 max-h-64 overflow-auto whitespace-pre-wrap break-words rounded-md bg-background p-2 text-xs font-mono text-foreground/80",children:$E(l.raw)})]})]})})}function PE(l){throw new Error(`Unhandled display event: ${JSON.stringify(l)}`)}function e4(l){return`${l.sourceIndex}-${l.event.kind}`}const t4=ee.memo(function({event:i}){switch(i.kind){case"thought":return v.jsx(QE,{event:i});case"message":return v.jsx(ZE,{event:i});case"tool_call":return v.jsx(JE,{event:i});case"turn_completed":return v.jsx(FE,{event:i});case"turn_failed":case"notification":return v.jsx(IE,{event:i});case"unknown":return v.jsx(WE,{event:i});default:return PE(i)}});function n4(l){const i=[];let r=0,u=[];for(const[c,f]of l.entries())f.kind==="turn_started"?(u.length>0&&i.push({turnIndex:r,events:u}),r=f.turnIndex,u=[]):u.push({event:f,sourceIndex:c});return u.length>0&&i.push({turnIndex:r,events:u}),i}function l4({events:l,loading:i}){var k;const[r,u]=ee.useState(!0),[c,f]=ee.useState(new Set),d=ee.useMemo(()=>{const S=n4(l);return r?[...S].reverse().map(U=>({...U,events:[...U.events].reverse()})):S},[l,r]),p=(k=d[0])==null?void 0:k.turnIndex;ee.useEffect(()=>{r&&p!=null&&f(S=>{if(S.has(p))return S;const U=new Set(S);return U.add(p),U})},[r,p]);const y=ee.useMemo(()=>d.length>0&&d.every(S=>c.has(S.turnIndex)),[d,c]),m=S=>{f(U=>{const G=new Set(U);return G.has(S)?G.delete(S):G.add(S),G})},g=()=>{f(y?new Set:new Set(d.map(S=>S.turnIndex)))},b=ee.useCallback(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);return i&&l.length===0?v.jsxs("div",{className:"flex items-center justify-center py-16",children:[v.jsx(Is,{className:"h-6 w-6 animate-spin text-accent-purple"}),v.jsx("span",{className:"ml-2 text-sm text-muted",children:"Loading events..."})]}):l.length===0?v.jsx("div",{className:"rounded-lg border border-border bg-card p-8 text-center",children:v.jsx("p",{className:"text-sm text-muted",children:"No events recorded yet."})}):v.jsxs("div",{className:"space-y-3",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("h2",{className:"text-sm font-medium text-muted",children:["Timeline (",l.length," events)"]}),i&&v.jsx(Is,{"aria-label":"Loading events",className:"h-3.5 w-3.5 animate-spin text-accent-purple"})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("button",{onClick:()=>u(S=>!S),className:"flex items-center gap-1 rounded-md border border-border px-2 py-1 text-xs text-muted hover:text-foreground transition-colors",children:[v.jsx(gx,{className:"h-3 w-3"}),r?"Newest first":"Oldest first"]}),v.jsxs("button",{onClick:g,className:"flex items-center gap-1 rounded-md border border-border px-2 py-1 text-xs text-muted hover:text-foreground transition-colors",children:[y?v.jsx(Nx,{className:"h-3 w-3"}):v.jsx(Cx,{className:"h-3 w-3"}),y?"Collapse all":"Expand all"]}),v.jsxs("button",{onClick:b,"aria-label":"Scroll to top",className:"flex items-center gap-1 rounded-md border border-border px-2 py-1 text-xs text-muted hover:text-foreground transition-colors",children:[v.jsx(jp,{className:"h-3 w-3"}),"Go to top"]})]})]}),d.map(S=>{const U=c.has(S.turnIndex);return v.jsxs("div",{className:"rounded-lg border border-border bg-card overflow-hidden",children:[v.jsxs("button",{onClick:()=>m(S.turnIndex),"aria-expanded":U,className:ut("flex w-full items-center justify-between px-4 py-2.5 text-left","hover:bg-muted/20 transition-colors"),children:[v.jsxs("span",{className:"text-sm font-medium",children:["Turn ",S.turnIndex,v.jsxs("span",{className:"ml-2 text-xs text-muted",children:["(",S.events.length," events)"]})]}),v.jsx(Tx,{className:ut("h-4 w-4 text-muted transition-transform",U&&"rotate-90")})]}),v.jsx("div",{className:ut("grid transition-[grid-template-rows,opacity] duration-200",U?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:v.jsx("div",{className:"overflow-hidden",children:v.jsxs("div",{className:"space-y-2 px-4 pb-3",children:[S.events.map(G=>v.jsx(t4,{event:G.event},e4(G))),v.jsxs("button",{onClick:()=>m(S.turnIndex),className:"flex items-center gap-1 rounded-md border border-border px-2 py-1 text-xs text-muted hover:text-foreground transition-colors",children:[v.jsx(wx,{className:"h-3 w-3"}),"Collapse turn"]})]})})})]},S.turnIndex)})]})}function a4({issueId:l,onBack:i}){const{tickets:r,selectedTicketId:u,setSelectedTicketId:c,events:f,stats:d,loading:p,traceExists:y,hasNewUpdates:m,scrollToTop:g}=g0();ee.useEffect(()=>{l&&u!==l&&c(l)},[l,u,c]);const b=k=>{window.location.hash=`#/trace/${encodeURIComponent(k)}`};return v.jsxs("div",{className:"space-y-6",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsxs("button",{onClick:i,"aria-label":"Go back to overview",className:"flex items-center gap-1.5 rounded-lg border border-border bg-card px-3 py-1.5 text-sm text-muted transition-colors hover:border-muted hover:text-foreground",children:[v.jsx(mx,{className:"h-3.5 w-3.5"}),"Overview"]}),u&&v.jsx(v.Fragment,{children:v.jsx(x0,{tickets:r,selectedId:u,onSelect:k=>{k?b(k):window.location.hash="#/trace"}})})]}),m&&v.jsxs("button",{onClick:g,className:"fixed left-1/2 top-16 z-40 flex -translate-x-1/2 items-center gap-1.5 rounded-full border border-accent-purple/30 bg-background/95 px-3 py-1.5 text-xs font-medium text-accent-purple shadow-lg shadow-black/20 backdrop-blur-sm transition-colors hover:border-accent-purple/50 hover:bg-accent-purple/10",children:[v.jsx(jp,{className:"h-3 w-3"}),"New updates available"]}),v.jsx("div",{"aria-live":"polite","aria-atomic":"true",children:v.jsx(i4,{selectedTicketId:u,traceExists:y,events:f,stats:d,loading:p,onSelect:b})})]})}function i4({selectedTicketId:l,traceExists:i,events:r,stats:u,loading:c,onSelect:f}){return l?i===!1?v.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[v.jsx(cx,{"aria-hidden":"true",className:"h-10 w-10 text-muted"}),v.jsx("p",{className:"mt-4 text-sm font-medium text-foreground",children:l}),v.jsx("p",{className:"mt-2 max-w-md text-sm text-muted",children:"Trace data has been cleaned up for this issue. This is normal — traces are periodically removed to save disk space."})]}):v.jsxs("div",{className:"space-y-6",children:[u&&v.jsx(T0,{stats:u}),v.jsx(l4,{events:r,loading:c},l)]}):v.jsx(S0,{onSelect:f})}function r4(){const{route:l,navigate:i}=ib(),{state:r,connected:u}=ub();return v.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[v.jsx("header",{className:"sticky top-0 z-50 border-b border-border bg-background/95 backdrop-blur",children:v.jsxs("div",{className:"mx-auto flex h-14 max-w-7xl items-center gap-4 px-4",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Mp,{className:"h-5 w-5 text-accent-purple"}),v.jsx("h1",{className:"text-lg font-semibold",children:"Lorenz"})]}),v.jsxs("nav",{className:"flex items-center gap-1 text-sm",children:[v.jsx("a",{href:"#/",className:`rounded-md px-3 py-1.5 transition-colors ${l.view==="overview"?"bg-surface text-foreground":"text-muted hover:text-foreground"}`,children:"Overview"}),v.jsx("a",{href:"#/trace/",className:`rounded-md px-3 py-1.5 transition-colors ${l.view==="trace"?"bg-surface text-foreground":"text-muted hover:text-foreground"}`,children:"Issues"})]})]})}),v.jsxs("main",{className:"mx-auto max-w-7xl px-4 py-6",children:[l.view==="overview"&&v.jsx(s0,{state:r,connected:u}),l.view==="trace"&&v.jsx(a4,{issueId:l.issueId,onBack:()=>i("/")})]})]})}nx.createRoot(document.getElementById("root")).render(v.jsx(ee.StrictMode,{children:v.jsx(r4,{})}));