@pb33f/cowboy-components 0.0.12 → 0.0.13

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.
@@ -39,6 +39,14 @@
39
39
  border-radius: 0;
40
40
  text-transform: uppercase;
41
41
  }
42
+
43
+ @media only screen and (max-width: 1000px) {
44
+
45
+ sl-button {
46
+ display: none;
47
+ }
48
+ }
49
+
42
50
  `;var Tt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,Lt=(i,e,t,r)=>{for(var n=r>1?void 0:r?zt(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Tt(e,t,n),n};let we=class extends c.LitElement{getValue(){var t;const i=(t=this.shadowRoot)==null?void 0:t.querySelector("slot.command"),e=i==null?void 0:i.assignedNodes({flatten:!0});return e?e[0].data.trim():""}copyToClipboard(){navigator.clipboard.writeText(this.getValue())}render(){return c.html`
43
51
  <sl-button class="copy" size="small" @click=${this.copyToClipboard}>copy</sl-button>
44
52
  <pre><slot class="command"></slot></pre>
@@ -49,7 +57,7 @@
49
57
  color: var(--secondary-color);
50
58
  }
51
59
 
52
- `;var Et=Object.defineProperty,Pt=Object.getOwnPropertyDescriptor,Ue=(i,e,t,r)=>{for(var n=r>1?void 0:r?Pt(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Et(e,t,n),n};const U="dark",V="light",Ve="pb33f-theme";let ae=class extends c.LitElement{constructor(){super(...arguments),this.theme=U}connectedCallback(){super.connectedCallback(),this.theme=localStorage.getItem(Ve)||V;const i=document.querySelector("html");if(i)switch(i.setAttribute("theme",this.theme),this.theme){case U:i.classList.add("sl-theme-dark");break;case V:i.classList.remove("sl-theme-dark");break}}toggleTheme(){this.theme===U?this.theme=V:this.theme=U,localStorage.setItem(Ve,this.theme);const i=document.querySelector("html");if(i)switch(i.setAttribute("theme",this.theme),this.theme){case U:i.classList.add("sl-theme-dark");break;case V:i.classList.remove("sl-theme-dark");break}}render(){let i="sun";return this.theme===V&&(i="moon"),c.html`
60
+ `;var Et=Object.defineProperty,Pt=Object.getOwnPropertyDescriptor,Ue=(i,e,t,r)=>{for(var n=r>1?void 0:r?Pt(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Et(e,t,n),n};const Z="dark",U="light",Ve="pb33f-theme";let ae=class extends c.LitElement{constructor(){super(...arguments),this.theme=Z}connectedCallback(){super.connectedCallback(),this.theme=localStorage.getItem(Ve)||U;const i=document.querySelector("html");if(i)switch(i.setAttribute("theme",this.theme),this.theme){case Z:i.classList.add("sl-theme-dark");break;case U:i.classList.remove("sl-theme-dark");break}}toggleTheme(){this.theme===Z?this.theme=U:this.theme=Z,localStorage.setItem(Ve,this.theme);const i=document.querySelector("html");if(i)switch(i.setAttribute("theme",this.theme),this.theme){case Z:i.classList.add("sl-theme-dark");break;case U:i.classList.remove("sl-theme-dark");break}}render(){let i="sun";return this.theme===U&&(i="moon"),c.html`
53
61
  <sl-icon-button
54
62
  @click=${this.toggleTheme}
55
63
  name="${i}"
@@ -76,7 +84,7 @@
76
84
 
77
85
  header.pb33f-header > .logo {
78
86
  width: 170px;
79
- min-width: 145px;
87
+ min-width: 170px;
80
88
  padding: 9px 0 10px 10px;
81
89
  border-bottom: 1px dashed var(--secondary-color);
82
90
  height: 36px;
@@ -155,7 +163,7 @@
155
163
  to {
156
164
  opacity: 0;
157
165
  }
158
- }`;var St=Object.defineProperty,It=Object.getOwnPropertyDescriptor,$e=(i,e,t,r)=>{for(var n=r>1?void 0:r?It(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&St(e,t,n),n};let Q=class extends c.LitElement{constructor(){super(),this.name="pb33f",this.url="https://pb33f.io"}render(){return c.html`
166
+ }`;var St=Object.defineProperty,It=Object.getOwnPropertyDescriptor,$e=(i,e,t,r)=>{for(var n=r>1?void 0:r?It(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&St(e,t,n),n};let V=class extends c.LitElement{constructor(){super(),this.name="pb33f",this.url="https://pb33f.io"}render(){return c.html`
159
167
  <header class="pb33f-header">
160
168
  <div class="logo">
161
169
  <span class="caret">$</span>
@@ -164,7 +172,7 @@
164
172
  <div class="header-space">
165
173
  <slot></slot>
166
174
  </div>
