@liip/liipgpt 3.14.0-rc.5 → 3.14.0-rc.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +2 -2
  2. package/chat/{chat-logic.svelte-BPddwvT5.js → chat-logic.svelte-Ch4C_vn1.js} +1 -1
  3. package/chat/{chat-panel-BPX5S1ea.js → chat-panel-DMQMA6GL.js} +2 -2
  4. package/chat/{context-menu-hlCENbIg.js → context-menu-12uTEQGW.js} +1 -1
  5. package/chat/embed-buttons-CeKC4X2u.js +2 -0
  6. package/chat/embed-combobox-C4vUrC24.js +3 -0
  7. package/chat/{fake-typing-html-DA9ZZ_4B.js → fake-typing-html-Ckuyip1o.js} +1 -1
  8. package/chat/liipgpt-chat.js +3 -3
  9. package/chat/{load-default-translations-a30ZO3-V.js → load-default-translations-BuD9xHUi.js} +1 -1
  10. package/chat/{menu-trigger-BWyHbrHL.js → menu-trigger-BBRcUk1D.js} +1 -1
  11. package/chat/{selector-radio-BBid9c4L.js → selector-radio-CFDET-16.js} +1 -1
  12. package/chat/{selectors-BaGTy3yc.js → selectors-BjZ6MVrq.js} +1 -1
  13. package/chat/{svg-sCu6NrKC.js → svg-DtWMjI7R.js} +1 -1
  14. package/chat/{transition-LPIVmLBp.js → transition-XkiSng3X.js} +1 -1
  15. package/configurator/_app/env.js +1 -1
  16. package/configurator/_app/immutable/chunks/{CN42Adfx.js → B-y9X2-8.js} +1 -1
  17. package/configurator/_app/immutable/chunks/{CL_JPJIx.js → BVt1hRS1.js} +1 -1
  18. package/configurator/_app/immutable/chunks/{CMNkk1G0.js → DJkWfLiY.js} +1 -1
  19. package/configurator/_app/immutable/chunks/Dqce3tm9.js +1 -0
  20. package/configurator/_app/immutable/entry/{app.C_xcOaQG.js → app.C_DECwZY.js} +2 -2
  21. package/configurator/_app/immutable/entry/start.CfccBmAW.js +1 -0
  22. package/configurator/_app/immutable/nodes/{0.8Na2So_r.js → 0.By4OoRjs.js} +1 -1
  23. package/configurator/_app/immutable/nodes/{1.BLxhS957.js → 1.BSdglIqj.js} +1 -1
  24. package/configurator/_app/immutable/nodes/{2.CdX0yIoP.js → 2.DtYCUqQJ.js} +1 -1
  25. package/configurator/_app/immutable/nodes/{3.BsilrN49.js → 3.C5ar34a0.js} +1 -1
  26. package/configurator/_app/version.json +1 -1
  27. package/configurator/index.html +6 -6
  28. package/configurator/sidebar.html +6 -6
  29. package/package.json +1 -1
  30. package/search-summary/liipgpt-search-summary.js +21 -19
  31. package/search-summary/{load-chat-config-rIrJxcYJ.js → load-chat-config-BKJ4eg8F.js} +2 -2
  32. package/chat/absolute-fade-out-XxeZPth0.js +0 -2
  33. package/chat/button-or-link-J8pmWrVn.js +0 -2
  34. package/chat/easing-DUD_Cjk6.js +0 -2
  35. package/chat/embed-buttons-DKj9vA-1.js +0 -2
  36. package/chat/embed-combobox-D_bAxShi.js +0 -3
  37. package/configurator/_app/immutable/chunks/Bj5JcU6m.js +0 -1
  38. package/configurator/_app/immutable/entry/start.viGcxJTd.js +0 -1
  39. package/search-summary/translations-utils-Du2dWNi1.js +0 -4
  40. /package/chat/{de-B-rWS9iD.js → de-D1oUJG1T.js} +0 -0
  41. /package/chat/{en-uBnzwhZ-.js → en-Bg1csyv-.js} +0 -0
  42. /package/chat/{fr-navcG-i0.js → fr-CTl7kz6p.js} +0 -0
  43. /package/chat/{it-BdI1rBuy.js → it-BSFK0HUL.js} +0 -0
  44. /package/chat/{tooltip-BNPdEZ1v.js → tooltip-16JN-qn8.js} +0 -0
  45. /package/search-summary/{de-Beh2sxQV.js → de-CLq0dR54.js} +0 -0
  46. /package/search-summary/{en-Cqq6muzM.js → en-GeqcPzjE.js} +0 -0
  47. /package/search-summary/{fr-BRC1Jf3V.js → fr-C_RFjDCQ.js} +0 -0
  48. /package/search-summary/{it-Csghbz5d.js → it-DsMTe5jt.js} +0 -0
package/README.md CHANGED
@@ -36,9 +36,9 @@ that is never opened now downloads about a quarter of what it used to.
36
36
 
37
37
  | gzipped, what a browser downloads before any interaction | IIFE | module |
38
38
  | -------------------------------------------------------- | -------- | -------------------- |
39
- | chat, flyout never opened | 206.2 kB | **52.4 kB** |
39
+ | chat, flyout never opened | 206.2 kB | **51.6 kB** |
40
40
  | button | 48.8 kB | **40.2 kB** |
