@cas-smartdesign/list 6.4.0 → 6.5.1
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/docs/doc.mjs +66 -67
- package/dist/docs/single-select.js +1 -1
- package/dist/list-with-externals.js +30 -23
- package/dist/list-with-externals.js.map +4 -4
- package/dist/list.mjs +25 -25
- package/dist/list.mjs.map +1 -1
- package/npm-third-party-licenses.json +10 -0
- package/package.json +3 -3
package/dist/docs/doc.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./multi-select.js","./sample-data.mjs","./single-select.js","./trigger-only.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const
|
|
2
|
+
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const c of i)if(c.type==="childList")for(const a of c.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const c={};return i.integrity&&(c.integrity=i.integrity),i.referrerPolicy&&(c.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?c.credentials="include":i.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function n(i){if(i.ep)return;i.ep=!0;const c=t(i);fetch(i.href,c)}})();const Fs="modulepreload",Hs=function(s,e){return new URL(s,e).href},Gi={},vt=function(e,t,n){let i=Promise.resolve();if(t&&t.length>0){let h=function(r){return Promise.all(r.map(u=>Promise.resolve(u).then(o=>({status:"fulfilled",value:o}),o=>({status:"rejected",reason:o}))))};const a=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),b=p?.nonce||p?.getAttribute("nonce");i=h(t.map(r=>{if(r=Hs(r,n),r in Gi)return;Gi[r]=!0;const u=r.endsWith(".css"),o=u?'[rel="stylesheet"]':"";if(!!n)for(let m=a.length-1;m>=0;m--){const g=a[m];if(g.href===r&&(!u||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${o}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Fs,u||(f.as="script"),f.crossOrigin="",f.href=r,b&&f.setAttribute("nonce",b),document.head.appendChild(f),u)return new Promise((m,g)=>{f.addEventListener("load",m),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${r}`)))})}))}function c(a){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=a,window.dispatchEvent(p),!p.defaultPrevented)throw a}return i.then(a=>{for(const p of a||[])p.status==="rejected"&&c(p.reason);return e().catch(c)})},qs=`<!-- Load element with all dependencies directly -->
|
|
3
3
|
<div id="declarative-example">
|
|
4
4
|
<div id="notification"></div>
|
|
5
5
|
<script src="./list-with-externals.js"><\/script>
|
|
@@ -10,8 +10,8 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./multi-select.js","./
|
|
|
10
10
|
<sd-list-item caption="Gunner Dewsbury" description="Student" icon="icon.svg"></sd-list-item>
|
|
11
11
|
</sd-list>
|
|
12
12
|
</div>
|
|
13
|
-
`,
|
|
14
|
-
`,
|
|
13
|
+
`,Ws=`<h3 id="declarative-example---sd-list-items">Declarative example - sd-list-items</h3>
|
|
14
|
+
`,Gs=`import List from "@cas-smartdesign/list";
|
|
15
15
|
|
|
16
16
|
List.ensureDefined();
|
|
17
17
|
|
|
@@ -25,7 +25,7 @@ list.addEventListener("selection", (event: CustomEvent) => {
|
|
|
25
25
|
event.detail.selected ? "selected" : "deselected"
|
|
26
26
|
} Modifier pressed: \${event.detail.hasModifier}\`;
|
|
27
27
|
});
|
|
28
|
-
`,
|
|
28
|
+
`,Vs=`#notification {
|
|
29
29
|
visibility: collapse;
|
|
30
30
|
min-height: 30px;
|
|
31
31
|
line-height: 30px;
|
|
@@ -34,7 +34,7 @@ list.addEventListener("selection", (event: CustomEvent) => {
|
|
|
34
34
|
color: #333;
|
|
35
35
|
text-align: center;
|
|
36
36
|
}
|
|
37
|
-
`,
|
|
37
|
+
`,Zs={mainContent:qs,description:Ws,css:Vs,initializer:{content:Gs,type:"typescript",initialize:()=>vt(()=>import("./declarative-list-item.js"),[],import.meta.url)}},Ks=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Js=`<!-- Load element with all dependencies directly -->
|
|
38
38
|
<script src="./list-with-externals.js"><\/script>
|
|
39
39
|
|
|
40
40
|
<sd-list class="declarative" tabindex="0" selection-type="multi">
|
|
@@ -47,8 +47,8 @@ list.addEventListener("selection", (event: CustomEvent) => {
|
|
|
47
47
|
<hr />
|
|
48
48
|
<option value="r1">Rik Lapham</option>
|
|
49
49
|
</sd-list>
|
|
50
|
-
`,
|
|
51
|
-
`,
|
|
50
|
+
`,Xs=`<h3 id="declarative-example---options-&-separators">Declarative example - options & separators</h3>
|
|
51
|
+
`,Qs=`sd-list hr {
|
|
52
52
|
background: #f2f2f2;
|
|
53
53
|
height: 8px;
|
|
54
54
|
margin: 0;
|
|
@@ -66,14 +66,14 @@ option[focused] {
|
|
|
66
66
|
option[selected] {
|
|
67
67
|
background-color: rgb(211, 230, 250);
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
70
|
-
`,
|
|
71
|
-
`,
|
|
69
|
+
`,Ys={mainContent:Js,description:Xs,css:Qs},er=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),tr=`<div id="multi-select-example"></div>
|
|
70
|
+
`,ir=`<h3 id="multi-selection-list">Multi selection list</h3>
|
|
71
|
+
`,nr=`input[type="checkbox"] {
|
|
72
72
|
width: 20px;
|
|
73
73
|
height: 20px;
|
|
74
74
|
margin-left: 16px;
|
|
75
75
|
}
|
|
76
|
-
`,
|
|
76
|
+
`,sr=`import ListItem from "@cas-smartdesign/list-item";
|
|
77
77
|
import List, { ItemGenerator } from "@cas-smartdesign/list";
|
|
78
78
|
import { ExtendedItemData, createListItems } from "../item-provider"; /// import { ExtendedItemData, createListItems } from "./item-provider";
|
|
79
79
|
import { exampleItems } from "../sample-data"; /// import { exampleItems } from "./sample-data";
|
|
@@ -124,7 +124,7 @@ export function customItemGenerator(list: List): ItemGenerator {
|
|
|
124
124
|
return listItem;
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
`,
|
|
127
|
+
`,Pn=`import { ItemData } from "@cas-smartdesign/list-item";
|
|
128
128
|
import { ExampleItem } from "./sample-data";
|
|
129
129
|
|
|
130
130
|
const arrowIcon = "./right-arrow.svg";
|
|
@@ -187,7 +187,7 @@ export function createListItems(exampleItems: ExampleItem[], addCheckbox = true)
|
|
|
187
187
|
});
|
|
188
188
|
return items;
|
|
189
189
|
}
|
|
190
|
-
`,
|
|
190
|
+
`,Tn=`export type ExampleItem = {
|
|
191
191
|
caption: string;
|
|
192
192
|
description?: string;
|
|
193
193
|
disabled?: boolean;
|
|
@@ -201,12 +201,12 @@ export const exampleItems: ExampleItem[] = [
|
|
|
201
201
|
{ caption: "Lucho Giacopello", description: "Full time employee", disabled: true },
|
|
202
202
|
{ caption: "Rik Lapham", description: "Student", disabled: true },
|
|
203
203
|
];
|
|
204
|
-
`,
|
|
204
|
+
`,rr={mainContent:tr,description:ir,css:nr,initializer:{content:sr,type:"typescript",initialize:()=>vt(()=>import("./multi-select.js"),__vite__mapDeps([0,1]),import.meta.url)},additionalSources:[{type:"source",label:"item-provider",language:"typescript",content:Pn},{type:"source",label:"sample-data",language:"typescript",content:Tn}]},or=Object.freeze(Object.defineProperty({__proto__:null,default:rr},Symbol.toStringTag,{value:"Module"})),ar=`<div id="single-select-example">
|
|
205
205
|
<input placeholder="search" style="margin-bottom: 8px" />
|
|
206
206
|
<sd-list selection-type="single" tabindex="0"></sd-list>
|
|
207
207
|
</div>
|
|
208
|
-
`,
|
|
209
|
-
`,
|
|
208
|
+
`,lr=`<h3 id="single-select-list-(with-searchfield)">Single select list (with searchfield)</h3>
|
|
209
|
+
`,cr=`import List from "@cas-smartdesign/list";
|
|
210
210
|
import { createListItems } from "../item-provider"; /// import { createListItems } from "./item-provider";
|
|
211
211
|
import { exampleItems } from "../sample-data"; /// import { exampleItems } from "./sample-data";
|
|
212
212
|
import { KeyDownDelegator } from "@cas-smartdesign/element-utils";
|
|
@@ -232,10 +232,10 @@ searchfield.addEventListener("input", () => {
|
|
|
232
232
|
});
|
|
233
233
|
|
|
234
234
|
KeyDownDelegator.delegateTo(list).connect(searchfield);
|
|
235
|
-
`,
|
|
236
|
-
`,
|
|
235
|
+
`,ur={mainContent:ar,description:lr,initializer:{content:cr,type:"typescript",initialize:()=>vt(()=>import("./single-select.js"),__vite__mapDeps([2,1]),import.meta.url)},additionalSources:[{type:"source",label:"item-provider",language:"typescript",content:Pn},{type:"source",label:"sample-data",language:"typescript",content:Tn}]},hr=Object.freeze(Object.defineProperty({__proto__:null,default:ur},Symbol.toStringTag,{value:"Module"})),dr=`<div id="trigger-only-example"></div>
|
|
236
|
+
`,fr=`<h3 id="trigger-only-list">Trigger only list</h3>
|
|
237
237
|
<p>Click on non-locked items to remove them from the list</p>
|
|
238
|
-
`,
|
|
238
|
+
`,pr=`import "@cas-smartdesign/list-item";
|
|
239
239
|
import List from "@cas-smartdesign/list";
|
|
240
240
|
import { ExtendedItemData, createListItems } from "../item-provider"; /// import { ExtendedItemData, createListItems } from "./item-provider";
|
|
241
241
|
import { exampleItems } from "../sample-data"; /// import { exampleItems } from "./sample-data";
|
|
@@ -258,41 +258,40 @@ list.addEventListener("selection", (event: CustomEvent) => {
|
|
|
258
258
|
});
|
|
259
259
|
|
|
260
260
|
container.appendChild(list);
|
|
261
|
-
`,
|
|
262
|
-
\f\r]`,
|
|
263
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xi=/'/g,Qi=/"/g,Dn=/^(?:script|style|textarea|title)$/i,_s=r=>(e,...i)=>({_$litType$:r,strings:e,values:i}),lt=_s(1),Re=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Yi=new WeakMap,Oe=$e.createTreeWalker($e,129);function zn(r,e){if(!yi(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zi!==void 0?Zi.createHTML(e):e}const Ss=(r,e)=>{const i=r.length-1,n=[];let t,c=e===2?"<svg>":e===3?"<math>":"",o=He;for(let p=0;p<i;p++){const b=r[p];let h,s,u=-1,a=0;for(;a<b.length&&(o.lastIndex=a,s=o.exec(b),s!==null);)a=o.lastIndex,o===He?s[1]==="!--"?o=Ki:s[1]!==void 0?o=Ji:s[2]!==void 0?(Dn.test(s[2])&&(t=RegExp("</"+s[2],"g")),o=Ce):s[3]!==void 0&&(o=Ce):o===Ce?s[0]===">"?(o=t??He,u=-1):s[1]===void 0?u=-2:(u=o.lastIndex-s[2].length,h=s[1],o=s[3]===void 0?Ce:s[3]==='"'?Qi:Xi):o===Qi||o===Xi?o=Ce:o===Ki||o===Ji?o=He:(o=Ce,t=void 0);const l=o===Ce&&r[p+1].startsWith("/>")?" ":"";c+=o===He?b+xs:u>=0?(n.push(h),b.slice(0,u)+Tn+b.slice(u)+Ee+l):b+Ee+(u===-2?p:l)}return[zn(r,c+(r[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]};class Qe{constructor({strings:e,_$litType$:i},n){let t;this.parts=[];let c=0,o=0;const p=e.length-1,b=this.parts,[h,s]=Ss(e,i);if(this.el=Qe.createElement(h,n),Oe.currentNode=this.el.content,i===2||i===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(t=Oe.nextNode())!==null&&b.length<p;){if(t.nodeType===1){if(t.hasAttributes())for(const u of t.getAttributeNames())if(u.endsWith(Tn)){const a=s[o++],l=t.getAttribute(u).split(Ee),f=/([.?@])?(.*)/.exec(a);b.push({type:1,index:c,name:f[2],strings:l,ctor:f[1]==="."?ks:f[1]==="?"?Cs:f[1]==="@"?Is:vt}),t.removeAttribute(u)}else u.startsWith(Ee)&&(b.push({type:6,index:c}),t.removeAttribute(u));if(Dn.test(t.tagName)){const u=t.textContent.split(Ee),a=u.length-1;if(a>0){t.textContent=gt?gt.emptyScript:"";for(let l=0;l<a;l++)t.append(u[l],Je()),Oe.nextNode(),b.push({type:2,index:++c});t.append(u[a],Je())}}}else if(t.nodeType===8)if(t.data===jn)b.push({type:2,index:c});else{let u=-1;for(;(u=t.data.indexOf(Ee,u+1))!==-1;)b.push({type:7,index:c}),u+=Ee.length-1}c++}}static createElement(e,i){const n=$e.createElement("template");return n.innerHTML=e,n}}function ze(r,e,i=r,n){if(e===Re)return e;let t=n!==void 0?i._$Co?.[n]:i._$Cl;const c=Xe(e)?void 0:e._$litDirective$;return t?.constructor!==c&&(t?._$AO?.(!1),c===void 0?t=void 0:(t=new c(r),t._$AT(r,i,n)),n!==void 0?(i._$Co??=[])[n]=t:i._$Cl=t),t!==void 0&&(e=ze(r,t._$AS(r,e.values),t,n)),e}class As{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:i},parts:n}=this._$AD,t=(e?.creationScope??$e).importNode(i,!0);Oe.currentNode=t;let c=Oe.nextNode(),o=0,p=0,b=n[0];for(;b!==void 0;){if(o===b.index){let h;b.type===2?h=new Ye(c,c.nextSibling,this,e):b.type===1?h=new b.ctor(c,b.name,b.strings,this,e):b.type===6&&(h=new Os(c,this,e)),this._$AV.push(h),b=n[++p]}o!==b?.index&&(c=Oe.nextNode(),o++)}return Oe.currentNode=$e,t}p(e){let i=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,i),i+=n.strings.length-2):n._$AI(e[i])),i++}}class Ye{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,n,t){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=n,this.options=t,this._$Cv=t?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=ze(this,e,i),Xe(e)?e===J||e==null||e===""?(this._$AH!==J&&this._$AR(),this._$AH=J):e!==this._$AH&&e!==Re&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Es(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==J&&Xe(this._$AH)?this._$AA.nextSibling.data=e:this.T($e.createTextNode(e)),this._$AH=e}$(e){const{values:i,_$litType$:n}=e,t=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Qe.createElement(zn(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===t)this._$AH.p(i);else{const c=new As(t,this),o=c.u(this.options);c.p(i),this.T(o),this._$AH=c}}_$AC(e){let i=Yi.get(e.strings);return i===void 0&&Yi.set(e.strings,i=new Qe(e)),i}k(e){yi(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,t=0;for(const c of e)t===i.length?i.push(n=new Ye(this.O(Je()),this.O(Je()),this,this.options)):n=i[t],n._$AI(c),t++;t<i.length&&(this._$AR(n&&n._$AB.nextSibling,t),i.length=t)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class vt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,n,t,c){this.type=1,this._$AH=J,this._$AN=void 0,this.element=e,this.name=i,this._$AM=t,this.options=c,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=J}_$AI(e,i=this,n,t){const c=this.strings;let o=!1;if(c===void 0)e=ze(this,e,i,0),o=!Xe(e)||e!==this._$AH&&e!==Re,o&&(this._$AH=e);else{const p=e;let b,h;for(e=c[0],b=0;b<c.length-1;b++)h=ze(this,p[n+b],i,b),h===Re&&(h=this._$AH[b]),o||=!Xe(h)||h!==this._$AH[b],h===J?e=J:e!==J&&(e+=(h??"")+c[b+1]),this._$AH[b]=h}o&&!t&&this.j(e)}j(e){e===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class ks extends vt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===J?void 0:e}}class Cs extends vt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==J)}}let Is=class extends vt{constructor(e,i,n,t,c){super(e,i,n,t,c),this.type=5}_$AI(e,i=this){if((e=ze(this,e,i,0)??J)===Re)return;const n=this._$AH,t=e===J&&n!==J||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,c=e!==J&&(n===J||t);t&&this.element.removeEventListener(this.name,this,n),c&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}};class Os{constructor(e,i,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ze(this,e)}}const $s=bi.litHtmlPolyfillSupport;$s?.(Qe,Ye),(bi.litHtmlVersions??=[]).push("3.3.1");const Rs=(r,e,i)=>{const n=i?.renderBefore??e;let t=n._$litPart$;if(t===void 0){const c=i?.renderBefore??null;n._$litPart$=t=new Ye(e.insertBefore(Je(),c),c,void 0,i??{})}return t._$AI(r),t};const wi=globalThis;let Ve=class extends De{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Rs(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Re}};Ve._$litElement$=!0,Ve.finalized=!0,wi.litElementHydrateSupport?.({LitElement:Ve});const Ls=wi.litElementPolyfillSupport;Ls?.({LitElement:Ve});(wi.litElementVersions??=[]).push("4.2.1");const Ms={attribute:!0,type:String,converter:mt,reflect:!1,hasChanged:gi},Ns=(r=Ms,e,i)=>{const{kind:n,metadata:t}=i;let c=globalThis.litPropertyMetadata.get(t);if(c===void 0&&globalThis.litPropertyMetadata.set(t,c=new Map),n==="setter"&&((r=Object.create(r)).wrapped=!0),c.set(i.name,r),n==="accessor"){const{name:o}=i;return{set(p){const b=e.get.call(this);e.set.call(this,p),this.requestUpdate(o,b,r)},init(p){return p!==void 0&&this.C(o,void 0,r,p),p}}}if(n==="setter"){const{name:o}=i;return function(p){const b=this[o];e.call(this,p),this.requestUpdate(o,b,r)}}throw Error("Unsupported decorator location: "+n)};function oe(r){return(e,i)=>typeof i=="object"?Ns(r,e,i):((n,t,c)=>{const o=t.hasOwnProperty(c);return t.constructor.createProperty(c,n),o?Object.getOwnPropertyDescriptor(t,c):void 0})(r,e,i)}const Ps={CHILD:2},Ts=r=>(...e)=>({_$litDirective$:r,values:e});class js{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,i,n){this._$Ct=e,this._$AM=i,this._$Ci=n}_$AS(e,i){return this.update(e,i)}update(e,i){return this.render(...i)}}class di extends js{constructor(e){if(super(e),this.it=J,e.type!==Ps.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===J||e==null)return this._t=void 0,this.it=e;if(e===Re)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const i=[e];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}di.directiveName="unsafeHTML",di.resultType=1;const Ds=Ts(di);const ct=r=>r??J;class zs{static showImage(e,i,n,t){let c;if(t||!(e instanceof HTMLImageElement)?c=o=>e.style.backgroundImage=this.prepareSrc(o):c=o=>e.src=o,c(n),i){const o=()=>{c(i)},p=new Image;p.addEventListener("load",o),p.src=i,p.complete&&(p.removeEventListener("load",o),o())}}static prepareSrc(e){return e?e.startsWith("url")?e:`url("${e}")`:null}}const Bs=':host{display:block;contain:strict;height:50px}:host([selected]){background-color:#d3e6fa}:host(:not([selected]):hover),:host(:not([selected])[focused]){background-color:#e7f1fa}@media (forced-colors: active){:host([selected]){outline:4px solid}:host(:not([selected]):hover){outline:4px dotted}:host(:not([selected])[focused]){outline:4px dashed}}:host([enable-line-clamp]) .labels>:only-child{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow-wrap:break-word}.container{display:flex;height:100%;box-sizing:border-box}.container .level-indicator{width:7px;height:100%}.container .level-indicator.level-0{background-color:#a0c3ef}.container .level-indicator.level-1{background-color:#e7c374}.container .level-indicator.level-2{background-color:#bfd596}.container .level-indicator.level-3{background-color:#fd998d}.container .level-indicator.level-4{background-color:#c6e8f5}.container .level-indicator.level-5{background-color:#fde3a4}.container .level-indicator.level-6{background-color:#dcbfe0}.side-content{display:flex;align-items:center;flex-grow:0}.labels{display:flex;flex-direction:column;justify-content:center;flex:1 1 0px;height:100%;line-height:normal;overflow:hidden;padding:var(--sd-list-item-label-content-padding, 0 8px)}.caption,.description{width:100%;font-family:var(--sd-list-item-font-family, "Segoe UI", "Lucida Sans", Arial, sans-serif);font-style:normal;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-user-select:none;user-select:none;text-decoration:var(--sd-list-item-text-decoration, inherit)}.caption em,.description em{font-weight:bolder}.caption{font-size:var(--sd-list-item-caption-font-size, 16px);color:var(--sd-list-item-caption-text-color, #111);font-weight:var(--sd-list-item-caption-font-weight, normal)}.description{font-size:var(--sd-list-item-description-font-size, 13px);color:var(--sd-list-item-description-text-color, #767676);font-weight:var(--sd-list-item-description-font-weight, normal)}.icon-wrapper{width:var(--sd-list-item-icon-wrapper-width, 45px);height:100%;display:flex;align-items:center;justify-content:center}.icon-wrapper .icon{min-height:var(--sd-list-item-icon-size, 24px);min-width:var(--sd-list-item-icon-size, 24px);background-repeat:no-repeat;background-position:center;background-size:cover}';var Us=Object.defineProperty,ae=(r,e,i,n)=>{for(var t=void 0,c=r.length-1,o;c>=0;c--)(o=r[c])&&(t=o(e,i,t)||t);return t&&Us(e,i,t),t},Ie;const se=(Ie=class extends Ve{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[hs`
|
|
264
|
-
${
|
|
265
|
-
`]}render(){return
|
|
261
|
+
`,mr={mainContent:dr,description:fr,initializer:{content:pr,type:"typescript",initialize:()=>vt(()=>import("./trigger-only.js"),__vite__mapDeps([3,1]),import.meta.url)}},gr=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),jn=class pt extends HTMLElement{memoizedTemplate(){const e=this.is();if(pt.TEMPLATE_CACHE[e])return pt.TEMPLATE_CACHE[e];const t=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,this.is()),pt.TEMPLATE_CACHE[e]=t,t}connectedCallback(){const e=this.memoizedTemplate();window.ShadyCSS&&window.ShadyCSS.styleElement(this),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(e.content,!0)),requestAnimationFrame(()=>this.dispatchEvent(new CustomEvent("ready"))))}whenReady(e){this.shadowRoot?e():this.addEventListener("ready",()=>e())}};jn.TEMPLATE_CACHE={};let br=jn;const mt=globalThis,gi=mt.ShadowRoot&&(mt.ShadyCSS===void 0||mt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bi=Symbol(),Vi=new WeakMap;let Dn=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==bi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(gi&&e===void 0){const n=t!==void 0&&t.length===1;n&&(e=Vi.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Vi.set(t,e))}return e}toString(){return this.cssText}};const zn=s=>new Dn(typeof s=="string"?s:s+"",void 0,bi),yr=(s,...e)=>{const t=s.length===1?s[0]:e.reduce(((n,i,c)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+s[c+1]),s[0]);return new Dn(t,s,bi)},wr=(s,e)=>{if(gi)s.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const t of e){const n=document.createElement("style"),i=mt.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=t.cssText,s.appendChild(n)}},Zi=gi?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return zn(t)})(s):s;const{is:vr,defineProperty:xr,getOwnPropertyDescriptor:_r,getOwnPropertyNames:Er,getOwnPropertySymbols:Ar,getPrototypeOf:Sr}=Object,xt=globalThis,Ki=xt.trustedTypes,kr=Ki?Ki.emptyScript:"",Cr=xt.reactiveElementPolyfillSupport,Ve=(s,e)=>s,gt={toAttribute(s,e){switch(e){case Boolean:s=s?kr:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},yi=(s,e)=>!vr(s,e),Ji={attribute:!0,type:String,converter:gt,reflect:!1,useDefault:!1,hasChanged:yi};Symbol.metadata??=Symbol("metadata"),xt.litPropertyMetadata??=new WeakMap;let De=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Ji){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(e,n,t);i!==void 0&&xr(this.prototype,e,i)}}static getPropertyDescriptor(e,t,n){const{get:i,set:c}=_r(this.prototype,e)??{get(){return this[t]},set(a){this[t]=a}};return{get:i,set(a){const p=i?.call(this);c?.call(this,a),this.requestUpdate(e,p,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ji}static _$Ei(){if(this.hasOwnProperty(Ve("elementProperties")))return;const e=Sr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ve("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ve("properties"))){const t=this.properties,n=[...Er(t),...Ar(t)];for(const i of n)this.createProperty(i,t[i])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[n,i]of t)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[t,n]of this.elementProperties){const i=this._$Eu(t,n);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const i of n)t.unshift(Zi(i))}else e!==void 0&&t.push(Zi(e));return t}static _$Eu(e,t){const n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return wr(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){const n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){const c=(n.converter?.toAttribute!==void 0?n.converter:gt).toAttribute(t,n.type);this._$Em=e,c==null?this.removeAttribute(i):this.setAttribute(i,c),this._$Em=null}}_$AK(e,t){const n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const c=n.getPropertyOptions(i),a=typeof c.converter=="function"?{fromAttribute:c.converter}:c.converter?.fromAttribute!==void 0?c.converter:gt;this._$Em=i;const p=a.fromAttribute(t,c.type);this[i]=p??this._$Ej?.get(i)??p,this._$Em=null}}requestUpdate(e,t,n){if(e!==void 0){const i=this.constructor,c=this[e];if(n??=i.getPropertyOptions(e),!((n.hasChanged??yi)(c,t)||n.useDefault&&n.reflect&&c===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,n))))return;this.C(e,t,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:i,wrapped:c},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),c!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),i===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[i,c]of this._$Ep)this[i]=c;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[i,c]of n){const{wrapped:a}=c,p=this[i];a!==!0||this._$AL.has(i)||p===void 0||this.C(i,void 0,c,p)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((n=>n.hostUpdate?.())),this.update(t)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};De.elementStyles=[],De.shadowRootOptions={mode:"open"},De[Ve("elementProperties")]=new Map,De[Ve("finalized")]=new Map,Cr?.({ReactiveElement:De}),(xt.reactiveElementVersions??=[]).push("2.1.1");const wi=globalThis,bt=wi.trustedTypes,Xi=bt?bt.createPolicy("lit-html",{createHTML:s=>s}):void 0,Bn="$lit$",_e=`lit$${Math.random().toFixed(9).slice(2)}$`,Un="?"+_e,$r=`<${Un}>`,Oe=document,Qe=()=>Oe.createComment(""),Ye=s=>s===null||typeof s!="object"&&typeof s!="function",vi=Array.isArray,Ir=s=>vi(s)||typeof s?.[Symbol.iterator]=="function",zt=`[
|
|
262
|
+
\f\r]`,qe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qi=/-->/g,Yi=/>/g,Ce=RegExp(`>|${zt}(?:([^\\s"'>=/]+)(${zt}*=${zt}*(?:[^
|
|
263
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),en=/'/g,tn=/"/g,Fn=/^(?:script|style|textarea|title)$/i,Or=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),We=Or(1),Re=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),nn=new WeakMap,Ie=Oe.createTreeWalker(Oe,129);function Hn(s,e){if(!vi(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xi!==void 0?Xi.createHTML(e):e}const Rr=(s,e)=>{const t=s.length-1,n=[];let i,c=e===2?"<svg>":e===3?"<math>":"",a=qe;for(let p=0;p<t;p++){const b=s[p];let h,r,u=-1,o=0;for(;o<b.length&&(a.lastIndex=o,r=a.exec(b),r!==null);)o=a.lastIndex,a===qe?r[1]==="!--"?a=Qi:r[1]!==void 0?a=Yi:r[2]!==void 0?(Fn.test(r[2])&&(i=RegExp("</"+r[2],"g")),a=Ce):r[3]!==void 0&&(a=Ce):a===Ce?r[0]===">"?(a=i??qe,u=-1):r[1]===void 0?u=-2:(u=a.lastIndex-r[2].length,h=r[1],a=r[3]===void 0?Ce:r[3]==='"'?tn:en):a===tn||a===en?a=Ce:a===Qi||a===Yi?a=qe:(a=Ce,i=void 0);const l=a===Ce&&s[p+1].startsWith("/>")?" ":"";c+=a===qe?b+$r:u>=0?(n.push(h),b.slice(0,u)+Bn+b.slice(u)+_e+l):b+_e+(u===-2?p:l)}return[Hn(s,c+(s[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]};class et{constructor({strings:e,_$litType$:t},n){let i;this.parts=[];let c=0,a=0;const p=e.length-1,b=this.parts,[h,r]=Rr(e,t);if(this.el=et.createElement(h,n),Ie.currentNode=this.el.content,t===2||t===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(i=Ie.nextNode())!==null&&b.length<p;){if(i.nodeType===1){if(i.hasAttributes())for(const u of i.getAttributeNames())if(u.endsWith(Bn)){const o=r[a++],l=i.getAttribute(u).split(_e),f=/([.?@])?(.*)/.exec(o);b.push({type:1,index:c,name:f[2],strings:l,ctor:f[1]==="."?Mr:f[1]==="?"?Lr:f[1]==="@"?Pr:_t}),i.removeAttribute(u)}else u.startsWith(_e)&&(b.push({type:6,index:c}),i.removeAttribute(u));if(Fn.test(i.tagName)){const u=i.textContent.split(_e),o=u.length-1;if(o>0){i.textContent=bt?bt.emptyScript:"";for(let l=0;l<o;l++)i.append(u[l],Qe()),Ie.nextNode(),b.push({type:2,index:++c});i.append(u[o],Qe())}}}else if(i.nodeType===8)if(i.data===Un)b.push({type:2,index:c});else{let u=-1;for(;(u=i.data.indexOf(_e,u+1))!==-1;)b.push({type:7,index:c}),u+=_e.length-1}c++}}static createElement(e,t){const n=Oe.createElement("template");return n.innerHTML=e,n}}function ze(s,e,t=s,n){if(e===Re)return e;let i=n!==void 0?t._$Co?.[n]:t._$Cl;const c=Ye(e)?void 0:e._$litDirective$;return i?.constructor!==c&&(i?._$AO?.(!1),c===void 0?i=void 0:(i=new c(s),i._$AT(s,t,n)),n!==void 0?(t._$Co??=[])[n]=i:t._$Cl=i),i!==void 0&&(e=ze(s,i._$AS(s,e.values),i,n)),e}class Nr{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:n}=this._$AD,i=(e?.creationScope??Oe).importNode(t,!0);Ie.currentNode=i;let c=Ie.nextNode(),a=0,p=0,b=n[0];for(;b!==void 0;){if(a===b.index){let h;b.type===2?h=new tt(c,c.nextSibling,this,e):b.type===1?h=new b.ctor(c,b.name,b.strings,this,e):b.type===6&&(h=new Tr(c,this,e)),this._$AV.push(h),b=n[++p]}a!==b?.index&&(c=Ie.nextNode(),a++)}return Ie.currentNode=Oe,i}p(e){let t=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class tt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,i){this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ze(this,e,t),Ye(e)?e===K||e==null||e===""?(this._$AH!==K&&this._$AR(),this._$AH=K):e!==this._$AH&&e!==Re&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ir(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==K&&Ye(this._$AH)?this._$AA.nextSibling.data=e:this.T(Oe.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=et.createElement(Hn(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(t);else{const c=new Nr(i,this),a=c.u(this.options);c.p(t),this.T(a),this._$AH=c}}_$AC(e){let t=nn.get(e.strings);return t===void 0&&nn.set(e.strings,t=new et(e)),t}k(e){vi(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,i=0;for(const c of e)i===t.length?t.push(n=new tt(this.O(Qe()),this.O(Qe()),this,this.options)):n=t[i],n._$AI(c),i++;i<t.length&&(this._$AR(n&&n._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class _t{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,i,c){this.type=1,this._$AH=K,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=c,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=K}_$AI(e,t=this,n,i){const c=this.strings;let a=!1;if(c===void 0)e=ze(this,e,t,0),a=!Ye(e)||e!==this._$AH&&e!==Re,a&&(this._$AH=e);else{const p=e;let b,h;for(e=c[0],b=0;b<c.length-1;b++)h=ze(this,p[n+b],t,b),h===Re&&(h=this._$AH[b]),a||=!Ye(h)||h!==this._$AH[b],h===K?e=K:e!==K&&(e+=(h??"")+c[b+1]),this._$AH[b]=h}a&&!i&&this.j(e)}j(e){e===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Mr extends _t{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===K?void 0:e}}let Lr=class extends _t{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==K)}};class Pr extends _t{constructor(e,t,n,i,c){super(e,t,n,i,c),this.type=5}_$AI(e,t=this){if((e=ze(this,e,t,0)??K)===Re)return;const n=this._$AH,i=e===K&&n!==K||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,c=e!==K&&(n===K||i);i&&this.element.removeEventListener(this.name,this,n),c&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class Tr{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ze(this,e)}}const jr=wi.litHtmlPolyfillSupport;jr?.(et,tt),(wi.litHtmlVersions??=[]).push("3.3.1");const Dr=(s,e,t)=>{const n=t?.renderBefore??e;let i=n._$litPart$;if(i===void 0){const c=t?.renderBefore??null;n._$litPart$=i=new tt(e.insertBefore(Qe(),c),c,void 0,t??{})}return i._$AI(s),i};const xi=globalThis;let Ze=class extends De{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Dr(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Re}};Ze._$litElement$=!0,Ze.finalized=!0,xi.litElementHydrateSupport?.({LitElement:Ze});const zr=xi.litElementPolyfillSupport;zr?.({LitElement:Ze});(xi.litElementVersions??=[]).push("4.2.1");const Br={attribute:!0,type:String,converter:gt,reflect:!1,hasChanged:yi},Ur=(s=Br,e,t)=>{const{kind:n,metadata:i}=t;let c=globalThis.litPropertyMetadata.get(i);if(c===void 0&&globalThis.litPropertyMetadata.set(i,c=new Map),n==="setter"&&((s=Object.create(s)).wrapped=!0),c.set(t.name,s),n==="accessor"){const{name:a}=t;return{set(p){const b=e.get.call(this);e.set.call(this,p),this.requestUpdate(a,b,s)},init(p){return p!==void 0&&this.C(a,void 0,s,p),p}}}if(n==="setter"){const{name:a}=t;return function(p){const b=this[a];e.call(this,p),this.requestUpdate(a,b,s)}}throw Error("Unsupported decorator location: "+n)};function oe(s){return(e,t)=>typeof t=="object"?Ur(s,e,t):((n,i,c)=>{const a=i.hasOwnProperty(c);return i.constructor.createProperty(c,n),a?Object.getOwnPropertyDescriptor(i,c):void 0})(s,e,t)}const _i={ATTRIBUTE:1,CHILD:2},qn=s=>(...e)=>({_$litDirective$:s,values:e});let Wn=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};class pi extends Wn{constructor(e){if(super(e),this.it=K,e.type!==_i.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===K||e==null)return this._t=void 0,this.it=e;if(e===Re)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}pi.directiveName="unsafeHTML",pi.resultType=1;const Fr=qn(pi);const ut=s=>s??K;const Hr=s=>s.strings===void 0;const Ke=(s,e)=>{const t=s._$AN;if(t===void 0)return!1;for(const n of t)n._$AO?.(e,!1),Ke(n,e);return!0},yt=s=>{let e,t;do{if((e=s._$AM)===void 0)break;t=e._$AN,t.delete(s),s=e}while(t?.size===0)},Gn=s=>{for(let e;e=s._$AM;s=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(s))break;t.add(s),Gr(e)}};function qr(s){this._$AN!==void 0?(yt(this),this._$AM=s,Gn(this)):this._$AM=s}function Wr(s,e=!1,t=0){const n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let c=t;c<n.length;c++)Ke(n[c],!1),yt(n[c]);else n!=null&&(Ke(n,!1),yt(n));else Ke(this,s)}const Gr=s=>{s.type==_i.CHILD&&(s._$AP??=Wr,s._$AQ??=qr)};class Vr extends Wn{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),Gn(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Ke(this,e),yt(this))}setValue(e){if(Hr(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}const sn=s=>s?s.startsWith("url")?s:`url("${s}")`:null,Zr=(s,e)=>{if(s){const t=new Image;t.addEventListener("load",e),t.src=s,t.complete&&(t.removeEventListener("load",e),window.queueMicrotask(()=>e()))}};class Kr extends Vr{constructor(e){if(super(e),e.type!==_i.ATTRIBUTE||e.name!=="src"&&e.name!=="style")throw new Error("The `placeholder` directive must be used in the `src` or `style` attributes")}update(e,[t,n]){return this.useCssBackground=e.name=="style",this.render(t,n)}render(e,t){this.loadingToken!=null&&(this.loadingToken.cancelled=!0);const n={cancelled:!1};return this.loadingToken=n,typeof e=="string"?this.preload(e,n):e?.then(i=>{this.preload(i,n)}),this.useCssBackground?sn(t):t}preload(e,t){e!=null&&!t.cancelled&&Zr(e,()=>{t.cancelled||this.setValue(this.useCssBackground?sn(e):e)})}}const Jr=qn(Kr),Xr=':host{display:block;contain:strict;height:50px}:host([selected]){background-color:#d3e6fa}:host(:not([selected]):hover),:host(:not([selected])[focused]){background-color:#e7f1fa}@media (forced-colors: active){:host([selected]){outline:4px solid}:host(:not([selected]):hover){outline:4px dotted}:host(:not([selected])[focused]){outline:4px dashed}}:host([enable-line-clamp]) .labels>:only-child{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow-wrap:break-word}.container{display:flex;height:100%;box-sizing:border-box}.container .level-indicator{width:7px;height:100%}.container .level-indicator.level-0{background-color:#a0c3ef}.container .level-indicator.level-1{background-color:#e7c374}.container .level-indicator.level-2{background-color:#bfd596}.container .level-indicator.level-3{background-color:#fd998d}.container .level-indicator.level-4{background-color:#c6e8f5}.container .level-indicator.level-5{background-color:#fde3a4}.container .level-indicator.level-6{background-color:#dcbfe0}.side-content{display:flex;align-items:center;flex-grow:0}.labels{display:flex;flex-direction:column;justify-content:center;flex:1 1 0px;height:100%;line-height:normal;overflow:hidden;padding:var(--sd-list-item-label-content-padding, 0 8px)}.caption,.description{width:100%;font-family:var(--sd-list-item-font-family, "Segoe UI", "Lucida Sans", Arial, sans-serif);font-style:normal;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-user-select:none;user-select:none;text-decoration:var(--sd-list-item-text-decoration, inherit)}.caption em,.description em{font-weight:bolder}.caption{font-size:var(--sd-list-item-caption-font-size, 16px);color:var(--sd-list-item-caption-text-color, #111);font-weight:var(--sd-list-item-caption-font-weight, normal)}.description{font-size:var(--sd-list-item-description-font-size, 13px);color:var(--sd-list-item-description-text-color, #767676);font-weight:var(--sd-list-item-description-font-weight, normal)}.description.with-icon{display:flex;align-items:center;gap:4px}.description.with-icon .description-icon{width:var(--sd-list-item-description-font-size, 13px);height:var(--sd-list-item-description-font-size, 13px);background-repeat:no-repeat;background-position:bottom;background-size:90%}.icon-wrapper{width:var(--sd-list-item-icon-wrapper-width, 45px);height:100%;display:flex;align-items:center;justify-content:center}.icon-wrapper .icon{min-height:var(--sd-list-item-icon-size, 24px);min-width:var(--sd-list-item-icon-size, 24px);background-repeat:no-repeat;background-position:center;background-size:cover}';var Qr=Object.defineProperty,ae=(s,e,t,n)=>{for(var i=void 0,c=s.length-1,a;c>=0;c--)(a=s[c])&&(i=a(e,t,i)||i);return i&&Qr(e,t,i),i},$e;const se=($e=class extends Ze{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[yr`
|
|
264
|
+
${zn(Xr)}
|
|
265
|
+
`]}render(){return We`
|
|
266
266
|
<div class="container">
|
|
267
|
-
${this.getLevelIndicators().map((
|
|
267
|
+
${this.getLevelIndicators().map((s,e)=>We` <div class="level-indicator level-${e}"></div> `)}
|
|
268
268
|
<div class="side-content">
|
|
269
269
|
<slot name="left-content"></slot>
|
|
270
270
|
${this.renderIcon()}
|
|
271
271
|
</div>
|
|
272
272
|
<div class="labels">
|
|
273
273
|
${this.renderLabel("caption",this.caption,this.captionAttrTitle)}
|
|
274
|
-
${this.renderLabel("description",this.description,this.descriptionAttrTitle)}
|
|
274
|
+
${this.renderLabel("description",this.description,this.descriptionAttrTitle,this.descriptionIcon)}
|
|
275
275
|
</div>
|
|
276
276
|
<div class="side-content">
|
|
277
277
|
<slot name="right-content"></slot>
|
|
278
278
|
</div>
|
|
279
279
|
</div>
|
|
280
|
-
`}renderIcon(){
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
>
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
${this.contentMode==="html"?Ds(e):e}
|
|
280
|
+
`}renderIcon(){return this.icon||this.iconPlaceholder?We`<div
|
|
281
|
+
class="icon-wrapper"
|
|
282
|
+
@pointerdown="${this.handleIconClick}"
|
|
283
|
+
style="background-color:${ut(this.iconBackgroundColor)};"
|
|
284
|
+
role="img"
|
|
285
|
+
aria-label="${ut(this.iconAttrAriaLabel)}"
|
|
286
|
+
title="${ut(this.iconAttrTitle)}"
|
|
287
|
+
>
|
|
288
|
+
<div class="icon" style="background-image:${Jr(this.icon,this.iconPlaceholder)}"></div>
|
|
289
|
+
</div> `:K}renderLabel(s,e,t,n){return e?We`
|
|
290
|
+
<div class="${s} ${n?"with-icon":""}" title="${ut(t)}">
|
|
291
|
+
${n?We` <div class="${s}-icon" style="background-image:url('${n}')" aria-hidden="true"></div> `:K}
|
|
292
|
+
${this.contentMode==="html"?Fr(e):e}
|
|
294
293
|
</div>
|
|
295
|
-
`:
|
|
294
|
+
`:K}updated(s){super.updated(s),s.has("selected")&&this.setAttribute("aria-selected",String(this.selected))}get missingWidthForTexts(){const s=this.enableLineClamp;this.removeAttribute("enable-line-clamp");let e=0;const t=this.shadowRoot.querySelector(".caption");t&&(e+=t.scrollWidth-t.clientWidth);const n=this.shadowRoot.querySelector(".description");return n&&(e=Math.max(e,n.scrollWidth-n.clientWidth)),e>0&&e++,s&&this.setAttribute("enable-line-clamp",""),e}handleIconClick(s){!this.disabled&&!this.dispatchEvent(new PointerEvent("list-item-icon-click",s))&&s.preventDefault()}getLevelIndicators(){return this.level?Array(Number(this.level)).fill(null):[]}},$e.ID="sd-list-item",$e.ensureDefined=()=>{customElements.get($e.ID)||customElements.define($e.ID,$e)},$e);ae([oe({type:String})],se.prototype,"caption");ae([oe({type:String})],se.prototype,"description");ae([oe({type:String})],se.prototype,"descriptionIcon");ae([oe({type:Boolean})],se.prototype,"selected");ae([oe({type:String})],se.prototype,"icon");ae([oe({type:String})],se.prototype,"iconBackgroundColor");ae([oe({type:String})],se.prototype,"iconPlaceholder");ae([oe({type:Number})],se.prototype,"level");ae([oe()],se.prototype,"contentMode");ae([oe({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],se.prototype,"enableLineClamp");ae([oe({converter:{fromAttribute:s=>s=="true",toAttribute:s=>s},reflect:!0,attribute:"aria-disabled"})],se.prototype,"disabled");ae([oe({type:String,attribute:"icon-attr-aria-label"})],se.prototype,"iconAttrAriaLabel");ae([oe({type:String,reflect:!0})],se.prototype,"role");ae([oe({type:String,attribute:"caption-attr-title"})],se.prototype,"captionAttrTitle");ae([oe({type:String,attribute:"description-attr-title"})],se.prototype,"descriptionAttrTitle");ae([oe({type:String,attribute:"icon-attr-title"})],se.prototype,"iconAttrTitle");let Je=se;const Yr=(s,e)=>{const t=document.createElement(Je.ID);if(s){if(t.caption=s.caption,t.description=s.description,t.descriptionIcon=s.descriptionIcon,t.icon=s.icon,t.iconBackgroundColor=s.iconBackgroundColor,t.iconPlaceholder=s.iconPlaceholder,t.level=s.level,t.disabled=s.disabled,s.contentMode&&(t.contentMode=s.contentMode),s.leftContentGenerator){const n=s.leftContentGenerator(s,t);n&&(n.slot="left-content",t.appendChild(n))}if(s.rightContentGenerator){const n=s.rightContentGenerator(s,t);n&&(n.slot="right-content",t.appendChild(n))}}return t};Je.ensureDefined();const eo=`<style>
|
|
296
295
|
:host {
|
|
297
296
|
background-color: var(--sd-list-base-background-color, white);
|
|
298
297
|
}
|
|
@@ -324,38 +323,38 @@ container.appendChild(list);
|
|
|
324
323
|
<slot name="items"></slot>
|
|
325
324
|
<slot id="default-slot"></slot>
|
|
326
325
|
</div>
|
|
327
|
-
`;let
|
|
328
|
-
`+
|
|
329
|
-
`+
|
|
330
|
-
`)}toString(){let
|
|
326
|
+
`;let to=0;const be=class be extends br{constructor(){super(),this._items=[],this._selectedIndexes=[],this._itemGenerator=Yr,this.onDefaultSlotChange=()=>{let e=0;this.defaultSlot.assignedElements().forEach(t=>{this.isSeparator(t)||this.initListItem(t,e++)}),this.updateFocusedElement()},this.handleKeyDown=e=>{let t=!0;switch(e.key){case"ArrowDown":case"Down":this.focusIndex=Math.min(this.getListItems.length-1,this.focusIndex+1);break;case"ArrowUp":case"Up":this.focusIndex=Math.max(0,this.focusIndex-1);break;case"Enter":case"Space":case" ":this.handleSelection(this.focusIndex,e.metaKey||e.ctrlKey);break;case"End":case"PageDown":this.focusIndex=this.items.length-1;break;case"Home":case"PageUp":this.focusIndex=0;break;default:t=!1;break}t&&(e.preventDefault(),e.stopPropagation())},this._fallbackId=be.ID+"_"+to++,this.addEventListener("pointerup",e=>{this.focusIndex=this.getListItems.indexOf(e.target),this.updateFocusedElement()}),this.addEventListener("focus",()=>{this.matches(":focus-visible")&&(this.focusIndex==-1?(this.selectedIndexes&&(this.focusIndex=this.selectedIndexes[0]),this.focusIndex==-1&&this.childElementCount>0&&(this.focusIndex=0)):this.updateFocusedElement())}),this.addEventListener("blur",()=>this.removeFocusedItemAttributes())}get items(){return this._items}set items(e){this._items=e,this.render()}get itemGenerator(){return this._itemGenerator}set itemGenerator(e){this._itemGenerator=e,this.render()}get selectionType(){return this.getAttribute("selection-type")}set selectionType(e){e?this.setAttribute("selection-type",e):this.removeAttribute("selection-type")}get focusIndex(){return this.hasAttribute("focus-index")?Number(this.getAttribute("focus-index")):-1}set focusIndex(e){0<=e&&e<this.getListItems.length?this.setAttribute("focus-index",e.toString()):this.removeAttribute("focus-index")}get focusTarget(){return this.hasAttribute("focus-target")}set focusTarget(e){this.toggleAttribute("focus-target",e)}getListItem(e){return this.shadowRoot?this.getListItems[e]:null}get getListItems(){return Array.prototype.slice.call(this.children).filter(e=>!this.isSeparator(e))}get selectedIndexes(){return this._selectedIndexes}set selectedIndexes(e){const t=this._selectedIndexes||[];this._selectedIndexes=e||[],t.filter(n=>!this._selectedIndexes.includes(n)).forEach(n=>{this.setSelectedAttr(this.getListItem(n),!1)}),this._selectedIndexes.filter(n=>!t.includes(n)).forEach(n=>{this.setSelectedAttr(this.getListItem(n),!0)})}static get observedAttributes(){return["focus-index","focus-target"]}is(){return be.ID}template(){const e=document.createElement("template");return e.innerHTML=eo,e}removeFocusedItemAttributes(){if(this.focusIndex!=-1){const e=this.getListItem(this.focusIndex);e&&(e.removeAttribute("focused"),this.removeAttribute("aria-activedescendant"))}}connectedCallback(){super.connectedCallback(),this.defaultSlot.addEventListener("slotchange",this.onDefaultSlotChange),this.hasAttribute("role")||this.setAttribute("role","listbox"),this.id||(this.id=this._fallbackId),this.render(),this.addEventListener("keydown",this.handleKeyDown),this.selectionType||(this.selectionType="trigger-only")}get defaultSlot(){return this.shadowRoot.querySelector("#default-slot")}isSeparator(e){return e.tagName=="HR"||e.getAttribute("role")=="separator"}attributeChangedCallback(e,t,n){if(e==="focus-index"){const i=this.getListItem(t);i&&i.removeAttribute("focused"),this.updateFocusedElement()}else e==="focus-target"&&(this.focusTarget?this.updateFocusedElement():document.activeElement!=this&&this.removeFocusedItemAttributes())}increaseWidthIfNeeded(){window.requestAnimationFrame(()=>{let e=Number.MAX_SAFE_INTEGER;const t=getComputedStyle(this).maxWidth,n=this.offsetWidth;t.endsWith("px")&&(e=Number.parseInt(t)-n);const i=this.style.width;if(e==0||i.endsWith("px")&&n<Number.parseInt(i))this.enableLineClampOnItemsIfNeeded();else{const c=[...Array.from(this.children).filter(p=>p.slot==="items")].map(p=>{if(p instanceof Je){p.enableLineClamp=!1;const b=p.missingWidthForTexts;return b>e&&(p.enableLineClamp=!0),b}}),a=Math.max(...c);if(a>0){const p=n+a;this.style.width=`${p}px`,this.offsetWidth<p&&this.enableLineClampOnItemsIfNeeded()}}})}enableLineClampOnItemsIfNeeded(){Array.from(this.children).filter(e=>e.slot==="items").forEach(e=>{e instanceof Je&&(e.enableLineClamp=e.enableLineClamp||e.missingWidthForTexts>0)})}render(){if(!this.isConnected||!this.items)return;Array.from(this.children).filter(n=>n.slot==="items").forEach(n=>n.remove());const e=document.createDocumentFragment();let t=0;this.items.forEach((n,i)=>{const c=this.itemGenerator(n,i);this.isSeparator(c)||this.initListItem(c,t++),c.slot="items",e.appendChild(c)}),this.appendChild(e),this.updateFocusedElement()}initListItem(e,t){this.setSelectedAttr(e,this.selectedIndexes.includes(t)),e.addEventListener("click",n=>{this.handleItemClick(n,t)}),e.addEventListener("mousedown",n=>{n.button==1&&n.preventDefault()}),e.addEventListener("auxclick",n=>{this.handleItemClick(n,t)}),(!e.id||e.id.startsWith(this.id+"_item_"))&&(e.id=this.id+"_item_"+t)}ensureItemVisible(e){const t=e.getBoundingClientRect(),n=this.getBoundingClientRect();t.bottom>n.bottom?this.scrollTop+=t.bottom-n.bottom:t.top<n.top&&(this.scrollTop-=n.top-t.top)}updateFocusedElement(){const e=this.getListItem(this.focusIndex);e&&(this.focusTarget||this.matches(":focus"))?(e.setAttribute("focused",""),this.setAttribute("aria-activedescendant",e.id),this.ensureItemVisible(e)):this.removeAttribute("aria-activedescendant")}handleItemClick(e,t){if(e.button!==null){const n=e.type=="auxclick"&&e.button==1||e.metaKey||e.ctrlKey;(e.button==0||e.button==1)&&this.handleSelection(t,n)}}handleSelection(e,t){const n=this.getListItem(e);if(n.getAttribute("aria-disabled")=="true"||n.hasAttribute("disabled"))return;const i=this.isSelected(n);this.selectionType!=="trigger-only"&&(this.selectionType==="single"?this.selectedIndexes=i?[]:[e]:this.toggleSelection(n)?this._selectedIndexes.push(e):this.removeFromSelectedIndexes(e)),this.focusIndex=e,this.dispatchEvent(new CustomEvent("selection",{detail:{index:e,selected:this.selectionType=="trigger-only"||!i,hasModifier:t},bubbles:!0,composed:!0}))}removeFromSelectedIndexes(e){const t=this._selectedIndexes.indexOf(e);t!==-1&&this._selectedIndexes.splice(t,1)}toggleSelection(e){const t=!e.hasAttribute("selected");return this.setSelectedAttr(e,t),t}setSelectedAttr(e,t){e&&(t?e.setAttribute("selected",""):e.removeAttribute("selected"),e.setAttribute("aria-selected",String(t)))}isSelected(e){return e.hasAttribute("selected")}};be.ID="sd-list",be.ensureDefined=()=>{Je.ensureDefined(),customElements.get(be.ID)||customElements.define(be.ID,be)};let mi=be;mi.ensureDefined();function Vn(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function io(s){if(Object.prototype.hasOwnProperty.call(s,"__esModule"))return s;var e=s.default;if(typeof e=="function"){var t=function n(){var i=!1;try{i=this instanceof n}catch{}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(n){var i=Object.getOwnPropertyDescriptor(s,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return s[n]}})}),t}var ht={exports:{}},rn;function no(){if(rn)return ht.exports;rn=1;var s=String,e=function(){return{isColorSupported:!1,reset:s,bold:s,dim:s,italic:s,underline:s,inverse:s,hidden:s,strikethrough:s,black:s,red:s,green:s,yellow:s,blue:s,magenta:s,cyan:s,white:s,gray:s,bgBlack:s,bgRed:s,bgGreen:s,bgYellow:s,bgBlue:s,bgMagenta:s,bgCyan:s,bgWhite:s,blackBright:s,redBright:s,greenBright:s,yellowBright:s,blueBright:s,magentaBright:s,cyanBright:s,whiteBright:s,bgBlackBright:s,bgRedBright:s,bgGreenBright:s,bgYellowBright:s,bgBlueBright:s,bgMagentaBright:s,bgCyanBright:s,bgWhiteBright:s}};return ht.exports=e(),ht.exports.createColors=e,ht.exports}const so={},ro=Object.freeze(Object.defineProperty({__proto__:null,default:so},Symbol.toStringTag,{value:"Module"})),de=io(ro);var Bt,on;function Ei(){if(on)return Bt;on=1;let s=no(),e=de;class t extends Error{constructor(i,c,a,p,b,h){super(i),this.name="CssSyntaxError",this.reason=i,b&&(this.file=b),p&&(this.source=p),h&&(this.plugin=h),typeof c<"u"&&typeof a<"u"&&(typeof c=="number"?(this.line=c,this.column=a):(this.line=c.line,this.column=c.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(i){if(!this.source)return"";let c=this.source;i==null&&(i=s.isColorSupported);let a=l=>l,p=l=>l,b=l=>l;if(i){let{bold:l,gray:f,red:m}=s.createColors(!0);p=g=>l(m(g)),a=g=>f(g),e&&(b=g=>e(g))}let h=c.split(/\r?\n/),r=Math.max(this.line-3,0),u=Math.min(this.line+2,h.length),o=String(u).length;return h.slice(r,u).map((l,f)=>{let m=r+1+f,g=" "+(" "+m).slice(-o)+" | ";if(m===this.line){if(l.length>160){let E=20,v=Math.max(0,this.column-E),w=Math.max(this.column+E,this.endColumn+E),y=l.slice(v,w),A=a(g.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,E-1)).replace(/[^\t]/g," ");return p(">")+a(g)+b(y)+`
|
|
327
|
+
`+A+p("^")}let _=a(g.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return p(">")+a(g)+b(l)+`
|
|
328
|
+
`+_+p("^")}return" "+a(g)+b(l)}).join(`
|
|
329
|
+
`)}toString(){let i=this.showSourceCode();return i&&(i=`
|
|
331
330
|
|
|
332
|
-
`+
|
|
333
|
-
`),this.name+": "+this.message+
|
|
331
|
+
`+i+`
|
|
332
|
+
`),this.name+": "+this.message+i}}return Bt=t,t.default=t,Bt}var Ut,an;function Zn(){if(an)return Ut;an=1;const s={after:`
|
|
334
333
|
`,beforeClose:`
|
|
335
334
|
`,beforeComment:`
|
|
336
335
|
`,beforeDecl:`
|
|
337
336
|
`,beforeOpen:" ",beforeRule:`
|
|
338
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(n){return n[0].toUpperCase()+n.slice(1)}class
|
|
339
|
-
`)){let h=this.raw(
|
|
340
|
-
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawBeforeComment(
|
|
341
|
-
`)&&(
|
|
342
|
-
`)&&(
|
|
343
|
-
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawColon(
|
|
344
|
-
`);return c=b[b.length-1],c=c.replace(/\S/g,""),!1}}),c}rawSemicolon(
|
|
345
|
-
`?(
|
|
346
|
-
`?(s=1,u+=1):s+=1;return{column:s,line:u,offset:f}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h={}){let s="document"in this.source.input?this.source.input.document:this.source.input.css,u={column:this.source.start.column,line:this.source.start.line,offset:o(s,this.source.start)},a=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:o(s,this.source.end)+1}:{column:u.column+1,line:u.line,offset:u.offset+1};if(h.word){let f=s.slice(o(s,this.source.start),o(s,this.source.end)).indexOf(h.word);f!==-1&&(u=this.positionInside(f),a=this.positionInside(f+h.word.length))}else h.start?u={column:h.start.column,line:h.start.line,offset:o(s,h.start)}:h.index&&(u=this.positionInside(h.index)),h.end?a={column:h.end.column,line:h.end.line,offset:o(s,h.end)}:typeof h.endIndex=="number"?a=this.positionInside(h.endIndex):h.index&&(a=this.positionInside(h.index+1));return(a.line<u.line||a.line===u.line&&a.column<=u.column)&&(a={column:u.column+1,line:u.line,offset:u.offset+1}),{end:a,start:u}}raw(h,s){return new e().raw(this,h,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let s=this,u=!1;for(let a of h)a===this?u=!0:u?(this.parent.insertAfter(s,a),s=a):this.parent.insertBefore(s,a);u||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,s){let u={},a=s==null;s=s||new Map;let l=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let m=this[f];if(Array.isArray(m))u[f]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,s):g);else if(typeof m=="object"&&m.toJSON)u[f]=m.toJSON(null,s);else if(f==="source"){if(m==null)continue;let g=s.get(m.input);g==null&&(g=l,s.set(m.input,l),l++),u[f]={end:m.end,inputId:g,start:m.start}}else u[f]=m}return a&&(u.inputs=[...s.keys()].map(f=>f.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=i){h.stringify&&(h=h.stringify);let s="";return h(this,u=>{s+=u}),s}warn(h,s,u={}){let a={node:this};for(let l in u)a[l]=u[l];return h.warn(s,a)}}return Ut=p,p.default=p,Ut}var Ft,an;function _t(){if(an)return Ft;an=1;let r=Et();class e extends r{constructor(n){super(n),this.type="comment"}}return Ft=e,e.default=e,Ft}var qt,ln;function St(){if(ln)return qt;ln=1;let r=Et();class e extends r{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(n){n&&typeof n.value<"u"&&typeof n.value!="string"&&(n={...n,value:String(n.value)}),super(n),this.type="decl"}}return qt=e,e.default=e,qt}var Ht,cn;function Le(){if(cn)return Ht;cn=1;let r=_t(),e=St(),i=Et(),{isClean:n,my:t}=xi(),c,o,p,b;function h(a){return a.map(l=>(l.nodes&&(l.nodes=h(l.nodes)),delete l.source,l))}function s(a){if(a[n]=!1,a.proxyOf.nodes)for(let l of a.proxyOf.nodes)s(l)}class u extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...l){for(let f of l){let m=this.normalize(f,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let f of this.nodes)f.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let f=this.getIterator(),m,g;for(;this.indexes[f]<this.proxyOf.nodes.length&&(m=this.indexes[f],g=l(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[f]+=1;return delete this.indexes[f],g}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,f){return f==="proxyOf"?l:l[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...m)=>l[f](...m.map(g=>typeof g=="function"?(E,_)=>g(E.toProxy(),_):g)):f==="every"||f==="some"?m=>l[f]((g,...E)=>m(g.toProxy(),...E)):f==="root"?()=>l.root().toProxy():f==="nodes"?l.nodes.map(m=>m.toProxy()):f==="first"||f==="last"?l[f].toProxy():l[f]:l[f]},set(l,f,m){return l[f]===m||(l[f]=m,(f==="name"||f==="params"||f==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,f){let m=this.index(l),g=this.normalize(f,this.proxyOf.nodes[m]).reverse();m=this.index(l);for(let _ of g)this.proxyOf.nodes.splice(m+1,0,_);let E;for(let _ in this.indexes)E=this.indexes[_],m<E&&(this.indexes[_]=E+g.length);return this.markDirty(),this}insertBefore(l,f){let m=this.index(l),g=m===0?"prepend":!1,E=this.normalize(f,this.proxyOf.nodes[m],g).reverse();m=this.index(l);for(let v of E)this.proxyOf.nodes.splice(m,0,v);let _;for(let v in this.indexes)_=this.indexes[v],m<=_&&(this.indexes[v]=_+E.length);return this.markDirty(),this}normalize(l,f){if(typeof l=="string")l=h(o(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new e(l)]}else if(l.selector||l.selectors)l=[new b(l)];else if(l.name)l=[new c(l)];else if(l.text)l=[new r(l)];else throw new Error("Unknown node type in node creation");return l.map(g=>(g[t]||u.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[n]&&s(g),g.raws||(g.raws={}),typeof g.raws.before>"u"&&f&&typeof f.raws.before<"u"&&(g.raws.before=f.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...l){l=l.reverse();for(let f of l){let m=this.normalize(f,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let f;for(let m in this.indexes)f=this.indexes[m],f>=l&&(this.indexes[m]=f-1);return this.markDirty(),this}replaceValues(l,f,m){return m||(m=f,f={}),this.walkDecls(g=>{f.props&&!f.props.includes(g.prop)||f.fast&&!g.value.includes(f.fast)||(g.value=g.value.replace(l,m))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((f,m)=>{let g;try{g=l(f,m)}catch(E){throw f.addToError(E)}return g!==!1&&f.walk&&(g=f.walk(l)),g})}walkAtRules(l,f){return f?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&l.test(m.name))return f(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===l)return f(m,g)}):(f=l,this.walk((m,g)=>{if(m.type==="atrule")return f(m,g)}))}walkComments(l){return this.walk((f,m)=>{if(f.type==="comment")return l(f,m)})}walkDecls(l,f){return f?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&l.test(m.prop))return f(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===l)return f(m,g)}):(f=l,this.walk((m,g)=>{if(m.type==="decl")return f(m,g)}))}walkRules(l,f){return f?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&l.test(m.selector))return f(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===l)return f(m,g)}):(f=l,this.walk((m,g)=>{if(m.type==="rule")return f(m,g)}))}}return u.registerParse=a=>{o=a},u.registerRule=a=>{b=a},u.registerAtRule=a=>{c=a},u.registerRoot=a=>{p=a},Ht=u,u.default=u,u.rebuild=a=>{a.type==="atrule"?Object.setPrototypeOf(a,c.prototype):a.type==="rule"?Object.setPrototypeOf(a,b.prototype):a.type==="decl"?Object.setPrototypeOf(a,e.prototype):a.type==="comment"?Object.setPrototypeOf(a,r.prototype):a.type==="root"&&Object.setPrototypeOf(a,p.prototype),a[t]=!0,a.nodes&&a.nodes.forEach(l=>{u.rebuild(l)})},Ht}var Wt,un;function Ei(){if(un)return Wt;un=1;let r=Le();class e extends r{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}}return Wt=e,e.default=e,r.registerAtRule(e),Wt}var Gt,hn;function _i(){if(hn)return Gt;hn=1;let r=Le(),e,i;class n extends r{constructor(c){super({type:"document",...c}),this.nodes||(this.nodes=[])}toResult(c={}){return new e(new i,this,c).stringify()}}return n.registerLazyResult=t=>{e=t},n.registerProcessor=t=>{i=t},Gt=n,n.default=n,Gt}var Vt,dn;function Ks(){if(dn)return Vt;dn=1;let r="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Vt={nanoid:(n=21)=>{let t="",c=n|0;for(;c--;)t+=r[Math.random()*64|0];return t},customAlphabet:(n,t=21)=>(c=t)=>{let o="",p=c|0;for(;p--;)o+=n[Math.random()*n.length|0];return o}},Vt}var Zt,fn;function Fn(){if(fn)return Zt;fn=1;let{existsSync:r,readFileSync:e}=de,{dirname:i,join:n}=de,{SourceMapConsumer:t,SourceMapGenerator:c}=de;function o(b){return Buffer?Buffer.from(b,"base64").toString():window.atob(b)}class p{constructor(h,s){if(s.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let u=s.map?s.map.prev:void 0,a=this.loadMap(s.from,u);!this.mapFile&&s.from&&(this.mapFile=s.from),this.mapFile&&(this.root=i(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new t(this.text)),this.consumerCache}decodeInline(h){let s=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/,f=h.match(a)||h.match(l);if(f)return decodeURIComponent(h.substr(f[0].length));let m=h.match(s)||h.match(u);if(m)return o(h.substr(m[0].length));let g=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let s=h.match(/\/\*\s*# sourceMappingURL=/g);if(!s)return;let u=h.lastIndexOf(s.pop()),a=h.indexOf("*/",u);u>-1&&a>-1&&(this.annotation=this.getAnnotationURL(h.substring(u,a)))}loadFile(h){if(this.root=i(h),r(h))return this.mapFile=h,e(h,"utf-8").toString().trim()}loadMap(h,s){if(s===!1)return!1;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let u=s(h);if(u){let a=this.loadFile(u);if(!a)throw new Error("Unable to load previous source map: "+u.toString());return a}}else{if(s instanceof t)return c.fromSourceMap(s).toString();if(s instanceof c)return s.toString();if(this.isMap(s))return JSON.stringify(s);throw new Error("Unsupported previous source map format: "+s.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return h&&(u=n(i(h),u)),this.loadFile(u)}}}startWith(h,s){return h?h.substr(0,s.length)===s:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Zt=p,p.default=p,Zt}var Kt,pn;function At(){if(pn)return Kt;pn=1;let{nanoid:r}=Ks(),{isAbsolute:e,resolve:i}=de,{SourceMapConsumer:n,SourceMapGenerator:t}=de,{fileURLToPath:c,pathToFileURL:o}=de,p=vi(),b=Fn(),h=de,s=Symbol("lineToIndexCache"),u=!!(n&&t),a=!!(i&&e);function l(m){if(m[s])return m[s];let g=m.css.split(`
|
|
347
|
-
`),
|
|
348
|
-
`," "];return
|
|
337
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(n){return n[0].toUpperCase()+n.slice(1)}class t{constructor(i){this.builder=i}atrule(i,c){let a="@"+i.name,p=i.params?this.rawValue(i,"params"):"";if(typeof i.raws.afterName<"u"?a+=i.raws.afterName:p&&(a+=" "),i.nodes)this.block(i,a+p);else{let b=(i.raws.between||"")+(c?";":"");this.builder(a+p+b,i)}}beforeAfter(i,c){let a;i.type==="decl"?a=this.raw(i,null,"beforeDecl"):i.type==="comment"?a=this.raw(i,null,"beforeComment"):c==="before"?a=this.raw(i,null,"beforeRule"):a=this.raw(i,null,"beforeClose");let p=i.parent,b=0;for(;p&&p.type!=="root";)b+=1,p=p.parent;if(a.includes(`
|
|
338
|
+
`)){let h=this.raw(i,null,"indent");if(h.length)for(let r=0;r<b;r++)a+=h}return a}block(i,c){let a=this.raw(i,"between","beforeOpen");this.builder(c+a+"{",i,"start");let p;i.nodes&&i.nodes.length?(this.body(i),p=this.raw(i,"after")):p=this.raw(i,"after","emptyBody"),p&&this.builder(p),this.builder("}",i,"end")}body(i){let c=i.nodes.length-1;for(;c>0&&i.nodes[c].type==="comment";)c-=1;let a=this.raw(i,"semicolon");for(let p=0;p<i.nodes.length;p++){let b=i.nodes[p],h=this.raw(b,"before");h&&this.builder(h),this.stringify(b,c!==p||a)}}comment(i){let c=this.raw(i,"left","commentLeft"),a=this.raw(i,"right","commentRight");this.builder("/*"+c+i.text+a+"*/",i)}decl(i,c){let a=this.raw(i,"between","colon"),p=i.prop+a+this.rawValue(i,"value");i.important&&(p+=i.raws.important||" !important"),c&&(p+=";"),this.builder(p,i)}document(i){this.body(i)}raw(i,c,a){let p;if(a||(a=c),c&&(p=i.raws[c],typeof p<"u"))return p;let b=i.parent;if(a==="before"&&(!b||b.type==="root"&&b.first===i||b&&b.type==="document"))return"";if(!b)return s[a];let h=i.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[a]<"u")return h.rawCache[a];if(a==="before"||a==="after")return this.beforeAfter(i,a);{let r="raw"+e(a);this[r]?p=this[r](h,i):h.walk(u=>{if(p=u.raws[c],typeof p<"u")return!1})}return typeof p>"u"&&(p=s[a]),h.rawCache[a]=p,p}rawBeforeClose(i){let c;return i.walk(a=>{if(a.nodes&&a.nodes.length>0&&typeof a.raws.after<"u")return c=a.raws.after,c.includes(`
|
|
339
|
+
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawBeforeComment(i,c){let a;return i.walkComments(p=>{if(typeof p.raws.before<"u")return a=p.raws.before,a.includes(`
|
|
340
|
+
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(c,null,"beforeDecl"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeDecl(i,c){let a;return i.walkDecls(p=>{if(typeof p.raws.before<"u")return a=p.raws.before,a.includes(`
|
|
341
|
+
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(c,null,"beforeRule"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(i){let c;return i.walk(a=>{if(a.type!=="decl"&&(c=a.raws.between,typeof c<"u"))return!1}),c}rawBeforeRule(i){let c;return i.walk(a=>{if(a.nodes&&(a.parent!==i||i.first!==a)&&typeof a.raws.before<"u")return c=a.raws.before,c.includes(`
|
|
342
|
+
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawColon(i){let c;return i.walkDecls(a=>{if(typeof a.raws.between<"u")return c=a.raws.between.replace(/[^\s:]/g,""),!1}),c}rawEmptyBody(i){let c;return i.walk(a=>{if(a.nodes&&a.nodes.length===0&&(c=a.raws.after,typeof c<"u"))return!1}),c}rawIndent(i){if(i.raws.indent)return i.raws.indent;let c;return i.walk(a=>{let p=a.parent;if(p&&p!==i&&p.parent&&p.parent===i&&typeof a.raws.before<"u"){let b=a.raws.before.split(`
|
|
343
|
+
`);return c=b[b.length-1],c=c.replace(/\S/g,""),!1}}),c}rawSemicolon(i){let c;return i.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(c=a.raws.semicolon,typeof c<"u"))return!1}),c}rawValue(i,c){let a=i[c],p=i.raws[c];return p&&p.value===a?p.raw:a}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,c){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,c)}}return Ut=t,t.default=t,Ut}var Ft,ln;function Et(){if(ln)return Ft;ln=1;let s=Zn();function e(t,n){new s(n).stringify(t)}return Ft=e,e.default=e,Ft}var dt={},cn;function Ai(){return cn||(cn=1,dt.isClean=Symbol("isClean"),dt.my=Symbol("my")),dt}var Ht,un;function At(){if(un)return Ht;un=1;let s=Ei(),e=Zn(),t=Et(),{isClean:n,my:i}=Ai();function c(b,h){let r=new b.constructor;for(let u in b){if(!Object.prototype.hasOwnProperty.call(b,u)||u==="proxyCache")continue;let o=b[u],l=typeof o;u==="parent"&&l==="object"?h&&(r[u]=h):u==="source"?r[u]=o:Array.isArray(o)?r[u]=o.map(f=>c(f,r)):(l==="object"&&o!==null&&(o=c(o)),r[u]=o)}return r}function a(b,h){if(h&&typeof h.offset<"u")return h.offset;let r=1,u=1,o=0;for(let l=0;l<b.length;l++){if(u===h.line&&r===h.column){o=l;break}b[l]===`
|
|
344
|
+
`?(r=1,u+=1):r+=1}return o}class p{get proxyOf(){return this}constructor(h={}){this.raws={},this[n]=!1,this[i]=!0;for(let r in h)if(r==="nodes"){this.nodes=[];for(let u of h[r])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[r]=h[r]}addToError(h){if(h.postcssNode=this,h.stack&&this.source&&/\n\s{4}at /.test(h.stack)){let r=this.source;h.stack=h.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return h}after(h){return this.parent.insertAfter(this,h),this}assign(h={}){for(let r in h)this[r]=h[r];return this}before(h){return this.parent.insertBefore(this,h),this}cleanRaws(h){delete this.raws.before,delete this.raws.after,h||delete this.raws.between}clone(h={}){let r=c(this);for(let u in h)r[u]=h[u];return r}cloneAfter(h={}){let r=this.clone(h);return this.parent.insertAfter(this,r),r}cloneBefore(h={}){let r=this.clone(h);return this.parent.insertBefore(this,r),r}error(h,r={}){if(this.source){let{end:u,start:o}=this.rangeBy(r);return this.source.input.error(h,{column:o.column,line:o.line},{column:u.column,line:u.line},r)}return new s(h)}getProxyProcessor(){return{get(h,r){return r==="proxyOf"?h:r==="root"?()=>h.root().toProxy():h[r]},set(h,r,u){return h[r]===u||(h[r]=u,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&h.markDirty()),!0}}}markClean(){this[n]=!0}markDirty(){if(this[n]){this[n]=!1;let h=this;for(;h=h.parent;)h[n]=!1}}next(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h+1]}positionBy(h={}){let r=this.source.start;if(h.index)r=this.positionInside(h.index);else if(h.word){let u="document"in this.source.input?this.source.input.document:this.source.input.css,l=u.slice(a(u,this.source.start),a(u,this.source.end)).indexOf(h.word);l!==-1&&(r=this.positionInside(l))}return r}positionInside(h){let r=this.source.start.column,u=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,l=a(o,this.source.start),f=l+h;for(let m=l;m<f;m++)o[m]===`
|
|
345
|
+
`?(r=1,u+=1):r+=1;return{column:r,line:u,offset:f}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,u={column:this.source.start.column,line:this.source.start.line,offset:a(r,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:a(r,this.source.end)+1}:{column:u.column+1,line:u.line,offset:u.offset+1};if(h.word){let f=r.slice(a(r,this.source.start),a(r,this.source.end)).indexOf(h.word);f!==-1&&(u=this.positionInside(f),o=this.positionInside(f+h.word.length))}else h.start?u={column:h.start.column,line:h.start.line,offset:a(r,h.start)}:h.index&&(u=this.positionInside(h.index)),h.end?o={column:h.end.column,line:h.end.line,offset:a(r,h.end)}:typeof h.endIndex=="number"?o=this.positionInside(h.endIndex):h.index&&(o=this.positionInside(h.index+1));return(o.line<u.line||o.line===u.line&&o.column<=u.column)&&(o={column:u.column+1,line:u.line,offset:u.offset+1}),{end:o,start:u}}raw(h,r){return new e().raw(this,h,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let r=this,u=!1;for(let o of h)o===this?u=!0:u?(this.parent.insertAfter(r,o),r=o):this.parent.insertBefore(r,o);u||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,r){let u={},o=r==null;r=r||new Map;let l=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let m=this[f];if(Array.isArray(m))u[f]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,r):g);else if(typeof m=="object"&&m.toJSON)u[f]=m.toJSON(null,r);else if(f==="source"){if(m==null)continue;let g=r.get(m.input);g==null&&(g=l,r.set(m.input,l),l++),u[f]={end:m.end,inputId:g,start:m.start}}else u[f]=m}return o&&(u.inputs=[...r.keys()].map(f=>f.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=t){h.stringify&&(h=h.stringify);let r="";return h(this,u=>{r+=u}),r}warn(h,r,u={}){let o={node:this};for(let l in u)o[l]=u[l];return h.warn(r,o)}}return Ht=p,p.default=p,Ht}var qt,hn;function St(){if(hn)return qt;hn=1;let s=At();class e extends s{constructor(n){super(n),this.type="comment"}}return qt=e,e.default=e,qt}var Wt,dn;function kt(){if(dn)return Wt;dn=1;let s=At();class e extends s{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(n){n&&typeof n.value<"u"&&typeof n.value!="string"&&(n={...n,value:String(n.value)}),super(n),this.type="decl"}}return Wt=e,e.default=e,Wt}var Gt,fn;function Ne(){if(fn)return Gt;fn=1;let s=St(),e=kt(),t=At(),{isClean:n,my:i}=Ai(),c,a,p,b;function h(o){return o.map(l=>(l.nodes&&(l.nodes=h(l.nodes)),delete l.source,l))}function r(o){if(o[n]=!1,o.proxyOf.nodes)for(let l of o.proxyOf.nodes)r(l)}class u extends t{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...l){for(let f of l){let m=this.normalize(f,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let f of this.nodes)f.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let f=this.getIterator(),m,g;for(;this.indexes[f]<this.proxyOf.nodes.length&&(m=this.indexes[f],g=l(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[f]+=1;return delete this.indexes[f],g}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,f){return f==="proxyOf"?l:l[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...m)=>l[f](...m.map(g=>typeof g=="function"?(_,E)=>g(_.toProxy(),E):g)):f==="every"||f==="some"?m=>l[f]((g,..._)=>m(g.toProxy(),..._)):f==="root"?()=>l.root().toProxy():f==="nodes"?l.nodes.map(m=>m.toProxy()):f==="first"||f==="last"?l[f].toProxy():l[f]:l[f]},set(l,f,m){return l[f]===m||(l[f]=m,(f==="name"||f==="params"||f==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,f){let m=this.index(l),g=this.normalize(f,this.proxyOf.nodes[m]).reverse();m=this.index(l);for(let E of g)this.proxyOf.nodes.splice(m+1,0,E);let _;for(let E in this.indexes)_=this.indexes[E],m<_&&(this.indexes[E]=_+g.length);return this.markDirty(),this}insertBefore(l,f){let m=this.index(l),g=m===0?"prepend":!1,_=this.normalize(f,this.proxyOf.nodes[m],g).reverse();m=this.index(l);for(let v of _)this.proxyOf.nodes.splice(m,0,v);let E;for(let v in this.indexes)E=this.indexes[v],m<=E&&(this.indexes[v]=E+_.length);return this.markDirty(),this}normalize(l,f){if(typeof l=="string")l=h(a(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new e(l)]}else if(l.selector||l.selectors)l=[new b(l)];else if(l.name)l=[new c(l)];else if(l.text)l=[new s(l)];else throw new Error("Unknown node type in node creation");return l.map(g=>(g[i]||u.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[n]&&r(g),g.raws||(g.raws={}),typeof g.raws.before>"u"&&f&&typeof f.raws.before<"u"&&(g.raws.before=f.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...l){l=l.reverse();for(let f of l){let m=this.normalize(f,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let f;for(let m in this.indexes)f=this.indexes[m],f>=l&&(this.indexes[m]=f-1);return this.markDirty(),this}replaceValues(l,f,m){return m||(m=f,f={}),this.walkDecls(g=>{f.props&&!f.props.includes(g.prop)||f.fast&&!g.value.includes(f.fast)||(g.value=g.value.replace(l,m))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((f,m)=>{let g;try{g=l(f,m)}catch(_){throw f.addToError(_)}return g!==!1&&f.walk&&(g=f.walk(l)),g})}walkAtRules(l,f){return f?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&l.test(m.name))return f(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===l)return f(m,g)}):(f=l,this.walk((m,g)=>{if(m.type==="atrule")return f(m,g)}))}walkComments(l){return this.walk((f,m)=>{if(f.type==="comment")return l(f,m)})}walkDecls(l,f){return f?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&l.test(m.prop))return f(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===l)return f(m,g)}):(f=l,this.walk((m,g)=>{if(m.type==="decl")return f(m,g)}))}walkRules(l,f){return f?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&l.test(m.selector))return f(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===l)return f(m,g)}):(f=l,this.walk((m,g)=>{if(m.type==="rule")return f(m,g)}))}}return u.registerParse=o=>{a=o},u.registerRule=o=>{b=o},u.registerAtRule=o=>{c=o},u.registerRoot=o=>{p=o},Gt=u,u.default=u,u.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,c.prototype):o.type==="rule"?Object.setPrototypeOf(o,b.prototype):o.type==="decl"?Object.setPrototypeOf(o,e.prototype):o.type==="comment"?Object.setPrototypeOf(o,s.prototype):o.type==="root"&&Object.setPrototypeOf(o,p.prototype),o[i]=!0,o.nodes&&o.nodes.forEach(l=>{u.rebuild(l)})},Gt}var Vt,pn;function Si(){if(pn)return Vt;pn=1;let s=Ne();class e extends s{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}}return Vt=e,e.default=e,s.registerAtRule(e),Vt}var Zt,mn;function ki(){if(mn)return Zt;mn=1;let s=Ne(),e,t;class n extends s{constructor(c){super({type:"document",...c}),this.nodes||(this.nodes=[])}toResult(c={}){return new e(new t,this,c).stringify()}}return n.registerLazyResult=i=>{e=i},n.registerProcessor=i=>{t=i},Zt=n,n.default=n,Zt}var Kt,gn;function oo(){if(gn)return Kt;gn=1;let s="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Kt={nanoid:(n=21)=>{let i="",c=n|0;for(;c--;)i+=s[Math.random()*64|0];return i},customAlphabet:(n,i=21)=>(c=i)=>{let a="",p=c|0;for(;p--;)a+=n[Math.random()*n.length|0];return a}},Kt}var Jt,bn;function Kn(){if(bn)return Jt;bn=1;let{existsSync:s,readFileSync:e}=de,{dirname:t,join:n}=de,{SourceMapConsumer:i,SourceMapGenerator:c}=de;function a(b){return Buffer?Buffer.from(b,"base64").toString():window.atob(b)}class p{constructor(h,r){if(r.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let u=r.map?r.map.prev:void 0,o=this.loadMap(r.from,u);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=t(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(h){let r=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/,f=h.match(o)||h.match(l);if(f)return decodeURIComponent(h.substr(f[0].length));let m=h.match(r)||h.match(u);if(m)return a(h.substr(m[0].length));let g=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let r=h.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let u=h.lastIndexOf(r.pop()),o=h.indexOf("*/",u);u>-1&&o>-1&&(this.annotation=this.getAnnotationURL(h.substring(u,o)))}loadFile(h){if(this.root=t(h),s(h))return this.mapFile=h,e(h,"utf-8").toString().trim()}loadMap(h,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let u=r(h);if(u){let o=this.loadFile(u);if(!o)throw new Error("Unable to load previous source map: "+u.toString());return o}}else{if(r instanceof i)return c.fromSourceMap(r).toString();if(r instanceof c)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return h&&(u=n(t(h),u)),this.loadFile(u)}}}startWith(h,r){return h?h.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Jt=p,p.default=p,Jt}var Xt,yn;function Ct(){if(yn)return Xt;yn=1;let{nanoid:s}=oo(),{isAbsolute:e,resolve:t}=de,{SourceMapConsumer:n,SourceMapGenerator:i}=de,{fileURLToPath:c,pathToFileURL:a}=de,p=Ei(),b=Kn(),h=de,r=Symbol("lineToIndexCache"),u=!!(n&&i),o=!!(t&&e);function l(m){if(m[r])return m[r];let g=m.css.split(`
|
|
346
|
+
`),_=new Array(g.length),E=0;for(let v=0,w=g.length;v<w;v++)_[v]=E,E+=g[v].length+1;return m[r]=_,_}class f{get from(){return this.file||this.id}constructor(g,_={}){if(g===null||typeof g>"u"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,_.document&&(this.document=_.document.toString()),_.from&&(!o||/^\w+:\/\//.test(_.from)||e(_.from)?this.file=_.from:this.file=t(_.from)),o&&u){let E=new b(this.css,_);if(E.text){this.map=E;let v=E.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(g,_,E,v={}){let w,y,A,$,P;if(_&&typeof _=="object"){let M=_,J=E;if(typeof M.offset=="number"){$=M.offset;let H=this.fromOffset($);_=H.line,E=H.col}else _=M.line,E=M.column,$=this.fromLineAndColumn(_,E);if(typeof J.offset=="number"){A=J.offset;let H=this.fromOffset(A);y=H.line,w=H.col}else y=J.line,w=J.column,A=this.fromLineAndColumn(J.line,J.column)}else if(E)$=this.fromLineAndColumn(_,E);else{$=_;let M=this.fromOffset($);_=M.line,E=M.col}let B=this.origin(_,E,y,w);return B?P=new p(g,B.endLine===void 0?B.line:{column:B.column,line:B.line},B.endLine===void 0?B.column:{column:B.endColumn,line:B.endLine},B.source,B.file,v.plugin):P=new p(g,y===void 0?_:{column:E,line:_},y===void 0?E:{column:w,line:y},this.css,this.file,v.plugin),P.input={column:E,endColumn:w,endLine:y,endOffset:A,line:_,offset:$,source:this.css},this.file&&(a&&(P.input.url=a(this.file).toString()),P.input.file=this.file),P}fromLineAndColumn(g,_){return l(this)[g-1]+_-1}fromOffset(g){let _=l(this),E=_[_.length-1],v=0;if(g>=E)v=_.length-1;else{let w=_.length-2,y;for(;v<w;)if(y=v+(w-v>>1),g<_[y])w=y-1;else if(g>=_[y+1])v=y+1;else{v=y;break}}return{col:g-_[v]+1,line:v+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:t(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,_,E,v){if(!this.map)return!1;let w=this.map.consumer(),y=w.originalPositionFor({column:_,line:g});if(!y.source)return!1;let A;typeof E=="number"&&(A=w.originalPositionFor({column:v,line:E}));let $;e(y.source)?$=a(y.source):$=new URL(y.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let P={column:y.column,endColumn:A&&A.column,endLine:A&&A.line,line:y.line,url:$.toString()};if($.protocol==="file:")if(c)P.file=c($);else throw new Error("file: protocol is not available in this PostCSS build");let B=w.sourceContentFor(y.source);return B&&(P.source=B),P}toJSON(){let g={};for(let _ of["hasBOM","css","file","id"])this[_]!=null&&(g[_]=this[_]);return this.map&&(g.map={...this.map},g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Xt=f,f.default=f,h&&h.registerInput&&h.registerInput(f),Xt}var Qt,wn;function it(){if(wn)return Qt;wn=1;let s=Ne(),e,t;class n extends s{constructor(c){super(c),this.type="root",this.nodes||(this.nodes=[])}normalize(c,a,p){let b=super.normalize(c);if(a){if(p==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let h of b)h.raws.before=a.raws.before}return b}removeChild(c,a){let p=this.index(c);return!a&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(c)}toResult(c={}){return new e(new t,this,c).stringify()}}return n.registerLazyResult=i=>{e=i},n.registerProcessor=i=>{t=i},Qt=n,n.default=n,s.registerRoot(n),Qt}var Yt,vn;function Jn(){if(vn)return Yt;vn=1;let s={comma(e){return s.split(e,[","],!0)},space(e){let t=[" ",`
|
|
347
|
+
`," "];return s.split(e,t)},split(e,t,n){let i=[],c="",a=!1,p=0,b=!1,h="",r=!1;for(let u of e)r?r=!1:u==="\\"?r=!0:b?u===h&&(b=!1):u==='"'||u==="'"?(b=!0,h=u):u==="("?p+=1:u===")"?p>0&&(p-=1):p===0&&t.includes(u)&&(a=!0),a?(c!==""&&i.push(c.trim()),c="",a=!1):c+=u;return(n||c!=="")&&i.push(c.trim()),i}};return Yt=s,s.default=s,Yt}var ei,xn;function Ci(){if(xn)return ei;xn=1;let s=Ne(),e=Jn();class t extends s{get selectors(){return e.comma(this.selector)}set selectors(i){let c=this.selector?this.selector.match(/,\s*/):null,a=c?c[0]:","+this.raw("between","beforeOpen");this.selector=i.join(a)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}}return ei=t,t.default=t,s.registerRule(t),ei}var ti,_n;function ao(){if(_n)return ti;_n=1;let s=Si(),e=St(),t=kt(),n=Ct(),i=Kn(),c=it(),a=Ci();function p(b,h){if(Array.isArray(b))return b.map(o=>p(o));let{inputs:r,...u}=b;if(r){h=[];for(let o of r){let l={...o,__proto__:n.prototype};l.map&&(l.map={...l.map,__proto__:i.prototype}),h.push(l)}}if(u.nodes&&(u.nodes=b.nodes.map(o=>p(o,h))),u.source){let{inputId:o,...l}=u.source;u.source=l,o!=null&&(u.source.input=h[o])}if(u.type==="root")return new c(u);if(u.type==="decl")return new t(u);if(u.type==="rule")return new a(u);if(u.type==="comment")return new e(u);if(u.type==="atrule")return new s(u);throw new Error("Unknown node type: "+b.type)}return ti=p,p.default=p,ti}var ii,En;function Xn(){if(En)return ii;En=1;let{dirname:s,relative:e,resolve:t,sep:n}=de,{SourceMapConsumer:i,SourceMapGenerator:c}=de,{pathToFileURL:a}=de,p=Ct(),b=!!(i&&c),h=!!(s&&t&&e&&n);class r{constructor(o,l,f,m){this.stringify=o,this.mapOpts=f.map||{},this.root=l,this.opts=f,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let o;this.isInline()?o="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?o=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?o=this.mapOpts.annotation(this.opts.to,this.root):o=this.outputFile()+".map";let l=`
|
|
349
348
|
`;this.css.includes(`\r
|
|
350
349
|
`)&&(l=`\r
|
|
351
|
-
`),this.css+=l+"/*# sourceMappingURL="+
|
|
352
|
-
`),l=_.length-g):l+=_.length,v&&w!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=a,m.generated.column=l-2,this.map.addMapping(m)):(m.source=f,m.original.line=1,m.original.column=0,m.generated.line=a,m.generated.column=l-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(a=>a.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let a=this.mapOpts.annotation;return typeof a<"u"&&a!==!0?!1:this.previous().length?this.previous().some(l=>l.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(a=>a.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(a){if(this.mapOpts.absolute||a.charCodeAt(0)===60||/^\w+:\/\//.test(a))return a;let l=this.memoizedPaths.get(a);if(l)return l;let f=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=r(i(f,this.mapOpts.annotation)));let m=e(f,a);return this.memoizedPaths.set(a,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(a=>{if(a.source&&a.source.input.map){let l=a.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let a=new p(this.originalCSS,this.opts);a.map&&this.previousMaps.push(a.map)}return this.previousMaps}setSourcesContent(){let a={};if(this.root)this.root.walk(l=>{if(l.source){let f=l.source.input.from;if(f&&!a[f]){a[f]=!0;let m=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(m,l.source.input.css)}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css)}}sourcePath(a){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(a.source.input.from):this.toUrl(this.path(a.source.input.from))}toBase64(a){return Buffer?Buffer.from(a).toString("base64"):window.btoa(unescape(encodeURIComponent(a)))}toFileUrl(a){let l=this.memoizedFileURLs.get(a);if(l)return l;if(o){let f=o(a).toString();return this.memoizedFileURLs.set(a,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(a){let l=this.memoizedURLs.get(a);if(l)return l;n==="\\"&&(a=a.replace(/\\/g,"/"));let f=encodeURI(a).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(a,f),f}}return ei=s,ei}var ti,vn;function Xs(){if(vn)return ti;vn=1;const r=39,e=34,i=92,n=47,t=10,c=32,o=12,p=9,b=13,h=91,s=93,u=40,a=41,l=123,f=125,m=59,g=42,E=58,_=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return ti=function(P,B={}){let M=P.css.valueOf(),K=B.ignoreErrors,q,_e,he,$,Me,W,Y,le,ce,ye,Se=M.length,j=0,Be=[],Ne=[];function Ct(){return j}function Ue(we){throw P.error("Unclosed "+we,j)}function It(){return Ne.length===0&&j>=Se}function Pe(we){if(Ne.length)return Ne.pop();if(j>=Se)return;let Fe=we?we.ignoreUnclosed:!1;switch(q=M.charCodeAt(j),q){case t:case c:case p:case b:case o:{$=j;do $+=1,q=M.charCodeAt($);while(q===c||q===t||q===p||q===b||q===o);W=["space",M.slice(j,$)],j=$-1;break}case h:case s:case l:case f:case E:case m:case a:{let tt=String.fromCharCode(q);W=[tt,tt,j];break}case u:{if(ye=Be.length?Be.pop()[1]:"",ce=M.charCodeAt(j+1),ye==="url"&&ce!==r&&ce!==e&&ce!==c&&ce!==t&&ce!==p&&ce!==o&&ce!==b){$=j;do{if(Y=!1,$=M.indexOf(")",$+1),$===-1)if(K||Fe){$=j;break}else Ue("bracket");for(le=$;M.charCodeAt(le-1)===i;)le-=1,Y=!Y}while(Y);W=["brackets",M.slice(j,$+1),j,$],j=$}else $=M.indexOf(")",j+1),_e=M.slice(j,$+1),$===-1||y.test(_e)?W=["(","(",j]:(W=["brackets",_e,j,$],j=$);break}case r:case e:{Me=q===r?"'":'"',$=j;do{if(Y=!1,$=M.indexOf(Me,$+1),$===-1)if(K||Fe){$=j+1;break}else Ue("string");for(le=$;M.charCodeAt(le-1)===i;)le-=1,Y=!Y}while(Y);W=["string",M.slice(j,$+1),j,$],j=$;break}case _:{v.lastIndex=j+1,v.test(M),v.lastIndex===0?$=M.length-1:$=v.lastIndex-2,W=["at-word",M.slice(j,$+1),j,$],j=$;break}case i:{for($=j,he=!0;M.charCodeAt($+1)===i;)$+=1,he=!he;if(q=M.charCodeAt($+1),he&&q!==n&&q!==c&&q!==t&&q!==p&&q!==b&&q!==o&&($+=1,S.test(M.charAt($)))){for(;S.test(M.charAt($+1));)$+=1;M.charCodeAt($+1)===c&&($+=1)}W=["word",M.slice(j,$+1),j,$],j=$;break}default:{q===n&&M.charCodeAt(j+1)===g?($=M.indexOf("*/",j+2)+1,$===0&&(K||Fe?$=M.length:Ue("comment")),W=["comment",M.slice(j,$+1),j,$],j=$):(w.lastIndex=j+1,w.test(M),w.lastIndex===0?$=M.length-1:$=w.lastIndex-2,W=["word",M.slice(j,$+1),j,$],Be.push(W),j=$);break}}return j++,W}function Ot(we){Ne.push(we)}return{back:Ot,endOfFile:It,nextToken:Pe,position:Ct}},ti}var ii,xn;function Qs(){if(xn)return ii;xn=1;let r=Ei(),e=_t(),i=St(),n=et(),t=Si(),c=Xs();const o={empty:!0,space:!0};function p(h){for(let s=h.length-1;s>=0;s--){let u=h[s],a=u[3]||u[2];if(a)return a}}class b{constructor(s){this.input=s,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:s,start:{column:1,line:1,offset:0}}}atrule(s){let u=new r;u.name=s[1].slice(1),u.name===""&&this.unnamedAtrule(u,s),this.init(u,s[2]);let a,l,f,m=!1,g=!1,E=[],_=[];for(;!this.tokenizer.endOfFile();){if(s=this.tokenizer.nextToken(),a=s[0],a==="("||a==="["?_.push(a==="("?")":"]"):a==="{"&&_.length>0?_.push("}"):a===_[_.length-1]&&_.pop(),_.length===0)if(a===";"){u.source.end=this.getPosition(s[2]),u.source.end.offset++,this.semicolon=!0;break}else if(a==="{"){g=!0;break}else if(a==="}"){if(E.length>0){for(f=E.length-1,l=E[f];l&&l[0]==="space";)l=E[--f];l&&(u.source.end=this.getPosition(l[3]||l[2]),u.source.end.offset++)}this.end(s);break}else E.push(s);else E.push(s);if(this.tokenizer.endOfFile()){m=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(E),E.length?(u.raws.afterName=this.spacesAndCommentsFromStart(E),this.raw(u,"params",E),m&&(s=E[E.length-1],u.source.end=this.getPosition(s[3]||s[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),g&&(u.nodes=[],this.current=u)}checkMissedSemicolon(s){let u=this.colon(s);if(u===!1)return;let a=0,l;for(let f=u-1;f>=0&&(l=s[f],!(l[0]!=="space"&&(a+=1,a===2)));f--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(s){let u=0,a,l,f;for(let[m,g]of s.entries()){if(l=g,f=l[0],f==="("&&(u+=1),f===")"&&(u-=1),u===0&&f===":")if(!a)this.doubleColon(l);else{if(a[0]==="word"&&a[1]==="progid")continue;return m}a=l}return!1}comment(s){let u=new e;this.init(u,s[2]),u.source.end=this.getPosition(s[3]||s[2]),u.source.end.offset++;let a=s[1].slice(2,-2);if(/^\s*$/.test(a))u.text="",u.raws.left=a,u.raws.right="";else{let l=a.match(/^(\s*)([^]*\S)(\s*)$/);u.text=l[2],u.raws.left=l[1],u.raws.right=l[3]}}createTokenizer(){this.tokenizer=c(this.input)}decl(s,u){let a=new i;this.init(a,s[0][2]);let l=s[s.length-1];for(l[0]===";"&&(this.semicolon=!0,s.pop()),a.source.end=this.getPosition(l[3]||l[2]||p(s)),a.source.end.offset++;s[0][0]!=="word";)s.length===1&&this.unknownWord(s),a.raws.before+=s.shift()[1];for(a.source.start=this.getPosition(s[0][2]),a.prop="";s.length;){let _=s[0][0];if(_===":"||_==="space"||_==="comment")break;a.prop+=s.shift()[1]}a.raws.between="";let f;for(;s.length;)if(f=s.shift(),f[0]===":"){a.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),a.raws.between+=f[1];(a.prop[0]==="_"||a.prop[0]==="*")&&(a.raws.before+=a.prop[0],a.prop=a.prop.slice(1));let m=[],g;for(;s.length&&(g=s[0][0],!(g!=="space"&&g!=="comment"));)m.push(s.shift());this.precheckMissedSemicolon(s);for(let _=s.length-1;_>=0;_--){if(f=s[_],f[1].toLowerCase()==="!important"){a.important=!0;let v=this.stringFrom(s,_);v=this.spacesFromEnd(s)+v,v!==" !important"&&(a.raws.important=v);break}else if(f[1].toLowerCase()==="important"){let v=s.slice(0),w="";for(let y=_;y>0;y--){let S=v[y][0];if(w.trim().startsWith("!")&&S!=="space")break;w=v.pop()[1]+w}w.trim().startsWith("!")&&(a.important=!0,a.raws.important=w,s=v)}if(f[0]!=="space"&&f[0]!=="comment")break}s.some(_=>_[0]!=="space"&&_[0]!=="comment")&&(a.raws.between+=m.map(_=>_[1]).join(""),m=[]),this.raw(a,"value",m.concat(s),u),a.value.includes(":")&&!u&&this.checkMissedSemicolon(s)}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let u=new t;this.init(u,s[2]),u.selector="",u.raws.between="",this.current=u}end(s){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(s[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(s)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(s){if(this.spaces+=s[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="",u.source.end=this.getPosition(s[2]),u.source.end.offset+=u.raws.ownSemicolon.length)}}getPosition(s){let u=this.input.fromOffset(s);return{column:u.col,line:u.line,offset:s}}init(s,u){this.current.push(s),s.source={input:this.input,start:this.getPosition(u)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1)}other(s){let u=!1,a=null,l=!1,f=null,m=[],g=s[1].startsWith("--"),E=[],_=s;for(;_;){if(a=_[0],E.push(_),a==="("||a==="[")f||(f=_),m.push(a==="("?")":"]");else if(g&&l&&a==="{")f||(f=_),m.push("}");else if(m.length===0)if(a===";")if(l){this.decl(E,g);return}else break;else if(a==="{"){this.rule(E);return}else if(a==="}"){this.tokenizer.back(E.pop()),u=!0;break}else a===":"&&(l=!0);else a===m[m.length-1]&&(m.pop(),m.length===0&&(f=null));_=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),m.length>0&&this.unclosedBracket(f),u&&l){if(!g)for(;E.length&&(_=E[E.length-1][0],!(_!=="space"&&_!=="comment"));)this.tokenizer.back(E.pop());this.decl(E,g)}else this.unknownWord(E)}parse(){let s;for(;!this.tokenizer.endOfFile();)switch(s=this.tokenizer.nextToken(),s[0]){case"space":this.spaces+=s[1];break;case";":this.freeSemicolon(s);break;case"}":this.end(s);break;case"comment":this.comment(s);break;case"at-word":this.atrule(s);break;case"{":this.emptyRule(s);break;default:this.other(s);break}this.endFile()}precheckMissedSemicolon(){}raw(s,u,a,l){let f,m,g=a.length,E="",_=!0,v,w;for(let y=0;y<g;y+=1)f=a[y],m=f[0],m==="space"&&y===g-1&&!l?_=!1:m==="comment"?(w=a[y-1]?a[y-1][0]:"empty",v=a[y+1]?a[y+1][0]:"empty",!o[w]&&!o[v]?E.slice(-1)===","?_=!1:E+=f[1]:_=!1):E+=f[1];if(!_){let y=a.reduce((S,I)=>S+I[1],"");s.raws[u]={raw:y,value:E}}s[u]=E}rule(s){s.pop();let u=new t;this.init(u,s[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(u,"selector",s),this.current=u}spacesAndCommentsFromEnd(s){let u,a="";for(;s.length&&(u=s[s.length-1][0],!(u!=="space"&&u!=="comment"));)a=s.pop()[1]+a;return a}spacesAndCommentsFromStart(s){let u,a="";for(;s.length&&(u=s[0][0],!(u!=="space"&&u!=="comment"));)a+=s.shift()[1];return a}spacesFromEnd(s){let u,a="";for(;s.length&&(u=s[s.length-1][0],u==="space");)a=s.pop()[1]+a;return a}stringFrom(s,u){let a="";for(let l=u;l<s.length;l++)a+=s[l][1];return s.splice(u,s.length-u),a}unclosedBlock(){let s=this.current.source.start;throw this.input.error("Unclosed block",s.line,s.column)}unclosedBracket(s){throw this.input.error("Unclosed bracket",{offset:s[2]},{offset:s[2]+1})}unexpectedClose(s){throw this.input.error("Unexpected }",{offset:s[2]},{offset:s[2]+1})}unknownWord(s){throw this.input.error("Unknown word "+s[0][1],{offset:s[0][2]},{offset:s[0][2]+s[0][1].length})}unnamedAtrule(s,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return ii=b,ii}var ni,En;function Ai(){if(En)return ni;En=1;let r=Le(),e=At(),i=Qs();function n(t,c){let o=new e(t,c),p=new i(o);try{p.parse()}catch(b){throw b}return p.root}return ni=n,n.default=n,r.registerParse(n),ni}var ri,_n;function Wn(){if(_n)return ri;_n=1;class r{constructor(i,n={}){if(this.type="warning",this.text=i,n.node&&n.node.source){let t=n.node.rangeBy(n);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in n)this[t]=n[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ri=r,r.default=r,ri}var si,Sn;function ki(){if(Sn)return si;Sn=1;let r=Wn();class e{get content(){return this.css}constructor(n,t,c){this.processor=n,this.messages=[],this.root=t,this.opts=c,this.css="",this.map=void 0}toString(){return this.css}warn(n,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let c=new r(n,t);return this.messages.push(c),c}warnings(){return this.messages.filter(n=>n.type==="warning")}}return si=e,e.default=e,si}var oi,An;function Gn(){if(An)return oi;An=1;let r=Le(),e=_i(),i=Hn(),n=Ai(),t=ki(),c=et(),o=xt(),{isClean:p,my:b}=xi();const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},s={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},u={Once:!0,postcssPlugin:!0,prepare:!0},a=0;function l(v){return typeof v=="object"&&typeof v.then=="function"}function f(v){let w=!1,y=h[v.type];return v.type==="decl"?w=v.prop.toLowerCase():v.type==="atrule"&&(w=v.name.toLowerCase()),w&&v.append?[y,y+"-"+w,a,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:v.append?[y,a,y+"Exit"]:[y,y+"Exit"]}function m(v){let w;return v.type==="document"?w=["Document",a,"DocumentExit"]:v.type==="root"?w=["Root",a,"RootExit"]:w=f(v),{eventIndex:0,events:w,iterator:0,node:v,visitorIndex:0,visitors:[]}}function g(v){return v[p]=!1,v.nodes&&v.nodes.forEach(w=>g(w)),v}let E={};class _{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(w,y,S){this.stringified=!1,this.processed=!1;let I;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))I=g(y);else if(y instanceof _||y instanceof t)I=g(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let P=n;S.syntax&&(P=S.syntax.parse),S.parser&&(P=S.parser),P.parse&&(P=P.parse);try{I=P(y,S)}catch(B){this.processed=!0,this.error=B}I&&!I[b]&&r.rebuild(I)}this.result=new t(w,I,S),this.helpers={...E,postcss:E,result:this.result},this.plugins=this.processor.plugins.map(P=>typeof P=="object"&&P.prepare?{...P,...P.prepare(this.result)}:P)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let S=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=S.postcssPlugin,w.setMessage()):S.postcssVersion}catch(I){console&&console.error&&console.error(I)}return w}prepareVisitors(){this.listeners={};let w=(y,S,I)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,I])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!s[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[S])if(typeof y[S]=="object")for(let I in y[S])I==="*"?w(y,S,y[S][I]):w(y,S+"-"+I.toLowerCase(),y[S][I]);else typeof y[S]=="function"&&w(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],S=this.runOnRoot(y);if(l(S))try{await S}catch(I){throw this.handleError(I)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[p];){w[p]=!0;let y=[m(w)];for(;y.length>0;){let S=this.visitTick(y);if(l(S))try{await S}catch(I){let P=y[y.length-1].node;throw this.handleError(I,P)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let I=w.nodes.map(P=>S(P,this.helpers));await Promise.all(I)}else await S(w,this.helpers)}catch(I){throw this.handleError(I)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>w.Once(S,this.helpers));return l(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=o;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let I=new i(y,this.result.root,this.result.opts).generate();return this.result.css=I[0],this.result.map=I[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(l(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[p];)w[p]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[S,I]of w){this.result.lastPlugin=S;let P;try{P=I(y,this.helpers)}catch(B){throw this.handleError(B,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(l(P))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:S,visitors:I}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){w.pop();return}if(I.length>0&&y.visitorIndex<I.length){let[B,M]=I[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===I.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=B;try{return M(S.toProxy(),this.helpers)}catch(K){throw this.handleError(K,S)}}if(y.iterator!==0){let B=y.iterator,M;for(;M=S.nodes[S.indexes[B]];)if(S.indexes[B]+=1,!M[p]){M[p]=!0,w.push(m(M));return}y.iterator=0,delete S.indexes[B]}let P=y.events;for(;y.eventIndex<P.length;){let B=P[y.eventIndex];if(y.eventIndex+=1,B===a){S.nodes&&S.nodes.length&&(S[p]=!0,y.iterator=S.getIterator());return}else if(this.listeners[B]){y.visitors=this.listeners[B];return}}w.pop()}walkSync(w){w[p]=!0;let y=f(w);for(let S of y)if(S===a)w.nodes&&w.each(I=>{I[p]||this.walkSync(I)});else{let I=this.listeners[S];if(I&&this.visitSync(I,w.toProxy()))return}}warnings(){return this.sync().warnings()}}return _.registerPostcss=v=>{E=v},oi=_,_.default=_,c.registerLazyResult(_),e.registerLazyResult(_),oi}var ai,kn;function Ys(){if(kn)return ai;kn=1;let r=Hn(),e=Ai();const i=ki();let n=xt();class t{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let o,p=e;try{o=p(this._css,this._opts)}catch(b){this.error=b}if(this.error)throw this.error;return this._root=o,o}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(o,p,b){p=p.toString(),this.stringified=!1,this._processor=o,this._css=p,this._opts=b,this._map=void 0;let h,s=n;this.result=new i(this._processor,h,this._opts),this.result.css=p;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let a=new r(s,h,this._opts,p);if(a.isMap()){let[l,f]=a.generate();l&&(this.result.css=l),f&&(this.result.map=f)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(o){return this.async().catch(o)}finally(o){return this.async().then(o,o)}sync(){if(this.error)throw this.error;return this.result}then(o,p){return this.async().then(o,p)}toString(){return this._css}warnings(){return[]}}return ai=t,t.default=t,ai}var li,Cn;function eo(){if(Cn)return li;Cn=1;let r=_i(),e=Gn(),i=Ys(),n=et();class t{constructor(o=[]){this.version="8.5.6",this.plugins=this.normalize(o)}normalize(o){let p=[];for(let b of o)if(b.postcss===!0?b=b():b.postcss&&(b=b.postcss),typeof b=="object"&&Array.isArray(b.plugins))p=p.concat(b.plugins);else if(typeof b=="object"&&b.postcssPlugin)p.push(b);else if(typeof b=="function")p.push(b);else if(!(typeof b=="object"&&(b.parse||b.stringify)))throw new Error(b+" is not a PostCSS plugin");return p}process(o,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new i(this,o,p):new e(this,o,p)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return li=t,t.default=t,n.registerProcessor(t),r.registerProcessor(t),li}var ci,In;function to(){if(In)return ci;In=1;var r={};let e=Ei(),i=_t(),n=Le(),t=vi(),c=St(),o=_i(),p=Js(),b=At(),h=Gn(),s=qn(),u=Et(),a=Ai(),l=eo(),f=ki(),m=et(),g=Si(),E=xt(),_=Wn();function v(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new l(w)}return v.plugin=function(y,S){let I=!1;function P(...M){console&&console.warn&&!I&&(I=!0,console.warn(y+`: postcss.plugin was deprecated. Migration guide:
|
|
353
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),
|
|
354
|
-
https://www.w3ctech.com/topic/2226`));let K=S(...M);return K.postcssPlugin=y,K.postcssVersion=new l().version,K}let B;return Object.defineProperty(P,"postcss",{get(){return B||(B=P()),B}}),P.process=function(M,K,q){return v([P(q)]).process(M,K)},P},v.stringify=E,v.parse=a,v.fromJSON=p,v.list=s,v.comment=w=>new i(w),v.atRule=w=>new e(w),v.decl=w=>new c(w),v.rule=w=>new g(w),v.root=w=>new m(w),v.document=w=>new o(w),v.CssSyntaxError=t,v.Declaration=c,v.Container=n,v.Processor=l,v.Document=o,v.Comment=i,v.Warning=_,v.AtRule=e,v.Result=f,v.Input=b,v.Rule=g,v.Root=m,v.Node=u,h.registerPostcss(v),ci=v,v.default=v,ci}var io=to();const Z=Bn(io);Z.stringify;Z.fromJSON;Z.plugin;Z.parse;Z.list;Z.document;Z.comment;Z.atRule;Z.rule;Z.decl;Z.root;Z.CssSyntaxError;Z.Declaration;Z.Container;Z.Processor;Z.Document;Z.Comment;Z.Warning;Z.AtRule;Z.Result;Z.Input;Z.Rule;Z.Root;Z.Node;var ui,On;function no(){if(On)return ui;On=1;const r=(n={})=>{const t=n.prefix,c=/\s+$/.test(t)?t:`${t} `,o=n.ignoreFiles?[].concat(n.ignoreFiles):[],p=n.includeFiles?[].concat(n.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(b){const h=b.root,s=h.source.input.file;if(!(o.length&&s&&e(s,o))&&!(p.length&&s&&!e(s,p)))return{Rule(u,{result:a}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];u.parent&&l.includes(u.parent.name)||(u.selectors=u.selectors.map(f=>n.exclude&&i(f,n.exclude)?f:n.transform?n.transform(t,f,c+f,h.source.input.file,u):[":root","body","html"].some(m=>f.startsWith(m))?n.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,t):c+f))}}}}};function e(n,t){return t.some(c=>c instanceof RegExp?c.test(n):n.includes(c))}function i(n,t){return t.some(c=>c instanceof RegExp?c.test(n):n===c)}return r.postcss=!0,ui=r,ui}var ro=no();const so=Bn(ro),oo="code{white-space:pre}.example{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:16px}.example>*{flex:1 1 500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;padding:8px 16px;display:inline-block;font-size:16px;border-bottom:2px solid transparent;background-clip:padding-box;-webkit-user-select:none;user-select:none}.example div[role=tab]:hover{background-color:#1467ba14}.example div[role=tab][selected]{background-color:#1467ba21;border-bottom:2px solid #1467ba}.tab-content{margin:16px 0}.tab-content>pre{padding-top:0}.tab-content.code{max-height:500px;overflow:auto}.tab-content.code pre{margin:0}",ao="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}";function lo(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var hi,$n;function co(){if($n)return hi;$n=1;function r(d){return d instanceof Map?d.clear=d.delete=d.set=function(){throw new Error("map is read-only")}:d instanceof Set&&(d.add=d.clear=d.delete=function(){throw new Error("set is read-only")}),Object.freeze(d),Object.getOwnPropertyNames(d).forEach(x=>{const C=d[x],z=typeof C;(z==="object"||z==="function")&&!Object.isFrozen(C)&&r(C)}),d}class e{constructor(x){x.data===void 0&&(x.data={}),this.data=x.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(d){return d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function n(d,...x){const C=Object.create(null);for(const z in d)C[z]=d[z];return x.forEach(function(z){for(const X in z)C[X]=z[X]}),C}const t="</span>",c=d=>!!d.scope,o=(d,{prefix:x})=>{if(d.startsWith("language:"))return d.replace("language:","language-");if(d.includes(".")){const C=d.split(".");return[`${x}${C.shift()}`,...C.map((z,X)=>`${z}${"_".repeat(X+1)}`)].join(" ")}return`${x}${d}`};class p{constructor(x,C){this.buffer="",this.classPrefix=C.classPrefix,x.walk(this)}addText(x){this.buffer+=i(x)}openNode(x){if(!c(x))return;const C=o(x.scope,{prefix:this.classPrefix});this.span(C)}closeNode(x){c(x)&&(this.buffer+=t)}value(){return this.buffer}span(x){this.buffer+=`<span class="${x}">`}}const b=(d={})=>{const x={children:[]};return Object.assign(x,d),x};class h{constructor(){this.rootNode=b(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(x){this.top.children.push(x)}openNode(x){const C=b({scope:x});this.add(C),this.stack.push(C)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(x){return this.constructor._walk(x,this.rootNode)}static _walk(x,C){return typeof C=="string"?x.addText(C):C.children&&(x.openNode(C),C.children.forEach(z=>this._walk(x,z)),x.closeNode(C)),x}static _collapse(x){typeof x!="string"&&x.children&&(x.children.every(C=>typeof C=="string")?x.children=[x.children.join("")]:x.children.forEach(C=>{h._collapse(C)}))}}class s extends h{constructor(x){super(),this.options=x}addText(x){x!==""&&this.add(x)}startScope(x){this.openNode(x)}endScope(){this.closeNode()}__addSublanguage(x,C){const z=x.root;C&&(z.scope=`language:${C}`),this.add(z)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function u(d){return d?typeof d=="string"?d:d.source:null}function a(d){return m("(?=",d,")")}function l(d){return m("(?:",d,")*")}function f(d){return m("(?:",d,")?")}function m(...d){return d.map(x=>u(x)).join("")}function g(d){const x=d[d.length-1];return typeof x=="object"&&x.constructor===Object?(d.splice(d.length-1,1),x):{}}function E(...d){return"("+(g(d).capture?"":"?:")+d.map(x=>u(x)).join("|")+")"}function _(d){return new RegExp(d.toString()+"|").exec("").length-1}function v(d,x){const C=d&&d.exec(x);return C&&C.index===0}const w=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(d,{joinWith:x}){let C=0;return d.map(z=>{C+=1;const X=C;let Q=u(z),R="";for(;Q.length>0;){const O=w.exec(Q);if(!O){R+=Q;break}R+=Q.substring(0,O.index),Q=Q.substring(O.index+O[0].length),O[0][0]==="\\"&&O[1]?R+="\\"+String(Number(O[1])+X):(R+=O[0],O[0]==="("&&C++)}return R}).map(z=>`(${z})`).join(x)}const S=/\b\B/,I="[a-zA-Z]\\w*",P="[a-zA-Z_]\\w*",B="\\b\\d+(\\.\\d+)?",M="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K="\\b(0b[01]+)",q="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",_e=(d={})=>{const x=/^#![ ]*\//;return d.binary&&(d.begin=m(x,/.*\b/,d.binary,/\b.*/)),n({scope:"meta",begin:x,end:/$/,relevance:0,"on:begin":(C,z)=>{C.index!==0&&z.ignoreMatch()}},d)},he={begin:"\\\\[\\s\\S]",relevance:0},$={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[he]},Me={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[he]},W={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Y=function(d,x,C={}){const z=n({scope:"comment",begin:d,end:x,contains:[]},C);z.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const X=E("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return z.contains.push({begin:m(/[ ]+/,"(",X,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),z},le=Y("//","$"),ce=Y("/\\*","\\*/"),ye=Y("#","$"),Se={scope:"number",begin:B,relevance:0},j={scope:"number",begin:M,relevance:0},Be={scope:"number",begin:K,relevance:0},Ne={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[he,{begin:/\[/,end:/\]/,relevance:0,contains:[he]}]},Ct={scope:"title",begin:I,relevance:0},Ue={scope:"title",begin:P,relevance:0},It={begin:"\\.\\s*"+P,relevance:0};var Pe=Object.freeze({__proto__:null,APOS_STRING_MODE:$,BACKSLASH_ESCAPE:he,BINARY_NUMBER_MODE:Be,BINARY_NUMBER_RE:K,COMMENT:Y,C_BLOCK_COMMENT_MODE:ce,C_LINE_COMMENT_MODE:le,C_NUMBER_MODE:j,C_NUMBER_RE:M,END_SAME_AS_BEGIN:function(d){return Object.assign(d,{"on:begin":(x,C)=>{C.data._beginMatch=x[1]},"on:end":(x,C)=>{C.data._beginMatch!==x[1]&&C.ignoreMatch()}})},HASH_COMMENT_MODE:ye,IDENT_RE:I,MATCH_NOTHING_RE:S,METHOD_GUARD:It,NUMBER_MODE:Se,NUMBER_RE:B,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:Me,REGEXP_MODE:Ne,RE_STARTERS_RE:q,SHEBANG:_e,TITLE_MODE:Ct,UNDERSCORE_IDENT_RE:P,UNDERSCORE_TITLE_MODE:Ue});function Ot(d,x){d.input[d.index-1]==="."&&x.ignoreMatch()}function we(d,x){d.className!==void 0&&(d.scope=d.className,delete d.className)}function Fe(d,x){x&&d.beginKeywords&&(d.begin="\\b("+d.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",d.__beforeBegin=Ot,d.keywords=d.keywords||d.beginKeywords,delete d.beginKeywords,d.relevance===void 0&&(d.relevance=0))}function tt(d,x){Array.isArray(d.illegal)&&(d.illegal=E(...d.illegal))}function tr(d,x){if(d.match){if(d.begin||d.end)throw new Error("begin & end are not supported with match");d.begin=d.match,delete d.match}}function ir(d,x){d.relevance===void 0&&(d.relevance=1)}const nr=(d,x)=>{if(!d.beforeMatch)return;if(d.starts)throw new Error("beforeMatch cannot be used with starts");const C=Object.assign({},d);Object.keys(d).forEach(z=>{delete d[z]}),d.keywords=C.keywords,d.begin=m(C.beforeMatch,a(C.begin)),d.starts={relevance:0,contains:[Object.assign(C,{endsParent:!0})]},d.relevance=0,delete C.beforeMatch},rr=["of","and","for","in","not","or","if","then","parent","list","value"],sr="keyword";function Ci(d,x,C=sr){const z=Object.create(null);return typeof d=="string"?X(C,d.split(" ")):Array.isArray(d)?X(C,d):Object.keys(d).forEach(function(Q){Object.assign(z,Ci(d[Q],x,Q))}),z;function X(Q,R){x&&(R=R.map(O=>O.toLowerCase())),R.forEach(function(O){const T=O.split("|");z[T[0]]=[Q,or(T[0],T[1])]})}}function or(d,x){return x?Number(x):ar(d)?0:1}function ar(d){return rr.includes(d.toLowerCase())}const Ii={},Ae=d=>{console.error(d)},Oi=(d,...x)=>{console.log(`WARN: ${d}`,...x)},Te=(d,x)=>{Ii[`${d}/${x}`]||(console.log(`Deprecated as of ${d}. ${x}`),Ii[`${d}/${x}`]=!0)},it=new Error;function $i(d,x,{key:C}){let z=0;const X=d[C],Q={},R={};for(let O=1;O<=x.length;O++)R[O+z]=X[O],Q[O+z]=!0,z+=_(x[O-1]);d[C]=R,d[C]._emit=Q,d[C]._multi=!0}function lr(d){if(Array.isArray(d.begin)){if(d.skip||d.excludeBegin||d.returnBegin)throw Ae("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),it;if(typeof d.beginScope!="object"||d.beginScope===null)throw Ae("beginScope must be object"),it;$i(d,d.begin,{key:"beginScope"}),d.begin=y(d.begin,{joinWith:""})}}function cr(d){if(Array.isArray(d.end)){if(d.skip||d.excludeEnd||d.returnEnd)throw Ae("skip, excludeEnd, returnEnd not compatible with endScope: {}"),it;if(typeof d.endScope!="object"||d.endScope===null)throw Ae("endScope must be object"),it;$i(d,d.end,{key:"endScope"}),d.end=y(d.end,{joinWith:""})}}function ur(d){d.scope&&typeof d.scope=="object"&&d.scope!==null&&(d.beginScope=d.scope,delete d.scope)}function hr(d){ur(d),typeof d.beginScope=="string"&&(d.beginScope={_wrap:d.beginScope}),typeof d.endScope=="string"&&(d.endScope={_wrap:d.endScope}),lr(d),cr(d)}function dr(d){function x(R,O){return new RegExp(u(R),"m"+(d.case_insensitive?"i":"")+(d.unicodeRegex?"u":"")+(O?"g":""))}class C{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(O,T){T.position=this.position++,this.matchIndexes[this.matchAt]=T,this.regexes.push([T,O]),this.matchAt+=_(O)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const O=this.regexes.map(T=>T[1]);this.matcherRe=x(y(O,{joinWith:"|"}),!0),this.lastIndex=0}exec(O){this.matcherRe.lastIndex=this.lastIndex;const T=this.matcherRe.exec(O);if(!T)return null;const ie=T.findIndex((qe,Rt)=>Rt>0&&qe!==void 0),ee=this.matchIndexes[ie];return T.splice(0,ie),Object.assign(T,ee)}}class z{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(O){if(this.multiRegexes[O])return this.multiRegexes[O];const T=new C;return this.rules.slice(O).forEach(([ie,ee])=>T.addRule(ie,ee)),T.compile(),this.multiRegexes[O]=T,T}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(O,T){this.rules.push([O,T]),T.type==="begin"&&this.count++}exec(O){const T=this.getMatcher(this.regexIndex);T.lastIndex=this.lastIndex;let ie=T.exec(O);if(this.resumingScanAtSamePosition()&&!(ie&&ie.index===this.lastIndex)){const ee=this.getMatcher(0);ee.lastIndex=this.lastIndex+1,ie=ee.exec(O)}return ie&&(this.regexIndex+=ie.position+1,this.regexIndex===this.count&&this.considerAll()),ie}}function X(R){const O=new z;return R.contains.forEach(T=>O.addRule(T.begin,{rule:T,type:"begin"})),R.terminatorEnd&&O.addRule(R.terminatorEnd,{type:"end"}),R.illegal&&O.addRule(R.illegal,{type:"illegal"}),O}function Q(R,O){const T=R;if(R.isCompiled)return T;[we,tr,hr,nr].forEach(ee=>ee(R,O)),d.compilerExtensions.forEach(ee=>ee(R,O)),R.__beforeBegin=null,[Fe,tt,ir].forEach(ee=>ee(R,O)),R.isCompiled=!0;let ie=null;return typeof R.keywords=="object"&&R.keywords.$pattern&&(R.keywords=Object.assign({},R.keywords),ie=R.keywords.$pattern,delete R.keywords.$pattern),ie=ie||/\w+/,R.keywords&&(R.keywords=Ci(R.keywords,d.case_insensitive)),T.keywordPatternRe=x(ie,!0),O&&(R.begin||(R.begin=/\B|\b/),T.beginRe=x(T.begin),!R.end&&!R.endsWithParent&&(R.end=/\B|\b/),R.end&&(T.endRe=x(T.end)),T.terminatorEnd=u(T.end)||"",R.endsWithParent&&O.terminatorEnd&&(T.terminatorEnd+=(R.end?"|":"")+O.terminatorEnd)),R.illegal&&(T.illegalRe=x(R.illegal)),R.contains||(R.contains=[]),R.contains=[].concat(...R.contains.map(function(ee){return fr(ee==="self"?R:ee)})),R.contains.forEach(function(ee){Q(ee,T)}),R.starts&&Q(R.starts,O),T.matcher=X(T),T}if(d.compilerExtensions||(d.compilerExtensions=[]),d.contains&&d.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return d.classNameAliases=n(d.classNameAliases||{}),Q(d)}function Ri(d){return d?d.endsWithParent||Ri(d.starts):!1}function fr(d){return d.variants&&!d.cachedVariants&&(d.cachedVariants=d.variants.map(function(x){return n(d,{variants:null},x)})),d.cachedVariants?d.cachedVariants:Ri(d)?n(d,{starts:d.starts?n(d.starts):null}):Object.isFrozen(d)?n(d):d}var pr="11.11.1";class mr extends Error{constructor(x,C){super(x),this.name="HTMLInjectionError",this.html=C}}const $t=i,Li=n,Mi=Symbol("nomatch"),gr=7,Ni=function(d){const x=Object.create(null),C=Object.create(null),z=[];let X=!0;const Q="Could not find the language '{}', did you forget to load/include a language module?",R={disableAutodetect:!0,name:"Plain text",contains:[]};let O={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:s};function T(A){return O.noHighlightRe.test(A)}function ie(A){let N=A.className+" ";N+=A.parentNode?A.parentNode.className:"";const F=O.languageDetectRe.exec(N);if(F){const G=ve(F[1]);return G||(Oi(Q.replace("{}",F[1])),Oi("Falling back to no-highlight mode for this block.",A)),G?F[1]:"no-highlight"}return N.split(/\s+/).find(G=>T(G)||ve(G))}function ee(A,N,F){let G="",te="";typeof N=="object"?(G=A,F=N.ignoreIllegals,te=N.language):(Te("10.7.0","highlight(lang, code, ...args) has been deprecated."),Te("10.7.0",`Please use highlight(code, options) instead.
|
|
355
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),te=
|
|
356
|
-
`,1;if(Pt>1e5&&Pt>L.index*3)throw new Error("potential infinite loop, way more iterations than matches");return V+=U,U.length}const me=ve(A);if(!me)throw Ae(Q.replace("{}",A)),new Error('Unknown language: "'+A+'"');const Lr=dr(me);let Nt="",D=G||Lr;const Fi={},ne=new O.__emitter(O);Rr();let V="",at=0,ke=0,Pt=0,Tt=!1;try{if(me.__emitTokens)me.__emitTokens(N,ne);else{for(D.matcher.considerAll();;){Pt++,Tt?Tt=!1:D.matcher.considerAll(),D.matcher.lastIndex=ke;const k=D.matcher.exec(N);if(!k)break;const L=N.substring(ke,k.index),U=Ui(L,k);ke=k.index+U}Ui(N.substring(ke))}return ne.finalize(),Nt=ne.toHTML(),{language:A,value:Nt,relevance:at,illegal:!1,_emitter:ne,_top:D}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:A,value:$t(N),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:ke,context:N.slice(ke-100,ke+100),mode:k.mode,resultSoFar:Nt},_emitter:ne};if(X)return{language:A,value:$t(N),illegal:!1,relevance:0,errorRaised:k,_emitter:ne,_top:D};throw k}}function Rt(A){const N={value:$t(A),illegal:!1,relevance:0,_top:R,_emitter:new O.__emitter(O)};return N._emitter.addText(A),N}function Lt(A,N){N=N||O.languages||Object.keys(x);const F=Rt(A),G=N.filter(ve).filter(ji).map(ue=>qe(ue,A,!1));G.unshift(F);const te=G.sort((ue,pe)=>{if(ue.relevance!==pe.relevance)return pe.relevance-ue.relevance;if(ue.language&&pe.language){if(ve(ue.language).supersetOf===pe.language)return 1;if(ve(pe.language).supersetOf===ue.language)return-1}return 0}),[fe,xe]=te,st=fe;return st.secondBest=xe,st}function br(A,N,F){const G=N&&C[N]||F;A.classList.add("hljs"),A.classList.add(`language-${G}`)}function Mt(A){let N=null;const F=ie(A);if(T(F))return;if(rt("before:highlightElement",{el:A,language:F}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(O.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(A)),O.throwUnescapedHTML))throw new mr("One of your code blocks includes unescaped HTML.",A.innerHTML);N=A;const G=N.textContent,te=F?ee(G,{language:F,ignoreIllegals:!0}):Lt(G);A.innerHTML=te.value,A.dataset.highlighted="yes",br(A,F,te.language),A.result={language:te.language,re:te.relevance,relevance:te.relevance},te.secondBest&&(A.secondBest={language:te.secondBest.language,relevance:te.secondBest.relevance}),rt("after:highlightElement",{el:A,result:te,text:G})}function yr(A){O=Li(O,A)}const wr=()=>{nt(),Te("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function vr(){nt(),Te("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Pi=!1;function nt(){function A(){nt()}if(document.readyState==="loading"){Pi||window.addEventListener("DOMContentLoaded",A,!1),Pi=!0;return}document.querySelectorAll(O.cssSelector).forEach(Mt)}function xr(A,N){let F=null;try{F=N(d)}catch(G){if(Ae("Language definition for '{}' could not be registered.".replace("{}",A)),X)Ae(G);else throw G;F=R}F.name||(F.name=A),x[A]=F,F.rawDefinition=N.bind(null,d),F.aliases&&Ti(F.aliases,{languageName:A})}function Er(A){delete x[A];for(const N of Object.keys(C))C[N]===A&&delete C[N]}function _r(){return Object.keys(x)}function ve(A){return A=(A||"").toLowerCase(),x[A]||x[C[A]]}function Ti(A,{languageName:N}){typeof A=="string"&&(A=[A]),A.forEach(F=>{C[F.toLowerCase()]=N})}function ji(A){const N=ve(A);return N&&!N.disableAutodetect}function Sr(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=N=>{A["before:highlightBlock"](Object.assign({block:N.el},N))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=N=>{A["after:highlightBlock"](Object.assign({block:N.el},N))})}function Ar(A){Sr(A),z.push(A)}function kr(A){const N=z.indexOf(A);N!==-1&&z.splice(N,1)}function rt(A,N){const F=A;z.forEach(function(G){G[F]&&G[F](N)})}function Cr(A){return Te("10.7.0","highlightBlock will be removed entirely in v12.0"),Te("10.7.0","Please use highlightElement now."),Mt(A)}Object.assign(d,{highlight:ee,highlightAuto:Lt,highlightAll:nt,highlightElement:Mt,highlightBlock:Cr,configure:yr,initHighlighting:wr,initHighlightingOnLoad:vr,registerLanguage:xr,unregisterLanguage:Er,listLanguages:_r,getLanguage:ve,registerAliases:Ti,autoDetection:ji,inherit:Li,addPlugin:Ar,removePlugin:kr}),d.debugMode=function(){X=!1},d.safeMode=function(){X=!0},d.versionString=pr,d.regex={concat:m,lookahead:a,either:E,optional:f,anyNumberOfTimes:l};for(const A in Pe)typeof Pe[A]=="object"&&r(Pe[A]);return Object.assign(d,Pe),d},je=Ni({});return je.newInstance=()=>Ni({}),hi=je,je.HighlightJS=je,je.default=je,hi}var uo=co();const kt=lo(uo),bt="[A-Za-z$_][0-9A-Za-z$_]*",Vn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Zn=["true","false","null","undefined","NaN","Infinity"],Kn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Jn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Xn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Qn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Yn=[].concat(Xn,Kn,Jn);function ho(r){const e=r.regex,i=(W,{after:Y})=>{const le="</"+W[0].slice(1);return W.input.indexOf(le,Y)!==-1},n=bt,t={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,Y)=>{const le=W[0].length+W.index,ce=W.input[le];if(ce==="<"||ce===","){Y.ignoreMatch();return}ce===">"&&(i(W,{after:le})||Y.ignoreMatch());let ye;const Se=W.input.substring(le);if(ye=Se.match(/^\s*=/)){Y.ignoreMatch();return}if((ye=Se.match(/^\s+extends\s+/))&&ye.index===0){Y.ignoreMatch();return}}},p={$pattern:bt,keyword:Vn,literal:Zn,built_in:Yn,"variable.language":Qn},b="[0-9](_?[0-9])*",h=`\\.(${b})`,s="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${s})((${h})|\\.)?|(${h}))[eE][+-]?(${b})\\b`},{begin:`\\b(${s})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},a={className:"subst",begin:"\\$\\{",end:"\\}",keywords:p,contains:[]},l={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,a],subLanguage:"xml"}},f={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,a],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,a],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[r.BACKSLASH_ESCAPE,a]},E={className:"comment",variants:[r.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),r.C_BLOCK_COMMENT_MODE,r.C_LINE_COMMENT_MODE]},_=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,l,f,m,g,{match:/\$\d+/},u];a.contains=_.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(_)});const v=[].concat(E,a.contains),w=v.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(v)}]),y={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:w},S={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},I={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Kn,...Jn]}},P={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},B={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},M={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(W){return e.concat("(?!",W.join("|"),")")}const q={match:e.concat(/\b/,K([...Xn,"super","import"].map(W=>`${W}\\s*\\(`)),n,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},_e={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},he={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},$="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+r.UNDERSCORE_IDENT_RE+")\\s*=>",Me={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead($)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:I},illegal:/#(?![$_A-z])/,contains:[r.SHEBANG({label:"shebang",binary:"node",relevance:5}),P,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,l,f,m,g,E,{match:/\$\d+/},u,I,{scope:"attr",match:n+e.lookahead(":"),relevance:0},Me,{begin:"("+r.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,r.REGEXP_MODE,{className:"function",begin:$,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:t.begin,end:t.end},{match:c},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},B,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+r.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,r.inherit(r.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},_e,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},q,M,S,he,{match:/\$[(.]/}]}}function fo(r){const e=r.regex,i=ho(r),n=bt,t=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],c={begin:[/namespace/,/\s+/,r.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:t},contains:[i.exports.CLASS_REFERENCE]},p={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},b=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:bt,keyword:Vn.concat(b),literal:Zn,built_in:Yn.concat(t),"variable.language":Qn},s={className:"meta",begin:"@"+n},u=(m,g,E)=>{const _=m.contains.findIndex(v=>v.label===g);if(_===-1)throw new Error("can not find mode to replace");m.contains.splice(_,1,E)};Object.assign(i.keywords,h),i.exports.PARAMS_CONTAINS.push(s);const a=i.contains.find(m=>m.scope==="attr"),l=Object.assign({},a,{match:e.concat(n,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,a,l]),i.contains=i.contains.concat([s,c,o,l]),u(i,"shebang",r.SHEBANG()),u(i,"use_strict",p);const f=i.contains.find(m=>m.label==="func.def");return f.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function po(r){const e=r.regex,i=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,t={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=r.inherit(c,{begin:/\(/,end:/\)/}),p=r.inherit(r.APOS_STRING_MODE,{className:"string"}),b=r.inherit(r.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[t]},{begin:/'/,end:/'/,contains:[t]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[c,b,p,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,o,b,p]}]}]},r.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},t,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[b]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(i,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:h}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const mo=r=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:r.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:r.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),go=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],bo=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],yo=[...go,...bo],wo=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),vo=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),xo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Eo=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function _o(r){const e=r.regex,i=mo(r),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},t="and or not only",c=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",p=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,n,i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+vo.join("|")+")"},{begin:":(:)?("+xo.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Eo.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,...p,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...p,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:c},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:t,attribute:wo.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+yo.join("|")+")\\b"}]}}const er=document.createElement("style");er.innerText=[oo,ao].join(`
|
|
357
|
-
`);document.head.appendChild(
|
|
358
|
-
`).trim();return
|
|
350
|
+
`),this.css+=l+"/*# sourceMappingURL="+o+" */"}applyPrevMaps(){for(let o of this.previous()){let l=this.toUrl(this.path(o.file)),f=o.root||s(o.file),m;this.mapOpts.sourcesContent===!1?(m=new i(o.text),m.sourcesContent&&(m.sourcesContent=null)):m=o.consumer(),this.map.applySourceMap(m,l,this.toUrl(this.path(f)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let o;for(let l=this.root.nodes.length-1;l>=0;l--)o=this.root.nodes[l],o.type==="comment"&&o.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(l)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&b&&this.isMap())return this.generateMap();{let o="";return this.stringify(this.root,l=>{o+=l}),[o]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let o=this.previous()[0].consumer();o.file=this.outputFile(),this.map=c.fromSourceMap(o,{ignoreInvalidMapping:!0})}else this.map=new c({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new c({file:this.outputFile(),ignoreInvalidMapping:!0});let o=1,l=1,f="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,_;this.stringify(this.root,(E,v,w)=>{if(this.css+=E,v&&w!=="end"&&(m.generated.line=o,m.generated.column=l-1,v.source&&v.source.start?(m.source=this.sourcePath(v),m.original.line=v.source.start.line,m.original.column=v.source.start.column-1,this.map.addMapping(m)):(m.source=f,m.original.line=1,m.original.column=0,this.map.addMapping(m))),_=E.match(/\n/g),_?(o+=_.length,g=E.lastIndexOf(`
|
|
351
|
+
`),l=E.length-g):l+=E.length,v&&w!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=o,m.generated.column=l-2,this.map.addMapping(m)):(m.source=f,m.original.line=1,m.original.column=0,m.generated.line=o,m.generated.column=l-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(o=>o.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let o=this.mapOpts.annotation;return typeof o<"u"&&o!==!0?!1:this.previous().length?this.previous().some(l=>l.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(o=>o.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(o){if(this.mapOpts.absolute||o.charCodeAt(0)===60||/^\w+:\/\//.test(o))return o;let l=this.memoizedPaths.get(o);if(l)return l;let f=this.opts.to?s(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=s(t(f,this.mapOpts.annotation)));let m=e(f,o);return this.memoizedPaths.set(o,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let l=o.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let o=new p(this.originalCSS,this.opts);o.map&&this.previousMaps.push(o.map)}return this.previousMaps}setSourcesContent(){let o={};if(this.root)this.root.walk(l=>{if(l.source){let f=l.source.input.from;if(f&&!o[f]){o[f]=!0;let m=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(m,l.source.input.css)}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css)}}sourcePath(o){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(o.source.input.from):this.toUrl(this.path(o.source.input.from))}toBase64(o){return Buffer?Buffer.from(o).toString("base64"):window.btoa(unescape(encodeURIComponent(o)))}toFileUrl(o){let l=this.memoizedFileURLs.get(o);if(l)return l;if(a){let f=a(o).toString();return this.memoizedFileURLs.set(o,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(o){let l=this.memoizedURLs.get(o);if(l)return l;n==="\\"&&(o=o.replace(/\\/g,"/"));let f=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,f),f}}return ii=r,ii}var ni,An;function lo(){if(An)return ni;An=1;const s=39,e=34,t=92,n=47,i=10,c=32,a=12,p=9,b=13,h=91,r=93,u=40,o=41,l=123,f=125,m=59,g=42,_=58,E=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,A=/[\da-f]/i;return ni=function(P,B={}){let M=P.css.valueOf(),J=B.ignoreErrors,H,Ee,he,O,Me,W,Y,le,ce,ye,Ae=M.length,j=0,Be=[],Le=[];function It(){return j}function Ue(we){throw P.error("Unclosed "+we,j)}function Ot(){return Le.length===0&&j>=Ae}function Pe(we){if(Le.length)return Le.pop();if(j>=Ae)return;let Fe=we?we.ignoreUnclosed:!1;switch(H=M.charCodeAt(j),H){case i:case c:case p:case b:case a:{O=j;do O+=1,H=M.charCodeAt(O);while(H===c||H===i||H===p||H===b||H===a);W=["space",M.slice(j,O)],j=O-1;break}case h:case r:case l:case f:case _:case m:case o:{let nt=String.fromCharCode(H);W=[nt,nt,j];break}case u:{if(ye=Be.length?Be.pop()[1]:"",ce=M.charCodeAt(j+1),ye==="url"&&ce!==s&&ce!==e&&ce!==c&&ce!==i&&ce!==p&&ce!==a&&ce!==b){O=j;do{if(Y=!1,O=M.indexOf(")",O+1),O===-1)if(J||Fe){O=j;break}else Ue("bracket");for(le=O;M.charCodeAt(le-1)===t;)le-=1,Y=!Y}while(Y);W=["brackets",M.slice(j,O+1),j,O],j=O}else O=M.indexOf(")",j+1),Ee=M.slice(j,O+1),O===-1||y.test(Ee)?W=["(","(",j]:(W=["brackets",Ee,j,O],j=O);break}case s:case e:{Me=H===s?"'":'"',O=j;do{if(Y=!1,O=M.indexOf(Me,O+1),O===-1)if(J||Fe){O=j+1;break}else Ue("string");for(le=O;M.charCodeAt(le-1)===t;)le-=1,Y=!Y}while(Y);W=["string",M.slice(j,O+1),j,O],j=O;break}case E:{v.lastIndex=j+1,v.test(M),v.lastIndex===0?O=M.length-1:O=v.lastIndex-2,W=["at-word",M.slice(j,O+1),j,O],j=O;break}case t:{for(O=j,he=!0;M.charCodeAt(O+1)===t;)O+=1,he=!he;if(H=M.charCodeAt(O+1),he&&H!==n&&H!==c&&H!==i&&H!==p&&H!==b&&H!==a&&(O+=1,A.test(M.charAt(O)))){for(;A.test(M.charAt(O+1));)O+=1;M.charCodeAt(O+1)===c&&(O+=1)}W=["word",M.slice(j,O+1),j,O],j=O;break}default:{H===n&&M.charCodeAt(j+1)===g?(O=M.indexOf("*/",j+2)+1,O===0&&(J||Fe?O=M.length:Ue("comment")),W=["comment",M.slice(j,O+1),j,O],j=O):(w.lastIndex=j+1,w.test(M),w.lastIndex===0?O=M.length-1:O=w.lastIndex-2,W=["word",M.slice(j,O+1),j,O],Be.push(W),j=O);break}}return j++,W}function Rt(we){Le.push(we)}return{back:Rt,endOfFile:Ot,nextToken:Pe,position:It}},ni}var si,Sn;function co(){if(Sn)return si;Sn=1;let s=Si(),e=St(),t=kt(),n=it(),i=Ci(),c=lo();const a={empty:!0,space:!0};function p(h){for(let r=h.length-1;r>=0;r--){let u=h[r],o=u[3]||u[2];if(o)return o}}class b{constructor(r){this.input=r,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:r,start:{column:1,line:1,offset:0}}}atrule(r){let u=new s;u.name=r[1].slice(1),u.name===""&&this.unnamedAtrule(u,r),this.init(u,r[2]);let o,l,f,m=!1,g=!1,_=[],E=[];for(;!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),o=r[0],o==="("||o==="["?E.push(o==="("?")":"]"):o==="{"&&E.length>0?E.push("}"):o===E[E.length-1]&&E.pop(),E.length===0)if(o===";"){u.source.end=this.getPosition(r[2]),u.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){g=!0;break}else if(o==="}"){if(_.length>0){for(f=_.length-1,l=_[f];l&&l[0]==="space";)l=_[--f];l&&(u.source.end=this.getPosition(l[3]||l[2]),u.source.end.offset++)}this.end(r);break}else _.push(r);else _.push(r);if(this.tokenizer.endOfFile()){m=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(_),_.length?(u.raws.afterName=this.spacesAndCommentsFromStart(_),this.raw(u,"params",_),m&&(r=_[_.length-1],u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),g&&(u.nodes=[],this.current=u)}checkMissedSemicolon(r){let u=this.colon(r);if(u===!1)return;let o=0,l;for(let f=u-1;f>=0&&(l=r[f],!(l[0]!=="space"&&(o+=1,o===2)));f--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(r){let u=0,o,l,f;for(let[m,g]of r.entries()){if(l=g,f=l[0],f==="("&&(u+=1),f===")"&&(u-=1),u===0&&f===":")if(!o)this.doubleColon(l);else{if(o[0]==="word"&&o[1]==="progid")continue;return m}o=l}return!1}comment(r){let u=new e;this.init(u,r[2]),u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++;let o=r[1].slice(2,-2);if(/^\s*$/.test(o))u.text="",u.raws.left=o,u.raws.right="";else{let l=o.match(/^(\s*)([^]*\S)(\s*)$/);u.text=l[2],u.raws.left=l[1],u.raws.right=l[3]}}createTokenizer(){this.tokenizer=c(this.input)}decl(r,u){let o=new t;this.init(o,r[0][2]);let l=r[r.length-1];for(l[0]===";"&&(this.semicolon=!0,r.pop()),o.source.end=this.getPosition(l[3]||l[2]||p(r)),o.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),o.raws.before+=r.shift()[1];for(o.source.start=this.getPosition(r[0][2]),o.prop="";r.length;){let E=r[0][0];if(E===":"||E==="space"||E==="comment")break;o.prop+=r.shift()[1]}o.raws.between="";let f;for(;r.length;)if(f=r.shift(),f[0]===":"){o.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),o.raws.between+=f[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let m=[],g;for(;r.length&&(g=r[0][0],!(g!=="space"&&g!=="comment"));)m.push(r.shift());this.precheckMissedSemicolon(r);for(let E=r.length-1;E>=0;E--){if(f=r[E],f[1].toLowerCase()==="!important"){o.important=!0;let v=this.stringFrom(r,E);v=this.spacesFromEnd(r)+v,v!==" !important"&&(o.raws.important=v);break}else if(f[1].toLowerCase()==="important"){let v=r.slice(0),w="";for(let y=E;y>0;y--){let A=v[y][0];if(w.trim().startsWith("!")&&A!=="space")break;w=v.pop()[1]+w}w.trim().startsWith("!")&&(o.important=!0,o.raws.important=w,r=v)}if(f[0]!=="space"&&f[0]!=="comment")break}r.some(E=>E[0]!=="space"&&E[0]!=="comment")&&(o.raws.between+=m.map(E=>E[1]).join(""),m=[]),this.raw(o,"value",m.concat(r),u),o.value.includes(":")&&!u&&this.checkMissedSemicolon(r)}doubleColon(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})}emptyRule(r){let u=new i;this.init(u,r[2]),u.selector="",u.raws.between="",this.current=u}end(r){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(r){if(this.spaces+=r[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="",u.source.end=this.getPosition(r[2]),u.source.end.offset+=u.raws.ownSemicolon.length)}}getPosition(r){let u=this.input.fromOffset(r);return{column:u.col,line:u.line,offset:r}}init(r,u){this.current.push(r),r.source={input:this.input,start:this.getPosition(u)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)}other(r){let u=!1,o=null,l=!1,f=null,m=[],g=r[1].startsWith("--"),_=[],E=r;for(;E;){if(o=E[0],_.push(E),o==="("||o==="[")f||(f=E),m.push(o==="("?")":"]");else if(g&&l&&o==="{")f||(f=E),m.push("}");else if(m.length===0)if(o===";")if(l){this.decl(_,g);return}else break;else if(o==="{"){this.rule(_);return}else if(o==="}"){this.tokenizer.back(_.pop()),u=!0;break}else o===":"&&(l=!0);else o===m[m.length-1]&&(m.pop(),m.length===0&&(f=null));E=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),m.length>0&&this.unclosedBracket(f),u&&l){if(!g)for(;_.length&&(E=_[_.length-1][0],!(E!=="space"&&E!=="comment"));)this.tokenizer.back(_.pop());this.decl(_,g)}else this.unknownWord(_)}parse(){let r;for(;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()}precheckMissedSemicolon(){}raw(r,u,o,l){let f,m,g=o.length,_="",E=!0,v,w;for(let y=0;y<g;y+=1)f=o[y],m=f[0],m==="space"&&y===g-1&&!l?E=!1:m==="comment"?(w=o[y-1]?o[y-1][0]:"empty",v=o[y+1]?o[y+1][0]:"empty",!a[w]&&!a[v]?_.slice(-1)===","?E=!1:_+=f[1]:E=!1):_+=f[1];if(!E){let y=o.reduce((A,$)=>A+$[1],"");r.raws[u]={raw:y,value:_}}r[u]=_}rule(r){r.pop();let u=new i;this.init(u,r[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(u,"selector",r),this.current=u}spacesAndCommentsFromEnd(r){let u,o="";for(;r.length&&(u=r[r.length-1][0],!(u!=="space"&&u!=="comment"));)o=r.pop()[1]+o;return o}spacesAndCommentsFromStart(r){let u,o="";for(;r.length&&(u=r[0][0],!(u!=="space"&&u!=="comment"));)o+=r.shift()[1];return o}spacesFromEnd(r){let u,o="";for(;r.length&&(u=r[r.length-1][0],u==="space");)o=r.pop()[1]+o;return o}stringFrom(r,u){let o="";for(let l=u;l<r.length;l++)o+=r[l][1];return r.splice(u,r.length-u),o}unclosedBlock(){let r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)}unclosedBracket(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})}unexpectedClose(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})}unknownWord(r){throw this.input.error("Unknown word "+r[0][1],{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})}unnamedAtrule(r,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return si=b,si}var ri,kn;function $i(){if(kn)return ri;kn=1;let s=Ne(),e=Ct(),t=co();function n(i,c){let a=new e(i,c),p=new t(a);try{p.parse()}catch(b){throw b}return p.root}return ri=n,n.default=n,s.registerParse(n),ri}var oi,Cn;function Qn(){if(Cn)return oi;Cn=1;class s{constructor(t,n={}){if(this.type="warning",this.text=t,n.node&&n.node.source){let i=n.node.rangeBy(n);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in n)this[i]=n[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return oi=s,s.default=s,oi}var ai,$n;function Ii(){if($n)return ai;$n=1;let s=Qn();class e{get content(){return this.css}constructor(n,i,c){this.processor=n,this.messages=[],this.root=i,this.opts=c,this.css="",this.map=void 0}toString(){return this.css}warn(n,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let c=new s(n,i);return this.messages.push(c),c}warnings(){return this.messages.filter(n=>n.type==="warning")}}return ai=e,e.default=e,ai}var li,In;function Yn(){if(In)return li;In=1;let s=Ne(),e=ki(),t=Xn(),n=$i(),i=Ii(),c=it(),a=Et(),{isClean:p,my:b}=Ai();const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},r={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},u={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function l(v){return typeof v=="object"&&typeof v.then=="function"}function f(v){let w=!1,y=h[v.type];return v.type==="decl"?w=v.prop.toLowerCase():v.type==="atrule"&&(w=v.name.toLowerCase()),w&&v.append?[y,y+"-"+w,o,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:v.append?[y,o,y+"Exit"]:[y,y+"Exit"]}function m(v){let w;return v.type==="document"?w=["Document",o,"DocumentExit"]:v.type==="root"?w=["Root",o,"RootExit"]:w=f(v),{eventIndex:0,events:w,iterator:0,node:v,visitorIndex:0,visitors:[]}}function g(v){return v[p]=!1,v.nodes&&v.nodes.forEach(w=>g(w)),v}let _={};class E{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(w,y,A){this.stringified=!1,this.processed=!1;let $;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))$=g(y);else if(y instanceof E||y instanceof i)$=g(y.root),y.map&&(typeof A.map>"u"&&(A.map={}),A.map.inline||(A.map.inline=!1),A.map.prev=y.map);else{let P=n;A.syntax&&(P=A.syntax.parse),A.parser&&(P=A.parser),P.parse&&(P=P.parse);try{$=P(y,A)}catch(B){this.processed=!0,this.error=B}$&&!$[b]&&s.rebuild($)}this.result=new i(w,$,A),this.helpers={..._,postcss:_,result:this.result},this.plugins=this.processor.plugins.map(P=>typeof P=="object"&&P.prepare?{...P,...P.prepare(this.result)}:P)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let A=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=A.postcssPlugin,w.setMessage()):A.postcssVersion}catch($){console&&console.error&&console.error($)}return w}prepareVisitors(){this.listeners={};let w=(y,A,$)=>{this.listeners[A]||(this.listeners[A]=[]),this.listeners[A].push([y,$])};for(let y of this.plugins)if(typeof y=="object")for(let A in y){if(!r[A]&&/^[A-Z]/.test(A))throw new Error(`Unknown event ${A} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[A])if(typeof y[A]=="object")for(let $ in y[A])$==="*"?w(y,A,y[A][$]):w(y,A+"-"+$.toLowerCase(),y[A][$]);else typeof y[A]=="function"&&w(y,A,y[A])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],A=this.runOnRoot(y);if(l(A))try{await A}catch($){throw this.handleError($)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[p];){w[p]=!0;let y=[m(w)];for(;y.length>0;){let A=this.visitTick(y);if(l(A))try{await A}catch($){let P=y[y.length-1].node;throw this.handleError($,P)}}}if(this.listeners.OnceExit)for(let[y,A]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let $=w.nodes.map(P=>A(P,this.helpers));await Promise.all($)}else await A(w,this.helpers)}catch($){throw this.handleError($)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(A=>w.Once(A,this.helpers));return l(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=a;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let $=new t(y,this.result.root,this.result.opts).generate();return this.result.css=$[0],this.result.map=$[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(l(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[p];)w[p]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[A,$]of w){this.result.lastPlugin=A;let P;try{P=$(y,this.helpers)}catch(B){throw this.handleError(B,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(l(P))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:A,visitors:$}=y;if(A.type!=="root"&&A.type!=="document"&&!A.parent){w.pop();return}if($.length>0&&y.visitorIndex<$.length){let[B,M]=$[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===$.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=B;try{return M(A.toProxy(),this.helpers)}catch(J){throw this.handleError(J,A)}}if(y.iterator!==0){let B=y.iterator,M;for(;M=A.nodes[A.indexes[B]];)if(A.indexes[B]+=1,!M[p]){M[p]=!0,w.push(m(M));return}y.iterator=0,delete A.indexes[B]}let P=y.events;for(;y.eventIndex<P.length;){let B=P[y.eventIndex];if(y.eventIndex+=1,B===o){A.nodes&&A.nodes.length&&(A[p]=!0,y.iterator=A.getIterator());return}else if(this.listeners[B]){y.visitors=this.listeners[B];return}}w.pop()}walkSync(w){w[p]=!0;let y=f(w);for(let A of y)if(A===o)w.nodes&&w.each($=>{$[p]||this.walkSync($)});else{let $=this.listeners[A];if($&&this.visitSync($,w.toProxy()))return}}warnings(){return this.sync().warnings()}}return E.registerPostcss=v=>{_=v},li=E,E.default=E,c.registerLazyResult(E),e.registerLazyResult(E),li}var ci,On;function uo(){if(On)return ci;On=1;let s=Xn(),e=$i();const t=Ii();let n=Et();class i{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,p=e;try{a=p(this._css,this._opts)}catch(b){this.error=b}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(a,p,b){p=p.toString(),this.stringified=!1,this._processor=a,this._css=p,this._opts=b,this._map=void 0;let h,r=n;this.result=new t(this._processor,h,this._opts),this.result.css=p;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let o=new s(r,h,this._opts,p);if(o.isMap()){let[l,f]=o.generate();l&&(this.result.css=l),f&&(this.result.map=f)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,p){return this.async().then(a,p)}toString(){return this._css}warnings(){return[]}}return ci=i,i.default=i,ci}var ui,Rn;function ho(){if(Rn)return ui;Rn=1;let s=ki(),e=Yn(),t=uo(),n=it();class i{constructor(a=[]){this.version="8.5.6",this.plugins=this.normalize(a)}normalize(a){let p=[];for(let b of a)if(b.postcss===!0?b=b():b.postcss&&(b=b.postcss),typeof b=="object"&&Array.isArray(b.plugins))p=p.concat(b.plugins);else if(typeof b=="object"&&b.postcssPlugin)p.push(b);else if(typeof b=="function")p.push(b);else if(!(typeof b=="object"&&(b.parse||b.stringify)))throw new Error(b+" is not a PostCSS plugin");return p}process(a,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new t(this,a,p):new e(this,a,p)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return ui=i,i.default=i,n.registerProcessor(i),s.registerProcessor(i),ui}var hi,Nn;function fo(){if(Nn)return hi;Nn=1;var s={};let e=Si(),t=St(),n=Ne(),i=Ei(),c=kt(),a=ki(),p=ao(),b=Ct(),h=Yn(),r=Jn(),u=At(),o=$i(),l=ho(),f=Ii(),m=it(),g=Ci(),_=Et(),E=Qn();function v(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new l(w)}return v.plugin=function(y,A){let $=!1;function P(...M){console&&console.warn&&!$&&($=!0,console.warn(y+`: postcss.plugin was deprecated. Migration guide:
|
|
352
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),s.LANG&&s.LANG.startsWith("cn")&&console.warn(y+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
353
|
+
https://www.w3ctech.com/topic/2226`));let J=A(...M);return J.postcssPlugin=y,J.postcssVersion=new l().version,J}let B;return Object.defineProperty(P,"postcss",{get(){return B||(B=P()),B}}),P.process=function(M,J,H){return v([P(H)]).process(M,J)},P},v.stringify=_,v.parse=o,v.fromJSON=p,v.list=r,v.comment=w=>new t(w),v.atRule=w=>new e(w),v.decl=w=>new c(w),v.rule=w=>new g(w),v.root=w=>new m(w),v.document=w=>new a(w),v.CssSyntaxError=i,v.Declaration=c,v.Container=n,v.Processor=l,v.Document=a,v.Comment=t,v.Warning=E,v.AtRule=e,v.Result=f,v.Input=b,v.Rule=g,v.Root=m,v.Node=u,h.registerPostcss(v),hi=v,v.default=v,hi}var po=fo();const Z=Vn(po);Z.stringify;Z.fromJSON;Z.plugin;Z.parse;Z.list;Z.document;Z.comment;Z.atRule;Z.rule;Z.decl;Z.root;Z.CssSyntaxError;Z.Declaration;Z.Container;Z.Processor;Z.Document;Z.Comment;Z.Warning;Z.AtRule;Z.Result;Z.Input;Z.Rule;Z.Root;Z.Node;var di,Mn;function mo(){if(Mn)return di;Mn=1;const s=(n={})=>{const i=n.prefix,c=/\s+$/.test(i)?i:`${i} `,a=n.ignoreFiles?[].concat(n.ignoreFiles):[],p=n.includeFiles?[].concat(n.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(b){const h=b.root,r=h.source.input.file;if(!(a.length&&r&&e(r,a))&&!(p.length&&r&&!e(r,p)))return{Rule(u,{result:o}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];u.parent&&l.includes(u.parent.name)||(u.selectors=u.selectors.map(f=>n.exclude&&t(f,n.exclude)?f:n.transform?n.transform(i,f,c+f,h.source.input.file,u):[":root","body","html"].some(m=>f.startsWith(m))?n.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,i):c+f))}}}}};function e(n,i){return i.some(c=>c instanceof RegExp?c.test(n):n.includes(c))}function t(n,i){return i.some(c=>c instanceof RegExp?c.test(n):n===c)}return s.postcss=!0,di=s,di}var go=mo();const bo=Vn(go),yo="code{white-space:pre}.example{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:16px}.example>*{flex:1 1 500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;padding:8px 16px;display:inline-block;font-size:16px;border-bottom:2px solid transparent;background-clip:padding-box;-webkit-user-select:none;user-select:none}.example div[role=tab]:hover{background-color:#1467ba14}.example div[role=tab][selected]{background-color:#1467ba21;border-bottom:2px solid #1467ba}.tab-content{margin:16px 0}.tab-content>pre{padding-top:0}.tab-content.code{max-height:500px;overflow:auto}.tab-content.code pre{margin:0}",wo="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}";function vo(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var fi,Ln;function xo(){if(Ln)return fi;Ln=1;function s(d){return d instanceof Map?d.clear=d.delete=d.set=function(){throw new Error("map is read-only")}:d instanceof Set&&(d.add=d.clear=d.delete=function(){throw new Error("set is read-only")}),Object.freeze(d),Object.getOwnPropertyNames(d).forEach(x=>{const C=d[x],z=typeof C;(z==="object"||z==="function")&&!Object.isFrozen(C)&&s(C)}),d}class e{constructor(x){x.data===void 0&&(x.data={}),this.data=x.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function t(d){return d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function n(d,...x){const C=Object.create(null);for(const z in d)C[z]=d[z];return x.forEach(function(z){for(const X in z)C[X]=z[X]}),C}const i="</span>",c=d=>!!d.scope,a=(d,{prefix:x})=>{if(d.startsWith("language:"))return d.replace("language:","language-");if(d.includes(".")){const C=d.split(".");return[`${x}${C.shift()}`,...C.map((z,X)=>`${z}${"_".repeat(X+1)}`)].join(" ")}return`${x}${d}`};class p{constructor(x,C){this.buffer="",this.classPrefix=C.classPrefix,x.walk(this)}addText(x){this.buffer+=t(x)}openNode(x){if(!c(x))return;const C=a(x.scope,{prefix:this.classPrefix});this.span(C)}closeNode(x){c(x)&&(this.buffer+=i)}value(){return this.buffer}span(x){this.buffer+=`<span class="${x}">`}}const b=(d={})=>{const x={children:[]};return Object.assign(x,d),x};class h{constructor(){this.rootNode=b(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(x){this.top.children.push(x)}openNode(x){const C=b({scope:x});this.add(C),this.stack.push(C)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(x){return this.constructor._walk(x,this.rootNode)}static _walk(x,C){return typeof C=="string"?x.addText(C):C.children&&(x.openNode(C),C.children.forEach(z=>this._walk(x,z)),x.closeNode(C)),x}static _collapse(x){typeof x!="string"&&x.children&&(x.children.every(C=>typeof C=="string")?x.children=[x.children.join("")]:x.children.forEach(C=>{h._collapse(C)}))}}class r extends h{constructor(x){super(),this.options=x}addText(x){x!==""&&this.add(x)}startScope(x){this.openNode(x)}endScope(){this.closeNode()}__addSublanguage(x,C){const z=x.root;C&&(z.scope=`language:${C}`),this.add(z)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function u(d){return d?typeof d=="string"?d:d.source:null}function o(d){return m("(?=",d,")")}function l(d){return m("(?:",d,")*")}function f(d){return m("(?:",d,")?")}function m(...d){return d.map(x=>u(x)).join("")}function g(d){const x=d[d.length-1];return typeof x=="object"&&x.constructor===Object?(d.splice(d.length-1,1),x):{}}function _(...d){return"("+(g(d).capture?"":"?:")+d.map(x=>u(x)).join("|")+")"}function E(d){return new RegExp(d.toString()+"|").exec("").length-1}function v(d,x){const C=d&&d.exec(x);return C&&C.index===0}const w=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(d,{joinWith:x}){let C=0;return d.map(z=>{C+=1;const X=C;let Q=u(z),R="";for(;Q.length>0;){const I=w.exec(Q);if(!I){R+=Q;break}R+=Q.substring(0,I.index),Q=Q.substring(I.index+I[0].length),I[0][0]==="\\"&&I[1]?R+="\\"+String(Number(I[1])+X):(R+=I[0],I[0]==="("&&C++)}return R}).map(z=>`(${z})`).join(x)}const A=/\b\B/,$="[a-zA-Z]\\w*",P="[a-zA-Z_]\\w*",B="\\b\\d+(\\.\\d+)?",M="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",J="\\b(0b[01]+)",H="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ee=(d={})=>{const x=/^#![ ]*\//;return d.binary&&(d.begin=m(x,/.*\b/,d.binary,/\b.*/)),n({scope:"meta",begin:x,end:/$/,relevance:0,"on:begin":(C,z)=>{C.index!==0&&z.ignoreMatch()}},d)},he={begin:"\\\\[\\s\\S]",relevance:0},O={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[he]},Me={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[he]},W={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Y=function(d,x,C={}){const z=n({scope:"comment",begin:d,end:x,contains:[]},C);z.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const X=_("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return z.contains.push({begin:m(/[ ]+/,"(",X,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),z},le=Y("//","$"),ce=Y("/\\*","\\*/"),ye=Y("#","$"),Ae={scope:"number",begin:B,relevance:0},j={scope:"number",begin:M,relevance:0},Be={scope:"number",begin:J,relevance:0},Le={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[he,{begin:/\[/,end:/\]/,relevance:0,contains:[he]}]},It={scope:"title",begin:$,relevance:0},Ue={scope:"title",begin:P,relevance:0},Ot={begin:"\\.\\s*"+P,relevance:0};var Pe=Object.freeze({__proto__:null,APOS_STRING_MODE:O,BACKSLASH_ESCAPE:he,BINARY_NUMBER_MODE:Be,BINARY_NUMBER_RE:J,COMMENT:Y,C_BLOCK_COMMENT_MODE:ce,C_LINE_COMMENT_MODE:le,C_NUMBER_MODE:j,C_NUMBER_RE:M,END_SAME_AS_BEGIN:function(d){return Object.assign(d,{"on:begin":(x,C)=>{C.data._beginMatch=x[1]},"on:end":(x,C)=>{C.data._beginMatch!==x[1]&&C.ignoreMatch()}})},HASH_COMMENT_MODE:ye,IDENT_RE:$,MATCH_NOTHING_RE:A,METHOD_GUARD:Ot,NUMBER_MODE:Ae,NUMBER_RE:B,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:Me,REGEXP_MODE:Le,RE_STARTERS_RE:H,SHEBANG:Ee,TITLE_MODE:It,UNDERSCORE_IDENT_RE:P,UNDERSCORE_TITLE_MODE:Ue});function Rt(d,x){d.input[d.index-1]==="."&&x.ignoreMatch()}function we(d,x){d.className!==void 0&&(d.scope=d.className,delete d.className)}function Fe(d,x){x&&d.beginKeywords&&(d.begin="\\b("+d.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",d.__beforeBegin=Rt,d.keywords=d.keywords||d.beginKeywords,delete d.beginKeywords,d.relevance===void 0&&(d.relevance=0))}function nt(d,x){Array.isArray(d.illegal)&&(d.illegal=_(...d.illegal))}function ls(d,x){if(d.match){if(d.begin||d.end)throw new Error("begin & end are not supported with match");d.begin=d.match,delete d.match}}function cs(d,x){d.relevance===void 0&&(d.relevance=1)}const us=(d,x)=>{if(!d.beforeMatch)return;if(d.starts)throw new Error("beforeMatch cannot be used with starts");const C=Object.assign({},d);Object.keys(d).forEach(z=>{delete d[z]}),d.keywords=C.keywords,d.begin=m(C.beforeMatch,o(C.begin)),d.starts={relevance:0,contains:[Object.assign(C,{endsParent:!0})]},d.relevance=0,delete C.beforeMatch},hs=["of","and","for","in","not","or","if","then","parent","list","value"],ds="keyword";function Oi(d,x,C=ds){const z=Object.create(null);return typeof d=="string"?X(C,d.split(" ")):Array.isArray(d)?X(C,d):Object.keys(d).forEach(function(Q){Object.assign(z,Oi(d[Q],x,Q))}),z;function X(Q,R){x&&(R=R.map(I=>I.toLowerCase())),R.forEach(function(I){const T=I.split("|");z[T[0]]=[Q,fs(T[0],T[1])]})}}function fs(d,x){return x?Number(x):ps(d)?0:1}function ps(d){return hs.includes(d.toLowerCase())}const Ri={},Se=d=>{console.error(d)},Ni=(d,...x)=>{console.log(`WARN: ${d}`,...x)},Te=(d,x)=>{Ri[`${d}/${x}`]||(console.log(`Deprecated as of ${d}. ${x}`),Ri[`${d}/${x}`]=!0)},st=new Error;function Mi(d,x,{key:C}){let z=0;const X=d[C],Q={},R={};for(let I=1;I<=x.length;I++)R[I+z]=X[I],Q[I+z]=!0,z+=E(x[I-1]);d[C]=R,d[C]._emit=Q,d[C]._multi=!0}function ms(d){if(Array.isArray(d.begin)){if(d.skip||d.excludeBegin||d.returnBegin)throw Se("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),st;if(typeof d.beginScope!="object"||d.beginScope===null)throw Se("beginScope must be object"),st;Mi(d,d.begin,{key:"beginScope"}),d.begin=y(d.begin,{joinWith:""})}}function gs(d){if(Array.isArray(d.end)){if(d.skip||d.excludeEnd||d.returnEnd)throw Se("skip, excludeEnd, returnEnd not compatible with endScope: {}"),st;if(typeof d.endScope!="object"||d.endScope===null)throw Se("endScope must be object"),st;Mi(d,d.end,{key:"endScope"}),d.end=y(d.end,{joinWith:""})}}function bs(d){d.scope&&typeof d.scope=="object"&&d.scope!==null&&(d.beginScope=d.scope,delete d.scope)}function ys(d){bs(d),typeof d.beginScope=="string"&&(d.beginScope={_wrap:d.beginScope}),typeof d.endScope=="string"&&(d.endScope={_wrap:d.endScope}),ms(d),gs(d)}function ws(d){function x(R,I){return new RegExp(u(R),"m"+(d.case_insensitive?"i":"")+(d.unicodeRegex?"u":"")+(I?"g":""))}class C{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(I,T){T.position=this.position++,this.matchIndexes[this.matchAt]=T,this.regexes.push([T,I]),this.matchAt+=E(I)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const I=this.regexes.map(T=>T[1]);this.matcherRe=x(y(I,{joinWith:"|"}),!0),this.lastIndex=0}exec(I){this.matcherRe.lastIndex=this.lastIndex;const T=this.matcherRe.exec(I);if(!T)return null;const ie=T.findIndex((He,Mt)=>Mt>0&&He!==void 0),ee=this.matchIndexes[ie];return T.splice(0,ie),Object.assign(T,ee)}}class z{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(I){if(this.multiRegexes[I])return this.multiRegexes[I];const T=new C;return this.rules.slice(I).forEach(([ie,ee])=>T.addRule(ie,ee)),T.compile(),this.multiRegexes[I]=T,T}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(I,T){this.rules.push([I,T]),T.type==="begin"&&this.count++}exec(I){const T=this.getMatcher(this.regexIndex);T.lastIndex=this.lastIndex;let ie=T.exec(I);if(this.resumingScanAtSamePosition()&&!(ie&&ie.index===this.lastIndex)){const ee=this.getMatcher(0);ee.lastIndex=this.lastIndex+1,ie=ee.exec(I)}return ie&&(this.regexIndex+=ie.position+1,this.regexIndex===this.count&&this.considerAll()),ie}}function X(R){const I=new z;return R.contains.forEach(T=>I.addRule(T.begin,{rule:T,type:"begin"})),R.terminatorEnd&&I.addRule(R.terminatorEnd,{type:"end"}),R.illegal&&I.addRule(R.illegal,{type:"illegal"}),I}function Q(R,I){const T=R;if(R.isCompiled)return T;[we,ls,ys,us].forEach(ee=>ee(R,I)),d.compilerExtensions.forEach(ee=>ee(R,I)),R.__beforeBegin=null,[Fe,nt,cs].forEach(ee=>ee(R,I)),R.isCompiled=!0;let ie=null;return typeof R.keywords=="object"&&R.keywords.$pattern&&(R.keywords=Object.assign({},R.keywords),ie=R.keywords.$pattern,delete R.keywords.$pattern),ie=ie||/\w+/,R.keywords&&(R.keywords=Oi(R.keywords,d.case_insensitive)),T.keywordPatternRe=x(ie,!0),I&&(R.begin||(R.begin=/\B|\b/),T.beginRe=x(T.begin),!R.end&&!R.endsWithParent&&(R.end=/\B|\b/),R.end&&(T.endRe=x(T.end)),T.terminatorEnd=u(T.end)||"",R.endsWithParent&&I.terminatorEnd&&(T.terminatorEnd+=(R.end?"|":"")+I.terminatorEnd)),R.illegal&&(T.illegalRe=x(R.illegal)),R.contains||(R.contains=[]),R.contains=[].concat(...R.contains.map(function(ee){return vs(ee==="self"?R:ee)})),R.contains.forEach(function(ee){Q(ee,T)}),R.starts&&Q(R.starts,I),T.matcher=X(T),T}if(d.compilerExtensions||(d.compilerExtensions=[]),d.contains&&d.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return d.classNameAliases=n(d.classNameAliases||{}),Q(d)}function Li(d){return d?d.endsWithParent||Li(d.starts):!1}function vs(d){return d.variants&&!d.cachedVariants&&(d.cachedVariants=d.variants.map(function(x){return n(d,{variants:null},x)})),d.cachedVariants?d.cachedVariants:Li(d)?n(d,{starts:d.starts?n(d.starts):null}):Object.isFrozen(d)?n(d):d}var xs="11.11.1";class _s extends Error{constructor(x,C){super(x),this.name="HTMLInjectionError",this.html=C}}const Nt=t,Pi=n,Ti=Symbol("nomatch"),Es=7,ji=function(d){const x=Object.create(null),C=Object.create(null),z=[];let X=!0;const Q="Could not find the language '{}', did you forget to load/include a language module?",R={disableAutodetect:!0,name:"Plain text",contains:[]};let I={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:r};function T(S){return I.noHighlightRe.test(S)}function ie(S){let L=S.className+" ";L+=S.parentNode?S.parentNode.className:"";const F=I.languageDetectRe.exec(L);if(F){const G=ve(F[1]);return G||(Ni(Q.replace("{}",F[1])),Ni("Falling back to no-highlight mode for this block.",S)),G?F[1]:"no-highlight"}return L.split(/\s+/).find(G=>T(G)||ve(G))}function ee(S,L,F){let G="",te="";typeof L=="object"?(G=S,F=L.ignoreIllegals,te=L.language):(Te("10.7.0","highlight(lang, code, ...args) has been deprecated."),Te("10.7.0",`Please use highlight(code, options) instead.
|
|
354
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),te=S,G=L),F===void 0&&(F=!0);const fe={code:G,language:te};ot("before:highlight",fe);const xe=fe.result?fe.result:He(fe.language,fe.code,F);return xe.code=fe.code,ot("after:highlight",xe),xe}function He(S,L,F,G){const te=Object.create(null);function fe(k,N){return k.keywords[N]}function xe(){if(!D.keywords){ne.addText(V);return}let k=0;D.keywordPatternRe.lastIndex=0;let N=D.keywordPatternRe.exec(V),U="";for(;N;){U+=V.substring(k,N.index);const q=me.case_insensitive?N[0].toLowerCase():N[0],re=fe(D,q);if(re){const[ge,Bs]=re;if(ne.addText(U),U="",te[q]=(te[q]||0)+1,te[q]<=Es&&(ct+=Bs),ge.startsWith("_"))U+=N[0];else{const Us=me.classNameAliases[ge]||ge;pe(N[0],Us)}}else U+=N[0];k=D.keywordPatternRe.lastIndex,N=D.keywordPatternRe.exec(V)}U+=V.substring(k),ne.addText(U)}function at(){if(V==="")return;let k=null;if(typeof D.subLanguage=="string"){if(!x[D.subLanguage]){ne.addText(V);return}k=He(D.subLanguage,V,!0,Wi[D.subLanguage]),Wi[D.subLanguage]=k._top}else k=Lt(V,D.subLanguage.length?D.subLanguage:null);D.relevance>0&&(ct+=k.relevance),ne.__addSublanguage(k._emitter,k.language)}function ue(){D.subLanguage!=null?at():xe(),V=""}function pe(k,N){k!==""&&(ne.startScope(N),ne.addText(k),ne.endScope())}function Ui(k,N){let U=1;const q=N.length-1;for(;U<=q;){if(!k._emit[U]){U++;continue}const re=me.classNameAliases[k[U]]||k[U],ge=N[U];re?pe(ge,re):(V=ge,xe(),V=""),U++}}function Fi(k,N){return k.scope&&typeof k.scope=="string"&&ne.openNode(me.classNameAliases[k.scope]||k.scope),k.beginScope&&(k.beginScope._wrap?(pe(V,me.classNameAliases[k.beginScope._wrap]||k.beginScope._wrap),V=""):k.beginScope._multi&&(Ui(k.beginScope,N),V="")),D=Object.create(k,{parent:{value:D}}),D}function Hi(k,N,U){let q=v(k.endRe,U);if(q){if(k["on:end"]){const re=new e(k);k["on:end"](N,re),re.isMatchIgnored&&(q=!1)}if(q){for(;k.endsParent&&k.parent;)k=k.parent;return k}}if(k.endsWithParent)return Hi(k.parent,N,U)}function Ps(k){return D.matcher.regexIndex===0?(V+=k[0],1):(Dt=!0,0)}function Ts(k){const N=k[0],U=k.rule,q=new e(U),re=[U.__beforeBegin,U["on:begin"]];for(const ge of re)if(ge&&(ge(k,q),q.isMatchIgnored))return Ps(N);return U.skip?V+=N:(U.excludeBegin&&(V+=N),ue(),!U.returnBegin&&!U.excludeBegin&&(V=N)),Fi(U,k),U.returnBegin?0:N.length}function js(k){const N=k[0],U=L.substring(k.index),q=Hi(D,k,U);if(!q)return Ti;const re=D;D.endScope&&D.endScope._wrap?(ue(),pe(N,D.endScope._wrap)):D.endScope&&D.endScope._multi?(ue(),Ui(D.endScope,k)):re.skip?V+=N:(re.returnEnd||re.excludeEnd||(V+=N),ue(),re.excludeEnd&&(V=N));do D.scope&&ne.closeNode(),!D.skip&&!D.subLanguage&&(ct+=D.relevance),D=D.parent;while(D!==q.parent);return q.starts&&Fi(q.starts,k),re.returnEnd?0:N.length}function Ds(){const k=[];for(let N=D;N!==me;N=N.parent)N.scope&&k.unshift(N.scope);k.forEach(N=>ne.openNode(N))}let lt={};function qi(k,N){const U=N&&N[0];if(V+=k,U==null)return ue(),0;if(lt.type==="begin"&&N.type==="end"&<.index===N.index&&U===""){if(V+=L.slice(N.index,N.index+1),!X){const q=new Error(`0 width match regex (${S})`);throw q.languageName=S,q.badRule=lt.rule,q}return 1}if(lt=N,N.type==="begin")return Ts(N);if(N.type==="illegal"&&!F){const q=new Error('Illegal lexeme "'+U+'" for mode "'+(D.scope||"<unnamed>")+'"');throw q.mode=D,q}else if(N.type==="end"){const q=js(N);if(q!==Ti)return q}if(N.type==="illegal"&&U==="")return V+=`
|
|
355
|
+
`,1;if(jt>1e5&&jt>N.index*3)throw new Error("potential infinite loop, way more iterations than matches");return V+=U,U.length}const me=ve(S);if(!me)throw Se(Q.replace("{}",S)),new Error('Unknown language: "'+S+'"');const zs=ws(me);let Tt="",D=G||zs;const Wi={},ne=new I.__emitter(I);Ds();let V="",ct=0,ke=0,jt=0,Dt=!1;try{if(me.__emitTokens)me.__emitTokens(L,ne);else{for(D.matcher.considerAll();;){jt++,Dt?Dt=!1:D.matcher.considerAll(),D.matcher.lastIndex=ke;const k=D.matcher.exec(L);if(!k)break;const N=L.substring(ke,k.index),U=qi(N,k);ke=k.index+U}qi(L.substring(ke))}return ne.finalize(),Tt=ne.toHTML(),{language:S,value:Tt,relevance:ct,illegal:!1,_emitter:ne,_top:D}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:S,value:Nt(L),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:ke,context:L.slice(ke-100,ke+100),mode:k.mode,resultSoFar:Tt},_emitter:ne};if(X)return{language:S,value:Nt(L),illegal:!1,relevance:0,errorRaised:k,_emitter:ne,_top:D};throw k}}function Mt(S){const L={value:Nt(S),illegal:!1,relevance:0,_top:R,_emitter:new I.__emitter(I)};return L._emitter.addText(S),L}function Lt(S,L){L=L||I.languages||Object.keys(x);const F=Mt(S),G=L.filter(ve).filter(Bi).map(ue=>He(ue,S,!1));G.unshift(F);const te=G.sort((ue,pe)=>{if(ue.relevance!==pe.relevance)return pe.relevance-ue.relevance;if(ue.language&&pe.language){if(ve(ue.language).supersetOf===pe.language)return 1;if(ve(pe.language).supersetOf===ue.language)return-1}return 0}),[fe,xe]=te,at=fe;return at.secondBest=xe,at}function As(S,L,F){const G=L&&C[L]||F;S.classList.add("hljs"),S.classList.add(`language-${G}`)}function Pt(S){let L=null;const F=ie(S);if(T(F))return;if(ot("before:highlightElement",{el:S,language:F}),S.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",S);return}if(S.children.length>0&&(I.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(S)),I.throwUnescapedHTML))throw new _s("One of your code blocks includes unescaped HTML.",S.innerHTML);L=S;const G=L.textContent,te=F?ee(G,{language:F,ignoreIllegals:!0}):Lt(G);S.innerHTML=te.value,S.dataset.highlighted="yes",As(S,F,te.language),S.result={language:te.language,re:te.relevance,relevance:te.relevance},te.secondBest&&(S.secondBest={language:te.secondBest.language,relevance:te.secondBest.relevance}),ot("after:highlightElement",{el:S,result:te,text:G})}function Ss(S){I=Pi(I,S)}const ks=()=>{rt(),Te("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Cs(){rt(),Te("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Di=!1;function rt(){function S(){rt()}if(document.readyState==="loading"){Di||window.addEventListener("DOMContentLoaded",S,!1),Di=!0;return}document.querySelectorAll(I.cssSelector).forEach(Pt)}function $s(S,L){let F=null;try{F=L(d)}catch(G){if(Se("Language definition for '{}' could not be registered.".replace("{}",S)),X)Se(G);else throw G;F=R}F.name||(F.name=S),x[S]=F,F.rawDefinition=L.bind(null,d),F.aliases&&zi(F.aliases,{languageName:S})}function Is(S){delete x[S];for(const L of Object.keys(C))C[L]===S&&delete C[L]}function Os(){return Object.keys(x)}function ve(S){return S=(S||"").toLowerCase(),x[S]||x[C[S]]}function zi(S,{languageName:L}){typeof S=="string"&&(S=[S]),S.forEach(F=>{C[F.toLowerCase()]=L})}function Bi(S){const L=ve(S);return L&&!L.disableAutodetect}function Rs(S){S["before:highlightBlock"]&&!S["before:highlightElement"]&&(S["before:highlightElement"]=L=>{S["before:highlightBlock"](Object.assign({block:L.el},L))}),S["after:highlightBlock"]&&!S["after:highlightElement"]&&(S["after:highlightElement"]=L=>{S["after:highlightBlock"](Object.assign({block:L.el},L))})}function Ns(S){Rs(S),z.push(S)}function Ms(S){const L=z.indexOf(S);L!==-1&&z.splice(L,1)}function ot(S,L){const F=S;z.forEach(function(G){G[F]&&G[F](L)})}function Ls(S){return Te("10.7.0","highlightBlock will be removed entirely in v12.0"),Te("10.7.0","Please use highlightElement now."),Pt(S)}Object.assign(d,{highlight:ee,highlightAuto:Lt,highlightAll:rt,highlightElement:Pt,highlightBlock:Ls,configure:Ss,initHighlighting:ks,initHighlightingOnLoad:Cs,registerLanguage:$s,unregisterLanguage:Is,listLanguages:Os,getLanguage:ve,registerAliases:zi,autoDetection:Bi,inherit:Pi,addPlugin:Ns,removePlugin:Ms}),d.debugMode=function(){X=!1},d.safeMode=function(){X=!0},d.versionString=xs,d.regex={concat:m,lookahead:o,either:_,optional:f,anyNumberOfTimes:l};for(const S in Pe)typeof Pe[S]=="object"&&s(Pe[S]);return Object.assign(d,Pe),d},je=ji({});return je.newInstance=()=>ji({}),fi=je,je.HighlightJS=je,je.default=je,fi}var _o=xo();const $t=vo(_o),wt="[A-Za-z$_][0-9A-Za-z$_]*",es=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],ts=["true","false","null","undefined","NaN","Infinity"],is=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ns=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ss=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],rs=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],os=[].concat(ss,is,ns);function Eo(s){const e=s.regex,t=(W,{after:Y})=>{const le="</"+W[0].slice(1);return W.input.indexOf(le,Y)!==-1},n=wt,i={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,Y)=>{const le=W[0].length+W.index,ce=W.input[le];if(ce==="<"||ce===","){Y.ignoreMatch();return}ce===">"&&(t(W,{after:le})||Y.ignoreMatch());let ye;const Ae=W.input.substring(le);if(ye=Ae.match(/^\s*=/)){Y.ignoreMatch();return}if((ye=Ae.match(/^\s+extends\s+/))&&ye.index===0){Y.ignoreMatch();return}}},p={$pattern:wt,keyword:es,literal:ts,built_in:os,"variable.language":rs},b="[0-9](_?[0-9])*",h=`\\.(${b})`,r="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${r})((${h})|\\.)?|(${h}))[eE][+-]?(${b})\\b`},{begin:`\\b(${r})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:p,contains:[]},l={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,o],subLanguage:"xml"}},f={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,o],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,o],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[s.BACKSLASH_ESCAPE,o]},_={className:"comment",variants:[s.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),s.C_BLOCK_COMMENT_MODE,s.C_LINE_COMMENT_MODE]},E=[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,l,f,m,g,{match:/\$\d+/},u];o.contains=E.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(E)});const v=[].concat(_,o.contains),w=v.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(v)}]),y={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:w},A={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},$={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...is,...ns]}},P={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},B={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},M={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function J(W){return e.concat("(?!",W.join("|"),")")}const H={match:e.concat(/\b/,J([...ss,"super","import"].map(W=>`${W}\\s*\\(`)),n,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Ee={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},he={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},O="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+s.UNDERSCORE_IDENT_RE+")\\s*=>",Me={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(O)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:$},illegal:/#(?![$_A-z])/,contains:[s.SHEBANG({label:"shebang",binary:"node",relevance:5}),P,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,l,f,m,g,_,{match:/\$\d+/},u,$,{scope:"attr",match:n+e.lookahead(":"),relevance:0},Me,{begin:"("+s.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,s.REGEXP_MODE,{className:"function",begin:O,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:s.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:c},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},B,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+s.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,s.inherit(s.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ee,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},H,M,A,he,{match:/\$[(.]/}]}}function Ao(s){const e=s.regex,t=Eo(s),n=wt,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],c={begin:[/namespace/,/\s+/,s.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[t.exports.CLASS_REFERENCE]},p={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},b=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:wt,keyword:es.concat(b),literal:ts,built_in:os.concat(i),"variable.language":rs},r={className:"meta",begin:"@"+n},u=(m,g,_)=>{const E=m.contains.findIndex(v=>v.label===g);if(E===-1)throw new Error("can not find mode to replace");m.contains.splice(E,1,_)};Object.assign(t.keywords,h),t.exports.PARAMS_CONTAINS.push(r);const o=t.contains.find(m=>m.scope==="attr"),l=Object.assign({},o,{match:e.concat(n,e.lookahead(/\s*\?:/))});t.exports.PARAMS_CONTAINS.push([t.exports.CLASS_REFERENCE,o,l]),t.contains=t.contains.concat([r,c,a,l]),u(t,"shebang",s.SHEBANG()),u(t,"use_strict",p);const f=t.contains.find(m=>m.label==="func.def");return f.relevance=0,Object.assign(t,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),t}function So(s){const e=s.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=s.inherit(c,{begin:/\(/,end:/\)/}),p=s.inherit(s.APOS_STRING_MODE,{className:"string"}),b=s.inherit(s.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[c,b,p,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,a,b,p]}]}]},s.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[b]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:h}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const ko=s=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:s.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:s.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Co=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],$o=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Io=[...Co,...$o],Oo=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Ro=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),No=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Mo=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Lo(s){const e=s.regex,t=ko(s),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",c=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",p=[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,n,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Ro.join("|")+")"},{begin:":(:)?("+No.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Mo.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...p,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...p,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:c},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Oo.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Io.join("|")+")\\b"}]}}const as=document.createElement("style");as.innerText=[yo,wo].join(`
|
|
356
|
+
`);document.head.appendChild(as);$t.registerLanguage("typescript",Ao);$t.registerLanguage("html",So);$t.registerLanguage("css",Lo);function Po(...s){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const n=document.createElement("div");return s.forEach(i=>{e.appendChild(i),i.addEventListener("click",()=>{s.forEach(c=>c.removeAttribute("selected")),i.setAttribute("selected",""),n.innerHTML="",n.appendChild(i.content),n.className=i.className,n.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(n),n.classList.add("tab-content"),s[0].setAttribute("selected",""),n.appendChild(s[0].content),t}function Ge(s,e){const t=document.createElement("div");return t.role="tab",t.tabIndex=0,t.innerText=s,t.content=e,e.tagName=="PRE"&&t.classList.add("code"),t}function Xe(s,e){const t=document.createElement(s);return typeof e=="string"?t.innerHTML=e:e.forEach(n=>{t.appendChild(n)}),t}async function To(s,e,t){const n=e.mainContent,i=Xe("div",n);i.id=`example-preview-${t}`;const c=typeof e.css=="string"?void 0:e.css?.label,a=typeof e.css=="string"?e.css:e.css?.content,p=Po(Ge("Preview",i),Ge("HTML",ft("html",n)),...a?[Ge(c??"CSS",ft("css",a))]:[],...e.initializer&&e.initializer.content?[Ge(e.initializer.label??"TS",ft("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(h=>Ge(h.label,ft(h.language,h.content))));e.description&&s.appendChild(Xe("div",e.description));const b=Xe("div",[p]);b.classList.add("example"),s.appendChild(b),a&&jo(`#${i.id}`,a),e.initializer?.initialize&&await e.initializer.initialize(i)}function ft(s,e){let t=e.split(/\r?\n/).map(n=>{const i=n.indexOf("///");if(i>-1){const c=n.substring(i+3).trimStart();return c?n.replace(/^(\s*)([^\s].*)$/,`$1${c}`):void 0}return n}).filter(n=>typeof n<"u").join(`
|
|
357
|
+
`).trim();return s&&s!="raw"&&(t=$t.highlight(t,{language:s}).value),Xe("pre",[Xe("code",t)])}function jo(s,e){const t=document.createElement("style");t.innerHTML=Z().use(bo({prefix:s})).process(e).css,document.head.appendChild(t)}async function Do(s,e=document.body){const t=Bo(e);let n=0;Object.keys(s).sort().forEach(async i=>{const c=document.createElement("div");c.className="example-container",t.appendChild(c);const a=s[i].default;To(c,a,n++)})}function zo(s){const e=document.createElement("div");e.id="examples-container";const t=s.querySelector("#examples");return t?t.after(e):s.appendChild(e),e}function Bo(s){return s.children?zo(s):s}const Uo=`<h1 id="@cas-smartdesign/list">@cas-smartdesign/list</h1>
|
|
359
358
|
<p>An element that renders a given array of items in a list.</p>
|
|
360
359
|
<h2 id="attributes">Attributes</h2>
|
|
361
360
|
<ul>
|
|
@@ -441,4 +440,4 @@ Although normally the page would change by such a selection, so it may not be ne
|
|
|
441
440
|
</ul>
|
|
442
441
|
</li>
|
|
443
442
|
</ul>
|
|
444
|
-
`,
|
|
443
|
+
`,Fo=document.querySelector("#markdown-container");Fo.innerHTML=Uo;Do(Object.assign({"./examples/declarative-list-item/index.ts":Ks,"./examples/declarative-option/index.ts":er,"./examples/multi-select/index.ts":or,"./examples/single-select/index.ts":hr,"./examples/trigger-only/index.ts":gr}),document.querySelector(".markdown-body"));export{mi as L};
|