167
- </header>`}};Q.styles=Rt,$e([h.property()],Q.prototype,"name",2),$e([h.property()],Q.prototype,"url",2),Q=$e([h.customElement("pb33f-header")],Q);/**
175
+ </header>`}};V.styles=Rt,$e([h.property()],V.prototype,"name",2),$e([h.property()],V.prototype,"url",2),V=$e([h.customElement("pb33f-header")],V);/**
168
176
  * @license
169
177
  * Copyright 2021 Google LLC
170
178
  * SPDX-License-Identifier: BSD-3-Clause
@@ -258,9 +266,9 @@
258
266
  * @license
259
267
  * Copyright 2017 Google LLC
260
268
  * SPDX-License-Identifier: BSD-3-Clause
261
- */const j=globalThis,le=j.trustedTypes,je=le?le.createPolicy("lit-html",{createHTML:i=>i}):void 0,We="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,Ge="?"+E,Mt=`<${Ge}>`,P=document,ce=()=>P.createComment(""),W=i=>i===null||typeof i!="object"&&typeof i!="function",Fe=Array.isArray,Dt=i=>Fe(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",_e=`[
262
- \f\r]`,G=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Je=/-->/g,Xe=/>/g,R=RegExp(`>|${_e}(?:([^\\s"'>=/]+)(${_e}*=${_e}*(?:[^
263
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ke=/'/g,Ye=/"/g,et=/^(?:script|style|textarea|title)$/i,q=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),tt=new WeakMap,S=P.createTreeWalker(P,129);function rt(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return je!==void 0?je.createHTML(e):e}const Ht=(i,e)=>{const t=i.length-1,r=[];let n,s=e===2?"<svg>":"",o=G;for(let l=0;l<t;l++){const a=i[l];let d,p,u=-1,m=0;for(;m<a.length&&(o.lastIndex=m,p=o.exec(a),p!==null);)m=o.lastIndex,o===G?p[1]==="!--"?o=Je:p[1]!==void 0?o=Xe:p[2]!==void 0?(et.test(p[2])&&(n=RegExp("</"+p[2],"g")),o=R):p[3]!==void 0&&(o=R):o===R?p[0]===">"?(o=n??G,u=-1):p[1]===void 0?u=-2:(u=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?R:p[3]==='"'?Ye:Ke):o===Ye||o===Ke?o=R:o===Je||o===Xe?o=G:(o=R,n=void 0);const f=o===R&&i[l+1].startsWith("/>")?" ":"";s+=o===G?a+Mt:u>=0?(r.push(d),a.slice(0,u)+We+a.slice(u)+E+f):a+E+(u===-2?l:f)}return[rt(i,s+(i[t]||"<?>")+(e===2?"</svg>":"")),r]};class F{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let s=0,o=0;const l=e.length-1,a=this.parts,[d,p]=Ht(e,t);if(this.el=F.createElement(d,r),S.currentNode=this.el.content,t===2){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=S.nextNode())!==null&&a.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(const u of n.getAttributeNames())if(u.endsWith(We)){const m=p[o++],f=n.getAttribute(u).split(E),_=/([.?@])?(.*)/.exec(m);a.push({type:1,index:s,name:_[2],strings:f,ctor:_[1]==="."?qt:_[1]==="?"?Bt:_[1]==="@"?Zt:he}),n.removeAttribute(u)}else u.startsWith(E)&&(a.push({type:6,index:s}),n.removeAttribute(u));if(et.test(n.tagName)){const u=n.textContent.split(E),m=u.length-1;if(m>0){n.textContent=le?le.emptyScript:"";for(let f=0;f<m;f++)n.append(u[f],ce()),S.nextNode(),a.push({type:2,index:++s});n.append(u[m],ce())}}}else if(n.nodeType===8)if(n.data===Ge)a.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf(E,u+1))!==-1;)a.push({type:7,index:s}),u+=E.length-1}s++}}static createElement(e,t){const r=P.createElement("template");return r.innerHTML=e,r}}function B(i,e,t=i,r){var o,l;if(e===q)return e;let n=r!==void 0?(o=t._$Co)==null?void 0:o[r]:t._$Cl;const s=W(e)?void 0:e._$litDirective$;return(n==null?void 0:n.constructor)!==s&&((l=n==null?void 0:n._$AO)==null||l.call(n,!1),s===void 0?n=void 0:(n=new s(i),n._$AT(i,t,r)),r!==void 0?(t._$Co??(t._$Co=[]))[r]=n:t._$Cl=n),n!==void 0&&(e=B(i,n._$AS(i,e.values),n,r)),e}class Nt{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,n=((e==null?void 0:e.creationScope)??P).importNode(t,!0);S.currentNode=n;let s=S.nextNode(),o=0,l=0,a=r[0];for(;a!==void 0;){if(o===a.index){let d;a.type===2?d=new pe(s,s.nextSibling,this,e):a.type===1?d=new a.ctor(s,a.name,a.strings,this,e):a.type===6&&(d=new Ut(s,this,e)),this._$AV.push(d),a=r[++l]}o!==(a==null?void 0:a.index)&&(s=S.nextNode(),o++)}return S.currentNode=P,n}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class pe{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=(n==null?void 0:n.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=B(this,e,t),W(e)?e===k||e==null||e===""?(this._$AH!==k&&this._$AR(),this._$AH=k):e!==this._$AH&&e!==q&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Dt(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==k&&W(this._$AH)?this._$AA.nextSibling.data=e:this.$(P.createTextNode(e)),this._$AH=e}g(e){var s;const{values:t,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=F.createElement(rt(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===n)this._$AH.p(t);else{const o=new Nt(n,this),l=o.u(this.options);o.p(t),this.$(l),this._$AH=o}}_$AC(e){let t=tt.get(e.strings);return t===void 0&&tt.set(e.strings,t=new F(e)),t}T(e){Fe(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,n=0;for(const s of e)n===t.length?t.push(r=new pe(this.k(ce()),this.k(ce()),this,this.options)):r=t[n],r._$AI(s),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e&&e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class he{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,s){this.type=1,this._$AH=k,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=k}_$AI(e,t=this,r,n){const s=this.strings;let o=!1;if(s===void 0)e=B(this,e,t,0),o=!W(e)||e!==this._$AH&&e!==q,o&&(this._$AH=e);else{const l=e;let a,d;for(e=s[0],a=0;a<s.length-1;a++)d=B(this,l[r+a],t,a),d===q&&(d=this._$AH[a]),o||(o=!W(d)||d!==this._$AH[a]),d===k?e=k:e!==k&&(e+=(d??"")+s[a+1]),this._$AH[a]=d}o&&!n&&this.O(e)}O(e){e===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class qt extends he{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===k?void 0:e}}class Bt extends he{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==k)}}class Zt extends he{constructor(e,t,r,n,s){super(e,t,r,n,s),this.type=5}_$AI(e,t=this){if((e=B(this,e,t,0)??k)===q)return;const r=this._$AH,n=e===k&&r!==k||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==k&&(r===k||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class Ut{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){B(this,e)}}const Ae=j.litHtmlPolyfillSupport;Ae==null||Ae(F,pe),(j.litHtmlVersions??(j.litHtmlVersions=[])).push("3.1.0");/**
269
+ */const Q=globalThis,le=Q.trustedTypes,je=le?le.createPolicy("lit-html",{createHTML:i=>i}):void 0,We="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,Ge="?"+E,Mt=`<${Ge}>`,P=document,ce=()=>P.createComment(""),j=i=>i===null||typeof i!="object"&&typeof i!="function",Fe=Array.isArray,Ht=i=>Fe(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",_e=`[
270
+ \f\r]`,W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Je=/-->/g,Xe=/>/g,R=RegExp(`>|${_e}(?:([^\\s"'>=/]+)(${_e}*=${_e}*(?:[^
271
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ke=/'/g,Ye=/"/g,et=/^(?:script|style|textarea|title)$/i,N=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),tt=new WeakMap,S=P.createTreeWalker(P,129);function rt(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return je!==void 0?je.createHTML(e):e}const qt=(i,e)=>{const t=i.length-1,r=[];let n,s=e===2?"<svg>":"",o=W;for(let l=0;l<t;l++){const a=i[l];let u,p,m=-1,d=0;for(;d<a.length&&(o.lastIndex=d,p=o.exec(a),p!==null);)d=o.lastIndex,o===W?p[1]==="!--"?o=Je:p[1]!==void 0?o=Xe:p[2]!==void 0?(et.test(p[2])&&(n=RegExp("</"+p[2],"g")),o=R):p[3]!==void 0&&(o=R):o===R?p[0]===">"?(o=n??W,m=-1):p[1]===void 0?m=-2:(m=o.lastIndex-p[2].length,u=p[1],o=p[3]===void 0?R:p[3]==='"'?Ye:Ke):o===Ye||o===Ke?o=R:o===Je||o===Xe?o=W:(o=R,n=void 0);const f=o===R&&i[l+1].startsWith("/>")?" ":"";s+=o===W?a+Mt:m>=0?(r.push(u),a.slice(0,m)+We+a.slice(m)+E+f):a+E+(m===-2?l:f)}return[rt(i,s+(i[t]||"<?>")+(e===2?"</svg>":"")),r]};class G{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let s=0,o=0;const l=e.length-1,a=this.parts,[u,p]=qt(e,t);if(this.el=G.createElement(u,r),S.currentNode=this.el.content,t===2){const m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=S.nextNode())!==null&&a.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(const m of n.getAttributeNames())if(m.endsWith(We)){const d=p[o++],f=n.getAttribute(m).split(E),_=/([.?@])?(.*)/.exec(d);a.push({type:1,index:s,name:_[2],strings:f,ctor:_[1]==="."?Nt:_[1]==="?"?Bt:_[1]==="@"?Zt:he}),n.removeAttribute(m)}else m.startsWith(E)&&(a.push({type:6,index:s}),n.removeAttribute(m));if(et.test(n.tagName)){const m=n.textContent.split(E),d=m.length-1;if(d>0){n.textContent=le?le.emptyScript:"";for(let f=0;f<d;f++)n.append(m[f],ce()),S.nextNode(),a.push({type:2,index:++s});n.append(m[d],ce())}}}else if(n.nodeType===8)if(n.data===Ge)a.push({type:2,index:s});else{let m=-1;for(;(m=n.data.indexOf(E,m+1))!==-1;)a.push({type:7,index:s}),m+=E.length-1}s++}}static createElement(e,t){const r=P.createElement("template");return r.innerHTML=e,r}}function B(i,e,t=i,r){var o,l;if(e===N)return e;let n=r!==void 0?(o=t._$Co)==null?void 0:o[r]:t._$Cl;const s=j(e)?void 0:e._$litDirective$;return(n==null?void 0:n.constructor)!==s&&((l=n==null?void 0:n._$AO)==null||l.call(n,!1),s===void 0?n=void 0:(n=new s(i),n._$AT(i,t,r)),r!==void 0?(t._$Co??(t._$Co=[]))[r]=n:t._$Cl=n),n!==void 0&&(e=B(i,n._$AS(i,e.values),n,r)),e}class Dt{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,n=((e==null?void 0:e.creationScope)??P).importNode(t,!0);S.currentNode=n;let s=S.nextNode(),o=0,l=0,a=r[0];for(;a!==void 0;){if(o===a.index){let u;a.type===2?u=new pe(s,s.nextSibling,this,e):a.type===1?u=new a.ctor(s,a.name,a.strings,this,e):a.type===6&&(u=new Ut(s,this,e)),this._$AV.push(u),a=r[++l]}o!==(a==null?void 0:a.index)&&(s=S.nextNode(),o++)}return S.currentNode=P,n}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class pe{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=(n==null?void 0:n.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=B(this,e,t),j(e)?e===k||e==null||e===""?(this._$AH!==k&&this._$AR(),this._$AH=k):e!==this._$AH&&e!==N&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Ht(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==k&&j(this._$AH)?this._$AA.nextSibling.data=e:this.$(P.createTextNode(e)),this._$AH=e}g(e){var s;const{values:t,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=G.createElement(rt(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===n)this._$AH.p(t);else{const o=new Dt(n,this),l=o.u(this.options);o.p(t),this.$(l),this._$AH=o}}_$AC(e){let t=tt.get(e.strings);return t===void 0&&tt.set(e.strings,t=new G(e)),t}T(e){Fe(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,n=0;for(const s of e)n===t.length?t.push(r=new pe(this.k(ce()),this.k(ce()),this,this.options)):r=t[n],r._$AI(s),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e&&e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class he{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,s){this.type=1,this._$AH=k,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=k}_$AI(e,t=this,r,n){const s=this.strings;let o=!1;if(s===void 0)e=B(this,e,t,0),o=!j(e)||e!==this._$AH&&e!==N,o&&(this._$AH=e);else{const l=e;let a,u;for(e=s[0],a=0;a<s.length-1;a++)u=B(this,l[r+a],t,a),u===N&&(u=this._$AH[a]),o||(o=!j(u)||u!==this._$AH[a]),u===k?e=k:e!==k&&(e+=(u??"")+s[a+1]),this._$AH[a]=u}o&&!n&&this.O(e)}O(e){e===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Nt extends he{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===k?void 0:e}}class Bt extends he{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==k)}}class Zt extends he{constructor(e,t,r,n,s){super(e,t,r,n,s),this.type=5}_$AI(e,t=this){if((e=B(this,e,t,0)??k)===N)return;const r=this._$AH,n=e===k&&r!==k||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==k&&(r===k||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class Ut{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){B(this,e)}}const Ae=Q.litHtmlPolyfillSupport;Ae==null||Ae(G,pe),(Q.litHtmlVersions??(Q.litHtmlVersions=[])).push("3.1.0");/**
264
272
  * @license
265
273
  * Copyright 2017 Google LLC
266
274
  * SPDX-License-Identifier: BSD-3-Clause
@@ -268,7 +276,7 @@
268
276
  * @license
269
277
  * Copyright 2017 Google LLC
270
278
  * SPDX-License-Identifier: BSD-3-Clause
271
- */class Te extends jt{constructor(e){if(super(e),this.et=k,e.type!==Vt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===k||e==null)return this.vt=void 0,this.et=e;if(e===q)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;const t=[e];return t.raw=t,this.vt={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Te.directiveName="unsafeHTML",Te.resultType=1;const Z=Qt(Te),Wt=c.css`
279
+ */class Te extends jt{constructor(e){if(super(e),this.et=k,e.type!==Vt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===k||e==null)return this.vt=void 0,this.et=e;if(e===N)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;const t=[e];return t.raw=t,this.vt={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Te.directiveName="unsafeHTML",Te.resultType=1;const F=Qt(Te),Wt=c.css`
272
280
 
273
281
  code,
274
282
  pre {
@@ -626,12 +634,12 @@
626
634
  <tr>
627
635
  <td><code>${o[0]}</code></td>
628
636
  <td>
629
- <pre style=""><code class="no-box" style="white-space: pre-wrap; word-wrap: break-word;">${Z(y.highlight(JSON.stringify(o[1],null,2),y.languages.json,"json"))}</pre></code>
637
+ <pre style=""><code class="no-box" style="white-space: pre-wrap; word-wrap: break-word;">${F(y.highlight(JSON.stringify(o[1],null,2),y.languages.json,"json"))}</pre></code>
630
638
  </td>
631
639
  </tr>`:c.html`
632
640
  <tr>
633
641
  <td><code>${o[0]}</code></td>
634
- <td>${Z(o[1])}</td>
642
+ <td>${F(o[1])}</td>
635
643
  </tr>`)}
636
644
  `);const e=c.html`
637
645
  <div class="empty-data">
@@ -765,18 +773,18 @@
765
773
  <tr>
766
774
  <td><code>${s.name}</code></td>
767
775
  <td><code>${s.type}</code></td>
768
- <td>${(l=s.files)==null?void 0:l.map(d=>{var p;return c.html`
769
- <span class="file-name">${d.name}</span>
776
+ <td>${(l=s.files)==null?void 0:l.map(u=>{var p;return c.html`
777
+ <span class="file-name">${u.name}</span>
770
778
  <hr/>
771
- ${(p=d.headers)==null?void 0:p.forEach((u,m)=>c.html`
772
- <span class="file-header">${m}
773
- : <strong>${u}</strong></span>`)}</td>
779
+ ${(p=u.headers)==null?void 0:p.forEach((m,d)=>c.html`
780
+ <span class="file-header">${d}
781
+ : <strong>${m}</strong></span>`)}</td>
774
782
  </tr>`})}
775
- </td>`;let o="";return(a=s.value)==null||a.forEach(d=>{o+=d}),c.html`
783
+ </td>`;let o="";return(a=s.value)==null||a.forEach(u=>{o+=u}),c.html`
776
784
  <tr>
777
785
  <td><code>${s.name}</code></td>
778
786
  <td>${s.type}</td>
779
- <td>${Z(o)}</td>
787
+ <td>${F(o)}</td>
780
788
  </tr>`})}
781
789
  `);const e=c.html`
782
790
  <div class="empty-data">
@@ -1049,7 +1057,7 @@
1049
1057
  }
1050
1058
 
1051
1059
 
1052
- `;var ur=Object.defineProperty,mr=Object.getOwnPropertyDescriptor,A=(i,e,t,r)=>{for(var n=r>1?void 0:r?mr(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&ur(e,t,n),n};let v=class extends c.LitElement{constructor(){super(),this.error="",this.email=sessionStorage.getItem("pb33f_mailing_list_email"),this.apiURL="https://api.pb33f.io/mailing-list/subscribe",this.promiseMessage="No junk, no sales, no spam. Just updates about pb33f.",this.thanksMessage="We promise to only send you updates about pb33f."}updated(){this.email?(this.subscribed.classList.add("show"),this.unsubscribed.classList.add("hide")):(this.subscribed.classList.add("hide"),this.unsubscribed.classList.add("show"))}subscribe(){if(this.emailInput.value==""){this.emailInput.classList.add("error-input"),this.error="Email is empty",this.mailingListError.classList.add("show"),this.mailingListPromise.classList.add("hide");return}if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(this.emailInput.value)){this.emailInput.classList.add("error-input"),this.error="Not a valid email address",this.mailingListError.classList.add("show"),this.mailingListPromise.classList.add("hide");return}async function e(t,r){const n=await fetch(`${r}?email=${t}`);if(!n.ok){let s=await n.json();return Promise.reject(s)}return n.json()}this.emailSubmit.disabled=!0,this.emailSubmit.loading=!0,this.mailingListError.classList.remove("show"),this.emailInput.classList.remove("error-input"),e(this.emailInput.value,this.apiURL).then(t=>{this.email=t.email,this.subscribed.classList.remove("hide"),this.subscribed.classList.add("show"),this.unsubscribed.classList.add("hide"),sessionStorage.setItem("pb33f_mailing_list_email",this.email)},t=>{this.emailSubmit.disabled=!1,this.emailSubmit.loading=!1,this.emailInput.classList.add("error-input"),this.mailingListError.classList.add("show"),this.mailingListPromise.classList.add("hide"),this.error=t.detail})}render(){return c.html`
1060
+ `;var ur=Object.defineProperty,mr=Object.getOwnPropertyDescriptor,A=(i,e,t,r)=>{for(var n=r>1?void 0:r?mr(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&ur(e,t,n),n};let w=class extends c.LitElement{constructor(){super(),this.error="",this.email=sessionStorage.getItem("pb33f_mailing_list_email"),this.apiURL="https://api.pb33f.io/mailing-list/subscribe",this.promiseMessage="No junk, no sales, no spam. Just updates about pb33f.",this.thanksMessage="We promise to only send you updates about pb33f."}updated(){this.email?(this.subscribed.classList.add("show"),this.unsubscribed.classList.add("hide")):(this.subscribed.classList.add("hide"),this.unsubscribed.classList.add("show"))}subscribe(){if(this.emailInput.value==""){this.emailInput.classList.add("error-input"),this.error="Email is empty",this.mailingListError.classList.add("show"),this.mailingListPromise.classList.add("hide");return}if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(this.emailInput.value)){this.emailInput.classList.add("error-input"),this.error="Not a valid email address",this.mailingListError.classList.add("show"),this.mailingListPromise.classList.add("hide");return}async function e(t,r){const n=await fetch(`${r}?email=${t}`);if(!n.ok){let s=await n.json();return Promise.reject(s)}return n.json()}this.emailSubmit.disabled=!0,this.emailSubmit.loading=!0,this.mailingListError.classList.remove("show"),this.emailInput.classList.remove("error-input"),e(this.emailInput.value,this.apiURL).then(t=>{this.email=t.email,this.subscribed.classList.remove("hide"),this.subscribed.classList.add("show"),this.unsubscribed.classList.add("hide"),sessionStorage.setItem("pb33f_mailing_list_email",this.email)},t=>{this.emailSubmit.disabled=!1,this.emailSubmit.loading=!1,this.emailInput.classList.add("error-input"),this.mailingListError.classList.add("show"),this.mailingListPromise.classList.add("hide"),this.error=t.detail})}render(){return c.html`
1053
1061
  <div class="mailing-list">
1054
1062
  <div class="subscribed">
1055
1063
  <header>
@@ -1072,33 +1080,33 @@
1072
1080
  </div>
1073
1081
  </div>
1074
1082
  </div>
1075
- `}};v.styles=[J,dr],A([h.property()],v.prototype,"apiURL",2),A([h.property()],v.prototype,"thanksMessage",2),A([h.property()],v.prototype,"promiseMessage",2),A([h.state()],v.prototype,"email",2),A([h.query("#email-input")],v.prototype,"emailInput",2),A([h.query(".subscribed")],v.prototype,"subscribed",2),A([h.query(".unsubscribed")],v.prototype,"unsubscribed",2),A([h.query(".mailing-list-promise")],v.prototype,"mailingListPromise",2),A([h.query("#email-submit")],v.prototype,"emailSubmit",2),A([h.query(".mailing-list-error")],v.prototype,"mailingListError",2),A([h.property()],v.prototype,"error",2),v=A([h.customElement("pb33f-mailing-list")],v);function Ee(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let M=Ee();function nt(i){M=i}const ot=/[&<>"']/,fr=new RegExp(ot.source,"g"),st=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,br=new RegExp(st.source,"g"),gr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},it=i=>gr[i];function w(i,e){if(e){if(ot.test(i))return i.replace(fr,it)}else if(st.test(i))return i.replace(br,it);return i}const xr=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function kr(i){return i.replace(xr,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const yr=/(^|[^\[])\^/g;function g(i,e){let t=typeof i=="string"?i:i.source;e=e||"";const r={replace:(n,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(yr,"$1"),t=t.replace(n,o),r},getRegex:()=>new RegExp(t,e)};return r}function at(i){try{i=encodeURI(i).replace(/%25/g,"%")}catch{return null}return i}const Y={exec:()=>null};function lt(i,e){const t=i.replace(/\|/g,(s,o,l)=>{let a=!1,d=o;for(;--d>=0&&l[d]==="\\";)a=!a;return a?"|":" |"}),r=t.split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function ue(i,e,t){const r=i.length;if(r===0)return"";let n=0;for(;n<r;){const s=i.charAt(r-n-1);if(s===e&&!t)n++;else if(s!==e&&t)n++;else break}return i.slice(0,r-n)}function vr(i,e){if(i.indexOf(e[1])===-1)return-1;let t=0;for(let r=0;r<i.length;r++)if(i[r]==="\\")r++;else if(i[r]===e[0])t++;else if(i[r]===e[1]&&(t--,t<0))return r;return-1}function ct(i,e,t,r){const n=e.href,s=e.title?w(e.title):null,o=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){r.state.inLink=!0;const l={type:"link",raw:t,href:n,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}return{type:"image",raw:t,href:n,title:s,text:w(o)}}function wr(i,e){const t=i.match(/^(\s+)(?:```)/);if(t===null)return e;const r=t[1];return e.split(`
1083
+ `}};w.styles=[J,dr],A([h.property()],w.prototype,"apiURL",2),A([h.property()],w.prototype,"thanksMessage",2),A([h.property()],w.prototype,"promiseMessage",2),A([h.state()],w.prototype,"email",2),A([h.query("#email-input")],w.prototype,"emailInput",2),A([h.query(".subscribed")],w.prototype,"subscribed",2),A([h.query(".unsubscribed")],w.prototype,"unsubscribed",2),A([h.query(".mailing-list-promise")],w.prototype,"mailingListPromise",2),A([h.query("#email-submit")],w.prototype,"emailSubmit",2),A([h.query(".mailing-list-error")],w.prototype,"mailingListError",2),A([h.property()],w.prototype,"error",2),w=A([h.customElement("pb33f-mailing-list")],w);function Ee(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let M=Ee();function nt(i){M=i}const ot=/[&<>"']/,fr=new RegExp(ot.source,"g"),st=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,br=new RegExp(st.source,"g"),gr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},it=i=>gr[i];function $(i,e){if(e){if(ot.test(i))return i.replace(fr,it)}else if(st.test(i))return i.replace(br,it);return i}const xr=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function kr(i){return i.replace(xr,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const yr=/(^|[^\[])\^/g;function g(i,e){let t=typeof i=="string"?i:i.source;e=e||"";const r={replace:(n,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(yr,"$1"),t=t.replace(n,o),r},getRegex:()=>new RegExp(t,e)};return r}function at(i){try{i=encodeURI(i).replace(/%25/g,"%")}catch{return null}return i}const Y={exec:()=>null};function lt(i,e){const t=i.replace(/\|/g,(s,o,l)=>{let a=!1,u=o;for(;--u>=0&&l[u]==="\\";)a=!a;return a?"|":" |"}),r=t.split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function ue(i,e,t){const r=i.length;if(r===0)return"";let n=0;for(;n<r;){const s=i.charAt(r-n-1);if(s===e&&!t)n++;else if(s!==e&&t)n++;else break}return i.slice(0,r-n)}function vr(i,e){if(i.indexOf(e[1])===-1)return-1;let t=0;for(let r=0;r<i.length;r++)if(i[r]==="\\")r++;else if(i[r]===e[0])t++;else if(i[r]===e[1]&&(t--,t<0))return r;return-1}function ct(i,e,t,r){const n=e.href,s=e.title?$(e.title):null,o=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){r.state.inLink=!0;const l={type:"link",raw:t,href:n,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}return{type:"image",raw:t,href:n,title:s,text:$(o)}}function wr(i,e){const t=i.match(/^(\s+)(?:```)/);if(t===null)return e;const r=t[1];return e.split(`
1076
1084
  `).map(n=>{const s=n.match(/^\s+/);if(s===null)return n;const[o]=s;return o.length>=r.length?n.slice(r.length):n}).join(`
1077
1085
  `)}class me{constructor(e){x(this,"options");x(this,"rules");x(this,"lexer");this.options=e||M}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:ue(r,`
1078
1086
  `)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],n=wr(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(/#$/.test(r)){const n=ue(r,"#");(this.options.pedantic||!n||/ $/.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const r=ue(t[0].replace(/^ *>[ \t]?/gm,""),`
1079
- `),n=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(r);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:s,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim();const n=r.length>1,s={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");const o=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);let l="",a="",d=!1;for(;e;){let p=!1;if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let u=t[2].split(`
1080
- `,1)[0].replace(/^\t+/,Ne=>" ".repeat(3*Ne.length)),m=e.split(`
1081
- `,1)[0],f=0;this.options.pedantic?(f=2,a=u.trimStart()):(f=t[2].search(/[^ ]/),f=f>4?1:f,a=u.slice(f),f+=t[1].length);let _=!1;if(!u&&/^ *$/.test(m)&&(l+=m+`
1082
- `,e=e.substring(m.length+1),p=!0),!p){const Ne=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),yt=new RegExp(`^ {0,${Math.min(3,f-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),vt=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:\`\`\`|~~~)`),wt=new RegExp(`^ {0,${Math.min(3,f-1)}}#`);for(;e;){const qe=e.split(`
1083
- `,1)[0];if(m=qe,this.options.pedantic&&(m=m.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),vt.test(m)||wt.test(m)||Ne.test(m)||yt.test(e))break;if(m.search(/[^ ]/)>=f||!m.trim())a+=`
1084
- `+m.slice(f);else{if(_||u.search(/[^ ]/)>=4||vt.test(u)||wt.test(u)||yt.test(u))break;a+=`
1085
- `+m}!_&&!m.trim()&&(_=!0),l+=qe+`
1086
- `,e=e.substring(qe.length+1),u=m.slice(f)}}s.loose||(d?s.loose=!0:/\n *\n *$/.test(l)&&(d=!0));let z=null,N;this.options.gfm&&(z=/^\[[ xX]\] /.exec(a),z&&(N=z[0]!=="[ ] ",a=a.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:l,task:!!z,checked:N,loose:!1,text:a,tokens:[]}),s.raw+=l}s.items[s.items.length-1].raw=l.trimEnd(),s.items[s.items.length-1].text=a.trimEnd(),s.raw=s.raw.trimEnd();for(let p=0;p<s.items.length;p++)if(this.lexer.state.top=!1,s.items[p].tokens=this.lexer.blockTokens(s.items[p].text,[]),!s.loose){const u=s.items[p].tokens.filter(f=>f.type==="space"),m=u.length>0&&u.some(f=>/\n.*\n/.test(f.raw));s.loose=m}if(s.loose)for(let p=0;p<s.items.length;p++)s.items[p].loose=!0;return s}}html(e){const 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){const t=this.rules.block.def.exec(e);if(t){const r=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const r=lt(t[1]),n=t[2].replace(/^\||\| *$/g,"").split("|"),s=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
1087
+ `),n=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(r);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:s,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim();const n=r.length>1,s={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");const o=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);let l="",a="",u=!1;for(;e;){let p=!1;if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let m=t[2].split(`
1088
+ `,1)[0].replace(/^\t+/,De=>" ".repeat(3*De.length)),d=e.split(`
1089
+ `,1)[0],f=0;this.options.pedantic?(f=2,a=m.trimStart()):(f=t[2].search(/[^ ]/),f=f>4?1:f,a=m.slice(f),f+=t[1].length);let _=!1;if(!m&&/^ *$/.test(d)&&(l+=d+`
1090
+ `,e=e.substring(d.length+1),p=!0),!p){const De=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),yt=new RegExp(`^ {0,${Math.min(3,f-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),vt=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:\`\`\`|~~~)`),wt=new RegExp(`^ {0,${Math.min(3,f-1)}}#`);for(;e;){const Ne=e.split(`
1091
+ `,1)[0];if(d=Ne,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),vt.test(d)||wt.test(d)||De.test(d)||yt.test(e))break;if(d.search(/[^ ]/)>=f||!d.trim())a+=`
1092
+ `+d.slice(f);else{if(_||m.search(/[^ ]/)>=4||vt.test(m)||wt.test(m)||yt.test(m))break;a+=`
1093
+ `+d}!_&&!d.trim()&&(_=!0),l+=Ne+`
1094
+ `,e=e.substring(Ne.length+1),m=d.slice(f)}}s.loose||(u?s.loose=!0:/\n *\n *$/.test(l)&&(u=!0));let z=null,D;this.options.gfm&&(z=/^\[[ xX]\] /.exec(a),z&&(D=z[0]!=="[ ] ",a=a.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:l,task:!!z,checked:D,loose:!1,text:a,tokens:[]}),s.raw+=l}s.items[s.items.length-1].raw=l.trimEnd(),s.items[s.items.length-1].text=a.trimEnd(),s.raw=s.raw.trimEnd();for(let p=0;p<s.items.length;p++)if(this.lexer.state.top=!1,s.items[p].tokens=this.lexer.blockTokens(s.items[p].text,[]),!s.loose){const m=s.items[p].tokens.filter(f=>f.type==="space"),d=m.length>0&&m.some(f=>/\n.*\n/.test(f.raw));s.loose=d}if(s.loose)for(let p=0;p<s.items.length;p++)s.items[p].loose=!0;return s}}html(e){const 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){const t=this.rules.block.def.exec(e);if(t){const r=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const r=lt(t[1]),n=t[2].replace(/^\||\| *$/g,"").split("|"),s=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
1087
1095
  `):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(const l of n)/^ *-+: *$/.test(l)?o.align.push("right"):/^ *:-+: *$/.test(l)?o.align.push("center"):/^ *:-+ *$/.test(l)?o.align.push("left"):o.align.push(null);for(const l of r)o.header.push({text:l,tokens:this.lexer.inline(l)});for(const l of s)o.rows.push(lt(l,o.header.length).map(a=>({text:a,tokens:this.lexer.inline(a)})));return o}}lheading(e){const 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){const t=this.rules.block.paragraph.exec(e);if(t){const r=t[1].charAt(t[1].length-1)===`
1088
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const 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){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:w(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.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){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const o=ue(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=vr(t[2],"()");if(o>-1){const a=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let n=t[2],s="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);o&&(n=o[1],s=o[3])}else s=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(this.options.pedantic&&!/>$/.test(r)?n=n.slice(1):n=n.slice(1,-1)),ct(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const n=(r[2]||r[1]).replace(/\s+/g," "),s=t[n.toLowerCase()];if(!s){const o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return ct(r,s,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!n||n[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(n[1]||n[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const o=[...n[0]].length-1;let l,a,d=o,p=0;const u=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+o);(n=u.exec(t))!=null;){if(l=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!l)continue;if(a=[...l].length,n[3]||n[4]){d+=a;continue}else if((n[5]||n[6])&&o%3&&!((o+a)%3)){p+=a;continue}if(d-=a,d>0)continue;a=Math.min(a,a+d+p);const m=[...n[0]][0].length,f=e.slice(0,o+n.index+m+a);if(Math.min(o,a)%2){const z=f.slice(1,-1);return{type:"em",raw:f,text:z,tokens:this.lexer.inlineTokens(z)}}const _=f.slice(2,-2);return{type:"strong",raw:f,text:_,tokens:this.lexer.inlineTokens(_)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(/\n/g," ");const n=/[^ ]/.test(r),s=/^ /.test(r)&&/ $/.test(r);return n&&s&&(r=r.substring(1,r.length-1)),r=w(r,!0),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const 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){const t=this.rules.inline.autolink.exec(e);if(t){let r,n;return t[2]==="@"?(r=w(t[1]),n="mailto:"+r):(r=w(t[1]),n=r),{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let t;if(t=this.rules.inline.url.exec(e)){let n,s;if(t[2]==="@")n=w(t[0]),s="mailto:"+n;else{let o;do o=t[0],t[0]=((r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])??"";while(o!==t[0]);n=w(t[0]),t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let r;return this.lexer.state.inRawBlock?r=t[0]:r=w(t[0]),{type:"text",raw:t[0],text:r}}}}const $r=/^(?: *(?:\n|$))+/,_r=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Ar=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ee=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Tr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,pt=/(?:[*+-]|\d{1,9}[.)])/,ht=g(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,pt).getRegex(),Pe=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,zr=/^[^\n]+/,Re=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Lr=g(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",Re).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Cr=g(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,pt).getRegex(),fe="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Se=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Er=g("^ {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",Se).replace("tag",fe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),dt=g(Pe).replace("hr",ee).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",fe).getRegex(),Ie={blockquote:g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",dt).getRegex(),code:_r,def:Lr,fences:Ar,heading:Tr,hr:ee,html:Er,lheading:ht,list:Cr,newline:$r,paragraph:dt,table:Y,text:zr},ut=g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ee).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\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",fe).getRegex(),Pr={...Ie,table:ut,paragraph:g(Pe).replace("hr",ee).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ut).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",fe).getRegex()},Rr={...Ie,html:g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Se).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:Y,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(Pe).replace("hr",ee).replace("heading",` *#{1,6} *[^
1089
- ]`).replace("lheading",ht).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},mt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Sr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ft=/^( {2,}|\\)\n(?!\s*$)/,Ir=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,te="\\p{P}$+<=>`^|~",Or=g(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,te).getRegex(),Mr=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Dr=g(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,te).getRegex(),Hr=g("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,te).getRegex(),Nr=g("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,te).getRegex(),qr=g(/\\([punct])/,"gu").replace(/punct/g,te).getRegex(),Br=g(/^<(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(),Zr=g(Se).replace("(?:-->|$)","-->").getRegex(),Ur=g("^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",Zr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),be=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Vr=g(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",be).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),bt=g(/^!?\[(label)\]\[(ref)\]/).replace("label",be).replace("ref",Re).getRegex(),gt=g(/^!?\[(ref)\](?:\[\])?/).replace("ref",Re).getRegex(),Qr=g("reflink|nolink(?!\\()","g").replace("reflink",bt).replace("nolink",gt).getRegex(),Oe={_backpedal:Y,anyPunctuation:qr,autolink:Br,blockSkip:Mr,br:ft,code:Sr,del:Y,emStrongLDelim:Dr,emStrongRDelimAst:Hr,emStrongRDelimUnd:Nr,escape:mt,link:Vr,nolink:gt,punctuation:Or,reflink:bt,reflinkSearch:Qr,tag:Ur,text:Ir,url:Y},jr={...Oe,link:g(/^!?\[(label)\]\((.*?)\)/).replace("label",be).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",be).getRegex()},Me={...Oe,escape:g(mt).replace("])","~|])").getRegex(),url:g(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Wr={...Me,br:g(ft).replace("{2,}","*").getRegex(),text:g(Me.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ge={normal:Ie,gfm:Pr,pedantic:Rr},re={normal:Oe,gfm:Me,breaks:Wr,pedantic:jr};class L{constructor(e){x(this,"tokens");x(this,"options");x(this,"state");x(this,"tokenizer");x(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||M,this.options.tokenizer=this.options.tokenizer||new me,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:ge.normal,inline:re.normal};this.options.pedantic?(t.block=ge.pedantic,t.inline=re.pedantic):this.options.gfm&&(t.block=ge.gfm,this.options.breaks?t.inline=re.breaks:t.inline=re.gfm),this.tokenizer.rules=t}static get rules(){return{block:ge,inline:re}}static lex(e,t){return new L(t).lex(e)}static lexInline(e,t){return new L(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
1090
- `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const r=this.inlineQueue[t];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(l,a,d)=>a+" ".repeat(d.length));let r,n,s,o;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(r=l.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&t.length>0?t[t.length-1].raw+=`
1096
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const 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){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:$(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.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){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const o=ue(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=vr(t[2],"()");if(o>-1){const a=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let n=t[2],s="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);o&&(n=o[1],s=o[3])}else s=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(this.options.pedantic&&!/>$/.test(r)?n=n.slice(1):n=n.slice(1,-1)),ct(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const n=(r[2]||r[1]).replace(/\s+/g," "),s=t[n.toLowerCase()];if(!s){const o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return ct(r,s,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!n||n[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(n[1]||n[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const o=[...n[0]].length-1;let l,a,u=o,p=0;const m=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,t=t.slice(-1*e.length+o);(n=m.exec(t))!=null;){if(l=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!l)continue;if(a=[...l].length,n[3]||n[4]){u+=a;continue}else if((n[5]||n[6])&&o%3&&!((o+a)%3)){p+=a;continue}if(u-=a,u>0)continue;a=Math.min(a,a+u+p);const d=[...n[0]][0].length,f=e.slice(0,o+n.index+d+a);if(Math.min(o,a)%2){const z=f.slice(1,-1);return{type:"em",raw:f,text:z,tokens:this.lexer.inlineTokens(z)}}const _=f.slice(2,-2);return{type:"strong",raw:f,text:_,tokens:this.lexer.inlineTokens(_)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(/\n/g," ");const n=/[^ ]/.test(r),s=/^ /.test(r)&&/ $/.test(r);return n&&s&&(r=r.substring(1,r.length-1)),r=$(r,!0),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const 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){const t=this.rules.inline.autolink.exec(e);if(t){let r,n;return t[2]==="@"?(r=$(t[1]),n="mailto:"+r):(r=$(t[1]),n=r),{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let t;if(t=this.rules.inline.url.exec(e)){let n,s;if(t[2]==="@")n=$(t[0]),s="mailto:"+n;else{let o;do o=t[0],t[0]=((r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])??"";while(o!==t[0]);n=$(t[0]),t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let r;return this.lexer.state.inRawBlock?r=t[0]:r=$(t[0]),{type:"text",raw:t[0],text:r}}}}const $r=/^(?: *(?:\n|$))+/,_r=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Ar=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ee=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Tr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,pt=/(?:[*+-]|\d{1,9}[.)])/,ht=g(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,pt).getRegex(),Pe=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,zr=/^[^\n]+/,Re=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Lr=g(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",Re).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Cr=g(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,pt).getRegex(),fe="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Se=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Er=g("^ {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",Se).replace("tag",fe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),dt=g(Pe).replace("hr",ee).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",fe).getRegex(),Ie={blockquote:g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",dt).getRegex(),code:_r,def:Lr,fences:Ar,heading:Tr,hr:ee,html:Er,lheading:ht,list:Cr,newline:$r,paragraph:dt,table:Y,text:zr},ut=g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ee).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\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",fe).getRegex(),Pr={...Ie,table:ut,paragraph:g(Pe).replace("hr",ee).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ut).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",fe).getRegex()},Rr={...Ie,html:g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Se).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:Y,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(Pe).replace("hr",ee).replace("heading",` *#{1,6} *[^
1097
+ ]`).replace("lheading",ht).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},mt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Sr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ft=/^( {2,}|\\)\n(?!\s*$)/,Ir=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,te="\\p{P}$+<=>`^|~",Or=g(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,te).getRegex(),Mr=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Hr=g(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,te).getRegex(),qr=g("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,te).getRegex(),Dr=g("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,te).getRegex(),Nr=g(/\\([punct])/,"gu").replace(/punct/g,te).getRegex(),Br=g(/^<(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(),Zr=g(Se).replace("(?:-->|$)","-->").getRegex(),Ur=g("^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",Zr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),be=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Vr=g(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",be).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),bt=g(/^!?\[(label)\]\[(ref)\]/).replace("label",be).replace("ref",Re).getRegex(),gt=g(/^!?\[(ref)\](?:\[\])?/).replace("ref",Re).getRegex(),Qr=g("reflink|nolink(?!\\()","g").replace("reflink",bt).replace("nolink",gt).getRegex(),Oe={_backpedal:Y,anyPunctuation:Nr,autolink:Br,blockSkip:Mr,br:ft,code:Sr,del:Y,emStrongLDelim:Hr,emStrongRDelimAst:qr,emStrongRDelimUnd:Dr,escape:mt,link:Vr,nolink:gt,punctuation:Or,reflink:bt,reflinkSearch:Qr,tag:Ur,text:Ir,url:Y},jr={...Oe,link:g(/^!?\[(label)\]\((.*?)\)/).replace("label",be).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",be).getRegex()},Me={...Oe,escape:g(mt).replace("])","~|])").getRegex(),url:g(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Wr={...Me,br:g(ft).replace("{2,}","*").getRegex(),text:g(Me.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ge={normal:Ie,gfm:Pr,pedantic:Rr},re={normal:Oe,gfm:Me,breaks:Wr,pedantic:jr};class L{constructor(e){x(this,"tokens");x(this,"options");x(this,"state");x(this,"tokenizer");x(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||M,this.options.tokenizer=this.options.tokenizer||new me,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:ge.normal,inline:re.normal};this.options.pedantic?(t.block=ge.pedantic,t.inline=re.pedantic):this.options.gfm&&(t.block=ge.gfm,this.options.breaks?t.inline=re.breaks:t.inline=re.gfm),this.tokenizer.rules=t}static get rules(){return{block:ge,inline:re}}static lex(e,t){return new L(t).lex(e)}static lexInline(e,t){return new L(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
1098
+ `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const r=this.inlineQueue[t];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(l,a,u)=>a+" ".repeat(u.length));let r,n,s,o;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(r=l.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&t.length>0?t[t.length-1].raw+=`
1091
1099
  `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+=`
