@cas-smartdesign/virtual-list 7.2.1 → 8.0.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,73 +1,16 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./1_selection_types.js","./item-provider.mjs","./2_lazy_load_with_search.js","./3_duplicate_items.js"])))=>i.map(i=>d[i]);
2
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}})();const qs="modulepreload",Hs=function(s,e){return new URL(s,e).href},Zi={},mi=function(e,t,n){let i=Promise.resolve();if(t&&t.length>0){let h=function(r){return Promise.all(r.map(u=>Promise.resolve(u).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};const a=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),b=p?.nonce||p?.getAttribute("nonce");i=h(t.map(r=>{if(r=Hs(r,n),r in Zi)return;Zi[r]=!0;const u=r.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(n)for(let f=a.length-1;f>=0;f--){const m=a[f];if(m.href===r&&(!u||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${c}`))return;const l=document.createElement("link");if(l.rel=u?"stylesheet":qs,u||(l.as="script"),l.crossOrigin="",l.href=r,b&&l.setAttribute("nonce",b),document.head.appendChild(l),u)return new Promise((f,m)=>{l.addEventListener("load",f),l.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${r}`)))})}))}function o(a){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=a,window.dispatchEvent(p),!p.defaultPrevented)throw a}return i.then(a=>{for(const p of a||[])p.status==="rejected"&&o(p.reason);return e().catch(o)})},Fs=`<div id="selection-example">
3
- <div id="notification"></div>
4
- <div>
5
- <b>Trigger only</b>
6
- <sd-virtual-list selection-type="trigger-only" item-height="50" tabindex="0"></sd-virtual-list>
7
- </div>
8
- <div>
9
- <b>Single select</b>
10
- <sd-virtual-list selection-type="single" item-height="50" tabindex="0"></sd-virtual-list>
11
- </div>
12
- <div>
13
- <b>Multi select</b>
14
- <sd-virtual-list selection-type="multi" item-height="50" tabindex="0"></sd-virtual-list>
15
- </div>
16
- </div>
17
- `,Ws=`<h3 id="selection-types">Selection types</h3>
18
- `,Vs=`#selection-example {
19
- display: grid;
20
- grid-template-columns: repeat(3, 1fr);
21
- column-gap: 16px;
22
- }
23
-
24
- sd-virtual-list {
25
- height: 400px;
26
- overflow-y: auto;
27
- }
28
-
29
- #notification {
30
- visibility: collapse;
31
- min-height: 30px;
32
- line-height: 30px;
33
- margin-bottom: 4px;
34
- background: #f0f0f0;
35
- color: #333;
36
- text-align: center;
37
- }
38
-
39
- #notification + div {
40
- grid-column-start: 1;
41
- }
42
- `,Gs=`import "@cas-smartdesign/virtual-list";
43
- import VirtualList from "@cas-smartdesign/virtual-list";
44
- import { ItemDataProvider } from "item-provider";
45
-
46
- const container = document.querySelector("#selection-example");
47
- const notification = container.querySelector("#notification") as HTMLElement;
48
- const lists: VirtualList[] = Array.from(container.querySelectorAll("sd-virtual-list"));
2
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=`import type { ItemData } from "@cas-smartdesign/list-item";
49
3
 
