@cas-smartdesign/list 6.3.1 → 6.4.0

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 CHANGED
@@ -1,4 +1,5 @@
1
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function t(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=t(s);fetch(s.href,o)}})();const Ps="modulepreload",js=function(n,e){return new URL(n,e).href},Ri={},bt=function(e,t,i){let s=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link");s=Promise.all(t.map(r=>{if(r=js(r,i),r in Ri)return;Ri[r]=!0;const l=r.endsWith(".css"),a=l?'[rel="stylesheet"]':"";if(!!i)for(let f=o.length-1;f>=0;f--){const p=o[f];if(p.href===r&&(!l||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${a}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":Ps,l||(d.as="script",d.crossOrigin=""),d.href=r,document.head.appendChild(d),l)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${r}`)))})}))}return s.then(()=>e()).catch(o=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=o,window.dispatchEvent(r),!r.defaultPrevented)throw o})},Ds=`<!-- Load element with all dependencies directly -->
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 t of document.querySelectorAll('link[rel="modulepreload"]'))n(t);new MutationObserver(t=>{for(const c of t)if(c.type==="childList")for(const o of c.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function i(t){const c={};return t.integrity&&(c.integrity=t.integrity),t.referrerPolicy&&(c.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?c.credentials="include":t.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function n(t){if(t.ep)return;t.ep=!0;const c=i(t);fetch(t.href,c)}})();const Pr="modulepreload",Tr=function(r,e){return new URL(r,e).href},qi={},yt=function(e,i,n){let t=Promise.resolve();if(i&&i.length>0){let h=function(s){return Promise.all(s.map(u=>Promise.resolve(u).then(a=>({status:"fulfilled",value:a}),a=>({status:"rejected",reason:a}))))};const o=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),b=p?.nonce||p?.getAttribute("nonce");t=h(i.map(s=>{if(s=Tr(s,n),s in qi)return;qi[s]=!0;const u=s.endsWith(".css"),a=u?'[rel="stylesheet"]':"";if(!!n)for(let m=o.length-1;m>=0;m--){const g=o[m];if(g.href===s&&(!u||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Pr,u||(f.as="script"),f.crossOrigin="",f.href=s,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 ${s}`)))})}))}function c(o){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=o,window.dispatchEvent(p),!p.defaultPrevented)throw o}return t.then(o=>{for(const p of o||[])p.status==="rejected"&&c(p.reason);return e().catch(c)})},jr=`<!-- Load element with all dependencies directly -->
2
3
  <div id="declarative-example">
3
4
  <div id="notification"></div>
4
5
  <script src="./list-with-externals.js"><\/script>
@@ -9,8 +10,8 @@
9
10
  <sd-list-item caption="Gunner Dewsbury" description="Student" icon="icon.svg"></sd-list-item>
10
11
  </sd-list>
11
12
  </div>
12
- `,zs=`<h3 id="declarative-example---sd-list-items">Declarative example - sd-list-items</h3>
13
- `,Us=`import List from "@cas-smartdesign/list";
13
+ `,Dr=`<h3 id="declarative-example---sd-list-items">Declarative example - sd-list-items</h3>
14
+ `,zr=`import List from "@cas-smartdesign/list";
14
15
 
15
16
  List.ensureDefined();
16
17
 
@@ -24,7 +25,7 @@ list.addEventListener("selection", (event: CustomEvent) => {
24
25
  event.detail.selected ? "selected" : "deselected"
25
26
  } Modifier pressed: \${event.detail.hasModifier}\`;
26
27
  });
27
- `,Bs=`#notification {
28
+ `,Br=`#notification {
28
29
  visibility: collapse;
29
30
  min-height: 30px;
30
31
  line-height: 30px;
@@ -33,7 +34,7 @@ list.addEventListener("selection", (event: CustomEvent) => {
33
34
  color: #333;
34
35
  text-align: center;
35
36
  }
36
- `,Fs={mainContent:Ds,description:zs,css:Bs,initializer:{content:Us,type:"typescript",initialize:()=>bt(()=>import("./declarative-list-item.js"),__vite__mapDeps([]),import.meta.url)}},Hs=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),Ws=`<!-- Load element with all dependencies directly -->
37
+ `,Ur={mainContent:jr,description:Dr,css:Br,initializer:{content:zr,type:"typescript",initialize:()=>yt(()=>import("./declarative-list-item.js"),[],import.meta.url)}},Fr=Object.freeze(Object.defineProperty({__proto__:null,default:Ur},Symbol.toStringTag,{value:"Module"})),qr=`<!-- Load element with all dependencies directly -->
37
38
  <script src="./list-with-externals.js"><\/script>
38
39
 
39
40
  <sd-list class="declarative" tabindex="0" selection-type="multi">
@@ -46,8 +47,8 @@ list.addEventListener("selection", (event: CustomEvent) => {
46
47
  <hr />
47
48
  <option value="r1">Rik Lapham</option>
48
49
  </sd-list>
49
- `,Gs=`<h3 id="declarative-example---options-&amp;-separators">Declarative example - options &amp; separators</h3>
50
- `,qs=`sd-list hr {
50
+ `,Hr=`<h3 id="declarative-example---options-&-separators">Declarative example - options & separators</h3>
51
+ `,Wr=`sd-list hr {
51
52
  background: #f2f2f2;
52
53
  height: 8px;
53
54
  margin: 0;
@@ -65,14 +66,14 @@ option[focused] {
65
66
  option[selected] {
66
67
  background-color: rgb(211, 230, 250);
67
68
  }
68
- `,Vs={mainContent:Ws,description:Gs,css:qs},Ks=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),Zs=`<div id="multi-select-example"></div>
69
- `,Js=`<h3 id="multi-selection-list">Multi selection list</h3>
70
- `,Xs=`input[type="checkbox"] {
69
+ `,Gr={mainContent:qr,description:Hr,css:Wr},Vr=Object.freeze(Object.defineProperty({__proto__:null,default:Gr},Symbol.toStringTag,{value:"Module"})),Zr=`<div id="multi-select-example"></div>
70
+ `,Kr=`<h3 id="multi-selection-list">Multi selection list</h3>
71
+ `,Jr=`input[type="checkbox"] {
71
72
  width: 20px;
72
73
  height: 20px;
73
74
  margin-left: 16px;
74
75
  }
75
- `,Qs=`import ListItem from "@cas-smartdesign/list-item";
76
+ `,Xr=`import ListItem from "@cas-smartdesign/list-item";
76
77
  import List, { ItemGenerator } from "@cas-smartdesign/list";
77
78
  import { ExtendedItemData, createListItems } from "../item-provider"; /// import { ExtendedItemData, createListItems } from "./item-provider";
78
79
  import { exampleItems } from "../sample-data"; /// import { exampleItems } from "./sample-data";
@@ -123,7 +124,7 @@ export function customItemGenerator(list: List): ItemGenerator {
123
124
  return listItem;
124
125
  };
125
126
  }
126
- `,gn=`import { ItemData } from "@cas-smartdesign/list-item";
127
+ `,Rn=`import { ItemData } from "@cas-smartdesign/list-item";
127
128
  import { ExampleItem } from "./sample-data";
128
129
 
129
130
  const arrowIcon = "./right-arrow.svg";
@@ -186,7 +187,7 @@ export function createListItems(exampleItems: ExampleItem[], addCheckbox = true)
186
187
  });
187
188
  return items;
188
189
  }
189
- `,bn=`export type ExampleItem = {
190
+ `,Ln=`export type ExampleItem = {
190
191
  caption: string;
191
192
  description?: string;
192
193
  disabled?: boolean;
@@ -200,12 +201,12 @@ export const exampleItems: ExampleItem[] = [
200
201
  { caption: "Lucho Giacopello", description: "Full time employee", disabled: true },
201
202
  { caption: "Rik Lapham", description: "Student", disabled: true },
202
203
  ];
203
- `,Ys={mainContent:Zs,description:Js,css:Xs,initializer:{content:Qs,type:"typescript",initialize:()=>bt(()=>import("./multi-select.js"),__vite__mapDeps([0,1]),import.meta.url)},additionalSources:[{type:"source",label:"item-provider",language:"typescript",content:gn},{type:"source",label:"sample-data",language:"typescript",content:bn}]},er=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),tr=`<div id="single-select-example">
204
+ `,Qr={mainContent:Zr,description:Kr,css:Jr,initializer:{content:Xr,type:"typescript",initialize:()=>yt(()=>import("./multi-select.js"),__vite__mapDeps([0,1]),import.meta.url)},additionalSources:[{type:"source",label:"item-provider",language:"typescript",content:Rn},{type:"source",label:"sample-data",language:"typescript",content:Ln}]},Yr=Object.freeze(Object.defineProperty({__proto__:null,default:Qr},Symbol.toStringTag,{value:"Module"})),es=`<div id="single-select-example">
204
205
  <input placeholder="search" style="margin-bottom: 8px" />
205
206
  <sd-list selection-type="single" tabindex="0"></sd-list>
206
207
  </div>
207
- `,ir=`<h3 id="single-select-list-(with-searchfield)">Single select list (with searchfield)</h3>
208
- `,nr=`import List from "@cas-smartdesign/list";
208
+ `,ts=`<h3 id="single-select-list-(with-searchfield)">Single select list (with searchfield)</h3>
209
+ `,is=`import List from "@cas-smartdesign/list";
209
210
  import { createListItems } from "../item-provider"; /// import { createListItems } from "./item-provider";
210
211
  import { exampleItems } from "../sample-data"; /// import { exampleItems } from "./sample-data";
211
212
  import { KeyDownDelegator } from "@cas-smartdesign/element-utils";
@@ -231,10 +232,10 @@ searchfield.addEventListener("input", () => {
231
232
  });
232
233
 
233
234
  KeyDownDelegator.delegateTo(list).connect(searchfield);
234
- `,sr={mainContent:tr,description:ir,initializer:{content:nr,type:"typescript",initialize:()=>bt(()=>import("./single-select.js"),__vite__mapDeps([2,1]),import.meta.url)},additionalSources:[{type:"source",label:"item-provider",language:"typescript",content:gn},{type:"source",label:"sample-data",language:"typescript",content:bn}]},rr=Object.freeze(Object.defineProperty({__proto__:null,default:sr},Symbol.toStringTag,{value:"Module"})),or=`<div id="trigger-only-example"></div>
235
- `,lr=`<h3 id="trigger-only-list">Trigger only list</h3>
235
+ `,ns={mainContent:es,description:ts,initializer:{content:is,type:"typescript",initialize:()=>yt(()=>import("./single-select.js"),__vite__mapDeps([2,1]),import.meta.url)},additionalSources:[{type:"source",label:"item-provider",language:"typescript",content:Rn},{type:"source",label:"sample-data",language:"typescript",content:Ln}]},rs=Object.freeze(Object.defineProperty({__proto__:null,default:ns},Symbol.toStringTag,{value:"Module"})),ss=`<div id="trigger-only-example"></div>
236
+ `,os=`<h3 id="trigger-only-list">Trigger only list</h3>
236
237
  <p>Click on non-locked items to remove them from the list</p>
237
- `,ar=`import "@cas-smartdesign/list-item";
238
+ `,as=`import "@cas-smartdesign/list-item";
238
239
  import List from "@cas-smartdesign/list";
239
240
  import { ExtendedItemData, createListItems } from "../item-provider"; /// import { ExtendedItemData, createListItems } from "./item-provider";
240
241
  import { exampleItems } from "../sample-data"; /// import { exampleItems } from "./sample-data";
@@ -257,13 +258,13 @@ list.addEventListener("selection", (event: CustomEvent) => {
257
258
  });
258
259
 
259
260
  container.appendChild(list);
260
- `,cr={mainContent:or,description:lr,initializer:{content:ar,type:"typescript",initialize:()=>bt(()=>import("./trigger-only.js"),__vite__mapDeps([3,1]),import.meta.url)}},dr=Object.freeze(Object.defineProperty({__proto__:null,default:cr},Symbol.toStringTag,{value:"Module"})),yn=class rt extends HTMLElement{memoizedTemplate(){const e=this.is();if(rt.TEMPLATE_CACHE[e])return rt.TEMPLATE_CACHE[e];const t=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,this.is()),rt.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())}};yn.TEMPLATE_CACHE={};let ur=yn;const ot=window,di=ot.ShadowRoot&&(ot.ShadyCSS===void 0||ot.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ui=Symbol(),Li=new WeakMap;let wn=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==ui)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(di&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Li.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Li.set(t,e))}return e}toString(){return this.cssText}};const vn=n=>new wn(typeof n=="string"?n:n+"",void 0,ui),hr=(n,...e)=>{const t=n.length===1?n[0]:e.reduce((i,s,o)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[o+1],n[0]);return new wn(t,n,ui)},fr=(n,e)=>{di?n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const i=document.createElement("style"),s=ot.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=t.cssText,n.appendChild(i)})},Ni=di?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return vn(t)})(n):n;var Nt;const ct=window,Mi=ct.trustedTypes,pr=Mi?Mi.emptyScript:"",Ti=ct.reactiveElementPolyfillSupport,Wt={toAttribute(n,e){switch(e){case Boolean:n=n?pr:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},xn=(n,e)=>e!==n&&(e==e||n==n),Mt={attribute:!0,type:String,converter:Wt,reflect:!1,hasChanged:xn},Gt="finalized";let me=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,i)=>{const s=this._$Ep(i,t);s!==void 0&&(this._$Ev.set(s,i),e.push(s))}),e}static createProperty(e,t=Mt){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i=typeof e=="symbol"?Symbol():"__"+e,s=this.getPropertyDescriptor(e,i,t);s!==void 0&&Object.defineProperty(this.prototype,e,s)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(s){const o=this[e];this[t]=s,this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Mt}static finalize(){if(this.hasOwnProperty(Gt))return!1;this[Gt]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const s of i)t.unshift(Ni(s))}else e!==void 0&&t.push(Ni(e));return t}static _$Ep(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,i;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return fr(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var i;return(i=t.hostConnected)===null||i===void 0?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var i;return(i=t.hostDisconnected)===null||i===void 0?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=Mt){var s;const o=this.constructor._$Ep(e,i);if(o!==void 0&&i.reflect===!0){const r=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:Wt).toAttribute(t,i.type);this._$El=e,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(e,t){var i;const s=this.constructor,o=s._$Ev.get(e);if(o!==void 0&&this._$El!==o){const r=s.getPropertyOptions(o),l=typeof r.converter=="function"?{fromAttribute:r.converter}:((i=r.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?r.converter:Wt;this._$El=o,this[o]=l.fromAttribute(t,r.type),this._$El=null}}requestUpdate(e,t,i){let s=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||xn)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,o)=>this[o]=s),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(e=this._$ES)===null||e===void 0||e.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(i)):this._$Ek()}catch(s){throw t=!1,this._$Ek(),s}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,i)=>this._$EO(i,this[i],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};me[Gt]=!0,me.elementProperties=new Map,me.elementStyles=[],me.shadowRootOptions={mode:"open"},Ti==null||Ti({ReactiveElement:me}),((Nt=ct.reactiveElementVersions)!==null&&Nt!==void 0?Nt:ct.reactiveElementVersions=[]).push("1.6.3");var Tt;const dt=window,ge=dt.trustedTypes,Pi=ge?ge.createPolicy("lit-html",{createHTML:n=>n}):void 0,qt="$lit$",Y=`lit$${(Math.random()+"").slice(9)}$`,En="?"+Y,mr=`<${En}>`,ce=document,Oe=()=>ce.createComment(""),Re=n=>n===null||typeof n!="object"&&typeof n!="function",_n=Array.isArray,gr=n=>_n(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Pt=`[
261
- \f\r]`,_e=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ji=/-->/g,Di=/>/g,re=RegExp(`>|${Pt}(?:([^\\s"'>=/]+)(${Pt}*=${Pt}*(?:[^
262
- \f\r"'\`<>=]|("|')|))|$)`,"g"),zi=/'/g,Ui=/"/g,Sn=/^(?:script|style|textarea|title)$/i,br=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),qe=br(1),de=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),Bi=new WeakMap,le=ce.createTreeWalker(ce,129,null,!1);function An(n,e){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pi!==void 0?Pi.createHTML(e):e}const yr=(n,e)=>{const t=n.length-1,i=[];let s,o=e===2?"<svg>":"",r=_e;for(let l=0;l<t;l++){const a=n[l];let c,d,f=-1,p=0;for(;p<a.length&&(r.lastIndex=p,d=r.exec(a),d!==null);)p=r.lastIndex,r===_e?d[1]==="!--"?r=ji:d[1]!==void 0?r=Di:d[2]!==void 0?(Sn.test(d[2])&&(s=RegExp("</"+d[2],"g")),r=re):d[3]!==void 0&&(r=re):r===re?d[0]===">"?(r=s??_e,f=-1):d[1]===void 0?f=-2:(f=r.lastIndex-d[2].length,c=d[1],r=d[3]===void 0?re:d[3]==='"'?Ui:zi):r===Ui||r===zi?r=re:r===ji||r===Di?r=_e:(r=re,s=void 0);const x=r===re&&n[l+1].startsWith("/>")?" ":"";o+=r===_e?a+mr:f>=0?(i.push(c),a.slice(0,f)+qt+a.slice(f)+Y+x):a+Y+(f===-2?(i.push(void 0),l):x)}return[An(n,o+(n[t]||"<?>")+(e===2?"</svg>":"")),i]};class Le{constructor({strings:e,_$litType$:t},i){let s;this.parts=[];let o=0,r=0;const l=e.length-1,a=this.parts,[c,d]=yr(e,t);if(this.el=Le.createElement(c,i),le.currentNode=this.el.content,t===2){const f=this.el.content,p=f.firstChild;p.remove(),f.append(...p.childNodes)}for(;(s=le.nextNode())!==null&&a.length<l;){if(s.nodeType===1){if(s.hasAttributes()){const f=[];for(const p of s.getAttributeNames())if(p.endsWith(qt)||p.startsWith(Y)){const x=d[r++];if(f.push(p),x!==void 0){const k=s.getAttribute(x.toLowerCase()+qt).split(Y),R=/([.?@])?(.*)/.exec(x);a.push({type:1,index:o,name:R[2],strings:k,ctor:R[1]==="."?vr:R[1]==="?"?Er:R[1]==="@"?_r:yt})}else a.push({type:6,index:o})}for(const p of f)s.removeAttribute(p)}if(Sn.test(s.tagName)){const f=s.textContent.split(Y),p=f.length-1;if(p>0){s.textContent=ge?ge.emptyScript:"";for(let x=0;x<p;x++)s.append(f[x],Oe()),le.nextNode(),a.push({type:2,index:++o});s.append(f[p],Oe())}}}else if(s.nodeType===8)if(s.data===En)a.push({type:2,index:o});else{let f=-1;for(;(f=s.data.indexOf(Y,f+1))!==-1;)a.push({type:7,index:o}),f+=Y.length-1}o++}}static createElement(e,t){const i=ce.createElement("template");return i.innerHTML=e,i}}function be(n,e,t=n,i){var s,o,r,l;if(e===de)return e;let a=i!==void 0?(s=t._$Co)===null||s===void 0?void 0:s[i]:t._$Cl;const c=Re(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==c&&((o=a==null?void 0:a._$AO)===null||o===void 0||o.call(a,!1),c===void 0?a=void 0:(a=new c(n),a._$AT(n,t,i)),i!==void 0?((r=(l=t)._$Co)!==null&&r!==void 0?r:l._$Co=[])[i]=a:t._$Cl=a),a!==void 0&&(e=be(n,a._$AS(n,e.values),a,i)),e}class wr{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){var t;const{el:{content:i},parts:s}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:ce).importNode(i,!0);le.currentNode=o;let r=le.nextNode(),l=0,a=0,c=s[0];for(;c!==void 0;){if(l===c.index){let d;c.type===2?d=new ze(r,r.nextSibling,this,e):c.type===1?d=new c.ctor(r,c.name,c.strings,this,e):c.type===6&&(d=new Sr(r,this,e)),this._$AV.push(d),c=s[++a]}l!==(c==null?void 0:c.index)&&(r=le.nextNode(),l++)}return le.currentNode=ce,o}v(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class ze{constructor(e,t,i,s){var o;this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=s,this._$Cp=(o=s==null?void 0:s.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=be(this,e,t),Re(e)?e===O||e==null||e===""?(this._$AH!==O&&this._$AR(),this._$AH=O):e!==this._$AH&&e!==de&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):gr(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==O&&Re(this._$AH)?this._$AA.nextSibling.data=e:this.$(ce.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:s}=e,o=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=Le.createElement(An(s.h,s.h[0]),this.options)),s);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.v(i);else{const r=new wr(o,this),l=r.u(this.options);r.v(i),this.$(l),this._$AH=r}}_$AC(e){let t=Bi.get(e.strings);return t===void 0&&Bi.set(e.strings,t=new Le(e)),t}T(e){_n(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,s=0;for(const o of e)s===t.length?t.push(i=new ze(this.k(Oe()),this.k(Oe()),this,this.options)):i=t[s],i._$AI(o),s++;s<t.length&&(this._$AR(i&&i._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}let yt=class{constructor(e,t,i,s,o){this.type=1,this._$AH=O,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=O}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,s){const o=this.strings;let r=!1;if(o===void 0)e=be(this,e,t,0),r=!Re(e)||e!==this._$AH&&e!==de,r&&(this._$AH=e);else{const l=e;let a,c;for(e=o[0],a=0;a<o.length-1;a++)c=be(this,l[i+a],t,a),c===de&&(c=this._$AH[a]),r||(r=!Re(c)||c!==this._$AH[a]),c===O?e=O:e!==O&&(e+=(c??"")+o[a+1]),this._$AH[a]=c}r&&!s&&this.j(e)}j(e){e===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}};class vr extends yt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===O?void 0:e}}const xr=ge?ge.emptyScript:"";class Er extends yt{constructor(){super(...arguments),this.type=4}j(e){e&&e!==O?this.element.setAttribute(this.name,xr):this.element.removeAttribute(this.name)}}let _r=class extends yt{constructor(e,t,i,s,o){super(e,t,i,s,o),this.type=5}_$AI(e,t=this){var i;if((e=(i=be(this,e,t,0))!==null&&i!==void 0?i:O)===de)return;const s=this._$AH,o=e===O&&s!==O||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==O&&(s===O||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}};class Sr{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){be(this,e)}}const Fi=dt.litHtmlPolyfillSupport;Fi==null||Fi(Le,ze),((Tt=dt.litHtmlVersions)!==null&&Tt!==void 0?Tt:dt.litHtmlVersions=[]).push("2.8.0");const Ar=(n,e,t)=>{var i,s;const o=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let r=o._$litPart$;if(r===void 0){const l=(s=t==null?void 0:t.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=r=new ze(e.insertBefore(Oe(),l),l,void 0,t??{})}return r._$AI(n),r};var jt,Dt;let Ce=class extends me{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ar(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return de}};Ce.finalized=!0,Ce._$litElement$=!0,(jt=globalThis.litElementHydrateSupport)===null||jt===void 0||jt.call(globalThis,{LitElement:Ce});const Hi=globalThis.litElementPolyfillSupport;Hi==null||Hi({LitElement:Ce});((Dt=globalThis.litElementVersions)!==null&&Dt!==void 0?Dt:globalThis.litElementVersions=[]).push("3.3.3");const $r=(n,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,n)}},Cr=(n,e,t)=>{e.constructor.createProperty(t,n)};function T(n){return(e,t)=>t!==void 0?Cr(n,e,t):$r(n,e)}const kr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ir=n=>(...e)=>({_$litDirective$:n,values:e});class Or{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class Vt extends Or{constructor(e){if(super(e),this.et=O,e.type!==kr.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===O||e==null)return this.ft=void 0,this.et=e;if(e===de)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Vt.directiveName="unsafeHTML",Vt.resultType=1;const Rr=Ir(Vt);const Ve=n=>n??O;let Lr=class{static showImage(e,t,i,s){let o;if(s||!(e instanceof HTMLImageElement)?o=r=>e.style.backgroundImage=this.prepareSrc(r):o=r=>e.src=r,o(i),t){const r=()=>{o(t)},l=new Image;l.addEventListener("load",r),l.src=t,l.complete&&(l.removeEventListener("load",r),r())}}static prepareSrc(e){return e?e.startsWith("url")?e:`url("${e}")`:null}};const Nr=':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;word-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 Mr=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,P=(n,e,t,i)=>{for(var s=i>1?void 0:i?Tr(e,t):e,o=n.length-1,r;o>=0;o--)(r=n[o])&&(s=(i?r(e,t,s):r(s))||s);return i&&s&&Mr(e,t,s),s},oe;const M=(oe=class extends Ce{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[hr`
263
- ${vn(Nr)}
264
- `]}render(){return qe`
261
+ `,ls={mainContent:ss,description:os,initializer:{content:as,type:"typescript",initialize:()=>yt(()=>import("./trigger-only.js"),__vite__mapDeps([3,1]),import.meta.url)}},cs=Object.freeze(Object.defineProperty({__proto__:null,default:ls},Symbol.toStringTag,{value:"Module"})),Mn=class ft extends HTMLElement{memoizedTemplate(){const e=this.is();if(ft.TEMPLATE_CACHE[e])return ft.TEMPLATE_CACHE[e];const i=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(i,this.is()),ft.TEMPLATE_CACHE[e]=i,i}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())}};Mn.TEMPLATE_CACHE={};let us=Mn;const pt=globalThis,pi=pt.ShadowRoot&&(pt.ShadyCSS===void 0||pt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mi=Symbol(),Hi=new WeakMap;let Nn=class{constructor(e,i,n){if(this._$cssResult$=!0,n!==mi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(pi&&e===void 0){const n=i!==void 0&&i.length===1;n&&(e=Hi.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Hi.set(i,e))}return e}toString(){return this.cssText}};const Pn=r=>new Nn(typeof r=="string"?r:r+"",void 0,mi),hs=(r,...e)=>{const i=r.length===1?r[0]:e.reduce(((n,t,c)=>n+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(t)+r[c+1]),r[0]);return new Nn(i,r,mi)},ds=(r,e)=>{if(pi)r.adoptedStyleSheets=e.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of e){const n=document.createElement("style"),t=pt.litNonce;t!==void 0&&n.setAttribute("nonce",t),n.textContent=i.cssText,r.appendChild(n)}},Wi=pi?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let i="";for(const n of e.cssRules)i+=n.cssText;return Pn(i)})(r):r;const{is:fs,defineProperty:ps,getOwnPropertyDescriptor:ms,getOwnPropertyNames:gs,getOwnPropertySymbols:bs,getPrototypeOf:ys}=Object,wt=globalThis,Gi=wt.trustedTypes,ws=Gi?Gi.emptyScript:"",vs=wt.reactiveElementPolyfillSupport,Ge=(r,e)=>r,mt={toAttribute(r,e){switch(e){case Boolean:r=r?ws:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let i=r;switch(e){case Boolean:i=r!==null;break;case Number:i=r===null?null:Number(r);break;case Object:case Array:try{i=JSON.parse(r)}catch{i=null}}return i}},gi=(r,e)=>!fs(r,e),Vi={attribute:!0,type:String,converter:mt,reflect:!1,useDefault:!1,hasChanged:gi};Symbol.metadata??=Symbol("metadata"),wt.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,i=Vi){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){const n=Symbol(),t=this.getPropertyDescriptor(e,n,i);t!==void 0&&ps(this.prototype,e,t)}}static getPropertyDescriptor(e,i,n){const{get:t,set:c}=ms(this.prototype,e)??{get(){return this[i]},set(o){this[i]=o}};return{get:t,set(o){const p=t?.call(this);c?.call(this,o),this.requestUpdate(e,p,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Vi}static _$Ei(){if(this.hasOwnProperty(Ge("elementProperties")))return;const e=ys(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ge("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ge("properties"))){const i=this.properties,n=[...gs(i),...bs(i)];for(const t of n)this.createProperty(t,i[t])}const e=this[Symbol.metadata];if(e!==null){const i=litPropertyMetadata.get(e);if(i!==void 0)for(const[n,t]of i)this.elementProperties.set(n,t)}this._$Eh=new Map;for(const[i,n]of this.elementProperties){const t=this._$Eu(i,n);t!==void 0&&this._$Eh.set(t,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const t of n)i.unshift(Wi(t))}else e!==void 0&&i.push(Wi(e));return i}static _$Eu(e,i){const n=i.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,i=this.constructor.elementProperties;for(const n of i.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 ds(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,i,n){this._$AK(e,n)}_$ET(e,i){const n=this.constructor.elementProperties.get(e),t=this.constructor._$Eu(e,n);if(t!==void 0&&n.reflect===!0){const c=(n.converter?.toAttribute!==void 0?n.converter:mt).toAttribute(i,n.type);this._$Em=e,c==null?this.removeAttribute(t):this.setAttribute(t,c),this._$Em=null}}_$AK(e,i){const n=this.constructor,t=n._$Eh.get(e);if(t!==void 0&&this._$Em!==t){const c=n.getPropertyOptions(t),o=typeof c.converter=="function"?{fromAttribute:c.converter}:c.converter?.fromAttribute!==void 0?c.converter:mt;this._$Em=t;const p=o.fromAttribute(i,c.type);this[t]=p??this._$Ej?.get(t)??p,this._$Em=null}}requestUpdate(e,i,n){if(e!==void 0){const t=this.constructor,c=this[e];if(n??=t.getPropertyOptions(e),!((n.hasChanged??gi)(c,i)||n.useDefault&&n.reflect&&c===this._$Ej?.get(e)&&!this.hasAttribute(t._$Eu(e,n))))return;this.C(e,i,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:n,reflect:t,wrapped:c},o){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??i??this[e]),c!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(i=void 0),this._$AL.set(e,i)),t===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}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[t,c]of this._$Ep)this[t]=c;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[t,c]of n){const{wrapped:o}=c,p=this[t];o!==!0||this._$AL.has(t)||p===void 0||this.C(t,void 0,c,p)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach((n=>n.hostUpdate?.())),this.update(i)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(i)}willUpdate(e){}_$AE(e){this._$EO?.forEach((i=>i.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((i=>this._$ET(i,this[i]))),this._$EM()}updated(e){}firstUpdated(e){}};De.elementStyles=[],De.shadowRootOptions={mode:"open"},De[Ge("elementProperties")]=new Map,De[Ge("finalized")]=new Map,vs?.({ReactiveElement:De}),(wt.reactiveElementVersions??=[]).push("2.1.1");const bi=globalThis,gt=bi.trustedTypes,Zi=gt?gt.createPolicy("lit-html",{createHTML:r=>r}):void 0,Tn="$lit$",Ee=`lit$${Math.random().toFixed(9).slice(2)}$`,jn="?"+Ee,xs=`<${jn}>`,$e=document,Je=()=>$e.createComment(""),Xe=r=>r===null||typeof r!="object"&&typeof r!="function",yi=Array.isArray,Es=r=>yi(r)||typeof r?.[Symbol.iterator]=="function",jt=`[
262
+ \f\r]`,He=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ki=/-->/g,Ji=/>/g,Ce=RegExp(`>|${jt}(?:([^\\s"'>=/]+)(${jt}*=${jt}*(?:[^
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
+ ${Pn(Bs)}
265
+ `]}render(){return lt`
265
266
  <div class="container">
266
- ${this.getLevelIndicators().map((n,e)=>qe` <div class="level-indicator level-${e}"></div> `)}
267
+ ${this.getLevelIndicators().map((r,e)=>lt` <div class="level-indicator level-${e}"></div> `)}
267
268
  <div class="side-content">
268
269
  <slot name="left-content"></slot>
269
270
  ${this.renderIcon()}
@@ -276,22 +277,22 @@ container.appendChild(list);
276
277
  <slot name="right-content"></slot>
277
278
  </div>
278
279
  </div>
279
- `}renderIcon(){if(this.icon||this.iconPlaceholder){const n=this.iconBackgroundColor!=null?`background-color:${this.iconBackgroundColor}`:void 0;return qe`
280
+ `}renderIcon(){if(this.icon||this.iconPlaceholder){const r=this.iconBackgroundColor!=null?`background-color:${this.iconBackgroundColor}`:void 0;return lt`
280
281
  <div
281
282
  class="icon-wrapper"
282
283
  @pointerdown="${this.handleIconClick}"
283
- style="${Ve(n)}"
284
+ style="${ct(r)}"
284
285
  role="img"
285
- aria-label="${Ve(this.iconAttrAriaLabel)}"
286
- title="${Ve(this.iconAttrTitle)}"
286
+ aria-label="${ct(this.iconAttrAriaLabel)}"
287
+ title="${ct(this.iconAttrTitle)}"
287
288
  >
288
289
  <div class="icon"></div>
289
290
  </div>
290
- `}return O}renderLabel(n,e,t){return e?qe`
291
- <div class="${n}" title="${Ve(t)}">
292
- ${this.contentMode==="html"?Rr(e):e}
291
+ `}return J}renderLabel(r,e,i){return e?lt`
292
+ <div class="${r}" title="${ct(i)}">
293
+ ${this.contentMode==="html"?Ds(e):e}
293
294
  </div>
294
- `:O}updated(n){super.updated(n),(n.has("icon")||n.has("iconPlaceholder"))&&(this.icon||this.iconPlaceholder)&&Lr.showImage(this.shadowRoot.querySelector(".icon"),this.icon,this.iconPlaceholder),n.has("selected")&&this.setAttribute("aria-selected",String(this.selected))}get missingWidthForTexts(){const n=this.enableLineClamp;this.removeAttribute("enable-line-clamp");let e=0;const t=this.shadowRoot.querySelector(".caption");t&&(e+=t.scrollWidth-t.clientWidth);const i=this.shadowRoot.querySelector(".description");return i&&(e=Math.max(e,i.scrollWidth-i.clientWidth)),e>0&&e++,n&&this.setAttribute("enable-line-clamp",""),e}handleIconClick(n){!this.disabled&&!this.dispatchEvent(new PointerEvent("list-item-icon-click",n))&&n.preventDefault()}getLevelIndicators(){return this.level?Array(Number(this.level)).fill(null):[]}},oe.ID="sd-list-item",oe.ensureDefined=()=>{customElements.get(oe.ID)||customElements.define(oe.ID,oe)},oe);P([T({type:String})],M.prototype,"caption",2);P([T({type:String})],M.prototype,"description",2);P([T({type:Boolean})],M.prototype,"selected",2);P([T({type:String})],M.prototype,"icon",2);P([T({type:String})],M.prototype,"iconBackgroundColor",2);P([T({type:String})],M.prototype,"iconPlaceholder",2);P([T({type:Number})],M.prototype,"level",2);P([T()],M.prototype,"contentMode",2);P([T({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],M.prototype,"enableLineClamp",2);P([T({type:Boolean,reflect:!0,attribute:"aria-disabled"})],M.prototype,"disabled",2);P([T({type:String,attribute:"icon-attr-aria-label"})],M.prototype,"iconAttrAriaLabel",2);P([T({type:String,reflect:!0})],M.prototype,"role",2);P([T({type:String,attribute:"caption-attr-title"})],M.prototype,"captionAttrTitle",2);P([T({type:String,attribute:"description-attr-title"})],M.prototype,"descriptionAttrTitle",2);P([T({type:String,attribute:"icon-attr-title"})],M.prototype,"iconAttrTitle",2);let ke=M;const Pr=(n,e)=>{const t=document.createElement(ke.ID);if(n){if(t.caption=n.caption,t.description=n.description,t.icon=n.icon,t.iconBackgroundColor=n.iconBackgroundColor,t.iconPlaceholder=n.iconPlaceholder,t.level=n.level,t.disabled=n.disabled,n.contentMode&&(t.contentMode=n.contentMode),n.leftContentGenerator){const i=n.leftContentGenerator(n,t);i&&(i.slot="left-content",t.appendChild(i))}if(n.rightContentGenerator){const i=n.rightContentGenerator(n,t);i&&(i.slot="right-content",t.appendChild(i))}}return t};ke.ensureDefined();const jr=`<style>
295
+ `:J}updated(r){super.updated(r),(r.has("icon")||r.has("iconPlaceholder"))&&(this.icon||this.iconPlaceholder)&&zs.showImage(this.shadowRoot.querySelector(".icon"),this.icon,this.iconPlaceholder),r.has("selected")&&this.setAttribute("aria-selected",String(this.selected))}get missingWidthForTexts(){const r=this.enableLineClamp;this.removeAttribute("enable-line-clamp");let e=0;const i=this.shadowRoot.querySelector(".caption");i&&(e+=i.scrollWidth-i.clientWidth);const n=this.shadowRoot.querySelector(".description");return n&&(e=Math.max(e,n.scrollWidth-n.clientWidth)),e>0&&e++,r&&this.setAttribute("enable-line-clamp",""),e}handleIconClick(r){!this.disabled&&!this.dispatchEvent(new PointerEvent("list-item-icon-click",r))&&r.preventDefault()}getLevelIndicators(){return this.level?Array(Number(this.level)).fill(null):[]}},Ie.ID="sd-list-item",Ie.ensureDefined=()=>{customElements.get(Ie.ID)||customElements.define(Ie.ID,Ie)},Ie);ae([oe({type:String})],se.prototype,"caption");ae([oe({type:String})],se.prototype,"description");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:r=>r=="true",toAttribute:r=>r},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 Ze=se;const Fs=(r,e)=>{const i=document.createElement(Ze.ID);if(r){if(i.caption=r.caption,i.description=r.description,i.icon=r.icon,i.iconBackgroundColor=r.iconBackgroundColor,i.iconPlaceholder=r.iconPlaceholder,i.level=r.level,i.disabled=r.disabled,r.contentMode&&(i.contentMode=r.contentMode),r.leftContentGenerator){const n=r.leftContentGenerator(r,i);n&&(n.slot="left-content",i.appendChild(n))}if(r.rightContentGenerator){const n=r.rightContentGenerator(r,i);n&&(n.slot="right-content",i.appendChild(n))}}return i};Ze.ensureDefined();const qs=`<style>
295
296
  :host {
296
297
  background-color: var(--sd-list-base-background-color, white);
297
298
  }
@@ -323,35 +324,38 @@ container.appendChild(list);
323
324
  <slot name="items"></slot>
324
325
  <slot id="default-slot"></slot>
325
326
  </div>
326
- `;let Dr=0;const J=class J extends ur{constructor(){super(),this._items=[],this._selectedIndexes=[],this._itemGenerator=Pr,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=J.ID+"_"+Dr++,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(i=>!this._selectedIndexes.includes(i)).forEach(i=>{this.setSelectedAttr(this.getListItem(i),!1)}),this._selectedIndexes.filter(i=>!t.includes(i)).forEach(i=>{this.setSelectedAttr(this.getListItem(i),!0)})}static get observedAttributes(){return["focus-index","focus-target"]}is(){return J.ID}template(){const e=document.createElement("template");return e.innerHTML=jr,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,i){if(e==="focus-index"){const s=this.getListItem(t);s&&s.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,i=this.offsetWidth;t.endsWith("px")&&(e=Number.parseInt(t)-i);const s=this.style.width;if(e==0||s.endsWith("px")&&i<Number.parseInt(s))this.enableLineClampOnItemsIfNeeded();else{const o=[...this.querySelectorAll("[slot='items']")].map(l=>{if(l instanceof ke){l.enableLineClamp=!1;const a=l.missingWidthForTexts;return a>e&&(l.enableLineClamp=!0),a}}),r=Math.max(...o);if(r>0){const l=i+r;this.style.width=`${l}px`,this.offsetWidth<l&&this.enableLineClampOnItemsIfNeeded()}}})}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[slot='items']").forEach(e=>{e instanceof ke&&(e.enableLineClamp=e.enableLineClamp||e.missingWidthForTexts>0)})}render(){if(!this.isConnected||!this.items)return;this.querySelectorAll("[slot='items']").forEach(i=>{this.removeChild(i)});const e=document.createDocumentFragment();let t=0;this.items.forEach((i,s)=>{const o=this.itemGenerator(i,s);this.isSeparator(o)||this.initListItem(o,t++),o.slot="items",e.appendChild(o)}),this.appendChild(e),this.updateFocusedElement()}initListItem(e,t){this.setSelectedAttr(e,this.selectedIndexes.includes(t)),e.addEventListener("click",i=>{this.handleItemClick(i,t)}),e.addEventListener("mousedown",i=>{i.button==1&&i.preventDefault()}),e.addEventListener("auxclick",i=>{this.handleItemClick(i,t)}),(!e.id||e.id.startsWith(this.id+"_item_"))&&(e.id=this.id+"_item_"+t)}ensureItemVisible(e){const t=e.getBoundingClientRect(),i=this.getBoundingClientRect();t.bottom>i.bottom?this.scrollTop+=t.bottom-i.bottom:t.top<i.top&&(this.scrollTop-=i.top-t.top)}updateFocusedElement(){const e=this.getListItem(this.focusIndex);e&&(this.focusTarget||document.activeElement==this)?(e.setAttribute("focused",""),this.setAttribute("aria-activedescendant",e.id),this.ensureItemVisible(e)):this.removeAttribute("aria-activedescendant")}handleItemClick(e,t){if(e.button!==null){const i=e.type=="auxclick"&&e.button==1||e.metaKey||e.ctrlKey;(e.button==0||e.button==1)&&this.handleSelection(t,i)}}handleSelection(e,t){const i=this.items[e];if(!i||i.disabled)return;const s=this.getListItem(e),o=this.isSelected(s);this.selectionType!=="trigger-only"&&(this.selectionType==="single"?this.selectedIndexes=o?[]:[e]:this.toggleSelection(s)?this._selectedIndexes.push(e):this.removeFromSelectedIndexes(e)),this.focusIndex=e,this.dispatchEvent(new CustomEvent("selection",{detail:{index:e,selected:this.selectionType=="trigger-only"||!o,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")}};J.ID="sd-list",J.ensureDefined=()=>{ke.ensureDefined(),customElements.get(J.ID)||customElements.define(J.ID,J)};let Kt=J;Kt.ensureDefined();function $n(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function zr(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function i(){return this instanceof 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(n).forEach(function(i){var s=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:function(){return n[i]}})}),t}var hi={exports:{}},$=String,Cn=function(){return{isColorSupported:!1,reset:$,bold:$,dim:$,italic:$,underline:$,inverse:$,hidden:$,strikethrough:$,black:$,red:$,green:$,yellow:$,blue:$,magenta:$,cyan:$,white:$,gray:$,bgBlack:$,bgRed:$,bgGreen:$,bgYellow:$,bgBlue:$,bgMagenta:$,bgCyan:$,bgWhite:$}};hi.exports=Cn();hi.exports.createColors=Cn;var Ur=hi.exports;const Br={},Fr=Object.freeze(Object.defineProperty({__proto__:null,default:Br},Symbol.toStringTag,{value:"Module"})),B=zr(Fr);let Wi=Ur,Gi=B,Zt=class kn extends Error{constructor(e,t,i,s,o,r){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),s&&(this.source=s),r&&(this.plugin=r),typeof t<"u"&&typeof i<"u"&&(typeof t=="number"?(this.line=t,this.column=i):(this.line=t.line,this.column=t.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,kn)}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(e){if(!this.source)return"";let t=this.source;e==null&&(e=Wi.isColorSupported),Gi&&e&&(t=Gi(t));let i=t.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),r=String(o).length,l,a;if(e){let{bold:c,gray:d,red:f}=Wi.createColors(!0);l=p=>c(f(p)),a=p=>d(p)}else l=a=c=>c;return i.slice(s,o).map((c,d)=>{let f=s+1+d,p=" "+(" "+f).slice(-r)+" | ";if(f===this.line){let x=a(p.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(p)+c+`
327
- `+x+l("^")}return" "+a(p)+c}).join(`
328
- `)}toString(){let e=this.showSourceCode();return e&&(e=`
327
+ `;let Hs=0;const be=class be extends us{constructor(){super(),this._items=[],this._selectedIndexes=[],this._itemGenerator=Fs,this.onDefaultSlotChange=()=>{let e=0;this.defaultSlot.assignedElements().forEach(i=>{this.isSeparator(i)||this.initListItem(i,e++)}),this.updateFocusedElement()},this.handleKeyDown=e=>{let i=!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:i=!1;break}i&&(e.preventDefault(),e.stopPropagation())},this._fallbackId=be.ID+"_"+Hs++,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 i=this._selectedIndexes||[];this._selectedIndexes=e||[],i.filter(n=>!this._selectedIndexes.includes(n)).forEach(n=>{this.setSelectedAttr(this.getListItem(n),!1)}),this._selectedIndexes.filter(n=>!i.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=qs,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,i,n){if(e==="focus-index"){const t=this.getListItem(i);t&&t.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 i=getComputedStyle(this).maxWidth,n=this.offsetWidth;i.endsWith("px")&&(e=Number.parseInt(i)-n);const t=this.style.width;if(e==0||t.endsWith("px")&&n<Number.parseInt(t))this.enableLineClampOnItemsIfNeeded();else{const c=[...this.querySelectorAll("[slot='items']")].map(p=>{if(p instanceof Ze){p.enableLineClamp=!1;const b=p.missingWidthForTexts;return b>e&&(p.enableLineClamp=!0),b}}),o=Math.max(...c);if(o>0){const p=n+o;this.style.width=`${p}px`,this.offsetWidth<p&&this.enableLineClampOnItemsIfNeeded()}}})}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[slot='items']").forEach(e=>{e instanceof Ze&&(e.enableLineClamp=e.enableLineClamp||e.missingWidthForTexts>0)})}render(){if(!this.isConnected||!this.items)return;this.querySelectorAll("[slot='items']").forEach(n=>{this.removeChild(n)});const e=document.createDocumentFragment();let i=0;this.items.forEach((n,t)=>{const c=this.itemGenerator(n,t);this.isSeparator(c)||this.initListItem(c,i++),c.slot="items",e.appendChild(c)}),this.appendChild(e),this.updateFocusedElement()}initListItem(e,i){this.setSelectedAttr(e,this.selectedIndexes.includes(i)),e.addEventListener("click",n=>{this.handleItemClick(n,i)}),e.addEventListener("mousedown",n=>{n.button==1&&n.preventDefault()}),e.addEventListener("auxclick",n=>{this.handleItemClick(n,i)}),(!e.id||e.id.startsWith(this.id+"_item_"))&&(e.id=this.id+"_item_"+i)}ensureItemVisible(e){const i=e.getBoundingClientRect(),n=this.getBoundingClientRect();i.bottom>n.bottom?this.scrollTop+=i.bottom-n.bottom:i.top<n.top&&(this.scrollTop-=n.top-i.top)}updateFocusedElement(){const e=this.getListItem(this.focusIndex);e&&(this.focusTarget||document.activeElement==this)?(e.setAttribute("focused",""),this.setAttribute("aria-activedescendant",e.id),this.ensureItemVisible(e)):this.removeAttribute("aria-activedescendant")}handleItemClick(e,i){if(e.button!==null){const n=e.type=="auxclick"&&e.button==1||e.metaKey||e.ctrlKey;(e.button==0||e.button==1)&&this.handleSelection(i,n)}}handleSelection(e,i){const n=this.getListItem(e);if(n.getAttribute("aria-disabled")=="true"||n.hasAttribute("disabled"))return;const t=this.isSelected(n);this.selectionType!=="trigger-only"&&(this.selectionType==="single"?this.selectedIndexes=t?[]:[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"||!t,hasModifier:i},bubbles:!0,composed:!0}))}removeFromSelectedIndexes(e){const i=this._selectedIndexes.indexOf(e);i!==-1&&this._selectedIndexes.splice(i,1)}toggleSelection(e){const i=!e.hasAttribute("selected");return this.setSelectedAttr(e,i),i}setSelectedAttr(e,i){e&&(i?e.setAttribute("selected",""):e.removeAttribute("selected"),e.setAttribute("aria-selected",String(i)))}isSelected(e){return e.hasAttribute("selected")}};be.ID="sd-list",be.ensureDefined=()=>{Ze.ensureDefined(),customElements.get(be.ID)||customElements.define(be.ID,be)};let fi=be;fi.ensureDefined();function Bn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Ws(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var i=function n(){var t=!1;try{t=this instanceof n}catch{}return t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var t=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(i,n,t.get?t:{enumerable:!0,get:function(){return r[n]}})}),i}var ut={exports:{}},en;function Gs(){if(en)return ut.exports;en=1;var r=String,e=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};return ut.exports=e(),ut.exports.createColors=e,ut.exports}const Vs={},Zs=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),de=Ws(Zs);var Dt,tn;function vi(){if(tn)return Dt;tn=1;let r=Gs(),e=de;class i extends Error{constructor(t,c,o,p,b,h){super(t),this.name="CssSyntaxError",this.reason=t,b&&(this.file=b),p&&(this.source=p),h&&(this.plugin=h),typeof c<"u"&&typeof o<"u"&&(typeof c=="number"?(this.line=c,this.column=o):(this.line=c.line,this.column=c.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}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(t){if(!this.source)return"";let c=this.source;t==null&&(t=r.isColorSupported);let o=l=>l,p=l=>l,b=l=>l;if(t){let{bold:l,gray:f,red:m}=r.createColors(!0);p=g=>l(m(g)),o=g=>f(g),e&&(b=g=>e(g))}let h=c.split(/\r?\n/),s=Math.max(this.line-3,0),u=Math.min(this.line+2,h.length),a=String(u).length;return h.slice(s,u).map((l,f)=>{let m=s+1+f,g=" "+(" "+m).slice(-a)+" | ";if(m===this.line){if(l.length>160){let _=20,v=Math.max(0,this.column-_),w=Math.max(this.column+_,this.endColumn+_),y=l.slice(v,w),S=o(g.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,_-1)).replace(/[^\t]/g," ");return p(">")+o(g)+b(y)+`
328
+ `+S+p("^")}let E=o(g.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return p(">")+o(g)+b(l)+`
329
+ `+E+p("^")}return" "+o(g)+b(l)}).join(`
330
+ `)}toString(){let t=this.showSourceCode();return t&&(t=`
329
331
 
330
- `+e+`
331
- `),this.name+": "+this.message+e}};var fi=Zt;Zt.default=Zt;var Ue={};Ue.isClean=Symbol("isClean");Ue.my=Symbol("my");const qi={after:`
332
+ `+t+`
333
+ `),this.name+": "+this.message+t}}return Dt=i,i.default=i,Dt}var zt,nn;function Un(){if(nn)return zt;nn=1;const r={after:`
332
334
  `,beforeClose:`
333
335
  `,beforeComment:`
334
336
  `,beforeDecl:`
335
337
  `,beforeOpen:" ",beforeRule:`
336
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Hr(n){return n[0].toUpperCase()+n.slice(1)}let Jt=class{constructor(e){this.builder=e}atrule(e,t){let i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?i+=e.raws.afterName:s&&(i+=" "),e.nodes)this.block(e,i+s);else{let o=(e.raws.between||"")+(t?";":"");this.builder(i+s+o,e)}}beforeAfter(e,t){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):t==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let s=e.parent,o=0;for(;s&&s.type!=="root";)o+=1,s=s.parent;if(i.includes(`
337
- `)){let r=this.raw(e,null,"indent");if(r.length)for(let l=0;l<o;l++)i+=r}return i}block(e,t){let i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start");let s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let i=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let o=e.nodes[s],r=this.raw(o,"before");r&&this.builder(r),this.stringify(o,t!==s||i)}}comment(e){let t=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+i+"*/",e)}decl(e,t){let i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,i){let s;if(i||(i=t),t&&(s=e.raws[t],typeof s<"u"))return s;let o=e.parent;if(i==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return qi[i];let r=e.root();if(r.rawCache||(r.rawCache={}),typeof r.rawCache[i]<"u")return r.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);{let l="raw"+Hr(i);this[l]?s=this[l](r,e):r.walk(a=>{if(s=a.raws[t],typeof s<"u")return!1})}return typeof s>"u"&&(s=qi[i]),r.rawCache[i]=s,s}rawBeforeClose(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return t=i.raws.after,t.includes(`
338
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let i;return e.walkComments(s=>{if(typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
339
- `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,t){let i;return e.walkDecls(s=>{if(typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
340
- `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(e){let t;return e.walk(i=>{if(i.type!=="decl"&&(t=i.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before<"u")return t=i.raws.before,t.includes(`
341
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(i=>{if(typeof i.raws.between<"u")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(t=i.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(i=>{let s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof i.raws.before<"u"){let o=i.raws.before.split(`
342
- `);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(t=i.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let i=e[t],s=e.raws[t];return s&&s.value===i?s.raw:i}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var In=Jt;Jt.default=Jt;let Wr=In;function Xt(n,e){new Wr(e).stringify(n)}var wt=Xt;Xt.default=Xt;let{isClean:Ke,my:Gr}=Ue,qr=fi,Vr=In,Kr=wt;function Qt(n,e){let t=new n.constructor;for(let i in n){if(!Object.prototype.hasOwnProperty.call(n,i)||i==="proxyCache")continue;let s=n[i],o=typeof s;i==="parent"&&o==="object"?e&&(t[i]=e):i==="source"?t[i]=s:Array.isArray(s)?t[i]=s.map(r=>Qt(r,t)):(o==="object"&&s!==null&&(s=Qt(s)),t[i]=s)}return t}let Yt=class{constructor(e={}){this.raws={},this[Ke]=!1,this[Gr]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let i of e[t])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Qt(this);for(let i in e)t[i]=e[i];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:i,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:i.column,line:i.line},t)}return new qr(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Ke]){this[Ke]=!1;let e=this;for(;e=e.parent;)e[Ke]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let i=this.source.start;if(e.index)i=this.positionInside(e.index,t);else if(e.word){t=this.toString();let s=t.indexOf(e.word);s!==-1&&(i=this.positionInside(s,t))}return i}positionInside(e,t){let i=t||this.toString(),s=this.source.start.column,o=this.source.start.line;for(let r=0;r<e;r++)i[r]===`
343
- `?(s=1,o+=1):s+=1;return{column:s,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),o=s.indexOf(e.word);o!==-1&&(t=this.positionInside(o,s),i=this.positionInside(o+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:e.endIndex?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<t.line||i.line===t.line&&i.column<=t.column)&&(i={column:t.column+1,line:t.line}),{end:i,start:t}}raw(e,t){return new Vr().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,i=!1;for(let s of e)s===this?i=!0:i?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);i||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let i={},s=t==null;t=t||new Map;let o=0;for(let r in this){if(!Object.prototype.hasOwnProperty.call(this,r)||r==="parent"||r==="proxyCache")continue;let l=this[r];if(Array.isArray(l))i[r]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)i[r]=l.toJSON(null,t);else if(r==="source"){let a=t.get(l.input);a==null&&(a=o,t.set(l.input,o),o++),i[r]={end:l.end,inputId:a,start:l.start}}else i[r]=l}return s&&(i.inputs=[...t.keys()].map(r=>r.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Kr){e.stringify&&(e=e.stringify);let t="";return e(this,i=>{t+=i}),t}warn(e,t,i){let s={node:this};for(let o in i)s[o]=i[o];return e.warn(t,s)}get proxyOf(){return this}};var vt=Yt;Yt.default=Yt;let Zr=vt,ei=class extends Zr{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var xt=ei;ei.default=ei;let Jr="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Xr=(n,e=21)=>(t=e)=>{let i="",s=t;for(;s--;)i+=n[Math.random()*n.length|0];return i},Qr=(n=21)=>{let e="",t=n;for(;t--;)e+=Jr[Math.random()*64|0];return e};var Yr={nanoid:Qr,customAlphabet:Xr};let{SourceMapConsumer:Vi,SourceMapGenerator:Ki}=B,{existsSync:eo,readFileSync:to}=B,{dirname:zt,join:io}=B;function no(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}let ti=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=t.map?t.map.prev:void 0,s=this.loadMap(t.from,i);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=zt(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new Vi(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(s.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||i.test(e))return no(e.substr(RegExp.lastMatch.length));let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let i=e.lastIndexOf(t.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}loadFile(e){if(this.root=zt(e),eo(e))return this.mapFile=e,to(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let i=t(e);if(i){let s=this.loadFile(i);if(!s)throw new Error("Unable to load previous source map: "+i.toString());return s}}else{if(t instanceof Vi)return Ki.fromSourceMap(t).toString();if(t instanceof Ki)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return e&&(i=io(zt(e),i)),this.loadFile(i)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var On=ti;ti.default=ti;let{SourceMapConsumer:so,SourceMapGenerator:ro}=B,{fileURLToPath:Zi,pathToFileURL:Ze}=B,{isAbsolute:ii,resolve:ni}=B,{nanoid:oo}=Yr,Ut=B,Ji=fi,lo=On,Bt=Symbol("fromOffsetCache"),ao=!!(so&&ro),Xi=!!(ni&&ii),ut=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Xi||/^\w+:\/\//.test(t.from)||ii(t.from)?this.file=t.from:this.file=ni(t.from)),Xi&&ao){let i=new lo(this.css,t);if(i.text){this.map=i;let s=i.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+oo(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,i,s={}){let o,r,l;if(t&&typeof t=="object"){let c=t,d=i;if(typeof c.offset=="number"){let f=this.fromOffset(c.offset);t=f.line,i=f.col}else t=c.line,i=c.column;if(typeof d.offset=="number"){let f=this.fromOffset(d.offset);r=f.line,l=f.col}else r=d.line,l=d.column}else if(!i){let c=this.fromOffset(t);t=c.line,i=c.col}let a=this.origin(t,i,r,l);return a?o=new Ji(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,s.plugin):o=new Ji(e,r===void 0?t:{column:i,line:t},r===void 0?i:{column:l,line:r},this.css,this.file,s.plugin),o.input={column:i,endColumn:l,endLine:r,line:t,source:this.css},this.file&&(Ze&&(o.input.url=Ze(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,i;if(this[Bt])i=this[Bt];else{let o=this.css.split(`
344
- `);i=new Array(o.length);let r=0;for(let l=0,a=o.length;l<a;l++)i[l]=r,r+=o[l].length+1;this[Bt]=i}t=i[i.length-1];let s=0;if(e>=t)s=i.length-1;else{let o=i.length-2,r;for(;s<o;)if(r=s+(o-s>>1),e<i[r])o=r-1;else if(e>=i[r+1])s=r+1;else{s=r;break}}return{col:e-i[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ni(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,s){if(!this.map)return!1;let o=this.map.consumer(),r=o.originalPositionFor({column:t,line:e});if(!r.source)return!1;let l;typeof i=="number"&&(l=o.originalPositionFor({column:s,line:i}));let a;ii(r.source)?a=Ze(r.source):a=new URL(r.source,this.map.consumer().sourceRoot||Ze(this.map.mapFile));let c={column:r.column,endColumn:l&&l.column,endLine:l&&l.line,line:r.line,url:a.toString()};if(a.protocol==="file:")if(Zi)c.file=Zi(a);else throw new Error("file: protocol is not available in this PostCSS build");let d=o.sourceContentFor(r.source);return d&&(c.source=d),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Et=ut;ut.default=ut;Ut&&Ut.registerInput&&Ut.registerInput(ut);let{SourceMapConsumer:Rn,SourceMapGenerator:lt}=B,{dirname:at,relative:Ln,resolve:Nn,sep:Mn}=B,{pathToFileURL:Qi}=B,co=Et,uo=!!(Rn&&lt),ho=!!(at&&Nn&&Ln&&Mn),fo=class{constructor(e,t,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
338
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(n){return n[0].toUpperCase()+n.slice(1)}class i{constructor(t){this.builder=t}atrule(t,c){let o="@"+t.name,p=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?o+=t.raws.afterName:p&&(o+=" "),t.nodes)this.block(t,o+p);else{let b=(t.raws.between||"")+(c?";":"");this.builder(o+p+b,t)}}beforeAfter(t,c){let o;t.type==="decl"?o=this.raw(t,null,"beforeDecl"):t.type==="comment"?o=this.raw(t,null,"beforeComment"):c==="before"?o=this.raw(t,null,"beforeRule"):o=this.raw(t,null,"beforeClose");let p=t.parent,b=0;for(;p&&p.type!=="root";)b+=1,p=p.parent;if(o.includes(`
339
+ `)){let h=this.raw(t,null,"indent");if(h.length)for(let s=0;s<b;s++)o+=h}return o}block(t,c){let o=this.raw(t,"between","beforeOpen");this.builder(c+o+"{",t,"start");let p;t.nodes&&t.nodes.length?(this.body(t),p=this.raw(t,"after")):p=this.raw(t,"after","emptyBody"),p&&this.builder(p),this.builder("}",t,"end")}body(t){let c=t.nodes.length-1;for(;c>0&&t.nodes[c].type==="comment";)c-=1;let o=this.raw(t,"semicolon");for(let p=0;p<t.nodes.length;p++){let b=t.nodes[p],h=this.raw(b,"before");h&&this.builder(h),this.stringify(b,c!==p||o)}}comment(t){let c=this.raw(t,"left","commentLeft"),o=this.raw(t,"right","commentRight");this.builder("/*"+c+t.text+o+"*/",t)}decl(t,c){let o=this.raw(t,"between","colon"),p=t.prop+o+this.rawValue(t,"value");t.important&&(p+=t.raws.important||" !important"),c&&(p+=";"),this.builder(p,t)}document(t){this.body(t)}raw(t,c,o){let p;if(o||(o=c),c&&(p=t.raws[c],typeof p<"u"))return p;let b=t.parent;if(o==="before"&&(!b||b.type==="root"&&b.first===t||b&&b.type==="document"))return"";if(!b)return r[o];let h=t.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[o]<"u")return h.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(t,o);{let s="raw"+e(o);this[s]?p=this[s](h,t):h.walk(u=>{if(p=u.raws[c],typeof p<"u")return!1})}return typeof p>"u"&&(p=r[o]),h.rawCache[o]=p,p}rawBeforeClose(t){let c;return t.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return c=o.raws.after,c.includes(`
340
+ `)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawBeforeComment(t,c){let o;return t.walkComments(p=>{if(typeof p.raws.before<"u")return o=p.raws.before,o.includes(`
341
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(c,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(t,c){let o;return t.walkDecls(p=>{if(typeof p.raws.before<"u")return o=p.raws.before,o.includes(`
342
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(c,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(t){let c;return t.walk(o=>{if(o.type!=="decl"&&(c=o.raws.between,typeof c<"u"))return!1}),c}rawBeforeRule(t){let c;return t.walk(o=>{if(o.nodes&&(o.parent!==t||t.first!==o)&&typeof o.raws.before<"u")return c=o.raws.before,c.includes(`
343
+ `)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawColon(t){let c;return t.walkDecls(o=>{if(typeof o.raws.between<"u")return c=o.raws.between.replace(/[^\s:]/g,""),!1}),c}rawEmptyBody(t){let c;return t.walk(o=>{if(o.nodes&&o.nodes.length===0&&(c=o.raws.after,typeof c<"u"))return!1}),c}rawIndent(t){if(t.raws.indent)return t.raws.indent;let c;return t.walk(o=>{let p=o.parent;if(p&&p!==t&&p.parent&&p.parent===t&&typeof o.raws.before<"u"){let b=o.raws.before.split(`
344
+ `);return c=b[b.length-1],c=c.replace(/\S/g,""),!1}}),c}rawSemicolon(t){let c;return t.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(c=o.raws.semicolon,typeof c<"u"))return!1}),c}rawValue(t,c){let o=t[c],p=t.raws[c];return p&&p.value===o?p.raw:o}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,c){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,c)}}return zt=i,i.default=i,zt}var Bt,rn;function xt(){if(rn)return Bt;rn=1;let r=Un();function e(i,n){new r(n).stringify(i)}return Bt=e,e.default=e,Bt}var ht={},sn;function xi(){return sn||(sn=1,ht.isClean=Symbol("isClean"),ht.my=Symbol("my")),ht}var Ut,on;function Et(){if(on)return Ut;on=1;let r=vi(),e=Un(),i=xt(),{isClean:n,my:t}=xi();function c(b,h){let s=new b.constructor;for(let u in b){if(!Object.prototype.hasOwnProperty.call(b,u)||u==="proxyCache")continue;let a=b[u],l=typeof a;u==="parent"&&l==="object"?h&&(s[u]=h):u==="source"?s[u]=a:Array.isArray(a)?s[u]=a.map(f=>c(f,s)):(l==="object"&&a!==null&&(a=c(a)),s[u]=a)}return s}function o(b,h){if(h&&typeof h.offset<"u")return h.offset;let s=1,u=1,a=0;for(let l=0;l<b.length;l++){if(u===h.line&&s===h.column){a=l;break}b[l]===`
345
+ `?(s=1,u+=1):s+=1}return a}class p{get proxyOf(){return this}constructor(h={}){this.raws={},this[n]=!1,this[t]=!0;for(let s in h)if(s==="nodes"){this.nodes=[];for(let u of h[s])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[s]=h[s]}addToError(h){if(h.postcssNode=this,h.stack&&this.source&&/\n\s{4}at /.test(h.stack)){let s=this.source;h.stack=h.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return h}after(h){return this.parent.insertAfter(this,h),this}assign(h={}){for(let s in h)this[s]=h[s];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 s=c(this);for(let u in h)s[u]=h[u];return s}cloneAfter(h={}){let s=this.clone(h);return this.parent.insertAfter(this,s),s}cloneBefore(h={}){let s=this.clone(h);return this.parent.insertBefore(this,s),s}error(h,s={}){if(this.source){let{end:u,start:a}=this.rangeBy(s);return this.source.input.error(h,{column:a.column,line:a.line},{column:u.column,line:u.line},s)}return new r(h)}getProxyProcessor(){return{get(h,s){return s==="proxyOf"?h:s==="root"?()=>h.root().toProxy():h[s]},set(h,s,u){return h[s]===u||(h[s]=u,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="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 s=this.source.start;if(h.index)s=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(o(u,this.source.start),o(u,this.source.end)).indexOf(h.word);l!==-1&&(s=this.positionInside(l))}return s}positionInside(h){let s=this.source.start.column,u=this.source.start.line,a="document"in this.source.input?this.source.input.document:this.source.input.css,l=o(a,this.source.start),f=l+h;for(let m=l;m<f;m++)a[m]===`
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
+ `),E=new Array(g.length),_=0;for(let v=0,w=g.length;v<w;v++)E[v]=_,_+=g[v].length+1;return m[s]=E,E}class f{get from(){return this.file||this.id}constructor(g,E={}){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,E.document&&(this.document=E.document.toString()),E.from&&(!a||/^\w+:\/\//.test(E.from)||e(E.from)?this.file=E.from:this.file=i(E.from)),a&&u){let _=new b(this.css,E);if(_.text){this.map=_;let v=_.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+r(6)+">"),this.map&&(this.map.file=this.from)}error(g,E,_,v={}){let w,y,S,I,P;if(E&&typeof E=="object"){let M=E,K=_;if(typeof M.offset=="number"){I=M.offset;let q=this.fromOffset(I);E=q.line,_=q.col}else E=M.line,_=M.column,I=this.fromLineAndColumn(E,_);if(typeof K.offset=="number"){S=K.offset;let q=this.fromOffset(S);y=q.line,w=q.col}else y=K.line,w=K.column,S=this.fromLineAndColumn(K.line,K.column)}else if(_)I=this.fromLineAndColumn(E,_);else{I=E;let M=this.fromOffset(I);E=M.line,_=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?E:{column:_,line:E},y===void 0?_:{column:w,line:y},this.css,this.file,v.plugin),P.input={column:_,endColumn:w,endLine:y,endOffset:S,line:E,offset:I,source:this.css},this.file&&(o&&(P.input.url=o(this.file).toString()),P.input.file=this.file),P}fromLineAndColumn(g,E){return l(this)[g-1]+E-1}fromOffset(g){let E=l(this),_=E[E.length-1],v=0;if(g>=_)v=E.length-1;else{let w=E.length-2,y;for(;v<w;)if(y=v+(w-v>>1),g<E[y])w=y-1;else if(g>=E[y+1])v=y+1;else{v=y;break}}return{col:g-E[v]+1,line:v+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:i(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:E,line:g});if(!y.source)return!1;let S;typeof _=="number"&&(S=w.originalPositionFor({column:v,line:_}));let I;e(y.source)?I=o(y.source):I=new URL(y.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let P={column:y.column,endColumn:S&&S.column,endLine:S&&S.line,line:y.line,url:I.toString()};if(I.protocol==="file:")if(c)P.file=c(I);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 E of["hasBOM","css","file","id"])this[E]!=null&&(g[E]=this[E]);return this.map&&(g.map={...this.map},g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Kt=f,f.default=f,h&&h.registerInput&&h.registerInput(f),Kt}var Jt,mn;function et(){if(mn)return Jt;mn=1;let r=Le(),e,i;class n extends r{constructor(c){super(c),this.type="root",this.nodes||(this.nodes=[])}normalize(c,o,p){let b=super.normalize(c);if(o){if(p==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let h of b)h.raws.before=o.raws.before}return b}removeChild(c,o){let p=this.index(c);return!o&&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 i,this,c).stringify()}}return n.registerLazyResult=t=>{e=t},n.registerProcessor=t=>{i=t},Jt=n,n.default=n,r.registerRoot(n),Jt}var Xt,gn;function qn(){if(gn)return Xt;gn=1;let r={comma(e){return r.split(e,[","],!0)},space(e){let i=[" ",`
348
+ `," "];return r.split(e,i)},split(e,i,n){let t=[],c="",o=!1,p=0,b=!1,h="",s=!1;for(let u of e)s?s=!1:u==="\\"?s=!0:b?u===h&&(b=!1):u==='"'||u==="'"?(b=!0,h=u):u==="("?p+=1:u===")"?p>0&&(p-=1):p===0&&i.includes(u)&&(o=!0),o?(c!==""&&t.push(c.trim()),c="",o=!1):c+=u;return(n||c!=="")&&t.push(c.trim()),t}};return Xt=r,r.default=r,Xt}var Qt,bn;function Si(){if(bn)return Qt;bn=1;let r=Le(),e=qn();class i extends r{get selectors(){return e.comma(this.selector)}set selectors(t){let c=this.selector?this.selector.match(/,\s*/):null,o=c?c[0]:","+this.raw("between","beforeOpen");this.selector=t.join(o)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}}return Qt=i,i.default=i,r.registerRule(i),Qt}var Yt,yn;function Js(){if(yn)return Yt;yn=1;let r=Ei(),e=_t(),i=St(),n=At(),t=Fn(),c=et(),o=Si();function p(b,h){if(Array.isArray(b))return b.map(a=>p(a));let{inputs:s,...u}=b;if(s){h=[];for(let a of s){let l={...a,__proto__:n.prototype};l.map&&(l.map={...l.map,__proto__:t.prototype}),h.push(l)}}if(u.nodes&&(u.nodes=b.nodes.map(a=>p(a,h))),u.source){let{inputId:a,...l}=u.source;u.source=l,a!=null&&(u.source.input=h[a])}if(u.type==="root")return new c(u);if(u.type==="decl")return new i(u);if(u.type==="rule")return new o(u);if(u.type==="comment")return new e(u);if(u.type==="atrule")return new r(u);throw new Error("Unknown node type: "+b.type)}return Yt=p,p.default=p,Yt}var ei,wn;function Hn(){if(wn)return ei;wn=1;let{dirname:r,relative:e,resolve:i,sep:n}=de,{SourceMapConsumer:t,SourceMapGenerator:c}=de,{pathToFileURL:o}=de,p=At(),b=!!(t&&c),h=!!(r&&i&&e&&n);class s{constructor(a,l,f,m){this.stringify=a,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 a;this.isInline()?a="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?a=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?a=this.mapOpts.annotation(this.opts.to,this.root):a=this.outputFile()+".map";let l=`
345
349
  `;this.css.includes(`\r
346
- `)&&(t=`\r
347
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||at(e.file),s;this.mapOpts.sourcesContent===!1?(s=new Rn(e.text),s.sourcesContent&&(s.sourcesContent=s.sourcesContent.map(()=>null))):s=e.consumer(),this.map.applySourceMap(s,t,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),ho&&uo&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=lt.fromSourceMap(e)}else this.map=new lt({file:this.outputFile()}),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 lt({file:this.outputFile()});let e=1,t=1,i="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,r;this.stringify(this.root,(l,a,c)=>{if(this.css+=l,a&&c!=="end"&&(s.generated.line=e,s.generated.column=t-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,this.map.addMapping(s))),o=l.match(/\n/g),o?(e+=o.length,r=l.lastIndexOf(`
348
- `),t=l.length-r):t+=l.length,a&&c!=="start"){let d=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==d.last||d.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.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(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?at(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=at(Nn(i,this.mapOpts.annotation)));let s=Ln(i,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new co(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let s=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Qi){let i=Qi(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Mn==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var Tn=fo;let po=vt,si=class extends po{constructor(e){super(e),this.type="comment"}};var _t=si;si.default=si;let{isClean:Pn,my:jn}=Ue,Dn=xt,zn=_t,mo=vt,Un,pi,mi,Bn;function Fn(n){return n.map(e=>(e.nodes&&(e.nodes=Fn(e.nodes)),delete e.source,e))}function Hn(n){if(n[Pn]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)Hn(e)}let X=class Wn extends mo{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let s of i)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),i,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],s=e(this.proxyOf.nodes[i],i),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...i)=>e[t](...i.map(s=>typeof s=="function"?(o,r)=>s(o.toProxy(),r):s)):t==="every"||t==="some"?i=>e[t]((s,...o)=>i(s.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let i=this.index(e),s=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let r of s)this.proxyOf.nodes.splice(i+1,0,r);let o;for(let r in this.indexes)o=this.indexes[r],i<o&&(this.indexes[r]=o+s.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),s=i===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[i],s).reverse();i=this.index(e);for(let l of o)this.proxyOf.nodes.splice(i,0,l);let r;for(let l in this.indexes)r=this.indexes[l],i<=r&&(this.indexes[l]=r+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Fn(Un(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Dn(e)]}else if(e.selector)e=[new pi(e)];else if(e.name)e=[new mi(e)];else if(e.text)e=[new zn(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[jn]||Wn.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Pn]&&Hn(s),typeof s.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let s of i)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+i.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let s;try{s=e(t,i)}catch(o){throw t.addToError(o)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,s)}):this.walk((i,s)=>{if(i.type==="atrule"&&i.name===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="atrule")return t(i,s)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,s)}):this.walk((i,s)=>{if(i.type==="decl"&&i.prop===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="decl")return t(i,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,s)}):this.walk((i,s)=>{if(i.type==="rule"&&i.selector===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="rule")return t(i,s)}))}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]}};X.registerParse=n=>{Un=n};X.registerRule=n=>{pi=n};X.registerAtRule=n=>{mi=n};X.registerRoot=n=>{Bn=n};var ue=X;X.default=X;X.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,mi.prototype):n.type==="rule"?Object.setPrototypeOf(n,pi.prototype):n.type==="decl"?Object.setPrototypeOf(n,Dn.prototype):n.type==="comment"?Object.setPrototypeOf(n,zn.prototype):n.type==="root"&&Object.setPrototypeOf(n,Bn.prototype),n[jn]=!0,n.nodes&&n.nodes.forEach(e=>{X.rebuild(e)})};let go=ue,Gn,qn,Ne=class extends go{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Gn(new qn,this,e).stringify()}};Ne.registerLazyResult=n=>{Gn=n};Ne.registerProcessor=n=>{qn=n};var gi=Ne;Ne.default=Ne;let ri=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[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}};var Vn=ri;ri.default=ri;let bo=Vn,oi=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new bo(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var bi=oi;oi.default=oi;const Ft=39,Yi=34,Je=92,en=47,Xe=10,Se=32,Qe=12,Ye=9,et=13,yo=91,wo=93,vo=40,xo=41,Eo=123,_o=125,So=59,Ao=42,$o=58,Co=64,tt=/[\t\n\f\r "#'()/;[\\\]{}]/g,it=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ko=/.[\r\n"'(/\\]/,tn=/[\da-f]/i;var Io=function(e,t={}){let i=e.css.valueOf(),s=t.ignoreErrors,o,r,l,a,c,d,f,p,x,k,R=i.length,b=0,q=[],V=[];function te(){return b}function U(F){throw e.error("Unclosed "+F,b)}function K(){return V.length===0&&b>=R}function Ee(F){if(V.length)return V.pop();if(b>=R)return;let j=F?F.ignoreUnclosed:!1;switch(o=i.charCodeAt(b),o){case Xe:case Se:case Ye:case et:case Qe:{r=b;do r+=1,o=i.charCodeAt(r);while(o===Se||o===Xe||o===Ye||o===et||o===Qe);k=["space",i.slice(b,r)],b=r-1;break}case yo:case wo:case Eo:case _o:case $o:case So:case xo:{let ie=String.fromCharCode(o);k=[ie,ie,b];break}case vo:{if(p=q.length?q.pop()[1]:"",x=i.charCodeAt(b+1),p==="url"&&x!==Ft&&x!==Yi&&x!==Se&&x!==Xe&&x!==Ye&&x!==Qe&&x!==et){r=b;do{if(d=!1,r=i.indexOf(")",r+1),r===-1)if(s||j){r=b;break}else U("bracket");for(f=r;i.charCodeAt(f-1)===Je;)f-=1,d=!d}while(d);k=["brackets",i.slice(b,r+1),b,r],b=r}else r=i.indexOf(")",b+1),a=i.slice(b,r+1),r===-1||ko.test(a)?k=["(","(",b]:(k=["brackets",a,b,r],b=r);break}case Ft:case Yi:{l=o===Ft?"'":'"',r=b;do{if(d=!1,r=i.indexOf(l,r+1),r===-1)if(s||j){r=b+1;break}else U("string");for(f=r;i.charCodeAt(f-1)===Je;)f-=1,d=!d}while(d);k=["string",i.slice(b,r+1),b,r],b=r;break}case Co:{tt.lastIndex=b+1,tt.test(i),tt.lastIndex===0?r=i.length-1:r=tt.lastIndex-2,k=["at-word",i.slice(b,r+1),b,r],b=r;break}case Je:{for(r=b,c=!0;i.charCodeAt(r+1)===Je;)r+=1,c=!c;if(o=i.charCodeAt(r+1),c&&o!==en&&o!==Se&&o!==Xe&&o!==Ye&&o!==et&&o!==Qe&&(r+=1,tn.test(i.charAt(r)))){for(;tn.test(i.charAt(r+1));)r+=1;i.charCodeAt(r+1)===Se&&(r+=1)}k=["word",i.slice(b,r+1),b,r],b=r;break}default:{o===en&&i.charCodeAt(b+1)===Ao?(r=i.indexOf("*/",b+2)+1,r===0&&(s||j?r=i.length:U("comment")),k=["comment",i.slice(b,r+1),b,r],b=r):(it.lastIndex=b+1,it.test(i),it.lastIndex===0?r=i.length-1:r=it.lastIndex-2,k=["word",i.slice(b,r+1),b,r],q.push(k),b=r);break}}return b++,k}function fe(F){V.push(F)}return{back:fe,endOfFile:K,nextToken:Ee,position:te}};let Kn=ue,ht=class extends Kn{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var yi=ht;ht.default=ht;Kn.registerAtRule(ht);let Zn=ue,Jn,Xn,ye=class extends Zn{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let s=super.normalize(e);if(t){if(i==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of s)o.raws.before=t.raws.before}return s}removeChild(e,t){let i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new Jn(new Xn,this,e).stringify()}};ye.registerLazyResult=n=>{Jn=n};ye.registerProcessor=n=>{Xn=n};var Be=ye;ye.default=ye;Zn.registerRoot(ye);let Me={comma(n){return Me.split(n,[","],!0)},space(n){let e=[" ",`
349
- `," "];return Me.split(n,e)},split(n,e,t){let i=[],s="",o=!1,r=0,l=!1,a="",c=!1;for(let d of n)c?c=!1:d==="\\"?c=!0:l?d===a&&(l=!1):d==='"'||d==="'"?(l=!0,a=d):d==="("?r+=1:d===")"?r>0&&(r-=1):r===0&&e.includes(d)&&(o=!0),o?(s!==""&&i.push(s.trim()),s="",o=!1):s+=d;return(t||s!=="")&&i.push(s.trim()),i}};var Qn=Me;Me.default=Me;let Yn=ue,Oo=Qn,ft=class extends Yn{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Oo.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var wi=ft;ft.default=ft;Yn.registerRule(ft);let Ro=xt,Lo=Io,No=_t,Mo=yi,To=Be,nn=wi;const sn={empty:!0,space:!0};function Po(n){for(let e=n.length-1;e>=0;e--){let t=n[e],i=t[3]||t[2];if(i)return i}}let jo=class{constructor(e){this.input=e,this.root=new To,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Mo;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,s,o,r=!1,l=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?c.push(i==="("?")":"]"):i==="{"&&c.length>0?c.push("}"):i===c[c.length-1]&&c.pop(),c.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(a.length>0){for(o=a.length-1,s=a[o];s&&s[0]==="space";)s=a[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){r=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),r&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,s;for(let o=t-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(i+=1,i===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,i,s,o;for(let[r,l]of e.entries()){if(i=l,s=i[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!o)this.doubleColon(i);else{if(o[0]==="word"&&o[1]==="progid")continue;return r}o=i}return!1}comment(e){let t=new No;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let s=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=Lo(this.input)}decl(e,t){let i=new Ro;this.init(i,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||Po(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){i.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),i.raws.between+=o[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let r=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)r.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(o=e[c],o[1].toLowerCase()==="!important"){i.important=!0;let d=this.stringFrom(e,c);d=this.spacesFromEnd(e)+d,d!==" !important"&&(i.raws.important=d);break}else if(o[1].toLowerCase()==="important"){let d=e.slice(0),f="";for(let p=c;p>0;p--){let x=d[p][0];if(f.trim().indexOf("!")===0&&x!=="space")break;f=d.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=d)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(i.raws.between+=r.map(c=>c[1]).join(""),r=[]),this.raw(i,"value",r.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new nn;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}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(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,i=null,s=!1,o=null,r=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(i=c[0],a.push(c),i==="("||i==="[")o||(o=c),r.push(i==="("?")":"]");else if(l&&s&&i==="{")o||(o=c),r.push("}");else if(r.length===0)if(i===";")if(s){this.decl(a,l);return}else break;else if(i==="{"){this.rule(a);return}else if(i==="}"){this.tokenizer.back(a.pop()),t=!0;break}else i===":"&&(s=!0);else i===r[r.length-1]&&(r.pop(),r.length===0&&(o=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),r.length>0&&this.unclosedBracket(o),t&&s){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,i,s){let o,r,l=i.length,a="",c=!0,d,f;for(let p=0;p<l;p+=1)o=i[p],r=o[0],r==="space"&&p===l-1&&!s?c=!1:r==="comment"?(f=i[p-1]?i[p-1][0]:"empty",d=i[p+1]?i[p+1][0]:"empty",!sn[f]&&!sn[d]?a.slice(-1)===","?c=!1:a+=o[1]:c=!1):a+=o[1];if(!c){let p=i.reduce((x,k)=>x+k[1],"");e.raws[t]={raw:p,value:a}}e[t]=a}rule(e){e.pop();let t=new nn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let s=t;s<e.length;s++)i+=e[s][1];return e.splice(t,e.length-t),i}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Do=jo;let zo=ue,Uo=Do,Bo=Et;function pt(n,e){let t=new Bo(n,e),i=new Uo(t);try{i.parse()}catch(s){throw s}return i.root}var vi=pt;pt.default=pt;zo.registerParse(pt);let{isClean:G,my:Fo}=Ue,Ho=Tn,Wo=wt,Go=ue,qo=gi,rn=bi,Vo=vi,Ko=Be;const Zo={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Jo={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},Xo={Once:!0,postcssPlugin:!0,prepare:!0},we=0;function Ae(n){return typeof n=="object"&&typeof n.then=="function"}function es(n){let e=!1,t=Zo[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,we,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,we,t+"Exit"]:[t,t+"Exit"]}function on(n){let e;return n.type==="document"?e=["Document",we,"DocumentExit"]:n.type==="root"?e=["Root",we,"RootExit"]:e=es(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function li(n){return n[G]=!1,n.nodes&&n.nodes.forEach(e=>li(e)),n}let ai={},ve=class ts{constructor(e,t,i){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=li(t);else if(t instanceof ts||t instanceof rn)s=li(t.root),t.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let o=Vo;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{s=o(t,i)}catch(r){this.processed=!0,this.error=r}s&&!s[Fo]&&Go.rebuild(s)}this.result=new rn(e,s,i),this.helpers={...ai,postcss:ai,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let i=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=i.postcssPlugin,e.setMessage()):i.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,i,s)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!Jo[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Xo[i])if(typeof t[i]=="object")for(let s in t[i])s==="*"?e(t,i,t[i][s]):e(t,i+"-"+s.toLowerCase(),t[i][s]);else typeof t[i]=="function"&&e(t,i,t[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],i=this.runOnRoot(t);if(Ae(i))try{await i}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[G];){e[G]=!0;let t=[on(e)];for(;t.length>0;){let i=this.visitTick(t);if(Ae(i))try{await i}catch(s){let o=t[t.length-1].node;throw this.handleError(s,o)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(o=>i(o,this.helpers));await Promise.all(s)}else await i(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(i=>e.Once(i,this.helpers));return Ae(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Wo;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new Ho(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[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 e of this.plugins){let t=this.runOnRoot(e);if(Ae(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[G];)e[G]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[i,s]of e){this.result.lastPlugin=i;let o;try{o=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(Ae(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:s}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[r,l]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=r;try{return l(i.toProxy(),this.helpers)}catch(a){throw this.handleError(a,i)}}if(t.iterator!==0){let r=t.iterator,l;for(;l=i.nodes[i.indexes[r]];)if(i.indexes[r]+=1,!l[G]){l[G]=!0,e.push(on(l));return}t.iterator=0,delete i.indexes[r]}let o=t.events;for(;t.eventIndex<o.length;){let r=o[t.eventIndex];if(t.eventIndex+=1,r===we){i.nodes&&i.nodes.length&&(i[G]=!0,t.iterator=i.getIterator());return}else if(this.listeners[r]){t.visitors=this.listeners[r];return}}e.pop()}walkSync(e){e[G]=!0;let t=es(e);for(let i of t)if(i===we)e.nodes&&e.each(s=>{s[G]||this.walkSync(s)});else{let s=this.listeners[i];if(s&&this.visitSync(s,e.toProxy()))return}}warnings(){return this.sync().warnings()}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"}};ve.registerPostcss=n=>{ai=n};var is=ve;ve.default=ve;Ko.registerLazyResult(ve);qo.registerLazyResult(ve);let Qo=Tn,Yo=wt,el=vi;const tl=bi;let ci=class{constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let s,o=Yo;this.result=new tl(this._processor,s,this._opts),this.result.css=t;let r=this;Object.defineProperty(this.result,"root",{get(){return r.root}});let l=new Qo(o,s,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}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 e,t=el;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var il=ci;ci.default=ci;let nl=il,sl=is,rl=gi,ol=Be,Te=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length===0&&typeof t.parser>"u"&&typeof t.stringifier>"u"&&typeof t.syntax>"u"?new nl(this,e,t):new sl(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var ll=Te;Te.default=Te;ol.registerProcessor(Te);rl.registerProcessor(Te);let al=xt,cl=On,dl=_t,ul=yi,hl=Et,fl=Be,pl=wi;function Pe(n,e){if(Array.isArray(n))return n.map(s=>Pe(s));let{inputs:t,...i}=n;if(t){e=[];for(let s of t){let o={...s,__proto__:hl.prototype};o.map&&(o.map={...o.map,__proto__:cl.prototype}),e.push(o)}}if(i.nodes&&(i.nodes=n.nodes.map(s=>Pe(s,e))),i.source){let{inputId:s,...o}=i.source;i.source=o,s!=null&&(i.source.input=e[s])}if(i.type==="root")return new fl(i);if(i.type==="decl")return new al(i);if(i.type==="rule")return new pl(i);if(i.type==="comment")return new dl(i);if(i.type==="atrule")return new ul(i);throw new Error("Unknown node type: "+n.type)}var ml=Pe;Pe.default=Pe;var ln={};let gl=fi,ns=xt,bl=is,yl=ue,xi=ll,wl=wt,vl=ml,ss=gi,xl=Vn,rs=_t,os=yi,El=bi,_l=Et,Sl=vi,Al=Qn,ls=wi,as=Be,$l=vt;function _(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new xi(n)}_.plugin=function(e,t){let i=!1;function s(...r){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
350
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),ln.LANG&&ln.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
351
- https://www.w3ctech.com/topic/2226`));let l=t(...r);return l.postcssPlugin=e,l.postcssVersion=new xi().version,l}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(r,l,a){return _([s(a)]).process(r,l)},s};_.stringify=wl;_.parse=Sl;_.fromJSON=vl;_.list=Al;_.comment=n=>new rs(n);_.atRule=n=>new os(n);_.decl=n=>new ns(n);_.rule=n=>new ls(n);_.root=n=>new as(n);_.document=n=>new ss(n);_.CssSyntaxError=gl;_.Declaration=ns;_.Container=yl;_.Processor=xi;_.Document=ss;_.Comment=rs;_.Warning=xl;_.AtRule=os;_.Result=El;_.Input=_l;_.Rule=ls;_.Root=as;_.Node=$l;bl.registerPostcss(_);var Cl=_;_.default=_;const C=$n(Cl);C.stringify;C.fromJSON;C.plugin;C.parse;C.list;C.document;C.comment;C.atRule;C.rule;C.decl;C.root;C.CssSyntaxError;C.Declaration;C.Container;C.Processor;C.Document;C.Comment;C.Warning;C.AtRule;C.Result;C.Input;C.Rule;C.Root;C.Node;var kl=function(e){const t=e.prefix,i=/\s+$/.test(t)?t:`${t} `,s=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return function(r){s.length&&r.source.input.file&&an(r.source.input.file,s)||o.length&&r.source.input.file&&!an(r.source.input.file,o)||r.walkRules(l=>{const a=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];l.parent&&a.includes(l.parent.name)||(l.selectors=l.selectors.map(c=>e.exclude&&Il(c,e.exclude)?c:e.transform?e.transform(t,c,i+c,r.source.input.file,l):i+c))})}};function an(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n.includes(t))}function Il(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n===t)}const Ol=$n(kl),Rl="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}",Ll="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 Nl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function cs(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],i=typeof t;(i==="object"||i==="function")&&!Object.isFrozen(t)&&cs(t)}),n}class cn{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ds(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function ee(n,...e){const t=Object.create(null);for(const i in n)t[i]=n[i];return e.forEach(function(i){for(const s in i)t[s]=i[s]}),t}const Ml="</span>",dn=n=>!!n.scope,Tl=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((i,s)=>`${i}${"_".repeat(s+1)}`)].join(" ")}return`${e}${n}`};class Pl{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=ds(e)}openNode(e){if(!dn(e))return;const t=Tl(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){dn(e)&&(this.buffer+=Ml)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const un=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class Ei{constructor(){this.rootNode=un(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=un({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(i=>this._walk(e,i)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{Ei._collapse(t)}))}}class jl extends Ei{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const i=e.root;t&&(i.scope=`language:${t}`),this.add(i)}toHTML(){return new Pl(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function je(n){return n?typeof n=="string"?n:n.source:null}function us(n){return he("(?=",n,")")}function Dl(n){return he("(?:",n,")*")}function zl(n){return he("(?:",n,")?")}function he(...n){return n.map(e=>je(e)).join("")}function Ul(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function _i(...n){return"("+(Ul(n).capture?"":"?:")+n.map(e=>je(e)).join("|")+")"}function hs(n){return new RegExp(n.toString()+"|").exec("").length-1}function Bl(n,e){const t=n&&n.exec(e);return t&&t.index===0}const Fl=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Si(n,{joinWith:e}){let t=0;return n.map(i=>{t+=1;const s=t;let o=je(i),r="";for(;o.length>0;){const l=Fl.exec(o);if(!l){r+=o;break}r+=o.substring(0,l.index),o=o.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?r+="\\"+String(Number(l[1])+s):(r+=l[0],l[0]==="("&&t++)}return r}).map(i=>`(${i})`).join(e)}const Hl=/\b\B/,fs="[a-zA-Z]\\w*",Ai="[a-zA-Z_]\\w*",ps="\\b\\d+(\\.\\d+)?",ms="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",gs="\\b(0b[01]+)",Wl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Gl=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=he(e,/.*\b/,n.binary,/\b.*/)),ee({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,i)=>{t.index!==0&&i.ignoreMatch()}},n)},De={begin:"\\\\[\\s\\S]",relevance:0},ql={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[De]},Vl={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[De]},Kl={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/},St=function(n,e,t={}){const i=ee({scope:"comment",begin:n,end:e,contains:[]},t);i.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 s=_i("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 i.contains.push({begin:he(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},Zl=St("//","$"),Jl=St("/\\*","\\*/"),Xl=St("#","$"),Ql={scope:"number",begin:ps,relevance:0},Yl={scope:"number",begin:ms,relevance:0},ea={scope:"number",begin:gs,relevance:0},ta={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[De,{begin:/\[/,end:/\]/,relevance:0,contains:[De]}]},ia={scope:"title",begin:fs,relevance:0},na={scope:"title",begin:Ai,relevance:0},sa={begin:"\\.\\s*"+Ai,relevance:0},ra=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var nt=Object.freeze({__proto__:null,APOS_STRING_MODE:ql,BACKSLASH_ESCAPE:De,BINARY_NUMBER_MODE:ea,BINARY_NUMBER_RE:gs,COMMENT:St,C_BLOCK_COMMENT_MODE:Jl,C_LINE_COMMENT_MODE:Zl,C_NUMBER_MODE:Yl,C_NUMBER_RE:ms,END_SAME_AS_BEGIN:ra,HASH_COMMENT_MODE:Xl,IDENT_RE:fs,MATCH_NOTHING_RE:Hl,METHOD_GUARD:sa,NUMBER_MODE:Ql,NUMBER_RE:ps,PHRASAL_WORDS_MODE:Kl,QUOTE_STRING_MODE:Vl,REGEXP_MODE:ta,RE_STARTERS_RE:Wl,SHEBANG:Gl,TITLE_MODE:ia,UNDERSCORE_IDENT_RE:Ai,UNDERSCORE_TITLE_MODE:na});function oa(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function la(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function aa(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=oa,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function ca(n,e){Array.isArray(n.illegal)&&(n.illegal=_i(...n.illegal))}function da(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function ua(n,e){n.relevance===void 0&&(n.relevance=1)}const ha=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(i=>{delete n[i]}),n.keywords=t.keywords,n.begin=he(t.beforeMatch,us(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},fa=["of","and","for","in","not","or","if","then","parent","list","value"],pa="keyword";function bs(n,e,t=pa){const i=Object.create(null);return typeof n=="string"?s(t,n.split(" ")):Array.isArray(n)?s(t,n):Object.keys(n).forEach(function(o){Object.assign(i,bs(n[o],e,o))}),i;function s(o,r){e&&(r=r.map(l=>l.toLowerCase())),r.forEach(function(l){const a=l.split("|");i[a[0]]=[o,ma(a[0],a[1])]})}}function ma(n,e){return e?Number(e):ga(n)?0:1}function ga(n){return fa.includes(n.toLowerCase())}const hn={},ae=n=>{console.error(n)},fn=(n,...e)=>{console.log(`WARN: ${n}`,...e)},pe=(n,e)=>{hn[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),hn[`${n}/${e}`]=!0)},mt=new Error;function ys(n,e,{key:t}){let i=0;const s=n[t],o={},r={};for(let l=1;l<=e.length;l++)r[l+i]=s[l],o[l+i]=!0,i+=hs(e[l-1]);n[t]=r,n[t]._emit=o,n[t]._multi=!0}function ba(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw ae("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),mt;if(typeof n.beginScope!="object"||n.beginScope===null)throw ae("beginScope must be object"),mt;ys(n,n.begin,{key:"beginScope"}),n.begin=Si(n.begin,{joinWith:""})}}function ya(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw ae("skip, excludeEnd, returnEnd not compatible with endScope: {}"),mt;if(typeof n.endScope!="object"||n.endScope===null)throw ae("endScope must be object"),mt;ys(n,n.end,{key:"endScope"}),n.end=Si(n.end,{joinWith:""})}}function wa(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function va(n){wa(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),ba(n),ya(n)}function xa(n){function e(r,l){return new RegExp(je(r),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(l?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,l]),this.matchAt+=hs(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(a=>a[1]);this.matcherRe=e(Si(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const a=this.matcherRe.exec(l);if(!a)return null;const c=a.findIndex((f,p)=>p>0&&f!==void 0),d=this.matchIndexes[c];return a.splice(0,c),Object.assign(a,d)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const a=new t;return this.rules.slice(l).forEach(([c,d])=>a.addRule(c,d)),a.compile(),this.multiRegexes[l]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,a){this.rules.push([l,a]),a.type==="begin"&&this.count++}exec(l){const a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let c=a.exec(l);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const d=this.getMatcher(0);d.lastIndex=this.lastIndex+1,c=d.exec(l)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function s(r){const l=new i;return r.contains.forEach(a=>l.addRule(a.begin,{rule:a,type:"begin"})),r.terminatorEnd&&l.addRule(r.terminatorEnd,{type:"end"}),r.illegal&&l.addRule(r.illegal,{type:"illegal"}),l}function o(r,l){const a=r;if(r.isCompiled)return a;[la,da,va,ha].forEach(d=>d(r,l)),n.compilerExtensions.forEach(d=>d(r,l)),r.__beforeBegin=null,[aa,ca,ua].forEach(d=>d(r,l)),r.isCompiled=!0;let c=null;return typeof r.keywords=="object"&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),c=r.keywords.$pattern,delete r.keywords.$pattern),c=c||/\w+/,r.keywords&&(r.keywords=bs(r.keywords,n.case_insensitive)),a.keywordPatternRe=e(c,!0),l&&(r.begin||(r.begin=/\B|\b/),a.beginRe=e(a.begin),!r.end&&!r.endsWithParent&&(r.end=/\B|\b/),r.end&&(a.endRe=e(a.end)),a.terminatorEnd=je(a.end)||"",r.endsWithParent&&l.terminatorEnd&&(a.terminatorEnd+=(r.end?"|":"")+l.terminatorEnd)),r.illegal&&(a.illegalRe=e(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map(function(d){return Ea(d==="self"?r:d)})),r.contains.forEach(function(d){o(d,a)}),r.starts&&o(r.starts,l),a.matcher=s(a),a}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=ee(n.classNameAliases||{}),o(n)}function ws(n){return n?n.endsWithParent||ws(n.starts):!1}function Ea(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return ee(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:ws(n)?ee(n,{starts:n.starts?ee(n.starts):null}):Object.isFrozen(n)?ee(n):n}var _a="11.9.0";class Sa extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Ht=ds,pn=ee,mn=Symbol("nomatch"),Aa=7,vs=function(n){const e=Object.create(null),t=Object.create(null),i=[];let s=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",r={disableAutodetect:!0,name:"Plain text",contains:[]};let l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:jl};function a(u){return l.noHighlightRe.test(u)}function c(u){let m=u.className+" ";m+=u.parentNode?u.parentNode.className:"";const w=l.languageDetectRe.exec(m);if(w){const E=j(w[1]);return E||(fn(o.replace("{}",w[1])),fn("Falling back to no-highlight mode for this block.",u)),E?w[1]:"no-highlight"}return m.split(/\s+/).find(E=>a(E)||j(E))}function d(u,m,w){let E="",I="";typeof m=="object"?(E=u,w=m.ignoreIllegals,I=m.language):(pe("10.7.0","highlight(lang, code, ...args) has been deprecated."),pe("10.7.0",`Please use highlight(code, options) instead.
352
- https://github.com/highlightjs/highlight.js/issues/2277`),I=u,E=m),w===void 0&&(w=!0);const D={code:E,language:I};ne("before:highlight",D);const Q=D.result?D.result:f(D.language,D.code,w);return Q.code=D.code,ne("after:highlight",Q),Q}function f(u,m,w,E){const I=Object.create(null);function D(h,g){return h.keywords[g]}function Q(){if(!y.keywords){L.addText(A);return}let h=0;y.keywordPatternRe.lastIndex=0;let g=y.keywordPatternRe.exec(A),v="";for(;g;){v+=A.substring(h,g.index);const S=W.case_insensitive?g[0].toLowerCase():g[0],N=D(y,S);if(N){const[Z,Ms]=N;if(L.addText(v),v="",I[S]=(I[S]||0)+1,I[S]<=Aa&&(Ge+=Ms),Z.startsWith("_"))v+=g[0];else{const Ts=W.classNameAliases[Z]||Z;H(g[0],Ts)}}else v+=g[0];h=y.keywordPatternRe.lastIndex,g=y.keywordPatternRe.exec(A)}v+=A.substring(h),L.addText(v)}function He(){if(A==="")return;let h=null;if(typeof y.subLanguage=="string"){if(!e[y.subLanguage]){L.addText(A);return}h=f(y.subLanguage,A,!0,Oi[y.subLanguage]),Oi[y.subLanguage]=h._top}else h=x(A,y.subLanguage.length?y.subLanguage:null);y.relevance>0&&(Ge+=h.relevance),L.__addSublanguage(h._emitter,h.language)}function z(){y.subLanguage!=null?He():Q(),A=""}function H(h,g){h!==""&&(L.startScope(g),L.addText(h),L.endScope())}function $i(h,g){let v=1;const S=g.length-1;for(;v<=S;){if(!h._emit[v]){v++;continue}const N=W.classNameAliases[h[v]]||h[v],Z=g[v];N?H(Z,N):(A=Z,Q(),A=""),v++}}function Ci(h,g){return h.scope&&typeof h.scope=="string"&&L.openNode(W.classNameAliases[h.scope]||h.scope),h.beginScope&&(h.beginScope._wrap?(H(A,W.classNameAliases[h.beginScope._wrap]||h.beginScope._wrap),A=""):h.beginScope._multi&&($i(h.beginScope,g),A="")),y=Object.create(h,{parent:{value:y}}),y}function ki(h,g,v){let S=Bl(h.endRe,v);if(S){if(h["on:end"]){const N=new cn(h);h["on:end"](g,N),N.isMatchIgnored&&(S=!1)}if(S){for(;h.endsParent&&h.parent;)h=h.parent;return h}}if(h.endsWithParent)return ki(h.parent,g,v)}function Is(h){return y.matcher.regexIndex===0?(A+=h[0],1):(Lt=!0,0)}function Os(h){const g=h[0],v=h.rule,S=new cn(v),N=[v.__beforeBegin,v["on:begin"]];for(const Z of N)if(Z&&(Z(h,S),S.isMatchIgnored))return Is(g);return v.skip?A+=g:(v.excludeBegin&&(A+=g),z(),!v.returnBegin&&!v.excludeBegin&&(A=g)),Ci(v,h),v.returnBegin?0:g.length}function Rs(h){const g=h[0],v=m.substring(h.index),S=ki(y,h,v);if(!S)return mn;const N=y;y.endScope&&y.endScope._wrap?(z(),H(g,y.endScope._wrap)):y.endScope&&y.endScope._multi?(z(),$i(y.endScope,h)):N.skip?A+=g:(N.returnEnd||N.excludeEnd||(A+=g),z(),N.excludeEnd&&(A=g));do y.scope&&L.closeNode(),!y.skip&&!y.subLanguage&&(Ge+=y.relevance),y=y.parent;while(y!==S.parent);return S.starts&&Ci(S.starts,h),N.returnEnd?0:g.length}function Ls(){const h=[];for(let g=y;g!==W;g=g.parent)g.scope&&h.unshift(g.scope);h.forEach(g=>L.openNode(g))}let We={};function Ii(h,g){const v=g&&g[0];if(A+=h,v==null)return z(),0;if(We.type==="begin"&&g.type==="end"&&We.index===g.index&&v===""){if(A+=m.slice(g.index,g.index+1),!s){const S=new Error(`0 width match regex (${u})`);throw S.languageName=u,S.badRule=We.rule,S}return 1}if(We=g,g.type==="begin")return Os(g);if(g.type==="illegal"&&!w){const S=new Error('Illegal lexeme "'+v+'" for mode "'+(y.scope||"<unnamed>")+'"');throw S.mode=y,S}else if(g.type==="end"){const S=Rs(g);if(S!==mn)return S}if(g.type==="illegal"&&v==="")return 1;if(Rt>1e5&&Rt>g.index*3)throw new Error("potential infinite loop, way more iterations than matches");return A+=v,v.length}const W=j(u);if(!W)throw ae(o.replace("{}",u)),new Error('Unknown language: "'+u+'"');const Ns=xa(W);let Ot="",y=E||Ns;const Oi={},L=new l.__emitter(l);Ls();let A="",Ge=0,se=0,Rt=0,Lt=!1;try{if(W.__emitTokens)W.__emitTokens(m,L);else{for(y.matcher.considerAll();;){Rt++,Lt?Lt=!1:y.matcher.considerAll(),y.matcher.lastIndex=se;const h=y.matcher.exec(m);if(!h)break;const g=m.substring(se,h.index),v=Ii(g,h);se=h.index+v}Ii(m.substring(se))}return L.finalize(),Ot=L.toHTML(),{language:u,value:Ot,relevance:Ge,illegal:!1,_emitter:L,_top:y}}catch(h){if(h.message&&h.message.includes("Illegal"))return{language:u,value:Ht(m),illegal:!0,relevance:0,_illegalBy:{message:h.message,index:se,context:m.slice(se-100,se+100),mode:h.mode,resultSoFar:Ot},_emitter:L};if(s)return{language:u,value:Ht(m),illegal:!1,relevance:0,errorRaised:h,_emitter:L,_top:y};throw h}}function p(u){const m={value:Ht(u),illegal:!1,relevance:0,_top:r,_emitter:new l.__emitter(l)};return m._emitter.addText(u),m}function x(u,m){m=m||l.languages||Object.keys(e);const w=p(u),E=m.filter(j).filter(Fe).map(z=>f(z,u,!1));E.unshift(w);const I=E.sort((z,H)=>{if(z.relevance!==H.relevance)return H.relevance-z.relevance;if(z.language&&H.language){if(j(z.language).supersetOf===H.language)return 1;if(j(H.language).supersetOf===z.language)return-1}return 0}),[D,Q]=I,He=D;return He.secondBest=Q,He}function k(u,m,w){const E=m&&t[m]||w;u.classList.add("hljs"),u.classList.add(`language-${E}`)}function R(u){let m=null;const w=c(u);if(a(w))return;if(ne("before:highlightElement",{el:u,language:w}),u.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",u);return}if(u.children.length>0&&(l.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(u)),l.throwUnescapedHTML))throw new Sa("One of your code blocks includes unescaped HTML.",u.innerHTML);m=u;const E=m.textContent,I=w?d(E,{language:w,ignoreIllegals:!0}):x(E);u.innerHTML=I.value,u.dataset.highlighted="yes",k(u,w,I.language),u.result={language:I.language,re:I.relevance,relevance:I.relevance},I.secondBest&&(u.secondBest={language:I.secondBest.language,relevance:I.secondBest.relevance}),ne("after:highlightElement",{el:u,result:I,text:E})}function b(u){l=pn(l,u)}const q=()=>{U(),pe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function V(){U(),pe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let te=!1;function U(){if(document.readyState==="loading"){te=!0;return}document.querySelectorAll(l.cssSelector).forEach(R)}function K(){te&&U()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",K,!1);function Ee(u,m){let w=null;try{w=m(n)}catch(E){if(ae("Language definition for '{}' could not be registered.".replace("{}",u)),s)ae(E);else throw E;w=r}w.name||(w.name=u),e[u]=w,w.rawDefinition=m.bind(null,n),w.aliases&&ie(w.aliases,{languageName:u})}function fe(u){delete e[u];for(const m of Object.keys(t))t[m]===u&&delete t[m]}function F(){return Object.keys(e)}function j(u){return u=(u||"").toLowerCase(),e[u]||e[t[u]]}function ie(u,{languageName:m}){typeof u=="string"&&(u=[u]),u.forEach(w=>{t[w.toLowerCase()]=m})}function Fe(u){const m=j(u);return m&&!m.disableAutodetect}function $t(u){u["before:highlightBlock"]&&!u["before:highlightElement"]&&(u["before:highlightElement"]=m=>{u["before:highlightBlock"](Object.assign({block:m.el},m))}),u["after:highlightBlock"]&&!u["after:highlightElement"]&&(u["after:highlightElement"]=m=>{u["after:highlightBlock"](Object.assign({block:m.el},m))})}function Ct(u){$t(u),i.push(u)}function kt(u){const m=i.indexOf(u);m!==-1&&i.splice(m,1)}function ne(u,m){const w=u;i.forEach(function(E){E[w]&&E[w](m)})}function It(u){return pe("10.7.0","highlightBlock will be removed entirely in v12.0"),pe("10.7.0","Please use highlightElement now."),R(u)}Object.assign(n,{highlight:d,highlightAuto:x,highlightAll:U,highlightElement:R,highlightBlock:It,configure:b,initHighlighting:q,initHighlightingOnLoad:V,registerLanguage:Ee,unregisterLanguage:fe,listLanguages:F,getLanguage:j,registerAliases:ie,autoDetection:Fe,inherit:pn,addPlugin:Ct,removePlugin:kt}),n.debugMode=function(){s=!1},n.safeMode=function(){s=!0},n.versionString=_a,n.regex={concat:he,lookahead:us,either:_i,optional:zl,anyNumberOfTimes:Dl};for(const u in nt)typeof nt[u]=="object"&&cs(nt[u]);return Object.assign(n,nt),n},xe=vs({});xe.newInstance=()=>vs({});var $a=xe;xe.HighlightJS=xe;xe.default=xe;const At=Nl($a),gt="[A-Za-z$_][0-9A-Za-z$_]*",xs=["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"],Es=["true","false","null","undefined","NaN","Infinity"],_s=["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"],Ss=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],As=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],$s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Cs=[].concat(As,_s,Ss);function Ca(n){const e=n.regex,t=(u,{after:m})=>{const w="</"+u[0].slice(1);return u.input.indexOf(w,m)!==-1},i=gt,s={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,r={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(u,m)=>{const w=u[0].length+u.index,E=u.input[w];if(E==="<"||E===","){m.ignoreMatch();return}E===">"&&(t(u,{after:w})||m.ignoreMatch());let I;const D=u.input.substring(w);if(I=D.match(/^\s*=/)){m.ignoreMatch();return}if((I=D.match(/^\s+extends\s+/))&&I.index===0){m.ignoreMatch();return}}},l={$pattern:gt,keyword:xs,literal:Es,built_in:Cs,"variable.language":$s},a="[0-9](_?[0-9])*",c=`\\.(${a})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${d})((${c})|\\.)?|(${c}))[eE][+-]?(${a})\\b`},{begin:`\\b(${d})\\b((${c})\\b|\\.)?|(${c})\\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},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},x={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},k={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,p],subLanguage:"css"}},R={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,p]},q={className:"comment",variants:[n.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:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},V=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,x,k,R,b,{match:/\$\d+/},f];p.contains=V.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(V)});const te=[].concat(q,p.contains),U=te.concat([{begin:/\(/,end:/\)/,keywords:l,contains:["self"].concat(te)}]),K={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:U},Ee={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,e.concat(i,"(",e.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},fe={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:{_:[..._s,...Ss]}},F={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},j={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[K],illegal:/%/},ie={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Fe(u){return e.concat("(?!",u.join("|"),")")}const $t={match:e.concat(/\b/,Fe([...As,"super","import"]),i,e.lookahead(/\(/)),className:"title.function",relevance:0},Ct={begin:e.concat(/\./,e.lookahead(e.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},kt={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},K]},ne="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",It={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(ne)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[K]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:U,CLASS_REFERENCE:fe},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),F,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,x,k,R,b,q,{match:/\$\d+/},f,fe,{className:"attr",begin:i+e.lookahead(":"),relevance:0},It,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,n.REGEXP_MODE,{className:"function",begin:ne,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:U}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:o},{begin:r.begin,"on:begin":r.isTrulyOpeningTag,end:r.end}],subLanguage:"xml",contains:[{begin:r.begin,end:r.end,skip:!0,contains:["self"]}]}]},j,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[K,n.inherit(n.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ct,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[K]},$t,ie,Ee,kt,{match:/\$[(.]/}]}}function ka(n){const e=Ca(n),t=gt,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[e.exports.CLASS_REFERENCE]},r={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],a={$pattern:gt,keyword:xs.concat(l),literal:Es,built_in:Cs.concat(i),"variable.language":$s},c={className:"meta",begin:"@"+t},d=(p,x,k)=>{const R=p.contains.findIndex(b=>b.label===x);if(R===-1)throw new Error("can not find mode to replace");p.contains.splice(R,1,k)};Object.assign(e.keywords,a),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,s,o]),d(e,"shebang",n.SHEBANG()),d(e,"use_strict",r);const f=e.contains.find(p=>p.label==="func.def");return f.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function Ia(n){const e=n.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},r=n.inherit(o,{begin:/\(/,end:/\)/}),l=n.inherit(n.APOS_STRING_MODE,{className:"string"}),a=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{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:[o,a,l,r,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,r,a,l]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],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:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Oa=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.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:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.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_-]*/}}),Ra=["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","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],La=["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"],Na=["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"],Ma=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Ta=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","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-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-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","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","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","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","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","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","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-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-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","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","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Pa(n){const e=n.regex,t=Oa(n),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",o=/@-?\w[\w]*(-\w+)*/,r="[a-zA-Z-][a-zA-Z0-9_-]*",l=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,i,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+r,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Na.join("|")+")"},{begin:":(:)?("+Ma.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ta.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...l,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...l,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:La.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...l,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Ra.join("|")+")\\b"}]}}const ks=document.createElement("style");ks.innerText=[Rl,Ll].join(`
353
- `);document.head.appendChild(ks);At.registerLanguage("typescript",ka);At.registerLanguage("html",Ia);At.registerLanguage("css",Pa);function ja(...n){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const i=document.createElement("div");return n.forEach(s=>{e.appendChild(s),s.addEventListener("click",()=>{n.forEach(o=>o.removeAttribute("selected")),s.setAttribute("selected",""),i.innerHTML="",i.appendChild(s.content),i.className=s.className,i.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(i),i.classList.add("tab-content"),n[0].setAttribute("selected",""),i.appendChild(n[0].content),t}function $e(n,e){const t=document.createElement("div");return t.role="tab",t.tabIndex=0,t.innerText=n,t.content=e,e.tagName=="PRE"&&t.classList.add("code"),t}function Ie(n,e){const t=document.createElement(n);return typeof e=="string"?t.innerHTML=e:e.forEach(i=>{t.appendChild(i)}),t}async function Da(n,e,t){var i,s,o;const r=e.mainContent,l=Ie("div",r);l.id=`example-preview-${t}`;const a=typeof e.css=="string"||(i=e.css)==null?void 0:i.label,c=typeof e.css=="string"?e.css:(s=e.css)==null?void 0:s.content,d=ja($e("Preview",l),$e("HTML",st("html",r)),...c?[$e(a??"CSS",st("css",c))]:[],...e.initializer&&e.initializer.content?[$e(e.initializer.label??"TS",st("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(p=>$e(p.label,st(p.language,p.content))));e.description&&n.appendChild(Ie("div",e.description));const f=Ie("div",[d]);f.classList.add("example"),n.appendChild(f),c&&za(`#${l.id}`,c),(o=e.initializer)!=null&&o.initialize&&await e.initializer.initialize(l)}function st(n,e){let t=e.split(/\r?\n/).map(i=>{const s=i.indexOf("///");if(s>-1){const o=i.substring(s+3).trimStart();return o?i.replace(/^(\s*)([^\s].*)$/,`$1${o}`):void 0}return i}).filter(i=>typeof i<"u").join(`
354
- `).trim();return n&&n!="raw"&&(t=At.highlight(t,{language:n}).value),Ie("pre",[Ie("code",t)])}function za(n,e){const t=document.createElement("style");t.innerHTML=C().use(Ol({prefix:n})).process(e).css,document.head.appendChild(t)}async function Ua(n,e=document.body){const t=Fa(e);let i=0;Object.keys(n).forEach(async s=>{const o=document.createElement("div");o.className="example-container",t.appendChild(o);const r=n[s].default;Da(o,r,i++)})}function Ba(n){const e=document.createElement("div");e.id="examples-container";const t=n.querySelector("#examples");return t?t.after(e):n.appendChild(e),e}function Fa(n){return n.children?Ba(n):n}const Ha=`<h1 id="@cas-smartdesign/list">@cas-smartdesign/list</h1>
350
+ `)&&(l=`\r
351
+ `),this.css+=l+"/*# sourceMappingURL="+a+" */"}applyPrevMaps(){for(let a of this.previous()){let l=this.toUrl(this.path(a.file)),f=a.root||r(a.file),m;this.mapOpts.sourcesContent===!1?(m=new t(a.text),m.sourcesContent&&(m.sourcesContent=null)):m=a.consumer(),this.map.applySourceMap(m,l,this.toUrl(this.path(f)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let a;for(let l=this.root.nodes.length-1;l>=0;l--)a=this.root.nodes[l],a.type==="comment"&&a.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 a="";return this.stringify(this.root,l=>{a+=l}),[a]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let a=this.previous()[0].consumer();a.file=this.outputFile(),this.map=c.fromSourceMap(a,{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 a=1,l=1,f="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,E;this.stringify(this.root,(_,v,w)=>{if(this.css+=_,v&&w!=="end"&&(m.generated.line=a,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),E?(a+=E.length,g=_.lastIndexOf(`
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`),r.LANG&&r.LANG.startsWith("cn")&&console.warn(y+`: 里面 postcss.plugin 被弃用. 迁移指南:
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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}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=A,G=N),F===void 0&&(F=!0);const fe={code:G,language:te};rt("before:highlight",fe);const xe=fe.result?fe.result:qe(fe.language,fe.code,F);return xe.code=fe.code,rt("after:highlight",xe),xe}function qe(A,N,F,G){const te=Object.create(null);function fe(k,L){return k.keywords[L]}function xe(){if(!D.keywords){ne.addText(V);return}let k=0;D.keywordPatternRe.lastIndex=0;let L=D.keywordPatternRe.exec(V),U="";for(;L;){U+=V.substring(k,L.index);const H=me.case_insensitive?L[0].toLowerCase():L[0],re=fe(D,H);if(re){const[ge,Mr]=re;if(ne.addText(U),U="",te[H]=(te[H]||0)+1,te[H]<=gr&&(at+=Mr),ge.startsWith("_"))U+=L[0];else{const Nr=me.classNameAliases[ge]||ge;pe(L[0],Nr)}}else U+=L[0];k=D.keywordPatternRe.lastIndex,L=D.keywordPatternRe.exec(V)}U+=V.substring(k),ne.addText(U)}function st(){if(V==="")return;let k=null;if(typeof D.subLanguage=="string"){if(!x[D.subLanguage]){ne.addText(V);return}k=qe(D.subLanguage,V,!0,Fi[D.subLanguage]),Fi[D.subLanguage]=k._top}else k=Lt(V,D.subLanguage.length?D.subLanguage:null);D.relevance>0&&(at+=k.relevance),ne.__addSublanguage(k._emitter,k.language)}function ue(){D.subLanguage!=null?st():xe(),V=""}function pe(k,L){k!==""&&(ne.startScope(L),ne.addText(k),ne.endScope())}function Di(k,L){let U=1;const H=L.length-1;for(;U<=H;){if(!k._emit[U]){U++;continue}const re=me.classNameAliases[k[U]]||k[U],ge=L[U];re?pe(ge,re):(V=ge,xe(),V=""),U++}}function zi(k,L){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&&(Di(k.beginScope,L),V="")),D=Object.create(k,{parent:{value:D}}),D}function Bi(k,L,U){let H=v(k.endRe,U);if(H){if(k["on:end"]){const re=new e(k);k["on:end"](L,re),re.isMatchIgnored&&(H=!1)}if(H){for(;k.endsParent&&k.parent;)k=k.parent;return k}}if(k.endsWithParent)return Bi(k.parent,L,U)}function Ir(k){return D.matcher.regexIndex===0?(V+=k[0],1):(Tt=!0,0)}function Or(k){const L=k[0],U=k.rule,H=new e(U),re=[U.__beforeBegin,U["on:begin"]];for(const ge of re)if(ge&&(ge(k,H),H.isMatchIgnored))return Ir(L);return U.skip?V+=L:(U.excludeBegin&&(V+=L),ue(),!U.returnBegin&&!U.excludeBegin&&(V=L)),zi(U,k),U.returnBegin?0:L.length}function $r(k){const L=k[0],U=N.substring(k.index),H=Bi(D,k,U);if(!H)return Mi;const re=D;D.endScope&&D.endScope._wrap?(ue(),pe(L,D.endScope._wrap)):D.endScope&&D.endScope._multi?(ue(),Di(D.endScope,k)):re.skip?V+=L:(re.returnEnd||re.excludeEnd||(V+=L),ue(),re.excludeEnd&&(V=L));do D.scope&&ne.closeNode(),!D.skip&&!D.subLanguage&&(at+=D.relevance),D=D.parent;while(D!==H.parent);return H.starts&&zi(H.starts,k),re.returnEnd?0:L.length}function Rr(){const k=[];for(let L=D;L!==me;L=L.parent)L.scope&&k.unshift(L.scope);k.forEach(L=>ne.openNode(L))}let ot={};function Ui(k,L){const U=L&&L[0];if(V+=k,U==null)return ue(),0;if(ot.type==="begin"&&L.type==="end"&&ot.index===L.index&&U===""){if(V+=N.slice(L.index,L.index+1),!X){const H=new Error(`0 width match regex (${A})`);throw H.languageName=A,H.badRule=ot.rule,H}return 1}if(ot=L,L.type==="begin")return Or(L);if(L.type==="illegal"&&!F){const H=new Error('Illegal lexeme "'+U+'" for mode "'+(D.scope||"<unnamed>")+'"');throw H.mode=D,H}else if(L.type==="end"){const H=$r(L);if(H!==Mi)return H}if(L.type==="illegal"&&U==="")return V+=`
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(er);kt.registerLanguage("typescript",fo);kt.registerLanguage("html",po);kt.registerLanguage("css",_o);function So(...r){const e=document.createElement("div"),i=document.createElement("div");i.classList.add("tab-control");const n=document.createElement("div");return r.forEach(t=>{e.appendChild(t),t.addEventListener("click",()=>{r.forEach(c=>c.removeAttribute("selected")),t.setAttribute("selected",""),n.innerHTML="",n.appendChild(t.content),n.className=t.className,n.classList.add("tab-content")})}),i.appendChild(e),i.appendChild(n),n.classList.add("tab-content"),r[0].setAttribute("selected",""),n.appendChild(r[0].content),i}function We(r,e){const i=document.createElement("div");return i.role="tab",i.tabIndex=0,i.innerText=r,i.content=e,e.tagName=="PRE"&&i.classList.add("code"),i}function Ke(r,e){const i=document.createElement(r);return typeof e=="string"?i.innerHTML=e:e.forEach(n=>{i.appendChild(n)}),i}async function Ao(r,e,i){const n=e.mainContent,t=Ke("div",n);t.id=`example-preview-${i}`;const c=typeof e.css=="string"?void 0:e.css?.label,o=typeof e.css=="string"?e.css:e.css?.content,p=So(We("Preview",t),We("HTML",dt("html",n)),...o?[We(c??"CSS",dt("css",o))]:[],...e.initializer&&e.initializer.content?[We(e.initializer.label??"TS",dt("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(h=>We(h.label,dt(h.language,h.content))));e.description&&r.appendChild(Ke("div",e.description));const b=Ke("div",[p]);b.classList.add("example"),r.appendChild(b),o&&ko(`#${t.id}`,o),e.initializer?.initialize&&await e.initializer.initialize(t)}function dt(r,e){let i=e.split(/\r?\n/).map(n=>{const t=n.indexOf("///");if(t>-1){const c=n.substring(t+3).trimStart();return c?n.replace(/^(\s*)([^\s].*)$/,`$1${c}`):void 0}return n}).filter(n=>typeof n<"u").join(`
358
+ `).trim();return r&&r!="raw"&&(i=kt.highlight(i,{language:r}).value),Ke("pre",[Ke("code",i)])}function ko(r,e){const i=document.createElement("style");i.innerHTML=Z().use(so({prefix:r})).process(e).css,document.head.appendChild(i)}async function Co(r,e=document.body){const i=Oo(e);let n=0;Object.keys(r).sort().forEach(async t=>{const c=document.createElement("div");c.className="example-container",i.appendChild(c);const o=r[t].default;Ao(c,o,n++)})}function Io(r){const e=document.createElement("div");e.id="examples-container";const i=r.querySelector("#examples");return i?i.after(e):r.appendChild(e),e}function Oo(r){return r.children?Io(r):r}const $o=`<h1 id="@cas-smartdesign/list">@cas-smartdesign/list</h1>
355
359
  <p>An element that renders a given array of items in a list.</p>
356
360
  <h2 id="attributes">Attributes</h2>
357
361
  <ul>
@@ -437,10 +441,4 @@ Although normally the page would change by such a selection, so it may not be ne
437
441
  </ul>
438
442
  </li>
439
443
  </ul>
440
- `,Wa=document.querySelector("#markdown-container");Wa.innerHTML=Ha;Ua(Object.assign({"./examples/declarative-list-item/index.ts":Hs,"./examples/declarative-option/index.ts":Ks,"./examples/multi-select/index.ts":er,"./examples/single-select/index.ts":rr,"./examples/trigger-only/index.ts":dr}),document.querySelector(".markdown-body"));export{Kt as L};
441
- function __vite__mapDeps(indexes) {
442
- if (!__vite__mapDeps.viteFileDeps) {
443
- __vite__mapDeps.viteFileDeps = ["./multi-select.js","./sample-data.mjs","./single-select.js","./trigger-only.js"]
444
- }
445
- return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
446
- }
444
+ `,Ro=document.querySelector("#markdown-container");Ro.innerHTML=$o;Co(Object.assign({"./examples/declarative-list-item/index.ts":Fr,"./examples/declarative-option/index.ts":Vr,"./examples/multi-select/index.ts":Yr,"./examples/single-select/index.ts":rs,"./examples/trigger-only/index.ts":cs}),document.querySelector(".markdown-body"));export{fi as L};