1092
1100
  `+r.raw,n.text+=`
1093
1101
  `+r.text,this.inlineQueue[this.inlineQueue.length-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),n=t[t.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+=`
1094
1102
  `+r.raw,n.text+=`
1095
- `+r.raw,this.inlineQueue[this.inlineQueue.length-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}if(s=e,this.options.extensions&&this.options.extensions.startBlock){let l=1/0;const a=e.slice(1);let d;this.options.extensions.startBlock.forEach(p=>{d=p.call({lexer:this},a),typeof d=="number"&&d>=0&&(l=Math.min(l,d))}),l<1/0&&l>=0&&(s=e.substring(0,l+1))}if(this.state.top&&(r=this.tokenizer.paragraph(s))){n=t[t.length-1],o&&n.type==="paragraph"?(n.raw+=`
1103
+ `+r.raw,this.inlineQueue[this.inlineQueue.length-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}if(s=e,this.options.extensions&&this.options.extensions.startBlock){let l=1/0;const a=e.slice(1);let u;this.options.extensions.startBlock.forEach(p=>{u=p.call({lexer:this},a),typeof u=="number"&&u>=0&&(l=Math.min(l,u))}),l<1/0&&l>=0&&(s=e.substring(0,l+1))}if(this.state.top&&(r=this.tokenizer.paragraph(s))){n=t[t.length-1],o&&n.type==="paragraph"?(n.raw+=`
1096
1104
  `+r.raw,n.text+=`