50
- lists.forEach((list: VirtualList) => {
51
- new ItemDataProvider().connectList(list);
52
- list.addEventListener("selection", (event: CustomEvent) => {
53
- const listIndex = lists.indexOf(event.currentTarget as VirtualList);
54
- notification.style.visibility = "visible";
55
- notification.style.gridColumnStart = \`\${listIndex + 1}\`;
56
- notification.innerText = \`Item at index \${event.detail.index} has been \${
57
- event.detail.selected ? "selected" : "deselected"
58
- }\`;
59
- });
60
- });
61
- `,gi=`import { ItemData } from "@cas-smartdesign/list-item";
62
- import { ExampleItem, generateSampleData } from "./sample-data";
63
4
  import { ListDataProvider } from "@cas-smartdesign/virtual-list";
64
5
 
6
+ import { type ExampleItem, generateSampleData } from "./sample-data";
7
+
65
8
  const arrowIcon = "./right-arrow.svg";
66
9
  const lockIcon = "./lock.svg";
67
10
  const icon = "./icon.svg";
68
11
 
69
12
  export class ItemDataProvider extends ListDataProvider {
70
- constructor(exampleItems: ExampleItem[] = generateSampleData(40)) {
13
+ constructor(exampleItems: ExampleItem[] | null = generateSampleData(40)) {
71
14
  super(30);
72
15
  if (exampleItems) {
73
16
  this.items = this.createListItems(...exampleItems);
@@ -76,11 +19,9 @@ export class ItemDataProvider extends ListDataProvider {
76
19
  }
77
20
 
78
21
  protected createListItems(...exampleItems: ExampleItem[]) {
79
- const items: ItemData[] = [];
80
- for (let i = 0; i < exampleItems.length; i++) {
81
- const exampleItem = exampleItems[i];
22
+ const items: ItemData[] = exampleItems.map((exampleItem) => {
82
23
  const disabled = exampleItem.disabled;
83
- items.push({
24
+ return {
84
25
  caption: exampleItem.caption,
85
26
  description: exampleItem.description,
86
27
  rightContentGenerator: () => {
@@ -95,8 +36,9 @@ export class ItemDataProvider extends ListDataProvider {
95
36
  },
96
37
  icon,
97
38
  disabled,
98
- });
99
- }
39
+ } satisfies ItemData;
40
+ });
41
+
100
42
  return items;
101
43
  }
102
44
 
@@ -111,7 +53,7 @@ export class ItemDataProvider extends ListDataProvider {
111
53
  return div;
112
54
  }
113
55
  }
114
- `,bi=`export type ExampleItem = {
56
+ `,d=`export type ExampleItem = {
115
57
  caption: string;
116
58
  description?: string;
117
59
  disabled?: boolean;
@@ -161,17 +103,66 @@ export function generateSampleData(itemCount = firstNames.length * lastNames.len
161
103
  }
162
104
  return data;
163
105
  }
164
- `,Ks={mainContent:Fs,description:Ws,css:Vs,initializer:{content:Gs,type:"typescript",initialize:()=>mi(()=>import("./1_selection_types.js"),__vite__mapDeps([0,1]),import.meta.url)},additionalSources:[{type:"source",label:"item-provider",language:"typescript",content:gi},{type:"source",label:"sample-data",language:"typescript",content:bi}]},Zs=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),Js=`<div id="search-example">
106
+ `,f=`#selection-example {
107
+ display: grid;
108
+ grid-template-columns: repeat(3, 1fr);
109
+ column-gap: 16px;
110
+ }
111
+
112
+ sd-virtual-list {
113
+ height: 400px;
114
+ overflow-y: auto;
115
+ }
116
+
117
+ #notification {
118
+ visibility: collapse;
119
+ min-height: 30px;
120
+ line-height: 30px;
121
+ margin-bottom: 4px;
122
+ background: #f0f0f0;
123
+ color: #333;
124
+ text-align: center;
125
+ }
126
+
127
+ #notification + div {
128
+ grid-column-start: 1;
129
+ }
130
+ `,p=`<div id="selection-example">
131
+ <div id="notification"></div>
165
132
  <div>
166
- <div id="search-bar"><label for="search-input">Search: </label><input id="search-input" /></div>
133
+ <b>Trigger only</b>
134
+ <sd-virtual-list selection-type="trigger-only" item-height="50" tabindex="0"></sd-virtual-list>
135
+ </div>
136
+ <div>
137
+ <b>Single select</b>
167
138
  <sd-virtual-list selection-type="single" item-height="50" tabindex="0"></sd-virtual-list>
168
- <div id="no-result">No matching items for: <span id="search-term"></span></div>
139
+ </div>
140
+ <div>
141
+ <b>Multi select</b>
142
+ <sd-virtual-list selection-type="multi" item-height="50" tabindex="0"></sd-virtual-list>
169
143
  </div>
170
144
  </div>
171
- `,Xs=`<h3 id="lazy-loading-list-with-search">Lazy loading list with search</h3>
172
- <p>This example shows how a lazy loading data provider works with search functionality and how the list&#39;s height changes depending
173
- on the number of the search results.</p>
174
- `,Qs=`#search-example {
145
+ `,m=`<h3 id="selection-types">Selection types</h3>
146
+ `,h=`import "@cas-smartdesign/virtual-list";
147
+ import VirtualList from "@cas-smartdesign/virtual-list";
148
+ import { ItemDataProvider } from "item-provider";
149
+
150
+ const container = document.querySelector("#selection-example")!;
151
+ const notification = container.querySelector("#notification") as HTMLElement;
152
+ const lists: VirtualList[] = Array.from(container.querySelectorAll("sd-virtual-list"));
153
+
154
+ lists.forEach((list: VirtualList) => {
155
+ new ItemDataProvider().connectList(list);
156
+ list.addEventListener("sd-virtual-list-selection", (event) => {
157
+ const listIndex = lists.indexOf(event.currentTarget as VirtualList);
158
+ notification.style.visibility = "visible";
159
+ notification.style.gridColumnStart = \`\${listIndex + 1}\`;
160
+ notification.innerText = \`Item at index \${event.detail.index} has been \${
161
+ event.detail.selected ? "selected" : "deselected"
162
+ }\`;
163
+ });
164
+ });
165
+ `,g=`modulepreload`,_=function(e,t){return new URL(e,t).href},v={},y=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=_(t,n),t in v)return;v[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:g,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},b=s({default:()=>x}),x={mainContent:p,description:m,css:f,initializer:{content:h,type:`typescript`,initialize:()=>y(()=>import(`./1_selection_types.js`),__vite__mapDeps([0,1]),import.meta.url)},additionalSources:[{type:`source`,label:`item-provider`,language:`typescript`,content:u},{type:`source`,label:`sample-data`,language:`typescript`,content:d}]},S=`#search-example {
175
166
  display: grid;
176
167
  grid-template-columns: repeat(2, 1fr);
177
168
  column-gap: 16px;
@@ -209,16 +200,27 @@ sd-virtual-list {
209
200
  min-height: 50px;
210
201
  line-height: 50px;
211
202
  }
212
- `,Ys=`import "@cas-smartdesign/virtual-list";
203
+ `,C=`<div id="search-example">
204
+ <div>
205
+ <div id="search-bar"><label for="search-input">Search: </label><input id="search-input" /></div>
206
+ <sd-virtual-list selection-type="single" item-height="50" tabindex="0"></sd-virtual-list>
207
+ <div id="no-result">No matching items for: <span id="search-term"></span></div>
208
+ </div>
209
+ </div>
210
+ `,w=`<h3 id="lazy-loading-list-with-search">Lazy loading list with search</h3>
211
+ <p>This example shows how a lazy loading data provider works with search functionality and how the list&#39;s height changes depending
212
+ on the number of the search results.</p>
213
+ `,T=`import "@cas-smartdesign/virtual-list";
214
+ import { KeyDownDelegator } from "@cas-smartdesign/element-utils";
213
215
  import VirtualList from "@cas-smartdesign/virtual-list";
214
216
  import { ItemDataProvider } from "item-provider";
215
- import { ExampleItem, generateSampleData } from "../sample-data";
216
- import { KeyDownDelegator } from "@cas-smartdesign/element-utils";
217
+
218
+ import { type ExampleItem, generateSampleData } from "../sample-data"; /// import { type ExampleItem, generateSampleData } from "./sample-data";
217
219
 
218
220
  class LazyLoadingDataProvider extends ItemDataProvider {
219
221
  private data: ExampleItem[] = Array.from(generateSampleData());
220
222
  private searchTerm = "";
221
- private currentRequestId: number;
223
+ private currentRequestId: number | null = null;
222
224
 
223
225
  constructor(private loadedCallback: (hasItems: boolean) => void) {
224
226
  super(null);
@@ -239,12 +241,15 @@ class LazyLoadingDataProvider extends ItemDataProvider {
239
241
  }
240
242
  const items = [];
241
243
  let matchCount = 0;
242
- let i = 0;
244
+ let i: number;
243
245
  for (i = 0; i < this.data.length; i++) {
244
246
  const item = this.data[i];
247
+ if (!item) {
248
+ continue;
249
+ }
245
250
  if (!searchTerm || item.caption.toUpperCase().indexOf(searchTerm.toUpperCase()) >= 0) {
246
251
  if (matchCount++ >= page * this.pageSize) {
247
- items.push(...this.createListItems(this.data[i]));
252
+ items.push(...this.createListItems(item));
248
253
  }
249
254
  }
250
255
  if (items.length == this.pageSize) {
@@ -277,7 +282,7 @@ class LazyLoadingDataProvider extends ItemDataProvider {
277
282
  // Force requesting the first page if the list did not requested it already
278
283
  window.requestAnimationFrame(() => {
279
284
  if (this.currentRequestId == null && this.items.length == 0 && !this.finalSizeIsKnown) {
280
- this.onDataRequest(0);
285
+ this.onDataRequest!(0);
281
286
  }
282
287
  });
283
288
  }
@@ -294,7 +299,7 @@ function updateVisibilities(hasItems: boolean): void {
294
299
  }
295
300
  }
296
301
 
297
- const container = document.querySelector("#search-example");
302
+ const container = document.querySelector("#search-example")!;
298
303
  const searchField = container.querySelector("#search-input") as HTMLInputElement;
299
304
  const list = container.querySelector("sd-virtual-list") as VirtualList;
300
305
  const noItemsLabel = container.querySelector("#no-result") as VirtualList;
@@ -310,12 +315,7 @@ searchField.addEventListener("input", (event) => {
310
315
  list.scrollToItem(0, "start");
311
316
  list.selectedIndices = [];
312
317
  });
313
- `,er={mainContent:Js,description:Xs,css:Qs,initializer:{content:Ys,type:"typescript",initialize:()=>mi(()=>import("./2_lazy_load_with_search.js"),__vite__mapDeps([2,1]),import.meta.url)},additionalSources:[{type:"source",label:"item-provider",language:"typescript",content:gi},{type:"source",label:"sample-data",language:"typescript",content:bi}]},tr=Object.freeze(Object.defineProperty({__proto__:null,default:er},Symbol.toStringTag,{value:"Module"})),ir=`<div id="duplicate-example">
314
- <div id="notification"></div>
315
- <sd-virtual-list selection-type="single" item-height="50" tabindex="0"></sd-virtual-list>
316
- </div>
317
- `,nr=`<h3 id="selection-event-with-duplicate-items">Selection event with duplicate items</h3>
318
- `,sr=`#duplicate-example {
318
+ `,E=s({default:()=>D}),D={mainContent:C,description:w,css:S,initializer:{content:T,type:`typescript`,initialize:()=>y(()=>import(`./2_lazy_load_with_search.js`),__vite__mapDeps([2,1]),import.meta.url)},additionalSources:[{type:`source`,label:`item-provider`,language:`typescript`,content:u},{type:`source`,label:`sample-data`,language:`typescript`,content:d}]},O=`#duplicate-example {
319
319
  display: grid;
320
320
  grid-template-columns: repeat(2, 1fr);
321
321
  column-gap: 16px;
@@ -339,102 +339,101 @@ sd-virtual-list {
339
339
  #notification + * {
340
340
  grid-column-start: 1;
341
341
  }
342
- `,rr=`import "@cas-smartdesign/virtual-list";
342
+ `,k=`<div id="duplicate-example">
343
+ <div id="notification"></div>
344
+ <sd-virtual-list selection-type="single" item-height="50" tabindex="0"></sd-virtual-list>
345
+ </div>
346
+ `,A=`<h3 id="selection-event-with-duplicate-items">Selection event with duplicate items</h3>
347
+ `,j=`import "@cas-smartdesign/virtual-list";
343
348
  import VirtualList from "@cas-smartdesign/virtual-list";
344
349
  import { ItemDataProvider } from "item-provider";
345
350
 
346
- const container = document.querySelector("#duplicate-example");
351
+ const container = document.querySelector("#duplicate-example")!;
347
352
  const notification = container.querySelector("#notification") as HTMLElement;
348
353
  const list = container.querySelector("sd-virtual-list") as VirtualList;
349
354
 
350
355
  new ItemDataProvider(
351
- new Array(100).fill(1).map(() => {
352
- return { caption: "This is a", description: "duplicate" };
353
- }),
356
+ Array.from({ length: 100 })
357
+ .fill(1)
358
+ .map(() => {
359
+ return { caption: "This is a", description: "duplicate" };
360
+ }),
354
361
  ).connectList(list);
355
- list.addEventListener("selection", (event: CustomEvent) => {
362
+ list.addEventListener("sd-virtual-list-selection", (event) => {
356
363
  notification.style.visibility = "visible";
357
364
  notification.innerText = \`Item at index \${event.detail.index} has been \${
358
365
  event.detail.selected ? "selected" : "deselected"
359
366
  }\`;
360
367
  });
361
- `,or={mainContent:ir,description:nr,css:sr,initializer:{content:rr,type:"typescript",initialize:()=>mi(()=>import("./3_duplicate_items.js"),__vite__mapDeps([3,1]),import.meta.url)},additionalSources:[{type:"source",label:"item-provider",language:"typescript",content:gi},{type:"source",label:"sample-data",language:"typescript",content:bi}]},ar=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"}));const gt=globalThis,yi=gt.ShadowRoot&&(gt.ShadyCSS===void 0||gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wi=Symbol(),Ji=new WeakMap;let Dn=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==wi)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(yi&&e===void 0){const n=t!==void 0&&t.length===1;n&&(e=Ji.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Ji.set(t,e))}return e}toString(){return this.cssText}};const vi=s=>new Dn(typeof s=="string"?s:s+"",void 0,wi),zn=(s,...e)=>{const t=s.length===1?s[0]:e.reduce(((n,i,o)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+s[o+1]),s[0]);return new Dn(t,s,wi)},lr=(s,e)=>{if(yi)s.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const t of e){const n=document.createElement("style"),i=gt.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=t.cssText,s.appendChild(n)}},Xi=yi?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return vi(t)})(s):s;const{is:cr,defineProperty:ur,getOwnPropertyDescriptor:hr,getOwnPropertyNames:dr,getOwnPropertySymbols:fr,getPrototypeOf:pr}=Object,xt=globalThis,Qi=xt.trustedTypes,mr=Qi?Qi.emptyScript:"",gr=xt.reactiveElementPolyfillSupport,Xe=(s,e)=>s,bt={toAttribute(s,e){switch(e){case Boolean:s=s?mr:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},xi=(s,e)=>!cr(s,e),Yi={attribute:!0,type:String,converter:bt,reflect:!1,useDefault:!1,hasChanged:xi};Symbol.metadata??=Symbol("metadata"),xt.litPropertyMetadata??=new WeakMap;let Ue=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Yi){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(e,n,t);i!==void 0&&ur(this.prototype,e,i)}}static getPropertyDescriptor(e,t,n){const{get:i,set:o}=hr(this.prototype,e)??{get(){return this[t]},set(a){this[t]=a}};return{get:i,set(a){const p=i?.call(this);o?.call(this,a),this.requestUpdate(e,p,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Yi}static _$Ei(){if(this.hasOwnProperty(Xe("elementProperties")))return;const e=pr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Xe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Xe("properties"))){const t=this.properties,n=[...dr(t),...fr(t)];for(const i of n)this.createProperty(i,t[i])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[n,i]of t)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[t,n]of this.elementProperties){const i=this._$Eu(t,n);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const i of n)t.unshift(Xi(i))}else e!==void 0&&t.push(Xi(e));return t}static _$Eu(e,t){const n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return lr(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){const n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){const o=(n.converter?.toAttribute!==void 0?n.converter:bt).toAttribute(t,n.type);this._$Em=e,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(e,t){const n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const o=n.getPropertyOptions(i),a=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:bt;this._$Em=i;const p=a.fromAttribute(t,o.type);this[i]=p??this._$Ej?.get(i)??p,this._$Em=null}}requestUpdate(e,t,n){if(e!==void 0){const i=this.constructor,o=this[e];if(n??=i.getPropertyOptions(e),!((n.hasChanged??xi)(o,t)||n.useDefault&&n.reflect&&o===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,n))))return;this.C(e,t,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:i,wrapped:o},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),o!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),i===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[i,o]of n){const{wrapped:a}=o,p=this[i];a!==!0||this._$AL.has(i)||p===void 0||this.C(i,void 0,o,p)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((n=>n.hostUpdate?.())),this.update(t)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};Ue.elementStyles=[],Ue.shadowRootOptions={mode:"open"},Ue[Xe("elementProperties")]=new Map,Ue[Xe("finalized")]=new Map,gr?.({ReactiveElement:Ue}),(xt.reactiveElementVersions??=[]).push("2.1.1");const _i=globalThis,yt=_i.trustedTypes,en=yt?yt.createPolicy("lit-html",{createHTML:s=>s}):void 0,Un="$lit$",Ee=`lit$${Math.random().toFixed(9).slice(2)}$`,Bn="?"+Ee,br=`<${Bn}>`,Ne=document,et=()=>Ne.createComment(""),tt=s=>s===null||typeof s!="object"&&typeof s!="function",Ei=Array.isArray,yr=s=>Ei(s)||typeof s?.[Symbol.iterator]=="function",zt=`[
362
- \f\r]`,Ze=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tn=/-->/g,nn=/>/g,$e=RegExp(`>|${zt}(?:([^\\s"'>=/]+)(${zt}*=${zt}*(?:[^
363
- \f\r"'\`<>=]|("|')|))|$)`,"g"),sn=/'/g,rn=/"/g,qn=/^(?:script|style|textarea|title)$/i,wr=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),Be=wr(1),Me=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),on=new WeakMap,Re=Ne.createTreeWalker(Ne,129);function Hn(s,e){if(!Ei(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return en!==void 0?en.createHTML(e):e}const vr=(s,e)=>{const t=s.length-1,n=[];let i,o=e===2?"<svg>":e===3?"<math>":"",a=Ze;for(let p=0;p<t;p++){const b=s[p];let h,r,u=-1,c=0;for(;c<b.length&&(a.lastIndex=c,r=a.exec(b),r!==null);)c=a.lastIndex,a===Ze?r[1]==="!--"?a=tn:r[1]!==void 0?a=nn:r[2]!==void 0?(qn.test(r[2])&&(i=RegExp("</"+r[2],"g")),a=$e):r[3]!==void 0&&(a=$e):a===$e?r[0]===">"?(a=i??Ze,u=-1):r[1]===void 0?u=-2:(u=a.lastIndex-r[2].length,h=r[1],a=r[3]===void 0?$e:r[3]==='"'?rn:sn):a===rn||a===sn?a=$e:a===tn||a===nn?a=Ze:(a=$e,i=void 0);const l=a===$e&&s[p+1].startsWith("/>")?" ":"";o+=a===Ze?b+br:u>=0?(n.push(h),b.slice(0,u)+Un+b.slice(u)+Ee+l):b+Ee+(u===-2?p:l)}return[Hn(s,o+(s[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]};class it{constructor({strings:e,_$litType$:t},n){let i;this.parts=[];let o=0,a=0;const p=e.length-1,b=this.parts,[h,r]=vr(e,t);if(this.el=it.createElement(h,n),Re.currentNode=this.el.content,t===2||t===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(i=Re.nextNode())!==null&&b.length<p;){if(i.nodeType===1){if(i.hasAttributes())for(const u of i.getAttributeNames())if(u.endsWith(Un)){const c=r[a++],l=i.getAttribute(u).split(Ee),f=/([.?@])?(.*)/.exec(c);b.push({type:1,index:o,name:f[2],strings:l,ctor:f[1]==="."?_r:f[1]==="?"?Er:f[1]==="@"?Ar:_t}),i.removeAttribute(u)}else u.startsWith(Ee)&&(b.push({type:6,index:o}),i.removeAttribute(u));if(qn.test(i.tagName)){const u=i.textContent.split(Ee),c=u.length-1;if(c>0){i.textContent=yt?yt.emptyScript:"";for(let l=0;l<c;l++)i.append(u[l],et()),Re.nextNode(),b.push({type:2,index:++o});i.append(u[c],et())}}}else if(i.nodeType===8)if(i.data===Bn)b.push({type:2,index:o});else{let u=-1;for(;(u=i.data.indexOf(Ee,u+1))!==-1;)b.push({type:7,index:o}),u+=Ee.length-1}o++}}static createElement(e,t){const n=Ne.createElement("template");return n.innerHTML=e,n}}function Fe(s,e,t=s,n){if(e===Me)return e;let i=n!==void 0?t._$Co?.[n]:t._$Cl;const o=tt(e)?void 0:e._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(s),i._$AT(s,t,n)),n!==void 0?(t._$Co??=[])[n]=i:t._$Cl=i),i!==void 0&&(e=Fe(s,i._$AS(s,e.values),i,n)),e}class xr{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:n}=this._$AD,i=(e?.creationScope??Ne).importNode(t,!0);Re.currentNode=i;let o=Re.nextNode(),a=0,p=0,b=n[0];for(;b!==void 0;){if(a===b.index){let h;b.type===2?h=new nt(o,o.nextSibling,this,e):b.type===1?h=new b.ctor(o,b.name,b.strings,this,e):b.type===6&&(h=new Sr(o,this,e)),this._$AV.push(h),b=n[++p]}a!==b?.index&&(o=Re.nextNode(),a++)}return Re.currentNode=Ne,i}p(e){let t=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class nt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,i){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Fe(this,e,t),tt(e)?e===J||e==null||e===""?(this._$AH!==J&&this._$AR(),this._$AH=J):e!==this._$AH&&e!==Me&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):yr(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&&tt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ne.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=it.createElement(Hn(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(t);else{const o=new xr(i,this),a=o.u(this.options);o.p(t),this.T(a),this._$AH=o}}_$AC(e){let t=on.get(e.strings);return t===void 0&&on.set(e.strings,t=new it(e)),t}k(e){Ei(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,i=0;for(const o of e)i===t.length?t.push(n=new nt(this.O(et()),this.O(et()),this,this.options)):n=t[i],n._$AI(o),i++;i<t.length&&(this._$AR(n&&n._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class _t{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,i,o){this.type=1,this._$AH=J,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=J}_$AI(e,t=this,n,i){const o=this.strings;let a=!1;if(o===void 0)e=Fe(this,e,t,0),a=!tt(e)||e!==this._$AH&&e!==Me,a&&(this._$AH=e);else{const p=e;let b,h;for(e=o[0],b=0;b<o.length-1;b++)h=Fe(this,p[n+b],t,b),h===Me&&(h=this._$AH[b]),a||=!tt(h)||h!==this._$AH[b],h===J?e=J:e!==J&&(e+=(h??"")+o[b+1]),this._$AH[b]=h}a&&!i&&this.j(e)}j(e){e===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class _r extends _t{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===J?void 0:e}}class Er extends _t{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==J)}}class Ar extends _t{constructor(e,t,n,i,o){super(e,t,n,i,o),this.type=5}_$AI(e,t=this){if((e=Fe(this,e,t,0)??J)===Me)return;const n=this._$AH,i=e===J&&n!==J||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==J&&(n===J||i);i&&this.element.removeEventListener(this.name,this,n),o&&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 Sr{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Fe(this,e)}}const Cr=_i.litHtmlPolyfillSupport;Cr?.(it,nt),(_i.litHtmlVersions??=[]).push("3.3.1");const kr=(s,e,t)=>{const n=t?.renderBefore??e;let i=n._$litPart$;if(i===void 0){const o=t?.renderBefore??null;n._$litPart$=i=new nt(e.insertBefore(et(),o),o,void 0,t??{})}return i._$AI(s),i};const Ai=globalThis;let He=class extends Ue{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=kr(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Me}};He._$litElement$=!0,He.finalized=!0,Ai.litElementHydrateSupport?.({LitElement:He});const Ir=Ai.litElementPolyfillSupport;Ir?.({LitElement:He});(Ai.litElementVersions??=[]).push("4.2.1");const $r={attribute:!0,type:String,converter:bt,reflect:!1,hasChanged:xi},Or=(s=$r,e,t)=>{const{kind:n,metadata:i}=t;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),n==="setter"&&((s=Object.create(s)).wrapped=!0),o.set(t.name,s),n==="accessor"){const{name:a}=t;return{set(p){const b=e.get.call(this);e.set.call(this,p),this.requestUpdate(a,b,s)},init(p){return p!==void 0&&this.C(a,void 0,s,p),p}}}if(n==="setter"){const{name:a}=t;return function(p){const b=this[a];e.call(this,p),this.requestUpdate(a,b,s)}}throw Error("Unsupported decorator location: "+n)};function K(s){return(e,t)=>typeof t=="object"?Or(s,e,t):((n,i,o)=>{const a=i.hasOwnProperty(o);return i.constructor.createProperty(o,n),a?Object.getOwnPropertyDescriptor(i,o):void 0})(s,e,t)}class Rr{getOffsetForIndexAndAlignment(e,t,n,i,o,a){const p=Math.max(0,a*i),b=Math.min(p,e*i),h=Math.max(0,e*i-o+i);switch(t){case"start":return b;case"end":return h;case"center":{const r=Math.round(h+(b-h)/2);return r<Math.ceil(o/2)?0:r>p+Math.floor(o/2)?p:r}default:return n>=h&&n<=b?n:n<h?h:b}}debounce(e){let t;return(...n)=>{t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{e(...n),t=null})}}}const Nr=new Rr;const Si={ATTRIBUTE:1,CHILD:2},Fn=s=>(...e)=>({_$litDirective$:s,values:e});let Wn=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};class pi extends Wn{constructor(e){if(super(e),this.it=J,e.type!==Si.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===Me)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}pi.directiveName="unsafeHTML",pi.resultType=1;const Mr=Fn(pi);const dt=s=>s??J;const Tr=s=>s.strings===void 0;const Qe=(s,e)=>{const t=s._$AN;if(t===void 0)return!1;for(const n of t)n._$AO?.(e,!1),Qe(n,e);return!0},wt=s=>{let e,t;do{if((e=s._$AM)===void 0)break;t=e._$AN,t.delete(s),s=e}while(t?.size===0)},Vn=s=>{for(let e;e=s._$AM;s=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(s))break;t.add(s),jr(e)}};function Pr(s){this._$AN!==void 0?(wt(this),this._$AM=s,Vn(this)):this._$AM=s}function Lr(s,e=!1,t=0){const n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let o=t;o<n.length;o++)Qe(n[o],!1),wt(n[o]);else n!=null&&(Qe(n,!1),wt(n));else Qe(this,s)}const jr=s=>{s.type==Si.CHILD&&(s._$AP??=Lr,s._$AQ??=Pr)};let Dr=class extends Wn{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),Vn(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Qe(this,e),wt(this))}setValue(e){if(Tr(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};const an=s=>s?s.startsWith("url")?s:`url("${s}")`:null,zr=(s,e)=>{if(s){const t=new Image;t.addEventListener("load",e),t.src=s,t.complete&&(t.removeEventListener("load",e),window.queueMicrotask(()=>e()))}};let Ur=class extends Dr{constructor(e){if(super(e),e.type!==Si.ATTRIBUTE||e.name!=="src"&&e.name!=="style")throw new Error("The `placeholder` directive must be used in the `src` or `style` attributes")}update(e,[t,n]){return this.useCssBackground=e.name=="style",this.render(t,n)}render(e,t){this.loadingToken!=null&&(this.loadingToken.cancelled=!0);const n={cancelled:!1};return this.loadingToken=n,typeof e=="string"?this.preload(e,n):e?.then(i=>{this.preload(i,n)}),this.useCssBackground?an(t):t}preload(e,t){e!=null&&!t.cancelled&&zr(e,()=>{t.cancelled||this.setValue(this.useCssBackground?an(e):e)})}};const Br=Fn(Ur),qr=':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:var(--sd-list-item-level-0-color, #a0c3ef)}.container .level-indicator.level-1{background-color:var(--sd-list-item-level-1-color, #e7c374)}.container .level-indicator.level-2{background-color:var(--sd-list-item-level-2-color, #bfd596)}.container .level-indicator.level-3{background-color:var(--sd-list-item-level-3-color, #fd998d)}.container .level-indicator.level-4{background-color:var(--sd-list-item-level-4-color, #c6e8f5)}.container .level-indicator.level-5{background-color:var(--sd-list-item-level-5-color, #fde3a4)}.container .level-indicator.level-6{background-color:var(--sd-list-item-level-6-color, #dcbfe0)}.side-content{display:flex;align-items:center;flex-grow:0}.labels{display:flex;flex-direction:column;justify-content:center;flex:1 1 0px;height:100%;line-height:normal;overflow:hidden;padding:var(--sd-list-item-label-content-padding, 0 8px)}.caption,.description{width:100%;font-family:var(--sd-list-item-font-family, "Segoe UI", "Lucida Sans", Arial, sans-serif);font-style:normal;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-user-select:none;user-select:none;text-decoration:var(--sd-list-item-text-decoration, inherit)}.caption em,.description em{font-weight:bolder}.caption{font-size:var(--sd-list-item-caption-font-size, 16px);color:var(--sd-list-item-caption-text-color, #111);font-weight:var(--sd-list-item-caption-font-weight, normal)}.description{font-size:var(--sd-list-item-description-font-size, 13px);color:var(--sd-list-item-description-text-color, #767676);font-weight:var(--sd-list-item-description-font-weight, normal)}.description.with-icon{display:flex;align-items:center;gap:4px}.description.with-icon .description-icon{width:var(--sd-list-item-description-font-size, 13px);height:var(--sd-list-item-description-font-size, 13px);background-repeat:no-repeat;background-position:bottom;background-size:90%}.icon-wrapper{width:var(--sd-list-item-icon-wrapper-width, 45px);height:100%;display:flex;align-items:center;justify-content:center}.icon-wrapper.condensed{--condensed-size: 32px;--condensed-margin: 8px;height:var(--condensed-size);width:var(--condensed-size);border-radius:var(--sd-list-item-icon-background-radius);margin:var(--condensed-margin) calc(var(--sd-list-item-icon-wrapper-width, 45px) - var(--condensed-margin) - var(--condensed-size)) var(--condensed-margin) var(--condensed-margin)}.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:var(--sd-list-item-icon-background-size, cover)}';var Hr=Object.defineProperty,oe=(s,e,t,n)=>{for(var i=void 0,o=s.length-1,a;o>=0;o--)(a=s[o])&&(i=a(e,t,i)||i);return i&&Hr(e,t,i),i},Oe;const se=(Oe=class extends He{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[zn`
364
- ${vi(qr)}
365
- `]}render(){return Be`
368
+ `,M=s({default:()=>N}),N={mainContent:k,description:A,css:O,initializer:{content:j,type:`typescript`,initialize:()=>y(()=>import(`./3_duplicate_items.js`),__vite__mapDeps([3,1]),import.meta.url)},additionalSources:[{type:`source`,label:`item-provider`,language:`typescript`,content:u},{type:`source`,label:`sample-data`,language:`typescript`,content:d}]},P=globalThis,F=e=>e,I=P.trustedTypes,L=I?I.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,R=`$lit$`,z=`lit$${Math.random().toFixed(9).slice(2)}$`,B=`?`+z,ee=`<${B}>`,V=document,te=()=>V.createComment(``),ne=e=>e===null||typeof e!=`object`&&typeof e!=`function`,re=Array.isArray,ie=e=>re(e)||typeof e?.[Symbol.iterator]==`function`,ae=`[
369
+ \f\r]`,oe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,se=/-->/g,ce=/>/g,le=RegExp(`>|${ae}(?:([^\\s"'>=/]+)(${ae}*=${ae}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),ue=/'/g,de=/"/g,fe=/^(?:script|style|textarea|title)$/i,pe=(e=>(t,...n)=>({_$litType$:e,strings:t,values:n}))(1),me=Symbol.for(`lit-noChange`),H=Symbol.for(`lit-nothing`),he=new WeakMap,ge=V.createTreeWalker(V,129);function _e(e,t){if(!re(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return L===void 0?t:L.createHTML(t)}var U=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=oe;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===oe?c[1]===`!--`?o=se:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=le):(fe.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=le):o=ce:o===le?c[0]===`>`?(o=i??oe,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?le:c[3]===`"`?de:ue):o===de||o===ue?o=le:o===se||o===ce?o=oe:(o=le,i=void 0);let d=o===le&&e[t+1].startsWith(`/>`)?` `:``;a+=o===oe?n+ee:l>=0?(r.push(s),n.slice(0,l)+R+n.slice(l)+z+d):n+z+(l===-2?t:d)}return[_e(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},ve=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=U(t,n);if(this.el=e.createElement(l,r),ge.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=ge.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(R)){let t=u[o++],n=i.getAttribute(e).split(z),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?Se:r[1]===`?`?Ce:r[1]===`@`?we:xe}),i.removeAttribute(e)}else e.startsWith(z)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(fe.test(i.tagName)){let e=i.textContent.split(z),t=e.length-1;if(t>0){i.textContent=I?I.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],te()),ge.nextNode(),c.push({type:2,index:++a});i.append(e[t],te())}}}else if(i.nodeType===8)if(i.data===B)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(z,e+1))!==-1;)c.push({type:7,index:a}),e+=z.length-1}a++}}static createElement(e,t){let n=V.createElement(`template`);return n.innerHTML=e,n}};function W(e,t,n=e,r){if(t===me)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=ne(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=W(e,i._$AS(e,t.values),i,r)),t}var ye=class{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){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??V).importNode(t,!0);ge.currentNode=r;let i=ge.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new be(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new Te(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=ge.nextNode(),a++)}return ge.currentNode=V,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},be=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=W(this,e,t),ne(e)?e===H||e==null||e===``?(this._$AH!==H&&this._$AR(),this._$AH=H):e!==this._$AH&&e!==me&&this._(e):e._$litType$===void 0?e.nodeType===void 0?ie(e)?this.k(e):this._(e):this.T(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!==H&&ne(this._$AH)?this._$AA.nextSibling.data=e:this.T(V.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=ve.createElement(_e(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new ye(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=he.get(e.strings);return t===void 0&&he.set(e.strings,t=new ve(e)),t}k(t){re(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(te()),this.O(te()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=F(e).nextSibling;F(e).remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},xe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=H,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=W(this,e,t,0),a=!ne(e)||e!==this._$AH&&e!==me,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=W(this,r[n+o],t,o),s===me&&(s=this._$AH[o]),a||=!ne(s)||s!==this._$AH[o],s===H?e=H:e!==H&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},Se=class extends xe{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===H?void 0:e}},Ce=class extends xe{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==H)}},we=class extends xe{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=W(this,e,t,0)??H)===me)return;let n=this._$AH,r=e===H&&n!==H||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==H&&(n===H||r);r&&this.element.removeEventListener(this.name,this,n),i&&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)}},Te=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){W(this,e)}},Ee={M:R,P:z,A:B,C:1,L:U,R:ye,D:ie,V:W,I:be,H:xe,N:Ce,U:we,B:Se,F:Te},De=P.litHtmlPolyfillSupport;De?.(ve,be),(P.litHtmlVersions??=[]).push(`3.3.2`);var Oe=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new be(t.insertBefore(te(),e),e,void 0,n??{})}return i._$AI(e),i},{I:ke}=Ee,Ae=e=>e.strings===void 0,je={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Me=e=>(...t)=>({_$litDirective$:e,values:t}),Ne=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},Pe=(e,t)=>{let n=e._$AN;if(n===void 0)return!1;for(let e of n)e._$AO?.(t,!1),Pe(e,t);return!0},G=e=>{let t,n;do{if((t=e._$AM)===void 0)break;n=t._$AN,n.delete(e),e=t}while(n?.size===0)},Fe=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(n===void 0)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),Re(t)}};function Ie(e){this._$AN===void 0?this._$AM=e:(G(this),this._$AM=e,Fe(this))}function Le(e,t=!1,n=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let e=n;e<r.length;e++)Pe(r[e],!1),G(r[e]);else r!=null&&(Pe(r,!1),G(r));else Pe(this,e)}var Re=e=>{e.type==je.CHILD&&(e._$AP??=Le,e._$AQ??=Ie)},ze=class extends Ne{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),Fe(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Pe(this,e),G(this))}setValue(e){if(Ae(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}},Be=e=>e?e.startsWith(`url`)?e:`url("${e}")`:``,Ve=(e,t)=>{if(e){let n=new Image;n.addEventListener(`load`,t),n.src=e,n.complete&&(n.removeEventListener(`load`,t),window.queueMicrotask(()=>t()))}},He=Me(class extends ze{constructor(e){if(super(e),this.useCssBackground=!1,e.type!==je.ATTRIBUTE||e.name!==`src`&&e.name!==`style`)throw Error("The `placeholder` directive must be used in the `src` or `style` attributes")}update(e,[t,n]){return this.useCssBackground=e.name==`style`,this.render(t,n)}render(e,t){this.loadingToken!=null&&(this.loadingToken.cancelled=!0);let n={cancelled:!1};return this.loadingToken=n,typeof e==`string`?this.preload(e,n):e?.then(e=>{this.preload(e,n)}),this.useCssBackground?Be(t):t}preload(e,t){e!=null&&!t.cancelled&&Ve(e,()=>{t.cancelled||this.setValue(this.useCssBackground?Be(e):e)})}}),Ue=globalThis,We=Ue.ShadowRoot&&(Ue.ShadyCSS===void 0||Ue.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,Ge=Symbol(),Ke=new WeakMap,qe=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==Ge)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(We&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=Ke.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Ke.set(t,e))}return e}toString(){return this.cssText}},Je=e=>new qe(typeof e==`string`?e:e+``,void 0,Ge),Ye=(e,...t)=>new qe(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,Ge),Xe=(e,t)=>{if(We)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=Ue.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},Ze=We?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return Je(t)})(e):e,{is:Qe,defineProperty:$e,getOwnPropertyDescriptor:et,getOwnPropertyNames:tt,getOwnPropertySymbols:nt,getPrototypeOf:rt}=Object,it=globalThis,at=it.trustedTypes,ot=at?at.emptyScript:``,st=it.reactiveElementPolyfillSupport,ct=(e,t)=>e,lt={toAttribute(e,t){switch(t){case Boolean:e=e?ot:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},ut=(e,t)=>!Qe(e,t),dt={attribute:!0,type:String,converter:lt,reflect:!1,useDefault:!1,hasChanged:ut};Symbol.metadata??=Symbol(`metadata`),it.litPropertyMetadata??=new WeakMap;var ft=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=dt){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&$e(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=et(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??dt}static _$Ei(){if(this.hasOwnProperty(ct(`elementProperties`)))return;let e=rt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ct(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ct(`properties`))){let e=this.properties,t=[...tt(e),...nt(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(Ze(e))}else e!==void 0&&t.push(Ze(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?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_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Xe(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?lt:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?lt:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){let a=this.constructor;if(!1===r&&(i=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??ut)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let 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(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.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(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};ft.elementStyles=[],ft.shadowRootOptions={mode:`open`},ft[ct(`elementProperties`)]=new Map,ft[ct(`finalized`)]=new Map,st?.({ReactiveElement:ft}),(it.reactiveElementVersions??=[]).push(`2.1.2`);var pt=globalThis,mt=class extends ft{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Oe(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return me}};mt._$litElement$=!0,mt.finalized=!0,pt.litElementHydrateSupport?.({LitElement:mt});var ht=pt.litElementPolyfillSupport;ht?.({LitElement:mt}),(pt.litElementVersions??=[]).push(`4.2.2`);var gt={attribute:!0,type:String,converter:lt,reflect:!1,hasChanged:ut},_t=(e=gt,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function K(e){return(t,n)=>typeof n==`object`?_t(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}var vt=e=>e??H,yt=class extends Ne{constructor(e){if(super(e),this.it=H,e.type!==je.CHILD)throw Error(this.constructor.directiveName+`() can only be used in child bindings`)}render(e){if(e===H||e==null)return this._t=void 0,this.it=e;if(e===me)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;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};yt.directiveName=`unsafeHTML`,yt.resultType=1;var bt=Me(yt),xt=`:host{contain:strict;height:50px;display:block}: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{-webkit-line-clamp:2;white-space:normal;overflow-wrap:break-word;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.container{box-sizing:border-box;height:100%;display:flex}.container .level-indicator{width:7px;height:100%}.container .level-indicator.level-0{background-color:var(--sd-list-item-level-0-color,#a0c3ef)}.container .level-indicator.level-1{background-color:var(--sd-list-item-level-1-color,#e7c374)}.container .level-indicator.level-2{background-color:var(--sd-list-item-level-2-color,#bfd596)}.container .level-indicator.level-3{background-color:var(--sd-list-item-level-3-color,#fd998d)}.container .level-indicator.level-4{background-color:var(--sd-list-item-level-4-color,#c6e8f5)}.container .level-indicator.level-5{background-color:var(--sd-list-item-level-5-color,#fde3a4)}.container .level-indicator.level-6{background-color:var(--sd-list-item-level-6-color,#dcbfe0)}.side-content{flex-grow:0;align-items:center;display:flex}.labels{height:100%;padding:var(--sd-list-item-label-content-padding,0 8px);flex-direction:column;flex:1 1 0;justify-content:center;line-height:normal;display:flex;overflow:hidden}.caption,.description{width:100%;font-family:var(--sd-list-item-font-family,"Segoe UI", "Lucida Sans", Arial, sans-serif);text-overflow:ellipsis;-webkit-user-select:none;user-select:none;-webkit-text-decoration:var(--sd-list-item-text-decoration,inherit);text-decoration:var(--sd-list-item-text-decoration,inherit);font-style:normal;overflow:hidden}.caption em,.description em{font-weight:bolder}.caption span,.description span,span.caption,span.description{white-space:pre}.caption{font-size:var(--sd-list-item-caption-font-size,16px);color:var(--sd-list-item-caption-text-color,#111);font-weight:var(--sd-list-item-caption-font-weight,normal)}.description{font-size:var(--sd-list-item-description-font-size,13px);color:var(--sd-list-item-description-text-color,#767676);font-weight:var(--sd-list-item-description-font-weight,normal)}.description.with-icon{align-items:center;gap:4px;display:flex}.description.with-icon .description-icon{width:var(--sd-list-item-description-font-size,13px);height:var(--sd-list-item-description-font-size,13px);background-position:bottom;background-repeat:no-repeat;background-size:90%}.icon-wrapper{width:var(--sd-list-item-icon-wrapper-width,45px);justify-content:center;align-items:center;height:100%;display:flex}.icon-wrapper.condensed{--condensed-size:32px;--condensed-margin:8px;height:var(--condensed-size);width:var(--condensed-size);border-radius:var(--sd-list-item-icon-background-radius);margin:var(--condensed-margin) calc(var(--sd-list-item-icon-wrapper-width,45px) - var(--condensed-margin) - var(--condensed-size)) var(--condensed-margin) var(--condensed-margin)}.icon-wrapper .icon{min-height:var(--sd-list-item-icon-size,24px);min-width:var(--sd-list-item-icon-size,24px);background-position:50%;background-repeat:no-repeat;background-size:var(--sd-list-item-icon-background-size,cover)}`;function q(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function J(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var Y=class e extends mt{constructor(...e){super(...e),this.contentMode=`text`,this.role=`option`}static{this.ID=`sd-list-item`}static{this.ensureDefined=()=>{customElements.get(e.ID)||customElements.define(e.ID,e)}}static get styles(){return[Ye`
370
+ ${Je(xt)}
371
+ `]}render(){return pe`
366
372
  <div class="container">
367
- ${this.getLevelIndicators().map((s,e)=>Be` <div class="level-indicator level-${e}"></div> `)}
373
+ ${this.getLevelIndicators().map((e,t)=>pe` <div class="level-indicator level-${t}"></div> `)}
368
374
  <div class="side-content">
369
375
  <slot name="left-content"></slot>
370
376
  ${this.renderIcon()}
371
377
  </div>
372
378
  <div class="labels">
373
- ${this.renderLabel("caption",this.caption,this.captionAttrTitle)}
374
- ${this.renderLabel("description",this.description,this.descriptionAttrTitle,this.descriptionIcon)}
379
+ ${this.renderLabel(`caption`,this.caption,this.captionAttrTitle)}
380
+ ${this.renderLabel(`description`,this.description,this.descriptionAttrTitle,this.descriptionIcon)}
375
381
  </div>
376
382
  <div class="side-content">
377
383
  <slot name="right-content"></slot>
378
384
  </div>
379
385
  </div>
380
- `}renderIcon(){return this.icon||this.iconPlaceholder?Be`<div
381
- class="icon-wrapper${this.condensedIconBackground?" condensed":""}"
382
- @pointerdown="${this.handleIconClick}"
383
- style="background-color:${dt(this.iconBackgroundColor)};"
386
+ `}renderIcon(){return this.icon||this.iconPlaceholder?pe`<div
387
+ class="icon-wrapper${this.condensedIconBackground?` condensed`:``}"
388
+ @pointerdown="${e=>this.handleIconClick(e)}"
389
+ style="background-color:${vt(this.iconBackgroundColor)};"
384
390
  role="img"
385
- aria-label="${dt(this.iconAttrAriaLabel)}"
386
- title="${dt(this.iconAttrTitle)}"
391
+ aria-label="${vt(this.iconAttrAriaLabel)}"
392
+ title="${vt(this.iconAttrTitle)}"
387
393
  >
388
- <div class="icon" style="background-image:${Br(this.icon,this.iconPlaceholder)}"></div>
389
- </div> `:J}renderLabel(s,e,t,n){return e?Be`
390
- <div class="${s} ${n?"with-icon":""}" title="${dt(t)}">
391
- ${n?Be`
392
- <div
393
- class="${s}-icon"
394
- style="background-image:url('${n}')"
395
- aria-hidden="true"
396
- ></div>
397
- `:J}
398
- ${this.contentMode==="html"?Mr(e):e}
399
- </div>
400
- `:J}updated(s){super.updated(s),s.has("selected")&&this.setAttribute("aria-selected",String(this.selected))}get missingWidthForTexts(){const s=this.enableLineClamp;this.removeAttribute("enable-line-clamp");let e=0;const t=this.shadowRoot.querySelector(".caption");t&&(e+=t.scrollWidth-t.clientWidth);const n=this.shadowRoot.querySelector(".description");return n&&(e=Math.max(e,n.scrollWidth-n.clientWidth)),e>0&&e++,s&&this.setAttribute("enable-line-clamp",""),e}handleIconClick(s){!this.disabled&&!this.dispatchEvent(new PointerEvent("list-item-icon-click",s))&&s.preventDefault()}getLevelIndicators(){return this.level?Array(Number(this.level)).fill(null):[]}},Oe.ID="sd-list-item",Oe.ensureDefined=()=>{customElements.get(Oe.ID)||customElements.define(Oe.ID,Oe)},Oe);oe([K({type:String})],se.prototype,"caption");oe([K({type:String})],se.prototype,"description");oe([K({type:String})],se.prototype,"descriptionIcon");oe([K({type:Boolean})],se.prototype,"selected");oe([K({type:String})],se.prototype,"icon");oe([K({type:String})],se.prototype,"iconBackgroundColor");oe([K({type:Boolean})],se.prototype,"condensedIconBackground");oe([K({type:String})],se.prototype,"iconPlaceholder");oe([K({type:Number})],se.prototype,"level");oe([K()],se.prototype,"contentMode");oe([K({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],se.prototype,"enableLineClamp");oe([K({converter:{fromAttribute:s=>s=="true",toAttribute:s=>s},reflect:!0,attribute:"aria-disabled"})],se.prototype,"disabled");oe([K({type:String,attribute:"icon-attr-aria-label"})],se.prototype,"iconAttrAriaLabel");oe([K({type:String,reflect:!0})],se.prototype,"role");oe([K({type:String,attribute:"caption-attr-title"})],se.prototype,"captionAttrTitle");oe([K({type:String,attribute:"description-attr-title"})],se.prototype,"descriptionAttrTitle");oe([K({type:String,attribute:"icon-attr-title"})],se.prototype,"iconAttrTitle");let qe=se;const Fr=(s,e)=>{const t=document.createElement(qe.ID);if(s){if(t.caption=s.caption,t.description=s.description,t.descriptionIcon=s.descriptionIcon,t.icon=s.icon,t.iconBackgroundColor=s.iconBackgroundColor,t.iconPlaceholder=s.iconPlaceholder,t.level=s.level,t.disabled=s.disabled,t.condensedIconBackground=s.condensedIconBackground,s.contentMode&&(t.contentMode=s.contentMode),s.leftContentGenerator){const n=s.leftContentGenerator(s,t);n&&(n.slot="left-content",t.appendChild(n))}if(s.rightContentGenerator){const n=s.rightContentGenerator(s,t);n&&(n.slot="right-content",t.appendChild(n))}}return t};qe.ensureDefined();const Wr=":host{display:block;position:relative;contain:layout;--sd-virtual-list-focus-highlight-color: #1467ba;--sd-virtual-list-item-separator-color: #d9d9d9}:host(:focus){outline:none}:host(:focus-visible) ::slotted([focused]){box-shadow:0 0 0 1px var(--sd-virtual-list-focus-highlight-color) inset}.container{width:100%}.container>::slotted(*){width:100%;position:absolute;box-sizing:border-box}.container>::slotted(:not([last])){border-bottom:1px solid var(--sd-virtual-list-item-separator-color)}";var Vr=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,Ae=(s,e,t,n)=>{for(var i=n>1?void 0:n?Gr(e,t):e,o=s.length-1,a;o>=0;o--)(a=s[o])&&(i=(n?a(e,t,i):a(i))||i);return n&&i&&Vr(e,t,i),i};let Kr=0;var de;const ye=(de=class extends He{constructor(){super(),this.items=[],this.selectionType="trigger-only",this.id=de.ID+"_"+Kr++,this.role="listbox",this.itemGenerator=Fr,this._lastKnownScrollTop=0,this._lastRenderedScrollTop=0,this._itemsRenderData=[],this._elementCache=new Map,this._visibleItemsNum=0,this._selectedIndices=[],this._focusIndex=-1,this._lastKnownHeight=0,this.onScroll=()=>{this._lastKnownScrollTop=this.scrollTop;const e=this._lastRenderedScrollTop-this._lastKnownScrollTop;Math.abs(e)>=this.itemHeight&&(this._lastRenderedScrollTop=this._lastKnownScrollTop,this.requestUpdate())},this.handleKeyDown=e=>{let t=!0;switch(e.key){case"Down":case"ArrowDown":this.focusIndex=(this.focusIndex+1)%this.itemCount;break;case"Up":case"ArrowUp":this.focusIndex>0?this.focusIndex--:this.finalSizeIsKnown&&(this.focusIndex=this.itemCount-1);break;case"Enter":this.handleSelection(this.focusIndex,e);break;case"End":this.focusIndex=this.itemCount-1;break;case"PageDown":this.focusIndex=this.normalizeIndex(this.focusIndex+this._visibleItemsNum-1);break;case"Home":this.focusIndex=0;break;case"PageUp":this.focusIndex=this.normalizeIndex(this.focusIndex-this._visibleItemsNum+1);break;default:t=!1;break}t&&(e.preventDefault(),e.stopPropagation())},this._resizeObserver=new ResizeObserver(()=>{this._lastKnownHeight!==this.offsetHeight&&(this._lastKnownHeight=this.offsetHeight,this.requestUpdate())})}get focusTarget(){return this.hasAttribute("focus-target")}set focusTarget(e){this.toggleAttribute("focus-target",e)}get focusIndex(){return this._focusIndex}set focusIndex(e){if(e>=-1&&e<this.itemCount){const t=this._focusIndex;this._focusIndex=e,(e<=this._firstVisibleIndex||this._lastVisibleIndex<=e)&&this.scrollToItem(e),t!=e&&(e==-1&&this.removeAttribute("aria-activedescendant"),this.requestUpdate("focusIndex",t))}}get selectedIndices(){return this._selectedIndices}set selectedIndices(e){e?this._selectedIndices=e.map(t=>Number(t)):this._selectedIndices=[],this.requestUpdate("selectedIndices")}scrollToItem(e,t="auto"){this.scrollTop=Nr.getOffsetForIndexAndAlignment(this.normalizeIndex(e),t,this.scrollTop,this.itemHeight,this.height,this.itemCount),this._lastKnownScrollTop=this.scrollTop}getListItem(e){return!this.shadowRoot||e<this._firstVisibleIndex||this._lastVisibleIndex<e?null:this.querySelector(`[item-index="${e}"]`)}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this),this.scrollTop!==this._lastKnownScrollTop&&(this.scrollTop=this._lastKnownScrollTop,this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.disconnect()}firstUpdated(e){super.firstUpdated(e),this.addEventListener("scroll",this.onScroll),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick),this.addEventListener("mousedown",t=>{t.button==1&&t.preventDefault()}),this.addEventListener("auxclick",this.handleClick),this.addEventListener("focus",()=>{this.matches(":focus-visible")&&(this.focusIndex==-1?(this.selectedIndices&&(this.focusIndex=this.selectedIndices[0]),this.focusIndex==-1&&this.itemCount>0&&(this.focusIndex=0)):this.updateFocusedItemAttributes())}),this.addEventListener("blur",()=>{this.focusIndex!=-1&&this.updateFocusedItemAttributes()}),this.selectedIndices.length>0&&this.scrollToItem(this.selectedIndices[0],"center")}updateFocusedItemAttributes(){const e=this.getListItem(this.focusIndex);e&&(this.focusTarget||document.activeElement==this?(e.setAttribute("focused",""),this.setAttribute("aria-activedescendant",e.id)):(e.removeAttribute("focused"),this.removeAttribute("aria-activedescendant")))}static get styles(){return[zn`
401
- ${vi(Wr)}
402
- `]}render(){return this.updateItemsRenderData(),Be`
394
+ <div class="icon" style="background-image:${He(this.icon,this.iconPlaceholder)}"></div>
395
+ </div> `:H}renderLabel(e,t,n,r){if(t==null)return H;let i=this.contentMode===`html`?bt(t):t;return r==null?pe`<span class="${e}" title="${vt(n)}">${i}</span>`:pe`<div class="${e} with-icon" title="${vt(n)}">
396
+ <div class="${e}-icon" style="background-image:url('${r}')" aria-hidden="true"></div>
397
+ <span>${i}</span>
398
+ </div>`}updated(e){super.updated(e),e.has(`selected`)&&this.setAttribute(`aria-selected`,String(this.selected))}get missingWidthForTexts(){let e=this.enableLineClamp;this.removeAttribute(`enable-line-clamp`);let t=0;if(!this.shadowRoot)return 0;let n=this.shadowRoot.querySelector(`.caption`);n&&(t+=n.scrollWidth-n.clientWidth);let r=this.shadowRoot.querySelector(`.description`);return r&&(t=Math.max(t,r.scrollWidth-r.clientWidth)),t>0&&t++,e&&this.setAttribute(`enable-line-clamp`,``),t}handleIconClick(e){!this.disabled&&!this.dispatchEvent(new PointerEvent(`sd-list-item-icon-click`,e))&&e.preventDefault()}getLevelIndicators(){return this.level?Array(Number(this.level)).fill(null):[]}};J([K({type:String}),q(`design:type`,String)],Y.prototype,`caption`,void 0),J([K({type:String}),q(`design:type`,String)],Y.prototype,`description`,void 0),J([K({type:String}),q(`design:type`,String)],Y.prototype,`descriptionIcon`,void 0),J([K({type:Boolean}),q(`design:type`,Boolean)],Y.prototype,`selected`,void 0),J([K({type:String}),q(`design:type`,String)],Y.prototype,`icon`,void 0),J([K({type:String}),q(`design:type`,String)],Y.prototype,`iconBackgroundColor`,void 0),J([K({type:Boolean}),q(`design:type`,Boolean)],Y.prototype,`condensedIconBackground`,void 0),J([K({type:String}),q(`design:type`,String)],Y.prototype,`iconPlaceholder`,void 0),J([K({type:Number}),q(`design:type`,Number)],Y.prototype,`level`,void 0),J([K(),q(`design:type`,Object)],Y.prototype,`contentMode`,void 0),J([K({type:Boolean,reflect:!0,attribute:`enable-line-clamp`}),q(`design:type`,Boolean)],Y.prototype,`enableLineClamp`,void 0),J([K({converter:{fromAttribute:e=>e==`true`,toAttribute:e=>e},reflect:!0,attribute:`aria-disabled`}),q(`design:type`,Boolean)],Y.prototype,`disabled`,void 0),J([K({type:String,attribute:`icon-attr-aria-label`}),q(`design:type`,String)],Y.prototype,`iconAttrAriaLabel`,void 0),J([K({type:String,reflect:!0}),q(`design:type`,Object)],Y.prototype,`role`,void 0),J([K({type:String,attribute:`caption-attr-title`}),q(`design:type`,String)],Y.prototype,`captionAttrTitle`,void 0),J([K({type:String,attribute:`description-attr-title`}),q(`design:type`,String)],Y.prototype,`descriptionAttrTitle`,void 0),J([K({type:String,attribute:`icon-attr-title`}),q(`design:type`,String)],Y.prototype,`iconAttrTitle`,void 0);var St=(e,t)=>{let n=document.createElement(Y.ID);if(e){if(n.caption=e.caption,n.description=e.description,n.descriptionIcon=e.descriptionIcon,n.icon=e.icon,n.iconBackgroundColor=e.iconBackgroundColor,n.iconPlaceholder=e.iconPlaceholder,n.level=e.level,n.disabled=e.disabled,n.condensedIconBackground=e.condensedIconBackground,e.contentMode&&(n.contentMode=e.contentMode),e.leftContentGenerator){let t=e.leftContentGenerator(e,n);t&&(t.slot=`left-content`,n.appendChild(t))}if(e.rightContentGenerator){let t=e.rightContentGenerator(e,n);t&&(t.slot=`right-content`,n.appendChild(t))}}return n};Y.ensureDefined();var Ct=new class{getOffsetForIndexAndAlignment(e,t,n,r,i,a){let o=Math.max(0,a*r),s=Math.min(o,e*r),c=Math.max(0,e*r-i+r);switch(t){case`start`:return s;case`end`:return c;case`center`:{let e=Math.round(c+(s-c)/2);return e<Math.ceil(i/2)?0:e>o+Math.floor(i/2)?o:e}default:return n>=c&&n<=s?n:n<c?c:s}}debounce(e){let t;return(...n)=>{t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{e(...n),t=null})}}};function X(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function wt(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var Tt=class{constructor(e=100,t=5){this.pageSize=e,this.preloadedItemsCount=t,this._finalSizeIsKnown=!1,this._itemCache=[],this._lastRequestedFirstIndex=0,this._lastRequestedLastIndex=0,this._lastLoadedIndex=0,this._pendingDataRequest=!1,this.handleListDataRequest=e=>{if(this._list==null)return;let{startIndex:t,stopIndex:n}=e.detail;this._lastRequestedFirstIndex=t,this._lastRequestedLastIndex=n,this._list.items=this._itemCache.slice(t,n+1),!this.finalSizeIsKnown&&this._lastLoadedIndex<n+this.preloadedItemsCount&&this.requestData()},this._itemCount=e}get currentPage(){return this.items.length==0&&this.finalSizeIsKnown?0:Math.floor((this.items.length-1)/this.pageSize)}get finalSizeIsKnown(){return this._finalSizeIsKnown}set finalSizeIsKnown(e){this._finalSizeIsKnown=e,e&&(this.itemCount=this._itemCache.length),this._list&&(this._list.finalSizeIsKnown=e)}get itemCount(){return this._itemCount}set itemCount(e){this._itemCount=e,this._list&&(this._list.itemCount=e)}get items(){return this._itemCache}set items(e){this._itemCache=e,this.onItemsChange()}addItems(e){this._itemCache=this._itemCache.concat(e),this.onItemsChange()}connectList(e){this._list&&this._list.removeEventListener(`sd-virtual-list-data-request`,this.handleListDataRequest),this._list=e,e.itemCount=this.itemCount,e.addEventListener(`sd-virtual-list-data-request`,this.handleListDataRequest),e.finalSizeIsKnown=this._finalSizeIsKnown}onItemsChange(){this._pendingDataRequest=!1,this._lastLoadedIndex=this._itemCache.length-1,this.finalSizeIsKnown?this.itemCount=this._itemCache.length:this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex),this._list&&(this._list.items=this._itemCache.slice(this._lastRequestedFirstIndex,this._lastRequestedLastIndex+1))}requestData(){if(!this._pendingDataRequest)if(this.onDataRequest)this._pendingDataRequest=!0,this.onDataRequest(this.currentPage+1),this._lastLoadedIndex+=this.pageSize-1,this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex);else throw Error(`The final size is not yet known and the list would require item data from index `+this._lastRequestedFirstIndex+`. to `+this._lastRequestedLastIndex+`. which is not possible to load without a configured onDataRequest`)}},Et=`:host{contain:layout;--sd-virtual-list-focus-highlight-color:#1467ba;--sd-virtual-list-item-separator-color:#d9d9d9;display:block;position:relative}:host(:focus){outline:none}:host(:focus-visible) ::slotted([focused]){box-shadow:0 0 0 1px var(--sd-virtual-list-focus-highlight-color) inset}.container{width:100%}.container>::slotted(*){box-sizing:border-box;width:100%;position:absolute}.container>::slotted(:not([last])){border-bottom:1px solid var(--sd-virtual-list-item-separator-color)}`,Dt,Ot=function(e){return e.TriggerOnly=`trigger-only`,e.Single=`single`,e.Multi=`multi`,e}({}),kt=0,Z=class e extends mt{static{this.ID=`sd-virtual-list`}static{this.ensureDefined=()=>{Y.ensureDefined(),customElements.get(e.ID)||customElements.define(e.ID,e)}}get focusTarget(){return this.hasAttribute(`focus-target`)}set focusTarget(e){this.toggleAttribute(`focus-target`,e)}get focusIndex(){return this._focusIndex}set focusIndex(e){if(e>=-1&&e<this.itemCount){let t=this._focusIndex;this._focusIndex=e,(e<=this._firstVisibleIndex||this._lastVisibleIndex<=e)&&this.scrollToItem(e),t!=e&&(e==-1&&this.removeAttribute(`aria-activedescendant`),this.requestUpdate(`focusIndex`,t))}}get selectedIndices(){return this._selectedIndices}set selectedIndices(e){e?this._selectedIndices=e.map(e=>Number(e)):this._selectedIndices=[],this.requestUpdate(`selectedIndices`)}scrollToItem(e,t=`auto`){this.scrollTop=Ct.getOffsetForIndexAndAlignment(this.normalizeIndex(e),t,this.scrollTop,this.itemHeight,this.height,this.itemCount),this._lastKnownScrollTop=this.scrollTop}getListItem(e){return!this.shadowRoot||e<this._firstVisibleIndex||this._lastVisibleIndex<e?null:this.querySelector(`[item-index="${e}"]`)}constructor(){super(),this.itemHeight=50,this.itemCount=0,this.items=[],this.selectionType=Ot.TriggerOnly,this.id=e.ID+`_`+ kt++,this.role=`listbox`,this.itemGenerator=St,this._lastKnownScrollTop=0,this._lastRenderedScrollTop=0,this._itemsRenderData=[],this._elementCache=new Map,this._firstVisibleIndex=-1,this._lastVisibleIndex=-1,this._visibleItemsNum=0,this._selectedIndices=[],this._focusIndex=-1,this._lastKnownHeight=0,this.onScroll=()=>{this._lastKnownScrollTop=this.scrollTop;let e=this._lastRenderedScrollTop-this._lastKnownScrollTop;Math.abs(e)>=this.itemHeight&&(this._lastRenderedScrollTop=this._lastKnownScrollTop,this.requestUpdate())},this.handleKeyDown=e=>{let t=!0;switch(e.key){case`Down`:case`ArrowDown`:this.focusIndex=(this.focusIndex+1)%this.itemCount;break;case`Up`:case`ArrowUp`:this.focusIndex>0?this.focusIndex--:this.finalSizeIsKnown&&(this.focusIndex=this.itemCount-1);break;case`Enter`:this.handleSelection(this.focusIndex,e);break;case`End`:this.focusIndex=this.itemCount-1;break;case`PageDown`:this.focusIndex=this.normalizeIndex(this.focusIndex+this._visibleItemsNum-1);break;case`Home`:this.focusIndex=0;break;case`PageUp`:this.focusIndex=this.normalizeIndex(this.focusIndex-this._visibleItemsNum+1);break;default:t=!1;break}t&&(e.preventDefault(),e.stopPropagation())},this.handleClick=e=>{let t=e.composedPath().find(e=>e instanceof HTMLElement&&e.hasAttribute&&e.hasAttribute(`item-index`));if(t){let n=t.getAttribute(`item-index`);if(n!=null){let t=parseInt(n);Number.isInteger(t)&&((e.button==0||e.button==1)&&this.handleSelection(t,e),this.focusIndex=t)}}},this._resizeObserver=new ResizeObserver(()=>{this._lastKnownHeight!==this.offsetHeight&&(this._lastKnownHeight=this.offsetHeight,this.requestUpdate())})}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this),this.scrollTop!==this._lastKnownScrollTop&&(this.scrollTop=this._lastKnownScrollTop,this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.disconnect()}firstUpdated(e){super.firstUpdated(e),this.addEventListener(`scroll`,this.onScroll),this.addEventListener(`keydown`,this.handleKeyDown),this.addEventListener(`click`,this.handleClick),this.addEventListener(`mousedown`,e=>{e.button==1&&e.preventDefault()}),this.addEventListener(`auxclick`,this.handleClick),this.addEventListener(`focus`,()=>{this.matches(`:focus-visible`)&&(this.focusIndex==-1?(this.selectedIndices&&(this.focusIndex=this.selectedIndices[0]??-1),this.focusIndex==-1&&this.itemCount>0&&(this.focusIndex=0)):this.updateFocusedItemAttributes())}),this.addEventListener(`blur`,()=>{this.focusIndex!=-1&&this.updateFocusedItemAttributes()}),this.selectedIndices.length>0&&this.scrollToItem(this.selectedIndices[0]??-1,`center`)}updateFocusedItemAttributes(){let e=this.getListItem(this.focusIndex);e&&(this.focusTarget||document.activeElement==this?(e.setAttribute(`focused`,``),this.setAttribute(`aria-activedescendant`,e.id)):(e.removeAttribute(`focused`),this.removeAttribute(`aria-activedescendant`)))}static get styles(){return[Ye`
399
+ ${Je(Et)}
400
+ `]}render(){return this.updateItemsRenderData(),pe`
403
401
  <div class="container" style="height: ${this.itemCount*this.itemHeight}px">
404
402
  <slot name="items"></slot>
405
403
  </div>
406
- `}updated(e){if(super.updated(e),this._lastRenderedScrollTop=this._lastKnownScrollTop,this.updateItems(),(this._increaseWidthOnNextRenderIfNeeded||this._reachedMaxWidth)&&this._firstVisibleIndex<this._lastVisibleIndex)if(this.querySelector("[item-index]"))this.adjustWidthIfNeeded();else{const t=new MutationObserver(()=>{this.adjustWidthIfNeeded(),t.disconnect()});t.observe(this)}}adjustWidthIfNeeded(){this._increaseWidthOnNextRenderIfNeeded?(this._increaseWidthOnNextRenderIfNeeded=!1,window.requestAnimationFrame(()=>{const e=Number.parseInt(getComputedStyle(this).maxWidth)-this.offsetWidth;if(e==0)this._reachedMaxWidth=!0,this.enableLineClampOnItemsIfNeeded();else{this._reachedMaxWidth=!1;const t=[...this.querySelectorAll("[item-index]")].map(i=>{if(i instanceof qe){i.enableLineClamp=!1;const a=i.missingWidthForTexts;return a>e&&(i.enableLineClamp=!0),a}const o=i.scrollWidth-i.clientWidth;return o>0?o+1:0}),n=Math.max(...t);n>0&&(this.style.width=`${this.offsetWidth+n}px`)}})):this._reachedMaxWidth&&this.enableLineClampOnItemsIfNeeded()}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[item-index]").forEach(e=>{e instanceof qe&&(e.enableLineClamp=e.enableLineClamp||e.missingWidthForTexts>0)})}increaseWidthOnNextRenderIfNeeded(){this._increaseWidthOnNextRenderIfNeeded=!0}updateItems(){const e=[...this.querySelectorAll("[item-index]")],t=new Map,n=document.createDocumentFragment();for(const i of this._itemsRenderData){const o=this.renderItem(i);o.parentElement||n.appendChild(o),t.set(i.dataHash,o);const a=e.indexOf(o);a!==-1&&e.splice(a,1)}this.appendChild(n);for(const i of e)i instanceof qe&&(i.enableLineClamp=!1),this.removeChild(i);t.forEach((i,o)=>{this._elementCache.set(o,i)})}renderItem({index:e,top:t,dataHash:n,data:i}){let o;return i?this._elementCache.has(n)?(o=this._elementCache.get(n),this._elementCache.delete(n)):(o=this.itemGenerator(i,e),o.setAttribute("slot","items")):(o=document.createElement("div"),o.setAttribute("placeholder-item",""),o.setAttribute("slot","items")),Object.assign(o.style,{transform:`translateY(${t}px)`,height:`${this.itemHeight}px`}),o.setAttribute("item-index",e.toString()),o.setAttribute("aria-setsize",String(this.finalSizeIsKnown?this.itemCount:-1)),o.setAttribute("aria-posinset",String(e+1)),(!o.id||o.id.startsWith(this.id+"_item_"))&&(o.id=this.id+"_item_"+e),this.itemCount-1==e?o.setAttribute("last",""):o.removeAttribute("last"),this.updateSelectedAttribute(e,o),this.updateFocusedAttribute(e,o),o}updateFocusedAttribute(e,t){this.focusIndex==e&&(this.focusTarget||document.activeElement==this)?(t.setAttribute("focused",""),this.setAttribute("aria-activedescendant",t.id)):t.removeAttribute("focused")}updateSelectedAttribute(e,t){const n=this.selectedIndices.indexOf(e)!==-1;n?t.setAttribute("selected",""):t.removeAttribute("selected"),t.setAttribute("aria-selected",String(n))}updateItemsRenderData(){if(this._itemsRenderData=[],this._visibleItemsNum=Math.min(Math.ceil(this.height/this.itemHeight),this.itemCount),this._visibleItemsNum>0){this._firstVisibleIndex=this.normalizeIndex(Math.floor(this._lastKnownScrollTop/this.itemHeight)),this._lastVisibleIndex=this.normalizeIndex(this._firstVisibleIndex+this._visibleItemsNum);const e=this.normalizeIndex(this._firstVisibleIndex-2),t=this.normalizeIndex(this._lastVisibleIndex+2);this.requestData(e,t);for(let n=e;n<=t;n++){const i=n-e,o=this.items[i];let a;o?a=JSON.stringify(o):a=`placeholder-${i}`,this._itemsRenderData.push({index:n,top:this.itemHeight*n,physicalIndex:i,dataHash:a,data:o})}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0}normalizeIndex(e){return Math.max(0,Math.min(e,this.itemCount-1))}get height(){return this.offsetHeight}requestData(e,t){!Number.isNaN(e)&&!Number.isNaN(t)&&this.dispatchEvent(new CustomEvent("data-request",{detail:{startIndex:e,stopIndex:t}}))}handleSelection(e,t){if(e<0||this.itemCount<=e)return;const n=this.getListItem(e);if(n.getAttribute("aria-disabled")=="true"||n.hasAttribute("disabled"))return;let i=!0;if(this.selectionType!=="trigger-only"){const o=this.selectedIndices.indexOf(e);i=o==-1,i?this.selectionType==="single"?this.selectedIndices=[e]:this.selectedIndices.push(e):this.selectedIndices.splice(o,1),this.requestUpdate("selectedIndices")}this.focusIndex=e,this.dispatchSelectionEvent(e,i,t)}dispatchSelectionEvent(e,t,n){this.dispatchEvent(new CustomEvent("selection",{detail:{index:e,selected:t,originalEvent:n}}))}handleClick(e){const t=e.composedPath().find(n=>n.hasAttribute&&n.hasAttribute("item-index"));if(t){const n=parseInt(t.getAttribute("item-index"));Number.isInteger(n)&&((e.button==0||e.button==1)&&this.handleSelection(n,e),this.focusIndex=n)}}},de.ID="sd-virtual-list",de.ensureDefined=()=>{qe.ensureDefined(),customElements.get(de.ID)||customElements.define(de.ID,de)},de);Ae([K({type:Number,attribute:"item-height",reflect:!0})],ye.prototype,"itemHeight",2);Ae([K({type:Number})],ye.prototype,"itemCount",2);Ae([K({type:Array,attribute:!1})],ye.prototype,"items",2);Ae([K({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],ye.prototype,"selectionType",2);Ae([K({type:String,attribute:!0,reflect:!0})],ye.prototype,"id",2);Ae([K({type:String,reflect:!0})],ye.prototype,"role",2);Ae([K({type:Number,attribute:"focus-index",reflect:!0})],ye.prototype,"focusIndex",1);Ae([K({type:Array,attribute:!1})],ye.prototype,"selectedIndices",1);let Zr=ye;Zr.ensureDefined();function Gn(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Jr(s){if(Object.prototype.hasOwnProperty.call(s,"__esModule"))return s;var e=s.default;if(typeof e=="function"){var t=function n(){var i=!1;try{i=this instanceof n}catch{}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(n){var i=Object.getOwnPropertyDescriptor(s,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return s[n]}})}),t}var ft={exports:{}},ln;function Xr(){if(ln)return ft.exports;ln=1;var s=String,e=function(){return{isColorSupported:!1,reset:s,bold:s,dim:s,italic:s,underline:s,inverse:s,hidden:s,strikethrough:s,black:s,red:s,green:s,yellow:s,blue:s,magenta:s,cyan:s,white:s,gray:s,bgBlack:s,bgRed:s,bgGreen:s,bgYellow:s,bgBlue:s,bgMagenta:s,bgCyan:s,bgWhite:s,blackBright:s,redBright:s,greenBright:s,yellowBright:s,blueBright:s,magentaBright:s,cyanBright:s,whiteBright:s,bgBlackBright:s,bgRedBright:s,bgGreenBright:s,bgYellowBright:s,bgBlueBright:s,bgMagentaBright:s,bgCyanBright:s,bgWhiteBright:s}};return ft.exports=e(),ft.exports.createColors=e,ft.exports}const Qr={},Yr=Object.freeze(Object.defineProperty({__proto__:null,default:Qr},Symbol.toStringTag,{value:"Module"})),fe=Jr(Yr);var Ut,cn;function Ci(){if(cn)return Ut;cn=1;let s=Xr(),e=fe;class t extends Error{constructor(i,o,a,p,b,h){super(i),this.name="CssSyntaxError",this.reason=i,b&&(this.file=b),p&&(this.source=p),h&&(this.plugin=h),typeof o<"u"&&typeof a<"u"&&(typeof o=="number"?(this.line=o,this.column=a):(this.line=o.line,this.column=o.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(i){if(!this.source)return"";let o=this.source;i==null&&(i=s.isColorSupported);let a=l=>l,p=l=>l,b=l=>l;if(i){let{bold:l,gray:f,red:m}=s.createColors(!0);p=g=>l(m(g)),a=g=>f(g),e&&(b=g=>e(g))}let h=o.split(/\r?\n/),r=Math.max(this.line-3,0),u=Math.min(this.line+2,h.length),c=String(u).length;return h.slice(r,u).map((l,f)=>{let m=r+1+f,g=" "+(" "+m).slice(-c)+" | ";if(m===this.line){if(l.length>160){let E=20,v=Math.max(0,this.column-E),w=Math.max(this.column+E,this.endColumn+E),y=l.slice(v,w),A=a(g.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,E-1)).replace(/[^\t]/g," ");return p(">")+a(g)+b(y)+`
407
- `+A+p("^")}let _=a(g.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return p(">")+a(g)+b(l)+`
408
- `+_+p("^")}return" "+a(g)+b(l)}).join(`
409
- `)}toString(){let i=this.showSourceCode();return i&&(i=`
404
+ `}updated(e){super.updated(e),this._lastRenderedScrollTop=this._lastKnownScrollTop,this.updateItems(),(this._increaseWidthOnNextRenderIfNeeded||this._reachedMaxWidth)&&this._firstVisibleIndex<this._lastVisibleIndex&&this.adjustWidthIfNeeded()}adjustWidthIfNeeded(){this._increaseWidthOnNextRenderIfNeeded?(this._increaseWidthOnNextRenderIfNeeded=!1,window.requestAnimationFrame(()=>{let e=Number.parseInt(getComputedStyle(this).maxWidth)-this.offsetWidth;if(e==0)this._reachedMaxWidth=!0,this.enableLineClampOnItemsIfNeeded();else{this._reachedMaxWidth=!1;let t=[...this.querySelectorAll(`[item-index]`)].map(t=>{if(t instanceof Y){t.enableLineClamp=!1;let n=t.missingWidthForTexts;return n>e&&(t.enableLineClamp=!0),n}let n=t.scrollWidth-t.clientWidth;return n>0?n+1:0}),n=Math.max(...t);n>0&&(this.style.width=`${this.offsetWidth+n}px`)}})):this._reachedMaxWidth&&this.enableLineClampOnItemsIfNeeded()}enableLineClampOnItemsIfNeeded(){this.querySelectorAll(`[item-index]`).forEach(e=>{e instanceof Y&&(e.enableLineClamp=e.enableLineClamp||e.missingWidthForTexts>0)})}increaseWidthOnNextRenderIfNeeded(){this._increaseWidthOnNextRenderIfNeeded=!0}updateItems(){let e=[...this.querySelectorAll(`[item-index]`)],t=new Map,n=document.createDocumentFragment();for(let r of this._itemsRenderData){let i=this.renderItem(r);i.parentElement||n.appendChild(i),t.set(r.dataHash,i);let a=e.indexOf(i);a!==-1&&e.splice(a,1)}this.appendChild(n);for(let t of e)t instanceof Y&&(t.enableLineClamp=!1),this.removeChild(t);t.forEach((e,t)=>{this._elementCache.set(t,e)})}renderItem({index:e,top:t,dataHash:n,data:r}){let i;return r?this._elementCache.has(n)?(i=this._elementCache.get(n),this._elementCache.delete(n)):(i=this.itemGenerator(r,e),i.setAttribute(`slot`,`items`)):(i=document.createElement(`div`),i.setAttribute(`placeholder-item`,``),i.setAttribute(`slot`,`items`)),Object.assign(i.style,{transform:`translateY(${t}px)`,height:`${this.itemHeight}px`}),i.setAttribute(`item-index`,e.toString()),i.setAttribute(`aria-setsize`,String(this.finalSizeIsKnown?this.itemCount:-1)),i.setAttribute(`aria-posinset`,String(e+1)),(!i.id||i.id.startsWith(this.id+`_item_`))&&(i.id=this.id+`_item_`+e),this.itemCount-1==e?i.setAttribute(`last`,``):i.removeAttribute(`last`),this.updateSelectedAttribute(e,i),this.updateFocusedAttribute(e,i),i}updateFocusedAttribute(e,t){this.focusIndex==e&&(this.focusTarget||document.activeElement==this)?(t.setAttribute(`focused`,``),this.setAttribute(`aria-activedescendant`,t.id)):t.removeAttribute(`focused`)}updateSelectedAttribute(e,t){let n=this.selectedIndices.indexOf(e)!==-1;n?t.setAttribute(`selected`,``):t.removeAttribute(`selected`),t.setAttribute(`aria-selected`,String(n))}updateItemsRenderData(){if(this._itemsRenderData=[],this._visibleItemsNum=Math.min(Math.ceil(this.height/this.itemHeight),this.itemCount),this._visibleItemsNum>0){this._firstVisibleIndex=this.normalizeIndex(Math.floor(this._lastKnownScrollTop/this.itemHeight)),this._lastVisibleIndex=this.normalizeIndex(this._firstVisibleIndex+this._visibleItemsNum);let e=this.normalizeIndex(this._firstVisibleIndex-2),t=this.normalizeIndex(this._lastVisibleIndex+2);this.requestData(e,t);for(let n=e;n<=t;n++){let t=n-e,r=this.items[t],i;i=r?JSON.stringify(r):`placeholder-${t}`,this._itemsRenderData.push({index:n,top:this.itemHeight*n,physicalIndex:t,dataHash:i,data:r})}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0}normalizeIndex(e){return Math.max(0,Math.min(e,this.itemCount-1))}get height(){return this.offsetHeight}requestData(e,t){!Number.isNaN(e)&&!Number.isNaN(t)&&this.dispatchEvent(new CustomEvent(`sd-virtual-list-data-request`,{detail:{startIndex:e,stopIndex:t}}))}handleSelection(e,t){if(e<0||this.itemCount<=e)return;let n=this.getListItem(e);if(n==null||n.getAttribute(`aria-disabled`)==`true`||n.hasAttribute(`disabled`))return;let r=!0;if(this.selectionType!==Ot.TriggerOnly){let t=this.selectedIndices.indexOf(e);r=t==-1,r?this.selectionType===Ot.Single?this.selectedIndices=[e]:this.selectedIndices.push(e):this.selectedIndices.splice(t,1),this.requestUpdate(`selectedIndices`)}this.focusIndex=e,this.dispatchSelectionEvent(e,r,t)}dispatchSelectionEvent(e,t,n){this.dispatchEvent(new CustomEvent(`sd-virtual-list-selection`,{detail:{index:e,selected:t,originalEvent:n}}))}};wt([K({type:Number,attribute:`item-height`,reflect:!0}),X(`design:type`,Number)],Z.prototype,`itemHeight`,void 0),wt([K({type:Number}),X(`design:type`,Number)],Z.prototype,`itemCount`,void 0),wt([K({type:Array,attribute:!1}),X(`design:type`,Array)],Z.prototype,`items`,void 0),wt([K({type:String,attribute:`selection-type`,reflect:!0,noAccessor:!0}),X(`design:type`,typeof(Dt=Ot!==void 0&&Ot)==`function`?Dt:Object)],Z.prototype,`selectionType`,void 0),wt([K({type:String,attribute:!0,reflect:!0}),X(`design:type`,String)],Z.prototype,`id`,void 0),wt([K({type:String,reflect:!0}),X(`design:type`,Object)],Z.prototype,`role`,void 0),wt([K({type:Number,attribute:`focus-index`,reflect:!0}),X(`design:type`,Number),X(`design:paramtypes`,[])],Z.prototype,`focusIndex`,null),wt([K({type:Array,attribute:!1}),X(`design:type`,Array),X(`design:paramtypes`,[])],Z.prototype,`selectedIndices`,null),Z.ensureDefined();var At=o(((e,t)=>{var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};t.exports=r(),t.exports.createColors=r})),Q=o(((e,t)=>{t.exports={}})),jt=o(((e,t)=>{var n=At(),r=Q(),i=class e extends Error{constructor(t,n,r,i,a,o){super(t),this.name=`CssSyntaxError`,this.reason=t,a&&(this.file=a),i&&(this.source=i),o&&(this.plugin=o),n!==void 0&&r!==void 0&&(typeof n==`number`?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,this.line!==void 0&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason}showSourceCode(e){if(!this.source)return``;let t=this.source;e??=n.isColorSupported;let i=e=>e,a=e=>e,o=e=>e;if(e){let{bold:e,gray:t,red:s}=n.createColors(!0);a=t=>e(s(t)),i=e=>t(e),r&&(o=e=>r(e))}let s=t.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length;return s.slice(c,l).map((e,t)=>{let n=c+1+t,r=` `+(` `+n).slice(-u)+` | `;if(n===this.line){if(e.length>160){let t=Math.max(0,this.column-20),n=Math.max(this.column+20,this.endColumn+20),s=e.slice(t,n),c=i(r.replace(/\d/g,` `))+e.slice(0,Math.min(this.column-1,19)).replace(/[^\t]/g,` `);return a(`>`)+i(r)+o(s)+`
405
+ `+c+a(`^`)}let t=i(r.replace(/\d/g,` `))+e.slice(0,this.column-1).replace(/[^\t]/g,` `);return a(`>`)+i(r)+o(e)+`
406
+ `+t+a(`^`)}return` `+i(r)+o(e)}).join(`
407
+ `)}toString(){let e=this.showSourceCode();return e&&=`
410
408
 
411
- `+i+`
412
- `),this.name+": "+this.message+i}}return Ut=t,t.default=t,Ut}var Bt,un;function Kn(){if(un)return Bt;un=1;const s={after:`
409
+ `+e+`
410
+ `,this.name+`: `+this.message+e}};t.exports=i,i.default=i})),Mt=o(((e,t)=>{var n={after:`
413
411
  `,beforeClose:`
414
412
  `,beforeComment:`
415
413
  `,beforeDecl:`
416
- `,beforeOpen:" ",beforeRule:`
417
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(n){return n[0].toUpperCase()+n.slice(1)}class t{constructor(i){this.builder=i}atrule(i,o){let a="@"+i.name,p=i.params?this.rawValue(i,"params"):"";if(typeof i.raws.afterName<"u"?a+=i.raws.afterName:p&&(a+=" "),i.nodes)this.block(i,a+p);else{let b=(i.raws.between||"")+(o?";":"");this.builder(a+p+b,i)}}beforeAfter(i,o){let a;i.type==="decl"?a=this.raw(i,null,"beforeDecl"):i.type==="comment"?a=this.raw(i,null,"beforeComment"):o==="before"?a=this.raw(i,null,"beforeRule"):a=this.raw(i,null,"beforeClose");let p=i.parent,b=0;for(;p&&p.type!=="root";)b+=1,p=p.parent;if(a.includes(`
418
- `)){let h=this.raw(i,null,"indent");if(h.length)for(let r=0;r<b;r++)a+=h}return a}block(i,o){let a=this.raw(i,"between","beforeOpen");this.builder(o+a+"{",i,"start");let p;i.nodes&&i.nodes.length?(this.body(i),p=this.raw(i,"after")):p=this.raw(i,"after","emptyBody"),p&&this.builder(p),this.builder("}",i,"end")}body(i){let o=i.nodes.length-1;for(;o>0&&i.nodes[o].type==="comment";)o-=1;let a=this.raw(i,"semicolon");for(let p=0;p<i.nodes.length;p++){let b=i.nodes[p],h=this.raw(b,"before");h&&this.builder(h),this.stringify(b,o!==p||a)}}comment(i){let o=this.raw(i,"left","commentLeft"),a=this.raw(i,"right","commentRight");this.builder("/*"+o+i.text+a+"*/",i)}decl(i,o){let a=this.raw(i,"between","colon"),p=i.prop+a+this.rawValue(i,"value");i.important&&(p+=i.raws.important||" !important"),o&&(p+=";"),this.builder(p,i)}document(i){this.body(i)}raw(i,o,a){let p;if(a||(a=o),o&&(p=i.raws[o],typeof p<"u"))return p;let b=i.parent;if(a==="before"&&(!b||b.type==="root"&&b.first===i||b&&b.type==="document"))return"";if(!b)return s[a];let h=i.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[a]<"u")return h.rawCache[a];if(a==="before"||a==="after")return this.beforeAfter(i,a);{let r="raw"+e(a);this[r]?p=this[r](h,i):h.walk(u=>{if(p=u.raws[o],typeof p<"u")return!1})}return typeof p>"u"&&(p=s[a]),h.rawCache[a]=p,p}rawBeforeClose(i){let o;return i.walk(a=>{if(a.nodes&&a.nodes.length>0&&typeof a.raws.after<"u")return o=a.raws.after,o.includes(`
419
- `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(i,o){let a;return i.walkComments(p=>{if(typeof p.raws.before<"u")return a=p.raws.before,a.includes(`
420
- `)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(o,null,"beforeDecl"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeDecl(i,o){let a;return i.walkDecls(p=>{if(typeof p.raws.before<"u")return a=p.raws.before,a.includes(`
421
- `)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(o,null,"beforeRule"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(i){let o;return i.walk(a=>{if(a.type!=="decl"&&(o=a.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(i){let o;return i.walk(a=>{if(a.nodes&&(a.parent!==i||i.first!==a)&&typeof a.raws.before<"u")return o=a.raws.before,o.includes(`
422
- `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(i){let o;return i.walkDecls(a=>{if(typeof a.raws.between<"u")return o=a.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(i){let o;return i.walk(a=>{if(a.nodes&&a.nodes.length===0&&(o=a.raws.after,typeof o<"u"))return!1}),o}rawIndent(i){if(i.raws.indent)return i.raws.indent;let o;return i.walk(a=>{let p=a.parent;if(p&&p!==i&&p.parent&&p.parent===i&&typeof a.raws.before<"u"){let b=a.raws.before.split(`
423
- `);return o=b[b.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(i){let o;return i.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(o=a.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(i,o){let a=i[o],p=i.raws[o];return p&&p.value===a?p.raw:a}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,o){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,o)}}return Bt=t,t.default=t,Bt}var qt,hn;function Et(){if(hn)return qt;hn=1;let s=Kn();function e(t,n){new s(n).stringify(t)}return qt=e,e.default=e,qt}var pt={},dn;function ki(){return dn||(dn=1,pt.isClean=Symbol("isClean"),pt.my=Symbol("my")),pt}var Ht,fn;function At(){if(fn)return Ht;fn=1;let s=Ci(),e=Kn(),t=Et(),{isClean:n,my:i}=ki();function o(b,h){let r=new b.constructor;for(let u in b){if(!Object.prototype.hasOwnProperty.call(b,u)||u==="proxyCache")continue;let c=b[u],l=typeof c;u==="parent"&&l==="object"?h&&(r[u]=h):u==="source"?r[u]=c:Array.isArray(c)?r[u]=c.map(f=>o(f,r)):(l==="object"&&c!==null&&(c=o(c)),r[u]=c)}return r}function a(b,h){if(h&&typeof h.offset<"u")return h.offset;let r=1,u=1,c=0;for(let l=0;l<b.length;l++){if(u===h.line&&r===h.column){c=l;break}b[l]===`
424
- `?(r=1,u+=1):r+=1}return c}class p{get proxyOf(){return this}constructor(h={}){this.raws={},this[n]=!1,this[i]=!0;for(let r in h)if(r==="nodes"){this.nodes=[];for(let u of h[r])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[r]=h[r]}addToError(h){if(h.postcssNode=this,h.stack&&this.source&&/\n\s{4}at /.test(h.stack)){let r=this.source;h.stack=h.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return h}after(h){return this.parent.insertAfter(this,h),this}assign(h={}){for(let r in h)this[r]=h[r];return this}before(h){return this.parent.insertBefore(this,h),this}cleanRaws(h){delete this.raws.before,delete this.raws.after,h||delete this.raws.between}clone(h={}){let r=o(this);for(let u in h)r[u]=h[u];return r}cloneAfter(h={}){let r=this.clone(h);return this.parent.insertAfter(this,r),r}cloneBefore(h={}){let r=this.clone(h);return this.parent.insertBefore(this,r),r}error(h,r={}){if(this.source){let{end:u,start:c}=this.rangeBy(r);return this.source.input.error(h,{column:c.column,line:c.line},{column:u.column,line:u.line},r)}return new s(h)}getProxyProcessor(){return{get(h,r){return r==="proxyOf"?h:r==="root"?()=>h.root().toProxy():h[r]},set(h,r,u){return h[r]===u||(h[r]=u,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&h.markDirty()),!0}}}markClean(){this[n]=!0}markDirty(){if(this[n]){this[n]=!1;let h=this;for(;h=h.parent;)h[n]=!1}}next(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h+1]}positionBy(h={}){let r=this.source.start;if(h.index)r=this.positionInside(h.index);else if(h.word){let u="document"in this.source.input?this.source.input.document:this.source.input.css,l=u.slice(a(u,this.source.start),a(u,this.source.end)).indexOf(h.word);l!==-1&&(r=this.positionInside(l))}return r}positionInside(h){let r=this.source.start.column,u=this.source.start.line,c="document"in this.source.input?this.source.input.document:this.source.input.css,l=a(c,this.source.start),f=l+h;for(let m=l;m<f;m++)c[m]===`
425
- `?(r=1,u+=1):r+=1;return{column:r,line:u,offset:f}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,u={column:this.source.start.column,line:this.source.start.line,offset:a(r,this.source.start)},c=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:a(r,this.source.end)+1}:{column:u.column+1,line:u.line,offset:u.offset+1};if(h.word){let f=r.slice(a(r,this.source.start),a(r,this.source.end)).indexOf(h.word);f!==-1&&(u=this.positionInside(f),c=this.positionInside(f+h.word.length))}else h.start?u={column:h.start.column,line:h.start.line,offset:a(r,h.start)}:h.index&&(u=this.positionInside(h.index)),h.end?c={column:h.end.column,line:h.end.line,offset:a(r,h.end)}:typeof h.endIndex=="number"?c=this.positionInside(h.endIndex):h.index&&(c=this.positionInside(h.index+1));return(c.line<u.line||c.line===u.line&&c.column<=u.column)&&(c={column:u.column+1,line:u.line,offset:u.offset+1}),{end:c,start:u}}raw(h,r){return new e().raw(this,h,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let r=this,u=!1;for(let c of h)c===this?u=!0:u?(this.parent.insertAfter(r,c),r=c):this.parent.insertBefore(r,c);u||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,r){let u={},c=r==null;r=r||new Map;let l=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let m=this[f];if(Array.isArray(m))u[f]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,r):g);else if(typeof m=="object"&&m.toJSON)u[f]=m.toJSON(null,r);else if(f==="source"){if(m==null)continue;let g=r.get(m.input);g==null&&(g=l,r.set(m.input,l),l++),u[f]={end:m.end,inputId:g,start:m.start}}else u[f]=m}return c&&(u.inputs=[...r.keys()].map(f=>f.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=t){h.stringify&&(h=h.stringify);let r="";return h(this,u=>{r+=u}),r}warn(h,r,u={}){let c={node:this};for(let l in u)c[l]=u[l];return h.warn(r,c)}}return Ht=p,p.default=p,Ht}var Ft,pn;function St(){if(pn)return Ft;pn=1;let s=At();class e extends s{constructor(n){super(n),this.type="comment"}}return Ft=e,e.default=e,Ft}var Wt,mn;function Ct(){if(mn)return Wt;mn=1;let s=At();class e extends s{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(n){n&&typeof n.value<"u"&&typeof n.value!="string"&&(n={...n,value:String(n.value)}),super(n),this.type="decl"}}return Wt=e,e.default=e,Wt}var Vt,gn;function Te(){if(gn)return Vt;gn=1;let s=St(),e=Ct(),t=At(),{isClean:n,my:i}=ki(),o,a,p,b;function h(c){return c.map(l=>(l.nodes&&(l.nodes=h(l.nodes)),delete l.source,l))}function r(c){if(c[n]=!1,c.proxyOf.nodes)for(let l of c.proxyOf.nodes)r(l)}class u extends t{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...l){for(let f of l){let m=this.normalize(f,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let f of this.nodes)f.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let f=this.getIterator(),m,g;for(;this.indexes[f]<this.proxyOf.nodes.length&&(m=this.indexes[f],g=l(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[f]+=1;return delete this.indexes[f],g}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,f){return f==="proxyOf"?l:l[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...m)=>l[f](...m.map(g=>typeof g=="function"?(_,E)=>g(_.toProxy(),E):g)):f==="every"||f==="some"?m=>l[f]((g,..._)=>m(g.toProxy(),..._)):f==="root"?()=>l.root().toProxy():f==="nodes"?l.nodes.map(m=>m.toProxy()):f==="first"||f==="last"?l[f].toProxy():l[f]:l[f]},set(l,f,m){return l[f]===m||(l[f]=m,(f==="name"||f==="params"||f==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,f){let m=this.index(l),g=this.normalize(f,this.proxyOf.nodes[m]).reverse();m=this.index(l);for(let E of g)this.proxyOf.nodes.splice(m+1,0,E);let _;for(let E in this.indexes)_=this.indexes[E],m<_&&(this.indexes[E]=_+g.length);return this.markDirty(),this}insertBefore(l,f){let m=this.index(l),g=m===0?"prepend":!1,_=this.normalize(f,this.proxyOf.nodes[m],g).reverse();m=this.index(l);for(let v of _)this.proxyOf.nodes.splice(m,0,v);let E;for(let v in this.indexes)E=this.indexes[v],m<=E&&(this.indexes[v]=E+_.length);return this.markDirty(),this}normalize(l,f){if(typeof l=="string")l=h(a(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new e(l)]}else if(l.selector||l.selectors)l=[new b(l)];else if(l.name)l=[new o(l)];else if(l.text)l=[new s(l)];else throw new Error("Unknown node type in node creation");return l.map(g=>(g[i]||u.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[n]&&r(g),g.raws||(g.raws={}),typeof g.raws.before>"u"&&f&&typeof f.raws.before<"u"&&(g.raws.before=f.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...l){l=l.reverse();for(let f of l){let m=this.normalize(f,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let f;for(let m in this.indexes)f=this.indexes[m],f>=l&&(this.indexes[m]=f-1);return this.markDirty(),this}replaceValues(l,f,m){return m||(m=f,f={}),this.walkDecls(g=>{f.props&&!f.props.includes(g.prop)||f.fast&&!g.value.includes(f.fast)||(g.value=g.value.replace(l,m))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((f,m)=>{let g;try{g=l(f,m)}catch(_){throw f.addToError(_)}return g!==!1&&f.walk&&(g=f.walk(l)),g})}walkAtRules(l,f){return f?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&l.test(m.name))return f(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===l)return f(m,g)}):(f=l,this.walk((m,g)=>{if(m.type==="atrule")return f(m,g)}))}walkComments(l){return this.walk((f,m)=>{if(f.type==="comment")return l(f,m)})}walkDecls(l,f){return f?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&l.test(m.prop))return f(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===l)return f(m,g)}):(f=l,this.walk((m,g)=>{if(m.type==="decl")return f(m,g)}))}walkRules(l,f){return f?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&l.test(m.selector))return f(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===l)return f(m,g)}):(f=l,this.walk((m,g)=>{if(m.type==="rule")return f(m,g)}))}}return u.registerParse=c=>{a=c},u.registerRule=c=>{b=c},u.registerAtRule=c=>{o=c},u.registerRoot=c=>{p=c},Vt=u,u.default=u,u.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,o.prototype):c.type==="rule"?Object.setPrototypeOf(c,b.prototype):c.type==="decl"?Object.setPrototypeOf(c,e.prototype):c.type==="comment"?Object.setPrototypeOf(c,s.prototype):c.type==="root"&&Object.setPrototypeOf(c,p.prototype),c[i]=!0,c.nodes&&c.nodes.forEach(l=>{u.rebuild(l)})},Vt}var Gt,bn;function Ii(){if(bn)return Gt;bn=1;let s=Te();class e extends s{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}}return Gt=e,e.default=e,s.registerAtRule(e),Gt}var Kt,yn;function $i(){if(yn)return Kt;yn=1;let s=Te(),e,t;class n extends s{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new e(new t,this,o).stringify()}}return n.registerLazyResult=i=>{e=i},n.registerProcessor=i=>{t=i},Kt=n,n.default=n,Kt}var Zt,wn;function eo(){if(wn)return Zt;wn=1;let s="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Zt={nanoid:(n=21)=>{let i="",o=n|0;for(;o--;)i+=s[Math.random()*64|0];return i},customAlphabet:(n,i=21)=>(o=i)=>{let a="",p=o|0;for(;p--;)a+=n[Math.random()*n.length|0];return a}},Zt}var Jt,vn;function Zn(){if(vn)return Jt;vn=1;let{existsSync:s,readFileSync:e}=fe,{dirname:t,join:n}=fe,{SourceMapConsumer:i,SourceMapGenerator:o}=fe;function a(b){return Buffer?Buffer.from(b,"base64").toString():window.atob(b)}class p{constructor(h,r){if(r.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let u=r.map?r.map.prev:void 0,c=this.loadMap(r.from,u);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=t(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(h){let r=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/,f=h.match(c)||h.match(l);if(f)return decodeURIComponent(h.substr(f[0].length));let m=h.match(r)||h.match(u);if(m)return a(h.substr(m[0].length));let g=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let r=h.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let u=h.lastIndexOf(r.pop()),c=h.indexOf("*/",u);u>-1&&c>-1&&(this.annotation=this.getAnnotationURL(h.substring(u,c)))}loadFile(h){if(this.root=t(h),s(h))return this.mapFile=h,e(h,"utf-8").toString().trim()}loadMap(h,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let u=r(h);if(u){let c=this.loadFile(u);if(!c)throw new Error("Unable to load previous source map: "+u.toString());return c}}else{if(r instanceof i)return o.fromSourceMap(r).toString();if(r instanceof o)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return h&&(u=n(t(h),u)),this.loadFile(u)}}}startWith(h,r){return h?h.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Jt=p,p.default=p,Jt}var Xt,xn;function kt(){if(xn)return Xt;xn=1;let{nanoid:s}=eo(),{isAbsolute:e,resolve:t}=fe,{SourceMapConsumer:n,SourceMapGenerator:i}=fe,{fileURLToPath:o,pathToFileURL:a}=fe,p=Ci(),b=Zn(),h=fe,r=Symbol("lineToIndexCache"),u=!!(n&&i),c=!!(t&&e);function l(m){if(m[r])return m[r];let g=m.css.split(`
426
- `),_=new Array(g.length),E=0;for(let v=0,w=g.length;v<w;v++)_[v]=E,E+=g[v].length+1;return m[r]=_,_}class f{get from(){return this.file||this.id}constructor(g,_={}){if(g===null||typeof g>"u"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,_.document&&(this.document=_.document.toString()),_.from&&(!c||/^\w+:\/\//.test(_.from)||e(_.from)?this.file=_.from:this.file=t(_.from)),c&&u){let E=new b(this.css,_);if(E.text){this.map=E;let v=E.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(g,_,E,v={}){let w,y,A,I,P;if(_&&typeof _=="object"){let M=_,X=E;if(typeof M.offset=="number"){I=M.offset;let H=this.fromOffset(I);_=H.line,E=H.col}else _=M.line,E=M.column,I=this.fromLineAndColumn(_,E);if(typeof X.offset=="number"){A=X.offset;let H=this.fromOffset(A);y=H.line,w=H.col}else y=X.line,w=X.column,A=this.fromLineAndColumn(X.line,X.column)}else if(E)I=this.fromLineAndColumn(_,E);else{I=_;let M=this.fromOffset(I);_=M.line,E=M.col}let U=this.origin(_,E,y,w);return U?P=new p(g,U.endLine===void 0?U.line:{column:U.column,line:U.line},U.endLine===void 0?U.column:{column:U.endColumn,line:U.endLine},U.source,U.file,v.plugin):P=new p(g,y===void 0?_:{column:E,line:_},y===void 0?E:{column:w,line:y},this.css,this.file,v.plugin),P.input={column:E,endColumn:w,endLine:y,endOffset:A,line:_,offset:I,source:this.css},this.file&&(a&&(P.input.url=a(this.file).toString()),P.input.file=this.file),P}fromLineAndColumn(g,_){return l(this)[g-1]+_-1}fromOffset(g){let _=l(this),E=_[_.length-1],v=0;if(g>=E)v=_.length-1;else{let w=_.length-2,y;for(;v<w;)if(y=v+(w-v>>1),g<_[y])w=y-1;else if(g>=_[y+1])v=y+1;else{v=y;break}}return{col:g-_[v]+1,line:v+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:t(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,_,E,v){if(!this.map)return!1;let w=this.map.consumer(),y=w.originalPositionFor({column:_,line:g});if(!y.source)return!1;let A;typeof E=="number"&&(A=w.originalPositionFor({column:v,line:E}));let I;e(y.source)?I=a(y.source):I=new URL(y.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let P={column:y.column,endColumn:A&&A.column,endLine:A&&A.line,line:y.line,url:I.toString()};if(I.protocol==="file:")if(o)P.file=o(I);else throw new Error("file: protocol is not available in this PostCSS build");let U=w.sourceContentFor(y.source);return U&&(P.source=U),P}toJSON(){let g={};for(let _ of["hasBOM","css","file","id"])this[_]!=null&&(g[_]=this[_]);return this.map&&(g.map={...this.map},g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Xt=f,f.default=f,h&&h.registerInput&&h.registerInput(f),Xt}var Qt,_n;function st(){if(_n)return Qt;_n=1;let s=Te(),e,t;class n extends s{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,a,p){let b=super.normalize(o);if(a){if(p==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let h of b)h.raws.before=a.raws.before}return b}removeChild(o,a){let p=this.index(o);return!a&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(o)}toResult(o={}){return new e(new t,this,o).stringify()}}return n.registerLazyResult=i=>{e=i},n.registerProcessor=i=>{t=i},Qt=n,n.default=n,s.registerRoot(n),Qt}var Yt,En;function Jn(){if(En)return Yt;En=1;let s={comma(e){return s.split(e,[","],!0)},space(e){let t=[" ",`
427
- `," "];return s.split(e,t)},split(e,t,n){let i=[],o="",a=!1,p=0,b=!1,h="",r=!1;for(let u of e)r?r=!1:u==="\\"?r=!0:b?u===h&&(b=!1):u==='"'||u==="'"?(b=!0,h=u):u==="("?p+=1:u===")"?p>0&&(p-=1):p===0&&t.includes(u)&&(a=!0),a?(o!==""&&i.push(o.trim()),o="",a=!1):o+=u;return(n||o!=="")&&i.push(o.trim()),i}};return Yt=s,s.default=s,Yt}var ei,An;function Oi(){if(An)return ei;An=1;let s=Te(),e=Jn();class t extends s{get selectors(){return e.comma(this.selector)}set selectors(i){let o=this.selector?this.selector.match(/,\s*/):null,a=o?o[0]:","+this.raw("between","beforeOpen");this.selector=i.join(a)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}}return ei=t,t.default=t,s.registerRule(t),ei}var ti,Sn;function to(){if(Sn)return ti;Sn=1;let s=Ii(),e=St(),t=Ct(),n=kt(),i=Zn(),o=st(),a=Oi();function p(b,h){if(Array.isArray(b))return b.map(c=>p(c));let{inputs:r,...u}=b;if(r){h=[];for(let c of r){let l={...c,__proto__:n.prototype};l.map&&(l.map={...l.map,__proto__:i.prototype}),h.push(l)}}if(u.nodes&&(u.nodes=b.nodes.map(c=>p(c,h))),u.source){let{inputId:c,...l}=u.source;u.source=l,c!=null&&(u.source.input=h[c])}if(u.type==="root")return new o(u);if(u.type==="decl")return new t(u);if(u.type==="rule")return new a(u);if(u.type==="comment")return new e(u);if(u.type==="atrule")return new s(u);throw new Error("Unknown node type: "+b.type)}return ti=p,p.default=p,ti}var ii,Cn;function Xn(){if(Cn)return ii;Cn=1;let{dirname:s,relative:e,resolve:t,sep:n}=fe,{SourceMapConsumer:i,SourceMapGenerator:o}=fe,{pathToFileURL:a}=fe,p=kt(),b=!!(i&&o),h=!!(s&&t&&e&&n);class r{constructor(c,l,f,m){this.stringify=c,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 c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let l=`
414
+ `,beforeOpen:` `,beforeRule:`
415
+ `,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function r(e){return e[0].toUpperCase()+e.slice(1)}var i=class{constructor(e){this.builder=e}atrule(e,t){let n=`@`+e.name,r=e.params?this.rawValue(e,`params`):``;if(e.raws.afterName===void 0?r&&(n+=` `):n+=e.raws.afterName,e.nodes)this.block(e,n+r);else{let i=(e.raws.between||``)+(t?`;`:``);this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n=e.type===`decl`?this.raw(e,null,`beforeDecl`):e.type===`comment`?this.raw(e,null,`beforeComment`):t===`before`?this.raw(e,null,`beforeRule`):this.raw(e,null,`beforeClose`);let r=e.parent,i=0;for(;r&&r.type!==`root`;)i+=1,r=r.parent;if(n.includes(`
416
+ `)){let t=this.raw(e,null,`indent`);if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n=this.raw(e,`between`,`beforeOpen`);this.builder(t+n+`{`,e,`start`);let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,`after`)):r=this.raw(e,`after`,`emptyBody`),r&&this.builder(r),this.builder(`}`,e,`end`)}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type===`comment`;)--t;let n=this.raw(e,`semicolon`);for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],a=this.raw(i,`before`);a&&this.builder(a),this.stringify(i,t!==r||n)}}comment(e){let t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(`/*`+t+e.text+n+`*/`,e)}decl(e,t){let n=this.raw(e,`between`,`colon`),r=e.prop+n+this.rawValue(e,`value`);e.important&&(r+=e.raws.important||` !important`),t&&(r+=`;`),this.builder(r,e)}document(e){this.body(e)}raw(e,t,i){let a;if(i||=t,t&&(a=e.raws[t],a!==void 0))return a;let o=e.parent;if(i===`before`&&(!o||o.type===`root`&&o.first===e||o&&o.type===`document`))return``;if(!o)return n[i];let s=e.root();if(s.rawCache||={},s.rawCache[i]!==void 0)return s.rawCache[i];if(i===`before`||i===`after`)return this.beforeAfter(e,i);{let n=`raw`+r(i);this[n]?a=this[n](s,e):s.walk(e=>{if(a=e.raws[t],a!==void 0)return!1})}return a===void 0&&(a=n[i]),s.rawCache[i]=a,a}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&e.raws.after!==void 0)return t=e.raws.after,t.includes(`
417
+ `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
418
+ `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeDecl`):n&&=n.replace(/\S/g,``),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
419
+ `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeRule`):n&&=n.replace(/\S/g,``),n}rawBeforeOpen(e){let t;return e.walk(e=>{if(e.type!==`decl`&&(t=e.raws.between,t!==void 0))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&n.raws.before!==void 0)return t=n.raws.before,t.includes(`
420
+ `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawColon(e){let t;return e.walkDecls(e=>{if(e.raws.between!==void 0)return t=e.raws.between.replace(/[^\s:]/g,``),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length===0&&(t=e.raws.after,t!==void 0))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&n.raws.before!==void 0){let e=n.raws.before.split(`
421
+ `);return t=e[e.length-1],t=t.replace(/\S/g,``),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&e.last.type===`decl`&&(t=e.raws.semicolon,t!==void 0))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}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 Error(`Unknown AST node type `+e.type+`. Maybe you need to change PostCSS stringifier.`);this[e.type](e,t)}};t.exports=i,i.default=i})),Nt=o(((e,t)=>{var n=Mt();function r(e,t){new n(t).stringify(e)}t.exports=r,r.default=r})),Pt=o(((e,t)=>{t.exports.isClean=Symbol(`isClean`),t.exports.my=Symbol(`my`)})),Ft=o(((e,t)=>{var n=jt(),r=Mt(),i=Nt(),{isClean:a,my:o}=Pt();function s(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r===`proxyCache`)continue;let i=e[r],a=typeof i;r===`parent`&&a===`object`?t&&(n[r]=t):r===`source`?n[r]=i:Array.isArray(i)?n[r]=i.map(e=>s(e,n)):(a===`object`&&i!==null&&(i=s(i)),n[r]=i)}return n}function c(e,t){if(t&&t.offset!==void 0)return t.offset;let n=1,r=1,i=0;for(let a=0;a<e.length;a++){if(r===t.line&&n===t.column){i=a;break}e[a]===`
422
+ `?(n=1,r+=1):n+=1}return i}var l=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[a]=!1,this[o]=!0;for(let t in e)if(t===`nodes`){this.nodes=[];for(let n of e[t])typeof n.clone==`function`?this.append(n.clone()):this.append(n)}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=s(this);for(let n in e)t[n]=e[n];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:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new n(e)}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:t===`root`?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n?!0:(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||t===`text`)&&e.markDirty(),!0)}}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let e=this;for(;e=e.parent;)e[a]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n=`document`in this.source.input?this.source.input.document:this.source.input.css,r=n.slice(c(n,this.source.start),c(n,this.source.end)).indexOf(e.word);r!==-1&&(t=this.positionInside(r))}return t}positionInside(e){let t=this.source.start.column,n=this.source.start.line,r=`document`in this.source.input?this.source.input.document:this.source.input.css,i=c(r,this.source.start),a=i+e;for(let e=i;e<a;e++)r[e]===`
423
+ `?(t=1,n+=1):t+=1;return{column:t,line:n,offset:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t=`document`in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)},r=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:c(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);i!==-1&&(n=this.positionInside(i),r=this.positionInside(i+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:c(t,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:c(t,e.end)}:typeof e.endIndex==`number`?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line,offset:n.offset+1}),{end:r,start:n}}raw(e,t){return new r().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,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!==`document`;)e=e.parent;return e}toJSON(e,t){let n={},r=t==null;t||=new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||e===`parent`||e===`proxyCache`)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map(e=>typeof e==`object`&&e.toJSON?e.toJSON(null,t):e);else if(typeof r==`object`&&r.toJSON)n[e]=r.toJSON(null,t);else if(e===`source`){if(r==null)continue;let a=t.get(r.input);a??(a=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:a,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map(e=>e.toJSON())),n}toProxy(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t=``;return e(this,e=>{t+=e}),t}warn(e,t,n={}){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}};t.exports=l,l.default=l})),It=o(((e,t)=>{var n=Ft(),r=class extends n{constructor(e){super(e),this.type=`comment`}};t.exports=r,r.default=r})),Lt=o(((e,t)=>{var n=Ft(),r=class extends n{get variable(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}constructor(e){e&&e.value!==void 0&&typeof e.value!=`string`&&(e={...e,value:String(e.value)}),super(e),this.type=`decl`}};t.exports=r,r.default=r})),Rt=o(((e,t)=>{var n=It(),r=Lt(),i=Ft(),{isClean:a,my:o}=Pt(),s,c,l,u;function d(e){return e.map(e=>(e.nodes&&=d(e.nodes),delete e.source,e))}function f(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}var p=class e 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(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}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(),n,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||=0,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`)?(...n)=>e[t](...n.map(e=>typeof e==`function`?(t,n)=>e(t.toProxy(),n):e)):t===`every`||t===`some`?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):t===`root`?()=>e.root().toProxy():t===`nodes`?e.nodes.map(e=>e.toProxy()):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n?!0:(e[t]=n,(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 n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of r)this.proxyOf.nodes.splice(n+1,0,e);let i;for(let e in this.indexes)i=this.indexes[e],n<i&&(this.indexes[e]=i+r.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),r=n===0?`prepend`:!1,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n,0,e);let a;for(let e in this.indexes)a=this.indexes[e],n<=a&&(this.indexes[e]=a+i.length);return this.markDirty(),this}normalize(t,i){if(typeof t==`string`)t=d(c(t).nodes);else if(t===void 0)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type===`root`&&this.type!==`document`){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type)t=[t];else if(t.prop){if(t.value===void 0)throw Error(`Value field is missed in node creation`);typeof t.value!=`string`&&(t.value=String(t.value)),t=[new r(t)]}else if(t.selector||t.selectors)t=[new u(t)];else if(t.name)t=[new s(t)];else if(t.text)t=[new n(t)];else throw Error(`Unknown node type in node creation`);return t.map(t=>(t[o]||e.rebuild(t),t=t.proxyOf,t.parent&&t.parent.removeChild(t),t[a]&&f(t),t.raws||={},t.raws.before===void 0&&i&&i.raws.before!==void 0&&(t.raws.before=i.raws.before.replace(/\S/g,``)),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,`prepend`).reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.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 n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`atrule`)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if(t.type===`comment`)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`decl`)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`rule`)return t(e,n)}))}};p.registerParse=e=>{c=e},p.registerRule=e=>{u=e},p.registerAtRule=e=>{s=e},p.registerRoot=e=>{l=e},t.exports=p,p.default=p,p.rebuild=e=>{e.type===`atrule`?Object.setPrototypeOf(e,s.prototype):e.type===`rule`?Object.setPrototypeOf(e,u.prototype):e.type===`decl`?Object.setPrototypeOf(e,r.prototype):e.type===`comment`?Object.setPrototypeOf(e,n.prototype):e.type===`root`&&Object.setPrototypeOf(e,l.prototype),e[o]=!0,e.nodes&&e.nodes.forEach(e=>{p.rebuild(e)})}})),zt=o(((e,t)=>{var n=Rt(),r=class extends n{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)}};t.exports=r,r.default=r,n.registerAtRule(r)})),Bt=o(((e,t)=>{var n=Rt(),r,i,a=class extends n{constructor(e){super({type:`document`,...e}),this.nodes||=[]}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a})),Vt=o(((e,t)=>{var n=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;t.exports={nanoid:(e=21)=>{let t=``,r=e|0;for(;r--;)t+=n[Math.random()*64|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r=``,i=n|0;for(;i--;)r+=e[Math.random()*e.length|0];return r}}})),Ht=o(((e,t)=>{var{existsSync:n,readFileSync:r}=Q(),{dirname:i,join:a}=Q(),{SourceMapConsumer:o,SourceMapGenerator:s}=Q();function c(e){return Buffer?Buffer.from(e,`base64`).toString():window.atob(e)}var l=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,`data:`);let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=i(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||=new o(this.text),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,r=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(r)return decodeURIComponent(e.substr(r[0].length));let i=e.match(t)||e.match(n);if(i)return c(e.substr(i[0].length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw Error(`Unsupported source map encoding `+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,``).trim()}isMap(e){return typeof e==`object`?typeof e.mappings==`string`||typeof e._mappings==`string`||Array.isArray(e.sections):!1}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf(`*/`,n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=i(e),n(e))return this.mapFile=e,r(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 n=t(e);if(n){let e=this.loadFile(n);if(!e)throw Error(`Unable to load previous source map: `+n.toString());return e}}else if(t instanceof o)return s.fromSourceMap(t).toString();else if(t instanceof s)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error(`Unsupported previous source map format: `+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=a(i(e),t)),this.loadFile(t)}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};t.exports=l,l.default=l})),Ut=o(((e,t)=>{var{nanoid:n}=Vt(),{isAbsolute:r,resolve:i}=Q(),{SourceMapConsumer:a,SourceMapGenerator:o}=Q(),{fileURLToPath:s,pathToFileURL:c}=Q(),l=jt(),u=Ht(),d=Q(),f=Symbol(`lineToIndexCache`),p=!!(a&&o),m=!!(i&&r);function h(e){if(e[f])return e[f];let t=e.css.split(`
424
+ `),n=Array(t.length),r=0;for(let e=0,i=t.length;e<i;e++)n[e]=r,r+=t[e].length+1;return e[f]=n,n}var g=class{get from(){return this.file||this.id}constructor(e,t={}){if(e==null||typeof e==`object`&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===`￾`?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!m||/^\w+:\/\//.test(t.from)||r(t.from)?this.file=t.from:this.file=i(t.from)),m&&p){let e=new u(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=`<input css `+n(6)+`>`),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,a,o,s,u;if(t&&typeof t==`object`){let e=t,r=n;if(typeof e.offset==`number`){s=e.offset;let r=this.fromOffset(s);t=r.line,n=r.col}else t=e.line,n=e.column,s=this.fromLineAndColumn(t,n);if(typeof r.offset==`number`){o=r.offset;let e=this.fromOffset(o);a=e.line,i=e.col}else a=r.line,i=r.column,o=this.fromLineAndColumn(r.line,r.column)}else if(n)s=this.fromLineAndColumn(t,n);else{s=t;let e=this.fromOffset(s);t=e.line,n=e.col}let d=this.origin(t,n,a,i);return u=d?new l(e,d.endLine===void 0?d.line:{column:d.column,line:d.line},d.endLine===void 0?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,r.plugin):new l(e,a===void 0?t:{column:n,line:t},a===void 0?n:{column:i,line:a},this.css,this.file,r.plugin),u.input={column:n,endColumn:i,endLine:a,endOffset:o,line:t,offset:s,source:this.css},this.file&&(c&&(u.input.url=c(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(e,t){return h(this)[e-1]+t-1}fromOffset(e){let t=h(this),n=t[t.length-1],r=0;if(e>=n)r=t.length-1;else{let n=t.length-2,i;for(;r<n;)if(i=r+(n-r>>1),e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}}return{col:e-t[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||`.`,e)}origin(e,t,n,i){if(!this.map)return!1;let a=this.map.consumer(),o=a.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;typeof n==`number`&&(l=a.originalPositionFor({column:i,line:n}));let u;u=r(o.source)?c(o.source):new URL(o.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let d={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:u.toString()};if(u.protocol===`file:`)if(s)d.file=s(u);else throw Error(`file: protocol is not available in this PostCSS build`);let f=a.sourceContentFor(o.source);return f&&(d.source=f),d}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}};t.exports=g,g.default=g,d&&d.registerInput&&d.registerInput(g)})),Wt=o(((e,t)=>{var n=Rt(),r,i,a=class extends n{constructor(e){super(e),this.type=`root`,this.nodes||=[]}normalize(e,t,n){let r=super.normalize(e);if(t){if(n===`prepend`)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before}return r}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a,n.registerRoot(a)})),Gt=o(((e,t)=>{var n={comma(e){return n.split(e,[`,`],!0)},space(e){return n.split(e,[` `,`
425
+ `,` `])},split(e,t,n){let r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1;for(let n of e)l?l=!1:n===`\\`?l=!0:s?n===c&&(s=!1):n===`"`||n===`'`?(s=!0,c=n):n===`(`?o+=1:n===`)`?o>0&&--o:o===0&&t.includes(n)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=n;return(n||i!==``)&&r.push(i.trim()),r}};t.exports=n,n.default=n})),Kt=o(((e,t)=>{var n=Rt(),r=Gt(),i=class extends n{get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}constructor(e){super(e),this.type=`rule`,this.nodes||=[]}};t.exports=i,i.default=i,n.registerRule(i)})),qt=o(((e,t)=>{var n=zt(),r=It(),i=Lt(),a=Ut(),o=Ht(),s=Wt(),c=Kt();function l(e,t){if(Array.isArray(e))return e.map(e=>l(e));let{inputs:u,...d}=e;if(u){t=[];for(let e of u){let n={...e,__proto__:a.prototype};n.map&&={...n.map,__proto__:o.prototype},t.push(n)}}if(d.nodes&&=e.nodes.map(e=>l(e,t)),d.source){let{inputId:e,...n}=d.source;d.source=n,e!=null&&(d.source.input=t[e])}if(d.type===`root`)return new s(d);if(d.type===`decl`)return new i(d);if(d.type===`rule`)return new c(d);if(d.type===`comment`)return new r(d);if(d.type===`atrule`)return new n(d);throw Error(`Unknown node type: `+e.type)}t.exports=l,l.default=l})),Jt=o(((e,t)=>{var{dirname:n,relative:r,resolve:i,sep:a}=Q(),{SourceMapConsumer:o,SourceMapGenerator:s}=Q(),{pathToFileURL:c}=Q(),l=Ut(),u=!!(o&&s),d=!!(n&&i&&r&&a);t.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?`data:application/json;base64,`+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==`string`?this.mapOpts.annotation:typeof this.mapOpts.annotation==`function`?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+`.map`;let t=`
428
426
  `;this.css.includes(`\r
429
- `)&&(l=`\r
430
- `),this.css+=l+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let l=this.toUrl(this.path(c.file)),f=c.root||s(c.file),m;this.mapOpts.sourcesContent===!1?(m=new i(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,l,this.toUrl(this.path(f)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let l=this.root.nodes.length-1;l>=0;l--)c=this.root.nodes[l],c.type==="comment"&&c.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 c="";return this.stringify(this.root,l=>{c+=l}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=o.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new o({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 o({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,l=1,f="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,_;this.stringify(this.root,(E,v,w)=>{if(this.css+=E,v&&w!=="end"&&(m.generated.line=c,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),_?(c+=_.length,g=E.lastIndexOf(`
431
- `),l=E.length-g):l+=E.length,v&&w!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=c,m.generated.column=l-2,this.map.addMapping(m)):(m.source=f,m.original.line=1,m.original.column=0,m.generated.line=c,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(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let l=this.memoizedPaths.get(c);if(l)return l;let f=this.opts.to?s(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=s(t(f,this.mapOpts.annotation)));let m=e(f,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let l=c.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let c=new p(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(l=>{if(l.source){let f=l.source.input.from;if(f&&!c[f]){c[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(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let l=this.memoizedFileURLs.get(c);if(l)return l;if(a){let f=a(c).toString();return this.memoizedFileURLs.set(c,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let l=this.memoizedURLs.get(c);if(l)return l;n==="\\"&&(c=c.replace(/\\/g,"/"));let f=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,f),f}}return ii=r,ii}var ni,kn;function io(){if(kn)return ni;kn=1;const s=39,e=34,t=92,n=47,i=10,o=32,a=12,p=9,b=13,h=91,r=93,u=40,c=41,l=123,f=125,m=59,g=42,_=58,E=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,A=/[\da-f]/i;return ni=function(P,U={}){let M=P.css.valueOf(),X=U.ignoreErrors,H,Se,he,O,Pe,W,ee,le,ce,we,Ce=M.length,j=0,We=[],Le=[];function $t(){return j}function Ve(ve){throw P.error("Unclosed "+ve,j)}function Ot(){return Le.length===0&&j>=Ce}function je(ve){if(Le.length)return Le.pop();if(j>=Ce)return;let Ge=ve?ve.ignoreUnclosed:!1;switch(H=M.charCodeAt(j),H){case i:case o:case p:case b:case a:{O=j;do O+=1,H=M.charCodeAt(O);while(H===o||H===i||H===p||H===b||H===a);W=["space",M.slice(j,O)],j=O-1;break}case h:case r:case l:case f:case _:case m:case c:{let rt=String.fromCharCode(H);W=[rt,rt,j];break}case u:{if(we=We.length?We.pop()[1]:"",ce=M.charCodeAt(j+1),we==="url"&&ce!==s&&ce!==e&&ce!==o&&ce!==i&&ce!==p&&ce!==a&&ce!==b){O=j;do{if(ee=!1,O=M.indexOf(")",O+1),O===-1)if(X||Ge){O=j;break}else Ve("bracket");for(le=O;M.charCodeAt(le-1)===t;)le-=1,ee=!ee}while(ee);W=["brackets",M.slice(j,O+1),j,O],j=O}else O=M.indexOf(")",j+1),Se=M.slice(j,O+1),O===-1||y.test(Se)?W=["(","(",j]:(W=["brackets",Se,j,O],j=O);break}case s:case e:{Pe=H===s?"'":'"',O=j;do{if(ee=!1,O=M.indexOf(Pe,O+1),O===-1)if(X||Ge){O=j+1;break}else Ve("string");for(le=O;M.charCodeAt(le-1)===t;)le-=1,ee=!ee}while(ee);W=["string",M.slice(j,O+1),j,O],j=O;break}case E:{v.lastIndex=j+1,v.test(M),v.lastIndex===0?O=M.length-1:O=v.lastIndex-2,W=["at-word",M.slice(j,O+1),j,O],j=O;break}case t:{for(O=j,he=!0;M.charCodeAt(O+1)===t;)O+=1,he=!he;if(H=M.charCodeAt(O+1),he&&H!==n&&H!==o&&H!==i&&H!==p&&H!==b&&H!==a&&(O+=1,A.test(M.charAt(O)))){for(;A.test(M.charAt(O+1));)O+=1;M.charCodeAt(O+1)===o&&(O+=1)}W=["word",M.slice(j,O+1),j,O],j=O;break}default:{H===n&&M.charCodeAt(j+1)===g?(O=M.indexOf("*/",j+2)+1,O===0&&(X||Ge?O=M.length:Ve("comment")),W=["comment",M.slice(j,O+1),j,O],j=O):(w.lastIndex=j+1,w.test(M),w.lastIndex===0?O=M.length-1:O=w.lastIndex-2,W=["word",M.slice(j,O+1),j,O],We.push(W),j=O);break}}return j++,W}function Rt(ve){Le.push(ve)}return{back:Rt,endOfFile:Ot,nextToken:je,position:$t}},ni}var si,In;function no(){if(In)return si;In=1;let s=Ii(),e=St(),t=Ct(),n=st(),i=Oi(),o=io();const a={empty:!0,space:!0};function p(h){for(let r=h.length-1;r>=0;r--){let u=h[r],c=u[3]||u[2];if(c)return c}}class b{constructor(r){this.input=r,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:r,start:{column:1,line:1,offset:0}}}atrule(r){let u=new s;u.name=r[1].slice(1),u.name===""&&this.unnamedAtrule(u,r),this.init(u,r[2]);let c,l,f,m=!1,g=!1,_=[],E=[];for(;!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),c=r[0],c==="("||c==="["?E.push(c==="("?")":"]"):c==="{"&&E.length>0?E.push("}"):c===E[E.length-1]&&E.pop(),E.length===0)if(c===";"){u.source.end=this.getPosition(r[2]),u.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(_.length>0){for(f=_.length-1,l=_[f];l&&l[0]==="space";)l=_[--f];l&&(u.source.end=this.getPosition(l[3]||l[2]),u.source.end.offset++)}this.end(r);break}else _.push(r);else _.push(r);if(this.tokenizer.endOfFile()){m=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(_),_.length?(u.raws.afterName=this.spacesAndCommentsFromStart(_),this.raw(u,"params",_),m&&(r=_[_.length-1],u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),g&&(u.nodes=[],this.current=u)}checkMissedSemicolon(r){let u=this.colon(r);if(u===!1)return;let c=0,l;for(let f=u-1;f>=0&&(l=r[f],!(l[0]!=="space"&&(c+=1,c===2)));f--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(r){let u=0,c,l,f;for(let[m,g]of r.entries()){if(l=g,f=l[0],f==="("&&(u+=1),f===")"&&(u-=1),u===0&&f===":")if(!c)this.doubleColon(l);else{if(c[0]==="word"&&c[1]==="progid")continue;return m}c=l}return!1}comment(r){let u=new e;this.init(u,r[2]),u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++;let c=r[1].slice(2,-2);if(/^\s*$/.test(c))u.text="",u.raws.left=c,u.raws.right="";else{let l=c.match(/^(\s*)([^]*\S)(\s*)$/);u.text=l[2],u.raws.left=l[1],u.raws.right=l[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(r,u){let c=new t;this.init(c,r[0][2]);let l=r[r.length-1];for(l[0]===";"&&(this.semicolon=!0,r.pop()),c.source.end=this.getPosition(l[3]||l[2]||p(r)),c.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),c.raws.before+=r.shift()[1];for(c.source.start=this.getPosition(r[0][2]),c.prop="";r.length;){let E=r[0][0];if(E===":"||E==="space"||E==="comment")break;c.prop+=r.shift()[1]}c.raws.between="";let f;for(;r.length;)if(f=r.shift(),f[0]===":"){c.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),c.raws.between+=f[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],g;for(;r.length&&(g=r[0][0],!(g!=="space"&&g!=="comment"));)m.push(r.shift());this.precheckMissedSemicolon(r);for(let E=r.length-1;E>=0;E--){if(f=r[E],f[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(r,E);v=this.spacesFromEnd(r)+v,v!==" !important"&&(c.raws.important=v);break}else if(f[1].toLowerCase()==="important"){let v=r.slice(0),w="";for(let y=E;y>0;y--){let A=v[y][0];if(w.trim().startsWith("!")&&A!=="space")break;w=v.pop()[1]+w}w.trim().startsWith("!")&&(c.important=!0,c.raws.important=w,r=v)}if(f[0]!=="space"&&f[0]!=="comment")break}r.some(E=>E[0]!=="space"&&E[0]!=="comment")&&(c.raws.between+=m.map(E=>E[1]).join(""),m=[]),this.raw(c,"value",m.concat(r),u),c.value.includes(":")&&!u&&this.checkMissedSemicolon(r)}doubleColon(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})}emptyRule(r){let u=new i;this.init(u,r[2]),u.selector="",u.raws.between="",this.current=u}end(r){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(r){if(this.spaces+=r[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="",u.source.end=this.getPosition(r[2]),u.source.end.offset+=u.raws.ownSemicolon.length)}}getPosition(r){let u=this.input.fromOffset(r);return{column:u.col,line:u.line,offset:r}}init(r,u){this.current.push(r),r.source={input:this.input,start:this.getPosition(u)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)}other(r){let u=!1,c=null,l=!1,f=null,m=[],g=r[1].startsWith("--"),_=[],E=r;for(;E;){if(c=E[0],_.push(E),c==="("||c==="[")f||(f=E),m.push(c==="("?")":"]");else if(g&&l&&c==="{")f||(f=E),m.push("}");else if(m.length===0)if(c===";")if(l){this.decl(_,g);return}else break;else if(c==="{"){this.rule(_);return}else if(c==="}"){this.tokenizer.back(_.pop()),u=!0;break}else c===":"&&(l=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(f=null));E=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),m.length>0&&this.unclosedBracket(f),u&&l){if(!g)for(;_.length&&(E=_[_.length-1][0],!(E!=="space"&&E!=="comment"));)this.tokenizer.back(_.pop());this.decl(_,g)}else this.unknownWord(_)}parse(){let r;for(;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()}precheckMissedSemicolon(){}raw(r,u,c,l){let f,m,g=c.length,_="",E=!0,v,w;for(let y=0;y<g;y+=1)f=c[y],m=f[0],m==="space"&&y===g-1&&!l?E=!1:m==="comment"?(w=c[y-1]?c[y-1][0]:"empty",v=c[y+1]?c[y+1][0]:"empty",!a[w]&&!a[v]?_.slice(-1)===","?E=!1:_+=f[1]:E=!1):_+=f[1];if(!E){let y=c.reduce((A,I)=>A+I[1],"");r.raws[u]={raw:y,value:_}}r[u]=_}rule(r){r.pop();let u=new i;this.init(u,r[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(u,"selector",r),this.current=u}spacesAndCommentsFromEnd(r){let u,c="";for(;r.length&&(u=r[r.length-1][0],!(u!=="space"&&u!=="comment"));)c=r.pop()[1]+c;return c}spacesAndCommentsFromStart(r){let u,c="";for(;r.length&&(u=r[0][0],!(u!=="space"&&u!=="comment"));)c+=r.shift()[1];return c}spacesFromEnd(r){let u,c="";for(;r.length&&(u=r[r.length-1][0],u==="space");)c=r.pop()[1]+c;return c}stringFrom(r,u){let c="";for(let l=u;l<r.length;l++)c+=r[l][1];return r.splice(u,r.length-u),c}unclosedBlock(){let r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)}unclosedBracket(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})}unexpectedClose(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})}unknownWord(r){throw this.input.error("Unknown word "+r[0][1],{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})}unnamedAtrule(r,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return si=b,si}var ri,$n;function Ri(){if($n)return ri;$n=1;let s=Te(),e=kt(),t=no();function n(i,o){let a=new e(i,o),p=new t(a);try{p.parse()}catch(b){throw b}return p.root}return ri=n,n.default=n,s.registerParse(n),ri}var oi,On;function Qn(){if(On)return oi;On=1;class s{constructor(t,n={}){if(this.type="warning",this.text=t,n.node&&n.node.source){let i=n.node.rangeBy(n);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in n)this[i]=n[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return oi=s,s.default=s,oi}var ai,Rn;function Ni(){if(Rn)return ai;Rn=1;let s=Qn();class e{get content(){return this.css}constructor(n,i,o){this.processor=n,this.messages=[],this.root=i,this.opts=o,this.css="",this.map=void 0}toString(){return this.css}warn(n,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let o=new s(n,i);return this.messages.push(o),o}warnings(){return this.messages.filter(n=>n.type==="warning")}}return ai=e,e.default=e,ai}var li,Nn;function Yn(){if(Nn)return li;Nn=1;let s=Te(),e=$i(),t=Xn(),n=Ri(),i=Ni(),o=st(),a=Et(),{isClean:p,my:b}=ki();const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},r={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},u={Once:!0,postcssPlugin:!0,prepare:!0},c=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,c,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:v.append?[y,c,y+"Exit"]:[y,y+"Exit"]}function m(v){let w;return v.type==="document"?w=["Document",c,"DocumentExit"]:v.type==="root"?w=["Root",c,"RootExit"]:w=f(v),{eventIndex:0,events:w,iterator:0,node:v,visitorIndex:0,visitors:[]}}function g(v){return v[p]=!1,v.nodes&&v.nodes.forEach(w=>g(w)),v}let _={};class E{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(w,y,A){this.stringified=!1,this.processed=!1;let I;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))I=g(y);else if(y instanceof E||y instanceof i)I=g(y.root),y.map&&(typeof A.map>"u"&&(A.map={}),A.map.inline||(A.map.inline=!1),A.map.prev=y.map);else{let P=n;A.syntax&&(P=A.syntax.parse),A.parser&&(P=A.parser),P.parse&&(P=P.parse);try{I=P(y,A)}catch(U){this.processed=!0,this.error=U}I&&!I[b]&&s.rebuild(I)}this.result=new i(w,I,A),this.helpers={..._,postcss:_,result:this.result},this.plugins=this.processor.plugins.map(P=>typeof P=="object"&&P.prepare?{...P,...P.prepare(this.result)}:P)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let A=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=A.postcssPlugin,w.setMessage()):A.postcssVersion}catch(I){console&&console.error&&console.error(I)}return w}prepareVisitors(){this.listeners={};let w=(y,A,I)=>{this.listeners[A]||(this.listeners[A]=[]),this.listeners[A].push([y,I])};for(let y of this.plugins)if(typeof y=="object")for(let A in y){if(!r[A]&&/^[A-Z]/.test(A))throw new Error(`Unknown event ${A} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[A])if(typeof y[A]=="object")for(let I in y[A])I==="*"?w(y,A,y[A][I]):w(y,A+"-"+I.toLowerCase(),y[A][I]);else typeof y[A]=="function"&&w(y,A,y[A])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],A=this.runOnRoot(y);if(l(A))try{await A}catch(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 A=this.visitTick(y);if(l(A))try{await A}catch(I){let P=y[y.length-1].node;throw this.handleError(I,P)}}}if(this.listeners.OnceExit)for(let[y,A]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let I=w.nodes.map(P=>A(P,this.helpers));await Promise.all(I)}else await A(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(A=>w.Once(A,this.helpers));return l(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=a;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let I=new t(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[A,I]of w){this.result.lastPlugin=A;let P;try{P=I(y,this.helpers)}catch(U){throw this.handleError(U,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(l(P))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:A,visitors:I}=y;if(A.type!=="root"&&A.type!=="document"&&!A.parent){w.pop();return}if(I.length>0&&y.visitorIndex<I.length){let[U,M]=I[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===I.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=U;try{return M(A.toProxy(),this.helpers)}catch(X){throw this.handleError(X,A)}}if(y.iterator!==0){let U=y.iterator,M;for(;M=A.nodes[A.indexes[U]];)if(A.indexes[U]+=1,!M[p]){M[p]=!0,w.push(m(M));return}y.iterator=0,delete A.indexes[U]}let P=y.events;for(;y.eventIndex<P.length;){let U=P[y.eventIndex];if(y.eventIndex+=1,U===c){A.nodes&&A.nodes.length&&(A[p]=!0,y.iterator=A.getIterator());return}else if(this.listeners[U]){y.visitors=this.listeners[U];return}}w.pop()}walkSync(w){w[p]=!0;let y=f(w);for(let A of y)if(A===c)w.nodes&&w.each(I=>{I[p]||this.walkSync(I)});else{let I=this.listeners[A];if(I&&this.visitSync(I,w.toProxy()))return}}warnings(){return this.sync().warnings()}}return E.registerPostcss=v=>{_=v},li=E,E.default=E,o.registerLazyResult(E),e.registerLazyResult(E),li}var ci,Mn;function so(){if(Mn)return ci;Mn=1;let s=Xn(),e=Ri();const t=Ni();let n=Et();class i{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,p=e;try{a=p(this._css,this._opts)}catch(b){this.error=b}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(a,p,b){p=p.toString(),this.stringified=!1,this._processor=a,this._css=p,this._opts=b,this._map=void 0;let h,r=n;this.result=new t(this._processor,h,this._opts),this.result.css=p;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let c=new s(r,h,this._opts,p);if(c.isMap()){let[l,f]=c.generate();l&&(this.result.css=l),f&&(this.result.map=f)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,p){return this.async().then(a,p)}toString(){return this._css}warnings(){return[]}}return ci=i,i.default=i,ci}var ui,Tn;function ro(){if(Tn)return ui;Tn=1;let s=$i(),e=Yn(),t=so(),n=st();class i{constructor(a=[]){this.version="8.5.6",this.plugins=this.normalize(a)}normalize(a){let p=[];for(let b of a)if(b.postcss===!0?b=b():b.postcss&&(b=b.postcss),typeof b=="object"&&Array.isArray(b.plugins))p=p.concat(b.plugins);else if(typeof b=="object"&&b.postcssPlugin)p.push(b);else if(typeof b=="function")p.push(b);else if(!(typeof b=="object"&&(b.parse||b.stringify)))throw new Error(b+" is not a PostCSS plugin");return p}process(a,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new t(this,a,p):new e(this,a,p)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return ui=i,i.default=i,n.registerProcessor(i),s.registerProcessor(i),ui}var hi,Pn;function oo(){if(Pn)return hi;Pn=1;var s={};let e=Ii(),t=St(),n=Te(),i=Ci(),o=Ct(),a=$i(),p=to(),b=kt(),h=Yn(),r=Jn(),u=At(),c=Ri(),l=ro(),f=Ni(),m=st(),g=Oi(),_=Et(),E=Qn();function v(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new l(w)}return v.plugin=function(y,A){let I=!1;function P(...M){console&&console.warn&&!I&&(I=!0,console.warn(y+`: postcss.plugin was deprecated. Migration guide:
432
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),s.LANG&&s.LANG.startsWith("cn")&&console.warn(y+`: 里面 postcss.plugin 被弃用. 迁移指南:
433
- https://www.w3ctech.com/topic/2226`));let X=A(...M);return X.postcssPlugin=y,X.postcssVersion=new l().version,X}let U;return Object.defineProperty(P,"postcss",{get(){return U||(U=P()),U}}),P.process=function(M,X,H){return v([P(H)]).process(M,X)},P},v.stringify=_,v.parse=c,v.fromJSON=p,v.list=r,v.comment=w=>new t(w),v.atRule=w=>new e(w),v.decl=w=>new o(w),v.rule=w=>new g(w),v.root=w=>new m(w),v.document=w=>new a(w),v.CssSyntaxError=i,v.Declaration=o,v.Container=n,v.Processor=l,v.Document=a,v.Comment=t,v.Warning=E,v.AtRule=e,v.Result=f,v.Input=b,v.Rule=g,v.Root=m,v.Node=u,h.registerPostcss(v),hi=v,v.default=v,hi}var ao=oo();const Z=Gn(ao);Z.stringify;Z.fromJSON;Z.plugin;Z.parse;Z.list;Z.document;Z.comment;Z.atRule;Z.rule;Z.decl;Z.root;Z.CssSyntaxError;Z.Declaration;Z.Container;Z.Processor;Z.Document;Z.Comment;Z.Warning;Z.AtRule;Z.Result;Z.Input;Z.Rule;Z.Root;Z.Node;var di,Ln;function lo(){if(Ln)return di;Ln=1;const s=(n={})=>{const i=n.prefix,o=/\s+$/.test(i)?i:`${i} `,a=n.ignoreFiles?[].concat(n.ignoreFiles):[],p=n.includeFiles?[].concat(n.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(b){const h=b.root,r=h.source.input.file;if(!(a.length&&r&&e(r,a))&&!(p.length&&r&&!e(r,p)))return{Rule(u,{result:c}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];u.parent&&l.includes(u.parent.name)||(u.selectors=u.selectors.map(f=>n.exclude&&t(f,n.exclude)?f:n.transform?n.transform(i,f,o+f,h.source.input.file,u):[":root","body","html"].some(m=>f.startsWith(m))?n.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,i):o+f))}}}}};function e(n,i){return i.some(o=>o instanceof RegExp?o.test(n):n.includes(o))}function t(n,i){return i.some(o=>o instanceof RegExp?o.test(n):n===o)}return s.postcss=!0,di=s,di}var co=lo();const uo=Gn(co),ho="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}",fo="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 po(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var fi,jn;function mo(){if(jn)return fi;jn=1;function s(d){return d instanceof Map?d.clear=d.delete=d.set=function(){throw new Error("map is read-only")}:d instanceof Set&&(d.add=d.clear=d.delete=function(){throw new Error("set is read-only")}),Object.freeze(d),Object.getOwnPropertyNames(d).forEach(x=>{const k=d[x],z=typeof k;(z==="object"||z==="function")&&!Object.isFrozen(k)&&s(k)}),d}class e{constructor(x){x.data===void 0&&(x.data={}),this.data=x.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function t(d){return d.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function n(d,...x){const k=Object.create(null);for(const z in d)k[z]=d[z];return x.forEach(function(z){for(const Q in z)k[Q]=z[Q]}),k}const i="</span>",o=d=>!!d.scope,a=(d,{prefix:x})=>{if(d.startsWith("language:"))return d.replace("language:","language-");if(d.includes(".")){const k=d.split(".");return[`${x}${k.shift()}`,...k.map((z,Q)=>`${z}${"_".repeat(Q+1)}`)].join(" ")}return`${x}${d}`};class p{constructor(x,k){this.buffer="",this.classPrefix=k.classPrefix,x.walk(this)}addText(x){this.buffer+=t(x)}openNode(x){if(!o(x))return;const k=a(x.scope,{prefix:this.classPrefix});this.span(k)}closeNode(x){o(x)&&(this.buffer+=i)}value(){return this.buffer}span(x){this.buffer+=`<span class="${x}">`}}const b=(d={})=>{const x={children:[]};return Object.assign(x,d),x};class h{constructor(){this.rootNode=b(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(x){this.top.children.push(x)}openNode(x){const k=b({scope:x});this.add(k),this.stack.push(k)}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,k){return typeof k=="string"?x.addText(k):k.children&&(x.openNode(k),k.children.forEach(z=>this._walk(x,z)),x.closeNode(k)),x}static _collapse(x){typeof x!="string"&&x.children&&(x.children.every(k=>typeof k=="string")?x.children=[x.children.join("")]:x.children.forEach(k=>{h._collapse(k)}))}}class r extends h{constructor(x){super(),this.options=x}addText(x){x!==""&&this.add(x)}startScope(x){this.openNode(x)}endScope(){this.closeNode()}__addSublanguage(x,k){const z=x.root;k&&(z.scope=`language:${k}`),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 c(d){return m("(?=",d,")")}function l(d){return m("(?:",d,")*")}function f(d){return m("(?:",d,")?")}function m(...d){return d.map(x=>u(x)).join("")}function g(d){const x=d[d.length-1];return typeof x=="object"&&x.constructor===Object?(d.splice(d.length-1,1),x):{}}function _(...d){return"("+(g(d).capture?"":"?:")+d.map(x=>u(x)).join("|")+")"}function E(d){return new RegExp(d.toString()+"|").exec("").length-1}function v(d,x){const k=d&&d.exec(x);return k&&k.index===0}const w=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(d,{joinWith:x}){let k=0;return d.map(z=>{k+=1;const Q=k;let Y=u(z),R="";for(;Y.length>0;){const $=w.exec(Y);if(!$){R+=Y;break}R+=Y.substring(0,$.index),Y=Y.substring($.index+$[0].length),$[0][0]==="\\"&&$[1]?R+="\\"+String(Number($[1])+Q):(R+=$[0],$[0]==="("&&k++)}return R}).map(z=>`(${z})`).join(x)}const A=/\b\B/,I="[a-zA-Z]\\w*",P="[a-zA-Z_]\\w*",U="\\b\\d+(\\.\\d+)?",M="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",X="\\b(0b[01]+)",H="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Se=(d={})=>{const x=/^#![ ]*\//;return d.binary&&(d.begin=m(x,/.*\b/,d.binary,/\b.*/)),n({scope:"meta",begin:x,end:/$/,relevance:0,"on:begin":(k,z)=>{k.index!==0&&z.ignoreMatch()}},d)},he={begin:"\\\\[\\s\\S]",relevance:0},O={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[he]},Pe={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/},ee=function(d,x,k={}){const z=n({scope:"comment",begin:d,end:x,contains:[]},k);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 Q=_("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(/[ ]+/,"(",Q,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),z},le=ee("//","$"),ce=ee("/\\*","\\*/"),we=ee("#","$"),Ce={scope:"number",begin:U,relevance:0},j={scope:"number",begin:M,relevance:0},We={scope:"number",begin:X,relevance:0},Le={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[he,{begin:/\[/,end:/\]/,relevance:0,contains:[he]}]},$t={scope:"title",begin:I,relevance:0},Ve={scope:"title",begin:P,relevance:0},Ot={begin:"\\.\\s*"+P,relevance:0};var je=Object.freeze({__proto__:null,APOS_STRING_MODE:O,BACKSLASH_ESCAPE:he,BINARY_NUMBER_MODE:We,BINARY_NUMBER_RE:X,COMMENT:ee,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,k)=>{k.data._beginMatch=x[1]},"on:end":(x,k)=>{k.data._beginMatch!==x[1]&&k.ignoreMatch()}})},HASH_COMMENT_MODE:we,IDENT_RE:I,MATCH_NOTHING_RE:A,METHOD_GUARD:Ot,NUMBER_MODE:Ce,NUMBER_RE:U,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:Pe,REGEXP_MODE:Le,RE_STARTERS_RE:H,SHEBANG:Se,TITLE_MODE:$t,UNDERSCORE_IDENT_RE:P,UNDERSCORE_TITLE_MODE:Ve});function Rt(d,x){d.input[d.index-1]==="."&&x.ignoreMatch()}function ve(d,x){d.className!==void 0&&(d.scope=d.className,delete d.className)}function Ge(d,x){x&&d.beginKeywords&&(d.begin="\\b("+d.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",d.__beforeBegin=Rt,d.keywords=d.keywords||d.beginKeywords,delete d.beginKeywords,d.relevance===void 0&&(d.relevance=0))}function rt(d,x){Array.isArray(d.illegal)&&(d.illegal=_(...d.illegal))}function ls(d,x){if(d.match){if(d.begin||d.end)throw new Error("begin & end are not supported with match");d.begin=d.match,delete d.match}}function cs(d,x){d.relevance===void 0&&(d.relevance=1)}const us=(d,x)=>{if(!d.beforeMatch)return;if(d.starts)throw new Error("beforeMatch cannot be used with starts");const k=Object.assign({},d);Object.keys(d).forEach(z=>{delete d[z]}),d.keywords=k.keywords,d.begin=m(k.beforeMatch,c(k.begin)),d.starts={relevance:0,contains:[Object.assign(k,{endsParent:!0})]},d.relevance=0,delete k.beforeMatch},hs=["of","and","for","in","not","or","if","then","parent","list","value"],ds="keyword";function Mi(d,x,k=ds){const z=Object.create(null);return typeof d=="string"?Q(k,d.split(" ")):Array.isArray(d)?Q(k,d):Object.keys(d).forEach(function(Y){Object.assign(z,Mi(d[Y],x,Y))}),z;function Q(Y,R){x&&(R=R.map($=>$.toLowerCase())),R.forEach(function($){const L=$.split("|");z[L[0]]=[Y,fs(L[0],L[1])]})}}function fs(d,x){return x?Number(x):ps(d)?0:1}function ps(d){return hs.includes(d.toLowerCase())}const Ti={},ke=d=>{console.error(d)},Pi=(d,...x)=>{console.log(`WARN: ${d}`,...x)},De=(d,x)=>{Ti[`${d}/${x}`]||(console.log(`Deprecated as of ${d}. ${x}`),Ti[`${d}/${x}`]=!0)},ot=new Error;function Li(d,x,{key:k}){let z=0;const Q=d[k],Y={},R={};for(let $=1;$<=x.length;$++)R[$+z]=Q[$],Y[$+z]=!0,z+=E(x[$-1]);d[k]=R,d[k]._emit=Y,d[k]._multi=!0}function ms(d){if(Array.isArray(d.begin)){if(d.skip||d.excludeBegin||d.returnBegin)throw ke("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ot;if(typeof d.beginScope!="object"||d.beginScope===null)throw ke("beginScope must be object"),ot;Li(d,d.begin,{key:"beginScope"}),d.begin=y(d.begin,{joinWith:""})}}function gs(d){if(Array.isArray(d.end)){if(d.skip||d.excludeEnd||d.returnEnd)throw ke("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ot;if(typeof d.endScope!="object"||d.endScope===null)throw ke("endScope must be object"),ot;Li(d,d.end,{key:"endScope"}),d.end=y(d.end,{joinWith:""})}}function bs(d){d.scope&&typeof d.scope=="object"&&d.scope!==null&&(d.beginScope=d.scope,delete d.scope)}function ys(d){bs(d),typeof d.beginScope=="string"&&(d.beginScope={_wrap:d.beginScope}),typeof d.endScope=="string"&&(d.endScope={_wrap:d.endScope}),ms(d),gs(d)}function ws(d){function x(R,$){return new RegExp(u(R),"m"+(d.case_insensitive?"i":"")+(d.unicodeRegex?"u":"")+($?"g":""))}class k{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule($,L){L.position=this.position++,this.matchIndexes[this.matchAt]=L,this.regexes.push([L,$]),this.matchAt+=E($)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const $=this.regexes.map(L=>L[1]);this.matcherRe=x(y($,{joinWith:"|"}),!0),this.lastIndex=0}exec($){this.matcherRe.lastIndex=this.lastIndex;const L=this.matcherRe.exec($);if(!L)return null;const ne=L.findIndex((Ke,Mt)=>Mt>0&&Ke!==void 0),te=this.matchIndexes[ne];return L.splice(0,ne),Object.assign(L,te)}}class z{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher($){if(this.multiRegexes[$])return this.multiRegexes[$];const L=new k;return this.rules.slice($).forEach(([ne,te])=>L.addRule(ne,te)),L.compile(),this.multiRegexes[$]=L,L}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule($,L){this.rules.push([$,L]),L.type==="begin"&&this.count++}exec($){const L=this.getMatcher(this.regexIndex);L.lastIndex=this.lastIndex;let ne=L.exec($);if(this.resumingScanAtSamePosition()&&!(ne&&ne.index===this.lastIndex)){const te=this.getMatcher(0);te.lastIndex=this.lastIndex+1,ne=te.exec($)}return ne&&(this.regexIndex+=ne.position+1,this.regexIndex===this.count&&this.considerAll()),ne}}function Q(R){const $=new z;return R.contains.forEach(L=>$.addRule(L.begin,{rule:L,type:"begin"})),R.terminatorEnd&&$.addRule(R.terminatorEnd,{type:"end"}),R.illegal&&$.addRule(R.illegal,{type:"illegal"}),$}function Y(R,$){const L=R;if(R.isCompiled)return L;[ve,ls,ys,us].forEach(te=>te(R,$)),d.compilerExtensions.forEach(te=>te(R,$)),R.__beforeBegin=null,[Ge,rt,cs].forEach(te=>te(R,$)),R.isCompiled=!0;let ne=null;return typeof R.keywords=="object"&&R.keywords.$pattern&&(R.keywords=Object.assign({},R.keywords),ne=R.keywords.$pattern,delete R.keywords.$pattern),ne=ne||/\w+/,R.keywords&&(R.keywords=Mi(R.keywords,d.case_insensitive)),L.keywordPatternRe=x(ne,!0),$&&(R.begin||(R.begin=/\B|\b/),L.beginRe=x(L.begin),!R.end&&!R.endsWithParent&&(R.end=/\B|\b/),R.end&&(L.endRe=x(L.end)),L.terminatorEnd=u(L.end)||"",R.endsWithParent&&$.terminatorEnd&&(L.terminatorEnd+=(R.end?"|":"")+$.terminatorEnd)),R.illegal&&(L.illegalRe=x(R.illegal)),R.contains||(R.contains=[]),R.contains=[].concat(...R.contains.map(function(te){return vs(te==="self"?R:te)})),R.contains.forEach(function(te){Y(te,L)}),R.starts&&Y(R.starts,$),L.matcher=Q(L),L}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||{}),Y(d)}function ji(d){return d?d.endsWithParent||ji(d.starts):!1}function vs(d){return d.variants&&!d.cachedVariants&&(d.cachedVariants=d.variants.map(function(x){return n(d,{variants:null},x)})),d.cachedVariants?d.cachedVariants:ji(d)?n(d,{starts:d.starts?n(d.starts):null}):Object.isFrozen(d)?n(d):d}var xs="11.11.1";class _s extends Error{constructor(x,k){super(x),this.name="HTMLInjectionError",this.html=k}}const Nt=t,Di=n,zi=Symbol("nomatch"),Es=7,Ui=function(d){const x=Object.create(null),k=Object.create(null),z=[];let Q=!0;const Y="Could not find the language '{}', did you forget to load/include a language module?",R={disableAutodetect:!0,name:"Plain text",contains:[]};let $={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:r};function L(S){return $.noHighlightRe.test(S)}function ne(S){let T=S.className+" ";T+=S.parentNode?S.parentNode.className:"";const q=$.languageDetectRe.exec(T);if(q){const V=xe(q[1]);return V||(Pi(Y.replace("{}",q[1])),Pi("Falling back to no-highlight mode for this block.",S)),V?q[1]:"no-highlight"}return T.split(/\s+/).find(V=>L(V)||xe(V))}function te(S,T,q){let V="",ie="";typeof T=="object"?(V=S,q=T.ignoreIllegals,ie=T.language):(De("10.7.0","highlight(lang, code, ...args) has been deprecated."),De("10.7.0",`Please use highlight(code, options) instead.
434
- https://github.com/highlightjs/highlight.js/issues/2277`),ie=S,V=T),q===void 0&&(q=!0);const pe={code:V,language:ie};lt("before:highlight",pe);const _e=pe.result?pe.result:Ke(pe.language,pe.code,q);return _e.code=pe.code,lt("after:highlight",_e),_e}function Ke(S,T,q,V){const ie=Object.create(null);function pe(C,N){return C.keywords[N]}function _e(){if(!D.keywords){re.addText(G);return}let C=0;D.keywordPatternRe.lastIndex=0;let N=D.keywordPatternRe.exec(G),B="";for(;N;){B+=G.substring(C,N.index);const F=ge.case_insensitive?N[0].toLowerCase():N[0],ae=pe(D,F);if(ae){const[be,Us]=ae;if(re.addText(B),B="",ie[F]=(ie[F]||0)+1,ie[F]<=Es&&(ht+=Us),be.startsWith("_"))B+=N[0];else{const Bs=ge.classNameAliases[be]||be;me(N[0],Bs)}}else B+=N[0];C=D.keywordPatternRe.lastIndex,N=D.keywordPatternRe.exec(G)}B+=G.substring(C),re.addText(B)}function ct(){if(G==="")return;let C=null;if(typeof D.subLanguage=="string"){if(!x[D.subLanguage]){re.addText(G);return}C=Ke(D.subLanguage,G,!0,Ki[D.subLanguage]),Ki[D.subLanguage]=C._top}else C=Tt(G,D.subLanguage.length?D.subLanguage:null);D.relevance>0&&(ht+=C.relevance),re.__addSublanguage(C._emitter,C.language)}function ue(){D.subLanguage!=null?ct():_e(),G=""}function me(C,N){C!==""&&(re.startScope(N),re.addText(C),re.endScope())}function Fi(C,N){let B=1;const F=N.length-1;for(;B<=F;){if(!C._emit[B]){B++;continue}const ae=ge.classNameAliases[C[B]]||C[B],be=N[B];ae?me(be,ae):(G=be,_e(),G=""),B++}}function Wi(C,N){return C.scope&&typeof C.scope=="string"&&re.openNode(ge.classNameAliases[C.scope]||C.scope),C.beginScope&&(C.beginScope._wrap?(me(G,ge.classNameAliases[C.beginScope._wrap]||C.beginScope._wrap),G=""):C.beginScope._multi&&(Fi(C.beginScope,N),G="")),D=Object.create(C,{parent:{value:D}}),D}function Vi(C,N,B){let F=v(C.endRe,B);if(F){if(C["on:end"]){const ae=new e(C);C["on:end"](N,ae),ae.isMatchIgnored&&(F=!1)}if(F){for(;C.endsParent&&C.parent;)C=C.parent;return C}}if(C.endsWithParent)return Vi(C.parent,N,B)}function Ps(C){return D.matcher.regexIndex===0?(G+=C[0],1):(Dt=!0,0)}function Ls(C){const N=C[0],B=C.rule,F=new e(B),ae=[B.__beforeBegin,B["on:begin"]];for(const be of ae)if(be&&(be(C,F),F.isMatchIgnored))return Ps(N);return B.skip?G+=N:(B.excludeBegin&&(G+=N),ue(),!B.returnBegin&&!B.excludeBegin&&(G=N)),Wi(B,C),B.returnBegin?0:N.length}function js(C){const N=C[0],B=T.substring(C.index),F=Vi(D,C,B);if(!F)return zi;const ae=D;D.endScope&&D.endScope._wrap?(ue(),me(N,D.endScope._wrap)):D.endScope&&D.endScope._multi?(ue(),Fi(D.endScope,C)):ae.skip?G+=N:(ae.returnEnd||ae.excludeEnd||(G+=N),ue(),ae.excludeEnd&&(G=N));do D.scope&&re.closeNode(),!D.skip&&!D.subLanguage&&(ht+=D.relevance),D=D.parent;while(D!==F.parent);return F.starts&&Wi(F.starts,C),ae.returnEnd?0:N.length}function Ds(){const C=[];for(let N=D;N!==ge;N=N.parent)N.scope&&C.unshift(N.scope);C.forEach(N=>re.openNode(N))}let ut={};function Gi(C,N){const B=N&&N[0];if(G+=C,B==null)return ue(),0;if(ut.type==="begin"&&N.type==="end"&&ut.index===N.index&&B===""){if(G+=T.slice(N.index,N.index+1),!Q){const F=new Error(`0 width match regex (${S})`);throw F.languageName=S,F.badRule=ut.rule,F}return 1}if(ut=N,N.type==="begin")return Ls(N);if(N.type==="illegal"&&!q){const F=new Error('Illegal lexeme "'+B+'" for mode "'+(D.scope||"<unnamed>")+'"');throw F.mode=D,F}else if(N.type==="end"){const F=js(N);if(F!==zi)return F}if(N.type==="illegal"&&B==="")return G+=`
435
- `,1;if(jt>1e5&&jt>N.index*3)throw new Error("potential infinite loop, way more iterations than matches");return G+=B,B.length}const ge=xe(S);if(!ge)throw ke(Y.replace("{}",S)),new Error('Unknown language: "'+S+'"');const zs=ws(ge);let Lt="",D=V||zs;const Ki={},re=new $.__emitter($);Ds();let G="",ht=0,Ie=0,jt=0,Dt=!1;try{if(ge.__emitTokens)ge.__emitTokens(T,re);else{for(D.matcher.considerAll();;){jt++,Dt?Dt=!1:D.matcher.considerAll(),D.matcher.lastIndex=Ie;const C=D.matcher.exec(T);if(!C)break;const N=T.substring(Ie,C.index),B=Gi(N,C);Ie=C.index+B}Gi(T.substring(Ie))}return re.finalize(),Lt=re.toHTML(),{language:S,value:Lt,relevance:ht,illegal:!1,_emitter:re,_top:D}}catch(C){if(C.message&&C.message.includes("Illegal"))return{language:S,value:Nt(T),illegal:!0,relevance:0,_illegalBy:{message:C.message,index:Ie,context:T.slice(Ie-100,Ie+100),mode:C.mode,resultSoFar:Lt},_emitter:re};if(Q)return{language:S,value:Nt(T),illegal:!1,relevance:0,errorRaised:C,_emitter:re,_top:D};throw C}}function Mt(S){const T={value:Nt(S),illegal:!1,relevance:0,_top:R,_emitter:new $.__emitter($)};return T._emitter.addText(S),T}function Tt(S,T){T=T||$.languages||Object.keys(x);const q=Mt(S),V=T.filter(xe).filter(Hi).map(ue=>Ke(ue,S,!1));V.unshift(q);const ie=V.sort((ue,me)=>{if(ue.relevance!==me.relevance)return me.relevance-ue.relevance;if(ue.language&&me.language){if(xe(ue.language).supersetOf===me.language)return 1;if(xe(me.language).supersetOf===ue.language)return-1}return 0}),[pe,_e]=ie,ct=pe;return ct.secondBest=_e,ct}function As(S,T,q){const V=T&&k[T]||q;S.classList.add("hljs"),S.classList.add(`language-${V}`)}function Pt(S){let T=null;const q=ne(S);if(L(q))return;if(lt("before:highlightElement",{el:S,language:q}),S.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",S);return}if(S.children.length>0&&($.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(S)),$.throwUnescapedHTML))throw new _s("One of your code blocks includes unescaped HTML.",S.innerHTML);T=S;const V=T.textContent,ie=q?te(V,{language:q,ignoreIllegals:!0}):Tt(V);S.innerHTML=ie.value,S.dataset.highlighted="yes",As(S,q,ie.language),S.result={language:ie.language,re:ie.relevance,relevance:ie.relevance},ie.secondBest&&(S.secondBest={language:ie.secondBest.language,relevance:ie.secondBest.relevance}),lt("after:highlightElement",{el:S,result:ie,text:V})}function Ss(S){$=Di($,S)}const Cs=()=>{at(),De("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function ks(){at(),De("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Bi=!1;function at(){function S(){at()}if(document.readyState==="loading"){Bi||window.addEventListener("DOMContentLoaded",S,!1),Bi=!0;return}document.querySelectorAll($.cssSelector).forEach(Pt)}function Is(S,T){let q=null;try{q=T(d)}catch(V){if(ke("Language definition for '{}' could not be registered.".replace("{}",S)),Q)ke(V);else throw V;q=R}q.name||(q.name=S),x[S]=q,q.rawDefinition=T.bind(null,d),q.aliases&&qi(q.aliases,{languageName:S})}function $s(S){delete x[S];for(const T of Object.keys(k))k[T]===S&&delete k[T]}function Os(){return Object.keys(x)}function xe(S){return S=(S||"").toLowerCase(),x[S]||x[k[S]]}function qi(S,{languageName:T}){typeof S=="string"&&(S=[S]),S.forEach(q=>{k[q.toLowerCase()]=T})}function Hi(S){const T=xe(S);return T&&!T.disableAutodetect}function Rs(S){S["before:highlightBlock"]&&!S["before:highlightElement"]&&(S["before:highlightElement"]=T=>{S["before:highlightBlock"](Object.assign({block:T.el},T))}),S["after:highlightBlock"]&&!S["after:highlightElement"]&&(S["after:highlightElement"]=T=>{S["after:highlightBlock"](Object.assign({block:T.el},T))})}function Ns(S){Rs(S),z.push(S)}function Ms(S){const T=z.indexOf(S);T!==-1&&z.splice(T,1)}function lt(S,T){const q=S;z.forEach(function(V){V[q]&&V[q](T)})}function Ts(S){return De("10.7.0","highlightBlock will be removed entirely in v12.0"),De("10.7.0","Please use highlightElement now."),Pt(S)}Object.assign(d,{highlight:te,highlightAuto:Tt,highlightAll:at,highlightElement:Pt,highlightBlock:Ts,configure:Ss,initHighlighting:Cs,initHighlightingOnLoad:ks,registerLanguage:Is,unregisterLanguage:$s,listLanguages:Os,getLanguage:xe,registerAliases:qi,autoDetection:Hi,inherit:Di,addPlugin:Ns,removePlugin:Ms}),d.debugMode=function(){Q=!1},d.safeMode=function(){Q=!0},d.versionString=xs,d.regex={concat:m,lookahead:c,either:_,optional:f,anyNumberOfTimes:l};for(const S in je)typeof je[S]=="object"&&s(je[S]);return Object.assign(d,je),d},ze=Ui({});return ze.newInstance=()=>Ui({}),fi=ze,ze.HighlightJS=ze,ze.default=ze,fi}var go=mo();const It=po(go),vt="[A-Za-z$_][0-9A-Za-z$_]*",es=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],ts=["true","false","null","undefined","NaN","Infinity"],is=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ns=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ss=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],rs=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],os=[].concat(ss,is,ns);function bo(s){const e=s.regex,t=(W,{after:ee})=>{const le="</"+W[0].slice(1);return W.input.indexOf(le,ee)!==-1},n=vt,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,ee)=>{const le=W[0].length+W.index,ce=W.input[le];if(ce==="<"||ce===","){ee.ignoreMatch();return}ce===">"&&(t(W,{after:le})||ee.ignoreMatch());let we;const Ce=W.input.substring(le);if(we=Ce.match(/^\s*=/)){ee.ignoreMatch();return}if((we=Ce.match(/^\s+extends\s+/))&&we.index===0){ee.ignoreMatch();return}}},p={$pattern:vt,keyword:es,literal:ts,built_in:os,"variable.language":rs},b="[0-9](_?[0-9])*",h=`\\.(${b})`,r="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${r})((${h})|\\.)?|(${h}))[eE][+-]?(${b})\\b`},{begin:`\\b(${r})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:p,contains:[]},l={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,c],subLanguage:"xml"}},f={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,c],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,c],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[s.BACKSLASH_ESCAPE,c]},_={className:"comment",variants:[s.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),s.C_BLOCK_COMMENT_MODE,s.C_LINE_COMMENT_MODE]},E=[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,l,f,m,g,{match:/\$\d+/},u];c.contains=E.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(E)});const v=[].concat(_,c.contains),w=v.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(v)}]),y={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:w},A={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},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:{_:[...is,...ns]}},P={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={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 X(W){return e.concat("(?!",W.join("|"),")")}const H={match:e.concat(/\b/,X([...ss,"super","import"].map(W=>`${W}\\s*\\(`)),n,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Se={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},he={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},O="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+s.UNDERSCORE_IDENT_RE+")\\s*=>",Pe={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(O)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:I},illegal:/#(?![$_A-z])/,contains:[s.SHEBANG({label:"shebang",binary:"node",relevance:5}),P,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,l,f,m,g,_,{match:/\$\d+/},u,I,{scope:"attr",match:n+e.lookahead(":"),relevance:0},Pe,{begin:"("+s.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,s.REGEXP_MODE,{className:"function",begin:O,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:s.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+s.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,s.inherit(s.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},Se,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},H,M,A,he,{match:/\$[(.]/}]}}function yo(s){const e=s.regex,t=bo(s),n=vt,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={begin:[/namespace/,/\s+/,s.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[t.exports.CLASS_REFERENCE]},p={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},b=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:vt,keyword:es.concat(b),literal:ts,built_in:os.concat(i),"variable.language":rs},r={className:"meta",begin:"@"+n},u=(m,g,_)=>{const E=m.contains.findIndex(v=>v.label===g);if(E===-1)throw new Error("can not find mode to replace");m.contains.splice(E,1,_)};Object.assign(t.keywords,h),t.exports.PARAMS_CONTAINS.push(r);const c=t.contains.find(m=>m.scope==="attr"),l=Object.assign({},c,{match:e.concat(n,e.lookahead(/\s*\?:/))});t.exports.PARAMS_CONTAINS.push([t.exports.CLASS_REFERENCE,c,l]),t.contains=t.contains.concat([r,o,a,l]),u(t,"shebang",s.SHEBANG()),u(t,"use_strict",p);const f=t.contains.find(m=>m.label==="func.def");return f.relevance=0,Object.assign(t,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),t}function wo(s){const e=s.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=s.inherit(o,{begin:/\(/,end:/\)/}),p=s.inherit(s.APOS_STRING_MODE,{className:"string"}),b=s.inherit(s.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,b,p,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,a,b,p]}]}]},s.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[b]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:h}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const vo=s=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:s.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:s.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),xo=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],_o=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Eo=[...xo,..._o],Ao=["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(),So=["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(),Co=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),ko=["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 Io(s){const e=s.regex,t=vo(s),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",p=[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,n,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+So.join("|")+")"},{begin:":(:)?("+Co.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ko.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...p,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...p,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Ao.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Eo.join("|")+")\\b"}]}}const as=document.createElement("style");as.innerText=[ho,fo].join(`
436
- `);document.head.appendChild(as);It.registerLanguage("typescript",yo);It.registerLanguage("html",wo);It.registerLanguage("css",Io);function $o(...s){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const n=document.createElement("div");return s.forEach(i=>{e.appendChild(i),i.addEventListener("click",()=>{s.forEach(o=>o.removeAttribute("selected")),i.setAttribute("selected",""),n.innerHTML="",n.appendChild(i.content),n.className=i.className,n.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(n),n.classList.add("tab-content"),s[0].setAttribute("selected",""),n.appendChild(s[0].content),t}function Je(s,e){const t=document.createElement("div");return t.role="tab",t.tabIndex=0,t.innerText=s,t.content=e,e.tagName=="PRE"&&t.classList.add("code"),t}function Ye(s,e){const t=document.createElement(s);return typeof e=="string"?t.innerHTML=e:e.forEach(n=>{t.appendChild(n)}),t}async function Oo(s,e,t){const n=e.mainContent,i=Ye("div",n);i.id=`example-preview-${t}`;const o=typeof e.css=="string"?void 0:e.css?.label,a=typeof e.css=="string"?e.css:e.css?.content,p=$o(Je("Preview",i),Je("HTML",mt("html",n)),...a?[Je(o??"CSS",mt("css",a))]:[],...e.initializer&&e.initializer.content?[Je(e.initializer.label??"TS",mt("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(h=>Je(h.label,mt(h.language,h.content))));e.description&&s.appendChild(Ye("div",e.description));const b=Ye("div",[p]);b.classList.add("example"),s.appendChild(b),a&&Ro(`#${i.id}`,a),e.initializer?.initialize&&await e.initializer.initialize(i)}function mt(s,e){let t=e.split(/\r?\n/).map(n=>{const i=n.indexOf("///");if(i>-1){const o=n.substring(i+3).trimStart();return o?n.replace(/^(\s*)([^\s].*)$/,`$1${o}`):void 0}return n}).filter(n=>typeof n<"u").join(`
437
- `).trim();return s&&s!="raw"&&(t=It.highlight(t,{language:s}).value),Ye("pre",[Ye("code",t)])}function Ro(s,e){const t=document.createElement("style");t.innerHTML=Z().use(uo({prefix:s})).process(e).css,document.head.appendChild(t)}async function No(s,e=document.body){const t=To(e);let n=0;Object.keys(s).sort().forEach(async i=>{const o=document.createElement("div");o.className="example-container",t.appendChild(o);const a=s[i].default;Oo(o,a,n++)})}function Mo(s){const e=document.createElement("div");e.id="examples-container";const t=s.querySelector("#examples");return t?t.after(e):s.appendChild(e),e}function To(s){return s.children?Mo(s):s}const Po=`<h1 id="@cas-smartdesign/virtual-list">@cas-smartdesign/virtual-list</h1>
427
+ `)&&(t=`\r
428
+ `),this.css+=t+`/*# sourceMappingURL=`+e+` */`}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||n(e.file),i;this.mapOpts.sourcesContent===!1?(i=new o(e.text),i.sourcesContent&&=null):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}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.startsWith(`# sourceMappingURL=`)&&this.root.removeChild(t)}else if(this.css){let e;for(;(e=this.css.lastIndexOf(`/*#`))!==-1;){let t=this.css.indexOf(`*/`,e+3);if(t===-1)break;for(;e>0&&this.css[e-1]===`
429
+ `;)e--;this.css=this.css.slice(0,e)+this.css.slice(t+2)}}}}generate(){if(this.clearAnnotation(),d&&u&&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=s.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new s({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 s({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,n=`<no source>`,r={generated:{column:0,line:0},original:{column:0,line:0},source:``},i,a;this.stringify(this.root,(o,s,c)=>{if(this.css+=o,s&&c!==`end`&&(r.generated.line=e,r.generated.column=t-1,s.source&&s.source.start?(r.source=this.sourcePath(s),r.original.line=s.source.start.line,r.original.column=s.source.start.column-1,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,this.map.addMapping(r))),a=o.match(/\n/g),a?(e+=a.length,i=o.lastIndexOf(`
430
+ `),t=o.length-i):t+=o.length,s&&c!==`start`){let i=s.parent||{raws:{}};(!(s.type===`decl`||s.type===`atrule`&&!s.nodes)||s!==i.last||i.raws.semicolon)&&(s.source&&s.source.end?(r.source=this.sourcePath(s),r.original.line=s.source.end.line,r.original.column=s.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:this.mapOpts.annotation===void 0?this.previous().length?this.previous().some(e=>e.annotation):!0:this.mapOpts.annotation}isInline(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;let e=this.mapOpts.annotation;return e!==void 0&&e!==!0?!1:this.previous().length?this.previous().some(e=>e.inline):!0}isMap(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map}isSourcesContent(){return this.mapOpts.sourcesContent===void 0?this.previous().length?this.previous().some(e=>e.withContent()):!0:this.mapOpts.sourcesContent}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 a=this.opts.to?n(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(a=n(i(a,this.mapOpts.annotation)));let o=r(a,e);return this.memoizedPaths.set(e,o),o}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 l(this.originalCSS,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 n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`;this.map.setSourceContent(e,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(c){let t=c(e).toString();return this.memoizedFileURLs.set(e,t),t}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;a===`\\`&&(e=e.replace(/\\/g,`/`));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}})),Yt=o(((e,t)=>{var n=39,r=34,i=92,a=47,o=10,s=32,c=12,l=9,u=13,d=91,f=93,p=40,m=41,h=123,g=125,_=59,v=42,y=58,b=64,x=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,C=/.[\r\n"'(/\\]/,w=/[\da-f]/i;t.exports=function(e,t={}){let T=e.css.valueOf(),E=t.ignoreErrors,D,O,k,A,j,M,N,P,F,I,L=T.length,R=0,z=[],B=[];function ee(){return R}function V(t){throw e.error(`Unclosed `+t,R)}function te(){return B.length===0&&R>=L}function ne(e){if(B.length)return B.pop();if(R>=L)return;let t=e?e.ignoreUnclosed:!1;switch(D=T.charCodeAt(R),D){case o:case s:case l:case u:case c:A=R;do A+=1,D=T.charCodeAt(A);while(D===s||D===o||D===l||D===u||D===c);M=[`space`,T.slice(R,A)],R=A-1;break;case d:case f:case h:case g:case y:case _:case m:{let e=String.fromCharCode(D);M=[e,e,R];break}case p:if(I=z.length?z.pop()[1]:``,F=T.charCodeAt(R+1),I===`url`&&F!==n&&F!==r&&F!==s&&F!==o&&F!==l&&F!==c&&F!==u){A=R;do{if(N=!1,A=T.indexOf(`)`,A+1),A===-1)if(E||t){A=R;break}else V(`bracket`);for(P=A;T.charCodeAt(P-1)===i;)--P,N=!N}while(N);M=[`brackets`,T.slice(R,A+1),R,A],R=A}else A=T.indexOf(`)`,R+1),O=T.slice(R,A+1),A===-1||C.test(O)?M=[`(`,`(`,R]:(M=[`brackets`,O,R,A],R=A);break;case n:case r:j=D===n?`'`:`"`,A=R;do{if(N=!1,A=T.indexOf(j,A+1),A===-1)if(E||t){A=R+1;break}else V(`string`);for(P=A;T.charCodeAt(P-1)===i;)--P,N=!N}while(N);M=[`string`,T.slice(R,A+1),R,A],R=A;break;case b:x.lastIndex=R+1,x.test(T),A=x.lastIndex===0?T.length-1:x.lastIndex-2,M=[`at-word`,T.slice(R,A+1),R,A],R=A;break;case i:for(A=R,k=!0;T.charCodeAt(A+1)===i;)A+=1,k=!k;if(D=T.charCodeAt(A+1),k&&D!==a&&D!==s&&D!==o&&D!==l&&D!==u&&D!==c&&(A+=1,w.test(T.charAt(A)))){for(;w.test(T.charAt(A+1));)A+=1;T.charCodeAt(A+1)===s&&(A+=1)}M=[`word`,T.slice(R,A+1),R,A],R=A;break;default:D===a&&T.charCodeAt(R+1)===v?(A=T.indexOf(`*/`,R+2)+1,A===0&&(E||t?A=T.length:V(`comment`)),M=[`comment`,T.slice(R,A+1),R,A],R=A):(S.lastIndex=R+1,S.test(T),A=S.lastIndex===0?T.length-1:S.lastIndex-2,M=[`word`,T.slice(R,A+1),R,A],z.push(M),R=A);break}return R++,M}function re(e){B.push(e)}return{back:re,endOfFile:te,nextToken:ne,position:ee}}})),Xt=o(((e,t)=>{var n=zt(),r=It(),i=Lt(),a=Wt(),o=Kt(),s=Yt(),c={empty:!0,space:!0};function l(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}t.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new n;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,a,o=!1,s=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r===`(`||r===`[`?l.push(r===`(`?`)`:`]`):r===`{`&&l.length>0?l.push(`}`):r===l[l.length-1]&&l.pop(),l.length===0)if(r===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r===`{`){s=!0;break}else if(r===`}`){if(c.length>0){for(a=c.length-1,i=c[a];i&&i[0]===`space`;)i=c[--a];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else c.push(e);else c.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(t.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(t,`params`,c),o&&(e=c[c.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=``),s&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,r;for(let i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}colon(e){let t=0,n,r,i;for(let[a,o]of e.entries()){if(r=o,i=r[0],i===`(`&&(t+=1),i===`)`&&--t,t===0&&i===`:`)if(!n)this.doubleColon(r);else if(n[0]===`word`&&n[1]===`progid`)continue;else return a;n=r}return!1}comment(e){let t=new r;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(!n.trim())t.text=``,t.raws.left=n,t.raws.right=``;else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=s(this.input)}decl(e,t){let n=new i;this.init(n,e[0][2]);let r=e[e.length-1];for(r[0]===`;`&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||l(e)),n.source.end.offset++;e[0][0]!==`word`;)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop=``;e.length;){let t=e[0][0];if(t===`:`||t===`space`||t===`comment`)break;n.prop+=e.shift()[1]}n.raws.between=``;let a;for(;e.length;)if(a=e.shift(),a[0]===`:`){n.raws.between+=a[1];break}else a[0]===`word`&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1];(n.prop[0]===`_`||n.prop[0]===`*`)&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],s;for(;e.length&&(s=e[0][0],!(s!==`space`&&s!==`comment`));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(a=e[t],a[1].toLowerCase()===`!important`){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r,r!==` !important`&&(n.raws.important=r);break}else if(a[1].toLowerCase()===`important`){let r=e.slice(0),i=``;for(let e=t;e>0;e--){let t=r[e][0];if(i.trim().startsWith(`!`)&&t!==`space`)break;i=r.pop()[1]+i}i.trim().startsWith(`!`)&&(n.important=!0,n.raws.important=i,e=r)}if(a[0]!==`space`&&a[0]!==`comment`)break}e.some(e=>e[0]!==`space`&&e[0]!==`comment`)&&(n.raws.between+=o.map(e=>e[1]).join(``),o=[]),this.raw(n,`value`,o.concat(e),t),n.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 o;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=``,t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}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,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;for(;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0)if(n===`;`)if(r){this.decl(s,o);return}else break;else if(n===`{`){this.rule(s);return}else if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}else n===`:`&&(r=!0);else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],!(c!==`space`&&c!==`comment`));)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)}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,n,r){let i,a,o=n.length,s=``,l=!0,u,d;for(let e=0;e<o;e+=1)i=n[e],a=i[0],a===`space`&&e===o-1&&!r?l=!1:a===`comment`?(d=n[e-1]?n[e-1][0]:`empty`,u=n[e+1]?n[e+1][0]:`empty`,!c[d]&&!c[u]?s.slice(-1)===`,`?l=!1:s+=i[1]:l=!1):s+=i[1];if(!l){let r=n.reduce((e,t)=>e+t[1],``);e.raws[t]={raw:r,value:s}}e[t]=s}rule(e){e.pop();let t=new o;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,`selector`,e),this.current=t}spacesAndCommentsFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],!(t!==`space`&&t!==`comment`));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n=``;for(;e.length&&(t=e[0][0],!(t!==`space`&&t!==`comment`));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n=``;for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}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 `+e[0][1],{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})}}})),Zt=o(((e,t)=>{var n=Rt(),r=Ut(),i=Xt();function a(e,t){let n=new i(new r(e,t));try{n.parse()}catch(e){throw e}return n.root}t.exports=a,a.default=a,n.registerParse(a)})),Qt=o(((e,t)=>{var n=class{constructor(e,t={}){if(this.type=`warning`,this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}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}};t.exports=n,n.default=n})),$t=o(((e,t)=>{var n=Qt(),r=class{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=``,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type===`warning`)}};t.exports=r,r.default=r})),en=o(((e,t)=>{var n={};t.exports=function(e){n[e]||(n[e]=!0,typeof console<`u`&&console.warn&&console.warn(e))}})),tn=o(((e,t)=>{var n=Rt(),r=Bt(),i=Jt(),a=Zt(),o=$t(),s=Wt(),c=Nt(),{isClean:l,my:u}=Pt();en();var d={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},f={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},p={Once:!0,postcssPlugin:!0,prepare:!0},m=0;function h(e){return typeof e==`object`&&typeof e.then==`function`}function g(e){let t=!1,n=d[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,m,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,m,n+`Exit`]:[n,n+`Exit`]}function _(e){let t;return t=e.type===`document`?[`Document`,m,`DocumentExit`]:e.type===`root`?[`Root`,m,`RootExit`]:g(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function v(e){return e[l]=!1,e.nodes&&e.nodes.forEach(e=>v(e)),e}var y={},b=class e{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return`LazyResult`}constructor(t,r,i){this.stringified=!1,this.processed=!1;let s;if(typeof r==`object`&&r&&(r.type===`root`||r.type===`document`))s=v(r);else if(r instanceof e||r instanceof o)s=v(r.root),r.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=a;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{s=e(r,i)}catch(e){this.processed=!0,this.error=e}s&&!s[u]&&n.rebuild(s)}this.result=new o(t,s,i),this.helpers={...y,postcss:y,result:this.result},this.plugins=this.processor.plugins.map(e=>typeof e==`object`&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||=this.runAsync(),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error(`Use process(css).then(cb) to work with async plugins`)}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if(typeof t==`object`)for(let n in t){if(!f[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[n])if(typeof t[n]==`object`)for(let r in t[n])r===`*`?e(t,n,t[n][r]):e(t,n+`-`+r.toLowerCase(),t[n][r]);else typeof t[n]==`function`&&e(t,n,t[n])}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],n=this.runOnRoot(t);if(h(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];){e[l]=!0;let t=[_(e)];for(;t.length>0;){let e=this.visitTick(t);if(h(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type===`document`){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}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(t=>e.Once(t,this.helpers));return h(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(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new i(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[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)if(h(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];)e[l]=!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[n,r]of e){this.result.lastPlugin=n;let e;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(h(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){let r=t.iterator,i;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[l]){i[l]=!0,e.push(_(i));return}t.iterator=0,delete n.indexes[r]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===m){n.nodes&&n.nodes.length&&(n[l]=!0,t.iterator=n.getIterator());return}else if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){e[l]=!0;let t=g(e);for(let n of t)if(n===m)e.nodes&&e.each(e=>{e[l]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}};b.registerPostcss=e=>{y=e},t.exports=b,b.default=b,s.registerLazyResult(b),r.registerLazyResult(b)})),nn=o(((e,t)=>{var n=Jt(),r=Zt(),i=$t(),a=Nt();en();var o=class{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=r;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return`NoWorkResult`}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let o=a;this.result=new i(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,`root`,{get(){return s.root}});let c=new n(o,void 0,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}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[]}};t.exports=o,o.default=o})),rn=o(((e,t)=>{var n=Bt(),r=tn(),i=nn(),a=Wt(),o=class{constructor(e=[]){this.version=`8.5.8`,this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n==`object`&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n==`object`&&n.postcssPlugin)t.push(n);else if(typeof n==`function`)t.push(n);else if(!(typeof n==`object`&&(n.parse||n.stringify)))throw Error(n+` is not a PostCSS plugin`);return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new i(this,e,t):new r(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};t.exports=o,o.default=o,a.registerProcessor(o),n.registerProcessor(o)})),$=l(o(((e,t)=>{var n=zt(),r=It(),i=Rt(),a=jt(),o=Lt(),s=Bt(),c=qt(),l=Ut(),u=tn(),d=Gt(),f=Ft(),p=Zt(),m=rn(),h=$t(),g=Wt(),_=Kt(),v=Nt(),y=Qt();function b(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new m(e)}b.plugin=function(e,t){let n=!1;function r(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
431
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),{}.LANG&&{}.LANG.startsWith(`cn`)&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
432
+ https://www.w3ctech.com/topic/2226`));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new m().version,i}let i;return Object.defineProperty(r,`postcss`,{get(){return i||=r(),i}}),r.process=function(e,t,n){return b([r(n)]).process(e,t)},r},b.stringify=v,b.parse=p,b.fromJSON=c,b.list=d,b.comment=e=>new r(e),b.atRule=e=>new n(e),b.decl=e=>new o(e),b.rule=e=>new _(e),b.root=e=>new g(e),b.document=e=>new s(e),b.CssSyntaxError=a,b.Declaration=o,b.Container=i,b.Processor=m,b.Document=s,b.Comment=r,b.Warning=y,b.AtRule=n,b.Result=h,b.Input=l,b.Rule=_,b.Root=g,b.Node=f,u.registerPostcss(b),t.exports=b,b.default=b}))(),1),an=$.default;$.default.stringify,$.default.fromJSON,$.default.plugin,$.default.parse,$.default.list,$.default.document,$.default.comment,$.default.atRule,$.default.rule,$.default.decl,$.default.root,$.default.CssSyntaxError,$.default.Declaration,$.default.Container,$.default.Processor,$.default.Document,$.default.Comment,$.default.Warning,$.default.AtRule,$.default.Result,$.default.Input,$.default.Rule,$.default.Root,$.default.Node;var on=l(o(((e,t)=>{var n=(e={})=>{let t=e.prefix,n=/\s+$/.test(t)?t:`${t} `,a=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return{postcssPlugin:`postcss-prefix-selector`,prepare(s){let c=s.root,l=c.source.input.file;if(!(a.length&&l&&r(l,a))&&!(o.length&&l&&!r(l,o)))return{Rule(r,{result:a}){r.parent&&[`keyframes`,`-webkit-keyframes`,`-moz-keyframes`,`-o-keyframes`,`-ms-keyframes`].includes(r.parent.name)||(r.selectors=r.selectors.map(a=>e.exclude&&i(a,e.exclude)?a:e.transform?e.transform(t,a,n+a,c.source.input.file,r):[`:root`,`body`,`html`].some(e=>a.startsWith(e))?e.skipGlobalSelectors?a:a.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,t):n+a))}}}}};function r(e,t){return t.some(t=>t instanceof RegExp?t.test(e):e.includes(t))}function i(e,t){return t.some(t=>t instanceof RegExp?t.test(e):e===t)}n.postcss=!0,t.exports=n}))(),1),sn=Object.create,cn=Object.defineProperty,ln=Object.getOwnPropertyDescriptor,un=Object.getOwnPropertyNames,dn=Object.getPrototypeOf,fn=Object.prototype.hasOwnProperty,pn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),mn=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=un(t),a=0,o=i.length,s;a<o;a++)s=i[a],!fn.call(e,s)&&s!==n&&cn(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=ln(t,s))||r.enumerable});return e},hn=(e,t,n)=>(n=e==null?{}:sn(dn(e)),mn(t||!e||!e.__esModule?cn(n,`default`,{value:e,enumerable:!0}):n,e)),gn=`pre code.hljs{padding:1em;display:block;overflow-x:auto}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}`,_n=`code{white-space:pre}.example{flex-flow:wrap;align-items:center;gap:16px;display:flex}.example>*{flex:500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;-webkit-user-select:none;user-select:none;background-clip:padding-box;border-bottom:2px solid #0000;padding:8px 16px;font-size:16px;display:inline-block}.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}`,vn=hn(pn(((e,t)=>{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let r=e[t],i=typeof r;(i===`object`||i===`function`)&&!Object.isFrozen(r)&&n(r)}),e}var r=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function i(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#x27;`)}function a(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var o=`</span>`,s=e=>!!e.scope,c=(e,{prefix:t})=>{if(e.startsWith(`language:`))return e.replace(`language:`,`language-`);if(e.includes(`.`)){let n=e.split(`.`);return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${`_`.repeat(t+1)}`)].join(` `)}return`${t}${e}`},l=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=c(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){s(e)&&(this.buffer+=o)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}},u=(e={})=>{let t={children:[]};return Object.assign(t,e),t},d=class e{constructor(){this.rootNode=u(),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){let t=u({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(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},f=class extends d{constructor(e){super(),this.options=e}addText(e){e!==``&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function p(e){return e?typeof e==`string`?e:e.source:null}function m(e){return _(`(?=`,e,`)`)}function h(e){return _(`(?:`,e,`)*`)}function g(e){return _(`(?:`,e,`)?`)}function _(...e){return e.map(e=>p(e)).join(``)}function v(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function y(...e){return`(`+(v(e).capture?``:`?:`)+e.map(e=>p(e)).join(`|`)+`)`}function b(e){return RegExp(e.toString()+`|`).exec(``).length-1}function x(e,t){let n=e&&e.exec(t);return n&&n.index===0}var S=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function C(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;let t=n,r=p(e),i=``;for(;r.length>0;){let e=S.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],e[0]===`(`&&n++)}return i}).map(e=>`(${e})`).join(t)}var w=/\b\B/,T=`[a-zA-Z]\\w*`,E=`[a-zA-Z_]\\w*`,D=`\\b\\d+(\\.\\d+)?`,O=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,k=`\\b(0b[01]+)`,A=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,j=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=_(t,/.*\b/,e.binary,/\b.*/)),a({scope:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},M={begin:`\\\\[\\s\\S]`,relevance:0},N={scope:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[M]},P={scope:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[M]},F={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/},I=function(e,t,n={}){let r=a({scope:`comment`,begin:e,end:t,contains:[]},n);r.contains.push({scope:`doctag`,begin:`[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)`,end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=y(`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 r.contains.push({begin:_(/[ ]+/,`(`,i,/[.]?[:]?([.][ ]|[ ])/,`){3}`)}),r},L=I(`//`,`$`),R=I(`/\\*`,`\\*/`),z=I(`#`,`$`),B={scope:`number`,begin:D,relevance:0},ee={scope:`number`,begin:O,relevance:0},V={scope:`number`,begin:k,relevance:0},te={scope:`regexp`,begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[M,{begin:/\[/,end:/\]/,relevance:0,contains:[M]}]},ne={scope:`title`,begin:T,relevance:0},re={scope:`title`,begin:E,relevance:0},ie={begin:`\\.\\s*`+E,relevance:0},ae=Object.freeze({__proto__:null,APOS_STRING_MODE:N,BACKSLASH_ESCAPE:M,BINARY_NUMBER_MODE:V,BINARY_NUMBER_RE:k,COMMENT:I,C_BLOCK_COMMENT_MODE:R,C_LINE_COMMENT_MODE:L,C_NUMBER_MODE:ee,C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:z,IDENT_RE:T,MATCH_NOTHING_RE:w,METHOD_GUARD:ie,NUMBER_MODE:B,NUMBER_RE:D,PHRASAL_WORDS_MODE:F,QUOTE_STRING_MODE:P,REGEXP_MODE:te,RE_STARTERS_RE:A,SHEBANG:j,TITLE_MODE:ne,UNDERSCORE_IDENT_RE:E,UNDERSCORE_TITLE_MODE:re});function oe(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function se(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function ce(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=oe,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function le(e,t){Array.isArray(e.illegal)&&(e.illegal=y(...e.illegal))}function ue(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function de(e,t){e.relevance===void 0&&(e.relevance=1)}var fe=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error(`beforeMatch cannot be used with starts`);let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=_(n.beforeMatch,m(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},pe=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],me=`keyword`;function H(e,t,n=me){let r=Object.create(null);return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,H(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,he(n[0],n[1])]})}}function he(e,t){return t?Number(t):ge(e)?0:1}function ge(e){return pe.includes(e.toLowerCase())}var _e={},U=e=>{console.error(e)},ve=(e,...t)=>{console.log(`WARN: ${e}`,...t)},W=(e,t)=>{_e[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),_e[`${e}/${t}`]=!0)},ye=Error();function be(e,t,{key:n}){let r=0,i=e[n],a={},o={};for(let e=1;e<=t.length;e++)o[e+r]=i[e],a[e+r]=!0,r+=b(t[e-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function xe(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw U(`skip, excludeBegin, returnBegin not compatible with beginScope: {}`),ye;if(typeof e.beginScope!=`object`||e.beginScope===null)throw U(`beginScope must be object`),ye;be(e,e.begin,{key:`beginScope`}),e.begin=C(e.begin,{joinWith:``})}}function Se(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw U(`skip, excludeEnd, returnEnd not compatible with endScope: {}`),ye;if(typeof e.endScope!=`object`||e.endScope===null)throw U(`endScope must be object`),ye;be(e,e.end,{key:`endScope`}),e.end=C(e.end,{joinWith:``})}}function Ce(e){e.scope&&typeof e.scope==`object`&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function we(e){Ce(e),typeof e.beginScope==`string`&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope==`string`&&(e.endScope={_wrap:e.endScope}),xe(e),Se(e)}function Te(e){function t(t,n){return new RegExp(p(t),`m`+(e.case_insensitive?`i`:``)+(e.unicodeRegex?`u`:``)+(n?`g`:``))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=b(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null),this.matcherRe=t(C(this.regexes.map(e=>e[1]),{joinWith:`|`}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){let t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function o(n,r){let a=n;if(n.isCompiled)return a;[se,ue,we,fe].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[ce,le,de].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return typeof n.keywords==`object`&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s||=/\w+/,n.keywords&&=H(n.keywords,e.case_insensitive),a.keywordPatternRe=t(s,!0),r&&(n.begin||=/\B|\b/,a.beginRe=t(a.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=p(a.end)||``,n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?`|`:``)+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||=[],n.contains=[].concat(...n.contains.map(function(e){return De(e===`self`?n:e)})),n.contains.forEach(function(e){o(e,a)}),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),o(e)}function Ee(e){return e?e.endsWithParent||Ee(e.starts):!1}function De(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Ee(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var Oe=`11.11.1`,ke=class extends Error{constructor(e,t){super(e),this.name=`HTMLInjectionError`,this.html=t}},Ae=i,je=a,Me=Symbol(`nomatch`),Ne=7,Pe=function(e){let t=Object.create(null),i=Object.create(null),a=[],o=!0,s=`Could not find the language '{}', did you forget to load/include a language module?`,c={disableAutodetect:!0,name:`Plain text`,contains:[]},l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,cssSelector:`pre code`,languages:null,__emitter:f};function u(e){return l.noHighlightRe.test(e)}function d(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=l.languageDetectRe.exec(t);if(n){let t=N(n[1]);return t||(ve(s.replace(`{}`,n[1])),ve(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>u(e)||N(e))}function p(e,t,n){let r=``,i=``;typeof t==`object`?(r=e,n=t.ignoreIllegals,i=t.language):(W(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),W(`10.7.0`,`Please use highlight(code, options) instead.
433
+ https://github.com/highlightjs/highlight.js/issues/2277`),i=e,r=t),n===void 0&&(n=!0);let a={code:r,language:i};z(`before:highlight`,a);let o=a.result?a.result:v(a.language,a.code,n);return o.code=a.code,z(`after:highlight`,o),o}function v(e,n,i,a){let c=Object.create(null);function u(e,t){return e.keywords[t]}function d(){if(!A.keywords){M.addText(P);return}let e=0;A.keywordPatternRe.lastIndex=0;let t=A.keywordPatternRe.exec(P),n=``;for(;t;){n+=P.substring(e,t.index);let r=D.case_insensitive?t[0].toLowerCase():t[0],i=u(A,r);if(i){let[e,a]=i;if(M.addText(n),n=``,c[r]=(c[r]||0)+1,c[r]<=Ne&&(F+=a),e.startsWith(`_`))n+=t[0];else{let n=D.classNameAliases[e]||e;m(t[0],n)}}else n+=t[0];e=A.keywordPatternRe.lastIndex,t=A.keywordPatternRe.exec(P)}n+=P.substring(e),M.addText(n)}function f(){if(P===``)return;let e=null;if(typeof A.subLanguage==`string`){if(!t[A.subLanguage]){M.addText(P);return}e=v(A.subLanguage,P,!0,j[A.subLanguage]),j[A.subLanguage]=e._top}else e=S(P,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(F+=e.relevance),M.__addSublanguage(e._emitter,e.language)}function p(){A.subLanguage==null?d():f(),P=``}function m(e,t){e!==``&&(M.startScope(t),M.addText(e),M.endScope())}function h(e,t){let n=1,r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}let r=D.classNameAliases[e[n]]||e[n],i=t[n];r?m(i,r):(P=i,d(),P=``),n++}}function g(e,t){return e.scope&&typeof e.scope==`string`&&M.openNode(D.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(m(P,D.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),P=``):e.beginScope._multi&&(h(e.beginScope,t),P=``)),A=Object.create(e,{parent:{value:A}}),A}function _(e,t,n){let i=x(e.endRe,n);if(i){if(e[`on:end`]){let n=new r(e);e[`on:end`](t,n),n.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return _(e.parent,t,n)}function y(e){return A.matcher.regexIndex===0?(P+=e[0],1):(R=!0,0)}function b(e){let t=e[0],n=e.rule,i=new r(n),a=[n.__beforeBegin,n[`on:begin`]];for(let n of a)if(n&&(n(e,i),i.isMatchIgnored))return y(t);return n.skip?P+=t:(n.excludeBegin&&(P+=t),p(),!n.returnBegin&&!n.excludeBegin&&(P=t)),g(n,e),n.returnBegin?0:t.length}function C(e){let t=e[0],r=n.substring(e.index),i=_(A,e,r);if(!i)return Me;let a=A;A.endScope&&A.endScope._wrap?(p(),m(t,A.endScope._wrap)):A.endScope&&A.endScope._multi?(p(),h(A.endScope,e)):a.skip?P+=t:(a.returnEnd||a.excludeEnd||(P+=t),p(),a.excludeEnd&&(P=t));do A.scope&&M.closeNode(),!A.skip&&!A.subLanguage&&(F+=A.relevance),A=A.parent;while(A!==i.parent);return i.starts&&g(i.starts,e),a.returnEnd?0:t.length}function w(){let e=[];for(let t=A;t!==D;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>M.openNode(e))}let T={};function E(t,r){let a=r&&r[0];if(P+=t,a==null)return p(),0;if(T.type===`begin`&&r.type===`end`&&T.index===r.index&&a===``){if(P+=n.slice(r.index,r.index+1),!o){let t=Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=T.rule,t}return 1}if(T=r,r.type===`begin`)return b(r);if(r.type===`illegal`&&!i){let e=Error(`Illegal lexeme "`+a+`" for mode "`+(A.scope||`<unnamed>`)+`"`);throw e.mode=A,e}else if(r.type===`end`){let e=C(r);if(e!==Me)return e}if(r.type===`illegal`&&a===``)return P+=`
434
+ `,1;if(L>1e5&&L>r.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return P+=a,a.length}let D=N(e);if(!D)throw U(s.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let O=Te(D),k=``,A=a||O,j={},M=new l.__emitter(l);w();let P=``,F=0,I=0,L=0,R=!1;try{if(D.__emitTokens)D.__emitTokens(n,M);else{for(A.matcher.considerAll();;){L++,R?R=!1:A.matcher.considerAll(),A.matcher.lastIndex=I;let e=A.matcher.exec(n);if(!e)break;let t=E(n.substring(I,e.index),e);I=e.index+t}E(n.substring(I))}return M.finalize(),k=M.toHTML(),{language:e,value:k,relevance:F,illegal:!1,_emitter:M,_top:A}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{language:e,value:Ae(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:I,context:n.slice(I-100,I+100),mode:t.mode,resultSoFar:k},_emitter:M};if(o)return{language:e,value:Ae(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:A};throw t}}function b(e){let t={value:Ae(e),illegal:!1,relevance:0,_top:c,_emitter:new l.__emitter(l)};return t._emitter.addText(e),t}function S(e,n){n=n||l.languages||Object.keys(t);let r=b(e),i=n.filter(N).filter(F).map(t=>v(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(N(e.language).supersetOf===t.language)return 1;if(N(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.secondBest=o,s}function C(e,t,n){let r=t&&i[t]||n;e.classList.add(`hljs`),e.classList.add(`language-${r}`)}function w(e){let t=null,n=d(e);if(u(n))return;if(z(`before:highlightElement`,{el:e,language:n}),e.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);return}if(e.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(e)),l.throwUnescapedHTML))throw new ke(`One of your code blocks includes unescaped HTML.`,e.innerHTML);t=e;let r=t.textContent,i=n?p(r,{language:n,ignoreIllegals:!0}):S(r);e.innerHTML=i.value,e.dataset.highlighted=`yes`,C(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),z(`after:highlightElement`,{el:e,result:i,text:r})}function T(e){l=je(l,e)}let E=()=>{k(),W(`10.6.0`,`initHighlighting() deprecated. Use highlightAll() now.`)};function D(){k(),W(`10.6.0`,`initHighlightingOnLoad() deprecated. Use highlightAll() now.`)}let O=!1;function k(){function e(){k()}if(document.readyState===`loading`){O||window.addEventListener(`DOMContentLoaded`,e,!1),O=!0;return}document.querySelectorAll(l.cssSelector).forEach(w)}function A(n,r){let i=null;try{i=r(e)}catch(e){if(U(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)U(e);else throw e;i=c}i.name||=n,t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&P(i.aliases,{languageName:n})}function j(e){delete t[e];for(let t of Object.keys(i))i[t]===e&&delete i[t]}function M(){return Object.keys(t)}function N(e){return e=(e||``).toLowerCase(),t[e]||t[i[e]]}function P(e,{languageName:t}){typeof e==`string`&&(e=[e]),e.forEach(e=>{i[e.toLowerCase()]=t})}function F(e){let t=N(e);return t&&!t.disableAutodetect}function I(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function L(e){I(e),a.push(e)}function R(e){let t=a.indexOf(e);t!==-1&&a.splice(t,1)}function z(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function B(e){return W(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),W(`10.7.0`,`Please use highlightElement now.`),w(e)}Object.assign(e,{highlight:p,highlightAuto:S,highlightAll:k,highlightElement:w,highlightBlock:B,configure:T,initHighlighting:E,initHighlightingOnLoad:D,registerLanguage:A,unregisterLanguage:j,listLanguages:M,getLanguage:N,registerAliases:P,autoDetection:F,inherit:je,addPlugin:L,removePlugin:R}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=Oe,e.regex={concat:_,lookahead:m,either:y,optional:g,anyNumberOfTimes:h};for(let e in ae)typeof ae[e]==`object`&&n(ae[e]);return Object.assign(e,ae),e},G=Pe({});G.newInstance=()=>Pe({}),t.exports=G,G.HighlightJS=G,G.default=G}))()).default,yn=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.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:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.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_-]*/}}),bn=`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`.split(`.`),xn=`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`.split(`.`),Sn=[...bn,...xn],Cn=`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`.split(`.`).sort().reverse(),wn=`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`.split(`.`).sort().reverse(),Tn=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),En=`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`.split(`.`).sort().reverse();function Dn(e){let t=e.regex,n=yn(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i=/@-?\w[\w]*(-\w+)*/,a=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:`CSS`,case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:`from to`},classNameAliases:{keyframePosition:`selector-tag`},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:`selector-id`,begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:`selector-class`,begin:`\\.[a-zA-Z-][a-zA-Z0-9_-]*`,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,variants:[{begin:`:(`+wn.join(`|`)+`)`},{begin:`:(:)?(`+Tn.join(`|`)+`)`}]},n.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+En.join(`|`)+`)\\b`},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:`url data-uri`},contains:[...a,{className:`string`,begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:`[{;]`,relevance:0,illegal:/:/,contains:[{className:`keyword`,begin:i},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:Cn.join(` `)},contains:[{begin:/[a-z-]+(?=:)/,className:`attribute`},...a,n.CSS_NUMBER_MODE]}]},{className:`selector-tag`,begin:`\\b(`+Sn.join(`|`)+`)\\b`}]}}var On=`[A-Za-z$_][0-9A-Za-z$_]*`,kn=`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`.split(`.`),An=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],jn=`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`.split(`.`),Mn=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],Nn=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],Pn=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],Fn=[].concat(Nn,jn,Mn);function In(e){let t=e.regex,n=(e,{after:t})=>{let n=`</`+e[0].slice(1);return e.input.indexOf(n,t)!==-1},r=On,i={begin:`<>`,end:`</>`},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let r=e[0].length+e.index,i=e.input[r];if(i===`<`||i===`,`){t.ignoreMatch();return}i===`>`&&(n(e,{after:r})||t.ignoreMatch());let a,o=e.input.substring(r);if(a=o.match(/^\s*=/)){t.ignoreMatch();return}if((a=o.match(/^\s+extends\s+/))&&a.index===0){t.ignoreMatch();return}}},s={$pattern:On,keyword:kn,literal:An,built_in:Fn,"variable.language":Pn},c=`[0-9](_?[0-9])*`,l=`\\.(${c})`,u=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,d={className:`number`,variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${l})\\b|\\.)?|(${l})\\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},f={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:s,contains:[]},p={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`xml`}},m={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`css`}},h={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`graphql`}},g={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},_={className:`comment`,variants:[e.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:r+`(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,{match:/\$\d+/},d];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:[`self`].concat(v)});let y=[].concat(_,f.contains),b=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:[`self`].concat(y)}]),x={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b},S={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,`(`,t.concat(/\./,r),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,r],scope:{1:`keyword`,3:`title.class`}}]},C={relevance:0,match:t.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:{_:[...jn,...Mn]}},w={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[x],illegal:/%/},E={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function D(e){return t.concat(`(?!`,e.join(`|`),`)`)}let O={match:t.concat(/\b/,D([...Nn,`super`,`import`].map(e=>`${e}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},k={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},A={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},x]},j=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,M={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(j)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[x]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:s,exports:{PARAMS_CONTAINS:b,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),w,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,_,{match:/\$\d+/},d,C,{scope:`attr`,match:r+t.lookahead(`:`),relevance:0},M,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[_,e.REGEXP_MODE,{className:`function`,begin:j,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:`xml`,contains:[{begin:o.begin,end:o.end,skip:!0,contains:[`self`]}]}]},T,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:`title.function`})]},{match:/\.\.\./,relevance:0},k,{match:`\\$`+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[x]},O,E,S,A,{match:/\$[(.]/}]}}function Ln(e){let t=e.regex,n=In(e),r=On,i=[`any`,`void`,`number`,`boolean`,`string`,`object`,`never`,`symbol`,`bigint`,`unknown`],a={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:`keyword`,3:`title.class`}},o={beginKeywords:`interface`,end:/\{/,excludeEnd:!0,keywords:{keyword:`interface extends`,built_in:i},contains:[n.exports.CLASS_REFERENCE]},s={className:`meta`,relevance:10,begin:/^\s*['"]use strict['"]/},c={$pattern:On,keyword:kn.concat([`type`,`interface`,`public`,`private`,`protected`,`implements`,`declare`,`abstract`,`readonly`,`enum`,`override`,`satisfies`]),literal:An,built_in:Fn.concat(i),"variable.language":Pn},l={className:`meta`,begin:`@`+r},u=(e,t,n)=>{let r=e.contains.findIndex(e=>e.label===t);if(r===-1)throw Error(`can not find mode to replace`);e.contains.splice(r,1,n)};Object.assign(n.keywords,c),n.exports.PARAMS_CONTAINS.push(l);let d=n.contains.find(e=>e.scope===`attr`),f=Object.assign({},d,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,d,f]),n.contains=n.contains.concat([l,a,o,f]),u(n,`shebang`,e.SHEBANG()),u(n,`use_strict`,s);let p=n.contains.find(e=>e.label===`func.def`);return p.relevance=0,Object.assign(n,{name:`TypeScript`,aliases:[`ts`,`tsx`,`mts`,`cts`]}),n}function Rn(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:`symbol`,begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:`keyword`,begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:`string`}),c=e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:`attr`,begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:`string`,endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:`HTML, XML`,aliases:[`html`,`xhtml`,`rss`,`atom`,`xjb`,`xsd`,`xsl`,`plist`,`wsf`,`svg`],case_insensitive:!0,unicodeRegex:!0,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,c,s,o,{begin:/\[/,end:/\]/,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,contains:[a,o,c,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:`meta`,end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:`tag`,begin:/<style(?=\s|>)/,end:/>/,keywords:{name:`style`},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:[`css`,`xml`]}},{className:`tag`,begin:/<script(?=\s|>)/,end:/>/,keywords:{name:`script`},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:[`javascript`,`handlebars`,`xml`]}},{className:`tag`,begin:/<>|<\/>/},{className:`tag`,begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:`name`,begin:n,relevance:0,starts:l}]},{className:`tag`,begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:`name`,begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}var zn=document.createElement(`style`);zn.innerText=[_n,gn].join(`
435
+ `),document.head.appendChild(zn),vn.registerLanguage(`typescript`,Ln),vn.registerLanguage(`html`,Rn),vn.registerLanguage(`css`,Dn);function Bn(...e){let t=document.createElement(`div`),n=document.createElement(`div`);n.classList.add(`tab-control`);let r=document.createElement(`div`);return e.forEach(n=>{t.appendChild(n),n.addEventListener(`click`,()=>{e.forEach(e=>e.removeAttribute(`selected`)),n.setAttribute(`selected`,``),r.innerHTML=``,r.appendChild(n.content),r.className=n.className,r.classList.add(`tab-content`)})}),n.appendChild(t),n.appendChild(r),r.classList.add(`tab-content`),e[0].setAttribute(`selected`,``),r.appendChild(e[0].content),n}function Vn(e,t){let n=document.createElement(`div`);return n.role=`tab`,n.tabIndex=0,n.innerText=e,n.content=t,t.tagName==`PRE`&&n.classList.add(`code`),n}function Hn(e,t){let n=document.createElement(`template`);if(typeof t==`string`)return n.innerHTML=`<${e}>${t}</${e}>`,n.content.firstElementChild;{n.innerHTML=`<${e}></${e}>`;let r=n.content.firstElementChild;return t.forEach(e=>r.appendChild(e)),r}}async function Un(e,t,n){let r=t.mainContent,i=Hn(`div`,r);i.id=`example-preview-${n}`;let a=typeof t.css==`string`?void 0:t.css?.label,o=typeof t.css==`string`?t.css:t.css?.content,s=Bn(Vn(`Preview`,i),Vn(`HTML`,Wn(`html`,r)),...o?[Vn(a??`CSS`,Wn(`css`,o))]:[],...t.initializer&&t.initializer.content?[Vn(t.initializer.label??`TS`,Wn(`typescript`,t.initializer.content))]:[],...(t.additionalSources||[]).map(e=>Vn(e.label,Wn(e.language,e.content))));t.description&&e.appendChild(Hn(`div`,t.description));let c=Hn(`div`,[s]);c.classList.add(`example`),e.appendChild(c),o&&Gn(`#${i.id}`,o),t.initializer?.initialize&&await t.initializer.initialize(i)}function Wn(e,t){let n=t.split(/\r?\n/).map(e=>{let t=e.indexOf(`///`);if(t>-1){let n=e.substring(t+3).trimStart();return n?e.replace(/^(\s*)([^\s].*)$/,`$1${n}`):void 0}return e}).filter(e=>e!==void 0).join(`
436
+ `).trim();return e&&e!=`raw`&&(n=vn.highlight(n,{language:e}).value),Hn(`pre`,[Hn(`code`,n)])}function Gn(e,t){let n=document.createElement(`style`);n.innerHTML=an().use((0,on.default)({prefix:e})).process(t).css,document.head.appendChild(n)}async function Kn(e,t=document.body){let n=Jn(t),r=0;return Object.keys(e).sort().map(async t=>{let i=document.createElement(`div`);i.className=`example-container`,n.appendChild(i);let a=e[t].default;await Un(i,a,r++)})}function qn(e){let t=document.createElement(`div`);t.id=`examples-container`;let n=e.querySelector(`#examples`);return n?n.after(t):e.appendChild(t),t}function Jn(e){return e.children?qn(e):e}var Yn=`<h1 id="@cas-smartdesign/virtual-list">@cas-smartdesign/virtual-list</h1>
438
437
  <p>A list element with ui-virtualization and infinite scrolling.</p>
439
438
  <h2 id="attributes">Attributes</h2>
440
439
  <ul>
@@ -505,12 +504,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`),ie=S,V=T),q===void 0&&
505
504
  </ul>
506
505
  <h2 id="custom-events">Custom events</h2>
507
506
  <ul>
508
- <li><code>data-request</code><ul>
507
+ <li><code>sd-virtual-list-data-request</code><ul>
509
508
  <li>Sent after scrolling the list</li>
510
509
  <li>Contains the starting and ending index that is visible in the list</li>
511
510
  </ul>
512
511
  </li>
513
- <li><code>selection</code><ul>
512
+ <li><code>sd-virtual-list-selection</code><ul>
514
513
  <li>Dispatched when one of the items is selected/deselected</li>
515
514
  <li>Contains the index of the item and a <code>selected</code> flag which is when false indicates that the item is deselected</li>
516
515
  <li>The <code>originalEvent</code> a mouse or keyboard event that triggered the selection event.</li>
@@ -563,4 +562,4 @@ Although normally the page would change by such a selection, so it may not be ne
563
562
  </ul>
564
563
  </li>
565
564
  </ul>
566
- `,Lo=document.querySelector("#markdown-container");Lo.innerHTML=Po;No(Object.assign({"./examples/1_selection_types/index.ts":Zs,"./examples/2_lazy_load_with_search/index.ts":tr,"./examples/3_duplicate_items/index.ts":ar}),document.querySelector(".markdown-body"));
565
+ `,Xn=document.querySelector(`#markdown-container`);Xn.innerHTML=Yn,Kn(Object.assign({"./examples/1_selection_types/index.ts":b,"./examples/2_lazy_load_with_search/index.ts":E,"./examples/3_duplicate_items/index.ts":M}),document.querySelector(`.markdown-body`));export{Tt as t};