vendor: 1,449 bytes, lines 1-2
1import"./rolldown-runtime-CM1DJQSe.js";function _arrayLikeToArray(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function _nonIterableRest(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _unsupportedIterableToArray(e,t){if(e){if(typeof e==`string`)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}var e=Object.entries,t=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,o=Object.seal,s=Object.create,c=typeof Reflect<`u`&&Reflect,l=c.apply,u=c.
vendor: 4,274 bytes, line 2
2construct;a||=function freeze(e){return e},o||=function seal(e){return e},l||=function apply(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},u||=function construct(e){return new e(...[...arguments].slice(1))};var d=unapply(Array.prototype.forEach),f=unapply(Array.prototype.lastIndexOf),p=unapply(Array.prototype.pop),ee=unapply(Array.prototype.push),te=unapply(Array.prototype.splice),m=Array.isArray,ne=unapply(String.prototype.toLowerCase),re=unapply(String.prototype.toString),ie=unapply(String.prototype.match),ae=unapply(String.prototype.replace),oe=unapply(String.prototype.indexOf),se=unapply(String.prototype.trim),h=unapply(Number.prototype.toString),ce=unapply(Boolean.prototype.toString),le=typeof BigInt>`u`?null:unapply(BigInt.prototype.toString),g=typeof Symbol>`u`?null:unapply(Symbol.prototype.toString),_=unapply(Object.prototype.hasOwnProperty),v=unapply(Object.prototype.toString),y=unapply(RegExp.prototype.test),b=unconstruct(TypeError);function unapply(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return l(e,t,n)}}function unconstruct(e){return function(){return u(e,[...arguments])}}function addToSet(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ne;if(t&&t(e,null),!m(r))return e;let a=r.length;for(;a--;){let t=r[a];if(typeof t==`string`){let e=i(t);e!==t&&(n(r)||(r[a]=e),t=e)}e[t]=!0}return e}function cleanArray(e){for(let t=0;t<e.length;t++)_(e,t)||(e[t]=null);return e}function clone(t){let n=s(null);for(let i of e(t)){var r=_slicedToArray(i,2);let e=r[0],a=r[1];_(t,e)&&(n[e]=m(a)?cleanArray(a):a&&typeof a==`object`&&a.constructor===Object?clone(a):a)}return n}function stringifyValue(e){switch(typeof e){case`string`:return e;case`number`:return h(e);case`boolean`:return ce(e);case`bigint`:return le?le(e):`0`;case`symbol`:return g?g(e):`Symbol()`;case`undefined`:return v(e);case`function`:case`object`:{if(e===null)return v(e);let t=e,n=lookupGetter(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:v(e)}return v(e)}default:return v(e)}}function lookupGetter(e,t){for(;e!==null;){let n=i(e,t);if(n){if(n.get)return unapply(n.get);if(typeof n.value==`function`)return unapply(n.value)}e=r(e)}function fallbackValue(){return null}return fallbackValue}function isRegex(e){try{return y(e,``),!0}catch{return!1}}var ue=a(`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`.split(`.`)),de=a(`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`.split(`.`)),fe=a([`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`]),pe=a([`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`]),me=a(`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`.split(`.`)),he=a([`maction`,`mal
2igngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),ge=a([`#text`]),_e=a(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.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`.split(`.`)),ve=a(`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.dominant-baseline.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-orientation.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`.split(`.`)),ye=a(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.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`.split(`.`)),be=a([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),xe=o(/{{[\w\W]*|^[\w\W]*}}/g),Se=o(/<%[\w\W]*|^[\w\W]*%>/g),Ce=o(/\${[\w\W]*/g),we=o(/^data-[\-\w.\u00B7-\uFFFF]+$/),Te=o(/^aria-[\-\w]+$/),Ee=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),De=o(/^(?:\w+script|data):/i),Oe=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ke=o(/^html$/i),Ae=o(/^[a-z][.\w]*(-[.\w]+)+$/i),je=o(/<[/\w!]/g),Me=o(/<[/\w]/g),Ne=o(/<\/no(script|embed|frames)/i),Pe=o(/\/>/i),x={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Fe=function getGlobal(){return typeof window>`u`?null:window},Ie=function _createTrustedTypesPolicy(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Le=function _createHooksMap(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},S=function _resolveSetOption(e,t,n,r){return _(e,t)&&m(e[t])?addToSet(r.base?clone(r.base):{},e[t],r.transform):n};function createDOMPurify(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Fe(),DOMPurify=e=>createDOMPurify(e);if(DOMPurify.version=`3.4.13`,DOMPurify.removed=[],!t||!t.document||t.document.nodeType!==x.document||!t.Element)return DOMPurify.isSupported=!1,DOMPurify;let n=t.document,r=n,i=r.currentScript;t.DocumentFragment;let c=t.HTMLTemplateElement,l=t.Node,u=t.Element,h=t.NodeFilter;t.NamedNodeMap===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;let ce=t.DOMParser,le=t.trustedTypes,g=u.prototype,v=lookupGetter(g,`cloneNode`),Re=lookupGetter(g,`remove`),C=lookupGetter(g,`nextSibling`),w=lookupGetter(g,`childNodes`),T=lookupGetter(g,`parentNode`),ze=lookupGetter(g,`shadowRoot`),Be=lookupGetter(g,`attributes`),E=l&&l.prototype?lookupGetter(l.prototype,`nodeType`):null,D=l&&l.prototype?lookupGetter(l.prototype,`nodeName`):null,Ve=l&&l.prototype?lookupGetter(l.prototype,`ownerDocument`):null;if(typeof c==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let O,k=``,He,Ue=!1,A=0,We=function _assertNotInTrustedTypesPolicy(){if(A>0)throw b(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},j=function _createTrustedHTML(e){We(),A++;try{return O.createHTML(e)}finally{A--}},Ge=function _createTrustedScriptURL(e){We(),A++;try{return O.createScriptURL(e)}finally{A--}},Ke=function _getDefaultTrustedTypesPolicy(){return Ue||=(He=Ie(le,i),!0),He},M=n,N=M.implementation,qe=M.createNodeIterator,Je=M.createDocumentFragment,Ye=M.getElementsByTagName,Xe=r.importNode,P=Le();DOMPurify.isSupported=typeof e==`function`&&typeof T==`function`&&N&&N.createHTMLDocument!==void 0;let Ze=xe,Qe=Se,$e=Ce,et=we,tt=Te,nt=De,rt=Oe,it=Ae,at=Ee,F=null,ot=addToSet({},[...ue,...de,...fe,...me,...ge]),I=null,st=addToSet({}
vendor: 4,147 bytes, line 2
2,[..._e,...ve,...ye,...be]),L=Object.seal(s(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}})),ct=null,lt=null,R=Object.seal(s(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ut=!0,dt=!0,ft=!1,pt=!0,z=!1,B=!0,V=!1,H=!1,mt=null,U=null,ht=!1,W=!1,gt=!1,G=!1,_t=!0,vt=!1,K=`user-content-`,yt=!0,q=!1,J={},Y=null,bt=addToSet({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),xt=null,St=addToSet({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ct=null,wt=addToSet({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Tt=`http://www.w3.org/1998/Math/MathML`,Et=`http://www.w3.org/2000/svg`,X=`http://www.w3.org/1999/xhtml`,Dt=X,Ot=!1,kt=null,At=addToSet({},[Tt,Et,X],re),jt=a([`mi`,`mo`,`mn`,`ms`,`mtext`]),Mt=addToSet({},jt),Nt=a([`annotation-xml`]),Pt=addToSet({},Nt),Ft=addToSet({},[`title`,`style`,`font`,`a`,`script`]),It=null,Lt=[`application/xhtml+xml`,`text/html`],Z=null,Rt=null,zt=n.createElement(`form`),Bt=function isRegexOrFunction(e){return e instanceof RegExp||e instanceof Function},Vt=function _parseConfig(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Rt&&Rt===e)return;(!e||typeof e!=`object`)&&(e={}),e=clone(e),It=Lt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Z=It===`application/xhtml+xml`?re:ne,F=S(e,`ALLOWED_TAGS`,ot,{transform:Z}),I=S(e,`ALLOWED_ATTR`,st,{transform:Z}),kt=S(e,`ALLOWED_NAMESPACES`,At,{transform:re}),Ct=S(e,`ADD_URI_SAFE_ATTR`,wt,{transform:Z,base:wt}),xt=S(e,`ADD_DATA_URI_TAGS`,St,{transform:Z,base:St}),Y=S(e,`FORBID_CONTENTS`,bt,{transform:Z}),ct=S(e,`FORBID_TAGS`,clone({}),{transform:Z}),lt=S(e,`FORBID_ATTR`,clone({}),{transform:Z}),J=_(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?clone(e.USE_PROFILES):e.USE_PROFILES:!1,ut=e.ALLOW_ARIA_ATTR!==!1,dt=e.ALLOW_DATA_ATTR!==!1,ft=e.ALLOW_UNKNOWN_PROTOCOLS||!1,pt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,z=e.SAFE_FOR_TEMPLATES||!1,B=e.SAFE_FOR_XML!==!1,V=e.WHOLE_DOCUMENT||!1,W=e.RETURN_DOM||!1,gt=e.RETURN_DOM_FRAGMENT||!1,G=e.RETURN_TRUSTED_TYPE||!1,ht=e.FORCE_BODY||!1,_t=e.SANITIZE_DOM!==!1,vt=e.SANITIZE_NAMED_PROPS||!1,yt=e.KEEP_CONTENT!==!1,q=e.IN_PLACE||!1,at=isRegex(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Ee,Dt=typeof e.NAMESPACE==`string`?e.NAMESPACE:X,Mt=_(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?clone(e.MATHML_TEXT_INTEGRATION_POINTS):addToSet({},jt),Pt=_(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?clone(e.HTML_INTEGRATION_POINTS):addToSet({},Nt);let t=_(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?clone(e.CUSTOM_ELEMENT_HANDLING):s(null);if(L=s(null),_(t,`tagNameCheck`)&&Bt(t.tagNameCheck)&&(L.tagNameCheck=t.tagNameCheck),_(t,`attributeNameCheck`)&&Bt(t.attributeNameCheck)&&(L.attributeNameCheck=t.attributeNameCheck),_(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(L.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),o(L),z&&(dt=!1),gt&&(W=!0),J&&(F=addToSet({},ge),I=s(null),J.html===!0&&(addToSet(F,ue),addToSet(I,_e)),J.svg===!0&&(addToSet(F,de),addToSet(I,ve),addToSet(I,be)),J.svgFilters===!0&&(addToSet(F,fe),addToSet(I,ve),addToSet(I,be)),J.mathMl===!0&&(addToSet(F,me),addToSet(I,ye),addToSet(I,be))),R.tagCheck=null,R.attributeCheck=null,_(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?R.tagCheck=e.ADD_TAGS:m(e.ADD_TAGS)&&(F===ot&&(F=clone(F)),addToSet(F,e.ADD_TAGS,Z))),_(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?R.attributeCheck=e.ADD_ATTR:m(e.ADD_ATTR)&&(I===st&&(I=clone(I)),addToSet(I,e.ADD_ATTR,Z))
vendor: 4,901 bytes, line 2
2),_(e,`ADD_URI_SAFE_ATTR`)&&m(e.ADD_URI_SAFE_ATTR)&&addToSet(Ct,e.ADD_URI_SAFE_ATTR,Z),_(e,`FORBID_CONTENTS`)&&m(e.FORBID_CONTENTS)&&(Y===bt&&(Y=clone(Y)),addToSet(Y,e.FORBID_CONTENTS,Z)),_(e,`ADD_FORBID_CONTENTS`)&&m(e.ADD_FORBID_CONTENTS)&&(Y===bt&&(Y=clone(Y)),addToSet(Y,e.ADD_FORBID_CONTENTS,Z)),yt&&(F[`#text`]=!0),V&&addToSet(F,[`html`,`head`,`body`]),F.table&&(addToSet(F,[`tbody`]),delete ct.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw b(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw b(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=O;O=e.TRUSTED_TYPES_POLICY;try{k=j(``)}catch(e){throw O=t,e}}else e.TRUSTED_TYPES_POLICY===null?(O=void 0,k=``):(O===void 0&&(O=Ke()),O&&typeof k==`string`&&(k=j(``)));a&&a(e),Rt=e},Ht=addToSet({},[...de,...fe,...pe]),Ut=addToSet({},[...me,...he]),Wt=function _checkSvgNamespace(e,t,n){return t.namespaceURI===X?e===`svg`:t.namespaceURI===Tt?e===`svg`&&(n===`annotation-xml`||Mt[n]):!!Ht[e]},Gt=function _checkMathMlNamespace(e,t,n){return t.namespaceURI===X?e===`math`:t.namespaceURI===Et?e===`math`&&Pt[n]:!!Ut[e]},Kt=function _checkHtmlNamespace(e,t,n){return t.namespaceURI===Et&&!Pt[n]||t.namespaceURI===Tt&&!Mt[n]?!1:!Ut[e]&&(Ft[e]||!Ht[e])},qt=function _checkValidNamespace(e){let t=T(e);(!t||!t.tagName)&&(t={namespaceURI:Dt,tagName:`template`});let n=ne(e.tagName),r=ne(t.tagName);return kt[e.namespaceURI]?e.namespaceURI===Et?Wt(n,t,r):e.namespaceURI===Tt?Gt(n,t,r):e.namespaceURI===X?Kt(n,t,r):!!(It===`application/xhtml+xml`&&kt[e.namespaceURI]):!1},Q=function _forceRemove(e){ee(DOMPurify.removed,{element:e});try{T(e).removeChild(e)}catch{if(Re(e),!T(e))throw b(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},Jt=function _neutralizeRoot(e){Xt(e);let t=w(e);if(t){let e=[];d(t,t=>{ee(e,t)}),d(e,e=>{try{Re(e)}catch{}})}let n=Be(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},$=function _removeAttribute(e,t){try{ee(DOMPurify.removed,{attribute:t.getAttributeNode(e),from:t})}catch{ee(DOMPurify.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e===`is`){if(W||gt)try{Q(t)}catch{}else try{t.setAttribute(e,``)}catch{}}},Yt=function _stripDisallowedAttributes(e){let t=Be(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||I[Z(i)]))try{e.removeAttribute(i)}catch{}}},Xt=function _neutralizeSubtree(e){let t=[e];for(;t.length>0;){let e=t.pop();(E?E(e):e.nodeType)===x.element&&Yt(e);let n=w(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Zt=function _neutralizePatchLinkage(e){if(!B)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=E?E(e):e.nodeType;if(n===x.processingInstruction||n===x.comment&&y(Me,e.data)){try{Re(e)}catch{}continue}if(n===x.element){let t=e,n=Z(D?D(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&n!==`label`&&n!==`output`&&t.removeAttribute(`for`)}catch{}}let r=w(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},Qt=function _initDocument(e){let t=null,r=null;if(ht)e=`<remove></remove>`+e;else{let t=ie(e,/^[\r\n\t ]+/);r=t&&t[0]}It===`application/xhtml+xml`&&Dt===X&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=O?j(e):e;if(Dt===X)try{t=new ce().parseFromString(i,It)}catch{}if(!t||!t.documentElement){t=N.createDocument(Dt,`template`,null);try{t.documentElement.innerHTML=Ot?k:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Dt===X?Ye.call(t,V?`html`:`body`)[0]:V?t.documentElement:a},$t=function _createNodeIterator(e){let t=Ve?Ve(e):e.ownerDocument;return qe.call(t||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},en=function _stripTemplateExpressions(e){return e=ae(e,Ze,` `),e=ae(e,Qe,` `),e=ae(e,$e,` `),e},tn=function _scrubTemplateExpressions(e){e.normalize();let t=Ve?Ve(e):e.ownerDocument,n=qe.call(t||e,e,h.SHOW_TEXT|h.SHOW_COMMENT|h.SHOW_CDATA_SECTION|h.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=en(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&d(i,e=>{rn(e.content)&&tn(e.content)})},nn=function _isClobbered(e){let t=D?D(e):null;return typeof t!=`string`||Z(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==Be(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==E(e)||e.childNodes!==w(e)}
vendor: 8,338 bytes, lines 2-3
2,rn=function _isDocumentFragment(e){if(!E||typeof e!=`object`||!e)return!1;try{return E(e)===x.documentFragment}catch{return!1}},an=function _isNode(e){if(!E||typeof e!=`object`||!e)return!1;try{return typeof E(e)==`number`}catch{return!1}};function _executeHooks(e,t,n){e.length!==0&&d(e,e=>{e.call(DOMPurify,t,n,Rt)})}let on=function _isUnsafeNode(e,t){return!!(B&&e.hasChildNodes()&&!an(e.firstElementChild)&&y(je,e.textContent)&&y(je,e.innerHTML)||B&&e.namespaceURI===X&&t===`style`&&an(e.firstElementChild)||e.nodeType===x.processingInstruction||B&&e.nodeType===x.comment&&y(Me,e.data))},sn=function _sanitizeDisallowedNode(e,t,n){if(!ct[t]&&fn(t)&&(L.tagNameCheck instanceof RegExp&&y(L.tagNameCheck,t)||L.tagNameCheck instanceof Function&&L.tagNameCheck(t)))return!1;if(yt&&!Y[t]){let t=T(e),r=w(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?v(r[a],!0):r[a];t.insertBefore(i,C(e))}}}return Q(e),!0},cn=function _forkSharedAllowlist(e,t,n,r){return e.length===0?t:t===n||t===r?clone(t):t},ln=function _sanitizeElements(e,t){if(_executeHooks(P.beforeSanitizeElements,e,null),e!==t&&T(e)===null)return q&&Xt(e),!0;if(nn(e))return Q(e),!0;let n=Z(D?D(e):e.nodeName);if(F=cn(P.uponSanitizeElement,F,ot,mt),_executeHooks(P.uponSanitizeElement,e,{tagName:n,allowedTags:F}),e!==t&&T(e)===null)return q&&Xt(e),!0;if(on(e,n))return Q(e),!0;if(ct[n]||!(R.tagCheck instanceof Function&&R.tagCheck(n))&&!F[n]){let r=sn(e,n,t);return r===!1&&_executeHooks(P.afterSanitizeElements,e,null),r}if((E?E(e):e.nodeType)===x.element&&!qt(e)||(n===`noscript`||n===`noembed`||n===`noframes`)&&y(Ne,e.innerHTML))return Q(e),!0;if(z&&e.nodeType===x.text){let t=en(e.textContent);e.textContent!==t&&(ee(DOMPurify.removed,{element:e.cloneNode()}),e.textContent=t)}return _executeHooks(P.afterSanitizeElements,e,null),!1},un=function _isValidAttribute(e,t,r){if(lt[t]||B&&t===`patchsrc`||B&&t===`for`&&e!==`label`&&e!==`output`||_t&&(t===`id`||t===`name`)&&(r in n||r in zt))return!1;let i=I[t]||R.attributeCheck instanceof Function&&R.attributeCheck(t,e);if(!(dt&&y(et,t))&&!(ut&&y(tt,t))){if(!i){if(!(fn(e)&&(L.tagNameCheck instanceof RegExp&&y(L.tagNameCheck,e)||L.tagNameCheck instanceof Function&&L.tagNameCheck(e))&&(L.attributeNameCheck instanceof RegExp&&y(L.attributeNameCheck,t)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(t,e))||t===`is`&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&y(L.tagNameCheck,r)||L.tagNameCheck instanceof Function&&L.tagNameCheck(r))))return!1}else if(!Ct[t]&&!y(at,ae(r,rt,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&oe(r,`data:`)===0&&xt[e])&&!(ft&&!y(nt,ae(r,rt,``)))&&r)return!1}return!0},dn=addToSet({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),fn=function _isBasicCustomElement(e){return!dn[ne(e)]&&y(it,e)},pn=function _applyTrustedTypesToAttribute(e,t,n,r){if(O&&typeof le==`object`&&typeof le.getAttributeType==`function`&&!n)switch(le.getAttributeType(e,t)){case`TrustedHTML`:return j(r);case`TrustedScriptURL`:return Ge(r)}return r},mn=function _setAttributeValue(e,t,n,r){try{n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),nn(e)?Q(e):p(DOMPurify.removed)}catch{$(t,e)}},hn=function _sanitizeAttributes(e){_executeHooks(P.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||nn(e))return;I=cn(P.uponSanitizeAttribute,I,st,U);let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:I,forceKeepAttr:void 0},r=t.length,i=Z(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=Z(o),u=c,d=o===`value`?u:se(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,_executeHooks(P.uponSanitizeAttribute,e,n),d=n.attrValue,vt&&(l===`id`||l===`name`)&&oe(d,K)!==0&&($(o,e),d=K+d),B&&y(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){$(o,e);continue}if(l===`attributename`&&ie(d,`href`)){$(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){$(o,e);continue}if(!pt&&y(Pe,d)){$(o,e);continue}if(z&&(d=en(d)),!un(i,l,d)){$(o,e);continue}d=pn(i,l,s,d),d!==u&&mn(e,o,s,d)}}_executeHooks(P.afterSanitizeAttributes,e,null)},gn=function _sanitizeShadowDOM(e){let t=null,n=$t(e);for(_executeHooks(P.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(_executeHooks(P.uponSanitizeShadowNode,t,null),ln(t,e),hn(t),rn(t.content)&&gn(t.content),(E?E(t):t.nodeType)===x.element){let e=ze(t);rn(e)&&(_n(e),gn(e))}_executeHooks(P.afterSanitizeShadowDOM,e,null)},_n=function _sanitizeAttachedShadowRoots(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){gn(e.shadow);continue}let n=e.node,r=(E?E(n):n.nodeType)===x.element,i=w(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=D?D(n):null;if(typeof e==`string`&&Z(e)===`template`){let e=n.content;rn(e)&&t.push({node:e,shadow:null})}}if(r){let e=ze(n);rn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return DOMPurify.sanitize=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=null,i=null,a=null,o=null;if(Ot=!e,Ot&&(e=`<!-->`),typeof e!=`string`&&!an(e)&&(e=stringifyValue(e),typeof e!=`string`))throw b(`dirty is not a string, aborting`);if(!DOMPurify.isSupported)return e;H?(F=mt,I=U):Vt(t),(P.uponSanitizeElement.length>0||P.uponSanitizeAttribute.length>0)&&(F=clone(F)),P.uponSanitizeAttribute.length>0&&(I=clone(I)),DOMPurify.removed=[];let s=q&&typeof e!=`string`&&an(e);if(s){Zt(e);let t=D?D(e):e.nodeName;if(typeof t==`string`){let n=Z(t);if(!F[n]||ct[n])throw Jt(e),b(`root node is forbidden and cannot be sanitized in-place`)}if(nn(e))throw Jt(e),b(`root node is clobbered and cannot be sanitized in-place`);try{_n(e)}catch(t){throw Jt(e),t}}else if(an(e))n=Qt(`<!---->`),i=n.ownerDocument.importNode(e,!0),i.nodeType===x.element&&i.nodeName===`BODY`||i.nodeName===`HTML`?n=i:n.appendChild(i),_n(i);else{if(!W&&!z&&!V&&e.indexOf(`<`)===-1)return O&&G?j(e):e;if(n=Qt(e),!n)return W?null:G?k:``}n&&ht&&Q(n.firstChild);let c=s?e:n;try{let e=$t(c);for(;a=e.nextNode();)ln(a,c),hn(a),rn(a.content)&&gn(a.content)}catch(t){throw s&&(Jt(e),d(DOMPurify.removed,e=>{e.element&&Xt(e.element)})),t}if(s)return d(DOMPurify.removed,e=>{e.element&&Xt(e.element)}),z&&tn(e),e;if(W){if(z&&tn(n),gt)for(o=Je.call(n.ownerDocument);n.firstChild;)o.appendChild(n.firstChild);else o=n;return(I.shadowroot||I.shadowrootmode)&&(o=Xe.call(r,o,!0)),o}let l=V?n.outerHTML:n.innerHTML;return V&&F[`!doctype`]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&y(ke,n.ownerDocument.doctype.name)&&(l=`<!DOCTYPE `+n.ownerDocument.doctype.name+`> 3`+l),z&&(l=en(l)),O&&G?j(l):l},DOMPurify.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vt(e),H=!0,mt=F,U=I},DOMPurify.clearConfig=function(){Rt=null,H=!1,mt=null,U=null,O=He,k=``},DOMPurify.isValidAttribute=function(e,t,n){Rt||Vt({});let r=Z(e),i=Z(t);return un(r,i,n)},DOMPurify.addHook=function(e,t){typeof t==`function`&&_(P,e)&&ee(P[e],t)},DOMPurify.removeHook=function(e,t){if(_(P,e)){if(t!==void 0){let n=f(P[e],t);return n===-1?void 0:te(P[e],n,1)[0]}return p(P[e])}},DOMPurify.removeHooks=function(e){_(P,e)&&(P[e]=[])},DOMPurify.removeAllHooks=function(){P=Le()},DOMPurify}var Re=createDOMPurify();function _getDefaults(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var C=_getDefaults();function changeDefaults(e){C=e}var w={exec:()=>null};function edit(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(T.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var T={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,333 bytes, line 3
3:/\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+));?/gi,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`)},ze=/^(?:[ \t]*(?:\n|$))+/,Be=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,E=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,D=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ve=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,O=/(?:[*+-]|\d{1,9}[.)])/,k=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,He=edit(k).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(),Ue=edit(k).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(),A=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,We=/^[^\n]+/,j=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ge=edit(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,j).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ke=edit(/^( {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`,N=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,qe=edit(`^ {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`,N).replace(`tag`,M).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Je=edit(A).replace(`hr`,D).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(),Ye={blockquote:edit(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Je).getRegex(),code:Be,def
vendor: 22,334 bytes, lines 3-38
3:Ge,fences:E,heading:Ve,hr:D,html:qe,lheading:He,list:Ke,newline:ze,paragraph:Je,table:w,text:We},Xe=edit(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,D).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(),P={...Ye,lheading:Ue,table:Xe,paragraph:edit(A).replace(`hr`,D).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Xe).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()},Ze={...Ye,html:edit(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,N).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:w,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:edit(A).replace(`hr`,D).replace(`heading`,` *#{1,6} *[^ 4]`).replace(`lheading`,He).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Qe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,$e=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,et=/^( {2,}|\\)\n(?!\s*$)/,tt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,nt=/[\p{P}\p{S}]/u,rt=/[\s\p{P}\p{S}]/u,it=/[^\s\p{P}\p{S}]/u,at=edit(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,rt).getRegex(),F=/(?!~)[\p{P}\p{S}]/u,ot=/(?!~)[\s\p{P}\p{S}]/u,I=/(?:[^\s\p{P}\p{S}]|~)/u,st=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,L=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,ct=edit(L,`u`).replace(/punct/g,nt).getRegex(),lt=edit(L,`u`).replace(/punct/g,F).getRegex(),R=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,ut=edit(R,`gu`).replace(/notPunctSpace/g,it).replace(/punctSpace/g,rt).replace(/punct/g,nt).getRegex(),dt=edit(R,`gu`).replace(/notPunctSpace/g,I).replace(/punctSpace/g,ot).replace(/punct/g,F).getRegex(),ft=edit(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,it).replace(/punctSpace/g,rt).replace(/punct/g,nt).getRegex(),pt=edit(/\\(punct)/,`gu`).replace(/punct/g,nt).getRegex(),z=edit(/^<(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(),B=edit(N).replace(`(?:-->|$)`,`-->`).getRegex(),V=edit(`^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`,B).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),H=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,mt=edit(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,H).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),U=edit(/^!?\[(label)\]\[(ref)\]/).replace(`label`,H).replace(`ref`,j).getRegex(),ht=edit(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,j).getRegex(),W={_backpedal:w,anyPunctuation:pt,autolink:z,blockSkip:st,br:et,code:$e,del:w,emStrongLDelim:ct,emStrongRDelimAst:ut,emStrongRDelimUnd:ft,escape:Qe,link:mt,nolink:ht,punctuation:at,reflink:U,reflinkSearch:edit(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,U).replace(`nolink`,ht).getRegex(),tag:V,text:tt,url:w},gt={...W,link:edit(/^!?\[(label)\]\((.*?)\)/).replace(`label`,H).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,H).getRegex()},G={...W,emStrongRDelimAst:dt,emStrongLDelim:lt,url:edit(/^((?: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~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},_t={...G,br:edit(et).replace(`{2,}`,`*`).getRegex(),text:edit(G.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},vt={normal:Ye,gfm:P,pedantic:Ze},K={normal:W,gfm:G,breaks:_t,pedantic:gt},yt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},getEscapeReplacement=e=>yt[e];function escape2(e,t){if(t){if(T.escapeTest.test(e))return e.replace(T.escapeReplace,getEscapeReplacement)}else if(T.escapeTestNoEncode.test(e))return e.replace(T.escapeReplaceNoEncode,getEscapeReplacement);return e}function cleanUrl(e){try{e=encodeURI(e).replace(T.percentDecode,`%`)}catch{return null}return e}function splitCells(e,t){let n=e.replace(T.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(T.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(T.slashPipe,`|`);return n}function rtrim(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function findClosingBracket(e,t){if(e.indexOf(t[1])===-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--,n<0))return r;return n>0?-2:-1}function outputLink(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function indentCodeCompensation(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(` 5`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(` 6`)}var _Tokenizer=class{options;rules;lexer;constructor(e){this.options=e||C}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:rtrim(e,` 7`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=indentCodeCompensation(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=rtrim(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:rtrim(t[0],` 8`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=rtrim(t[0],` 9`).split(` 10`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(` 11`),c=s.replace(this.rules.other.blockquoteSetextReplace,` 12 $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n} 13${s}`:s,r=r?`${r} 14${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+` 15`+e.join(` 16`),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}if(u?.type===`list`){let t=u,a=t.raw+` 17`+e.join(` 18`),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(` 19`);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(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 a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=t[2].split(` 20`,1)[0].replace(this.rules.other.listReplaceTabs,e=>` `.repeat(3*e.length)),l=e.split(` 21`,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+` 22`,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;e;){let f=e.split(` 23`,1)[0],p;if(l=f,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),p=l):p=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||t.test(l)||n.test(l))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=` 24`+p.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=` 25`+l}!u&&!l.trim()&&(u=!0),r+=f+` 26`,e=e.substring(f.length+1),c=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let f=null,p;this.options.gfm&&(f=this.rules.other.listIsTask.exec(s),f&&(p=f[0]!==`[ ] `,s=s.replace(this.rules.other.listReplaceTask,``))),i.items.push({type:`list_item`,raw:r,task:!!f,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;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=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}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:t[1]===`pre`||t[1]===`script`||t[1]===`style`,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=splitCells(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(` 27`):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(splitCells(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}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)===` 28`?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=rtrim(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=findClosingBracket(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?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)),outputLink(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 outputLink(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,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}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 t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{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]===`@`)e=t[0],n=`mailto:`+e;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=t[1]===`www.`?`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}}}},q=class __Lexer{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||C,this.options.tokenizer=this.options.tokenizer||new _Tokenizer,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:T,block:vt.normal,inline:K.normal};this.options.pedantic?(t.block=vt.pedantic,t.inline=K.pedantic):this.options.gfm&&(t.block=vt.gfm,t.inline=this.options.breaks?K.breaks:K.gfm),this.tokenizer.rules=t}static get rules(){return{block:vt,inline:K}}static lex(e,t){return new __Lexer(t).lex(e)}static lexInline(e,t){return new __Lexer(t).inlineTokens(e)}lex(e){e=e.replace(T.carriageReturn,` 29`),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(T.tabCharGlobal,` `).replace(T.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):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=` 30`: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+=` 31`+r.raw,n.text+=` 32`+r.text,this.inlineQueue.at(-1).src=n.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 n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=` 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});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 i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&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 a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=` 35`+r.raw,a.text+=` 36`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.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+=` 37`+r.raw,n.text+=` 38`+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(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)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(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let i=!1,a=``;for(;e;){i||(a=``),i=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(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);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,a)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let o=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;
vendor: 6,443 bytes, lines 38-57
38this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(o)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(a=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}},_Renderer=class{options;parser;constructor(e){this.options=e||C}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(T.notSpaceStart)?.[0],i=e.replace(T.endingNewline,``)+` 39`;return r?`<pre><code class="language-`+escape2(r)+`">`+(n?i:escape2(i,!0))+`</code></pre> 40`:`<pre><code>`+(n?i:escape2(i,!0))+`</code></pre> 41`}blockquote({tokens:e}){return`<blockquote> 42${this.parser.parse(e)}</blockquote> 43`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}> 44`}hr(e){return`<hr> 45`}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`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`> 46`+r+`</`+i+`> 47`}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&&e.tokens[0].tokens[0].type===`text`&&(e.tokens[0].tokens[0].text=n+` `+escape2(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> 48`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox">`}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p> 49`}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&&=`<tbody>${r}</tbody>`,`<table> 50<thead> 51`+t+`</thead> 52`+r+`</table> 53`}tablerow({text:e}){return`<tr> 54${e}</tr> 55`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}> 56`}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>${escape2(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=cleanUrl(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+escape2(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=cleanUrl(e);if(i===null)return escape2(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${escape2(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:escape2(e.text)}},_TextRenderer=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``}},J=class __Parser{options;renderer;textRenderer;constructor(e){this.options=e||C,this.options.renderer=this.options.renderer||new _Renderer,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _TextRenderer}static parse(e,t){return new __Parser(t).parse(e)}static parseInline(e,t){return new __Parser(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=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(t!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`paragraph`,`text`].includes(e.type)){n+=t||``;continue}}let a=i;switch(a.type){case`space`:n+=this.renderer.space(a);continue;case`hr`:n+=this.renderer.hr(a);continue;case`heading`:n+=this.renderer.heading(a);continue;case`code`:n+=this.renderer.code(a);continue;case`table`:n+=this.renderer.table(a);continue;case`blockquote`:n+=this.renderer.blockquote(a);continue;case`list`:n+=this.renderer.list(a);continue;case`html`:n+=this.renderer.html(a);continue;case`paragraph`:n+=this.renderer.paragraph(a);continue;case`text`:{let i=a,o=this.renderer.text(i);for(;r+1<e.length&&e[r+1].type===`text`;)i=e[++r],o+=` 57`+this.renderer.text(i);n+=t?this.renderer.paragraph({type:`paragraph`,raw:o,text:o,tokens:[{type:`text`,raw:o,text:o,escaped:!0}]}):o;continue}default:{let e=`Token with "`+a.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(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},_Hooks=class{options;block;constructor(e){this.options=e||C}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?q.lex:q.lexInline}provideParser(){return this.block?J.parse:J.parseInline}},Marked=class{defaults=_getDefaults();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=J;Renderer=_Renderer;TextRenderer=_TextRenderer;Lexer=q;Tokenizer=_Tokenizer;Hooks=_Hooks;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`:{let e=r;
vendor: 4,205 bytes, lines 57-58
57for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.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:{}};return 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 r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)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&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(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 _Renderer(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=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new _Tokenizer(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=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new _Hooks;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=n,i=e.hooks[r],a=t[r];t[r]=_Hooks.passThroughHooks.has(n)?e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then(e=>a.call(t,e));let n=i.call(t,e);return a.call(t,n)}:(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.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 q.lex(e,t??this.defaults)}parser(e,t){return J.parse(e,t??this.defaults)}parseMarkdown(e){let parse2=(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(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(t==null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(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 o=i.hooks?i.hooks.provideLexer():e?q.lex:q.lexInline,s=i.hooks?i.hooks.provideParser():e?J.parse:J.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>o(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=>s(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=o(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=s(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return a(e)}};return parse2}onError(e,t){return n=>{if(n.message+=` 58Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+escape2(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}}
58,Y=new Marked;function marked(e,t){return Y.parse(e,t)}marked.options=marked.setOptions=function(e){return Y.setOptions(e),marked.defaults=Y.defaults,changeDefaults(marked.defaults),marked},marked.getDefaults=_getDefaults,marked.defaults=C,marked.use=function(...e){return Y.use(...e),marked.defaults=Y.defaults,changeDefaults(marked.defaults),marked},marked.walkTokens=function(e,t){return Y.walkTokens(e,t)},marked.parseInline=Y.parseInline,marked.Parser=J,marked.parser=J.parse,marked.Renderer=_Renderer,marked.TextRenderer=_TextRenderer,marked.Lexer=q,marked.lexer=q.lex,marked.Tokenizer=_Tokenizer,marked.Hooks=_Hooks,marked.parse=marked,marked.options,marked.setOptions,marked.use,marked.walkTokens,marked.parseInline,J.parse,q.lex;export{marked as n,Re as r,_Renderer as t};
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.