1097
1105
  `+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),o=s.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&n.type==="text"?(n.raw+=`
1098
1106
  `+r.raw,n.text+=`
1099
- `+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);continue}if(e){const l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,s,o=e,l,a,d;if(this.tokens.links){const p=Object.keys(this.tokens.links);if(p.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)p.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,l.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(a||(d=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(p=>(r=p.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){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),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):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),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,o,d)){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}if(s=e,this.options.extensions&&this.options.extensions.startInline){let p=1/0;const u=e.slice(1);let m;this.options.extensions.startInline.forEach(f=>{m=f.call({lexer:this},u),typeof m=="number"&&m>=0&&(p=Math.min(p,m))}),p<1/0&&p>=0&&(s=e.substring(0,p+1))}if(r=this.tokenizer.inlineText(s)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(d=r.raw.slice(-1)),a=!0,n=t[t.length-1],n&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){const p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return t}}class xe{constructor(e){x(this,"options");this.options=e||M}code(e,t,r){var s;const n=(s=(t||"").match(/^\S*/))==null?void 0:s[0];return e=e.replace(/\n$/,"")+`
1100
- `,n?'<pre><code class="language-'+w(n)+'">'+(r?e:w(e,!0))+`</code></pre>
1101
- `:"<pre><code>"+(r?e:w(e,!0))+`</code></pre>
1107
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);continue}if(e){const l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,s,o=e,l,a,u;if(this.tokens.links){const p=Object.keys(this.tokens.links);if(p.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)p.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,l.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(a||(u=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(p=>(r=p.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){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),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):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),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,o,u)){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}if(s=e,this.options.extensions&&this.options.extensions.startInline){let p=1/0;const m=e.slice(1);let d;this.options.extensions.startInline.forEach(f=>{d=f.call({lexer:this},m),typeof d=="number"&&d>=0&&(p=Math.min(p,d))}),p<1/0&&p>=0&&(s=e.substring(0,p+1))}if(r=this.tokenizer.inlineText(s)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(u=r.raw.slice(-1)),a=!0,n=t[t.length-1],n&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){const p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return t}}class xe{constructor(e){x(this,"options");this.options=e||M}code(e,t,r){var s;const n=(s=(t||"").match(/^\S*/))==null?void 0:s[0];return e=e.replace(/\n$/,"")+`
1108
+ `,n?'<pre><code class="language-'+$(n)+'">'+(r?e:$(e,!0))+`</code></pre>
1109
+ `:"<pre><code>"+(r?e:$(e,!0))+`</code></pre>
1102
1110
  `}blockquote(e){return`<blockquote>
1103
1111
  ${e}</blockquote>
1104
1112
  `}html(e,t){return e}heading(e,t,r){return`<h${t}>${e}</h${t}>
@@ -1114,9 +1122,9 @@ ${e}</blockquote>
1114
1122
  `}tablerow(e){return`<tr>
1115
1123
  ${e}</tr>
1116
1124
  `}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
1117
- `}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,t,r){const n=at(e);if(n===null)return r;e=n;let s='<a href="'+e+'"';return t&&(s+=' title="'+t+'"'),s+=">"+r+"</a>",s}image(e,t,r){const n=at(e);if(n===null)return r;e=n;let s=`<img src="${e}" alt="${r}"`;return t&&(s+=` title="${t}"`),s+=">",s}text(e){return e}}class De{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class C{constructor(e){x(this,"options");x(this,"renderer");x(this,"textRenderer");this.options=e||M,this.options.renderer=this.options.renderer||new xe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new De}static parse(e,t){return new C(t).parse(e)}static parseInline(e,t){return new C(t).parseInline(e)}parse(e,t=!0){let r="";for(let n=0;n<e.length;n++){const s=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const o=s,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type)){r+=l||"";continue}}switch(s.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{const o=s;r+=this.renderer.heading(this.parseInline(o.tokens),o.depth,kr(this.parseInline(o.tokens,this.textRenderer)));continue}case"code":{const o=s;r+=this.renderer.code(o.text,o.lang,!!o.escaped);continue}case"table":{const o=s;let l="",a="";for(let p=0;p<o.header.length;p++)a+=this.renderer.tablecell(this.parseInline(o.header[p].tokens),{header:!0,align:o.align[p]});l+=this.renderer.tablerow(a);let d="";for(let p=0;p<o.rows.length;p++){const u=o.rows[p];a="";for(let m=0;m<u.length;m++)a+=this.renderer.tablecell(this.parseInline(u[m].tokens),{header:!1,align:o.align[m]});d+=this.renderer.tablerow(a)}r+=this.renderer.table(l,d);continue}case"blockquote":{const o=s,l=this.parse(o.tokens);r+=this.renderer.blockquote(l);continue}case"list":{const o=s,l=o.ordered,a=o.start,d=o.loose;let p="";for(let u=0;u<o.items.length;u++){const m=o.items[u],f=m.checked,_=m.task;let z="";if(m.task){const N=this.renderer.checkbox(!!f);d?m.tokens.length>0&&m.tokens[0].type==="paragraph"?(m.tokens[0].text=N+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&m.tokens[0].tokens[0].type==="text"&&(m.tokens[0].tokens[0].text=N+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:N+" "}):z+=N+" "}z+=this.parse(m.tokens,d),p+=this.renderer.listitem(z,_,!!f)}r+=this.renderer.list(p,l,a);continue}case"html":{const o=s;r+=this.renderer.html(o.text,o.block);continue}case"paragraph":{const o=s;r+=this.renderer.paragraph(this.parseInline(o.tokens));continue}case"text":{let o=s,l=o.tokens?this.parseInline(o.tokens):o.text;for(;n+1<e.length&&e[n+1].type==="text";)o=e[++n],l+=`
1118
- `+(o.tokens?this.parseInline(o.tokens):o.text);r+=t?this.renderer.paragraph(l):l;continue}default:{const o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}parseInline(e,t){t=t||this.renderer;let r="";for(let n=0;n<e.length;n++){const s=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=o||"";continue}}switch(s.type){case"escape":{const o=s;r+=t.text(o.text);break}case"html":{const o=s;r+=t.html(o.text);break}case"link":{const o=s;r+=t.link(o.href,o.title,this.parseInline(o.tokens,t));break}case"image":{const o=s;r+=t.image(o.href,o.title,o.text);break}case"strong":{const o=s;r+=t.strong(this.parseInline(o.tokens,t));break}case"em":{const o=s;r+=t.em(this.parseInline(o.tokens,t));break}case"codespan":{const o=s;r+=t.codespan(o.text);break}case"br":{r+=t.br();break}case"del":{const o=s;r+=t.del(this.parseInline(o.tokens,t));break}case"text":{const o=s;r+=t.text(o.text);break}default:{const o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}}class ne{constructor(e){x(this,"options");this.options=e||M}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}x(ne,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Gr{constructor(...e){Be(this,ie);Be(this,ye);x(this,"defaults",Ee());x(this,"options",this.setOptions);x(this,"parse",ve(this,ie,Ze).call(this,L.lex,C.parse));x(this,"parseInline",ve(this,ie,Ze).call(this,L.lexInline,C.parseInline));x(this,"Parser",C);x(this,"Renderer",xe);x(this,"TextRenderer",De);x(this,"Lexer",L);x(this,"Tokenizer",me);x(this,"Hooks",ne);this.use(...e)}walkTokens(e,t){var n,s;let r=[];for(const o of e)switch(r=r.concat(t.call(this,o)),o.type){case"table":{const l=o;for(const a of l.header)r=r.concat(this.walkTokens(a.tokens,t));for(const a of l.rows)for(const d of a)r=r.concat(this.walkTokens(d.tokens,t));break}case"list":{const l=o;r=r.concat(this.walkTokens(l.items,t));break}default:{const l=o;(s=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&s[l.type]?this.defaults.extensions.childTokens[l.type].forEach(a=>{r=r.concat(this.walkTokens(l[a],t))}):l.tokens&&(r=r.concat(this.walkTokens(l.tokens,t)))}}return r}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{const n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const o=t.renderers[s.name];o?t.renderers[s.name]=function(...l){let a=s.renderer.apply(this,l);return a===!1&&(a=o.apply(this,l)),a}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=t[s.level];o?o.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),n.extensions=t),r.renderer){const s=this.defaults.renderer||new xe(this.defaults);for(const o in r.renderer){if(!(o in s))throw new Error(`renderer '${o}' does not exist`);if(o==="options")continue;const l=o,a=r.renderer[l],d=s[l];s[l]=(...p)=>{let u=a.apply(s,p);return u===!1&&(u=d.apply(s,p)),u||""}}n.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new me(this.defaults);for(const o in r.tokenizer){if(!(o in s))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const l=o,a=r.tokenizer[l],d=s[l];s[l]=(...p)=>{let u=a.apply(s,p);return u===!1&&(u=d.apply(s,p)),u}}n.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new ne;for(const o in r.hooks){if(!(o in s))throw new Error(`hook '${o}' does not exist`);if(o==="options")continue;const l=o,a=r.hooks[l],d=s[l];ne.passThroughHooks.has(o)?s[l]=p=>{if(this.defaults.async)return Promise.resolve(a.call(s,p)).then(m=>d.call(s,m));const u=a.call(s,p);return d.call(s,u)}:s[l]=(...p)=>{let u=a.apply(s,p);return u===!1&&(u=d.apply(s,p)),u}}n.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,o=r.walkTokens;n.walkTokens=function(l){let a=[];return a.push(o.call(this,l)),s&&(a=a.concat(s.call(this,l))),a}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return L.lex(e,t??this.defaults)}parser(e,t){return C.parse(e,t??this.defaults)}}ie=new WeakSet,Ze=function(e,t){return(r,n)=>{const s={...n},o={...this.defaults,...s};this.defaults.async===!0&&s.async===!1&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);const l=ve(this,ye,$t).call(this,!!o.silent,!!o.async);if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(r):r).then(a=>e(a,o)).then(a=>o.hooks?o.hooks.processAllTokens(a):a).then(a=>o.walkTokens?Promise.all(this.walkTokens(a,o.walkTokens)).then(()=>a):a).then(a=>t(a,o)).then(a=>o.hooks?o.hooks.postprocess(a):a).catch(l);try{o.hooks&&(r=o.hooks.preprocess(r));let a=e(r,o);o.hooks&&(a=o.hooks.processAllTokens(a)),o.walkTokens&&this.walkTokens(a,o.walkTokens);let d=t(a,o);return o.hooks&&(d=o.hooks.postprocess(d)),d}catch(a){return l(a)}}},ye=new WeakSet,$t=function(e,t){return r=>{if(r.message+=`
1119
- Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An error occurred:</p><pre>"+w(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}};const D=new Gr;function b(i,e){return D.parse(i,e)}b.options=b.setOptions=function(i){return D.setOptions(i),b.defaults=D.defaults,nt(b.defaults),b},b.getDefaults=Ee,b.defaults=M,b.use=function(...i){return D.use(...i),b.defaults=D.defaults,nt(b.defaults),b},b.walkTokens=function(i,e){return D.walkTokens(i,e)},b.parseInline=D.parseInline,b.Parser=C,b.parser=C.parse,b.Renderer=xe,b.TextRenderer=De,b.Lexer=L,b.lexer=L.lex,b.Tokenizer=me,b.Hooks=ne,b.parse=b,b.options,b.setOptions,b.use,b.walkTokens,b.parseInline,C.parse,L.lex;const Fr=c.css`
1125
+ `}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,t,r){const n=at(e);if(n===null)return r;e=n;let s='<a href="'+e+'"';return t&&(s+=' title="'+t+'"'),s+=">"+r+"</a>",s}image(e,t,r){const n=at(e);if(n===null)return r;e=n;let s=`<img src="${e}" alt="${r}"`;return t&&(s+=` title="${t}"`),s+=">",s}text(e){return e}}class He{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class C{constructor(e){x(this,"options");x(this,"renderer");x(this,"textRenderer");this.options=e||M,this.options.renderer=this.options.renderer||new xe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new He}static parse(e,t){return new C(t).parse(e)}static parseInline(e,t){return new C(t).parseInline(e)}parse(e,t=!0){let r="";for(let n=0;n<e.length;n++){const s=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const o=s,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type)){r+=l||"";continue}}switch(s.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{const o=s;r+=this.renderer.heading(this.parseInline(o.tokens),o.depth,kr(this.parseInline(o.tokens,this.textRenderer)));continue}case"code":{const o=s;r+=this.renderer.code(o.text,o.lang,!!o.escaped);continue}case"table":{const o=s;let l="",a="";for(let p=0;p<o.header.length;p++)a+=this.renderer.tablecell(this.parseInline(o.header[p].tokens),{header:!0,align:o.align[p]});l+=this.renderer.tablerow(a);let u="";for(let p=0;p<o.rows.length;p++){const m=o.rows[p];a="";for(let d=0;d<m.length;d++)a+=this.renderer.tablecell(this.parseInline(m[d].tokens),{header:!1,align:o.align[d]});u+=this.renderer.tablerow(a)}r+=this.renderer.table(l,u);continue}case"blockquote":{const o=s,l=this.parse(o.tokens);r+=this.renderer.blockquote(l);continue}case"list":{const o=s,l=o.ordered,a=o.start,u=o.loose;let p="";for(let m=0;m<o.items.length;m++){const d=o.items[m],f=d.checked,_=d.task;let z="";if(d.task){const D=this.renderer.checkbox(!!f);u?d.tokens.length>0&&d.tokens[0].type==="paragraph"?(d.tokens[0].text=D+" "+d.tokens[0].text,d.tokens[0].tokens&&d.tokens[0].tokens.length>0&&d.tokens[0].tokens[0].type==="text"&&(d.tokens[0].tokens[0].text=D+" "+d.tokens[0].tokens[0].text)):d.tokens.unshift({type:"text",text:D+" "}):z+=D+" "}z+=this.parse(d.tokens,u),p+=this.renderer.listitem(z,_,!!f)}r+=this.renderer.list(p,l,a);continue}case"html":{const o=s;r+=this.renderer.html(o.text,o.block);continue}case"paragraph":{const o=s;r+=this.renderer.paragraph(this.parseInline(o.tokens));continue}case"text":{let o=s,l=o.tokens?this.parseInline(o.tokens):o.text;for(;n+1<e.length&&e[n+1].type==="text";)o=e[++n],l+=`
1126
+ `+(o.tokens?this.parseInline(o.tokens):o.text);r+=t?this.renderer.paragraph(l):l;continue}default:{const o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}parseInline(e,t){t=t||this.renderer;let r="";for(let n=0;n<e.length;n++){const s=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=o||"";continue}}switch(s.type){case"escape":{const o=s;r+=t.text(o.text);break}case"html":{const o=s;r+=t.html(o.text);break}case"link":{const o=s;r+=t.link(o.href,o.title,this.parseInline(o.tokens,t));break}case"image":{const o=s;r+=t.image(o.href,o.title,o.text);break}case"strong":{const o=s;r+=t.strong(this.parseInline(o.tokens,t));break}case"em":{const o=s;r+=t.em(this.parseInline(o.tokens,t));break}case"codespan":{const o=s;r+=t.codespan(o.text);break}case"br":{r+=t.br();break}case"del":{const o=s;r+=t.del(this.parseInline(o.tokens,t));break}case"text":{const o=s;r+=t.text(o.text);break}default:{const o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}}class ne{constructor(e){x(this,"options");this.options=e||M}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}x(ne,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Gr{constructor(...e){Be(this,ie);Be(this,ye);x(this,"defaults",Ee());x(this,"options",this.setOptions);x(this,"parse",ve(this,ie,Ze).call(this,L.lex,C.parse));x(this,"parseInline",ve(this,ie,Ze).call(this,L.lexInline,C.parseInline));x(this,"Parser",C);x(this,"Renderer",xe);x(this,"TextRenderer",He);x(this,"Lexer",L);x(this,"Tokenizer",me);x(this,"Hooks",ne);this.use(...e)}walkTokens(e,t){var n,s;let r=[];for(const o of e)switch(r=r.concat(t.call(this,o)),o.type){case"table":{const l=o;for(const a of l.header)r=r.concat(this.walkTokens(a.tokens,t));for(const a of l.rows)for(const u of a)r=r.concat(this.walkTokens(u.tokens,t));break}case"list":{const l=o;r=r.concat(this.walkTokens(l.items,t));break}default:{const l=o;(s=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&s[l.type]?this.defaults.extensions.childTokens[l.type].forEach(a=>{r=r.concat(this.walkTokens(l[a],t))}):l.tokens&&(r=r.concat(this.walkTokens(l.tokens,t)))}}return r}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{const n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const o=t.renderers[s.name];o?t.renderers[s.name]=function(...l){let a=s.renderer.apply(this,l);return a===!1&&(a=o.apply(this,l)),a}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=t[s.level];o?o.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),n.extensions=t),r.renderer){const s=this.defaults.renderer||new xe(this.defaults);for(const o in r.renderer){if(!(o in s))throw new Error(`renderer '${o}' does not exist`);if(o==="options")continue;const l=o,a=r.renderer[l],u=s[l];s[l]=(...p)=>{let m=a.apply(s,p);return m===!1&&(m=u.apply(s,p)),m||""}}n.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new me(this.defaults);for(const o in r.tokenizer){if(!(o in s))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const l=o,a=r.tokenizer[l],u=s[l];s[l]=(...p)=>{let m=a.apply(s,p);return m===!1&&(m=u.apply(s,p)),m}}n.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new ne;for(const o in r.hooks){if(!(o in s))throw new Error(`hook '${o}' does not exist`);if(o==="options")continue;const l=o,a=r.hooks[l],u=s[l];ne.passThroughHooks.has(o)?s[l]=p=>{if(this.defaults.async)return Promise.resolve(a.call(s,p)).then(d=>u.call(s,d));const m=a.call(s,p);return u.call(s,m)}:s[l]=(...p)=>{let m=a.apply(s,p);return m===!1&&(m=u.apply(s,p)),m}}n.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,o=r.walkTokens;n.walkTokens=function(l){let a=[];return a.push(o.call(this,l)),s&&(a=a.concat(s.call(this,l))),a}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return L.lex(e,t??this.defaults)}parser(e,t){return C.parse(e,t??this.defaults)}}ie=new WeakSet,Ze=function(e,t){return(r,n)=>{const s={...n},o={...this.defaults,...s};this.defaults.async===!0&&s.async===!1&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);const l=ve(this,ye,$t).call(this,!!o.silent,!!o.async);if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(r):r).then(a=>e(a,o)).then(a=>o.hooks?o.hooks.processAllTokens(a):a).then(a=>o.walkTokens?Promise.all(this.walkTokens(a,o.walkTokens)).then(()=>a):a).then(a=>t(a,o)).then(a=>o.hooks?o.hooks.postprocess(a):a).catch(l);try{o.hooks&&(r=o.hooks.preprocess(r));let a=e(r,o);o.hooks&&(a=o.hooks.processAllTokens(a)),o.walkTokens&&this.walkTokens(a,o.walkTokens);let u=t(a,o);return o.hooks&&(u=o.hooks.postprocess(u)),u}catch(a){return l(a)}}},ye=new WeakSet,$t=function(e,t){return r=>{if(r.message+=`
1127
+ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An error occurred:</p><pre>"+$(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}};const H=new Gr;function b(i,e){return H.parse(i,e)}b.options=b.setOptions=function(i){return H.setOptions(i),b.defaults=H.defaults,nt(b.defaults),b},b.getDefaults=Ee,b.defaults=M,b.use=function(...i){return H.use(...i),b.defaults=H.defaults,nt(b.defaults),b},b.walkTokens=function(i,e){return H.walkTokens(i,e)},b.parseInline=H.parseInline,b.Parser=C,b.parser=C.parse,b.Renderer=xe,b.TextRenderer=He,b.Lexer=L,b.lexer=L.lex,b.Tokenizer=me,b.Hooks=ne,b.parse=b,b.options,b.setOptions,b.use,b.walkTokens,b.parseInline,C.parse,L.lex;const Fr=c.css`
1120
1128
 
1121
1129
  .summary {
1122
1130
  font-size: 1.1rem;
@@ -1277,12 +1285,26 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
1277
1285
  color: var(--terminal-text);
1278
1286
  }
1279
1287
 
1288
+ sl-alert.question::part(base) {
1289
+ border: 1px dashed var(--secondary-color);
1290
+ background-color: var(--terminal-background);
1291
+ }
1292
+ sl-alert.question::part(icon) {
1293
+ color: var(--secondary-color);
1294
+ font-size: 1.5rem;
1295
+ }
1296
+ sl-alert.question > strong {
1297
+ font: 1.2rem var(--font-stack-bold);
1298
+ color: var(--secondary-color);
1299
+ }
1300
+
1301
+
1280
1302
  sl-alert.context::part(base) {
1281
1303
  border: 1px dashed var(--code-border);
1282
1304
  background-color: var(--terminal-background);
1283
1305
  }
1284
1306
  sl-alert.context::part(icon) {
1285
- color: var(--font-color-sub1);
1307
+ color: var(--font-color);
1286
1308
  font-size: 1.5rem;
1287
1309
  }
1288
1310
  sl-alert.context > strong {
@@ -1295,45 +1317,8 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
1295
1317
  padding-top: var(--global-padding);
1296
1318
  padding-bottom: var(--global-padding);
1297
1319
  }
1298
-
1299
- `;var Jr=Object.defineProperty,Xr=Object.getOwnPropertyDescriptor,oe=(i,e,t,r)=>{for(var n=r>1?void 0:r?Xr(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Jr(e,t,n),n};let H=class extends c.LitElement{constructor(){super(),this.apiURL="https://api.pb33f.io/release-notes/"}connectedCallback(){super.connectedCallback(),this.fetchChangelogSummary().then(i=>{this.summaries=i}).catch(i=>{this.error=i})}async fetchChangelogSummary(){const i=await fetch(`${this.apiURL}/${this.project}`);return i.ok?i.json():Promise.reject(`HTTP Error ${i.status}`)}render(){var i,e;if(this.error)return c.html`
1300
- <pb33f-attention-box headerText="unable to fetch changelog" type="error">
1301
- ${this.error}
1302
- </pb33f-attention-box>
1303
- `;if(this.project&&((i=this.summaries)==null?void 0:i.length)>0){const t=n=>parseInt(n.split(".")[2]),r=[];for(let n=0;n<((e=this.summaries)==null?void 0:e.length);n++){const s=this.summaries[n];let o=t(s.tag_name),l=c.html``,a=!1;o==0&&(a=!0,l=c.html`
1304
- <sl-icon name="braces-asterisk" class="major-icon"></sl-icon>`);const d=b.parse(s.body).toString();let p=!1;n==0&&(p=!0),r.push(c.html`
1305
- <pb33f-timeline-item id="release_${s.name}">
1306
- <span slot="icon">${l}</span>
1307
- <span slot="time" class="${a?"major":null}">${s.publish_date}</span>
1308
- <div slot="content">
1309
- <pb33f-release
1310
- .latest="${p}"
1311
- .milestone="${a}"
1312
- name="${s.name}"
1313
- published="${s.published_at}"
1314
- link="${s.html_url}"
1315
- author="${s.author}"
1316
- tarball="${s.tarball_url}"
1317
- authorLink="${s.author_url}"
1318
- authorImage="${s.author_image}">
1319
- ${Z(d)}
1320
- </pb33f-release>
1321
- </div>
1322
- </pb33f-timeline-item>`)}return c.html`
1323
- <pb33f-timeline>
1324
- ${r.map(n=>n)}
1325
- </pb33f-timeline>
1326
- `}else return c.html`
1327
- <pb33f-timeline>
1328
- <pb33f-timeline-item>
1329
- <div slot="content">
1330
- <div class="pb33f-loader">
1331
- <div class="spin"></div>
1332
- fetching changelog for <em>${this.project}</em></div>
1333
- </div>
1334
- </pb33f-timeline-item>
1335
- </pb33f-timeline>
1336
- `}};H.styles=[J,xt,Fr],oe([h.property()],H.prototype,"apiURL",2),oe([h.property()],H.prototype,"project",2),oe([h.state()],H.prototype,"summaries",2),oe([h.state()],H.prototype,"error",2),H=oe([h.customElement("pb33f-changelog")],H);const Kr=c.css`
1320
+
1321
+ `,Jr=c.css`
1337
1322
 
1338
1323
  .summary {
1339
1324
  font-size: 1.1rem;
@@ -1369,6 +1354,7 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
1369
1354
  .published {
1370
1355
  color: var(--font-color-sub1);
1371
1356
  }
1357
+
1372
1358
  hr {
1373
1359
  margin-top: 0;
1374
1360
  border-top: 1px dashed var(--bars-and-borders);
@@ -1400,7 +1386,7 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
1400
1386
  pb33f-kv-view {
1401
1387
  max-width: 500px;
1402
1388
  }
1403
-
1389
+
1404
1390
  @media only screen and (max-width: 800px) {
1405
1391
 
1406
1392
  sl-details {
@@ -1408,8 +1394,7 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
1408
1394
  }
1409
1395
 
1410
1396
  }
1411
- `;var Yr=Object.defineProperty,en=Object.getOwnPropertyDescriptor,T=(i,e,t,r)=>{for(var n=r>1?void 0:r?en(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Yr(e,t,n),n};let $=class extends c.LitElement{constructor(){super()}render(){const i=new Map;if(this.link&&i.set("Release ",`<a href="${this.link}">${this.link}</a>`),this.author&&this.authorImage){let t=this.author;this.author=="daveshanley"&&(t="quobix"),i.set("Author",`<sl-avatar image="${this.authorImage}" label="Avatar of ${t}"></sl-avatar>
1412
- <a href="${this.authorLink}">${t}</a>`)}if(this.author&&!this.authorImage){let t=this.author;this.author=="daveshanley"&&(t="quobix"),i.set("Author",`<a href="${this.authorLink}">${t}</a>`)}this.tarball&&i.set("Tarball",`<a href="${this.tarball}">${this.tarball}</a>`);const e=new I;return e.data=i,e.keyLabel="",e.valueLabel="",c.html`
1397
+ `;var Xr=Object.defineProperty,Kr=Object.getOwnPropertyDescriptor,T=(i,e,t,r)=>{for(var n=r>1?void 0:r?Kr(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Xr(e,t,n),n};let v=class extends c.LitElement{constructor(){super()}open(){this.details!=null&&this.details.show().then(()=>{window.scrollTo({behavior:"smooth",top:this.details.getBoundingClientRect().top-document.body.getBoundingClientRect().top-150})})}render(){const i=new Map;this.link&&i.set("Release ",`<a href="${this.link}">${this.link}</a>`),this.tarball&&i.set("Tarball",`<a href="${this.tarball}">${this.tarball}</a>`);const e=new I;return e.data=i,e.keyLabel="",e.valueLabel="",c.html`
1413
1398
  <sl-details>
1414
1399
  <span class="summary ${this.milestone?"milestone":""} ${this.latest?"latest":""}" slot="summary">
1415
1400
  ${this.name}<slot name="name"></slot>
@@ -1419,16 +1404,41 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
1419
1404
  <p class="published">Published: ${this.published}
1420
1405
  <slot name="published"></slot>
1421
1406
  </p>
1422
- ${Z(this.body)}
1407
+ ${F(this.body)}
1423
1408
  <slot></slot>
1424
1409
  <hr/>
1425
1410
  ${e}
1426
1411
  </sl-details>
1427
- `}};$.styles=[J,Kr],T([h.property()],$.prototype,"name",2),T([h.property()],$.prototype,"body",2),T([h.property()],$.prototype,"published",2),T([h.property()],$.prototype,"link",2),T([h.property()],$.prototype,"author",2),T([h.property()],$.prototype,"authorLink",2),T([h.property()],$.prototype,"authorImage",2),T([h.property()],$.prototype,"tarball",2),T([h.property({type:Boolean})],$.prototype,"milestone",2),T([h.property({type:Boolean})],$.prototype,"latest",2),$=T([h.customElement("pb33f-release")],$);const tn=c.css`
1428
-
1412
+ `}};v.styles=[J,Jr],T([h.property()],v.prototype,"name",2),T([h.property()],v.prototype,"body",2),T([h.property()],v.prototype,"published",2),T([h.property()],v.prototype,"link",2),T([h.property()],v.prototype,"author",2),T([h.property()],v.prototype,"authorLink",2),T([h.property()],v.prototype,"authorImage",2),T([h.property()],v.prototype,"tarball",2),T([h.property({type:Boolean})],v.prototype,"milestone",2),T([h.property({type:Boolean})],v.prototype,"latest",2),T([h.query("sl-details")],v.prototype,"details",2),v=T([h.customElement("pb33f-release")],v);var Yr=Object.defineProperty,en=Object.getOwnPropertyDescriptor,oe=(i,e,t,r)=>{for(var n=r>1?void 0:r?en(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Yr(e,t,n),n};let q=class extends c.LitElement{constructor(){super(),this.apiURL="https://api.pb33f.io/release-notes/"}connectedCallback(){super.connectedCallback(),this.fetchChangelogSummary().then(i=>{this.summaries=i}).catch(i=>{this.error=i}),this.extractHash()}extractHash(){this._linked=window.location.hash.substring(1)}async fetchChangelogSummary(){const i=await fetch(`${this.apiURL}/${this.project}`);return i.ok?i.json():Promise.reject(`HTTP Error ${i.status}`)}render(){var i,e;if(this.error)return c.html`
1413
+ <pb33f-attention-box headerText="unable to fetch changelog" type="error">
1414
+ ${this.error}
1415
+ </pb33f-attention-box>
1416
+ `;if(this.project&&((i=this.summaries)==null?void 0:i.length)>0){const t=s=>parseInt(s.split(".")[2]),r=[];let n=null;for(let s=0;s<((e=this.summaries)==null?void 0:e.length);s++){const o=this.summaries[s];let l=t(o.tag_name),a=c.html``,u=!1;l==0&&(u=!0,a=c.html`
1417
+ <sl-icon name="braces-asterisk" class="major-icon"></sl-icon>`);const p=b.parse(o.body).toString();let m=!1;s==0&&(m=!0);const d=new v;d.latest=m,d.milestone=u,d.name=o.name,d.published=o.published_at,d.link=o.html_url,d.author=o.author,d.tarball=o.tarball_url,d.authorLink=o.author_url,d.authorImage=o.author_image,d.body=p;let f=!1;o.name==this._linked&&(f=!0),f&&(n=d),r.push(c.html`
1418
+ <pb33f-timeline-item id="release_${o.name}">
1419
+ <span slot="icon">${a}</span>
1420
+ <span slot="time" class="${u?"major":null}">${o.publish_date}</span>
1421
+ <div slot="content">
1422
+ ${d}
1423
+ </div>
1424
+ </pb33f-timeline-item>`)}return n&&setTimeout(()=>{n==null||n.open()}),c.html`
1425
+ <pb33f-timeline>
1426
+ ${r.map(s=>s)}
1427
+ </pb33f-timeline>
1428
+ `}else return c.html`
1429
+ <pb33f-timeline>
1430
+ <pb33f-timeline-item>
1431
+ <div slot="content">
1432
+ <div class="pb33f-loader">
1433
+ <div class="spin"></div>
1434
+ fetching changelog for <em>${this.project}</em></div>
1435
+ </div>
1436
+ </pb33f-timeline-item>
1437
+ </pb33f-timeline>
1438
+ `}};q.styles=[J,xt,Fr],oe([h.property()],q.prototype,"apiURL",2),oe([h.property()],q.prototype,"project",2),oe([h.state()],q.prototype,"summaries",2),oe([h.state()],q.prototype,"error",2),q=oe([h.customElement("pb33f-changelog")],q);const tn=c.css`
1429
1439
  sl-alert::part(message) {
1430
1440
  padding-bottom: var(--global-padding);
1431
- color: var(--font-color-sub1);
1441
+ color: var(--font-color);
1432
1442
  }
1433
1443
 
1434
1444
  sl-alert.error::part(message) {
@@ -1437,6 +1447,12 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
1437
1447
 
1438
1448
  sl-alert.warning::part(message) {
1439
1449
  color: var(--warn-300);
1450
+
1451
+ }
1452
+
1453
+ strong {
1454
+ font-weight: normal;
1455
+ font-family: var(--font-stack-bold), monospace;
1440
1456
  }
1441
1457
 
1442
1458
  .attention {
@@ -1475,6 +1491,12 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
1475
1491
  border-left: 5px solid var(--terminal-text);
1476
1492
  }
1477
1493
 
1494
+ .question {
1495
+ color: var(--secondary-color);
1496
+ border-color: var(--secondary-color);
1497
+ border-left: 5px solid var(--secondary-color);
1498
+ }
1499
+
1478
1500
 
1479
1501
  .warning {
1480
1502
  color: var(--warn-300);
@@ -1508,15 +1530,15 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
1508
1530
  box-shadow: 0 0 8px var(--warn-200);
1509
1531
  }
1510
1532
  }
1511
- `;var rn=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,He=(i,e,t,r)=>{for(var n=r>1?void 0:r?nn(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&rn(e,t,n),n};let se=class extends c.LitElement{getIcon(){switch(this.type){case"context":return"braces-asterisk";case"info":return"info-square";case"warning":return"exclamation-triangle";case"error":return"exclamation-square";case"danger":return"exclamation-square";case"success":return"check-square"}}render(){this.type||(this.type="context"),this.type==="danger"&&(this.type="error");let i=c.html``;return this.headerText!=""&&(i=c.html`<strong>${this.headerText}</strong>`),c.html`
1533
+ `;var rn=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,qe=(i,e,t,r)=>{for(var n=r>1?void 0:r?nn(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&rn(e,t,n),n};let se=class extends c.LitElement{constructor(){super(),this.type="context"}getIcon(){switch(this.type){case"context":return"braces-asterisk";case"info":return"info-square";case"warning":return"exclamation-triangle";case"error":return"exclamation-square";case"danger":return"exclamation-square";case"success":return"check-square";case"question":return"question-square"}}render(){var e;this.type||(this.type="context"),this.type==="danger"&&(this.type="error");let i=c.html``;return((e=this.headerText)==null?void 0:e.length)>0&&(i=c.html`<strong>${this.headerText}</strong>`),c.html`
1512
1534
  <div class='attention ${this.type}'>
1513
1535
  <sl-alert class="${this.type}" open>
1514
- <sl-icon slot="icon" name="${this.getIcon()}"></sl-icon>
1536
+ <sl-icon slot="icon" name="${this.getIcon()}" class="${this.headerText?"":"noheader"}"></sl-icon>
1515
1537
  ${i}
1516
1538
  <slot></slot>
1517
1539
  </sl-alert>
1518
1540
  </div>
1519
- `}};se.styles=[xt,tn],He([h.property()],se.prototype,"type",2),He([h.property()],se.prototype,"headerText",2),se=He([h.customElement("pb33f-attention-box")],se);const on=c.css`
1541
+ `}};se.styles=[xt,tn],qe([h.property()],se.prototype,"type",2),qe([h.property()],se.prototype,"headerText",2),se=qe([h.customElement("pb33f-attention-box")],se);const on=c.css`
1520
1542
  :host {
1521
1543
  color: var(--font-color);
1522
1544
  font-family: var(--font-stack), monospace;
@@ -1537,4 +1559,4 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
1537
1559
  //text-decoration: underline;
1538
1560
  //cursor: pointer;
1539
1561
  }
1540
- `;var sn=Object.defineProperty,an=Object.getOwnPropertyDescriptor,kt=(i,e,t,r)=>{for(var n=r>1?void 0:r?an(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&sn(e,t,n),n};let ke=class extends c.LitElement{constructor(){super(...arguments),this.path="/"}replaceBrackets(){const i=/(\{)([\w]+)(\})/gm;let e,t=this.path;for(;(e=i.exec(this.path))!==null;)e.index===i.lastIndex&&i.lastIndex++,e.forEach((r,n)=>{n===1&&(t=t.replaceAll(r,'<span class="bracket">'+r+"</span>")),n===2&&(t=t.replaceAll(r,'<span class="param">'+r+"</span>")),n===3&&(t=t.replaceAll(r,'<span class="bracket">'+r+"</span>"))});return c.html`${Z(t)}`}render(){return c.html`${this.replaceBrackets()}`}};ke.styles=on,kt([h.property()],ke.prototype,"path",2),ke=kt([h.customElement("pb33f-render-operation-path")],ke),_t.setBasePath("/shoelace")});
1562
+ `;var sn=Object.defineProperty,an=Object.getOwnPropertyDescriptor,kt=(i,e,t,r)=>{for(var n=r>1?void 0:r?an(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&sn(e,t,n),n};let ke=class extends c.LitElement{constructor(){super(...arguments),this.path="/"}replaceBrackets(){const i=/(\{)([\w]+)(\})/gm;let e,t=this.path;for(;(e=i.exec(this.path))!==null;)e.index===i.lastIndex&&i.lastIndex++,e.forEach((r,n)=>{n===1&&(t=t.replaceAll(r,'<span class="bracket">'+r+"</span>")),n===2&&(t=t.replaceAll(r,'<span class="param">'+r+"</span>")),n===3&&(t=t.replaceAll(r,'<span class="bracket">'+r+"</span>"))});return c.html`${F(t)}`}render(){return c.html`${this.replaceBrackets()}`}};ke.styles=on,kt([h.property()],ke.prototype,"path",2),ke=kt([h.customElement("pb33f-render-operation-path")],ke),_t.setBasePath("/shoelace")});