@brickkit/cli 0.14.0 → 0.15.0
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/dashboard-dist/{api-reference-lLhahVJi.js → api-reference-BP4ULs5J.js} +3 -3
- package/dashboard-dist/app.js +4 -4
- package/dashboard-dist/{client-DRtkFydB.js → client-CID_ep-s.js} +1 -1
- package/dashboard-dist/{core-BSTqZqMg.js → core-B123mLVe.js} +1 -1
- package/dashboard-dist/{docs-Cye2p0fM.js → docs-B5JrvjJm.js} +1 -1
- package/dashboard-dist/kit.js +1 -1
- package/dashboard-dist/{popover-CKxhB1QI.js → popover-B4rnc_po.js} +1 -1
- package/dist/build.js +5 -1
- package/dist/build.js.map +1 -1
- package/dist/client-contract-file.js +1 -1
- package/dist/client-contract-file.js.map +1 -1
- package/dist/dashboard-host.js +26 -7
- package/dist/dashboard-host.js.map +1 -1
- package/dist/project.js +1 -1
- package/dist/vite.js +2 -1
- package/dist/vite.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./rolldown-runtime-XKyaHtl9.js";import{$ as r,A as i,Bn as a,Bt as o,C as s,D as c,Dt as l,Et as u,F as d,Fn as f,Ft as p,Gn as m,Gt as h,Hn as g,In as _,Jt as v,Kt as y,Ln as b,M as x,Mn as S,Mt as C,N as w,Nt as T,O as E,Ot as D,P as O,Pn as k,Pt as A,Qt as ee,Rn as j,Rt as M,S as te,Sn as N,St as P,T as F,Un as I,Vn as L,Vt as ne,Wn as re,Yt as R,_ as z,_n as B,_t as V,a as H,an as ie,at as ae,b as oe,bn as se,c as ce,cn as U,ct as le,d as ue,et as de,f as fe,ft as pe,g as me,gn as he,gt as ge,h as _e,ht as ve,i as ye,in as be,it as xe,j as Se,jn as Ce,k as W,kn as we,kt as Te,l as Ee,ln as De,lt as Oe,m as ke,mt as Ae,nt as je,on as Me,ot as Ne,p as Pe,pt as Fe,qt as Ie,r as Le,rn as Re,rt as ze,s as Be,sn as Ve,tn as He,u as Ue,un as We,ut as Ge,v as Ke,vn as qe,w as Je,x as Ye,xn as Xe,xt as Ze,y as Qe,yt as $e,zn as et,zt as tt}from"./CompositeRoot-D4sRkYq3.js";import{a as nt,c as rt,d as it,f as at,i as ot,l as st,n as ct,o as lt,r as ut,t as dt,u as ft}from"./app.js";import{A as pt,C as mt,D as G,E as ht,F as gt,I as _t,L as vt,N as K,O as yt,P as bt,R as xt,S as St,T as Ct,_ as wt,b as Tt,d as Et,f as Dt,i as Ot,k as kt,t as At,u as jt,v as Mt,x as Nt,y as Pt}from"./CollapsiblePanel-CbUysOp5.js";import{n as Ft,t as q}from"./ccount-CcG1m-Yh.js";import{$ as It,A as Lt,At as Rt,B as zt,C as Bt,D as Vt,E as Ht,F as Ut,G as Wt,H as Gt,I as Kt,J as qt,K as Jt,L as Yt,Mt as Xt,N as Zt,O as Qt,Ot as $t,P as en,Q as tn,R as nn,T as rn,U as an,V as on,W as sn,X as cn,Y as ln,Z as un,_ as dn,a as fn,b as pn,bt as mn,c as hn,ct as gn,d as _n,dt as vn,f as yn,ft as bn,g as xn,h as Sn,ht as Cn,i as wn,it as Tn,j as En,jt as Dn,k as On,kt as kn,l as An,m as jn,mt as Mn,n as Nn,nt as Pn,o as Fn,ot as In,p as Ln,q as Rn,r as zn,rt as Bn,s as Vn,st as Hn,t as Un,tt as Wn,u as Gn,v as Kn,vt as qn,w as Jn,x as Yn,xt as Xn,y as Zn,yt as Qn,z as $n}from"./PopoverPopup-CiI2avT_.js";import{J as er,K as tr,Tt as nr,Y as rr,_t as ir,b as ar,ct as or,k as sr,nt as cr,y as lr}from"./popover-CKxhB1QI.js";var ur={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};ur.node;var dr=g(ur),fr={name:`braces`,size:24,node:[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]],aliases:[`curly-braces`]};fr.node;var pr=g(fr),mr={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};mr.node;var hr=g(mr),gr={name:`cookie`,size:24,node:[[`path`,{d:`M11 17h.01`,key:`dukryu`}],[`path`,{d:`M11.496 2c.324-.016.558.292.529.615a4 4 0 004.235 4.368.713.713 0 01.758.757 4 4 0 004.366 4.237c.323-.03.63.204.614.527a10 10 0 01-2.915 6.566A1 1 0 114.93 4.918 10 10 0 0111.496 2`,key:`1x76et`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}],[`path`,{d:`M16 3h.01`,key:`ll0zb8`}],[`path`,{d:`M21 4h.01`,key:`uw58yv`}],[`path`,{d:`M21 8h.01`,key:`17axm7`}],[`path`,{d:`M7 14h.01`,key:`1qa3f1`}],[`path`,{d:`M9 8h.01`,key:`1jwowd`}]]};gr.node;var _r=g(gr),vr={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};vr.node;var yr=g(vr),br={name:`funnel-x`,size:24,node:[[`path`,{d:`M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473`,key:`ol2ft2`}],[`path`,{d:`m16.5 3.5 5 5`,key:`15e6fa`}],[`path`,{d:`m21.5 3.5-5 5`,key:`m0lwru`}]],aliases:[`filter-x`]};br.node;var xr=g(br),Sr={name:`funnel`,size:24,node:[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]],aliases:[`filter`]};Sr.node;var Cr=g(Sr),wr={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};wr.node;var Tr=g(wr),Er={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};Er.node;var Dr=g(Er),Or={name:`route`,size:24,node:[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`,key:`1d8sl`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]};Or.node;var kr=g(Or),Ar={name:`rows-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 9H3`,key:`1338ky`}],[`path`,{d:`M21 15H3`,key:`9uk58r`}]],aliases:[`panels-top-bottom`]};Ar.node;var jr=g(Ar),Mr={name:`send-horizontal`,size:24,node:[[`path`,{d:`M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z`,key:`117uat`}],[`path`,{d:`M6 12h16`,key:`s4cdu5`}]],aliases:[`send-horizonal`]};Mr.node;var Nr=g(Mr),Pr={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};Pr.node;var Fr=g(Pr),Ir={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};Ir.node;var Lr=g(Ir),Rr={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Rr.node;var zr=g(Rr),Br={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};Br.node;var Vr=g(Br);function Hr(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=c(),a=cn()!=null,o=et(()=>new Ht({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new On,floatingId:i,syncOnly:!1,nested:a})).current;return U(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=se(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}var J=t(m(),1);function Ur(e){return kn&&e.movementX===0&&e.movementY===0}function Wr(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Gr(e,t){return Wr(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Kr(e,t,n){return Wr(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function qr(e,t,n){return Wr(t,n?e===T:e===A,e===C)}function Jr(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:Wr(t,n?e===A:e===T,e===p)}function Yr(e,t){let{listRef:n,activeIndex:r,onNavigate:a=()=>{},enabled:s=!0,selectedIndex:c=null,allowEscape:u=!1,loopFocus:d=!1,nested:f=!1,rtl:p=!1,virtual:m=!1,focusItemOnOpen:g=`auto`,focusItemOnHover:_=!0,openOnArrowKeyDown:v=!0,disabledIndices:b=void 0,orientation:S=`vertical`,triggerOrientation:C=S,parentOrientation:w,id:T,resetOnPointerLeave:E=!0,externalTree:D,nestedReturnFocusRef:k,grid:A}=t,ee=A!=null,j=e.useState(`open`),te=e.useState(`floatingElement`),N=e.useState(`domReferenceElement`),P=e.context.dataRef,F=vn(te),I=Mn(N),L=ze(F),re=cn(),R=un(D),z=J.useRef(g),B=J.useRef(c??-1),H=J.useRef(null),ae=J.useRef(!0),oe=De(e=>{a(B.current===-1?null:B.current,e)}),se=J.useRef(!!te),ce=J.useRef(j),le=J.useRef(!1),ue=J.useRef(!1),de=J.useRef(null),fe=ze(b),pe=ze(j),me=ze(c),he=ze(E),ge=je(),_e=je(),ve=De(()=>{ge.cancel();function e(e){m||(de.current=Tn(e,{sync:le.current,preventScroll:!0}))}let t=n.current[B.current],r=ue.current;t&&e(t),(le.current?e=>e():e=>ge.request(e))(()=>{let i=n.current[B.current]||t;i&&(t||e(i),we&&(r||!ae.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});U(()=>{P.current.orientation=S},[P,S]),U(()=>{j||(H.current=null),j&&g===`auto`||(z.current=g)},[j,g]),U(()=>{s&&(j&&te?(B.current=c??-1,z.current&&c!=null&&(ue.current=!0,oe())):se.current&&(B.current=-1,oe()))},[s,j,te,c,oe]),U(()=>{if(s){if(!j)le.current=!1;else if(te){if(r==null){if(le.current=!1,me.current!=null)return;if(se.current&&(B.current=-1,ve()),(!ce.current||!se.current)&&z.current&&(H.current!=null||z.current===!0&&H.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>_e.request(e):queueMicrotask)(t),e+=1):(B.current=H.current==null||Kr(H.current,C,p)||f?Se(n):i(n),H.current=null,oe())};t()}}else O(n.current,r)||(B.current=r,ve(),ue.current=!1)}}},[s,j,te,r,me,f,n,C,p,oe,ve,_e]),U(()=>{if(!s||te||!R||m||!se.current)return;let e=R.nodesRef.current,t=e.find(e=>e.id===re)?.context?.elements.floating,n=M(ie(N??t??null)),r=e.some(e=>e.context&&o(e.context.elements.floating,n));t&&!r&&ae.current&&t.focus({preventScroll:!0})},[s,te,N,R,re,m]),U(()=>{ce.current=j,se.current=!!te});let ye=r!=null,be=De(e=>{if(!pe.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(B.current!==t||r!==t)&&(B.current=t,oe(e))}),xe=De(()=>w??R?.nodesRef.current.find(e=>e.id===re)?.context?.dataRef?.current.orientation),Ce=De(()=>Se(n,fe.current)),W=De(t=>{if(ae.current=!1,le.current=!0,t.which===229||!pe.current&&t.currentTarget===L.current)return;if(f&&Jr(t.key,S,p,ee)){Gr(t.key,xe())||Ie(t),e.setOpen(!1,l(V,t.nativeEvent));let n=k?.current??N;Xe(n)&&n.focus();return}r!=null&&r!==B.current&&!O(n.current,r)&&(B.current=r);let a=B.current,s=Se(n,b),c=i(n,b);if(I||(t.key===`Home`&&(Ie(t),B.current=s,oe(t)),t.key===`End`&&(Ie(t),B.current=c,oe(t))),A!=null){let e=A(t,B.current,n,S,d,p,b,s,c);if(e!=null&&e!==B.current&&(B.current=e,oe(t)),S===`both`)return}if(Gr(t.key,S)){Ie(t);let e=M(t.currentTarget.ownerDocument);if(j&&!m&&o(t.currentTarget,e)&&!n.current.some(t=>t!=null&&o(t,e))){B.current=Kr(t.key,S,p)?s:c,oe(t),r===B.current&&ve();return}let{index:i,wrapped:l}=x(n.current,a,{decrement:!Kr(t.key,S,p),loopFocus:d,allowEscape:u,disabledIndices:b,minIndex:s,maxIndex:c});l&&(le.current=!1),B.current=i,oe(t)}}),we=J.useMemo(()=>({onFocus(e){le.current=!0,be(e)},onClick({currentTarget:e}){m||e.focus({preventScroll:!0})},onMouseMove(e){Ur(e)||(le.current=!0,ue.current=!1,_&&be(e))},onPointerLeave(e){if(!pe.current||!ae.current||e.pointerType===`touch`)return;le.current=!0;let t=e.relatedTarget;if(_&&!n.current.includes(t)&&he.current&&(de.current?.(),de.current=null,B.current=-1,oe(e),!m)){let e=L.current,t=M(ie(e));e&&o(e,t)&&e.focus({preventScroll:!0})}}}),[be,pe,L,_,n,oe,he,m]),Te=J.useMemo(()=>m&&j&&ye&&{"aria-activedescendant":`${T}-${r}`},[m,j,ye,T,r]),Ee=J.useMemo(()=>({...I?{}:Te,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&j&&!m){let n=ne(t.nativeEvent);if(n&&!o(L.current,n))return;Ie(t);let r=l(Oe,t.nativeEvent);e.setOpen(!1,r);let i=k?.current??N;!r.isCanceled&&Xe(i)&&i.focus()}else W(t)},onPointerMove(e){Ur(e)||(ae.current=!0)}}),[Te,W,L,I,e,j,m,N,k]),ke=J.useMemo(()=>{function t(t){e.setOpen(!0,l(V,t.nativeEvent,t.currentTarget))}function n(e){g===`auto`&&h(e.nativeEvent)&&(z.current=!m)}function r(e){z.current=g,g===`auto`&&y(e.nativeEvent)&&(z.current=!0)}return{onKeyDown(n){let r=e.select(`open`);ae.current=!1;let i=n.key.startsWith(`Arrow`),a=qr(n.key,xe(),p),o=Gr(n.key,r?S:C),s=(f?a:o)||n.key===`Enter`||n.key.trim()===``;if(m&&r&&(!f||Cn(n.currentTarget)))return W(n);if(r||v||!i){if(s){let e=Gr(n.key,xe());H.current=f&&e?null:n.key}f?a&&(Ie(n),r?(B.current=Ce(),oe(n),m&&L.current?.focus()):t(n)):o&&(me.current!=null&&(B.current=me.current),Ie(n),!r&&v?t(n):W(n),r&&oe(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!m&&(B.current=-1,oe(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[W,g,Ce,f,oe,e,v,S,C,xe,p,me,m,L]),Ae=J.useMemo(()=>({...Te,...ke}),[Te,ke]);return J.useMemo(()=>s?{reference:Ae,floating:Ee,item:we,trigger:ke}:{},[s,Ae,Ee,ke,we])}function Xr(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:s,onTyping:c,enabled:l=!0,resetMs:u=750,selectedIndex:f=null}=t,p=De(c),m=e.useState(`open`),h=He(),g=J.useRef(``),_=J.useRef(f??i??-1),v=J.useRef(null),y=De(e=>{function t(e){return r?.current[e]}function o(e){let n=t(e);return n&&!w(n)||n?.matches(`:disabled`)?!1:s==null||!d(k,e,s)}function c(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&o(n))return n}return-1}let l=n.current;if(g.current.length>0&&e.key===` `&&(Ie(e),p?.(!0)),g.current.length>0&&g.current[0]!==` `&&c(l,g.current)===-1&&e.key!==` `&&p?.(!1),l==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;m&&e.key!==` `&&(Ie(e),p?.(!0));let y=g.current===``;y&&(_.current=f??i??-1),l.every((e,t)=>e&&o(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&g.current===e.key&&(g.current=``,_.current=v.current),g.current+=e.key,h.start(u,()=>{g.current=``,_.current=v.current,p?.(!1)});let b=((y?f??i??-1:_.current)??0)+1,x=c(l,g.current,b);x===-1?e.key!==` `&&(g.current=``,p?.(!1)):(a?.(x,e),v.current=x)}),b=De(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);o(r,n)||o(i,n)||(h.clear(),g.current=``,_.current=v.current,p?.(!1))});U(()=>{(m||f===null)&&(h.clear(),v.current=null,g.current!==``&&(g.current=``,p?.(!1)))},[m,f,h,p]);let x=J.useMemo(()=>({onKeyDown:y,onBlur:b}),[y,b]);return J.useMemo(()=>l?{reference:x,floating:x}:{},[l,x])}function Zr(e){let[t,n]=J.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}function Qr(e){let t=We(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Xe(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r;return(de(n)!==a||de(r)!==o)&&(n=a,r=o),{width:n,height:r}}var $r=e=>e.replaceAll(`~1`,`/`).replaceAll(`~0`,`~`),ei=e=>decodeURI($r(e)),ti=e=>e.split(`/`).slice(1).map(ei),ni=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},ri=(e,t,n)=>{let[r,i]=e.split(`#`,2);if(r){if(!n.has(r))return;if(!i)return n.get(r);if(i.startsWith(`/`)){let e=n.get(r);return e?`${e}${i}`:i.slice(1)}return n.get(`${r}#${i}`)}if(i)return i.startsWith(`/`)?i.slice(1):n.get(`${t}#${i}`)},ii=e=>{if(e&&typeof e==`object`&&e.$id&&typeof e.$id==`string`)return e.$id},ai=e=>e.join(`/`),oi=(e,t=``,n=[],r=new Map,i=new WeakSet)=>{if(typeof e!=`object`||!e||i.has(e))return r;i.add(e);let a=ii(e);a&&r.set(a,ai(n));let o=a??t;e.$anchor&&typeof e.$anchor==`string`&&r.set(`${o}#${e.$anchor}`,ai(n));for(let t in e)typeof e[t]==`object`&&e[t]!==null&&oi(e[t],o,[...n,t],r,i);return r};function si(e,t){return t.reduce((e,t)=>e.value===void 0||typeof e.value!=`object`||e.value===null||!Object.hasOwn(e.value,t)?{context:``,value:void 0}:{context:ii(e.value)??e.context,value:e.value?.[t]},{context:``,value:e})}function ci(e,t){return t.reduce((e,t)=>{if(!Object.hasOwn(e,t)||e[t]===void 0){let n=isNaN(Number(t))?{}:[];t===`__proto__`?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}return e[t]},e)}var li=Symbol(`isMagicProxy`),ui=Symbol(`magicProxyTarget`),di=`$ref-value`,fi=`$ref`,pi=(e,t,n={root:e,proxyCache:new WeakMap,cache:new Map,schemas:oi(e,``,[],new Map(t?.documentUri?[[t.documentUri,``]]:[])),currentContext:``})=>{if(!ni(e)&&!Array.isArray(e))return e;if(n.proxyCache.has(e))return n.proxyCache.get(e);let r=new Proxy(e,{get(e,r,i){if(r===li)return!0;if(r===ui)return e;if(typeof r==`string`&&r.startsWith(`__scalar_`)&&!t?.showInternal)return;let a=Reflect.get(e,fi,i),o=ii(e);if(r===di&&typeof a==`string`){if(n.cache.has(a))return n.cache.get(a);let e=ri(a,o??n.currentContext,n.schemas);if(e===void 0)return;let r=si(n.root,ti(`/${e}`));if(mi(r.value))return r.value;let i=pi(r.value,t,{...n,currentContext:r.context});return n.cache.set(a,i),i}let s=Reflect.get(e,r,i);return mi(s)?s:pi(s,t,{...n,currentContext:o??n.currentContext})},set(e,r,i,a){let o=Reflect.get(e,fi,a);if(typeof r==`string`&&r.startsWith(`__scalar_`)&&!t?.showInternal)return!0;if(r===di&&typeof o==`string`){let t=ri(o,ii(e)??n.currentContext,n.schemas);if(t===void 0)return;let r=ti(`/${t}`);if(r.length===0)return!1;let a=()=>si(n.root,r.slice(0,-1)).value;a()===void 0&&(ci(n.root,r.slice(0,-1)),console.warn(`Trying to set $ref-value for invalid reference: ${o}\n\nPlease fix your input file to fix this issue.`));let s=a(),c=r.at(-1);return c===`__proto__`?Object.defineProperty(s,c,{value:i,enumerable:!0,configurable:!0,writable:!0}):s[c]=i,!0}return Reflect.set(e,r,i,a)},deleteProperty(e,t){return Reflect.deleteProperty(e,t)},has(e,n){return typeof n==`string`&&n.startsWith(`__scalar_`)&&!t?.showInternal?!1:n===di&&fi in e||Reflect.has(e,n)},ownKeys(e){let n=Reflect.ownKeys(e).filter(e=>typeof e!=`string`||!(e.startsWith(`__scalar_`)&&!t?.showInternal));return fi in e&&!n.includes(di)&&n.push(di),n},getOwnPropertyDescriptor(e,n){if(typeof n==`string`&&n.startsWith(`__scalar_`)&&!t?.showInternal)return;let r=Reflect.get(e,fi);return n===di&&typeof r==`string`?{configurable:!0,enumerable:!0,value:void 0,writable:!1}:Reflect.getOwnPropertyDescriptor(e,n)}});return n.proxyCache.set(e,r),r},mi=e=>typeof e==`object`&&!!e&&e[li]===!0;function hi(e){return typeof e!=`object`||!e?e:e[li]?e[ui]:e}var gi=t(re(),1),Y=t(I(),1);function _i(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null}var vi=new WeakMap;function yi(e){if(!_i(e)||typeof e.$ref!=`string`)return e;let t=vi.get(e);if(t)return t;let{$ref:n,"$ref-value":r,...i}=e;vi.set(e,i);let a=yi(r),o=i;return _i(a)&&(o=Object.keys(i).length===0?a:{...a,...i}),vi.set(e,o),o}function bi(e,t){if(e===t)return!0;if(e==null||t==null||typeof e!=`object`||typeof t!=`object`)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>bi(e,t[n]));if(Array.isArray(e)||Array.isArray(t))return!1;if(_i(e)&&_i(t)){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>n in t&&bi(e[n],t[n]))}return!1}function xi(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Si(e,...t){let n=Ci(void 0,e);for(let e of t)n=Ci(n,e);return n}function Ci(e,t){if(!_i(t))return t;let n={};if(_i(e))for(let r of Object.keys(e))Object.hasOwn(t,r)||xi(n,r,Ci(void 0,e[r]));for(let r of Object.keys(t))xi(n,r,Ci(_i(e)&&Object.hasOwn(e,r)?e[r]:void 0,t[r]));return n}function wi(e){return e=yi(e),typeof e==`boolean`||!e.allOf?e:Ti([e],new Set,e.title)}function Ti(e,t,n){let r=[],i=e=>{let n=yi(e);return typeof n==`boolean`?n:t.has(n)?!0:(t.add(n),n.allOf&&(t.add(n.allOf),!n.allOf.every(i))?!1:(r.push(n),!0))};if(!e.every(i))return!1;let a=Di(r);if(a===!1)return!1;n??=Ai(r);let o=[];for(let e of r)for(let n of[`anyOf`,`oneOf`]){let r=e[n];r&&!t.has(r)&&!r.some(e=>Ei(e,t))&&o.push([n,r])}if(o.length===0)return n!==void 0&&(a.title=n),a;let s=o[0][0],c=[a],l=[[]];for(let[e,n]of o)e===s?(t.add(n),l=l.flatMap(e=>n.map(t=>[...e,t]))):c.push({[e]:n});let u=[];for(let e of l){let n=Ti([...c,...e],new Set(t));n!==!1&&u.push(n)}return u.length===0?!1:n===void 0?{[s]:u}:{title:n,[s]:u}}function Ei(e,t){let n=yi(e);return typeof n==`object`&&(t.has(n)||t.has(n.allOf))}function Di(e){let t={},n=new Set,r=new Map,i=new Map;for(let a of e){let e=a;for(let a in e){let o=e[a];if(o!==void 0)switch(a){case`title`:case`allOf`:case`anyOf`:case`oneOf`:break;case`minItems`:case`minimum`:case`exclusiveMinimum`:case`minProperties`:case`minContains`:case`minLength`:t[a]=t[a]===void 0?o:Math.max(t[a],o);break;case`maxContains`:case`maxItems`:case`maxLength`:case`maxProperties`:case`maximum`:case`exclusiveMaximum`:t[a]=t[a]===void 0?o:Math.min(t[a],o);break;case`enum`:t[a]=t[a]===void 0?o:Mi(t[a],o);break;case`format`:case`const`:if(t[a]===void 0)t[a]=o;else if(!bi(t[a],o))return!1;break;case`type`:{if(t.type===void 0){t.type=o;break}let e=Array.isArray(o)?o:[o],n=(Array.isArray(t.type)?t.type:[t.type]).filter(t=>e.includes(t));if(n.length===0)return!1;t.type=n.length===1?n[0]:n;break}case`required`:for(let e of o)n.add(e);break;case`properties`:case`patternProperties`:{let e=i.get(a);e||i.set(a,e=new Map);for(let t in o)Oi(e,t,o[t]);break}case`additionalProperties`:case`additionalItems`:case`contains`:case`items`:case`not`:Oi(r,a,o);break;default:t[a]=o}}}n.size>0&&(t.required=Array.from(n));for(let[e,n]of i){let r={};for(let[e,t]of n)xi(r,e,ki(t));t[e]=r}for(let[e,n]of r)t[e]=e===`not`?n.length===1?n[0]:{anyOf:n}:ki(n);return t}function Oi(e,t,n){let r=e.get(t);r?r.push(n):e.set(t,[n])}function ki(e){let t=[];for(let n of e){if(n===!1)return!1;n!==!0&&!t.some(e=>yi(e)===yi(n))&&t.push(n)}return t.length===0?!0:t.length===1?t[0]:{allOf:t}}function Ai(e){let t=new Set;for(let n of e){let r=n.title;r!==void 0&&(e.some(e=>e!==n&&e.title!==void 0&&e.allOf?.some(e=>ji(e,r)))||t.add(r))}if(t.size>0)return Array.from(t).join(` & `)}function ji(e,t,n=new Set){return e=yi(e),typeof e==`boolean`||n.has(e)?!1:(n.add(e),e.title===t?!0:e.allOf?.some(e=>ji(e,t,n))??!1)}function Mi(e,t){let n=new Set;for(let r of e)t.includes(r)&&n.add(r);for(let r of t)e.includes(r)&&n.add(r);return Array.from(n)}function Ni(e){if(e===null)return`null`;switch(typeof e){case`string`:return`string`;case`boolean`:return`boolean`;case`number`:return Number.isInteger(e)?`integer`:`number`;case`object`:return Array.isArray(e)?`array`:`object`}}function Pi(e,t){let n=Ni(e);return n===void 0?!1:n===t||t===`number`&&n===`integer`}function Fi(e,t){return Ii(e,t,new Set)}function Ii(e,t,n){if(t===void 0)return!1;let r=yi(e);if(typeof r==`boolean`)return r;if(n.has(r))return!0;if(n.add(r),r.const!==void 0)return bi(t,r.const);if(Array.isArray(r.enum))return r.enum.some(e=>bi(t,e));if(Array.isArray(r.allOf)&&!r.allOf.every(e=>Ii(e,t,n))||Array.isArray(r.anyOf)&&!r.anyOf.some(e=>Ii(e,t,n))||Array.isArray(r.oneOf)&&!r.oneOf.some(e=>Ii(e,t,n))||r.not!==void 0&&Ii(r.not,t,n)||r.type!==void 0&&[r.type].flat().every(e=>!Pi(t,e)))return!1;if(_i(t)){if(Array.isArray(r.required)&&r.required.some(e=>t[e]===void 0))return!1;let e=r.properties??{};for(let n in e){let r=e[n];if(t[n]!==void 0&&r!==void 0&&!Ii(r,t[n],new Set))return!1}}if(Array.isArray(t)){let e=r.items;if(e!==void 0&&typeof e!=`boolean`&&t.some(t=>!Ii(e,t,new Set)))return!1}return!0}function Li(e,{alias:t=!1}={}){function n(e,t){let n=new Set,i=[],a=!1;for(let t of e){let e=r(t,!0);e===`null`?a=!0:e!==`unknown`&&!n.has(e)&&(i.push(e),n.add(e))}return a&&i.push(`null`),i.join(t)}function r(e,t){let i=typeof e==`object`&&typeof e.$ref==`string`?e.$ref:void 0,a=yi(e);if(a===!0)return`any`;if(a===!1)return`never`;if(a.enum?.length===1)switch(typeof a.enum[0]){case`bigint`:case`boolean`:case`number`:case`string`:return JSON.stringify(a.enum[0])}if(t){if(a.title)return a.title;if(typeof i==`string`){let e=i.split(`/`);if(e.length>0)return e[e.length-1]}}if(Array.isArray(a.type))return n(a.type.map(e=>({...a,type:e})),` | `);if(a.type===`array`)return`array<${a.items?r(a.items,!0):`unknown`}>`;if(a.oneOf&&a.anyOf)return`(${n(a.oneOf,` | `)}) & (${n(a.anyOf,` | `)})`;let o=a.oneOf??a.anyOf;return o?n(o,` | `):a.allOf?n(a.allOf,` & `):a.not?`not (${r(a.not,t)})`:a.type===`string`&&a.format===`binary`?`file`:typeof a.type==`string`?a.type:`unknown`}return r(e,t)}var Ri=Symbol(`skip`),zi={skipReadOnly:!1,maxSampleDepth:15},Bi={},Vi=[];function Hi(){Bi={},Vi.length=0}function Ui(e){e&&Vi.pop()}function Wi(e){if(typeof e!=`boolean`){if(e.type!==void 0){let t=e.type;return Array.isArray(t)?t[0]:t}for(let[t,n]of Object.entries({multipleOf:`number`,maximum:`number`,exclusiveMaximum:`number`,minimum:`number`,exclusiveMinimum:`number`,maxLength:`string`,minLength:`string`,pattern:`string`,items:`array`,maxItems:`array`,minItems:`array`,uniqueItems:`array`,additionalItems:`array`,maxProperties:`object`,minProperties:`object`,required:`object`,additionalProperties:`object`,properties:`object`,patternProperties:`object`,dependencies:`object`}))if(e[t]!==void 0)return n}}function Gi(e){if(e===`object`)return{};if(e===`array`)return[]}function Ki(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function qi(e,t,n,r){return()=>{e|=0,t|=0,n|=0,r|=0;let i=e-(t<<27|t>>>5)|0;return e=t^(n<<17|n>>>15),t=n+r|0,n=r+i|0,r=e+i|0,(r>>>0)/4294967296}}function Ji(e){let t=Ki(e),n=qi(t,t,t,t);return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=n()*16|0;return(e===`x`?t:t&3|8).toString(16)})}function Yi(e,t,n,r){let i=e=>e<10?`0${e}`:`${e}`,a=n?``:`${e.getUTCFullYear()}-${i(e.getUTCMonth()+1)}-${i(e.getUTCDate())}`;return t||(a+=`T${i(e.getUTCHours())}:${i(e.getUTCMinutes())}:${i(e.getUTCSeconds())}`,r&&(a+=`.${(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)}`),a+=`Z`),a}function Xi(e,t){return t>e.length?e.repeat(Math.trunc(t/e.length)+1).substring(0,t):e}function Zi(){return!0}function Qi(e){let t=0;return typeof e==`boolean`?t:(e.type===`number`&&(e.format===`float`||e.format===`double`)&&(t=.1),typeof e.minimum==`number`?e.minimum:(typeof e.exclusiveMinimum==`number`?(t=Math.floor(e.exclusiveMinimum)+1,t===e.exclusiveMaximum&&(t=(t+Math.floor(e.exclusiveMaximum)-1)/2)):typeof e.exclusiveMaximum==`number`?t=Math.floor(e.exclusiveMaximum)-1:typeof e.maximum==`number`&&(t=e.maximum),t))}function $i(e,t,n,r){if(n&&r)return ea(n);let i=Xi(`string`,e);return t!=null&&i.length>t&&(i=i.substring(0,t)),i}function ea(e){let t=e.replace(/^\^?/,``).replace(/\$?$/,``),n=t.match(/^(.)\{(\d+)\}$/);return n?n[1].repeat(parseInt(n[2],10)):t.length>0?t:`x`}function ta(e,t,n){if(typeof e==`boolean`)return``;let r=new Date(`2019-08-24T14:15:22.123Z`);switch(e.format){case`email`:return`user@example.com`;case`idn-email`:return`пошта@укр.нет`;case`password`:{let t=`pa$$word`,n=e.minLength??0;return n>t.length&&(t+=`_`,t+=Xi(`qwerty!@#$%^123456`,n-t.length).substring(0,n-t.length)),t}case`date-time`:return Yi(r,!1,!1,!1);case`date`:return Yi(r,!0,!1,!1);case`time`:return Yi(r,!1,!0,!1).slice(1);case`ipv4`:return`192.168.0.1`;case`ipv6`:return`2001:0db8:85a3:0000:0000:8a2e:0370:7334`;case`hostname`:return`example.com`;case`idn-hostname`:return`приклад.укр`;case`uri`:return`http://example.com`;case`uri-reference`:return`../dictionary`;case`uri-template`:return`http://example.com/{endpoint}`;case`iri`:return`http://example.com/entity/1`;case`iri-reference`:return`/entity/1`;case`uuid`:return Ji(n?.propertyName||`id`);case`json-pointer`:return`/json/pointer`;case`relative-json-pointer`:return`1/relative/json/pointer`;case`regex`:return`/regex/`;default:return $i(e.minLength??0,e.maxLength,e.pattern,t.enablePatterns)}}function na(e,t,n){if(typeof e==`boolean`)return[];let r=n?.depth??1,i=Math.min(e.maxItems??1/0,e.minItems??1),a=e.prefixItems??e.items??e.contains;Array.isArray(a)&&(i=Math.max(i,a.length));let o=e=>Array.isArray(a)?a[e]??{}:a??{},s=[];if(!a)return s;for(let e=0;e<i;e++){let{value:i}=ua(o(e),t,{depth:r+1,propertyName:n?.propertyName});s.push(i)}return s}function ra(e,t,n){let r={};if(typeof e==`boolean`)return r;let i=n?.depth??1;if(e.properties){let a=Array.isArray(e.required)?e.required:[],o=new Set(a);for(let a of Object.keys(e.properties)){if(t.skipNonRequired&&!o.has(a))continue;let s=e.properties[a],c=ua(s,t,{propertyName:a,depth:i+1});t.skipReadOnly&&c.readOnly||t.skipWriteOnly&&c.writeOnly?n?.isAllOfChild&&xi(r,a,Ri):xi(r,a,c.value)}}if(typeof e.additionalProperties==`object`){let n=e.additionalProperties,a=n[`x-additionalPropertiesName`]||`property`;r[`${a}1`]=ua(n,t,{depth:i+1}).value,r[`${a}2`]=ua(n,t,{depth:i+1}).value}if(e.properties&&e.maxProperties!==void 0&&Object.keys(r).length>e.maxProperties){let t={},n=0,i=Array.isArray(e.required)?e.required:[];for(let e of i)Object.hasOwn(r,e)&&r[e]!==void 0&&(xi(t,e,r[e]),n++);for(let i of Object.keys(r))n<e.maxProperties&&!Object.hasOwn(t,i)&&(xi(t,i,r[i]),n++);r=t}return r}function ia(e){if(e.const!==void 0)return hi(e.const);if(Array.isArray(e.examples)&&e.examples.length>0)return hi(e.examples[0]);if(Array.isArray(e.enum)&&e.enum.length>0)return hi(e.enum[0]);if(e.default!==void 0)return hi(e.default)}function aa(e){if(typeof e==`boolean`)return;let t=ia(e);if(t!==void 0)return{value:t,readOnly:e.readOnly,writeOnly:e.writeOnly}}function oa(e,t,n,r){let i=ua(e,n),a=[];for(let e of t){let{type:t,readOnly:o,writeOnly:s,value:c}=ua(typeof e==`object`?{type:i.type,...e}:e,n,{...r,depth:r?.depth??1,isAllOfChild:!0});i.type&&t&&t!==i.type&&(n.quiet||console.warn(`allOf: schemas with different types can't be merged`),i.type=t),i.type=i.type??t,i.readOnly=i.readOnly||o,i.writeOnly=i.writeOnly||s,c!=null&&a.push(c)}if(i.type===`object`){let e=Si(i.value||{},...a.filter(e=>typeof e==`object`&&!!e));for(let t of Object.keys(e))e[t]===Ri&&delete e[t];return{...i,value:e}}i.type===`array`&&(n.quiet||console.warn(`OpenAPI Sampler: found allOf with "array" type. Result may be incorrect`));let o=a[a.length-1];return{...i,value:o??i.value}}var sa={array:na,boolean:Zi,integer:Qi,number:Qi,object:ra,string:ta};function ca(e,t,n,r){let i=aa(e);if(i!==void 0)return i;let a=ua({...e,oneOf:void 0,anyOf:void 0},n,r),o=ua(t,n,r);if(typeof a.value==`object`&&a.value!==null&&typeof o.value==`object`&&o.value!==null){let e=Si(a.value,o.value);return{...o,value:e}}return o}function la(e){return _i(e)}function ua(e,t,n){if(n){if(Vi.includes(e))return{value:Gi(Wi(e))};Vi.push(e)}if(n&&(n.depth??1)>t.maxSampleDepth)return Ui(n),{value:Gi(Wi(e))};if(!la(e))return Ui(n),{value:e};if(typeof e.$ref==`string`){let r=decodeURIComponent(e.$ref),i=e[`$ref-value`];if(Bi[r]){let e=Wi(i??{});return Ui(n),{value:Gi(e)}}if(Bi[r]=!0,i===void 0)throw Bi[r]=!1,Ui(n),Error(`Could not resolve $ref: ${e.$ref}, the schema must be a node of magic proxy ("@scalar/json-magic").`);let{$ref:a,"$ref-value":o,...s}=e,c=ua(Object.keys(s).length>0&&_i(i)?{...i,...s}:i,t,n);return Bi[r]=!1,Ui(n),c}if(e.allOf!==void 0)return Ui(n),aa(e)??oa({...e,allOf:void 0},e.allOf,t,n);if(Array.isArray(e.oneOf)&&e.oneOf.length>0)return e.anyOf&&!t.quiet&&console.warn(`oneOf and anyOf are not supported on the same level. Skipping anyOf`),Ui(n),ca(e,Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.oneOf[0]),t,n);if(Array.isArray(e.anyOf)&&e.anyOf.length>0)return Ui(n),ca(e,Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.anyOf[0]),t,n);if(e.if&&e.then){Ui(n);let{if:r,then:i,...a}=e;return ua(Si(a,r,i),t,n)}let r=ia(e),i;if(r===void 0){r=null,i=Wi(e);let a=i?sa[i]:void 0;a&&(r=a(e,t,n))}return Ui(n),{value:r,readOnly:e.readOnly,writeOnly:e.writeOnly,type:i}}function da(e,t){let n={...zi,...t};return Hi(),ua(e,n).value}var fa=new WeakMap;function pa(e){let t=fa.get(e);if(t)return t;let n={bundled:e,dereferenced:pi(e),resolve(e){return yi(e)}};return fa.set(e,n),n}var ma=Object.create,ha=Object.defineProperty,ga=Object.getOwnPropertyDescriptor,_a=Object.getOwnPropertyNames,va=Object.getPrototypeOf,ya=Object.prototype.hasOwnProperty,ba=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),xa=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=_a(t),a=0,o=i.length,s;a<o;a++)s=i[a],!ya.call(e,s)&&s!==n&&ha(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=ga(t,s))||r.enumerable});return e},Sa=(e,t,n)=>(n=e==null?{}:ma(va(e)),xa(t||!e||!e.__esModule||!ya.call(e,`default`)?ha(n,`default`,{value:e,enumerable:!0}):n,e));function Ca(e){let t=new Map(e?.map());return{add(e,n){t.set(e,n)},get(e){return t.get(e)},addInline(e){let n=e.source,r=e.id??e.lang;n?t.set(r,{lang:e.lang,label:e.label,generate:typeof n==`string`?()=>n:n}):this.remove(r)},remove(e){return t.delete(e)},map(){return t}}}function wa(e){return e===`\r`?`\\r`:e===`\0`?`\\000`:`\\${e}`}function Ta(e){return e.replace(/[\\\r\0]|"(?=""|$)/g,wa)}function Ea(e){return`"""${Ta(e)}"""`}function Da(e){let t=Ta(e).replace(/(?:[^\S\n]|[\x1c-\x1f])(?=\n)/g,e=>e===` `?`\\s`:`${e}\\n\\`);return!e.endsWith(`
|
|
1
|
+
import{n as e,r as t,t as n}from"./rolldown-runtime-XKyaHtl9.js";import{$ as r,A as i,Bn as a,Bt as o,C as s,D as c,Dt as l,Et as u,F as d,Fn as f,Ft as p,Gn as m,Gt as h,Hn as g,In as _,Jt as v,Kt as y,Ln as b,M as x,Mn as S,Mt as C,N as w,Nt as T,O as E,Ot as D,P as O,Pn as k,Pt as A,Qt as ee,Rn as j,Rt as M,S as te,Sn as N,St as P,T as F,Un as I,Vn as L,Vt as ne,Wn as re,Yt as R,_ as z,_n as B,_t as V,a as H,an as ie,at as ae,b as oe,bn as se,c as ce,cn as U,ct as le,d as ue,et as de,f as fe,ft as pe,g as me,gn as he,gt as ge,h as _e,ht as ve,i as ye,in as be,it as xe,j as Se,jn as Ce,k as W,kn as we,kt as Te,l as Ee,ln as De,lt as Oe,m as ke,mt as Ae,nt as je,on as Me,ot as Ne,p as Pe,pt as Fe,qt as Ie,r as Le,rn as Re,rt as ze,s as Be,sn as Ve,tn as He,u as Ue,un as We,ut as Ge,v as Ke,vn as qe,w as Je,x as Ye,xn as Xe,xt as Ze,y as Qe,yt as $e,zn as et,zt as tt}from"./CompositeRoot-D4sRkYq3.js";import{a as nt,c as rt,d as it,f as at,i as ot,l as st,n as ct,o as lt,r as ut,t as dt,u as ft}from"./app.js";import{A as pt,C as mt,D as G,E as ht,F as gt,I as _t,L as vt,N as K,O as yt,P as bt,R as xt,S as St,T as Ct,_ as wt,b as Tt,d as Et,f as Dt,i as Ot,k as kt,t as At,u as jt,v as Mt,x as Nt,y as Pt}from"./CollapsiblePanel-CbUysOp5.js";import{n as Ft,t as q}from"./ccount-CcG1m-Yh.js";import{$ as It,A as Lt,At as Rt,B as zt,C as Bt,D as Vt,E as Ht,F as Ut,G as Wt,H as Gt,I as Kt,J as qt,K as Jt,L as Yt,Mt as Xt,N as Zt,O as Qt,Ot as $t,P as en,Q as tn,R as nn,T as rn,U as an,V as on,W as sn,X as cn,Y as ln,Z as un,_ as dn,a as fn,b as pn,bt as mn,c as hn,ct as gn,d as _n,dt as vn,f as yn,ft as bn,g as xn,h as Sn,ht as Cn,i as wn,it as Tn,j as En,jt as Dn,k as On,kt as kn,l as An,m as jn,mt as Mn,n as Nn,nt as Pn,o as Fn,ot as In,p as Ln,q as Rn,r as zn,rt as Bn,s as Vn,st as Hn,t as Un,tt as Wn,u as Gn,v as Kn,vt as qn,w as Jn,x as Yn,xt as Xn,y as Zn,yt as Qn,z as $n}from"./PopoverPopup-CiI2avT_.js";import{J as er,K as tr,Tt as nr,Y as rr,_t as ir,b as ar,ct as or,k as sr,nt as cr,y as lr}from"./popover-B4rnc_po.js";var ur={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};ur.node;var dr=g(ur),fr={name:`braces`,size:24,node:[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]],aliases:[`curly-braces`]};fr.node;var pr=g(fr),mr={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};mr.node;var hr=g(mr),gr={name:`cookie`,size:24,node:[[`path`,{d:`M11 17h.01`,key:`dukryu`}],[`path`,{d:`M11.496 2c.324-.016.558.292.529.615a4 4 0 004.235 4.368.713.713 0 01.758.757 4 4 0 004.366 4.237c.323-.03.63.204.614.527a10 10 0 01-2.915 6.566A1 1 0 114.93 4.918 10 10 0 0111.496 2`,key:`1x76et`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}],[`path`,{d:`M16 3h.01`,key:`ll0zb8`}],[`path`,{d:`M21 4h.01`,key:`uw58yv`}],[`path`,{d:`M21 8h.01`,key:`17axm7`}],[`path`,{d:`M7 14h.01`,key:`1qa3f1`}],[`path`,{d:`M9 8h.01`,key:`1jwowd`}]]};gr.node;var _r=g(gr),vr={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};vr.node;var yr=g(vr),br={name:`funnel-x`,size:24,node:[[`path`,{d:`M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473`,key:`ol2ft2`}],[`path`,{d:`m16.5 3.5 5 5`,key:`15e6fa`}],[`path`,{d:`m21.5 3.5-5 5`,key:`m0lwru`}]],aliases:[`filter-x`]};br.node;var xr=g(br),Sr={name:`funnel`,size:24,node:[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]],aliases:[`filter`]};Sr.node;var Cr=g(Sr),wr={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};wr.node;var Tr=g(wr),Er={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};Er.node;var Dr=g(Er),Or={name:`route`,size:24,node:[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`,key:`1d8sl`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]};Or.node;var kr=g(Or),Ar={name:`rows-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 9H3`,key:`1338ky`}],[`path`,{d:`M21 15H3`,key:`9uk58r`}]],aliases:[`panels-top-bottom`]};Ar.node;var jr=g(Ar),Mr={name:`send-horizontal`,size:24,node:[[`path`,{d:`M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z`,key:`117uat`}],[`path`,{d:`M6 12h16`,key:`s4cdu5`}]],aliases:[`send-horizonal`]};Mr.node;var Nr=g(Mr),Pr={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};Pr.node;var Fr=g(Pr),Ir={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};Ir.node;var Lr=g(Ir),Rr={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Rr.node;var zr=g(Rr),Br={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};Br.node;var Vr=g(Br);function Hr(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=c(),a=cn()!=null,o=et(()=>new Ht({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new On,floatingId:i,syncOnly:!1,nested:a})).current;return U(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=se(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}var J=t(m(),1);function Ur(e){return kn&&e.movementX===0&&e.movementY===0}function Wr(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Gr(e,t){return Wr(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Kr(e,t,n){return Wr(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function qr(e,t,n){return Wr(t,n?e===T:e===A,e===C)}function Jr(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:Wr(t,n?e===A:e===T,e===p)}function Yr(e,t){let{listRef:n,activeIndex:r,onNavigate:a=()=>{},enabled:s=!0,selectedIndex:c=null,allowEscape:u=!1,loopFocus:d=!1,nested:f=!1,rtl:p=!1,virtual:m=!1,focusItemOnOpen:g=`auto`,focusItemOnHover:_=!0,openOnArrowKeyDown:v=!0,disabledIndices:b=void 0,orientation:S=`vertical`,triggerOrientation:C=S,parentOrientation:w,id:T,resetOnPointerLeave:E=!0,externalTree:D,nestedReturnFocusRef:k,grid:A}=t,ee=A!=null,j=e.useState(`open`),te=e.useState(`floatingElement`),N=e.useState(`domReferenceElement`),P=e.context.dataRef,F=vn(te),I=Mn(N),L=ze(F),re=cn(),R=un(D),z=J.useRef(g),B=J.useRef(c??-1),H=J.useRef(null),ae=J.useRef(!0),oe=De(e=>{a(B.current===-1?null:B.current,e)}),se=J.useRef(!!te),ce=J.useRef(j),le=J.useRef(!1),ue=J.useRef(!1),de=J.useRef(null),fe=ze(b),pe=ze(j),me=ze(c),he=ze(E),ge=je(),_e=je(),ve=De(()=>{ge.cancel();function e(e){m||(de.current=Tn(e,{sync:le.current,preventScroll:!0}))}let t=n.current[B.current],r=ue.current;t&&e(t),(le.current?e=>e():e=>ge.request(e))(()=>{let i=n.current[B.current]||t;i&&(t||e(i),we&&(r||!ae.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});U(()=>{P.current.orientation=S},[P,S]),U(()=>{j||(H.current=null),j&&g===`auto`||(z.current=g)},[j,g]),U(()=>{s&&(j&&te?(B.current=c??-1,z.current&&c!=null&&(ue.current=!0,oe())):se.current&&(B.current=-1,oe()))},[s,j,te,c,oe]),U(()=>{if(s){if(!j)le.current=!1;else if(te){if(r==null){if(le.current=!1,me.current!=null)return;if(se.current&&(B.current=-1,ve()),(!ce.current||!se.current)&&z.current&&(H.current!=null||z.current===!0&&H.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>_e.request(e):queueMicrotask)(t),e+=1):(B.current=H.current==null||Kr(H.current,C,p)||f?Se(n):i(n),H.current=null,oe())};t()}}else O(n.current,r)||(B.current=r,ve(),ue.current=!1)}}},[s,j,te,r,me,f,n,C,p,oe,ve,_e]),U(()=>{if(!s||te||!R||m||!se.current)return;let e=R.nodesRef.current,t=e.find(e=>e.id===re)?.context?.elements.floating,n=M(ie(N??t??null)),r=e.some(e=>e.context&&o(e.context.elements.floating,n));t&&!r&&ae.current&&t.focus({preventScroll:!0})},[s,te,N,R,re,m]),U(()=>{ce.current=j,se.current=!!te});let ye=r!=null,be=De(e=>{if(!pe.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(B.current!==t||r!==t)&&(B.current=t,oe(e))}),xe=De(()=>w??R?.nodesRef.current.find(e=>e.id===re)?.context?.dataRef?.current.orientation),Ce=De(()=>Se(n,fe.current)),W=De(t=>{if(ae.current=!1,le.current=!0,t.which===229||!pe.current&&t.currentTarget===L.current)return;if(f&&Jr(t.key,S,p,ee)){Gr(t.key,xe())||Ie(t),e.setOpen(!1,l(V,t.nativeEvent));let n=k?.current??N;Xe(n)&&n.focus();return}r!=null&&r!==B.current&&!O(n.current,r)&&(B.current=r);let a=B.current,s=Se(n,b),c=i(n,b);if(I||(t.key===`Home`&&(Ie(t),B.current=s,oe(t)),t.key===`End`&&(Ie(t),B.current=c,oe(t))),A!=null){let e=A(t,B.current,n,S,d,p,b,s,c);if(e!=null&&e!==B.current&&(B.current=e,oe(t)),S===`both`)return}if(Gr(t.key,S)){Ie(t);let e=M(t.currentTarget.ownerDocument);if(j&&!m&&o(t.currentTarget,e)&&!n.current.some(t=>t!=null&&o(t,e))){B.current=Kr(t.key,S,p)?s:c,oe(t),r===B.current&&ve();return}let{index:i,wrapped:l}=x(n.current,a,{decrement:!Kr(t.key,S,p),loopFocus:d,allowEscape:u,disabledIndices:b,minIndex:s,maxIndex:c});l&&(le.current=!1),B.current=i,oe(t)}}),we=J.useMemo(()=>({onFocus(e){le.current=!0,be(e)},onClick({currentTarget:e}){m||e.focus({preventScroll:!0})},onMouseMove(e){Ur(e)||(le.current=!0,ue.current=!1,_&&be(e))},onPointerLeave(e){if(!pe.current||!ae.current||e.pointerType===`touch`)return;le.current=!0;let t=e.relatedTarget;if(_&&!n.current.includes(t)&&he.current&&(de.current?.(),de.current=null,B.current=-1,oe(e),!m)){let e=L.current,t=M(ie(e));e&&o(e,t)&&e.focus({preventScroll:!0})}}}),[be,pe,L,_,n,oe,he,m]),Te=J.useMemo(()=>m&&j&&ye&&{"aria-activedescendant":`${T}-${r}`},[m,j,ye,T,r]),Ee=J.useMemo(()=>({...I?{}:Te,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&j&&!m){let n=ne(t.nativeEvent);if(n&&!o(L.current,n))return;Ie(t);let r=l(Oe,t.nativeEvent);e.setOpen(!1,r);let i=k?.current??N;!r.isCanceled&&Xe(i)&&i.focus()}else W(t)},onPointerMove(e){Ur(e)||(ae.current=!0)}}),[Te,W,L,I,e,j,m,N,k]),ke=J.useMemo(()=>{function t(t){e.setOpen(!0,l(V,t.nativeEvent,t.currentTarget))}function n(e){g===`auto`&&h(e.nativeEvent)&&(z.current=!m)}function r(e){z.current=g,g===`auto`&&y(e.nativeEvent)&&(z.current=!0)}return{onKeyDown(n){let r=e.select(`open`);ae.current=!1;let i=n.key.startsWith(`Arrow`),a=qr(n.key,xe(),p),o=Gr(n.key,r?S:C),s=(f?a:o)||n.key===`Enter`||n.key.trim()===``;if(m&&r&&(!f||Cn(n.currentTarget)))return W(n);if(r||v||!i){if(s){let e=Gr(n.key,xe());H.current=f&&e?null:n.key}f?a&&(Ie(n),r?(B.current=Ce(),oe(n),m&&L.current?.focus()):t(n)):o&&(me.current!=null&&(B.current=me.current),Ie(n),!r&&v?t(n):W(n),r&&oe(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!m&&(B.current=-1,oe(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[W,g,Ce,f,oe,e,v,S,C,xe,p,me,m,L]),Ae=J.useMemo(()=>({...Te,...ke}),[Te,ke]);return J.useMemo(()=>s?{reference:Ae,floating:Ee,item:we,trigger:ke}:{},[s,Ae,Ee,ke,we])}function Xr(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:s,onTyping:c,enabled:l=!0,resetMs:u=750,selectedIndex:f=null}=t,p=De(c),m=e.useState(`open`),h=He(),g=J.useRef(``),_=J.useRef(f??i??-1),v=J.useRef(null),y=De(e=>{function t(e){return r?.current[e]}function o(e){let n=t(e);return n&&!w(n)||n?.matches(`:disabled`)?!1:s==null||!d(k,e,s)}function c(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&o(n))return n}return-1}let l=n.current;if(g.current.length>0&&e.key===` `&&(Ie(e),p?.(!0)),g.current.length>0&&g.current[0]!==` `&&c(l,g.current)===-1&&e.key!==` `&&p?.(!1),l==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;m&&e.key!==` `&&(Ie(e),p?.(!0));let y=g.current===``;y&&(_.current=f??i??-1),l.every((e,t)=>e&&o(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&g.current===e.key&&(g.current=``,_.current=v.current),g.current+=e.key,h.start(u,()=>{g.current=``,_.current=v.current,p?.(!1)});let b=((y?f??i??-1:_.current)??0)+1,x=c(l,g.current,b);x===-1?e.key!==` `&&(g.current=``,p?.(!1)):(a?.(x,e),v.current=x)}),b=De(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);o(r,n)||o(i,n)||(h.clear(),g.current=``,_.current=v.current,p?.(!1))});U(()=>{(m||f===null)&&(h.clear(),v.current=null,g.current!==``&&(g.current=``,p?.(!1)))},[m,f,h,p]);let x=J.useMemo(()=>({onKeyDown:y,onBlur:b}),[y,b]);return J.useMemo(()=>l?{reference:x,floating:x}:{},[l,x])}function Zr(e){let[t,n]=J.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}function Qr(e){let t=We(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Xe(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r;return(de(n)!==a||de(r)!==o)&&(n=a,r=o),{width:n,height:r}}var $r=e=>e.replaceAll(`~1`,`/`).replaceAll(`~0`,`~`),ei=e=>decodeURI($r(e)),ti=e=>e.split(`/`).slice(1).map(ei),ni=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},ri=(e,t,n)=>{let[r,i]=e.split(`#`,2);if(r){if(!n.has(r))return;if(!i)return n.get(r);if(i.startsWith(`/`)){let e=n.get(r);return e?`${e}${i}`:i.slice(1)}return n.get(`${r}#${i}`)}if(i)return i.startsWith(`/`)?i.slice(1):n.get(`${t}#${i}`)},ii=e=>{if(e&&typeof e==`object`&&e.$id&&typeof e.$id==`string`)return e.$id},ai=e=>e.join(`/`),oi=(e,t=``,n=[],r=new Map,i=new WeakSet)=>{if(typeof e!=`object`||!e||i.has(e))return r;i.add(e);let a=ii(e);a&&r.set(a,ai(n));let o=a??t;e.$anchor&&typeof e.$anchor==`string`&&r.set(`${o}#${e.$anchor}`,ai(n));for(let t in e)typeof e[t]==`object`&&e[t]!==null&&oi(e[t],o,[...n,t],r,i);return r};function si(e,t){return t.reduce((e,t)=>e.value===void 0||typeof e.value!=`object`||e.value===null||!Object.hasOwn(e.value,t)?{context:``,value:void 0}:{context:ii(e.value)??e.context,value:e.value?.[t]},{context:``,value:e})}function ci(e,t){return t.reduce((e,t)=>{if(!Object.hasOwn(e,t)||e[t]===void 0){let n=isNaN(Number(t))?{}:[];t===`__proto__`?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}return e[t]},e)}var li=Symbol(`isMagicProxy`),ui=Symbol(`magicProxyTarget`),di=`$ref-value`,fi=`$ref`,pi=(e,t,n={root:e,proxyCache:new WeakMap,cache:new Map,schemas:oi(e,``,[],new Map(t?.documentUri?[[t.documentUri,``]]:[])),currentContext:``})=>{if(!ni(e)&&!Array.isArray(e))return e;if(n.proxyCache.has(e))return n.proxyCache.get(e);let r=new Proxy(e,{get(e,r,i){if(r===li)return!0;if(r===ui)return e;if(typeof r==`string`&&r.startsWith(`__scalar_`)&&!t?.showInternal)return;let a=Reflect.get(e,fi,i),o=ii(e);if(r===di&&typeof a==`string`){if(n.cache.has(a))return n.cache.get(a);let e=ri(a,o??n.currentContext,n.schemas);if(e===void 0)return;let r=si(n.root,ti(`/${e}`));if(mi(r.value))return r.value;let i=pi(r.value,t,{...n,currentContext:r.context});return n.cache.set(a,i),i}let s=Reflect.get(e,r,i);return mi(s)?s:pi(s,t,{...n,currentContext:o??n.currentContext})},set(e,r,i,a){let o=Reflect.get(e,fi,a);if(typeof r==`string`&&r.startsWith(`__scalar_`)&&!t?.showInternal)return!0;if(r===di&&typeof o==`string`){let t=ri(o,ii(e)??n.currentContext,n.schemas);if(t===void 0)return;let r=ti(`/${t}`);if(r.length===0)return!1;let a=()=>si(n.root,r.slice(0,-1)).value;a()===void 0&&(ci(n.root,r.slice(0,-1)),console.warn(`Trying to set $ref-value for invalid reference: ${o}\n\nPlease fix your input file to fix this issue.`));let s=a(),c=r.at(-1);return c===`__proto__`?Object.defineProperty(s,c,{value:i,enumerable:!0,configurable:!0,writable:!0}):s[c]=i,!0}return Reflect.set(e,r,i,a)},deleteProperty(e,t){return Reflect.deleteProperty(e,t)},has(e,n){return typeof n==`string`&&n.startsWith(`__scalar_`)&&!t?.showInternal?!1:n===di&&fi in e||Reflect.has(e,n)},ownKeys(e){let n=Reflect.ownKeys(e).filter(e=>typeof e!=`string`||!(e.startsWith(`__scalar_`)&&!t?.showInternal));return fi in e&&!n.includes(di)&&n.push(di),n},getOwnPropertyDescriptor(e,n){if(typeof n==`string`&&n.startsWith(`__scalar_`)&&!t?.showInternal)return;let r=Reflect.get(e,fi);return n===di&&typeof r==`string`?{configurable:!0,enumerable:!0,value:void 0,writable:!1}:Reflect.getOwnPropertyDescriptor(e,n)}});return n.proxyCache.set(e,r),r},mi=e=>typeof e==`object`&&!!e&&e[li]===!0;function hi(e){return typeof e!=`object`||!e?e:e[li]?e[ui]:e}var gi=t(re(),1),Y=t(I(),1);function _i(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null}var vi=new WeakMap;function yi(e){if(!_i(e)||typeof e.$ref!=`string`)return e;let t=vi.get(e);if(t)return t;let{$ref:n,"$ref-value":r,...i}=e;vi.set(e,i);let a=yi(r),o=i;return _i(a)&&(o=Object.keys(i).length===0?a:{...a,...i}),vi.set(e,o),o}function bi(e,t){if(e===t)return!0;if(e==null||t==null||typeof e!=`object`||typeof t!=`object`)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>bi(e,t[n]));if(Array.isArray(e)||Array.isArray(t))return!1;if(_i(e)&&_i(t)){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>n in t&&bi(e[n],t[n]))}return!1}function xi(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Si(e,...t){let n=Ci(void 0,e);for(let e of t)n=Ci(n,e);return n}function Ci(e,t){if(!_i(t))return t;let n={};if(_i(e))for(let r of Object.keys(e))Object.hasOwn(t,r)||xi(n,r,Ci(void 0,e[r]));for(let r of Object.keys(t))xi(n,r,Ci(_i(e)&&Object.hasOwn(e,r)?e[r]:void 0,t[r]));return n}function wi(e){return e=yi(e),typeof e==`boolean`||!e.allOf?e:Ti([e],new Set,e.title)}function Ti(e,t,n){let r=[],i=e=>{let n=yi(e);return typeof n==`boolean`?n:t.has(n)?!0:(t.add(n),n.allOf&&(t.add(n.allOf),!n.allOf.every(i))?!1:(r.push(n),!0))};if(!e.every(i))return!1;let a=Di(r);if(a===!1)return!1;n??=Ai(r);let o=[];for(let e of r)for(let n of[`anyOf`,`oneOf`]){let r=e[n];r&&!t.has(r)&&!r.some(e=>Ei(e,t))&&o.push([n,r])}if(o.length===0)return n!==void 0&&(a.title=n),a;let s=o[0][0],c=[a],l=[[]];for(let[e,n]of o)e===s?(t.add(n),l=l.flatMap(e=>n.map(t=>[...e,t]))):c.push({[e]:n});let u=[];for(let e of l){let n=Ti([...c,...e],new Set(t));n!==!1&&u.push(n)}return u.length===0?!1:n===void 0?{[s]:u}:{title:n,[s]:u}}function Ei(e,t){let n=yi(e);return typeof n==`object`&&(t.has(n)||t.has(n.allOf))}function Di(e){let t={},n=new Set,r=new Map,i=new Map;for(let a of e){let e=a;for(let a in e){let o=e[a];if(o!==void 0)switch(a){case`title`:case`allOf`:case`anyOf`:case`oneOf`:break;case`minItems`:case`minimum`:case`exclusiveMinimum`:case`minProperties`:case`minContains`:case`minLength`:t[a]=t[a]===void 0?o:Math.max(t[a],o);break;case`maxContains`:case`maxItems`:case`maxLength`:case`maxProperties`:case`maximum`:case`exclusiveMaximum`:t[a]=t[a]===void 0?o:Math.min(t[a],o);break;case`enum`:t[a]=t[a]===void 0?o:Mi(t[a],o);break;case`format`:case`const`:if(t[a]===void 0)t[a]=o;else if(!bi(t[a],o))return!1;break;case`type`:{if(t.type===void 0){t.type=o;break}let e=Array.isArray(o)?o:[o],n=(Array.isArray(t.type)?t.type:[t.type]).filter(t=>e.includes(t));if(n.length===0)return!1;t.type=n.length===1?n[0]:n;break}case`required`:for(let e of o)n.add(e);break;case`properties`:case`patternProperties`:{let e=i.get(a);e||i.set(a,e=new Map);for(let t in o)Oi(e,t,o[t]);break}case`additionalProperties`:case`additionalItems`:case`contains`:case`items`:case`not`:Oi(r,a,o);break;default:t[a]=o}}}n.size>0&&(t.required=Array.from(n));for(let[e,n]of i){let r={};for(let[e,t]of n)xi(r,e,ki(t));t[e]=r}for(let[e,n]of r)t[e]=e===`not`?n.length===1?n[0]:{anyOf:n}:ki(n);return t}function Oi(e,t,n){let r=e.get(t);r?r.push(n):e.set(t,[n])}function ki(e){let t=[];for(let n of e){if(n===!1)return!1;n!==!0&&!t.some(e=>yi(e)===yi(n))&&t.push(n)}return t.length===0?!0:t.length===1?t[0]:{allOf:t}}function Ai(e){let t=new Set;for(let n of e){let r=n.title;r!==void 0&&(e.some(e=>e!==n&&e.title!==void 0&&e.allOf?.some(e=>ji(e,r)))||t.add(r))}if(t.size>0)return Array.from(t).join(` & `)}function ji(e,t,n=new Set){return e=yi(e),typeof e==`boolean`||n.has(e)?!1:(n.add(e),e.title===t?!0:e.allOf?.some(e=>ji(e,t,n))??!1)}function Mi(e,t){let n=new Set;for(let r of e)t.includes(r)&&n.add(r);for(let r of t)e.includes(r)&&n.add(r);return Array.from(n)}function Ni(e){if(e===null)return`null`;switch(typeof e){case`string`:return`string`;case`boolean`:return`boolean`;case`number`:return Number.isInteger(e)?`integer`:`number`;case`object`:return Array.isArray(e)?`array`:`object`}}function Pi(e,t){let n=Ni(e);return n===void 0?!1:n===t||t===`number`&&n===`integer`}function Fi(e,t){return Ii(e,t,new Set)}function Ii(e,t,n){if(t===void 0)return!1;let r=yi(e);if(typeof r==`boolean`)return r;if(n.has(r))return!0;if(n.add(r),r.const!==void 0)return bi(t,r.const);if(Array.isArray(r.enum))return r.enum.some(e=>bi(t,e));if(Array.isArray(r.allOf)&&!r.allOf.every(e=>Ii(e,t,n))||Array.isArray(r.anyOf)&&!r.anyOf.some(e=>Ii(e,t,n))||Array.isArray(r.oneOf)&&!r.oneOf.some(e=>Ii(e,t,n))||r.not!==void 0&&Ii(r.not,t,n)||r.type!==void 0&&[r.type].flat().every(e=>!Pi(t,e)))return!1;if(_i(t)){if(Array.isArray(r.required)&&r.required.some(e=>t[e]===void 0))return!1;let e=r.properties??{};for(let n in e){let r=e[n];if(t[n]!==void 0&&r!==void 0&&!Ii(r,t[n],new Set))return!1}}if(Array.isArray(t)){let e=r.items;if(e!==void 0&&typeof e!=`boolean`&&t.some(t=>!Ii(e,t,new Set)))return!1}return!0}function Li(e,{alias:t=!1}={}){function n(e,t){let n=new Set,i=[],a=!1;for(let t of e){let e=r(t,!0);e===`null`?a=!0:e!==`unknown`&&!n.has(e)&&(i.push(e),n.add(e))}return a&&i.push(`null`),i.join(t)}function r(e,t){let i=typeof e==`object`&&typeof e.$ref==`string`?e.$ref:void 0,a=yi(e);if(a===!0)return`any`;if(a===!1)return`never`;if(a.enum?.length===1)switch(typeof a.enum[0]){case`bigint`:case`boolean`:case`number`:case`string`:return JSON.stringify(a.enum[0])}if(t){if(a.title)return a.title;if(typeof i==`string`){let e=i.split(`/`);if(e.length>0)return e[e.length-1]}}if(Array.isArray(a.type))return n(a.type.map(e=>({...a,type:e})),` | `);if(a.type===`array`)return`array<${a.items?r(a.items,!0):`unknown`}>`;if(a.oneOf&&a.anyOf)return`(${n(a.oneOf,` | `)}) & (${n(a.anyOf,` | `)})`;let o=a.oneOf??a.anyOf;return o?n(o,` | `):a.allOf?n(a.allOf,` & `):a.not?`not (${r(a.not,t)})`:a.type===`string`&&a.format===`binary`?`file`:typeof a.type==`string`?a.type:`unknown`}return r(e,t)}var Ri=Symbol(`skip`),zi={skipReadOnly:!1,maxSampleDepth:15},Bi={},Vi=[];function Hi(){Bi={},Vi.length=0}function Ui(e){e&&Vi.pop()}function Wi(e){if(typeof e!=`boolean`){if(e.type!==void 0){let t=e.type;return Array.isArray(t)?t[0]:t}for(let[t,n]of Object.entries({multipleOf:`number`,maximum:`number`,exclusiveMaximum:`number`,minimum:`number`,exclusiveMinimum:`number`,maxLength:`string`,minLength:`string`,pattern:`string`,items:`array`,maxItems:`array`,minItems:`array`,uniqueItems:`array`,additionalItems:`array`,maxProperties:`object`,minProperties:`object`,required:`object`,additionalProperties:`object`,properties:`object`,patternProperties:`object`,dependencies:`object`}))if(e[t]!==void 0)return n}}function Gi(e){if(e===`object`)return{};if(e===`array`)return[]}function Ki(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function qi(e,t,n,r){return()=>{e|=0,t|=0,n|=0,r|=0;let i=e-(t<<27|t>>>5)|0;return e=t^(n<<17|n>>>15),t=n+r|0,n=r+i|0,r=e+i|0,(r>>>0)/4294967296}}function Ji(e){let t=Ki(e),n=qi(t,t,t,t);return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=n()*16|0;return(e===`x`?t:t&3|8).toString(16)})}function Yi(e,t,n,r){let i=e=>e<10?`0${e}`:`${e}`,a=n?``:`${e.getUTCFullYear()}-${i(e.getUTCMonth()+1)}-${i(e.getUTCDate())}`;return t||(a+=`T${i(e.getUTCHours())}:${i(e.getUTCMinutes())}:${i(e.getUTCSeconds())}`,r&&(a+=`.${(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)}`),a+=`Z`),a}function Xi(e,t){return t>e.length?e.repeat(Math.trunc(t/e.length)+1).substring(0,t):e}function Zi(){return!0}function Qi(e){let t=0;return typeof e==`boolean`?t:(e.type===`number`&&(e.format===`float`||e.format===`double`)&&(t=.1),typeof e.minimum==`number`?e.minimum:(typeof e.exclusiveMinimum==`number`?(t=Math.floor(e.exclusiveMinimum)+1,t===e.exclusiveMaximum&&(t=(t+Math.floor(e.exclusiveMaximum)-1)/2)):typeof e.exclusiveMaximum==`number`?t=Math.floor(e.exclusiveMaximum)-1:typeof e.maximum==`number`&&(t=e.maximum),t))}function $i(e,t,n,r){if(n&&r)return ea(n);let i=Xi(`string`,e);return t!=null&&i.length>t&&(i=i.substring(0,t)),i}function ea(e){let t=e.replace(/^\^?/,``).replace(/\$?$/,``),n=t.match(/^(.)\{(\d+)\}$/);return n?n[1].repeat(parseInt(n[2],10)):t.length>0?t:`x`}function ta(e,t,n){if(typeof e==`boolean`)return``;let r=new Date(`2019-08-24T14:15:22.123Z`);switch(e.format){case`email`:return`user@example.com`;case`idn-email`:return`пошта@укр.нет`;case`password`:{let t=`pa$$word`,n=e.minLength??0;return n>t.length&&(t+=`_`,t+=Xi(`qwerty!@#$%^123456`,n-t.length).substring(0,n-t.length)),t}case`date-time`:return Yi(r,!1,!1,!1);case`date`:return Yi(r,!0,!1,!1);case`time`:return Yi(r,!1,!0,!1).slice(1);case`ipv4`:return`192.168.0.1`;case`ipv6`:return`2001:0db8:85a3:0000:0000:8a2e:0370:7334`;case`hostname`:return`example.com`;case`idn-hostname`:return`приклад.укр`;case`uri`:return`http://example.com`;case`uri-reference`:return`../dictionary`;case`uri-template`:return`http://example.com/{endpoint}`;case`iri`:return`http://example.com/entity/1`;case`iri-reference`:return`/entity/1`;case`uuid`:return Ji(n?.propertyName||`id`);case`json-pointer`:return`/json/pointer`;case`relative-json-pointer`:return`1/relative/json/pointer`;case`regex`:return`/regex/`;default:return $i(e.minLength??0,e.maxLength,e.pattern,t.enablePatterns)}}function na(e,t,n){if(typeof e==`boolean`)return[];let r=n?.depth??1,i=Math.min(e.maxItems??1/0,e.minItems??1),a=e.prefixItems??e.items??e.contains;Array.isArray(a)&&(i=Math.max(i,a.length));let o=e=>Array.isArray(a)?a[e]??{}:a??{},s=[];if(!a)return s;for(let e=0;e<i;e++){let{value:i}=ua(o(e),t,{depth:r+1,propertyName:n?.propertyName});s.push(i)}return s}function ra(e,t,n){let r={};if(typeof e==`boolean`)return r;let i=n?.depth??1;if(e.properties){let a=Array.isArray(e.required)?e.required:[],o=new Set(a);for(let a of Object.keys(e.properties)){if(t.skipNonRequired&&!o.has(a))continue;let s=e.properties[a],c=ua(s,t,{propertyName:a,depth:i+1});t.skipReadOnly&&c.readOnly||t.skipWriteOnly&&c.writeOnly?n?.isAllOfChild&&xi(r,a,Ri):xi(r,a,c.value)}}if(typeof e.additionalProperties==`object`){let n=e.additionalProperties,a=n[`x-additionalPropertiesName`]||`property`;r[`${a}1`]=ua(n,t,{depth:i+1}).value,r[`${a}2`]=ua(n,t,{depth:i+1}).value}if(e.properties&&e.maxProperties!==void 0&&Object.keys(r).length>e.maxProperties){let t={},n=0,i=Array.isArray(e.required)?e.required:[];for(let e of i)Object.hasOwn(r,e)&&r[e]!==void 0&&(xi(t,e,r[e]),n++);for(let i of Object.keys(r))n<e.maxProperties&&!Object.hasOwn(t,i)&&(xi(t,i,r[i]),n++);r=t}return r}function ia(e){if(e.const!==void 0)return hi(e.const);if(Array.isArray(e.examples)&&e.examples.length>0)return hi(e.examples[0]);if(Array.isArray(e.enum)&&e.enum.length>0)return hi(e.enum[0]);if(e.default!==void 0)return hi(e.default)}function aa(e){if(typeof e==`boolean`)return;let t=ia(e);if(t!==void 0)return{value:t,readOnly:e.readOnly,writeOnly:e.writeOnly}}function oa(e,t,n,r){let i=ua(e,n),a=[];for(let e of t){let{type:t,readOnly:o,writeOnly:s,value:c}=ua(typeof e==`object`?{type:i.type,...e}:e,n,{...r,depth:r?.depth??1,isAllOfChild:!0});i.type&&t&&t!==i.type&&(n.quiet||console.warn(`allOf: schemas with different types can't be merged`),i.type=t),i.type=i.type??t,i.readOnly=i.readOnly||o,i.writeOnly=i.writeOnly||s,c!=null&&a.push(c)}if(i.type===`object`){let e=Si(i.value||{},...a.filter(e=>typeof e==`object`&&!!e));for(let t of Object.keys(e))e[t]===Ri&&delete e[t];return{...i,value:e}}i.type===`array`&&(n.quiet||console.warn(`OpenAPI Sampler: found allOf with "array" type. Result may be incorrect`));let o=a[a.length-1];return{...i,value:o??i.value}}var sa={array:na,boolean:Zi,integer:Qi,number:Qi,object:ra,string:ta};function ca(e,t,n,r){let i=aa(e);if(i!==void 0)return i;let a=ua({...e,oneOf:void 0,anyOf:void 0},n,r),o=ua(t,n,r);if(typeof a.value==`object`&&a.value!==null&&typeof o.value==`object`&&o.value!==null){let e=Si(a.value,o.value);return{...o,value:e}}return o}function la(e){return _i(e)}function ua(e,t,n){if(n){if(Vi.includes(e))return{value:Gi(Wi(e))};Vi.push(e)}if(n&&(n.depth??1)>t.maxSampleDepth)return Ui(n),{value:Gi(Wi(e))};if(!la(e))return Ui(n),{value:e};if(typeof e.$ref==`string`){let r=decodeURIComponent(e.$ref),i=e[`$ref-value`];if(Bi[r]){let e=Wi(i??{});return Ui(n),{value:Gi(e)}}if(Bi[r]=!0,i===void 0)throw Bi[r]=!1,Ui(n),Error(`Could not resolve $ref: ${e.$ref}, the schema must be a node of magic proxy ("@scalar/json-magic").`);let{$ref:a,"$ref-value":o,...s}=e,c=ua(Object.keys(s).length>0&&_i(i)?{...i,...s}:i,t,n);return Bi[r]=!1,Ui(n),c}if(e.allOf!==void 0)return Ui(n),aa(e)??oa({...e,allOf:void 0},e.allOf,t,n);if(Array.isArray(e.oneOf)&&e.oneOf.length>0)return e.anyOf&&!t.quiet&&console.warn(`oneOf and anyOf are not supported on the same level. Skipping anyOf`),Ui(n),ca(e,Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.oneOf[0]),t,n);if(Array.isArray(e.anyOf)&&e.anyOf.length>0)return Ui(n),ca(e,Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.anyOf[0]),t,n);if(e.if&&e.then){Ui(n);let{if:r,then:i,...a}=e;return ua(Si(a,r,i),t,n)}let r=ia(e),i;if(r===void 0){r=null,i=Wi(e);let a=i?sa[i]:void 0;a&&(r=a(e,t,n))}return Ui(n),{value:r,readOnly:e.readOnly,writeOnly:e.writeOnly,type:i}}function da(e,t){let n={...zi,...t};return Hi(),ua(e,n).value}var fa=new WeakMap;function pa(e){let t=fa.get(e);if(t)return t;let n={bundled:e,dereferenced:pi(e),resolve(e){return yi(e)}};return fa.set(e,n),n}var ma=Object.create,ha=Object.defineProperty,ga=Object.getOwnPropertyDescriptor,_a=Object.getOwnPropertyNames,va=Object.getPrototypeOf,ya=Object.prototype.hasOwnProperty,ba=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),xa=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=_a(t),a=0,o=i.length,s;a<o;a++)s=i[a],!ya.call(e,s)&&s!==n&&ha(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=ga(t,s))||r.enumerable});return e},Sa=(e,t,n)=>(n=e==null?{}:ma(va(e)),xa(t||!e||!e.__esModule||!ya.call(e,`default`)?ha(n,`default`,{value:e,enumerable:!0}):n,e));function Ca(e){let t=new Map(e?.map());return{add(e,n){t.set(e,n)},get(e){return t.get(e)},addInline(e){let n=e.source,r=e.id??e.lang;n?t.set(r,{lang:e.lang,label:e.label,generate:typeof n==`string`?()=>n:n}):this.remove(r)},remove(e){return t.delete(e)},map(){return t}}}function wa(e){return e===`\r`?`\\r`:e===`\0`?`\\000`:`\\${e}`}function Ta(e){return e.replace(/[\\\r\0]|"(?=""|$)/g,wa)}function Ea(e){return`"""${Ta(e)}"""`}function Da(e){let t=Ta(e).replace(/(?:[^\S\n]|[\x1c-\x1f])(?=\n)/g,e=>e===` `?`\\s`:`${e}\\n\\`);return!e.endsWith(`
|
|
2
2
|
`)&&/^[\s\x1c-\x1f]|[\s\x1c-\x1f]$/.test(e)?`"""\n${t}\\\n"""`:`"""\n${t}"""`}function Oa(e){return`\`${e.replace(/[\\`\r]|\$\{/g,wa)}\``}var ka={"`":'"`"',"\r":`"\\r"`,"\0":`"\\x00"`,"":`"\\uFEFF"`};function Aa(e){return`\`${e.replace(/[`\r\0\uFEFF]/g,e=>`\` + ${ka[e]} + \``)}\``}var ja={"\\":`\\\\`,'"':`\\"`,"\r":`\\r`," ":`\\t`};function Ma(e){return`"${e.replace(/[\\"\r\t\u202a-\u202e\u2066-\u2069]/g,e=>ja[e]??`\\u{${e.charCodeAt(0).toString(16)}}`)}"`}function Na(e){if(/[\r\u202a-\u202e\u2066-\u2069]/.test(e))return Ma(e);let t=`#`;for(;e.includes(`"${t}`);)t+=`#`;return`r${t}"${e}"${t}`}function Pa(e){let t=`"""`;for(;e.includes(t);)t+=`"`;return`${t}\n${e}\n${t}`}function Fa(e){return`'${e.replaceAll(`'`,`'\\''`)}'`}var Ia=ba(((e,t)=>{t.exports={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)===`[object Array]`}}}));Ia();var La=ba(((e,t)=>{var n=Ia().isArray;t.exports={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){e in t&&typeof t[e]==`boolean`||(t[e]=!1)},ensureSpacesExists:function(e){(!(`spaces`in e)||typeof e.spaces!=`number`&&typeof e.spaces!=`string`)&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){(!(`alwaysArray`in e)||typeof e.alwaysArray!=`boolean`&&!n(e.alwaysArray))&&(e.alwaysArray=!1)},ensureKeyExists:function(e,t){e+`Key`in t&&typeof t[e+`Key`]==`string`||(t[e+`Key`]=t.compact?`_`+e:e)},checkFnExists:function(e,t){return e+`Fn`in t}}}));La();var Ra=ba(((e,t)=>{var n=La(),r=Ia().isArray,i,a;function o(e){var t=n.copyOptions(e);return n.ensureFlagExists(`ignoreDeclaration`,t),n.ensureFlagExists(`ignoreInstruction`,t),n.ensureFlagExists(`ignoreAttributes`,t),n.ensureFlagExists(`ignoreText`,t),n.ensureFlagExists(`ignoreComment`,t),n.ensureFlagExists(`ignoreCdata`,t),n.ensureFlagExists(`ignoreDoctype`,t),n.ensureFlagExists(`compact`,t),n.ensureFlagExists(`indentText`,t),n.ensureFlagExists(`indentCdata`,t),n.ensureFlagExists(`indentAttributes`,t),n.ensureFlagExists(`indentInstruction`,t),n.ensureFlagExists(`fullTagEmptyElement`,t),n.ensureFlagExists(`noQuotesForNativeAttributes`,t),n.ensureSpacesExists(t),typeof t.spaces==`number`&&(t.spaces=Array(t.spaces+1).join(` `)),n.ensureKeyExists(`declaration`,t),n.ensureKeyExists(`instruction`,t),n.ensureKeyExists(`attributes`,t),n.ensureKeyExists(`text`,t),n.ensureKeyExists(`comment`,t),n.ensureKeyExists(`cdata`,t),n.ensureKeyExists(`doctype`,t),n.ensureKeyExists(`type`,t),n.ensureKeyExists(`name`,t),n.ensureKeyExists(`elements`,t),n.checkFnExists(`doctype`,t),n.checkFnExists(`instruction`,t),n.checkFnExists(`cdata`,t),n.checkFnExists(`comment`,t),n.checkFnExists(`text`,t),n.checkFnExists(`instructionName`,t),n.checkFnExists(`elementName`,t),n.checkFnExists(`attributeName`,t),n.checkFnExists(`attributeValue`,t),n.checkFnExists(`attributes`,t),n.checkFnExists(`fullTagEmptyElement`,t),t}function s(e,t,n){return(!n&&e.spaces?`
|
|
3
3
|
`:``)+Array(t+1).join(e.spaces)}function c(e,t,n){if(t.ignoreAttributes)return``;`attributesFn`in t&&(e=t.attributesFn(e,a,i));var r,o,c,l,u=[];for(r in e)e.hasOwnProperty(r)&&e[r]!==null&&e[r]!==void 0&&(l=t.noQuotesForNativeAttributes&&typeof e[r]!=`string`?``:`"`,o=``+e[r],o=o.replace(/"/g,`"`),c=`attributeNameFn`in t?t.attributeNameFn(r,o,a,i):r,u.push(t.spaces&&t.indentAttributes?s(t,n+1,!1):` `),u.push(c+`=`+l+(`attributeValueFn`in t?t.attributeValueFn(o,r,a,i):o)+l));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&u.push(s(t,n,!1)),u.join(``)}function l(e,t,n){return i=e,a=`xml`,t.ignoreDeclaration?``:`<?xml`+c(e[t.attributesKey],t,n)+`?>`}function u(e,t,n){if(t.ignoreInstruction)return``;for(var r in e)if(e.hasOwnProperty(r))break;var o=`instructionNameFn`in t?t.instructionNameFn(r,e[r],a,i):r;if(typeof e[r]==`object`)return i=e,a=o,`<?`+o+c(e[r][t.attributesKey],t,n)+`?>`;var s=e[r]?e[r]:``;return`instructionFn`in t&&(s=t.instructionFn(s,r,a,i)),`<?`+o+(s?` `+s:``)+`?>`}function d(e,t){return t.ignoreComment?``:`<!--`+(`commentFn`in t?t.commentFn(e,a,i):e)+`-->`}function f(e,t){return t.ignoreCdata?``:`<![CDATA[`+(`cdataFn`in t?t.cdataFn(e,a,i):e.replace(`]]>`,`]]]]><![CDATA[>`))+`]]>`}function p(e,t){return t.ignoreDoctype?``:`<!DOCTYPE `+(`doctypeFn`in t?t.doctypeFn(e,a,i):e)+`>`}function m(e,t){return t.ignoreText?``:(e=``+e,e=e.replace(/&/g,`&`),e=e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),`textFn`in t?t.textFn(e,a,i):e)}function h(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case`text`:if(t.indentText)return!0;break;case`cdata`:if(t.indentCdata)return!0;break;case`instruction`:if(t.indentInstruction)return!0;break;case`doctype`:case`comment`:case`element`:return!0;default:return!0}return!1}function g(e,t,n){i=e,a=e.name;var r=[],o=`elementNameFn`in t?t.elementNameFn(e.name,e):e.name;r.push(`<`+o),e[t.attributesKey]&&r.push(c(e[t.attributesKey],t,n));var s=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey][`xml:space`]===`preserve`;return s||=`fullTagEmptyElementFn`in t?t.fullTagEmptyElementFn(e.name,e):t.fullTagEmptyElement,s?(r.push(`>`),e[t.elementsKey]&&e[t.elementsKey].length&&(r.push(_(e[t.elementsKey],t,n+1)),i=e,a=e.name),r.push(t.spaces&&h(e,t)?`
|
|
4
4
|
`+Array(n+1).join(t.spaces):``),r.push(`</`+o+`>`)):r.push(`/>`),r.join(``)}function _(e,t,n,r){return e.reduce(function(e,i){var a=s(t,n,r&&!e);switch(i.type){case`element`:return e+a+g(i,t,n);case`comment`:return e+a+d(i[t.commentKey],t);case`doctype`:return e+a+p(i[t.doctypeKey],t);case`cdata`:return e+(t.indentCdata?a:``)+f(i[t.cdataKey],t);case`text`:return e+(t.indentText?a:``)+m(i[t.textKey],t);case`instruction`:var o={};return o[i[t.nameKey]]=i[t.attributesKey]?i:i[t.instructionKey],e+(t.indentInstruction?a:``)+u(o,t,n)}},``)}function v(e,t,n){for(var r in e)if(e.hasOwnProperty(r))switch(r){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}function y(e,t,n,r,o){i=e,a=t;var l=`elementNameFn`in n?n.elementNameFn(t,e):t;if(e==null||e===``)return`fullTagEmptyElementFn`in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?`<`+l+`></`+l+`>`:`<`+l+`/>`;var u=[];if(t){if(u.push(`<`+l),typeof e!=`object`)return u.push(`>`+m(e,n)+`</`+l+`>`),u.join(``);e[n.attributesKey]&&u.push(c(e[n.attributesKey],n,r));var d=v(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey][`xml:space`]===`preserve`;if(d||=`fullTagEmptyElementFn`in n?n.fullTagEmptyElementFn(t,e):n.fullTagEmptyElement,d)u.push(`>`);else return u.push(`/>`),u.join(``)}return u.push(b(e,n,r+1,!1)),i=e,a=t,t&&u.push((o?s(n,r,!1):``)+`</`+l+`>`),u.join(``)}function b(e,t,n,i){var a,o,c,h=[];for(o in e)if(e.hasOwnProperty(o))for(c=r(e[o])?e[o]:[e[o]],a=0;a<c.length;++a){switch(o){case t.declarationKey:h.push(l(c[a],t,n));break;case t.instructionKey:h.push((t.indentInstruction?s(t,n,i):``)+u(c[a],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:h.push((t.indentText?s(t,n,i):``)+m(c[a],t));break;case t.cdataKey:h.push((t.indentCdata?s(t,n,i):``)+f(c[a],t));break;case t.doctypeKey:h.push(s(t,n,i)+p(c[a],t));break;case t.commentKey:h.push(s(t,n,i)+d(c[a],t));break;default:h.push(s(t,n,i)+y(c[a],o,t,n,v(c[a],t)))}i&&=!h.length}return h.join(``)}t.exports=function(e,t){t=o(t);var n=[];return i=e,a=`_root_`,t.compact?n.push(b(e,t,0,!0)):(e[t.declarationKey]&&n.push(l(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(_(e[t.elementsKey],t,0,!n.length))),n.join(``)}}));Ra();var za=Sa(Ra(),1);function Ba(e,t=`application/json`){if(typeof e==`string`)return e;if(t===`application/x-ndjson`)return Array.isArray(e)?e.map(e=>JSON.stringify(e)).join(`
|
|
@@ -102,7 +102,7 @@ ${Ua(i.join(`
|
|
|
102
102
|
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?Yp:Jp))),s(),o}}function Jp(e,t,n){return t===0?e:Yp(e,t,n)}function Yp(e,t,n){return(n?``:` `)+e}var Xp=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];tm.attention=nm,tm.peek=rm;function Zp(){return{canContainEols:[`delete`],enter:{strikethrough:$p},exit:{strikethrough:em}}}function Qp(){return{handlers:{delete:tm},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:Xp}]}}function $p(e){this.enter({type:`delete`,children:[],position:void 0},e)}function em(e){this.exit(e)}function tm(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function nm(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function rm(){return`~`}function im(e){return e.length}function am(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||im,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=om(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=sm(r[d]);else{let e=sm(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u],r=n.fillRows===!1?Math.max(1,o[u===1?0:u].length):l;d=-1;let i=[];for(;++d<r;){let o=e[d]||``,s=``,l=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];if(n===114)s=` `.repeat(e);else if(n===99){let t=e/2;e%2?(s=` `.repeat(t+.5),l=` `.repeat(t-.5)):(s=` `.repeat(t),l=s)}else l=` `.repeat(e)}n.delimiterStart!==!1&&!d&&i.push(`|`),n.padding===!1||n.alignDelimiters===!1&&o===``||n.delimiterStart===!1&&!d||i.push(` `),n.alignDelimiters!==!1&&i.push(s),i.push(o),n.alignDelimiters!==!1&&i.push(l),n.padding!==!1&&i.push(` `),(n.delimiterEnd!==!1||d!==r-1)&&i.push(`|`)}m.push(n.delimiterEnd===!1?i.join(``).replace(/ +$/,``):i.join(``))}return m.join(`
|
|
103
103
|
`)}function om(e){return e==null?``:String(e)}function sm(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function cm(){return{enter:{table:lm,tableData:pm,tableHeader:pm,tableRow:dm},exit:{codeText:mm,table:um,tableData:fm,tableHeader:fm,tableRow:fm}}}function lm(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[],position:void 0},e),this.data.inTable=!0}function um(e){this.exit(e),this.data.inTable=void 0}function dm(e){this.enter({type:`tableRow`,children:[],position:void 0},e)}function fm(e){this.exit(e)}function pm(e){this.enter({type:`tableCell`,children:[],position:void 0},e)}function mm(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,hm));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function hm(e,t){return t===`|`?t:e}function gm(e){let{tableCellPadding:t,tablePipeAlign:n,stringLength:r}=e||{},i=t?` `:`|`;return{handlers:{inlineCode:d,table:a,tableCell:s,tableRow:o},join:[_m],unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
104
104
|
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}]};function a(e,t,n,r){let i=l(e,n,r),a=i[0];if(a){let t=e.align?e.align.length:0,n=-1;if(!t)for(;++n<i.length;)i[n].length>t&&(t=i[n].length);for(;a.length<t;)a.push(``)}return c(i,e.align)}function o(e,t,n,r){let i=c([u(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
105
|
-
`))}function s(e,t,n,r){let a=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:i,after:i});return o(),a(),s}function c(e,i){return am(e,{align:i,alignDelimiters:n,fillRows:!1,padding:t,stringLength:r})}function l(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=u(r[i],t,n);return o(),a}function u(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=s(r[i],e,t,n);return o(),a}function d(e,t,n){let r=Ju.inlineCode(e,t,n);if(!n.stack.includes(`tableCell`))return r;let i=[],a=0,o=r.indexOf(`|`);for(;o!==-1;){let e=o;for(;e>a&&r.charCodeAt(e-1)===92;)e--;i.push(r.slice(a,o)),(o-e)%2==0&&i.push(`\\`),a=o,o=r.indexOf(`|`,o+1)}return i.push(r.slice(a)),i.join(``)}}function _m(e,t,n,r){if(e.type===`table`&&n.type===`listItem`&&n.spread===!1&&(t.type===`definition`||t.type===`heading`&&vm(t,r)||t.type===`paragraph`||t.type===`table`))return 1}function vm(e,t){let n=!1;return mu(e,function(e){if(e.type===`break`||`value`in e&&/\r?\n|\r/.test(e.value))return n=!0,!1}),!!((!e.depth||e.depth<3)&&po(e)&&(t.options.setext||n))}function ym(){return{exit:{taskListCheckValueChecked:xm,taskListCheckValueUnchecked:xm,paragraph:Sm}}}function bm(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:Cm}}}function xm(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Sm(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Cm(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=Ju.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function wm(){return[Sp(),Kp(),Zp(),cm(),ym()]}function Tm(e){return{extensions:[Cp(),qp(e),Qp(),gm(e),bm()]}}var Em={tokenize:Bm,partial:!0},Dm={tokenize:Vm,partial:!0},Om={tokenize:Hm,partial:!0},km={tokenize:Um,partial:!0},Am={tokenize:Wm,partial:!0},jm={name:`wwwAutolink`,tokenize:Rm,previous:Gm},Mm={name:`protocolAutolink`,tokenize:zm,previous:Km},Nm={name:`emailAutolink`,tokenize:Lm,previous:qm},Pm={};function Fm(){return{text:Pm}}for(var Im=48;Im<123;)Pm[Im]=Nm,Im++,Im===58?Im=65:Im===91&&(Im=97);Pm[43]=Nm,Pm[45]=Nm,Pm[46]=Nm,Pm[95]=Nm,Pm[72]=[Nm,Mm],Pm[104]=[Nm,Mm],Pm[87]=[Nm,jm],Pm[119]=[Nm,jm];function Lm(e,t,n){let r=this,i,a;return o;function o(t){return!Jm(t)||!qm.call(r,r.previous)||Ym(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return Jm(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(Am,u,l)(t):t===45||t===95||Oo(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&Do(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function Rm(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!Gm.call(r,r.previous)||Ym(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(Em,e.attempt(Dm,e.attempt(Om,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function zm(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Km.call(r,r.previous)&&!Ym(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(Do(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||Ao(t)||Po(t)||Lo(t)||Io(t)?n(t):e.attempt(Dm,e.attempt(Om,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function Bm(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function Vm(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(km,c,s)(t):t===null||Po(t)||Lo(t)||t!==45&&Io(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function Hm(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(km,t,a)(o):o===null||Po(o)||Lo(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function Um(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||Po(o)||Lo(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||Po(e)||Lo(e)?t(e):r(e)}function a(e){return Do(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):Do(t)?(e.consume(t),o):n(t)}}function Wm(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return Oo(e)?n(e):t(e)}}function Gm(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Po(e)}function Km(e){return!Do(e)}function qm(e){return!(e===47||Jm(e))}function Jm(e){return e===43||e===45||e===46||e===95||Oo(e)}function Ym(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var Xm={tokenize:ih,partial:!0};function Zm(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:th,continuation:{tokenize:nh},exit:rh}},text:{91:{name:`gfmFootnoteCall`,tokenize:eh},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Qm,resolveTo:$m}}}}function Qm(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=Eo(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function $m(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function eh(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||Po(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(Eo(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return Po(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function th(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||Po(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=Eo(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return Po(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),Bo(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function nh(e,t,n){return e.check(is,t,e.attempt(Xm,t,n))}function rh(e){e.exit(`gfmFootnoteDefinition`)}function ih(e,t,n){let r=this;return Bo(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function ah(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&yo(o,o.length,0,Zo(s,e.slice(r+1,n),t)),yo(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),yo(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Xo(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Xo(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var oh=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){sh(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function sh(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function ch(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function lh(){return{flow:{null:{name:`table`,tokenize:uh,resolveAll:dh}}}}function uh(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):X(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):Fo(t)?Bo(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||Po(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,Fo(t)?Bo(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return Fo(t)?Bo(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||X(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return Fo(t)?Bo(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||X(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||X(n)?(e.exit(`tableRow`),t(n)):Fo(n)?Bo(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Po(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function dh(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new oh;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(ph(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=fh(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=fh(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=fh(f,t,o,i,n,d)):(o[0]=o[1],d=fh(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&ph(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=ch(t.events,n))}return e}function fh(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},mh(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=mh(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=mh(t.events,n[2]),a=mh(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},mh(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function ph(e,t,n,r,i){let a=[],o=mh(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function mh(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var hh={name:`tasklistCheck`,tokenize:_h};function gh(){return{text:{91:hh}}}function _h(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return Po(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return X(r)?t(r):Fo(r)?e.check({tokenize:vh},t,n)(r):n(r)}}function vh(e,t,n){return Bo(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function yh(e){return So([Fm(),Zm(),ah(e),lh(),gh()])}var bh={};function xh(e){let t=this,n=e||bh,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(yh(n)),a.push(wm()),o.push(Tm(n))}var Sh=`ActiveDescendant Atomic AutoComplete Busy Checked ColCount ColIndex ColSpan Controls Current DescribedBy Details Disabled DropEffect ErrorMessage Expanded FlowTo Grabbed HasPopup Hidden Invalid KeyShortcuts Label LabelledBy Level Live Modal MultiLine MultiSelectable Orientation Owns Placeholder PosInSet Pressed ReadOnly Relevant Required RoleDescription RowCount RowIndex RowSpan Selected SetSize Sort ValueMax ValueMin ValueNow ValueText`,Ch=`role className content crossOrigin download height href hrefLang id lang max media method min name Abort AfterPrint BeforePrint Cancel CanPlay CanPlayThrough Change Click Close Copy CueChange Cut DblClick Drag DragEnd DragEnter DragExit DragLeave DragOver DragStart Drop DurationChange Emptied Ended Error Focus HashChange Input Invalid KeyDown KeyPress KeyUp Load LoadedData LoadedMetadata LoadStart Message MouseDown MouseEnter MouseLeave MouseMove MouseOut MouseOver MouseUp Offline Online PageHide PageShow Paste Pause Play Playing PopState Progress RateChange Reset Resize Scroll Seeked Seeking Select Stalled Storage Submit Suspend TimeUpdate Toggle Unload VolumeChange Waiting ping referrerPolicy rel style tabIndex target title type width color event rev version property xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xmlns:xlink xmlns xml:base xml:lang xml:space`,wh={names:Jh(`abbr accept accept-charset accessKey action allow allowFullScreen allowPaymentRequest allowUserMedia alpha alt as async autoCapitalize autoComplete autoFocus autoPlay blocking capture charSet checked cite closedBy colorSpace cols colSpan command commandFor contentEditable controls controlsList coords data dateTime decoding default defer dir dirName disabled draggable encType enterKeyHint fetchPriority form formAction formEncType formMethod formNoValidate formTarget headers hidden high htmlFor http-equiv imageSizes imageSrcSet inert inputMode integrity is isMap itemID itemProp itemRef itemScope itemType kind label language list loading loop low manifest maxLength minLength multiple muted nonce noModule noValidate AuxClick BeforeMatch BeforeToggle BeforeUnload Blur ContextLost ContextMenu ContextRestored FormData LanguageChange LoadEnd MessageError RejectionHandled ScrollEnd SecurityPolicyViolation SlotChange UnhandledRejection Wheel open optimum pattern placeholder playsInline popover popoverTarget popoverTargetAction poster preload readOnly required reversed rows rowSpan sandbox scope scoped seamless selected shadowRootClonable shadowRootCustomElementRegistry shadowRootDelegatesFocus shadowRootMode shadowRootSerializable shape size sizes slot span spellCheck src srcDoc srcLang srcSet start step translate typeMustMatch useMap value wrap writingSuggestions align aLink archive axis background bgColor border borderColor bottomMargin cellPadding cellSpacing char charOff classID clear code codeBase codeType compact declare face frame frameBorder hSpace leftMargin link longDesc lowSrc marginHeight marginWidth noResize noHref noShade noWrap object profile prompt rightMargin rules scheme scrolling standby summary text topMargin valueType vAlign vLink vSpace allowTransparency autoCorrect autoSave credentialless disablePictureInPicture disableRemotePlayback exportParts part prefix results security unselectable`).set(`for`,`htmlFor`),commaSeparated:[`accept`,`coords`,`exportParts`]},Th={names:Jh(`about accent-height accumulate additive alignment-baseline alphabetic amplitude arabic-form ascent attributeName attributeType azimuth bandwidth baseline-shift baseFrequency baseProfile bbox begin bias by calcMode cap-height clip clip-path clipPathUnits clip-rule color-interpolation color-interpolation-filters color-profile color-rendering contentScriptType contentStyleType cursor cx cy d datatype defaultAction descent diffuseConstant direction display dur divisor dominant-baseline dx dy edgeMode editable elevation enable-background end exponent externalResourcesRequired fill fill-opacity fill-rule filter filterRes filterUnits flood-color flood-opacity focusable focusHighlight font-family font-size font-size-adjust font-stretch font-style font-variant font-weight format fr from fx fy g1 g2 glyph-name glyph-orientation-horizontal glyph-orientation-vertical glyphRef gradientTransform gradientUnits handler hanging hatchContentUnits hatchUnits horiz-adv-x horiz-origin-x horiz-origin-y ideographic image-rendering initialVisibility in in2 intercept k k1 k2 k3 k4 kernelMatrix kernelUnitLength keyPoints keySplines keyTimes kerning lengthAdjust letter-spacing lighting-color limitingConeAngle local marker-end marker-mid marker-start markerHeight markerUnits markerWidth mask maskContentUnits mask-type maskUnits mathematical mediaCharacterEncoding mediaContentEncodings mediaSize mediaTime mode nav-down nav-down-left nav-down-right nav-left nav-next nav-prev nav-right nav-up nav-up-left nav-up-right numOctaves observer offset Activate Begin End FocusIn FocusOut MouseWheel Repeat Show Zoom opacity operator order orient orientation origin overflow overlay overline-position overline-thickness paint-order panose-1 path pathLength patternContentUnits patternTransform patternUnits phase pitch playbackOrder pointer-events points pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits propagate r radius refX refY rendering-intent repeatCount repeatDur requiredExtensions requiredFeatures requiredFonts requiredFormats resource restart result rotate rx ry scale seed shape-rendering side slope snapshotTime specularConstant specularExponent spreadMethod spacing startOffset stdDeviation stemh stemv stitchTiles stop-color stop-opacity strikethrough-position strikethrough-thickness string stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width surfaceScale syncBehavior syncBehaviorDefault syncMaster syncTolerance syncToleranceDefault systemLanguage tableValues targetX targetY text-anchor text-decoration text-rendering textLength timelineBegin transformBehavior typeof to transform transform-origin u1 u2 underline-position underline-thickness unicode unicode-bidi unicode-range units-per-em values v-alphabetic v-mathematical vector-effect v-hanging v-ideographic vert-adv-y vert-origin-x vert-origin-y viewBox viewTarget visibility widths word-spacing writing-mode x x1 x2 xChannelSelector x-height y y1 y2 yChannelSelector z zoomAndPan`),commaSeparated:[`g1`,`g2`,`glyphName`]},Eh=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Dh=/["&'<>]/g,Oh={'"':`"`,"&":`&`,"'":`'`,"<":`<`,">":`>`},kh=/^[$_\p{ID_Start}][$_\p{Join_Control}\p{ID_Continue}]*$/u,Ah="Cannot parse `style` attribute",jh="Cannot handle MDX estrees without `evaluator`",Mh=1,Nh=2,Ph=4,Fh=8,Ih=Uint8Array.from({length:128},(e,t)=>{let n=String.fromCharCode(t);return(/[-#/*\\\w]/.test(n)?Mh:0)|(/[-\w]/.test(n)?Nh:0)|(/[0-9a-z_-]/.test(n)?Ph:0)|(/[;}"'(]/.test(n)?Fh:0)});function Lh(e,{components:t={},evaluator:n}={}){let r=Rh(e,{components:t,evaluator:n,styles:new Map,styleAttributes:new Map},wh,void 0);return r&&typeof r!=`string`?r:(0,Y.jsx)(Y.Fragment,{children:r||void 0})}function Rh(e,t,n,r){if(e.type===`element`)return zh(e,t,n,r);if(e.type===`text`)return e.value;if(e.type===`root`)return Wh(Y.Fragment,{},Uh(e,t,n),r);if(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)return Wh(e.name===null?Y.Fragment:Gh(e.name,t),Kh(e.attributes,t.evaluator),Uh(e,t,n===wh&&e.name===`svg`?Th:n),r);if(e.type===`mdxFlowExpression`||e.type===`mdxTextExpression`)return qh(e.data?.estree,t.evaluator);if(e.type===`mdxjsEsm`){if(!e.data?.estree||!t.evaluator)throw Error(jh);return t.evaluator.evaluateProgram(e.data.estree)}}function zh(e,t,n,r){let i=n===wh&&e.tagName.toLowerCase()===`svg`?Th:n,a={},o;for(let n in e.properties){let r=e.properties[n];if(r==null||Number.isNaN(r)||n===`children`||!Object.hasOwn(e.properties,n))continue;let s=Yh(i,n);if(Array.isArray(r)&&(r=i.commaSeparated.includes(s)?(r.join(`, `)+(r.at(-1)===``?`, `:``)).trim():r.join(` `).trim()),s===`style`&&typeof r==`object`)a.style=r;else if(s===`style`){let e=String(r),n=t.styles.get(e);n||t.styles.set(e,n=Qh(e)),a.style=n}else s===`align`&&typeof r==`string`&&(e.tagName===`td`||e.tagName===`th`)?o=r:a[s]=r}o&&(a.style={...a.style,textAlign:o});let s=Object.hasOwn(t.components,e.tagName)?t.components[e.tagName]:e.tagName,c=e.children[0];if(typeof s==`string`&&c?.type===`element`&&c.tagName===`span`&&!t.components.span&&!Eh.has(e.tagName)){let n=Bh(e.children,t);if(n!==void 0)return a.dangerouslySetInnerHTML={__html:n},Wh(s,a,[],r)}return Wh(s,a,Uh(e,t,i),r)}function Bh(e,t){let n=``;for(let r of e){if(r.type===`text`){n+=Hh(r.value);continue}if(r.type!==`element`||r.tagName!==`span`)return;n+=`<span`;for(let e in r.properties){let i=r.properties[e];if(i==null||Number.isNaN(i)||e===`children`)continue;if(e===`style`&&typeof i==`string`){n+=Vh(i,t);continue}let a=e===`className`?`class`:e;if(a!==`class`&&!a.startsWith(`data-`)||typeof i!=`string`&&typeof i!=`number`&&!Array.isArray(i))return;n+=` ${a}="${Hh(Array.isArray(i)?i.join(` `).trim():String(i))}"`}let e=Bh(r.children,t);if(e===void 0)return;n+=`>${e}</span>`}return n}function Vh(e,{styleAttributes:t}){let n=t.get(e);if(n!==void 0)return n;n=``;for(let[t,r]of Object.entries(Qh(e))){let e=t.startsWith(`--`)?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace(/^ms-/,`-ms-`);n+=`${n?`;`:` style="`}${Hh(e)}:${Hh(r)}`}return n&&(n+=`"`),t.set(e,n),n}function Hh(e){return e.replace(Dh,e=>Oh[e])}function Uh(e,t,n){let r=[],i=e.type===`element`&&Eh.has(e.tagName),a;for(let o of e.children){let e;if(o.type===`text`)e=o.value;else{let r,i=o.type===`element`?o.tagName:o.type===`mdxJsxFlowElement`||o.type===`mdxJsxTextElement`?o.name:void 0;if(i){a??=new Map;let e=a.get(i)??0;r=`${i}-${e}`,a.set(i,e+1)}if(e=Rh(o,t,n,r),e===void 0)continue}i&&typeof e==`string`&&Zh(e)||r.push(e)}return r}function Wh(e,t,n,r){n.length>1?t.children=n:n[0]&&(t.children=n[0]);let i=n.length>1||Array.isArray(t.children)?Y.jsxs:Y.jsx;return r?i(e,t,r):i(e,t)}function Gh(e,{components:t,evaluator:n}){let r;if(e.includes(`.`))for(let t of e.split(`.`)){let e=kh.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t},n=e.type===`Literal`;r=r?{type:`MemberExpression`,object:r,property:e,computed:n,optional:!1}:e}else kh.test(e)&&!/^[a-z]/.test(e)&&(r={type:`Identifier`,name:e});if(!r)return Object.hasOwn(t,e)?t[e]:e;if(!n)throw Error(jh);return n.evaluateExpression(r)}function Kh(e,t){let n={};for(let r of e)r.type===`mdxJsxExpressionAttribute`?Object.assign(n,qh(r.data?.estree,t,!0)):r.value&&typeof r.value==`object`?n[r.name]=qh(r.value.data?.estree,t):n[r.name]=r.value===null||r.value;return n}function qh(e,t,n=!1){if(!e||!t)throw Error(jh);let{expression:r}=e.body[0];return n&&(r=r.properties[0].argument),t.evaluateExpression(r)}function Jh(e){let t=new Map([[`class`,`className`]]);for(let e of Sh.split(` `)){let n=`aria-${e.toLowerCase()}`;t.set(n,n).set(`aria${e}`,n).set(`aria${e.toLowerCase()}`,n)}for(let n of`${Ch} ${e}`.split(` `)){n.charCodeAt(0)<97&&(n=`on${n}`);let e=n.replace(/[-:](.)/g,(e,t)=>t.toUpperCase());t.set(n,e).set(e,e).set(e.toLowerCase(),e)}return t}function Yh({names:e},t){return t.startsWith(`data-`)?t:e.get(t)??e.get(t.toLowerCase())??Xh(t)}function Xh(e){if(e.charCodeAt(4)===45||/-[a-z]/.test(e)||!/^data[-\w.:]+$/i.test(e))return e;let t=e.slice(4).replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);return t.charCodeAt(0)===45?`data${t}`:`data-${t}`}function Zh(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n!==32&&n!==9&&n!==10&&n!==12&&n!==13)return!1}return!0}function Qh(e){let t={},n=tg(e,og(e,0));for(;;){let r=n,i=!0,a=e.charCodeAt(n);for(;cg(a,Mh);)cg(a,Nh)||(i=!1),a=e.charCodeAt(++n);if(n===r)break;if(a===91){let t=n+1;for(;cg(e.charCodeAt(t),Ph);)t++;t>n+1&&e.charCodeAt(t)===93&&(n=t+1,i=!1)}let o=i?e.slice(r,n):rg(e.slice(r,n));if(n=ng(e,og(e,n)),e.charCodeAt(n)!==58)throw Error(Ah);let s=og(e,n+1);n=$h(e,s);let c=rg(e.slice(s,n)).trim();for(c&&(t[i&&o.startsWith(`--`)?o:ig(o)]=c);e.charCodeAt(n)===59||sg(e.charCodeAt(n));)n++;n=tg(e,n)}return t}function $h(e,t){for(;t<e.length;){let n=e.charCodeAt(t);if(!cg(n,Fh))t++;else if(n===59||n===125)break;else if(n===40){let n=e.indexOf(`)`,t+1);t=n===-1?t+1:n+1}else t=eg(e,t,n)}return t}function eg(e,t,n){let r=t+1;for(let i=t+1;i<e.length;i++){let t=e.charCodeAt(i);if(t===n)return i+1;if(t===92&&e.charCodeAt(i+1)===n)r=++i+1;else if(t===10||t===13||t===8232||t===8233)break}return r}function tg(e,t){for(let n=ng(e,t);n!==t;n=ng(e,t))t=n;return t}function ng(e,t){if(e.charCodeAt(t)!==47||e.charCodeAt(t+1)!==42)return t;let n=e.indexOf(`*/`,t+2);if(n===-1)throw Error(Ah);return og(e,n+2)}function rg(e){let t=``,n=0;for(let r=e.indexOf(`/*`);r!==-1;r=e.indexOf(`/*`,n)){let i=e.indexOf(`*/`,r+2);if(i===-1)break;t+=e.slice(n,r),n=i+2}return n===0?e:t+e.slice(n)}function ig(e){if(!e.includes(`-`)||ag(e))return e;let t=e.toLowerCase();t.startsWith(`-ms-`)&&(t=t.slice(1));let n=``,r=0;for(let e=t.indexOf(`-`);e!==-1;e=t.indexOf(`-`,e+1)){let i=t.charCodeAt(e+1);i>=97&&i<=122&&(n+=t.slice(r,e)+String.fromCharCode(i-32),r=e+2,e++)}return n+t.slice(r)}function ag(e){if(e.length<3||!e.startsWith(`--`))return!1;for(let t=2;t<e.length;t++)if(!cg(e.charCodeAt(t),Nh))return!1;return!0}function og(e,t){for(;sg(e.charCodeAt(t));)t++;return t}function sg(e){return e===32||e>=9&&e<=13||e>127&&String.fromCharCode(e).trim()===``}function cg(e,t){return e<128&&(Ih[e]&t)!==0}var lg=Qt(),ug=()=>()=>{},dg=()=>!0,fg=()=>!1;function pg(){return(0,lg.useSyncExternalStore)(ug,dg,fg)}function mg(){let[e,t]=J.useState(!1);return J.useEffect(()=>{t(!0)},[]),e}var hg=b(18)?pg:mg;function gg(){return!hg()}var _g=J.createContext(void 0),vg={disableStyleElements:!1};function yg(){return J.useContext(_g)??vg}function bg(e){let{script:t}=e,{nonce:n}=yg();return gg()?(0,Y.jsx)(`script`,{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}function xg(e,t){let n=(t??qe(e).getComputedStyle(e)).transform,r=0,i=0,a=1;if(n&&n!==`none`){let e=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(r=t[4],i=t[5],a=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(r=t[12],i=t[13],a=t[0])}}return{x:r,y:i,scale:a}}var Sg=`--active-tab-left`,Cg=`--active-tab-right`,wg=`--active-tab-top`,Tg=`--active-tab-bottom`,Eg=`--active-tab-width`,Dg=`--active-tab-height`,Og,kg={...St,activeTabPosition:()=>null,activeTabSize:()=>null},Ag=2,jg=J.forwardRef(function(e,t){let{className:n,render:r,renderBeforeHydration:i=!1,style:a,...o}=e,{getTabElementBySelectedValue:s,orientation:c,tabActivationDirection:l,value:u}=mt(),{tabsListElement:d,registerIndicatorUpdateListener:f}=Tt(),p=E();J.useEffect(()=>f(p),[f,p]);let m=0,h=0,g=0,_=0,v=0,y=0,b=!1;if(u!=null&&d!=null){let e=s(u);if(e!=null){b=!0;let{width:t,height:n}=Qr(e),{width:r,height:i}=Qr(d),a=e.getBoundingClientRect(),o=d.getBoundingClientRect(),s=r>0?o.width/r:1,c=i>0?o.height/i:1,l=Mg(e,d);m=l.left,g=l.top;let u=(a.left-o.left)/s+d.scrollLeft-d.clientLeft,f=(a.top-o.top)/c+d.scrollTop-d.clientTop,p=Pg(e);Math.abs(u-p.x-m)<=Ag&&Math.abs(f-p.y-g)<=Ag&&(m=u,g=f),v=t,y=n,h=d.scrollWidth-m-v,_=d.scrollHeight-g-y}}let x=b?{left:m,right:h,top:g,bottom:_}:null,C=b?{width:v,height:y}:null,w=b?{[Sg]:`${m}px`,[Cg]:`${h}px`,[wg]:`${g}px`,[Tg]:`${_}px`,[Eg]:`${v}px`,[Dg]:`${y}px`}:void 0,T=S(`span`,e,{state:{orientation:c,activeTabPosition:x,activeTabSize:C,tabActivationDirection:l},ref:t,props:[{role:`presentation`,style:w,hidden:!(b&&v>0&&y>0)},o,{suppressHydrationWarning:!0}],stateAttributesMapping:kg});return u==null?null:(0,Y.jsxs)(J.Fragment,{children:[T,i&&(Og||=(0,Y.jsx)(bg,{script:``}))]})});function Mg(e,t){let n=Ng(e),r=Ng(t),i=n.left-r.left-t.clientLeft,a=n.top-r.top-t.clientTop,o=B(e);for(;Xe(o)&&o!==t&&!N(o);)i-=o.scrollLeft,a-=o.scrollTop,o=B(o);return{left:i,top:a}}function Ng(e){let t=0,n=0,r=e;for(;r!=null;){t+=r.offsetLeft,n+=r.offsetTop;let e=r.offsetParent;e!=null&&(t+=e.clientLeft,n+=e.clientTop),r=e}return{left:t,top:n}}function Pg(e){let t=qe(e).getComputedStyle(e),{x:n,y:r}=xg(e,t),i=n,a=r,{translate:o}=t;if(o&&o!==`none`){let t=o.split(` `);i+=Fg(t[0],e.offsetWidth),a+=Fg(t[1],e.offsetHeight)}return{x:i,y:a}}function Fg(e,t){if(!e)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith(`%`)?n/100*t:n:0}async function Ig(e,t){let n=e.getBundledThemes(),r=e.getLoadedThemes(),i=t.filter(e=>typeof e==`string`?e in n&&!r.includes(e):e.name===void 0||!r.includes(e.name));i.length>0&&await e.loadTheme(...i)}async function Lg(e,t){let n=e.getBundledLanguages(),r=e.getLoadedLanguages(),i=t.filter(e=>typeof e==`string`?e in n&&!r.includes(e):!r.includes(e.name));i.length>0&&await e.loadLanguage(...i)}function Rg(e){return`theme`in e?[e.theme]:Object.values(e.themes).filter(e=>e!==void 0)}function zg(e){let t;return{init(n){let r=e.init(n);return r instanceof Promise&&r.catch(()=>{t===r&&(t=void 0)}),t=r},getOrInit(){return t??this.init()}}}function Bg(e,t){let{fallbackLanguage:n=`text`,...r}=t,i=typeof e==`function`?void 0:e,a=new Set;function o({lang:e,structure:t=r.structure,meta:i}){return{...r,lang:a.has(e)?n:e,structure:t,meta:r.meta?{...r.meta,...i}:i}}function s(){if(!i)throw Error(`[Fumadocs] load the language before highlighting`);return i}let c=new Map;async function l(t){let[o,{isSpecialLang:s}]=await Promise.all([typeof e==`function`?e():e,ct(()=>import(`./core-BSTqZqMg.js`),[])]);await Promise.all([Ig(o,Rg(r)),Lg(o,[t,n])]),!s(t)&&!o.getLoadedLanguages().includes(t)&&a.add(t),i=o}return{async loadLanguage(...e){let t=[];for(let n of e){let e=c.get(n);e||(c.set(n,e=l(n)),e.catch(()=>c.delete(n))),t.push(e)}await Promise.all(t)},codeToHast(e,t){return s().codeToHast(e,o(t))},override(n){return Bg(i??e,{...t,...n})}}}var Vg=(0,J.createContext)(void 0);function Hg(e){let t=(0,J.use)(Vg);return(0,Y.jsx)(Et,{...e,...t,className:K(`my-0`,e.className,t?.className),children:(0,Y.jsx)(Dt,{children:e.children})})}function Ug({highlighter:e}){return function(t){return(0,Y.jsx)(Wg,{highlighter:e,components:{pre:Hg},...t})}}function Wg({highlighter:e,lang:t,code:n,codeblock:r,wrapInSuspense:i=!0,components:a}){let o=(0,Y.jsx)(Kg,{highlighter:e,lang:t,code:n,components:a});return i&&e.loadLanguage&&(o=(0,Y.jsx)(J.Suspense,{fallback:(0,Y.jsx)(qg,{code:n,components:a}),children:o})),(0,Y.jsx)(Vg,{value:r,children:o})}var Gg=new WeakMap;function Kg({highlighter:e,lang:t,code:n,components:r}){if(e.loadLanguage){let n=Gg.get(e);n||Gg.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=e.loadLanguage(t)),(0,J.use)(r)}return Lh(e.codeToHast(n,{lang:t}),{components:r})}function qg({code:e,components:t={}}){let{pre:n=`pre`,code:r=`code`}=t;return(0,Y.jsx)(n,{children:(0,Y.jsx)(r,{children:e.split(`
|
|
105
|
+
`))}function s(e,t,n,r){let a=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:i,after:i});return o(),a(),s}function c(e,i){return am(e,{align:i,alignDelimiters:n,fillRows:!1,padding:t,stringLength:r})}function l(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=u(r[i],t,n);return o(),a}function u(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=s(r[i],e,t,n);return o(),a}function d(e,t,n){let r=Ju.inlineCode(e,t,n);if(!n.stack.includes(`tableCell`))return r;let i=[],a=0,o=r.indexOf(`|`);for(;o!==-1;){let e=o;for(;e>a&&r.charCodeAt(e-1)===92;)e--;i.push(r.slice(a,o)),(o-e)%2==0&&i.push(`\\`),a=o,o=r.indexOf(`|`,o+1)}return i.push(r.slice(a)),i.join(``)}}function _m(e,t,n,r){if(e.type===`table`&&n.type===`listItem`&&n.spread===!1&&(t.type===`definition`||t.type===`heading`&&vm(t,r)||t.type===`paragraph`||t.type===`table`))return 1}function vm(e,t){let n=!1;return mu(e,function(e){if(e.type===`break`||`value`in e&&/\r?\n|\r/.test(e.value))return n=!0,!1}),!!((!e.depth||e.depth<3)&&po(e)&&(t.options.setext||n))}function ym(){return{exit:{taskListCheckValueChecked:xm,taskListCheckValueUnchecked:xm,paragraph:Sm}}}function bm(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:Cm}}}function xm(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Sm(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Cm(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=Ju.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function wm(){return[Sp(),Kp(),Zp(),cm(),ym()]}function Tm(e){return{extensions:[Cp(),qp(e),Qp(),gm(e),bm()]}}var Em={tokenize:Bm,partial:!0},Dm={tokenize:Vm,partial:!0},Om={tokenize:Hm,partial:!0},km={tokenize:Um,partial:!0},Am={tokenize:Wm,partial:!0},jm={name:`wwwAutolink`,tokenize:Rm,previous:Gm},Mm={name:`protocolAutolink`,tokenize:zm,previous:Km},Nm={name:`emailAutolink`,tokenize:Lm,previous:qm},Pm={};function Fm(){return{text:Pm}}for(var Im=48;Im<123;)Pm[Im]=Nm,Im++,Im===58?Im=65:Im===91&&(Im=97);Pm[43]=Nm,Pm[45]=Nm,Pm[46]=Nm,Pm[95]=Nm,Pm[72]=[Nm,Mm],Pm[104]=[Nm,Mm],Pm[87]=[Nm,jm],Pm[119]=[Nm,jm];function Lm(e,t,n){let r=this,i,a;return o;function o(t){return!Jm(t)||!qm.call(r,r.previous)||Ym(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return Jm(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(Am,u,l)(t):t===45||t===95||Oo(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&Do(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function Rm(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!Gm.call(r,r.previous)||Ym(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(Em,e.attempt(Dm,e.attempt(Om,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function zm(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Km.call(r,r.previous)&&!Ym(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(Do(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||Ao(t)||Po(t)||Lo(t)||Io(t)?n(t):e.attempt(Dm,e.attempt(Om,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function Bm(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function Vm(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(km,c,s)(t):t===null||Po(t)||Lo(t)||t!==45&&Io(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function Hm(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(km,t,a)(o):o===null||Po(o)||Lo(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function Um(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||Po(o)||Lo(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||Po(e)||Lo(e)?t(e):r(e)}function a(e){return Do(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):Do(t)?(e.consume(t),o):n(t)}}function Wm(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return Oo(e)?n(e):t(e)}}function Gm(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Po(e)}function Km(e){return!Do(e)}function qm(e){return!(e===47||Jm(e))}function Jm(e){return e===43||e===45||e===46||e===95||Oo(e)}function Ym(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var Xm={tokenize:ih,partial:!0};function Zm(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:th,continuation:{tokenize:nh},exit:rh}},text:{91:{name:`gfmFootnoteCall`,tokenize:eh},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Qm,resolveTo:$m}}}}function Qm(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=Eo(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function $m(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function eh(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||Po(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(Eo(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return Po(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function th(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||Po(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=Eo(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return Po(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),Bo(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function nh(e,t,n){return e.check(is,t,e.attempt(Xm,t,n))}function rh(e){e.exit(`gfmFootnoteDefinition`)}function ih(e,t,n){let r=this;return Bo(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function ah(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&yo(o,o.length,0,Zo(s,e.slice(r+1,n),t)),yo(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),yo(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Xo(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Xo(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var oh=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){sh(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function sh(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function ch(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function lh(){return{flow:{null:{name:`table`,tokenize:uh,resolveAll:dh}}}}function uh(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):X(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):Fo(t)?Bo(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||Po(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,Fo(t)?Bo(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return Fo(t)?Bo(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||X(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return Fo(t)?Bo(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||X(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||X(n)?(e.exit(`tableRow`),t(n)):Fo(n)?Bo(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Po(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function dh(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new oh;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(ph(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=fh(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=fh(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=fh(f,t,o,i,n,d)):(o[0]=o[1],d=fh(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&ph(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=ch(t.events,n))}return e}function fh(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},mh(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=mh(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=mh(t.events,n[2]),a=mh(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},mh(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function ph(e,t,n,r,i){let a=[],o=mh(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function mh(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var hh={name:`tasklistCheck`,tokenize:_h};function gh(){return{text:{91:hh}}}function _h(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return Po(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return X(r)?t(r):Fo(r)?e.check({tokenize:vh},t,n)(r):n(r)}}function vh(e,t,n){return Bo(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function yh(e){return So([Fm(),Zm(),ah(e),lh(),gh()])}var bh={};function xh(e){let t=this,n=e||bh,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(yh(n)),a.push(wm()),o.push(Tm(n))}var Sh=`ActiveDescendant Atomic AutoComplete Busy Checked ColCount ColIndex ColSpan Controls Current DescribedBy Details Disabled DropEffect ErrorMessage Expanded FlowTo Grabbed HasPopup Hidden Invalid KeyShortcuts Label LabelledBy Level Live Modal MultiLine MultiSelectable Orientation Owns Placeholder PosInSet Pressed ReadOnly Relevant Required RoleDescription RowCount RowIndex RowSpan Selected SetSize Sort ValueMax ValueMin ValueNow ValueText`,Ch=`role className content crossOrigin download height href hrefLang id lang max media method min name Abort AfterPrint BeforePrint Cancel CanPlay CanPlayThrough Change Click Close Copy CueChange Cut DblClick Drag DragEnd DragEnter DragExit DragLeave DragOver DragStart Drop DurationChange Emptied Ended Error Focus HashChange Input Invalid KeyDown KeyPress KeyUp Load LoadedData LoadedMetadata LoadStart Message MouseDown MouseEnter MouseLeave MouseMove MouseOut MouseOver MouseUp Offline Online PageHide PageShow Paste Pause Play Playing PopState Progress RateChange Reset Resize Scroll Seeked Seeking Select Stalled Storage Submit Suspend TimeUpdate Toggle Unload VolumeChange Waiting ping referrerPolicy rel style tabIndex target title type width color event rev version property xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xmlns:xlink xmlns xml:base xml:lang xml:space`,wh={names:Jh(`abbr accept accept-charset accessKey action allow allowFullScreen allowPaymentRequest allowUserMedia alpha alt as async autoCapitalize autoComplete autoFocus autoPlay blocking capture charSet checked cite closedBy colorSpace cols colSpan command commandFor contentEditable controls controlsList coords data dateTime decoding default defer dir dirName disabled draggable encType enterKeyHint fetchPriority form formAction formEncType formMethod formNoValidate formTarget headers hidden high htmlFor http-equiv imageSizes imageSrcSet inert inputMode integrity is isMap itemID itemProp itemRef itemScope itemType kind label language list loading loop low manifest maxLength minLength multiple muted nonce noModule noValidate AuxClick BeforeMatch BeforeToggle BeforeUnload Blur ContextLost ContextMenu ContextRestored FormData LanguageChange LoadEnd MessageError RejectionHandled ScrollEnd SecurityPolicyViolation SlotChange UnhandledRejection Wheel open optimum pattern placeholder playsInline popover popoverTarget popoverTargetAction poster preload readOnly required reversed rows rowSpan sandbox scope scoped seamless selected shadowRootClonable shadowRootCustomElementRegistry shadowRootDelegatesFocus shadowRootMode shadowRootSerializable shape size sizes slot span spellCheck src srcDoc srcLang srcSet start step translate typeMustMatch useMap value wrap writingSuggestions align aLink archive axis background bgColor border borderColor bottomMargin cellPadding cellSpacing char charOff classID clear code codeBase codeType compact declare face frame frameBorder hSpace leftMargin link longDesc lowSrc marginHeight marginWidth noResize noHref noShade noWrap object profile prompt rightMargin rules scheme scrolling standby summary text topMargin valueType vAlign vLink vSpace allowTransparency autoCorrect autoSave credentialless disablePictureInPicture disableRemotePlayback exportParts part prefix results security unselectable`).set(`for`,`htmlFor`),commaSeparated:[`accept`,`coords`,`exportParts`]},Th={names:Jh(`about accent-height accumulate additive alignment-baseline alphabetic amplitude arabic-form ascent attributeName attributeType azimuth bandwidth baseline-shift baseFrequency baseProfile bbox begin bias by calcMode cap-height clip clip-path clipPathUnits clip-rule color-interpolation color-interpolation-filters color-profile color-rendering contentScriptType contentStyleType cursor cx cy d datatype defaultAction descent diffuseConstant direction display dur divisor dominant-baseline dx dy edgeMode editable elevation enable-background end exponent externalResourcesRequired fill fill-opacity fill-rule filter filterRes filterUnits flood-color flood-opacity focusable focusHighlight font-family font-size font-size-adjust font-stretch font-style font-variant font-weight format fr from fx fy g1 g2 glyph-name glyph-orientation-horizontal glyph-orientation-vertical glyphRef gradientTransform gradientUnits handler hanging hatchContentUnits hatchUnits horiz-adv-x horiz-origin-x horiz-origin-y ideographic image-rendering initialVisibility in in2 intercept k k1 k2 k3 k4 kernelMatrix kernelUnitLength keyPoints keySplines keyTimes kerning lengthAdjust letter-spacing lighting-color limitingConeAngle local marker-end marker-mid marker-start markerHeight markerUnits markerWidth mask maskContentUnits mask-type maskUnits mathematical mediaCharacterEncoding mediaContentEncodings mediaSize mediaTime mode nav-down nav-down-left nav-down-right nav-left nav-next nav-prev nav-right nav-up nav-up-left nav-up-right numOctaves observer offset Activate Begin End FocusIn FocusOut MouseWheel Repeat Show Zoom opacity operator order orient orientation origin overflow overlay overline-position overline-thickness paint-order panose-1 path pathLength patternContentUnits patternTransform patternUnits phase pitch playbackOrder pointer-events points pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits propagate r radius refX refY rendering-intent repeatCount repeatDur requiredExtensions requiredFeatures requiredFonts requiredFormats resource restart result rotate rx ry scale seed shape-rendering side slope snapshotTime specularConstant specularExponent spreadMethod spacing startOffset stdDeviation stemh stemv stitchTiles stop-color stop-opacity strikethrough-position strikethrough-thickness string stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width surfaceScale syncBehavior syncBehaviorDefault syncMaster syncTolerance syncToleranceDefault systemLanguage tableValues targetX targetY text-anchor text-decoration text-rendering textLength timelineBegin transformBehavior typeof to transform transform-origin u1 u2 underline-position underline-thickness unicode unicode-bidi unicode-range units-per-em values v-alphabetic v-mathematical vector-effect v-hanging v-ideographic vert-adv-y vert-origin-x vert-origin-y viewBox viewTarget visibility widths word-spacing writing-mode x x1 x2 xChannelSelector x-height y y1 y2 yChannelSelector z zoomAndPan`),commaSeparated:[`g1`,`g2`,`glyphName`]},Eh=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Dh=/["&'<>]/g,Oh={'"':`"`,"&":`&`,"'":`'`,"<":`<`,">":`>`},kh=/^[$_\p{ID_Start}][$_\p{Join_Control}\p{ID_Continue}]*$/u,Ah="Cannot parse `style` attribute",jh="Cannot handle MDX estrees without `evaluator`",Mh=1,Nh=2,Ph=4,Fh=8,Ih=Uint8Array.from({length:128},(e,t)=>{let n=String.fromCharCode(t);return(/[-#/*\\\w]/.test(n)?Mh:0)|(/[-\w]/.test(n)?Nh:0)|(/[0-9a-z_-]/.test(n)?Ph:0)|(/[;}"'(]/.test(n)?Fh:0)});function Lh(e,{components:t={},evaluator:n}={}){let r=Rh(e,{components:t,evaluator:n,styles:new Map,styleAttributes:new Map},wh,void 0);return r&&typeof r!=`string`?r:(0,Y.jsx)(Y.Fragment,{children:r||void 0})}function Rh(e,t,n,r){if(e.type===`element`)return zh(e,t,n,r);if(e.type===`text`)return e.value;if(e.type===`root`)return Wh(Y.Fragment,{},Uh(e,t,n),r);if(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)return Wh(e.name===null?Y.Fragment:Gh(e.name,t),Kh(e.attributes,t.evaluator),Uh(e,t,n===wh&&e.name===`svg`?Th:n),r);if(e.type===`mdxFlowExpression`||e.type===`mdxTextExpression`)return qh(e.data?.estree,t.evaluator);if(e.type===`mdxjsEsm`){if(!e.data?.estree||!t.evaluator)throw Error(jh);return t.evaluator.evaluateProgram(e.data.estree)}}function zh(e,t,n,r){let i=n===wh&&e.tagName.toLowerCase()===`svg`?Th:n,a={},o;for(let n in e.properties){let r=e.properties[n];if(r==null||Number.isNaN(r)||n===`children`||!Object.hasOwn(e.properties,n))continue;let s=Yh(i,n);if(Array.isArray(r)&&(r=i.commaSeparated.includes(s)?(r.join(`, `)+(r.at(-1)===``?`, `:``)).trim():r.join(` `).trim()),s===`style`&&typeof r==`object`)a.style=r;else if(s===`style`){let e=String(r),n=t.styles.get(e);n||t.styles.set(e,n=Qh(e)),a.style=n}else s===`align`&&typeof r==`string`&&(e.tagName===`td`||e.tagName===`th`)?o=r:a[s]=r}o&&(a.style={...a.style,textAlign:o});let s=Object.hasOwn(t.components,e.tagName)?t.components[e.tagName]:e.tagName,c=e.children[0];if(typeof s==`string`&&c?.type===`element`&&c.tagName===`span`&&!t.components.span&&!Eh.has(e.tagName)){let n=Bh(e.children,t);if(n!==void 0)return a.dangerouslySetInnerHTML={__html:n},Wh(s,a,[],r)}return Wh(s,a,Uh(e,t,i),r)}function Bh(e,t){let n=``;for(let r of e){if(r.type===`text`){n+=Hh(r.value);continue}if(r.type!==`element`||r.tagName!==`span`)return;n+=`<span`;for(let e in r.properties){let i=r.properties[e];if(i==null||Number.isNaN(i)||e===`children`)continue;if(e===`style`&&typeof i==`string`){n+=Vh(i,t);continue}let a=e===`className`?`class`:e;if(a!==`class`&&!a.startsWith(`data-`)||typeof i!=`string`&&typeof i!=`number`&&!Array.isArray(i))return;n+=` ${a}="${Hh(Array.isArray(i)?i.join(` `).trim():String(i))}"`}let e=Bh(r.children,t);if(e===void 0)return;n+=`>${e}</span>`}return n}function Vh(e,{styleAttributes:t}){let n=t.get(e);if(n!==void 0)return n;n=``;for(let[t,r]of Object.entries(Qh(e))){let e=t.startsWith(`--`)?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace(/^ms-/,`-ms-`);n+=`${n?`;`:` style="`}${Hh(e)}:${Hh(r)}`}return n&&(n+=`"`),t.set(e,n),n}function Hh(e){return e.replace(Dh,e=>Oh[e])}function Uh(e,t,n){let r=[],i=e.type===`element`&&Eh.has(e.tagName),a;for(let o of e.children){let e;if(o.type===`text`)e=o.value;else{let r,i=o.type===`element`?o.tagName:o.type===`mdxJsxFlowElement`||o.type===`mdxJsxTextElement`?o.name:void 0;if(i){a??=new Map;let e=a.get(i)??0;r=`${i}-${e}`,a.set(i,e+1)}if(e=Rh(o,t,n,r),e===void 0)continue}i&&typeof e==`string`&&Zh(e)||r.push(e)}return r}function Wh(e,t,n,r){n.length>1?t.children=n:n[0]&&(t.children=n[0]);let i=n.length>1||Array.isArray(t.children)?Y.jsxs:Y.jsx;return r?i(e,t,r):i(e,t)}function Gh(e,{components:t,evaluator:n}){let r;if(e.includes(`.`))for(let t of e.split(`.`)){let e=kh.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t},n=e.type===`Literal`;r=r?{type:`MemberExpression`,object:r,property:e,computed:n,optional:!1}:e}else kh.test(e)&&!/^[a-z]/.test(e)&&(r={type:`Identifier`,name:e});if(!r)return Object.hasOwn(t,e)?t[e]:e;if(!n)throw Error(jh);return n.evaluateExpression(r)}function Kh(e,t){let n={};for(let r of e)r.type===`mdxJsxExpressionAttribute`?Object.assign(n,qh(r.data?.estree,t,!0)):r.value&&typeof r.value==`object`?n[r.name]=qh(r.value.data?.estree,t):n[r.name]=r.value===null||r.value;return n}function qh(e,t,n=!1){if(!e||!t)throw Error(jh);let{expression:r}=e.body[0];return n&&(r=r.properties[0].argument),t.evaluateExpression(r)}function Jh(e){let t=new Map([[`class`,`className`]]);for(let e of Sh.split(` `)){let n=`aria-${e.toLowerCase()}`;t.set(n,n).set(`aria${e}`,n).set(`aria${e.toLowerCase()}`,n)}for(let n of`${Ch} ${e}`.split(` `)){n.charCodeAt(0)<97&&(n=`on${n}`);let e=n.replace(/[-:](.)/g,(e,t)=>t.toUpperCase());t.set(n,e).set(e,e).set(e.toLowerCase(),e)}return t}function Yh({names:e},t){return t.startsWith(`data-`)?t:e.get(t)??e.get(t.toLowerCase())??Xh(t)}function Xh(e){if(e.charCodeAt(4)===45||/-[a-z]/.test(e)||!/^data[-\w.:]+$/i.test(e))return e;let t=e.slice(4).replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);return t.charCodeAt(0)===45?`data${t}`:`data-${t}`}function Zh(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n!==32&&n!==9&&n!==10&&n!==12&&n!==13)return!1}return!0}function Qh(e){let t={},n=tg(e,og(e,0));for(;;){let r=n,i=!0,a=e.charCodeAt(n);for(;cg(a,Mh);)cg(a,Nh)||(i=!1),a=e.charCodeAt(++n);if(n===r)break;if(a===91){let t=n+1;for(;cg(e.charCodeAt(t),Ph);)t++;t>n+1&&e.charCodeAt(t)===93&&(n=t+1,i=!1)}let o=i?e.slice(r,n):rg(e.slice(r,n));if(n=ng(e,og(e,n)),e.charCodeAt(n)!==58)throw Error(Ah);let s=og(e,n+1);n=$h(e,s);let c=rg(e.slice(s,n)).trim();for(c&&(t[i&&o.startsWith(`--`)?o:ig(o)]=c);e.charCodeAt(n)===59||sg(e.charCodeAt(n));)n++;n=tg(e,n)}return t}function $h(e,t){for(;t<e.length;){let n=e.charCodeAt(t);if(!cg(n,Fh))t++;else if(n===59||n===125)break;else if(n===40){let n=e.indexOf(`)`,t+1);t=n===-1?t+1:n+1}else t=eg(e,t,n)}return t}function eg(e,t,n){let r=t+1;for(let i=t+1;i<e.length;i++){let t=e.charCodeAt(i);if(t===n)return i+1;if(t===92&&e.charCodeAt(i+1)===n)r=++i+1;else if(t===10||t===13||t===8232||t===8233)break}return r}function tg(e,t){for(let n=ng(e,t);n!==t;n=ng(e,t))t=n;return t}function ng(e,t){if(e.charCodeAt(t)!==47||e.charCodeAt(t+1)!==42)return t;let n=e.indexOf(`*/`,t+2);if(n===-1)throw Error(Ah);return og(e,n+2)}function rg(e){let t=``,n=0;for(let r=e.indexOf(`/*`);r!==-1;r=e.indexOf(`/*`,n)){let i=e.indexOf(`*/`,r+2);if(i===-1)break;t+=e.slice(n,r),n=i+2}return n===0?e:t+e.slice(n)}function ig(e){if(!e.includes(`-`)||ag(e))return e;let t=e.toLowerCase();t.startsWith(`-ms-`)&&(t=t.slice(1));let n=``,r=0;for(let e=t.indexOf(`-`);e!==-1;e=t.indexOf(`-`,e+1)){let i=t.charCodeAt(e+1);i>=97&&i<=122&&(n+=t.slice(r,e)+String.fromCharCode(i-32),r=e+2,e++)}return n+t.slice(r)}function ag(e){if(e.length<3||!e.startsWith(`--`))return!1;for(let t=2;t<e.length;t++)if(!cg(e.charCodeAt(t),Nh))return!1;return!0}function og(e,t){for(;sg(e.charCodeAt(t));)t++;return t}function sg(e){return e===32||e>=9&&e<=13||e>127&&String.fromCharCode(e).trim()===``}function cg(e,t){return e<128&&(Ih[e]&t)!==0}var lg=Qt(),ug=()=>()=>{},dg=()=>!0,fg=()=>!1;function pg(){return(0,lg.useSyncExternalStore)(ug,dg,fg)}function mg(){let[e,t]=J.useState(!1);return J.useEffect(()=>{t(!0)},[]),e}var hg=b(18)?pg:mg;function gg(){return!hg()}var _g=J.createContext(void 0),vg={disableStyleElements:!1};function yg(){return J.useContext(_g)??vg}function bg(e){let{script:t}=e,{nonce:n}=yg();return gg()?(0,Y.jsx)(`script`,{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}function xg(e,t){let n=(t??qe(e).getComputedStyle(e)).transform,r=0,i=0,a=1;if(n&&n!==`none`){let e=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(r=t[4],i=t[5],a=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(r=t[12],i=t[13],a=t[0])}}return{x:r,y:i,scale:a}}var Sg=`--active-tab-left`,Cg=`--active-tab-right`,wg=`--active-tab-top`,Tg=`--active-tab-bottom`,Eg=`--active-tab-width`,Dg=`--active-tab-height`,Og,kg={...St,activeTabPosition:()=>null,activeTabSize:()=>null},Ag=2,jg=J.forwardRef(function(e,t){let{className:n,render:r,renderBeforeHydration:i=!1,style:a,...o}=e,{getTabElementBySelectedValue:s,orientation:c,tabActivationDirection:l,value:u}=mt(),{tabsListElement:d,registerIndicatorUpdateListener:f}=Tt(),p=E();J.useEffect(()=>f(p),[f,p]);let m=0,h=0,g=0,_=0,v=0,y=0,b=!1;if(u!=null&&d!=null){let e=s(u);if(e!=null){b=!0;let{width:t,height:n}=Qr(e),{width:r,height:i}=Qr(d),a=e.getBoundingClientRect(),o=d.getBoundingClientRect(),s=r>0?o.width/r:1,c=i>0?o.height/i:1,l=Mg(e,d);m=l.left,g=l.top;let u=(a.left-o.left)/s+d.scrollLeft-d.clientLeft,f=(a.top-o.top)/c+d.scrollTop-d.clientTop,p=Pg(e);Math.abs(u-p.x-m)<=Ag&&Math.abs(f-p.y-g)<=Ag&&(m=u,g=f),v=t,y=n,h=d.scrollWidth-m-v,_=d.scrollHeight-g-y}}let x=b?{left:m,right:h,top:g,bottom:_}:null,C=b?{width:v,height:y}:null,w=b?{[Sg]:`${m}px`,[Cg]:`${h}px`,[wg]:`${g}px`,[Tg]:`${_}px`,[Eg]:`${v}px`,[Dg]:`${y}px`}:void 0,T=S(`span`,e,{state:{orientation:c,activeTabPosition:x,activeTabSize:C,tabActivationDirection:l},ref:t,props:[{role:`presentation`,style:w,hidden:!(b&&v>0&&y>0)},o,{suppressHydrationWarning:!0}],stateAttributesMapping:kg});return u==null?null:(0,Y.jsxs)(J.Fragment,{children:[T,i&&(Og||=(0,Y.jsx)(bg,{script:``}))]})});function Mg(e,t){let n=Ng(e),r=Ng(t),i=n.left-r.left-t.clientLeft,a=n.top-r.top-t.clientTop,o=B(e);for(;Xe(o)&&o!==t&&!N(o);)i-=o.scrollLeft,a-=o.scrollTop,o=B(o);return{left:i,top:a}}function Ng(e){let t=0,n=0,r=e;for(;r!=null;){t+=r.offsetLeft,n+=r.offsetTop;let e=r.offsetParent;e!=null&&(t+=e.clientLeft,n+=e.clientTop),r=e}return{left:t,top:n}}function Pg(e){let t=qe(e).getComputedStyle(e),{x:n,y:r}=xg(e,t),i=n,a=r,{translate:o}=t;if(o&&o!==`none`){let t=o.split(` `);i+=Fg(t[0],e.offsetWidth),a+=Fg(t[1],e.offsetHeight)}return{x:i,y:a}}function Fg(e,t){if(!e)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith(`%`)?n/100*t:n:0}async function Ig(e,t){let n=e.getBundledThemes(),r=e.getLoadedThemes(),i=t.filter(e=>typeof e==`string`?e in n&&!r.includes(e):e.name===void 0||!r.includes(e.name));i.length>0&&await e.loadTheme(...i)}async function Lg(e,t){let n=e.getBundledLanguages(),r=e.getLoadedLanguages(),i=t.filter(e=>typeof e==`string`?e in n&&!r.includes(e):!r.includes(e.name));i.length>0&&await e.loadLanguage(...i)}function Rg(e){return`theme`in e?[e.theme]:Object.values(e.themes).filter(e=>e!==void 0)}function zg(e){let t;return{init(n){let r=e.init(n);return r instanceof Promise&&r.catch(()=>{t===r&&(t=void 0)}),t=r},getOrInit(){return t??this.init()}}}function Bg(e,t){let{fallbackLanguage:n=`text`,...r}=t,i=typeof e==`function`?void 0:e,a=new Set;function o({lang:e,structure:t=r.structure,meta:i}){return{...r,lang:a.has(e)?n:e,structure:t,meta:r.meta?{...r.meta,...i}:i}}function s(){if(!i)throw Error(`[Fumadocs] load the language before highlighting`);return i}let c=new Map;async function l(t){let[o,{isSpecialLang:s}]=await Promise.all([typeof e==`function`?e():e,ct(()=>import(`./core-B123mLVe.js`),[])]);await Promise.all([Ig(o,Rg(r)),Lg(o,[t,n])]),!s(t)&&!o.getLoadedLanguages().includes(t)&&a.add(t),i=o}return{async loadLanguage(...e){let t=[];for(let n of e){let e=c.get(n);e||(c.set(n,e=l(n)),e.catch(()=>c.delete(n))),t.push(e)}await Promise.all(t)},codeToHast(e,t){return s().codeToHast(e,o(t))},override(n){return Bg(i??e,{...t,...n})}}}var Vg=(0,J.createContext)(void 0);function Hg(e){let t=(0,J.use)(Vg);return(0,Y.jsx)(Et,{...e,...t,className:K(`my-0`,e.className,t?.className),children:(0,Y.jsx)(Dt,{children:e.children})})}function Ug({highlighter:e}){return function(t){return(0,Y.jsx)(Wg,{highlighter:e,components:{pre:Hg},...t})}}function Wg({highlighter:e,lang:t,code:n,codeblock:r,wrapInSuspense:i=!0,components:a}){let o=(0,Y.jsx)(Kg,{highlighter:e,lang:t,code:n,components:a});return i&&e.loadLanguage&&(o=(0,Y.jsx)(J.Suspense,{fallback:(0,Y.jsx)(qg,{code:n,components:a}),children:o})),(0,Y.jsx)(Vg,{value:r,children:o})}var Gg=new WeakMap;function Kg({highlighter:e,lang:t,code:n,components:r}){if(e.loadLanguage){let n=Gg.get(e);n||Gg.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=e.loadLanguage(t)),(0,J.use)(r)}return Lh(e.codeToHast(n,{lang:t}),{components:r})}function qg({code:e,components:t={}}){let{pre:n=`pre`,code:r=`code`}=t;return(0,Y.jsx)(n,{children:(0,Y.jsx)(r,{children:e.split(`
|
|
106
106
|
`).map((e,t)=>(0,Y.jsx)(`span`,{className:`line`,children:e},t))})})}var Jg={themes:{light:`github-light`,dark:`github-dark`}};function Yg({highlighter:e,shiki:t,shikiOptions:n=Jg}){if(e)return e;if(!t)throw Error("[Fumadocs] pass a `highlighter` for code blocks");return Bg(()=>t.getOrInit(),{defaultColor:!1,...n})}function Xg({highlighter:e,components:t}){let n=t.CodeBlock??Ug({highlighter:e}),r;return{CodeBlock:n,Markdown:t.Markdown??(({md:e})=>(0,J.useMemo)(()=>(r??=Zg(n),r(e)),[e])),Heading:t.Heading??(({depth:e,...t})=>(0,Y.jsx)(Ct,{as:`h${e}`,...t}))}}function Zg(e){function t(t){let n=J.Children.only(t.children).props,r=n.children;if(typeof r!=`string`)return null;let i=n.className?.split(` `).find(e=>e.startsWith(`language-`))?.slice(9)??`text`;return(0,Y.jsx)(e,{lang:i,code:r.trimEnd()})}let n={components:{...jt,img:`img`,pre:t}},r=af().use(xh).use(mp);return e=>Lh(r.runSync(r.parse(e)),n)}function Qg(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null}function $g({storageKey:e,keyOf:t,resolve:n,defaultKey:r}){let[i,a]=(0,J.useState)(()=>r===void 0?null:n(r)),o=(0,J.useRef)(void 0);return(0,J.useEffect)(()=>{if(o.current===e)return;o.current=e;let r=localStorage.getItem(e);if(r)try{let e=JSON.parse(r);if(!Qg(e)||!Qg(e.variables))return;let i=n(t(e));i&&a({...i,variables:e.variables})}catch{}},[e,t,n]),(0,J.useMemo)(()=>({server:i,setServer(t){let r=n(t);r&&(localStorage.setItem(e,JSON.stringify(r)),a(r))},setServerVariables(t){a(n=>{if(!n)return null;let r={...n,variables:t};return localStorage.setItem(e,JSON.stringify(r)),r})}}),[i,n,e])}function e_(e,t){return t.startsWith(`/`)&&(t=t.slice(1)),e.endsWith(`/`)&&(e=e.slice(0,-1)),t.length>0?e+`/`+t:e}function t_(e,t){for(let[n,r]of Object.entries(t))e=e.replaceAll(`{${n}}`,r);return e}var n_=(0,J.createContext)(null),r_=e=>e.url,i_=()=>()=>{};function a_(){let e=(0,J.use)(n_);if(!e)throw Error(`Component must be used under <OpenAPIProvider />`);return e}function o_({servers:e,storageKeyPrefix:t,children:n}){let r=(0,J.useCallback)(t=>{let n=e?.find(e=>e.url===t);return n?{name:n.name,url:t,variables:s_(n)}:null},[e]),i=$g({storageKey:`${t}server-url`,keyOf:r_,resolve:r,defaultKey:e?.[0]?.url}),{server:a}=i,o=(0,J.useSyncExternalStore)(i_,()=>!0,()=>!1),s=(0,J.useCallback)((e=``)=>{let t=o?window.location.origin:`https://example.com`,n=(a&&URL.parse(t_(a.url,a.variables),t)||new URL(t)).href;return e?e_(n,e):n},[a,o]);return(0,Y.jsx)(n_,{value:(0,J.useMemo)(()=>({servers:e,resolveUrl:s,...i}),[e,s,i]),children:n})}function s_(e){let t={};if(!e.variables)return t;for(let[n,r]of Object.entries(e.variables))r.default!==void 0&&(t[n]=String(r.default));return t}var c_=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function l_(e){return c_.test(e)?e:JSON.stringify(e)}function u_(e){if(e===null)return`null`;switch(typeof e){case`string`:return JSON.stringify(e);case`number`:case`boolean`:return String(e);case`object`:{if(Array.isArray(e))return`[${e.map(u_).join(`, `)}]`;let t=Object.entries(e);return t.length===0?`Record<string, never>`:`{ ${t.map(([e,t])=>`${l_(e)}: ${u_(t)}`).join(`; `)} }`}default:return`unknown`}}function d_(e){let t=``;for(let n of e)t=t.length===0?n:`${t} | ${n}`;return t.length===0?`never`:t}function f_(e){let t=0,n;for(let r=0;r<e.length;r++){let i=e[r];if(n!==void 0)i===`\\`?r++:i===n&&(n=void 0);else switch(i){case`"`:case`'`:n=i;break;case`{`:case`[`:case`(`:case`<`:t++;break;case`}`:case`]`:case`)`:case`>`:t--;break;case`|`:case`&`:if(t===0)return!0}}return!1}function p_(e){return f_(e)?`(${e})`:e}function m_(e,t,n){if(typeof e!=`object`||!e)return;let r=[];n&&typeof e.title==`string`&&e.title.length>0&&r.push(e.title),typeof e.description==`string`&&e.description.length>0&&r.push(...e.description.split(`
|
|
107
107
|
`));let i=[];if(e.deprecated===!0&&i.push(`@deprecated`),e.default!==void 0&&i.push(`@default ${JSON.stringify(e.default)}`),Array.isArray(e.examples))for(let t of e.examples)i.push(`@example ${JSON.stringify(t)}`);if(r.length===0&&i.length===0)return;i.length>0&&(r.length>0&&r.push(``),r.push(...i));let a=r.map(e=>e.replaceAll(`*/`,`*\\/`));return a.length===1?`${t}/** ${a[0]} */`:`${t}/**\n${a.map(e=>`${t} *${e.length>0?` ${e}`:``}`).join(`
|
|
108
108
|
`)}\n${t} */`}var h_=class{root;names=new Map;usedNames=new Set;declarations=[];interfaceLike=new WeakMap;INDENT;includeReadOnly;includeWriteOnly;constructor(e,t){this.root=e,this.INDENT=t.tab??` `,this.includeReadOnly=t.readOnly??!1,this.includeWriteOnly=t.writeOnly??!1}emitAll(){let e=[];for(let t=0;t<this.declarations.length;t++)e.push(this.emitDeclaration(this.declarations[t]));return`${e.join(`
|
|
@@ -122,7 +122,7 @@ ${Ua(i.join(`
|
|
|
122
122
|
\f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]},sk=new Set([`desc`,`foreignObject`,`title`]);function ck(e,t,n,r){let{schema:i}=r,a=i.space!==`svg`&&r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[];i.space===`html`&&e.tagName===`svg`&&(r.schema=$D);let c=lk(r,e.properties);r.schema.space===`svg`&&sk.has(e.tagName)&&(r.schema=QD);let l=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);if(r.schema=i,l&&(o=!1),c||!a||!ek(e,t,n)){if(s.push(`<`,e.tagName,c?` `+c:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)){let e=c.charAt(c.length-1);(!r.settings.tightSelfClosing||e===`/`||e&&e!==`"`&&e!==`'`)&&s.push(` `),s.push(`/`)}s.push(`>`)}return s.push(l),o||a&&RO(e,t,n)||s.push(`</`+e.tagName+`>`),s.join(``)}function lk(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=uk(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function uk(e,t,n){let r=YD(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let o=xO(r.attribute,Object.assign({},e.settings.characterReferences,{subset:ok.name[i][a]}));if(n===!0||(n=Array.isArray(n)?(r.commaSeparated?DO:OO)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n))return o;let s;if(e.settings.preferUnquoted&&(s=xO(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ok.unquoted[i][a]}))),s!==n){let{quote:t}=e;e.settings.quoteSmart&&q(n,t)>q(n,e.alternative)&&(t=e.alternative),s=t+xO(n,Object.assign({},e.settings.characterReferences,{subset:(t===`'`?ok.single:ok.double)[i][a],attribute:!0}))+t}return o+(s&&`=`+s)}var dk=[`<`,`&`];function fk(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:xO(e.value,Object.assign({},r.settings.characterReferences,{subset:dk}))}function pk(e,t,n,r){return r.settings.allowDangerousHtml?e.value:fk(e,t,n,r)}function mk(e,t,n,r){return r.all(e)}var hk=Ft(`type`,{invalid:gk,unknown:_k,handlers:{comment:TO,doctype:EO,element:ck,raw:pk,root:mk,text:fk}});function gk(e){throw Error("Expected node, not `"+e+"`")}function _k(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var vk={},yk={},bk=[];function xk(e,t){let n=t||vk,r=n.quote||`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");let i=r===`"`?`'`:`"`;return{one:Sk,all:Ck,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||xD,characterReferences:n.characterReferences||yk,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?$D:QD,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function Sk(e,t,n){return hk(e,t,n,this)}function Ck(e){let t=[],n=e&&e.children||bk,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}var wk=/\s+/g;function Tk(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(wk)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(wk);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}var Ek=/:?lang=["']([^"']+)["']/g,Dk=/(?:```|~~~)([\w-]+)/g,Ok=/\\begin\{([\w-]+)\}/g,kk=/<script\s+(?:type|lang)=["']([^"']+)["']/gi,Ak=/^\s*---\r?\n[\s\S]*?\r?\n---(?:\r?\n|\s*$)/;function jk(e){let t=VE(e,!0),n=t.map(([e])=>e),r=t.map(([,e])=>e);function i(t){if(t===e.length)return{line:n.length-1,character:n.at(-1).length};let i=0,a=n.length-1;for(;i<a;){let e=i+a+1>>>1;r[e]<=t?i=e:a=e-1}return{line:i,character:t-r[i]}}function a(e,t){return r[e]+t}return{lines:n,indexToPos:i,posToIndex:a}}function Mk(e,t,n){let r=new Set;for(let t of e.matchAll(Ek)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(Dk)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(Ok)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(kk)){let e=t[1].toLowerCase().trim(),n=e.includes(`/`)?e.split(`/`).pop():e;n&&r.add(n)}if(Ak.test(e)&&r.add(`yaml`),!n)return[...r];let i=n.getBundledLanguages();return[...r].filter(e=>e&&i[e])}var Nk=[`color`,`background-color`];function Pk(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function Fk(e,t){let n=0,r=e.length;for(;n<r;){let i=n+(r-n>>1);e[i]<=t?n=i+1:r=i}return n}function Ik(e,t){let n=[...t instanceof Set?t:new Set(t)].sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=e.offset+e.content.length,r=Fk(n,e.offset),i=r;for(;i<n.length&&n[i]<t;)i++;if(r===i)return e;let a=n.slice(r,i);for(let t=0;t<a.length;t++)a[t]-=e.offset;return Pk(e,a)})):e}function Lk(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>Rk(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&Nk.includes(a)){if(r===`light-dark()`&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new Xw('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=o[e][a]||`inherit`,d=o[r][a]||`inherit`;c[a]=`light-dark(${u}, ${d})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s}else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function Rk(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&_T.Italic&&(t[`font-style`]=`italic`),e.fontStyle&_T.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&_T.Underline&&n.push(`underline`),e.fontStyle&_T.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function zk(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function Bk(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=jk(t.source);function r(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new Xw(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...n.indexToPos(e),offset:e}}{let t=n.lines[e.line];if(t===void 0)throw new Xw(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${n.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new Xw(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:n.posToIndex(e.line,r)}}}let i=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));Vk(i),e.set(t.meta,{decorations:i,converter:n,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return Ik(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=[...e.children].filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new Xw(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=Uk(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new Xw(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new Xw(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&Tk(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.push(()=>a(r,e));i(n.line,0,n.character,e)}}for(let e=s.length-1;e>=0;e--)s[e]()}}}function Vk(e){if(!Hk(e))for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new Xw(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new Xw(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function Hk(e){let t=[],n=new Map,r=new Map;for(let i=0;i<e.length;i++){let{start:a,end:o}=e[i];if(a.offset>o.offset)return!1;a.offset!==o.offset&&(t.push(e[i]),n.has(a.offset)||n.set(a.offset,i),r.set(o.offset,i))}for(let t=0;t<e.length;t++){let{start:i,end:a}=e[t];if(i.offset===a.offset&&((n.get(i.offset)??t)<t||(r.get(i.offset)??t)>t))return!1}t.sort((e,t)=>e.start.offset-t.start.offset||t.end.offset-e.end.offset);let i=[];for(let{start:e,end:n}of t){for(;i.length&&i.at(-1)<=e.offset;)i.pop();if(i.length&&n.offset>i.at(-1))return!1;i.push(n.offset)}return!0}function Uk(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(Uk).join(``):``}var Wk=[Bk()];function Gk(e){let t=Kk(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Wk]}function Kk(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var qk=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],Jk={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function Yk(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function Xk(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function Zk(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r)){if(r===0)t.push({type:`resetAll`});else if(r<=9)Jk[r]&&t.push({type:`setDecoration`,value:Jk[r]});else if(r<=29){let e=Jk[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:qk[r-30]}});else if(r===38){let n=Xk(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:qk[r-40]}});else if(r===48){let n=Xk(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:qk[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:qk[r-100+8]}})}}return t}function Qk(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=Yk(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=Zk(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var $k={black:`#000000`,red:`#bb0000`,green:`#00bb00`,yellow:`#bbbb00`,blue:`#0000bb`,magenta:`#ff00ff`,cyan:`#00bbbb`,white:`#eeeeee`,brightBlack:`#555555`,brightRed:`#ff5555`,brightGreen:`#00ff00`,brightYellow:`#ffff55`,brightBlue:`#5555ff`,brightMagenta:`#ff55ff`,brightCyan:`#55ffff`,brightWhite:`#ffffff`};function eA(e=$k){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<qk.length;e++)r.push(t(qk[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var tA=/#([0-9a-f]{3,8})/i,nA=/var\((--[\w-]+-ansi-[\w-]+)\)/,rA={black:`#000000`,red:`#cd3131`,green:`#0DBC79`,yellow:`#E5E510`,blue:`#2472C8`,magenta:`#BC3FBC`,cyan:`#11A8CD`,white:`#E5E5E5`,brightBlack:`#666666`,brightRed:`#F14C4C`,brightGreen:`#23D18B`,brightYellow:`#F5F543`,brightBlue:`#3B8EEA`,brightMagenta:`#D670D6`,brightCyan:`#29B8DB`,brightWhite:`#FFFFFF`};function iA(e,t,n){let r=ME(e,n),i=VE(t),a=eA(Object.fromEntries(qk.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||rA[t]]}))),o=Qk();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=NE(i,r),o=NE(o,r),n.decorations.has(`dim`)&&(i=aA(i));let s=_T.None;return n.decorations.has(`bold`)&&(s|=_T.Bold),n.decorations.has(`italic`)&&(s|=_T.Italic),n.decorations.has(`underline`)&&(s|=_T.Underline),n.decorations.has(`strikethrough`)&&(s|=_T.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function aA(e){let t=e.match(tA);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}if(e.length===6)return`#${e}80`;if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(nA);return n?`var(${n[1]}-dim)`:e}function oA(e,t,n={}){let r=e.resolveLangAlias(n.lang||`text`),{theme:i=e.getLoadedThemes()[0]}=n;if(!IE(r)&&!RE(i)&&r===`ansi`){let{theme:r}=e.setTheme(i);return iA(r,t,n)}return uD(e,t,n)}function sA(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:d=`css-vars`}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:+(t.color===l));if(f.length===0)throw new Xw("`themes` option must not be empty");let p=yD(e,t,n,oA);if(c=iD(p),l&&l!==`light-dark()`&&!f.some(e=>e.color===l))throw new Xw(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>Lk(e,h,u,l,d))),c&&rD(a,c);let g=f.map(e=>ME(e.theme,n));i=cA(f,m,g,u,l,`fg`,d),r=cA(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=ME(n.theme,n);a=oA(e,t,n);let l=e.getTheme(n.theme);r=NE(l.bg,s),i=NE(l.fg,s),o=l.name,c=iD(a)}else throw new Xw("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function cA(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=NE(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===`light-dark()`&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new Xw('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${NE(t[r][a],n[r])||`inherit`}, ${NE(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}var lA=/^\s+$/,uA=/^(\s*)(.*?)(\s*)$/;function dA(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>dA(e,t,n),codeToTokens:(t,n)=>sA(e,t,n)}){let i=t;for(let e of Gk(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=sA(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=pA(a):d===`never`&&(a=mA(a)),f&&(a=hA(a));let p={...r,get source(){return i}};for(let e of Gk(n))a=e.tokens?.call(p,a)||a;return fA(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function fA(e,t,n,r=iD(e)){let i=Gk(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(l.style=t.rootStyle==null?`background-color:${t.bg};color:${t.fg}`:t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:Tk,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
|
|
123
123
|
`}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=zk(a.htmlStyle||Rk(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&rD(m,r),m}function pA(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&_T.Underline||i.fontStyle&_T.Strikethrough));o&&lA.test(i.content)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function mA(e){return e.map(e=>e.flatMap(e=>{if(lA.test(e.content))return e;let t=e.content.match(uA);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function hA(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t.at(-1),r=zk(e.htmlStyle||Rk(e)),i=zk(n.htmlStyle||Rk(n)),a=e.fontStyle&&(e.fontStyle&_T.Underline||e.fontStyle&_T.Strikethrough),o=n.fontStyle&&(n.fontStyle&_T.Underline||n.fontStyle&_T.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var gA=xk;function _A(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>dA(e,t,n),codeToTokens:(t,n)=>sA(e,t,n)},i=gA(dA(e,t,n,r));for(let e of Gk(n))i=e.postprocess?.call(r,i,n)||i;return i}async function vA(e){let t=await eD(e);return{getLastGrammarState:(...e)=>dD(t,...e),codeToTokensBase:(e,n)=>oA(t,e,n),codeToTokensWithThemes:(e,n)=>yD(t,e,n),codeToTokens:(e,n)=>sA(t,e,n),codeToHast:(e,n)=>dA(t,e,n),codeToHtml:(e,n)=>_A(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function yA(e){let t=QE(e);return{getLastGrammarState:(...e)=>dD(t,...e),codeToTokensBase:(e,n)=>oA(t,e,n),codeToTokensWithThemes:(e,n)=>yD(t,e,n),codeToTokens:(e,n)=>sA(t,e,n),codeToHast:(e,n)=>dA(t,e,n),codeToHtml:(e,n)=>_A(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function bA(e){let t;async function n(n){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}return t=e({...n,themes:n.themes||[],langs:n.langs||[]}),t}return n}var xA=bA(vA);function SA(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(n=e.langAlias?.[n]||n,LE(n))return[];let r=t[n];if(!r)throw new Xw(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(zE(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new Xw(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await vA({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function CA(e){let t;async function n(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}return n}function wA(e,t){let n=CA(e);async function r(e,r){let i=await n({langs:[r.lang],themes:`theme`in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(e){return n(e)},async codeToHtml(e,t){return(await r(e,t)).codeToHtml(e,t)},async codeToHast(e,t){return(await r(e,t)).codeToHast(e,t)},async codeToTokens(e,t){return(await r(e,t)).codeToTokens(e,t)},async codeToTokensBase(e,t){return(await r(e,t)).codeToTokensBase(e,t)},async codeToTokensWithThemes(e,t){return(await r(e,t)).codeToTokensWithThemes(e,t)},async getLastGrammarState(e,t){return(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}}function TA(e={}){let{name:t=`css-variables`,variablePrefix:n=`--shiki-`,fontStyle:r=!0}=e,i=t=>e.variableDefaults?.[t]?`var(${n}${t}, ${e.variableDefaults[t]})`:`var(${n}${t})`,a={name:t,type:`dark`,colors:{"editor.foreground":i(`foreground`),"editor.background":i(`background`),"terminal.ansiBlack":i(`ansi-black`),"terminal.ansiRed":i(`ansi-red`),"terminal.ansiGreen":i(`ansi-green`),"terminal.ansiYellow":i(`ansi-yellow`),"terminal.ansiBlue":i(`ansi-blue`),"terminal.ansiMagenta":i(`ansi-magenta`),"terminal.ansiCyan":i(`ansi-cyan`),"terminal.ansiWhite":i(`ansi-white`),"terminal.ansiBrightBlack":i(`ansi-bright-black`),"terminal.ansiBrightRed":i(`ansi-bright-red`),"terminal.ansiBrightGreen":i(`ansi-bright-green`),"terminal.ansiBrightYellow":i(`ansi-bright-yellow`),"terminal.ansiBrightBlue":i(`ansi-bright-blue`),"terminal.ansiBrightMagenta":i(`ansi-bright-magenta`),"terminal.ansiBrightCyan":i(`ansi-bright-cyan`),"terminal.ansiBrightWhite":i(`ansi-bright-white`)},tokenColors:[{scope:[`keyword.operator.accessor`,`meta.group.braces.round.function.arguments`,`meta.template.expression`,`markup.fenced_code meta.embedded.block`],settings:{foreground:i(`foreground`)}},{scope:`emphasis`,settings:{fontStyle:`italic`}},{scope:[`strong`,`markup.heading.markdown`,`markup.bold.markdown`],settings:{fontStyle:`bold`}},{scope:[`markup.italic.markdown`],settings:{fontStyle:`italic`}},{scope:`meta.link.inline.markdown`,settings:{fontStyle:`underline`,foreground:i(`token-link`)}},{scope:[`string`,`markup.fenced_code`,`markup.inline`],settings:{foreground:i(`token-string`)}},{scope:[`comment`,`string.quoted.docstring.multi`],settings:{foreground:i(`token-comment`)}},{scope:[`constant.numeric`,`constant.language`,`constant.other.placeholder`,`constant.character.format.placeholder`,`variable.language.this`,`variable.other.object`,`variable.other.class`,`variable.other.constant`,`meta.property-name`,`meta.property-value`,`support`],settings:{foreground:i(`token-constant`)}},{scope:[`keyword`,`storage.modifier`,`storage.type`,`storage.control.clojure`,`entity.name.function.clojure`,`entity.name.tag.yaml`,`support.function.node`,`support.type.property-name.json`,`punctuation.separator.key-value`,`punctuation.definition.template-expression`],settings:{foreground:i(`token-keyword`)}},{scope:`variable.parameter.function`,settings:{foreground:i(`token-parameter`)}},{scope:[`support.function`,`entity.name.type`,`entity.other.inherited-class`,`meta.function-call`,`meta.instance.constructor`,`entity.other.attribute-name`,`entity.name.function`,`constant.keyword.clojure`],settings:{foreground:i(`token-function`)}},{scope:[`entity.name.tag`,`string.quoted`,`string.regexp`,`string.interpolated`,`string.template`,`string.unquoted.plain.out.yaml`,`keyword.other.template`],settings:{foreground:i(`token-string-expression`)}},{scope:[`punctuation.definition.arguments`,`punctuation.definition.dict`,`punctuation.separator`,`meta.function-call.arguments`],settings:{foreground:i(`token-punctuation`)}},{scope:[`markup.underline.link`,`punctuation.definition.metadata.markdown`],settings:{foreground:i(`token-link`)}},{scope:[`beginning.punctuation.definition.list.markdown`],settings:{foreground:i(`token-string`)}},{scope:[`punctuation.definition.string.begin.markdown`,`punctuation.definition.string.end.markdown`,`string.other.link.title.markdown`,`string.other.link.description.markdown`],settings:{foreground:i(`token-keyword`)}},{scope:[`markup.inserted`,`meta.diff.header.to-file`,`punctuation.definition.inserted`],settings:{foreground:i(`token-inserted`)}},{scope:[`markup.deleted`,`meta.diff.header.from-file`,`punctuation.definition.deleted`],settings:{foreground:i(`token-deleted`)}},{scope:[`markup.changed`,`punctuation.definition.changed`],settings:{foreground:i(`token-changed`)}}]};return r||(a.tokenColors=a.tokenColors?.map(e=>(e.settings?.fontStyle&&delete e.settings.fontStyle,e))),a}var EA=Ot;function DA({children:e,className:t,...n}){return(0,Y.jsx)(At,{...n,className:e=>K(`overflow-hidden [&[hidden]:not([hidden='until-found'])]:hidden h-(--collapsible-panel-height) transition-[height,opacity] data-starting-style:opacity-0 data-starting-style:h-0 data-ending-style:h-0 data-ending-style:opacity-0`,typeof t==`function`?t(e):t),children:e})}var OA=J.createContext(void 0);function kA(e){let t=J.useContext(OA);if(t===void 0&&!e)throw Error(Ve(33));return t}var AA=J.createContext(void 0);function jA(e){let t=J.useContext(AA);if(t===void 0&&!e)throw Error(Ve(36));return t}var MA=J.createContext(void 0);function NA(e=!0){let t=J.useContext(MA);if(t===void 0&&!e)throw Error(Ve(25));return t}var PA=J.createContext(null);function FA(e=`root`){let t=J.useContext(PA),n=J.useContext(AA);return t===null||n===void 0?null:(e===`submenu-trigger`?n.virtualFocus||n.parentVirtualFocus:n.virtualFocus)?t:null}var IA={visible:!0,ref:null};function LA(){return IA}function RA(e,t,n=`root`){let r=FA(n),i=((n===`submenu-trigger`?r?.useSubmenuTrigger:r?.useItem)??LA)({label:e.label,children:e.children,render:e.render}),a=j(t,i.ref);return{visible:i.visible,ref:a,props:i.props}}function zA(e){e.preventDefault()}function BA(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,l=jA(),u=NA(!0),d=c.type===`submenu-trigger`,f=d?l.parentVirtualFocus:l.virtualFocus,p=(d&&l.parent.type===`menu`?l.parent.store:l.store).useState(`webkitAriaSelected`,n),{events:m}=a.useState(`floatingTreeRoot`),h=a.useState(`open`),g=u!==void 0,_=!f&&h&&n?0:-1;return J.useMemo(()=>({id:r,role:`menuitem`,tabIndex:_,"aria-selected":p,onMouseDown:f?zA:void 0,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&m.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&m.emit(`close`,{domEvent:e.nativeEvent,reason:ve})},onMouseUp(e){if(u){let t=u.initialCursorPointRef.current;if(u.initialCursorPointRef.current=null,g&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||g&&!ee&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!g||e.button===2)&&c.type===`regular-item`&&be(s.current,e,{detail:1,pointerType:`mouse`})}}),[t,_,r,m,i,a.context.allowMouseUpTriggerRef,o,s,u,g,c.type,p,f])}var VA={type:`regular-item`};function HA(e){let{closeOnClick:t,disabled:n,highlighted:r,id:i,store:o,typingRef:s=o.context.typingRef,nativeButton:c,itemMetadata:l,nodeId:u}=e,d=J.useRef(null),{getButtonProps:f,buttonRef:p}=Re({disabled:n,focusableWhenDisabled:!0,native:c,composite:!0}),m=BA({closeOnClick:t,highlighted:r,id:i,nodeId:u,store:o,typingRef:s,itemRef:d,itemMetadata:l}),h=J.useCallback(e=>a(m,{onMouseEnter(e){l.type===`submenu-trigger`&&l.setActive(e.nativeEvent)}},e,f),[m,f,l]),g=j(d,p);return J.useMemo(()=>({getItemProps:h,itemRef:g}),[h,g])}var UA=J.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,style:l,...u}=e,{store:d}=jA(),f=Be({guess:!0,label:a}),p=te(i),m=d.useState(`disabled`),h=d.useState(`isActive`,f.index),g=d.useState(`floatingNodeId`),_=d.useState(`itemProps`),v=s||m,{getItemProps:y,itemRef:b}=HA({closeOnClick:c,disabled:v,highlighted:h,id:p,store:d,nativeButton:o,nodeId:g,itemMetadata:VA});return S(`div`,e,{state:{disabled:v,highlighted:h},props:[_,u,y],ref:[b,t,f.ref]})}),WA=J.forwardRef(function(e,t){let n=RA(e,t);return n.visible?(0,Y.jsx)(UA,{...e,ref:n.ref}):null}),GA=J.createContext(void 0);function KA(){return J.useContext(GA)}function qA(e,t){let n=Ce(e.render);if(J.isValidElement(n)){let e=n.props;if(Object.hasOwn(e,`id`))return e.id??``}return e.id??t}function JA(e,t,n){let r=qA(e,t),i=r===t?void 0:r;return[r,J.useCallback(e=>n?.(e?i:void 0),[i,n])]}function YA(e,t,n){let r=Ce(e.render),i=J.isValidElement(r)?r.props:void 0,a=e[`aria-label`]??i?.[`aria-label`],o=e[`aria-labelledby`]??i?.[`aria-labelledby`];return o==null&&!a&&(o=t?t.id||void 0:n||void 0),o}var XA=J.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,id:o,initialFocus:c,...u}=e,{store:d,defaultFloatingId:f,setRenderedFloatingId:p,virtualFocus:m,orientation:h}=jA(),g=KA(),{side:_,align:v}=kA(),y=Ln(!0)!=null,b=d.useState(`open`),x=d.useState(`transitionStatus`),C=d.useState(`popupProps`),w=d.useState(`mounted`),T=d.useState(`instantType`),E=d.useState(`activeTriggerElement`),D=d.useState(`parent`),O=d.useState(`lastOpenChangeReason`),k=d.useState(`rootId`),A=d.useState(`floatingRootContext`),ee=d.useState(`floatingTreeRoot`),j=d.useState(`closeDelay`),M=d.useState(`hoverEnabled`),te=d.useState(`disabled`),N=d.useState(`openMethod`),P=d.useState(`activeTriggerId`),F=d.useState(`listElement`),[I,L]=JA(e,f,p),ne=YA(e,E,P),re=D.type===`menu`?g:void 0,R=D.type===`context-menu`,z=c??D.type!==`menu`;c===void 0&&F&&D.type!==`menu`&&(z=()=>d.state.activeIndex===null&&F),s({open:b,ref:d.context.popupRef,onComplete(){b&&d.context.onOpenChangeComplete?.(!0)}}),J.useEffect(()=>{function e(e){d.setOpen(!1,l(e.reason,e.domEvent))}return ee.events.on(`close`,e),()=>{ee.events.off(`close`,e)}},[ee.events,d]),Yn(A,{enabled:M&&!te&&!R&&D.type!==`menubar`,closeDelay:j});let B=d.useStateSetter(`popupElement`),{parentVirtualFocusRef:V,handleFocus:H}=(J.useContext(PA)?.useParentHandoff??QA)(d,D,b,m),ie={transitionStatus:x,side:_,align:v,open:b,nested:D.type===`menu`,instant:T},ae=S(`div`,e,{state:ie,ref:[t,d.context.popupRef,B,L],stateAttributesMapping:Qn,props:[C,{id:I,...F?{role:`presentation`}:{role:`menu`,"aria-orientation":h===`horizontal`?`horizontal`:void 0,"aria-labelledby":ne},onKeyDown(e){re?.onPopupKeyDown?.(e),y&&Le.has(e.key)&&e.stopPropagation()},onFocus:H},xn(x),u,{"data-rootownerid":k}]}),oe=D.type===void 0||R;(E||D.type===`menubar`&&O!==`outside-press`)&&(oe=!0);let se=re?.getReturnElement??V;return(0,Y.jsx)(Jt,{context:A,openInteractionType:N,modal:R,disabled:!w,returnFocus:a??se??oe,explicitReturnFocus:a===void 0&&se?!1:void 0,initialFocus:z,restoreFocus:!0,getInsideElements:D.type===void 0?()=>[d.context.beforeTriggerFocusGuardRef.current]:void 0,externalTree:D.type===`menubar`?void 0:ee,previousFocusableElement:E,nextFocusableElement:D.type===void 0?d.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:d.context.beforeContentFocusGuardRef,children:ae})}),ZA={parentVirtualFocusRef:void 0,handleFocus:void 0};function QA(){return ZA}var $A=J.forwardRef(function(e,t){let n=FA()?.Popup??XA;return(0,Y.jsx)(n,{...e,ref:t})}),ej=J.createContext(void 0);function tj(){let e=J.useContext(ej);if(e===void 0)throw Error(Ve(32));return e}var nj=J.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i,parent:a}=jA();if(!(i.useState(`mounted`)||n))return null;let o=a.type===`menu`||a.type===`menubar`?`group`:void 0;return(0,Y.jsx)(ej.Provider,{value:n,children:(0,Y.jsx)(It,{ref:t,...r,portalOwnerRole:o})})}),rj=J.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o,align:s,sideOffset:c=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f=5,arrowPadding:p=5,sticky:m=!1,disableAnchorTracking:h=!1,collisionAvoidance:g=Pn,style:_,...v}=e,{store:y,virtualFocus:b,syncHighlightedItem:x}=jA(),S=tj(),C=NA(!0),w=y.useState(`parent`),T=y.useState(`floatingRootContext`),E=y.useState(`floatingTreeRoot`),D=y.useState(`mounted`),O=y.useState(`open`),k=y.useState(`modal`),A=y.useState(`openMethod`),ee=y.useState(`activeTriggerElement`),j=y.useState(`transitionStatus`),M=y.useState(`positionerElement`),te=y.useState(`instantType`),N=y.useState(`adaptiveOrigin`),F=y.useState(`lastOpenChangeReason`),I=y.useState(`floatingNodeId`),L=y.useState(`floatingParentNodeId`),ne=T.useState(`domReferenceElement`),re=n,R=c,z=u,B=s,V=g;w.type===`context-menu`&&(re=n??w.context?.anchor,B??=`start`,!o&&B!==`center`&&(z=e.alignOffset??2,R=e.sideOffset??-5));let ie=o,ae=B;w.type===`menu`?(ie??=`inline-end`,ae??=`start`,V=e.collisionAvoidance??Bn):w.type===`menubar`&&(ie??=w.context.orientation===`vertical`?`inline-end`:`bottom`,ae??=`start`);let se=w.type===`context-menu`,ce=dn({anchor:re,floatingRootContext:T,positionMethod:C?`fixed`:r,mounted:D,side:ie,sideOffset:R,align:ae,alignOffset:z,arrowPadding:se?0:p,collisionBoundary:d,collisionPadding:f,sticky:m,nodeId:I,keepMounted:S,disableAnchorTracking:h,collisionAvoidance:V,shift:se?{crossAxis:!(`side`in V&&V.side===`flip`),rootBoundary:`layoutViewport`}:void 0,externalTree:E,adaptiveOrigin:N,lazyFlip:b?`placement`:!1});J.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===I&&y.set(`hoverEnabled`,!1),e.nodeId!==I&&e.parentNodeId===y.select(`floatingParentNodeId`)&&y.setOpen(!1,l(P)))}return E.events.on(`menuopenchange`,e),()=>{E.events.off(`menuopenchange`,e)}},[y,E.events,I]),J.useEffect(()=>{if(y.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==y.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;y.setOpen(!1,l(t))}return E.events.on(`menuopenchange`,e),()=>{E.events.off(`menuopenchange`,e)}},[E.events,y]);let U=He();J.useEffect(()=>{O||U.clear()},[O,U]),J.useEffect(()=>{function e(e){if(O&&e.nodeId===y.select(`floatingParentNodeId`)){if(e.target&&ee&&ee!==e.target){let e=y.select(`closeDelay`);e>0?U.isStarted()||U.start(e,()=>{y.setOpen(!1,l(P))}):y.setOpen(!1,l(P))}else U.clear()}}return E.events.on(`itemhover`,e),()=>{E.events.off(`itemhover`,e)}},[E.events,O,ee,y,U]),J.useEffect(()=>{let e={open:O,nodeId:I,parentNodeId:L,reason:y.select(`lastOpenChangeReason`)};E.events.emit(`menuopenchange`,e)},[E.events,O,y,I,L]),fn({store:y,domReference:ne,positionerElement:M,open:O});let le={open:O,side:ce.side,align:ce.align,anchorHidden:ce.anchorHidden,nested:w.type===`menu`,instant:te},ue=w.type===`menubar`&&w.context.modal;zn(O&&(ue||k&&F!==`trigger-hover`),A===`touch`,M,ee);let de=Sn(e,le,{styles:ce.positionerStyles,transitionStatus:j,props:v,refs:[t,y.useStateSetter(`positionerElement`)],hidden:!D,inert:!O}),fe=D&&w.type!==`menu`&&(w.type!==`menubar`&&k&&F!==`trigger-hover`||w.type===`menubar`&&w.context.modal),pe=null;return w.type===`menubar`?pe=w.context.contentElement:w.type===void 0&&(pe=ee),(0,Y.jsxs)(OA.Provider,{value:ce,children:[fe&&(0,Y.jsx)(Fn,{ref:w.type===`context-menu`||w.type===`nested-context-menu`?w.context.internalBackdropRef:null,inert:oe(!O),cutout:pe}),(0,Y.jsx)(Rn,{id:I,children:(0,Y.jsx)(H,{elementsRef:y.context.itemDomElements,labelsRef:y.context.itemLabels,onMapChange:x,children:de})})]})}),ij=J.createContext(null);function aj(e){let t=J.useContext(ij);if(t===null&&!e)throw Error(Ve(5));return t}var oj={...rn,disabled:e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0),openMethod:e=>e.openMethod,keyboardOpen:e=>e.keyboardOpen,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId,activeIndex:e=>e.activeIndex,listElement:e=>e.listElement,triggerControlsId:(e,t)=>{let n=rn.triggerPopupId(e,t);return n?e.listElement?.id||n:void 0},filterTriggerProps:e=>e.filterTriggerProps,inputProps:e=>e.inputProps,webkitAriaSelected:(e,t)=>kn&&e.inputFocused&&t?!0:void 0,highlightedItemId:e=>e.highlightedItem?.id||void 0,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType===`trigger-change`&&!rn.open(e)?void 0:e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)}},sj=class extends Vt{constructor(e,t,n=!1){let r=new On,i=lj(r,t,n,e);super(i,cj(r),oj),this.observe(`parent`,e=>{e.type===`menu`?this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef:e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef)})}subscribeToParentMenu(){let e=this.state.parent;if(e.type!==`menu`)return;let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);return e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);(t!==i||n!==a||r!==o)&&(t=i,n=a,r=o,this.notifyAll())})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}setActiveIndex(e,t,n){if(this.state.activeIndex!==e){let r=(e===null?void 0:this.context.itemDomElements.current[e])===this.context.reportedItem;this.context.highlightReason=r?`none`:t,this.context.highlightEvent=r?void 0:n}this.set(`activeIndex`,e)}highlightItem(e,t,n){let r=this.context.itemDomElements.current.indexOf(e);r>-1&&this.setActiveIndex(r,t,n)}};function cj(e){return{positionerRef:J.createRef(),popupRef:J.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},highlightReason:`none`,highlightEvent:void 0,reportedItem:void 0,allowMouseUpTriggerRef:{current:!1},virtualFocusRef:void 0,triggerFocusTargetRef:J.createRef(),beforeTriggerFocusGuardRef:J.createRef(),beforeContentFocusGuardRef:J.createRef(),onOpenChangeComplete:void 0,triggerElements:e}}function lj(e,t,n=!1,r){return{...Jn(e,t,n),disabled:!1,modal:!0,openMethod:null,keyboardOpen:!1,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,listElement:null,filterTriggerProps:f,inputProps:f,inputFocused:!1,highlightedItem:void 0,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new tn,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:f,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}var uj=J.createContext(null);function dj(e,t){return(e===`trigger-press`||e===`item-press`)&&t?.detail===0}function fj(e,t){return e===`list-navigation`||dj(e,t)}var pj=Rt(function(e){let{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,onItemHighlighted:o,defaultOpen:s=!1,disabled:c=!1,modal:u,loopFocus:d=!0,orientation:p=`vertical`,actionsRef:m,closeParentOnEsc:h=!1,handle:g,triggerId:_,defaultTriggerId:v=null,highlightItemOnHover:y=!0,isSubmenu:b=!1,virtualFocus:x=!1,virtualFocusRef:S,allowEscape:C=!0,resetOnPointerLeave:w=!0}=e,T=NA(!0),E=jA(!0),O=aj(!0),A=E?.store,ee=E?.virtualFocus??!1,j=J.useMemo(()=>b&&A?{type:`menu`,store:A}:O?{type:`menubar`,context:O}:T&&!A?{type:`context-menu`,context:T}:{type:void 0},[T,A,O,b]),M=te(),N=te(),[P,F]=J.useState(void 0),I=(P??N)||void 0,L=cn(),ne=j.type===`menu`?j.store:void 0,re=(n??s)&&ne?.state.transitionStatus===`starting`,R=et(()=>re?ne?.state.instantType:void 0).current,z=et(()=>{let e=new sj({open:s,openProp:n,activeTriggerId:v,triggerIdProp:_,parent:j,disabled:c,highlightItemOnHover:y,modal:j.type===void 0?u:void 0,rootId:M,instantType:R},I,L!=null);return e.context.virtualFocusRef=S,e}).current;z.useControlledProp(`openProp`,n),z.useControlledProp(`triggerIdProp`,_),z.useContextCallback(`onOpenChangeComplete`,i);let B=z.useState(`floatingTreeRoot`),V=ln(B),H=z.useState(`open`),ie=z.useState(`activeTriggerElement`),ae=z.useState(`positionerElement`),oe=z.useState(`hoverEnabled`),se=z.useState(`disabled`),ce=z.useState(`lastOpenChangeReason`),le=z.useState(`parent`),ue=z.useState(`activeIndex`),de=z.useState(`keyboardOpen`),fe=z.useState(`payload`),pe=z.useState(`floatingParentNodeId`),me=J.useRef(null),he=J.useRef(le.type!==`context-menu`),_e=He(),ve=J.useRef(!0),ye=He(),be=pe!=null,{openMethod:xe,triggerProps:Se}=An(H);z.useSyncedValues({disabled:c,highlightItemOnHover:y,modal:le.type===void 0?u:void 0,openMethod:xe,rootId:M}),Kt(z);let{forceUnmount:Ce,transitionStatus:W}=Yt(H,z,()=>{z.set(`allowMouseEnter`,!1)},re),we=Je(z.context.popupRef);J.useEffect(()=>{if(R===void 0)return;let e=()=>{z.state.instantType===R&&z.set(`instantType`,void 0)};if(!H){e();return}if(W!==void 0)return;if(z.context.popupRef.current==null){e();return}let t=new AbortController;return we(e,t.signal),()=>{t.abort()}},[R,H,W,we,z]),U(()=>{T&&!E?z.update({parent:{type:`context-menu`,context:T},floatingNodeId:V,floatingParentNodeId:L}):(E||!z.select(`activeTriggerElement`))&&z.update({floatingNodeId:V,floatingParentNodeId:L})},[T,E,V,L,ie,z]),J.useEffect(()=>{H||(me.current=null),le.type===`context-menu`&&(H?_e.start(500,()=>{he.current=!0}):(_e.clear(),he.current=!1))},[_e,H,le.type]),U(()=>{!H&&!oe&&z.set(`hoverEnabled`,!0)},[H,oe,z]);let Te=De((e,t)=>{let n=t.reason;if(!e&&!z.select(`open`)||H===e&&t.trigger===ie&&ce===n)return;let i=Zt(t);if(!e&&t.trigger==null&&(t.trigger=ie??void 0),r?.(e,t),t.isCanceled)return;z.state.floatingRootContext.dispatchOpenChange(e,t);let a=t.event;if(e===!1&&n!==`item-press`&&a?.type===`click`&&a.pointerType===`touch`&&!ve.current)return;e&&n===`trigger-focus`?(ve.current=!1,ye.start(300,()=>{ve.current=!0})):(ve.current=!0,ye.clear());let o=!e&&(n===`escape-key`||n==null);me.current=t.event;let s=Ut(z.state,e,t.trigger,i());s.openChangeReason=n,s.keyboardOpen=e&&fj(n,a),s.instantType=le.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?`group`:dj(n,a)?`click`:o?`dismiss`:void 0,z.update(s)}),Ee=an({popupStore:z,floatingRootContext:z.state.floatingRootContext,floatingId:I,nested:L!=null,onOpenChange:Te}),Oe=Ee.context.events;U(()=>{let e=({open:e,eventDetails:t})=>Te(e,t);return Oe.on(`setOpen`,e),()=>{Oe?.off(`setOpen`,e)}},[Oe,Te]),U(()=>z.subscribeToParentMenu(),[z]);let ke=J.useCallback(()=>{z.setOpen(!1,l(Ge))},[z]);J.useImperativeHandle(m,()=>({unmount:Ce,close:ke}),[Ce,ke]);let Ae;le.type===`context-menu`&&(Ae=le.context),J.useImperativeHandle(Ae?.positionerRef,()=>ae,[ae]),J.useImperativeHandle(Ae?.actionsRef,()=>({setOpen:Te}),[Te]);let je=sn(Ee,{enabled:!se,bubbles:{escapeKey:h&&le.type===`menu`},outsidePress(){return le.type!==`context-menu`||me.current?.type===`contextmenu`||he.current},externalTree:be?B:void 0}),Me=Ye(),Ne=Yr(Ee,{enabled:!se,listRef:z.context.itemDomElements,activeIndex:ue,virtual:x,nested:le.type===`menubar`||!x&&le.type!==void 0,parentOrientation:le.type===`menubar`?le.context.orientation:void 0,loopFocus:d,focusItemOnOpen:x?de:void 0,allowEscape:x&&d&&C,orientation:p,triggerOrientation:x?`vertical`:p,rtl:Me===`rtl`,disabledIndices:k,onNavigate(e,t){z.setActiveIndex(e,Ix(t),t?.nativeEvent)},openOnArrowKeyDown:le.type!==`context-menu`&&!(x&&b),externalTree:!x&&be?B:void 0,nestedReturnFocusRef:ne?.context.virtualFocusRef,focusItemOnHover:y,resetOnPointerLeave:w}),Pe=J.useCallback(e=>{z.context.typingRef.current=e},[z]),Fe=Xr(Ee,{enabled:!se&&!x,listRef:z.context.itemLabels,elementsRef:z.context.itemDomElements,activeIndex:ue,resetMs:500,onMatch:(e,t)=>{H&&e!==ue&&z.setActiveIndex(e,ge,t.nativeEvent)},onTyping:Pe}),Ie=De(o),Le=J.useRef(-1),Re=De(()=>{let e=z.state.activeIndex,t=e===null?void 0:z.context.itemDomElements.current[e]??void 0;if(t?.isConnected===!1)return;let n=t===void 0?-1:e;if(Le.current===n&&z.context.reportedItem===t)return;Le.current=n,z.context.reportedItem=t,x&&z.set(`highlightedItem`,t);let{highlightReason:r,highlightEvent:i}=z.context;z.context.highlightReason=$e,z.context.highlightEvent=void 0,o&&Ie(t,D(r,i,{label:t===void 0?void 0:z.context.itemLabels.current[n]??void 0}))});U(()=>{Re()},[ue,Re]);let ze=J.useMemo(()=>{if(!x)return Ne.reference;if(!Ne.trigger)return f;let{onFocus:e,...t}=Ne.trigger;return t},[x,Ne.reference,Ne.trigger]);z.useSyncedValue(`inputProps`,x?Ne.reference??f:f);let Be=J.useMemo(()=>{let e=a(Fe.reference,ze,je.reference,{onMouseMove(){z.set(`allowMouseEnter`,!0)}},Se);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=H,e},[z,Fe.reference,ze,je.reference,Se,H]),Ve=J.useMemo(()=>{let e=a(Ne.trigger,je.trigger,Se);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[Ne.trigger,je.trigger,Se]);et(()=>(z.update({inactiveTriggerProps:Ve}),null));let Ue=J.useMemo(()=>a(Lt,{onMouseMove(){z.set(`allowMouseEnter`,!0),le.type===`menu`&&z.set(`hoverEnabled`,!1)},onClick(){z.select(`hoverEnabled`)&&z.set(`hoverEnabled`,!1)},onKeyDown(e){let t=z.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},Fe.floating,Ne.floating,je.floating),[le.type,z,Fe.floating,Ne.floating,je.floating]),We=Ne.item??f;nn(z,{floatingRootContext:Ee,activeTriggerProps:Be,inactiveTriggerProps:Ve,popupProps:Ue,itemProps:We});let Ke=J.useMemo(()=>({store:z,parent:j,orientation:p,loopFocus:d,allowEscape:C,defaultFloatingId:N,setRenderedFloatingId:F,virtualFocus:x,parentVirtualFocus:ee,syncHighlightedItem:Re}),[z,j,p,d,C,N,x,ee,Re]),qe=typeof t==`function`?t({payload:fe}):t,Xe=(0,Y.jsxs)(AA.Provider,{value:Ke,children:[g&&(0,Y.jsx)(En,{handle:g,store:z}),qe]});return(le.type===void 0||le.type===`context-menu`)&&(Xe=(0,Y.jsx)(qt,{externalTree:B,children:Xe})),Xe});function mj(e){let t=J.useContext(uj);if(t===null)return(0,Y.jsx)(pj,{...e});let n=t.Root;return(0,Y.jsx)(uj.Provider,{value:null,children:(0,Y.jsx)(n,{...t.options,...e})})}function hj(e){if(Xe(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`);if(!N(e))return hj(B(e))}function gj(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=J.useRef(!1);return J.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,ie(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:f,[t,n,r])}var _j=Dn(function(e,t){let{render:n,className:r,style:i,disabled:s=!1,nativeButton:c=!0,id:l,openOnHover:u,delay:d=100,closeDelay:p=0,handle:m,payload:h,...g}=e,_=jA(!0),v=Bt(m)??_?.store;if(!v)throw Error(Ve(85));let y=te(l),b=v.useState(`isTriggerActive`,y),x=v.useState(`floatingRootContext`),C=v.useState(`isOpenedByTrigger`,y),w=v.useState(`triggerControlsId`,y),T=J.useRef(null),E=yj(),D=Me(!0),O=un(),k=J.useMemo(()=>O??new tn,[O]),A=ln(k),ee=cn(),{registerTrigger:j,isMountedByThisTrigger:M}=on(y,T,v,{payload:h,closeDelay:p,parent:E,floatingTreeRoot:k,floatingNodeId:A,floatingParentNodeId:ee,keyboardEventRelay:D?.relayKeyboardEvent}),N=E.type===`menubar`,P=v.useState(`disabled`),F=s||P||N&&E.context.disabled,{getButtonProps:I,buttonRef:L}=Re({disabled:F,native:c});J.useEffect(()=>{!C&&E.type===void 0&&(v.context.allowMouseUpTriggerRef.current=!1)},[v,C,E.type]);let ne=J.useRef(null),re=He(),R=De(e=>{if(!ne.current)return;re.clear(),v.context.allowMouseUpTriggerRef.current=!1;let t=e.target;o(ne.current,t)||o(v.select(`positionerElement`),t)||t===ne.current||t!=null&&hj(t)===v.select(`rootId`)||Cb(e,ne.current)||k.events.emit(`close`,{domEvent:e,reason:ae})});J.useEffect(()=>{let e=ie(ne.current);if(C&&v.select(`lastOpenChangeReason`)===`trigger-hover`)return e.addEventListener(`mouseup`,R,{once:!0}),()=>{e.removeEventListener(`mouseup`,R)}},[C,R,v]);let z=N&&E.context.hasSubmenuOpen,B=pn(x,{enabled:(u??z)&&!F&&(!N||z&&!M),handleClose:Zn({blockPointerEvents:!N}),mouseOnly:!0,move:!1,restMs:E.type===void 0?d:void 0,delay:{close:p},triggerElementRef:T,externalTree:k,isActiveTrigger:b,isClosing:()=>v.select(`transitionStatus`)===`ending`}),V=vj(C,v.select(`lastOpenChangeReason`)),H=Wt(x,{enabled:!F,event:C&&N?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:E.type===void 0&&V}),oe=ir(x,{enabled:!F&&z}),se=gj({open:C,enabled:N,mouseDownAction:`open`}),ce=J.useMemo(()=>a(oe.reference,H.reference),[oe.reference,H.reference]),U=v.useState(`triggerProps`,M),le=v.useState(`filterTriggerProps`),{handlePreFocusGuardFocus:ue,handleFocusTargetFocus:de}=_n(v,T),fe={disabled:F,open:C},pe=[ne,t,L,j,T],me=[ce,B??f,U,{"aria-haspopup":`menu`,"aria-controls":w,id:y,onMouseDown:e=>{v.select(`open`)||(re.start(200,()=>{v.context.allowMouseUpTriggerRef.current=!0}),ie(e.currentTarget).addEventListener(`mouseup`,R,{once:!0}))}},le,N?{role:`menuitem`}:{},se,g,I],he=S(`button`,e,{enabled:!N,stateAttributesMapping:mn,state:fe,ref:pe,props:me});return N?(0,Y.jsx)(lr,{tag:`button`,render:n,className:r,style:i,state:fe,refs:pe,props:me,stateAttributesMapping:mn}):C?(0,Y.jsxs)(J.Fragment,{children:[(0,Y.jsx)(In,{ref:v.context.beforeTriggerFocusGuardRef,onFocus:ue},`${y}-pre-focus-guard`),(0,Y.jsx)(J.Fragment,{children:he},y),(0,Y.jsx)(In,{ref:v.context.triggerFocusTargetRef,onFocus:de},`${y}-post-focus-guard`)]}):(0,Y.jsx)(J.Fragment,{children:he},y)});function vj(e,t){let n=He(),[r,i]=J.useState(!1);return U(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function yj(){let e=aj(!0);return J.useMemo(()=>e?{type:`menubar`,context:e}:{type:void 0},[e])}var bj=(0,J.createContext)(null),xj=new Set;function Sj({id:e,name:t,generated:n,children:r}){let{$root:i,refs:a}=n,[o,s]=(0,J.useState)(()=>({path:[{name:t,$ref:i}]}));(0,J.useEffect)(()=>{if(xj.has(e))return;let t=new URL(window.location.href),n=t.searchParams.get(`path`);if(t.hash!==new URL(`#${e}`,t).hash||!n)return;let r=Ej(n);if(r[0].$ref!==i||!wj(a,r,s))return;let o=t.searchParams.get(`s-highlight`)??void 0;xj.add(e),s({path:r,highlighted:o}),o||document.getElementById(e)?.scrollIntoView({behavior:`smooth`})},[e,i,a]);let c=(0,J.useMemo)(()=>({refs:a,path:wj(a,o.path,s),highlighted:o.highlighted,open:(e,t)=>s(n=>({path:[...n.path,{name:e,$ref:t}]})),back:e=>s(t=>({path:t.path.slice(0,e+1)})),getLink(t,n){let r=new URL(window.location.href);return r.hash=e,r.searchParams.set(`s-highlight`,n),r.searchParams.set(`path`,Tj(o.path.slice(0,t+1))),r.href}}),[e,a,o]);return(0,Y.jsx)(bj,{value:c,children:r})}function Cj(){let e=(0,J.use)(bj);if(!e)throw Error(`Component must be used under <SchemaUIProvider />`);return e}function wj(e,t,n){let r=[];for(let[i,a]of t.entries()){let t=[],o=[],s=e[a.$ref];for(;s&&(s.type===`or`||s.type===`and`)&&s.items.length>0;){let r=o.length,c=a.selected?.[r],l=(s.items.find(e=>e.$type===c)??s.items[0]).$type;o.push(l),t.push({schema:s,value:l,select:e=>n(({path:t,highlighted:n})=>({path:t.with(i,{...t[i],selected:[...o.slice(0,r),e]}),highlighted:n}))}),s=e[l]}if(!s)return;r.push({name:a.name,$ref:a.$ref,unions:t,schema:s})}return r}function Tj(e){return e.map(e=>[e.name,e.$ref,...e.selected??[]].join(`\0`)).join(`|`)}function Ej(e){return e.split(`|`).map(e=>{let[t,n,...r]=e.split(`\0`);return{name:t,$ref:n,selected:r}})}var Dj=(0,J.createContext)(null),Oj=`font-mono text-xs text-fd-muted-foreground`,kj=`truncate rounded-md px-1.5 py-1 text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-fd-ring data-popup-open:bg-fd-accent`,Aj=`size-3.5 shrink-0 text-fd-muted-foreground/60`,jj=`scroll-mt-[calc(var(--fd-docs-row-3,0px)+1rem)]`,Mj=`rounded-md border bg-fd-secondary px-1.5 py-0.5 text-xs text-fd-secondary-foreground`;function Nj({rootId:e,name:t,required:n=!1,as:r=`property`,selector:i,actions:a,generated:o}){return(0,Y.jsx)(Sj,{id:e,name:t,generated:o,children:r===`body`&&o.refs[o.$root].type!==`primitive`?(0,Y.jsx)(Ij,{id:e,selector:i,actions:a}):(0,Y.jsx)(Pj,{id:e,name:t,$type:o.$root,required:n,actions:(0,Y.jsxs)(Y.Fragment,{children:[i,a]})})})}function Pj({id:e,name:t,$type:n,required:r,actions:i}){let{refs:a,path:o,open:s,back:c}=Cj(),[l,u]=(0,J.useState)(!1);function d(e,t){return!l&&o[1]?.name===e&&o[1].$ref===t}return(0,Y.jsx)(Dj,{value:{isExpanded:d,open(e,t){if(d(e,t))return u(!0);u(!1),c(0),s(e,t)}},children:(0,Y.jsx)(Vj,{id:e,name:t,$type:n,required:r,parentIndex:0,actions:i,children:a[n].type!==`primitive`&&(0,Y.jsx)(EA,{open:!l&&o.length>1,children:(0,Y.jsx)(DA,{className:`flow-root overflow-clip`,children:(0,Y.jsx)(Ij,{from:1,className:`mt-2.5`})})})})})}var Fj={forward:`motion-safe:starting:translate-x-6`,back:`motion-safe:starting:-translate-x-6`};function Ij({from:e=0,id:t,selector:n,actions:r,className:i}){let a=G({note:`schema UI`}),{path:o,open:s,back:c}=Cj(),l=o.length-1,{name:u,$ref:d,unions:f,schema:p}=o[l],m=`${l}\0${u}\0${d}`,[h,g]=(0,J.useState)({key:m,value:``}),_=h.key===m?h.value:``,v=_.trim().toLowerCase(),[y,b]=(0,J.useState)(),x=(0,J.useRef)(null),S=p.type===`object`&&p.props.length>0,C=e>0&&l===e&&d===o[0].$ref,w=null;function T(e,t){(0,gi.flushSync)(()=>{b(e),t()}),x.current?.scrollIntoView({behavior:`smooth`,block:`nearest`})}if(p.type===`object`){let e=[];for(let t of p.props)(!v||t.name.toLowerCase().includes(v))&&e.push((0,Y.jsx)(Vj,{name:t.name,$type:t.$type,required:t.required,parentIndex:l},t.name));w=e,e.length===0&&v&&(w=(0,Y.jsxs)(`div`,{className:`not-prose my-3 flex flex-col items-center gap-3 rounded-lg border border-dashed px-4 py-6 text-center text-fd-muted-foreground`,children:[(0,Y.jsx)(xr,{className:`box-content size-4 rounded-lg border bg-fd-secondary p-2`}),(0,Y.jsxs)(`p`,{children:[a(`No property matching`),` `,(0,Y.jsx)(`span`,{className:`font-medium break-all text-fd-foreground`,children:`"${_}"`})]})]}))}else p.type===`array`&&(w=(0,Y.jsx)(Vj,{name:`[index: integer]`,$type:p.item.$type,parentIndex:l}));return(0,Y.jsxs)(`div`,{id:t,className:K(`@container overflow-clip rounded-xl border bg-fd-card text-fd-card-foreground`,jj,i),children:[(0,Y.jsxs)(`div`,{ref:x,className:K(`not-prose flex flex-wrap border-b`,jj),children:[n&&(0,Y.jsx)(`div`,{className:`flex h-9 basis-full items-center border-b ps-1.5 pe-1 text-[0.8125rem]`,children:n}),(0,Y.jsx)(Lj,{from:e,unions:f,onBack:e=>T(`back`,()=>c(e))}),(S||r)&&(0,Y.jsxs)(`div`,{className:K(`flex h-9 items-center gap-1 pe-1`,S&&`@max-xl:basis-full @max-xl:border-t @max-xl:ps-1.5`),children:[S&&(0,Y.jsxs)(`label`,{className:`flex h-7 cursor-text items-center gap-1.5 rounded-md border bg-fd-secondary px-2 text-fd-muted-foreground transition-shadow focus-within:ring-1 focus-within:ring-fd-ring @max-xl:flex-1 @xl:w-40`,children:[(0,Y.jsx)(Cr,{className:`size-3.5 shrink-0`}),(0,Y.jsx)(`input`,{value:_,onChange:e=>g({key:m,value:e.target.value}),"aria-label":a(`Filter Properties`),placeholder:a(`Filter Properties`),className:`min-w-0 flex-1 bg-transparent text-[0.8125rem] text-fd-foreground outline-none placeholder:text-fd-muted-foreground`})]}),r]})]}),(0,Y.jsx)(Dj,{value:{open:(e,t)=>T(`forward`,()=>s(e,t))},children:(0,Y.jsxs)(`div`,{className:K(`px-3`,y&&`starting:opacity-0 motion-safe:transition-[opacity,translate] motion-safe:duration-300 motion-safe:ease-[cubic-bezier(0.16,1,0.3,1)]`,y&&Fj[y]),children:[!C&&(0,Y.jsx)(Uj,{schema:p,className:`py-2.5`}),w]},m)})]})}function Lj({from:e,unions:t,onBack:n}){let r=G({note:`schema UI`}),{path:i}=Cj(),a=i.length-1,[o,s]=(0,J.useState)(0),c=(0,J.useCallback)(e=>{if(!e)return;let t=e.parentElement,n=e.previousElementSibling,r=()=>s(Rj(e,t.clientWidth-n.getBoundingClientRect().width)),i=new ResizeObserver(r);return r(),i.observe(t),i.observe(n),()=>i.disconnect()},[]),l=Math.min(o,Math.max(0,a-e-1)),u=[],d=[],f=[],p=``;for(let t=e;t<=a;t++){let r=zj(i[t].name),o=t>e&&(0,Y.jsx)(xt,{className:Aj});p+=`${r}\0`,f.push((0,Y.jsxs)(`li`,{className:`flex items-center gap-0.5`,children:[o,(0,Y.jsx)(`span`,{className:K(`px-1.5 py-1`,t===a&&`font-medium`),children:r})]},t)),t>e&&t<=e+l?d.push((0,Y.jsx)(WA,{onClick:()=>n(t),className:`truncate rounded-md px-2 py-1.5 outline-none data-highlighted:bg-fd-accent data-highlighted:text-fd-accent-foreground`,children:r},t)):u.push((0,Y.jsxs)(`li`,{className:K(`flex items-center gap-0.5 overflow-hidden`,t>e&&`motion-safe:transition-opacity motion-safe:starting:opacity-0`),children:[o,t<a?(0,Y.jsx)(`button`,{type:`button`,onClick:()=>n(t),className:kj,children:r}):(0,Y.jsx)(`span`,{"aria-current":`page`,className:`truncate px-1.5 py-1 font-medium`,children:r})]},t))}return d.length>0&&u.splice(1,0,(0,Y.jsxs)(`li`,{className:`flex items-center gap-0.5`,children:[(0,Y.jsx)(xt,{className:Aj}),(0,Y.jsxs)(mj,{children:[(0,Y.jsx)(_j,{"aria-label":r(`Show Path`,{note:`aria-label`}),className:kj,children:`…`}),(0,Y.jsx)(nj,{children:(0,Y.jsx)(rj,{align:`start`,sideOffset:4,className:`z-50`,children:(0,Y.jsx)($A,{className:`flex max-h-(--available-height) max-w-72 min-w-40 origin-(--transform-origin) flex-col overflow-y-auto rounded-xl border bg-fd-popover p-1 font-mono text-[0.8125rem] text-fd-popover-foreground shadow-lg outline-none transition-[opacity,scale] duration-150 ease-[cubic-bezier(0.22,1,0.36,1)] data-ending-style:scale-[0.97] data-ending-style:opacity-0 data-starting-style:scale-95 data-starting-style:opacity-0 motion-reduce:transition-none`,children:d})})})]})]},`menu`)),(0,Y.jsxs)(`div`,{className:`relative ms-1.5 me-1 flex h-9 min-w-0 flex-1 items-center font-mono text-[0.8125rem]`,children:[(0,Y.jsx)(`ol`,{className:`grid min-w-0 auto-cols-[minmax(0,max-content)] grid-flow-col items-center`,children:u}),(0,Y.jsx)(`div`,{className:`flex min-w-0 items-center gap-0.5`,children:t.map((e,t)=>(0,Y.jsxs)(J.Fragment,{children:[(0,Y.jsx)(xt,{className:Aj}),(0,Y.jsx)(Bj,{union:e})]},t))}),(0,Y.jsxs)(`ol`,{ref:c,"aria-hidden":!0,className:`invisible absolute top-0 flex w-max`,children:[f,(0,Y.jsxs)(`li`,{className:`flex items-center gap-0.5`,children:[(0,Y.jsx)(xt,{className:Aj}),(0,Y.jsx)(`span`,{className:`px-1.5 py-1`,children:`…`})]})]},p)]})}function Rj(e,t){let n=Array.from(e.children,e=>e.getBoundingClientRect().width),r=n.pop(),i=0;for(let e of n)i+=e;if(i<=t)return 0;let a=0;for(i+=r;a<n.length-2&&i>t;)i-=n[++a];return a}function zj(e){let t=/^\[(\w+): \w+]$/.exec(e);return t?`[${t[1]}]`:e}function Bj({union:{schema:e,value:t,select:n}}){let r=G({note:`schema UI`}),i=e.items.map(e=>({label:e.name,value:e.$type}));return(0,Y.jsxs)(cx,{items:i,value:t,onValueChange:e=>e&&n(e),children:[(0,Y.jsx)(ux,{"aria-label":r(`Schema variant`),className:`h-7 w-auto min-w-0 gap-1 border-0 bg-transparent px-1.5 py-0 text-[0.8125rem] font-medium text-fd-foreground hover:bg-fd-accent focus:ring-0 focus-visible:ring-2 focus-visible:ring-inset data-popup-open:bg-fd-accent`,children:(0,Y.jsx)(lx,{className:`truncate`})}),(0,Y.jsx)(mx,{children:i.map(e=>(0,Y.jsx)(hx,{value:e.value,className:`font-mono text-[0.8125rem]`,children:e.label},e.value))})]})}function Vj({id:e,name:t,$type:n,required:r=!1,parentIndex:i,actions:a,children:o}){let s=G({note:`schema UI`}),{refs:c,path:l,highlighted:u,getLink:d}=Cj(),f=c[n],p=u===t&&i===l.length-1,[m,h]=yt(()=>navigator.clipboard.writeText(d(i,t))),g=(0,J.useCallback)(e=>{if(!e||!p)return;let t=window.setTimeout(()=>{e.scrollIntoView({behavior:`smooth`,block:`center`})},300);return()=>window.clearTimeout(t)},[p]);return(0,Y.jsxs)(`div`,{id:e,ref:g,className:`group/property scroll-m-20 border-t py-2.5 first:border-t-0`,children:[(0,Y.jsxs)(`div`,{className:`not-prose flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,Y.jsxs)(`code`,{className:`text-[0.8125rem] font-medium`,children:[(0,Y.jsx)(`span`,{className:K(p?`rounded-sm bg-fd-primary text-fd-primary-foreground`:`text-fd-primary`,f.deprecated&&`line-through opacity-80`),children:t}),r?(0,Y.jsx)(`span`,{className:`text-red-400`,children:`*`}):(0,Y.jsx)(`span`,{className:`text-fd-muted-foreground`,children:`?`})]}),f.type===`primitive`?(0,Y.jsx)(`span`,{className:Oj,children:f.aliasName}):(0,Y.jsx)(Hj,{name:t,$ref:n,children:f.aliasName}),f.deprecated&&(0,Y.jsx)(`span`,{className:`font-mono text-xs text-yellow-600 dark:text-yellow-400`,children:s(`Deprecated`)}),(0,Y.jsxs)(`button`,{type:`button`,"aria-live":`polite`,onClick:h,className:K(kt({size:`icon-xs`,variant:`ghost`}),`-my-1 ms-auto text-fd-muted-foreground opacity-0 transition-opacity group-hover/property:opacity-100 focus-visible:opacity-100 pointer-coarse:opacity-100 [&_svg]:size-3.5`),children:[m?(0,Y.jsx)(L,{}):(0,Y.jsx)(bt,{}),(0,Y.jsx)(`span`,{className:`sr-only`,children:s(m?`Copied Link`:`Copy Link`,{note:`aria-label`})})]}),a]}),(0,Y.jsx)(Uj,{schema:f,className:`mt-1`}),o]})}function Hj({name:e,$ref:t,children:n}){let{refs:r}=Cj(),{open:i,isExpanded:a}=(0,J.use)(Dj),o=r[t];return o.type===`primitive`&&!o.description&&!o.infoTags?.length?(0,Y.jsx)(`span`,{className:Oj,children:n}):o.type===`and`||o.type===`or`?(0,Y.jsx)(`span`,{className:K(Oj,`flex flex-wrap items-center gap-1.5`),children:o.items.map((t,n)=>(0,Y.jsxs)(J.Fragment,{children:[n>0&&(o.type===`and`?`&`:`|`),(0,Y.jsx)(Hj,{name:e,$ref:t.$type,children:t.name})]},t.$type))}):o.type===`array`?(0,Y.jsxs)(`span`,{className:K(Oj,`flex flex-wrap items-center`),children:[`array<`,(0,Y.jsx)(Hj,{name:`${e}[]`,$ref:o.item.$type,children:r[o.item.$type].aliasName}),`>`]}):(0,Y.jsx)(`button`,{type:`button`,"aria-expanded":a?.(e,t),onClick:()=>i(e,t),className:K(Oj,`text-start underline decoration-dotted underline-offset-4 transition-colors hover:text-fd-accent-foreground aria-expanded:text-fd-accent-foreground aria-expanded:decoration-solid`),children:n})}function Uj({schema:{description:e,infoTags:t=[]},className:n}){return!e&&t.length===0?null:(0,Y.jsxs)(`div`,{className:K(`flex flex-col gap-2 text-fd-muted-foreground`,n),children:[e&&(0,Y.jsx)(`div`,{className:`prose-no-margin`,children:e}),t.length>0&&(0,Y.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:t.map((e,t)=>`node`in e?(0,Y.jsx)(J.Fragment,{children:e.node},t):`open`in e?(0,Y.jsx)(Wj,{...e},t):`list`in e?(0,Y.jsxs)(`div`,{className:`not-prose flex w-full flex-wrap items-center gap-1.5 text-xs`,children:[e.label,e.list.map((e,t)=>(0,Y.jsx)(`code`,{className:Mj,children:e},t))]},t):e.block?(0,Y.jsxs)(`div`,{className:`not-prose flex w-full flex-col gap-1.5 text-xs`,children:[e.label,e.value]},t):(0,Y.jsxs)(`div`,{className:K(Mj,`inline-flex max-w-full items-baseline gap-1.5`),children:[(0,Y.jsx)(`span`,{className:`not-prose shrink-0 text-fd-muted-foreground`,children:e.label}),e.prose?(0,Y.jsx)(`div`,{className:`prose-xs prose-no-margin min-w-0 flex-1`,children:e.value}):(0,Y.jsx)(`code`,{className:`not-prose min-w-0 wrap-break-word`,children:e.value})]},t))})]})}function Wj({label:e,value:t,open:{name:n,$ref:r}}){let{open:i,isExpanded:a}=(0,J.use)(Dj);return(0,Y.jsxs)(`button`,{type:`button`,"aria-expanded":a?.(n,r),onClick:()=>i(n,r),className:K(Mj,`group/open inline-flex max-w-full items-center gap-1.5 text-start transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring aria-expanded:bg-fd-accent`),children:[(0,Y.jsx)(`span`,{className:`not-prose shrink-0 text-fd-muted-foreground`,children:e}),t&&(0,Y.jsx)(`code`,{className:`not-prose min-w-0 truncate`,children:t}),(0,Y.jsx)(xt,{className:`size-3 shrink-0 text-fd-muted-foreground transition-transform duration-200 group-hover/open:translate-x-0.5 motion-reduce:transition-none`})]})}function Gj({root:e,renderMarkdown:t,renderCodeblock:n,readOnly:r=!1,writeOnly:i=!1,showExample:a=!1,translations:o={}}){let s=ht(o,{note:`schema UI`}),c=new Map,l=new WeakMap,u=new Proxy({},{get(e,t){if(typeof t==`string`&&!(t in e)){let n=c.get(t);n!==void 0&&(e[t]=g(t,n))}return Reflect.get(e,t)}});function d(e){let t=[],r=[];e.pattern&&t.push({label:s(`Match`),value:e.pattern}),e.format&&t.push({label:s(`Format`),value:e.format}),e.multipleOf&&t.push({label:s(`Multiple Of`),value:e.multipleOf});let i=Kj(`value`,e.minimum,e.exclusiveMinimum,e.maximum,e.exclusiveMaximum);if(i&&t.push({label:s(`Range`),value:i}),i=Kj(`length`,e.minLength,void 0,e.maxLength,void 0),i&&t.push({label:s(`Length`),value:i}),i=Kj(`properties`,e.minProperties,void 0,e.maxProperties,void 0),i&&t.push({label:s(`Properties`),value:i}),i=Kj(`items`,e.minItems,void 0,e.maxItems,void 0),i&&t.push({label:s(`Items`),value:i}),e.enum&&e.enum.length>0&&r.push({label:s(`Value in`),list:e.enum.map(e=>JSON.stringify(e,null,2))}),e.default!==void 0){let i=JSON.stringify(e.default,null,2);i.includes(`
|
|
124
124
|
`)?r.push({label:s(`Default`),block:!0,value:n({lang:`json`,code:i})}):t.push({label:s(`Default`),value:i})}if(a&&e.examples)for(let i of e.examples){let e=JSON.stringify(i,null,2);e.includes(`
|
|
125
|
-
`)?r.push({label:s(`Example`),block:!0,value:n({lang:`json`,code:e})}):t.push({label:s(`Example`),value:e})}return[...t,...r]}function f(e,t){let n=typeof e==`boolean`?String(e):typeof e.$ref==`string`?e.$ref:t;return c.set(n,e),n}function p(e){let t=yi(e);if(typeof t==`boolean`||!t.allOf)return t;let n=l.get(t);return n===void 0&&l.set(t,n=wi(t)),n}function m(e){let t=p(e);return typeof t==`boolean`?!0:t.writeOnly?i:!t.readOnly||r}function h(e){let n=yi(e);if(typeof n==`boolean`){let e=n?`any`:`never`;return{typeName:e,aliasName:e}}return{description:n.description?t(n.description):void 0,infoTags:d(n),typeName:Li(e),aliasName:Li(e,{alias:!0}),deprecated:n.deprecated}}function g(e,t){let n=yi(t);if(typeof n==`boolean`)return{type:`primitive`,...h(t)};if(Array.isArray(n.type)){let r=[];for(let t of n.type){let i=`${e}_type:${t}`;c.set(i,{...n,type:t}),r.push({name:t,$type:i})}return{type:`or`,items:r,...h(t)}}if(n.oneOf&&n.anyOf){let r=[];for(let t of[`anyOf`,`oneOf`]){let i=`${e}_omit:${t}`;c.set(i,{...n,[t]:void 0}),r.push({name:u[i].aliasName,$type:i})}return{type:`and`,items:r,...h(t)}}let r=n.oneOf??n.anyOf;if(r){let i=[];for(let[t,a]of r.entries()){if(!a||typeof a!=`object`||!m(a))continue;let r=yi(a);if(typeof r!=`object`)continue;let o=`${e}_extends:${typeof a.$ref==`string`?a.$ref:t}`;c.set(o,{...n,oneOf:void 0,anyOf:void 0,...r,properties:{...n.properties,...r.properties}}),i.push({$type:o,name:Li(a,{alias:!0})})}return{type:`or`,items:i,...h(t)}}if(n.allOf)return g(e,p(n));if(n.type===`object`){let{properties:r={},patternProperties:i,additionalProperties:a}=n,o=Object.entries(r);i&&o.push(...Object.entries(i));let s=[];for(let[t,[r,i]]of o.entries())i&&m(i)&&s.push({$type:f(i,`${e}#${t}`),name:r,required:n.required?.includes(r)??!1});return a&&m(a)&&s.push({$type:f(a,`${e}#*`),name:`[key: string]`,required:!1}),{type:`object`,props:s,...h(t)}}return n.type===`array`?{type:`array`,item:{$type:f(n.items??!0,`${e}#items`)},...h(t)}:{type:`primitive`,...h(t)}}return{refs:u,$root:f(e,`__root`)}}function Kj(e,t,n,r,i){let a=[];if(t===void 0?n!==void 0&&a.push(`${n} <`):a.push(`${t} <=`),a.push(e),r===void 0?i!==void 0&&a.push(`< ${i}`):a.push(`<= ${r}`),a.length>1)return a.join(` `)}function qj({client:e,...t}){let n=G().translations,r=(0,J.useMemo)(()=>Gj({...t,translations:n}),[t.root,t.readOnly,t.writeOnly,t.showExample,t.renderMarkdown,t.renderCodeblock,n]);return(0,Y.jsx)(Nj,{...e,generated:r})}var Jj=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;Object.hasOwnProperty;function Yj(e,t){return typeof e==`string`?(t||(e=e.toLowerCase()),e.replace(Jj,``).replace(/ /g,`-`)):``}var Xj=(0,J.createContext)(``);function Zj({segments:e,children:t}){return(0,Y.jsx)(Xj,{value:Qj(e),children:t})}function Qj(e){if(!e)return null;let t=(0,J.use)(Xj);for(let n of e){let e=Yj(n);e&&(t=t?`${t}.${e}`:e)}return t}function $j(e,t){let n=Qj(e),r=(0,J.useSyncExternalStore)(tM,()=>{let e=eM();return n!==null&&(e===n||e.startsWith(`${n}.`))?e:null},()=>null),i=(0,J.useEffectEvent)(t),a=(0,J.useRef)(!1);return(0,J.useEffect)(()=>{r&&(a.current=!document.getElementById(r),i())},[r]),(0,J.useCallback)(e=>{e&&a.current&&(a.current=!1,(document.getElementById(eM())??e).scrollIntoView())},[])}function eM(){let e=window.location.hash.slice(1);try{return decodeURIComponent(e)}catch{return e}}function tM(e){return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)}function nM({client:e,...t}){let{SchemaUI:n,Markdown:r,CodeBlock:i}=I_(),{schemaUI:a}=L_(),o=(0,J.useMemo)(()=>({renderMarkdown:e=>(0,Y.jsx)(r,{md:e}),renderCodeblock:e=>(0,Y.jsx)(i,{...e})}),[r,i]);return(0,Y.jsx)(n,{...o,showExample:a?.showExample,...t,client:{...e,rootId:Qj([e.name])}})}var rM=(0,J.createContext)(null);function iM({defaultValue:e,children:t}){let[n,r]=(0,J.useState)(e??null);return(0,Y.jsx)(rM,{value:(0,J.useMemo)(()=>({value:n,setValue:r}),[n]),children:t})}function aM({value:e,anchorSegments:t,...n}){let{value:r,setValue:i}=(0,J.use)(rM),a=$j(t??!1,()=>i(e));if(e!==r)return;let o=(0,Y.jsx)(`div`,{ref:a,...n});return t?(0,Y.jsx)(Zj,{segments:t,children:o}):o}function oM({items:e,className:t,...n}){let{value:r,setValue:i}=(0,J.use)(rM);return e.length===1?(0,Y.jsx)(`span`,{className:`min-w-0 px-1.5 font-medium`,children:e[0].label}):(0,Y.jsxs)(cx,{items:e,value:r,onValueChange:i,children:[(0,Y.jsx)(ux,{className:K(`not-prose h-7 w-auto min-w-0 gap-1 border-0 bg-transparent px-1.5 py-0 text-[0.8125rem] font-medium *:min-w-0 hover:bg-fd-accent hover:text-fd-accent-foreground focus:ring-0 focus-visible:ring-2 focus-visible:ring-inset data-popup-open:bg-fd-accent`,t),...n,children:(0,Y.jsx)(lx,{})}),(0,Y.jsx)(mx,{children:e.map(({label:e,value:t})=>(0,Y.jsx)(hx,{value:t,children:e},t))})]})}function sM({id:e,...t}){let{Heading:n}=I_();return(0,Y.jsx)(n,{id:Qj([e]),...t})}function cM({name:e,generate:t}){let n=G({note:`TypeScript definitions`}),[r,i]=yt(()=>{let e=t();return typeof e==`string`?navigator.clipboard.writeText(e):Promise.resolve(e).then(e=>{if(e)return navigator.clipboard.writeText(e)})});return(0,Y.jsxs)(`button`,{type:`button`,title:n(`Use the {name} type in TypeScript.`,{variables:{name:e}}),onClick:i,className:K(kt({variant:`ghost`,size:`sm`}),`-my-1 shrink-0 gap-1.5 text-fd-muted-foreground [&_svg]:size-3.5`),children:[r?(0,Y.jsx)(L,{}):(0,Y.jsx)(it,{}),`TypeScript`]})}var lM=(0,J.lazy)(()=>ct(()=>import(`./client-DRtkFydB.js`),[]));function uM({type:e,path:t,method:n,operation:r,pathItem:i,...a}){return(0,Y.jsx)(av,{type:e,path:t,method:n,operation:r,pathItem:i,children:(0,Y.jsx)(dM,{...a})})}function dM({showTitle:e,showDescription:t,headingLevel:n=2}){let r=G({note:`operation page`}),{resolve:i}=F_().doc,a=L_(),{type:o,path:s,method:c,operation:l,pathItem:u,title:d,description:f,requestBody:p,parameters:m,security:h,responses:g,callbacks:_}=cv(),v=null,y=t&&f&&(0,Y.jsx)(ly,{md:f}),b=null,x=null,S=null,C=null;if(e?(v=(0,Y.jsxs)(`div`,{className:`flex gap-2 items-center justify-between`,children:[(0,Y.jsx)(sM,{id:d,depth:n,className:`my-0!`,children:d}),l.deprecated&&(0,Y.jsx)(dy,{color:`yellow`,className:`text-xs not-prose`,children:r(`Deprecated`)})]}),n++):l.deprecated&&(v=(0,Y.jsx)(pt,{type:`warn`,title:r(`Deprecated`),className:`mt-0!`})),p){let e=Object.entries(p.content),t=e.map(([e])=>({label:(0,Y.jsx)(`code`,{children:e}),value:e}));b=(0,Y.jsxs)(iM,{defaultValue:t[0].value,children:[(0,Y.jsx)(fM,{id:`request-body`,depth:n,title:r(`Request Body`)}),p.description&&(0,Y.jsx)(`div`,{className:`mb-3 prose-no-margin text-fd-muted-foreground`,children:(0,Y.jsx)(ly,{md:p.description})}),e.map(([e,n])=>(0,Y.jsx)(aM,{anchorSegments:[`request-body`,e],value:e,children:(0,Y.jsx)(pM,{schema:n.schema,required:p.required,selector:(0,Y.jsx)(oM,{"aria-label":r(`Media type`),items:t}),request:!0})},e))]})}g.length>0&&a.showResponseSchema!==!1&&(S=(0,Y.jsx)(mM,{responses:g,headingLevel:n}));let w=m.map(({in:e,items:t})=>{let a=r(e===`path`?`Path Parameters`:e===`query`?`Query Parameters`:e===`header`?`Header Parameters`:`Cookie Parameters`);return(0,Y.jsxs)(J.Fragment,{children:[(0,Y.jsx)(fM,{id:`parameters-${e}`,depth:n,title:a}),(0,Y.jsx)(Zj,{segments:[`parameters`,e],children:(0,Y.jsx)(`div`,{className:`rounded-xl border bg-fd-card px-3`,children:t.map(e=>{if(e.schema==null)return;let t=i(e.schema);return(0,Y.jsx)(nM,{client:{name:e.name,required:e.required},root:typeof t==`object`?{...t,description:e.description??t.description,deprecated:(e.deprecated??!1)||(t.deprecated??!1)}:t,readOnly:c===`get`,writeOnly:c!==`get`},e.name)})})})]},e)});if(h.length>0){let e=h.map((e,t)=>({value:String(t),label:(0,Y.jsx)(`code`,{className:`flex min-w-0 items-center gap-1`,children:e.map(({key:e,scopes:t},n)=>(0,Y.jsxs)(J.Fragment,{children:[n>0&&(0,Y.jsx)(Xt,{className:`size-3 shrink-0 text-fd-muted-foreground`}),(0,Y.jsxs)(`span`,{className:`truncate`,children:[e,t.length>0&&(0,Y.jsxs)(`span`,{className:`text-fd-muted-foreground`,children:[` `,t.join(`, `)]})]})]},e))})}));x=(0,Y.jsxs)(iM,{defaultValue:e[0].value,children:[(0,Y.jsx)(fM,{id:`authorization`,depth:n,title:r(`Authorization`)}),(0,Y.jsxs)(`div`,{className:`overflow-hidden rounded-xl border bg-fd-card`,children:[(0,Y.jsx)(`div`,{className:`flex h-9 items-center border-b ps-1.5 pe-1 text-[0.8125rem] not-prose`,children:(0,Y.jsx)(oM,{"aria-label":r(`Security scheme`),items:e})}),h.map((t,n)=>(0,Y.jsx)(aM,{value:e[n].value,className:`px-3`,children:t.map(({key:e,scopes:t,scheme:n})=>n&&(0,Y.jsx)(gM,{scheme:n,scopes:t},e))},n))]})]})}if(_.length>0&&(C=(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(fM,{id:`callbacks`,depth:n,title:r(`Callbacks`)}),(0,Y.jsx)(`div`,{className:`overflow-hidden rounded-xl border bg-fd-card not-prose`,children:_.map((e,t)=>(0,Y.jsx)(_M,{item:e,path:s,headingLevel:n+1},t))})]})),o===`operation`){let e=a.playground,t=(0,Y.jsx)(my,{method:c,route:s,deprecated:l.deprecated}),n=t;if(e?.enabled??!0){let{enabled:r,render:i,...a}=e??{};n=i?i({path:s,method:c,operation:l,pathItem:u}):(0,Y.jsx)(J.Suspense,{fallback:t,children:(0,Y.jsx)(lM,{...a})})}let r={header:v,description:y,authSchemes:x,body:b,callbacks:C,parameters:w,responses:S,apiPlayground:n,apiExample:(0,Y.jsx)(Pw,{})};return a.content?.renderOperationLayout?a.content.renderOperationLayout(r,{path:s,operation:l,method:c,pathItem:u,ctx:a}):(0,Y.jsxs)(`div`,{className:`flex flex-col gap-x-6 gap-y-4 @4xl:flex-row @4xl:items-start`,children:[(0,Y.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[r.header,r.apiPlayground,r.description,r.authSchemes,r.parameters,r.body,r.responses,r.callbacks]}),(0,Y.jsx)(`div`,{className:`@4xl:sticky @4xl:top-[calc(var(--fd-docs-row-3,0px)+1rem)] @4xl:flex @4xl:max-h-[calc(var(--fd-docs-height,100dvh)-var(--fd-docs-row-3,0px)-2rem)] @4xl:w-[400px] @4xl:flex-col`,children:r.apiExample})]})}let T={header:v,description:y,authSchemes:x,body:b,callbacks:C,parameters:w,responses:S,requests:(0,Y.jsx)(Bw,{})};return a.content?.renderWebhookLayout?a.content.renderWebhookLayout(T):(0,Y.jsxs)(`div`,{className:`flex flex-col-reverse gap-x-6 gap-y-4 @4xl:flex-row @4xl:items-start`,children:[(0,Y.jsxs)(`div`,{className:`min-w-0 flex-1 prose-no-margin`,children:[T.header,T.description,T.authSchemes,T.parameters,T.body,T.responses,T.callbacks]}),(0,Y.jsx)(`div`,{className:`@4xl:sticky @4xl:top-[calc(var(--fd-docs-row-3,0px)+1rem)] @4xl:flex @4xl:max-h-[calc(var(--fd-docs-height,100dvh)-var(--fd-docs-row-3,0px)-2rem)] @4xl:w-[400px] @4xl:flex-col`,children:T.requests})]})}function fM({id:e,depth:t,title:n,children:r}){return(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 mt-10 mb-3 first:mt-0`,children:[(0,Y.jsx)(sM,{id:e,depth:t,className:`my-0! me-auto`,children:n}),r]})}function pM({schema:e,required:t,selector:n,request:r=!1}){let{method:i}=cv(),{doc:a,generateTypeScriptDefinitions:o}=F_();return e?(0,Y.jsx)(nM,{client:{name:r?`body`:`response`,as:`body`,required:t,selector:n,actions:o&&(0,Y.jsx)(cM,{name:r?`request body`:`response body`,generate:()=>o(e,{name:r?`RequestBody`:`ResponseBody`,readOnly:!r,writeOnly:r,doc:a})})},root:e,readOnly:!r||i===`get`,writeOnly:r&&i!==`get`}):(0,Y.jsx)(`div`,{className:`not-prose flex h-9 items-center rounded-xl border bg-fd-card ps-1.5 pe-1 text-[0.8125rem]`,children:n})}function mM({responses:e,headingLevel:t}){let n=G({note:`operation page`}),[r,i]=(0,J.useState)(e[0].status);return(0,Y.jsxs)(jx,{value:r,onValueChange:i,className:`mt-10 first:mt-0`,children:[(0,Y.jsx)(fM,{id:`response-body`,depth:t,title:n(`Response Body`),children:(0,Y.jsx)(Nx,{className:`max-w-full overflow-x-auto font-mono [scrollbar-width:none]`,items:e.map(e=>({value:e.status,label:e.status}))})}),e.map(e=>(0,Y.jsx)(hM,{item:e,onLink:()=>i(e.status)},e.status))]})}function hM({item:{status:e,response:t,content:n},onLink:r}){let i=G({note:`operation page`}),a=[`response`,e],o=$j(a,r),s=Object.entries(n),c=s.map(([e])=>({label:(0,Y.jsx)(`code`,{children:e}),value:e}));return(0,Y.jsx)(Mx,{value:e,ref:o,children:(0,Y.jsx)(Zj,{segments:a,children:(0,Y.jsxs)(iM,{defaultValue:c[0]?.value,children:[t.description&&(0,Y.jsx)(`div`,{className:`mb-3 prose-no-margin text-fd-muted-foreground`,children:(0,Y.jsx)(ly,{md:t.description})}),s.map(([e,t])=>(0,Y.jsx)(aM,{value:e,anchorSegments:[e],children:(0,Y.jsx)(pM,{schema:t.schema,selector:(0,Y.jsx)(oM,{"aria-label":i(`Media type`),items:c})})},e))]})})})}function gM({scheme:e,scopes:t}){let n=G({note:`security scheme`}),r=n(`Authorization`),i=n(`Bearer <token>`),a=`header`,o=e.type===`openIdConnect`?e.openIdConnectUrl:void 0;switch(e.type){case`apiKey`:r=e.name,i=`<token>`,a=e.in;break;case`mutualTLS`:r=n(`Client certificate`),i=void 0,a=`tls`;break;case`http`:{let t=e.scheme?.toLowerCase();t===`basic`?i=n(`Basic <token>`):t===`bearer`&&e.bearerFormat?i=`Bearer <${e.bearerFormat}>`:e.scheme&&t!==`bearer`&&(i=`${e.scheme[0].toUpperCase()}${e.scheme.slice(1)} <token>`);break}case`oauth2`:case`openIdConnect`:break;default:return null}return(0,Y.jsxs)(`div`,{className:`border-t py-2.5 first:border-t-0`,children:[(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 not-prose`,children:[(0,Y.jsx)(`span`,{className:`rounded-md border bg-fd-secondary px-1.5 font-mono text-xs leading-5 text-fd-muted-foreground`,children:a}),(0,Y.jsx)(`code`,{className:`text-[0.8125rem] font-medium text-fd-primary`,children:r}),i&&(0,Y.jsx)(`code`,{className:`text-xs text-fd-muted-foreground`,children:i}),e.deprecated&&(0,Y.jsx)(dy,{color:`red`,className:`text-xs`,children:n(`Deprecated`)})]}),(e.description||t.length>0||o)&&(0,Y.jsxs)(`div`,{className:`mt-1 prose-no-margin text-fd-muted-foreground`,children:[e.description&&(0,Y.jsx)(ly,{md:e.description}),o&&(0,Y.jsxs)(`p`,{children:[n(`OpenID Connect`),`: `,(0,Y.jsx)(`code`,{children:o})]}),t.length>0&&(0,Y.jsxs)(`p`,{children:[n(`Scope`),`: `,(0,Y.jsx)(`code`,{children:t.join(`, `)})]})]})]})}function _M({item:e,path:t,headingLevel:n}){let r=G({note:`operation page`}),i=[`callbacks`,e.name,e.path,e.method],[a,o]=(0,J.useState)(!1),s=$j(i,()=>o(!0));return(0,Y.jsxs)(Ny,{open:a,onOpenChange:o,children:[(0,Y.jsxs)(Fy,{className:`group grid w-full grid-cols-[auto_minmax(0,1fr)_auto] items-baseline gap-x-2 gap-y-1 border-t px-4 py-3 text-start transition-colors first:border-t-0 hover:bg-fd-accent/40 focus-visible:bg-fd-accent/40 focus-visible:outline-none`,children:[(0,Y.jsx)(`span`,{className:`col-span-2 font-mono text-[0.8125rem] font-medium`,children:e.name}),(0,Y.jsx)(xt,{className:`row-span-2 ms-1 size-4 self-center text-fd-muted-foreground transition-transform group-hover:translate-x-0.5 motion-reduce:transition-none`}),(0,Y.jsx)(py,{className:`text-xs`,children:e.method}),(0,Y.jsx)(`code`,{className:`text-xs wrap-anywhere text-fd-muted-foreground`,children:e.path})]}),(0,Y.jsxs)(Iy,{className:`sm:max-h-[min(52rem,calc(100dvh-3rem))] sm:w-[min(64rem,calc(100vw-3rem))]`,children:[(0,Y.jsxs)(`div`,{className:`flex h-12 shrink-0 items-center gap-2 ps-4 pe-2 sm:ps-5`,children:[(0,Y.jsx)(Py,{className:`truncate font-mono text-sm font-medium`,children:e.name}),(0,Y.jsx)(yy,{"aria-label":r(`Close`),className:K(kt({variant:`ghost`,size:`icon-sm`}),`ms-auto shrink-0 text-fd-muted-foreground`),children:(0,Y.jsx)(lt,{})})]}),(0,Y.jsx)(my,{method:e.method,route:e.path,deprecated:e.operation.deprecated,className:`mx-3 mb-3 shrink-0 sm:mx-4`}),(0,Y.jsx)(`div`,{ref:s,className:`fd-scroll-container prose prose-sm min-h-0 flex-1 overflow-y-auto border-t p-5 @container [--fd-docs-row-3:0px]`,children:(0,Y.jsx)(Zj,{segments:i,children:(0,Y.jsx)(uM,{type:`webhook`,path:t,headingLevel:n,method:e.method,pathItem:e.pathItem,operation:e.operation})})})]})]})}function vM(e){return V_({...e,components:{SchemaUI:qj,Operation:uM,Layout:yM,...e.components}})}function yM({operations:e,webhooks:t}){return(0,Y.jsxs)(`div`,{className:`flex flex-col gap-24 text-sm @container`,children:[e?.map(e=>e.children),t?.map(e=>e.children)]})}var bM=4294967295;function xM(e){return!e.sticky&&!e.rawOptions?.strategy}function SM(e,t){return{index:e,captureIndices:t.map(e=>e==null?{start:bM,end:bM,length:0}:{start:e[0],end:e[1],length:e[1]-e[0]})}}var CM=class{patterns;options;regexps;lastSearches;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if(typeof e!=`string`)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}}),this.lastSearches=this.regexps.map(e=>e&&xM(e)?{strId:0,searchedFrom:0,matchIndex:-1,indices:null}:null)}findNextMatchSync(e,t,n){let r=typeof e==`string`?e:e.content,i=typeof e==`string`?0:e.id||0,a=-1,o=0,s=null;for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{let c=i?this.lastSearches[e]:null,l,u;if(c&&c.strId===i&&c.searchedFrom<=t&&(c.matchIndex===-1||c.matchIndex>=t))l=c.matchIndex,u=c.indices;else{n.lastIndex=t;let e=n.exec(r);l=e?e.index:-1,u=e?e.indices:null,c&&(c.strId=i,c.searchedFrom=t,c.matchIndex=l,c.indices=u)}if(l===-1)continue;if(l===t)return SM(e,u);(a===-1||l<o)&&(a=e,o=l,s=u)}catch(e){if(this.options.forgiving)continue;throw e}}return a===-1?null:SM(a,s)}},wM=0;function TM(e){return{content:e,id:++wM}}function EM(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function DM(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var OM=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),kM=String.raw;function AM(e,t){if(e==null)throw Error(t??`Value expected`);return e}var jM=kM`\[\^?`,MM=`c.? | C(?:-.?)?|${kM`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${kM`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${kM`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${kM`o\{[^\}]*\}?`}|${kM`\d{1,3}`}`,NM=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,PM=new RegExp(kM`
|
|
125
|
+
`)?r.push({label:s(`Example`),block:!0,value:n({lang:`json`,code:e})}):t.push({label:s(`Example`),value:e})}return[...t,...r]}function f(e,t){let n=typeof e==`boolean`?String(e):typeof e.$ref==`string`?e.$ref:t;return c.set(n,e),n}function p(e){let t=yi(e);if(typeof t==`boolean`||!t.allOf)return t;let n=l.get(t);return n===void 0&&l.set(t,n=wi(t)),n}function m(e){let t=p(e);return typeof t==`boolean`?!0:t.writeOnly?i:!t.readOnly||r}function h(e){let n=yi(e);if(typeof n==`boolean`){let e=n?`any`:`never`;return{typeName:e,aliasName:e}}return{description:n.description?t(n.description):void 0,infoTags:d(n),typeName:Li(e),aliasName:Li(e,{alias:!0}),deprecated:n.deprecated}}function g(e,t){let n=yi(t);if(typeof n==`boolean`)return{type:`primitive`,...h(t)};if(Array.isArray(n.type)){let r=[];for(let t of n.type){let i=`${e}_type:${t}`;c.set(i,{...n,type:t}),r.push({name:t,$type:i})}return{type:`or`,items:r,...h(t)}}if(n.oneOf&&n.anyOf){let r=[];for(let t of[`anyOf`,`oneOf`]){let i=`${e}_omit:${t}`;c.set(i,{...n,[t]:void 0}),r.push({name:u[i].aliasName,$type:i})}return{type:`and`,items:r,...h(t)}}let r=n.oneOf??n.anyOf;if(r){let i=[];for(let[t,a]of r.entries()){if(!a||typeof a!=`object`||!m(a))continue;let r=yi(a);if(typeof r!=`object`)continue;let o=`${e}_extends:${typeof a.$ref==`string`?a.$ref:t}`;c.set(o,{...n,oneOf:void 0,anyOf:void 0,...r,properties:{...n.properties,...r.properties}}),i.push({$type:o,name:Li(a,{alias:!0})})}return{type:`or`,items:i,...h(t)}}if(n.allOf)return g(e,p(n));if(n.type===`object`){let{properties:r={},patternProperties:i,additionalProperties:a}=n,o=Object.entries(r);i&&o.push(...Object.entries(i));let s=[];for(let[t,[r,i]]of o.entries())i&&m(i)&&s.push({$type:f(i,`${e}#${t}`),name:r,required:n.required?.includes(r)??!1});return a&&m(a)&&s.push({$type:f(a,`${e}#*`),name:`[key: string]`,required:!1}),{type:`object`,props:s,...h(t)}}return n.type===`array`?{type:`array`,item:{$type:f(n.items??!0,`${e}#items`)},...h(t)}:{type:`primitive`,...h(t)}}return{refs:u,$root:f(e,`__root`)}}function Kj(e,t,n,r,i){let a=[];if(t===void 0?n!==void 0&&a.push(`${n} <`):a.push(`${t} <=`),a.push(e),r===void 0?i!==void 0&&a.push(`< ${i}`):a.push(`<= ${r}`),a.length>1)return a.join(` `)}function qj({client:e,...t}){let n=G().translations,r=(0,J.useMemo)(()=>Gj({...t,translations:n}),[t.root,t.readOnly,t.writeOnly,t.showExample,t.renderMarkdown,t.renderCodeblock,n]);return(0,Y.jsx)(Nj,{...e,generated:r})}var Jj=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;Object.hasOwnProperty;function Yj(e,t){return typeof e==`string`?(t||(e=e.toLowerCase()),e.replace(Jj,``).replace(/ /g,`-`)):``}var Xj=(0,J.createContext)(``);function Zj({segments:e,children:t}){return(0,Y.jsx)(Xj,{value:Qj(e),children:t})}function Qj(e){if(!e)return null;let t=(0,J.use)(Xj);for(let n of e){let e=Yj(n);e&&(t=t?`${t}.${e}`:e)}return t}function $j(e,t){let n=Qj(e),r=(0,J.useSyncExternalStore)(tM,()=>{let e=eM();return n!==null&&(e===n||e.startsWith(`${n}.`))?e:null},()=>null),i=(0,J.useEffectEvent)(t),a=(0,J.useRef)(!1);return(0,J.useEffect)(()=>{r&&(a.current=!document.getElementById(r),i())},[r]),(0,J.useCallback)(e=>{e&&a.current&&(a.current=!1,(document.getElementById(eM())??e).scrollIntoView())},[])}function eM(){let e=window.location.hash.slice(1);try{return decodeURIComponent(e)}catch{return e}}function tM(e){return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)}function nM({client:e,...t}){let{SchemaUI:n,Markdown:r,CodeBlock:i}=I_(),{schemaUI:a}=L_(),o=(0,J.useMemo)(()=>({renderMarkdown:e=>(0,Y.jsx)(r,{md:e}),renderCodeblock:e=>(0,Y.jsx)(i,{...e})}),[r,i]);return(0,Y.jsx)(n,{...o,showExample:a?.showExample,...t,client:{...e,rootId:Qj([e.name])}})}var rM=(0,J.createContext)(null);function iM({defaultValue:e,children:t}){let[n,r]=(0,J.useState)(e??null);return(0,Y.jsx)(rM,{value:(0,J.useMemo)(()=>({value:n,setValue:r}),[n]),children:t})}function aM({value:e,anchorSegments:t,...n}){let{value:r,setValue:i}=(0,J.use)(rM),a=$j(t??!1,()=>i(e));if(e!==r)return;let o=(0,Y.jsx)(`div`,{ref:a,...n});return t?(0,Y.jsx)(Zj,{segments:t,children:o}):o}function oM({items:e,className:t,...n}){let{value:r,setValue:i}=(0,J.use)(rM);return e.length===1?(0,Y.jsx)(`span`,{className:`min-w-0 px-1.5 font-medium`,children:e[0].label}):(0,Y.jsxs)(cx,{items:e,value:r,onValueChange:i,children:[(0,Y.jsx)(ux,{className:K(`not-prose h-7 w-auto min-w-0 gap-1 border-0 bg-transparent px-1.5 py-0 text-[0.8125rem] font-medium *:min-w-0 hover:bg-fd-accent hover:text-fd-accent-foreground focus:ring-0 focus-visible:ring-2 focus-visible:ring-inset data-popup-open:bg-fd-accent`,t),...n,children:(0,Y.jsx)(lx,{})}),(0,Y.jsx)(mx,{children:e.map(({label:e,value:t})=>(0,Y.jsx)(hx,{value:t,children:e},t))})]})}function sM({id:e,...t}){let{Heading:n}=I_();return(0,Y.jsx)(n,{id:Qj([e]),...t})}function cM({name:e,generate:t}){let n=G({note:`TypeScript definitions`}),[r,i]=yt(()=>{let e=t();return typeof e==`string`?navigator.clipboard.writeText(e):Promise.resolve(e).then(e=>{if(e)return navigator.clipboard.writeText(e)})});return(0,Y.jsxs)(`button`,{type:`button`,title:n(`Use the {name} type in TypeScript.`,{variables:{name:e}}),onClick:i,className:K(kt({variant:`ghost`,size:`sm`}),`-my-1 shrink-0 gap-1.5 text-fd-muted-foreground [&_svg]:size-3.5`),children:[r?(0,Y.jsx)(L,{}):(0,Y.jsx)(it,{}),`TypeScript`]})}var lM=(0,J.lazy)(()=>ct(()=>import(`./client-CID_ep-s.js`),[]));function uM({type:e,path:t,method:n,operation:r,pathItem:i,...a}){return(0,Y.jsx)(av,{type:e,path:t,method:n,operation:r,pathItem:i,children:(0,Y.jsx)(dM,{...a})})}function dM({showTitle:e,showDescription:t,headingLevel:n=2}){let r=G({note:`operation page`}),{resolve:i}=F_().doc,a=L_(),{type:o,path:s,method:c,operation:l,pathItem:u,title:d,description:f,requestBody:p,parameters:m,security:h,responses:g,callbacks:_}=cv(),v=null,y=t&&f&&(0,Y.jsx)(ly,{md:f}),b=null,x=null,S=null,C=null;if(e?(v=(0,Y.jsxs)(`div`,{className:`flex gap-2 items-center justify-between`,children:[(0,Y.jsx)(sM,{id:d,depth:n,className:`my-0!`,children:d}),l.deprecated&&(0,Y.jsx)(dy,{color:`yellow`,className:`text-xs not-prose`,children:r(`Deprecated`)})]}),n++):l.deprecated&&(v=(0,Y.jsx)(pt,{type:`warn`,title:r(`Deprecated`),className:`mt-0!`})),p){let e=Object.entries(p.content),t=e.map(([e])=>({label:(0,Y.jsx)(`code`,{children:e}),value:e}));b=(0,Y.jsxs)(iM,{defaultValue:t[0].value,children:[(0,Y.jsx)(fM,{id:`request-body`,depth:n,title:r(`Request Body`)}),p.description&&(0,Y.jsx)(`div`,{className:`mb-3 prose-no-margin text-fd-muted-foreground`,children:(0,Y.jsx)(ly,{md:p.description})}),e.map(([e,n])=>(0,Y.jsx)(aM,{anchorSegments:[`request-body`,e],value:e,children:(0,Y.jsx)(pM,{schema:n.schema,required:p.required,selector:(0,Y.jsx)(oM,{"aria-label":r(`Media type`),items:t}),request:!0})},e))]})}g.length>0&&a.showResponseSchema!==!1&&(S=(0,Y.jsx)(mM,{responses:g,headingLevel:n}));let w=m.map(({in:e,items:t})=>{let a=r(e===`path`?`Path Parameters`:e===`query`?`Query Parameters`:e===`header`?`Header Parameters`:`Cookie Parameters`);return(0,Y.jsxs)(J.Fragment,{children:[(0,Y.jsx)(fM,{id:`parameters-${e}`,depth:n,title:a}),(0,Y.jsx)(Zj,{segments:[`parameters`,e],children:(0,Y.jsx)(`div`,{className:`rounded-xl border bg-fd-card px-3`,children:t.map(e=>{if(e.schema==null)return;let t=i(e.schema);return(0,Y.jsx)(nM,{client:{name:e.name,required:e.required},root:typeof t==`object`?{...t,description:e.description??t.description,deprecated:(e.deprecated??!1)||(t.deprecated??!1)}:t,readOnly:c===`get`,writeOnly:c!==`get`},e.name)})})})]},e)});if(h.length>0){let e=h.map((e,t)=>({value:String(t),label:(0,Y.jsx)(`code`,{className:`flex min-w-0 items-center gap-1`,children:e.map(({key:e,scopes:t},n)=>(0,Y.jsxs)(J.Fragment,{children:[n>0&&(0,Y.jsx)(Xt,{className:`size-3 shrink-0 text-fd-muted-foreground`}),(0,Y.jsxs)(`span`,{className:`truncate`,children:[e,t.length>0&&(0,Y.jsxs)(`span`,{className:`text-fd-muted-foreground`,children:[` `,t.join(`, `)]})]})]},e))})}));x=(0,Y.jsxs)(iM,{defaultValue:e[0].value,children:[(0,Y.jsx)(fM,{id:`authorization`,depth:n,title:r(`Authorization`)}),(0,Y.jsxs)(`div`,{className:`overflow-hidden rounded-xl border bg-fd-card`,children:[(0,Y.jsx)(`div`,{className:`flex h-9 items-center border-b ps-1.5 pe-1 text-[0.8125rem] not-prose`,children:(0,Y.jsx)(oM,{"aria-label":r(`Security scheme`),items:e})}),h.map((t,n)=>(0,Y.jsx)(aM,{value:e[n].value,className:`px-3`,children:t.map(({key:e,scopes:t,scheme:n})=>n&&(0,Y.jsx)(gM,{scheme:n,scopes:t},e))},n))]})]})}if(_.length>0&&(C=(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(fM,{id:`callbacks`,depth:n,title:r(`Callbacks`)}),(0,Y.jsx)(`div`,{className:`overflow-hidden rounded-xl border bg-fd-card not-prose`,children:_.map((e,t)=>(0,Y.jsx)(_M,{item:e,path:s,headingLevel:n+1},t))})]})),o===`operation`){let e=a.playground,t=(0,Y.jsx)(my,{method:c,route:s,deprecated:l.deprecated}),n=t;if(e?.enabled??!0){let{enabled:r,render:i,...a}=e??{};n=i?i({path:s,method:c,operation:l,pathItem:u}):(0,Y.jsx)(J.Suspense,{fallback:t,children:(0,Y.jsx)(lM,{...a})})}let r={header:v,description:y,authSchemes:x,body:b,callbacks:C,parameters:w,responses:S,apiPlayground:n,apiExample:(0,Y.jsx)(Pw,{})};return a.content?.renderOperationLayout?a.content.renderOperationLayout(r,{path:s,operation:l,method:c,pathItem:u,ctx:a}):(0,Y.jsxs)(`div`,{className:`flex flex-col gap-x-6 gap-y-4 @4xl:flex-row @4xl:items-start`,children:[(0,Y.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[r.header,r.apiPlayground,r.description,r.authSchemes,r.parameters,r.body,r.responses,r.callbacks]}),(0,Y.jsx)(`div`,{className:`@4xl:sticky @4xl:top-[calc(var(--fd-docs-row-3,0px)+1rem)] @4xl:flex @4xl:max-h-[calc(var(--fd-docs-height,100dvh)-var(--fd-docs-row-3,0px)-2rem)] @4xl:w-[400px] @4xl:flex-col`,children:r.apiExample})]})}let T={header:v,description:y,authSchemes:x,body:b,callbacks:C,parameters:w,responses:S,requests:(0,Y.jsx)(Bw,{})};return a.content?.renderWebhookLayout?a.content.renderWebhookLayout(T):(0,Y.jsxs)(`div`,{className:`flex flex-col-reverse gap-x-6 gap-y-4 @4xl:flex-row @4xl:items-start`,children:[(0,Y.jsxs)(`div`,{className:`min-w-0 flex-1 prose-no-margin`,children:[T.header,T.description,T.authSchemes,T.parameters,T.body,T.responses,T.callbacks]}),(0,Y.jsx)(`div`,{className:`@4xl:sticky @4xl:top-[calc(var(--fd-docs-row-3,0px)+1rem)] @4xl:flex @4xl:max-h-[calc(var(--fd-docs-height,100dvh)-var(--fd-docs-row-3,0px)-2rem)] @4xl:w-[400px] @4xl:flex-col`,children:T.requests})]})}function fM({id:e,depth:t,title:n,children:r}){return(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 mt-10 mb-3 first:mt-0`,children:[(0,Y.jsx)(sM,{id:e,depth:t,className:`my-0! me-auto`,children:n}),r]})}function pM({schema:e,required:t,selector:n,request:r=!1}){let{method:i}=cv(),{doc:a,generateTypeScriptDefinitions:o}=F_();return e?(0,Y.jsx)(nM,{client:{name:r?`body`:`response`,as:`body`,required:t,selector:n,actions:o&&(0,Y.jsx)(cM,{name:r?`request body`:`response body`,generate:()=>o(e,{name:r?`RequestBody`:`ResponseBody`,readOnly:!r,writeOnly:r,doc:a})})},root:e,readOnly:!r||i===`get`,writeOnly:r&&i!==`get`}):(0,Y.jsx)(`div`,{className:`not-prose flex h-9 items-center rounded-xl border bg-fd-card ps-1.5 pe-1 text-[0.8125rem]`,children:n})}function mM({responses:e,headingLevel:t}){let n=G({note:`operation page`}),[r,i]=(0,J.useState)(e[0].status);return(0,Y.jsxs)(jx,{value:r,onValueChange:i,className:`mt-10 first:mt-0`,children:[(0,Y.jsx)(fM,{id:`response-body`,depth:t,title:n(`Response Body`),children:(0,Y.jsx)(Nx,{className:`max-w-full overflow-x-auto font-mono [scrollbar-width:none]`,items:e.map(e=>({value:e.status,label:e.status}))})}),e.map(e=>(0,Y.jsx)(hM,{item:e,onLink:()=>i(e.status)},e.status))]})}function hM({item:{status:e,response:t,content:n},onLink:r}){let i=G({note:`operation page`}),a=[`response`,e],o=$j(a,r),s=Object.entries(n),c=s.map(([e])=>({label:(0,Y.jsx)(`code`,{children:e}),value:e}));return(0,Y.jsx)(Mx,{value:e,ref:o,children:(0,Y.jsx)(Zj,{segments:a,children:(0,Y.jsxs)(iM,{defaultValue:c[0]?.value,children:[t.description&&(0,Y.jsx)(`div`,{className:`mb-3 prose-no-margin text-fd-muted-foreground`,children:(0,Y.jsx)(ly,{md:t.description})}),s.map(([e,t])=>(0,Y.jsx)(aM,{value:e,anchorSegments:[e],children:(0,Y.jsx)(pM,{schema:t.schema,selector:(0,Y.jsx)(oM,{"aria-label":i(`Media type`),items:c})})},e))]})})})}function gM({scheme:e,scopes:t}){let n=G({note:`security scheme`}),r=n(`Authorization`),i=n(`Bearer <token>`),a=`header`,o=e.type===`openIdConnect`?e.openIdConnectUrl:void 0;switch(e.type){case`apiKey`:r=e.name,i=`<token>`,a=e.in;break;case`mutualTLS`:r=n(`Client certificate`),i=void 0,a=`tls`;break;case`http`:{let t=e.scheme?.toLowerCase();t===`basic`?i=n(`Basic <token>`):t===`bearer`&&e.bearerFormat?i=`Bearer <${e.bearerFormat}>`:e.scheme&&t!==`bearer`&&(i=`${e.scheme[0].toUpperCase()}${e.scheme.slice(1)} <token>`);break}case`oauth2`:case`openIdConnect`:break;default:return null}return(0,Y.jsxs)(`div`,{className:`border-t py-2.5 first:border-t-0`,children:[(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 not-prose`,children:[(0,Y.jsx)(`span`,{className:`rounded-md border bg-fd-secondary px-1.5 font-mono text-xs leading-5 text-fd-muted-foreground`,children:a}),(0,Y.jsx)(`code`,{className:`text-[0.8125rem] font-medium text-fd-primary`,children:r}),i&&(0,Y.jsx)(`code`,{className:`text-xs text-fd-muted-foreground`,children:i}),e.deprecated&&(0,Y.jsx)(dy,{color:`red`,className:`text-xs`,children:n(`Deprecated`)})]}),(e.description||t.length>0||o)&&(0,Y.jsxs)(`div`,{className:`mt-1 prose-no-margin text-fd-muted-foreground`,children:[e.description&&(0,Y.jsx)(ly,{md:e.description}),o&&(0,Y.jsxs)(`p`,{children:[n(`OpenID Connect`),`: `,(0,Y.jsx)(`code`,{children:o})]}),t.length>0&&(0,Y.jsxs)(`p`,{children:[n(`Scope`),`: `,(0,Y.jsx)(`code`,{children:t.join(`, `)})]})]})]})}function _M({item:e,path:t,headingLevel:n}){let r=G({note:`operation page`}),i=[`callbacks`,e.name,e.path,e.method],[a,o]=(0,J.useState)(!1),s=$j(i,()=>o(!0));return(0,Y.jsxs)(Ny,{open:a,onOpenChange:o,children:[(0,Y.jsxs)(Fy,{className:`group grid w-full grid-cols-[auto_minmax(0,1fr)_auto] items-baseline gap-x-2 gap-y-1 border-t px-4 py-3 text-start transition-colors first:border-t-0 hover:bg-fd-accent/40 focus-visible:bg-fd-accent/40 focus-visible:outline-none`,children:[(0,Y.jsx)(`span`,{className:`col-span-2 font-mono text-[0.8125rem] font-medium`,children:e.name}),(0,Y.jsx)(xt,{className:`row-span-2 ms-1 size-4 self-center text-fd-muted-foreground transition-transform group-hover:translate-x-0.5 motion-reduce:transition-none`}),(0,Y.jsx)(py,{className:`text-xs`,children:e.method}),(0,Y.jsx)(`code`,{className:`text-xs wrap-anywhere text-fd-muted-foreground`,children:e.path})]}),(0,Y.jsxs)(Iy,{className:`sm:max-h-[min(52rem,calc(100dvh-3rem))] sm:w-[min(64rem,calc(100vw-3rem))]`,children:[(0,Y.jsxs)(`div`,{className:`flex h-12 shrink-0 items-center gap-2 ps-4 pe-2 sm:ps-5`,children:[(0,Y.jsx)(Py,{className:`truncate font-mono text-sm font-medium`,children:e.name}),(0,Y.jsx)(yy,{"aria-label":r(`Close`),className:K(kt({variant:`ghost`,size:`icon-sm`}),`ms-auto shrink-0 text-fd-muted-foreground`),children:(0,Y.jsx)(lt,{})})]}),(0,Y.jsx)(my,{method:e.method,route:e.path,deprecated:e.operation.deprecated,className:`mx-3 mb-3 shrink-0 sm:mx-4`}),(0,Y.jsx)(`div`,{ref:s,className:`fd-scroll-container prose prose-sm min-h-0 flex-1 overflow-y-auto border-t p-5 @container [--fd-docs-row-3:0px]`,children:(0,Y.jsx)(Zj,{segments:i,children:(0,Y.jsx)(uM,{type:`webhook`,path:t,headingLevel:n,method:e.method,pathItem:e.pathItem,operation:e.operation})})})]})]})}function vM(e){return V_({...e,components:{SchemaUI:qj,Operation:uM,Layout:yM,...e.components}})}function yM({operations:e,webhooks:t}){return(0,Y.jsxs)(`div`,{className:`flex flex-col gap-24 text-sm @container`,children:[e?.map(e=>e.children),t?.map(e=>e.children)]})}var bM=4294967295;function xM(e){return!e.sticky&&!e.rawOptions?.strategy}function SM(e,t){return{index:e,captureIndices:t.map(e=>e==null?{start:bM,end:bM,length:0}:{start:e[0],end:e[1],length:e[1]-e[0]})}}var CM=class{patterns;options;regexps;lastSearches;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if(typeof e!=`string`)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}}),this.lastSearches=this.regexps.map(e=>e&&xM(e)?{strId:0,searchedFrom:0,matchIndex:-1,indices:null}:null)}findNextMatchSync(e,t,n){let r=typeof e==`string`?e:e.content,i=typeof e==`string`?0:e.id||0,a=-1,o=0,s=null;for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{let c=i?this.lastSearches[e]:null,l,u;if(c&&c.strId===i&&c.searchedFrom<=t&&(c.matchIndex===-1||c.matchIndex>=t))l=c.matchIndex,u=c.indices;else{n.lastIndex=t;let e=n.exec(r);l=e?e.index:-1,u=e?e.indices:null,c&&(c.strId=i,c.searchedFrom=t,c.matchIndex=l,c.indices=u)}if(l===-1)continue;if(l===t)return SM(e,u);(a===-1||l<o)&&(a=e,o=l,s=u)}catch(e){if(this.options.forgiving)continue;throw e}}return a===-1?null:SM(a,s)}},wM=0;function TM(e){return{content:e,id:++wM}}function EM(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function DM(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var OM=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),kM=String.raw;function AM(e,t){if(e==null)throw Error(t??`Value expected`);return e}var jM=kM`\[\^?`,MM=`c.? | C(?:-.?)?|${kM`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${kM`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${kM`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${kM`o\{[^\}]*\}?`}|${kM`\d{1,3}`}`,NM=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,PM=new RegExp(kM`
|
|
126
126
|
\\ (?:
|
|
127
127
|
${MM}
|
|
128
128
|
| [gk]<[^>]*>?
|