@abnersajr/claude-timeline 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1025 -46
- package/dist/db-reader.d.ts.map +1 -1
- package/dist/{pricing-DTmya3JY.mjs → pricing-5MZ5_SQc.mjs} +1 -1
- package/dist/{pricing-DTmya3JY.mjs.map → pricing-5MZ5_SQc.mjs.map} +1 -1
- package/dist/pricing-B9Z0E171.mjs +2 -0
- package/dist/server.cjs +69 -2
- package/dist/web/assets/{index-Dr0FGYfS.js → index-BbY4gr3z.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
- package/dist/db-reader-BrPRGqww.mjs +0 -1028
- package/dist/db-reader-BrPRGqww.mjs.map +0 -1
- package/dist/db-reader-CPXmkt55.mjs +0 -2
- package/dist/pricing-B-rwfwDB.mjs +0 -2
|
@@ -142,7 +142,7 @@ Error generating stack: `+s.message+`
|
|
|
142
142
|
*
|
|
143
143
|
* This source code is licensed under the ISC license.
|
|
144
144
|
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const tk=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],nk=_n("wifi-off",tk),ma="https://api.claude-dash.local";async function rk(e=50){const r=await fetch(`${ma}/api/sessions?limit=${e}`);if(!r.ok)throw new Error(`Failed to fetch sessions: ${r.status}`);return r.json()}async function ik(e){const r=await fetch(`${ma}/api/sessions/${e}`);if(!r.ok)throw new Error(`Failed to fetch session: ${r.status}`);return r.json()}async function lk(e){const r=await fetch(`${ma}/api/sessions/${e}/refresh`,{method:"POST"});if(!r.ok)throw new Error(`Failed to refresh session: ${r.status}`);return r.json()}async function ak(){const e=await fetch(`${ma}/api/sessions/refresh`,{method:"POST"});if(!e.ok)throw new Error(`Failed to refresh sessions: ${e.status}`);return e.json()}async function sk(){const e=await fetch(`${ma}/api/status`);if(!e.ok)throw new Error(`Failed to fetch status: ${e.status}`);return e.json()}async function ok(e){const r=await fetch(`${ma}/api/settings`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({costMethod:e})});if(!r.ok)throw new Error(`Failed to update settings: ${r.status}`);return r.json()}function uk(){return typeof window<"u"}function ck(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function fk(e){return uk()?e instanceof HTMLElement||e instanceof ck(e).HTMLElement:!1}const t0={};function Gu(e,r){const i=Z.useRef(t0);return i.current===t0&&(i.current=e(r)),i}const Ad=vb[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],dk=Ad&&Ad!==Z.useLayoutEffect?Ad:e=>e();function pa(e){const r=Gu(hk).current;return r.next=e,dk(r.effect),r.trampoline}function hk(){const e={next:void 0,callback:mk,trampoline:(...r)=>{var i;return(i=e.callback)==null?void 0:i.call(e,...r)},effect:()=>{e.callback=e.next}};return e}function mk(){}const pk={...vb},gk=()=>{},Rn=typeof document<"u"?Z.useLayoutEffect:gk;function fh(e,r){if(e&&!r)return e;if(!e&&r)return r;if(e||r)return{...e,...r}}const Hh={};function Ih(e,r,i,a,o){if(!i&&!a&&!e)return Du(r);let u=Du(e);return r&&(u=Nu(u,r)),i&&(u=Nu(u,i)),a&&(u=Nu(u,a)),u}function yk(e){if(e.length===0)return Hh;if(e.length===1)return Du(e[0]);let r=Du(e[0]);for(let i=1;i<e.length;i+=1)r=Nu(r,e[i]);return r}function Du(e){return qh(e)?{...lv(e,Hh)}:xk(e)}function Nu(e,r){return qh(r)?lv(r,e):bk(e,r)}function xk(e){const r={...e};for(const i in r){const a=r[i];iv(i,a)&&(r[i]=av(a))}return r}function bk(e,r){if(!r)return e;for(const i in r){const a=r[i];switch(i){case"style":{e[i]=fh(e.style,a);break}case"className":{e[i]=sv(e.className,a);break}default:iv(i,a)?e[i]=vk(e[i],a):e[i]=a}}return e}function iv(e,r){const i=e.charCodeAt(0),a=e.charCodeAt(1),o=e.charCodeAt(2);return i===111&&a===110&&o>=65&&o<=90&&(typeof r=="function"||typeof r>"u")}function qh(e){return typeof e=="function"}function lv(e,r){return qh(e)?e(r):e??Hh}function vk(e,r){return r?e?(...i)=>{const a=i[0];if(ov(a)){const u=a;Lu(u);const c=r(...i);return u.baseUIHandlerPrevented||e==null||e(...i),c}const o=r(...i);return e==null||e(...i),o}:av(r):e}function av(e){return e&&((...r)=>{const i=r[0];return ov(i)&&Lu(i),e(...r)})}function Lu(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function sv(e,r){return r?e?r+" "+e:r:e}function ov(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Sk(e,r){return function(a,...o){const u=new URL(e);return u.searchParams.set("code",a.toString()),o.forEach(c=>u.searchParams.append("args[]",c)),`${r} error #${a}; visit ${u} for the full message.`}}const Ph=Sk("https://base-ui.com/production-error","Base UI"),wk=Z.createContext(void 0);function Ck(e=!1){const r=Z.useContext(wk);if(r===void 0&&!e)throw new Error(Ph(16));return r}function Tk(e){const{focusableWhenDisabled:r,disabled:i,composite:a=!1,tabIndex:o=0,isNativeButton:u}=e,c=a&&r!==!1,d=a&&r===!1;return{props:Z.useMemo(()=>{const m={onKeyDown(y){i&&r&&y.key!=="Tab"&&y.preventDefault()}};return a||(m.tabIndex=o,!u&&i&&(m.tabIndex=r?o:-1)),(u&&(r||c)||!u&&i)&&(m["aria-disabled"]=i),u&&(!r||d)&&(m.disabled=i),m},[a,i,r,c,d,u,o])}}function uv(e={}){const{disabled:r=!1,focusableWhenDisabled:i,tabIndex:a=0,native:o=!0,composite:u}=e,c=Z.useRef(null),d=Ck(!0),p=u??d!==void 0,{props:m}=Tk({focusableWhenDisabled:i,disabled:r,composite:p,tabIndex:a,isNativeButton:o}),y=Z.useCallback(()=>{const v=c.current;_d(v)&&p&&r&&m.disabled===void 0&&v.disabled&&(v.disabled=!1)},[r,m.disabled,p]);Rn(y,[y]);const g=Z.useCallback((v={})=>{const{onClick:C,onMouseDown:k,onKeyUp:T,onKeyDown:j,onPointerDown:H,..._}=v;return Ih({type:o?"button":void 0,onClick(L){if(r){L.preventDefault();return}C==null||C(L)},onMouseDown(L){r||k==null||k(L)},onKeyDown(L){if(r||(Lu(L),j==null||j(L),L.baseUIHandlerPrevented))return;const M=L.target===L.currentTarget,B=L.currentTarget,U=_d(B),P=!o&&kk(B),Y=M&&(o?U:!P),X=L.key==="Enter",q=L.key===" ",le=B.getAttribute("role"),$=(le==null?void 0:le.startsWith("menuitem"))||le==="option"||le==="gridcell";if(M&&p&&q){if(L.defaultPrevented&&$)return;L.preventDefault(),P||o&&U?(B.click(),L.preventBaseUIHandler()):Y&&(C==null||C(L),L.preventBaseUIHandler());return}Y&&(!o&&(q||X)&&L.preventDefault(),!o&&X&&(C==null||C(L)))},onKeyUp(L){if(!r){if(Lu(L),T==null||T(L),L.target===L.currentTarget&&o&&p&&_d(L.currentTarget)&&L.key===" "){L.preventDefault();return}L.baseUIHandlerPrevented||L.target===L.currentTarget&&!o&&!p&&L.key===" "&&(C==null||C(L))}},onPointerDown(L){if(r){L.preventDefault();return}H==null||H(L)}},o?void 0:{role:"button"},m,_)},[r,m,p,o]),b=pa(v=>{c.current=v,y()});return{getButtonProps:g,buttonRef:b}}function _d(e){return fk(e)&&e.tagName==="BUTTON"}function kk(e){return!!((e==null?void 0:e.tagName)==="A"&&(e!=null&&e.href))}function dh(e,r,i,a){const o=Gu(cv).current;return Nk(o,e,r,i,a)&&fv(o,[e,r,i,a]),o.callback}function Ek(e){const r=Gu(cv).current;return jk(r,e)&&fv(r,e),r.callback}function cv(){return{callback:null,cleanup:null,refs:[]}}function Nk(e,r,i,a,o){return e.refs[0]!==r||e.refs[1]!==i||e.refs[2]!==a||e.refs[3]!==o}function jk(e,r){return e.refs.length!==r.length||e.refs.some((i,a)=>i!==r[a])}function fv(e,r){if(e.refs=r,r.every(i=>i==null)){e.callback=null;return}e.callback=i=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),i!=null){const a=Array(r.length).fill(null);for(let o=0;o<r.length;o+=1){const u=r[o];if(u!=null)switch(typeof u){case"function":{const c=u(i);typeof c=="function"&&(a[o]=c);break}case"object":{u.current=i;break}}}e.cleanup=()=>{for(let o=0;o<r.length;o+=1){const u=r[o];if(u!=null)switch(typeof u){case"function":{const c=a[o];typeof c=="function"?c():u(null);break}case"object":{u.current=null;break}}}}}}}const Rk=parseInt(Z.version,10);function Ak(e){return Rk>=e}function n0(e){if(!Z.isValidElement(e))return null;const r=e,i=r.props;return(Ak(19)?i==null?void 0:i.ref:r.ref)??null}const Yl=Object.freeze({});function _k(e,r){const i={};for(const a in e){const o=e[a];if(r!=null&&r.hasOwnProperty(a)){const u=r[a](o);u!=null&&Object.assign(i,u);continue}o===!0?i[`data-${a.toLowerCase()}`]="":o&&(i[`data-${a.toLowerCase()}`]=o.toString())}return i}function Mk(e,r){return typeof e=="function"?e(r):e}function zk(e,r){return typeof e=="function"?e(r):e}function Qu(e,r,i={}){const a=r.render,o=Ok(r,i);if(i.enabled===!1)return null;const u=i.state??Yl;return Bk(e,a,o,u)}function Ok(e,r={}){const{className:i,style:a,render:o}=e,{state:u=Yl,ref:c,props:d,stateAttributesMapping:p,enabled:m=!0}=r,y=m?Mk(i,u):void 0,g=m?zk(a,u):void 0,b=m?_k(u,p):Yl,v=m&&d?Dk(d):void 0,C=m?fh(b,v)??{}:Yl;return typeof document<"u"&&(m?Array.isArray(c)?C.ref=Ek([C.ref,n0(o),...c]):C.ref=dh(C.ref,n0(o),c):dh(null,null)),m?(y!==void 0&&(C.className=sv(C.className,y)),g!==void 0&&(C.style=fh(C.style,g)),C):Yl}function Dk(e){return Array.isArray(e)?yk(e):Ih(void 0,e)}const Lk=Symbol.for("react.lazy");function Bk(e,r,i,a){if(r){if(typeof r=="function")return r(i,a);const o=Ih(i,r.props);o.ref=i.ref;let u=r;return(u==null?void 0:u.$$typeof)===Lk&&(u=Z.Children.toArray(r)[0]),Z.cloneElement(u,o)}if(e&&typeof e=="string")return Uk(e,i);throw new Error(Ph(8))}function Uk(e,r){return e==="button"?Z.createElement("button",{type:"button",...r,key:r.key}):e==="img"?Z.createElement("img",{alt:"",...r,key:r.key}):Z.createElement(e,r)}const Hk=Z.forwardRef(function(r,i){const{render:a,className:o,disabled:u=!1,focusableWhenDisabled:c=!1,nativeButton:d=!0,style:p,...m}=r,{getButtonProps:y,buttonRef:g}=uv({disabled:u,focusableWhenDisabled:c,native:d});return Qu("button",r,{state:{disabled:u},ref:[i,g],props:[m,y]})});function dv(e){var r,i,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(i=dv(e[r]))&&(a&&(a+=" "),a+=i)}else for(i in e)e[i]&&(a&&(a+=" "),a+=i);return a}function hv(){for(var e,r,i=0,a="",o=arguments.length;i<o;i++)(e=arguments[i])&&(r=dv(e))&&(a&&(a+=" "),a+=r);return a}const r0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,i0=hv,Ik=(e,r)=>i=>{var a;if((r==null?void 0:r.variants)==null)return i0(e,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:o,defaultVariants:u}=r,c=Object.keys(o).map(m=>{const y=i==null?void 0:i[m],g=u==null?void 0:u[m];if(y===null)return null;const b=r0(y)||r0(g);return o[m][b]}),d=i&&Object.entries(i).reduce((m,y)=>{let[g,b]=y;return b===void 0||(m[g]=b),m},{}),p=r==null||(a=r.compoundVariants)===null||a===void 0?void 0:a.reduce((m,y)=>{let{class:g,className:b,...v}=y;return Object.entries(v).every(C=>{let[k,T]=C;return Array.isArray(T)?T.includes({...u,...d}[k]):{...u,...d}[k]===T})?[...m,g,b]:m},[]);return i0(e,c,p,i==null?void 0:i.class,i==null?void 0:i.className)},qk=(e,r)=>{const i=new Array(e.length+r.length);for(let a=0;a<e.length;a++)i[a]=e[a];for(let a=0;a<r.length;a++)i[e.length+a]=r[a];return i},Pk=(e,r)=>({classGroupId:e,validator:r}),mv=(e=new Map,r=null,i)=>({nextPart:e,validators:r,classGroupId:i}),Bu="-",l0=[],Vk="arbitrary..",Gk=e=>{const r=Yk(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return Qk(c);const d=c.split(Bu),p=d[0]===""&&d.length>1?1:0;return pv(d,p,r)},getConflictingClassGroupIds:(c,d)=>{if(d){const p=a[c],m=i[c];return p?m?qk(m,p):p:m||l0}return i[c]||l0}}},pv=(e,r,i)=>{if(e.length-r===0)return i.classGroupId;const o=e[r],u=i.nextPart.get(o);if(u){const m=pv(e,r+1,u);if(m)return m}const c=i.validators;if(c===null)return;const d=r===0?e.join(Bu):e.slice(r).join(Bu),p=c.length;for(let m=0;m<p;m++){const y=c[m];if(y.validator(d))return y.classGroupId}},Qk=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),i=r.indexOf(":"),a=r.slice(0,i);return a?Vk+a:void 0})(),Yk=e=>{const{theme:r,classGroups:i}=e;return Fk(i,r)},Fk=(e,r)=>{const i=mv();for(const a in e){const o=e[a];Vh(o,i,a,r)}return i},Vh=(e,r,i,a)=>{const o=e.length;for(let u=0;u<o;u++){const c=e[u];Xk(c,r,i,a)}},Xk=(e,r,i,a)=>{if(typeof e=="string"){Kk(e,r,i);return}if(typeof e=="function"){Zk(e,r,i,a);return}Jk(e,r,i,a)},Kk=(e,r,i)=>{const a=e===""?r:gv(r,e);a.classGroupId=i},Zk=(e,r,i,a)=>{if($k(e)){Vh(e(a),r,i,a);return}r.validators===null&&(r.validators=[]),r.validators.push(Pk(i,e))},Jk=(e,r,i,a)=>{const o=Object.entries(e),u=o.length;for(let c=0;c<u;c++){const[d,p]=o[c];Vh(p,gv(r,d),i,a)}},gv=(e,r)=>{let i=e;const a=r.split(Bu),o=a.length;for(let u=0;u<o;u++){const c=a[u];let d=i.nextPart.get(c);d||(d=mv(),i.nextPart.set(c,d)),i=d}return i},$k=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Wk=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,i=Object.create(null),a=Object.create(null);const o=(u,c)=>{i[u]=c,r++,r>e&&(r=0,a=i,i=Object.create(null))};return{get(u){let c=i[u];if(c!==void 0)return c;if((c=a[u])!==void 0)return o(u,c),c},set(u,c){u in i?i[u]=c:o(u,c)}}},hh="!",a0=":",eE=[],s0=(e,r,i,a,o)=>({modifiers:e,hasImportantModifier:r,baseClassName:i,maybePostfixModifierPosition:a,isExternal:o}),tE=e=>{const{prefix:r,experimentalParseClassName:i}=e;let a=o=>{const u=[];let c=0,d=0,p=0,m;const y=o.length;for(let k=0;k<y;k++){const T=o[k];if(c===0&&d===0){if(T===a0){u.push(o.slice(p,k)),p=k+1;continue}if(T==="/"){m=k;continue}}T==="["?c++:T==="]"?c--:T==="("?d++:T===")"&&d--}const g=u.length===0?o:o.slice(p);let b=g,v=!1;g.endsWith(hh)?(b=g.slice(0,-1),v=!0):g.startsWith(hh)&&(b=g.slice(1),v=!0);const C=m&&m>p?m-p:void 0;return s0(u,v,b,C)};if(r){const o=r+a0,u=a;a=c=>c.startsWith(o)?u(c.slice(o.length)):s0(eE,!1,c,void 0,!0)}if(i){const o=a;a=u=>i({className:u,parseClassName:o})}return a},nE=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((i,a)=>{r.set(i,1e6+a)}),i=>{const a=[];let o=[];for(let u=0;u<i.length;u++){const c=i[u],d=c[0]==="[",p=r.has(c);d||p?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(c)):o.push(c)}return o.length>0&&(o.sort(),a.push(...o)),a}},rE=e=>({cache:Wk(e.cacheSize),parseClassName:tE(e),sortModifiers:nE(e),...Gk(e)}),iE=/\s+/,lE=(e,r)=>{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:u}=r,c=[],d=e.trim().split(iE);let p="";for(let m=d.length-1;m>=0;m-=1){const y=d[m],{isExternal:g,modifiers:b,hasImportantModifier:v,baseClassName:C,maybePostfixModifierPosition:k}=i(y);if(g){p=y+(p.length>0?" "+p:p);continue}let T=!!k,j=a(T?C.substring(0,k):C);if(!j){if(!T){p=y+(p.length>0?" "+p:p);continue}if(j=a(C),!j){p=y+(p.length>0?" "+p:p);continue}T=!1}const H=b.length===0?"":b.length===1?b[0]:u(b).join(":"),_=v?H+hh:H,V=_+j;if(c.indexOf(V)>-1)continue;c.push(V);const L=o(j,T);for(let M=0;M<L.length;++M){const B=L[M];c.push(_+B)}p=y+(p.length>0?" "+p:p)}return p},aE=(...e)=>{let r=0,i,a,o="";for(;r<e.length;)(i=e[r++])&&(a=yv(i))&&(o&&(o+=" "),o+=a);return o},yv=e=>{if(typeof e=="string")return e;let r,i="";for(let a=0;a<e.length;a++)e[a]&&(r=yv(e[a]))&&(i&&(i+=" "),i+=r);return i},sE=(e,...r)=>{let i,a,o,u;const c=p=>{const m=r.reduce((y,g)=>g(y),e());return i=rE(m),a=i.cache.get,o=i.cache.set,u=d,d(p)},d=p=>{const m=a(p);if(m)return m;const y=lE(p,i);return o(p,y),y};return u=c,(...p)=>u(aE(...p))},oE=[],Ct=e=>{const r=i=>i[e]||oE;return r.isThemeGetter=!0,r},xv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,uE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,cE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fE=/\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$/,dE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,hE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$r=e=>uE.test(e),Ae=e=>!!e&&!Number.isNaN(Number(e)),Wr=e=>!!e&&Number.isInteger(Number(e)),Md=e=>e.endsWith("%")&&Ae(e.slice(0,-1)),vr=e=>cE.test(e),vv=()=>!0,pE=e=>fE.test(e)&&!dE.test(e),Gh=()=>!1,gE=e=>hE.test(e),yE=e=>mE.test(e),xE=e=>!me(e)&&!pe(e),bE=e=>gi(e,Cv,Gh),me=e=>xv.test(e),Hi=e=>gi(e,Tv,pE),o0=e=>gi(e,NE,Ae),vE=e=>gi(e,Ev,vv),SE=e=>gi(e,kv,Gh),u0=e=>gi(e,Sv,Gh),wE=e=>gi(e,wv,yE),mu=e=>gi(e,Nv,gE),pe=e=>bv.test(e),gs=e=>tl(e,Tv),CE=e=>tl(e,kv),c0=e=>tl(e,Sv),TE=e=>tl(e,Cv),kE=e=>tl(e,wv),pu=e=>tl(e,Nv,!0),EE=e=>tl(e,Ev,!0),gi=(e,r,i)=>{const a=xv.exec(e);return a?a[1]?r(a[1]):i(a[2]):!1},tl=(e,r,i=!1)=>{const a=bv.exec(e);return a?a[1]?r(a[1]):i:!1},Sv=e=>e==="position"||e==="percentage",wv=e=>e==="image"||e==="url",Cv=e=>e==="length"||e==="size"||e==="bg-size",Tv=e=>e==="length",NE=e=>e==="number",kv=e=>e==="family-name",Ev=e=>e==="number"||e==="weight",Nv=e=>e==="shadow",jE=()=>{const e=Ct("color"),r=Ct("font"),i=Ct("text"),a=Ct("font-weight"),o=Ct("tracking"),u=Ct("leading"),c=Ct("breakpoint"),d=Ct("container"),p=Ct("spacing"),m=Ct("radius"),y=Ct("shadow"),g=Ct("inset-shadow"),b=Ct("text-shadow"),v=Ct("drop-shadow"),C=Ct("blur"),k=Ct("perspective"),T=Ct("aspect"),j=Ct("ease"),H=Ct("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...V(),pe,me],M=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],U=()=>[pe,me,p],P=()=>[$r,"full","auto",...U()],Y=()=>[Wr,"none","subgrid",pe,me],X=()=>["auto",{span:["full",Wr,pe,me]},Wr,pe,me],q=()=>[Wr,"auto",pe,me],le=()=>["auto","min","max","fr",pe,me],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...U()],W=()=>[$r,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],ce=()=>[$r,"screen","full","dvw","lvw","svw","min","max","fit",...U()],Se=()=>[$r,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],E=()=>[e,pe,me],A=()=>[...V(),c0,u0,{position:[pe,me]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",TE,bE,{size:[pe,me]}],oe=()=>[Md,gs,Hi],ue=()=>["","none","full",m,pe,me],fe=()=>["",Ae,gs,Hi],Te=()=>["solid","dashed","dotted","double"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>[Ae,Md,c0,u0],bt=()=>["","none",C,pe,me],vt=()=>["none",Ae,pe,me],Ht=()=>["none",Ae,pe,me],Mn=()=>[Ae,pe,me],Nt=()=>[$r,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[vr],breakpoint:[vr],color:[vv],container:[vr],"drop-shadow":[vr],ease:["in","out","in-out"],font:[xE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[vr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[vr],shadow:[vr],spacing:["px",Ae],text:[vr],"text-shadow":[vr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$r,me,pe,T]}],container:["container"],columns:[{columns:[Ae,me,pe,d]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:L()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[Wr,"auto",pe,me]}],basis:[{basis:[$r,"full","auto",d,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ae,$r,"auto","initial","none",me]}],grow:[{grow:["",Ae,pe,me]}],shrink:[{shrink:["",Ae,pe,me]}],order:[{order:[Wr,"first","last","none",pe,me]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pbs:[{pbs:U()}],pbe:[{pbe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],"inline-size":[{inline:["auto",...ce()]}],"min-inline-size":[{"min-inline":["auto",...ce()]}],"max-inline-size":[{"max-inline":["none",...ce()]}],"block-size":[{block:["auto",...Se()]}],"min-block-size":[{"min-block":["auto",...Se()]}],"max-block-size":[{"max-block":["none",...Se()]}],w:[{w:[d,"screen",...W()]}],"min-w":[{"min-w":[d,"screen","none",...W()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",i,gs,Hi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,EE,vE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Md,me]}],"font-family":[{font:[CE,SE,r]}],"font-features":[{"font-features":[me]}],"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:[o,pe,me]}],"line-clamp":[{"line-clamp":[Ae,"none",pe,o0]}],leading:[{leading:[u,...U()]}],"list-image":[{"list-image":["none",pe,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,me]}],"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:[...Te(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ae,"from-font","auto",pe,Hi]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[Ae,"auto",pe,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Wr,pe,me],radial:["",pe,me],conic:[Wr,pe,me]},kE,wE]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:ue()}],"rounded-s":[{"rounded-s":ue()}],"rounded-e":[{"rounded-e":ue()}],"rounded-t":[{"rounded-t":ue()}],"rounded-r":[{"rounded-r":ue()}],"rounded-b":[{"rounded-b":ue()}],"rounded-l":[{"rounded-l":ue()}],"rounded-ss":[{"rounded-ss":ue()}],"rounded-se":[{"rounded-se":ue()}],"rounded-ee":[{"rounded-ee":ue()}],"rounded-es":[{"rounded-es":ue()}],"rounded-tl":[{"rounded-tl":ue()}],"rounded-tr":[{"rounded-tr":ue()}],"rounded-br":[{"rounded-br":ue()}],"rounded-bl":[{"rounded-bl":ue()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-bs":[{"border-bs":fe()}],"border-w-be":[{"border-be":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Te(),"hidden","none"]}],"divide-style":[{divide:[...Te(),"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:[...Te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ae,pe,me]}],"outline-w":[{outline:["",Ae,gs,Hi]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",y,pu,mu]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",g,pu,mu]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[Ae,Hi]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",b,pu,mu]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[Ae,pe,me]}],"mix-blend":[{"mix-blend":[..._e(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_e()}],"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":[Ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":xe()}],"mask-image-linear-to-pos":[{"mask-linear-to":xe()}],"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":xe()}],"mask-image-t-to-pos":[{"mask-t-to":xe()}],"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":xe()}],"mask-image-r-to-pos":[{"mask-r-to":xe()}],"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":xe()}],"mask-image-b-to-pos":[{"mask-b-to":xe()}],"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":xe()}],"mask-image-l-to-pos":[{"mask-l-to":xe()}],"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":xe()}],"mask-image-x-to-pos":[{"mask-x-to":xe()}],"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":xe()}],"mask-image-y-to-pos":[{"mask-y-to":xe()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[pe,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":xe()}],"mask-image-radial-to-pos":[{"mask-radial-to":xe()}],"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":V()}],"mask-image-conic-pos":[{"mask-conic":[Ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":xe()}],"mask-image-conic-to-pos":[{"mask-conic-to":xe()}],"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:A()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,me]}],filter:[{filter:["","none",pe,me]}],blur:[{blur:bt()}],brightness:[{brightness:[Ae,pe,me]}],contrast:[{contrast:[Ae,pe,me]}],"drop-shadow":[{"drop-shadow":["","none",v,pu,mu]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",Ae,pe,me]}],"hue-rotate":[{"hue-rotate":[Ae,pe,me]}],invert:[{invert:["",Ae,pe,me]}],saturate:[{saturate:[Ae,pe,me]}],sepia:[{sepia:["",Ae,pe,me]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,me]}],"backdrop-blur":[{"backdrop-blur":bt()}],"backdrop-brightness":[{"backdrop-brightness":[Ae,pe,me]}],"backdrop-contrast":[{"backdrop-contrast":[Ae,pe,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ae,pe,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ae,pe,me]}],"backdrop-invert":[{"backdrop-invert":["",Ae,pe,me]}],"backdrop-opacity":[{"backdrop-opacity":[Ae,pe,me]}],"backdrop-saturate":[{"backdrop-saturate":[Ae,pe,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Ae,pe,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ae,"initial",pe,me]}],ease:[{ease:["linear","initial",j,pe,me]}],delay:[{delay:[Ae,pe,me]}],animate:[{animate:["none",H,pe,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,pe,me]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:vt()}],"rotate-x":[{"rotate-x":vt()}],"rotate-y":[{"rotate-y":vt()}],"rotate-z":[{"rotate-z":vt()}],scale:[{scale:Ht()}],"scale-x":[{"scale-x":Ht()}],"scale-y":[{"scale-y":Ht()}],"scale-z":[{"scale-z":Ht()}],"scale-3d":["scale-3d"],skew:[{skew:Mn()}],"skew-x":[{"skew-x":Mn()}],"skew-y":[{"skew-y":Mn()}],transform:[{transform:[pe,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Nt()}],"translate-x":[{"translate-x":Nt()}],"translate-y":[{"translate-y":Nt()}],"translate-z":[{"translate-z":Nt()}],"translate-none":["translate-none"],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",pe,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mbs":[{"scroll-mbs":U()}],"scroll-mbe":[{"scroll-mbe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pbs":[{"scroll-pbs":U()}],"scroll-pbe":[{"scroll-pbe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,me]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[Ae,gs,Hi,o0]}],stroke:[{stroke:["none",...E()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},RE=sE(jE);function Ee(...e){return RE(hv(e))}function xt(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function $e(e){return`$${e.toFixed(3)}`}function mh(e){return e>=6e4?`${(e/6e4).toFixed(1)}m`:e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`}function jv(e){return new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function f0(e){return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function Os(e){const r=(e||"").toLowerCase();return r.includes("opus")?"opus":r.includes("sonnet")?"sonnet":r.includes("haiku")?"haiku":"unknown"}const AE=Ik("group/button inline-flex shrink-0 items-center justify-center rounded-none border border-transparent bg-clip-padding text-xs font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-none px-2 text-xs has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-none px-2.5 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-none [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-none","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function _E({className:e,variant:r="default",size:i="default",...a}){return x.jsx(Hk,{"data-slot":"button",className:Ee(AE({variant:r,size:i,className:e})),...a})}function ME(){var g;const e=pi({from:"/$sessionId",strict:!1,shouldThrow:!1}),r=(g=e==null?void 0:e.params)==null?void 0:g.sessionId,i=Mh(),[a,o]=Z.useState(!1),u=AT(),c=u.theme,d=u.setTheme;function p(){d(c==="dark"?"light":c==="light"?"system":"dark")}function m(){return c==="dark"?x.jsx(KT,{className:"h-3.5 w-3.5"}):c==="light"?x.jsx($T,{className:"h-3.5 w-3.5"}):x.jsx(FT,{className:"h-3.5 w-3.5"})}async function y(){if(!(!r||a)){o(!0);try{const b=await lk(r);i.setQueryData(["session",r],b)}catch(b){console.error("Refresh failed:",b)}finally{o(!1)}}}return x.jsxs("aside",{className:"flex h-14 shrink-0 items-center border-b border-border bg-card px-6",children:[x.jsx("h1",{className:"mr-6 text-sm font-semibold tracking-tight text-foreground",children:"Timeline"}),x.jsxs("nav",{className:"flex items-center gap-1",children:[x.jsx(ha,{to:"/",className:"rounded-md bg-primary/10 px-3 py-1.5 text-xs font-medium text-primary transition-colors hover:bg-primary/20",children:"Sessions"}),x.jsxs(ha,{to:"/settings",className:"flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted/30 hover:text-foreground [&.active]:bg-primary/10 [&.active]:text-primary",children:[x.jsxs("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:[x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})]}),"Settings"]})]}),x.jsx("button",{onClick:p,title:`Theme: ${c}`,className:"ml-1 rounded-md px-2 py-1.5 text-muted-foreground transition-colors hover:bg-muted/30 hover:text-foreground",children:x.jsx(m,{})}),r&&x.jsx("div",{className:"ml-auto",children:x.jsxs(_E,{variant:"ghost",size:"xs",onClick:y,disabled:a,children:[x.jsx("svg",{className:`size-3.5 ${a?"animate-spin":""}`,fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182"})}),a?"Refreshing…":"Refresh"]})})]})}function zE({children:e}){return x.jsxs("div",{className:"flex min-h-screen flex-col bg-background",children:[x.jsx(ME,{}),x.jsx("main",{className:"flex-1 p-6",children:e})]})}function OE(){return Z.useEffect(()=>{const e=r=>{(r.metaKey||r.ctrlKey)&&r.key.toLowerCase()==="b"&&(r.preventDefault(),document.body.classList.toggle("privacy-on"))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),x.jsxs(zE,{children:[x.jsx(ev,{}),!1]})}const Yu=sT({component:OE}),DE=[{value:"auto",label:"Auto",description:"Use API cost when available, fall back to estimated"},{value:"api",label:"API Only",description:"Always use cost-capture data (falls back to estimated if unavailable)"},{value:"estimated",label:"Estimated",description:"Always use JSONL token counts × pricing rates"}];function LE(){const[e,r]=Z.useState(null),[i,a]=Z.useState("auto"),[o,u]=Z.useState(!1);Z.useEffect(()=>{sk().then(d=>{r(d),a(d.costMethod)}).catch(console.error)},[]);const c=async d=>{u(!0);try{await ok(d),a(d)}catch(p){console.error("Failed to update:",p)}finally{u(!1)}};return e?x.jsxs("div",{className:"space-y-6",children:[x.jsxs("section",{className:"rounded-xl border border-border bg-card p-6",children:[x.jsx("h2",{className:"mb-3 text-sm font-semibold uppercase tracking-wider text-muted-foreground",children:"Cost Capture"}),x.jsxs("div",{className:Ee("flex items-center gap-2 text-sm",e.costCapture.installed?"text-emerald-400":e.costCapture.dbExists?"text-amber-400":"text-muted-foreground"),children:[x.jsx("span",{className:Ee("inline-block h-2 w-2 rounded-full",e.costCapture.installed?"bg-emerald-500":e.costCapture.dbExists?"bg-amber-500":"bg-muted-foreground/40")}),e.costCapture.installed?"Active":e.costCapture.dbExists?"DB exists but statusline not active":"Not installed"]}),e.costCapture.installed&&x.jsxs("div",{className:"mt-2 space-y-1 text-xs text-muted-foreground",children:[x.jsxs("p",{children:["DB: ",e.costCapture.dbPath]}),x.jsxs("p",{children:[e.costCapture.sessionCount," sessions with cost data"]})]}),!e.costCapture.installed&&e.costCapture.dbExists&&x.jsxs("div",{className:"mt-2 space-y-1 text-xs text-muted-foreground",children:[x.jsxs("p",{children:["DB: ",e.costCapture.dbPath]}),x.jsxs("p",{children:[e.costCapture.sessionCount," sessions with cost data (historical)"]}),x.jsxs("p",{children:["Run ",x.jsx("code",{className:"rounded bg-accent px-1",children:"claude-timeline setup"})," to re-enable capture"]})]}),!e.costCapture.installed&&!e.costCapture.dbExists&&x.jsxs("p",{className:"mt-2 text-xs text-muted-foreground",children:["Run ",x.jsx("code",{className:"rounded bg-accent px-1",children:"claude-timeline setup"})," to enable"]})]}),x.jsxs("section",{className:"rounded-xl border border-border bg-card p-6",children:[x.jsx("h2",{className:"mb-3 text-sm font-semibold uppercase tracking-wider text-muted-foreground",children:"Cost Calculation Method"}),x.jsx("div",{className:"space-y-2",children:DE.map(d=>x.jsxs("label",{className:Ee("flex cursor-pointer items-start gap-3 rounded-lg border p-3 transition-colors",i===d.value?"border-primary/50 bg-primary/5":"border-border hover:bg-muted/30"),children:[x.jsx("input",{type:"radio",name:"costMethod",value:d.value,checked:i===d.value,onChange:()=>c(d.value),disabled:o,className:"mt-0.5"}),x.jsxs("div",{children:[x.jsx("span",{className:"text-sm font-medium text-foreground",children:d.label}),x.jsx("p",{className:"text-xs text-muted-foreground",children:d.description})]})]},d.value))})]}),e.costCapture.installed&&x.jsxs("section",{className:"rounded-xl border border-border bg-card p-6",children:[x.jsx("h2",{className:"mb-3 text-sm font-semibold uppercase tracking-wider text-muted-foreground",children:"Summary"}),x.jsxs("div",{className:"space-y-1 text-xs text-muted-foreground",children:[x.jsx("p",{children:"Sessions with API cost: checking..."}),x.jsx("p",{children:"Sessions with estimated only: checking..."})]})]})]}):x.jsx("div",{className:"text-sm text-muted-foreground",children:"Loading..."})}const BE=Uh("/settings")({component:UE});function UE(){return x.jsxs("div",{className:"mx-auto max-w-2xl space-y-6 p-6",children:[x.jsx("h1",{className:"text-lg font-bold text-foreground",children:"Settings"}),x.jsx(LE,{})]})}const gu=e=>e>=1e9?(e/1e9).toFixed(1)+"B":e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":e.toString();function Sr({label:e,value:r,title:i,accent:a}){return x.jsxs("div",{className:"rounded-lg border border-[var(--border)] bg-[var(--muted)] p-3",children:[x.jsx("span",{className:"block text-[10px] uppercase tracking-wider text-[var(--muted-foreground)]",children:e}),x.jsx("span",{title:i,className:Ee("block font-mono text-lg font-medium text-[var(--foreground)]",a&&"text-[var(--primary)]"),children:r})]})}function HE({session:e,pricing:r,className:i}){const a=new Date(e.endTime).getTime()-new Date(e.startTime).getTime(),o=e.totalTokens.inputTokens+e.totalTokens.outputTokens+e.totalTokens.cacheReadTokens,u=o>0?Math.round(e.totalTokens.cacheReadTokens/o*100):0;return x.jsxs("div",{className:Ee("rounded-xl border border-[var(--border)] bg-[var(--card)] p-6",i),children:[x.jsxs("div",{className:"mb-5",children:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsx("h2",{className:"text-lg font-bold text-[var(--foreground)]",children:("sessionName"in e?String(e.sessionName??""):"")||e.sessionId}),x.jsx("span",{className:Ee("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",e.isOngoing?"bg-emerald-500/15 text-emerald-400":"bg-[var(--accent)] text-[var(--muted-foreground)]"),children:e.isOngoing?"Ongoing":"Completed"})]}),x.jsx("p",{className:"mt-1 text-sm text-[var(--muted-foreground)]",children:e.projectName})]}),x.jsxs("div",{className:"grid gap-3",style:{gridTemplateColumns:"repeat(auto-fit, minmax(120px, 1fr))"},children:[x.jsx(Sr,{label:"Turns",value:String(e.turnCount),title:String(e.turnCount)}),x.jsx(Sr,{label:"Input Tokens",value:gu(e.totalTokens.inputTokens),title:e.totalTokens.inputTokens.toLocaleString()}),x.jsx(Sr,{label:"Output Tokens",value:gu(e.totalTokens.outputTokens),title:e.totalTokens.outputTokens.toLocaleString()}),x.jsx(Sr,{label:"Cache Read",value:`${gu(e.totalTokens.cacheReadTokens)} (${u}%)`,title:`${e.totalTokens.cacheReadTokens.toLocaleString()} (${u}%)`}),x.jsx(Sr,{label:"Cost",value:$e(r.totalCost),title:$e(r.totalCost),accent:!0})]}),x.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-3 md:grid-cols-4",children:[x.jsx(Sr,{label:"Model",value:e.model,title:e.model}),x.jsx(Sr,{label:"Total Tokens",value:gu(o),title:o.toLocaleString()}),x.jsx(Sr,{label:"Duration",value:mh(a),title:`${Math.round(a/1e3)}s`}),e.activeDurationMs!=null&&e.activeDurationMs>0&&x.jsx(Sr,{label:"Active Time",value:mh(e.activeDurationMs),title:`${Math.round(e.activeDurationMs/1e3)}s`,accent:!0})]}),x.jsxs("div",{className:"mt-3 flex items-center gap-3 text-xs text-[var(--muted-foreground)]",children:[x.jsx("span",{className:Ee("inline-flex items-center gap-1 rounded-full px-1.5 py-0.5 text-[0.625rem] font-medium",r.costSource==="api"?"bg-emerald-500/15 text-emerald-400":"bg-[var(--muted)] text-[var(--muted-foreground)]"),children:r.costSource==="api"?"● API":"○ Est."}),r.apiTotalCost!=null&&r.costSource!=="api"&&r.apiTotalCost!==r.totalCost&&x.jsxs("span",{className:"text-[0.625rem] text-[var(--muted-foreground)]",children:[$e(r.apiTotalCost)," from API"]}),r.costSource==="api"&&r.estimatedTotalCost!=null&&r.estimatedTotalCost!==r.totalCost&&x.jsxs("span",{className:"text-[0.625rem] text-[var(--muted-foreground)]",children:["~",$e(r.estimatedTotalCost)," estimated"]})]}),x.jsxs("div",{className:"mt-4 flex items-center gap-2 text-xs text-[var(--muted-foreground)]",children:[x.jsx("span",{className:"font-medium",children:"Working Directory:"}),x.jsx("code",{className:"rounded bg-[var(--accent)] px-1.5 py-0.5 font-mono text-[var(--muted-foreground)]",children:e.workingDirectory})]}),x.jsxs("div",{className:"mt-2 flex items-center gap-4 text-xs text-[var(--muted-foreground)]",children:[x.jsxs("span",{children:["Started: ",x.jsx("span",{className:"text-[var(--muted-foreground)]",children:f0(e.startTime)})]}),x.jsxs("span",{children:["Ended: ",x.jsx("span",{className:"text-[var(--muted-foreground)]",children:f0(e.endTime)})]})]}),x.jsxs("details",{className:"mt-4 rounded-lg border border-[var(--border)] overflow-hidden",children:[x.jsx("summary",{className:"cursor-pointer px-4 py-3 text-sm text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors",children:"What do these numbers mean?"}),x.jsx("div",{className:"px-4 pb-4 text-sm",children:x.jsxs("dl",{className:"grid grid-cols-[auto_1fr] gap-x-4 gap-y-2",children:[x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Session"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"One continuous run of Claude Code, from start to exit."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Turn"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"A single user message + assistant response exchange."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Input Tokens"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"Tokens sent to the model (your messages + context)."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Output Tokens"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"Tokens generated by the model (responses + tool calls)."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Cache Read"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"Tokens reused from previous API calls. Reduces cost significantly."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Cache Write"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"New cached tokens written to the cache."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Cost Estimate"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"Calculated from token counts × model pricing rates. May differ from actual billing."})]})})]})]})}function IE(e,r){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const qE=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,PE=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VE={};function d0(e,r){return(VE.jsx?PE:qE).test(e)}const GE=/[ \t\n\f\r]/g;function QE(e){return typeof e=="object"?e.type==="text"?h0(e.value):!1:h0(e)}function h0(e){return e.replace(GE,"")===""}class Vs{constructor(r,i,a){this.normal=i,this.property=r,a&&(this.space=a)}}Vs.prototype.normal={};Vs.prototype.property={};Vs.prototype.space=void 0;function Rv(e,r){const i={},a={};for(const o of e)Object.assign(i,o.property),Object.assign(a,o.normal);return new Vs(i,a,r)}function ph(e){return e.toLowerCase()}class rn{constructor(r,i){this.attribute=i,this.property=r}}rn.prototype.attribute="";rn.prototype.booleanish=!1;rn.prototype.boolean=!1;rn.prototype.commaOrSpaceSeparated=!1;rn.prototype.commaSeparated=!1;rn.prototype.defined=!1;rn.prototype.mustUseProperty=!1;rn.prototype.number=!1;rn.prototype.overloadedBoolean=!1;rn.prototype.property="";rn.prototype.spaceSeparated=!1;rn.prototype.space=void 0;let YE=0;const Re=nl(),yt=nl(),gh=nl(),ae=nl(),tt=nl(),Kl=nl(),hn=nl();function nl(){return 2**++YE}const yh=Object.freeze(Object.defineProperty({__proto__:null,boolean:Re,booleanish:yt,commaOrSpaceSeparated:hn,commaSeparated:Kl,number:ae,overloadedBoolean:gh,spaceSeparated:tt},Symbol.toStringTag,{value:"Module"})),zd=Object.keys(yh);class Qh extends rn{constructor(r,i,a,o){let u=-1;if(super(r,i),m0(this,"space",o),typeof a=="number")for(;++u<zd.length;){const c=zd[u];m0(this,zd[u],(a&yh[c])===yh[c])}}}Qh.prototype.defined=!0;function m0(e,r,i){i&&(e[r]=i)}function ga(e){const r={},i={};for(const[a,o]of Object.entries(e.properties)){const u=new Qh(a,e.transform(e.attributes||{},a),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(u.mustUseProperty=!0),r[a]=u,i[ph(a)]=a,i[ph(u.attribute)]=a}return new Vs(r,i,e.space)}const Av=ga({properties:{ariaActiveDescendant:null,ariaAtomic:yt,ariaAutoComplete:null,ariaBusy:yt,ariaChecked:yt,ariaColCount:ae,ariaColIndex:ae,ariaColSpan:ae,ariaControls:tt,ariaCurrent:null,ariaDescribedBy:tt,ariaDetails:null,ariaDisabled:yt,ariaDropEffect:tt,ariaErrorMessage:null,ariaExpanded:yt,ariaFlowTo:tt,ariaGrabbed:yt,ariaHasPopup:null,ariaHidden:yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tt,ariaLevel:ae,ariaLive:null,ariaModal:yt,ariaMultiLine:yt,ariaMultiSelectable:yt,ariaOrientation:null,ariaOwns:tt,ariaPlaceholder:null,ariaPosInSet:ae,ariaPressed:yt,ariaReadOnly:yt,ariaRelevant:null,ariaRequired:yt,ariaRoleDescription:tt,ariaRowCount:ae,ariaRowIndex:ae,ariaRowSpan:ae,ariaSelected:yt,ariaSetSize:ae,ariaSort:null,ariaValueMax:ae,ariaValueMin:ae,ariaValueNow:ae,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function _v(e,r){return r in e?e[r]:r}function Mv(e,r){return _v(e,r.toLowerCase())}const FE=ga({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Kl,acceptCharset:tt,accessKey:tt,action:null,allow:null,allowFullScreen:Re,allowPaymentRequest:Re,allowUserMedia:Re,alt:null,as:null,async:Re,autoCapitalize:null,autoComplete:tt,autoFocus:Re,autoPlay:Re,blocking:tt,capture:null,charSet:null,checked:Re,cite:null,className:tt,cols:ae,colSpan:null,content:null,contentEditable:yt,controls:Re,controlsList:tt,coords:ae|Kl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Re,defer:Re,dir:null,dirName:null,disabled:Re,download:gh,draggable:yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Re,formTarget:null,headers:tt,height:ae,hidden:gh,high:ae,href:null,hrefLang:null,htmlFor:tt,httpEquiv:tt,id:null,imageSizes:null,imageSrcSet:null,inert:Re,inputMode:null,integrity:null,is:null,isMap:Re,itemId:null,itemProp:tt,itemRef:tt,itemScope:Re,itemType:tt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Re,low:ae,manifest:null,max:null,maxLength:ae,media:null,method:null,min:null,minLength:ae,multiple:Re,muted:Re,name:null,nonce:null,noModule:Re,noValidate:Re,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:Re,optimum:ae,pattern:null,ping:tt,placeholder:null,playsInline:Re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Re,referrerPolicy:null,rel:tt,required:Re,reversed:Re,rows:ae,rowSpan:ae,sandbox:tt,scope:null,scoped:Re,seamless:Re,selected:Re,shadowRootClonable:Re,shadowRootDelegatesFocus:Re,shadowRootMode:null,shape:null,size:ae,sizes:null,slot:null,span:ae,spellCheck:yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ae,step:null,style:null,tabIndex:ae,target:null,title:null,translate:null,type:null,typeMustMatch:Re,useMap:null,value:yt,width:ae,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tt,axis:null,background:null,bgColor:null,border:ae,borderColor:null,bottomMargin:ae,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Re,declare:Re,event:null,face:null,frame:null,frameBorder:null,hSpace:ae,leftMargin:ae,link:null,longDesc:null,lowSrc:null,marginHeight:ae,marginWidth:ae,noResize:Re,noHref:Re,noShade:Re,noWrap:Re,object:null,profile:null,prompt:null,rev:null,rightMargin:ae,rules:null,scheme:null,scrolling:yt,standby:null,summary:null,text:null,topMargin:ae,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ae,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Re,disableRemotePlayback:Re,prefix:null,property:null,results:ae,security:null,unselectable:null},space:"html",transform:Mv}),XE=ga({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:hn,accentHeight:ae,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ae,amplitude:ae,arabicForm:null,ascent:ae,attributeName:null,attributeType:null,azimuth:ae,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ae,by:null,calcMode:null,capHeight:ae,className:tt,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:ae,diffuseConstant:ae,direction:null,display:null,dur:null,divisor:ae,dominantBaseline:null,download:Re,dx:null,dy:null,edgeMode:null,editable:null,elevation:ae,enableBackground:null,end:null,event:null,exponent:ae,externalResourcesRequired:null,fill:null,fillOpacity:ae,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:Kl,g2:Kl,glyphName:Kl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ae,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ae,horizOriginX:ae,horizOriginY:ae,id:null,ideographic:ae,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ae,k:ae,k1:ae,k2:ae,k3:ae,k4:ae,kernelMatrix:hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ae,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ae,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:ae,overlineThickness:ae,paintOrder:null,panose1:null,path:null,pathLength:ae,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ae,pointsAtY:ae,pointsAtZ:ae,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:hn,rev:hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:hn,requiredFeatures:hn,requiredFonts:hn,requiredFormats:hn,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:ae,specularExponent:ae,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ae,strikethroughThickness:ae,string:null,stroke:null,strokeDashArray:hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ae,strokeOpacity:ae,strokeWidth:null,style:null,surfaceScale:ae,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:hn,tabIndex:ae,tableValues:null,target:null,targetX:ae,targetY:ae,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ae,underlineThickness:ae,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ae,values:null,vAlphabetic:ae,vMathematical:ae,vectorEffect:null,vHanging:ae,vIdeographic:ae,version:null,vertAdvY:ae,vertOriginX:ae,vertOriginY:ae,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ae,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_v}),zv=ga({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}}),Ov=ga({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Mv}),Dv=ga({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),KE={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"},ZE=/[A-Z]/g,p0=/-[a-z]/g,JE=/^data[-\w.:]+$/i;function $E(e,r){const i=ph(r);let a=r,o=rn;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&JE.test(r)){if(r.charAt(4)==="-"){const u=r.slice(5).replace(p0,eN);a="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=r.slice(4);if(!p0.test(u)){let c=u.replace(ZE,WE);c.charAt(0)!=="-"&&(c="-"+c),r="data"+c}}o=Qh}return new o(a,r)}function WE(e){return"-"+e.toLowerCase()}function eN(e){return e.charAt(1).toUpperCase()}const tN=Rv([Av,FE,zv,Ov,Dv],"html"),Yh=Rv([Av,XE,zv,Ov,Dv],"svg");function nN(e){return e.join(" ").trim()}var Vl={},Od,g0;function rN(){if(g0)return Od;g0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
|
|
145
|
+
*/const tk=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],nk=_n("wifi-off",tk),ma="";async function rk(e=50){const r=await fetch(`${ma}/api/sessions?limit=${e}`);if(!r.ok)throw new Error(`Failed to fetch sessions: ${r.status}`);return r.json()}async function ik(e){const r=await fetch(`${ma}/api/sessions/${e}`);if(!r.ok)throw new Error(`Failed to fetch session: ${r.status}`);return r.json()}async function lk(e){const r=await fetch(`${ma}/api/sessions/${e}/refresh`,{method:"POST"});if(!r.ok)throw new Error(`Failed to refresh session: ${r.status}`);return r.json()}async function ak(){const e=await fetch(`${ma}/api/sessions/refresh`,{method:"POST"});if(!e.ok)throw new Error(`Failed to refresh sessions: ${e.status}`);return e.json()}async function sk(){const e=await fetch(`${ma}/api/status`);if(!e.ok)throw new Error(`Failed to fetch status: ${e.status}`);return e.json()}async function ok(e){const r=await fetch(`${ma}/api/settings`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({costMethod:e})});if(!r.ok)throw new Error(`Failed to update settings: ${r.status}`);return r.json()}function uk(){return typeof window<"u"}function ck(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function fk(e){return uk()?e instanceof HTMLElement||e instanceof ck(e).HTMLElement:!1}const t0={};function Gu(e,r){const i=Z.useRef(t0);return i.current===t0&&(i.current=e(r)),i}const Ad=vb[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],dk=Ad&&Ad!==Z.useLayoutEffect?Ad:e=>e();function pa(e){const r=Gu(hk).current;return r.next=e,dk(r.effect),r.trampoline}function hk(){const e={next:void 0,callback:mk,trampoline:(...r)=>{var i;return(i=e.callback)==null?void 0:i.call(e,...r)},effect:()=>{e.callback=e.next}};return e}function mk(){}const pk={...vb},gk=()=>{},Rn=typeof document<"u"?Z.useLayoutEffect:gk;function fh(e,r){if(e&&!r)return e;if(!e&&r)return r;if(e||r)return{...e,...r}}const Hh={};function Ih(e,r,i,a,o){if(!i&&!a&&!e)return Du(r);let u=Du(e);return r&&(u=Nu(u,r)),i&&(u=Nu(u,i)),a&&(u=Nu(u,a)),u}function yk(e){if(e.length===0)return Hh;if(e.length===1)return Du(e[0]);let r=Du(e[0]);for(let i=1;i<e.length;i+=1)r=Nu(r,e[i]);return r}function Du(e){return qh(e)?{...lv(e,Hh)}:xk(e)}function Nu(e,r){return qh(r)?lv(r,e):bk(e,r)}function xk(e){const r={...e};for(const i in r){const a=r[i];iv(i,a)&&(r[i]=av(a))}return r}function bk(e,r){if(!r)return e;for(const i in r){const a=r[i];switch(i){case"style":{e[i]=fh(e.style,a);break}case"className":{e[i]=sv(e.className,a);break}default:iv(i,a)?e[i]=vk(e[i],a):e[i]=a}}return e}function iv(e,r){const i=e.charCodeAt(0),a=e.charCodeAt(1),o=e.charCodeAt(2);return i===111&&a===110&&o>=65&&o<=90&&(typeof r=="function"||typeof r>"u")}function qh(e){return typeof e=="function"}function lv(e,r){return qh(e)?e(r):e??Hh}function vk(e,r){return r?e?(...i)=>{const a=i[0];if(ov(a)){const u=a;Lu(u);const c=r(...i);return u.baseUIHandlerPrevented||e==null||e(...i),c}const o=r(...i);return e==null||e(...i),o}:av(r):e}function av(e){return e&&((...r)=>{const i=r[0];return ov(i)&&Lu(i),e(...r)})}function Lu(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function sv(e,r){return r?e?r+" "+e:r:e}function ov(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Sk(e,r){return function(a,...o){const u=new URL(e);return u.searchParams.set("code",a.toString()),o.forEach(c=>u.searchParams.append("args[]",c)),`${r} error #${a}; visit ${u} for the full message.`}}const Ph=Sk("https://base-ui.com/production-error","Base UI"),wk=Z.createContext(void 0);function Ck(e=!1){const r=Z.useContext(wk);if(r===void 0&&!e)throw new Error(Ph(16));return r}function Tk(e){const{focusableWhenDisabled:r,disabled:i,composite:a=!1,tabIndex:o=0,isNativeButton:u}=e,c=a&&r!==!1,d=a&&r===!1;return{props:Z.useMemo(()=>{const m={onKeyDown(y){i&&r&&y.key!=="Tab"&&y.preventDefault()}};return a||(m.tabIndex=o,!u&&i&&(m.tabIndex=r?o:-1)),(u&&(r||c)||!u&&i)&&(m["aria-disabled"]=i),u&&(!r||d)&&(m.disabled=i),m},[a,i,r,c,d,u,o])}}function uv(e={}){const{disabled:r=!1,focusableWhenDisabled:i,tabIndex:a=0,native:o=!0,composite:u}=e,c=Z.useRef(null),d=Ck(!0),p=u??d!==void 0,{props:m}=Tk({focusableWhenDisabled:i,disabled:r,composite:p,tabIndex:a,isNativeButton:o}),y=Z.useCallback(()=>{const v=c.current;_d(v)&&p&&r&&m.disabled===void 0&&v.disabled&&(v.disabled=!1)},[r,m.disabled,p]);Rn(y,[y]);const g=Z.useCallback((v={})=>{const{onClick:C,onMouseDown:k,onKeyUp:T,onKeyDown:j,onPointerDown:H,..._}=v;return Ih({type:o?"button":void 0,onClick(L){if(r){L.preventDefault();return}C==null||C(L)},onMouseDown(L){r||k==null||k(L)},onKeyDown(L){if(r||(Lu(L),j==null||j(L),L.baseUIHandlerPrevented))return;const M=L.target===L.currentTarget,B=L.currentTarget,U=_d(B),P=!o&&kk(B),Y=M&&(o?U:!P),X=L.key==="Enter",q=L.key===" ",le=B.getAttribute("role"),$=(le==null?void 0:le.startsWith("menuitem"))||le==="option"||le==="gridcell";if(M&&p&&q){if(L.defaultPrevented&&$)return;L.preventDefault(),P||o&&U?(B.click(),L.preventBaseUIHandler()):Y&&(C==null||C(L),L.preventBaseUIHandler());return}Y&&(!o&&(q||X)&&L.preventDefault(),!o&&X&&(C==null||C(L)))},onKeyUp(L){if(!r){if(Lu(L),T==null||T(L),L.target===L.currentTarget&&o&&p&&_d(L.currentTarget)&&L.key===" "){L.preventDefault();return}L.baseUIHandlerPrevented||L.target===L.currentTarget&&!o&&!p&&L.key===" "&&(C==null||C(L))}},onPointerDown(L){if(r){L.preventDefault();return}H==null||H(L)}},o?void 0:{role:"button"},m,_)},[r,m,p,o]),b=pa(v=>{c.current=v,y()});return{getButtonProps:g,buttonRef:b}}function _d(e){return fk(e)&&e.tagName==="BUTTON"}function kk(e){return!!((e==null?void 0:e.tagName)==="A"&&(e!=null&&e.href))}function dh(e,r,i,a){const o=Gu(cv).current;return Nk(o,e,r,i,a)&&fv(o,[e,r,i,a]),o.callback}function Ek(e){const r=Gu(cv).current;return jk(r,e)&&fv(r,e),r.callback}function cv(){return{callback:null,cleanup:null,refs:[]}}function Nk(e,r,i,a,o){return e.refs[0]!==r||e.refs[1]!==i||e.refs[2]!==a||e.refs[3]!==o}function jk(e,r){return e.refs.length!==r.length||e.refs.some((i,a)=>i!==r[a])}function fv(e,r){if(e.refs=r,r.every(i=>i==null)){e.callback=null;return}e.callback=i=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),i!=null){const a=Array(r.length).fill(null);for(let o=0;o<r.length;o+=1){const u=r[o];if(u!=null)switch(typeof u){case"function":{const c=u(i);typeof c=="function"&&(a[o]=c);break}case"object":{u.current=i;break}}}e.cleanup=()=>{for(let o=0;o<r.length;o+=1){const u=r[o];if(u!=null)switch(typeof u){case"function":{const c=a[o];typeof c=="function"?c():u(null);break}case"object":{u.current=null;break}}}}}}}const Rk=parseInt(Z.version,10);function Ak(e){return Rk>=e}function n0(e){if(!Z.isValidElement(e))return null;const r=e,i=r.props;return(Ak(19)?i==null?void 0:i.ref:r.ref)??null}const Yl=Object.freeze({});function _k(e,r){const i={};for(const a in e){const o=e[a];if(r!=null&&r.hasOwnProperty(a)){const u=r[a](o);u!=null&&Object.assign(i,u);continue}o===!0?i[`data-${a.toLowerCase()}`]="":o&&(i[`data-${a.toLowerCase()}`]=o.toString())}return i}function Mk(e,r){return typeof e=="function"?e(r):e}function zk(e,r){return typeof e=="function"?e(r):e}function Qu(e,r,i={}){const a=r.render,o=Ok(r,i);if(i.enabled===!1)return null;const u=i.state??Yl;return Bk(e,a,o,u)}function Ok(e,r={}){const{className:i,style:a,render:o}=e,{state:u=Yl,ref:c,props:d,stateAttributesMapping:p,enabled:m=!0}=r,y=m?Mk(i,u):void 0,g=m?zk(a,u):void 0,b=m?_k(u,p):Yl,v=m&&d?Dk(d):void 0,C=m?fh(b,v)??{}:Yl;return typeof document<"u"&&(m?Array.isArray(c)?C.ref=Ek([C.ref,n0(o),...c]):C.ref=dh(C.ref,n0(o),c):dh(null,null)),m?(y!==void 0&&(C.className=sv(C.className,y)),g!==void 0&&(C.style=fh(C.style,g)),C):Yl}function Dk(e){return Array.isArray(e)?yk(e):Ih(void 0,e)}const Lk=Symbol.for("react.lazy");function Bk(e,r,i,a){if(r){if(typeof r=="function")return r(i,a);const o=Ih(i,r.props);o.ref=i.ref;let u=r;return(u==null?void 0:u.$$typeof)===Lk&&(u=Z.Children.toArray(r)[0]),Z.cloneElement(u,o)}if(e&&typeof e=="string")return Uk(e,i);throw new Error(Ph(8))}function Uk(e,r){return e==="button"?Z.createElement("button",{type:"button",...r,key:r.key}):e==="img"?Z.createElement("img",{alt:"",...r,key:r.key}):Z.createElement(e,r)}const Hk=Z.forwardRef(function(r,i){const{render:a,className:o,disabled:u=!1,focusableWhenDisabled:c=!1,nativeButton:d=!0,style:p,...m}=r,{getButtonProps:y,buttonRef:g}=uv({disabled:u,focusableWhenDisabled:c,native:d});return Qu("button",r,{state:{disabled:u},ref:[i,g],props:[m,y]})});function dv(e){var r,i,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(i=dv(e[r]))&&(a&&(a+=" "),a+=i)}else for(i in e)e[i]&&(a&&(a+=" "),a+=i);return a}function hv(){for(var e,r,i=0,a="",o=arguments.length;i<o;i++)(e=arguments[i])&&(r=dv(e))&&(a&&(a+=" "),a+=r);return a}const r0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,i0=hv,Ik=(e,r)=>i=>{var a;if((r==null?void 0:r.variants)==null)return i0(e,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:o,defaultVariants:u}=r,c=Object.keys(o).map(m=>{const y=i==null?void 0:i[m],g=u==null?void 0:u[m];if(y===null)return null;const b=r0(y)||r0(g);return o[m][b]}),d=i&&Object.entries(i).reduce((m,y)=>{let[g,b]=y;return b===void 0||(m[g]=b),m},{}),p=r==null||(a=r.compoundVariants)===null||a===void 0?void 0:a.reduce((m,y)=>{let{class:g,className:b,...v}=y;return Object.entries(v).every(C=>{let[k,T]=C;return Array.isArray(T)?T.includes({...u,...d}[k]):{...u,...d}[k]===T})?[...m,g,b]:m},[]);return i0(e,c,p,i==null?void 0:i.class,i==null?void 0:i.className)},qk=(e,r)=>{const i=new Array(e.length+r.length);for(let a=0;a<e.length;a++)i[a]=e[a];for(let a=0;a<r.length;a++)i[e.length+a]=r[a];return i},Pk=(e,r)=>({classGroupId:e,validator:r}),mv=(e=new Map,r=null,i)=>({nextPart:e,validators:r,classGroupId:i}),Bu="-",l0=[],Vk="arbitrary..",Gk=e=>{const r=Yk(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return Qk(c);const d=c.split(Bu),p=d[0]===""&&d.length>1?1:0;return pv(d,p,r)},getConflictingClassGroupIds:(c,d)=>{if(d){const p=a[c],m=i[c];return p?m?qk(m,p):p:m||l0}return i[c]||l0}}},pv=(e,r,i)=>{if(e.length-r===0)return i.classGroupId;const o=e[r],u=i.nextPart.get(o);if(u){const m=pv(e,r+1,u);if(m)return m}const c=i.validators;if(c===null)return;const d=r===0?e.join(Bu):e.slice(r).join(Bu),p=c.length;for(let m=0;m<p;m++){const y=c[m];if(y.validator(d))return y.classGroupId}},Qk=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),i=r.indexOf(":"),a=r.slice(0,i);return a?Vk+a:void 0})(),Yk=e=>{const{theme:r,classGroups:i}=e;return Fk(i,r)},Fk=(e,r)=>{const i=mv();for(const a in e){const o=e[a];Vh(o,i,a,r)}return i},Vh=(e,r,i,a)=>{const o=e.length;for(let u=0;u<o;u++){const c=e[u];Xk(c,r,i,a)}},Xk=(e,r,i,a)=>{if(typeof e=="string"){Kk(e,r,i);return}if(typeof e=="function"){Zk(e,r,i,a);return}Jk(e,r,i,a)},Kk=(e,r,i)=>{const a=e===""?r:gv(r,e);a.classGroupId=i},Zk=(e,r,i,a)=>{if($k(e)){Vh(e(a),r,i,a);return}r.validators===null&&(r.validators=[]),r.validators.push(Pk(i,e))},Jk=(e,r,i,a)=>{const o=Object.entries(e),u=o.length;for(let c=0;c<u;c++){const[d,p]=o[c];Vh(p,gv(r,d),i,a)}},gv=(e,r)=>{let i=e;const a=r.split(Bu),o=a.length;for(let u=0;u<o;u++){const c=a[u];let d=i.nextPart.get(c);d||(d=mv(),i.nextPart.set(c,d)),i=d}return i},$k=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Wk=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,i=Object.create(null),a=Object.create(null);const o=(u,c)=>{i[u]=c,r++,r>e&&(r=0,a=i,i=Object.create(null))};return{get(u){let c=i[u];if(c!==void 0)return c;if((c=a[u])!==void 0)return o(u,c),c},set(u,c){u in i?i[u]=c:o(u,c)}}},hh="!",a0=":",eE=[],s0=(e,r,i,a,o)=>({modifiers:e,hasImportantModifier:r,baseClassName:i,maybePostfixModifierPosition:a,isExternal:o}),tE=e=>{const{prefix:r,experimentalParseClassName:i}=e;let a=o=>{const u=[];let c=0,d=0,p=0,m;const y=o.length;for(let k=0;k<y;k++){const T=o[k];if(c===0&&d===0){if(T===a0){u.push(o.slice(p,k)),p=k+1;continue}if(T==="/"){m=k;continue}}T==="["?c++:T==="]"?c--:T==="("?d++:T===")"&&d--}const g=u.length===0?o:o.slice(p);let b=g,v=!1;g.endsWith(hh)?(b=g.slice(0,-1),v=!0):g.startsWith(hh)&&(b=g.slice(1),v=!0);const C=m&&m>p?m-p:void 0;return s0(u,v,b,C)};if(r){const o=r+a0,u=a;a=c=>c.startsWith(o)?u(c.slice(o.length)):s0(eE,!1,c,void 0,!0)}if(i){const o=a;a=u=>i({className:u,parseClassName:o})}return a},nE=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((i,a)=>{r.set(i,1e6+a)}),i=>{const a=[];let o=[];for(let u=0;u<i.length;u++){const c=i[u],d=c[0]==="[",p=r.has(c);d||p?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(c)):o.push(c)}return o.length>0&&(o.sort(),a.push(...o)),a}},rE=e=>({cache:Wk(e.cacheSize),parseClassName:tE(e),sortModifiers:nE(e),...Gk(e)}),iE=/\s+/,lE=(e,r)=>{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:u}=r,c=[],d=e.trim().split(iE);let p="";for(let m=d.length-1;m>=0;m-=1){const y=d[m],{isExternal:g,modifiers:b,hasImportantModifier:v,baseClassName:C,maybePostfixModifierPosition:k}=i(y);if(g){p=y+(p.length>0?" "+p:p);continue}let T=!!k,j=a(T?C.substring(0,k):C);if(!j){if(!T){p=y+(p.length>0?" "+p:p);continue}if(j=a(C),!j){p=y+(p.length>0?" "+p:p);continue}T=!1}const H=b.length===0?"":b.length===1?b[0]:u(b).join(":"),_=v?H+hh:H,V=_+j;if(c.indexOf(V)>-1)continue;c.push(V);const L=o(j,T);for(let M=0;M<L.length;++M){const B=L[M];c.push(_+B)}p=y+(p.length>0?" "+p:p)}return p},aE=(...e)=>{let r=0,i,a,o="";for(;r<e.length;)(i=e[r++])&&(a=yv(i))&&(o&&(o+=" "),o+=a);return o},yv=e=>{if(typeof e=="string")return e;let r,i="";for(let a=0;a<e.length;a++)e[a]&&(r=yv(e[a]))&&(i&&(i+=" "),i+=r);return i},sE=(e,...r)=>{let i,a,o,u;const c=p=>{const m=r.reduce((y,g)=>g(y),e());return i=rE(m),a=i.cache.get,o=i.cache.set,u=d,d(p)},d=p=>{const m=a(p);if(m)return m;const y=lE(p,i);return o(p,y),y};return u=c,(...p)=>u(aE(...p))},oE=[],Ct=e=>{const r=i=>i[e]||oE;return r.isThemeGetter=!0,r},xv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,uE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,cE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fE=/\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$/,dE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,hE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$r=e=>uE.test(e),Ae=e=>!!e&&!Number.isNaN(Number(e)),Wr=e=>!!e&&Number.isInteger(Number(e)),Md=e=>e.endsWith("%")&&Ae(e.slice(0,-1)),vr=e=>cE.test(e),vv=()=>!0,pE=e=>fE.test(e)&&!dE.test(e),Gh=()=>!1,gE=e=>hE.test(e),yE=e=>mE.test(e),xE=e=>!me(e)&&!pe(e),bE=e=>gi(e,Cv,Gh),me=e=>xv.test(e),Hi=e=>gi(e,Tv,pE),o0=e=>gi(e,NE,Ae),vE=e=>gi(e,Ev,vv),SE=e=>gi(e,kv,Gh),u0=e=>gi(e,Sv,Gh),wE=e=>gi(e,wv,yE),mu=e=>gi(e,Nv,gE),pe=e=>bv.test(e),gs=e=>tl(e,Tv),CE=e=>tl(e,kv),c0=e=>tl(e,Sv),TE=e=>tl(e,Cv),kE=e=>tl(e,wv),pu=e=>tl(e,Nv,!0),EE=e=>tl(e,Ev,!0),gi=(e,r,i)=>{const a=xv.exec(e);return a?a[1]?r(a[1]):i(a[2]):!1},tl=(e,r,i=!1)=>{const a=bv.exec(e);return a?a[1]?r(a[1]):i:!1},Sv=e=>e==="position"||e==="percentage",wv=e=>e==="image"||e==="url",Cv=e=>e==="length"||e==="size"||e==="bg-size",Tv=e=>e==="length",NE=e=>e==="number",kv=e=>e==="family-name",Ev=e=>e==="number"||e==="weight",Nv=e=>e==="shadow",jE=()=>{const e=Ct("color"),r=Ct("font"),i=Ct("text"),a=Ct("font-weight"),o=Ct("tracking"),u=Ct("leading"),c=Ct("breakpoint"),d=Ct("container"),p=Ct("spacing"),m=Ct("radius"),y=Ct("shadow"),g=Ct("inset-shadow"),b=Ct("text-shadow"),v=Ct("drop-shadow"),C=Ct("blur"),k=Ct("perspective"),T=Ct("aspect"),j=Ct("ease"),H=Ct("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...V(),pe,me],M=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],U=()=>[pe,me,p],P=()=>[$r,"full","auto",...U()],Y=()=>[Wr,"none","subgrid",pe,me],X=()=>["auto",{span:["full",Wr,pe,me]},Wr,pe,me],q=()=>[Wr,"auto",pe,me],le=()=>["auto","min","max","fr",pe,me],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...U()],W=()=>[$r,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],ce=()=>[$r,"screen","full","dvw","lvw","svw","min","max","fit",...U()],Se=()=>[$r,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],E=()=>[e,pe,me],A=()=>[...V(),c0,u0,{position:[pe,me]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",TE,bE,{size:[pe,me]}],oe=()=>[Md,gs,Hi],ue=()=>["","none","full",m,pe,me],fe=()=>["",Ae,gs,Hi],Te=()=>["solid","dashed","dotted","double"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>[Ae,Md,c0,u0],bt=()=>["","none",C,pe,me],vt=()=>["none",Ae,pe,me],Ht=()=>["none",Ae,pe,me],Mn=()=>[Ae,pe,me],Nt=()=>[$r,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[vr],breakpoint:[vr],color:[vv],container:[vr],"drop-shadow":[vr],ease:["in","out","in-out"],font:[xE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[vr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[vr],shadow:[vr],spacing:["px",Ae],text:[vr],"text-shadow":[vr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$r,me,pe,T]}],container:["container"],columns:[{columns:[Ae,me,pe,d]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:L()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[Wr,"auto",pe,me]}],basis:[{basis:[$r,"full","auto",d,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ae,$r,"auto","initial","none",me]}],grow:[{grow:["",Ae,pe,me]}],shrink:[{shrink:["",Ae,pe,me]}],order:[{order:[Wr,"first","last","none",pe,me]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pbs:[{pbs:U()}],pbe:[{pbe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],"inline-size":[{inline:["auto",...ce()]}],"min-inline-size":[{"min-inline":["auto",...ce()]}],"max-inline-size":[{"max-inline":["none",...ce()]}],"block-size":[{block:["auto",...Se()]}],"min-block-size":[{"min-block":["auto",...Se()]}],"max-block-size":[{"max-block":["none",...Se()]}],w:[{w:[d,"screen",...W()]}],"min-w":[{"min-w":[d,"screen","none",...W()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",i,gs,Hi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,EE,vE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Md,me]}],"font-family":[{font:[CE,SE,r]}],"font-features":[{"font-features":[me]}],"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:[o,pe,me]}],"line-clamp":[{"line-clamp":[Ae,"none",pe,o0]}],leading:[{leading:[u,...U()]}],"list-image":[{"list-image":["none",pe,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,me]}],"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:[...Te(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ae,"from-font","auto",pe,Hi]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[Ae,"auto",pe,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Wr,pe,me],radial:["",pe,me],conic:[Wr,pe,me]},kE,wE]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:ue()}],"rounded-s":[{"rounded-s":ue()}],"rounded-e":[{"rounded-e":ue()}],"rounded-t":[{"rounded-t":ue()}],"rounded-r":[{"rounded-r":ue()}],"rounded-b":[{"rounded-b":ue()}],"rounded-l":[{"rounded-l":ue()}],"rounded-ss":[{"rounded-ss":ue()}],"rounded-se":[{"rounded-se":ue()}],"rounded-ee":[{"rounded-ee":ue()}],"rounded-es":[{"rounded-es":ue()}],"rounded-tl":[{"rounded-tl":ue()}],"rounded-tr":[{"rounded-tr":ue()}],"rounded-br":[{"rounded-br":ue()}],"rounded-bl":[{"rounded-bl":ue()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-bs":[{"border-bs":fe()}],"border-w-be":[{"border-be":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Te(),"hidden","none"]}],"divide-style":[{divide:[...Te(),"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:[...Te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ae,pe,me]}],"outline-w":[{outline:["",Ae,gs,Hi]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",y,pu,mu]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",g,pu,mu]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[Ae,Hi]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",b,pu,mu]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[Ae,pe,me]}],"mix-blend":[{"mix-blend":[..._e(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_e()}],"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":[Ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":xe()}],"mask-image-linear-to-pos":[{"mask-linear-to":xe()}],"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":xe()}],"mask-image-t-to-pos":[{"mask-t-to":xe()}],"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":xe()}],"mask-image-r-to-pos":[{"mask-r-to":xe()}],"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":xe()}],"mask-image-b-to-pos":[{"mask-b-to":xe()}],"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":xe()}],"mask-image-l-to-pos":[{"mask-l-to":xe()}],"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":xe()}],"mask-image-x-to-pos":[{"mask-x-to":xe()}],"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":xe()}],"mask-image-y-to-pos":[{"mask-y-to":xe()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[pe,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":xe()}],"mask-image-radial-to-pos":[{"mask-radial-to":xe()}],"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":V()}],"mask-image-conic-pos":[{"mask-conic":[Ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":xe()}],"mask-image-conic-to-pos":[{"mask-conic-to":xe()}],"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:A()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,me]}],filter:[{filter:["","none",pe,me]}],blur:[{blur:bt()}],brightness:[{brightness:[Ae,pe,me]}],contrast:[{contrast:[Ae,pe,me]}],"drop-shadow":[{"drop-shadow":["","none",v,pu,mu]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",Ae,pe,me]}],"hue-rotate":[{"hue-rotate":[Ae,pe,me]}],invert:[{invert:["",Ae,pe,me]}],saturate:[{saturate:[Ae,pe,me]}],sepia:[{sepia:["",Ae,pe,me]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,me]}],"backdrop-blur":[{"backdrop-blur":bt()}],"backdrop-brightness":[{"backdrop-brightness":[Ae,pe,me]}],"backdrop-contrast":[{"backdrop-contrast":[Ae,pe,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ae,pe,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ae,pe,me]}],"backdrop-invert":[{"backdrop-invert":["",Ae,pe,me]}],"backdrop-opacity":[{"backdrop-opacity":[Ae,pe,me]}],"backdrop-saturate":[{"backdrop-saturate":[Ae,pe,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Ae,pe,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ae,"initial",pe,me]}],ease:[{ease:["linear","initial",j,pe,me]}],delay:[{delay:[Ae,pe,me]}],animate:[{animate:["none",H,pe,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,pe,me]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:vt()}],"rotate-x":[{"rotate-x":vt()}],"rotate-y":[{"rotate-y":vt()}],"rotate-z":[{"rotate-z":vt()}],scale:[{scale:Ht()}],"scale-x":[{"scale-x":Ht()}],"scale-y":[{"scale-y":Ht()}],"scale-z":[{"scale-z":Ht()}],"scale-3d":["scale-3d"],skew:[{skew:Mn()}],"skew-x":[{"skew-x":Mn()}],"skew-y":[{"skew-y":Mn()}],transform:[{transform:[pe,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Nt()}],"translate-x":[{"translate-x":Nt()}],"translate-y":[{"translate-y":Nt()}],"translate-z":[{"translate-z":Nt()}],"translate-none":["translate-none"],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",pe,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mbs":[{"scroll-mbs":U()}],"scroll-mbe":[{"scroll-mbe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pbs":[{"scroll-pbs":U()}],"scroll-pbe":[{"scroll-pbe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,me]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[Ae,gs,Hi,o0]}],stroke:[{stroke:["none",...E()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},RE=sE(jE);function Ee(...e){return RE(hv(e))}function xt(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function $e(e){return`$${e.toFixed(3)}`}function mh(e){return e>=6e4?`${(e/6e4).toFixed(1)}m`:e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`}function jv(e){return new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function f0(e){return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function Os(e){const r=(e||"").toLowerCase();return r.includes("opus")?"opus":r.includes("sonnet")?"sonnet":r.includes("haiku")?"haiku":"unknown"}const AE=Ik("group/button inline-flex shrink-0 items-center justify-center rounded-none border border-transparent bg-clip-padding text-xs font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-none px-2 text-xs has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-none px-2.5 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-none [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-none","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function _E({className:e,variant:r="default",size:i="default",...a}){return x.jsx(Hk,{"data-slot":"button",className:Ee(AE({variant:r,size:i,className:e})),...a})}function ME(){var g;const e=pi({from:"/$sessionId",strict:!1,shouldThrow:!1}),r=(g=e==null?void 0:e.params)==null?void 0:g.sessionId,i=Mh(),[a,o]=Z.useState(!1),u=AT(),c=u.theme,d=u.setTheme;function p(){d(c==="dark"?"light":c==="light"?"system":"dark")}function m(){return c==="dark"?x.jsx(KT,{className:"h-3.5 w-3.5"}):c==="light"?x.jsx($T,{className:"h-3.5 w-3.5"}):x.jsx(FT,{className:"h-3.5 w-3.5"})}async function y(){if(!(!r||a)){o(!0);try{const b=await lk(r);i.setQueryData(["session",r],b)}catch(b){console.error("Refresh failed:",b)}finally{o(!1)}}}return x.jsxs("aside",{className:"flex h-14 shrink-0 items-center border-b border-border bg-card px-6",children:[x.jsx("h1",{className:"mr-6 text-sm font-semibold tracking-tight text-foreground",children:"Timeline"}),x.jsxs("nav",{className:"flex items-center gap-1",children:[x.jsx(ha,{to:"/",className:"rounded-md bg-primary/10 px-3 py-1.5 text-xs font-medium text-primary transition-colors hover:bg-primary/20",children:"Sessions"}),x.jsxs(ha,{to:"/settings",className:"flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted/30 hover:text-foreground [&.active]:bg-primary/10 [&.active]:text-primary",children:[x.jsxs("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:[x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})]}),"Settings"]})]}),x.jsx("button",{onClick:p,title:`Theme: ${c}`,className:"ml-1 rounded-md px-2 py-1.5 text-muted-foreground transition-colors hover:bg-muted/30 hover:text-foreground",children:x.jsx(m,{})}),r&&x.jsx("div",{className:"ml-auto",children:x.jsxs(_E,{variant:"ghost",size:"xs",onClick:y,disabled:a,children:[x.jsx("svg",{className:`size-3.5 ${a?"animate-spin":""}`,fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182"})}),a?"Refreshing…":"Refresh"]})})]})}function zE({children:e}){return x.jsxs("div",{className:"flex min-h-screen flex-col bg-background",children:[x.jsx(ME,{}),x.jsx("main",{className:"flex-1 p-6",children:e})]})}function OE(){return Z.useEffect(()=>{const e=r=>{(r.metaKey||r.ctrlKey)&&r.key.toLowerCase()==="b"&&(r.preventDefault(),document.body.classList.toggle("privacy-on"))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),x.jsxs(zE,{children:[x.jsx(ev,{}),!1]})}const Yu=sT({component:OE}),DE=[{value:"auto",label:"Auto",description:"Use API cost when available, fall back to estimated"},{value:"api",label:"API Only",description:"Always use cost-capture data (falls back to estimated if unavailable)"},{value:"estimated",label:"Estimated",description:"Always use JSONL token counts × pricing rates"}];function LE(){const[e,r]=Z.useState(null),[i,a]=Z.useState("auto"),[o,u]=Z.useState(!1);Z.useEffect(()=>{sk().then(d=>{r(d),a(d.costMethod)}).catch(console.error)},[]);const c=async d=>{u(!0);try{await ok(d),a(d)}catch(p){console.error("Failed to update:",p)}finally{u(!1)}};return e?x.jsxs("div",{className:"space-y-6",children:[x.jsxs("section",{className:"rounded-xl border border-border bg-card p-6",children:[x.jsx("h2",{className:"mb-3 text-sm font-semibold uppercase tracking-wider text-muted-foreground",children:"Cost Capture"}),x.jsxs("div",{className:Ee("flex items-center gap-2 text-sm",e.costCapture.installed?"text-emerald-400":e.costCapture.dbExists?"text-amber-400":"text-muted-foreground"),children:[x.jsx("span",{className:Ee("inline-block h-2 w-2 rounded-full",e.costCapture.installed?"bg-emerald-500":e.costCapture.dbExists?"bg-amber-500":"bg-muted-foreground/40")}),e.costCapture.installed?"Active":e.costCapture.dbExists?"DB exists but statusline not active":"Not installed"]}),e.costCapture.installed&&x.jsxs("div",{className:"mt-2 space-y-1 text-xs text-muted-foreground",children:[x.jsxs("p",{children:["DB: ",e.costCapture.dbPath]}),x.jsxs("p",{children:[e.costCapture.sessionCount," sessions with cost data"]})]}),!e.costCapture.installed&&e.costCapture.dbExists&&x.jsxs("div",{className:"mt-2 space-y-1 text-xs text-muted-foreground",children:[x.jsxs("p",{children:["DB: ",e.costCapture.dbPath]}),x.jsxs("p",{children:[e.costCapture.sessionCount," sessions with cost data (historical)"]}),x.jsxs("p",{children:["Run ",x.jsx("code",{className:"rounded bg-accent px-1",children:"claude-timeline setup"})," to re-enable capture"]})]}),!e.costCapture.installed&&!e.costCapture.dbExists&&x.jsxs("p",{className:"mt-2 text-xs text-muted-foreground",children:["Run ",x.jsx("code",{className:"rounded bg-accent px-1",children:"claude-timeline setup"})," to enable"]})]}),x.jsxs("section",{className:"rounded-xl border border-border bg-card p-6",children:[x.jsx("h2",{className:"mb-3 text-sm font-semibold uppercase tracking-wider text-muted-foreground",children:"Cost Calculation Method"}),x.jsx("div",{className:"space-y-2",children:DE.map(d=>x.jsxs("label",{className:Ee("flex cursor-pointer items-start gap-3 rounded-lg border p-3 transition-colors",i===d.value?"border-primary/50 bg-primary/5":"border-border hover:bg-muted/30"),children:[x.jsx("input",{type:"radio",name:"costMethod",value:d.value,checked:i===d.value,onChange:()=>c(d.value),disabled:o,className:"mt-0.5"}),x.jsxs("div",{children:[x.jsx("span",{className:"text-sm font-medium text-foreground",children:d.label}),x.jsx("p",{className:"text-xs text-muted-foreground",children:d.description})]})]},d.value))})]}),e.costCapture.installed&&x.jsxs("section",{className:"rounded-xl border border-border bg-card p-6",children:[x.jsx("h2",{className:"mb-3 text-sm font-semibold uppercase tracking-wider text-muted-foreground",children:"Summary"}),x.jsxs("div",{className:"space-y-1 text-xs text-muted-foreground",children:[x.jsx("p",{children:"Sessions with API cost: checking..."}),x.jsx("p",{children:"Sessions with estimated only: checking..."})]})]})]}):x.jsx("div",{className:"text-sm text-muted-foreground",children:"Loading..."})}const BE=Uh("/settings")({component:UE});function UE(){return x.jsxs("div",{className:"mx-auto max-w-2xl space-y-6 p-6",children:[x.jsx("h1",{className:"text-lg font-bold text-foreground",children:"Settings"}),x.jsx(LE,{})]})}const gu=e=>e>=1e9?(e/1e9).toFixed(1)+"B":e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":e.toString();function Sr({label:e,value:r,title:i,accent:a}){return x.jsxs("div",{className:"rounded-lg border border-[var(--border)] bg-[var(--muted)] p-3",children:[x.jsx("span",{className:"block text-[10px] uppercase tracking-wider text-[var(--muted-foreground)]",children:e}),x.jsx("span",{title:i,className:Ee("block font-mono text-lg font-medium text-[var(--foreground)]",a&&"text-[var(--primary)]"),children:r})]})}function HE({session:e,pricing:r,className:i}){const a=new Date(e.endTime).getTime()-new Date(e.startTime).getTime(),o=e.totalTokens.inputTokens+e.totalTokens.outputTokens+e.totalTokens.cacheReadTokens,u=o>0?Math.round(e.totalTokens.cacheReadTokens/o*100):0;return x.jsxs("div",{className:Ee("rounded-xl border border-[var(--border)] bg-[var(--card)] p-6",i),children:[x.jsxs("div",{className:"mb-5",children:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsx("h2",{className:"text-lg font-bold text-[var(--foreground)]",children:("sessionName"in e?String(e.sessionName??""):"")||e.sessionId}),x.jsx("span",{className:Ee("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",e.isOngoing?"bg-emerald-500/15 text-emerald-400":"bg-[var(--accent)] text-[var(--muted-foreground)]"),children:e.isOngoing?"Ongoing":"Completed"})]}),x.jsx("p",{className:"mt-1 text-sm text-[var(--muted-foreground)]",children:e.projectName})]}),x.jsxs("div",{className:"grid gap-3",style:{gridTemplateColumns:"repeat(auto-fit, minmax(120px, 1fr))"},children:[x.jsx(Sr,{label:"Turns",value:String(e.turnCount),title:String(e.turnCount)}),x.jsx(Sr,{label:"Input Tokens",value:gu(e.totalTokens.inputTokens),title:e.totalTokens.inputTokens.toLocaleString()}),x.jsx(Sr,{label:"Output Tokens",value:gu(e.totalTokens.outputTokens),title:e.totalTokens.outputTokens.toLocaleString()}),x.jsx(Sr,{label:"Cache Read",value:`${gu(e.totalTokens.cacheReadTokens)} (${u}%)`,title:`${e.totalTokens.cacheReadTokens.toLocaleString()} (${u}%)`}),x.jsx(Sr,{label:"Cost",value:$e(r.totalCost),title:$e(r.totalCost),accent:!0})]}),x.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-3 md:grid-cols-4",children:[x.jsx(Sr,{label:"Model",value:e.model,title:e.model}),x.jsx(Sr,{label:"Total Tokens",value:gu(o),title:o.toLocaleString()}),x.jsx(Sr,{label:"Duration",value:mh(a),title:`${Math.round(a/1e3)}s`}),e.activeDurationMs!=null&&e.activeDurationMs>0&&x.jsx(Sr,{label:"Active Time",value:mh(e.activeDurationMs),title:`${Math.round(e.activeDurationMs/1e3)}s`,accent:!0})]}),x.jsxs("div",{className:"mt-3 flex items-center gap-3 text-xs text-[var(--muted-foreground)]",children:[x.jsx("span",{className:Ee("inline-flex items-center gap-1 rounded-full px-1.5 py-0.5 text-[0.625rem] font-medium",r.costSource==="api"?"bg-emerald-500/15 text-emerald-400":"bg-[var(--muted)] text-[var(--muted-foreground)]"),children:r.costSource==="api"?"● API":"○ Est."}),r.apiTotalCost!=null&&r.costSource!=="api"&&r.apiTotalCost!==r.totalCost&&x.jsxs("span",{className:"text-[0.625rem] text-[var(--muted-foreground)]",children:[$e(r.apiTotalCost)," from API"]}),r.costSource==="api"&&r.estimatedTotalCost!=null&&r.estimatedTotalCost!==r.totalCost&&x.jsxs("span",{className:"text-[0.625rem] text-[var(--muted-foreground)]",children:["~",$e(r.estimatedTotalCost)," estimated"]})]}),x.jsxs("div",{className:"mt-4 flex items-center gap-2 text-xs text-[var(--muted-foreground)]",children:[x.jsx("span",{className:"font-medium",children:"Working Directory:"}),x.jsx("code",{className:"rounded bg-[var(--accent)] px-1.5 py-0.5 font-mono text-[var(--muted-foreground)]",children:e.workingDirectory})]}),x.jsxs("div",{className:"mt-2 flex items-center gap-4 text-xs text-[var(--muted-foreground)]",children:[x.jsxs("span",{children:["Started: ",x.jsx("span",{className:"text-[var(--muted-foreground)]",children:f0(e.startTime)})]}),x.jsxs("span",{children:["Ended: ",x.jsx("span",{className:"text-[var(--muted-foreground)]",children:f0(e.endTime)})]})]}),x.jsxs("details",{className:"mt-4 rounded-lg border border-[var(--border)] overflow-hidden",children:[x.jsx("summary",{className:"cursor-pointer px-4 py-3 text-sm text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors",children:"What do these numbers mean?"}),x.jsx("div",{className:"px-4 pb-4 text-sm",children:x.jsxs("dl",{className:"grid grid-cols-[auto_1fr] gap-x-4 gap-y-2",children:[x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Session"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"One continuous run of Claude Code, from start to exit."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Turn"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"A single user message + assistant response exchange."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Input Tokens"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"Tokens sent to the model (your messages + context)."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Output Tokens"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"Tokens generated by the model (responses + tool calls)."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Cache Read"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"Tokens reused from previous API calls. Reduces cost significantly."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Cache Write"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"New cached tokens written to the cache."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Cost Estimate"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"Calculated from token counts × model pricing rates. May differ from actual billing."})]})})]})]})}function IE(e,r){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const qE=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,PE=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VE={};function d0(e,r){return(VE.jsx?PE:qE).test(e)}const GE=/[ \t\n\f\r]/g;function QE(e){return typeof e=="object"?e.type==="text"?h0(e.value):!1:h0(e)}function h0(e){return e.replace(GE,"")===""}class Vs{constructor(r,i,a){this.normal=i,this.property=r,a&&(this.space=a)}}Vs.prototype.normal={};Vs.prototype.property={};Vs.prototype.space=void 0;function Rv(e,r){const i={},a={};for(const o of e)Object.assign(i,o.property),Object.assign(a,o.normal);return new Vs(i,a,r)}function ph(e){return e.toLowerCase()}class rn{constructor(r,i){this.attribute=i,this.property=r}}rn.prototype.attribute="";rn.prototype.booleanish=!1;rn.prototype.boolean=!1;rn.prototype.commaOrSpaceSeparated=!1;rn.prototype.commaSeparated=!1;rn.prototype.defined=!1;rn.prototype.mustUseProperty=!1;rn.prototype.number=!1;rn.prototype.overloadedBoolean=!1;rn.prototype.property="";rn.prototype.spaceSeparated=!1;rn.prototype.space=void 0;let YE=0;const Re=nl(),yt=nl(),gh=nl(),ae=nl(),tt=nl(),Kl=nl(),hn=nl();function nl(){return 2**++YE}const yh=Object.freeze(Object.defineProperty({__proto__:null,boolean:Re,booleanish:yt,commaOrSpaceSeparated:hn,commaSeparated:Kl,number:ae,overloadedBoolean:gh,spaceSeparated:tt},Symbol.toStringTag,{value:"Module"})),zd=Object.keys(yh);class Qh extends rn{constructor(r,i,a,o){let u=-1;if(super(r,i),m0(this,"space",o),typeof a=="number")for(;++u<zd.length;){const c=zd[u];m0(this,zd[u],(a&yh[c])===yh[c])}}}Qh.prototype.defined=!0;function m0(e,r,i){i&&(e[r]=i)}function ga(e){const r={},i={};for(const[a,o]of Object.entries(e.properties)){const u=new Qh(a,e.transform(e.attributes||{},a),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(u.mustUseProperty=!0),r[a]=u,i[ph(a)]=a,i[ph(u.attribute)]=a}return new Vs(r,i,e.space)}const Av=ga({properties:{ariaActiveDescendant:null,ariaAtomic:yt,ariaAutoComplete:null,ariaBusy:yt,ariaChecked:yt,ariaColCount:ae,ariaColIndex:ae,ariaColSpan:ae,ariaControls:tt,ariaCurrent:null,ariaDescribedBy:tt,ariaDetails:null,ariaDisabled:yt,ariaDropEffect:tt,ariaErrorMessage:null,ariaExpanded:yt,ariaFlowTo:tt,ariaGrabbed:yt,ariaHasPopup:null,ariaHidden:yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tt,ariaLevel:ae,ariaLive:null,ariaModal:yt,ariaMultiLine:yt,ariaMultiSelectable:yt,ariaOrientation:null,ariaOwns:tt,ariaPlaceholder:null,ariaPosInSet:ae,ariaPressed:yt,ariaReadOnly:yt,ariaRelevant:null,ariaRequired:yt,ariaRoleDescription:tt,ariaRowCount:ae,ariaRowIndex:ae,ariaRowSpan:ae,ariaSelected:yt,ariaSetSize:ae,ariaSort:null,ariaValueMax:ae,ariaValueMin:ae,ariaValueNow:ae,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function _v(e,r){return r in e?e[r]:r}function Mv(e,r){return _v(e,r.toLowerCase())}const FE=ga({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Kl,acceptCharset:tt,accessKey:tt,action:null,allow:null,allowFullScreen:Re,allowPaymentRequest:Re,allowUserMedia:Re,alt:null,as:null,async:Re,autoCapitalize:null,autoComplete:tt,autoFocus:Re,autoPlay:Re,blocking:tt,capture:null,charSet:null,checked:Re,cite:null,className:tt,cols:ae,colSpan:null,content:null,contentEditable:yt,controls:Re,controlsList:tt,coords:ae|Kl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Re,defer:Re,dir:null,dirName:null,disabled:Re,download:gh,draggable:yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Re,formTarget:null,headers:tt,height:ae,hidden:gh,high:ae,href:null,hrefLang:null,htmlFor:tt,httpEquiv:tt,id:null,imageSizes:null,imageSrcSet:null,inert:Re,inputMode:null,integrity:null,is:null,isMap:Re,itemId:null,itemProp:tt,itemRef:tt,itemScope:Re,itemType:tt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Re,low:ae,manifest:null,max:null,maxLength:ae,media:null,method:null,min:null,minLength:ae,multiple:Re,muted:Re,name:null,nonce:null,noModule:Re,noValidate:Re,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:Re,optimum:ae,pattern:null,ping:tt,placeholder:null,playsInline:Re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Re,referrerPolicy:null,rel:tt,required:Re,reversed:Re,rows:ae,rowSpan:ae,sandbox:tt,scope:null,scoped:Re,seamless:Re,selected:Re,shadowRootClonable:Re,shadowRootDelegatesFocus:Re,shadowRootMode:null,shape:null,size:ae,sizes:null,slot:null,span:ae,spellCheck:yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ae,step:null,style:null,tabIndex:ae,target:null,title:null,translate:null,type:null,typeMustMatch:Re,useMap:null,value:yt,width:ae,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tt,axis:null,background:null,bgColor:null,border:ae,borderColor:null,bottomMargin:ae,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Re,declare:Re,event:null,face:null,frame:null,frameBorder:null,hSpace:ae,leftMargin:ae,link:null,longDesc:null,lowSrc:null,marginHeight:ae,marginWidth:ae,noResize:Re,noHref:Re,noShade:Re,noWrap:Re,object:null,profile:null,prompt:null,rev:null,rightMargin:ae,rules:null,scheme:null,scrolling:yt,standby:null,summary:null,text:null,topMargin:ae,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ae,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Re,disableRemotePlayback:Re,prefix:null,property:null,results:ae,security:null,unselectable:null},space:"html",transform:Mv}),XE=ga({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:hn,accentHeight:ae,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ae,amplitude:ae,arabicForm:null,ascent:ae,attributeName:null,attributeType:null,azimuth:ae,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ae,by:null,calcMode:null,capHeight:ae,className:tt,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:ae,diffuseConstant:ae,direction:null,display:null,dur:null,divisor:ae,dominantBaseline:null,download:Re,dx:null,dy:null,edgeMode:null,editable:null,elevation:ae,enableBackground:null,end:null,event:null,exponent:ae,externalResourcesRequired:null,fill:null,fillOpacity:ae,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:Kl,g2:Kl,glyphName:Kl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ae,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ae,horizOriginX:ae,horizOriginY:ae,id:null,ideographic:ae,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ae,k:ae,k1:ae,k2:ae,k3:ae,k4:ae,kernelMatrix:hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ae,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ae,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:ae,overlineThickness:ae,paintOrder:null,panose1:null,path:null,pathLength:ae,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ae,pointsAtY:ae,pointsAtZ:ae,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:hn,rev:hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:hn,requiredFeatures:hn,requiredFonts:hn,requiredFormats:hn,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:ae,specularExponent:ae,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ae,strikethroughThickness:ae,string:null,stroke:null,strokeDashArray:hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ae,strokeOpacity:ae,strokeWidth:null,style:null,surfaceScale:ae,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:hn,tabIndex:ae,tableValues:null,target:null,targetX:ae,targetY:ae,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ae,underlineThickness:ae,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ae,values:null,vAlphabetic:ae,vMathematical:ae,vectorEffect:null,vHanging:ae,vIdeographic:ae,version:null,vertAdvY:ae,vertOriginX:ae,vertOriginY:ae,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ae,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_v}),zv=ga({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}}),Ov=ga({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Mv}),Dv=ga({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),KE={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"},ZE=/[A-Z]/g,p0=/-[a-z]/g,JE=/^data[-\w.:]+$/i;function $E(e,r){const i=ph(r);let a=r,o=rn;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&JE.test(r)){if(r.charAt(4)==="-"){const u=r.slice(5).replace(p0,eN);a="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=r.slice(4);if(!p0.test(u)){let c=u.replace(ZE,WE);c.charAt(0)!=="-"&&(c="-"+c),r="data"+c}}o=Qh}return new o(a,r)}function WE(e){return"-"+e.toLowerCase()}function eN(e){return e.charAt(1).toUpperCase()}const tN=Rv([Av,FE,zv,Ov,Dv],"html"),Yh=Rv([Av,XE,zv,Ov,Dv],"svg");function nN(e){return e.join(" ").trim()}var Vl={},Od,g0;function rN(){if(g0)return Od;g0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
|
|
146
146
|
`,m="/",y="*",g="",b="comment",v="declaration";function C(T,j){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];j=j||{};var H=1,_=1;function V($){var F=$.match(r);F&&(H+=F.length);var O=$.lastIndexOf(p);_=~O?$.length-O:_+$.length}function L(){var $={line:H,column:_};return function(F){return F.position=new M($),P(),F}}function M($){this.start=$,this.end={line:H,column:_},this.source=j.source}M.prototype.content=T;function B($){var F=new Error(j.source+":"+H+":"+_+": "+$);if(F.reason=$,F.filename=j.source,F.line=H,F.column=_,F.source=T,!j.silent)throw F}function U($){var F=$.exec(T);if(F){var O=F[0];return V(O),T=T.slice(O.length),F}}function P(){U(i)}function Y($){var F;for($=$||[];F=X();)F!==!1&&$.push(F);return $}function X(){var $=L();if(!(m!=T.charAt(0)||y!=T.charAt(1))){for(var F=2;g!=T.charAt(F)&&(y!=T.charAt(F)||m!=T.charAt(F+1));)++F;if(F+=2,g===T.charAt(F-1))return B("End of comment missing");var O=T.slice(2,F-2);return _+=2,V(O),T=T.slice(F),_+=2,$({type:b,comment:O})}}function q(){var $=L(),F=U(a);if(F){if(X(),!U(o))return B("property missing ':'");var O=U(u),W=$({type:v,property:k(F[0].replace(e,g)),value:O?k(O[0].replace(e,g)):g});return U(c),W}}function le(){var $=[];Y($);for(var F;F=q();)F!==!1&&($.push(F),Y($));return $}return P(),le()}function k(T){return T?T.replace(d,g):g}return Od=C,Od}var y0;function iN(){if(y0)return Vl;y0=1;var e=Vl&&Vl.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.default=i;const r=e(rN());function i(a,o){let u=null;if(!a||typeof a!="string")return u;const c=(0,r.default)(a),d=typeof o=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:y}=p;d?o(m,y,p):y&&(u=u||{},u[m]=y)}),u}return Vl}var ys={},x0;function lN(){if(x0)return ys;x0=1,Object.defineProperty(ys,"__esModule",{value:!0}),ys.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,u=function(m){return!m||i.test(m)||e.test(m)},c=function(m,y){return y.toUpperCase()},d=function(m,y){return"".concat(y,"-")},p=function(m,y){return y===void 0&&(y={}),u(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(o,d):m=m.replace(a,d),m.replace(r,c))};return ys.camelCase=p,ys}var xs,b0;function aN(){if(b0)return xs;b0=1;var e=xs&&xs.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},r=e(iN()),i=lN();function a(o,u){var c={};return!o||typeof o!="string"||(0,r.default)(o,function(d,p){d&&p&&(c[(0,i.camelCase)(d,u)]=p)}),c}return a.default=a,xs=a,xs}var sN=aN();const oN=Nh(sN),Lv=Bv("end"),Fh=Bv("start");function Bv(e){return r;function r(i){const a=i&&i.position&&i.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function uN(e){const r=Fh(e),i=Lv(e);if(r&&i)return{start:r,end:i}}function Ts(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?v0(e.position):"start"in e||"end"in e?v0(e):"line"in e||"column"in e?xh(e):""}function xh(e){return S0(e&&e.line)+":"+S0(e&&e.column)}function v0(e){return xh(e&&e.start)+"-"+xh(e&&e.end)}function S0(e){return e&&typeof e=="number"?e:1}class Ut extends Error{constructor(r,i,a){super(),typeof i=="string"&&(a=i,i=void 0);let o="",u={},c=!1;if(i&&("line"in i&&"column"in i?u={place:i}:"start"in i&&"end"in i?u={place:i}:"type"in i?u={ancestors:[i],place:i.position}:u={...i}),typeof r=="string"?o=r:!u.cause&&r&&(c=!0,o=r.message,u.cause=r),!u.ruleId&&!u.source&&typeof a=="string"){const p=a.indexOf(":");p===-1?u.ruleId=a:(u.source=a.slice(0,p),u.ruleId=a.slice(p+1))}if(!u.place&&u.ancestors&&u.ancestors){const p=u.ancestors[u.ancestors.length-1];p&&(u.place=p.position)}const d=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=Ts(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ut.prototype.file="";Ut.prototype.name="";Ut.prototype.reason="";Ut.prototype.message="";Ut.prototype.stack="";Ut.prototype.column=void 0;Ut.prototype.line=void 0;Ut.prototype.ancestors=void 0;Ut.prototype.cause=void 0;Ut.prototype.fatal=void 0;Ut.prototype.place=void 0;Ut.prototype.ruleId=void 0;Ut.prototype.source=void 0;const Xh={}.hasOwnProperty,cN=new Map,fN=/[A-Z]/g,dN=new Set(["table","tbody","thead","tfoot","tr"]),hN=new Set(["td","th"]),Uv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function mN(e,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=r.filePath||void 0;let a;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=wN(i,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=SN(i,r.jsx,r.jsxs)}const o={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:a,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?Yh:tN,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},u=Hv(o,e,void 0);return u&&typeof u!="string"?u:o.create(e,o.Fragment,{children:u||void 0},void 0)}function Hv(e,r,i){if(r.type==="element")return pN(e,r,i);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return gN(e,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return xN(e,r,i);if(r.type==="mdxjsEsm")return yN(e,r);if(r.type==="root")return bN(e,r,i);if(r.type==="text")return vN(e,r)}function pN(e,r,i){const a=e.schema;let o=a;r.tagName.toLowerCase()==="svg"&&a.space==="html"&&(o=Yh,e.schema=o),e.ancestors.push(r);const u=qv(e,r.tagName,!1),c=CN(e,r);let d=Zh(e,r);return dN.has(r.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!QE(p):!0})),Iv(e,c,u,r),Kh(c,d),e.ancestors.pop(),e.schema=a,e.create(r,u,c,i)}function gN(e,r){if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Ds(e,r.position)}function yN(e,r){if(r.data&&r.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(r.data.estree);Ds(e,r.position)}function xN(e,r,i){const a=e.schema;let o=a;r.name==="svg"&&a.space==="html"&&(o=Yh,e.schema=o),e.ancestors.push(r);const u=r.name===null?e.Fragment:qv(e,r.name,!0),c=TN(e,r),d=Zh(e,r);return Iv(e,c,u,r),Kh(c,d),e.ancestors.pop(),e.schema=a,e.create(r,u,c,i)}function bN(e,r,i){const a={};return Kh(a,Zh(e,r)),e.create(r,e.Fragment,a,i)}function vN(e,r){return r.value}function Iv(e,r,i,a){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(r.node=a)}function Kh(e,r){if(r.length>0){const i=r.length>1?r:r[0];i&&(e.children=i)}}function SN(e,r,i){return a;function a(o,u,c,d){const m=Array.isArray(c.children)?i:r;return d?m(u,c,d):m(u,c)}}function wN(e,r){return i;function i(a,o,u,c){const d=Array.isArray(u.children),p=Fh(a);return r(o,u,c,d,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function CN(e,r){const i={};let a,o;for(o in r.properties)if(o!=="children"&&Xh.call(r.properties,o)){const u=kN(e,o,r.properties[o]);if(u){const[c,d]=u;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&hN.has(r.tagName)?a=d:i[c]=d}}if(a){const u=i.style||(i.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return i}function TN(e,r){const i={};for(const a of r.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const u=a.data.estree.body[0];u.type;const c=u.expression;c.type;const d=c.properties[0];d.type,Object.assign(i,e.evaluater.evaluateExpression(d.argument))}else Ds(e,r.position);else{const o=a.name;let u;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const d=a.value.data.estree.body[0];d.type,u=e.evaluater.evaluateExpression(d.expression)}else Ds(e,r.position);else u=a.value===null?!0:a.value;i[o]=u}return i}function Zh(e,r){const i=[];let a=-1;const o=e.passKeys?new Map:cN;for(;++a<r.children.length;){const u=r.children[a];let c;if(e.passKeys){const p=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(p){const m=o.get(p)||0;c=p+"-"+m,o.set(p,m+1)}}const d=Hv(e,u,c);d!==void 0&&i.push(d)}return i}function kN(e,r,i){const a=$E(e.schema,r);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=a.commaSeparated?IE(i):nN(i)),a.property==="style"){let o=typeof i=="object"?i:EN(e,String(i));return e.stylePropertyNameCase==="css"&&(o=NN(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&a.space?KE[a.property]||a.property:a.attribute,i]}}function EN(e,r){try{return oN(r,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const a=i,o=new Ut("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=Uv+"#cannot-parse-style-attribute",o}}function qv(e,r,i){let a;if(!i)a={type:"Literal",value:r};else if(r.includes(".")){const o=r.split(".");let u=-1,c;for(;++u<o.length;){const d=d0(o[u])?{type:"Identifier",name:o[u]}:{type:"Literal",value:o[u]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(u&&d.type==="Literal"),optional:!1}:d}a=c}else a=d0(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(a.type==="Literal"){const o=a.value;return Xh.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(a);Ds(e)}function Ds(e,r){const i=new Ut("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Uv+"#cannot-handle-mdx-estrees-without-createevaluater",i}function NN(e){const r={};let i;for(i in e)Xh.call(e,i)&&(r[jN(i)]=e[i]);return r}function jN(e){let r=e.replace(fN,RN);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function RN(e){return"-"+e.toLowerCase()}const Dd={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"]},AN={};function _N(e,r){const i=AN,a=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,o=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return Pv(e,a,o)}function Pv(e,r,i){if(MN(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return w0(e.children,r,i)}return Array.isArray(e)?w0(e,r,i):""}function w0(e,r,i){const a=[];let o=-1;for(;++o<e.length;)a[o]=Pv(e[o],r,i);return a.join("")}function MN(e){return!!(e&&typeof e=="object")}const C0=document.createElement("i");function Jh(e){const r="&"+e+";";C0.innerHTML=r;const i=C0.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===r?!1:i}function Wn(e,r,i,a){const o=e.length;let u=0,c;if(r<0?r=-r>o?0:o+r:r=r>o?o:r,i=i>0?i:0,a.length<1e4)c=Array.from(a),c.unshift(r,i),e.splice(...c);else for(i&&e.splice(r,i);u<a.length;)c=a.slice(u,u+1e4),c.unshift(r,0),e.splice(...c),u+=1e4,r+=1e4}function jn(e,r){return e.length>0?(Wn(e,e.length,0,r),e):r}const T0={}.hasOwnProperty;function zN(e){const r={};let i=-1;for(;++i<e.length;)ON(r,e[i]);return r}function ON(e,r){let i;for(i in r){const o=(T0.call(e,i)?e[i]:void 0)||(e[i]={}),u=r[i];let c;if(u)for(c in u){T0.call(o,c)||(o[c]=[]);const d=u[c];DN(o[c],Array.isArray(d)?d:d?[d]:[])}}}function DN(e,r){let i=-1;const a=[];for(;++i<r.length;)(r[i].add==="after"?e:a).push(r[i]);Wn(e,0,0,a)}function Vv(e,r){const i=Number.parseInt(e,r);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Zl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $n=yi(/[A-Za-z]/),mn=yi(/[\dA-Za-z]/),LN=yi(/[#-'*+\--9=?A-Z^-~]/);function bh(e){return e!==null&&(e<32||e===127)}const vh=yi(/\d/),BN=yi(/[\dA-Fa-f]/),UN=yi(/[!-/:-@[-`{-~]/);function Ce(e){return e!==null&&e<-2}function nn(e){return e!==null&&(e<0||e===32)}function Ve(e){return e===-2||e===-1||e===32}const HN=yi(new RegExp("\\p{P}|\\p{S}","u")),IN=yi(/\s/);function yi(e){return r;function r(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function ya(e){const r=[];let i=-1,a=0,o=0;for(;++i<e.length;){const u=e.charCodeAt(i);let c="";if(u===37&&mn(e.charCodeAt(i+1))&&mn(e.charCodeAt(i+2)))o=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const d=e.charCodeAt(i+1);u<56320&&d>56319&&d<57344?(c=String.fromCharCode(u,d),o=1):c="�"}else c=String.fromCharCode(u);c&&(r.push(e.slice(a,i),encodeURIComponent(c)),a=i+o+1,c=""),o&&(i+=o,o=0)}return r.join("")+e.slice(a)}function nt(e,r,i,a){const o=a?a-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(p){return Ve(p)?(e.enter(i),d(p)):r(p)}function d(p){return Ve(p)&&u++<o?(e.consume(p),d):(e.exit(i),r(p))}}const qN={tokenize:PN};function PN(e){const r=e.attempt(this.parser.constructs.contentInitial,a,o);let i;return r;function a(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),nt(e,r,"linePrefix")}function o(d){return e.enter("paragraph"),u(d)}function u(d){const p=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=p),i=p,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Ce(d)?(e.consume(d),e.exit("chunkText"),u):(e.consume(d),c)}}const VN={tokenize:GN},k0={tokenize:QN};function GN(e){const r=this,i=[];let a=0,o,u,c;return d;function d(_){if(a<i.length){const V=i[a];return r.containerState=V[1],e.attempt(V[0].continuation,p,m)(_)}return m(_)}function p(_){if(a++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,o&&H();const V=r.events.length;let L=V,M;for(;L--;)if(r.events[L][0]==="exit"&&r.events[L][1].type==="chunkFlow"){M=r.events[L][1].end;break}j(a);let B=V;for(;B<r.events.length;)r.events[B][1].end={...M},B++;return Wn(r.events,L+1,0,r.events.slice(V)),r.events.length=B,m(_)}return d(_)}function m(_){if(a===i.length){if(!o)return b(_);if(o.currentConstruct&&o.currentConstruct.concrete)return C(_);r.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(k0,y,g)(_)}function y(_){return o&&H(),j(a),b(_)}function g(_){return r.parser.lazy[r.now().line]=a!==i.length,c=r.now().offset,C(_)}function b(_){return r.containerState={},e.attempt(k0,v,C)(_)}function v(_){return a++,i.push([r.currentConstruct,r.containerState]),b(_)}function C(_){if(_===null){o&&H(),j(0),e.consume(_);return}return o=o||r.parser.flow(r.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:u}),k(_)}function k(_){if(_===null){T(e.exit("chunkFlow"),!0),j(0),e.consume(_);return}return Ce(_)?(e.consume(_),T(e.exit("chunkFlow")),a=0,r.interrupt=void 0,d):(e.consume(_),k)}function T(_,V){const L=r.sliceStream(_);if(V&&L.push(null),_.previous=u,u&&(u.next=_),u=_,o.defineSkip(_.start),o.write(L),r.parser.lazy[_.start.line]){let M=o.events.length;for(;M--;)if(o.events[M][1].start.offset<c&&(!o.events[M][1].end||o.events[M][1].end.offset>c))return;const B=r.events.length;let U=B,P,Y;for(;U--;)if(r.events[U][0]==="exit"&&r.events[U][1].type==="chunkFlow"){if(P){Y=r.events[U][1].end;break}P=!0}for(j(a),M=B;M<r.events.length;)r.events[M][1].end={...Y},M++;Wn(r.events,U+1,0,r.events.slice(B)),r.events.length=M}}function j(_){let V=i.length;for(;V-- >_;){const L=i[V];r.containerState=L[1],L[0].exit.call(r,e)}i.length=_}function H(){o.write([null]),u=void 0,o=void 0,r.containerState._closeFlow=void 0}}function QN(e,r,i){return nt(e,e.attempt(this.parser.constructs.document,r,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function E0(e){if(e===null||nn(e)||IN(e))return 1;if(HN(e))return 2}function $h(e,r,i){const a=[];let o=-1;for(;++o<e.length;){const u=e[o].resolveAll;u&&!a.includes(u)&&(r=u(r,i),a.push(u))}return r}const Sh={name:"attention",resolveAll:YN,tokenize:FN};function YN(e,r){let i=-1,a,o,u,c,d,p,m,y;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(a=i;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&r.sliceSerialize(e[a][1]).charCodeAt(0)===r.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[a][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;p=e[a][1].end.offset-e[a][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const g={...e[a][1].end},b={...e[i][1].start};N0(g,-p),N0(b,p),c={type:p>1?"strongSequence":"emphasisSequence",start:g,end:{...e[a][1].end}},d={type:p>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:b},u={type:p>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[i][1].start}},o={type:p>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[a][1].end={...c.start},e[i][1].start={...d.end},m=[],e[a][1].end.offset-e[a][1].start.offset&&(m=jn(m,[["enter",e[a][1],r],["exit",e[a][1],r]])),m=jn(m,[["enter",o,r],["enter",c,r],["exit",c,r],["enter",u,r]]),m=jn(m,$h(r.parser.constructs.insideSpan.null,e.slice(a+1,i),r)),m=jn(m,[["exit",u,r],["enter",d,r],["exit",d,r],["exit",o,r]]),e[i][1].end.offset-e[i][1].start.offset?(y=2,m=jn(m,[["enter",e[i][1],r],["exit",e[i][1],r]])):y=0,Wn(e,a-1,i-a+3,m),i=a+m.length-y-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function FN(e,r){const i=this.parser.constructs.attentionMarkers.null,a=this.previous,o=E0(a);let u;return c;function c(p){return u=p,e.enter("attentionSequence"),d(p)}function d(p){if(p===u)return e.consume(p),d;const m=e.exit("attentionSequence"),y=E0(p),g=!y||y===2&&o||i.includes(p),b=!o||o===2&&y||i.includes(a);return m._open=!!(u===42?g:g&&(o||!b)),m._close=!!(u===42?b:b&&(y||!g)),r(p)}}function N0(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}const XN={name:"autolink",tokenize:KN};function KN(e,r,i){let a=0;return o;function o(v){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(v){return $n(v)?(e.consume(v),c):v===64?i(v):m(v)}function c(v){return v===43||v===45||v===46||mn(v)?(a=1,d(v)):m(v)}function d(v){return v===58?(e.consume(v),a=0,p):(v===43||v===45||v===46||mn(v))&&a++<32?(e.consume(v),d):(a=0,m(v))}function p(v){return v===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),r):v===null||v===32||v===60||bh(v)?i(v):(e.consume(v),p)}function m(v){return v===64?(e.consume(v),y):LN(v)?(e.consume(v),m):i(v)}function y(v){return mn(v)?g(v):i(v)}function g(v){return v===46?(e.consume(v),a=0,y):v===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),r):b(v)}function b(v){if((v===45||mn(v))&&a++<63){const C=v===45?b:g;return e.consume(v),C}return i(v)}}const Fu={partial:!0,tokenize:ZN};function ZN(e,r,i){return a;function a(u){return Ve(u)?nt(e,o,"linePrefix")(u):o(u)}function o(u){return u===null||Ce(u)?r(u):i(u)}}const Gv={continuation:{tokenize:$N},exit:WN,name:"blockQuote",tokenize:JN};function JN(e,r,i){const a=this;return o;function o(c){if(c===62){const d=a.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return i(c)}function u(c){return Ve(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r):(e.exit("blockQuotePrefix"),r(c))}}function $N(e,r,i){const a=this;return o;function o(c){return Ve(c)?nt(e,u,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(Gv,r,i)(c)}}function WN(e){e.exit("blockQuote")}const Qv={name:"characterEscape",tokenize:ej};function ej(e,r,i){return a;function a(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),o}function o(u){return UN(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),r):i(u)}}const Yv={name:"characterReference",tokenize:tj};function tj(e,r,i){const a=this;let o=0,u,c;return d;function d(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),p}function p(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),u=31,c=mn,y(g))}function m(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=BN,y):(e.enter("characterReferenceValue"),u=7,c=vh,y(g))}function y(g){if(g===59&&o){const b=e.exit("characterReferenceValue");return c===mn&&!Jh(a.sliceSerialize(b))?i(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),r)}return c(g)&&o++<u?(e.consume(g),y):i(g)}}const j0={partial:!0,tokenize:rj},R0={concrete:!0,name:"codeFenced",tokenize:nj};function nj(e,r,i){const a=this,o={partial:!0,tokenize:L};let u=0,c=0,d;return p;function p(M){return m(M)}function m(M){const B=a.events[a.events.length-1];return u=B&&B[1].type==="linePrefix"?B[2].sliceSerialize(B[1],!0).length:0,d=M,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(M)}function y(M){return M===d?(c++,e.consume(M),y):c<3?i(M):(e.exit("codeFencedFenceSequence"),Ve(M)?nt(e,g,"whitespace")(M):g(M))}function g(M){return M===null||Ce(M)?(e.exit("codeFencedFence"),a.interrupt?r(M):e.check(j0,k,V)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(M))}function b(M){return M===null||Ce(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(M)):Ve(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),nt(e,v,"whitespace")(M)):M===96&&M===d?i(M):(e.consume(M),b)}function v(M){return M===null||Ce(M)?g(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),C(M))}function C(M){return M===null||Ce(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(M)):M===96&&M===d?i(M):(e.consume(M),C)}function k(M){return e.attempt(o,V,T)(M)}function T(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),j}function j(M){return u>0&&Ve(M)?nt(e,H,"linePrefix",u+1)(M):H(M)}function H(M){return M===null||Ce(M)?e.check(j0,k,V)(M):(e.enter("codeFlowValue"),_(M))}function _(M){return M===null||Ce(M)?(e.exit("codeFlowValue"),H(M)):(e.consume(M),_)}function V(M){return e.exit("codeFenced"),r(M)}function L(M,B,U){let P=0;return Y;function Y(F){return M.enter("lineEnding"),M.consume(F),M.exit("lineEnding"),X}function X(F){return M.enter("codeFencedFence"),Ve(F)?nt(M,q,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):q(F)}function q(F){return F===d?(M.enter("codeFencedFenceSequence"),le(F)):U(F)}function le(F){return F===d?(P++,M.consume(F),le):P>=c?(M.exit("codeFencedFenceSequence"),Ve(F)?nt(M,$,"whitespace")(F):$(F)):U(F)}function $(F){return F===null||Ce(F)?(M.exit("codeFencedFence"),B(F)):U(F)}}}function rj(e,r,i){const a=this;return o;function o(c){return c===null?i(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return a.parser.lazy[a.now().line]?i(c):r(c)}}const Ld={name:"codeIndented",tokenize:lj},ij={partial:!0,tokenize:aj};function lj(e,r,i){const a=this;return o;function o(m){return e.enter("codeIndented"),nt(e,u,"linePrefix",5)(m)}function u(m){const y=a.events[a.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(m):i(m)}function c(m){return m===null?p(m):Ce(m)?e.attempt(ij,c,p)(m):(e.enter("codeFlowValue"),d(m))}function d(m){return m===null||Ce(m)?(e.exit("codeFlowValue"),c(m)):(e.consume(m),d)}function p(m){return e.exit("codeIndented"),r(m)}}function aj(e,r,i){const a=this;return o;function o(c){return a.parser.lazy[a.now().line]?i(c):Ce(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):nt(e,u,"linePrefix",5)(c)}function u(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(c):Ce(c)?o(c):i(c)}}const sj={name:"codeText",previous:uj,resolve:oj,tokenize:cj};function oj(e){let r=e.length-4,i=3,a,o;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(a=i;++a<r;)if(e[a][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(a=i-1,r++;++a<=r;)o===void 0?a!==r&&e[a][1].type!=="lineEnding"&&(o=a):(a===r||e[a][1].type==="lineEnding")&&(e[o][1].type="codeTextData",a!==o+2&&(e[o][1].end=e[a-1][1].end,e.splice(o+2,a-o-2),r-=a-o-2,a=o+2),o=void 0);return e}function uj(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function cj(e,r,i){let a=0,o,u;return c;function c(g){return e.enter("codeText"),e.enter("codeTextSequence"),d(g)}function d(g){return g===96?(e.consume(g),a++,d):(e.exit("codeTextSequence"),p(g))}function p(g){return g===null?i(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),p):g===96?(u=e.enter("codeTextSequence"),o=0,y(g)):Ce(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||Ce(g)?(e.exit("codeTextData"),p(g)):(e.consume(g),m)}function y(g){return g===96?(e.consume(g),o++,y):o===a?(e.exit("codeTextSequence"),e.exit("codeText"),r(g)):(u.type="codeTextData",m(g))}}class fj{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,i){const a=i??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(r,a):r>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(r,i,a){const o=i||0;this.setCursor(Math.trunc(r));const u=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return a&&bs(this.left,a),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),bs(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),bs(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const i=this.left.splice(r,Number.POSITIVE_INFINITY);bs(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);bs(this.left,i.reverse())}}}function bs(e,r){let i=0;if(r.length<1e4)e.push(...r);else for(;i<r.length;)e.push(...r.slice(i,i+1e4)),i+=1e4}function Fv(e){const r={};let i=-1,a,o,u,c,d,p,m;const y=new fj(e);for(;++i<y.length;){for(;i in r;)i=r[i];if(a=y.get(i),i&&a[1].type==="chunkFlow"&&y.get(i-1)[1].type==="listItemPrefix"&&(p=a[1]._tokenizer.events,u=0,u<p.length&&p[u][1].type==="lineEndingBlank"&&(u+=2),u<p.length&&p[u][1].type==="content"))for(;++u<p.length&&p[u][1].type!=="content";)p[u][1].type==="chunkText"&&(p[u][1]._isInFirstContentOfListItem=!0,u++);if(a[0]==="enter")a[1].contentType&&(Object.assign(r,dj(y,i)),i=r[i],m=!0);else if(a[1]._container){for(u=i,o=void 0;u--;)if(c=y.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(a[1].end={...y.get(o)[1].start},d=y.slice(o,i),d.unshift(a),y.splice(o,i-o+1,d))}}return Wn(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function dj(e,r){const i=e.get(r)[1],a=e.get(r)[2];let o=r-1;const u=[];let c=i._tokenizer;c||(c=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,p=[],m={};let y,g,b=-1,v=i,C=0,k=0;const T=[k];for(;v;){for(;e.get(++o)[1]!==v;);u.push(o),v._tokenizer||(y=a.sliceStream(v),v.next||y.push(null),g&&c.defineSkip(v.start),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=v,v=v.next}for(v=i;++b<d.length;)d[b][0]==="exit"&&d[b-1][0]==="enter"&&d[b][1].type===d[b-1][1].type&&d[b][1].start.line!==d[b][1].end.line&&(k=b+1,T.push(k),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(c.events=[],v?(v._tokenizer=void 0,v.previous=void 0):T.pop(),b=T.length;b--;){const j=d.slice(T[b],T[b+1]),H=u.pop();p.push([H,H+j.length-1]),e.splice(H,2,j)}for(p.reverse(),b=-1;++b<p.length;)m[C+p[b][0]]=C+p[b][1],C+=p[b][1]-p[b][0]-1;return m}const hj={resolve:pj,tokenize:gj},mj={partial:!0,tokenize:yj};function pj(e){return Fv(e),e}function gj(e,r){let i;return a;function a(d){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?u(d):Ce(d)?e.check(mj,c,u)(d):(e.consume(d),o)}function u(d){return e.exit("chunkContent"),e.exit("content"),r(d)}function c(d){return e.consume(d),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,o}}function yj(e,r,i){const a=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),nt(e,u,"linePrefix")}function u(c){if(c===null||Ce(c))return i(c);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(c):e.interrupt(a.parser.constructs.flow,i,r)(c)}}function Xv(e,r,i,a,o,u,c,d,p){const m=p||Number.POSITIVE_INFINITY;let y=0;return g;function g(j){return j===60?(e.enter(a),e.enter(o),e.enter(u),e.consume(j),e.exit(u),b):j===null||j===32||j===41||bh(j)?i(j):(e.enter(a),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),k(j))}function b(j){return j===62?(e.enter(u),e.consume(j),e.exit(u),e.exit(o),e.exit(a),r):(e.enter(d),e.enter("chunkString",{contentType:"string"}),v(j))}function v(j){return j===62?(e.exit("chunkString"),e.exit(d),b(j)):j===null||j===60||Ce(j)?i(j):(e.consume(j),j===92?C:v)}function C(j){return j===60||j===62||j===92?(e.consume(j),v):v(j)}function k(j){return!y&&(j===null||j===41||nn(j))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(a),r(j)):y<m&&j===40?(e.consume(j),y++,k):j===41?(e.consume(j),y--,k):j===null||j===32||j===40||bh(j)?i(j):(e.consume(j),j===92?T:k)}function T(j){return j===40||j===41||j===92?(e.consume(j),k):k(j)}}function Kv(e,r,i,a,o,u){const c=this;let d=0,p;return m;function m(v){return e.enter(a),e.enter(o),e.consume(v),e.exit(o),e.enter(u),y}function y(v){return d>999||v===null||v===91||v===93&&!p||v===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?i(v):v===93?(e.exit(u),e.enter(o),e.consume(v),e.exit(o),e.exit(a),r):Ce(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||Ce(v)||d++>999?(e.exit("chunkString"),y(v)):(e.consume(v),p||(p=!Ve(v)),v===92?b:g)}function b(v){return v===91||v===92||v===93?(e.consume(v),d++,g):g(v)}}function Zv(e,r,i,a,o,u){let c;return d;function d(b){return b===34||b===39||b===40?(e.enter(a),e.enter(o),e.consume(b),e.exit(o),c=b===40?41:b,p):i(b)}function p(b){return b===c?(e.enter(o),e.consume(b),e.exit(o),e.exit(a),r):(e.enter(u),m(b))}function m(b){return b===c?(e.exit(u),p(c)):b===null?i(b):Ce(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),nt(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===c||b===null||Ce(b)?(e.exit("chunkString"),m(b)):(e.consume(b),b===92?g:y)}function g(b){return b===c||b===92?(e.consume(b),y):y(b)}}function ks(e,r){let i;return a;function a(o){return Ce(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i=!0,a):Ve(o)?nt(e,a,i?"linePrefix":"lineSuffix")(o):r(o)}}const xj={name:"definition",tokenize:vj},bj={partial:!0,tokenize:Sj};function vj(e,r,i){const a=this;let o;return u;function u(v){return e.enter("definition"),c(v)}function c(v){return Kv.call(a,e,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function d(v){return o=Zl(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),p):i(v)}function p(v){return nn(v)?ks(e,m)(v):m(v)}function m(v){return Xv(e,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function y(v){return e.attempt(bj,g,g)(v)}function g(v){return Ve(v)?nt(e,b,"whitespace")(v):b(v)}function b(v){return v===null||Ce(v)?(e.exit("definition"),a.parser.defined.push(o),r(v)):i(v)}}function Sj(e,r,i){return a;function a(d){return nn(d)?ks(e,o)(d):i(d)}function o(d){return Zv(e,u,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function u(d){return Ve(d)?nt(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Ce(d)?r(d):i(d)}}const wj={name:"hardBreakEscape",tokenize:Cj};function Cj(e,r,i){return a;function a(u){return e.enter("hardBreakEscape"),e.consume(u),o}function o(u){return Ce(u)?(e.exit("hardBreakEscape"),r(u)):i(u)}}const Tj={name:"headingAtx",resolve:kj,tokenize:Ej};function kj(e,r){let i=e.length-2,a=3,o,u;return e[a][1].type==="whitespace"&&(a+=2),i-2>a&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(a===i-1||i-4>a&&e[i-2][1].type==="whitespace")&&(i-=a+1===i?2:4),i>a&&(o={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},u={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},Wn(e,a,i-a+1,[["enter",o,r],["enter",u,r],["exit",u,r],["exit",o,r]])),e}function Ej(e,r,i){let a=0;return o;function o(y){return e.enter("atxHeading"),u(y)}function u(y){return e.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&a++<6?(e.consume(y),c):y===null||nn(y)?(e.exit("atxHeadingSequence"),d(y)):i(y)}function d(y){return y===35?(e.enter("atxHeadingSequence"),p(y)):y===null||Ce(y)?(e.exit("atxHeading"),r(y)):Ve(y)?nt(e,d,"whitespace")(y):(e.enter("atxHeadingText"),m(y))}function p(y){return y===35?(e.consume(y),p):(e.exit("atxHeadingSequence"),d(y))}function m(y){return y===null||y===35||nn(y)?(e.exit("atxHeadingText"),d(y)):(e.consume(y),m)}}const Nj=["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"],A0=["pre","script","style","textarea"],jj={concrete:!0,name:"htmlFlow",resolveTo:_j,tokenize:Mj},Rj={partial:!0,tokenize:Oj},Aj={partial:!0,tokenize:zj};function _j(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function Mj(e,r,i){const a=this;let o,u,c,d,p;return m;function m(N){return y(N)}function y(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),g}function g(N){return N===33?(e.consume(N),b):N===47?(e.consume(N),u=!0,k):N===63?(e.consume(N),o=3,a.interrupt?r:E):$n(N)?(e.consume(N),c=String.fromCharCode(N),T):i(N)}function b(N){return N===45?(e.consume(N),o=2,v):N===91?(e.consume(N),o=5,d=0,C):$n(N)?(e.consume(N),o=4,a.interrupt?r:E):i(N)}function v(N){return N===45?(e.consume(N),a.interrupt?r:E):i(N)}function C(N){const oe="CDATA[";return N===oe.charCodeAt(d++)?(e.consume(N),d===oe.length?a.interrupt?r:q:C):i(N)}function k(N){return $n(N)?(e.consume(N),c=String.fromCharCode(N),T):i(N)}function T(N){if(N===null||N===47||N===62||nn(N)){const oe=N===47,ue=c.toLowerCase();return!oe&&!u&&A0.includes(ue)?(o=1,a.interrupt?r(N):q(N)):Nj.includes(c.toLowerCase())?(o=6,oe?(e.consume(N),j):a.interrupt?r(N):q(N)):(o=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(N):u?H(N):_(N))}return N===45||mn(N)?(e.consume(N),c+=String.fromCharCode(N),T):i(N)}function j(N){return N===62?(e.consume(N),a.interrupt?r:q):i(N)}function H(N){return Ve(N)?(e.consume(N),H):Y(N)}function _(N){return N===47?(e.consume(N),Y):N===58||N===95||$n(N)?(e.consume(N),V):Ve(N)?(e.consume(N),_):Y(N)}function V(N){return N===45||N===46||N===58||N===95||mn(N)?(e.consume(N),V):L(N)}function L(N){return N===61?(e.consume(N),M):Ve(N)?(e.consume(N),L):_(N)}function M(N){return N===null||N===60||N===61||N===62||N===96?i(N):N===34||N===39?(e.consume(N),p=N,B):Ve(N)?(e.consume(N),M):U(N)}function B(N){return N===p?(e.consume(N),p=null,P):N===null||Ce(N)?i(N):(e.consume(N),B)}function U(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||nn(N)?L(N):(e.consume(N),U)}function P(N){return N===47||N===62||Ve(N)?_(N):i(N)}function Y(N){return N===62?(e.consume(N),X):i(N)}function X(N){return N===null||Ce(N)?q(N):Ve(N)?(e.consume(N),X):i(N)}function q(N){return N===45&&o===2?(e.consume(N),O):N===60&&o===1?(e.consume(N),W):N===62&&o===4?(e.consume(N),A):N===63&&o===3?(e.consume(N),E):N===93&&o===5?(e.consume(N),Se):Ce(N)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(Rj,te,le)(N)):N===null||Ce(N)?(e.exit("htmlFlowData"),le(N)):(e.consume(N),q)}function le(N){return e.check(Aj,$,te)(N)}function $(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),F}function F(N){return N===null||Ce(N)?le(N):(e.enter("htmlFlowData"),q(N))}function O(N){return N===45?(e.consume(N),E):q(N)}function W(N){return N===47?(e.consume(N),c="",ce):q(N)}function ce(N){if(N===62){const oe=c.toLowerCase();return A0.includes(oe)?(e.consume(N),A):q(N)}return $n(N)&&c.length<8?(e.consume(N),c+=String.fromCharCode(N),ce):q(N)}function Se(N){return N===93?(e.consume(N),E):q(N)}function E(N){return N===62?(e.consume(N),A):N===45&&o===2?(e.consume(N),E):q(N)}function A(N){return N===null||Ce(N)?(e.exit("htmlFlowData"),te(N)):(e.consume(N),A)}function te(N){return e.exit("htmlFlow"),r(N)}}function zj(e,r,i){const a=this;return o;function o(c){return Ce(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):i(c)}function u(c){return a.parser.lazy[a.now().line]?i(c):r(c)}}function Oj(e,r,i){return a;function a(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Fu,r,i)}}const Dj={name:"htmlText",tokenize:Lj};function Lj(e,r,i){const a=this;let o,u,c;return d;function d(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),p}function p(E){return E===33?(e.consume(E),m):E===47?(e.consume(E),L):E===63?(e.consume(E),_):$n(E)?(e.consume(E),U):i(E)}function m(E){return E===45?(e.consume(E),y):E===91?(e.consume(E),u=0,C):$n(E)?(e.consume(E),H):i(E)}function y(E){return E===45?(e.consume(E),v):i(E)}function g(E){return E===null?i(E):E===45?(e.consume(E),b):Ce(E)?(c=g,W(E)):(e.consume(E),g)}function b(E){return E===45?(e.consume(E),v):g(E)}function v(E){return E===62?O(E):E===45?b(E):g(E)}function C(E){const A="CDATA[";return E===A.charCodeAt(u++)?(e.consume(E),u===A.length?k:C):i(E)}function k(E){return E===null?i(E):E===93?(e.consume(E),T):Ce(E)?(c=k,W(E)):(e.consume(E),k)}function T(E){return E===93?(e.consume(E),j):k(E)}function j(E){return E===62?O(E):E===93?(e.consume(E),j):k(E)}function H(E){return E===null||E===62?O(E):Ce(E)?(c=H,W(E)):(e.consume(E),H)}function _(E){return E===null?i(E):E===63?(e.consume(E),V):Ce(E)?(c=_,W(E)):(e.consume(E),_)}function V(E){return E===62?O(E):_(E)}function L(E){return $n(E)?(e.consume(E),M):i(E)}function M(E){return E===45||mn(E)?(e.consume(E),M):B(E)}function B(E){return Ce(E)?(c=B,W(E)):Ve(E)?(e.consume(E),B):O(E)}function U(E){return E===45||mn(E)?(e.consume(E),U):E===47||E===62||nn(E)?P(E):i(E)}function P(E){return E===47?(e.consume(E),O):E===58||E===95||$n(E)?(e.consume(E),Y):Ce(E)?(c=P,W(E)):Ve(E)?(e.consume(E),P):O(E)}function Y(E){return E===45||E===46||E===58||E===95||mn(E)?(e.consume(E),Y):X(E)}function X(E){return E===61?(e.consume(E),q):Ce(E)?(c=X,W(E)):Ve(E)?(e.consume(E),X):P(E)}function q(E){return E===null||E===60||E===61||E===62||E===96?i(E):E===34||E===39?(e.consume(E),o=E,le):Ce(E)?(c=q,W(E)):Ve(E)?(e.consume(E),q):(e.consume(E),$)}function le(E){return E===o?(e.consume(E),o=void 0,F):E===null?i(E):Ce(E)?(c=le,W(E)):(e.consume(E),le)}function $(E){return E===null||E===34||E===39||E===60||E===61||E===96?i(E):E===47||E===62||nn(E)?P(E):(e.consume(E),$)}function F(E){return E===47||E===62||nn(E)?P(E):i(E)}function O(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),r):i(E)}function W(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),ce}function ce(E){return Ve(E)?nt(e,Se,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):Se(E)}function Se(E){return e.enter("htmlTextData"),c(E)}}const Wh={name:"labelEnd",resolveAll:Ij,resolveTo:qj,tokenize:Pj},Bj={tokenize:Vj},Uj={tokenize:Gj},Hj={tokenize:Qj};function Ij(e){let r=-1;const i=[];for(;++r<e.length;){const a=e[r][1];if(i.push(e[r]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const o=a.type==="labelImage"?4:2;a.type="data",r+=o}}return e.length!==i.length&&Wn(e,0,e.length,i),e}function qj(e,r){let i=e.length,a=0,o,u,c,d;for(;i--;)if(o=e[i][1],u){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[i][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(e[i][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(u=i,o.type!=="labelLink")){a=2;break}}else o.type==="labelEnd"&&(c=i);const p={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},m={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},y={type:"labelText",start:{...e[u+a+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",p,r],["enter",m,r]],d=jn(d,e.slice(u+1,u+a+3)),d=jn(d,[["enter",y,r]]),d=jn(d,$h(r.parser.constructs.insideSpan.null,e.slice(u+a+4,c-3),r)),d=jn(d,[["exit",y,r],e[c-2],e[c-1],["exit",m,r]]),d=jn(d,e.slice(c+1)),d=jn(d,[["exit",p,r]]),Wn(e,u,e.length,d),e}function Pj(e,r,i){const a=this;let o=a.events.length,u,c;for(;o--;)if((a.events[o][1].type==="labelImage"||a.events[o][1].type==="labelLink")&&!a.events[o][1]._balanced){u=a.events[o][1];break}return d;function d(b){return u?u._inactive?g(b):(c=a.parser.defined.includes(Zl(a.sliceSerialize({start:u.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),p):i(b)}function p(b){return b===40?e.attempt(Bj,y,c?y:g)(b):b===91?e.attempt(Uj,y,c?m:g)(b):c?y(b):g(b)}function m(b){return e.attempt(Hj,y,g)(b)}function y(b){return r(b)}function g(b){return u._balanced=!0,i(b)}}function Vj(e,r,i){return a;function a(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return nn(g)?ks(e,u)(g):u(g)}function u(g){return g===41?y(g):Xv(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return nn(g)?ks(e,p)(g):y(g)}function d(g){return i(g)}function p(g){return g===34||g===39||g===40?Zv(e,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return nn(g)?ks(e,y)(g):y(g)}function y(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),r):i(g)}}function Gj(e,r,i){const a=this;return o;function o(d){return Kv.call(a,e,u,c,"reference","referenceMarker","referenceString")(d)}function u(d){return a.parser.defined.includes(Zl(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?r(d):i(d)}function c(d){return i(d)}}function Qj(e,r,i){return a;function a(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),o}function o(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),r):i(u)}}const Yj={name:"labelStartImage",resolveAll:Wh.resolveAll,tokenize:Fj};function Fj(e,r,i){const a=this;return o;function o(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),u}function u(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):i(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(d):r(d)}}const Xj={name:"labelStartLink",resolveAll:Wh.resolveAll,tokenize:Kj};function Kj(e,r,i){const a=this;return o;function o(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(c):r(c)}}const Bd={name:"lineEnding",tokenize:Zj};function Zj(e,r){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),nt(e,r,"linePrefix")}}const ju={name:"thematicBreak",tokenize:Jj};function Jj(e,r,i){let a=0,o;return u;function u(m){return e.enter("thematicBreak"),c(m)}function c(m){return o=m,d(m)}function d(m){return m===o?(e.enter("thematicBreakSequence"),p(m)):a>=3&&(m===null||Ce(m))?(e.exit("thematicBreak"),r(m)):i(m)}function p(m){return m===o?(e.consume(m),a++,p):(e.exit("thematicBreakSequence"),Ve(m)?nt(e,d,"whitespace")(m):d(m))}}const Wt={continuation:{tokenize:t5},exit:r5,name:"list",tokenize:e5},$j={partial:!0,tokenize:i5},Wj={partial:!0,tokenize:n5};function e5(e,r,i){const a=this,o=a.events[a.events.length-1];let u=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return d;function d(v){const C=a.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!a.containerState.marker||v===a.containerState.marker:vh(v)){if(a.containerState.type||(a.containerState.type=C,e.enter(C,{_container:!0})),C==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(ju,i,m)(v):m(v);if(!a.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(v)}return i(v)}function p(v){return vh(v)&&++c<10?(e.consume(v),p):(!a.interrupt||c<2)&&(a.containerState.marker?v===a.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),m(v)):i(v)}function m(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||v,e.check(Fu,a.interrupt?i:y,e.attempt($j,b,g))}function y(v){return a.containerState.initialBlankLine=!0,u++,b(v)}function g(v){return Ve(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),b):i(v)}function b(v){return a.containerState.size=u+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(v)}}function t5(e,r,i){const a=this;return a.containerState._closeFlow=void 0,e.check(Fu,o,u);function o(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,nt(e,r,"listItemIndent",a.containerState.size+1)(d)}function u(d){return a.containerState.furtherBlankLines||!Ve(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(Wj,r,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,nt(e,e.attempt(Wt,r,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function n5(e,r,i){const a=this;return nt(e,o,"listItemIndent",a.containerState.size+1);function o(u){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?r(u):i(u)}}function r5(e){e.exit(this.containerState.type)}function i5(e,r,i){const a=this;return nt(e,o,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(u){const c=a.events[a.events.length-1];return!Ve(u)&&c&&c[1].type==="listItemPrefixWhitespace"?r(u):i(u)}}const _0={name:"setextUnderline",resolveTo:l5,tokenize:a5};function l5(e,r){let i=e.length,a,o,u;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){a=i;break}e[i][1].type==="paragraph"&&(o=i)}else e[i][1].type==="content"&&e.splice(i,1),!u&&e[i][1].type==="definition"&&(u=i);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",u?(e.splice(o,0,["enter",c,r]),e.splice(u+1,0,["exit",e[a][1],r]),e[a][1].end={...e[u][1].end}):e[a][1]=c,e.push(["exit",c,r]),e}function a5(e,r,i){const a=this;let o;return u;function u(m){let y=a.events.length,g;for(;y--;)if(a.events[y][1].type!=="lineEnding"&&a.events[y][1].type!=="linePrefix"&&a.events[y][1].type!=="content"){g=a.events[y][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(e.enter("setextHeadingLine"),o=m,c(m)):i(m)}function c(m){return e.enter("setextHeadingLineSequence"),d(m)}function d(m){return m===o?(e.consume(m),d):(e.exit("setextHeadingLineSequence"),Ve(m)?nt(e,p,"lineSuffix")(m):p(m))}function p(m){return m===null||Ce(m)?(e.exit("setextHeadingLine"),r(m)):i(m)}}const s5={tokenize:o5};function o5(e){const r=this,i=e.attempt(Fu,a,e.attempt(this.parser.constructs.flowInitial,o,nt(e,e.attempt(this.parser.constructs.flow,o,e.attempt(hj,o)),"linePrefix")));return i;function a(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),r.currentConstruct=void 0,i}function o(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),r.currentConstruct=void 0,i}}const u5={resolveAll:$v()},c5=Jv("string"),f5=Jv("text");function Jv(e){return{resolveAll:$v(e==="text"?d5:void 0),tokenize:r};function r(i){const a=this,o=this.parser.constructs[e],u=i.attempt(o,c,d);return c;function c(y){return m(y)?u(y):d(y)}function d(y){if(y===null){i.consume(y);return}return i.enter("data"),i.consume(y),p}function p(y){return m(y)?(i.exit("data"),u(y)):(i.consume(y),p)}function m(y){if(y===null)return!0;const g=o[y];let b=-1;if(g)for(;++b<g.length;){const v=g[b];if(!v.previous||v.previous.call(a,a.previous))return!0}return!1}}}function $v(e){return r;function r(i,a){let o=-1,u;for(;++o<=i.length;)u===void 0?i[o]&&i[o][1].type==="data"&&(u=o,o++):(!i[o]||i[o][1].type!=="data")&&(o!==u+2&&(i[u][1].end=i[o-1][1].end,i.splice(u+2,o-u-2),o=u+2),u=void 0);return e?e(i,a):i}}function d5(e,r){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const a=e[i-1][1],o=r.sliceStream(a);let u=o.length,c=-1,d=0,p;for(;u--;){const m=o[u];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(m===-2)p=!0,d++;else if(m!==-1){u++;break}}if(r._contentTypeTextTrailing&&i===e.length&&(d=0),d){const m={type:i===e.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:a.start._bufferIndex+c,_index:a.start._index+u,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...m.start},a.start.offset===a.end.offset?Object.assign(a,m):(e.splice(i,0,["enter",m,r],["exit",m,r]),i+=2)}i++}return e}const h5={42:Wt,43:Wt,45:Wt,48:Wt,49:Wt,50:Wt,51:Wt,52:Wt,53:Wt,54:Wt,55:Wt,56:Wt,57:Wt,62:Gv},m5={91:xj},p5={[-2]:Ld,[-1]:Ld,32:Ld},g5={35:Tj,42:ju,45:[_0,ju],60:jj,61:_0,95:ju,96:R0,126:R0},y5={38:Yv,92:Qv},x5={[-5]:Bd,[-4]:Bd,[-3]:Bd,33:Yj,38:Yv,42:Sh,60:[XN,Dj],91:Xj,92:[wj,Qv],93:Wh,95:Sh,96:sj},b5={null:[Sh,u5]},v5={null:[42,95]},S5={null:[]},w5=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:v5,contentInitial:m5,disable:S5,document:h5,flow:g5,flowInitial:p5,insideSpan:b5,string:y5,text:x5},Symbol.toStringTag,{value:"Module"}));function C5(e,r,i){let a={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const o={},u=[];let c=[],d=[];const p={attempt:B(L),check:B(M),consume:H,enter:_,exit:V,interrupt:B(M,{interrupt:!0})},m={code:null,containerState:{},defineSkip:k,events:[],now:C,parser:e,previous:null,sliceSerialize:b,sliceStream:v,write:g};let y=r.tokenize.call(m,p);return r.resolveAll&&u.push(r),m;function g(X){return c=jn(c,X),T(),c[c.length-1]!==null?[]:(U(r,0),m.events=$h(u,m.events,m),m.events)}function b(X,q){return k5(v(X),q)}function v(X){return T5(c,X)}function C(){const{_bufferIndex:X,_index:q,line:le,column:$,offset:F}=a;return{_bufferIndex:X,_index:q,line:le,column:$,offset:F}}function k(X){o[X.line]=X.column,Y()}function T(){let X;for(;a._index<c.length;){const q=c[a._index];if(typeof q=="string")for(X=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===X&&a._bufferIndex<q.length;)j(q.charCodeAt(a._bufferIndex));else j(q)}}function j(X){y=y(X)}function H(X){Ce(X)?(a.line++,a.column=1,a.offset+=X===-3?2:1,Y()):X!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),m.previous=X}function _(X,q){const le=q||{};return le.type=X,le.start=C(),m.events.push(["enter",le,m]),d.push(le),le}function V(X){const q=d.pop();return q.end=C(),m.events.push(["exit",q,m]),q}function L(X,q){U(X,q.from)}function M(X,q){q.restore()}function B(X,q){return le;function le($,F,O){let W,ce,Se,E;return Array.isArray($)?te($):"tokenize"in $?te([$]):A($);function A(fe){return Te;function Te(_e){const xe=_e!==null&&fe[_e],bt=_e!==null&&fe.null,vt=[...Array.isArray(xe)?xe:xe?[xe]:[],...Array.isArray(bt)?bt:bt?[bt]:[]];return te(vt)(_e)}}function te(fe){return W=fe,ce=0,fe.length===0?O:N(fe[ce])}function N(fe){return Te;function Te(_e){return E=P(),Se=fe,fe.partial||(m.currentConstruct=fe),fe.name&&m.parser.constructs.disable.null.includes(fe.name)?ue():fe.tokenize.call(q?Object.assign(Object.create(m),q):m,p,oe,ue)(_e)}}function oe(fe){return X(Se,E),F}function ue(fe){return E.restore(),++ce<W.length?N(W[ce]):O}}}function U(X,q){X.resolveAll&&!u.includes(X)&&u.push(X),X.resolve&&Wn(m.events,q,m.events.length-q,X.resolve(m.events.slice(q),m)),X.resolveTo&&(m.events=X.resolveTo(m.events,m))}function P(){const X=C(),q=m.previous,le=m.currentConstruct,$=m.events.length,F=Array.from(d);return{from:$,restore:O};function O(){a=X,m.previous=q,m.currentConstruct=le,m.events.length=$,d=F,Y()}}function Y(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}function T5(e,r){const i=r.start._index,a=r.start._bufferIndex,o=r.end._index,u=r.end._bufferIndex;let c;if(i===o)c=[e[i].slice(a,u)];else{if(c=e.slice(i,o),a>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}u>0&&c.push(e[o].slice(0,u))}return c}function k5(e,r){let i=-1;const a=[];let o;for(;++i<e.length;){const u=e[i];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
|
|
147
147
|
`;break}case-3:{c=`\r
|
|
148
148
|
`;break}case-2:{c=r?" ":" ";break}case-1:{if(!r&&o)continue;c=" ";break}default:c=String.fromCharCode(u)}o=u===-2,a.push(c)}return a.join("")}function E5(e){const a={constructs:zN([w5,...(e||{}).extensions||[]]),content:o(qN),defined:[],document:o(VN),flow:o(s5),lazy:{},string:o(c5),text:o(f5)};return a;function o(u){return c;function c(d){return C5(a,u,d)}}}function N5(e){for(;!Fv(e););return e}const M0=/[\0\t\n\r]/g;function j5(){let e=1,r="",i=!0,a;return o;function o(u,c,d){const p=[];let m,y,g,b,v;for(u=r+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),g=0,r="",i&&(u.charCodeAt(0)===65279&&g++,i=void 0);g<u.length;){if(M0.lastIndex=g,m=M0.exec(u),b=m&&m.index!==void 0?m.index:u.length,v=u.charCodeAt(b),!m){r=u.slice(g);break}if(v===10&&g===b&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),g<b&&(p.push(u.slice(g,b)),e+=b-g),v){case 0:{p.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,p.push(-2);e++<y;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:a=!0,e=1}g=b+1}return d&&(a&&p.push(-5),r&&p.push(r),p.push(null)),p}}const R5=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function A5(e){return e.replace(R5,_5)}function _5(e,r,i){if(r)return r;if(i.charCodeAt(0)===35){const o=i.charCodeAt(1),u=o===120||o===88;return Vv(i.slice(u?2:1),u?16:10)}return Jh(i)||e}const Wv={}.hasOwnProperty;function M5(e,r,i){return r&&typeof r=="object"&&(i=r,r=void 0),z5(i)(N5(E5(i).document().write(j5()(e,r,!0))))}function z5(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Pn),autolinkProtocol:P,autolinkEmail:P,atxHeading:u(Er),blockQuote:u(bt),characterEscape:P,characterReference:P,codeFenced:u(vt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(vt,c),codeText:u(Ht,c),codeTextData:P,data:P,codeFlowValue:P,definition:u(Mn),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(Nt),hardBreakEscape:u(er),hardBreakTrailing:u(er),htmlFlow:u(xi,c),htmlFlowData:P,htmlText:u(xi,c),htmlTextData:P,image:u(zn),label:c,link:u(Pn),listItem:u(bi),listItemValue:b,listOrdered:u(Gt,g),listUnordered:u(Gt),paragraph:u(rl),reference:N,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(Er),strong:u(xa),thematicBreak:u(Ge)},exit:{atxHeading:p(),atxHeadingSequence:L,autolink:p(),autolinkEmail:xe,autolinkProtocol:_e,blockQuote:p(),characterEscapeValue:Y,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:fe,characterReference:Te,codeFenced:p(T),codeFencedFence:k,codeFencedFenceInfo:v,codeFencedFenceMeta:C,codeFlowValue:Y,codeIndented:p(j),codeText:p(F),codeTextData:Y,data:Y,definition:p(),definitionDestinationString:V,definitionLabelString:H,definitionTitleString:_,emphasis:p(),hardBreakEscape:p(q),hardBreakTrailing:p(q),htmlFlow:p(le),htmlFlowData:Y,htmlText:p($),htmlTextData:Y,image:p(W),label:Se,labelText:ce,lineEnding:X,link:p(O),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:oe,resourceDestinationString:E,resourceTitleString:A,resource:te,setextHeading:p(U),setextHeadingLineSequence:B,setextHeadingText:M,strong:p(),thematicBreak:p()}};e1(r,(e||{}).mdastExtensions||[]);const i={};return a;function a(ee){let se={type:"root",children:[]};const ve={stack:[se],tokenStack:[],config:r,enter:d,exit:m,buffer:c,resume:y,data:i},Me=[];let Qe=-1;for(;++Qe<ee.length;)if(ee[Qe][1].type==="listOrdered"||ee[Qe][1].type==="listUnordered")if(ee[Qe][0]==="enter")Me.push(Qe);else{const ln=Me.pop();Qe=o(ee,ln,Qe)}for(Qe=-1;++Qe<ee.length;){const ln=r[ee[Qe][0]];Wv.call(ln,ee[Qe][1].type)&&ln[ee[Qe][1].type].call(Object.assign({sliceSerialize:ee[Qe][2].sliceSerialize},ve),ee[Qe][1])}if(ve.tokenStack.length>0){const ln=ve.tokenStack[ve.tokenStack.length-1];(ln[1]||z0).call(ve,void 0,ln[0])}for(se.position={start:ei(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:ei(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},Qe=-1;++Qe<r.transforms.length;)se=r.transforms[Qe](se)||se;return se}function o(ee,se,ve){let Me=se-1,Qe=-1,ln=!1,tr,It,St,Qt;for(;++Me<=ve;){const We=ee[Me];switch(We[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{We[0]==="enter"?Qe++:Qe--,Qt=void 0;break}case"lineEndingBlank":{We[0]==="enter"&&(tr&&!Qt&&!Qe&&!St&&(St=Me),Qt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Qt=void 0}if(!Qe&&We[0]==="enter"&&We[1].type==="listItemPrefix"||Qe===-1&&We[0]==="exit"&&(We[1].type==="listUnordered"||We[1].type==="listOrdered")){if(tr){let Nr=Me;for(It=void 0;Nr--;){const On=ee[Nr];if(On[1].type==="lineEnding"||On[1].type==="lineEndingBlank"){if(On[0]==="exit")continue;It&&(ee[It][1].type="lineEndingBlank",ln=!0),On[1].type="lineEnding",It=Nr}else if(!(On[1].type==="linePrefix"||On[1].type==="blockQuotePrefix"||On[1].type==="blockQuotePrefixWhitespace"||On[1].type==="blockQuoteMarker"||On[1].type==="listItemIndent"))break}St&&(!It||St<It)&&(tr._spread=!0),tr.end=Object.assign({},It?ee[It][1].start:We[1].end),ee.splice(It||Me,0,["exit",tr,We[2]]),Me++,ve++}if(We[1].type==="listItemPrefix"){const Nr={type:"listItem",_spread:!1,start:Object.assign({},We[1].start),end:void 0};tr=Nr,ee.splice(Me,0,["enter",Nr,We[2]]),Me++,ve++,St=void 0,Qt=!0}}}return ee[se][1]._spread=ln,ve}function u(ee,se){return ve;function ve(Me){d.call(this,ee(Me),Me),se&&se.call(this,Me)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(ee,se,ve){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([se,ve||void 0]),ee.position={start:ei(se.start),end:void 0}}function p(ee){return se;function se(ve){ee&&ee.call(this,ve),m.call(this,ve)}}function m(ee,se){const ve=this.stack.pop(),Me=this.tokenStack.pop();if(Me)Me[0].type!==ee.type&&(se?se.call(this,ee,Me[0]):(Me[1]||z0).call(this,ee,Me[0]));else throw new Error("Cannot close `"+ee.type+"` ("+Ts({start:ee.start,end:ee.end})+"): it’s not open");ve.position.end=ei(ee.end)}function y(){return _N(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function b(ee){if(this.data.expectingFirstListItemValue){const se=this.stack[this.stack.length-2];se.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function v(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.lang=ee}function C(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.meta=ee}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function j(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.value=ee.replace(/(\r?\n|\r)$/g,"")}function H(ee){const se=this.resume(),ve=this.stack[this.stack.length-1];ve.label=se,ve.identifier=Zl(this.sliceSerialize(ee)).toLowerCase()}function _(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.title=ee}function V(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.url=ee}function L(ee){const se=this.stack[this.stack.length-1];if(!se.depth){const ve=this.sliceSerialize(ee).length;se.depth=ve}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function B(ee){const se=this.stack[this.stack.length-1];se.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function P(ee){const ve=this.stack[this.stack.length-1].children;let Me=ve[ve.length-1];(!Me||Me.type!=="text")&&(Me=Tt(),Me.position={start:ei(ee.start),end:void 0},ve.push(Me)),this.stack.push(Me)}function Y(ee){const se=this.stack.pop();se.value+=this.sliceSerialize(ee),se.position.end=ei(ee.end)}function X(ee){const se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ve=se.children[se.children.length-1];ve.position.end=ei(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(se.type)&&(P.call(this,ee),Y.call(this,ee))}function q(){this.data.atHardBreak=!0}function le(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.value=ee}function $(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.value=ee}function F(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.value=ee}function O(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=se,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function W(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=se,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function ce(ee){const se=this.sliceSerialize(ee),ve=this.stack[this.stack.length-2];ve.label=A5(se),ve.identifier=Zl(se).toLowerCase()}function Se(){const ee=this.stack[this.stack.length-1],se=this.resume(),ve=this.stack[this.stack.length-1];if(this.data.inReference=!0,ve.type==="link"){const Me=ee.children;ve.children=Me}else ve.alt=se}function E(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.url=ee}function A(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.title=ee}function te(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function oe(ee){const se=this.resume(),ve=this.stack[this.stack.length-1];ve.label=se,ve.identifier=Zl(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function ue(ee){this.data.characterReferenceType=ee.type}function fe(ee){const se=this.sliceSerialize(ee),ve=this.data.characterReferenceType;let Me;ve?(Me=Vv(se,ve==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Me=Jh(se);const Qe=this.stack[this.stack.length-1];Qe.value+=Me}function Te(ee){const se=this.stack.pop();se.position.end=ei(ee.end)}function _e(ee){Y.call(this,ee);const se=this.stack[this.stack.length-1];se.url=this.sliceSerialize(ee)}function xe(ee){Y.call(this,ee);const se=this.stack[this.stack.length-1];se.url="mailto:"+this.sliceSerialize(ee)}function bt(){return{type:"blockquote",children:[]}}function vt(){return{type:"code",lang:null,meta:null,value:""}}function Ht(){return{type:"inlineCode",value:""}}function Mn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Nt(){return{type:"emphasis",children:[]}}function Er(){return{type:"heading",depth:0,children:[]}}function er(){return{type:"break"}}function xi(){return{type:"html",value:""}}function zn(){return{type:"image",title:null,url:"",alt:null}}function Pn(){return{type:"link",title:null,url:"",children:[]}}function Gt(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function bi(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function rl(){return{type:"paragraph",children:[]}}function xa(){return{type:"strong",children:[]}}function Tt(){return{type:"text",value:""}}function Ge(){return{type:"thematicBreak"}}}function ei(e){return{line:e.line,column:e.column,offset:e.offset}}function e1(e,r){let i=-1;for(;++i<r.length;){const a=r[i];Array.isArray(a)?e1(e,a):O5(e,a)}}function O5(e,r){let i;for(i in r)if(Wv.call(r,i))switch(i){case"canContainEols":{const a=r[i];a&&e[i].push(...a);break}case"transforms":{const a=r[i];a&&e[i].push(...a);break}case"enter":case"exit":{const a=r[i];a&&Object.assign(e[i],a);break}}}function z0(e,r){throw e?new Error("Cannot close `"+e.type+"` ("+Ts({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+Ts({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Ts({start:r.start,end:r.end})+") is still open")}function D5(e){const r=this;r.parser=i;function i(a){return M5(a,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function L5(e,r){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(r),!0)};return e.patch(r,i),e.applyData(r,i)}function B5(e,r){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,i),[e.applyData(r,i),{type:"text",value:`
|