spets 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -101
- package/dist/{chunk-2MUV3F53.js → chunk-63Q6RNKK.js} +1 -6
- package/dist/{chunk-3JIHGW47.js → chunk-6FL7APE6.js} +1 -1
- package/dist/{chunk-ZRWVDWBF.js → chunk-75EYXFBG.js} +7 -7
- package/dist/{chunk-BCOGSLCX.js → chunk-P3GQOSMU.js} +18 -23
- package/dist/{chunk-OIFVTELS.js → chunk-R62NYMA5.js} +1 -1
- package/dist/{config-FMQ5APSF.js → config-WVNAEABV.js} +2 -2
- package/dist/{docs-FNCV4EQF.js → docs-KTGUMHHF.js} +2 -2
- package/dist/index.js +140 -3389
- package/dist/{knowledge-TVXZATJX.js → knowledge-EVKAWXD4.js} +2 -2
- package/dist/{tasks-2IAXZVDS.js → tasks-EKOBEJ45.js} +2 -2
- package/package.json +1 -1
- package/web/dist/assets/{index-D7PKBhmU.js → index-DkQph699.js} +1 -1
- package/web/dist/index.html +1 -1
- package/assets/github/ISSUE_TEMPLATE/spets-task.yml +0 -23
- package/assets/github/workflows/spets.yml +0 -248
- package/templates/hooks/cleanup-branch.sh +0 -37
package/package.json
CHANGED
|
@@ -162,7 +162,7 @@ Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}
|
|
|
162
162
|
*
|
|
163
163
|
* This source code is licensed under the ISC license.
|
|
164
164
|
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/const Dw=Tt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function kv(t){var l,r,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(l=0;l<s;l++)t[l]&&(r=kv(t[l]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}function Nw(){for(var t,l,r=0,a="",s=arguments.length;r<s;r++)(t=arguments[r])&&(l=kv(t))&&(a&&(a+=" "),a+=l);return a}const Xh="-",_w=t=>{const l=Lw(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:c=>{const d=c.split(Xh);return d[0]===""&&d.length!==1&&d.shift(),Tv(d,l)||jw(c)},getConflictingClassGroupIds:(c,d)=>{const p=r[c]||[];return d&&a[c]?[...p,...a[c]]:p}}},Tv=(t,l)=>{var c;if(t.length===0)return l.classGroupId;const r=t[0],a=l.nextPart.get(r),s=a?Tv(t.slice(1),a):void 0;if(s)return s;if(l.validators.length===0)return;const o=t.join(Xh);return(c=l.validators.find(({validator:d})=>d(o)))==null?void 0:c.classGroupId},Ly=/^\[(.+)\]$/,jw=t=>{if(Ly.test(t)){const l=Ly.exec(t)[1],r=l==null?void 0:l.substring(0,l.indexOf(":"));if(r)return"arbitrary.."+r}},Lw=t=>{const{theme:l,prefix:r}=t,a={nextPart:new Map,validators:[]};return Bw(Object.entries(t.classGroups),r).forEach(([o,c])=>{xh(c,a,o,l)}),a},xh=(t,l,r,a)=>{t.forEach(s=>{if(typeof s=="string"){const o=s===""?l:Uy(l,s);o.classGroupId=r;return}if(typeof s=="function"){if(Uw(s)){xh(s(a),l,r,a);return}l.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,c])=>{xh(c,Uy(l,o),r,a)})})},Uy=(t,l)=>{let r=t;return l.split(Xh).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},Uw=t=>t.isThemeGetter,Bw=(t,l)=>l?t.map(([r,a])=>{const s=a.map(o=>typeof o=="string"?l+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([c,d])=>[l+c,d])):o);return[r,s]}):t,Hw=t=>{if(t<1)return{get:()=>{},set:()=>{}};let l=0,r=new Map,a=new Map;const s=(o,c)=>{r.set(o,c),l++,l>t&&(l=0,a=r,r=new Map)};return{get(o){let c=r.get(o);if(c!==void 0)return c;if((c=a.get(o))!==void 0)return s(o,c),c},set(o,c){r.has(o)?r.set(o,c):s(o,c)}}},Av="!",qw=t=>{const{separator:l,experimentalParseClassName:r}=t,a=l.length===1,s=l[0],o=l.length,c=d=>{const p=[];let m=0,y=0,g;for(let T=0;T<d.length;T++){let k=d[T];if(m===0){if(k===s&&(a||d.slice(T,T+o)===l)){p.push(d.slice(y,T)),y=T+o;continue}if(k==="/"){g=T;continue}}k==="["?m++:k==="]"&&m--}const x=p.length===0?d:d.substring(y),v=x.startsWith(Av),C=v?x.substring(1):x,z=g&&g>y?g-y:void 0;return{modifiers:p,hasImportantModifier:v,baseClassName:C,maybePostfixModifierPosition:z}};return r?d=>r({className:d,parseClassName:c}):c},Qw=t=>{if(t.length<=1)return t;const l=[];let r=[];return t.forEach(a=>{a[0]==="["?(l.push(...r.sort(),a),r=[]):r.push(a)}),l.push(...r.sort()),l},Fw=t=>({cache:Hw(t.cacheSize),parseClassName:qw(t),..._w(t)}),Yw=/\s+/,Gw=(t,l)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s}=l,o=[],c=t.trim().split(Yw);let d="";for(let p=c.length-1;p>=0;p-=1){const m=c[p],{modifiers:y,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:v}=r(m);let C=!!v,z=a(C?x.substring(0,v):x);if(!z){if(!C){d=m+(d.length>0?" "+d:d);continue}if(z=a(x),!z){d=m+(d.length>0?" "+d:d);continue}C=!1}const T=Qw(y).join(":"),k=g?T+Av:T,U=k+z;if(o.includes(U))continue;o.push(U);const D=s(z,C);for(let Y=0;Y<D.length;++Y){const P=D[Y];o.push(k+P)}d=m+(d.length>0?" "+d:d)}return d};function Vw(){let t=0,l,r,a="";for(;t<arguments.length;)(l=arguments[t++])&&(r=zv(l))&&(a&&(a+=" "),a+=r);return a}const zv=t=>{if(typeof t=="string")return t;let l,r="";for(let a=0;a<t.length;a++)t[a]&&(l=zv(t[a]))&&(r&&(r+=" "),r+=l);return r};function Xw(t,...l){let r,a,s,o=c;function c(p){const m=l.reduce((y,g)=>g(y),t());return r=Fw(m),a=r.cache.get,s=r.cache.set,o=d,d(p)}function d(p){const m=a(p);if(m)return m;const y=Gw(p,r);return s(p,y),y}return function(){return o(Vw.apply(null,arguments))}}const et=t=>{const l=r=>r[t]||[];return l.isThemeGetter=!0,l},Rv=/^\[(?:([a-z-]+):)?(.+)\]$/i,Kw=/^\d+\/\d+$/,Zw=new Set(["px","full","screen"]),Iw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Pw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$w=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ww=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ul=t=>Mr(t)||Zw.has(t)||Kw.test(t),Fl=t=>Ir(t,"length",uE),Mr=t=>!!t&&!Number.isNaN(Number(t)),qf=t=>Ir(t,"number",Mr),Za=t=>!!t&&Number.isInteger(Number(t)),eE=t=>t.endsWith("%")&&Mr(t.slice(0,-1)),Ce=t=>Rv.test(t),Yl=t=>Iw.test(t),tE=new Set(["length","size","percentage"]),nE=t=>Ir(t,tE,Ov),lE=t=>Ir(t,"position",Ov),iE=new Set(["image","url"]),rE=t=>Ir(t,iE,oE),aE=t=>Ir(t,"",sE),Ia=()=>!0,Ir=(t,l,r)=>{const a=Rv.exec(t);return a?a[1]?typeof l=="string"?a[1]===l:l.has(a[1]):r(a[2]):!1},uE=t=>Jw.test(t)&&!Pw.test(t),Ov=()=>!1,sE=t=>$w.test(t),oE=t=>Ww.test(t),cE=()=>{const t=et("colors"),l=et("spacing"),r=et("blur"),a=et("brightness"),s=et("borderColor"),o=et("borderRadius"),c=et("borderSpacing"),d=et("borderWidth"),p=et("contrast"),m=et("grayscale"),y=et("hueRotate"),g=et("invert"),x=et("gap"),v=et("gradientColorStops"),C=et("gradientColorStopPositions"),z=et("inset"),T=et("margin"),k=et("opacity"),U=et("padding"),D=et("saturate"),Y=et("scale"),P=et("sepia"),B=et("skew"),ee=et("space"),V=et("translate"),le=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],ie=()=>["auto",Ce,l],$=()=>[Ce,l],Se=()=>["",ul,Fl],se=()=>["auto",Mr,Ce],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>["start","end","center","between","around","evenly","stretch"],ve=()=>["","0",Ce],A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[Mr,Ce];return{cacheSize:500,separator:":",theme:{colors:[Ia],spacing:[ul,Fl],blur:["none","",Yl,Ce],brightness:M(),borderColor:[t],borderRadius:["none","","full",Yl,Ce],borderSpacing:$(),borderWidth:Se(),contrast:M(),grayscale:ve(),hueRotate:M(),invert:ve(),gap:$(),gradientColorStops:[t],gradientColorStopPositions:[eE,Fl],inset:ie(),margin:ie(),opacity:M(),padding:$(),saturate:M(),scale:M(),sepia:ve(),skew:M(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",Ce]}],container:["container"],columns:[{columns:[Yl]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ne(),Ce]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:le()}],"overscroll-x":[{"overscroll-x":le()}],"overscroll-y":[{"overscroll-y":le()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[z]}],"inset-x":[{"inset-x":[z]}],"inset-y":[{"inset-y":[z]}],start:[{start:[z]}],end:[{end:[z]}],top:[{top:[z]}],right:[{right:[z]}],bottom:[{bottom:[z]}],left:[{left:[z]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Za,Ce]}],basis:[{basis:ie()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ce]}],grow:[{grow:ve()}],shrink:[{shrink:ve()}],order:[{order:["first","last","none",Za,Ce]}],"grid-cols":[{"grid-cols":[Ia]}],"col-start-end":[{col:["auto",{span:["full",Za,Ce]},Ce]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[Ia]}],"row-start-end":[{row:["auto",{span:[Za,Ce]},Ce]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ce]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...ce()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ce(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ce(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[U]}],px:[{px:[U]}],py:[{py:[U]}],ps:[{ps:[U]}],pe:[{pe:[U]}],pt:[{pt:[U]}],pr:[{pr:[U]}],pb:[{pb:[U]}],pl:[{pl:[U]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[ee]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ee]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ce,l]}],"min-w":[{"min-w":[Ce,l,"min","max","fit"]}],"max-w":[{"max-w":[Ce,l,"none","full","min","max","fit","prose",{screen:[Yl]},Yl]}],h:[{h:[Ce,l,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ce,l,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ce,l,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ce,l,"auto","min","max","fit"]}],"font-size":[{text:["base",Yl,Fl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qf]}],"font-family":[{font:[Ia]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ce]}],"line-clamp":[{"line-clamp":["none",Mr,qf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ul,Ce]}],"list-image":[{"list-image":["none",Ce]}],"list-style-type":[{list:["none","disc","decimal",Ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ul,Fl]}],"underline-offset":[{"underline-offset":["auto",ul,Ce]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),lE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},rE]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:Q()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Q()]}],"outline-offset":[{"outline-offset":[ul,Ce]}],"outline-w":[{outline:[ul,Fl]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[ul,Fl]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Yl,aE]}],"shadow-color":[{shadow:[Ia]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",Yl,Ce]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[g]}],saturate:[{saturate:[D]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ce]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",Ce]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Y]}],"scale-x":[{"scale-x":[Y]}],"scale-y":[{"scale-y":[Y]}],rotate:[{rotate:[Za,Ce]}],"translate-x":[{"translate-x":[V]}],"translate-y":[{"translate-y":[V]}],"skew-x":[{"skew-x":[B]}],"skew-y":[{"skew-y":[B]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ce]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ul,Fl,qf]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},fE=Xw(cE);function Mv(...t){return fE(Nw(t))}const hE=[{to:"/",icon:Ow,label:"Dashboard"},{to:"/steps",icon:xv,label:"Steps"},{to:"/config",icon:Ev,label:"Config"},{to:"/knowledge",icon:vv,label:"Knowledge"},{to:"/workflow",icon:Sv,label:"Workflow"}];function dE(){return E.jsxs("aside",{className:"flex h-screen w-56 flex-col border-r border-[var(--border)] bg-[var(--card)]",children:[E.jsx("div",{className:"flex h-14 items-center border-b border-[var(--border)] px-4",children:E.jsx("span",{className:"text-lg font-semibold",children:"spets"})}),E.jsx("nav",{className:"flex-1 space-y-1 p-2",children:hE.map(({to:t,icon:l,label:r})=>E.jsxs(gv,{to:t,end:t==="/",className:({isActive:a})=>Mv("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors",a?"bg-[var(--accent)] text-[var(--accent-foreground)]":"text-[var(--muted-foreground)] hover:bg-[var(--accent)] hover:text-[var(--accent-foreground)]"),children:[E.jsx(l,{className:"h-4 w-4"}),r]},t))})]})}function mE(){return E.jsxs("div",{className:"flex h-screen overflow-hidden",children:[E.jsx(dE,{}),E.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:E.jsx(q2,{})})]})}const pE="/api";class gE extends Error{constructor(l,r){super(r),this.status=l,this.name="ApiError"}}async function Ys(t,l){const r=await fetch(`${pE}${t}`,{headers:{"Content-Type":"application/json",...l==null?void 0:l.headers},...l});if(!r.ok){const s=await r.text();throw new gE(r.status,s||r.statusText)}const a=r.headers.get("content-type");return a!=null&&a.includes("application/json")?r.json():r.text()}const tt={get:t=>Ys(t),put:(t,l)=>Ys(t,{method:"PUT",body:JSON.stringify(l)}),post:(t,l)=>Ys(t,{method:"POST",body:JSON.stringify(l)}),delete:t=>Ys(t,{method:"DELETE"})},By={in_progress:"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200",completed:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200",paused:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",rejected:"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200",pending:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-200",draft:"bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200",approved:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200"};function _i({status:t}){const l=By[t]||By.pending;return E.jsx("span",{className:Mv("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",l),children:t.replace("_"," ")})}function yu({icon:t,title:l,description:r}){return E.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[E.jsx(t,{className:"mb-4 h-12 w-12 text-[var(--muted-foreground)]"}),E.jsx("h3",{className:"text-lg font-medium",children:l}),r&&E.jsx("p",{className:"mt-1 text-sm text-[var(--muted-foreground)]",children:r})]})}function yE(){const t=ov(),{data:l,isLoading:r,error:a}=li({queryKey:["tasks"],queryFn:()=>tt.get("/tasks?limit=50")});if(r)return E.jsx("div",{className:"animate-pulse text-[var(--muted-foreground)]",children:"Loading tasks..."});if(a)return E.jsxs("div",{className:"text-red-500",children:["Failed to load tasks: ",a.message]});const s=(l==null?void 0:l.tasks)??[];return s.length===0?E.jsx(yu,{icon:Rw,title:"No tasks yet",description:"Start a workflow with `spets start` to see tasks here."}):E.jsxs("div",{children:[E.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[E.jsx("h1",{className:"text-2xl font-bold",children:"Dashboard"}),E.jsxs("span",{className:"text-sm text-[var(--muted-foreground)]",children:[l==null?void 0:l.metadata.totalTasks," task",(l==null?void 0:l.metadata.totalTasks)!==1?"s":""]})]}),E.jsx("div",{className:"overflow-hidden rounded-lg border border-[var(--border)]",children:E.jsxs("table",{className:"w-full text-sm",children:[E.jsx("thead",{children:E.jsxs("tr",{className:"border-b border-[var(--border)] bg-[var(--muted)]",children:[E.jsx("th",{className:"px-4 py-3 text-left font-medium text-[var(--muted-foreground)]",children:"Task"}),E.jsx("th",{className:"px-4 py-3 text-left font-medium text-[var(--muted-foreground)]",children:"Status"}),E.jsx("th",{className:"px-4 py-3 text-left font-medium text-[var(--muted-foreground)]",children:"Step"}),E.jsx("th",{className:"px-4 py-3 text-left font-medium text-[var(--muted-foreground)]",children:"Progress"}),E.jsx("th",{className:"px-4 py-3 text-left font-medium text-[var(--muted-foreground)]",children:"Created"})]})}),E.jsx("tbody",{children:s.map(o=>E.jsxs("tr",{onClick:()=>t(`/tasks/${o.taskId}`),className:"cursor-pointer border-b border-[var(--border)] transition-colors hover:bg-[var(--muted)]",children:[E.jsxs("td",{className:"px-4 py-3",children:[E.jsx("div",{className:"font-medium",children:o.taskId}),E.jsx("div",{className:"mt-0.5 truncate text-xs text-[var(--muted-foreground)]",style:{maxWidth:"300px"},children:o.query})]}),E.jsx("td",{className:"px-4 py-3",children:E.jsx(_i,{status:o.status})}),E.jsx("td",{className:"px-4 py-3 text-[var(--muted-foreground)]",children:o.progress.currentStep}),E.jsx("td",{className:"px-4 py-3",children:E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx("div",{className:"h-2 w-24 overflow-hidden rounded-full bg-[var(--muted)]",children:E.jsx("div",{className:"h-full rounded-full bg-blue-500 transition-all",style:{width:`${o.progress.completionPercent}%`}})}),E.jsxs("span",{className:"text-xs text-[var(--muted-foreground)]",children:[o.progress.currentStepIndex,"/",o.progress.totalSteps]})]})}),E.jsx("td",{className:"px-4 py-3 text-xs text-[var(--muted-foreground)]",children:o.createdAt?new Date(o.createdAt).toLocaleDateString():"-"})]},o.taskId))})]})})]})}function bE(t,l){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const vE=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xE=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,SE={};function Hy(t,l){return(SE.jsx?xE:vE).test(t)}const wE=/[ \t\n\f\r]/g;function EE(t){return typeof t=="object"?t.type==="text"?qy(t.value):!1:qy(t)}function qy(t){return t.replace(wE,"")===""}class bu{constructor(l,r,a){this.normal=r,this.property=l,a&&(this.space=a)}}bu.prototype.normal={};bu.prototype.property={};bu.prototype.space=void 0;function Dv(t,l){const r={},a={};for(const s of t)Object.assign(r,s.property),Object.assign(a,s.normal);return new bu(r,a,l)}function Sh(t){return t.toLowerCase()}class Zt{constructor(l,r){this.attribute=r,this.property=l}}Zt.prototype.attribute="";Zt.prototype.booleanish=!1;Zt.prototype.boolean=!1;Zt.prototype.commaOrSpaceSeparated=!1;Zt.prototype.commaSeparated=!1;Zt.prototype.defined=!1;Zt.prototype.mustUseProperty=!1;Zt.prototype.number=!1;Zt.prototype.overloadedBoolean=!1;Zt.prototype.property="";Zt.prototype.spaceSeparated=!1;Zt.prototype.space=void 0;let CE=0;const ke=Hi(),mt=Hi(),wh=Hi(),te=Hi(),Pe=Hi(),Dr=Hi(),ln=Hi();function Hi(){return 2**++CE}const Eh=Object.freeze(Object.defineProperty({__proto__:null,boolean:ke,booleanish:mt,commaOrSpaceSeparated:ln,commaSeparated:Dr,number:te,overloadedBoolean:wh,spaceSeparated:Pe},Symbol.toStringTag,{value:"Module"})),Qf=Object.keys(Eh);class Kh extends Zt{constructor(l,r,a,s){let o=-1;if(super(l,r),Qy(this,"space",s),typeof a=="number")for(;++o<Qf.length;){const c=Qf[o];Qy(this,Qf[o],(a&Eh[c])===Eh[c])}}}Kh.prototype.defined=!0;function Qy(t,l,r){r&&(t[l]=r)}function Jr(t){const l={},r={};for(const[a,s]of Object.entries(t.properties)){const o=new Kh(a,t.transform(t.attributes||{},a),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(a)&&(o.mustUseProperty=!0),l[a]=o,r[Sh(a)]=a,r[Sh(o.attribute)]=a}return new bu(l,r,t.space)}const Nv=Jr({properties:{ariaActiveDescendant:null,ariaAtomic:mt,ariaAutoComplete:null,ariaBusy:mt,ariaChecked:mt,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:Pe,ariaCurrent:null,ariaDescribedBy:Pe,ariaDetails:null,ariaDisabled:mt,ariaDropEffect:Pe,ariaErrorMessage:null,ariaExpanded:mt,ariaFlowTo:Pe,ariaGrabbed:mt,ariaHasPopup:null,ariaHidden:mt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Pe,ariaLevel:te,ariaLive:null,ariaModal:mt,ariaMultiLine:mt,ariaMultiSelectable:mt,ariaOrientation:null,ariaOwns:Pe,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:mt,ariaReadOnly:mt,ariaRelevant:null,ariaRequired:mt,ariaRoleDescription:Pe,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:mt,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null},transform(t,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function _v(t,l){return l in t?t[l]:l}function jv(t,l){return _v(t,l.toLowerCase())}const kE=Jr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Dr,acceptCharset:Pe,accessKey:Pe,action:null,allow:null,allowFullScreen:ke,allowPaymentRequest:ke,allowUserMedia:ke,alt:null,as:null,async:ke,autoCapitalize:null,autoComplete:Pe,autoFocus:ke,autoPlay:ke,blocking:Pe,capture:null,charSet:null,checked:ke,cite:null,className:Pe,cols:te,colSpan:null,content:null,contentEditable:mt,controls:ke,controlsList:Pe,coords:te|Dr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ke,defer:ke,dir:null,dirName:null,disabled:ke,download:wh,draggable:mt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ke,formTarget:null,headers:Pe,height:te,hidden:wh,high:te,href:null,hrefLang:null,htmlFor:Pe,httpEquiv:Pe,id:null,imageSizes:null,imageSrcSet:null,inert:ke,inputMode:null,integrity:null,is:null,isMap:ke,itemId:null,itemProp:Pe,itemRef:Pe,itemScope:ke,itemType:Pe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ke,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:ke,muted:ke,name:null,nonce:null,noModule:ke,noValidate:ke,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ke,optimum:te,pattern:null,ping:Pe,placeholder:null,playsInline:ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ke,referrerPolicy:null,rel:Pe,required:ke,reversed:ke,rows:te,rowSpan:te,sandbox:Pe,scope:null,scoped:ke,seamless:ke,selected:ke,shadowRootClonable:ke,shadowRootDelegatesFocus:ke,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:mt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:ke,useMap:null,value:mt,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Pe,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ke,declare:ke,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:ke,noHref:ke,noShade:ke,noWrap:ke,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:mt,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ke,disableRemotePlayback:ke,prefix:null,property:null,results:te,security:null,unselectable:null},space:"html",transform:jv}),TE=Jr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ln,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:Pe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Dr,g2:Dr,glyphName:Dr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:ln,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:te,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Pe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ln,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ln,rev:ln,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ln,requiredFeatures:ln,requiredFonts:ln,requiredFormats:ln,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:ln,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ln,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ln,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_v}),Lv=Jr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,l){return"xlink:"+l.slice(5).toLowerCase()}}),Uv=Jr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:jv}),Bv=Jr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,l){return"xml:"+l.slice(3).toLowerCase()}}),AE={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},zE=/[A-Z]/g,Fy=/-[a-z]/g,RE=/^data[-\w.:]+$/i;function OE(t,l){const r=Sh(l);let a=l,s=Zt;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&RE.test(l)){if(l.charAt(4)==="-"){const o=l.slice(5).replace(Fy,DE);a="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=l.slice(4);if(!Fy.test(o)){let c=o.replace(zE,ME);c.charAt(0)!=="-"&&(c="-"+c),l="data"+c}}s=Kh}return new s(a,l)}function ME(t){return"-"+t.toLowerCase()}function DE(t){return t.charAt(1).toUpperCase()}const NE=Dv([Nv,kE,Lv,Uv,Bv],"html"),Zh=Dv([Nv,TE,Lv,Uv,Bv],"svg");function _E(t){return t.join(" ").trim()}var zr={},Ff,Yy;function jE(){if(Yy)return Ff;Yy=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
|
|
165
|
+
*/const Dw=Tt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function kv(t){var l,r,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(l=0;l<s;l++)t[l]&&(r=kv(t[l]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}function Nw(){for(var t,l,r=0,a="",s=arguments.length;r<s;r++)(t=arguments[r])&&(l=kv(t))&&(a&&(a+=" "),a+=l);return a}const Xh="-",_w=t=>{const l=Lw(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:c=>{const d=c.split(Xh);return d[0]===""&&d.length!==1&&d.shift(),Tv(d,l)||jw(c)},getConflictingClassGroupIds:(c,d)=>{const p=r[c]||[];return d&&a[c]?[...p,...a[c]]:p}}},Tv=(t,l)=>{var c;if(t.length===0)return l.classGroupId;const r=t[0],a=l.nextPart.get(r),s=a?Tv(t.slice(1),a):void 0;if(s)return s;if(l.validators.length===0)return;const o=t.join(Xh);return(c=l.validators.find(({validator:d})=>d(o)))==null?void 0:c.classGroupId},Ly=/^\[(.+)\]$/,jw=t=>{if(Ly.test(t)){const l=Ly.exec(t)[1],r=l==null?void 0:l.substring(0,l.indexOf(":"));if(r)return"arbitrary.."+r}},Lw=t=>{const{theme:l,prefix:r}=t,a={nextPart:new Map,validators:[]};return Bw(Object.entries(t.classGroups),r).forEach(([o,c])=>{xh(c,a,o,l)}),a},xh=(t,l,r,a)=>{t.forEach(s=>{if(typeof s=="string"){const o=s===""?l:Uy(l,s);o.classGroupId=r;return}if(typeof s=="function"){if(Uw(s)){xh(s(a),l,r,a);return}l.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,c])=>{xh(c,Uy(l,o),r,a)})})},Uy=(t,l)=>{let r=t;return l.split(Xh).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},Uw=t=>t.isThemeGetter,Bw=(t,l)=>l?t.map(([r,a])=>{const s=a.map(o=>typeof o=="string"?l+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([c,d])=>[l+c,d])):o);return[r,s]}):t,Hw=t=>{if(t<1)return{get:()=>{},set:()=>{}};let l=0,r=new Map,a=new Map;const s=(o,c)=>{r.set(o,c),l++,l>t&&(l=0,a=r,r=new Map)};return{get(o){let c=r.get(o);if(c!==void 0)return c;if((c=a.get(o))!==void 0)return s(o,c),c},set(o,c){r.has(o)?r.set(o,c):s(o,c)}}},Av="!",qw=t=>{const{separator:l,experimentalParseClassName:r}=t,a=l.length===1,s=l[0],o=l.length,c=d=>{const p=[];let m=0,y=0,g;for(let T=0;T<d.length;T++){let k=d[T];if(m===0){if(k===s&&(a||d.slice(T,T+o)===l)){p.push(d.slice(y,T)),y=T+o;continue}if(k==="/"){g=T;continue}}k==="["?m++:k==="]"&&m--}const x=p.length===0?d:d.substring(y),v=x.startsWith(Av),C=v?x.substring(1):x,z=g&&g>y?g-y:void 0;return{modifiers:p,hasImportantModifier:v,baseClassName:C,maybePostfixModifierPosition:z}};return r?d=>r({className:d,parseClassName:c}):c},Qw=t=>{if(t.length<=1)return t;const l=[];let r=[];return t.forEach(a=>{a[0]==="["?(l.push(...r.sort(),a),r=[]):r.push(a)}),l.push(...r.sort()),l},Fw=t=>({cache:Hw(t.cacheSize),parseClassName:qw(t),..._w(t)}),Yw=/\s+/,Gw=(t,l)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s}=l,o=[],c=t.trim().split(Yw);let d="";for(let p=c.length-1;p>=0;p-=1){const m=c[p],{modifiers:y,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:v}=r(m);let C=!!v,z=a(C?x.substring(0,v):x);if(!z){if(!C){d=m+(d.length>0?" "+d:d);continue}if(z=a(x),!z){d=m+(d.length>0?" "+d:d);continue}C=!1}const T=Qw(y).join(":"),k=g?T+Av:T,U=k+z;if(o.includes(U))continue;o.push(U);const D=s(z,C);for(let Y=0;Y<D.length;++Y){const P=D[Y];o.push(k+P)}d=m+(d.length>0?" "+d:d)}return d};function Vw(){let t=0,l,r,a="";for(;t<arguments.length;)(l=arguments[t++])&&(r=zv(l))&&(a&&(a+=" "),a+=r);return a}const zv=t=>{if(typeof t=="string")return t;let l,r="";for(let a=0;a<t.length;a++)t[a]&&(l=zv(t[a]))&&(r&&(r+=" "),r+=l);return r};function Xw(t,...l){let r,a,s,o=c;function c(p){const m=l.reduce((y,g)=>g(y),t());return r=Fw(m),a=r.cache.get,s=r.cache.set,o=d,d(p)}function d(p){const m=a(p);if(m)return m;const y=Gw(p,r);return s(p,y),y}return function(){return o(Vw.apply(null,arguments))}}const et=t=>{const l=r=>r[t]||[];return l.isThemeGetter=!0,l},Rv=/^\[(?:([a-z-]+):)?(.+)\]$/i,Kw=/^\d+\/\d+$/,Zw=new Set(["px","full","screen"]),Iw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Pw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$w=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ww=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ul=t=>Mr(t)||Zw.has(t)||Kw.test(t),Fl=t=>Ir(t,"length",uE),Mr=t=>!!t&&!Number.isNaN(Number(t)),qf=t=>Ir(t,"number",Mr),Za=t=>!!t&&Number.isInteger(Number(t)),eE=t=>t.endsWith("%")&&Mr(t.slice(0,-1)),Ce=t=>Rv.test(t),Yl=t=>Iw.test(t),tE=new Set(["length","size","percentage"]),nE=t=>Ir(t,tE,Ov),lE=t=>Ir(t,"position",Ov),iE=new Set(["image","url"]),rE=t=>Ir(t,iE,oE),aE=t=>Ir(t,"",sE),Ia=()=>!0,Ir=(t,l,r)=>{const a=Rv.exec(t);return a?a[1]?typeof l=="string"?a[1]===l:l.has(a[1]):r(a[2]):!1},uE=t=>Jw.test(t)&&!Pw.test(t),Ov=()=>!1,sE=t=>$w.test(t),oE=t=>Ww.test(t),cE=()=>{const t=et("colors"),l=et("spacing"),r=et("blur"),a=et("brightness"),s=et("borderColor"),o=et("borderRadius"),c=et("borderSpacing"),d=et("borderWidth"),p=et("contrast"),m=et("grayscale"),y=et("hueRotate"),g=et("invert"),x=et("gap"),v=et("gradientColorStops"),C=et("gradientColorStopPositions"),z=et("inset"),T=et("margin"),k=et("opacity"),U=et("padding"),D=et("saturate"),Y=et("scale"),P=et("sepia"),B=et("skew"),ee=et("space"),V=et("translate"),le=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],ie=()=>["auto",Ce,l],$=()=>[Ce,l],Se=()=>["",ul,Fl],se=()=>["auto",Mr,Ce],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>["start","end","center","between","around","evenly","stretch"],ve=()=>["","0",Ce],A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[Mr,Ce];return{cacheSize:500,separator:":",theme:{colors:[Ia],spacing:[ul,Fl],blur:["none","",Yl,Ce],brightness:M(),borderColor:[t],borderRadius:["none","","full",Yl,Ce],borderSpacing:$(),borderWidth:Se(),contrast:M(),grayscale:ve(),hueRotate:M(),invert:ve(),gap:$(),gradientColorStops:[t],gradientColorStopPositions:[eE,Fl],inset:ie(),margin:ie(),opacity:M(),padding:$(),saturate:M(),scale:M(),sepia:ve(),skew:M(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",Ce]}],container:["container"],columns:[{columns:[Yl]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ne(),Ce]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:le()}],"overscroll-x":[{"overscroll-x":le()}],"overscroll-y":[{"overscroll-y":le()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[z]}],"inset-x":[{"inset-x":[z]}],"inset-y":[{"inset-y":[z]}],start:[{start:[z]}],end:[{end:[z]}],top:[{top:[z]}],right:[{right:[z]}],bottom:[{bottom:[z]}],left:[{left:[z]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Za,Ce]}],basis:[{basis:ie()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ce]}],grow:[{grow:ve()}],shrink:[{shrink:ve()}],order:[{order:["first","last","none",Za,Ce]}],"grid-cols":[{"grid-cols":[Ia]}],"col-start-end":[{col:["auto",{span:["full",Za,Ce]},Ce]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[Ia]}],"row-start-end":[{row:["auto",{span:[Za,Ce]},Ce]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ce]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...ce()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ce(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ce(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[U]}],px:[{px:[U]}],py:[{py:[U]}],ps:[{ps:[U]}],pe:[{pe:[U]}],pt:[{pt:[U]}],pr:[{pr:[U]}],pb:[{pb:[U]}],pl:[{pl:[U]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[ee]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ee]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ce,l]}],"min-w":[{"min-w":[Ce,l,"min","max","fit"]}],"max-w":[{"max-w":[Ce,l,"none","full","min","max","fit","prose",{screen:[Yl]},Yl]}],h:[{h:[Ce,l,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ce,l,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ce,l,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ce,l,"auto","min","max","fit"]}],"font-size":[{text:["base",Yl,Fl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qf]}],"font-family":[{font:[Ia]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ce]}],"line-clamp":[{"line-clamp":["none",Mr,qf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ul,Ce]}],"list-image":[{"list-image":["none",Ce]}],"list-style-type":[{list:["none","disc","decimal",Ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ul,Fl]}],"underline-offset":[{"underline-offset":["auto",ul,Ce]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),lE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},rE]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:Q()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Q()]}],"outline-offset":[{"outline-offset":[ul,Ce]}],"outline-w":[{outline:[ul,Fl]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[ul,Fl]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Yl,aE]}],"shadow-color":[{shadow:[Ia]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",Yl,Ce]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[g]}],saturate:[{saturate:[D]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ce]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",Ce]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Y]}],"scale-x":[{"scale-x":[Y]}],"scale-y":[{"scale-y":[Y]}],rotate:[{rotate:[Za,Ce]}],"translate-x":[{"translate-x":[V]}],"translate-y":[{"translate-y":[V]}],"skew-x":[{"skew-x":[B]}],"skew-y":[{"skew-y":[B]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ce]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ul,Fl,qf]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},fE=Xw(cE);function Mv(...t){return fE(Nw(t))}const hE=[{to:"/",icon:Ow,label:"Dashboard"},{to:"/steps",icon:xv,label:"Steps"},{to:"/config",icon:Ev,label:"Config"},{to:"/knowledge",icon:vv,label:"Knowledge"},{to:"/workflow",icon:Sv,label:"Workflow"}];function dE(){return E.jsxs("aside",{className:"flex h-screen w-56 flex-col border-r border-[var(--border)] bg-[var(--card)]",children:[E.jsx("div",{className:"flex h-14 items-center border-b border-[var(--border)] px-4",children:E.jsx("span",{className:"text-lg font-semibold",children:"spets"})}),E.jsx("nav",{className:"flex-1 space-y-1 p-2",children:hE.map(({to:t,icon:l,label:r})=>E.jsxs(gv,{to:t,end:t==="/",className:({isActive:a})=>Mv("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors",a?"bg-[var(--accent)] text-[var(--accent-foreground)]":"text-[var(--muted-foreground)] hover:bg-[var(--accent)] hover:text-[var(--accent-foreground)]"),children:[E.jsx(l,{className:"h-4 w-4"}),r]},t))})]})}function mE(){return E.jsxs("div",{className:"flex h-screen overflow-hidden",children:[E.jsx(dE,{}),E.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:E.jsx(q2,{})})]})}const pE="/api";class gE extends Error{constructor(l,r){super(r),this.status=l,this.name="ApiError"}}async function Ys(t,l){const r=await fetch(`${pE}${t}`,{headers:{"Content-Type":"application/json",...l==null?void 0:l.headers},...l});if(!r.ok){const s=await r.text();throw new gE(r.status,s||r.statusText)}const a=r.headers.get("content-type");return a!=null&&a.includes("application/json")?r.json():r.text()}const tt={get:t=>Ys(t),put:(t,l)=>Ys(t,{method:"PUT",body:JSON.stringify(l)}),post:(t,l)=>Ys(t,{method:"POST",body:JSON.stringify(l)}),delete:t=>Ys(t,{method:"DELETE"})},By={in_progress:"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200",completed:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200",paused:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",rejected:"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200",pending:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-200",draft:"bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200",approved:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200"};function _i({status:t}){const l=By[t]||By.pending;return E.jsx("span",{className:Mv("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",l),children:t.replace("_"," ")})}function yu({icon:t,title:l,description:r}){return E.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[E.jsx(t,{className:"mb-4 h-12 w-12 text-[var(--muted-foreground)]"}),E.jsx("h3",{className:"text-lg font-medium",children:l}),r&&E.jsx("p",{className:"mt-1 text-sm text-[var(--muted-foreground)]",children:r})]})}function yE(){const t=ov(),{data:l,isLoading:r,error:a}=li({queryKey:["tasks"],queryFn:()=>tt.get("/tasks?limit=50")});if(r)return E.jsx("div",{className:"animate-pulse text-[var(--muted-foreground)]",children:"Loading tasks..."});if(a)return E.jsxs("div",{className:"text-red-500",children:["Failed to load tasks: ",a.message]});const s=(l==null?void 0:l.tasks)??[];return s.length===0?E.jsx(yu,{icon:Rw,title:"No tasks yet",description:"Start a workflow with `spets orchestrate init` to see tasks here."}):E.jsxs("div",{children:[E.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[E.jsx("h1",{className:"text-2xl font-bold",children:"Dashboard"}),E.jsxs("span",{className:"text-sm text-[var(--muted-foreground)]",children:[l==null?void 0:l.metadata.totalTasks," task",(l==null?void 0:l.metadata.totalTasks)!==1?"s":""]})]}),E.jsx("div",{className:"overflow-hidden rounded-lg border border-[var(--border)]",children:E.jsxs("table",{className:"w-full text-sm",children:[E.jsx("thead",{children:E.jsxs("tr",{className:"border-b border-[var(--border)] bg-[var(--muted)]",children:[E.jsx("th",{className:"px-4 py-3 text-left font-medium text-[var(--muted-foreground)]",children:"Task"}),E.jsx("th",{className:"px-4 py-3 text-left font-medium text-[var(--muted-foreground)]",children:"Status"}),E.jsx("th",{className:"px-4 py-3 text-left font-medium text-[var(--muted-foreground)]",children:"Step"}),E.jsx("th",{className:"px-4 py-3 text-left font-medium text-[var(--muted-foreground)]",children:"Progress"}),E.jsx("th",{className:"px-4 py-3 text-left font-medium text-[var(--muted-foreground)]",children:"Created"})]})}),E.jsx("tbody",{children:s.map(o=>E.jsxs("tr",{onClick:()=>t(`/tasks/${o.taskId}`),className:"cursor-pointer border-b border-[var(--border)] transition-colors hover:bg-[var(--muted)]",children:[E.jsxs("td",{className:"px-4 py-3",children:[E.jsx("div",{className:"font-medium",children:o.taskId}),E.jsx("div",{className:"mt-0.5 truncate text-xs text-[var(--muted-foreground)]",style:{maxWidth:"300px"},children:o.query})]}),E.jsx("td",{className:"px-4 py-3",children:E.jsx(_i,{status:o.status})}),E.jsx("td",{className:"px-4 py-3 text-[var(--muted-foreground)]",children:o.progress.currentStep}),E.jsx("td",{className:"px-4 py-3",children:E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx("div",{className:"h-2 w-24 overflow-hidden rounded-full bg-[var(--muted)]",children:E.jsx("div",{className:"h-full rounded-full bg-blue-500 transition-all",style:{width:`${o.progress.completionPercent}%`}})}),E.jsxs("span",{className:"text-xs text-[var(--muted-foreground)]",children:[o.progress.currentStepIndex,"/",o.progress.totalSteps]})]})}),E.jsx("td",{className:"px-4 py-3 text-xs text-[var(--muted-foreground)]",children:o.createdAt?new Date(o.createdAt).toLocaleDateString():"-"})]},o.taskId))})]})})]})}function bE(t,l){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const vE=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xE=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,SE={};function Hy(t,l){return(SE.jsx?xE:vE).test(t)}const wE=/[ \t\n\f\r]/g;function EE(t){return typeof t=="object"?t.type==="text"?qy(t.value):!1:qy(t)}function qy(t){return t.replace(wE,"")===""}class bu{constructor(l,r,a){this.normal=r,this.property=l,a&&(this.space=a)}}bu.prototype.normal={};bu.prototype.property={};bu.prototype.space=void 0;function Dv(t,l){const r={},a={};for(const s of t)Object.assign(r,s.property),Object.assign(a,s.normal);return new bu(r,a,l)}function Sh(t){return t.toLowerCase()}class Zt{constructor(l,r){this.attribute=r,this.property=l}}Zt.prototype.attribute="";Zt.prototype.booleanish=!1;Zt.prototype.boolean=!1;Zt.prototype.commaOrSpaceSeparated=!1;Zt.prototype.commaSeparated=!1;Zt.prototype.defined=!1;Zt.prototype.mustUseProperty=!1;Zt.prototype.number=!1;Zt.prototype.overloadedBoolean=!1;Zt.prototype.property="";Zt.prototype.spaceSeparated=!1;Zt.prototype.space=void 0;let CE=0;const ke=Hi(),mt=Hi(),wh=Hi(),te=Hi(),Pe=Hi(),Dr=Hi(),ln=Hi();function Hi(){return 2**++CE}const Eh=Object.freeze(Object.defineProperty({__proto__:null,boolean:ke,booleanish:mt,commaOrSpaceSeparated:ln,commaSeparated:Dr,number:te,overloadedBoolean:wh,spaceSeparated:Pe},Symbol.toStringTag,{value:"Module"})),Qf=Object.keys(Eh);class Kh extends Zt{constructor(l,r,a,s){let o=-1;if(super(l,r),Qy(this,"space",s),typeof a=="number")for(;++o<Qf.length;){const c=Qf[o];Qy(this,Qf[o],(a&Eh[c])===Eh[c])}}}Kh.prototype.defined=!0;function Qy(t,l,r){r&&(t[l]=r)}function Jr(t){const l={},r={};for(const[a,s]of Object.entries(t.properties)){const o=new Kh(a,t.transform(t.attributes||{},a),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(a)&&(o.mustUseProperty=!0),l[a]=o,r[Sh(a)]=a,r[Sh(o.attribute)]=a}return new bu(l,r,t.space)}const Nv=Jr({properties:{ariaActiveDescendant:null,ariaAtomic:mt,ariaAutoComplete:null,ariaBusy:mt,ariaChecked:mt,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:Pe,ariaCurrent:null,ariaDescribedBy:Pe,ariaDetails:null,ariaDisabled:mt,ariaDropEffect:Pe,ariaErrorMessage:null,ariaExpanded:mt,ariaFlowTo:Pe,ariaGrabbed:mt,ariaHasPopup:null,ariaHidden:mt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Pe,ariaLevel:te,ariaLive:null,ariaModal:mt,ariaMultiLine:mt,ariaMultiSelectable:mt,ariaOrientation:null,ariaOwns:Pe,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:mt,ariaReadOnly:mt,ariaRelevant:null,ariaRequired:mt,ariaRoleDescription:Pe,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:mt,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null},transform(t,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function _v(t,l){return l in t?t[l]:l}function jv(t,l){return _v(t,l.toLowerCase())}const kE=Jr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Dr,acceptCharset:Pe,accessKey:Pe,action:null,allow:null,allowFullScreen:ke,allowPaymentRequest:ke,allowUserMedia:ke,alt:null,as:null,async:ke,autoCapitalize:null,autoComplete:Pe,autoFocus:ke,autoPlay:ke,blocking:Pe,capture:null,charSet:null,checked:ke,cite:null,className:Pe,cols:te,colSpan:null,content:null,contentEditable:mt,controls:ke,controlsList:Pe,coords:te|Dr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ke,defer:ke,dir:null,dirName:null,disabled:ke,download:wh,draggable:mt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ke,formTarget:null,headers:Pe,height:te,hidden:wh,high:te,href:null,hrefLang:null,htmlFor:Pe,httpEquiv:Pe,id:null,imageSizes:null,imageSrcSet:null,inert:ke,inputMode:null,integrity:null,is:null,isMap:ke,itemId:null,itemProp:Pe,itemRef:Pe,itemScope:ke,itemType:Pe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ke,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:ke,muted:ke,name:null,nonce:null,noModule:ke,noValidate:ke,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ke,optimum:te,pattern:null,ping:Pe,placeholder:null,playsInline:ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ke,referrerPolicy:null,rel:Pe,required:ke,reversed:ke,rows:te,rowSpan:te,sandbox:Pe,scope:null,scoped:ke,seamless:ke,selected:ke,shadowRootClonable:ke,shadowRootDelegatesFocus:ke,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:mt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:ke,useMap:null,value:mt,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Pe,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ke,declare:ke,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:ke,noHref:ke,noShade:ke,noWrap:ke,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:mt,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ke,disableRemotePlayback:ke,prefix:null,property:null,results:te,security:null,unselectable:null},space:"html",transform:jv}),TE=Jr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ln,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:Pe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Dr,g2:Dr,glyphName:Dr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:ln,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:te,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Pe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ln,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ln,rev:ln,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ln,requiredFeatures:ln,requiredFonts:ln,requiredFormats:ln,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:ln,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ln,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ln,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_v}),Lv=Jr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,l){return"xlink:"+l.slice(5).toLowerCase()}}),Uv=Jr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:jv}),Bv=Jr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,l){return"xml:"+l.slice(3).toLowerCase()}}),AE={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},zE=/[A-Z]/g,Fy=/-[a-z]/g,RE=/^data[-\w.:]+$/i;function OE(t,l){const r=Sh(l);let a=l,s=Zt;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&RE.test(l)){if(l.charAt(4)==="-"){const o=l.slice(5).replace(Fy,DE);a="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=l.slice(4);if(!Fy.test(o)){let c=o.replace(zE,ME);c.charAt(0)!=="-"&&(c="-"+c),l="data"+c}}s=Kh}return new s(a,l)}function ME(t){return"-"+t.toLowerCase()}function DE(t){return t.charAt(1).toUpperCase()}const NE=Dv([Nv,kE,Lv,Uv,Bv],"html"),Zh=Dv([Nv,TE,Lv,Uv,Bv],"svg");function _E(t){return t.join(" ").trim()}var zr={},Ff,Yy;function jE(){if(Yy)return Ff;Yy=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
|
|
166
166
|
`,m="/",y="*",g="",x="comment",v="declaration";function C(T,k){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];k=k||{};var U=1,D=1;function Y(se){var ne=se.match(l);ne&&(U+=ne.length);var Q=se.lastIndexOf(p);D=~Q?se.length-Q:D+se.length}function P(){var se={line:U,column:D};return function(ne){return ne.position=new B(se),le(),ne}}function B(se){this.start=se,this.end={line:U,column:D},this.source=k.source}B.prototype.content=T;function ee(se){var ne=new Error(k.source+":"+U+":"+D+": "+se);if(ne.reason=se,ne.filename=k.source,ne.line=U,ne.column=D,ne.source=T,!k.silent)throw ne}function V(se){var ne=se.exec(T);if(ne){var Q=ne[0];return Y(Q),T=T.slice(Q.length),ne}}function le(){V(r)}function j(se){var ne;for(se=se||[];ne=ie();)ne!==!1&&se.push(ne);return se}function ie(){var se=P();if(!(m!=T.charAt(0)||y!=T.charAt(1))){for(var ne=2;g!=T.charAt(ne)&&(y!=T.charAt(ne)||m!=T.charAt(ne+1));)++ne;if(ne+=2,g===T.charAt(ne-1))return ee("End of comment missing");var Q=T.slice(2,ne-2);return D+=2,Y(Q),T=T.slice(ne),D+=2,se({type:x,comment:Q})}}function $(){var se=P(),ne=V(a);if(ne){if(ie(),!V(s))return ee("property missing ':'");var Q=V(o),W=se({type:v,property:z(ne[0].replace(t,g)),value:Q?z(Q[0].replace(t,g)):g});return V(c),W}}function Se(){var se=[];j(se);for(var ne;ne=$();)ne!==!1&&(se.push(ne),j(se));return se}return le(),Se()}function z(T){return T?T.replace(d,g):g}return Ff=C,Ff}var Gy;function LE(){if(Gy)return zr;Gy=1;var t=zr&&zr.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(zr,"__esModule",{value:!0}),zr.default=r;const l=t(jE());function r(a,s){let o=null;if(!a||typeof a!="string")return o;const c=(0,l.default)(a),d=typeof s=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:y}=p;d?s(m,y,p):y&&(o=o||{},o[m]=y)}),o}return zr}var Ja={},Vy;function UE(){if(Vy)return Ja;Vy=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(m){return!m||r.test(m)||t.test(m)},c=function(m,y){return y.toUpperCase()},d=function(m,y){return"".concat(y,"-")},p=function(m,y){return y===void 0&&(y={}),o(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(s,d):m=m.replace(a,d),m.replace(l,c))};return Ja.camelCase=p,Ja}var Pa,Xy;function BE(){if(Xy)return Pa;Xy=1;var t=Pa&&Pa.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},l=t(LE()),r=UE();function a(s,o){var c={};return!s||typeof s!="string"||(0,l.default)(s,function(d,p){d&&p&&(c[(0,r.camelCase)(d,o)]=p)}),c}return a.default=a,Pa=a,Pa}var HE=BE();const qE=Hb(HE),Hv=qv("end"),Ih=qv("start");function qv(t){return l;function l(r){const a=r&&r.position&&r.position[t]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function QE(t){const l=Ih(t),r=Hv(t);if(l&&r)return{start:l,end:r}}function tu(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Ky(t.position):"start"in t||"end"in t?Ky(t):"line"in t||"column"in t?Ch(t):""}function Ch(t){return Zy(t&&t.line)+":"+Zy(t&&t.column)}function Ky(t){return Ch(t&&t.start)+"-"+Ch(t&&t.end)}function Zy(t){return t&&typeof t=="number"?t:1}class Ot extends Error{constructor(l,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let s="",o={},c=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof l=="string"?s=l:!o.cause&&l&&(c=!0,s=l.message,o.cause=l),!o.ruleId&&!o.source&&typeof a=="string"){const p=a.indexOf(":");p===-1?o.ruleId=a:(o.source=a.slice(0,p),o.ruleId=a.slice(p+1))}if(!o.place&&o.ancestors&&o.ancestors){const p=o.ancestors[o.ancestors.length-1];p&&(o.place=p.position)}const d=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.line:void 0,this.name=tu(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=c&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ot.prototype.file="";Ot.prototype.name="";Ot.prototype.reason="";Ot.prototype.message="";Ot.prototype.stack="";Ot.prototype.column=void 0;Ot.prototype.line=void 0;Ot.prototype.ancestors=void 0;Ot.prototype.cause=void 0;Ot.prototype.fatal=void 0;Ot.prototype.place=void 0;Ot.prototype.ruleId=void 0;Ot.prototype.source=void 0;const Jh={}.hasOwnProperty,FE=new Map,YE=/[A-Z]/g,GE=new Set(["table","tbody","thead","tfoot","tr"]),VE=new Set(["td","th"]),Qv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function XE(t,l){if(!l||l.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=l.filePath||void 0;let a;if(l.development){if(typeof l.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=eC(r,l.jsxDEV)}else{if(typeof l.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof l.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=WE(r,l.jsx,l.jsxs)}const s={Fragment:l.Fragment,ancestors:[],components:l.components||{},create:a,elementAttributeNameCase:l.elementAttributeNameCase||"react",evaluater:l.createEvaluater?l.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:l.ignoreInvalidStyle||!1,passKeys:l.passKeys!==!1,passNode:l.passNode||!1,schema:l.space==="svg"?Zh:NE,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},o=Fv(s,t,void 0);return o&&typeof o!="string"?o:s.create(t,s.Fragment,{children:o||void 0},void 0)}function Fv(t,l,r){if(l.type==="element")return KE(t,l,r);if(l.type==="mdxFlowExpression"||l.type==="mdxTextExpression")return ZE(t,l);if(l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement")return JE(t,l,r);if(l.type==="mdxjsEsm")return IE(t,l);if(l.type==="root")return PE(t,l,r);if(l.type==="text")return $E(t,l)}function KE(t,l,r){const a=t.schema;let s=a;l.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=Zh,t.schema=s),t.ancestors.push(l);const o=Gv(t,l.tagName,!1),c=tC(t,l);let d=$h(t,l);return GE.has(l.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!EE(p):!0})),Yv(t,c,o,l),Ph(c,d),t.ancestors.pop(),t.schema=a,t.create(l,o,c,r)}function ZE(t,l){if(l.data&&l.data.estree&&t.evaluater){const a=l.data.estree.body[0];return a.type,t.evaluater.evaluateExpression(a.expression)}au(t,l.position)}function IE(t,l){if(l.data&&l.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(l.data.estree);au(t,l.position)}function JE(t,l,r){const a=t.schema;let s=a;l.name==="svg"&&a.space==="html"&&(s=Zh,t.schema=s),t.ancestors.push(l);const o=l.name===null?t.Fragment:Gv(t,l.name,!0),c=nC(t,l),d=$h(t,l);return Yv(t,c,o,l),Ph(c,d),t.ancestors.pop(),t.schema=a,t.create(l,o,c,r)}function PE(t,l,r){const a={};return Ph(a,$h(t,l)),t.create(l,t.Fragment,a,r)}function $E(t,l){return l.value}function Yv(t,l,r,a){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(l.node=a)}function Ph(t,l){if(l.length>0){const r=l.length>1?l:l[0];r&&(t.children=r)}}function WE(t,l,r){return a;function a(s,o,c,d){const m=Array.isArray(c.children)?r:l;return d?m(o,c,d):m(o,c)}}function eC(t,l){return r;function r(a,s,o,c){const d=Array.isArray(o.children),p=Ih(a);return l(s,o,c,d,{columnNumber:p?p.column-1:void 0,fileName:t,lineNumber:p?p.line:void 0},void 0)}}function tC(t,l){const r={};let a,s;for(s in l.properties)if(s!=="children"&&Jh.call(l.properties,s)){const o=lC(t,s,l.properties[s]);if(o){const[c,d]=o;t.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&VE.has(l.tagName)?a=d:r[c]=d}}if(a){const o=r.style||(r.style={});o[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function nC(t,l){const r={};for(const a of l.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&t.evaluater){const o=a.data.estree.body[0];o.type;const c=o.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,t.evaluater.evaluateExpression(d.argument))}else au(t,l.position);else{const s=a.name;let o;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&t.evaluater){const d=a.value.data.estree.body[0];d.type,o=t.evaluater.evaluateExpression(d.expression)}else au(t,l.position);else o=a.value===null?!0:a.value;r[s]=o}return r}function $h(t,l){const r=[];let a=-1;const s=t.passKeys?new Map:FE;for(;++a<l.children.length;){const o=l.children[a];let c;if(t.passKeys){const p=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(p){const m=s.get(p)||0;c=p+"-"+m,s.set(p,m+1)}}const d=Fv(t,o,c);d!==void 0&&r.push(d)}return r}function lC(t,l,r){const a=OE(t.schema,l);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?bE(r):_E(r)),a.property==="style"){let s=typeof r=="object"?r:iC(t,String(r));return t.stylePropertyNameCase==="css"&&(s=rC(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&a.space?AE[a.property]||a.property:a.attribute,r]}}function iC(t,l){try{return qE(l,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const a=r,s=new Ot("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=Qv+"#cannot-parse-style-attribute",s}}function Gv(t,l,r){let a;if(!r)a={type:"Literal",value:l};else if(l.includes(".")){const s=l.split(".");let o=-1,c;for(;++o<s.length;){const d=Hy(s[o])?{type:"Identifier",name:s[o]}:{type:"Literal",value:s[o]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(o&&d.type==="Literal"),optional:!1}:d}a=c}else a=Hy(l)&&!/^[a-z]/.test(l)?{type:"Identifier",name:l}:{type:"Literal",value:l};if(a.type==="Literal"){const s=a.value;return Jh.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(a);au(t)}function au(t,l){const r=new Ot("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:l,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=Qv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function rC(t){const l={};let r;for(r in t)Jh.call(t,r)&&(l[aC(r)]=t[r]);return l}function aC(t){let l=t.replace(YE,uC);return l.slice(0,3)==="ms-"&&(l="-"+l),l}function uC(t){return"-"+t.toLowerCase()}const Yf={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},sC={};function Wh(t,l){const r=sC,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Vv(t,a,s)}function Vv(t,l,r){if(oC(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(l&&"alt"in t&&t.alt)return t.alt;if("children"in t)return Iy(t.children,l,r)}return Array.isArray(t)?Iy(t,l,r):""}function Iy(t,l,r){const a=[];let s=-1;for(;++s<t.length;)a[s]=Vv(t[s],l,r);return a.join("")}function oC(t){return!!(t&&typeof t=="object")}const Jy=document.createElement("i");function ed(t){const l="&"+t+";";Jy.innerHTML=l;const r=Jy.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===l?!1:r}function an(t,l,r,a){const s=t.length;let o=0,c;if(l<0?l=-l>s?0:s+l:l=l>s?s:l,r=r>0?r:0,a.length<1e4)c=Array.from(a),c.unshift(l,r),t.splice(...c);else for(r&&t.splice(l,r);o<a.length;)c=a.slice(o,o+1e4),c.unshift(l,0),t.splice(...c),o+=1e4,l+=1e4}function xn(t,l){return t.length>0?(an(t,t.length,0,l),t):l}const Py={}.hasOwnProperty;function Xv(t){const l={};let r=-1;for(;++r<t.length;)cC(l,t[r]);return l}function cC(t,l){let r;for(r in l){const s=(Py.call(t,r)?t[r]:void 0)||(t[r]={}),o=l[r];let c;if(o)for(c in o){Py.call(s,c)||(s[c]=[]);const d=o[c];fC(s[c],Array.isArray(d)?d:d?[d]:[])}}}function fC(t,l){let r=-1;const a=[];for(;++r<l.length;)(l[r].add==="after"?t:a).push(l[r]);an(t,0,0,a)}function Kv(t,l){const r=Number.parseInt(t,l);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function zn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Lt=ii(/[A-Za-z]/),Rt=ii(/[\dA-Za-z]/),hC=ii(/[#-'*+\--9=?A-Z^-~]/);function to(t){return t!==null&&(t<32||t===127)}const kh=ii(/\d/),dC=ii(/[\dA-Fa-f]/),mC=ii(/[!-/:-@[-`{-~]/);function pe(t){return t!==null&&t<-2}function Je(t){return t!==null&&(t<0||t===32)}function Oe(t){return t===-2||t===-1||t===32}const so=ii(new RegExp("\\p{P}|\\p{S}","u")),Ui=ii(/\s/);function ii(t){return l;function l(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Pr(t){const l=[];let r=-1,a=0,s=0;for(;++r<t.length;){const o=t.charCodeAt(r);let c="";if(o===37&&Rt(t.charCodeAt(r+1))&&Rt(t.charCodeAt(r+2)))s=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(c=String.fromCharCode(o));else if(o>55295&&o<57344){const d=t.charCodeAt(r+1);o<56320&&d>56319&&d<57344?(c=String.fromCharCode(o,d),s=1):c="�"}else c=String.fromCharCode(o);c&&(l.push(t.slice(a,r),encodeURIComponent(c)),a=r+s+1,c=""),s&&(r+=s,s=0)}return l.join("")+t.slice(a)}function Le(t,l,r,a){const s=a?a-1:Number.POSITIVE_INFINITY;let o=0;return c;function c(p){return Oe(p)?(t.enter(r),d(p)):l(p)}function d(p){return Oe(p)&&o++<s?(t.consume(p),d):(t.exit(r),l(p))}}const pC={tokenize:gC};function gC(t){const l=t.attempt(this.parser.constructs.contentInitial,a,s);let r;return l;function a(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),Le(t,l,"linePrefix")}function s(d){return t.enter("paragraph"),o(d)}function o(d){const p=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,c(d)}function c(d){if(d===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(d);return}return pe(d)?(t.consume(d),t.exit("chunkText"),o):(t.consume(d),c)}}const yC={tokenize:bC},$y={tokenize:vC};function bC(t){const l=this,r=[];let a=0,s,o,c;return d;function d(D){if(a<r.length){const Y=r[a];return l.containerState=Y[1],t.attempt(Y[0].continuation,p,m)(D)}return m(D)}function p(D){if(a++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,s&&U();const Y=l.events.length;let P=Y,B;for(;P--;)if(l.events[P][0]==="exit"&&l.events[P][1].type==="chunkFlow"){B=l.events[P][1].end;break}k(a);let ee=Y;for(;ee<l.events.length;)l.events[ee][1].end={...B},ee++;return an(l.events,P+1,0,l.events.slice(Y)),l.events.length=ee,m(D)}return d(D)}function m(D){if(a===r.length){if(!s)return x(D);if(s.currentConstruct&&s.currentConstruct.concrete)return C(D);l.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return l.containerState={},t.check($y,y,g)(D)}function y(D){return s&&U(),k(a),x(D)}function g(D){return l.parser.lazy[l.now().line]=a!==r.length,c=l.now().offset,C(D)}function x(D){return l.containerState={},t.attempt($y,v,C)(D)}function v(D){return a++,r.push([l.currentConstruct,l.containerState]),x(D)}function C(D){if(D===null){s&&U(),k(0),t.consume(D);return}return s=s||l.parser.flow(l.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:o}),z(D)}function z(D){if(D===null){T(t.exit("chunkFlow"),!0),k(0),t.consume(D);return}return pe(D)?(t.consume(D),T(t.exit("chunkFlow")),a=0,l.interrupt=void 0,d):(t.consume(D),z)}function T(D,Y){const P=l.sliceStream(D);if(Y&&P.push(null),D.previous=o,o&&(o.next=D),o=D,s.defineSkip(D.start),s.write(P),l.parser.lazy[D.start.line]){let B=s.events.length;for(;B--;)if(s.events[B][1].start.offset<c&&(!s.events[B][1].end||s.events[B][1].end.offset>c))return;const ee=l.events.length;let V=ee,le,j;for(;V--;)if(l.events[V][0]==="exit"&&l.events[V][1].type==="chunkFlow"){if(le){j=l.events[V][1].end;break}le=!0}for(k(a),B=ee;B<l.events.length;)l.events[B][1].end={...j},B++;an(l.events,V+1,0,l.events.slice(ee)),l.events.length=B}}function k(D){let Y=r.length;for(;Y-- >D;){const P=r[Y];l.containerState=P[1],P[0].exit.call(l,t)}r.length=D}function U(){s.write([null]),o=void 0,s=void 0,l.containerState._closeFlow=void 0}}function vC(t,l,r){return Le(t,t.attempt(this.parser.constructs.document,l,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Vr(t){if(t===null||Je(t)||Ui(t))return 1;if(so(t))return 2}function oo(t,l,r){const a=[];let s=-1;for(;++s<t.length;){const o=t[s].resolveAll;o&&!a.includes(o)&&(l=o(l,r),a.push(o))}return l}const Th={name:"attention",resolveAll:xC,tokenize:SC};function xC(t,l){let r=-1,a,s,o,c,d,p,m,y;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(a=r;a--;)if(t[a][0]==="exit"&&t[a][1].type==="attentionSequence"&&t[a][1]._open&&l.sliceSerialize(t[a][1]).charCodeAt(0)===l.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[a][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[a][1].end.offset-t[a][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;p=t[a][1].end.offset-t[a][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const g={...t[a][1].end},x={...t[r][1].start};Wy(g,-p),Wy(x,p),c={type:p>1?"strongSequence":"emphasisSequence",start:g,end:{...t[a][1].end}},d={type:p>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:x},o={type:p>1?"strongText":"emphasisText",start:{...t[a][1].end},end:{...t[r][1].start}},s={type:p>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},t[a][1].end={...c.start},t[r][1].start={...d.end},m=[],t[a][1].end.offset-t[a][1].start.offset&&(m=xn(m,[["enter",t[a][1],l],["exit",t[a][1],l]])),m=xn(m,[["enter",s,l],["enter",c,l],["exit",c,l],["enter",o,l]]),m=xn(m,oo(l.parser.constructs.insideSpan.null,t.slice(a+1,r),l)),m=xn(m,[["exit",o,l],["enter",d,l],["exit",d,l],["exit",s,l]]),t[r][1].end.offset-t[r][1].start.offset?(y=2,m=xn(m,[["enter",t[r][1],l],["exit",t[r][1],l]])):y=0,an(t,a-1,r-a+3,m),r=a+m.length-y-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function SC(t,l){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,s=Vr(a);let o;return c;function c(p){return o=p,t.enter("attentionSequence"),d(p)}function d(p){if(p===o)return t.consume(p),d;const m=t.exit("attentionSequence"),y=Vr(p),g=!y||y===2&&s||r.includes(p),x=!s||s===2&&y||r.includes(a);return m._open=!!(o===42?g:g&&(s||!x)),m._close=!!(o===42?x:x&&(y||!g)),l(p)}}function Wy(t,l){t.column+=l,t.offset+=l,t._bufferIndex+=l}const wC={name:"autolink",tokenize:EC};function EC(t,l,r){let a=0;return s;function s(v){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(v){return Lt(v)?(t.consume(v),c):v===64?r(v):m(v)}function c(v){return v===43||v===45||v===46||Rt(v)?(a=1,d(v)):m(v)}function d(v){return v===58?(t.consume(v),a=0,p):(v===43||v===45||v===46||Rt(v))&&a++<32?(t.consume(v),d):(a=0,m(v))}function p(v){return v===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.exit("autolink"),l):v===null||v===32||v===60||to(v)?r(v):(t.consume(v),p)}function m(v){return v===64?(t.consume(v),y):hC(v)?(t.consume(v),m):r(v)}function y(v){return Rt(v)?g(v):r(v)}function g(v){return v===46?(t.consume(v),a=0,y):v===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.exit("autolink"),l):x(v)}function x(v){if((v===45||Rt(v))&&a++<63){const C=v===45?x:g;return t.consume(v),C}return r(v)}}const vu={partial:!0,tokenize:CC};function CC(t,l,r){return a;function a(o){return Oe(o)?Le(t,s,"linePrefix")(o):s(o)}function s(o){return o===null||pe(o)?l(o):r(o)}}const Zv={continuation:{tokenize:TC},exit:AC,name:"blockQuote",tokenize:kC};function kC(t,l,r){const a=this;return s;function s(c){if(c===62){const d=a.containerState;return d.open||(t.enter("blockQuote",{_container:!0}),d.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),o}return r(c)}function o(c){return Oe(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),l):(t.exit("blockQuotePrefix"),l(c))}}function TC(t,l,r){const a=this;return s;function s(c){return Oe(c)?Le(t,o,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):o(c)}function o(c){return t.attempt(Zv,l,r)(c)}}function AC(t){t.exit("blockQuote")}const Iv={name:"characterEscape",tokenize:zC};function zC(t,l,r){return a;function a(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),s}function s(o){return mC(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),l):r(o)}}const Jv={name:"characterReference",tokenize:RC};function RC(t,l,r){const a=this;let s=0,o,c;return d;function d(g){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),p}function p(g){return g===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(g),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),o=31,c=Rt,y(g))}function m(g){return g===88||g===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(g),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,c=dC,y):(t.enter("characterReferenceValue"),o=7,c=kh,y(g))}function y(g){if(g===59&&s){const x=t.exit("characterReferenceValue");return c===Rt&&!ed(a.sliceSerialize(x))?r(g):(t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),t.exit("characterReference"),l)}return c(g)&&s++<o?(t.consume(g),y):r(g)}}const eb={partial:!0,tokenize:MC},tb={concrete:!0,name:"codeFenced",tokenize:OC};function OC(t,l,r){const a=this,s={partial:!0,tokenize:P};let o=0,c=0,d;return p;function p(B){return m(B)}function m(B){const ee=a.events[a.events.length-1];return o=ee&&ee[1].type==="linePrefix"?ee[2].sliceSerialize(ee[1],!0).length:0,d=B,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(B)}function y(B){return B===d?(c++,t.consume(B),y):c<3?r(B):(t.exit("codeFencedFenceSequence"),Oe(B)?Le(t,g,"whitespace")(B):g(B))}function g(B){return B===null||pe(B)?(t.exit("codeFencedFence"),a.interrupt?l(B):t.check(eb,z,Y)(B)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),x(B))}function x(B){return B===null||pe(B)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),g(B)):Oe(B)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Le(t,v,"whitespace")(B)):B===96&&B===d?r(B):(t.consume(B),x)}function v(B){return B===null||pe(B)?g(B):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),C(B))}function C(B){return B===null||pe(B)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(B)):B===96&&B===d?r(B):(t.consume(B),C)}function z(B){return t.attempt(s,Y,T)(B)}function T(B){return t.enter("lineEnding"),t.consume(B),t.exit("lineEnding"),k}function k(B){return o>0&&Oe(B)?Le(t,U,"linePrefix",o+1)(B):U(B)}function U(B){return B===null||pe(B)?t.check(eb,z,Y)(B):(t.enter("codeFlowValue"),D(B))}function D(B){return B===null||pe(B)?(t.exit("codeFlowValue"),U(B)):(t.consume(B),D)}function Y(B){return t.exit("codeFenced"),l(B)}function P(B,ee,V){let le=0;return j;function j(ne){return B.enter("lineEnding"),B.consume(ne),B.exit("lineEnding"),ie}function ie(ne){return B.enter("codeFencedFence"),Oe(ne)?Le(B,$,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):$(ne)}function $(ne){return ne===d?(B.enter("codeFencedFenceSequence"),Se(ne)):V(ne)}function Se(ne){return ne===d?(le++,B.consume(ne),Se):le>=c?(B.exit("codeFencedFenceSequence"),Oe(ne)?Le(B,se,"whitespace")(ne):se(ne)):V(ne)}function se(ne){return ne===null||pe(ne)?(B.exit("codeFencedFence"),ee(ne)):V(ne)}}}function MC(t,l,r){const a=this;return s;function s(c){return c===null?r(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),o)}function o(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}const Gf={name:"codeIndented",tokenize:NC},DC={partial:!0,tokenize:_C};function NC(t,l,r){const a=this;return s;function s(m){return t.enter("codeIndented"),Le(t,o,"linePrefix",5)(m)}function o(m){const y=a.events[a.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(m):r(m)}function c(m){return m===null?p(m):pe(m)?t.attempt(DC,c,p)(m):(t.enter("codeFlowValue"),d(m))}function d(m){return m===null||pe(m)?(t.exit("codeFlowValue"),c(m)):(t.consume(m),d)}function p(m){return t.exit("codeIndented"),l(m)}}function _C(t,l,r){const a=this;return s;function s(c){return a.parser.lazy[a.now().line]?r(c):pe(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):Le(t,o,"linePrefix",5)(c)}function o(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):pe(c)?s(c):r(c)}}const jC={name:"codeText",previous:UC,resolve:LC,tokenize:BC};function LC(t){let l=t.length-4,r=3,a,s;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[l][1].type==="lineEnding"||t[l][1].type==="space")){for(a=r;++a<l;)if(t[a][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[l][1].type="codeTextPadding",r+=2,l-=2;break}}for(a=r-1,l++;++a<=l;)s===void 0?a!==l&&t[a][1].type!=="lineEnding"&&(s=a):(a===l||t[a][1].type==="lineEnding")&&(t[s][1].type="codeTextData",a!==s+2&&(t[s][1].end=t[a-1][1].end,t.splice(s+2,a-s-2),l-=a-s-2,a=s+2),s=void 0);return t}function UC(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function BC(t,l,r){let a=0,s,o;return c;function c(g){return t.enter("codeText"),t.enter("codeTextSequence"),d(g)}function d(g){return g===96?(t.consume(g),a++,d):(t.exit("codeTextSequence"),p(g))}function p(g){return g===null?r(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),p):g===96?(o=t.enter("codeTextSequence"),s=0,y(g)):pe(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),p):(t.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||pe(g)?(t.exit("codeTextData"),p(g)):(t.consume(g),m)}function y(g){return g===96?(t.consume(g),s++,y):s===a?(t.exit("codeTextSequence"),t.exit("codeText"),l(g)):(o.type="codeTextData",m(g))}}class HC{constructor(l){this.left=l?[...l]:[],this.right=[]}get(l){if(l<0||l>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+l+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return l<this.left.length?this.left[l]:this.right[this.right.length-l+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(l,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(l,a):l>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-l+this.left.length).reverse():this.left.slice(l).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(l,r,a){const s=r||0;this.setCursor(Math.trunc(l));const o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&$a(this.left,a),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(l){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(l)}pushMany(l){this.setCursor(Number.POSITIVE_INFINITY),$a(this.left,l)}unshift(l){this.setCursor(0),this.right.push(l)}unshiftMany(l){this.setCursor(0),$a(this.right,l.reverse())}setCursor(l){if(!(l===this.left.length||l>this.left.length&&this.right.length===0||l<0&&this.left.length===0))if(l<this.left.length){const r=this.left.splice(l,Number.POSITIVE_INFINITY);$a(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-l,Number.POSITIVE_INFINITY);$a(this.left,r.reverse())}}}function $a(t,l){let r=0;if(l.length<1e4)t.push(...l);else for(;r<l.length;)t.push(...l.slice(r,r+1e4)),r+=1e4}function Pv(t){const l={};let r=-1,a,s,o,c,d,p,m;const y=new HC(t);for(;++r<y.length;){for(;r in l;)r=l[r];if(a=y.get(r),r&&a[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(p=a[1]._tokenizer.events,o=0,o<p.length&&p[o][1].type==="lineEndingBlank"&&(o+=2),o<p.length&&p[o][1].type==="content"))for(;++o<p.length&&p[o][1].type!=="content";)p[o][1].type==="chunkText"&&(p[o][1]._isInFirstContentOfListItem=!0,o++);if(a[0]==="enter")a[1].contentType&&(Object.assign(l,qC(y,r)),r=l[r],m=!0);else if(a[1]._container){for(o=r,s=void 0;o--;)if(c=y.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(y.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=o);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(a[1].end={...y.get(s)[1].start},d=y.slice(s,r),d.unshift(a),y.splice(s,r-s+1,d))}}return an(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function qC(t,l){const r=t.get(l)[1],a=t.get(l)[2];let s=l-1;const o=[];let c=r._tokenizer;c||(c=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,p=[],m={};let y,g,x=-1,v=r,C=0,z=0;const T=[z];for(;v;){for(;t.get(++s)[1]!==v;);o.push(s),v._tokenizer||(y=a.sliceStream(v),v.next||y.push(null),g&&c.defineSkip(v.start),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=v,v=v.next}for(v=r;++x<d.length;)d[x][0]==="exit"&&d[x-1][0]==="enter"&&d[x][1].type===d[x-1][1].type&&d[x][1].start.line!==d[x][1].end.line&&(z=x+1,T.push(z),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(c.events=[],v?(v._tokenizer=void 0,v.previous=void 0):T.pop(),x=T.length;x--;){const k=d.slice(T[x],T[x+1]),U=o.pop();p.push([U,U+k.length-1]),t.splice(U,2,k)}for(p.reverse(),x=-1;++x<p.length;)m[C+p[x][0]]=C+p[x][1],C+=p[x][1]-p[x][0]-1;return m}const QC={resolve:YC,tokenize:GC},FC={partial:!0,tokenize:VC};function YC(t){return Pv(t),t}function GC(t,l){let r;return a;function a(d){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?o(d):pe(d)?t.check(FC,c,o)(d):(t.consume(d),s)}function o(d){return t.exit("chunkContent"),t.exit("content"),l(d)}function c(d){return t.consume(d),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function VC(t,l,r){const a=this;return s;function s(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Le(t,o,"linePrefix")}function o(c){if(c===null||pe(c))return r(c);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):t.interrupt(a.parser.constructs.flow,r,l)(c)}}function $v(t,l,r,a,s,o,c,d,p){const m=p||Number.POSITIVE_INFINITY;let y=0;return g;function g(k){return k===60?(t.enter(a),t.enter(s),t.enter(o),t.consume(k),t.exit(o),x):k===null||k===32||k===41||to(k)?r(k):(t.enter(a),t.enter(c),t.enter(d),t.enter("chunkString",{contentType:"string"}),z(k))}function x(k){return k===62?(t.enter(o),t.consume(k),t.exit(o),t.exit(s),t.exit(a),l):(t.enter(d),t.enter("chunkString",{contentType:"string"}),v(k))}function v(k){return k===62?(t.exit("chunkString"),t.exit(d),x(k)):k===null||k===60||pe(k)?r(k):(t.consume(k),k===92?C:v)}function C(k){return k===60||k===62||k===92?(t.consume(k),v):v(k)}function z(k){return!y&&(k===null||k===41||Je(k))?(t.exit("chunkString"),t.exit(d),t.exit(c),t.exit(a),l(k)):y<m&&k===40?(t.consume(k),y++,z):k===41?(t.consume(k),y--,z):k===null||k===32||k===40||to(k)?r(k):(t.consume(k),k===92?T:z)}function T(k){return k===40||k===41||k===92?(t.consume(k),z):z(k)}}function Wv(t,l,r,a,s,o){const c=this;let d=0,p;return m;function m(v){return t.enter(a),t.enter(s),t.consume(v),t.exit(s),t.enter(o),y}function y(v){return d>999||v===null||v===91||v===93&&!p||v===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(v):v===93?(t.exit(o),t.enter(s),t.consume(v),t.exit(s),t.exit(a),l):pe(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||pe(v)||d++>999?(t.exit("chunkString"),y(v)):(t.consume(v),p||(p=!Oe(v)),v===92?x:g)}function x(v){return v===91||v===92||v===93?(t.consume(v),d++,g):g(v)}}function ex(t,l,r,a,s,o){let c;return d;function d(x){return x===34||x===39||x===40?(t.enter(a),t.enter(s),t.consume(x),t.exit(s),c=x===40?41:x,p):r(x)}function p(x){return x===c?(t.enter(s),t.consume(x),t.exit(s),t.exit(a),l):(t.enter(o),m(x))}function m(x){return x===c?(t.exit(o),p(c)):x===null?r(x):pe(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),Le(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===c||x===null||pe(x)?(t.exit("chunkString"),m(x)):(t.consume(x),x===92?g:y)}function g(x){return x===c||x===92?(t.consume(x),y):y(x)}}function nu(t,l){let r;return a;function a(s){return pe(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),r=!0,a):Oe(s)?Le(t,a,r?"linePrefix":"lineSuffix")(s):l(s)}}const XC={name:"definition",tokenize:ZC},KC={partial:!0,tokenize:IC};function ZC(t,l,r){const a=this;let s;return o;function o(v){return t.enter("definition"),c(v)}function c(v){return Wv.call(a,t,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function d(v){return s=zn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),v===58?(t.enter("definitionMarker"),t.consume(v),t.exit("definitionMarker"),p):r(v)}function p(v){return Je(v)?nu(t,m)(v):m(v)}function m(v){return $v(t,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function y(v){return t.attempt(KC,g,g)(v)}function g(v){return Oe(v)?Le(t,x,"whitespace")(v):x(v)}function x(v){return v===null||pe(v)?(t.exit("definition"),a.parser.defined.push(s),l(v)):r(v)}}function IC(t,l,r){return a;function a(d){return Je(d)?nu(t,s)(d):r(d)}function s(d){return ex(t,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function o(d){return Oe(d)?Le(t,c,"whitespace")(d):c(d)}function c(d){return d===null||pe(d)?l(d):r(d)}}const JC={name:"hardBreakEscape",tokenize:PC};function PC(t,l,r){return a;function a(o){return t.enter("hardBreakEscape"),t.consume(o),s}function s(o){return pe(o)?(t.exit("hardBreakEscape"),l(o)):r(o)}}const $C={name:"headingAtx",resolve:WC,tokenize:ek};function WC(t,l){let r=t.length-2,a=3,s,o;return t[a][1].type==="whitespace"&&(a+=2),r-2>a&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&t[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(s={type:"atxHeadingText",start:t[a][1].start,end:t[r][1].end},o={type:"chunkText",start:t[a][1].start,end:t[r][1].end,contentType:"text"},an(t,a,r-a+1,[["enter",s,l],["enter",o,l],["exit",o,l],["exit",s,l]])),t}function ek(t,l,r){let a=0;return s;function s(y){return t.enter("atxHeading"),o(y)}function o(y){return t.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&a++<6?(t.consume(y),c):y===null||Je(y)?(t.exit("atxHeadingSequence"),d(y)):r(y)}function d(y){return y===35?(t.enter("atxHeadingSequence"),p(y)):y===null||pe(y)?(t.exit("atxHeading"),l(y)):Oe(y)?Le(t,d,"whitespace")(y):(t.enter("atxHeadingText"),m(y))}function p(y){return y===35?(t.consume(y),p):(t.exit("atxHeadingSequence"),d(y))}function m(y){return y===null||y===35||Je(y)?(t.exit("atxHeadingText"),d(y)):(t.consume(y),m)}}const tk=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],nb=["pre","script","style","textarea"],nk={concrete:!0,name:"htmlFlow",resolveTo:rk,tokenize:ak},lk={partial:!0,tokenize:sk},ik={partial:!0,tokenize:uk};function rk(t){let l=t.length;for(;l--&&!(t[l][0]==="enter"&&t[l][1].type==="htmlFlow"););return l>1&&t[l-2][1].type==="linePrefix"&&(t[l][1].start=t[l-2][1].start,t[l+1][1].start=t[l-2][1].start,t.splice(l-2,2)),t}function ak(t,l,r){const a=this;let s,o,c,d,p;return m;function m(w){return y(w)}function y(w){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(w),g}function g(w){return w===33?(t.consume(w),x):w===47?(t.consume(w),o=!0,z):w===63?(t.consume(w),s=3,a.interrupt?l:A):Lt(w)?(t.consume(w),c=String.fromCharCode(w),T):r(w)}function x(w){return w===45?(t.consume(w),s=2,v):w===91?(t.consume(w),s=5,d=0,C):Lt(w)?(t.consume(w),s=4,a.interrupt?l:A):r(w)}function v(w){return w===45?(t.consume(w),a.interrupt?l:A):r(w)}function C(w){const ae="CDATA[";return w===ae.charCodeAt(d++)?(t.consume(w),d===ae.length?a.interrupt?l:$:C):r(w)}function z(w){return Lt(w)?(t.consume(w),c=String.fromCharCode(w),T):r(w)}function T(w){if(w===null||w===47||w===62||Je(w)){const ae=w===47,ye=c.toLowerCase();return!ae&&!o&&nb.includes(ye)?(s=1,a.interrupt?l(w):$(w)):tk.includes(c.toLowerCase())?(s=6,ae?(t.consume(w),k):a.interrupt?l(w):$(w)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(w):o?U(w):D(w))}return w===45||Rt(w)?(t.consume(w),c+=String.fromCharCode(w),T):r(w)}function k(w){return w===62?(t.consume(w),a.interrupt?l:$):r(w)}function U(w){return Oe(w)?(t.consume(w),U):j(w)}function D(w){return w===47?(t.consume(w),j):w===58||w===95||Lt(w)?(t.consume(w),Y):Oe(w)?(t.consume(w),D):j(w)}function Y(w){return w===45||w===46||w===58||w===95||Rt(w)?(t.consume(w),Y):P(w)}function P(w){return w===61?(t.consume(w),B):Oe(w)?(t.consume(w),P):D(w)}function B(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(t.consume(w),p=w,ee):Oe(w)?(t.consume(w),B):V(w)}function ee(w){return w===p?(t.consume(w),p=null,le):w===null||pe(w)?r(w):(t.consume(w),ee)}function V(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||Je(w)?P(w):(t.consume(w),V)}function le(w){return w===47||w===62||Oe(w)?D(w):r(w)}function j(w){return w===62?(t.consume(w),ie):r(w)}function ie(w){return w===null||pe(w)?$(w):Oe(w)?(t.consume(w),ie):r(w)}function $(w){return w===45&&s===2?(t.consume(w),Q):w===60&&s===1?(t.consume(w),W):w===62&&s===4?(t.consume(w),M):w===63&&s===3?(t.consume(w),A):w===93&&s===5?(t.consume(w),ve):pe(w)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(lk,K,Se)(w)):w===null||pe(w)?(t.exit("htmlFlowData"),Se(w)):(t.consume(w),$)}function Se(w){return t.check(ik,se,K)(w)}function se(w){return t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),ne}function ne(w){return w===null||pe(w)?Se(w):(t.enter("htmlFlowData"),$(w))}function Q(w){return w===45?(t.consume(w),A):$(w)}function W(w){return w===47?(t.consume(w),c="",ce):$(w)}function ce(w){if(w===62){const ae=c.toLowerCase();return nb.includes(ae)?(t.consume(w),M):$(w)}return Lt(w)&&c.length<8?(t.consume(w),c+=String.fromCharCode(w),ce):$(w)}function ve(w){return w===93?(t.consume(w),A):$(w)}function A(w){return w===62?(t.consume(w),M):w===45&&s===2?(t.consume(w),A):$(w)}function M(w){return w===null||pe(w)?(t.exit("htmlFlowData"),K(w)):(t.consume(w),M)}function K(w){return t.exit("htmlFlow"),l(w)}}function uk(t,l,r){const a=this;return s;function s(c){return pe(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),o):r(c)}function o(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}function sk(t,l,r){return a;function a(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(vu,l,r)}}const ok={name:"htmlText",tokenize:ck};function ck(t,l,r){const a=this;let s,o,c;return d;function d(A){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(A),p}function p(A){return A===33?(t.consume(A),m):A===47?(t.consume(A),P):A===63?(t.consume(A),D):Lt(A)?(t.consume(A),V):r(A)}function m(A){return A===45?(t.consume(A),y):A===91?(t.consume(A),o=0,C):Lt(A)?(t.consume(A),U):r(A)}function y(A){return A===45?(t.consume(A),v):r(A)}function g(A){return A===null?r(A):A===45?(t.consume(A),x):pe(A)?(c=g,W(A)):(t.consume(A),g)}function x(A){return A===45?(t.consume(A),v):g(A)}function v(A){return A===62?Q(A):A===45?x(A):g(A)}function C(A){const M="CDATA[";return A===M.charCodeAt(o++)?(t.consume(A),o===M.length?z:C):r(A)}function z(A){return A===null?r(A):A===93?(t.consume(A),T):pe(A)?(c=z,W(A)):(t.consume(A),z)}function T(A){return A===93?(t.consume(A),k):z(A)}function k(A){return A===62?Q(A):A===93?(t.consume(A),k):z(A)}function U(A){return A===null||A===62?Q(A):pe(A)?(c=U,W(A)):(t.consume(A),U)}function D(A){return A===null?r(A):A===63?(t.consume(A),Y):pe(A)?(c=D,W(A)):(t.consume(A),D)}function Y(A){return A===62?Q(A):D(A)}function P(A){return Lt(A)?(t.consume(A),B):r(A)}function B(A){return A===45||Rt(A)?(t.consume(A),B):ee(A)}function ee(A){return pe(A)?(c=ee,W(A)):Oe(A)?(t.consume(A),ee):Q(A)}function V(A){return A===45||Rt(A)?(t.consume(A),V):A===47||A===62||Je(A)?le(A):r(A)}function le(A){return A===47?(t.consume(A),Q):A===58||A===95||Lt(A)?(t.consume(A),j):pe(A)?(c=le,W(A)):Oe(A)?(t.consume(A),le):Q(A)}function j(A){return A===45||A===46||A===58||A===95||Rt(A)?(t.consume(A),j):ie(A)}function ie(A){return A===61?(t.consume(A),$):pe(A)?(c=ie,W(A)):Oe(A)?(t.consume(A),ie):le(A)}function $(A){return A===null||A===60||A===61||A===62||A===96?r(A):A===34||A===39?(t.consume(A),s=A,Se):pe(A)?(c=$,W(A)):Oe(A)?(t.consume(A),$):(t.consume(A),se)}function Se(A){return A===s?(t.consume(A),s=void 0,ne):A===null?r(A):pe(A)?(c=Se,W(A)):(t.consume(A),Se)}function se(A){return A===null||A===34||A===39||A===60||A===61||A===96?r(A):A===47||A===62||Je(A)?le(A):(t.consume(A),se)}function ne(A){return A===47||A===62||Je(A)?le(A):r(A)}function Q(A){return A===62?(t.consume(A),t.exit("htmlTextData"),t.exit("htmlText"),l):r(A)}function W(A){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(A),t.exit("lineEnding"),ce}function ce(A){return Oe(A)?Le(t,ve,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):ve(A)}function ve(A){return t.enter("htmlTextData"),c(A)}}const td={name:"labelEnd",resolveAll:mk,resolveTo:pk,tokenize:gk},fk={tokenize:yk},hk={tokenize:bk},dk={tokenize:vk};function mk(t){let l=-1;const r=[];for(;++l<t.length;){const a=t[l][1];if(r.push(t[l]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const s=a.type==="labelImage"?4:2;a.type="data",l+=s}}return t.length!==r.length&&an(t,0,t.length,r),t}function pk(t,l){let r=t.length,a=0,s,o,c,d;for(;r--;)if(s=t[r][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(t[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=r,s.type!=="labelLink")){a=2;break}}else s.type==="labelEnd"&&(c=r);const p={type:t[o][1].type==="labelLink"?"link":"image",start:{...t[o][1].start},end:{...t[t.length-1][1].end}},m={type:"label",start:{...t[o][1].start},end:{...t[c][1].end}},y={type:"labelText",start:{...t[o+a+2][1].end},end:{...t[c-2][1].start}};return d=[["enter",p,l],["enter",m,l]],d=xn(d,t.slice(o+1,o+a+3)),d=xn(d,[["enter",y,l]]),d=xn(d,oo(l.parser.constructs.insideSpan.null,t.slice(o+a+4,c-3),l)),d=xn(d,[["exit",y,l],t[c-2],t[c-1],["exit",m,l]]),d=xn(d,t.slice(c+1)),d=xn(d,[["exit",p,l]]),an(t,o,t.length,d),t}function gk(t,l,r){const a=this;let s=a.events.length,o,c;for(;s--;)if((a.events[s][1].type==="labelImage"||a.events[s][1].type==="labelLink")&&!a.events[s][1]._balanced){o=a.events[s][1];break}return d;function d(x){return o?o._inactive?g(x):(c=a.parser.defined.includes(zn(a.sliceSerialize({start:o.end,end:a.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(x),t.exit("labelMarker"),t.exit("labelEnd"),p):r(x)}function p(x){return x===40?t.attempt(fk,y,c?y:g)(x):x===91?t.attempt(hk,y,c?m:g)(x):c?y(x):g(x)}function m(x){return t.attempt(dk,y,g)(x)}function y(x){return l(x)}function g(x){return o._balanced=!0,r(x)}}function yk(t,l,r){return a;function a(g){return t.enter("resource"),t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),s}function s(g){return Je(g)?nu(t,o)(g):o(g)}function o(g){return g===41?y(g):$v(t,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return Je(g)?nu(t,p)(g):y(g)}function d(g){return r(g)}function p(g){return g===34||g===39||g===40?ex(t,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return Je(g)?nu(t,y)(g):y(g)}function y(g){return g===41?(t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),t.exit("resource"),l):r(g)}}function bk(t,l,r){const a=this;return s;function s(d){return Wv.call(a,t,o,c,"reference","referenceMarker","referenceString")(d)}function o(d){return a.parser.defined.includes(zn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?l(d):r(d)}function c(d){return r(d)}}function vk(t,l,r){return a;function a(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),s}function s(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),l):r(o)}}const xk={name:"labelStartImage",resolveAll:td.resolveAll,tokenize:Sk};function Sk(t,l,r){const a=this;return s;function s(d){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(d),t.exit("labelImageMarker"),o}function o(d){return d===91?(t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(d):l(d)}}const wk={name:"labelStartLink",resolveAll:td.resolveAll,tokenize:Ek};function Ek(t,l,r){const a=this;return s;function s(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),o}function o(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(c):l(c)}}const Vf={name:"lineEnding",tokenize:Ck};function Ck(t,l){return r;function r(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Le(t,l,"linePrefix")}}const Ps={name:"thematicBreak",tokenize:kk};function kk(t,l,r){let a=0,s;return o;function o(m){return t.enter("thematicBreak"),c(m)}function c(m){return s=m,d(m)}function d(m){return m===s?(t.enter("thematicBreakSequence"),p(m)):a>=3&&(m===null||pe(m))?(t.exit("thematicBreak"),l(m)):r(m)}function p(m){return m===s?(t.consume(m),a++,p):(t.exit("thematicBreakSequence"),Oe(m)?Le(t,d,"whitespace")(m):d(m))}}const Vt={continuation:{tokenize:Rk},exit:Mk,name:"list",tokenize:zk},Tk={partial:!0,tokenize:Dk},Ak={partial:!0,tokenize:Ok};function zk(t,l,r){const a=this,s=a.events[a.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return d;function d(v){const C=a.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!a.containerState.marker||v===a.containerState.marker:kh(v)){if(a.containerState.type||(a.containerState.type=C,t.enter(C,{_container:!0})),C==="listUnordered")return t.enter("listItemPrefix"),v===42||v===45?t.check(Ps,r,m)(v):m(v);if(!a.interrupt||v===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),p(v)}return r(v)}function p(v){return kh(v)&&++c<10?(t.consume(v),p):(!a.interrupt||c<2)&&(a.containerState.marker?v===a.containerState.marker:v===41||v===46)?(t.exit("listItemValue"),m(v)):r(v)}function m(v){return t.enter("listItemMarker"),t.consume(v),t.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||v,t.check(vu,a.interrupt?r:y,t.attempt(Tk,x,g))}function y(v){return a.containerState.initialBlankLine=!0,o++,x(v)}function g(v){return Oe(v)?(t.enter("listItemPrefixWhitespace"),t.consume(v),t.exit("listItemPrefixWhitespace"),x):r(v)}function x(v){return a.containerState.size=o+a.sliceSerialize(t.exit("listItemPrefix"),!0).length,l(v)}}function Rk(t,l,r){const a=this;return a.containerState._closeFlow=void 0,t.check(vu,s,o);function s(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Le(t,l,"listItemIndent",a.containerState.size+1)(d)}function o(d){return a.containerState.furtherBlankLines||!Oe(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,t.attempt(Ak,l,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,Le(t,t.attempt(Vt,l,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function Ok(t,l,r){const a=this;return Le(t,s,"listItemIndent",a.containerState.size+1);function s(o){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?l(o):r(o)}}function Mk(t){t.exit(this.containerState.type)}function Dk(t,l,r){const a=this;return Le(t,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const c=a.events[a.events.length-1];return!Oe(o)&&c&&c[1].type==="listItemPrefixWhitespace"?l(o):r(o)}}const lb={name:"setextUnderline",resolveTo:Nk,tokenize:_k};function Nk(t,l){let r=t.length,a,s,o;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){a=r;break}t[r][1].type==="paragraph"&&(s=r)}else t[r][1].type==="content"&&t.splice(r,1),!o&&t[r][1].type==="definition"&&(o=r);const c={type:"setextHeading",start:{...t[a][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",o?(t.splice(s,0,["enter",c,l]),t.splice(o+1,0,["exit",t[a][1],l]),t[a][1].end={...t[o][1].end}):t[a][1]=c,t.push(["exit",c,l]),t}function _k(t,l,r){const a=this;let s;return o;function o(m){let y=a.events.length,g;for(;y--;)if(a.events[y][1].type!=="lineEnding"&&a.events[y][1].type!=="linePrefix"&&a.events[y][1].type!=="content"){g=a.events[y][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(t.enter("setextHeadingLine"),s=m,c(m)):r(m)}function c(m){return t.enter("setextHeadingLineSequence"),d(m)}function d(m){return m===s?(t.consume(m),d):(t.exit("setextHeadingLineSequence"),Oe(m)?Le(t,p,"lineSuffix")(m):p(m))}function p(m){return m===null||pe(m)?(t.exit("setextHeadingLine"),l(m)):r(m)}}const jk={tokenize:Lk};function Lk(t){const l=this,r=t.attempt(vu,a,t.attempt(this.parser.constructs.flowInitial,s,Le(t,t.attempt(this.parser.constructs.flow,s,t.attempt(QC,s)),"linePrefix")));return r;function a(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),l.currentConstruct=void 0,r}function s(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),l.currentConstruct=void 0,r}}const Uk={resolveAll:nx()},Bk=tx("string"),Hk=tx("text");function tx(t){return{resolveAll:nx(t==="text"?qk:void 0),tokenize:l};function l(r){const a=this,s=this.parser.constructs[t],o=r.attempt(s,c,d);return c;function c(y){return m(y)?o(y):d(y)}function d(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),p}function p(y){return m(y)?(r.exit("data"),o(y)):(r.consume(y),p)}function m(y){if(y===null)return!0;const g=s[y];let x=-1;if(g)for(;++x<g.length;){const v=g[x];if(!v.previous||v.previous.call(a,a.previous))return!0}return!1}}}function nx(t){return l;function l(r,a){let s=-1,o;for(;++s<=r.length;)o===void 0?r[s]&&r[s][1].type==="data"&&(o=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==o+2&&(r[o][1].end=r[s-1][1].end,r.splice(o+2,s-o-2),s=o+2),o=void 0);return t?t(r,a):r}}function qk(t,l){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const a=t[r-1][1],s=l.sliceStream(a);let o=s.length,c=-1,d=0,p;for(;o--;){const m=s[o];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(m===-2)p=!0,d++;else if(m!==-1){o++;break}}if(l._contentTypeTextTrailing&&r===t.length&&(d=0),d){const m={type:r===t.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?c:a.start._bufferIndex+c,_index:a.start._index+o,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...m.start},a.start.offset===a.end.offset?Object.assign(a,m):(t.splice(r,0,["enter",m,l],["exit",m,l]),r+=2)}r++}return t}const Qk={42:Vt,43:Vt,45:Vt,48:Vt,49:Vt,50:Vt,51:Vt,52:Vt,53:Vt,54:Vt,55:Vt,56:Vt,57:Vt,62:Zv},Fk={91:XC},Yk={[-2]:Gf,[-1]:Gf,32:Gf},Gk={35:$C,42:Ps,45:[lb,Ps],60:nk,61:lb,95:Ps,96:tb,126:tb},Vk={38:Jv,92:Iv},Xk={[-5]:Vf,[-4]:Vf,[-3]:Vf,33:xk,38:Jv,42:Th,60:[wC,ok],91:wk,92:[JC,Iv],93:td,95:Th,96:jC},Kk={null:[Th,Uk]},Zk={null:[42,95]},Ik={null:[]},Jk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Zk,contentInitial:Fk,disable:Ik,document:Qk,flow:Gk,flowInitial:Yk,insideSpan:Kk,string:Vk,text:Xk},Symbol.toStringTag,{value:"Module"}));function Pk(t,l,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},o=[];let c=[],d=[];const p={attempt:ee(P),check:ee(B),consume:U,enter:D,exit:Y,interrupt:ee(B,{interrupt:!0})},m={code:null,containerState:{},defineSkip:z,events:[],now:C,parser:t,previous:null,sliceSerialize:x,sliceStream:v,write:g};let y=l.tokenize.call(m,p);return l.resolveAll&&o.push(l),m;function g(ie){return c=xn(c,ie),T(),c[c.length-1]!==null?[]:(V(l,0),m.events=oo(o,m.events,m),m.events)}function x(ie,$){return Wk(v(ie),$)}function v(ie){return $k(c,ie)}function C(){const{_bufferIndex:ie,_index:$,line:Se,column:se,offset:ne}=a;return{_bufferIndex:ie,_index:$,line:Se,column:se,offset:ne}}function z(ie){s[ie.line]=ie.column,j()}function T(){let ie;for(;a._index<c.length;){const $=c[a._index];if(typeof $=="string")for(ie=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===ie&&a._bufferIndex<$.length;)k($.charCodeAt(a._bufferIndex));else k($)}}function k(ie){y=y(ie)}function U(ie){pe(ie)?(a.line++,a.column=1,a.offset+=ie===-3?2:1,j()):ie!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),m.previous=ie}function D(ie,$){const Se=$||{};return Se.type=ie,Se.start=C(),m.events.push(["enter",Se,m]),d.push(Se),Se}function Y(ie){const $=d.pop();return $.end=C(),m.events.push(["exit",$,m]),$}function P(ie,$){V(ie,$.from)}function B(ie,$){$.restore()}function ee(ie,$){return Se;function Se(se,ne,Q){let W,ce,ve,A;return Array.isArray(se)?K(se):"tokenize"in se?K([se]):M(se);function M(de){return Me;function Me(nt){const Ge=nt!==null&&de[nt],un=nt!==null&&de.null,qn=[...Array.isArray(Ge)?Ge:Ge?[Ge]:[],...Array.isArray(un)?un:un?[un]:[]];return K(qn)(nt)}}function K(de){return W=de,ce=0,de.length===0?Q:w(de[ce])}function w(de){return Me;function Me(nt){return A=le(),ve=de,de.partial||(m.currentConstruct=de),de.name&&m.parser.constructs.disable.null.includes(de.name)?ye():de.tokenize.call($?Object.assign(Object.create(m),$):m,p,ae,ye)(nt)}}function ae(de){return ie(ve,A),ne}function ye(de){return A.restore(),++ce<W.length?w(W[ce]):Q}}}function V(ie,$){ie.resolveAll&&!o.includes(ie)&&o.push(ie),ie.resolve&&an(m.events,$,m.events.length-$,ie.resolve(m.events.slice($),m)),ie.resolveTo&&(m.events=ie.resolveTo(m.events,m))}function le(){const ie=C(),$=m.previous,Se=m.currentConstruct,se=m.events.length,ne=Array.from(d);return{from:se,restore:Q};function Q(){a=ie,m.previous=$,m.currentConstruct=Se,m.events.length=se,d=ne,j()}}function j(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function $k(t,l){const r=l.start._index,a=l.start._bufferIndex,s=l.end._index,o=l.end._bufferIndex;let c;if(r===s)c=[t[r].slice(a,o)];else{if(c=t.slice(r,s),a>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}o>0&&c.push(t[s].slice(0,o))}return c}function Wk(t,l){let r=-1;const a=[];let s;for(;++r<t.length;){const o=t[r];let c;if(typeof o=="string")c=o;else switch(o){case-5:{c="\r";break}case-4:{c=`
|
|
167
167
|
`;break}case-3:{c=`\r
|
|
168
168
|
`;break}case-2:{c=l?" ":" ";break}case-1:{if(!l&&s)continue;c=" ";break}default:c=String.fromCharCode(o)}s=o===-2,a.push(c)}return a.join("")}function eT(t){const a={constructs:Xv([Jk,...(t||{}).extensions||[]]),content:s(pC),defined:[],document:s(yC),flow:s(jk),lazy:{},string:s(Bk),text:s(Hk)};return a;function s(o){return c;function c(d){return Pk(a,o,d)}}}function tT(t){for(;!Pv(t););return t}const ib=/[\0\t\n\r]/g;function nT(){let t=1,l="",r=!0,a;return s;function s(o,c,d){const p=[];let m,y,g,x,v;for(o=l+(typeof o=="string"?o.toString():new TextDecoder(c||void 0).decode(o)),g=0,l="",r&&(o.charCodeAt(0)===65279&&g++,r=void 0);g<o.length;){if(ib.lastIndex=g,m=ib.exec(o),x=m&&m.index!==void 0?m.index:o.length,v=o.charCodeAt(x),!m){l=o.slice(g);break}if(v===10&&g===x&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),g<x&&(p.push(o.slice(g,x)),t+=x-g),v){case 0:{p.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,p.push(-2);t++<y;)p.push(-1);break}case 10:{p.push(-4),t=1;break}default:a=!0,t=1}g=x+1}return d&&(a&&p.push(-5),l&&p.push(l),p.push(null)),p}}const lT=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function iT(t){return t.replace(lT,rT)}function rT(t,l,r){if(l)return l;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),o=s===120||s===88;return Kv(r.slice(o?2:1),o?16:10)}return ed(r)||t}const lx={}.hasOwnProperty;function aT(t,l,r){return typeof l!="string"&&(r=l,l=void 0),uT(r)(tT(eT(r).document().write(nT()(t,l,!0))))}function uT(t){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Fi),autolinkProtocol:le,autolinkEmail:le,atxHeading:o(qi),blockQuote:o(un),characterEscape:le,characterReference:le,codeFenced:o(qn),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:o(qn,c),codeText:o($r,c),codeTextData:le,data:le,codeFlowValue:le,definition:o(Su),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:o(Qn),hardBreakEscape:o(Qi),hardBreakTrailing:o(Qi),htmlFlow:o(wu,c),htmlFlowData:le,htmlText:o(wu,c),htmlTextData:le,image:o(Eu),label:c,link:o(Fi),listItem:o(Wr),listItemValue:x,listOrdered:o(Yi,g),listUnordered:o(Yi),paragraph:o(mo),reference:w,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:o(qi),strong:o(po),thematicBreak:o(go)},exit:{atxHeading:p(),atxHeadingSequence:P,autolink:p(),autolinkEmail:Ge,autolinkProtocol:nt,blockQuote:p(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:de,characterReference:Me,codeFenced:p(T),codeFencedFence:z,codeFencedFenceInfo:v,codeFencedFenceMeta:C,codeFlowValue:j,codeIndented:p(k),codeText:p(ne),codeTextData:j,data:j,definition:p(),definitionDestinationString:Y,definitionLabelString:U,definitionTitleString:D,emphasis:p(),hardBreakEscape:p($),hardBreakTrailing:p($),htmlFlow:p(Se),htmlFlowData:j,htmlText:p(se),htmlTextData:j,image:p(W),label:ve,labelText:ce,lineEnding:ie,link:p(Q),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ae,resourceDestinationString:A,resourceTitleString:M,resource:K,setextHeading:p(V),setextHeadingLineSequence:ee,setextHeadingText:B,strong:p(),thematicBreak:p()}};ix(l,(t||{}).mdastExtensions||[]);const r={};return a;function a(Z){let re={type:"root",children:[]};const be={stack:[re],tokenStack:[],config:l,enter:d,exit:m,buffer:c,resume:y,data:r},Ae=[];let qe=-1;for(;++qe<Z.length;)if(Z[qe][1].type==="listOrdered"||Z[qe][1].type==="listUnordered")if(Z[qe][0]==="enter")Ae.push(qe);else{const It=Ae.pop();qe=s(Z,It,qe)}for(qe=-1;++qe<Z.length;){const It=l[Z[qe][0]];lx.call(It,Z[qe][1].type)&&It[Z[qe][1].type].call(Object.assign({sliceSerialize:Z[qe][2].sliceSerialize},be),Z[qe][1])}if(be.tokenStack.length>0){const It=be.tokenStack[be.tokenStack.length-1];(It[1]||rb).call(be,void 0,It[0])}for(re.position={start:Gl(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:Gl(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},qe=-1;++qe<l.transforms.length;)re=l.transforms[qe](re)||re;return re}function s(Z,re,be){let Ae=re-1,qe=-1,It=!1,Fn,Dt,pt,Ut;for(;++Ae<=be;){const Ze=Z[Ae];switch(Ze[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ze[0]==="enter"?qe++:qe--,Ut=void 0;break}case"lineEndingBlank":{Ze[0]==="enter"&&(Fn&&!Ut&&!qe&&!pt&&(pt=Ae),Ut=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ut=void 0}if(!qe&&Ze[0]==="enter"&&Ze[1].type==="listItemPrefix"||qe===-1&&Ze[0]==="exit"&&(Ze[1].type==="listUnordered"||Ze[1].type==="listOrdered")){if(Fn){let yl=Ae;for(Dt=void 0;yl--;){const wn=Z[yl];if(wn[1].type==="lineEnding"||wn[1].type==="lineEndingBlank"){if(wn[0]==="exit")continue;Dt&&(Z[Dt][1].type="lineEndingBlank",It=!0),wn[1].type="lineEnding",Dt=yl}else if(!(wn[1].type==="linePrefix"||wn[1].type==="blockQuotePrefix"||wn[1].type==="blockQuotePrefixWhitespace"||wn[1].type==="blockQuoteMarker"||wn[1].type==="listItemIndent"))break}pt&&(!Dt||pt<Dt)&&(Fn._spread=!0),Fn.end=Object.assign({},Dt?Z[Dt][1].start:Ze[1].end),Z.splice(Dt||Ae,0,["exit",Fn,Ze[2]]),Ae++,be++}if(Ze[1].type==="listItemPrefix"){const yl={type:"listItem",_spread:!1,start:Object.assign({},Ze[1].start),end:void 0};Fn=yl,Z.splice(Ae,0,["enter",yl,Ze[2]]),Ae++,be++,pt=void 0,Ut=!0}}}return Z[re][1]._spread=It,be}function o(Z,re){return be;function be(Ae){d.call(this,Z(Ae),Ae),re&&re.call(this,Ae)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(Z,re,be){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([re,be||void 0]),Z.position={start:Gl(re.start),end:void 0}}function p(Z){return re;function re(be){Z&&Z.call(this,be),m.call(this,be)}}function m(Z,re){const be=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==Z.type&&(re?re.call(this,Z,Ae[0]):(Ae[1]||rb).call(this,Z,Ae[0]));else throw new Error("Cannot close `"+Z.type+"` ("+tu({start:Z.start,end:Z.end})+"): it’s not open");be.position.end=Gl(Z.end)}function y(){return Wh(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function x(Z){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function v(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.lang=Z}function C(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.meta=Z}function z(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.value=Z.replace(/(\r?\n|\r)$/g,"")}function U(Z){const re=this.resume(),be=this.stack[this.stack.length-1];be.label=re,be.identifier=zn(this.sliceSerialize(Z)).toLowerCase()}function D(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.title=Z}function Y(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.url=Z}function P(Z){const re=this.stack[this.stack.length-1];if(!re.depth){const be=this.sliceSerialize(Z).length;re.depth=be}}function B(){this.data.setextHeadingSlurpLineEnding=!0}function ee(Z){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function le(Z){const be=this.stack[this.stack.length-1].children;let Ae=be[be.length-1];(!Ae||Ae.type!=="text")&&(Ae=Mt(),Ae.position={start:Gl(Z.start),end:void 0},be.push(Ae)),this.stack.push(Ae)}function j(Z){const re=this.stack.pop();re.value+=this.sliceSerialize(Z),re.position.end=Gl(Z.end)}function ie(Z){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const be=re.children[re.children.length-1];be.position.end=Gl(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&l.canContainEols.includes(re.type)&&(le.call(this,Z),j.call(this,Z))}function $(){this.data.atHardBreak=!0}function Se(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.value=Z}function se(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.value=Z}function ne(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.value=Z}function Q(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=re,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function W(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=re,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function ce(Z){const re=this.sliceSerialize(Z),be=this.stack[this.stack.length-2];be.label=iT(re),be.identifier=zn(re).toLowerCase()}function ve(){const Z=this.stack[this.stack.length-1],re=this.resume(),be=this.stack[this.stack.length-1];if(this.data.inReference=!0,be.type==="link"){const Ae=Z.children;be.children=Ae}else be.alt=re}function A(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.url=Z}function M(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.title=Z}function K(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function ae(Z){const re=this.resume(),be=this.stack[this.stack.length-1];be.label=re,be.identifier=zn(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function ye(Z){this.data.characterReferenceType=Z.type}function de(Z){const re=this.sliceSerialize(Z),be=this.data.characterReferenceType;let Ae;be?(Ae=Kv(re,be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=ed(re);const qe=this.stack[this.stack.length-1];qe.value+=Ae}function Me(Z){const re=this.stack.pop();re.position.end=Gl(Z.end)}function nt(Z){j.call(this,Z);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(Z)}function Ge(Z){j.call(this,Z);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(Z)}function un(){return{type:"blockquote",children:[]}}function qn(){return{type:"code",lang:null,meta:null,value:""}}function $r(){return{type:"inlineCode",value:""}}function Su(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Qn(){return{type:"emphasis",children:[]}}function qi(){return{type:"heading",depth:0,children:[]}}function Qi(){return{type:"break"}}function wu(){return{type:"html",value:""}}function Eu(){return{type:"image",title:null,url:"",alt:null}}function Fi(){return{type:"link",title:null,url:"",children:[]}}function Yi(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function Wr(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function mo(){return{type:"paragraph",children:[]}}function po(){return{type:"strong",children:[]}}function Mt(){return{type:"text",value:""}}function go(){return{type:"thematicBreak"}}}function Gl(t){return{line:t.line,column:t.column,offset:t.offset}}function ix(t,l){let r=-1;for(;++r<l.length;){const a=l[r];Array.isArray(a)?ix(t,a):sT(t,a)}}function sT(t,l){let r;for(r in l)if(lx.call(l,r))switch(r){case"canContainEols":{const a=l[r];a&&t[r].push(...a);break}case"transforms":{const a=l[r];a&&t[r].push(...a);break}case"enter":case"exit":{const a=l[r];a&&Object.assign(t[r],a);break}}}function rb(t,l){throw t?new Error("Cannot close `"+t.type+"` ("+tu({start:t.start,end:t.end})+"): a different token (`"+l.type+"`, "+tu({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+tu({start:l.start,end:l.end})+") is still open")}function oT(t){const l=this;l.parser=r;function r(a){return aT(a,{...l.data("settings"),...t,extensions:l.data("micromarkExtensions")||[],mdastExtensions:l.data("fromMarkdownExtensions")||[]})}}function cT(t,l){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(l),!0)};return t.patch(l,r),t.applyData(l,r)}function fT(t,l){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(l,r),[t.applyData(l,r),{type:"text",value:`
|
package/web/dist/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Spets — Web UI</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-DkQph699.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/assets/index-3dD4COCL.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
name: Spets Task
|
|
2
|
-
description: Start a Spets workflow
|
|
3
|
-
labels: ["spets"]
|
|
4
|
-
body:
|
|
5
|
-
- type: input
|
|
6
|
-
id: branch
|
|
7
|
-
attributes:
|
|
8
|
-
label: Branch Name
|
|
9
|
-
description: Name for the feature branch
|
|
10
|
-
placeholder: "feature/my-feature"
|
|
11
|
-
validations:
|
|
12
|
-
required: true
|
|
13
|
-
- type: textarea
|
|
14
|
-
id: requirements
|
|
15
|
-
attributes:
|
|
16
|
-
label: Requirements
|
|
17
|
-
description: What do you want to accomplish? (supports multi-line)
|
|
18
|
-
placeholder: |
|
|
19
|
-
Add user authentication
|
|
20
|
-
- Support email/password login
|
|
21
|
-
- Add JWT tokens
|
|
22
|
-
validations:
|
|
23
|
-
required: true
|