41
- | search summary, styled through host CSS | 91.8 kB | **72.8 kB** |
41
+ | search summary, styled through host CSS | 91.8 kB | **71.6 kB** |
42
42
 
43
43
  The rest arrives when it is actually needed — the chat panel and engine on first open (prefetched on
44
44
  hover, so the click stays instant), a language when it is selected, an embed when the backend sends
@@ -1,5 +1,5 @@
1
1
  /*! @liip/liipgpt | Copyright 2025-2026 Liip AG | Apache-2.0 | see LICENSE and NOTICE */
2
- import{$t as e,At as t,Dt as n,Et as r,Gt as i,Ht as a,It as o,Mt as s,Ot as c,Pt as l,Qt as u,Rt as d,Zt as f,_t as p,a as ee,bt as te,c as m,dt as ne,f as re,ft as h,ht as g,i as ie,kt as ae,l as oe,m as se,mt as ce,n as le,o as _,p as ue,pt as de,s as fe,t as pe,u as me,yt as he,zt as ge}from"./load-default-translations-a30ZO3-V.js";var{entries:_e,setPrototypeOf:ve,isFrozen:ye,getPrototypeOf:v,getOwnPropertyDescriptor:be}=Object,{freeze:y,seal:b,create:xe}=Object,{apply:Se,construct:x}=typeof Reflect<`u`&&Reflect;y||=function(e){return e},b||=function(e){return e},Se||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},x||=function(e){return new e(...[...arguments].slice(1))};var Ce=w(Array.prototype.forEach),we=w(Array.prototype.lastIndexOf),Te=w(Array.prototype.pop),Ee=w(Array.prototype.push),De=w(Array.prototype.splice),Oe=w(String.prototype.toLowerCase),ke=w(String.prototype.toString),Ae=w(String.prototype.match),je=w(String.prototype.replace),Me=w(String.prototype.indexOf),Ne=w(String.prototype.trim),S=w(Object.prototype.hasOwnProperty),C=w(RegExp.prototype.test),Pe=Fe(TypeError);function w(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Se(e,t,n)}}function Fe(e){return function(){return x(e,[...arguments])}}function T(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Oe;ve&&ve(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(ye(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Ie(e){for(let t=0;t<e.length;t++)S(e,t)||(e[t]=null);return e}function E(e){let t=xe(null);for(let[n,r]of _e(e))S(e,n)&&(Array.isArray(r)?t[n]=Ie(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=E(r):t[n]=r);return t}function Le(e,t){for(;e!==null;){let n=be(e,t);if(n){if(n.get)return w(n.get);if(typeof n.value==`function`)return w(n.value)}e=v(e)}function n(){return null}return n}var Re=y(`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(`.`)),ze=y(`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(`.`)),Be=y([`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`]),Ve=y([`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`]),He=y(`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(`.`)),Ue=y([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),We=y([`#text`]),Ge=y(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),Ke=y(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),qe=y(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Je=y([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Ye=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Xe=b(/<%[\w\W]*|[\w\W]*%>/gm),Ze=b(/\$\{[\w\W]*/gm),Qe=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),$e=b(/^aria-[\-\w]+$/),et=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tt=b(/^(?:\w+script|data):/i),nt=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rt=b(/^html$/i),it=b(/^[a-z][.\w]*(-[.\w]+)+$/i),at=Object.freeze({__proto__:null,ARIA_ATTR:$e,ATTR_WHITESPACE:nt,CUSTOM_ELEMENT:it,DATA_ATTR:Qe,DOCTYPE_NAME:rt,ERB_EXPR:Xe,IS_ALLOWED_URI:et,IS_SCRIPT_OR_DATA:tt,MUSTACHE_EXPR:Ye,TMPLIT_EXPR:Ze}),ot={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},st=function(){return typeof window>`u`?null:window},ct=function(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}},lt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ut(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:st(),t=e=>ut(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==ot.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,ee=c.prototype,te=Le(ee,`cloneNode`),m=Le(ee,`remove`),ne=Le(ee,`nextSibling`),re=Le(ee,`childNodes`),h=Le(ee,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let g,ie=``,{implementation:ae,createNodeIterator:oe,createDocumentFragment:se,getElementsByTagName:ce}=n,{importNode:le}=r,_=lt();t.isSupported=typeof _e==`function`&&typeof h==`function`&&ae&&ae.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:ue,ERB_EXPR:de,TMPLIT_EXPR:fe,DATA_ATTR:pe,ARIA_ATTR:me,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ve}=at,{IS_ALLOWED_URI:ye}=at,v=null,be=T({},[...Re,...ze,...Be,...He,...We]),b=null,Se=T({},[...Ge,...Ke,...qe,...Je]),x=Object.seal(xe(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}})),w=null,Fe=null,Ie=Object.seal(xe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ye=!0,Xe=!0,Ze=!1,Qe=!0,$e=!1,tt=!0,nt=!1,it=!1,dt=!1,ft=!1,D=!1,pt=!1,mt=!0,O=!1,k=!0,ht=!1,gt={},A=null,_t=T({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),vt=null,yt=T({},[`audio`,`video`,`img`,`source`,`image`,`track`]),bt=null,xt=T({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),St=`http://www.w3.org/1998/Math/MathML`,Ct=`http://www.w3.org/2000/svg`,wt=`http://www.w3.org/1999/xhtml`,Tt=wt,Et=!1,Dt=null,Ot=T({},[St,Ct,wt],ke),kt=T({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),At=T({},[`annotation-xml`]),jt=T({},[`title`,`style`,`font`,`a`,`script`]),Mt=null,Nt=[`application/xhtml+xml`,`text/html`],j=null,Pt=null,Ft=n.createElement(`form`),It=function(e){return e instanceof RegExp||e instanceof Function},Lt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Pt&&Pt===e)){if((!e||typeof e!=`object`)&&(e={}),e=E(e),Mt=Nt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,j=Mt===`application/xhtml+xml`?ke:Oe,v=S(e,`ALLOWED_TAGS`)?T({},e.ALLOWED_TAGS,j):be,b=S(e,`ALLOWED_ATTR`)?T({},e.ALLOWED_ATTR,j):Se,Dt=S(e,`ALLOWED_NAMESPACES`)?T({},e.ALLOWED_NAMESPACES,ke):Ot,bt=S(e,`ADD_URI_SAFE_ATTR`)?T(E(xt),e.ADD_URI_SAFE_ATTR,j):xt,vt=S(e,`ADD_DATA_URI_TAGS`)?T(E(yt),e.ADD_DATA_URI_TAGS,j):yt,A=S(e,`FORBID_CONTENTS`)?T({},e.FORBID_CONTENTS,j):_t,w=S(e,`FORBID_TAGS`)?T({},e.FORBID_TAGS,j):E({}),Fe=S(e,`FORBID_ATTR`)?T({},e.FORBID_ATTR,j):E({}),gt=S(e,`USE_PROFILES`)?e.USE_PROFILES:!1,Ye=e.ALLOW_ARIA_ATTR!==!1,Xe=e.ALLOW_DATA_ATTR!==!1,Ze=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Qe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,$e=e.SAFE_FOR_TEMPLATES||!1,tt=e.SAFE_FOR_XML!==!1,nt=e.WHOLE_DOCUMENT||!1,ft=e.RETURN_DOM||!1,D=e.RETURN_DOM_FRAGMENT||!1,pt=e.RETURN_TRUSTED_TYPE||!1,dt=e.FORCE_BODY||!1,mt=e.SANITIZE_DOM!==!1,O=e.SANITIZE_NAMED_PROPS||!1,k=e.KEEP_CONTENT!==!1,ht=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||et,Tt=e.NAMESPACE||wt,kt=e.MATHML_TEXT_INTEGRATION_POINTS||kt,At=e.HTML_INTEGRATION_POINTS||At,x=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&It(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(x.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&It(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(x.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(x.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),$e&&(Xe=!1),D&&(ft=!0),gt&&(v=T({},We),b=xe(null),gt.html===!0&&(T(v,Re),T(b,Ge)),gt.svg===!0&&(T(v,ze),T(b,Ke),T(b,Je)),gt.svgFilters===!0&&(T(v,Be),T(b,Ke),T(b,Je)),gt.mathMl===!0&&(T(v,He),T(b,qe),T(b,Je))),S(e,`ADD_TAGS`)||(Ie.tagCheck=null),S(e,`ADD_ATTR`)||(Ie.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?Ie.tagCheck=e.ADD_TAGS:(v===be&&(v=E(v)),T(v,e.ADD_TAGS,j))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?Ie.attributeCheck=e.ADD_ATTR:(b===Se&&(b=E(b)),T(b,e.ADD_ATTR,j))),e.ADD_URI_SAFE_ATTR&&T(bt,e.ADD_URI_SAFE_ATTR,j),e.FORBID_CONTENTS&&(A===_t&&(A=E(A)),T(A,e.FORBID_CONTENTS,j)),e.ADD_FORBID_CONTENTS&&(A===_t&&(A=E(A)),T(A,e.ADD_FORBID_CONTENTS,j)),k&&(v[`#text`]=!0),nt&&T(v,[`html`,`head`,`body`]),v.table&&(T(v,[`tbody`]),delete w.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Pe(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Pe(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);g=e.TRUSTED_TYPES_POLICY,ie=g.createHTML(``)}else g===void 0&&(g=ct(p,i)),g!==null&&typeof ie==`string`&&(ie=g.createHTML(``));y&&y(e),Pt=e}},Rt=T({},[...ze,...Be,...Ve]),zt=T({},[...He,...Ue]),Bt=function(e){let t=h(e);(!t||!t.tagName)&&(t={namespaceURI:Tt,tagName:`template`});let n=Oe(e.tagName),r=Oe(t.tagName);return Dt[e.namespaceURI]?e.namespaceURI===Ct?t.namespaceURI===wt?n===`svg`:t.namespaceURI===St?n===`svg`&&(r===`annotation-xml`||kt[r]):!!Rt[n]:e.namespaceURI===St?t.namespaceURI===wt?n===`math`:t.namespaceURI===Ct?n===`math`&&At[r]:!!zt[n]:e.namespaceURI===wt?t.namespaceURI===Ct&&!At[r]||t.namespaceURI===St&&!kt[r]?!1:!zt[n]&&(jt[n]||!Rt[n]):!!(Mt===`application/xhtml+xml`&&Dt[e.namespaceURI]):!1},Vt=function(e){Ee(t.removed,{element:e});try{h(e).removeChild(e)}catch{m(e)}},Ht=function(e,n){try{Ee(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Ee(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(ft||D)try{Vt(n)}catch{}else try{n.setAttribute(e,``)}catch{}},Ut=function(e){let t=null,r=null;if(dt)e=`<remove></remove>`+e;else{let t=Ae(e,/^[\r\n\t ]+/);r=t&&t[0]}Mt===`application/xhtml+xml`&&Tt===wt&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=g?g.createHTML(e):e;if(Tt===wt)try{t=new f().parseFromString(i,Mt)}catch{}if(!t||!t.documentElement){t=ae.createDocument(Tt,`template`,null);try{t.documentElement.innerHTML=Et?ie:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Tt===wt?ce.call(t,nt?`html`:`body`)[0]:nt?t.documentElement:a},Wt=function(e){return oe.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Gt=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},Kt=function(e){return typeof s==`function`&&e instanceof s};function M(e,n,r){Ce(e,e=>{e.call(t,n,r,Pt)})}let qt=function(e){let n=null;if(M(_.beforeSanitizeElements,e,null),Gt(e))return Vt(e),!0;let r=j(e.nodeName);if(M(_.uponSanitizeElement,e,{tagName:r,allowedTags:v}),tt&&e.hasChildNodes()&&!Kt(e.firstElementChild)&&C(/<[/\w!]/g,e.innerHTML)&&C(/<[/\w!]/g,e.textContent)||e.nodeType===ot.progressingInstruction||tt&&e.nodeType===ot.comment&&C(/<[/\w]/g,e.data))return Vt(e),!0;if(!(Ie.tagCheck instanceof Function&&Ie.tagCheck(r))&&(!v[r]||w[r])){if(!w[r]&&Yt(r)&&(x.tagNameCheck instanceof RegExp&&C(x.tagNameCheck,r)||x.tagNameCheck instanceof Function&&x.tagNameCheck(r)))return!1;if(k&&!A[r]){let t=h(e)||e.parentNode,n=re(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=te(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,ne(e))}}}return Vt(e),!0}return e instanceof c&&!Bt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&C(/<\/no(script|embed|frames)/i,e.innerHTML)?(Vt(e),!0):($e&&e.nodeType===ot.text&&(n=e.textContent,Ce([ue,de,fe],e=>{n=je(n,e,` `)}),e.textContent!==n&&(Ee(t.removed,{element:e.cloneNode()}),e.textContent=n)),M(_.afterSanitizeElements,e,null),!1)},Jt=function(e,t,r){if(Fe[t]||mt&&(t===`id`||t===`name`)&&(r in n||r in Ft))return!1;if(!(Xe&&!Fe[t]&&C(pe,t))&&!(Ye&&C(me,t))&&!(Ie.attributeCheck instanceof Function&&Ie.attributeCheck(t,e))){if(!b[t]||Fe[t]){if(!(Yt(e)&&(x.tagNameCheck instanceof RegExp&&C(x.tagNameCheck,e)||x.tagNameCheck instanceof Function&&x.tagNameCheck(e))&&(x.attributeNameCheck instanceof RegExp&&C(x.attributeNameCheck,t)||x.attributeNameCheck instanceof Function&&x.attributeNameCheck(t,e))||t===`is`&&x.allowCustomizedBuiltInElements&&(x.tagNameCheck instanceof RegExp&&C(x.tagNameCheck,r)||x.tagNameCheck instanceof Function&&x.tagNameCheck(r))))return!1}else if(!bt[t]&&!C(ye,je(r,ge,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Me(r,`data:`)===0&&vt[e])&&!(Ze&&!C(he,je(r,ge,``)))&&r)return!1}return!0},Yt=function(e){return e!==`annotation-xml`&&Ae(e,ve)},Xt=function(e){M(_.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||Gt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:b,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=j(a),l=s,u=a===`value`?l:Ne(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,M(_.uponSanitizeAttribute,e,r),u=r.attrValue,O&&(c===`id`||c===`name`)&&(Ht(a,e),u=`user-content-`+u),tt&&C(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){Ht(a,e);continue}if(c===`attributename`&&Ae(u,`href`)){Ht(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Ht(a,e);continue}if(!Qe&&C(/\/>/i,u)){Ht(a,e);continue}$e&&Ce([ue,de,fe],e=>{u=je(u,e,` `)});let d=j(e.nodeName);if(!Jt(d,c,u)){Ht(a,e);continue}if(g&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=g.createHTML(u);break;case`TrustedScriptURL`:u=g.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),Gt(e)?Vt(e):Te(t.removed)}catch{Ht(a,e)}}M(_.afterSanitizeAttributes,e,null)},Zt=function e(t){let n=null,r=Wt(t);for(M(_.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)M(_.uponSanitizeShadowNode,n,null),qt(n),Xt(n),n.content instanceof a&&e(n.content);M(_.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(Et=!e,Et&&(e=`<!-->`),typeof e!=`string`&&!Kt(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw Pe(`dirty is not a string, aborting`)}else throw Pe(`toString is not a function`);if(!t.isSupported)return e;if(it||Lt(n),t.removed=[],typeof e==`string`&&(ht=!1),ht){if(e.nodeName){let t=j(e.nodeName);if(!v[t]||w[t])throw Pe(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=Ut(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===ot.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!ft&&!$e&&!nt&&e.indexOf(`<`)===-1)return g&&pt?g.createHTML(e):e;if(i=Ut(e),!i)return ft?null:pt?ie:``}i&&dt&&Vt(i.firstChild);let u=Wt(ht?e:i);for(;c=u.nextNode();)qt(c),Xt(c),c.content instanceof a&&Zt(c.content);if(ht)return e;if(ft){if(D)for(l=se.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(b.shadowroot||b.shadowrootmode)&&(l=le.call(r,l,!0)),l}let d=nt?i.outerHTML:i.innerHTML;return nt&&v[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&C(rt,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
2
+ import{$t as e,At as t,Dt as n,Et as r,Gt as i,Ht as a,It as o,Mt as s,Ot as c,Pt as l,Qt as u,Rt as d,Zt as f,_t as p,a as ee,bt as te,c as m,dt as ne,f as re,ft as h,ht as g,i as ie,kt as ae,l as oe,m as se,mt as ce,n as le,o as _,p as ue,pt as de,s as fe,t as pe,u as me,yt as he,zt as ge}from"./load-default-translations-BuD9xHUi.js";var{entries:_e,setPrototypeOf:ve,isFrozen:ye,getPrototypeOf:v,getOwnPropertyDescriptor:be}=Object,{freeze:y,seal:b,create:xe}=Object,{apply:Se,construct:x}=typeof Reflect<`u`&&Reflect;y||=function(e){return e},b||=function(e){return e},Se||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},x||=function(e){return new e(...[...arguments].slice(1))};var Ce=w(Array.prototype.forEach),we=w(Array.prototype.lastIndexOf),Te=w(Array.prototype.pop),Ee=w(Array.prototype.push),De=w(Array.prototype.splice),Oe=w(String.prototype.toLowerCase),ke=w(String.prototype.toString),Ae=w(String.prototype.match),je=w(String.prototype.replace),Me=w(String.prototype.indexOf),Ne=w(String.prototype.trim),S=w(Object.prototype.hasOwnProperty),C=w(RegExp.prototype.test),Pe=Fe(TypeError);function w(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Se(e,t,n)}}function Fe(e){return function(){return x(e,[...arguments])}}function T(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Oe;ve&&ve(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(ye(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Ie(e){for(let t=0;t<e.length;t++)S(e,t)||(e[t]=null);return e}function E(e){let t=xe(null);for(let[n,r]of _e(e))S(e,n)&&(Array.isArray(r)?t[n]=Ie(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=E(r):t[n]=r);return t}function Le(e,t){for(;e!==null;){let n=be(e,t);if(n){if(n.get)return w(n.get);if(typeof n.value==`function`)return w(n.value)}e=v(e)}function n(){return null}return n}var Re=y(`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(`.`)),ze=y(`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(`.`)),Be=y([`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`]),Ve=y([`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`]),He=y(`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(`.`)),Ue=y([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),We=y([`#text`]),Ge=y(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),Ke=y(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),qe=y(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Je=y([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Ye=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Xe=b(/<%[\w\W]*|[\w\W]*%>/gm),Ze=b(/\$\{[\w\W]*/gm),Qe=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),$e=b(/^aria-[\-\w]+$/),et=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tt=b(/^(?:\w+script|data):/i),nt=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rt=b(/^html$/i),it=b(/^[a-z][.\w]*(-[.\w]+)+$/i),at=Object.freeze({__proto__:null,ARIA_ATTR:$e,ATTR_WHITESPACE:nt,CUSTOM_ELEMENT:it,DATA_ATTR:Qe,DOCTYPE_NAME:rt,ERB_EXPR:Xe,IS_ALLOWED_URI:et,IS_SCRIPT_OR_DATA:tt,MUSTACHE_EXPR:Ye,TMPLIT_EXPR:Ze}),ot={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},st=function(){return typeof window>`u`?null:window},ct=function(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}},lt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ut(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:st(),t=e=>ut(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==ot.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,ee=c.prototype,te=Le(ee,`cloneNode`),m=Le(ee,`remove`),ne=Le(ee,`nextSibling`),re=Le(ee,`childNodes`),h=Le(ee,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let g,ie=``,{implementation:ae,createNodeIterator:oe,createDocumentFragment:se,getElementsByTagName:ce}=n,{importNode:le}=r,_=lt();t.isSupported=typeof _e==`function`&&typeof h==`function`&&ae&&ae.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:ue,ERB_EXPR:de,TMPLIT_EXPR:fe,DATA_ATTR:pe,ARIA_ATTR:me,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ve}=at,{IS_ALLOWED_URI:ye}=at,v=null,be=T({},[...Re,...ze,...Be,...He,...We]),b=null,Se=T({},[...Ge,...Ke,...qe,...Je]),x=Object.seal(xe(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}})),w=null,Fe=null,Ie=Object.seal(xe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ye=!0,Xe=!0,Ze=!1,Qe=!0,$e=!1,tt=!0,nt=!1,it=!1,dt=!1,ft=!1,D=!1,pt=!1,mt=!0,O=!1,k=!0,ht=!1,gt={},A=null,_t=T({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),vt=null,yt=T({},[`audio`,`video`,`img`,`source`,`image`,`track`]),bt=null,xt=T({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),St=`http://www.w3.org/1998/Math/MathML`,Ct=`http://www.w3.org/2000/svg`,wt=`http://www.w3.org/1999/xhtml`,Tt=wt,Et=!1,Dt=null,Ot=T({},[St,Ct,wt],ke),kt=T({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),At=T({},[`annotation-xml`]),jt=T({},[`title`,`style`,`font`,`a`,`script`]),Mt=null,Nt=[`application/xhtml+xml`,`text/html`],j=null,Pt=null,Ft=n.createElement(`form`),It=function(e){return e instanceof RegExp||e instanceof Function},Lt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Pt&&Pt===e)){if((!e||typeof e!=`object`)&&(e={}),e=E(e),Mt=Nt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,j=Mt===`application/xhtml+xml`?ke:Oe,v=S(e,`ALLOWED_TAGS`)?T({},e.ALLOWED_TAGS,j):be,b=S(e,`ALLOWED_ATTR`)?T({},e.ALLOWED_ATTR,j):Se,Dt=S(e,`ALLOWED_NAMESPACES`)?T({},e.ALLOWED_NAMESPACES,ke):Ot,bt=S(e,`ADD_URI_SAFE_ATTR`)?T(E(xt),e.ADD_URI_SAFE_ATTR,j):xt,vt=S(e,`ADD_DATA_URI_TAGS`)?T(E(yt),e.ADD_DATA_URI_TAGS,j):yt,A=S(e,`FORBID_CONTENTS`)?T({},e.FORBID_CONTENTS,j):_t,w=S(e,`FORBID_TAGS`)?T({},e.FORBID_TAGS,j):E({}),Fe=S(e,`FORBID_ATTR`)?T({},e.FORBID_ATTR,j):E({}),gt=S(e,`USE_PROFILES`)?e.USE_PROFILES:!1,Ye=e.ALLOW_ARIA_ATTR!==!1,Xe=e.ALLOW_DATA_ATTR!==!1,Ze=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Qe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,$e=e.SAFE_FOR_TEMPLATES||!1,tt=e.SAFE_FOR_XML!==!1,nt=e.WHOLE_DOCUMENT||!1,ft=e.RETURN_DOM||!1,D=e.RETURN_DOM_FRAGMENT||!1,pt=e.RETURN_TRUSTED_TYPE||!1,dt=e.FORCE_BODY||!1,mt=e.SANITIZE_DOM!==!1,O=e.SANITIZE_NAMED_PROPS||!1,k=e.KEEP_CONTENT!==!1,ht=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||et,Tt=e.NAMESPACE||wt,kt=e.MATHML_TEXT_INTEGRATION_POINTS||kt,At=e.HTML_INTEGRATION_POINTS||At,x=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&It(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(x.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&It(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(x.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(x.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),$e&&(Xe=!1),D&&(ft=!0),gt&&(v=T({},We),b=xe(null),gt.html===!0&&(T(v,Re),T(b,Ge)),gt.svg===!0&&(T(v,ze),T(b,Ke),T(b,Je)),gt.svgFilters===!0&&(T(v,Be),T(b,Ke),T(b,Je)),gt.mathMl===!0&&(T(v,He),T(b,qe),T(b,Je))),S(e,`ADD_TAGS`)||(Ie.tagCheck=null),S(e,`ADD_ATTR`)||(Ie.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?Ie.tagCheck=e.ADD_TAGS:(v===be&&(v=E(v)),T(v,e.ADD_TAGS,j))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?Ie.attributeCheck=e.ADD_ATTR:(b===Se&&(b=E(b)),T(b,e.ADD_ATTR,j))),e.ADD_URI_SAFE_ATTR&&T(bt,e.ADD_URI_SAFE_ATTR,j),e.FORBID_CONTENTS&&(A===_t&&(A=E(A)),T(A,e.FORBID_CONTENTS,j)),e.ADD_FORBID_CONTENTS&&(A===_t&&(A=E(A)),T(A,e.ADD_FORBID_CONTENTS,j)),k&&(v[`#text`]=!0),nt&&T(v,[`html`,`head`,`body`]),v.table&&(T(v,[`tbody`]),delete w.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Pe(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Pe(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);g=e.TRUSTED_TYPES_POLICY,ie=g.createHTML(``)}else g===void 0&&(g=ct(p,i)),g!==null&&typeof ie==`string`&&(ie=g.createHTML(``));y&&y(e),Pt=e}},Rt=T({},[...ze,...Be,...Ve]),zt=T({},[...He,...Ue]),Bt=function(e){let t=h(e);(!t||!t.tagName)&&(t={namespaceURI:Tt,tagName:`template`});let n=Oe(e.tagName),r=Oe(t.tagName);return Dt[e.namespaceURI]?e.namespaceURI===Ct?t.namespaceURI===wt?n===`svg`:t.namespaceURI===St?n===`svg`&&(r===`annotation-xml`||kt[r]):!!Rt[n]:e.namespaceURI===St?t.namespaceURI===wt?n===`math`:t.namespaceURI===Ct?n===`math`&&At[r]:!!zt[n]:e.namespaceURI===wt?t.namespaceURI===Ct&&!At[r]||t.namespaceURI===St&&!kt[r]?!1:!zt[n]&&(jt[n]||!Rt[n]):!!(Mt===`application/xhtml+xml`&&Dt[e.namespaceURI]):!1},Vt=function(e){Ee(t.removed,{element:e});try{h(e).removeChild(e)}catch{m(e)}},Ht=function(e,n){try{Ee(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Ee(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(ft||D)try{Vt(n)}catch{}else try{n.setAttribute(e,``)}catch{}},Ut=function(e){let t=null,r=null;if(dt)e=`<remove></remove>`+e;else{let t=Ae(e,/^[\r\n\t ]+/);r=t&&t[0]}Mt===`application/xhtml+xml`&&Tt===wt&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=g?g.createHTML(e):e;if(Tt===wt)try{t=new f().parseFromString(i,Mt)}catch{}if(!t||!t.documentElement){t=ae.createDocument(Tt,`template`,null);try{t.documentElement.innerHTML=Et?ie:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Tt===wt?ce.call(t,nt?`html`:`body`)[0]:nt?t.documentElement:a},Wt=function(e){return oe.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Gt=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},Kt=function(e){return typeof s==`function`&&e instanceof s};function M(e,n,r){Ce(e,e=>{e.call(t,n,r,Pt)})}let qt=function(e){let n=null;if(M(_.beforeSanitizeElements,e,null),Gt(e))return Vt(e),!0;let r=j(e.nodeName);if(M(_.uponSanitizeElement,e,{tagName:r,allowedTags:v}),tt&&e.hasChildNodes()&&!Kt(e.firstElementChild)&&C(/<[/\w!]/g,e.innerHTML)&&C(/<[/\w!]/g,e.textContent)||e.nodeType===ot.progressingInstruction||tt&&e.nodeType===ot.comment&&C(/<[/\w]/g,e.data))return Vt(e),!0;if(!(Ie.tagCheck instanceof Function&&Ie.tagCheck(r))&&(!v[r]||w[r])){if(!w[r]&&Yt(r)&&(x.tagNameCheck instanceof RegExp&&C(x.tagNameCheck,r)||x.tagNameCheck instanceof Function&&x.tagNameCheck(r)))return!1;if(k&&!A[r]){let t=h(e)||e.parentNode,n=re(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=te(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,ne(e))}}}return Vt(e),!0}return e instanceof c&&!Bt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&C(/<\/no(script|embed|frames)/i,e.innerHTML)?(Vt(e),!0):($e&&e.nodeType===ot.text&&(n=e.textContent,Ce([ue,de,fe],e=>{n=je(n,e,` `)}),e.textContent!==n&&(Ee(t.removed,{element:e.cloneNode()}),e.textContent=n)),M(_.afterSanitizeElements,e,null),!1)},Jt=function(e,t,r){if(Fe[t]||mt&&(t===`id`||t===`name`)&&(r in n||r in Ft))return!1;if(!(Xe&&!Fe[t]&&C(pe,t))&&!(Ye&&C(me,t))&&!(Ie.attributeCheck instanceof Function&&Ie.attributeCheck(t,e))){if(!b[t]||Fe[t]){if(!(Yt(e)&&(x.tagNameCheck instanceof RegExp&&C(x.tagNameCheck,e)||x.tagNameCheck instanceof Function&&x.tagNameCheck(e))&&(x.attributeNameCheck instanceof RegExp&&C(x.attributeNameCheck,t)||x.attributeNameCheck instanceof Function&&x.attributeNameCheck(t,e))||t===`is`&&x.allowCustomizedBuiltInElements&&(x.tagNameCheck instanceof RegExp&&C(x.tagNameCheck,r)||x.tagNameCheck instanceof Function&&x.tagNameCheck(r))))return!1}else if(!bt[t]&&!C(ye,je(r,ge,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Me(r,`data:`)===0&&vt[e])&&!(Ze&&!C(he,je(r,ge,``)))&&r)return!1}return!0},Yt=function(e){return e!==`annotation-xml`&&Ae(e,ve)},Xt=function(e){M(_.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||Gt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:b,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=j(a),l=s,u=a===`value`?l:Ne(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,M(_.uponSanitizeAttribute,e,r),u=r.attrValue,O&&(c===`id`||c===`name`)&&(Ht(a,e),u=`user-content-`+u),tt&&C(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){Ht(a,e);continue}if(c===`attributename`&&Ae(u,`href`)){Ht(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Ht(a,e);continue}if(!Qe&&C(/\/>/i,u)){Ht(a,e);continue}$e&&Ce([ue,de,fe],e=>{u=je(u,e,` `)});let d=j(e.nodeName);if(!Jt(d,c,u)){Ht(a,e);continue}if(g&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=g.createHTML(u);break;case`TrustedScriptURL`:u=g.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),Gt(e)?Vt(e):Te(t.removed)}catch{Ht(a,e)}}M(_.afterSanitizeAttributes,e,null)},Zt=function e(t){let n=null,r=Wt(t);for(M(_.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)M(_.uponSanitizeShadowNode,n,null),qt(n),Xt(n),n.content instanceof a&&e(n.content);M(_.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(Et=!e,Et&&(e=`<!-->`),typeof e!=`string`&&!Kt(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw Pe(`dirty is not a string, aborting`)}else throw Pe(`toString is not a function`);if(!t.isSupported)return e;if(it||Lt(n),t.removed=[],typeof e==`string`&&(ht=!1),ht){if(e.nodeName){let t=j(e.nodeName);if(!v[t]||w[t])throw Pe(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=Ut(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===ot.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!ft&&!$e&&!nt&&e.indexOf(`<`)===-1)return g&&pt?g.createHTML(e):e;if(i=Ut(e),!i)return ft?null:pt?ie:``}i&&dt&&Vt(i.firstChild);let u=Wt(ht?e:i);for(;c=u.nextNode();)qt(c),Xt(c),c.content instanceof a&&Zt(c.content);if(ht)return e;if(ft){if(D)for(l=se.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(b.shadowroot||b.shadowrootmode)&&(l=le.call(r,l,!0)),l}let d=nt?i.outerHTML:i.innerHTML;return nt&&v[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&C(rt,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
3
3
  `+d),$e&&Ce([ue,de,fe],e=>{d=je(d,e,` `)}),g&&pt?g.createHTML(d):d},t.setConfig=function(){Lt(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),it=!0},t.clearConfig=function(){Pt=null,it=!1},t.isValidAttribute=function(e,t,n){return Pt||Lt({}),Jt(j(e),j(t),n)},t.addHook=function(e,t){typeof t==`function`&&Ee(_[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=we(_[e],t);return n===-1?void 0:De(_[e],n,1)[0]}return Te(_[e])},t.removeHooks=function(e){_[e]=[]},t.removeAllHooks=function(){_=lt()},t}var dt=ut();function ft(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var D=ft();function pt(e){D=e}var mt={exec:()=>null};function O(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(k.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var k={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:/\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`)},ht=/^(?:[ \t]*(?:\n|$))+/,gt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,A=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,_t=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,vt=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,yt=/(?:[*+-]|\d{1,9}[.)])/,bt=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,xt=O(bt).replace(/bull/g,yt).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(),St=O(bt).replace(/bull/g,yt).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(),Ct=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,wt=/^[^\n]+/,Tt=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Et=O(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Tt).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Dt=O(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,yt).getRegex(),Ot=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,kt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,At=O(`^ {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`,kt).replace(`tag`,Ot).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),jt=O(Ct).replace(`hr`,_t).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`,Ot).getRegex(),Mt={blockquote:O(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,jt).getRegex(),code:gt,def:Et,fences:A,heading:vt,hr:_t,html:At,lheading:xt,list:Dt,newline:ht,paragraph:jt,table:mt,text:wt},Nt=O(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,_t).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`,Ot).getRegex(),j={...Mt,lheading:St,table:Nt,paragraph:O(Ct).replace(`hr`,_t).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Nt).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`,Ot).getRegex()},Pt={...Mt,html:O(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,kt).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:mt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:O(Ct).replace(`hr`,_t).replace(`heading`,` *#{1,6} *[^
4
4
  ]`).replace(`lheading`,xt).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Ft=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,It=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Lt=/^( {2,}|\\)\n(?!\s*$)/,Rt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,zt=/[\p{P}\p{S}]/u,Bt=/[\s\p{P}\p{S}]/u,Vt=/[^\s\p{P}\p{S}]/u,Ht=O(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,Bt).getRegex(),Ut=/(?!~)[\p{P}\p{S}]/u,Wt=/(?!~)[\s\p{P}\p{S}]/u,Gt=/(?:[^\s\p{P}\p{S}]|~)/u,Kt=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,M=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,qt=O(M,`u`).replace(/punct/g,zt).getRegex(),Jt=O(M,`u`).replace(/punct/g,Ut).getRegex(),Yt=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,Xt=O(Yt,`gu`).replace(/notPunctSpace/g,Vt).replace(/punctSpace/g,Bt).replace(/punct/g,zt).getRegex(),Zt=O(Yt,`gu`).replace(/notPunctSpace/g,Gt).replace(/punctSpace/g,Wt).replace(/punct/g,Ut).getRegex(),Qt=O(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Vt).replace(/punctSpace/g,Bt).replace(/punct/g,zt).getRegex(),$t=O(/\\(punct)/,`gu`).replace(/punct/g,zt).getRegex(),en=O(/^<(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(),tn=O(kt).replace(`(?:-->|$)`,`-->`).getRegex(),nn=O(`^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`,tn).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),rn=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,an=O(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,rn).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),on=O(/^!?\[(label)\]\[(ref)\]/).replace(`label`,rn).replace(`ref`,Tt).getRegex(),sn=O(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Tt).getRegex(),cn={_backpedal:mt,anyPunctuation:$t,autolink:en,blockSkip:Kt,br:Lt,code:It,del:mt,emStrongLDelim:qt,emStrongRDelimAst:Xt,emStrongRDelimUnd:Qt,escape:Ft,link:an,nolink:sn,punctuation:Ht,reflink:on,reflinkSearch:O(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,on).replace(`nolink`,sn).getRegex(),tag:nn,text:Rt,url:mt},ln={...cn,link:O(/^!?\[(label)\]\((.*?)\)/).replace(`label`,rn).getRegex(),reflink:O(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,rn).getRegex()},un={...cn,emStrongRDelimAst:Zt,emStrongLDelim:Jt,url:O(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},dn={...un,br:O(Lt).replace(`{2,}`,`*`).getRegex(),text:O(un.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},fn={normal:Mt,gfm:j,pedantic:Pt},pn={normal:cn,gfm:un,breaks:dn,pedantic:ln},mn={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},hn=e=>mn[e];function gn(e,t){if(t){if(k.escapeTest.test(e))return e.replace(k.escapeReplace,hn)}else if(k.escapeTestNoEncode.test(e))return e.replace(k.escapeReplaceNoEncode,hn);return e}function _n(e){try{e=encodeURI(e).replace(k.percentDecode,`%`)}catch{return null}return e}function vn(e,t){let n=e.replace(k.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(k.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(k.slashPipe,`|`);return n}function yn(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 bn(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 xn(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 Sn(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
5
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(`