@thxgg/steward 0.1.15 → 0.1.16
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{C_NevjZD.js → BSA0RJ-H.js} +1 -1
- package/.output/public/_nuxt/{BubpH_wW.js → BWVTacYj.js} +1 -1
- package/.output/public/_nuxt/{CMu9GKTH.js → Bibm_IDv.js} +2 -2
- package/.output/public/_nuxt/{wbj-mIhK.js → CVJh28bx.js} +1 -1
- package/.output/public/_nuxt/{BDqHART1.js → CxHOXVf6.js} +1 -1
- package/.output/public/_nuxt/CyZuidLG.js +60 -0
- package/.output/public/_nuxt/{qt5OEWHC.js → D0op9E2g.js} +1 -1
- package/.output/public/_nuxt/{CVvrkZkq.js → DX8awZaa.js} +1 -1
- package/.output/public/_nuxt/Detail.z33AHKev.css +1 -0
- package/.output/public/_nuxt/{C2HGkiSP.js → DiTJUZOC.js} +1 -1
- package/.output/public/_nuxt/{nYTZJhvT.js → Dum5qplW.js} +1 -1
- package/.output/public/_nuxt/{BPeTf9dd.js → T_3JE9C-.js} +1 -1
- package/.output/public/_nuxt/WOI2tLsR.js +42 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/029070b0-b8e2-4988-84f4-d0c9ff55c998.json +1 -0
- package/.output/public/_nuxt/{B-5VWizU.js → odRGDGwj.js} +1 -1
- package/.output/public/_nuxt/{qKRNa41x.js → wbjFvimm.js} +1 -1
- package/.output/public/_nuxt/{uTyw4SRK.js → ynmyrfyT.js} +1 -1
- package/.output/server/chunks/build/{Detail-DC-KJQ1f.mjs → Detail-CUfU85GY.mjs} +26 -26
- package/.output/server/chunks/build/Detail-CUfU85GY.mjs.map +1 -0
- package/.output/server/chunks/build/DiffViewer-styles-1.mjs-CS8FTppg.mjs +4 -0
- package/.output/server/chunks/build/DiffViewer-styles-1.mjs-CS8FTppg.mjs.map +1 -0
- package/.output/server/chunks/build/DiffViewer-styles.AUfwwelI.mjs +10 -0
- package/.output/server/chunks/build/DiffViewer-styles.AUfwwelI.mjs.map +1 -0
- package/.output/server/chunks/build/DiffViewer-styles.D_it8zfk.mjs +8 -0
- package/.output/server/chunks/build/DiffViewer-styles.D_it8zfk.mjs.map +1 -0
- package/.output/server/chunks/build/{_prd_-C1C4GAhW.mjs → _prd_-CeVnQzOV.mjs} +3 -3
- package/.output/server/chunks/build/_prd_-CeVnQzOV.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/{repo-graph-CTEkxiYd.mjs → repo-graph-CHNl58mY.mjs} +3 -3
- package/.output/server/chunks/build/repo-graph-CHNl58mY.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +2 -2
- package/.output/server/chunks/build/styles.mjs +2 -2
- package/.output/server/chunks/nitro/nitro.mjs +612 -612
- package/.output/server/package.json +1 -1
- package/package.json +1 -1
- package/.output/public/_nuxt/-k8zG74W.js +0 -61
- package/.output/public/_nuxt/BMAq0QVD.js +0 -42
- package/.output/public/_nuxt/Detail.CzXXlavD.css +0 -1
- package/.output/public/_nuxt/builds/meta/c1a7997d-8d53-4718-ad03-a977e05e2523.json +0 -1
- package/.output/server/chunks/build/Detail-DC-KJQ1f.mjs.map +0 -1
- package/.output/server/chunks/build/DiffViewer-styles-1.mjs-D0sb4vsK.mjs +0 -4
- package/.output/server/chunks/build/DiffViewer-styles-1.mjs-D0sb4vsK.mjs.map +0 -1
- package/.output/server/chunks/build/DiffViewer-styles.CkSjCQ0r.mjs +0 -10
- package/.output/server/chunks/build/DiffViewer-styles.CkSjCQ0r.mjs.map +0 -1
- package/.output/server/chunks/build/DiffViewer-styles.FJJuYjYB.mjs +0 -8
- package/.output/server/chunks/build/DiffViewer-styles.FJJuYjYB.mjs.map +0 -1
- package/.output/server/chunks/build/_prd_-C1C4GAhW.mjs.map +0 -1
- package/.output/server/chunks/build/repo-graph-CTEkxiYd.mjs.map +0 -1
- package/.output/server/node_modules/shiki/dist/bundle-web.mjs +0 -366
package/package.json
CHANGED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DxNHbxmM.js","./CnnebwVN.js","./wDzz0qaB.js","./DPfMkruS.js","./Cl0AqbOI.js","./2EtD6e53.js","./Cn7AkR1O.js","./BGJmEYvX.js","./CylS5w8V.js","./Cp-IABpG.js","./DxSwrfjg.js","./BPQ3VLAy.js","./CXtECtnM.js","./COt5Ahok.js","./5X7smno1.js","./DGP4VlC8.js","./BLtJtn59.js","./CquLrc37.js","./DVxCFoDh.js","./CO1LY3CK.js","./B6aJPvgy.js","./BYV0-3_D.js","./CxbxFI8M.js","./Bp3cYrEr.js","./CDVJQ6XC.js","./DZxFcAj9.js","./BIGW1oBm.js","./fKv21gyL.js","./Yzrsuije.js","./DZu-aV2c.js","./CpOuai2O.js","./CeZK1NFH.js","./CGscLIrv.js","./Bhrxn6JZ.js","./CmIQRyeF.js","./C9oPPf7i.js","./g9-lgVsj.js","./CnsnAmq5.js","./Buea-lGh.js","./CuPHTKiy.js","./Cvjx9yec.js","./B7c-h3xW.js","./BxgE0vQu.js","./BTifaqeh.js","./CenWIFCC.js","./DkwncUOv.js","./C5YyOfLZ.js","./CxGSJlkm.js","./D97Zzqfu.js","./CSXwinHm.js","./YqXBG_HV.js","./BR5kRUq4.js","./CLZrNe3w.js","./m17aaUwq.js","./CufHLc7y.js","./CYsAdtH9.js","./fuZLfV_i.js","./DWrx1Km3.js","./CzTSHFRz.js","./CXZktZb0.js","./Br6cN0cg.js","./W9tJ9s81.js","./Dspwwk_N.js","./DMwsHuHA.js","./CQ8jqdy-.js","./mjskCLCv.js","./83L43bj1.js","./B1dDrJ26.js","./TsXTqZ29.js","./Dph4kLrZ.js","./DhmSosst.js","./BzTr9Aqm.js","./DJjDtW9f.js","./BLmx8bSh.js","./BVQ-GDCI.js","./DsumFeuD.js","./COcwbKMJ.js","./DQwYQDb2.js","./D1j8_8rp.js","./CG8Ifv2g.js","./BqTXFGrv.js","./D3lLCCz7.js","./Cq5zzVJU.js","./Dzze3sRP.js","./BRZ36xJF.js","./BsS91CYL.js","./DM8c43g1.js","./BH7IYjvW.js","./DYoxhk2S.js","./CZhp0h8q.js","./CxLEBnE3.js","./Cm3UrAx6.js","./RNghxpo_.js","./DEthMvLe.js","./DqQDbK_p.js","./CW8IKDeL.js","./BEDo0Tqx.js","./yv6CvBhz.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as Ni}from"./wbj-mIhK.js";import{u as Jr,c as ei,a as ti,b as It,P as zi,B as ri,C as ii,d as Bi,e as Fi,L as Ui,R as Hi,G as qi}from"./C_NevjZD.js";import{c as pt,d as ai,P as We,e as _e,r as Dt,u as Gi,a as ji,b as Wi,B as Or,F as Qi}from"./qt5OEWHC.js";import{C as Yi,E as Sr,c as Xi,g as Ki,a as Zi,b as Ji,d as ea,M as Cr,e as Vr,f as ta,_ as ra,h as ia}from"./BMAq0QVD.js";import{g as B,v as ar,o as A,x as ae,w as D,b as y,l as p,y as X,q as U,z as Rt,A as ni,s as $,B as aa,C as na,D as oa,E as sa,n as Ae,G as la,p as ua,c as O,a as M,t as re,d as De,_ as n,k as Se,H as de,I as oi,F as si,r as li,J as pa,K as ca,L as Pt,M as ma,j as da,m as Mr,i as _a}from"./CMu9GKTH.js";import{u as ui,f as pi,E as fa,a as ha,g as ga,w as Ea,A as $r}from"./C2HGkiSP.js";import{_ as ka}from"./DlAUqK2U.js";import"./nYTZJhvT.js";const Ta=pt("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);const ba=pt("circle-dot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);const va=pt("circle-play",[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const Nr=pt("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);const Aa=pt("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),[xa,Ra]=ei("RovingFocusGroup");var ya=B({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(i,{expose:e,emit:t}){const a=i,r=t,{loop:l,orientation:s,dir:c}=ar(a),u=Jr(c),d=ai(a,"currentTabStopId",r,{defaultValue:a.defaultCurrentTabStopId,passive:a.currentTabStopId===void 0}),m=U(!1),_=U(!1),E=U(0),{getItems:k,CollectionSlot:v}=ui({isProvider:!0});function S(C){const V=!_.value;if(C.currentTarget&&C.target===C.currentTarget&&V&&!m.value){const P=new CustomEvent(fa,ha);if(C.currentTarget.dispatchEvent(P),r("entryFocus",P),!P.defaultPrevented){const w=k().map(G=>G.ref).filter(G=>G.dataset.disabled!==""),J=w.find(G=>G.getAttribute("data-active")===""),K=w.find(G=>G.getAttribute("data-highlighted")===""),fe=w.find(G=>G.id===d.value),he=[J,K,fe,...w].filter(Boolean);pi(he,a.preventScrollOnEntryFocus)}}_.value=!1}function ue(){setTimeout(()=>{_.value=!1},1)}return e({getItems:k}),Ra({loop:l,dir:u,orientation:s,currentTabStopId:d,onItemFocus:C=>{d.value=C},onItemShiftTab:()=>{m.value=!0},onFocusableItemAdd:()=>{E.value++},onFocusableItemRemove:()=>{E.value--}}),(C,V)=>(A(),ae(p(v),null,{default:D(()=>[y(p(We),{tabindex:m.value||E.value===0?-1:0,"data-orientation":p(s),as:C.as,"as-child":C.asChild,dir:p(u),style:{outline:"none"},onMousedown:V[0]||(V[0]=P=>_.value=!0),onMouseup:ue,onFocus:S,onBlur:V[1]||(V[1]=P=>m.value=!1)},{default:D(()=>[X(C.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),La=ya,wa=B({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(i){const e=i,t=xa(),a=ti(),r=$(()=>e.tabStopId||a),l=$(()=>t.currentTabStopId.value===r.value),{getItems:s,CollectionItem:c}=ui();Rt(()=>{e.focusable&&t.onFocusableItemAdd()}),ni(()=>{e.focusable&&t.onFocusableItemRemove()});function u(d){if(d.key==="Tab"&&d.shiftKey){t.onItemShiftTab();return}if(d.target!==d.currentTarget)return;const m=ga(d,t.orientation.value,t.dir.value);if(m!==void 0){if(d.metaKey||d.ctrlKey||d.altKey||!e.allowShiftKey&&d.shiftKey)return;d.preventDefault();let _=[...s().map(E=>E.ref).filter(E=>E.dataset.disabled!=="")];if(m==="last")_.reverse();else if(m==="prev"||m==="next"){m==="prev"&&_.reverse();const E=_.indexOf(d.currentTarget);_=t.loop.value?Ea(_,E+1):_.slice(E+1)}aa(()=>pi(_))}}return(d,m)=>(A(),ae(p(c),null,{default:D(()=>[y(p(We),{tabindex:l.value?0:-1,"data-orientation":p(t).orientation.value,"data-active":d.active?"":void 0,"data-disabled":d.focusable?void 0:"",as:d.as,"as-child":d.asChild,onMousedown:m[0]||(m[0]=_=>{d.focusable?p(t).onItemFocus(r.value):_.preventDefault()}),onFocus:m[1]||(m[1]=_=>p(t).onItemFocus(r.value)),onKeydown:u},{default:D(()=>[X(d.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),Ia=wa;const[nr,Da]=ei("TabsRoot");var Pa=B({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(i,{emit:e}){const t=i,a=e,{orientation:r,unmountOnHide:l,dir:s}=ar(t),c=Jr(s);It();const u=ai(t,"modelValue",a,{defaultValue:t.defaultValue,passive:t.modelValue===void 0}),d=U(),m=na(new Set);return Da({modelValue:u,changeModelValue:_=>{u.value=_},orientation:r,dir:c,unmountOnHide:l,activationMode:t.activationMode,baseId:ti(void 0,"reka-tabs"),tabsList:d,contentIds:m,registerContent:_=>{m.value=new Set([...m.value,_])},unregisterContent:_=>{const E=new Set(m.value);E.delete(_),m.value=E}}),(_,E)=>(A(),ae(p(We),{dir:p(c),"data-orientation":p(r),"as-child":_.asChild,as:_.as},{default:D(()=>[X(_.$slots,"default",{modelValue:p(u)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),Oa=Pa;function ci(i,e){return`${i}-trigger-${e}`}function mi(i,e){return`${i}-content-${e}`}var Sa=B({__name:"TabsContent",props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(i){const e=i,{forwardRef:t}=It(),a=nr(),r=$(()=>ci(a.baseId,e.value)),l=$(()=>mi(a.baseId,e.value)),s=$(()=>e.value===a.modelValue.value),c=U(s.value);return Rt(()=>{a.registerContent(e.value),requestAnimationFrame(()=>{c.value=!1})}),oa(()=>{a.unregisterContent(e.value)}),(u,d)=>(A(),ae(p(zi),{present:u.forceMount||s.value,"force-mount":""},{default:D(({present:m})=>[y(p(We),{id:l.value,ref:p(t),"as-child":u.asChild,as:u.as,role:"tabpanel","data-state":s.value?"active":"inactive","data-orientation":p(a).orientation.value,"aria-labelledby":r.value,hidden:!m,tabindex:"0",style:sa({animationDuration:c.value?"0s":void 0})},{default:D(()=>[!p(a).unmountOnHide.value||m?X(u.$slots,"default",{key:0}):Ae("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),Ca=Sa,Va=B({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(i){const e=i,{loop:t}=ar(e),{forwardRef:a,currentElement:r}=It(),l=nr();return l.tabsList=r,(s,c)=>(A(),ae(p(La),{"as-child":"",orientation:p(l).orientation.value,dir:p(l).dir.value,loop:p(t)},{default:D(()=>[y(p(We),{ref:p(a),role:"tablist","as-child":s.asChild,as:s.as,"aria-orientation":p(l).orientation.value},{default:D(()=>[X(s.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),Ma=Va,$a=B({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(i){const e=i,{forwardRef:t}=It(),a=nr(),r=$(()=>ci(a.baseId,e.value)),l=$(()=>a.contentIds.value.has(e.value)?mi(a.baseId,e.value):void 0),s=$(()=>e.value===a.modelValue.value);return(c,u)=>(A(),ae(p(Ia),{"as-child":"",focusable:!c.disabled,active:s.value},{default:D(()=>[y(p(We),{id:r.value,ref:p(t),role:"tab",type:c.as==="button"?"button":void 0,as:c.as,"as-child":c.asChild,"aria-selected":s.value?"true":"false","aria-controls":l.value,"data-state":s.value?"active":"inactive",disabled:c.disabled,"data-disabled":c.disabled?"":void 0,"data-orientation":p(a).orientation.value,onMousedown:u[0]||(u[0]=ua(d=>{!c.disabled&&d.ctrlKey===!1?p(a).changeModelValue(c.value):d.preventDefault()},["left"])),onKeydown:u[1]||(u[1]=la(d=>p(a).changeModelValue(c.value),["enter","space"])),onFocus:u[2]||(u[2]=()=>{const d=p(a).activationMode!=="manual";!s.value&&!c.disabled&&d&&p(a).changeModelValue(c.value)})},{default:D(()=>[X(c.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),Na=$a;const za={key:0,class:"flex flex-wrap items-center gap-3 text-sm"},Ba={key:0,class:"flex items-center gap-1.5 text-muted-foreground"},Fa={key:1,class:"flex items-center gap-1.5 text-muted-foreground"},Ua=["href"],Ha={key:4,class:"flex items-center gap-1.5 text-muted-foreground"},qa=B({__name:"Meta",props:{metadata:{}},setup(i){const e=i,t=$(()=>{const r=e.metadata.status?.toLowerCase();return r?r.includes("complete")||r.includes("done")||r.includes("progress")||r.includes("active")?"default":r.includes("draft")?"secondary":r.includes("blocked")||r.includes("paused")?"destructive":"secondary":"secondary"}),a=$(()=>e.metadata.author||e.metadata.date||e.metadata.status||e.metadata.shortcutStory);return(r,l)=>p(a)?(A(),O("div",za,[i.metadata.author?(A(),O("div",Ba,[y(p(Aa),{class:"size-3.5"}),M("span",null,re(i.metadata.author),1)])):Ae("",!0),i.metadata.date?(A(),O("div",Fa,[y(p(Yi),{class:"size-3.5"}),M("span",null,re(i.metadata.date),1)])):Ae("",!0),i.metadata.status?(A(),ae(p(ri),{key:2,variant:p(t),class:"gap-1"},{default:D(()=>[y(p(ba),{class:"size-3"}),De(" "+re(i.metadata.status),1)]),_:1},8,["variant"])):Ae("",!0),i.metadata.shortcutStory&&i.metadata.shortcutUrl?(A(),O("a",{key:3,href:i.metadata.shortcutUrl,target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-1.5 text-primary hover:underline"},[y(p(Sr),{class:"size-3.5"}),M("span",null,re(i.metadata.shortcutStory),1)],8,Ua)):i.metadata.shortcutStory?(A(),O("span",Ha,[y(p(Sr),{class:"size-3.5"}),M("span",null,re(i.metadata.shortcutStory),1)])):Ae("",!0)])):Ae("",!0)}}),Ga=Object.assign(qa,{__name:"PrdMeta"});function or(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Me=or();function di(i){Me=i}var Ce={exec:()=>null};function L(i,e=""){let t=typeof i=="string"?i:i.source,a={replace:(r,l)=>{let s=typeof l=="string"?l:l.source;return s=s.replace(ie.caret,"$1"),t=t.replace(r,s),a},getRegex:()=>new RegExp(t,e)};return a}var ja=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),ie={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}>`)},Wa=/^(?:[ \t]*(?:\n|$))+/,Qa=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ya=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ct=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Xa=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,sr=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,_i=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,fi=L(_i).replace(/bull/g,sr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ka=L(_i).replace(/bull/g,sr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),lr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Za=/^[^\n]+/,ur=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ja=L(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ur).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),en=L(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,sr).getRegex(),Ot="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",pr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,tn=L("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",pr).replace("tag",Ot).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),hi=L(lr).replace("hr",ct).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ot).getRegex(),rn=L(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",hi).getRegex(),cr={blockquote:rn,code:Qa,def:Ja,fences:Ya,heading:Xa,hr:ct,html:tn,lheading:fi,list:en,newline:Wa,paragraph:hi,table:Ce,text:Za},zr=L("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ct).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ot).getRegex(),an={...cr,lheading:Ka,table:zr,paragraph:L(lr).replace("hr",ct).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",zr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ot).getRegex()},nn={...cr,html:L(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",pr).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ce,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:L(lr).replace("hr",ct).replace("heading",` *#{1,6} *[^
|
|
3
|
-
]`).replace("lheading",fi).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},on=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,sn=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,gi=/^( {2,}|\\)\n(?!\s*$)/,ln=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,St=/[\p{P}\p{S}]/u,mr=/[\s\p{P}\p{S}]/u,Ei=/[^\s\p{P}\p{S}]/u,un=L(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,mr).getRegex(),ki=/(?!~)[\p{P}\p{S}]/u,pn=/(?!~)[\s\p{P}\p{S}]/u,cn=/(?:[^\s\p{P}\p{S}]|~)/u,Ti=/(?![*_])[\p{P}\p{S}]/u,mn=/(?![*_])[\s\p{P}\p{S}]/u,dn=/(?:[^\s\p{P}\p{S}]|[*_])/u,_n=L(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ja?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),bi=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,fn=L(bi,"u").replace(/punct/g,St).getRegex(),hn=L(bi,"u").replace(/punct/g,ki).getRegex(),vi="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",gn=L(vi,"gu").replace(/notPunctSpace/g,Ei).replace(/punctSpace/g,mr).replace(/punct/g,St).getRegex(),En=L(vi,"gu").replace(/notPunctSpace/g,cn).replace(/punctSpace/g,pn).replace(/punct/g,ki).getRegex(),kn=L("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ei).replace(/punctSpace/g,mr).replace(/punct/g,St).getRegex(),Tn=L(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ti).getRegex(),bn="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",vn=L(bn,"gu").replace(/notPunctSpace/g,dn).replace(/punctSpace/g,mn).replace(/punct/g,Ti).getRegex(),An=L(/\\(punct)/,"gu").replace(/punct/g,St).getRegex(),xn=L(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Rn=L(pr).replace("(?:-->|$)","-->").getRegex(),yn=L("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Rn).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),yt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Ln=L(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",yt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ai=L(/^!?\[(label)\]\[(ref)\]/).replace("label",yt).replace("ref",ur).getRegex(),xi=L(/^!?\[(ref)\](?:\[\])?/).replace("ref",ur).getRegex(),wn=L("reflink|nolink(?!\\()","g").replace("reflink",Ai).replace("nolink",xi).getRegex(),Br=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,dr={_backpedal:Ce,anyPunctuation:An,autolink:xn,blockSkip:_n,br:gi,code:sn,del:Ce,delLDelim:Ce,delRDelim:Ce,emStrongLDelim:fn,emStrongRDelimAst:gn,emStrongRDelimUnd:kn,escape:on,link:Ln,nolink:xi,punctuation:un,reflink:Ai,reflinkSearch:wn,tag:yn,text:ln,url:Ce},In={...dr,link:L(/^!?\[(label)\]\((.*?)\)/).replace("label",yt).getRegex(),reflink:L(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",yt).getRegex()},Zt={...dr,emStrongRDelimAst:En,emStrongLDelim:hn,delLDelim:Tn,delRDelim:vn,url:L(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Br).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:L(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Br).getRegex()},Dn={...Zt,br:L(gi).replace("{2,}","*").getRegex(),text:L(Zt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},bt={normal:cr,gfm:an,pedantic:nn},rt={normal:dr,gfm:Zt,breaks:Dn,pedantic:In},Pn={"&":"&","<":"<",">":">",'"':""","'":"'"},Fr=i=>Pn[i];function be(i,e){if(e){if(ie.escapeTest.test(i))return i.replace(ie.escapeReplace,Fr)}else if(ie.escapeTestNoEncode.test(i))return i.replace(ie.escapeReplaceNoEncode,Fr);return i}function Ur(i){try{i=encodeURI(i).replace(ie.percentDecode,"%")}catch{return null}return i}function Hr(i,e){let t=i.replace(ie.findPipe,(l,s,c)=>{let u=!1,d=s;for(;--d>=0&&c[d]==="\\";)u=!u;return u?"|":" |"}),a=t.split(ie.splitPipe),r=0;if(a[0].trim()||a.shift(),a.length>0&&!a.at(-1)?.trim()&&a.pop(),e)if(a.length>e)a.splice(e);else for(;a.length<e;)a.push("");for(;r<a.length;r++)a[r]=a[r].trim().replace(ie.slashPipe,"|");return a}function it(i,e,t){let a=i.length;if(a===0)return"";let r=0;for(;r<a&&i.charAt(a-r-1)===e;)r++;return i.slice(0,a-r)}function On(i,e){if(i.indexOf(e[1])===-1)return-1;let t=0;for(let a=0;a<i.length;a++)if(i[a]==="\\")a++;else if(i[a]===e[0])t++;else if(i[a]===e[1]&&(t--,t<0))return a;return t>0?-2:-1}function Sn(i,e=0){let t=e,a="";for(let r of i)if(r===" "){let l=4-t%4;a+=" ".repeat(l),t+=l}else a+=r,t++;return a}function qr(i,e,t,a,r){let l=e.href,s=e.title||null,c=i[1].replace(r.other.outputLinkReplace,"$1");a.state.inLink=!0;let u={type:i[0].charAt(0)==="!"?"image":"link",raw:t,href:l,title:s,text:c,tokens:a.inlineTokens(c)};return a.state.inLink=!1,u}function Cn(i,e,t){let a=i.match(t.other.indentCodeCompensation);if(a===null)return e;let r=a[1];return e.split(`
|
|
4
|
-
`).map(l=>{let s=l.match(t.other.beginningSpace);if(s===null)return l;let[c]=s;return c.length>=r.length?l.slice(r.length):l}).join(`
|
|
5
|
-
`)}var Lt=class{options;rules;lexer;constructor(i){this.options=i||Me}space(i){let e=this.rules.block.newline.exec(i);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(i){let e=this.rules.block.code.exec(i);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:it(t,`
|
|
6
|
-
`)}}}fences(i){let e=this.rules.block.fences.exec(i);if(e){let t=e[0],a=Cn(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:a}}}heading(i){let e=this.rules.block.heading.exec(i);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let a=it(t,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(t=a.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(i){let e=this.rules.block.hr.exec(i);if(e)return{type:"hr",raw:it(e[0],`
|
|
7
|
-
`)}}blockquote(i){let e=this.rules.block.blockquote.exec(i);if(e){let t=it(e[0],`
|
|
8
|
-
`).split(`
|
|
9
|
-
`),a="",r="",l=[];for(;t.length>0;){let s=!1,c=[],u;for(u=0;u<t.length;u++)if(this.rules.other.blockquoteStart.test(t[u]))c.push(t[u]),s=!0;else if(!s)c.push(t[u]);else break;t=t.slice(u);let d=c.join(`
|
|
10
|
-
`),m=d.replace(this.rules.other.blockquoteSetextReplace,`
|
|
11
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
|
|
12
|
-
${d}`:d,r=r?`${r}
|
|
13
|
-
${m}`:m;let _=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(m,l,!0),this.lexer.state.top=_,t.length===0)break;let E=l.at(-1);if(E?.type==="code")break;if(E?.type==="blockquote"){let k=E,v=k.raw+`
|
|
14
|
-
`+t.join(`
|
|
15
|
-
`),S=this.blockquote(v);l[l.length-1]=S,a=a.substring(0,a.length-k.raw.length)+S.raw,r=r.substring(0,r.length-k.text.length)+S.text;break}else if(E?.type==="list"){let k=E,v=k.raw+`
|
|
16
|
-
`+t.join(`
|
|
17
|
-
`),S=this.list(v);l[l.length-1]=S,a=a.substring(0,a.length-E.raw.length)+S.raw,r=r.substring(0,r.length-k.raw.length)+S.raw,t=v.substring(l.at(-1).raw.length).split(`
|
|
18
|
-
`);continue}}return{type:"blockquote",raw:a,tokens:l,text:r}}}list(i){let e=this.rules.block.list.exec(i);if(e){let t=e[1].trim(),a=t.length>1,r={type:"list",raw:"",ordered:a,start:a?+t.slice(0,-1):"",loose:!1,items:[]};t=a?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=a?t:"[*+-]");let l=this.rules.other.listItemRegex(t),s=!1;for(;i;){let u=!1,d="",m="";if(!(e=l.exec(i))||this.rules.block.hr.test(i))break;d=e[0],i=i.substring(d.length);let _=Sn(e[2].split(`
|
|
19
|
-
`,1)[0],e[1].length),E=i.split(`
|
|
20
|
-
`,1)[0],k=!_.trim(),v=0;if(this.options.pedantic?(v=2,m=_.trimStart()):k?v=e[1].length+1:(v=_.search(this.rules.other.nonSpaceChar),v=v>4?1:v,m=_.slice(v),v+=e[1].length),k&&this.rules.other.blankLine.test(E)&&(d+=E+`
|
|
21
|
-
`,i=i.substring(E.length+1),u=!0),!u){let S=this.rules.other.nextBulletRegex(v),ue=this.rules.other.hrRegex(v),C=this.rules.other.fencesBeginRegex(v),V=this.rules.other.headingBeginRegex(v),P=this.rules.other.htmlBeginRegex(v),w=this.rules.other.blockquoteBeginRegex(v);for(;i;){let J=i.split(`
|
|
22
|
-
`,1)[0],K;if(E=J,this.options.pedantic?(E=E.replace(this.rules.other.listReplaceNesting," "),K=E):K=E.replace(this.rules.other.tabCharGlobal," "),C.test(E)||V.test(E)||P.test(E)||w.test(E)||S.test(E)||ue.test(E))break;if(K.search(this.rules.other.nonSpaceChar)>=v||!E.trim())m+=`
|
|
23
|
-
`+K.slice(v);else{if(k||_.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||C.test(_)||V.test(_)||ue.test(_))break;m+=`
|
|
24
|
-
`+E}k=!E.trim(),d+=J+`
|
|
25
|
-
`,i=i.substring(J.length+1),_=K.slice(v)}}r.loose||(s?r.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(s=!0)),r.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(m),loose:!1,text:m,tokens:[]}),r.raw+=d}let c=r.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let u of r.items){if(this.lexer.state.top=!1,u.tokens=this.lexer.blockTokens(u.text,[]),u.task){if(u.text=u.text.replace(this.rules.other.listReplaceTask,""),u.tokens[0]?.type==="text"||u.tokens[0]?.type==="paragraph"){u.tokens[0].raw=u.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),u.tokens[0].text=u.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let m=this.lexer.inlineQueue.length-1;m>=0;m--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[m].src)){this.lexer.inlineQueue[m].src=this.lexer.inlineQueue[m].src.replace(this.rules.other.listReplaceTask,"");break}}let d=this.rules.other.listTaskCheckbox.exec(u.raw);if(d){let m={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};u.checked=m.checked,r.loose?u.tokens[0]&&["paragraph","text"].includes(u.tokens[0].type)&&"tokens"in u.tokens[0]&&u.tokens[0].tokens?(u.tokens[0].raw=m.raw+u.tokens[0].raw,u.tokens[0].text=m.raw+u.tokens[0].text,u.tokens[0].tokens.unshift(m)):u.tokens.unshift({type:"paragraph",raw:m.raw,text:m.raw,tokens:[m]}):u.tokens.unshift(m)}}if(!r.loose){let d=u.tokens.filter(_=>_.type==="space"),m=d.length>0&&d.some(_=>this.rules.other.anyLine.test(_.raw));r.loose=m}}if(r.loose)for(let u of r.items){u.loose=!0;for(let d of u.tokens)d.type==="text"&&(d.type="paragraph")}return r}}html(i){let e=this.rules.block.html.exec(i);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(i){let e=this.rules.block.def.exec(i);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:a,title:r}}}table(i){let e=this.rules.block.table.exec(i);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let t=Hr(e[1]),a=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
26
|
-
`):[],l={type:"table",raw:e[0],header:[],align:[],rows:[]};if(t.length===a.length){for(let s of a)this.rules.other.tableAlignRight.test(s)?l.align.push("right"):this.rules.other.tableAlignCenter.test(s)?l.align.push("center"):this.rules.other.tableAlignLeft.test(s)?l.align.push("left"):l.align.push(null);for(let s=0;s<t.length;s++)l.header.push({text:t[s],tokens:this.lexer.inline(t[s]),header:!0,align:l.align[s]});for(let s of r)l.rows.push(Hr(s,l.header.length).map((c,u)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:l.align[u]})));return l}}lheading(i){let e=this.rules.block.lheading.exec(i);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(i){let e=this.rules.block.paragraph.exec(i);if(e){let t=e[1].charAt(e[1].length-1)===`
|
|
27
|
-
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(i){let e=this.rules.block.text.exec(i);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(i){let e=this.rules.inline.escape.exec(i);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(i){let e=this.rules.inline.tag.exec(i);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(i){let e=this.rules.inline.link.exec(i);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let l=it(t.slice(0,-1),"\\");if((t.length-l.length)%2===0)return}else{let l=On(e[2],"()");if(l===-2)return;if(l>-1){let s=(e[0].indexOf("!")===0?5:4)+e[1].length+l;e[2]=e[2].substring(0,l),e[0]=e[0].substring(0,s).trim(),e[3]=""}}let a=e[2],r="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(a);l&&(a=l[1],r=l[3])}else r=e[3]?e[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?a=a.slice(1):a=a.slice(1,-1)),qr(e,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(i,e){let t;if((t=this.rules.inline.reflink.exec(i))||(t=this.rules.inline.nolink.exec(i))){let a=(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[a.toLowerCase()];if(!r){let l=t[0].charAt(0);return{type:"text",raw:l,text:l}}return qr(t,r,t[0],this.lexer,this.rules)}}emStrong(i,e,t=""){let a=this.rules.inline.emStrongLDelim.exec(i);if(!(!a||a[3]&&t.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[2])||!t||this.rules.inline.punctuation.exec(t))){let r=[...a[0]].length-1,l,s,c=r,u=0,d=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,e=e.slice(-1*i.length+r);(a=d.exec(e))!=null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l)continue;if(s=[...l].length,a[3]||a[4]){c+=s;continue}else if((a[5]||a[6])&&r%3&&!((r+s)%3)){u+=s;continue}if(c-=s,c>0)continue;s=Math.min(s,s+c+u);let m=[...a[0]][0].length,_=i.slice(0,r+a.index+m+s);if(Math.min(r,s)%2){let k=_.slice(1,-1);return{type:"em",raw:_,text:k,tokens:this.lexer.inlineTokens(k)}}let E=_.slice(2,-2);return{type:"strong",raw:_,text:E,tokens:this.lexer.inlineTokens(E)}}}}codespan(i){let e=this.rules.inline.code.exec(i);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return a&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(i){let e=this.rules.inline.br.exec(i);if(e)return{type:"br",raw:e[0]}}del(i,e,t=""){let a=this.rules.inline.delLDelim.exec(i);if(a&&(!a[1]||!t||this.rules.inline.punctuation.exec(t))){let r=[...a[0]].length-1,l,s,c=r,u=this.rules.inline.delRDelim;for(u.lastIndex=0,e=e.slice(-1*i.length+r);(a=u.exec(e))!=null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l||(s=[...l].length,s!==r))continue;if(a[3]||a[4]){c+=s;continue}if(c-=s,c>0)continue;s=Math.min(s,s+c);let d=[...a[0]][0].length,m=i.slice(0,r+a.index+d+s),_=m.slice(r,-r);return{type:"del",raw:m,text:_,tokens:this.lexer.inlineTokens(_)}}}}autolink(i){let e=this.rules.inline.autolink.exec(i);if(e){let t,a;return e[2]==="@"?(t=e[1],a="mailto:"+t):(t=e[1],a=t),{type:"link",raw:e[0],text:t,href:a,tokens:[{type:"text",raw:t,text:t}]}}}url(i){let e;if(e=this.rules.inline.url.exec(i)){let t,a;if(e[2]==="@")t=e[0],a="mailto:"+t;else{let r;do r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(r!==e[0]);t=e[0],e[1]==="www."?a="http://"+e[0]:a=e[0]}return{type:"link",raw:e[0],text:t,href:a,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(i){let e=this.rules.inline.text.exec(i);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},ce=class Jt{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Me,this.options.tokenizer=this.options.tokenizer||new Lt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:ie,block:bt.normal,inline:rt.normal};this.options.pedantic?(t.block=bt.pedantic,t.inline=rt.pedantic):this.options.gfm&&(t.block=bt.gfm,this.options.breaks?t.inline=rt.breaks:t.inline=rt.gfm),this.tokenizer.rules=t}static get rules(){return{block:bt,inline:rt}}static lex(e,t){return new Jt(t).lex(e)}static lexInline(e,t){return new Jt(t).inlineTokens(e)}lex(e){e=e.replace(ie.carriageReturn,`
|
|
28
|
-
`),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let a=this.inlineQueue[t];this.inlineTokens(a.src,a.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],a=!1){for(this.options.pedantic&&(e=e.replace(ie.tabCharGlobal," ").replace(ie.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(s=>(r=s.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let s=t.at(-1);r.raw.length===1&&s!==void 0?s.raw+=`
|
|
29
|
-
`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let s=t.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
30
|
-
`)?"":`
|
|
31
|
-
`)+r.raw,s.text+=`
|
|
32
|
-
`+r.text,this.inlineQueue.at(-1).src=s.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let s=t.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
33
|
-
`)?"":`
|
|
34
|
-
`)+r.raw,s.text+=`
|
|
35
|
-
`+r.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let l=e;if(this.options.extensions?.startBlock){let s=1/0,c=e.slice(1),u;this.options.extensions.startBlock.forEach(d=>{u=d.call({lexer:this},c),typeof u=="number"&&u>=0&&(s=Math.min(s,u))}),s<1/0&&s>=0&&(l=e.substring(0,s+1))}if(this.state.top&&(r=this.tokenizer.paragraph(l))){let s=t.at(-1);a&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
|
|
36
|
-
`)?"":`
|
|
37
|
-
`)+r.raw,s.text+=`
|
|
38
|
-
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(r),a=l.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let s=t.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
39
|
-
`)?"":`
|
|
40
|
-
`)+r.raw,s.text+=`
|
|
41
|
-
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(r);continue}if(e){let s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let a=e,r=null;if(this.tokens.links){let u=Object.keys(this.tokens.links);if(u.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)u.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,r.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)l=r[2]?r[2].length:0,a=a.slice(0,r.index+l)+"["+"a".repeat(r[0].length-l-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=this.options.hooks?.emStrongMask?.call({lexer:this},a)??a;let s=!1,c="";for(;e;){s||(c=""),s=!1;let u;if(this.options.extensions?.inline?.some(m=>(u=m.call({lexer:this},e,t))?(e=e.substring(u.raw.length),t.push(u),!0):!1))continue;if(u=this.tokenizer.escape(e)){e=e.substring(u.raw.length),t.push(u);continue}if(u=this.tokenizer.tag(e)){e=e.substring(u.raw.length),t.push(u);continue}if(u=this.tokenizer.link(e)){e=e.substring(u.raw.length),t.push(u);continue}if(u=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(u.raw.length);let m=t.at(-1);u.type==="text"&&m?.type==="text"?(m.raw+=u.raw,m.text+=u.text):t.push(u);continue}if(u=this.tokenizer.emStrong(e,a,c)){e=e.substring(u.raw.length),t.push(u);continue}if(u=this.tokenizer.codespan(e)){e=e.substring(u.raw.length),t.push(u);continue}if(u=this.tokenizer.br(e)){e=e.substring(u.raw.length),t.push(u);continue}if(u=this.tokenizer.del(e,a,c)){e=e.substring(u.raw.length),t.push(u);continue}if(u=this.tokenizer.autolink(e)){e=e.substring(u.raw.length),t.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(e))){e=e.substring(u.raw.length),t.push(u);continue}let d=e;if(this.options.extensions?.startInline){let m=1/0,_=e.slice(1),E;this.options.extensions.startInline.forEach(k=>{E=k.call({lexer:this},_),typeof E=="number"&&E>=0&&(m=Math.min(m,E))}),m<1/0&&m>=0&&(d=e.substring(0,m+1))}if(u=this.tokenizer.inlineText(d)){e=e.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(c=u.raw.slice(-1)),s=!0;let m=t.at(-1);m?.type==="text"?(m.raw+=u.raw,m.text+=u.text):t.push(u);continue}if(e){let m="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return t}},wt=class{options;parser;constructor(i){this.options=i||Me}space(i){return""}code({text:i,lang:e,escaped:t}){let a=(e||"").match(ie.notSpaceStart)?.[0],r=i.replace(ie.endingNewline,"")+`
|
|
42
|
-
`;return a?'<pre><code class="language-'+be(a)+'">'+(t?r:be(r,!0))+`</code></pre>
|
|
43
|
-
`:"<pre><code>"+(t?r:be(r,!0))+`</code></pre>
|
|
44
|
-
`}blockquote({tokens:i}){return`<blockquote>
|
|
45
|
-
${this.parser.parse(i)}</blockquote>
|
|
46
|
-
`}html({text:i}){return i}def(i){return""}heading({tokens:i,depth:e}){return`<h${e}>${this.parser.parseInline(i)}</h${e}>
|
|
47
|
-
`}hr(i){return`<hr>
|
|
48
|
-
`}list(i){let e=i.ordered,t=i.start,a="";for(let s=0;s<i.items.length;s++){let c=i.items[s];a+=this.listitem(c)}let r=e?"ol":"ul",l=e&&t!==1?' start="'+t+'"':"";return"<"+r+l+`>
|
|
49
|
-
`+a+"</"+r+`>
|
|
50
|
-
`}listitem(i){return`<li>${this.parser.parse(i.tokens)}</li>
|
|
51
|
-
`}checkbox({checked:i}){return"<input "+(i?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:i}){return`<p>${this.parser.parseInline(i)}</p>
|
|
52
|
-
`}table(i){let e="",t="";for(let r=0;r<i.header.length;r++)t+=this.tablecell(i.header[r]);e+=this.tablerow({text:t});let a="";for(let r=0;r<i.rows.length;r++){let l=i.rows[r];t="";for(let s=0;s<l.length;s++)t+=this.tablecell(l[s]);a+=this.tablerow({text:t})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
|
|
53
|
-
<thead>
|
|
54
|
-
`+e+`</thead>
|
|
55
|
-
`+a+`</table>
|
|
56
|
-
`}tablerow({text:i}){return`<tr>
|
|
57
|
-
${i}</tr>
|
|
58
|
-
`}tablecell(i){let e=this.parser.parseInline(i.tokens),t=i.header?"th":"td";return(i.align?`<${t} align="${i.align}">`:`<${t}>`)+e+`</${t}>
|
|
59
|
-
`}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${be(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:e,tokens:t}){let a=this.parser.parseInline(t),r=Ur(i);if(r===null)return a;i=r;let l='<a href="'+i+'"';return e&&(l+=' title="'+be(e)+'"'),l+=">"+a+"</a>",l}image({href:i,title:e,text:t,tokens:a}){a&&(t=this.parser.parseInline(a,this.parser.textRenderer));let r=Ur(i);if(r===null)return be(t);i=r;let l=`<img src="${i}" alt="${be(t)}"`;return e&&(l+=` title="${be(e)}"`),l+=">",l}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:be(i.text)}},_r=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}checkbox({raw:i}){return i}},me=class er{options;renderer;textRenderer;constructor(e){this.options=e||Me,this.options.renderer=this.options.renderer||new wt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _r}static parse(e,t){return new er(t).parse(e)}static parseInline(e,t){return new er(t).parseInline(e)}parse(e){let t="";for(let a=0;a<e.length;a++){let r=e[a];if(this.options.extensions?.renderers?.[r.type]){let s=r,c=this.options.extensions.renderers[s.type].call({parser:this},s);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){t+=c||"";continue}}let l=r;switch(l.type){case"space":{t+=this.renderer.space(l);break}case"hr":{t+=this.renderer.hr(l);break}case"heading":{t+=this.renderer.heading(l);break}case"code":{t+=this.renderer.code(l);break}case"table":{t+=this.renderer.table(l);break}case"blockquote":{t+=this.renderer.blockquote(l);break}case"list":{t+=this.renderer.list(l);break}case"checkbox":{t+=this.renderer.checkbox(l);break}case"html":{t+=this.renderer.html(l);break}case"def":{t+=this.renderer.def(l);break}case"paragraph":{t+=this.renderer.paragraph(l);break}case"text":{t+=this.renderer.text(l);break}default:{let s='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return t}parseInline(e,t=this.renderer){let a="";for(let r=0;r<e.length;r++){let l=e[r];if(this.options.extensions?.renderers?.[l.type]){let c=this.options.extensions.renderers[l.type].call({parser:this},l);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){a+=c||"";continue}}let s=l;switch(s.type){case"escape":{a+=t.text(s);break}case"html":{a+=t.html(s);break}case"link":{a+=t.link(s);break}case"image":{a+=t.image(s);break}case"checkbox":{a+=t.checkbox(s);break}case"strong":{a+=t.strong(s);break}case"em":{a+=t.em(s);break}case"codespan":{a+=t.codespan(s);break}case"br":{a+=t.br(s);break}case"del":{a+=t.del(s);break}case"text":{a+=t.text(s);break}default:{let c='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return a}},ut=class{options;block;constructor(i){this.options=i||Me}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}emStrongMask(i){return i}provideLexer(){return this.block?ce.lex:ce.lexInline}provideParser(){return this.block?me.parse:me.parseInline}},Vn=class{defaults=or();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=me;Renderer=wt;TextRenderer=_r;Lexer=ce;Tokenizer=Lt;Hooks=ut;constructor(...i){this.use(...i)}walkTokens(i,e){let t=[];for(let a of i)switch(t=t.concat(e.call(this,a)),a.type){case"table":{let r=a;for(let l of r.header)t=t.concat(this.walkTokens(l.tokens,e));for(let l of r.rows)for(let s of l)t=t.concat(this.walkTokens(s.tokens,e));break}case"list":{let r=a;t=t.concat(this.walkTokens(r.items,e));break}default:{let r=a;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(l=>{let s=r[l].flat(1/0);t=t.concat(this.walkTokens(s,e))}):r.tokens&&(t=t.concat(this.walkTokens(r.tokens,e)))}}return t}use(...i){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(t=>{let a={...t};if(a.async=this.defaults.async||a.async||!1,t.extensions&&(t.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let l=e.renderers[r.name];l?e.renderers[r.name]=function(...s){let c=r.renderer.apply(this,s);return c===!1&&(c=l.apply(this,s)),c}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=e[r.level];l?l.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),a.extensions=e),t.renderer){let r=this.defaults.renderer||new wt(this.defaults);for(let l in t.renderer){if(!(l in r))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let s=l,c=t.renderer[s],u=r[s];r[s]=(...d)=>{let m=c.apply(r,d);return m===!1&&(m=u.apply(r,d)),m||""}}a.renderer=r}if(t.tokenizer){let r=this.defaults.tokenizer||new Lt(this.defaults);for(let l in t.tokenizer){if(!(l in r))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let s=l,c=t.tokenizer[s],u=r[s];r[s]=(...d)=>{let m=c.apply(r,d);return m===!1&&(m=u.apply(r,d)),m}}a.tokenizer=r}if(t.hooks){let r=this.defaults.hooks||new ut;for(let l in t.hooks){if(!(l in r))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let s=l,c=t.hooks[s],u=r[s];ut.passThroughHooks.has(l)?r[s]=d=>{if(this.defaults.async&&ut.passThroughHooksRespectAsync.has(l))return(async()=>{let _=await c.call(r,d);return u.call(r,_)})();let m=c.call(r,d);return u.call(r,m)}:r[s]=(...d)=>{if(this.defaults.async)return(async()=>{let _=await c.apply(r,d);return _===!1&&(_=await u.apply(r,d)),_})();let m=c.apply(r,d);return m===!1&&(m=u.apply(r,d)),m}}a.hooks=r}if(t.walkTokens){let r=this.defaults.walkTokens,l=t.walkTokens;a.walkTokens=function(s){let c=[];return c.push(l.call(this,s)),r&&(c=c.concat(r.call(this,s))),c}}this.defaults={...this.defaults,...a}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,e){return ce.lex(i,e??this.defaults)}parser(i,e){return me.parse(i,e??this.defaults)}parseMarkdown(i){return(e,t)=>{let a={...t},r={...this.defaults,...a},l=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&a.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=i),r.async)return(async()=>{let s=r.hooks?await r.hooks.preprocess(e):e,c=await(r.hooks?await r.hooks.provideLexer():i?ce.lex:ce.lexInline)(s,r),u=r.hooks?await r.hooks.processAllTokens(c):c;r.walkTokens&&await Promise.all(this.walkTokens(u,r.walkTokens));let d=await(r.hooks?await r.hooks.provideParser():i?me.parse:me.parseInline)(u,r);return r.hooks?await r.hooks.postprocess(d):d})().catch(l);try{r.hooks&&(e=r.hooks.preprocess(e));let s=(r.hooks?r.hooks.provideLexer():i?ce.lex:ce.lexInline)(e,r);r.hooks&&(s=r.hooks.processAllTokens(s)),r.walkTokens&&this.walkTokens(s,r.walkTokens);let c=(r.hooks?r.hooks.provideParser():i?me.parse:me.parseInline)(s,r);return r.hooks&&(c=r.hooks.postprocess(c)),c}catch(s){return l(s)}}}onError(i,e){return t=>{if(t.message+=`
|
|
60
|
-
Please report this to https://github.com/markedjs/marked.`,i){let a="<p>An error occurred:</p><pre>"+be(t.message+"",!0)+"</pre>";return e?Promise.resolve(a):a}if(e)return Promise.reject(t);throw t}}},Ve=new Vn;function I(i,e){return Ve.parse(i,e)}I.options=I.setOptions=function(i){return Ve.setOptions(i),I.defaults=Ve.defaults,di(I.defaults),I};I.getDefaults=or;I.defaults=Me;I.use=function(...i){return Ve.use(...i),I.defaults=Ve.defaults,di(I.defaults),I};I.walkTokens=function(i,e){return Ve.walkTokens(i,e)};I.parseInline=Ve.parseInline;I.Parser=me;I.parser=me.parse;I.Renderer=wt;I.TextRenderer=_r;I.Lexer=ce;I.lexer=ce.lex;I.Tokenizer=Lt;I.Hooks=ut;I.parse=I;I.options;I.setOptions;I.use;I.walkTokens;I.parseInline;me.parse;ce.lex;const Ri=[{id:"abap",name:"ABAP",import:(()=>n(()=>import("./BdImnpbu.js"),[],import.meta.url))},{id:"actionscript-3",name:"ActionScript",import:(()=>n(()=>import("./CoDkCxhg.js"),[],import.meta.url))},{id:"ada",name:"Ada",import:(()=>n(()=>import("./bCR0ucgS.js"),[],import.meta.url))},{id:"angular-html",name:"Angular HTML",import:(()=>n(()=>import("./DxNHbxmM.js").then(i=>i.f),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>n(()=>import("./Cl0AqbOI.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"apache",name:"Apache Conf",import:(()=>n(()=>import("./Pmp26Uib.js"),[],import.meta.url))},{id:"apex",name:"Apex",import:(()=>n(()=>import("./D8_7TLub.js"),[],import.meta.url))},{id:"apl",name:"APL",import:(()=>n(()=>import("./Cn7AkR1O.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url))},{id:"applescript",name:"AppleScript",import:(()=>n(()=>import("./Co6uUVPk.js"),[],import.meta.url))},{id:"ara",name:"Ara",import:(()=>n(()=>import("./BRHolxvo.js"),[],import.meta.url))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>n(()=>import("./Dv7Oe6Be.js"),[],import.meta.url))},{id:"asm",name:"Assembly",import:(()=>n(()=>import("./D_Q5rh1f.js"),[],import.meta.url))},{id:"astro",name:"Astro",import:(()=>n(()=>import("./DxSwrfjg.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url))},{id:"awk",name:"AWK",import:(()=>n(()=>import("./DMzUqQB5.js"),[],import.meta.url))},{id:"ballerina",name:"Ballerina",import:(()=>n(()=>import("./BFfxhgS-.js"),[],import.meta.url))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>n(()=>import("./BkioyH1T.js"),[],import.meta.url))},{id:"beancount",name:"Beancount",import:(()=>n(()=>import("./k_qm7-4y.js"),[],import.meta.url))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>n(()=>import("./uYugtg8r.js"),[],import.meta.url))},{id:"bibtex",name:"BibTeX",import:(()=>n(()=>import("./CHM0blh-.js"),[],import.meta.url))},{id:"bicep",name:"Bicep",import:(()=>n(()=>import("./Bmn6On1c.js"),[],import.meta.url))},{id:"blade",name:"Blade",import:(()=>n(()=>import("./5X7smno1.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>n(()=>import("./CquLrc37.js"),__vite__mapDeps([17,18]),import.meta.url))},{id:"c",name:"C",import:(()=>n(()=>import("./BIGW1oBm.js"),[],import.meta.url))},{id:"c3",name:"C3",import:(()=>n(()=>import("./VCDPK7BO.js"),[],import.meta.url))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>n(()=>import("./Bv_4Rxtq.js"),[],import.meta.url))},{id:"cairo",name:"Cairo",import:(()=>n(()=>import("./CO1LY3CK.js"),__vite__mapDeps([19,20]),import.meta.url))},{id:"clarity",name:"Clarity",import:(()=>n(()=>import("./D53aC0YG.js"),[],import.meta.url))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>n(()=>import("./P80f7IUj.js"),[],import.meta.url))},{id:"cmake",name:"CMake",import:(()=>n(()=>import("./D1j8_8rp.js"),[],import.meta.url))},{id:"cobol",name:"COBOL",import:(()=>n(()=>import("./BYV0-3_D.js"),__vite__mapDeps([21,1,2,3,8]),import.meta.url))},{id:"codeowners",name:"CODEOWNERS",import:(()=>n(()=>import("./Bp6g37R7.js"),[],import.meta.url))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>n(()=>import("./DsOJ9woJ.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>n(()=>import("./CxbxFI8M.js"),__vite__mapDeps([22,2]),import.meta.url))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>n(()=>import("./Cg-RD9OK.js"),[],import.meta.url))},{id:"coq",name:"Coq",import:(()=>n(()=>import("./DkFqJrB1.js"),[],import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>n(()=>import("./Bp3cYrEr.js"),__vite__mapDeps([23,24,25,26,16]),import.meta.url))},{id:"crystal",name:"Crystal",import:(()=>n(()=>import("./fKv21gyL.js"),__vite__mapDeps([27,1,2,3,16,26,28]),import.meta.url))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>n(()=>import("./COcwbKMJ.js"),[],import.meta.url))},{id:"css",name:"CSS",import:(()=>n(()=>import("./DPfMkruS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>n(()=>import("./fuZLfV_i.js"),[],import.meta.url))},{id:"cue",name:"CUE",import:(()=>n(()=>import("./D82EKSYY.js"),[],import.meta.url))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>n(()=>import("./COkxafJQ.js"),[],import.meta.url))},{id:"d",name:"D",import:(()=>n(()=>import("./85-TOEBH.js"),[],import.meta.url))},{id:"dart",name:"Dart",import:(()=>n(()=>import("./CF10PKvl.js"),[],import.meta.url))},{id:"dax",name:"DAX",import:(()=>n(()=>import("./CEL-wOlO.js"),[],import.meta.url))},{id:"desktop",name:"Desktop",import:(()=>n(()=>import("./BmXAJ9_W.js"),[],import.meta.url))},{id:"diff",name:"Diff",import:(()=>n(()=>import("./D97Zzqfu.js"),[],import.meta.url))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>n(()=>import("./BcOcwvcX.js"),[],import.meta.url))},{id:"dotenv",name:"dotEnv",import:(()=>n(()=>import("./Da5cRb03.js"),[],import.meta.url))},{id:"dream-maker",name:"Dream Maker",import:(()=>n(()=>import("./BtqSS_iP.js"),[],import.meta.url))},{id:"edge",name:"Edge",import:(()=>n(()=>import("./DZu-aV2c.js"),__vite__mapDeps([29,11,1,2,3,15]),import.meta.url))},{id:"elixir",name:"Elixir",import:(()=>n(()=>import("./CpOuai2O.js"),__vite__mapDeps([30,1,2,3]),import.meta.url))},{id:"elm",name:"Elm",import:(()=>n(()=>import("./CeZK1NFH.js"),__vite__mapDeps([31,25,26]),import.meta.url))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>n(()=>import("./C9XAeP06.js"),[],import.meta.url))},{id:"erb",name:"ERB",import:(()=>n(()=>import("./CGscLIrv.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>n(()=>import("./CuPHTKiy.js"),__vite__mapDeps([39,40]),import.meta.url))},{id:"fennel",name:"Fennel",import:(()=>n(()=>import("./BYunw83y.js"),[],import.meta.url))},{id:"fish",name:"Fish",import:(()=>n(()=>import("./BvzEVeQv.js"),[],import.meta.url))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>n(()=>import("./C4IJs8-o.js"),[],import.meta.url))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>n(()=>import("./B7c-h3xW.js"),__vite__mapDeps([41,42]),import.meta.url))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>n(()=>import("./BxgE0vQu.js"),[],import.meta.url))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>n(()=>import("./BTifaqeh.js"),__vite__mapDeps([43,40]),import.meta.url))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>n(()=>import("./CenWIFCC.js"),__vite__mapDeps([44,45,46]),import.meta.url))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>n(()=>import("./C5YyOfLZ.js"),[],import.meta.url))},{id:"gdshader",name:"GDShader",import:(()=>n(()=>import("./DkwncUOv.js"),[],import.meta.url))},{id:"genie",name:"Genie",import:(()=>n(()=>import("./D0YGMca9.js"),[],import.meta.url))},{id:"gherkin",name:"Gherkin",import:(()=>n(()=>import("./DyxjwDmM.js"),[],import.meta.url))},{id:"git-commit",name:"Git Commit Message",import:(()=>n(()=>import("./CxGSJlkm.js"),__vite__mapDeps([47,48]),import.meta.url))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>n(()=>import("./CSXwinHm.js"),__vite__mapDeps([49,28]),import.meta.url))},{id:"gleam",name:"Gleam",import:(()=>n(()=>import("./BspZqrRM.js"),[],import.meta.url))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>n(()=>import("./YqXBG_HV.js"),__vite__mapDeps([50,2,11,3,1]),import.meta.url))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>n(()=>import("./BR5kRUq4.js"),__vite__mapDeps([51,11,3,2,1]),import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>n(()=>import("./DZxFcAj9.js"),__vite__mapDeps([25,26]),import.meta.url))},{id:"gn",name:"GN",import:(()=>n(()=>import("./n2N0HUVH.js"),[],import.meta.url))},{id:"gnuplot",name:"Gnuplot",import:(()=>n(()=>import("./DdkO51Og.js"),[],import.meta.url))},{id:"go",name:"Go",import:(()=>n(()=>import("./CxLEBnE3.js"),[],import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>n(()=>import("./C9oPPf7i.js"),__vite__mapDeps([35,2,11,36,13]),import.meta.url))},{id:"groovy",name:"Groovy",import:(()=>n(()=>import("./gcz8RCvz.js"),[],import.meta.url))},{id:"hack",name:"Hack",import:(()=>n(()=>import("./CLZrNe3w.js"),__vite__mapDeps([52,1,2,3,16]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>n(()=>import("./CmIQRyeF.js"),__vite__mapDeps([34,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>n(()=>import("./m17aaUwq.js"),__vite__mapDeps([53,1,2,3,38]),import.meta.url))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>n(()=>import("./Df6bDoY_.js"),[],import.meta.url))},{id:"haxe",name:"Haxe",import:(()=>n(()=>import("./CzTSHFRz.js"),[],import.meta.url))},{id:"hcl",name:"HashiCorp HCL",import:(()=>n(()=>import("./BWvSN4gD.js"),[],import.meta.url))},{id:"hjson",name:"Hjson",import:(()=>n(()=>import("./D5-asLiD.js"),[],import.meta.url))},{id:"hlsl",name:"HLSL",import:(()=>n(()=>import("./D3lLCCz7.js"),[],import.meta.url))},{id:"html",name:"HTML",import:(()=>n(()=>import("./CnnebwVN.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>n(()=>import("./DGP4VlC8.js"),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>n(()=>import("./CufHLc7y.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>n(()=>import("./CYsAdtH9.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]),import.meta.url))},{id:"hxml",name:"HXML",import:(()=>n(()=>import("./DWrx1Km3.js"),__vite__mapDeps([57,58]),import.meta.url))},{id:"hy",name:"Hy",import:(()=>n(()=>import("./DFXneXwc.js"),[],import.meta.url))},{id:"imba",name:"Imba",import:(()=>n(()=>import("./DGztddWO.js"),[],import.meta.url))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>n(()=>import("./BEwlwnbL.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>n(()=>import("./CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>n(()=>import("./wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>n(()=>import("./CXZktZb0.js"),__vite__mapDeps([59,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>n(()=>import("./Br6cN0cg.js"),__vite__mapDeps([60,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>n(()=>import("./Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>n(()=>import("./C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>n(()=>import("./Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>n(()=>import("./DcaNXYhu.js"),[],import.meta.url))},{id:"jsonnet",name:"Jsonnet",import:(()=>n(()=>import("./DFQXde-d.js"),[],import.meta.url))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>n(()=>import("./C2t-YnRu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>n(()=>import("./g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>n(()=>import("./W9tJ9s81.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]),import.meta.url))},{id:"kdl",name:"KDL",import:(()=>n(()=>import("./DV7GczEv.js"),[],import.meta.url))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>n(()=>import("./BdnUsdx6.js"),[],import.meta.url))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>n(()=>import("./DZf3V79B.js"),[],import.meta.url))},{id:"latex",name:"LaTeX",import:(()=>n(()=>import("./DMwsHuHA.js"),__vite__mapDeps([63,64,62]),import.meta.url))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>n(()=>import("./BZvkOJ9d.js"),[],import.meta.url))},{id:"less",name:"Less",import:(()=>n(()=>import("./B1dDrJ26.js"),[],import.meta.url))},{id:"liquid",name:"Liquid",import:(()=>n(()=>import("./mjskCLCv.js"),__vite__mapDeps([65,1,2,3,9]),import.meta.url))},{id:"llvm",name:"LLVM IR",import:(()=>n(()=>import("./BtvRca6l.js"),[],import.meta.url))},{id:"log",name:"Log file",import:(()=>n(()=>import("./2UxHyX5q.js"),[],import.meta.url))},{id:"logo",name:"Logo",import:(()=>n(()=>import("./BtOb2qkB.js"),[],import.meta.url))},{id:"lua",name:"Lua",import:(()=>n(()=>import("./CnsnAmq5.js"),__vite__mapDeps([37,26]),import.meta.url))},{id:"luau",name:"Luau",import:(()=>n(()=>import("./C-HG3fhB.js"),[],import.meta.url))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>n(()=>import("./CHLpvVh8.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>n(()=>import("./Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>n(()=>import("./83L43bj1.js"),__vite__mapDeps([66,3,67,5,11]),import.meta.url))},{id:"matlab",name:"MATLAB",import:(()=>n(()=>import("./D7o27uSR.js"),[],import.meta.url))},{id:"mdc",name:"MDC",import:(()=>n(()=>import("./TsXTqZ29.js"),__vite__mapDeps([68,40,38,15,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>n(()=>import("./Cmh6b_Ma.js"),[],import.meta.url))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>n(()=>import("./mWjccvbQ.js"),[],import.meta.url))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>n(()=>import("./CKIfxQSi.js"),[],import.meta.url))},{id:"mojo",name:"Mojo",import:(()=>n(()=>import("./B93PlW-d.js"),[],import.meta.url))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>n(()=>import("./Ba13S78F.js"),[],import.meta.url))},{id:"move",name:"Move",import:(()=>n(()=>import("./IF9eRakj.js"),[],import.meta.url))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>n(()=>import("./DRg8JJMk.js"),[],import.meta.url))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>n(()=>import("./BrzmwbiE.js"),[],import.meta.url))},{id:"nginx",name:"Nginx",import:(()=>n(()=>import("./Dph4kLrZ.js"),__vite__mapDeps([69,37,26]),import.meta.url))},{id:"nim",name:"Nim",import:(()=>n(()=>import("./DhmSosst.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40]),import.meta.url))},{id:"nix",name:"Nix",import:(()=>n(()=>import("./CwoSXNpI.js"),[],import.meta.url))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>n(()=>import("./C-sUppwS.js"),[],import.meta.url))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>n(()=>import("./DXmwc3jG.js"),[],import.meta.url))},{id:"objective-cpp",name:"Objective-C++",import:(()=>n(()=>import("./CLxacb5B.js"),[],import.meta.url))},{id:"ocaml",name:"OCaml",import:(()=>n(()=>import("./C0hk2d4L.js"),[],import.meta.url))},{id:"odin",name:"Odin",import:(()=>n(()=>import("./BBf5iR-q.js"),[],import.meta.url))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>n(()=>import("./C4EeE6gA.js"),[],import.meta.url))},{id:"pascal",name:"Pascal",import:(()=>n(()=>import("./D93ZcfNL.js"),[],import.meta.url))},{id:"perl",name:"Perl",import:(()=>n(()=>import("./BzTr9Aqm.js"),__vite__mapDeps([71,1,2,3,7,8,16]),import.meta.url))},{id:"php",name:"PHP",import:(()=>n(()=>import("./DJjDtW9f.js"),__vite__mapDeps([72,1,2,3,7,8,16,9]),import.meta.url))},{id:"pkl",name:"Pkl",import:(()=>n(()=>import("./u5AG7uiY.js"),[],import.meta.url))},{id:"plsql",name:"PL/SQL",import:(()=>n(()=>import("./ChMvpjG-.js"),[],import.meta.url))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>n(()=>import("./BTJTHyun.js"),[],import.meta.url))},{id:"polar",name:"Polar",import:(()=>n(()=>import("./C0HS_06l.js"),[],import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>n(()=>import("./CXtECtnM.js"),[],import.meta.url))},{id:"powerquery",name:"PowerQuery",import:(()=>n(()=>import("./CEu0bR-o.js"),[],import.meta.url))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>n(()=>import("./Dpen1YoG.js"),[],import.meta.url))},{id:"prisma",name:"Prisma",import:(()=>n(()=>import("./Dd19v3D-.js"),[],import.meta.url))},{id:"prolog",name:"Prolog",import:(()=>n(()=>import("./CbFg5uaA.js"),[],import.meta.url))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>n(()=>import("./C7zT0LnQ.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>n(()=>import("./BLmx8bSh.js"),__vite__mapDeps([73,2,3,1]),import.meta.url))},{id:"puppet",name:"Puppet",import:(()=>n(()=>import("./BMWR74SV.js"),[],import.meta.url))},{id:"purescript",name:"PureScript",import:(()=>n(()=>import("./CklMAg4u.js"),[],import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>n(()=>import("./B6aJPvgy.js"),[],import.meta.url))},{id:"qml",name:"QML",import:(()=>n(()=>import("./BVQ-GDCI.js"),__vite__mapDeps([74,2]),import.meta.url))},{id:"qmldir",name:"QML Directory",import:(()=>n(()=>import("./C8lEn-DE.js"),[],import.meta.url))},{id:"qss",name:"Qt Style Sheets",import:(()=>n(()=>import("./IeuSbFQv.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>n(()=>import("./Dspwwk_N.js"),[],import.meta.url))},{id:"racket",name:"Racket",import:(()=>n(()=>import("./BqYA7rlc.js"),[],import.meta.url))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>n(()=>import("./DXvB9xmW.js"),[],import.meta.url))},{id:"razor",name:"ASP.NET Razor",import:(()=>n(()=>import("./DsumFeuD.js"),__vite__mapDeps([75,1,2,3,76]),import.meta.url))},{id:"reg",name:"Windows Registry Script",import:(()=>n(()=>import("./C-SQnVFl.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>n(()=>import("./CDVJQ6XC.js"),[],import.meta.url))},{id:"rel",name:"Rel",import:(()=>n(()=>import("./C3B-1QV4.js"),[],import.meta.url))},{id:"riscv",name:"RISC-V",import:(()=>n(()=>import("./BM1_JUlF.js"),[],import.meta.url))},{id:"ron",name:"RON",import:(()=>n(()=>import("./BhRPY-oY.js"),[],import.meta.url))},{id:"rosmsg",name:"ROS Interface",import:(()=>n(()=>import("./BJDFO7_C.js"),[],import.meta.url))},{id:"rst",name:"reStructuredText",import:(()=>n(()=>import("./DQwYQDb2.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37]),import.meta.url))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>n(()=>import("./Bhrxn6JZ.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>n(()=>import("./B1yitclQ.js"),[],import.meta.url))},{id:"sas",name:"SAS",import:(()=>n(()=>import("./CG8Ifv2g.js"),__vite__mapDeps([79,16]),import.meta.url))},{id:"sass",name:"Sass",import:(()=>n(()=>import("./Cj5Yp3dK.js"),[],import.meta.url))},{id:"scala",name:"Scala",import:(()=>n(()=>import("./C151Ov-r.js"),[],import.meta.url))},{id:"scheme",name:"Scheme",import:(()=>n(()=>import("./C98Dy4si.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>n(()=>import("./2EtD6e53.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>n(()=>import("./DVxCFoDh.js"),[],import.meta.url))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>n(()=>import("./BqTXFGrv.js"),__vite__mapDeps([80,81]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>n(()=>import("./Yzrsuije.js"),[],import.meta.url))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>n(()=>import("./Cq5zzVJU.js"),__vite__mapDeps([82,28]),import.meta.url))},{id:"smalltalk",name:"Smalltalk",import:(()=>n(()=>import("./BERRCDM3.js"),[],import.meta.url))},{id:"solidity",name:"Solidity",import:(()=>n(()=>import("./rGO070M0.js"),[],import.meta.url))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>n(()=>import("./Dzze3sRP.js"),__vite__mapDeps([83,1,2,3]),import.meta.url))},{id:"sparql",name:"SPARQL",import:(()=>n(()=>import("./BRZ36xJF.js"),__vite__mapDeps([84,85]),import.meta.url))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>n(()=>import("./BtCnVYZw.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>n(()=>import("./BLtJtn59.js"),[],import.meta.url))},{id:"ssh-config",name:"SSH Config",import:(()=>n(()=>import("./_ykCGR6B.js"),[],import.meta.url))},{id:"stata",name:"Stata",import:(()=>n(()=>import("./DM8c43g1.js"),__vite__mapDeps([86,16]),import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>n(()=>import("./BEDo0Tqx.js"),[],import.meta.url))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>n(()=>import("./BH7IYjvW.js"),__vite__mapDeps([87,2]),import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>n(()=>import("./DYoxhk2S.js"),__vite__mapDeps([88,2,11,3,12]),import.meta.url))},{id:"swift",name:"Swift",import:(()=>n(()=>import("./Dg5xB15N.js"),[],import.meta.url))},{id:"system-verilog",name:"SystemVerilog",import:(()=>n(()=>import("./CnnmHF94.js"),[],import.meta.url))},{id:"systemd",name:"Systemd Units",import:(()=>n(()=>import("./4A_iFExJ.js"),[],import.meta.url))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>n(()=>import("./CkByrt1z.js"),[],import.meta.url))},{id:"tasl",name:"Tasl",import:(()=>n(()=>import("./QIJgUcNo.js"),[],import.meta.url))},{id:"tcl",name:"Tcl",import:(()=>n(()=>import("./dwOrl1Do.js"),[],import.meta.url))},{id:"templ",name:"Templ",import:(()=>n(()=>import("./CZhp0h8q.js"),__vite__mapDeps([89,90,2,3]),import.meta.url))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>n(()=>import("./BETggiCN.js"),[],import.meta.url))},{id:"tex",name:"TeX",import:(()=>n(()=>import("./CQ8jqdy-.js"),__vite__mapDeps([64,62]),import.meta.url))},{id:"toml",name:"TOML",import:(()=>n(()=>import("./vGWfd6FD.js"),[],import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>n(()=>import("./Cm3UrAx6.js"),__vite__mapDeps([91,11,3,2,25,26,1,16,7,8]),import.meta.url))},{id:"tsv",name:"TSV",import:(()=>n(()=>import("./B_m7g4N7.js"),[],import.meta.url))},{id:"tsx",name:"TSX",import:(()=>n(()=>import("./COt5Ahok.js"),[],import.meta.url))},{id:"turtle",name:"Turtle",import:(()=>n(()=>import("./BsS91CYL.js"),[],import.meta.url))},{id:"twig",name:"Twig",import:(()=>n(()=>import("./RNghxpo_.js"),__vite__mapDeps([92,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>n(()=>import("./BPQ3VLAy.js"),[],import.meta.url))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>n(()=>import("./BGHnOYBU.js"),[],import.meta.url))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>n(()=>import("./DHCkPAjA.js"),[],import.meta.url))},{id:"v",name:"V",import:(()=>n(()=>import("./BcVCzyr7.js"),[],import.meta.url))},{id:"vala",name:"Vala",import:(()=>n(()=>import("./CsfeWuGM.js"),[],import.meta.url))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>n(()=>import("./D17OF-Vu.js"),[],import.meta.url))},{id:"verilog",name:"Verilog",import:(()=>n(()=>import("./BQ8w6xss.js"),[],import.meta.url))},{id:"vhdl",name:"VHDL",import:(()=>n(()=>import("./CeAyd5Ju.js"),[],import.meta.url))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>n(()=>import("./CJc9bBzg.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>n(()=>import("./DEthMvLe.js"),__vite__mapDeps([93,3,2,11,9,1,15]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>n(()=>import("./DqQDbK_p.js"),__vite__mapDeps([94,2]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>n(()=>import("./CW8IKDeL.js"),__vite__mapDeps([95,3,5,67,96,12,2]),import.meta.url))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>n(()=>import("./CDx5xZoG.js"),[],import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>n(()=>import("./MzD3tlZU.js"),[],import.meta.url))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>n(()=>import("./BV7otONQ.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>n(()=>import("./Dx-B1_4e.js"),[],import.meta.url))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>n(()=>import("./BhOHFoWU.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>n(()=>import("./5i3qLPDT.js"),[],import.meta.url))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>n(()=>import("./lXgVvXCa.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>n(()=>import("./BGJmEYvX.js"),__vite__mapDeps([7,8]),import.meta.url))},{id:"xsl",name:"XSL",import:(()=>n(()=>import("./yv6CvBhz.js"),__vite__mapDeps([97,7,8]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>n(()=>import("./Buea-lGh.js"),[],import.meta.url))},{id:"zenscript",name:"ZenScript",import:(()=>n(()=>import("./DVFEvuxE.js"),[],import.meta.url))},{id:"zig",name:"Zig",import:(()=>n(()=>import("./VOosw3JB.js"),[],import.meta.url))}],Mn=Object.fromEntries(Ri.map(i=>[i.id,i.import])),$n=Object.fromEntries(Ri.flatMap(i=>i.aliases?.map(e=>[e,i.import])||[])),Nn={...Mn,...$n},zn=Zi({langs:Nn,themes:Ji,engine:()=>ea(n(()=>import("./CG6Dc4jp.js"),[],import.meta.url))}),{codeToHtml:Bn}=Xi(zn,{guessEmbeddedLanguages:Ki});const{entries:yi,setPrototypeOf:Gr,isFrozen:Fn,getPrototypeOf:Un,getOwnPropertyDescriptor:Hn}=Object;let{freeze:ne,seal:le,create:tr}=Object,{apply:rr,construct:ir}=typeof Reflect<"u"&&Reflect;ne||(ne=function(e){return e});le||(le=function(e){return e});rr||(rr=function(e,t){for(var a=arguments.length,r=new Array(a>2?a-2:0),l=2;l<a;l++)r[l-2]=arguments[l];return e.apply(t,r)});ir||(ir=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];return new e(...a)});const vt=oe(Array.prototype.forEach),qn=oe(Array.prototype.lastIndexOf),jr=oe(Array.prototype.pop),at=oe(Array.prototype.push),Gn=oe(Array.prototype.splice),xt=oe(String.prototype.toLowerCase),Ht=oe(String.prototype.toString),qt=oe(String.prototype.match),nt=oe(String.prototype.replace),jn=oe(String.prototype.indexOf),Wn=oe(String.prototype.trim),pe=oe(Object.prototype.hasOwnProperty),te=oe(RegExp.prototype.test),ot=Qn(TypeError);function oe(i){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];return rr(i,e,a)}}function Qn(i){return function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return ir(i,t)}}function x(i,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xt;Gr&&Gr(i,null);let a=e.length;for(;a--;){let r=e[a];if(typeof r=="string"){const l=t(r);l!==r&&(Fn(e)||(e[a]=l),r=l)}i[r]=!0}return i}function Yn(i){for(let e=0;e<i.length;e++)pe(i,e)||(i[e]=null);return i}function ve(i){const e=tr(null);for(const[t,a]of yi(i))pe(i,t)&&(Array.isArray(a)?e[t]=Yn(a):a&&typeof a=="object"&&a.constructor===Object?e[t]=ve(a):e[t]=a);return e}function st(i,e){for(;i!==null;){const a=Hn(i,e);if(a){if(a.get)return oe(a.get);if(typeof a.value=="function")return oe(a.value)}i=Un(i)}function t(){return null}return t}const Wr=ne(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Gt=ne(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),jt=ne(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Xn=ne(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Wt=ne(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Kn=ne(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qr=ne(["#text"]),Yr=ne(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Qt=ne(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Xr=ne(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),At=ne(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Zn=le(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Jn=le(/<%[\w\W]*|[\w\W]*%>/gm),eo=le(/\$\{[\w\W]*/gm),to=le(/^data-[\-\w.\u00B7-\uFFFF]+$/),ro=le(/^aria-[\-\w]+$/),Li=le(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),io=le(/^(?:\w+script|data):/i),ao=le(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),wi=le(/^html$/i),no=le(/^[a-z][.\w]*(-[.\w]+)+$/i);var Kr=Object.freeze({__proto__:null,ARIA_ATTR:ro,ATTR_WHITESPACE:ao,CUSTOM_ELEMENT:no,DATA_ATTR:to,DOCTYPE_NAME:wi,ERB_EXPR:Jn,IS_ALLOWED_URI:Li,IS_SCRIPT_OR_DATA:io,MUSTACHE_EXPR:Zn,TMPLIT_EXPR:eo});const lt={element:1,text:3,progressingInstruction:7,comment:8,document:9},oo=function(){return typeof window>"u"?null:window},so=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let a=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(a=t.getAttribute(r));const l="dompurify"+(a?"#"+a:"");try{return e.createPolicy(l,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+l+" could not be created."),null}},Zr=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ii(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oo();const e=b=>Ii(b);if(e.version="3.3.1",e.removed=[],!i||!i.document||i.document.nodeType!==lt.document||!i.Element)return e.isSupported=!1,e;let{document:t}=i;const a=t,r=a.currentScript,{DocumentFragment:l,HTMLTemplateElement:s,Node:c,Element:u,NodeFilter:d,NamedNodeMap:m=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:_,DOMParser:E,trustedTypes:k}=i,v=u.prototype,S=st(v,"cloneNode"),ue=st(v,"remove"),C=st(v,"nextSibling"),V=st(v,"childNodes"),P=st(v,"parentNode");if(typeof s=="function"){const b=t.createElement("template");b.content&&b.content.ownerDocument&&(t=b.content.ownerDocument)}let w,J="";const{implementation:K,createNodeIterator:fe,createDocumentFragment:he,getElementsByTagName:G}=t,{importNode:ge}=a;let F=Zr();e.isSupported=typeof yi=="function"&&typeof P=="function"&&K&&K.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Pe,ERB_EXPR:$e,TMPLIT_EXPR:Ne,DATA_ATTR:Qe,ARIA_ATTR:mt,IS_SCRIPT_OR_DATA:Ct,ATTR_WHITESPACE:ze,CUSTOM_ELEMENT:dt}=Kr;let{IS_ALLOWED_URI:Ye}=Kr,H=null;const Xe=x({},[...Wr,...Gt,...jt,...Wt,...Qr]);let j=null;const _t=x({},[...Yr,...Qt,...Xr,...At]);let z=Object.seal(tr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Be=null;const Ee=Object.seal(tr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ft=!0,Ke=!0,h=!1,g=!0,R=!1,Q=!0,ee=!1,Ze=!1,Je=!1,we=!1,Ie=!1,ht=!1,fr=!0,hr=!1;const Di="user-content-";let Vt=!0,et=!1,Fe={},ke=null;const Mt=x({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let gr=null;const Er=x({},["audio","video","img","source","image","track"]);let $t=null;const kr=x({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gt="http://www.w3.org/1998/Math/MathML",Et="http://www.w3.org/2000/svg",Re="http://www.w3.org/1999/xhtml";let Ue=Re,Nt=!1,zt=null;const Pi=x({},[gt,Et,Re],Ht);let kt=x({},["mi","mo","mn","ms","mtext"]),Tt=x({},["annotation-xml"]);const Oi=x({},["title","style","font","a","script"]);let tt=null;const Si=["application/xhtml+xml","text/html"],Ci="text/html";let W=null,He=null;const Vi=t.createElement("form"),Tr=function(o){return o instanceof RegExp||o instanceof Function},Bt=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(He&&He===o)){if((!o||typeof o!="object")&&(o={}),o=ve(o),tt=Si.indexOf(o.PARSER_MEDIA_TYPE)===-1?Ci:o.PARSER_MEDIA_TYPE,W=tt==="application/xhtml+xml"?Ht:xt,H=pe(o,"ALLOWED_TAGS")?x({},o.ALLOWED_TAGS,W):Xe,j=pe(o,"ALLOWED_ATTR")?x({},o.ALLOWED_ATTR,W):_t,zt=pe(o,"ALLOWED_NAMESPACES")?x({},o.ALLOWED_NAMESPACES,Ht):Pi,$t=pe(o,"ADD_URI_SAFE_ATTR")?x(ve(kr),o.ADD_URI_SAFE_ATTR,W):kr,gr=pe(o,"ADD_DATA_URI_TAGS")?x(ve(Er),o.ADD_DATA_URI_TAGS,W):Er,ke=pe(o,"FORBID_CONTENTS")?x({},o.FORBID_CONTENTS,W):Mt,xe=pe(o,"FORBID_TAGS")?x({},o.FORBID_TAGS,W):ve({}),Be=pe(o,"FORBID_ATTR")?x({},o.FORBID_ATTR,W):ve({}),Fe=pe(o,"USE_PROFILES")?o.USE_PROFILES:!1,ft=o.ALLOW_ARIA_ATTR!==!1,Ke=o.ALLOW_DATA_ATTR!==!1,h=o.ALLOW_UNKNOWN_PROTOCOLS||!1,g=o.ALLOW_SELF_CLOSE_IN_ATTR!==!1,R=o.SAFE_FOR_TEMPLATES||!1,Q=o.SAFE_FOR_XML!==!1,ee=o.WHOLE_DOCUMENT||!1,we=o.RETURN_DOM||!1,Ie=o.RETURN_DOM_FRAGMENT||!1,ht=o.RETURN_TRUSTED_TYPE||!1,Je=o.FORCE_BODY||!1,fr=o.SANITIZE_DOM!==!1,hr=o.SANITIZE_NAMED_PROPS||!1,Vt=o.KEEP_CONTENT!==!1,et=o.IN_PLACE||!1,Ye=o.ALLOWED_URI_REGEXP||Li,Ue=o.NAMESPACE||Re,kt=o.MATHML_TEXT_INTEGRATION_POINTS||kt,Tt=o.HTML_INTEGRATION_POINTS||Tt,z=o.CUSTOM_ELEMENT_HANDLING||{},o.CUSTOM_ELEMENT_HANDLING&&Tr(o.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=o.CUSTOM_ELEMENT_HANDLING.tagNameCheck),o.CUSTOM_ELEMENT_HANDLING&&Tr(o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),o.CUSTOM_ELEMENT_HANDLING&&typeof o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(z.allowCustomizedBuiltInElements=o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),R&&(Ke=!1),Ie&&(we=!0),Fe&&(H=x({},Qr),j=[],Fe.html===!0&&(x(H,Wr),x(j,Yr)),Fe.svg===!0&&(x(H,Gt),x(j,Qt),x(j,At)),Fe.svgFilters===!0&&(x(H,jt),x(j,Qt),x(j,At)),Fe.mathMl===!0&&(x(H,Wt),x(j,Xr),x(j,At))),o.ADD_TAGS&&(typeof o.ADD_TAGS=="function"?Ee.tagCheck=o.ADD_TAGS:(H===Xe&&(H=ve(H)),x(H,o.ADD_TAGS,W))),o.ADD_ATTR&&(typeof o.ADD_ATTR=="function"?Ee.attributeCheck=o.ADD_ATTR:(j===_t&&(j=ve(j)),x(j,o.ADD_ATTR,W))),o.ADD_URI_SAFE_ATTR&&x($t,o.ADD_URI_SAFE_ATTR,W),o.FORBID_CONTENTS&&(ke===Mt&&(ke=ve(ke)),x(ke,o.FORBID_CONTENTS,W)),o.ADD_FORBID_CONTENTS&&(ke===Mt&&(ke=ve(ke)),x(ke,o.ADD_FORBID_CONTENTS,W)),Vt&&(H["#text"]=!0),ee&&x(H,["html","head","body"]),H.table&&(x(H,["tbody"]),delete xe.tbody),o.TRUSTED_TYPES_POLICY){if(typeof o.TRUSTED_TYPES_POLICY.createHTML!="function")throw ot('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof o.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ot('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=o.TRUSTED_TYPES_POLICY,J=w.createHTML("")}else w===void 0&&(w=so(k,r)),w!==null&&typeof J=="string"&&(J=w.createHTML(""));ne&&ne(o),He=o}},br=x({},[...Gt,...jt,...Xn]),vr=x({},[...Wt,...Kn]),Mi=function(o){let f=P(o);(!f||!f.tagName)&&(f={namespaceURI:Ue,tagName:"template"});const T=xt(o.tagName),N=xt(f.tagName);return zt[o.namespaceURI]?o.namespaceURI===Et?f.namespaceURI===Re?T==="svg":f.namespaceURI===gt?T==="svg"&&(N==="annotation-xml"||kt[N]):!!br[T]:o.namespaceURI===gt?f.namespaceURI===Re?T==="math":f.namespaceURI===Et?T==="math"&&Tt[N]:!!vr[T]:o.namespaceURI===Re?f.namespaceURI===Et&&!Tt[N]||f.namespaceURI===gt&&!kt[N]?!1:!vr[T]&&(Oi[T]||!br[T]):!!(tt==="application/xhtml+xml"&&zt[o.namespaceURI]):!1},Te=function(o){at(e.removed,{element:o});try{P(o).removeChild(o)}catch{ue(o)}},Oe=function(o,f){try{at(e.removed,{attribute:f.getAttributeNode(o),from:f})}catch{at(e.removed,{attribute:null,from:f})}if(f.removeAttribute(o),o==="is")if(we||Ie)try{Te(f)}catch{}else try{f.setAttribute(o,"")}catch{}},Ar=function(o){let f=null,T=null;if(Je)o="<remove></remove>"+o;else{const q=qt(o,/^[\r\n\t ]+/);T=q&&q[0]}tt==="application/xhtml+xml"&&Ue===Re&&(o='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+o+"</body></html>");const N=w?w.createHTML(o):o;if(Ue===Re)try{f=new E().parseFromString(N,tt)}catch{}if(!f||!f.documentElement){f=K.createDocument(Ue,"template",null);try{f.documentElement.innerHTML=Nt?J:N}catch{}}const Z=f.body||f.documentElement;return o&&T&&Z.insertBefore(t.createTextNode(T),Z.childNodes[0]||null),Ue===Re?G.call(f,ee?"html":"body")[0]:ee?f.documentElement:Z},xr=function(o){return fe.call(o.ownerDocument||o,o,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Ft=function(o){return o instanceof _&&(typeof o.nodeName!="string"||typeof o.textContent!="string"||typeof o.removeChild!="function"||!(o.attributes instanceof m)||typeof o.removeAttribute!="function"||typeof o.setAttribute!="function"||typeof o.namespaceURI!="string"||typeof o.insertBefore!="function"||typeof o.hasChildNodes!="function")},Rr=function(o){return typeof c=="function"&&o instanceof c};function ye(b,o,f){vt(b,T=>{T.call(e,o,f,He)})}const yr=function(o){let f=null;if(ye(F.beforeSanitizeElements,o,null),Ft(o))return Te(o),!0;const T=W(o.nodeName);if(ye(F.uponSanitizeElement,o,{tagName:T,allowedTags:H}),Q&&o.hasChildNodes()&&!Rr(o.firstElementChild)&&te(/<[/\w!]/g,o.innerHTML)&&te(/<[/\w!]/g,o.textContent)||o.nodeType===lt.progressingInstruction||Q&&o.nodeType===lt.comment&&te(/<[/\w]/g,o.data))return Te(o),!0;if(!(Ee.tagCheck instanceof Function&&Ee.tagCheck(T))&&(!H[T]||xe[T])){if(!xe[T]&&wr(T)&&(z.tagNameCheck instanceof RegExp&&te(z.tagNameCheck,T)||z.tagNameCheck instanceof Function&&z.tagNameCheck(T)))return!1;if(Vt&&!ke[T]){const N=P(o)||o.parentNode,Z=V(o)||o.childNodes;if(Z&&N){const q=Z.length;for(let se=q-1;se>=0;--se){const Le=S(Z[se],!0);Le.__removalCount=(o.__removalCount||0)+1,N.insertBefore(Le,C(o))}}}return Te(o),!0}return o instanceof u&&!Mi(o)||(T==="noscript"||T==="noembed"||T==="noframes")&&te(/<\/no(script|embed|frames)/i,o.innerHTML)?(Te(o),!0):(R&&o.nodeType===lt.text&&(f=o.textContent,vt([Pe,$e,Ne],N=>{f=nt(f,N," ")}),o.textContent!==f&&(at(e.removed,{element:o.cloneNode()}),o.textContent=f)),ye(F.afterSanitizeElements,o,null),!1)},Lr=function(o,f,T){if(fr&&(f==="id"||f==="name")&&(T in t||T in Vi))return!1;if(!(Ke&&!Be[f]&&te(Qe,f))){if(!(ft&&te(mt,f))){if(!(Ee.attributeCheck instanceof Function&&Ee.attributeCheck(f,o))){if(!j[f]||Be[f]){if(!(wr(o)&&(z.tagNameCheck instanceof RegExp&&te(z.tagNameCheck,o)||z.tagNameCheck instanceof Function&&z.tagNameCheck(o))&&(z.attributeNameCheck instanceof RegExp&&te(z.attributeNameCheck,f)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(f,o))||f==="is"&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&te(z.tagNameCheck,T)||z.tagNameCheck instanceof Function&&z.tagNameCheck(T))))return!1}else if(!$t[f]){if(!te(Ye,nt(T,ze,""))){if(!((f==="src"||f==="xlink:href"||f==="href")&&o!=="script"&&jn(T,"data:")===0&&gr[o])){if(!(h&&!te(Ct,nt(T,ze,"")))){if(T)return!1}}}}}}}return!0},wr=function(o){return o!=="annotation-xml"&&qt(o,dt)},Ir=function(o){ye(F.beforeSanitizeAttributes,o,null);const{attributes:f}=o;if(!f||Ft(o))return;const T={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0};let N=f.length;for(;N--;){const Z=f[N],{name:q,namespaceURI:se,value:Le}=Z,qe=W(q),Ut=Le;let Y=q==="value"?Ut:Wn(Ut);if(T.attrName=qe,T.attrValue=Y,T.keepAttr=!0,T.forceKeepAttr=void 0,ye(F.uponSanitizeAttribute,o,T),Y=T.attrValue,hr&&(qe==="id"||qe==="name")&&(Oe(q,o),Y=Di+Y),Q&&te(/((--!?|])>)|<\/(style|title|textarea)/i,Y)){Oe(q,o);continue}if(qe==="attributename"&&qt(Y,"href")){Oe(q,o);continue}if(T.forceKeepAttr)continue;if(!T.keepAttr){Oe(q,o);continue}if(!g&&te(/\/>/i,Y)){Oe(q,o);continue}R&&vt([Pe,$e,Ne],Pr=>{Y=nt(Y,Pr," ")});const Dr=W(o.nodeName);if(!Lr(Dr,qe,Y)){Oe(q,o);continue}if(w&&typeof k=="object"&&typeof k.getAttributeType=="function"&&!se)switch(k.getAttributeType(Dr,qe)){case"TrustedHTML":{Y=w.createHTML(Y);break}case"TrustedScriptURL":{Y=w.createScriptURL(Y);break}}if(Y!==Ut)try{se?o.setAttributeNS(se,q,Y):o.setAttribute(q,Y),Ft(o)?Te(o):jr(e.removed)}catch{Oe(q,o)}}ye(F.afterSanitizeAttributes,o,null)},$i=function b(o){let f=null;const T=xr(o);for(ye(F.beforeSanitizeShadowDOM,o,null);f=T.nextNode();)ye(F.uponSanitizeShadowNode,f,null),yr(f),Ir(f),f.content instanceof l&&b(f.content);ye(F.afterSanitizeShadowDOM,o,null)};return e.sanitize=function(b){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=null,T=null,N=null,Z=null;if(Nt=!b,Nt&&(b="<!-->"),typeof b!="string"&&!Rr(b))if(typeof b.toString=="function"){if(b=b.toString(),typeof b!="string")throw ot("dirty is not a string, aborting")}else throw ot("toString is not a function");if(!e.isSupported)return b;if(Ze||Bt(o),e.removed=[],typeof b=="string"&&(et=!1),et){if(b.nodeName){const Le=W(b.nodeName);if(!H[Le]||xe[Le])throw ot("root node is forbidden and cannot be sanitized in-place")}}else if(b instanceof c)f=Ar("<!---->"),T=f.ownerDocument.importNode(b,!0),T.nodeType===lt.element&&T.nodeName==="BODY"||T.nodeName==="HTML"?f=T:f.appendChild(T);else{if(!we&&!R&&!ee&&b.indexOf("<")===-1)return w&&ht?w.createHTML(b):b;if(f=Ar(b),!f)return we?null:ht?J:""}f&&Je&&Te(f.firstChild);const q=xr(et?b:f);for(;N=q.nextNode();)yr(N),Ir(N),N.content instanceof l&&$i(N.content);if(et)return b;if(we){if(Ie)for(Z=he.call(f.ownerDocument);f.firstChild;)Z.appendChild(f.firstChild);else Z=f;return(j.shadowroot||j.shadowrootmode)&&(Z=ge.call(a,Z,!0)),Z}let se=ee?f.outerHTML:f.innerHTML;return ee&&H["!doctype"]&&f.ownerDocument&&f.ownerDocument.doctype&&f.ownerDocument.doctype.name&&te(wi,f.ownerDocument.doctype.name)&&(se="<!DOCTYPE "+f.ownerDocument.doctype.name+`>
|
|
61
|
-
`+se),R&&vt([Pe,$e,Ne],Le=>{se=nt(se,Le," ")}),w&&ht?w.createHTML(se):se},e.setConfig=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bt(b),Ze=!0},e.clearConfig=function(){He=null,Ze=!1},e.isValidAttribute=function(b,o,f){He||Bt({});const T=W(b),N=W(o);return Lr(T,N,f)},e.addHook=function(b,o){typeof o=="function"&&at(F[b],o)},e.removeHook=function(b,o){if(o!==void 0){const f=qn(F[b],o);return f===-1?void 0:Gn(F[b],f,1)[0]}return jr(F[b])},e.removeHooks=function(b){F[b]=[]},e.removeAllHooks=function(){F=Zr()},e}var lo=Ii();const uo={class:"prd-viewer"},po={key:0,class:"flex items-center justify-center py-8"},co=["innerHTML"],mo=B({__name:"Viewer",props:{content:{}},setup(i){const e=i,t=U(""),a=U(!0),r={ADD_TAGS:["style"],ADD_ATTR:["style","class","target","rel"]},l=new I.Renderer;l.link=({href:d,title:m,text:_})=>{const E=m?` title="${m}"`:"";return`<a href="${d}"${E} target="_blank" rel="noopener noreferrer">${_}</a>`};async function s(d,m){try{return await Bn(d,{lang:m||"text",themes:{light:"github-light",dark:"github-dark"}})}catch{return`<pre><code class="language-${m}">${c(d)}</code></pre>`}}function c(d){return d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}async function u(d){const m=/```(\w*)\n([\s\S]*?)```/g,_=[];let E=0;const k=d.replace(m,(C,V,P)=>{const w=`CODEBLOCK${E++}PLACEHOLDER`;return _.push({placeholder:w,lang:V||"text",code:P.trim()}),w});I.setOptions({renderer:l,gfm:!0,breaks:!0});let v=await I.parse(k);const S=_.map(async({placeholder:C,lang:V,code:P})=>{const w=await s(P,V);return{placeholder:C,highlighted:w}}),ue=await Promise.all(S);for(const{placeholder:C,highlighted:V}of ue)v=v.replace(`<p>${C}</p>`,V),v=v.replace(C,V);return lo.sanitize(v,r)}return Se(()=>e.content,async d=>{if(d){a.value=!0;try{t.value=await u(d)}finally{a.value=!1}}},{immediate:!0}),(d,m)=>(A(),O("div",uo,[p(a)?(A(),O("div",po,[...m[0]||(m[0]=[M("div",{class:"size-6 animate-spin rounded-full border-2 border-primary border-t-transparent"},null,-1)])])):(A(),O("div",{key:1,class:"prose prose-sm dark:prose-invert max-w-none",innerHTML:p(t)},null,8,co))]))}}),_o=Object.assign(mo,{__name:"PrdViewer"}),fo=B({__name:"Card",props:{class:{}},setup(i){const e=i;return(t,a)=>(A(),O("div",{"data-slot":"card",class:de(p(_e)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e.class))},[X(t.$slots,"default")],2))}}),ho=Object.assign(fo,{__name:"UiCard"}),go=B({__name:"CardAction",props:{class:{}},setup(i){const e=i;return(t,a)=>(A(),O("div",{"data-slot":"card-action",class:de(p(_e)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e.class))},[X(t.$slots,"default")],2))}});Object.assign(go,{__name:"UiCardAction"});const Eo=B({__name:"CardContent",props:{class:{}},setup(i){const e=i;return(t,a)=>(A(),O("div",{"data-slot":"card-content",class:de(p(_e)("px-6",e.class))},[X(t.$slots,"default")],2))}}),ko=Object.assign(Eo,{__name:"UiCardContent"}),To=B({__name:"CardDescription",props:{class:{}},setup(i){const e=i;return(t,a)=>(A(),O("p",{"data-slot":"card-description",class:de(p(_e)("text-muted-foreground text-sm",e.class))},[X(t.$slots,"default")],2))}});Object.assign(To,{__name:"UiCardDescription"});const bo=B({__name:"CardFooter",props:{class:{}},setup(i){const e=i;return(t,a)=>(A(),O("div",{"data-slot":"card-footer",class:de(p(_e)("flex items-center px-6 [.border-t]:pt-6",e.class))},[X(t.$slots,"default")],2))}});Object.assign(bo,{__name:"UiCardFooter"});const vo=B({__name:"CardHeader",props:{class:{}},setup(i){const e=i;return(t,a)=>(A(),O("div",{"data-slot":"card-header",class:de(p(_e)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e.class))},[X(t.$slots,"default")],2))}});Object.assign(vo,{__name:"UiCardHeader"});const Ao=B({__name:"CardTitle",props:{class:{}},setup(i){const e=i;return(t,a)=>(A(),O("h3",{"data-slot":"card-title",class:de(p(_e)("leading-none font-semibold",e.class))},[X(t.$slots,"default")],2))}});Object.assign(Ao,{__name:"UiCardTitle"});const xo={class:"flex items-center justify-between gap-2 mb-1.5"},Ro={class:"text-sm font-medium leading-snug"},yo={class:"text-muted-foreground"},Lo={key:0,class:"mt-2 flex items-center gap-1.5 text-xs text-destructive"},wo=B({__name:"Card",props:{task:{},blockedBy:{}},emits:["click"],setup(i,{emit:e}){const t=i,a=e,r=$(()=>{switch(t.task.category){case"setup":return{label:"Setup",variant:"secondary"};case"feature":return{label:"Feature",variant:"default"};case"integration":return{label:"Integration",variant:"outline"};case"testing":return{label:"Testing",variant:"secondary"};case"documentation":return{label:"Docs",variant:"secondary"};default:return{label:t.task.category,variant:"secondary"}}}),l=$(()=>{switch(t.task.priority){case"critical":return{icon:$r,class:"text-destructive",label:"Critical"};case"high":return{icon:$r,class:"text-orange-500",label:"High"};case"medium":return{icon:Cr,class:"text-muted-foreground",label:"Medium"};case"low":return{icon:Ta,class:"text-muted-foreground",label:"Low"};default:return{icon:Cr,class:"text-muted-foreground",label:"Unknown"}}}),s=$(()=>t.blockedBy&&t.blockedBy.length>0),c=$(()=>{const _=t.task.id.match(/(\d+)$/)?.[1];return _?parseInt(_,10):0}),u=$(()=>t.blockedBy?.length??0);function d(){a("click",t.task)}return(m,_)=>(A(),ae(p(ho),{class:de(["cursor-pointer py-0 gap-0 transition-all hover:shadow-md hover:border-primary/50",{"opacity-60":p(s)}]),onClick:d},{default:D(()=>[y(p(ko),{class:"p-2.5"},{default:D(()=>[M("div",xo,[y(p(ri),{variant:p(r).variant,class:"text-xs"},{default:D(()=>[De(re(p(r).label),1)]),_:1},8,["variant"]),(A(),ae(oi(p(l).icon),{class:de(["size-4",p(l).class]),title:p(l).label},null,8,["class","title"]))]),M("h4",Ro,[M("span",yo,"#"+re(p(c)),1),De(" "+re(i.task.title),1)]),p(s)?(A(),O("div",Lo,[y(p(ii),{class:"size-3.5"}),M("span",null,"Blocked by "+re(p(u))+" task"+re(p(u)===1?"":"s"),1)])):Ae("",!0)]),_:1})]),_:1},8,["class"]))}}),Io=Object.assign(wo,{__name:"TasksCard"}),Do={class:"flex h-full min-w-56 flex-1 flex-col overflow-hidden rounded-lg border border-border bg-card"},Po={class:"text-sm font-medium"},Oo={class:"ml-auto text-xs text-muted-foreground"},So={class:"scrollbar-hide min-h-0 flex-1 overflow-y-auto p-1.5"},Co={class:"space-y-1.5"},Vo={key:0,class:"py-8 text-center text-sm text-muted-foreground"},Mo=B({__name:"Column",props:{status:{},tasks:{},blockedByMap:{}},emits:["taskClick"],setup(i,{emit:e}){const t=i,a=e,r=$(()=>{switch(t.status){case"pending":return{label:"Pending",icon:Vr,headerClass:"bg-muted/50",iconClass:"text-muted-foreground"};case"in_progress":return{label:"In Progress",icon:va,headerClass:"bg-blue-500/10",iconClass:"text-blue-500"};case"completed":return{label:"Completed",icon:ta,headerClass:"bg-green-500/10",iconClass:"text-green-500"};default:return{label:t.status,icon:Vr,headerClass:"bg-muted/50",iconClass:"text-muted-foreground"}}});function l(c){return t.blockedByMap?.get(c)??[]}function s(c){a("taskClick",c)}return(c,u)=>{const d=Io;return A(),O("div",Do,[M("div",{class:de(["flex items-center gap-2 rounded-t-lg border-b border-border px-3 py-2",p(r).headerClass])},[(A(),ae(oi(p(r).icon),{class:de(["size-4",p(r).iconClass])},null,8,["class"])),M("h3",Po,re(p(r).label),1),M("span",Oo,re(i.tasks.length),1)],2),M("div",So,[M("div",Co,[(A(!0),O(si,null,li(i.tasks,m=>(A(),ae(d,{key:m.id,task:m,"blocked-by":l(m.id),onClick:s},null,8,["task","blocked-by"]))),128)),i.tasks.length===0?(A(),O("div",Vo," No tasks ")):Ae("",!0)])])])}}}),$o=Object.assign(ka(Mo,[["__scopeId","data-v-a1317eba"]]),{__name:"TasksColumn"}),No={class:"flex h-full gap-3 overflow-x-auto pb-2"},zo=B({__name:"Board",props:{tasks:{}},emits:["taskClick"],setup(i,{emit:e}){const t=i,a=e;function r(_){const k=_.id.match(/(\d+)$/)?.[1];return k?parseInt(k,10):0}const l=$(()=>t.tasks.filter(_=>_.status==="pending").sort((_,E)=>r(_)-r(E))),s=$(()=>t.tasks.filter(_=>_.status==="in_progress").sort((_,E)=>r(_)-r(E))),c=$(()=>t.tasks.filter(_=>_.status==="completed").sort((_,E)=>{const k=_.completedAt?new Date(_.completedAt).getTime():0;return(E.completedAt?new Date(E.completedAt).getTime():0)-k})),u=$(()=>{const _=new Map,E=new Set(c.value.map(k=>k.id));for(const k of t.tasks)if(k.dependencies.length>0){const v=k.dependencies.filter(S=>!E.has(S));v.length>0&&_.set(k.id,v)}return _}),d=[{status:"pending",tasks:l},{status:"in_progress",tasks:s},{status:"completed",tasks:c}];function m(_){a("taskClick",_)}return(_,E)=>{const k=$o;return A(),O("div",No,[(A(),O(si,null,li(d,v=>y(k,{key:v.status,status:v.status,tasks:v.tasks.value,"blocked-by-map":p(u),onTaskClick:m},null,8,["status","tasks","blocked-by-map"])),64))])}}}),Bo=Object.assign(zo,{__name:"TasksBoard"}),Fo=B({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["update:modelValue"],setup(i,{emit:e}){const t=i,a=e,r=Dt(t,"class"),l=Bi(r,a);return(s,c)=>(A(),ae(p(Oa),Pt({"data-slot":"tabs"},p(l),{class:p(_e)("flex flex-col gap-2",t.class)}),{default:D(u=>[X(s.$slots,"default",pa(ca(u)))]),_:3},16,["class"]))}}),Uo=Object.assign(Fo,{__name:"UiTabs"}),Ho=B({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(i){const e=i,t=Dt(e,"class");return(a,r)=>(A(),ae(p(Ca),Pt({"data-slot":"tabs-content",class:p(_e)("flex-1 outline-none",e.class)},p(t)),{default:D(()=>[X(a.$slots,"default")]),_:3},16,["class"]))}}),Yt=Object.assign(Ho,{__name:"UiTabsContent"}),qo=B({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(i){const e=i,t=Dt(e,"class");return(a,r)=>(A(),ae(p(Ma),Pt({"data-slot":"tabs-list"},p(t),{class:p(_e)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e.class)}),{default:D(()=>[X(a.$slots,"default")]),_:3},16,["class"]))}}),Go=Object.assign(qo,{__name:"UiTabsList"}),jo=B({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(i){const e=i,t=Dt(e,"class"),a=Fi(t);return(r,l)=>(A(),ae(p(Na),Pt({"data-slot":"tabs-trigger",class:p(_e)("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e.class)},p(a)),{default:D(()=>[X(r.$slots,"default")]),_:3},16,["class"]))}}),Xt=Object.assign(jo,{__name:"UiTabsTrigger"}),Wo={class:"h-full p-4 md:p-6"},Qo={key:0,class:"flex h-full items-center justify-center"},Yo={class:"flex flex-col items-center gap-4"},Xo={key:1,class:"flex h-full items-center justify-center"},Ko={class:"flex max-w-md flex-col items-center gap-4 text-center"},Zo={class:"text-sm text-muted-foreground"},Jo={class:"flex gap-3"},es={key:2,class:"mx-auto max-w-6xl space-y-6"},ts={class:"space-y-2"},rs={class:"text-2xl font-bold tracking-tight"},is={key:0,class:"text-xs text-muted-foreground"},as={class:"rounded-lg border border-border bg-card p-4 md:p-6"},ns={key:0,class:"h-[calc(100vh-280px)] min-h-[400px]"},os={key:1,class:"py-12 text-center"},ss={class:"h-[calc(100vh-300px)] min-h-[440px] motion-safe:transition-[opacity,transform] motion-safe:duration-200 motion-safe:ease-[var(--ease-out-cubic)] motion-reduce:transition-none"},Kt="prd-viewer-tab",Ge="task",je="taskPrd",hs=B({__name:"[prd]",setup(i){function e(h){return h==="document"||h==="board"||h==="graph"}function t(h){if(typeof h=="string"){const g=h.trim();return g.length>0?g:null}if(Array.isArray(h)&&h.length>0){const g=h[0];if(typeof g=="string"){const R=g.trim();return R.length>0?R:null}}return null}const a=ma(),r=da(),{selectRepo:l}=Gi(),{fetchDocument:s,fetchTasks:c,fetchProgress:u,fetchTaskCommits:d,fetchPrdGraph:m}=ji(),{showError:_}=Wi(),E=$(()=>a.params.repo),k=$(()=>a.params.prd),v=U(null),S=U(null),ue=U(null),C=U(!0),V=U(null),P=U("document"),w=U(null),J=U(!1),K=U(null),fe=U({}),he=U(null),G=U(null),ge=U(!1),F=U([]),Pe=$(()=>t(a.query[Ge])),$e=$(()=>t(a.query[je])),Ne=$(()=>Pe.value?{taskId:Pe.value,prdSlug:$e.value||k.value}:null);function Qe(h,g){fe.value={...fe.value,[h]:g}}async function mt(h){if(h===k.value)return S.value;if(Object.prototype.hasOwnProperty.call(fe.value,h))return fe.value[h]??null;const g=await c(h);return Qe(h,g),g}function Ct(){const h={};for(const[g,R]of Object.entries(a.query))if(!(g===Ge||g===je)){if(typeof R=="string"){h[g]=R;continue}if(Array.isArray(R)){const Q=R.filter(ee=>typeof ee=="string");Q.length>0&&(h[g]=Q)}}return h}async function ze(h,g=null){const R=Ct();h&&(R[Ge]=h,g&&g!==k.value&&(R[je]=g));const Q=typeof R[Ge]=="string"?R[Ge]:null,ee=typeof R[je]=="string"?R[je]:null;Pe.value===Q&&$e.value===ee||await r.replace({query:R})}async function dt(h,g){he.value=h,G.value=g,ge.value=!0,F.value=[],await ze(h.id,g),F.value=await d(g,h.id)}async function Ye(){const h=Ne.value;if(!h){he.value=null,G.value=null,F.value=[],ge.value=!1;return}const R=(await mt(h.prdSlug))?.tasks.find(ee=>ee.id===h.taskId);if(!R){he.value=null,G.value=null,F.value=[],ge.value=!1,_("Task unavailable",`Could not find ${h.taskId} in ${h.prdSlug}.`),await ze(null);return}const Q=he.value?.id===R.id&&G.value===h.prdSlug;he.value=R,G.value=h.prdSlug,ge.value=!0,Q||(F.value=await d(h.prdSlug,R.id))}const H=$(()=>{const h=new Map,g=G.value||k.value,R=g===k.value?S.value:fe.value[g]??null;if(!R?.tasks)return h;for(const Q of R.tasks)h.set(Q.id,Q.title);return h});function Xe(h){h.key===Kt&&h.newValue&&e(h.newValue)&&(P.value=h.newValue)}Rt(()=>{const h=localStorage.getItem(Kt);h&&e(h)&&(P.value=h),window.addEventListener("storage",Xe)}),ni(()=>{window.removeEventListener("storage",Xe)}),Se(P,h=>{localStorage.setItem(Kt,h)});const j=_a("fileChangeEvent",U(null));async function _t(){const h=await s(k.value);h&&(v.value=h)}async function z(){const[h,g]=await Promise.all([c(k.value),u(k.value)]);S.value=h,ue.value=g,Qe(k.value,h)}async function xe(h=!1){J.value=!0;try{if(!h&&w.value?.prdSlug===k.value)return;const g=await m(k.value);if(!g){K.value="Failed to load PRD graph.";return}w.value=g,K.value=null}finally{J.value=!1}}async function Be(h=!1){P.value==="graph"&&await xe(h)}async function Ee(){C.value=!0,V.value=null,K.value=null,w.value=null,fe.value={};try{l(E.value);const[h,g,R]=await Promise.all([s(k.value),c(k.value),u(k.value)]);if(!h){V.value=`PRD "${k.value}" not found in this repository.`;return}v.value=h,S.value=g,ue.value=R,Qe(k.value,g),!g&&P.value==="board"&&(P.value="document"),await Be(),await Ye()}catch(h){const g=h;g.statusCode===404?V.value=`PRD "${k.value}" not found. Check if the file exists in docs/prd/.`:g.statusCode===500?(V.value="Server error while loading the PRD. Check the file format.",_("Server error",g.data?.message||"Failed to read PRD file")):(V.value="Failed to load PRD document. Please try again.",_("Load failed","Could not fetch the PRD document"))}finally{C.value=!1}}Se(P,async h=>{h==="graph"&&await Be()}),Se(()=>[a.query[Ge],a.query[je],k.value],async()=>{C.value||await Ye()}),Se(ge,async h=>{!h&&Ne.value&&await ze(null)}),Se(()=>j.value,async h=>{if(!h)return;if(h.category==="prd"){await _t(),P.value==="graph"&&await xe(!0);return}if(h.category!=="tasks"&&h.category!=="progress")return;const g=h.path?.includes(`/${k.value}/`)??!1;g&&(await z(),w.value=null),P.value==="graph"&&g&&await xe(!0)}),Rt(Ee),Se([E,k],Ee);async function ft(h){await dt(h,k.value)}async function Ke(h){const R=(await mt(h.prdSlug))?.tasks.find(Q=>Q.id===h.taskId);if(!R){_("Task unavailable",`Could not find ${h.taskId} in ${h.prdSlug}.`);return}await dt(R,h.prdSlug)}return(h,g)=>{const R=Ni,Q=Ga,ee=_o,Ze=Bo,Je=ia,we=ra;return A(),O("div",Wo,[p(C)?(A(),O("div",Qo,[M("div",Yo,[y(p(Ui),{class:"size-8 animate-spin text-primary"}),g[2]||(g[2]=M("p",{class:"text-sm text-muted-foreground"},"Loading PRD...",-1))])])):p(V)?(A(),O("div",Xo,[M("div",Ko,[y(p(ii),{class:"size-12 text-destructive"}),g[5]||(g[5]=M("h2",{class:"text-lg font-semibold"},"Error Loading PRD",-1)),M("p",Zo,re(p(V)),1),M("div",Jo,[y(p(Or),{variant:"outline",size:"sm",onClick:Ee},{default:D(()=>[y(p(Hi),{class:"mr-2 size-4"}),g[3]||(g[3]=De(" Retry ",-1))]),_:1}),y(R,{to:"/"},{default:D(()=>[y(p(Or),{variant:"ghost",size:"sm"},{default:D(()=>[...g[4]||(g[4]=[De(" Go back home ",-1)])]),_:1})]),_:1})])])])):p(v)?(A(),O("div",es,[M("div",ts,[M("h1",rs,re(p(v).name),1),y(Q,{metadata:p(v).metadata},null,8,["metadata"])]),y(p(Uo),{modelValue:p(P),"onUpdate:modelValue":g[0]||(g[0]=Ie=>Mr(P)?P.value=Ie:null),class:"w-full"},{default:D(()=>[y(p(Go),null,{default:D(()=>[y(p(Xt),{value:"document",class:"gap-2"},{default:D(()=>[y(p(Qi),{class:"size-4"}),g[6]||(g[6]=De(" Document ",-1))]),_:1}),y(p(Xt),{value:"board",class:"gap-2",disabled:!p(S)},{default:D(()=>[y(p(Nr),{class:"size-4"}),g[7]||(g[7]=De(" Task Board ",-1)),p(S)?(A(),O("span",is," ("+re(p(S).tasks.length)+") ",1)):Ae("",!0)]),_:1},8,["disabled"]),y(p(Xt),{value:"graph",class:"gap-2"},{default:D(()=>[y(p(qi),{class:"size-4"}),g[8]||(g[8]=De(" Graph ",-1))]),_:1})]),_:1}),y(p(Yt),{value:"document",class:"mt-4"},{default:D(()=>[M("div",as,[y(ee,{content:p(v).content},null,8,["content"])])]),_:1}),y(p(Yt),{value:"board",class:"mt-4"},{default:D(()=>[p(S)?(A(),O("div",ns,[y(Ze,{tasks:p(S).tasks,onTaskClick:ft},null,8,["tasks"])])):(A(),O("div",os,[y(p(Nr),{class:"mx-auto size-12 text-muted-foreground/50"}),g[9]||(g[9]=M("p",{class:"mt-4 text-muted-foreground"}," No tasks found for this PRD ",-1)),g[10]||(g[10]=M("p",{class:"mt-1 text-sm text-muted-foreground/70"}," Task state has not been generated for this PRD yet. ",-1))]))]),_:1}),y(p(Yt),{value:"graph",class:"mt-4"},{default:D(()=>[M("div",ss,[y(Je,{payload:p(w),scope:"prd",loading:p(J),error:p(K),onTaskClick:Ke},null,8,["payload","loading","error"])])]),_:1})]),_:1},8,["modelValue"])])):Ae("",!0),y(we,{open:p(ge),"onUpdate:open":g[1]||(g[1]=Ie=>Mr(ge)?ge.value=Ie:null),task:p(he),"task-titles":p(H),commits:p(F),"repo-id":p(E),"task-prd-slug":p(G),"current-prd-slug":p(k)},null,8,["open","task","task-titles","commits","repo-id","task-prd-slug","current-prd-slug"])])}}});export{hs as default};
|