@pb33f/cowboy-components 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/attention-box/attention-box.css.js +13 -0
- package/dist/components/attention-box/attention-box.js +7 -3
- package/dist/components/changelog/changelog.js +1 -3
- package/dist/components/changelog/release.css.js +17 -6
- package/dist/components/http-method/http-method.js +1 -1
- package/dist/components/kv-view/kv-view.d.ts +0 -1
- package/dist/components/kv-view/kv-view.js +6 -2
- package/dist/components/render-operation-path/render-operation-path.css.d.ts +2 -0
- package/dist/components/render-operation-path/render-operation-path.css.js +24 -0
- package/dist/components/render-operation-path/render-operation-path.d.ts +7 -0
- package/dist/components/render-operation-path/render-operation-path.js +51 -0
- package/dist/cowboy-components.d.ts +13 -12
- package/dist/cowboy-components.js +13 -12
- package/dist/cowboy-components.umd.cjs +238 -65
- package/dist/css/cowboy-components.css +393 -0
- package/dist/css/pb33f-theme.css +192 -0
- package/dist/css/syntax.css.d.ts +2 -0
- package/dist/css/syntax.css.js +129 -0
- package/dist/style.css +1 -1
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(c,h){typeof exports=="object"&&typeof module<"u"?h(require("lit"),require("lit/decorators.js"),require("prismjs"),require("@shoelace-style/shoelace/dist/utilities/base-path.js")):typeof define=="function"&&define.amd?define(["lit","lit/decorators.js","prismjs","@shoelace-style/shoelace/dist/utilities/base-path.js"],h):(c=typeof globalThis<"u"?globalThis:c||self,h(c.lit,c["lit/decorators"].js,c.prismjs,c.basePath))})(this,function(c,h,y,
|
|
1
|
+
(function(c,h){typeof exports=="object"&&typeof module<"u"?h(require("lit"),require("lit/decorators.js"),require("prismjs"),require("@shoelace-style/shoelace/dist/utilities/base-path.js")):typeof define=="function"&&define.amd?define(["lit","lit/decorators.js","prismjs","@shoelace-style/shoelace/dist/utilities/base-path.js"],h):(c=typeof globalThis<"u"?globalThis:c||self,h(c.lit,c["lit/decorators"].js,c.prismjs,c.basePath))})(this,function(c,h,y,_t){"use strict";var ln=Object.defineProperty;var cn=(c,h,y)=>h in c?ln(c,h,{enumerable:!0,configurable:!0,writable:!0,value:y}):c[h]=y;var x=(c,h,y)=>(cn(c,typeof h!="symbol"?h+"":h,y),y),pn=(c,h,y)=>{if(!h.has(c))throw TypeError("Cannot "+y)};var Be=(c,h,y)=>{if(h.has(c))throw TypeError("Cannot add the same private member more than once");h instanceof WeakSet?h.add(c):h.set(c,y)};var ve=(c,h,y)=>(pn(c,h,"access private method"),y);var ie,Ze,ye,$t;const At=c.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
column-gap: 10px;
|
|
@@ -39,23 +39,23 @@
|
|
|
39
39
|
border-radius: 0;
|
|
40
40
|
text-transform: uppercase;
|
|
41
41
|
}
|
|
42
|
-
`;var
|
|
42
|
+
`;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
43
|
<sl-button class="copy" size="small" @click=${this.copyToClipboard}>copy</sl-button>
|
|
44
44
|
<pre><slot class="command"></slot></pre>
|
|
45
|
-
`}};
|
|
45
|
+
`}};we.styles=At,we=Lt([h.customElement("terminal-example")],we);const Ct=c.css`
|
|
46
46
|
|
|
47
47
|
sl-icon-button::part(base) {
|
|
48
48
|
font-size: 1.4rem;
|
|
49
49
|
color: var(--secondary-color);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
`;var
|
|
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`
|
|
53
53
|
<sl-icon-button
|
|
54
54
|
@click=${this.toggleTheme}
|
|
55
55
|
name="${i}"
|
|
56
56
|
label="Settings">
|
|
57
57
|
</sl-icon-button>
|
|
58
|
-
`}};ae.styles=
|
|
58
|
+
`}};ae.styles=Ct,Ue([h.state()],ae.prototype,"theme",2),ae=Ue([h.customElement("pb33f-theme-switcher")],ae);const Rt=c.css`
|
|
59
59
|
a, a:visited, a:active {
|
|
60
60
|
text-decoration: none;
|
|
61
61
|
color: var(--primary-color);
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
to {
|
|
156
156
|
opacity: 0;
|
|
157
157
|
}
|
|
158
|
-
}`;var
|
|
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`
|
|
159
159
|
<header class="pb33f-header">
|
|
160
160
|
<div class="logo">
|
|
161
161
|
<span class="caret">$</span>
|
|
@@ -164,11 +164,11 @@
|
|
|
164
164
|
<div class="header-space">
|
|
165
165
|
<slot></slot>
|
|
166
166
|
</div>
|
|
167
|
-
</header>`}};
|
|
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);/**
|
|
168
168
|
* @license
|
|
169
169
|
* Copyright 2021 Google LLC
|
|
170
170
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
171
|
-
*/function*
|
|
171
|
+
*/function*Qe(i,e){if(i!==void 0){let t=0;for(const r of i)yield e(r,t++)}}const Ot=c.css`
|
|
172
172
|
.kv-table > table {
|
|
173
173
|
width: 100%;
|
|
174
174
|
border-spacing: 0;
|
|
@@ -251,17 +251,17 @@
|
|
|
251
251
|
* @license
|
|
252
252
|
* Copyright 2017 Google LLC
|
|
253
253
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
254
|
-
*/const
|
|
255
|
-
\f\r]`,
|
|
256
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
254
|
+
*/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=`[
|
|
255
|
+
\f\r]`,G=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Je=/-->/g,Xe=/>/g,R=RegExp(`>|${_e}(?:([^\\s"'>=/]+)(${_e}*=${_e}*(?:[^
|
|
256
|
+
\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");/**
|
|
257
257
|
* @license
|
|
258
258
|
* Copyright 2017 Google LLC
|
|
259
259
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
260
|
-
*/const
|
|
260
|
+
*/const Vt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Qt=i=>(...e)=>({_$litDirective$:i,values:e});class jt{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}/**
|
|
261
261
|
* @license
|
|
262
262
|
* Copyright 2017 Google LLC
|
|
263
263
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
264
|
-
*/class
|
|
264
|
+
*/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`
|
|
265
265
|
|
|
266
266
|
code,
|
|
267
267
|
pre {
|
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
}
|
|
374
374
|
|
|
375
375
|
|
|
376
|
-
`,
|
|
376
|
+
`,J=c.css`
|
|
377
377
|
|
|
378
378
|
a, a:visited, a:active {
|
|
379
379
|
text-decoration: none;
|
|
@@ -487,19 +487,146 @@
|
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
|
|
490
|
-
|
|
491
|
-
|
|
490
|
+
`,Gt=c.css`
|
|
491
|
+
/**
|
|
492
|
+
* okaidia theme for JavaScript, CSS and HTML
|
|
493
|
+
* Loosely based on Monokai textmate theme by http://www.monokai.nl/
|
|
494
|
+
* @author ocodia
|
|
495
|
+
*/
|
|
496
|
+
|
|
497
|
+
code[class*="language-"],
|
|
498
|
+
pre[class*="language-"] {
|
|
499
|
+
color: #f8f8f2;
|
|
500
|
+
background: none;
|
|
501
|
+
text-shadow: 0 1px rgba(0, 0, 0, 0.3);
|
|
502
|
+
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
503
|
+
font-size: 1em;
|
|
504
|
+
text-align: left;
|
|
505
|
+
white-space: pre;
|
|
506
|
+
word-spacing: normal;
|
|
507
|
+
word-break: normal;
|
|
508
|
+
word-wrap: normal;
|
|
509
|
+
line-height: 1.5;
|
|
510
|
+
|
|
511
|
+
-moz-tab-size: 4;
|
|
512
|
+
-o-tab-size: 4;
|
|
513
|
+
tab-size: 4;
|
|
514
|
+
|
|
515
|
+
-webkit-hyphens: none;
|
|
516
|
+
-moz-hyphens: none;
|
|
517
|
+
-ms-hyphens: none;
|
|
518
|
+
hyphens: none;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/* Code blocks */
|
|
522
|
+
|
|
523
|
+
pre[class*="language-"] {
|
|
524
|
+
padding: 1em;
|
|
525
|
+
margin: .5em 0;
|
|
526
|
+
overflow: auto;
|
|
527
|
+
border-radius: 0.3em;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
:not(pre) > code[class*="language-"],
|
|
531
|
+
pre[class*="language-"] {
|
|
532
|
+
background: #272822;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/* Inline code */
|
|
536
|
+
|
|
537
|
+
:not(pre) > code[class*="language-"] {
|
|
538
|
+
padding: .1em;
|
|
539
|
+
border-radius: .3em;
|
|
540
|
+
white-space: normal;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.token.comment,
|
|
544
|
+
.token.prolog,
|
|
545
|
+
.token.doctype,
|
|
546
|
+
.token.cdata {
|
|
547
|
+
color: #8292a2;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.token.punctuation {
|
|
551
|
+
color: #f8f8f2;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.token.namespace {
|
|
555
|
+
opacity: .7;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.token.property,
|
|
559
|
+
.token.tag,
|
|
560
|
+
.token.constant,
|
|
561
|
+
.token.symbol,
|
|
562
|
+
.token.deleted {
|
|
563
|
+
color: #f92672;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.token.boolean,
|
|
567
|
+
.token.number {
|
|
568
|
+
color: #ae81ff;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.token.selector,
|
|
572
|
+
.token.attr-name,
|
|
573
|
+
.token.string,
|
|
574
|
+
.token.char,
|
|
575
|
+
.token.builtin,
|
|
576
|
+
.token.inserted {
|
|
577
|
+
color: #a6e22e;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.token.operator,
|
|
581
|
+
.token.entity,
|
|
582
|
+
.token.url,
|
|
583
|
+
.language-css .token.string,
|
|
584
|
+
.style .token.string,
|
|
585
|
+
.token.variable {
|
|
586
|
+
color: #f8f8f2;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.token.atrule,
|
|
590
|
+
.token.attr-value,
|
|
591
|
+
.token.function,
|
|
592
|
+
.token.class-name {
|
|
593
|
+
color: #e6db74;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.token.keyword {
|
|
597
|
+
color: #66d9ef;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.token.regex,
|
|
601
|
+
.token.important {
|
|
602
|
+
color: #fd971f;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.token.important,
|
|
606
|
+
.token.bold {
|
|
607
|
+
font-weight: bold;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.token.italic {
|
|
611
|
+
font-style: italic;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.token.entity {
|
|
615
|
+
cursor: help;
|
|
616
|
+
}
|
|
617
|
+
`;var Ft=Object.defineProperty,Jt=Object.getOwnPropertyDescriptor,de=(i,e,t,r)=>{for(var n=r>1?void 0:r?Jt(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&&Ft(e,t,n),n};y.manual=!0,document.removeEventListener("DOMContentLoaded",y.highlightAll);let I=class extends c.LitElement{constructor(){super(),this._data=new Map,this.keyLabel="Key",this.valueLabel="Value"}set data(i){i&&i.size>0&&(this._data=i)}render(){var s;let i=c.html``;this._data&&(i=c.html`
|
|
618
|
+
${Qe(this._data,o=>typeof o[1]=="object"?c.html`
|
|
492
619
|
<tr>
|
|
493
620
|
<td><code>${o[0]}</code></td>
|
|
494
621
|
<td>
|
|
495
622
|
<pre style=""><code
|
|
496
|
-
style="white-space: pre-wrap; word-wrap: break-word;">${
|
|
623
|
+
style="white-space: pre-wrap; word-wrap: break-word;">${Z(y.highlight(JSON.stringify(o[1],null,2),y.languages.json,"json"))}</pre>
|
|
497
624
|
</code>
|
|
498
625
|
</td>
|
|
499
626
|
</tr>`:c.html`
|
|
500
627
|
<tr>
|
|
501
628
|
<td><code>${o[0]}</code></td>
|
|
502
|
-
<td>${
|
|
629
|
+
<td>${Z(o[1])}</td>
|
|
503
630
|
</tr>`)}
|
|
504
631
|
`);const e=c.html`
|
|
505
632
|
<div class="empty-data">
|
|
@@ -522,7 +649,7 @@
|
|
|
522
649
|
</tbody>
|
|
523
650
|
</table>
|
|
524
651
|
</div>
|
|
525
|
-
`,n=((s=this._data)==null?void 0:s.size)>0?r:e;return c.html`${n}`}};I.styles=[
|
|
652
|
+
`,n=((s=this._data)==null?void 0:s.size)>0?r:e;return c.html`${n}`}};I.styles=[Wt,J,Gt,Ot],de([h.property()],I.prototype,"keyLabel",2),de([h.property()],I.prototype,"valueLabel",2),de([h.state()],I.prototype,"_data",2),I=de([h.customElement("pb33f-kv-view")],I);const Xt=c.css`
|
|
526
653
|
.prop-type-table > table > thead > tr > th {
|
|
527
654
|
font-family: var(--font-stack-bold), sans-serif;
|
|
528
655
|
background-color: var(--table-header-background-solid);
|
|
@@ -628,8 +755,8 @@
|
|
|
628
755
|
margin-bottom: 10px;
|
|
629
756
|
}
|
|
630
757
|
|
|
631
|
-
`;var
|
|
632
|
-
${
|
|
758
|
+
`;var Kt=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor,X=(i,e,t,r)=>{for(var n=r>1?void 0:r?Yt(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&&Kt(e,t,n),n};let O=class extends c.LitElement{constructor(){super(),this.propertyLabel="Property",this.typeLabel="Type",this.valueLabel="Value",this._data=[]}set data(i){this._data=i}render(){var n;let i=c.html``;this._data&&(i=c.html`
|
|
759
|
+
${Qe(this._data,s=>{var l,a;if(s.type!=="field")return c.html`
|
|
633
760
|
<tr>
|
|
634
761
|
<td><code>${s.name}</code></td>
|
|
635
762
|
<td><code>${s.type}</code></td>
|
|
@@ -644,7 +771,7 @@
|
|
|
644
771
|
<tr>
|
|
645
772
|
<td><code>${s.name}</code></td>
|
|
646
773
|
<td>${s.type}</td>
|
|
647
|
-
<td>${
|
|
774
|
+
<td>${Z(o)}</td>
|
|
648
775
|
</tr>`})}
|
|
649
776
|
`);const e=c.html`
|
|
650
777
|
<div class="empty-data">
|
|
@@ -666,7 +793,7 @@
|
|
|
666
793
|
</tbody>
|
|
667
794
|
</table>
|
|
668
795
|
</div>
|
|
669
|
-
`,r=((n=this._data)==null?void 0:n.length)>0?t:e;return c.html`${r}`}};O.styles=[
|
|
796
|
+
`,r=((n=this._data)==null?void 0:n.length)>0?t:e;return c.html`${r}`}};O.styles=[J,Xt],X([h.property()],O.prototype,"propertyLabel",2),X([h.property()],O.prototype,"typeLabel",2),X([h.property()],O.prototype,"valueLabel",2),X([h.state()],O.prototype,"_data",2),O=X([h.customElement("pb33f-http-http-property-view")],O);const er=c.css`
|
|
670
797
|
|
|
671
798
|
pb33f-timeline-item {
|
|
672
799
|
width: 100%;
|
|
@@ -717,7 +844,7 @@
|
|
|
717
844
|
|
|
718
845
|
}
|
|
719
846
|
}
|
|
720
|
-
`;var
|
|
847
|
+
`;var tr=Object.defineProperty,rr=Object.getOwnPropertyDescriptor,nr=(i,e,t,r)=>{for(var n=r>1?void 0:r?rr(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&&tr(e,t,n),n};let ze=class extends c.LitElement{constructor(){super()}render(){return c.html`
|
|
721
848
|
<div class="start">
|
|
722
849
|
<div class="ball-start"></div>
|
|
723
850
|
</div>
|
|
@@ -725,7 +852,7 @@
|
|
|
725
852
|
<div class="end">
|
|
726
853
|
<div class="ball-end"></div>
|
|
727
854
|
</div>
|
|
728
|
-
`}};
|
|
855
|
+
`}};ze.styles=er,ze=nr([h.customElement("pb33f-timeline")],ze);const or=c.css`
|
|
729
856
|
:host {
|
|
730
857
|
display: flex;
|
|
731
858
|
position: relative;
|
|
@@ -786,7 +913,7 @@
|
|
|
786
913
|
}
|
|
787
914
|
|
|
788
915
|
|
|
789
|
-
`;var
|
|
916
|
+
`;var sr=Object.defineProperty,ir=Object.getOwnPropertyDescriptor,ar=(i,e,t,r)=>{for(var n=r>1?void 0:r?ir(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&&sr(e,t,n),n};let Le=class extends c.LitElement{constructor(){super()}render(){return c.html`
|
|
790
917
|
<div class="icon">
|
|
791
918
|
<div class="timeline"></div>
|
|
792
919
|
<div class="timeline-icon">
|
|
@@ -796,7 +923,7 @@
|
|
|
796
923
|
<div class="content">
|
|
797
924
|
<slot name="time" class="request-time"></slot>
|
|
798
925
|
<slot name="content" class="timeline-content"></slot>
|
|
799
|
-
</div>`}};
|
|
926
|
+
</div>`}};Le.styles=or,Le=ar([h.customElement("pb33f-timeline-item")],Le);function lr(i){switch(i.toLowerCase()){case"get":return"success";case"post":return"primary";case"put":return"primary";case"delete":return"danger";case"patch":return"warning";default:return"neutral"}}const cr=c.css`
|
|
800
927
|
sl-tag.method {
|
|
801
928
|
width: 80px;
|
|
802
929
|
text-align: center;
|
|
@@ -816,10 +943,10 @@
|
|
|
816
943
|
width: 100%;
|
|
817
944
|
display: inline-block;
|
|
818
945
|
}
|
|
819
|
-
`;var
|
|
820
|
-
<sl-tag variant="${
|
|
946
|
+
`;var pr=Object.defineProperty,hr=Object.getOwnPropertyDescriptor,Ce=(i,e,t,r)=>{for(var n=r>1?void 0:r?hr(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&&pr(e,t,n),n};let K=class extends c.LitElement{constructor(){super(),this.lower=!1,this.method="GET"}render(){return c.html`
|
|
947
|
+
<sl-tag variant="${lr(this.method)}" class="method">
|
|
821
948
|
${this.lower?this.method.toLowerCase():this.method.toUpperCase()}</sl-tag>
|
|
822
|
-
`}};K.styles=
|
|
949
|
+
`}};K.styles=cr,Ce([h.property()],K.prototype,"method",2),Ce([h.property({type:Boolean})],K.prototype,"lower",2),K=Ce([h.customElement("pb33f-http-method")],K);const dr=c.css`
|
|
823
950
|
|
|
824
951
|
.mailing-list {
|
|
825
952
|
padding-left: 10px;
|
|
@@ -917,7 +1044,7 @@
|
|
|
917
1044
|
}
|
|
918
1045
|
|
|
919
1046
|
|
|
920
|
-
`;var
|
|
1047
|
+
`;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`
|
|
921
1048
|
<div class="mailing-list">
|
|
922
1049
|
<div class="subscribed">
|
|
923
1050
|
<header>
|
|
@@ -940,21 +1067,21 @@
|
|
|
940
1067
|
</div>
|
|
941
1068
|
</div>
|
|
942
1069
|
</div>
|
|
943
|
-
`}};v.styles=[
|
|
1070
|
+
`}};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={"&":"&","<":"<",">":">",'"':""","'":"'"},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(`
|
|
944
1071
|
`).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(`
|
|
945
|
-
`)}class me{constructor(e){x(this,"options");x(this,"rules");x(this,"lexer");this.options=e||
|
|
946
|
-
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],n=
|
|
1072
|
+
`)}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,`
|
|
1073
|
+
`)}}}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,""),`
|
|
947
1074
|
`),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(`
|
|
948
|
-
`,1)[0].replace(/^\t+/,
|
|
1075
|
+
`,1)[0].replace(/^\t+/,Ne=>" ".repeat(3*Ne.length)),m=e.split(`
|
|
949
1076
|
`,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+`
|
|
950
|
-
`,e=e.substring(m.length+1),p=!0),!p){const
|
|
951
|
-
`,1)[0];if(m=
|
|
952
|
-
`+m.slice(f);else{if(_||u.search(/[^ ]/)>=4||
|
|
953
|
-
`+m}!_&&!m.trim()&&(_=!0),l+=
|
|
954
|
-
`,e=e.substring(
|
|
955
|
-
`):[],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(
|
|
956
|
-
`?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=
|
|
957
|
-
]`).replace("lheading",
|
|
1077
|
+
`,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(`
|
|
1078
|
+
`,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+=`
|
|
1079
|
+
`+m.slice(f);else{if(_||u.search(/[^ ]/)>=4||vt.test(u)||wt.test(u)||yt.test(u))break;a+=`
|
|
1080
|
+
`+m}!_&&!m.trim()&&(_=!0),l+=qe+`
|
|
1081
|
+
`,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(`
|
|
1082
|
+
`):[],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)===`
|
|
1083
|
+
`?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} *[^
|
|
1084
|
+
]`).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,`
|
|
958
1085
|
`),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+=`
|
|
959
1086
|
`: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+=`
|
|
960
1087
|
`+r.raw,n.text+=`
|
|
@@ -964,7 +1091,7 @@
|
|
|
964
1091
|
`+r.raw,n.text+=`
|
|
965
1092
|
`+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+=`
|
|
966
1093
|
`+r.raw,n.text+=`
|
|
967
|
-
`+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||
|
|
1094
|
+
`+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$/,"")+`
|
|
968
1095
|
`,n?'<pre><code class="language-'+w(n)+'">'+(r?e:w(e,!0))+`</code></pre>
|
|
969
1096
|
`:"<pre><code>"+(r?e:w(e,!0))+`</code></pre>
|
|
970
1097
|
`}blockquote(e){return`<blockquote>
|
|
@@ -982,9 +1109,9 @@ ${e}</blockquote>
|
|
|
982
1109
|
`}tablerow(e){return`<tr>
|
|
983
1110
|
${e}</tr>
|
|
984
1111
|
`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
|
|
985
|
-
`}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=
|
|
986
|
-
`+(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||
|
|
987
|
-
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
|
|
1112
|
+
`}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+=`
|
|
1113
|
+
`+(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+=`
|
|
1114
|
+
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`
|
|
988
1115
|
|
|
989
1116
|
.summary {
|
|
990
1117
|
font-size: 1.1rem;
|
|
@@ -1077,7 +1204,7 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
|
|
|
1077
1204
|
}
|
|
1078
1205
|
}
|
|
1079
1206
|
|
|
1080
|
-
`,
|
|
1207
|
+
`,xt=c.css`
|
|
1081
1208
|
|
|
1082
1209
|
strong {
|
|
1083
1210
|
display: block;
|
|
@@ -1164,13 +1291,13 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
|
|
|
1164
1291
|
padding-bottom: var(--global-padding);
|
|
1165
1292
|
}
|
|
1166
1293
|
|
|
1167
|
-
`;var
|
|
1294
|
+
`;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`
|
|
1168
1295
|
<pb33f-attention-box headerText="unable to fetch changelog" type="error">
|
|
1169
1296
|
${this.error}
|
|
1170
1297
|
</pb33f-attention-box>
|
|
1171
1298
|
`;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`
|
|
1172
|
-
<sl-icon name="braces-asterisk" class="major-icon"></sl-icon>`);const d=b.parse(s.body).toString();let p=!1;n==0&&(p=!0),
|
|
1173
|
-
<pb33f-timeline-item>
|
|
1299
|
+
<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`
|
|
1300
|
+
<pb33f-timeline-item id="release_${s.name}">
|
|
1174
1301
|
<span slot="icon">${l}</span>
|
|
1175
1302
|
<span slot="time" class="${a?"major":null}">${s.publish_date}</span>
|
|
1176
1303
|
<div slot="content">
|
|
@@ -1184,7 +1311,7 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
|
|
|
1184
1311
|
tarball="${s.tarball_url}"
|
|
1185
1312
|
authorLink="${s.author_url}"
|
|
1186
1313
|
authorImage="${s.author_image}">
|
|
1187
|
-
${
|
|
1314
|
+
${Z(d)}
|
|
1188
1315
|
</pb33f-release>
|
|
1189
1316
|
</div>
|
|
1190
1317
|
</pb33f-timeline-item>`)}return c.html`
|
|
@@ -1201,7 +1328,7 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
|
|
|
1201
1328
|
</div>
|
|
1202
1329
|
</pb33f-timeline-item>
|
|
1203
1330
|
</pb33f-timeline>
|
|
1204
|
-
`}};
|
|
1331
|
+
`}};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`
|
|
1205
1332
|
|
|
1206
1333
|
.summary {
|
|
1207
1334
|
font-size: 1.1rem;
|
|
@@ -1209,8 +1336,12 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
|
|
|
1209
1336
|
color: var(--secondary-color);
|
|
1210
1337
|
}
|
|
1211
1338
|
|
|
1339
|
+
sl-details {
|
|
1340
|
+
max-width: 780px;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1212
1343
|
sl-details::part(header) {
|
|
1213
|
-
padding-top:
|
|
1344
|
+
padding-top: 15px;
|
|
1214
1345
|
height: 15px;
|
|
1215
1346
|
}
|
|
1216
1347
|
|
|
@@ -1255,17 +1386,24 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
|
|
|
1255
1386
|
text-shadow: 0 0 1rem var(--terminal-text-shadow);
|
|
1256
1387
|
font-size: 1.2rem;
|
|
1257
1388
|
}
|
|
1258
|
-
|
|
1389
|
+
|
|
1390
|
+
|
|
1259
1391
|
html[theme="light"] .latest {
|
|
1260
1392
|
text-shadow: none;
|
|
1261
1393
|
}
|
|
1394
|
+
|
|
1395
|
+
pb33f-kv-view {
|
|
1396
|
+
max-width: 500px;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
@media only screen and (max-width: 800px) {
|
|
1262
1400
|
|
|
1263
|
-
|
|
1264
|
-
;
|
|
1265
|
-
|
|
1266
|
-
|
|
1401
|
+
sl-details {
|
|
1402
|
+
max-width: 350px;
|
|
1403
|
+
}
|
|
1267
1404
|
|
|
1268
|
-
|
|
1405
|
+
}
|
|
1406
|
+
`;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>
|
|
1269
1407
|
<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`
|
|
1270
1408
|
<sl-details>
|
|
1271
1409
|
<span class="summary ${this.milestone?"milestone":""} ${this.latest?"latest":""}" slot="summary">
|
|
@@ -1276,13 +1414,26 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
|
|
|
1276
1414
|
<p class="published">Published: ${this.published}
|
|
1277
1415
|
<slot name="published"></slot>
|
|
1278
1416
|
</p>
|
|
1279
|
-
${
|
|
1417
|
+
${Z(this.body)}
|
|
1280
1418
|
<slot></slot>
|
|
1281
1419
|
<hr/>
|
|
1282
1420
|
${e}
|
|
1283
1421
|
</sl-details>
|
|
1284
|
-
`}};$.styles=[
|
|
1422
|
+
`}};$.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`
|
|
1423
|
+
|
|
1424
|
+
sl-alert::part(message) {
|
|
1425
|
+
padding-bottom: var(--global-padding);
|
|
1426
|
+
color: var(--font-color-sub1);
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
sl-alert.error::part(message) {
|
|
1430
|
+
color: var(--error-font-color);
|
|
1431
|
+
}
|
|
1285
1432
|
|
|
1433
|
+
sl-alert.warning::part(message) {
|
|
1434
|
+
color: var(--warn-300);
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1286
1437
|
.attention {
|
|
1287
1438
|
margin-top: var(--global-space);
|
|
1288
1439
|
margin-bottom: var(--global-space);
|
|
@@ -1352,12 +1503,34 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
|
|
|
1352
1503
|
box-shadow: 0 0 8px var(--warn-200);
|
|
1353
1504
|
}
|
|
1354
1505
|
}
|
|
1355
|
-
`;var
|
|
1506
|
+
`;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`
|
|
1356
1507
|
<div class='attention ${this.type}'>
|
|
1357
1508
|
<sl-alert class="${this.type}" open>
|
|
1358
1509
|
<sl-icon slot="icon" name="${this.getIcon()}"></sl-icon>
|
|
1359
|
-
|
|
1510
|
+
${i}
|
|
1360
1511
|
<slot></slot>
|
|
1361
1512
|
</sl-alert>
|
|
1362
1513
|
</div>
|
|
1363
|
-
`}};se.styles=[
|
|
1514
|
+
`}};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`
|
|
1515
|
+
:host {
|
|
1516
|
+
color: var(--font-color);
|
|
1517
|
+
font-family: var(--font-stack), monospace;
|
|
1518
|
+
font-size: 0.9rem;
|
|
1519
|
+
}
|
|
1520
|
+
.bracket {
|
|
1521
|
+
color: var(--secondary-color);
|
|
1522
|
+
font-family: var(--font-stack-bold), monospace;
|
|
1523
|
+
text-shadow: 0 0 10px var(--secondary-color);
|
|
1524
|
+
}
|
|
1525
|
+
.param {
|
|
1526
|
+
color: var(--primary-color);
|
|
1527
|
+
font-family: var(--font-stack-bold), monospace;
|
|
1528
|
+
text-shadow: 0 0 10px var(--primary-color);
|
|
1529
|
+
font-weight: normal;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
.param:hover {
|
|
1533
|
+
//text-decoration: underline;
|
|
1534
|
+
//cursor: pointer;
|
|
1535
|
+
}
|
|
1536
|
+
`;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")});
|