1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9317],{89993:function(e,t,n){n.d(t,{h:function(){return o}});var r=n(14225),i=n(16554),s=n(67294),a=n(85893),o=(0,i.G)((e,t)=>{let{icon:n,children:i,isRound:o,"aria-label":c,...u}=e,p=n||i,g=(0,s.isValidElement)(p)?(0,s.cloneElement)(p,{"aria-hidden":!0,focusable:!1}):null;return(0,a.jsx)(r.z,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":c,...u,children:g})});o.displayName="IconButton"},60820:function(e,t,n){n.d(t,{Y:function(){return useFormControl},K:function(){return useFormControlProps}});var r=n(55227),i=n(81103),s=n(16554),a=n(77030),o=n(33179),c=n(16914),u=n(25432),p=n(67294),g=n(85893),[f,k]=(0,r.k)({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[x,m]=(0,r.k)({strict:!1,name:"FormControlContext"});function useFormControl(e){let{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:i,...s}=useFormControlProps(e);return{...s,disabled:t,readOnly:r,required:i,"aria-invalid":(0,u.Qm)(n),"aria-required":(0,u.Qm)(i),"aria-readonly":(0,u.Qm)(r)}}function useFormControlProps(e){var t,n,r;let i=m(),{id:s,disabled:a,readOnly:o,required:c,isRequired:p,isInvalid:g,isReadOnly:f,isDisabled:k,onFocus:x,onBlur:b,...y}=e,v=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==i?void 0:i.hasFeedbackText)&&(null==i?void 0:i.isInvalid)&&v.push(i.feedbackId),(null==i?void 0:i.hasHelpText)&&v.push(i.helpTextId),{...y,"aria-describedby":v.join(" ")||void 0,id:null!=s?s:null==i?void 0:i.id,isDisabled:null!=(t=null!=a?a:k)?t:null==i?void 0:i.isDisabled,isReadOnly:null!=(n=null!=o?o:f)?n:null==i?void 0:i.isReadOnly,isRequired:null!=(r=null!=c?c:p)?r:null==i?void 0:i.isRequired,isInvalid:null!=g?g:null==i?void 0:i.isInvalid,onFocus:(0,u.v0)(null==i?void 0:i.onFocus,x),onBlur:(0,u.v0)(null==i?void 0:i.onBlur,b)}}(0,s.G)(function(e,t){let n=(0,a.jC)("Form",e),r=(0,o.Lr)(e),{getRootProps:s,htmlProps:k,...m}=function(e){let{id:t,isRequired:n,isInvalid:r,isDisabled:s,isReadOnly:a,...o}=e,c=(0,p.useId)(),g=t||`field-${c}`,f=`${g}-label`,k=`${g}-feedback`,x=`${g}-helptext`,[m,b]=(0,p.useState)(!1),[y,v]=(0,p.useState)(!1),[S,$]=(0,p.useState)(!1),R=(0,p.useCallback)((e={},t=null)=>({id:x,...e,ref:(0,i.lq)(t,e=>{e&&v(!0)})}),[x]),_=(0,p.useCallback)((e={},t=null)=>({...e,ref:t,"data-focus":(0,u.PB)(S),"data-disabled":(0,u.PB)(s),"data-invalid":(0,u.PB)(r),"data-readonly":(0,u.PB)(a),id:void 0!==e.id?e.id:f,htmlFor:void 0!==e.htmlFor?e.htmlFor:g}),[g,s,S,r,a,f]),T=(0,p.useCallback)((e={},t=null)=>({id:k,...e,ref:(0,i.lq)(t,e=>{e&&b(!0)}),"aria-live":"polite"}),[k]),I=(0,p.useCallback)((e={},t=null)=>({...e,...o,ref:t,role:"group","data-focus":(0,u.PB)(S),"data-disabled":(0,u.PB)(s),"data-invalid":(0,u.PB)(r),"data-readonly":(0,u.PB)(a)}),[o,s,S,r,a]),E=(0,p.useCallback)((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!s,isFocused:!!S,onFocus:()=>$(!0),onBlur:()=>$(!1),hasFeedbackText:m,setHasFeedbackText:b,hasHelpText:y,setHasHelpText:v,id:g,labelId:f,feedbackId:k,helpTextId:x,htmlProps:o,getHelpTextProps:R,getErrorMessageProps:T,getRootProps:I,getLabelProps:_,getRequiredIndicatorProps:E}}(r),b=(0,u.cx)("chakra-form-control",e.className);return(0,g.jsx)(x,{value:m,children:(0,g.jsx)(f,{value:n,children:(0,g.jsx)(c.m.div,{...s({},t),className:b,__css:n.container})})})}).displayName="FormControl",(0,s.G)(function(e,t){let n=m(),r=k(),i=(0,u.cx)("chakra-form__helper-text",e.className);return(0,g.jsx)(c.m.div,{...null==n?void 0:n.getHelpTextProps(e,t),__css:r.helperText,className:i})}).displayName="FormHelperText"},6089:function(e,t,n){n.d(t,{E:function(){return u}});var r=n(16554),i=n(85893),s=(0,r.G)(function(e,t){let{htmlWidth:n,htmlHeight:r,alt:s,...a}=e;return(0,i.jsx)("img",{width:n,height:r,ref:t,alt:s,...a})});s.displayName="NativeImage";var a=n(26245),o=n(67294),shouldShowFallbackImage=(e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t,c=n(16914),u=(0,r.G)(function(e,t){let{fallbackSrc:n,fallback:r,src:u,srcSet:p,align:g,fit:f,loading:k,ignoreFallback:x,crossOrigin:m,fallbackStrategy:b="beforeLoadOrError",referrerPolicy:y,...v}=e,S=null!=k||x||!(void 0!==n||void 0!==r),$=function(e){let{loading:t,src:n,srcSet:r,onLoad:i,onError:s,crossOrigin:c,sizes:u,ignoreFallback:p}=e,[g,f]=(0,o.useState)("pending");(0,o.useEffect)(()=>{f(n?"loading":"pending")},[n]);let k=(0,o.useRef)(),x=(0,o.useCallback)(()=>
1{if(!n)return;flush();let e=new Image;e.src=n,c&&(e.crossOrigin=c),r&&(e.srcset=r),u&&(e.sizes=u),t&&(e.loading=t),e.onload=e=>{flush(),f("loaded"),null==i||i(e)},e.onerror=e=>{flush(),f("failed"),null==s||s(e)},k.current=e},[n,c,r,u,i,s,t]),flush=()=>{k.current&&(k.current.onload=null,k.current.onerror=null,k.current=null)};return(0,a.G)(()=>{if(!p)return"loading"===g&&x(),()=>{flush()}},[g,x,p]),p?"loaded":g}({...e,crossOrigin:m,ignoreFallback:S}),R=shouldShowFallbackImage($,b),_={ref:t,objectFit:f,objectPosition:g,...S?v:function(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}(v,["onError","onLoad"])};return R?r||(0,i.jsx)(c.m.img,{as:s,className:"chakra-image__placeholder",src:n,..._}):(0,i.jsx)(c.m.img,{as:s,src:u,srcSet:p,crossOrigin:m,loading:k,referrerPolicy:y,className:"chakra-image",..._})});u.displayName="Image"},32735:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(82140),i=n(16914),s=n(16554),a=n(25432),o=n(85893),c=(0,i.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),u=(0,s.G)(function(e,t){var n,i;let{placement:s="left",...a}=e,u=(0,r.m)(),p=u.field,g={["left"===s?"insetStart":"insetEnd"]:"0",width:null!=(n=null==p?void 0:p.height)?n:null==p?void 0:p.h,height:null!=(i=null==p?void 0:p.height)?i:null==p?void 0:p.h,fontSize:null==p?void 0:p.fontSize,...u.element};return(0,o.jsx)(c,{ref:t,__css:g,...a})});u.id="InputElement",u.displayName="InputElement";var p=(0,s.G)(function(e,t){let{className:n,...r}=e,i=(0,a.cx)("chakra-input__left-element",n);return(0,o.jsx)(u,{ref:t,placement:"left",className:i,...r})});p.id="InputLeftElement",p.displayName="InputLeftElement";var g=(0,s.G)(function(e,t){let{className:n,...r}=e,i=(0,a.cx)("chakra-input__right-element",n);return(0,o.jsx)(u,{ref:t,placement:"right",className:i,...r})});g.id="InputRightElement",g.displayName="InputRightElement"},33090:function(e,t,n){n.d(t,{I:function(){return p}});var r=n(60820),i=n(16554),s=n(77030),a=n(33179),o=n(16914),c=n(25432),u=n(85893),p=(0,i.G)(function(e,t){let{htmlSize:n,...i}=e,p=(0,s.jC)("Input",i),g=(0,a.Lr)(i),f=(0,r.Y)(g),k=(0,c.cx)("chakra-input",e.className);return(0,u.jsx)(o.m.input,{size:n,...f,__css:p.field,ref:t,className:k})});p.displayName="Input",p.id="Input"},73804:function(e,t,n){n.d(t,{HC:function(){return x},aV:function(){return k}});var r=n(36948),i=n(55227),s=n(92495),a=n(16554),o=n(77030),c=n(33179),u=n(16914),p=n(85893),[g,f]=(0,i.k)({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<List />\" "}),k=(0,a.G)(function(e,t){let n=(0,o.jC)("List",e),{children:r,styleType:i="none",stylePosition:a,spacing:f,...k}=(0,c.Lr)(e),x=(0,s.W)(r);return(0,p.jsx)(g,{value:n,children:(0,p.jsx)(u.m.ul,{ref:t,listStyleType:i,listStylePosition:a,role:"list",__css:{...n.container,...f?{"& > *:not(style) ~ *:not(style)":{mt:f}}:{}},...k,children:x})})});k.displayName="List",(0,a.G)((e,t)=>{let{as:n,...r}=e;return(0,p.jsx)(k,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})}).displayName="OrderedList",(0,a.G)(function(e,t){let{as:n,...r}=e;return(0,p.jsx)(k,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...r})}).displayName="UnorderedList";var x=(0,a.G)(function(e,t){let n=f();return(0,p.jsx)(u.m.li,{ref:t,...e,__css:n.item})});x.displayName="ListItem",(0,a.G)(function(e,t){let n=f();return(0,p.jsx)(r.J,{ref:t,role:"presentation",...e,__css:n.icon})}).displayName="ListIcon"},93717:function(e,t,n){n.d(t,{k:function(){return a}});var r=n(16554),i=n(16914),s=n(85893),a=(0,r.G)(function(e,t){let{direction:n,align:r,justify:a,wrap:o,basis:c,grow:u,shrink:p,...g}=e;return(0,s.jsx)(i.m.div,{ref:t,__css:{display:"flex",flexDirection:n,alignItems:r,justifyContent:a,flexWrap:o,flexBasis:c,flexGrow:u,flexShrink:p},...g})});a.displayName="Flex"},64859:function(e,t,n){n.d(t,{x:function(){return u}});var r=n(67990),i=n(25432),s=n(16554),a=n(16914),o=n(67294),c=n(85893),u=(0,s.G)((e,t)=>{let{className:n,...s}=e,{headerId:u,setHeaderMounted:p}=(0,r.vR)();(0,o.useEffect)(()=>(p(!0),()=>p(!1)),[p]);let g=(0,i.cx)("chakra-modal__header",n),f=(0,r.I_)(),k={flex:0,...f.header};return(0,c.jsx)(a.m.header,{ref:t,className:g,id:u,...s,__css:k})});u.displayName="ModalHeader"},85335:function(e,t,n){n.d(t,{s:function(){return v}});
1var r=n(55083),i=n(76200),s=n(67990),a=n(25432),o=n(16914),c=n(16554),u=n(52094),p=n(51526),g=n(96849),f=n(67294),k=n(85893),x={exit:{duration:.15,ease:u.Lj.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},m={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{var i;let{exit:s}=(0,u.js)({direction:e});return{...s,transition:null!=(i=null==t?void 0:t.exit)?i:u.p$.exit(x.exit,r),transitionEnd:null==n?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{var i;let{enter:s}=(0,u.js)({direction:e});return{...s,transition:null!=(i=null==n?void 0:n.enter)?i:u.p$.enter(x.enter,r),transitionEnd:null==t?void 0:t.enter}}},b=(0,f.forwardRef)(function(e,t){let{direction:n="right",style:r,unmountOnExit:i,in:s,className:o,transition:c,transitionEnd:f,delay:x,motionProps:b,...y}=e,v=(0,u.js)({direction:n}),S=Object.assign({position:"fixed"},v.position,r),$=!i||s&&i,R=s||i?"enter":"exit",_={transitionEnd:f,transition:c,direction:n,delay:x};return(0,k.jsx)(p.M,{custom:_,children:$&&(0,k.jsx)(g.E.div,{...y,ref:t,initial:"exit",className:(0,a.cx)("chakra-slide",o),animate:R,exit:"exit",custom:_,variants:m,style:S,...b})})});b.displayName="Slide";var y=(0,o.m)(b),v=(0,c.G)((e,t)=>{let{className:n,children:c,motionProps:u,containerProps:p,...g}=e,{getDialogProps:f,getDialogContainerProps:x,isOpen:m}=(0,s.vR)(),b=f(g,t),v=x(p),S=(0,a.cx)("chakra-modal__content",n),$=(0,s.I_)(),R={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...$.dialog},_={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...$.dialogContainer},{placement:T}=(0,r.M)();return(0,k.jsx)(i.M,{children:(0,k.jsx)(o.m.div,{...v,className:"chakra-modal__content-container",__css:_,children:(0,k.jsx)(y,{motionProps:u,direction:T,in:m,className:S,...b,__css:R,children:c})})})});v.displayName="DrawerContent"},14581:function(e,t,n){n.d(t,{h:function(){return y}});var r=n(16914),i=n(52094),s=n(25432),a=n(51526),o=n(96849),c=n(67294),u=n(85893),p={initial:"initial",animate:"enter",exit:"exit",variants:{initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:s})=>{var a;return{opacity:0,x:e,y:t,transition:null!=(a=null==n?void 0:n.exit)?a:i.p$.exit(i.Sh.exit,s),transitionEnd:null==r?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:null!=(r=null==e?void 0:e.enter)?r:i.p$.enter(i.Sh.enter,n),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:s,delay:a})=>{var o;let c={x:t,y:e};return{opacity:0,transition:null!=(o=null==n?void 0:n.exit)?o:i.p$.exit(i.Sh.exit,a),...s?{...c,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{...c,...null==r?void 0:r.exit}}}}}};(0,c.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,reverse:i=!0,className:c,offsetX:g=0,offsetY:f=8,transition:k,transitionEnd:x,delay:m,...b}=e,y=!n||r&&n,v=r||n?"enter":"exit",S={offsetX:g,offsetY:f,reverse:i,transition:k,transitionEnd:x,delay:m};return(0,u.jsx)(a.M,{custom:S,children:y&&(0,u.jsx)(o.E.div,{ref:t,className:(0,s.cx)("chakra-offset-slide",c),custom:S,...p,animate:v,...b})})}).displayName="SlideFade";var g={initial:"exit",animate:"enter",exit:"exit",variants:{exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:s})=>{var a;return{opacity:0,...e?{scale:t,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{scale:t,...null==r?void 0:r.exit}},transition:null!=(a=null==n?void 0:n.exit)?a:i.p$.exit(i.Sh.exit,s)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:null!=(r=null==t?void 0:t.enter)?r:i.p$.enter(i.Sh.enter,n),transitionEnd:null==e?void 0:e.enter}}}};(0,c.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,reverse:i=!0,initialScale:c=.95,className:p,transition:f,transitionEnd:k,delay:x,...m}=e,b=!n||r&&n,y=r||n?"enter":"exit",v={initialScale:c,reverse:i,transition:f,transitionEnd:k,delay:x};return(0,u.jsx)(a.M,{custom:v,children:b&&(0,u.jsx)(o.E.div,{ref:t,className:(0,s.cx)("chakra-offset-slide",p),...g,animate:y,custom:v,...m})})}).displayName="ScaleFade";var f={slideInBottom:{...p,custom:{offsetY:16,reverse:!0}},slideInRight:{...p,custom:{offsetX:16,reverse:!0}},slideInTop:{...p,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...p,custom:{offsetX:-16,reverse:!0}},scale:{...g,custom:{initialScale:.95,reverse:!0}},none:{}},k=(0,r.m)(o.E.section),getMotionProps=e=>f[e||"none"],x=(0,c.forwardRef)((e,t)=>{let{preset:n,motionProps:r=getMotionProps(n),...i}=e;return(0,u.jsx)(k,{ref:t,...r,...i})});x.displayName="ModalTransition";var m=n(76200),b=n(67990),y=(0,n(16554).G)((e,t)=>{let{className:n,children:i,containerProps:a,motionProps:o,...c}=e,{getDialogProps:p,getDialogContainerProps:g}=(0,b.vR)(),f=p(c,t),k=g(a),y=(0,s.cx)("chakra-modal__content",n),v=(0,b.I_)(),S={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...v.dialog},$={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...v.dialogContainer},{motionPreset:R}=(0,b.vR)();return(0,u.jsx)(m.M,{children:(0,u.jsx)(r.m.div,{...k,className:"chakra-modal__content-container",tabIndex:-1,__css:$,children:(0,u.jsx)(x,{preset
1:R,motionProps:o,className:y,...f,__css:S,children:i})})})});y.displayName="ModalContent"},55083:function(e,t,n){n.d(t,{M:function(){return c},d:function(){return Drawer}});var r=n(67990),i=n(55227),s=n(48940),a=n(85893),[o,c]=(0,i.k)(),u={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function Drawer(e){var t;let{isOpen:n,onClose:i,placement:c="right",children:p,...g}=e,f=(0,s.F)(),k=null==(t=f.components)?void 0:t.Drawer,x=function(e,t){var n,r;if(e)return null!=(r=null==(n=u[e])?void 0:n[t])?r:e}(c,f.direction);return(0,a.jsx)(o,{value:{placement:x},children:(0,a.jsx)(r.u_,{isOpen:n,onClose:i,styleConfig:k,...g,children:p})})}},54346:function(e,t,n){n.d(t,{f:function(){return u}});var r=n(67990),i=n(25432),s=n(16554),a=n(16914),o=n(67294),c=n(85893),u=(0,s.G)((e,t)=>{let{className:n,...s}=e,{bodyId:u,setBodyMounted:p}=(0,r.vR)();(0,o.useEffect)(()=>(p(!0),()=>p(!1)),[p]);let g=(0,i.cx)("chakra-modal__body",n),f=(0,r.I_)();return(0,c.jsx)(a.m.div,{ref:t,className:g,id:u,...s,__css:f.body})});u.displayName="ModalBody"},14253:function(e,t,n){n.d(t,{m:function(){return c}});var r=n(67990),i=n(25432),s=n(16554),a=n(16914),o=n(85893),c=(0,s.G)((e,t)=>{let{className:n,...s}=e,c=(0,i.cx)("chakra-modal__footer",n),u=(0,r.I_)(),p={display:"flex",alignItems:"center",justifyContent:"flex-end",...u.footer};return(0,o.jsx)(a.m.footer,{ref:t,...s,__css:p,className:c})});c.displayName="ModalFooter"},92495:function(e,t,n){n.d(t,{W:function(){return getValidChildren}});var r=n(67294);function getValidChildren(e){return r.Children.toArray(e).filter(e=>(0,r.isValidElement)(e))}},10429:function(e,t,n){n.d(t,{U:function(){return g}});var r=n(52094),i=n(25432),s=n(51526),a=n(96849),o=n(67294),c=n(85893),isNumeric=e=>null!=e&&parseInt(e.toString(),10)>0,u={exit:{height:{duration:.2,ease:r.Lj.ease},opacity:{duration:.3,ease:r.Lj.ease}},enter:{height:{duration:.3,ease:r.Lj.ease},opacity:{duration:.4,ease:r.Lj.ease}}},p={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:i,delay:s})=>{var a;return{...e&&{opacity:isNumeric(t)?1:0},height:t,transitionEnd:null==i?void 0:i.exit,transition:null!=(a=null==n?void 0:n.exit)?a:r.p$.exit(u.exit,s)}},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:i,delay:s})=>{var a;return{...e&&{opacity:1},height:t,transitionEnd:null==i?void 0:i.enter,transition:null!=(a=null==n?void 0:n.enter)?a:r.p$.enter(u.enter,s)}}},g=(0,o.forwardRef)((e,t)=>{let{in:n,unmountOnExit:r,animateOpacity:u=!0,startingHeight:g=0,endingHeight:f="auto",style:k,className:x,transition:m,transitionEnd:b,...y}=e,[v,S]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=setTimeout(()=>{S(!0)});return()=>clearTimeout(e)},[]),(0,i.ZK)({condition:Number(g)>0&&!!r,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});let $=parseFloat(g.toString())>0,R={startingHeight:g,endingHeight:f,animateOpacity:u,transition:v?m:{enter:{duration:0}},transitionEnd:{enter:null==b?void 0:b.enter,exit:r?null==b?void 0:b.exit:{...null==b?void 0:b.exit,display:$?"block":"none"}}},_=!r||n,T=n||r?"enter":"exit";return(0,c.jsx)(s.M,{initial:!1,custom:R,children:_&&(0,c.jsx)(a.E.div,{ref:t,...y,className:(0,i.cx)("chakra-collapse",x),style:{overflow:"hidden",display:"block",...k},custom:R,variants:p,initial:!!r&&"exit",animate:T,exit:"exit"})})});g.displayName="Collapse"},87441:function(e,t,n){function L(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.d(t,{TU:function(){return d}});var r=L(),i={exec:()=>null};function h(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(s.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var s={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,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine
vendor: 4,134 bytes, line 1
1:/\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:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},a=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,o=/(?:[*+-]|\d{1,9}[.)])/,c=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,u=h(c).replace(/bull/g,o).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(),p=h(c).replace(/bull/g,o).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(),g=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,f=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,k=h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",f).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),x=h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,o).getRegex(),m="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",b=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,y=h("^ {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",b).replace("tag",m).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),v=h(g).replace("hr",a).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[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",m).getRegex(),S={blockquote:h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",v).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:k,fences:/^ {0,3}(`{3,}
1(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:a,html:y,lheading:u,list:x,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:v,table:i,text:/^[^\n]+/},$=h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",a).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[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",m).getRegex(),R={...S,lheading:p,table:$,paragraph:h(g).replace("hr",a).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[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",m).getRegex()},_={...S,html:h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",b).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:i,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:h(g).replace("hr",a).replace("heading",` *#{1,6} *[^ 2]`).replace("lheading",u).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},T=/^( {2,}|\\)\n(?!\s*$)/,I=/[\p{P}\p{S}]/u,E=/[\s\p{P}\p{S}]/u,C=/[^\s\p{P}\p{S}]/u,A=h(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,E).getRegex(),j=/(?!~)[\p{P}\p{S}]/u,P=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,N=h(P,"u").replace(/punct/g,I).getRegex(),B=h(P,"u").replace(/punct/g,j).getRegex(),q="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",F=h(q,"gu").replace(/notPunctSpace/g,C).replace(/punctSpace/g,E).replace(/punct/g,I).getRegex(),M=h(q,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,j).getRegex(),G=h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,C).replace(/punctSpace/g,E).replace(/punct/g,I).getRegex(),Z=h(/\\(punct)/,"gu").replace(/punct/g,I).getRegex(),D=h(/^<(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(),O=h(b).replace("(?:-->|$)","-->").getRegex(),H=h("^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",O).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Q=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,W=h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Q).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),U=h(/^!?\[(label)\]\[(ref)\]/).replace("label",Q).replace("ref",f).getRegex(),X=h(/^!?\[(ref)\](?:\[\])?/).replace("ref",f).getRegex(),Y=h("reflink|nolink(?!\\()","g").replace("reflink",U).replace("nolink",X).getRegex(),K={_backpedal:i,anyPunctuation:Z,autolink:D,blockSkip:/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,br:T,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:i,emStrongLDelim:N,emStrongRDelimAst:F,emStrongRDelimUnd:G,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:W,nolink:X,punctuation:A,reflink:U,reflinkSearch:Y,tag:H,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:i},ee={...K,link:h(/^!?\[(label)\]\((.*?)\)/).replace("label",Q).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Q).getRegex()},et={...K,emStrongRDelimAst:M,emStrongLDelim:B,url:h(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").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:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},en={...et,br:h(T).replace("{2,}","*").getRegex(),text:h(et.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},er={normal:S,gfm:R,pedantic:_},ei={normal:K,gfm:et,breaks:en,pedantic:ee},el={"&":"&","<":"<",">":">",'"':""","'":"'"},ke=e=>el[e];function w(e,t){if(t){if(s.escapeTest.test(e))return e.replace(s.escapeReplace,ke)}else if(s.escapeTestNoEncode.test(e))return e.replace(s.escapeReplaceNoEncode,ke);return e}function J(e){try{e=encodeURI(e).replace(s.percentDecode,"%")}catch{return null}return e}function V(e,t){let n=e.replace(s.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(s.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("")}for(;r<n.length;r++)n[r]=n[r].trim().replace(s.slashPipe,"|");return n}function z(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let s=e.charAt(r-i-1);if(s!==t||n){if(s!==t&&n)i++;else break}else i++}return e.slice(0,r-i)}function fe(e,t,n,r,i){let s=t.href,a=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let c={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:s,title:a,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,c}var es=class{options;rules;lexer;constructor(e){this.options=e||r}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:z(e,` 3`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split(` 4`).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(` 5`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=z(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:z(t[0],` 6`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=z(t[0],` 7`).split(` 8`),n="",r="",i=[];for(;e.length>0;){let t=!1,s=[],a;for(a=0;a<e.length;a++)if(this.rules.other.blockquoteStart.test(e[a]))s.push(e[a]),t=!0;else if(t)break;else s.push(e[a]);e=e.slice(a);let o=s.join(` 9`),c=o.replace(this.rules.other.blockquoteSetextReplace,` 10 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n} 11${o}`:o,r=r?`${r} 12${c}`:c;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=u,0===e.length)break;let p=i.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let t=p.raw+` 13`+e.join(` 14`),s=this.blockquote(t);i[i.length-1]=s,n=n.substring(0,n.length-p.raw.length)+s.raw,r=r.substring(0,r.length-p.text.length)+s.text;break}if(p?.type==="list"){let t=p.raw+` 15`+e.join(` 16`),s=this.list(t);i[i.length-1]=s,n=n.substring(0,n.length-p.raw.length)+s.raw,r=r.substring(0,r.length-p.raw.length)+s.raw,e=t.substring(i.at(-1).raw.length).split(` 17`);continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);
17if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let s=this.rules.other.listItemRegex(n),a=!1;for(;e;){let n=!1,r="",o="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=t[2].split(` 18`,1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),u=e.split(` 19`,1)[0],p=!c.trim(),g=0;if(this.options.pedantic?(g=2,o=c.trimStart()):p?g=t[1].length+1:(g=(g=t[2].search(this.rules.other.nonSpaceChar))>4?1:g,o=c.slice(g),g+=t[1].length),p&&this.rules.other.blankLine.test(u)&&(r+=u+` 20`,e=e.substring(u.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(g),n=this.rules.other.hrRegex(g),i=this.rules.other.fencesBeginRegex(g),s=this.rules.other.headingBeginRegex(g),a=this.rules.other.htmlBeginRegex(g);for(;e;){let f=e.split(` 21`,1)[0],k;if(u=f,k=this.options.pedantic?u=u.replace(this.rules.other.listReplaceNesting," "):u.replace(this.rules.other.tabCharGlobal," "),i.test(u)||s.test(u)||a.test(u)||t.test(u)||n.test(u))break;if(k.search(this.rules.other.nonSpaceChar)>=g||!u.trim())o+=` 22`+k.slice(g);else{if(p||c.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(c)||s.test(c)||n.test(c))break;o+=` 23`+u}p||u.trim()||(p=!0),r+=f+` 24`,e=e.substring(f.length+1),c=k.slice(g)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(a=!0));let f=null,k;this.options.gfm&&(f=this.rules.other.listIsTask.exec(o))&&(k="[ ] "!==f[0],o=o.replace(this.rules.other.listReplaceTask,"")),i.items.push({type:"list_item",raw:r,task:!!f,checked:k,loose:!1,text:o,tokens:[]}),i.raw+=r}let o=i.items.at(-1);if(!o)return;o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=n}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=V(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(` 25`):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?s.align.push("right"):this.rules.other.tableAlignCenter.test(e)?s.align.push("center"):this.rules.other.tableAlignLeft.test(e)?s.align.push("left"):s.align.push(null);for(let e=0;e<n.length;e++)s.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:s.align[e]});for(let e of i)s.rows.push(V(e,s.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:s.align[t]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===` 26`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=z(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}
26else{let e=function(e,t){if(-1===e.indexOf(t[1]))return -1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&--n<0)return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),fe(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return fe(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,s,a=n,o=0,c="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=c.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(s=[...i].length,r[3]||r[4]){a+=s;continue}if((r[5]||r[6])&&n%3&&!((n+s)%3)){o+=s;continue}if((a-=s)>0)continue;s=Math.min(s,s+a+o);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+s);if(Math.min(n,s)%2){let e=c.slice(1,-1);return{type:"em",raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let u=c.slice(2,-2);return{type:"strong",raw:c,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},ea=class l{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||r,this.options.tokenizer=this.options.tokenizer||new es,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:s,block:er.normal,inline:ei.normal};this.options.pedantic?(t.block=er.pedantic,t.inline=ei.pedantic):this.options.gfm&&(t.block=er.gfm,this.options.breaks?t.inline=ei.breaks:t.inline=ei.gfm),this.tokenizer.rules=t}static get rules(){return{block:er,inline:ei}}static lex(e,t){return new l(t).lex(e)}static lexInline(e,t){return new l(t).inlineTokens(e)}lex(e){e=e.replace(s.carriageReturn,` 27`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(s.tabCharGlobal," ").replace(s.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+=` 28`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(` 29`)?"":` 30`)+r.raw,n.text+=` 31`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(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 n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(` 32`)?"":` 33`)+r.raw,n.text+=` 34`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}
34,t.push(r));continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let s=t.at(-1);n&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(` 35`)?"":` 36`)+r.raw,s.text+=` 37`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(` 38`)?"":` 39`)+r.raw,n.text+=` 40`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let i=!1,s="";for(;e;){let r;if(i||(s=""),i=!1,this.options.extensions?.inline?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if((r=this.tokenizer.escape(e))||(r=this.tokenizer.tag(e))||(r=this.tokenizer.link(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===r.type&&n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if((r=this.tokenizer.emStrong(e,n,s))||(r=this.tokenizer.codespan(e))||(r=this.tokenizer.br(e))||(r=this.tokenizer.del(e))||(r=this.tokenizer.autolink(e))||!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let a=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(a)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),i=!0;let n=t.at(-1);n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},eo=class{options;parser;constructor(e){this.options=e||r}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(s.notSpaceStart)?.[0],i=e.replace(s.endingNewline,"")+` 41`;return r?'<pre><code class="language-'+w(r)+'">'+(n?i:w(i,!0))+`</code></pre> 42`:"<pre><code>"+(n?i:w(i,!0))+`</code></pre> 43`}blockquote({tokens:e}){return`<blockquote> 44${this.parser.parse(e)}</blockquote> 45`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}> 46`}hr(e){return`<hr> 47`}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+`> 48`+r+"</"+i+`> 49`}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+w(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li> 50`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p> 51`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table> 52<thead> 53`+t+`</thead> 54`+r+`</table> 55`}tablerow({text:e}){return`<tr> 56${e}</tr> 57`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}> 58`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${w(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=J(e);if(null===i)return r;let s='<a href="'+(e=i)+'"';return t&&(s+=' title="'+w(t)+'"'),s+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=J(e);if(null===i)return w(n);e=i;let s=`<img src="${e}" alt="${n}"`;return t&&(s+=` title="${w(t)}"`),s+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:w(e.text)}},ec=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},eu=class l{options;renderer;textRenderer;constructor(e){this.options=e||r,this.options.renderer=this.options.renderer||new eo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ec}static parse(e,t){return new l(t).parse(e)}static parseInline(e,t){return new l(t).parseInline(e)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"def":n+=this.renderer.def(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let s=i,a=this.renderer.text(s);for(;r+1<e.length&&"text"===e[r+1].type;)s=e[++r],a+=` 59`+this.renderer.text(s);t?n+=this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a,escaped:!0}]}):n+=a;continue}default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},eh=class{options;block;constructor(e){this.options=e||r}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?ea.lex:ea.lexInline}provideParser(){return this.block?eu.parse:eu.parseInline}},ep=new class{defaults=L();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=eu;Renderer=eo;TextRenderer=ec;Lexer=ea;Tokenizer=es;Hooks=eh;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};
59return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new eo(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new es(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new eh;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],i=t[n];eh.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&eh.passThroughHooksRespectAsync.has(n))return Promise.resolve(r.call(t,e)).then(e=>i.call(t,e));let s=r.call(t,e);return i.call(t,s)}:t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ea.lex(e,t??this.defaults)}parser(e,t){return eu.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},s=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return s(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 t>"u"||null===t)return s(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return s(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let a=i.hooks?i.hooks.provideLexer():e?ea.lex:ea.lexInline,o=i.hooks?i.hooks.provideParser():e?eu.parse:eu.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>a(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>o(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(s);try{i.hooks&&(t=i.hooks.preprocess(t));let e=a(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=o(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return s(e)}}}onError(e,t){return n=>{if(n.message+=` 60Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+w(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function d(e,t){return ep.parse(e,t)}d.options=d.setOptions=function(e){return ep.setOptions(e),d.defaults=ep.defaults,r=d.defaults,d},d.getDefaults=L,d.defaults=r,d.use=function(...e){return ep.use(...e),d.defaults=ep.defaults,r=d.defaults,d},d.walkTokens=function(e,t){return ep.walkTokens(e,t)},d.parseInline=ep.parseInline,d.Parser=eu,d.parser=eu.parse,d.Renderer=eo,d.TextRenderer=ec,d.Lexer=ea,d.lexer=ea.lex,d.Tokenizer=es,d.Hooks=eh,d.parse=d,d.options,d.setOptions,d.use,d.walkTokens,d.parseInline,eu.parse,ea.lex}
60}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.