@cas-smartdesign/combo-box 7.4.2 → 7.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/docs/doc.mjs CHANGED
@@ -1,4 +1,4 @@
1
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const r of a)if(r.type==="childList")for(const n of r.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&i(n)}).observe(document,{childList:!0,subtree:!0});function t(a){const r={};return a.integrity&&(r.integrity=a.integrity),a.referrerPolicy&&(r.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?r.credentials="include":a.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(a){if(a.ep)return;a.ep=!0;const r=t(a);fetch(a.href,r)}})();const Qn=`<div class="grid-example-container" id="declerative-basic-examples-container">
1
+ (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const n of s)if(n.type==="childList")for(const o of n.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function i(s){const n={};return s.integrity&&(n.integrity=s.integrity),s.referrerPolicy&&(n.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?n.credentials="include":s.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function a(s){if(s.ep)return;s.ep=!0;const n=i(s);fetch(s.href,n)}})();const Xr=`<div class="grid-example-container" id="declerative-basic-examples-container">
2
2
  <div class="combobox-example" declarative>
3
3
  <sd-combo-box label="Declarative">
4
4
  <sd-list-item caption="Linoel" description="Bukac"></sd-list-item>
@@ -22,8 +22,8 @@
22
22
  </form>
23
23
  </div>
24
24
  </div>
25
- `,er=`<h3 id="basic-examples">Basic examples</h3>
26
- `,ut=`sd-combo-box {
25
+ `,Yr=`<h3 id="basic-examples">Basic examples</h3>
26
+ `,Ct=`sd-combo-box {
27
27
  width: 100%;
28
28
  padding-top: 8px;
29
29
  --sd-input-validation-message-minheight: 20px;
@@ -39,7 +39,7 @@ sd-combo-box.legacy-validation-layout {
39
39
  grid-template-columns: repeat(2, 1fr);
40
40
  column-gap: 16px;
41
41
  }
42
- `,tr={mainContent:Qn,description:er,css:ut},ir=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"})),sr="modulepreload",ar=function(s,e){return new URL(s,e).href},Ps={},Bt=function(e,t,i){let a=Promise.resolve();if(t&&t.length>0){const r=document.getElementsByTagName("link");a=Promise.all(t.map(n=>{if(n=ar(n,i),n in Ps)return;Ps[n]=!0;const o=n.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!i)for(let u=r.length-1;u>=0;u--){const h=r[u];if(h.href===n&&(!o||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${l}`))return;const m=document.createElement("link");if(m.rel=o?"stylesheet":sr,o||(m.as="script",m.crossOrigin=""),m.href=n,document.head.appendChild(m),o)return new Promise((u,h)=>{m.addEventListener("load",u),m.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${n}`)))})}))}return a.then(()=>e()).catch(r=>{const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=r,window.dispatchEvent(n),!n.defaultPrevented)throw r})},nr=`<div class="grid-example-container" id="basic-examples-container">
42
+ `,Qr={mainContent:Xr,description:Yr,css:Ct},en=Object.freeze(Object.defineProperty({__proto__:null,default:Qr},Symbol.toStringTag,{value:"Module"})),tn="modulepreload",sn=function(t,e){return new URL(t,e).href},Zs={},Ut=function(e,i,a){let s=Promise.resolve();if(i&&i.length>0){let u=function(r){return Promise.all(r.map(m=>Promise.resolve(m).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};const o=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");s=u(i.map(r=>{if(r=sn(r,a),r in Zs)return;Zs[r]=!0;const m=r.endsWith(".css"),c=m?'[rel="stylesheet"]':"";if(!!a)for(let p=o.length-1;p>=0;p--){const N=o[p];if(N.href===r&&(!m||N.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${c}`))return;const f=document.createElement("link");if(f.rel=m?"stylesheet":tn,m||(f.as="script"),f.crossOrigin="",f.href=r,h&&f.setAttribute("nonce",h),document.head.appendChild(f),m)return new Promise((p,N)=>{f.addEventListener("load",p),f.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${r}`)))})}))}function n(o){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=o,window.dispatchEvent(d),!d.defaultPrevented)throw o}return s.then(o=>{for(const d of o||[])d.status==="rejected"&&n(d.reason);return e().catch(n)})},an=`<div class="grid-example-container" id="basic-examples-container">
43
43
  <sd-combo-box id="basic-combobox" label="I am a combo box" item-height="40" placeholder="-- select an option --">
44
44
  </sd-combo-box>
45
45
  <sd-combo-box
@@ -64,8 +64,8 @@ sd-combo-box.legacy-validation-layout {
64
64
  <div style="margin-top: -20px">Latest selection: <span></span></div>
65
65
  </div>
66
66
  </div>
67
- `,rr=`<h3 id="basic-examples">Basic examples</h3>
68
- `,or=`import "@cas-smartdesign/combo-box";
67
+ `,rn=`<h3 id="basic-examples">Basic examples</h3>
68
+ `,nn=`import "@cas-smartdesign/combo-box";
69
69
  import ComboBox, { ComboBoxValue } from "@cas-smartdesign/combo-box";
70
70
  import { ItemData } from "@cas-smartdesign/list-item";
71
71
 
@@ -110,14 +110,14 @@ container.querySelectorAll(".trigger-only-example-wrapper").forEach((wrapper) =>
110
110
  }
111
111
  });
112
112
  });
113
- `,lr={mainContent:nr,description:rr,css:ut,initializer:{content:or,type:"typescript",initialize:()=>Bt(()=>import("./2_basic-examples.js"),__vite__mapDeps([]),import.meta.url)}},cr=Object.freeze(Object.defineProperty({__proto__:null,default:lr},Symbol.toStringTag,{value:"Module"})),mr=`<div id="filtering-examples-container">
113
+ `,on={mainContent:an,description:rn,css:Ct,initializer:{content:nn,type:"typescript",initialize:()=>Ut(()=>import("./2_basic-examples.js"),[],import.meta.url)}},ln=Object.freeze(Object.defineProperty({__proto__:null,default:on},Symbol.toStringTag,{value:"Module"})),cn=`<div id="filtering-examples-container">
114
114
  <sd-combo-box
115
115
  id="custom-property-filtering"
116
116
  label="Search in the index property"
117
117
  filter-property="index"></sd-combo-box>
118
118
  </div>
119
- `,dr=`<h3 id="advanced-filtering">Advanced filtering</h3>
120
- `,ur=`import { ItemData } from "@cas-smartdesign/list-item";
119
+ `,mn=`<h3 id="advanced-filtering">Advanced filtering</h3>
120
+ `,dn=`import { ItemData } from "@cas-smartdesign/list-item";
121
121
  import ComboBox from "@cas-smartdesign/combo-box";
122
122
 
123
123
  const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");
@@ -137,7 +137,7 @@ const items: ItemData[] = alphabet.map((letter) => {
137
137
 
138
138
  const combobox = document.querySelector("#custom-property-filtering") as ComboBox;
139
139
  combobox.items = items;
140
- `,hr={mainContent:mr,description:dr,css:ut,initializer:{content:ur,type:"typescript",initialize:()=>Bt(()=>import("./3_filtering.js"),__vite__mapDeps([]),import.meta.url)}},fr=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"})),pr=`<div class="grid-example-container" id="lazy-loading-examples-container">
140
+ `,un={mainContent:cn,description:mn,css:Ct,initializer:{content:dn,type:"typescript",initialize:()=>Ut(()=>import("./3_filtering.js"),[],import.meta.url)}},hn=Object.freeze(Object.defineProperty({__proto__:null,default:un},Symbol.toStringTag,{value:"Module"})),fn=`<div class="grid-example-container" id="lazy-loading-examples-container">
141
141
  <sd-combo-box id="lazy-loading-example" label="Lazy loading with loading indicator & icon" show-icon
142
142
  ><div class="loader" slot="suffix">
143
143
  <div></div>
@@ -156,8 +156,8 @@ combobox.items = items;
156
156
  <div style="margin-top: -20px">Latest selection: <span id="trigger-only-selection-message"></span></div>
157
157
  </div>
158
158
  </div>
159
- `,gr=`<h3 id="lazy-loading-examples">Lazy loading examples</h3>
160
- `,Nr=`.grid {
159
+ `,pn=`<h3 id="lazy-loading-examples">Lazy loading examples</h3>
160
+ `,gn=`.grid {
161
161
  display: grid;
162
162
  grid-template-columns: repeat(2, 1fr);
163
163
  column-gap: 16px;
@@ -203,7 +203,7 @@ combobox.items = items;
203
203
  sd-combo-box[loading] .loader {
204
204
  display: block !important;
205
205
  }
206
- `,br=`import "@cas-smartdesign/combo-box";
206
+ `,Nn=`import "@cas-smartdesign/combo-box";
207
207
  import DataProvider from "./data-provider";
208
208
  import ComboBox, { ComboBoxValue } from "@cas-smartdesign/combo-box";
209
209
 
@@ -225,7 +225,7 @@ triggerOnlyCombobox.addEventListener("selection-change", (event) => {
225
225
  triggerOnlySelectionMessage.textContent = selectionAsValue.item.caption;
226
226
  }
227
227
  });
228
- `,vr=`import { ItemData } from "@cas-smartdesign/list-item";
228
+ `,bn=`import { ItemData } from "@cas-smartdesign/list-item";
229
229
  import ComboBox, { DataResponse } from "@cas-smartdesign/combo-box";
230
230
  import data from "./data";
231
231
 
@@ -308,7 +308,7 @@ export default class DataProvider {
308
308
  return item;
309
309
  }
310
310
  }
311
- `,yr=`export default [
311
+ `,yn=`export default [
312
312
  { firstName: "Linoel", lastName: "Bukac" },
313
313
  { firstName: "Lucho", lastName: "Giacopello" },
314
314
  { firstName: "Rik", lastName: "Lapham" },
@@ -1310,7 +1310,7 @@ export default class DataProvider {
1310
1310
  { firstName: "Therese", lastName: "Janota" },
1311
1311
  { firstName: "Aaren", lastName: "Phair" },
1312
1312
  ];
1313
- `,xr={mainContent:pr,description:gr,initializer:{content:br,type:"typescript",initialize:()=>Bt(()=>import("./4_lazy_loading.js"),__vite__mapDeps([]),import.meta.url)},css:ut+Nr,additionalSources:[{content:vr,language:"typescript",label:"DataProvider",type:"source"},{content:yr,language:"typescript",label:"Example data",type:"source"}]},wr=Object.freeze(Object.defineProperty({__proto__:null,default:xr},Symbol.toStringTag,{value:"Module"})),_r=`<div class="grid-example-container" id="unusual-data-examples">
1313
+ `,vn={mainContent:fn,description:pn,initializer:{content:Nn,type:"typescript",initialize:()=>Ut(()=>import("./4_lazy_loading.js"),[],import.meta.url)},css:Ct+gn,additionalSources:[{content:bn,language:"typescript",label:"DataProvider",type:"source"},{content:yn,language:"typescript",label:"Example data",type:"source"}]},xn=Object.freeze(Object.defineProperty({__proto__:null,default:vn},Symbol.toStringTag,{value:"Module"})),wn=`<div class="grid-example-container" id="unusual-data-examples">
1314
1314
  <sd-combo-box
1315
1315
  id="long-prefixes-example"
1316
1316
  label="Long prefixes"
@@ -1326,8 +1326,8 @@ export default class DataProvider {
1326
1326
  style="grid-column: span 2"></sd-combo-box>
1327
1327
  <sd-combo-box id="duplicate-example" label="Duplicates, initial selected via property"></sd-combo-box>
1328
1328
  </div>
1329
- `,Sr=`<h3 id="handle-unusual-data">Handle unusual data</h3>
1330
- `,Cr=`import "@cas-smartdesign/combo-box";
1329
+ `,_n=`<h3 id="handle-unusual-data">Handle unusual data</h3>
1330
+ `,Sn=`import "@cas-smartdesign/combo-box";
1331
1331
  import ComboBox from "@cas-smartdesign/combo-box";
1332
1332
  import { ItemData } from "@cas-smartdesign/list-item";
1333
1333
 
@@ -1354,7 +1354,7 @@ duplicateExample.comboBoxValue = { index: 88, item: itemsWithDuplicate[88] };
1354
1354
  (document.querySelector("#long-prefixes-example") as ComboBox).items = items;
1355
1355
  (document.querySelector("#long-prefixes-large-example") as ComboBox).items = items;
1356
1356
  (document.querySelector("#long-prefixes-line-clamp-example") as ComboBox).items = itemWithoutDescription;
1357
- `,Er={mainContent:_r,description:Sr,css:ut,initializer:{content:Cr,type:"typescript",initialize:()=>Bt(()=>import("./5_unusual_data.js"),__vite__mapDeps([]),import.meta.url)}},Ar=Object.freeze(Object.defineProperty({__proto__:null,default:Er},Symbol.toStringTag,{value:"Module"})),kr=`<div class="grid-example-container" id="validation-examples-container">
1357
+ `,Cn={mainContent:wn,description:_n,css:Ct,initializer:{content:Sn,type:"typescript",initialize:()=>Ut(()=>import("./5_unusual_data.js"),[],import.meta.url)}},An=Object.freeze(Object.defineProperty({__proto__:null,default:Cn},Symbol.toStringTag,{value:"Module"})),En=`<div class="grid-example-container" id="validation-examples-container">
1358
1358
  <sd-combo-box
1359
1359
  label="This is a mandatory combo box"
1360
1360
  item-height="40"
@@ -1371,8 +1371,8 @@ duplicateExample.comboBoxValue = { index: 88, item: itemsWithDuplicate[88] };
1371
1371
  long-validation-message
1372
1372
  label="Long validation message with single line layout"></sd-combo-box>
1373
1373
  </div>
1374
- `,$r=`<h3 id="validation-examples">Validation examples</h3>
1375
- `,Or=`import "@cas-smartdesign/combo-box";
1374
+ `,kn=`<h3 id="validation-examples">Validation examples</h3>
1375
+ `,On=`import "@cas-smartdesign/combo-box";
1376
1376
  import ComboBox, { ComboBoxValue } from "@cas-smartdesign/combo-box";
1377
1377
  import { ValidationLevel } from "@cas-smartdesign/field-validation-message";
1378
1378
  import { ItemData } from "@cas-smartdesign/list-item";
@@ -1413,60 +1413,60 @@ function updateMandatory(combobox: ComboBox) {
1413
1413
  }
1414
1414
  }
1415
1415
  }
1416
- `,Mr={mainContent:kr,description:$r,css:ut,initializer:{content:Or,type:"typescript",initialize:()=>Bt(()=>import("./6_validation_example.js"),__vite__mapDeps([]),import.meta.url)}},Ir=Object.freeze(Object.defineProperty({__proto__:null,default:Mr},Symbol.toStringTag,{value:"Module"}));const ni=window,ds=ni.ShadowRoot&&(ni.ShadyCSS===void 0||ni.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,us=Symbol(),Ds=new WeakMap;let Oa=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==us)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(ds&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Ds.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Ds.set(t,e))}return e}toString(){return this.cssText}};const ht=s=>new Oa(typeof s=="string"?s:s+"",void 0,us),Tt=(s,...e)=>{const t=s.length===1?s[0]:e.reduce((i,a,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+s[r+1],s[0]);return new Oa(t,s,us)},Rr=(s,e)=>{ds?s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const i=document.createElement("style"),a=ni.litNonce;a!==void 0&&i.setAttribute("nonce",a),i.textContent=t.cssText,s.appendChild(i)})},Bs=ds?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return ht(t)})(s):s;var Mi;const mi=window,Ts=mi.trustedTypes,Lr=Ts?Ts.emptyScript:"",zs=mi.reactiveElementPolyfillSupport,Hi={toAttribute(s,e){switch(e){case Boolean:s=s?Lr: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}},Ma=(s,e)=>e!==s&&(e==e||s==s),Ii={attribute:!0,type:String,converter:Hi,reflect:!1,hasChanged:Ma},Ui="finalized";let et=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,i)=>{const a=this._$Ep(i,t);a!==void 0&&(this._$Ev.set(a,i),e.push(a))}),e}static createProperty(e,t=Ii){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i=typeof e=="symbol"?Symbol():"__"+e,a=this.getPropertyDescriptor(e,i,t);a!==void 0&&Object.defineProperty(this.prototype,e,a)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(a){const r=this[e];this[t]=a,this.requestUpdate(e,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Ii}static finalize(){if(this.hasOwnProperty(Ui))return!1;this[Ui]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const a of i)this.createProperty(a,t[a])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const a of i)t.unshift(Bs(a))}else e!==void 0&&t.push(Bs(e));return t}static _$Ep(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,i;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Rr(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var i;return(i=t.hostConnected)===null||i===void 0?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var i;return(i=t.hostDisconnected)===null||i===void 0?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=Ii){var a;const r=this.constructor._$Ep(e,i);if(r!==void 0&&i.reflect===!0){const n=(((a=i.converter)===null||a===void 0?void 0:a.toAttribute)!==void 0?i.converter:Hi).toAttribute(t,i.type);this._$El=e,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(e,t){var i;const a=this.constructor,r=a._$Ev.get(e);if(r!==void 0&&this._$El!==r){const n=a.getPropertyOptions(r),o=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?n.converter:Hi;this._$El=r,this[r]=o.fromAttribute(t,n.type),this._$El=null}}requestUpdate(e,t,i){let a=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||Ma)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,i))):a=!1),!this.isUpdatePending&&a&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((a,r)=>this[r]=a),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(e=this._$ES)===null||e===void 0||e.forEach(a=>{var r;return(r=a.hostUpdate)===null||r===void 0?void 0:r.call(a)}),this.update(i)):this._$Ek()}catch(a){throw t=!1,this._$Ek(),a}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(i=>{var a;return(a=i.hostUpdated)===null||a===void 0?void 0:a.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,i)=>this._$EO(i,this[i],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};et[Ui]=!0,et.elementProperties=new Map,et.elementStyles=[],et.shadowRootOptions={mode:"open"},zs==null||zs({ReactiveElement:et}),((Mi=mi.reactiveElementVersions)!==null&&Mi!==void 0?Mi:mi.reactiveElementVersions=[]).push("1.6.3");var Ri;const di=window,it=di.trustedTypes,js=it?it.createPolicy("lit-html",{createHTML:s=>s}):void 0,Gi="$lit$",Ie=`lit$${(Math.random()+"").slice(9)}$`,Ia="?"+Ie,Pr=`<${Ia}>`,He=document,Ct=()=>He.createComment(""),Et=s=>s===null||typeof s!="object"&&typeof s!="function",Ra=Array.isArray,Dr=s=>Ra(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Li=`[
1417
- \f\r]`,gt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vs=/-->/g,Fs=/>/g,Te=RegExp(`>|${Li}(?:([^\\s"'>=/]+)(${Li}*=${Li}*(?:[^
1418
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Hs=/'/g,Us=/"/g,La=/^(?:script|style|textarea|title)$/i,Br=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),ne=Br(1),Ue=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),Gs=new WeakMap,je=He.createTreeWalker(He,129,null,!1);function Pa(s,e){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return js!==void 0?js.createHTML(e):e}const Tr=(s,e)=>{const t=s.length-1,i=[];let a,r=e===2?"<svg>":"",n=gt;for(let o=0;o<t;o++){const l=s[o];let c,m,u=-1,h=0;for(;h<l.length&&(n.lastIndex=h,m=n.exec(l),m!==null);)h=n.lastIndex,n===gt?m[1]==="!--"?n=Vs:m[1]!==void 0?n=Fs:m[2]!==void 0?(La.test(m[2])&&(a=RegExp("</"+m[2],"g")),n=Te):m[3]!==void 0&&(n=Te):n===Te?m[0]===">"?(n=a??gt,u=-1):m[1]===void 0?u=-2:(u=n.lastIndex-m[2].length,c=m[1],n=m[3]===void 0?Te:m[3]==='"'?Us:Hs):n===Us||n===Hs?n=Te:n===Vs||n===Fs?n=gt:(n=Te,a=void 0);const g=n===Te&&s[o+1].startsWith("/>")?" ":"";r+=n===gt?l+Pr:u>=0?(i.push(c),l.slice(0,u)+Gi+l.slice(u)+Ie+g):l+Ie+(u===-2?(i.push(void 0),o):g)}return[Pa(s,r+(s[t]||"<?>")+(e===2?"</svg>":"")),i]};class At{constructor({strings:e,_$litType$:t},i){let a;this.parts=[];let r=0,n=0;const o=e.length-1,l=this.parts,[c,m]=Tr(e,t);if(this.el=At.createElement(c,i),je.currentNode=this.el.content,t===2){const u=this.el.content,h=u.firstChild;h.remove(),u.append(...h.childNodes)}for(;(a=je.nextNode())!==null&&l.length<o;){if(a.nodeType===1){if(a.hasAttributes()){const u=[];for(const h of a.getAttributeNames())if(h.endsWith(Gi)||h.startsWith(Ie)){const g=m[n++];if(u.push(h),g!==void 0){const _=a.getAttribute(g.toLowerCase()+Gi).split(Ie),y=/([.?@])?(.*)/.exec(g);l.push({type:1,index:r,name:y[2],strings:_,ctor:y[1]==="."?jr:y[1]==="?"?Fr:y[1]==="@"?Hr:yi})}else l.push({type:6,index:r})}for(const h of u)a.removeAttribute(h)}if(La.test(a.tagName)){const u=a.textContent.split(Ie),h=u.length-1;if(h>0){a.textContent=it?it.emptyScript:"";for(let g=0;g<h;g++)a.append(u[g],Ct()),je.nextNode(),l.push({type:2,index:++r});a.append(u[h],Ct())}}}else if(a.nodeType===8)if(a.data===Ia)l.push({type:2,index:r});else{let u=-1;for(;(u=a.data.indexOf(Ie,u+1))!==-1;)l.push({type:7,index:r}),u+=Ie.length-1}r++}}static createElement(e,t){const i=He.createElement("template");return i.innerHTML=e,i}}function st(s,e,t=s,i){var a,r,n,o;if(e===Ue)return e;let l=i!==void 0?(a=t._$Co)===null||a===void 0?void 0:a[i]:t._$Cl;const c=Et(e)?void 0:e._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),c===void 0?l=void 0:(l=new c(s),l._$AT(s,t,i)),i!==void 0?((n=(o=t)._$Co)!==null&&n!==void 0?n:o._$Co=[])[i]=l:t._$Cl=l),l!==void 0&&(e=st(s,l._$AS(s,e.values),l,i)),e}class zr{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:a}=this._$AD,r=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:He).importNode(i,!0);je.currentNode=r;let n=je.nextNode(),o=0,l=0,c=a[0];for(;c!==void 0;){if(o===c.index){let m;c.type===2?m=new zt(n,n.nextSibling,this,e):c.type===1?m=new c.ctor(n,c.name,c.strings,this,e):c.type===6&&(m=new Ur(n,this,e)),this._$AV.push(m),c=a[++l]}o!==(c==null?void 0:c.index)&&(n=je.nextNode(),o++)}return je.currentNode=He,r}v(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class zt{constructor(e,t,i,a){var r;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=a,this._$Cp=(r=a==null?void 0:a.isConnected)===null||r===void 0||r}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=st(this,e,t),Et(e)?e===F||e==null||e===""?(this._$AH!==F&&this._$AR(),this._$AH=F):e!==this._$AH&&e!==Ue&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Dr(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==F&&Et(this._$AH)?this._$AA.nextSibling.data=e:this.$(He.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:a}=e,r=typeof a=="number"?this._$AC(e):(a.el===void 0&&(a.el=At.createElement(Pa(a.h,a.h[0]),this.options)),a);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===r)this._$AH.v(i);else{const n=new zr(r,this),o=n.u(this.options);n.v(i),this.$(o),this._$AH=n}}_$AC(e){let t=Gs.get(e.strings);return t===void 0&&Gs.set(e.strings,t=new At(e)),t}T(e){Ra(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,a=0;for(const r of e)a===t.length?t.push(i=new zt(this.k(Ct()),this.k(Ct()),this,this.options)):i=t[a],i._$AI(r),a++;a<t.length&&(this._$AR(i&&i._$AB.nextSibling,a),t.length=a)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,t);e&&e!==this._$AB;){const a=e.nextSibling;e.remove(),e=a}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}let yi=class{constructor(e,t,i,a,r){this.type=1,this._$AH=F,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=F}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,a){const r=this.strings;let n=!1;if(r===void 0)e=st(this,e,t,0),n=!Et(e)||e!==this._$AH&&e!==Ue,n&&(this._$AH=e);else{const o=e;let l,c;for(e=r[0],l=0;l<r.length-1;l++)c=st(this,o[i+l],t,l),c===Ue&&(c=this._$AH[l]),n||(n=!Et(c)||c!==this._$AH[l]),c===F?e=F:e!==F&&(e+=(c??"")+r[l+1]),this._$AH[l]=c}n&&!a&&this.j(e)}j(e){e===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}};class jr extends yi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===F?void 0:e}}const Vr=it?it.emptyScript:"";let Fr=class extends yi{constructor(){super(...arguments),this.type=4}j(e){e&&e!==F?this.element.setAttribute(this.name,Vr):this.element.removeAttribute(this.name)}},Hr=class extends yi{constructor(e,t,i,a,r){super(e,t,i,a,r),this.type=5}_$AI(e,t=this){var i;if((e=(i=st(this,e,t,0))!==null&&i!==void 0?i:F)===Ue)return;const a=this._$AH,r=e===F&&a!==F||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,n=e!==F&&(a===F||r);r&&this.element.removeEventListener(this.name,this,a),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}};class Ur{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){st(this,e)}}const Ws=di.litHtmlPolyfillSupport;Ws==null||Ws(At,zt),((Ri=di.litHtmlVersions)!==null&&Ri!==void 0?Ri:di.litHtmlVersions=[]).push("2.8.0");const Gr=(s,e,t)=>{var i,a;const r=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let n=r._$litPart$;if(n===void 0){const o=(a=t==null?void 0:t.renderBefore)!==null&&a!==void 0?a:null;r._$litPart$=n=new zt(e.insertBefore(Ct(),o),o,void 0,t??{})}return n._$AI(s),n};var Pi,Di;let Ee=class extends et{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Gr(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Ue}};Ee.finalized=!0,Ee._$litElement$=!0,(Pi=globalThis.litElementHydrateSupport)===null||Pi===void 0||Pi.call(globalThis,{LitElement:Ee});const Ks=globalThis.litElementPolyfillSupport;Ks==null||Ks({LitElement:Ee});((Di=globalThis.litElementVersions)!==null&&Di!==void 0?Di:globalThis.litElementVersions=[]).push("3.3.3");const Wr=(s,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,s)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,s)}},Kr=(s,e,t)=>{e.constructor.createProperty(t,s)};function v(s){return(e,t)=>t!==void 0?Kr(s,e,t):Wr(s,e)}var re="top",ue="bottom",he="right",oe="left",hs="auto",jt=[re,ue,he,oe],at="start",kt="end",qr="clippingParents",Da="viewport",Nt="popper",Jr="reference",qs=jt.reduce(function(s,e){return s.concat([e+"-"+at,e+"-"+kt])},[]),Ba=[].concat(jt,[hs]).reduce(function(s,e){return s.concat([e,e+"-"+at,e+"-"+kt])},[]),Zr="beforeRead",Xr="read",Yr="afterRead",Qr="beforeMain",eo="main",to="afterMain",io="beforeWrite",so="write",ao="afterWrite",no=[Zr,Xr,Yr,Qr,eo,to,io,so,ao];function _e(s){return s?(s.nodeName||"").toLowerCase():null}function me(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var e=s.ownerDocument;return e&&e.defaultView||window}return s}function Ge(s){var e=me(s).Element;return s instanceof e||s instanceof Element}function de(s){var e=me(s).HTMLElement;return s instanceof e||s instanceof HTMLElement}function fs(s){if(typeof ShadowRoot>"u")return!1;var e=me(s).ShadowRoot;return s instanceof e||s instanceof ShadowRoot}function ro(s){var e=s.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},a=e.attributes[t]||{},r=e.elements[t];!de(r)||!_e(r)||(Object.assign(r.style,i),Object.keys(a).forEach(function(n){var o=a[n];o===!1?r.removeAttribute(n):r.setAttribute(n,o===!0?"":o)}))})}function oo(s){var e=s.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var a=e.elements[i],r=e.attributes[i]||{},n=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),o=n.reduce(function(l,c){return l[c]="",l},{});!de(a)||!_e(a)||(Object.assign(a.style,o),Object.keys(r).forEach(function(l){a.removeAttribute(l)}))})}}const lo={name:"applyStyles",enabled:!0,phase:"write",fn:ro,effect:oo,requires:["computeStyles"]};function we(s){return s.split("-")[0]}var Ve=Math.max,ui=Math.min,nt=Math.round;function Wi(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ta(){return!/^((?!chrome|android).)*safari/i.test(Wi())}function rt(s,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=s.getBoundingClientRect(),a=1,r=1;e&&de(s)&&(a=s.offsetWidth>0&&nt(i.width)/s.offsetWidth||1,r=s.offsetHeight>0&&nt(i.height)/s.offsetHeight||1);var n=Ge(s)?me(s):window,o=n.visualViewport,l=!Ta()&&t,c=(i.left+(l&&o?o.offsetLeft:0))/a,m=(i.top+(l&&o?o.offsetTop:0))/r,u=i.width/a,h=i.height/r;return{width:u,height:h,top:m,right:c+u,bottom:m+h,left:c,x:c,y:m}}function ps(s){var e=rt(s),t=s.offsetWidth,i=s.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:s.offsetLeft,y:s.offsetTop,width:t,height:i}}function za(s,e){var t=e.getRootNode&&e.getRootNode();if(s.contains(e))return!0;if(t&&fs(t)){var i=e;do{if(i&&s.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ae(s){return me(s).getComputedStyle(s)}function co(s){return["table","td","th"].indexOf(_e(s))>=0}function Le(s){return((Ge(s)?s.ownerDocument:s.document)||window.document).documentElement}function xi(s){return _e(s)==="html"?s:s.assignedSlot||s.parentNode||(fs(s)?s.host:null)||Le(s)}function Js(s){return!de(s)||Ae(s).position==="fixed"?null:s.offsetParent}function mo(s){var e=/firefox/i.test(Wi()),t=/Trident/i.test(Wi());if(t&&de(s)){var i=Ae(s);if(i.position==="fixed")return null}var a=xi(s);for(fs(a)&&(a=a.host);de(a)&&["html","body"].indexOf(_e(a))<0;){var r=Ae(a);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return a;a=a.parentNode}return null}function Vt(s){for(var e=me(s),t=Js(s);t&&co(t)&&Ae(t).position==="static";)t=Js(t);return t&&(_e(t)==="html"||_e(t)==="body"&&Ae(t).position==="static")?e:t||mo(s)||e}function gs(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function wt(s,e,t){return Ve(s,ui(e,t))}function uo(s,e,t){var i=wt(s,e,t);return i>t?t:i}function ja(){return{top:0,right:0,bottom:0,left:0}}function Va(s){return Object.assign({},ja(),s)}function Fa(s,e){return e.reduce(function(t,i){return t[i]=s,t},{})}var ho=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Va(typeof e!="number"?e:Fa(e,jt))};function fo(s){var e,t=s.state,i=s.name,a=s.options,r=t.elements.arrow,n=t.modifiersData.popperOffsets,o=we(t.placement),l=gs(o),c=[oe,he].indexOf(o)>=0,m=c?"height":"width";if(!(!r||!n)){var u=ho(a.padding,t),h=ps(r),g=l==="y"?re:oe,_=l==="y"?ue:he,y=t.rects.reference[m]+t.rects.reference[l]-n[l]-t.rects.popper[m],f=n[l]-t.rects.reference[l],A=Vt(r),M=A?l==="y"?A.clientHeight||0:A.clientWidth||0:0,I=y/2-f/2,x=u[g],E=M-h[m]-u[_],$=M/2-h[m]/2+I,R=wt(x,$,E),P=l;t.modifiersData[i]=(e={},e[P]=R,e.centerOffset=R-$,e)}}function po(s){var e=s.state,t=s.options,i=t.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||za(e.elements.popper,a)&&(e.elements.arrow=a))}const go={name:"arrow",enabled:!0,phase:"main",fn:fo,effect:po,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ot(s){return s.split("-")[1]}var No={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bo(s,e){var t=s.x,i=s.y,a=e.devicePixelRatio||1;return{x:nt(t*a)/a||0,y:nt(i*a)/a||0}}function Zs(s){var e,t=s.popper,i=s.popperRect,a=s.placement,r=s.variation,n=s.offsets,o=s.position,l=s.gpuAcceleration,c=s.adaptive,m=s.roundOffsets,u=s.isFixed,h=n.x,g=h===void 0?0:h,_=n.y,y=_===void 0?0:_,f=typeof m=="function"?m({x:g,y}):{x:g,y};g=f.x,y=f.y;var A=n.hasOwnProperty("x"),M=n.hasOwnProperty("y"),I=oe,x=re,E=window;if(c){var $=Vt(t),R="clientHeight",P="clientWidth";if($===me(t)&&($=Le(t),Ae($).position!=="static"&&o==="absolute"&&(R="scrollHeight",P="scrollWidth")),$=$,a===re||(a===oe||a===he)&&r===kt){x=ue;var O=u&&$===E&&E.visualViewport?E.visualViewport.height:$[R];y-=O-i.height,y*=l?1:-1}if(a===oe||(a===re||a===ue)&&r===kt){I=he;var T=u&&$===E&&E.visualViewport?E.visualViewport.width:$[P];g-=T-i.width,g*=l?1:-1}}var K=Object.assign({position:o},c&&No),ee=m===!0?bo({x:g,y},me(t)):{x:g,y};if(g=ee.x,y=ee.y,l){var q;return Object.assign({},K,(q={},q[x]=M?"0":"",q[I]=A?"0":"",q.transform=(E.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",q))}return Object.assign({},K,(e={},e[x]=M?y+"px":"",e[I]=A?g+"px":"",e.transform="",e))}function vo(s){var e=s.state,t=s.options,i=t.gpuAcceleration,a=i===void 0?!0:i,r=t.adaptive,n=r===void 0?!0:r,o=t.roundOffsets,l=o===void 0?!0:o,c={placement:we(e.placement),variation:ot(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Zs(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:n,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Zs(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const yo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vo,data:{}};var Kt={passive:!0};function xo(s){var e=s.state,t=s.instance,i=s.options,a=i.scroll,r=a===void 0?!0:a,n=i.resize,o=n===void 0?!0:n,l=me(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach(function(m){m.addEventListener("scroll",t.update,Kt)}),o&&l.addEventListener("resize",t.update,Kt),function(){r&&c.forEach(function(m){m.removeEventListener("scroll",t.update,Kt)}),o&&l.removeEventListener("resize",t.update,Kt)}}const wo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xo,data:{}};var _o={left:"right",right:"left",bottom:"top",top:"bottom"};function ri(s){return s.replace(/left|right|bottom|top/g,function(e){return _o[e]})}var So={start:"end",end:"start"};function Xs(s){return s.replace(/start|end/g,function(e){return So[e]})}function Ns(s){var e=me(s),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function bs(s){return rt(Le(s)).left+Ns(s).scrollLeft}function Co(s,e){var t=me(s),i=Le(s),a=t.visualViewport,r=i.clientWidth,n=i.clientHeight,o=0,l=0;if(a){r=a.width,n=a.height;var c=Ta();(c||!c&&e==="fixed")&&(o=a.offsetLeft,l=a.offsetTop)}return{width:r,height:n,x:o+bs(s),y:l}}function Eo(s){var e,t=Le(s),i=Ns(s),a=(e=s.ownerDocument)==null?void 0:e.body,r=Ve(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),n=Ve(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-i.scrollLeft+bs(s),l=-i.scrollTop;return Ae(a||t).direction==="rtl"&&(o+=Ve(t.clientWidth,a?a.clientWidth:0)-r),{width:r,height:n,x:o,y:l}}function vs(s){var e=Ae(s),t=e.overflow,i=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+a+i)}function Ha(s){return["html","body","#document"].indexOf(_e(s))>=0?s.ownerDocument.body:de(s)&&vs(s)?s:Ha(xi(s))}function _t(s,e){var t;e===void 0&&(e=[]);var i=Ha(s),a=i===((t=s.ownerDocument)==null?void 0:t.body),r=me(i),n=a?[r].concat(r.visualViewport||[],vs(i)?i:[]):i,o=e.concat(n);return a?o:o.concat(_t(xi(n)))}function Ki(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function Ao(s,e){var t=rt(s,!1,e==="fixed");return t.top=t.top+s.clientTop,t.left=t.left+s.clientLeft,t.bottom=t.top+s.clientHeight,t.right=t.left+s.clientWidth,t.width=s.clientWidth,t.height=s.clientHeight,t.x=t.left,t.y=t.top,t}function Ys(s,e,t){return e===Da?Ki(Co(s,t)):Ge(e)?Ao(e,t):Ki(Eo(Le(s)))}function ko(s){var e=_t(xi(s)),t=["absolute","fixed"].indexOf(Ae(s).position)>=0,i=t&&de(s)?Vt(s):s;return Ge(i)?e.filter(function(a){return Ge(a)&&za(a,i)&&_e(a)!=="body"}):[]}function $o(s,e,t,i){var a=e==="clippingParents"?ko(s):[].concat(e),r=[].concat(a,[t]),n=r[0],o=r.reduce(function(l,c){var m=Ys(s,c,i);return l.top=Ve(m.top,l.top),l.right=ui(m.right,l.right),l.bottom=ui(m.bottom,l.bottom),l.left=Ve(m.left,l.left),l},Ys(s,n,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Ua(s){var e=s.reference,t=s.element,i=s.placement,a=i?we(i):null,r=i?ot(i):null,n=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2,l;switch(a){case re:l={x:n,y:e.y-t.height};break;case ue:l={x:n,y:e.y+e.height};break;case he:l={x:e.x+e.width,y:o};break;case oe:l={x:e.x-t.width,y:o};break;default:l={x:e.x,y:e.y}}var c=a?gs(a):null;if(c!=null){var m=c==="y"?"height":"width";switch(r){case at:l[c]=l[c]-(e[m]/2-t[m]/2);break;case kt:l[c]=l[c]+(e[m]/2-t[m]/2);break}}return l}function $t(s,e){e===void 0&&(e={});var t=e,i=t.placement,a=i===void 0?s.placement:i,r=t.strategy,n=r===void 0?s.strategy:r,o=t.boundary,l=o===void 0?qr:o,c=t.rootBoundary,m=c===void 0?Da:c,u=t.elementContext,h=u===void 0?Nt:u,g=t.altBoundary,_=g===void 0?!1:g,y=t.padding,f=y===void 0?0:y,A=Va(typeof f!="number"?f:Fa(f,jt)),M=h===Nt?Jr:Nt,I=s.rects.popper,x=s.elements[_?M:h],E=$o(Ge(x)?x:x.contextElement||Le(s.elements.popper),l,m,n),$=rt(s.elements.reference),R=Ua({reference:$,element:I,strategy:"absolute",placement:a}),P=Ki(Object.assign({},I,R)),O=h===Nt?P:$,T={top:E.top-O.top+A.top,bottom:O.bottom-E.bottom+A.bottom,left:E.left-O.left+A.left,right:O.right-E.right+A.right},K=s.modifiersData.offset;if(h===Nt&&K){var ee=K[a];Object.keys(T).forEach(function(q){var fe=[he,ue].indexOf(q)>=0?1:-1,te=[re,ue].indexOf(q)>=0?"y":"x";T[q]+=ee[te]*fe})}return T}function Oo(s,e){e===void 0&&(e={});var t=e,i=t.placement,a=t.boundary,r=t.rootBoundary,n=t.padding,o=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?Ba:l,m=ot(i),u=m?o?qs:qs.filter(function(_){return ot(_)===m}):jt,h=u.filter(function(_){return c.indexOf(_)>=0});h.length===0&&(h=u);var g=h.reduce(function(_,y){return _[y]=$t(s,{placement:y,boundary:a,rootBoundary:r,padding:n})[we(y)],_},{});return Object.keys(g).sort(function(_,y){return g[_]-g[y]})}function Mo(s){if(we(s)===hs)return[];var e=ri(s);return[Xs(s),e,Xs(e)]}function Io(s){var e=s.state,t=s.options,i=s.name;if(!e.modifiersData[i]._skip){for(var a=t.mainAxis,r=a===void 0?!0:a,n=t.altAxis,o=n===void 0?!0:n,l=t.fallbackPlacements,c=t.padding,m=t.boundary,u=t.rootBoundary,h=t.altBoundary,g=t.flipVariations,_=g===void 0?!0:g,y=t.allowedAutoPlacements,f=e.options.placement,A=we(f),M=A===f,I=l||(M||!_?[ri(f)]:Mo(f)),x=[f].concat(I).reduce(function(pe,U){return pe.concat(we(U)===hs?Oo(e,{placement:U,boundary:m,rootBoundary:u,padding:c,flipVariations:_,allowedAutoPlacements:y}):U)},[]),E=e.rects.reference,$=e.rects.popper,R=new Map,P=!0,O=x[0],T=0;T<x.length;T++){var K=x[T],ee=we(K),q=ot(K)===at,fe=[re,ue].indexOf(ee)>=0,te=fe?"width":"height",Z=$t(e,{placement:K,boundary:m,rootBoundary:u,altBoundary:h,padding:c}),d=fe?q?he:oe:q?ue:re;E[te]>$[te]&&(d=ri(d));var N=ri(d),w=[];if(r&&w.push(Z[ee]<=0),o&&w.push(Z[d]<=0,Z[N]<=0),w.every(function(pe){return pe})){O=K,P=!1;break}R.set(K,w)}if(P)for(var k=_?3:1,z=function(U){var X=x.find(function(De){var be=R.get(De);if(be)return be.slice(0,U).every(function(qe){return qe})});if(X)return O=X,"break"},J=k;J>0;J--){var le=z(J);if(le==="break")break}e.placement!==O&&(e.modifiersData[i]._skip=!0,e.placement=O,e.reset=!0)}}const Ro={name:"flip",enabled:!0,phase:"main",fn:Io,requiresIfExists:["offset"],data:{_skip:!1}};function Qs(s,e,t){return t===void 0&&(t={x:0,y:0}),{top:s.top-e.height-t.y,right:s.right-e.width+t.x,bottom:s.bottom-e.height+t.y,left:s.left-e.width-t.x}}function ea(s){return[re,he,ue,oe].some(function(e){return s[e]>=0})}function Lo(s){var e=s.state,t=s.name,i=e.rects.reference,a=e.rects.popper,r=e.modifiersData.preventOverflow,n=$t(e,{elementContext:"reference"}),o=$t(e,{altBoundary:!0}),l=Qs(n,i),c=Qs(o,a,r),m=ea(l),u=ea(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:m,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":u})}const Po={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Lo};function Do(s,e,t){var i=we(s),a=[oe,re].indexOf(i)>=0?-1:1,r=typeof t=="function"?t(Object.assign({},e,{placement:s})):t,n=r[0],o=r[1];return n=n||0,o=(o||0)*a,[oe,he].indexOf(i)>=0?{x:o,y:n}:{x:n,y:o}}function Bo(s){var e=s.state,t=s.options,i=s.name,a=t.offset,r=a===void 0?[0,0]:a,n=Ba.reduce(function(m,u){return m[u]=Do(u,e.rects,r),m},{}),o=n[e.placement],l=o.x,c=o.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=n}const To={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Bo};function zo(s){var e=s.state,t=s.name;e.modifiersData[t]=Ua({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const jo={name:"popperOffsets",enabled:!0,phase:"read",fn:zo,data:{}};function Vo(s){return s==="x"?"y":"x"}function Fo(s){var e=s.state,t=s.options,i=s.name,a=t.mainAxis,r=a===void 0?!0:a,n=t.altAxis,o=n===void 0?!1:n,l=t.boundary,c=t.rootBoundary,m=t.altBoundary,u=t.padding,h=t.tether,g=h===void 0?!0:h,_=t.tetherOffset,y=_===void 0?0:_,f=$t(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:m}),A=we(e.placement),M=ot(e.placement),I=!M,x=gs(A),E=Vo(x),$=e.modifiersData.popperOffsets,R=e.rects.reference,P=e.rects.popper,O=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,T=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),K=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,ee={x:0,y:0};if($){if(r){var q,fe=x==="y"?re:oe,te=x==="y"?ue:he,Z=x==="y"?"height":"width",d=$[x],N=d+f[fe],w=d-f[te],k=g?-P[Z]/2:0,z=M===at?R[Z]:P[Z],J=M===at?-P[Z]:-R[Z],le=e.elements.arrow,pe=g&&le?ps(le):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ja(),X=U[fe],De=U[te],be=wt(0,R[Z],pe[Z]),qe=I?R[Z]/2-k-be-X-T.mainAxis:z-be-X-T.mainAxis,$i=I?-R[Z]/2+k+be+De+T.mainAxis:J+be+De+T.mainAxis,ft=e.elements.arrow&&Vt(e.elements.arrow),Oi=ft?x==="y"?ft.clientTop||0:ft.clientLeft||0:0,Ut=(q=K==null?void 0:K[x])!=null?q:0,Je=d+qe-Ut-Oi,Gt=d+$i-Ut,ce=wt(g?ui(N,Je):N,d,g?Ve(w,Gt):w);$[x]=ce,ee[x]=ce-d}if(o){var Wt,pt=x==="x"?re:oe,S=x==="x"?ue:he,ve=$[E],G=E==="y"?"height":"width",D=ve+f[pt],Be=ve-f[S],ge=[re,oe].indexOf(A)!==-1,Ze=(Wt=K==null?void 0:K[E])!=null?Wt:0,Xe=ge?D:ve-R[G]-P[G]-Ze+T.altAxis,p=ge?ve+R[G]+P[G]-Ze-T.altAxis:Be,b=g&&ge?uo(Xe,ve,p):wt(g?Xe:D,ve,g?p:Be);$[E]=b,ee[E]=b-ve}e.modifiersData[i]=ee}}const Ho={name:"preventOverflow",enabled:!0,phase:"main",fn:Fo,requiresIfExists:["offset"]};function Uo(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function Go(s){return s===me(s)||!de(s)?Ns(s):Uo(s)}function Wo(s){var e=s.getBoundingClientRect(),t=nt(e.width)/s.offsetWidth||1,i=nt(e.height)/s.offsetHeight||1;return t!==1||i!==1}function Ko(s,e,t){t===void 0&&(t=!1);var i=de(e),a=de(e)&&Wo(e),r=Le(e),n=rt(s,a,t),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((_e(e)!=="body"||vs(r))&&(o=Go(e)),de(e)?(l=rt(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=bs(r))),{x:n.left+o.scrollLeft-l.x,y:n.top+o.scrollTop-l.y,width:n.width,height:n.height}}function qo(s){var e=new Map,t=new Set,i=[];s.forEach(function(r){e.set(r.name,r)});function a(r){t.add(r.name);var n=[].concat(r.requires||[],r.requiresIfExists||[]);n.forEach(function(o){if(!t.has(o)){var l=e.get(o);l&&a(l)}}),i.push(r)}return s.forEach(function(r){t.has(r.name)||a(r)}),i}function Jo(s){var e=qo(s);return no.reduce(function(t,i){return t.concat(e.filter(function(a){return a.phase===i}))},[])}function Zo(s){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(s())})})),e}}function Xo(s){var e=s.reduce(function(t,i){var a=t[i.name];return t[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var ta={placement:"bottom",modifiers:[],strategy:"absolute"};function ia(){for(var s=arguments.length,e=new Array(s),t=0;t<s;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Yo(s){s===void 0&&(s={});var e=s,t=e.defaultModifiers,i=t===void 0?[]:t,a=e.defaultOptions,r=a===void 0?ta:a;return function(o,l,c){c===void 0&&(c=r);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},ta,r),modifiersData:{},elements:{reference:o,popper:l},attributes:{},styles:{}},u=[],h=!1,g={state:m,setOptions:function(A){var M=typeof A=="function"?A(m.options):A;y(),m.options=Object.assign({},r,m.options,M),m.scrollParents={reference:Ge(o)?_t(o):o.contextElement?_t(o.contextElement):[],popper:_t(l)};var I=Jo(Xo([].concat(i,m.options.modifiers)));return m.orderedModifiers=I.filter(function(x){return x.enabled}),_(),g.update()},forceUpdate:function(){if(!h){var A=m.elements,M=A.reference,I=A.popper;if(ia(M,I)){m.rects={reference:Ko(M,Vt(I),m.options.strategy==="fixed"),popper:ps(I)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(T){return m.modifiersData[T.name]=Object.assign({},T.data)});for(var x=0;x<m.orderedModifiers.length;x++){if(m.reset===!0){m.reset=!1,x=-1;continue}var E=m.orderedModifiers[x],$=E.fn,R=E.options,P=R===void 0?{}:R,O=E.name;typeof $=="function"&&(m=$({state:m,options:P,name:O,instance:g})||m)}}}},update:Zo(function(){return new Promise(function(f){g.forceUpdate(),f(m)})}),destroy:function(){y(),h=!0}};if(!ia(o,l))return g;g.setOptions(c).then(function(f){!h&&c.onFirstUpdate&&c.onFirstUpdate(f)});function _(){m.orderedModifiers.forEach(function(f){var A=f.name,M=f.options,I=M===void 0?{}:M,x=f.effect;if(typeof x=="function"){var E=x({state:m,name:A,instance:g,options:I}),$=function(){};u.push(E||$)}})}function y(){u.forEach(function(f){return f()}),u=[]}return g}}var Qo=[wo,jo,yo,lo,To,Ro,Ho,go,Po],el=Yo({defaultModifiers:Qo});const ie=s=>s??F,tl=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",il="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",sl="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",al="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e";var nl=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,ys=(s,e,t,i)=>{for(var a=i>1?void 0:i?rl(e,t):e,r=s.length-1,n;r>=0;r--)(n=s[r])&&(a=(i?n(e,t,a):n(a))||a);return i&&a&&nl(e,t,a),a},Ye;const Ot=(Ye=class extends Ee{static parseLevel(s){if(s){const e=Object.keys(hi).find(t=>t.toLowerCase()===s.toLowerCase());return e&&hi[e]}}static get styles(){return[Tt`
1419
- ${ht(tl)}
1420
- `]}render(){return ne`${this.iconToUse&&ne`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(s){return s.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(s)}get iconForLevel(){switch(Ye.parseLevel(this.level)){case"warn":return al;case"suggest":return sl;case"error":return il;default:return null}}},Ye.ID="sd-field-validation-message",Ye.levelConverter={fromAttribute(s){return Ye.parseLevel(s)},toAttribute(s){return s&&s.toLowerCase()}},Ye);ys([v({type:String,attribute:!0})],Ot.prototype,"message",2);ys([v({type:String,attribute:!0})],Ot.prototype,"icon",2);ys([v({converter:Ot.levelConverter,reflect:!0})],Ot.prototype,"level",2);let Bi=Ot;var hi=(s=>(s.Warn="warn",s.Suggest="suggest",s.Error="error",s))(hi||{});customElements.get(Bi.ID)||customElements.define(Bi.ID,Bi);const ol=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, absolute);left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;top:0;right:0;bottom:0;left:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}";var ll=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,W=(s,e,t,i)=>{for(var a=i>1?void 0:i?cl(e,t):e,r=s.length-1,n;r>=0;r--)(n=s[r])&&(a=(i?n(e,t,a):n(a))||a);return i&&a&&ll(e,t,a),a};const ml="sd-lit-input",sa="delegatesFocus"in window.ShadowRoot.prototype;let dl=0;var ye;const H=(ye=class extends Ee{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";const s=dl++;this._validationMessageId=ye.ID+"_message_"+s,this._inputId=ye.ID+"_input_"+s,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(s){super.firstUpdated(s),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.updateFormValidity(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=e=>{this.autocompleted=e.inputType==="insertReplacementText"||!("data"in e),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),sa||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",e=>{e.target===this&&this.inputElement.focus()})),this.inputElement.addEventListener("keyup",()=>{this.updateFormValidity()}),this.addEventListener("keydown",e=>{var t,i;e.key=="Enter"&&((i=(t=this._internals)==null?void 0:t.form)==null||i.requestSubmit())}),this._initialized=!0}initAutocompleted(s){const e=t=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(t.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(t.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(s,"animationstart",e)):s.addEventListener("animationstart",e)}get activeShadyDOM(){const s=window.ShadyDOM;return s&&s.inUse?s:null}updateInitialValue(){typeof this.currentText<"u"?this.value=this.currentText:this.value=this.getAttribute("value"),this.value&&(this.currentText=this.inputElement.value),this._initialValue=this.value}get disabled(){return this.hasAttribute("disabled")}set disabled(s){s?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=s)}get inputElement(){return this.shadowRoot&&!this._inputElement&&(this._inputElement=this.shadowRoot.querySelector(".input")),this._inputElement}get value(){return this.inputElement&&this.inputElement.value}set value(s){this.currentText=s||"",this.inputElement&&(this.inputElement.value=this.currentText),this.setFormValue(this.currentText)}get selectionStart(){return this.inputElement?this.inputElement.selectionStart:0}focus(){this.inputElement?this.inputElement.focus():super.focus()}select(){this.inputElement&&this.inputElement.select()}setSelectionRange(s,e){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(s,e)})}static get styles(){return[Tt`
1421
- ${ht(ol)}
1422
- `]}render(){var s;let e;const t=this.validationMessage||((s=this.inputElement)==null?void 0:s.validationMessage),i=t||this.validationLevel!=null;return this.rows===1?e=ne`
1416
+ `,Mn={mainContent:En,description:kn,css:Ct,initializer:{content:On,type:"typescript",initialize:()=>Ut(()=>import("./6_validation_example.js"),[],import.meta.url)}},In=Object.freeze(Object.defineProperty({__proto__:null,default:Mn},Symbol.toStringTag,{value:"Module"}));const mi=globalThis,Ns=mi.ShadowRoot&&(mi.ShadyCSS===void 0||mi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bs=Symbol(),Xs=new WeakMap;let Ka=class{constructor(e,i,a){if(this._$cssResult$=!0,a!==bs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(Ns&&e===void 0){const a=i!==void 0&&i.length===1;a&&(e=Xs.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),a&&Xs.set(i,e))}return e}toString(){return this.cssText}};const At=t=>new Ka(typeof t=="string"?t:t+"",void 0,bs),Wt=(t,...e)=>{const i=t.length===1?t[0]:e.reduce(((a,s,n)=>a+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[n+1]),t[0]);return new Ka(i,t,bs)},Rn=(t,e)=>{if(Ns)t.adoptedStyleSheets=e.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of e){const a=document.createElement("style"),s=mi.litNonce;s!==void 0&&a.setAttribute("nonce",s),a.textContent=i.cssText,t.appendChild(a)}},Ys=Ns?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let i="";for(const a of e.cssRules)i+=a.cssText;return At(i)})(t):t;const{is:Ln,defineProperty:Pn,getOwnPropertyDescriptor:$n,getOwnPropertyNames:Dn,getOwnPropertySymbols:Bn,getPrototypeOf:Tn}=Object,bi=globalThis,Qs=bi.trustedTypes,zn=Qs?Qs.emptyScript:"",jn=bi.reactiveElementPolyfillSupport,$t=(t,e)=>t,hi={toAttribute(t,e){switch(e){case Boolean:t=t?zn:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=t!==null;break;case Number:i=t===null?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch{i=null}}return i}},ys=(t,e)=>!Ln(t,e),ea={attribute:!0,type:String,converter:hi,reflect:!1,useDefault:!1,hasChanged:ys};Symbol.metadata??=Symbol("metadata"),bi.litPropertyMetadata??=new WeakMap;let bt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=ea){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){const a=Symbol(),s=this.getPropertyDescriptor(e,a,i);s!==void 0&&Pn(this.prototype,e,s)}}static getPropertyDescriptor(e,i,a){const{get:s,set:n}=$n(this.prototype,e)??{get(){return this[i]},set(o){this[i]=o}};return{get:s,set(o){const d=s?.call(this);n?.call(this,o),this.requestUpdate(e,d,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ea}static _$Ei(){if(this.hasOwnProperty($t("elementProperties")))return;const e=Tn(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty($t("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty($t("properties"))){const i=this.properties,a=[...Dn(i),...Bn(i)];for(const s of a)this.createProperty(s,i[s])}const e=this[Symbol.metadata];if(e!==null){const i=litPropertyMetadata.get(e);if(i!==void 0)for(const[a,s]of i)this.elementProperties.set(a,s)}this._$Eh=new Map;for(const[i,a]of this.elementProperties){const s=this._$Eu(i,a);s!==void 0&&this._$Eh.set(s,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const a=new Set(e.flat(1/0).reverse());for(const s of a)i.unshift(Ys(s))}else e!==void 0&&i.push(Ys(e));return i}static _$Eu(e,i){const a=i.attribute;return a===!1?void 0:typeof a=="string"?a:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,i=this.constructor.elementProperties;for(const a of i.keys())this.hasOwnProperty(a)&&(e.set(a,this[a]),delete this[a]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Rn(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,i,a){this._$AK(e,a)}_$ET(e,i){const a=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,a);if(s!==void 0&&a.reflect===!0){const n=(a.converter?.toAttribute!==void 0?a.converter:hi).toAttribute(i,a.type);this._$Em=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(e,i){const a=this.constructor,s=a._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const n=a.getPropertyOptions(s),o=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:hi;this._$Em=s;const d=o.fromAttribute(i,n.type);this[s]=d??this._$Ej?.get(s)??d,this._$Em=null}}requestUpdate(e,i,a){if(e!==void 0){const s=this.constructor,n=this[e];if(a??=s.getPropertyOptions(e),!((a.hasChanged??ys)(n,i)||a.useDefault&&a.reflect&&n===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,a))))return;this.C(e,i,a)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:a,reflect:s,wrapped:n},o){a&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??i??this[e]),n!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||a||(i=void 0),this._$AL.set(e,i)),s===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}const a=this.constructor.elementProperties;if(a.size>0)for(const[s,n]of a){const{wrapped:o}=n,d=this[s];o!==!0||this._$AL.has(s)||d===void 0||this.C(s,void 0,n,d)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach((a=>a.hostUpdate?.())),this.update(i)):this._$EM()}catch(a){throw e=!1,this._$EM(),a}e&&this._$AE(i)}willUpdate(e){}_$AE(e){this._$EO?.forEach((i=>i.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((i=>this._$ET(i,this[i]))),this._$EM()}updated(e){}firstUpdated(e){}};bt.elementStyles=[],bt.shadowRootOptions={mode:"open"},bt[$t("elementProperties")]=new Map,bt[$t("finalized")]=new Map,jn?.({ReactiveElement:bt}),(bi.reactiveElementVersions??=[]).push("2.1.1");const vs=globalThis,fi=vs.trustedTypes,ta=fi?fi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ja="$lit$",Qe=`lit$${Math.random().toFixed(9).slice(2)}$`,Za="?"+Qe,Vn=`<${Za}>`,mt=document,zt=()=>mt.createComment(""),jt=t=>t===null||typeof t!="object"&&typeof t!="function",xs=Array.isArray,Fn=t=>xs(t)||typeof t?.[Symbol.iterator]=="function",Bi=`[
1417
+ \f\r]`,It=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ia=/-->/g,sa=/>/g,nt=RegExp(`>|${Bi}(?:([^\\s"'>=/]+)(${Bi}*=${Bi}*(?:[^
1418
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),aa=/'/g,ra=/"/g,Xa=/^(?:script|style|textarea|title)$/i,Hn=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),be=Hn(1),dt=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),na=new WeakMap,lt=mt.createTreeWalker(mt,129);function Ya(t,e){if(!xs(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ta!==void 0?ta.createHTML(e):e}const qn=(t,e)=>{const i=t.length-1,a=[];let s,n=e===2?"<svg>":e===3?"<math>":"",o=It;for(let d=0;d<i;d++){const h=t[d];let u,r,m=-1,c=0;for(;c<h.length&&(o.lastIndex=c,r=o.exec(h),r!==null);)c=o.lastIndex,o===It?r[1]==="!--"?o=ia:r[1]!==void 0?o=sa:r[2]!==void 0?(Xa.test(r[2])&&(s=RegExp("</"+r[2],"g")),o=nt):r[3]!==void 0&&(o=nt):o===nt?r[0]===">"?(o=s??It,m=-1):r[1]===void 0?m=-2:(m=o.lastIndex-r[2].length,u=r[1],o=r[3]===void 0?nt:r[3]==='"'?ra:aa):o===ra||o===aa?o=nt:o===ia||o===sa?o=It:(o=nt,s=void 0);const l=o===nt&&t[d+1].startsWith("/>")?" ":"";n+=o===It?h+Vn:m>=0?(a.push(u),h.slice(0,m)+Ja+h.slice(m)+Qe+l):h+Qe+(m===-2?d:l)}return[Ya(t,n+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),a]};class Vt{constructor({strings:e,_$litType$:i},a){let s;this.parts=[];let n=0,o=0;const d=e.length-1,h=this.parts,[u,r]=qn(e,i);if(this.el=Vt.createElement(u,a),lt.currentNode=this.el.content,i===2||i===3){const m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(s=lt.nextNode())!==null&&h.length<d;){if(s.nodeType===1){if(s.hasAttributes())for(const m of s.getAttributeNames())if(m.endsWith(Ja)){const c=r[o++],l=s.getAttribute(m).split(Qe),f=/([.?@])?(.*)/.exec(c);h.push({type:1,index:n,name:f[2],strings:l,ctor:f[1]==="."?Wn:f[1]==="?"?Gn:f[1]==="@"?Kn:yi}),s.removeAttribute(m)}else m.startsWith(Qe)&&(h.push({type:6,index:n}),s.removeAttribute(m));if(Xa.test(s.tagName)){const m=s.textContent.split(Qe),c=m.length-1;if(c>0){s.textContent=fi?fi.emptyScript:"";for(let l=0;l<c;l++)s.append(m[l],zt()),lt.nextNode(),h.push({type:2,index:++n});s.append(m[c],zt())}}}else if(s.nodeType===8)if(s.data===Za)h.push({type:2,index:n});else{let m=-1;for(;(m=s.data.indexOf(Qe,m+1))!==-1;)h.push({type:7,index:n}),m+=Qe.length-1}n++}}static createElement(e,i){const a=mt.createElement("template");return a.innerHTML=e,a}}function vt(t,e,i=t,a){if(e===dt)return e;let s=a!==void 0?i._$Co?.[a]:i._$Cl;const n=jt(e)?void 0:e._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(t),s._$AT(t,i,a)),a!==void 0?(i._$Co??=[])[a]=s:i._$Cl=s),s!==void 0&&(e=vt(t,s._$AS(t,e.values),s,a)),e}class Un{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:i},parts:a}=this._$AD,s=(e?.creationScope??mt).importNode(i,!0);lt.currentNode=s;let n=lt.nextNode(),o=0,d=0,h=a[0];for(;h!==void 0;){if(o===h.index){let u;h.type===2?u=new Gt(n,n.nextSibling,this,e):h.type===1?u=new h.ctor(n,h.name,h.strings,this,e):h.type===6&&(u=new Jn(n,this,e)),this._$AV.push(u),h=a[++d]}o!==h?.index&&(n=lt.nextNode(),o++)}return lt.currentNode=mt,s}p(e){let i=0;for(const a of this._$AV)a!==void 0&&(a.strings!==void 0?(a._$AI(e,a,i),i+=a.strings.length-2):a._$AI(e[i])),i++}}class Gt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,a,s){this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=a,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=vt(this,e,i),jt(e)?e===Y||e==null||e===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):e!==this._$AH&&e!==dt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Fn(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!==Y&&jt(this._$AH)?this._$AA.nextSibling.data=e:this.T(mt.createTextNode(e)),this._$AH=e}$(e){const{values:i,_$litType$:a}=e,s=typeof a=="number"?this._$AC(e):(a.el===void 0&&(a.el=Vt.createElement(Ya(a.h,a.h[0]),this.options)),a);if(this._$AH?._$AD===s)this._$AH.p(i);else{const n=new Un(s,this),o=n.u(this.options);n.p(i),this.T(o),this._$AH=n}}_$AC(e){let i=na.get(e.strings);return i===void 0&&na.set(e.strings,i=new Vt(e)),i}k(e){xs(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let a,s=0;for(const n of e)s===i.length?i.push(a=new Gt(this.O(zt()),this.O(zt()),this,this.options)):a=i[s],a._$AI(n),s++;s<i.length&&(this._$AR(a&&a._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){const a=e.nextSibling;e.remove(),e=a}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class yi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,a,s,n){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=e,this.name=i,this._$AM=s,this.options=n,a.length>2||a[0]!==""||a[1]!==""?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=Y}_$AI(e,i=this,a,s){const n=this.strings;let o=!1;if(n===void 0)e=vt(this,e,i,0),o=!jt(e)||e!==this._$AH&&e!==dt,o&&(this._$AH=e);else{const d=e;let h,u;for(e=n[0],h=0;h<n.length-1;h++)u=vt(this,d[a+h],i,h),u===dt&&(u=this._$AH[h]),o||=!jt(u)||u!==this._$AH[h],u===Y?e=Y:e!==Y&&(e+=(u??"")+n[h+1]),this._$AH[h]=u}o&&!s&&this.j(e)}j(e){e===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Wn extends yi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Y?void 0:e}}class Gn extends yi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Y)}}let Kn=class extends yi{constructor(e,i,a,s,n){super(e,i,a,s,n),this.type=5}_$AI(e,i=this){if((e=vt(this,e,i,0)??Y)===dt)return;const a=this._$AH,s=e===Y&&a!==Y||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,n=e!==Y&&(a===Y||s);s&&this.element.removeEventListener(this.name,this,a),n&&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)}},Jn=class{constructor(e,i,a){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=a}get _$AU(){return this._$AM._$AU}_$AI(e){vt(this,e)}};const Zn=vs.litHtmlPolyfillSupport;Zn?.(Vt,Gt),(vs.litHtmlVersions??=[]).push("3.3.1");const Xn=(t,e,i)=>{const a=i?.renderBefore??e;let s=a._$litPart$;if(s===void 0){const n=i?.renderBefore??null;a._$litPart$=s=new Gt(e.insertBefore(zt(),n),n,void 0,i??{})}return s._$AI(t),s};const ws=globalThis;let We=class extends bt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Xn(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return dt}};We._$litElement$=!0,We.finalized=!0,ws.litElementHydrateSupport?.({LitElement:We});const Yn=ws.litElementPolyfillSupport;Yn?.({LitElement:We});(ws.litElementVersions??=[]).push("4.2.1");const Qn={attribute:!0,type:String,converter:hi,reflect:!1,hasChanged:ys},eo=(t=Qn,e,i)=>{const{kind:a,metadata:s}=i;let n=globalThis.litPropertyMetadata.get(s);if(n===void 0&&globalThis.litPropertyMetadata.set(s,n=new Map),a==="setter"&&((t=Object.create(t)).wrapped=!0),n.set(i.name,t),a==="accessor"){const{name:o}=i;return{set(d){const h=e.get.call(this);e.set.call(this,d),this.requestUpdate(o,h,t)},init(d){return d!==void 0&&this.C(o,void 0,t,d),d}}}if(a==="setter"){const{name:o}=i;return function(d){const h=this[o];e.call(this,d),this.requestUpdate(o,h,t)}}throw Error("Unsupported decorator location: "+a)};function D(t){return(e,i)=>typeof i=="object"?eo(t,e,i):((a,s,n)=>{const o=s.hasOwnProperty(n);return s.constructor.createProperty(n,a),o?Object.getOwnPropertyDescriptor(s,n):void 0})(t,e,i)}var ye="top",ke="bottom",Oe="right",ve="left",_s="auto",Kt=[ye,ke,Oe,ve],xt="start",Ft="end",to="clippingParents",Qa="viewport",Rt="popper",io="reference",oa=Kt.reduce(function(t,e){return t.concat([e+"-"+xt,e+"-"+Ft])},[]),er=[].concat(Kt,[_s]).reduce(function(t,e){return t.concat([e,e+"-"+xt,e+"-"+Ft])},[]),so="beforeRead",ao="read",ro="afterRead",no="beforeMain",oo="main",lo="afterMain",co="beforeWrite",mo="write",uo="afterWrite",ho=[so,ao,ro,no,oo,lo,co,mo,uo];function je(t){return t?(t.nodeName||"").toLowerCase():null}function _e(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ut(t){var e=_e(t).Element;return t instanceof e||t instanceof Element}function Ee(t){var e=_e(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Ss(t){if(typeof ShadowRoot>"u")return!1;var e=_e(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function fo(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var a=e.styles[i]||{},s=e.attributes[i]||{},n=e.elements[i];!Ee(n)||!je(n)||(Object.assign(n.style,a),Object.keys(s).forEach(function(o){var d=s[o];d===!1?n.removeAttribute(o):n.setAttribute(o,d===!0?"":d)}))})}function po(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(a){var s=e.elements[a],n=e.attributes[a]||{},o=Object.keys(e.styles.hasOwnProperty(a)?e.styles[a]:i[a]),d=o.reduce(function(h,u){return h[u]="",h},{});!Ee(s)||!je(s)||(Object.assign(s.style,d),Object.keys(n).forEach(function(h){s.removeAttribute(h)}))})}}const go={name:"applyStyles",enabled:!0,phase:"write",fn:fo,effect:po,requires:["computeStyles"]};function ze(t){return t.split("-")[0]}var ct=Math.max,pi=Math.min,wt=Math.round;function hs(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function tr(){return!/^((?!chrome|android).)*safari/i.test(hs())}function _t(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var a=t.getBoundingClientRect(),s=1,n=1;e&&Ee(t)&&(s=t.offsetWidth>0&&wt(a.width)/t.offsetWidth||1,n=t.offsetHeight>0&&wt(a.height)/t.offsetHeight||1);var o=ut(t)?_e(t):window,d=o.visualViewport,h=!tr()&&i,u=(a.left+(h&&d?d.offsetLeft:0))/s,r=(a.top+(h&&d?d.offsetTop:0))/n,m=a.width/s,c=a.height/n;return{width:m,height:c,top:r,right:u+m,bottom:r+c,left:u,x:u,y:r}}function Cs(t){var e=_t(t),i=t.offsetWidth,a=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-a)<=1&&(a=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:a}}function ir(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Ss(i)){var a=e;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Ge(t){return _e(t).getComputedStyle(t)}function No(t){return["table","td","th"].indexOf(je(t))>=0}function et(t){return((ut(t)?t.ownerDocument:t.document)||window.document).documentElement}function vi(t){return je(t)==="html"?t:t.assignedSlot||t.parentNode||(Ss(t)?t.host:null)||et(t)}function la(t){return!Ee(t)||Ge(t).position==="fixed"?null:t.offsetParent}function bo(t){var e=/firefox/i.test(hs()),i=/Trident/i.test(hs());if(i&&Ee(t)){var a=Ge(t);if(a.position==="fixed")return null}var s=vi(t);for(Ss(s)&&(s=s.host);Ee(s)&&["html","body"].indexOf(je(s))<0;){var n=Ge(s);if(n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||e&&n.willChange==="filter"||e&&n.filter&&n.filter!=="none")return s;s=s.parentNode}return null}function Jt(t){for(var e=_e(t),i=la(t);i&&No(i)&&Ge(i).position==="static";)i=la(i);return i&&(je(i)==="html"||je(i)==="body"&&Ge(i).position==="static")?e:i||bo(t)||e}function As(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Dt(t,e,i){return ct(t,pi(e,i))}function yo(t,e,i){var a=Dt(t,e,i);return a>i?i:a}function sr(){return{top:0,right:0,bottom:0,left:0}}function ar(t){return Object.assign({},sr(),t)}function rr(t,e){return e.reduce(function(i,a){return i[a]=t,i},{})}var vo=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,ar(typeof e!="number"?e:rr(e,Kt))};function xo(t){var e,i=t.state,a=t.name,s=t.options,n=i.elements.arrow,o=i.modifiersData.popperOffsets,d=ze(i.placement),h=As(d),u=[ve,Oe].indexOf(d)>=0,r=u?"height":"width";if(!(!n||!o)){var m=vo(s.padding,i),c=Cs(n),l=h==="y"?ye:ve,f=h==="y"?ke:Oe,p=i.rects.reference[r]+i.rects.reference[h]-o[h]-i.rects.popper[r],N=o[h]-i.rects.reference[h],x=Jt(n),w=x?h==="y"?x.clientHeight||0:x.clientWidth||0:0,v=p/2-N/2,y=m[l],b=w-c[r]-m[f],_=w/2-c[r]/2+v,C=Dt(y,_,b),I=h;i.modifiersData[a]=(e={},e[I]=C,e.centerOffset=C-_,e)}}function wo(t){var e=t.state,i=t.options,a=i.element,s=a===void 0?"[data-popper-arrow]":a;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||ir(e.elements.popper,s)&&(e.elements.arrow=s))}const _o={name:"arrow",enabled:!0,phase:"main",fn:xo,effect:wo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function St(t){return t.split("-")[1]}var So={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Co(t,e){var i=t.x,a=t.y,s=e.devicePixelRatio||1;return{x:wt(i*s)/s||0,y:wt(a*s)/s||0}}function ca(t){var e,i=t.popper,a=t.popperRect,s=t.placement,n=t.variation,o=t.offsets,d=t.position,h=t.gpuAcceleration,u=t.adaptive,r=t.roundOffsets,m=t.isFixed,c=o.x,l=c===void 0?0:c,f=o.y,p=f===void 0?0:f,N=typeof r=="function"?r({x:l,y:p}):{x:l,y:p};l=N.x,p=N.y;var x=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),v=ve,y=ye,b=window;if(u){var _=Jt(i),C="clientHeight",I="clientWidth";if(_===_e(i)&&(_=et(i),Ge(_).position!=="static"&&d==="absolute"&&(C="scrollHeight",I="scrollWidth")),_=_,s===ye||(s===ve||s===Oe)&&n===Ft){y=ke;var P=m&&_===b&&b.visualViewport?b.visualViewport.height:_[C];p-=P-a.height,p*=h?1:-1}if(s===ve||(s===ye||s===ke)&&n===Ft){v=Oe;var E=m&&_===b&&b.visualViewport?b.visualViewport.width:_[I];l-=E-a.width,l*=h?1:-1}}var H=Object.assign({position:d},u&&So),V=r===!0?Co({x:l,y:p},_e(i)):{x:l,y:p};if(l=V.x,p=V.y,h){var Q;return Object.assign({},H,(Q={},Q[y]=w?"0":"",Q[v]=x?"0":"",Q.transform=(b.devicePixelRatio||1)<=1?"translate("+l+"px, "+p+"px)":"translate3d("+l+"px, "+p+"px, 0)",Q))}return Object.assign({},H,(e={},e[y]=w?p+"px":"",e[v]=x?l+"px":"",e.transform="",e))}function Ao(t){var e=t.state,i=t.options,a=i.gpuAcceleration,s=a===void 0?!0:a,n=i.adaptive,o=n===void 0?!0:n,d=i.roundOffsets,h=d===void 0?!0:d,u={placement:ze(e.placement),variation:St(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ca(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:h})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ca(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Eo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ao,data:{}};var ni={passive:!0};function ko(t){var e=t.state,i=t.instance,a=t.options,s=a.scroll,n=s===void 0?!0:s,o=a.resize,d=o===void 0?!0:o,h=_e(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return n&&u.forEach(function(r){r.addEventListener("scroll",i.update,ni)}),d&&h.addEventListener("resize",i.update,ni),function(){n&&u.forEach(function(r){r.removeEventListener("scroll",i.update,ni)}),d&&h.removeEventListener("resize",i.update,ni)}}const Oo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ko,data:{}};var Mo={left:"right",right:"left",bottom:"top",top:"bottom"};function di(t){return t.replace(/left|right|bottom|top/g,function(e){return Mo[e]})}var Io={start:"end",end:"start"};function ma(t){return t.replace(/start|end/g,function(e){return Io[e]})}function Es(t){var e=_e(t),i=e.pageXOffset,a=e.pageYOffset;return{scrollLeft:i,scrollTop:a}}function ks(t){return _t(et(t)).left+Es(t).scrollLeft}function Ro(t,e){var i=_e(t),a=et(t),s=i.visualViewport,n=a.clientWidth,o=a.clientHeight,d=0,h=0;if(s){n=s.width,o=s.height;var u=tr();(u||!u&&e==="fixed")&&(d=s.offsetLeft,h=s.offsetTop)}return{width:n,height:o,x:d+ks(t),y:h}}function Lo(t){var e,i=et(t),a=Es(t),s=(e=t.ownerDocument)==null?void 0:e.body,n=ct(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=ct(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),d=-a.scrollLeft+ks(t),h=-a.scrollTop;return Ge(s||i).direction==="rtl"&&(d+=ct(i.clientWidth,s?s.clientWidth:0)-n),{width:n,height:o,x:d,y:h}}function Os(t){var e=Ge(t),i=e.overflow,a=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+a)}function nr(t){return["html","body","#document"].indexOf(je(t))>=0?t.ownerDocument.body:Ee(t)&&Os(t)?t:nr(vi(t))}function Bt(t,e){var i;e===void 0&&(e=[]);var a=nr(t),s=a===((i=t.ownerDocument)==null?void 0:i.body),n=_e(a),o=s?[n].concat(n.visualViewport||[],Os(a)?a:[]):a,d=e.concat(o);return s?d:d.concat(Bt(vi(o)))}function fs(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Po(t,e){var i=_t(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function da(t,e,i){return e===Qa?fs(Ro(t,i)):ut(e)?Po(e,i):fs(Lo(et(t)))}function $o(t){var e=Bt(vi(t)),i=["absolute","fixed"].indexOf(Ge(t).position)>=0,a=i&&Ee(t)?Jt(t):t;return ut(a)?e.filter(function(s){return ut(s)&&ir(s,a)&&je(s)!=="body"}):[]}function Do(t,e,i,a){var s=e==="clippingParents"?$o(t):[].concat(e),n=[].concat(s,[i]),o=n[0],d=n.reduce(function(h,u){var r=da(t,u,a);return h.top=ct(r.top,h.top),h.right=pi(r.right,h.right),h.bottom=pi(r.bottom,h.bottom),h.left=ct(r.left,h.left),h},da(t,o,a));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function or(t){var e=t.reference,i=t.element,a=t.placement,s=a?ze(a):null,n=a?St(a):null,o=e.x+e.width/2-i.width/2,d=e.y+e.height/2-i.height/2,h;switch(s){case ye:h={x:o,y:e.y-i.height};break;case ke:h={x:o,y:e.y+e.height};break;case Oe:h={x:e.x+e.width,y:d};break;case ve:h={x:e.x-i.width,y:d};break;default:h={x:e.x,y:e.y}}var u=s?As(s):null;if(u!=null){var r=u==="y"?"height":"width";switch(n){case xt:h[u]=h[u]-(e[r]/2-i[r]/2);break;case Ft:h[u]=h[u]+(e[r]/2-i[r]/2);break}}return h}function Ht(t,e){e===void 0&&(e={});var i=e,a=i.placement,s=a===void 0?t.placement:a,n=i.strategy,o=n===void 0?t.strategy:n,d=i.boundary,h=d===void 0?to:d,u=i.rootBoundary,r=u===void 0?Qa:u,m=i.elementContext,c=m===void 0?Rt:m,l=i.altBoundary,f=l===void 0?!1:l,p=i.padding,N=p===void 0?0:p,x=ar(typeof N!="number"?N:rr(N,Kt)),w=c===Rt?io:Rt,v=t.rects.popper,y=t.elements[f?w:c],b=Do(ut(y)?y:y.contextElement||et(t.elements.popper),h,r,o),_=_t(t.elements.reference),C=or({reference:_,element:v,placement:s}),I=fs(Object.assign({},v,C)),P=c===Rt?I:_,E={top:b.top-P.top+x.top,bottom:P.bottom-b.bottom+x.bottom,left:b.left-P.left+x.left,right:P.right-b.right+x.right},H=t.modifiersData.offset;if(c===Rt&&H){var V=H[s];Object.keys(E).forEach(function(Q){var re=[Oe,ke].indexOf(Q)>=0?1:-1,M=[ye,ke].indexOf(Q)>=0?"y":"x";E[Q]+=V[M]*re})}return E}function Bo(t,e){e===void 0&&(e={});var i=e,a=i.placement,s=i.boundary,n=i.rootBoundary,o=i.padding,d=i.flipVariations,h=i.allowedAutoPlacements,u=h===void 0?er:h,r=St(a),m=r?d?oa:oa.filter(function(f){return St(f)===r}):Kt,c=m.filter(function(f){return u.indexOf(f)>=0});c.length===0&&(c=m);var l=c.reduce(function(f,p){return f[p]=Ht(t,{placement:p,boundary:s,rootBoundary:n,padding:o})[ze(p)],f},{});return Object.keys(l).sort(function(f,p){return l[f]-l[p]})}function To(t){if(ze(t)===_s)return[];var e=di(t);return[ma(t),e,ma(e)]}function zo(t){var e=t.state,i=t.options,a=t.name;if(!e.modifiersData[a]._skip){for(var s=i.mainAxis,n=s===void 0?!0:s,o=i.altAxis,d=o===void 0?!0:o,h=i.fallbackPlacements,u=i.padding,r=i.boundary,m=i.rootBoundary,c=i.altBoundary,l=i.flipVariations,f=l===void 0?!0:l,p=i.allowedAutoPlacements,N=e.options.placement,x=ze(N),w=x===N,v=h||(w||!f?[di(N)]:To(N)),y=[N].concat(v).reduce(function(Ce,fe){return Ce.concat(ze(fe)===_s?Bo(e,{placement:fe,boundary:r,rootBoundary:m,padding:u,flipVariations:f,allowedAutoPlacements:p}):fe)},[]),b=e.rects.reference,_=e.rects.popper,C=new Map,I=!0,P=y[0],E=0;E<y.length;E++){var H=y[E],V=ze(H),Q=St(H)===xt,re=[ye,ke].indexOf(V)>=0,M=re?"width":"height",ne=Ht(e,{placement:H,boundary:r,rootBoundary:m,altBoundary:c,padding:u}),q=re?Q?Oe:ve:Q?ke:ye;b[M]>_[M]&&(q=di(q));var Z=di(q),te=[];if(n&&te.push(ne[V]<=0),d&&te.push(ne[q]<=0,ne[Z]<=0),te.every(function(Ce){return Ce})){P=H,I=!1;break}C.set(H,te)}if(I)for(var le=f?3:1,Se=function(fe){var Fe=y.find(function(Re){var Me=C.get(Re);if(Me)return Me.slice(0,fe).every(function(Le){return Le})});if(Fe)return P=Fe,"break"},xe=le;xe>0;xe--){var T=Se(xe);if(T==="break")break}e.placement!==P&&(e.modifiersData[a]._skip=!0,e.placement=P,e.reset=!0)}}const jo={name:"flip",enabled:!0,phase:"main",fn:zo,requiresIfExists:["offset"],data:{_skip:!1}};function ua(t,e,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function ha(t){return[ye,Oe,ke,ve].some(function(e){return t[e]>=0})}function Vo(t){var e=t.state,i=t.name,a=e.rects.reference,s=e.rects.popper,n=e.modifiersData.preventOverflow,o=Ht(e,{elementContext:"reference"}),d=Ht(e,{altBoundary:!0}),h=ua(o,a),u=ua(d,s,n),r=ha(h),m=ha(u);e.modifiersData[i]={referenceClippingOffsets:h,popperEscapeOffsets:u,isReferenceHidden:r,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":r,"data-popper-escaped":m})}const Fo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Vo};function Ho(t,e,i){var a=ze(t),s=[ve,ye].indexOf(a)>=0?-1:1,n=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,o=n[0],d=n[1];return o=o||0,d=(d||0)*s,[ve,Oe].indexOf(a)>=0?{x:d,y:o}:{x:o,y:d}}function qo(t){var e=t.state,i=t.options,a=t.name,s=i.offset,n=s===void 0?[0,0]:s,o=er.reduce(function(r,m){return r[m]=Ho(m,e.rects,n),r},{}),d=o[e.placement],h=d.x,u=d.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=h,e.modifiersData.popperOffsets.y+=u),e.modifiersData[a]=o}const Uo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:qo};function Wo(t){var e=t.state,i=t.name;e.modifiersData[i]=or({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Go={name:"popperOffsets",enabled:!0,phase:"read",fn:Wo,data:{}};function Ko(t){return t==="x"?"y":"x"}function Jo(t){var e=t.state,i=t.options,a=t.name,s=i.mainAxis,n=s===void 0?!0:s,o=i.altAxis,d=o===void 0?!1:o,h=i.boundary,u=i.rootBoundary,r=i.altBoundary,m=i.padding,c=i.tether,l=c===void 0?!0:c,f=i.tetherOffset,p=f===void 0?0:f,N=Ht(e,{boundary:h,rootBoundary:u,padding:m,altBoundary:r}),x=ze(e.placement),w=St(e.placement),v=!w,y=As(x),b=Ko(y),_=e.modifiersData.popperOffsets,C=e.rects.reference,I=e.rects.popper,P=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,E=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,V={x:0,y:0};if(_){if(n){var Q,re=y==="y"?ye:ve,M=y==="y"?ke:Oe,ne=y==="y"?"height":"width",q=_[y],Z=q+N[re],te=q-N[M],le=l?-I[ne]/2:0,Se=w===xt?C[ne]:I[ne],xe=w===xt?-I[ne]:-C[ne],T=e.elements.arrow,Ce=l&&T?Cs(T):{width:0,height:0},fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:sr(),Fe=fe[re],Re=fe[M],Me=Dt(0,C[ne],Ce[ne]),Le=v?C[ne]/2-le-Me-Fe-E.mainAxis:Se-Me-Fe-E.mainAxis,Et=v?-C[ne]/2+le+Me+Re+E.mainAxis:xe+Me+Re+E.mainAxis,Ae=e.elements.arrow&&Jt(e.elements.arrow),it=Ae?y==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,st=(Q=H?.[y])!=null?Q:0,Ei=q+Le-st-it,ki=q+Et-st,Xt=Dt(l?pi(Z,Ei):Z,q,l?ct(te,ki):te);_[y]=Xt,V[y]=Xt-q}if(d){var Yt,Oi=y==="x"?ye:ve,Qt=y==="x"?ke:Oe,He=_[b],ft=b==="y"?"height":"width",kt=He+N[Oi],Pe=He-N[Qt],pt=[ye,ve].indexOf(x)!==-1,qe=(Yt=H?.[b])!=null?Yt:0,at=pt?kt:He-C[ft]-I[ft]-qe+E.altAxis,Ot=pt?He+C[ft]+I[ft]-qe-E.altAxis:Pe,ei=l&&pt?yo(at,He,Ot):Dt(l?at:kt,He,l?Ot:Pe);_[b]=ei,V[b]=ei-He}e.modifiersData[a]=V}}const Zo={name:"preventOverflow",enabled:!0,phase:"main",fn:Jo,requiresIfExists:["offset"]};function Xo(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Yo(t){return t===_e(t)||!Ee(t)?Es(t):Xo(t)}function Qo(t){var e=t.getBoundingClientRect(),i=wt(e.width)/t.offsetWidth||1,a=wt(e.height)/t.offsetHeight||1;return i!==1||a!==1}function el(t,e,i){i===void 0&&(i=!1);var a=Ee(e),s=Ee(e)&&Qo(e),n=et(e),o=_t(t,s,i),d={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(a||!a&&!i)&&((je(e)!=="body"||Os(n))&&(d=Yo(e)),Ee(e)?(h=_t(e,!0),h.x+=e.clientLeft,h.y+=e.clientTop):n&&(h.x=ks(n))),{x:o.left+d.scrollLeft-h.x,y:o.top+d.scrollTop-h.y,width:o.width,height:o.height}}function tl(t){var e=new Map,i=new Set,a=[];t.forEach(function(n){e.set(n.name,n)});function s(n){i.add(n.name);var o=[].concat(n.requires||[],n.requiresIfExists||[]);o.forEach(function(d){if(!i.has(d)){var h=e.get(d);h&&s(h)}}),a.push(n)}return t.forEach(function(n){i.has(n.name)||s(n)}),a}function il(t){var e=tl(t);return ho.reduce(function(i,a){return i.concat(e.filter(function(s){return s.phase===a}))},[])}function sl(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function al(t){var e=t.reduce(function(i,a){var s=i[a.name];return i[a.name]=s?Object.assign({},s,a,{options:Object.assign({},s.options,a.options),data:Object.assign({},s.data,a.data)}):a,i},{});return Object.keys(e).map(function(i){return e[i]})}var fa={placement:"bottom",modifiers:[],strategy:"absolute"};function pa(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function rl(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,a=i===void 0?[]:i,s=e.defaultOptions,n=s===void 0?fa:s;return function(d,h,u){u===void 0&&(u=n);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},fa,n),modifiersData:{},elements:{reference:d,popper:h},attributes:{},styles:{}},m=[],c=!1,l={state:r,setOptions:function(x){var w=typeof x=="function"?x(r.options):x;p(),r.options=Object.assign({},n,r.options,w),r.scrollParents={reference:ut(d)?Bt(d):d.contextElement?Bt(d.contextElement):[],popper:Bt(h)};var v=il(al([].concat(a,r.options.modifiers)));return r.orderedModifiers=v.filter(function(y){return y.enabled}),f(),l.update()},forceUpdate:function(){if(!c){var x=r.elements,w=x.reference,v=x.popper;if(pa(w,v)){r.rects={reference:el(w,Jt(v),r.options.strategy==="fixed"),popper:Cs(v)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(E){return r.modifiersData[E.name]=Object.assign({},E.data)});for(var y=0;y<r.orderedModifiers.length;y++){if(r.reset===!0){r.reset=!1,y=-1;continue}var b=r.orderedModifiers[y],_=b.fn,C=b.options,I=C===void 0?{}:C,P=b.name;typeof _=="function"&&(r=_({state:r,options:I,name:P,instance:l})||r)}}}},update:sl(function(){return new Promise(function(N){l.forceUpdate(),N(r)})}),destroy:function(){p(),c=!0}};if(!pa(d,h))return l;l.setOptions(u).then(function(N){!c&&u.onFirstUpdate&&u.onFirstUpdate(N)});function f(){r.orderedModifiers.forEach(function(N){var x=N.name,w=N.options,v=w===void 0?{}:w,y=N.effect;if(typeof y=="function"){var b=y({state:r,name:x,instance:l,options:v}),_=function(){};m.push(b||_)}})}function p(){m.forEach(function(N){return N()}),m=[]}return l}}var nl=[Oo,Go,Eo,go,Uo,jo,Zo,_o,Fo],ol=rl({defaultModifiers:nl});const pe=t=>t??Y,ll=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",cl="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",ml="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",dl="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e";var ul=Object.defineProperty,Ms=(t,e,i,a)=>{for(var s=void 0,n=t.length-1,o;n>=0;n--)(o=t[n])&&(s=o(e,i,s)||s);return s&&ul(e,i,s),s},Nt;const qt=(Nt=class extends We{static parseLevel(t){if(t){const e=Object.keys(gi).find(i=>i.toLowerCase()===t.toLowerCase());return e&&gi[e]}}static get styles(){return[Wt`
1419
+ ${At(ll)}
1420
+ `]}render(){return be`${this.iconToUse&&be`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(t){return t.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(t)}get iconForLevel(){switch(Nt.parseLevel(this.level)){case"warn":return dl;case"suggest":return ml;case"error":return cl;default:return null}}},Nt.ID="sd-field-validation-message",Nt.levelConverter={fromAttribute(t){return Nt.parseLevel(t)},toAttribute(t){return t&&t.toLowerCase()}},Nt);Ms([D({type:String,attribute:!0})],qt.prototype,"message");Ms([D({type:String,attribute:!0})],qt.prototype,"icon");Ms([D({converter:qt.levelConverter,reflect:!0})],qt.prototype,"level");let Ti=qt;var gi=(t=>(t.Warn="warn",t.Suggest="suggest",t.Error="error",t))(gi||{});customElements.get(Ti.ID)||customElements.define(Ti.ID,Ti);const hl=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, absolute);left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}";var fl=Object.defineProperty,ie=(t,e,i,a)=>{for(var s=void 0,n=t.length-1,o;n>=0;n--)(o=t[n])&&(s=o(e,i,s)||s);return s&&fl(e,i,s),s};const pl="sd-lit-input",ga="delegatesFocus"in window.ShadowRoot.prototype;let gl=0;var Te;const ee=(Te=class extends We{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";const t=gl++;this._validationMessageId=Te.ID+"_message_"+t,this._inputId=Te.ID+"_input_"+t,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(t){super.firstUpdated(t),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.updateFormValidity(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=e=>{this.autocompleted=e.inputType==="insertReplacementText"||!("data"in e),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),ga||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",e=>{e.target===this&&this.inputElement.focus()})),this.inputElement.addEventListener("keyup",()=>{this.updateFormValidity()}),this.addEventListener("keydown",e=>{e.key=="Enter"&&this._internals?.form?.requestSubmit()}),this._initialized=!0}initAutocompleted(t){const e=i=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(i.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(i.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(t,"animationstart",e)):t.addEventListener("animationstart",e)}get activeShadyDOM(){const t=window.ShadyDOM;return t&&t.inUse?t:null}updateInitialValue(){typeof this.currentText<"u"?this.value=this.currentText:this.value=this.getAttribute("value"),this.value&&(this.currentText=this.inputElement.value),this._initialValue=this.value}get disabled(){return this.hasAttribute("disabled")}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=t)}get inputElement(){return this.shadowRoot&&!this._inputElement&&(this._inputElement=this.shadowRoot.querySelector(".input")),this._inputElement}get value(){return this.inputElement&&this.inputElement.value}set value(t){this.currentText=t||"",this.inputElement&&(this.inputElement.value=this.currentText),this.setFormValue(this.currentText)}get selectionStart(){return this.inputElement?this.inputElement.selectionStart:0}focus(){this.inputElement?this.inputElement.focus():super.focus()}select(){this.inputElement&&this.inputElement.select()}setSelectionRange(t,e){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(t,e)})}static get styles(){return[Wt`
1421
+ ${At(hl)}
1422
+ `]}render(){let t;const e=this.validationMessage||this.inputElement?.validationMessage,i=e||this.validationLevel!=null;return this.rows===1?t=be`
1423
1423
  <input
1424
1424
  id=${this._inputId}
1425
1425
  class="input"
1426
1426
  .type=${this.type}
1427
- placeholder=${ie(this.placeholder||void 0)}
1428
- name=${ie(this.name||void 0)}
1427
+ placeholder=${pe(this.placeholder||void 0)}
1428
+ name=${pe(this.name||void 0)}
1429
1429
  aria-disabled=${this.effectiveDisabled}
1430
1430
  autocomplete=${this.autocomplete}
1431
1431
  ?disabled=${this.inactive}
1432
1432
  ?readonly=${this.readonly||this.effectiveDisabled}
1433
1433
  ?required=${this.required}
1434
- maxlength=${this.maxlength>0?this.maxlength:ye.DEFAULT_MAX_LENGTH}
1434
+ maxlength=${this.maxlength>0?this.maxlength:Te.DEFAULT_MAX_LENGTH}
1435
1435
  aria-describedby=${this._validationMessageId}
1436
- aria-invalid=${ie(i)}
1437
- aria-label=${ie(this.sdAriaLabel||void 0)}
1438
- min=${ie(this.min||void 0)}
1439
- max=${ie(this.max||void 0)}
1440
- pattern=${ie(this.pattern||void 0)}
1436
+ aria-invalid=${pe(i)}
1437
+ aria-label=${pe(this.sdAriaLabel||void 0)}
1438
+ min=${pe(this.min||void 0)}
1439
+ max=${pe(this.max||void 0)}
1440
+ pattern=${pe(this.pattern||void 0)}
1441
1441
  />
1442
- `:e=ne`
1442
+ `:t=be`
1443
1443
  <textarea
1444
1444
  id=${this._inputId}
1445
1445
  class="input"
1446
- placeholder=${ie(this.placeholder||void 0)}
1447
- name=${ie(this.name||void 0)}
1446
+ placeholder=${pe(this.placeholder||void 0)}
1447
+ name=${pe(this.name||void 0)}
1448
1448
  aria-disabled=${this.effectiveDisabled}
1449
1449
  autocomplete=${this.autocomplete}
1450
1450
  ?disabled=${this.inactive}
1451
1451
  ?readonly=${this.readonly||this.effectiveDisabled}
1452
1452
  ?required=${this.required}
1453
- maxlength=${this.maxlength>0?this.maxlength:ye.DEFAULT_MAX_LENGTH}
1453
+ maxlength=${this.maxlength>0?this.maxlength:Te.DEFAULT_MAX_LENGTH}
1454
1454
  rows=${this.rows}
1455
1455
  aria-describedby=${this._validationMessageId}
1456
- aria-invalid=${ie(i)}
1457
- aria-label=${ie(this.sdAriaLabel||void 0)}
1456
+ aria-invalid=${pe(i)}
1457
+ aria-label=${pe(this.sdAriaLabel||void 0)}
1458
1458
  ></textarea>
1459
- `,ne`
1460
- ${this.label?ne` <div class="floated-label-placeholder" aria-hidden="true">&nbsp;</div> `:F}
1459
+ `,be`
1460
+ ${this.label?be` <div class="floated-label-placeholder" aria-hidden="true">&nbsp;</div> `:Y}
1461
1461
  <div class="input-wrapper">
1462
1462
  <span class="prefix"><slot name="prefix"></slot></span>
1463
1463
  <div class="input-container" style="position:${this.shouldFloat()?"static":"relative"};">
1464
- ${this.label&&ne`
1464
+ ${this.label&&be`
1465
1465
  <label for="${this._inputId}" class="label ${this.shouldFloat()?"float":""}"
1466
1466
  >${this.label}</label
1467
1467
  >
1468
1468
  `}
1469
- ${e}
1469
+ ${t}
1470
1470
  </div>
1471
1471
  <span class="suffix"><slot name="suffix"></slot></span>
1472
1472
  </div>
@@ -1475,22 +1475,22 @@ function updateMandatory(combobox: ComboBox) {
1475
1475
  <div class="focused-line"></div>
1476
1476
  </div>
1477
1477
  <div class="validation-message-wrapper" aria-hidden="true">
1478
- ${(t||this.validationIconSrc)&&ne`
1478
+ ${(e||this.validationIconSrc)&&be`
1479
1479
  <sd-field-validation-message
1480
1480
  id=${this._validationMessageId}
1481
1481
  class="validation-message"
1482
- .message=${t}
1482
+ .message=${e}
1483
1483
  .icon=${this.validationIconSrc}
1484
1484
  .level=${this.validationLevel}
1485
1485
  >
1486
1486
  </sd-field-validation-message>
1487
1487
  `}
1488
1488
  </div>
1489
- `}updated(s){super.updated(s),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((s.has("min")||s.has("max")||s.has("pattern"))&&console.warn("min, max & pattern attributes are not supported with multiple rows configuration."),this.type!="text"&&console.warn(`type: ${this.type} is not supported with multiple rows configuration.`))}update(s){var e,t;if(super.update(s),s.has("validationMessage")&&(this.validationMessage?(e=this._internals)==null||e.setValidity({customError:!0},this.validationMessage):(t=this._internals)==null||t.setValidity(this.inputElement.validity,this.inputElement.validationMessage)),this._initialized&&s.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(s){this.dispatchEvent(new CustomEvent(`${s?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value),this.updateFormValidity()}updateFormValidity(){if(this.validationMessage==null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);const s=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",s==null?null:s.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(s){var e;(e=this._internals)==null||e.setFormValue(s)}formResetCallback(){this.value=this._initialValue}formDisabledCallback(s){this.effectiveDisabled=s||this.hasAttribute("disabled")}formAssociatedCallback(s){this._needsAutocompletedCheck=!0}formStateRestoreCallback(s,e){typeof s=="string"&&(this.value=s)}},ye.ID=ml,ye.DEFAULT_MAX_LENGTH=524288,ye.formAssociated=!0,ye.shadowRootOptions={...Ee.shadowRootOptions,delegatesFocus:sa},ye);W([v({type:String,reflect:!0})],H.prototype,"label",2);W([v({type:String,attribute:!0})],H.prototype,"validationMessage",2);W([v({type:String,attribute:!0})],H.prototype,"validationIconSrc",2);W([v({type:hi,attribute:!0,reflect:!0})],H.prototype,"validationLevel",2);W([v({type:String,hasChanged(s,e){return e!=null&&e!=s}})],H.prototype,"currentText",2);W([v({type:Boolean,attribute:!0})],H.prototype,"alwaysFloatLabel",2);W([v({type:Boolean,attribute:!0})],H.prototype,"autocompleted",2);W([v({type:Number,attribute:!0})],H.prototype,"rows",2);W([v({type:Boolean,reflect:!0,attribute:"effective-disabled"})],H.prototype,"effectiveDisabled",2);W([v({type:Boolean,reflect:!0,attribute:"extended-prefix"})],H.prototype,"extendedPrefix",2);W([v({type:String,reflect:!0})],H.prototype,"type",2);W([v({type:String,reflect:!0})],H.prototype,"placeholder",2);W([v({type:String,reflect:!0})],H.prototype,"sdAriaLabel",2);W([v({type:Number,reflect:!0})],H.prototype,"maxlength",2);W([v({type:Boolean,reflect:!0})],H.prototype,"readonly",2);W([v({type:Boolean,reflect:!0})],H.prototype,"required",2);W([v({type:String,reflect:!0})],H.prototype,"name",2);W([v({type:Boolean,reflect:!0})],H.prototype,"inactive",2);W([v({type:String,attribute:!0})],H.prototype,"autocomplete",2);W([v({type:String,attribute:!0})],H.prototype,"min",2);W([v({type:String,attribute:!0})],H.prototype,"max",2);W([v({type:String,attribute:!0})],H.prototype,"pattern",2);let oi=H;customElements.get(oi.ID)||customElements.define(oi.ID,oi);const ul={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},hl=s=>(...e)=>({_$litDirective$:s,values:e});class fl{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class qi extends fl{constructor(e){if(super(e),this.et=F,e.type!==ul.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===F||e==null)return this.ft=void 0,this.et=e;if(e===Ue)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}qi.directiveName="unsafeHTML",qi.resultType=1;const pl=hl(qi);let Ga=class{static showImage(e,t,i,a){let r;if(a||!(e instanceof HTMLImageElement)?r=n=>e.style.backgroundImage=this.prepareSrc(n):r=n=>e.src=n,r(i),t){const n=()=>{r(t)},o=new Image;o.addEventListener("load",n),o.src=t,o.complete&&(o.removeEventListener("load",n),n())}}static prepareSrc(e){return e?e.startsWith("url")?e:`url("${e}")`:null}};const gl=':host{display:block;contain:strict;height:50px}:host([selected]){background-color:#d3e6fa}:host(:not([selected]):hover),:host(:not([selected])[focused]){background-color:#e7f1fa}@media (forced-colors: active){:host([selected]){outline:4px solid}:host(:not([selected]):hover){outline:4px dotted}:host(:not([selected])[focused]){outline:4px dashed}}:host([enable-line-clamp]) .labels>:only-child{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.container{display:flex;height:100%;box-sizing:border-box}.container .level-indicator{width:7px;height:100%}.container .level-indicator.level-0{background-color:#a0c3ef}.container .level-indicator.level-1{background-color:#e7c374}.container .level-indicator.level-2{background-color:#bfd596}.container .level-indicator.level-3{background-color:#fd998d}.container .level-indicator.level-4{background-color:#c6e8f5}.container .level-indicator.level-5{background-color:#fde3a4}.container .level-indicator.level-6{background-color:#dcbfe0}.side-content{display:flex;align-items:center;flex-grow:0}.labels{display:flex;flex-direction:column;justify-content:center;flex:1 1 0px;height:100%;line-height:normal;overflow:hidden;padding:var(--sd-list-item-label-content-padding, 0 8px)}.caption,.description{width:100%;font-family:var(--sd-list-item-font-family, "Segoe UI", "Lucida Sans", Arial, sans-serif);font-style:normal;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-user-select:none;user-select:none;text-decoration:var(--sd-list-item-text-decoration, inherit)}.caption em,.description em{font-weight:bolder}.caption{font-size:var(--sd-list-item-caption-font-size, 16px);color:var(--sd-list-item-caption-text-color, #111);font-weight:var(--sd-list-item-caption-font-weight, normal)}.description{font-size:var(--sd-list-item-description-font-size, 13px);color:var(--sd-list-item-description-text-color, #767676);font-weight:var(--sd-list-item-description-font-weight, normal)}.icon-wrapper{width:var(--sd-list-item-icon-wrapper-width, 45px);height:100%;display:flex;align-items:center;justify-content:center}.icon-wrapper .icon{min-height:var(--sd-list-item-icon-size, 24px);min-width:var(--sd-list-item-icon-size, 24px);background-repeat:no-repeat;background-position:center;background-size:cover}';var Nl=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,se=(s,e,t,i)=>{for(var a=i>1?void 0:i?bl(e,t):e,r=s.length-1,n;r>=0;r--)(n=s[r])&&(a=(i?n(e,t,a):n(a))||a);return i&&a&&Nl(e,t,a),a},ze;const Q=(ze=class extends Ee{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[Tt`
1490
- ${ht(gl)}
1491
- `]}render(){return ne`
1489
+ `}updated(t){super.updated(t),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((t.has("min")||t.has("max")||t.has("pattern"))&&console.warn("min, max & pattern attributes are not supported with multiple rows configuration."),this.type!="text"&&console.warn(`type: ${this.type} is not supported with multiple rows configuration.`))}update(t){if(super.update(t),t.has("validationMessage")&&(this.validationMessage?this._internals?.setValidity({customError:!0},this.validationMessage):this._internals?.setValidity(this.inputElement.validity,this.inputElement.validationMessage)),this._initialized&&t.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(t){this.dispatchEvent(new CustomEvent(`${t?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value),this.updateFormValidity()}updateFormValidity(){if(this.validationMessage==null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);const t=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",t==null?null:t.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(t){this._internals?.setFormValue(t)}formResetCallback(){this.value=this._initialValue}formDisabledCallback(t){this.effectiveDisabled=t||this.hasAttribute("disabled")}formAssociatedCallback(t){this._needsAutocompletedCheck=!0}formStateRestoreCallback(t,e){typeof t=="string"&&(this.value=t)}},Te.ID=pl,Te.DEFAULT_MAX_LENGTH=524288,Te.formAssociated=!0,Te.shadowRootOptions={...We.shadowRootOptions,delegatesFocus:ga},Te);ie([D({type:String,reflect:!0})],ee.prototype,"label");ie([D({type:String,attribute:!0})],ee.prototype,"validationMessage");ie([D({type:String,attribute:!0})],ee.prototype,"validationIconSrc");ie([D({type:gi,attribute:!0,reflect:!0})],ee.prototype,"validationLevel");ie([D({type:String,hasChanged(t,e){return e!=null&&e!=t}})],ee.prototype,"currentText");ie([D({type:Boolean,attribute:!0})],ee.prototype,"alwaysFloatLabel");ie([D({type:Boolean,attribute:!0})],ee.prototype,"autocompleted");ie([D({type:Number,attribute:!0})],ee.prototype,"rows");ie([D({type:Boolean,reflect:!0,attribute:"effective-disabled"})],ee.prototype,"effectiveDisabled");ie([D({type:Boolean,reflect:!0,attribute:"extended-prefix"})],ee.prototype,"extendedPrefix");ie([D({type:String,reflect:!0})],ee.prototype,"type");ie([D({type:String,reflect:!0})],ee.prototype,"placeholder");ie([D({type:String,reflect:!0})],ee.prototype,"sdAriaLabel");ie([D({type:Number,reflect:!0})],ee.prototype,"maxlength");ie([D({type:Boolean,reflect:!0})],ee.prototype,"readonly");ie([D({type:Boolean,reflect:!0})],ee.prototype,"required");ie([D({type:String,reflect:!0})],ee.prototype,"name");ie([D({type:Boolean,reflect:!0})],ee.prototype,"inactive");ie([D({type:String,attribute:!0})],ee.prototype,"autocomplete");ie([D({type:String,attribute:!0})],ee.prototype,"min");ie([D({type:String,attribute:!0})],ee.prototype,"max");ie([D({type:String,attribute:!0})],ee.prototype,"pattern");let ui=ee;customElements.get(ui.ID)||customElements.define(ui.ID,ui);const Nl={CHILD:2},bl=t=>(...e)=>({_$litDirective$:t,values:e});class yl{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,i,a){this._$Ct=e,this._$AM=i,this._$Ci=a}_$AS(e,i){return this.update(e,i)}update(e,i){return this.render(...i)}}class ps extends yl{constructor(e){if(super(e),this.it=Y,e.type!==Nl.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Y||e==null)return this._t=void 0,this.it=e;if(e===dt)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const i=[e];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}ps.directiveName="unsafeHTML",ps.resultType=1;const vl=bl(ps);class lr{static showImage(e,i,a,s){let n;if(s||!(e instanceof HTMLImageElement)?n=o=>e.style.backgroundImage=this.prepareSrc(o):n=o=>e.src=o,n(a),i){const o=()=>{n(i)},d=new Image;d.addEventListener("load",o),d.src=i,d.complete&&(d.removeEventListener("load",o),o())}}static prepareSrc(e){return e?e.startsWith("url")?e:`url("${e}")`:null}}const xl=':host{display:block;contain:strict;height:50px}:host([selected]){background-color:#d3e6fa}:host(:not([selected]):hover),:host(:not([selected])[focused]){background-color:#e7f1fa}@media (forced-colors: active){:host([selected]){outline:4px solid}:host(:not([selected]):hover){outline:4px dotted}:host(:not([selected])[focused]){outline:4px dashed}}:host([enable-line-clamp]) .labels>:only-child{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow-wrap:break-word}.container{display:flex;height:100%;box-sizing:border-box}.container .level-indicator{width:7px;height:100%}.container .level-indicator.level-0{background-color:#a0c3ef}.container .level-indicator.level-1{background-color:#e7c374}.container .level-indicator.level-2{background-color:#bfd596}.container .level-indicator.level-3{background-color:#fd998d}.container .level-indicator.level-4{background-color:#c6e8f5}.container .level-indicator.level-5{background-color:#fde3a4}.container .level-indicator.level-6{background-color:#dcbfe0}.side-content{display:flex;align-items:center;flex-grow:0}.labels{display:flex;flex-direction:column;justify-content:center;flex:1 1 0px;height:100%;line-height:normal;overflow:hidden;padding:var(--sd-list-item-label-content-padding, 0 8px)}.caption,.description{width:100%;font-family:var(--sd-list-item-font-family, "Segoe UI", "Lucida Sans", Arial, sans-serif);font-style:normal;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-user-select:none;user-select:none;text-decoration:var(--sd-list-item-text-decoration, inherit)}.caption em,.description em{font-weight:bolder}.caption{font-size:var(--sd-list-item-caption-font-size, 16px);color:var(--sd-list-item-caption-text-color, #111);font-weight:var(--sd-list-item-caption-font-weight, normal)}.description{font-size:var(--sd-list-item-description-font-size, 13px);color:var(--sd-list-item-description-text-color, #767676);font-weight:var(--sd-list-item-description-font-weight, normal)}.icon-wrapper{width:var(--sd-list-item-icon-wrapper-width, 45px);height:100%;display:flex;align-items:center;justify-content:center}.icon-wrapper .icon{min-height:var(--sd-list-item-icon-size, 24px);min-width:var(--sd-list-item-icon-size, 24px);background-repeat:no-repeat;background-position:center;background-size:cover}';var wl=Object.defineProperty,Ne=(t,e,i,a)=>{for(var s=void 0,n=t.length-1,o;n>=0;n--)(o=t[n])&&(s=o(e,i,s)||s);return s&&wl(e,i,s),s},ot;const he=(ot=class extends We{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[Wt`
1490
+ ${At(xl)}
1491
+ `]}render(){return be`
1492
1492
  <div class="container">
1493
- ${this.getLevelIndicators().map((s,e)=>ne` <div class="level-indicator level-${e}"></div> `)}
1493
+ ${this.getLevelIndicators().map((t,e)=>be` <div class="level-indicator level-${e}"></div> `)}
1494
1494
  <div class="side-content">
1495
1495
  <slot name="left-content"></slot>
1496
1496
  ${this.renderIcon()}
@@ -1503,70 +1503,73 @@ function updateMandatory(combobox: ComboBox) {
1503
1503
  <slot name="right-content"></slot>
1504
1504
  </div>
1505
1505
  </div>
1506
- `}renderIcon(){if(this.icon||this.iconPlaceholder){const s=this.iconBackgroundColor!=null?`background-color:${this.iconBackgroundColor}`:void 0;return ne`
1506
+ `}renderIcon(){if(this.icon||this.iconPlaceholder){const t=this.iconBackgroundColor!=null?`background-color:${this.iconBackgroundColor}`:void 0;return be`
1507
1507
  <div
1508
1508
  class="icon-wrapper"
1509
1509
  @pointerdown="${this.handleIconClick}"
1510
- style="${ie(s)}"
1510
+ style="${pe(t)}"
1511
1511
  role="img"
1512
- aria-label="${ie(this.iconAttrAriaLabel)}"
1513
- title="${ie(this.iconAttrTitle)}"
1512
+ aria-label="${pe(this.iconAttrAriaLabel)}"
1513
+ title="${pe(this.iconAttrTitle)}"
1514
1514
  >
1515
1515
  <div class="icon"></div>
1516
1516
  </div>
1517
- `}return F}renderLabel(s,e,t){return e?ne`
1518
- <div class="${s}" title="${ie(t)}">
1519
- ${this.contentMode==="html"?pl(e):e}
1517
+ `}return Y}renderLabel(t,e,i){return e?be`
1518
+ <div class="${t}" title="${pe(i)}">
1519
+ ${this.contentMode==="html"?vl(e):e}
1520
1520
  </div>
1521
- `:F}updated(s){super.updated(s),(s.has("icon")||s.has("iconPlaceholder"))&&(this.icon||this.iconPlaceholder)&&Ga.showImage(this.shadowRoot.querySelector(".icon"),this.icon,this.iconPlaceholder),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 i=this.shadowRoot.querySelector(".description");return i&&(e=Math.max(e,i.scrollWidth-i.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):[]}},ze.ID="sd-list-item",ze.ensureDefined=()=>{customElements.get(ze.ID)||customElements.define(ze.ID,ze)},ze);se([v({type:String})],Q.prototype,"caption",2);se([v({type:String})],Q.prototype,"description",2);se([v({type:Boolean})],Q.prototype,"selected",2);se([v({type:String})],Q.prototype,"icon",2);se([v({type:String})],Q.prototype,"iconBackgroundColor",2);se([v({type:String})],Q.prototype,"iconPlaceholder",2);se([v({type:Number})],Q.prototype,"level",2);se([v()],Q.prototype,"contentMode",2);se([v({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],Q.prototype,"enableLineClamp",2);se([v({converter:{fromAttribute:s=>s=="true",toAttribute:s=>s},reflect:!0,attribute:"aria-disabled"})],Q.prototype,"disabled",2);se([v({type:String,attribute:"icon-attr-aria-label"})],Q.prototype,"iconAttrAriaLabel",2);se([v({type:String,reflect:!0})],Q.prototype,"role",2);se([v({type:String,attribute:"caption-attr-title"})],Q.prototype,"captionAttrTitle",2);se([v({type:String,attribute:"description-attr-title"})],Q.prototype,"descriptionAttrTitle",2);se([v({type:String,attribute:"icon-attr-title"})],Q.prototype,"iconAttrTitle",2);let tt=Q;const Wa=(s,e)=>{const t=document.createElement(tt.ID);if(s){if(t.caption=s.caption,t.description=s.description,t.icon=s.icon,t.iconBackgroundColor=s.iconBackgroundColor,t.iconPlaceholder=s.iconPlaceholder,t.level=s.level,t.disabled=s.disabled,s.contentMode&&(t.contentMode=s.contentMode),s.leftContentGenerator){const i=s.leftContentGenerator(s,t);i&&(i.slot="left-content",t.appendChild(i))}if(s.rightContentGenerator){const i=s.rightContentGenerator(s,t);i&&(i.slot="right-content",t.appendChild(i))}}return t};tt.ensureDefined();class vl{getOffsetForIndexAndAlignment(e,t,i,a,r,n){const o=Math.max(0,n*a),l=Math.min(o,e*a),c=Math.max(0,e*a-r+a);switch(t){case"start":return l;case"end":return c;case"center":{const m=Math.round(c+(l-c)/2);return m<Math.ceil(r/2)?0:m>o+Math.floor(r/2)?o:m}case"auto":default:return i>=c&&i<=l?i:i<c?c:l}}debounce(e){let t;return(...i)=>{t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{e(...i),t=null})}}}const yl=new vl;class xl{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.handleListDataRequest=i=>{const{startIndex:a,stopIndex:r}=i.detail;this._lastRequestedFirstIndex=a,this._lastRequestedLastIndex=r,this._list.items=this._itemCache.slice(a,r+1),!this.finalSizeIsKnown&&this._lastLoadedIndex<r+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("data-request",this.handleListDataRequest),this._list=e,e.itemCount=this.itemCount,e.addEventListener("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")}}const wl=":host{display:block;position:relative;contain:layout}:host(:focus){outline:none}:host(:focus-visible) ::slotted([focused]){box-shadow:0 0 0 1px #1467ba inset}.container{width:100%}.container>::slotted(*){width:100%;position:absolute;box-sizing:border-box}.container>::slotted(:not([last])){border-bottom:1px solid #d9d9d9}";var _l=Object.defineProperty,Sl=Object.getOwnPropertyDescriptor,Pe=(s,e,t,i)=>{for(var a=i>1?void 0:i?Sl(e,t):e,r=s.length-1,n;r>=0;r--)(n=s[r])&&(a=(i?n(e,t,a):n(a))||a);return i&&a&&_l(e,t,a),a},xt=(s=>(s.TriggerOnly="trigger-only",s.Single="single",s.Multi="multi",s))(xt||{});let Cl=0;var Me;const $e=(Me=class extends Ee{constructor(){super(),this.items=[],this.selectionType="trigger-only",this.id=Me.ID+"_"+Cl++,this.role="listbox",this.itemGenerator=Wa,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 s=this._lastRenderedScrollTop-this._lastKnownScrollTop;Math.abs(s)>=this.itemHeight&&(this._lastRenderedScrollTop=this._lastKnownScrollTop,this.requestUpdate())},this.handleKeyDown=s=>{let e=!0;switch(s.key){case"Down":case"ArrowDown":this.focusIndex=this.normalizeIndex(this.focusIndex+1);break;case"Up":case"ArrowUp":this.focusIndex=this.normalizeIndex(this.focusIndex-1);break;case"Enter":this.handleSelection(this.focusIndex,s.metaKey||s.ctrlKey);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:e=!1;break}e&&(s.preventDefault(),s.stopPropagation())},this._resizeObserver=new ResizeObserver(()=>{this._lastKnownHeight!==this.offsetHeight&&(this._lastKnownHeight=this.offsetHeight,this.requestUpdate())})}get focusTarget(){return this.hasAttribute("focus-target")}set focusTarget(s){this.toggleAttribute("focus-target",s)}get focusIndex(){return this._focusIndex}set focusIndex(s){if(s>=-1&&s<this.itemCount){const e=this._focusIndex;this._focusIndex=s,(s<=this._firstVisibleIndex||this._lastVisibleIndex<=s)&&this.scrollToItem(s),e!=s&&(s==-1&&this.removeAttribute("aria-activedescendant"),this.requestUpdate("focusIndex",e))}}get selectedIndices(){return this._selectedIndices}set selectedIndices(s){s?this._selectedIndices=s.map(e=>Number(e)):this._selectedIndices=[],this.requestUpdate("selectedIndices")}scrollToItem(s,e="auto"){this.scrollTop=yl.getOffsetForIndexAndAlignment(this.normalizeIndex(s),e,this.scrollTop,this.itemHeight,this.height,this.itemCount),this._lastKnownScrollTop=this.scrollTop}getListItem(s){return!this.shadowRoot||s<this._firstVisibleIndex||this._lastVisibleIndex<s?null:this.querySelector(`[item-index="${s}"]`)}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this),this.scrollTop!==this._lastKnownScrollTop&&(this.scrollTop=this._lastKnownScrollTop,this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.disconnect()}firstUpdated(s){super.firstUpdated(s),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]),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 s=this.getListItem(this.focusIndex);s&&(this.focusTarget||document.activeElement==this?(s.setAttribute("focused",""),this.setAttribute("aria-activedescendant",s.id)):(s.removeAttribute("focused"),this.removeAttribute("aria-activedescendant")))}static get styles(){return[Tt`
1522
- ${ht(wl)}
1523
- `]}render(){return this.updateItemsRenderData(),ne`
1521
+ `:Y}updated(t){super.updated(t),(t.has("icon")||t.has("iconPlaceholder"))&&(this.icon||this.iconPlaceholder)&&lr.showImage(this.shadowRoot.querySelector(".icon"),this.icon,this.iconPlaceholder),t.has("selected")&&this.setAttribute("aria-selected",String(this.selected))}get missingWidthForTexts(){const t=this.enableLineClamp;this.removeAttribute("enable-line-clamp");let e=0;const i=this.shadowRoot.querySelector(".caption");i&&(e+=i.scrollWidth-i.clientWidth);const a=this.shadowRoot.querySelector(".description");return a&&(e=Math.max(e,a.scrollWidth-a.clientWidth)),e>0&&e++,t&&this.setAttribute("enable-line-clamp",""),e}handleIconClick(t){!this.disabled&&!this.dispatchEvent(new PointerEvent("list-item-icon-click",t))&&t.preventDefault()}getLevelIndicators(){return this.level?Array(Number(this.level)).fill(null):[]}},ot.ID="sd-list-item",ot.ensureDefined=()=>{customElements.get(ot.ID)||customElements.define(ot.ID,ot)},ot);Ne([D({type:String})],he.prototype,"caption");Ne([D({type:String})],he.prototype,"description");Ne([D({type:Boolean})],he.prototype,"selected");Ne([D({type:String})],he.prototype,"icon");Ne([D({type:String})],he.prototype,"iconBackgroundColor");Ne([D({type:String})],he.prototype,"iconPlaceholder");Ne([D({type:Number})],he.prototype,"level");Ne([D()],he.prototype,"contentMode");Ne([D({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],he.prototype,"enableLineClamp");Ne([D({converter:{fromAttribute:t=>t=="true",toAttribute:t=>t},reflect:!0,attribute:"aria-disabled"})],he.prototype,"disabled");Ne([D({type:String,attribute:"icon-attr-aria-label"})],he.prototype,"iconAttrAriaLabel");Ne([D({type:String,reflect:!0})],he.prototype,"role");Ne([D({type:String,attribute:"caption-attr-title"})],he.prototype,"captionAttrTitle");Ne([D({type:String,attribute:"description-attr-title"})],he.prototype,"descriptionAttrTitle");Ne([D({type:String,attribute:"icon-attr-title"})],he.prototype,"iconAttrTitle");let yt=he;const cr=(t,e)=>{const i=document.createElement(yt.ID);if(t){if(i.caption=t.caption,i.description=t.description,i.icon=t.icon,i.iconBackgroundColor=t.iconBackgroundColor,i.iconPlaceholder=t.iconPlaceholder,i.level=t.level,i.disabled=t.disabled,t.contentMode&&(i.contentMode=t.contentMode),t.leftContentGenerator){const a=t.leftContentGenerator(t,i);a&&(a.slot="left-content",i.appendChild(a))}if(t.rightContentGenerator){const a=t.rightContentGenerator(t,i);a&&(a.slot="right-content",i.appendChild(a))}}return i};yt.ensureDefined();class _l{getOffsetForIndexAndAlignment(e,i,a,s,n,o){const d=Math.max(0,o*s),h=Math.min(d,e*s),u=Math.max(0,e*s-n+s);switch(i){case"start":return h;case"end":return u;case"center":{const r=Math.round(u+(h-u)/2);return r<Math.ceil(n/2)?0:r>d+Math.floor(n/2)?d:r}case"auto":default:return a>=u&&a<=h?a:a<u?u:h}}debounce(e){let i;return(...a)=>{i&&window.cancelAnimationFrame(i),i=window.requestAnimationFrame(()=>{e(...a),i=null})}}}const Sl=new _l;class Cl{constructor(e=100,i=5){this.pageSize=e,this.preloadedItemsCount=i,this._finalSizeIsKnown=!1,this._itemCache=[],this._lastRequestedFirstIndex=0,this._lastRequestedLastIndex=0,this._lastLoadedIndex=0,this.handleListDataRequest=a=>{const{startIndex:s,stopIndex:n}=a.detail;this._lastRequestedFirstIndex=s,this._lastRequestedLastIndex=n,this._list.items=this._itemCache.slice(s,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("data-request",this.handleListDataRequest),this._list=e,e.itemCount=this.itemCount,e.addEventListener("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")}}const Al=":host{display:block;position:relative;contain:layout}:host(:focus){outline:none}:host(:focus-visible) ::slotted([focused]){box-shadow:0 0 0 1px #1467ba inset}.container{width:100%}.container>::slotted(*){width:100%;position:absolute;box-sizing:border-box}.container>::slotted(:not([last])){border-bottom:1px solid #d9d9d9}";var El=Object.defineProperty,kl=Object.getOwnPropertyDescriptor,tt=(t,e,i,a)=>{for(var s=a>1?void 0:a?kl(e,i):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(s=(a?o(e,i,s):o(s))||s);return a&&s&&El(e,i,s),s},Pt=(t=>(t.TriggerOnly="trigger-only",t.Single="single",t.Multi="multi",t))(Pt||{});let Ol=0;var Ye;const Ke=(Ye=class extends We{constructor(){super(),this.items=[],this.selectionType="trigger-only",this.id=Ye.ID+"_"+Ol++,this.role="listbox",this.itemGenerator=cr,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 t=this._lastRenderedScrollTop-this._lastKnownScrollTop;Math.abs(t)>=this.itemHeight&&(this._lastRenderedScrollTop=this._lastKnownScrollTop,this.requestUpdate())},this.handleKeyDown=t=>{let e=!0;switch(t.key){case"Down":case"ArrowDown":this.focusIndex=this.normalizeIndex(this.focusIndex+1);break;case"Up":case"ArrowUp":this.focusIndex=this.normalizeIndex(this.focusIndex-1);break;case"Enter":this.handleSelection(this.focusIndex,t.metaKey||t.ctrlKey);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:e=!1;break}e&&(t.preventDefault(),t.stopPropagation())},this._resizeObserver=new ResizeObserver(()=>{this._lastKnownHeight!==this.offsetHeight&&(this._lastKnownHeight=this.offsetHeight,this.requestUpdate())})}get focusTarget(){return this.hasAttribute("focus-target")}set focusTarget(t){this.toggleAttribute("focus-target",t)}get focusIndex(){return this._focusIndex}set focusIndex(t){if(t>=-1&&t<this.itemCount){const e=this._focusIndex;this._focusIndex=t,(t<=this._firstVisibleIndex||this._lastVisibleIndex<=t)&&this.scrollToItem(t),e!=t&&(t==-1&&this.removeAttribute("aria-activedescendant"),this.requestUpdate("focusIndex",e))}}get selectedIndices(){return this._selectedIndices}set selectedIndices(t){t?this._selectedIndices=t.map(e=>Number(e)):this._selectedIndices=[],this.requestUpdate("selectedIndices")}scrollToItem(t,e="auto"){this.scrollTop=Sl.getOffsetForIndexAndAlignment(this.normalizeIndex(t),e,this.scrollTop,this.itemHeight,this.height,this.itemCount),this._lastKnownScrollTop=this.scrollTop}getListItem(t){return!this.shadowRoot||t<this._firstVisibleIndex||this._lastVisibleIndex<t?null:this.querySelector(`[item-index="${t}"]`)}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this),this.scrollTop!==this._lastKnownScrollTop&&(this.scrollTop=this._lastKnownScrollTop,this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.disconnect()}firstUpdated(t){super.firstUpdated(t),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]),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 t=this.getListItem(this.focusIndex);t&&(this.focusTarget||document.activeElement==this?(t.setAttribute("focused",""),this.setAttribute("aria-activedescendant",t.id)):(t.removeAttribute("focused"),this.removeAttribute("aria-activedescendant")))}static get styles(){return[Wt`
1522
+ ${At(Al)}
1523
+ `]}render(){return this.updateItemsRenderData(),be`
1524
1524
  <div class="container" style="height: ${this.itemCount*this.itemHeight}px">
1525
1525
  <slot name="items"></slot>
1526
1526
  </div>
1527
- `}updated(s){if(super.updated(s),this._lastRenderedScrollTop=this._lastKnownScrollTop,this.updateItems(),(this._increaseWidthOnNextRenderIfNeeded||this._reachedMaxWidth)&&this._firstVisibleIndex<this._lastVisibleIndex)if(this.querySelector("[item-index]"))this.adjustWidthIfNeeded();else{const e=new MutationObserver(()=>{this.adjustWidthIfNeeded(),e.disconnect()});e.observe(this)}}adjustWidthIfNeeded(){this._increaseWidthOnNextRenderIfNeeded?(this._increaseWidthOnNextRenderIfNeeded=!1,window.requestAnimationFrame(()=>{const s=Number.parseInt(getComputedStyle(this).maxWidth)-this.offsetWidth;if(s==0)this._reachedMaxWidth=!0,this.enableLineClampOnItemsIfNeeded();else{this._reachedMaxWidth=!1;const e=[...this.querySelectorAll("[item-index]")].map(i=>{if(i instanceof tt){i.enableLineClamp=!1;const a=i.missingWidthForTexts;return a>s&&(i.enableLineClamp=!0),a}}),t=Math.max(...e);t>0&&(this.style.width=`${this.offsetWidth+t}px`)}})):this._reachedMaxWidth&&this.enableLineClampOnItemsIfNeeded()}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[item-index]").forEach(s=>{s instanceof tt&&(s.enableLineClamp=s.enableLineClamp||s.missingWidthForTexts>0)})}increaseWidthOnNextRenderIfNeeded(){this._increaseWidthOnNextRenderIfNeeded=!0}updateItems(){const s=[...this.querySelectorAll("[item-index]")],e=new Map,t=document.createDocumentFragment();for(const i of this._itemsRenderData){const a=this.renderItem(i);a.parentElement||t.appendChild(a),e.set(i.dataHash,a);const r=s.indexOf(a);r!==-1&&s.splice(r,1)}this.appendChild(t);for(const i of s)i instanceof tt&&(i.enableLineClamp=!1),this.removeChild(i);e.forEach((i,a)=>{this._elementCache.set(a,i)})}renderItem({index:s,top:e,dataHash:t,data:i}){let a;return i?this._elementCache.has(t)?(a=this._elementCache.get(t),this._elementCache.delete(t)):(a=this.itemGenerator(i,s),a.setAttribute("slot","items")):(a=document.createElement("div"),a.setAttribute("placeholder-item",""),a.setAttribute("slot","items")),Object.assign(a.style,{transform:`translateY(${e}px)`,height:`${this.itemHeight}px`}),a.setAttribute("item-index",s.toString()),a.setAttribute("aria-setsize",String(this.finalSizeIsKnown?this.itemCount:-1)),a.setAttribute("aria-posinset",String(s+1)),(!a.id||a.id.startsWith(this.id+"_item_"))&&(a.id=this.id+"_item_"+s),this.itemCount-1==s?a.setAttribute("last",""):a.removeAttribute("last"),this.updateSelectedAttribute(s,a),this.updateFocusedAttribute(s,a),a}updateFocusedAttribute(s,e){this.focusIndex==s&&(this.focusTarget||document.activeElement==this)?(e.setAttribute("focused",""),this.setAttribute("aria-activedescendant",e.id)):e.removeAttribute("focused")}updateSelectedAttribute(s,e){const t=this.selectedIndices.indexOf(s)!==-1;t?e.setAttribute("selected",""):e.removeAttribute("selected"),e.setAttribute("aria-selected",String(t))}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 s=this.normalizeIndex(this._firstVisibleIndex-2),e=this.normalizeIndex(this._lastVisibleIndex+2);this.requestData(s,e);for(let t=s;t<=e;t++){const i=t-s,a=this.items[i];let r;a?r=JSON.stringify(a):r=`placeholder-${i}`,this._itemsRenderData.push({index:t,top:this.itemHeight*t,physicalIndex:i,dataHash:r,data:a})}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0}normalizeIndex(s){return Math.max(0,Math.min(s,this.itemCount-1))}get height(){return this.offsetHeight}requestData(s,e){!Number.isNaN(s)&&!Number.isNaN(e)&&this.dispatchEvent(new CustomEvent("data-request",{detail:{startIndex:s,stopIndex:e}}))}handleSelection(s,e){if(s<0||this.itemCount<=s)return;const t=this.getListItem(s);if(t.getAttribute("aria-disabled")=="true"||t.hasAttribute("disabled"))return;let i=!0;if(this.selectionType!=="trigger-only"){const a=this.selectedIndices.indexOf(s);i=a==-1,i?this.selectionType==="single"?this.selectedIndices=[s]:this.selectedIndices.push(s):this.selectedIndices.splice(a,1),this.requestUpdate("selectedIndices")}this.focusIndex=s,this.dispatchSelectionEvent(s,i,e)}dispatchSelectionEvent(s,e,t){this.dispatchEvent(new CustomEvent("selection",{detail:{index:s,selected:e,hasModifier:t}}))}handleClick(s){const e=s.composedPath().find(t=>t.hasAttribute&&t.hasAttribute("item-index"));if(e){const t=parseInt(e.getAttribute("item-index"));if(Number.isInteger(t)){if(s.button==0||s.button==1){const i=s.type=="auxclick"&&s.button==1||s.metaKey||s.ctrlKey;this.handleSelection(t,i)}this.focusIndex=t}}}},Me.ID="sd-virtual-list",Me.ensureDefined=()=>{tt.ensureDefined(),customElements.get(Me.ID)||customElements.define(Me.ID,Me)},Me);Pe([v({type:Number,attribute:"item-height",reflect:!0})],$e.prototype,"itemHeight",2);Pe([v({type:Number})],$e.prototype,"itemCount",2);Pe([v({type:Array,attribute:!1})],$e.prototype,"items",2);Pe([v({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],$e.prototype,"selectionType",2);Pe([v({type:String,attribute:!0,reflect:!0})],$e.prototype,"id",2);Pe([v({type:String,reflect:!0})],$e.prototype,"role",2);Pe([v({type:Number,attribute:"focus-index",reflect:!0})],$e.prototype,"focusIndex",1);Pe([v({type:Array,attribute:!1})],$e.prototype,"selectedIndices",1);let Ji=$e;Ji.ensureDefined();const El=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, absolute);left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;top:0;right:0;bottom:0;left:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}:host(:focus){outline:none}.suffix ::slotted(.clear-button),.suffix ::slotted(.toggle-button){cursor:pointer;width:16px;height:32px;padding:0 8px;margin-top:-8px;margin-bottom:-8px;fill:#666;outline:none;flex-shrink:0}.suffix ::slotted(.toggle-button){transition:transform .2s}:host([opened]) .suffix ::slotted(.toggle-button){transform:rotate(180deg)}:host([disabled]) .suffix ::slotted(.clear-button),:host([disabled]) .suffix ::slotted(.toggle-button){display:none!important}.prefix ::slotted(.icon-wrapper){width:32px;height:32px;padding-right:4px;margin-top:-8px;margin-bottom:-8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}:host(:not([has-value])) .suffix ::slotted(.clear-button),:host([null-setting-disallowed]) .suffix ::slotted(.clear-button){display:none!important}:host(:not([allow-custom-value]):not([trigger-only])) .input{caret-color:transparent}:host(:not([allow-custom-value]):not([disabled])) .input{cursor:pointer}#default-slot{display:none}",Al=`<svg xmlns="http://www.w3.org/2000/svg" class="toggle-button" slot="suffix" viewBox="0 0 16 16">\r
1527
+ `}updated(t){if(super.updated(t),this._lastRenderedScrollTop=this._lastKnownScrollTop,this.updateItems(),(this._increaseWidthOnNextRenderIfNeeded||this._reachedMaxWidth)&&this._firstVisibleIndex<this._lastVisibleIndex)if(this.querySelector("[item-index]"))this.adjustWidthIfNeeded();else{const e=new MutationObserver(()=>{this.adjustWidthIfNeeded(),e.disconnect()});e.observe(this)}}adjustWidthIfNeeded(){this._increaseWidthOnNextRenderIfNeeded?(this._increaseWidthOnNextRenderIfNeeded=!1,window.requestAnimationFrame(()=>{const t=Number.parseInt(getComputedStyle(this).maxWidth)-this.offsetWidth;if(t==0)this._reachedMaxWidth=!0,this.enableLineClampOnItemsIfNeeded();else{this._reachedMaxWidth=!1;const e=[...this.querySelectorAll("[item-index]")].map(a=>{if(a instanceof yt){a.enableLineClamp=!1;const s=a.missingWidthForTexts;return s>t&&(a.enableLineClamp=!0),s}}),i=Math.max(...e);i>0&&(this.style.width=`${this.offsetWidth+i}px`)}})):this._reachedMaxWidth&&this.enableLineClampOnItemsIfNeeded()}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[item-index]").forEach(t=>{t instanceof yt&&(t.enableLineClamp=t.enableLineClamp||t.missingWidthForTexts>0)})}increaseWidthOnNextRenderIfNeeded(){this._increaseWidthOnNextRenderIfNeeded=!0}updateItems(){const t=[...this.querySelectorAll("[item-index]")],e=new Map,i=document.createDocumentFragment();for(const a of this._itemsRenderData){const s=this.renderItem(a);s.parentElement||i.appendChild(s),e.set(a.dataHash,s);const n=t.indexOf(s);n!==-1&&t.splice(n,1)}this.appendChild(i);for(const a of t)a instanceof yt&&(a.enableLineClamp=!1),this.removeChild(a);e.forEach((a,s)=>{this._elementCache.set(s,a)})}renderItem({index:t,top:e,dataHash:i,data:a}){let s;return a?this._elementCache.has(i)?(s=this._elementCache.get(i),this._elementCache.delete(i)):(s=this.itemGenerator(a,t),s.setAttribute("slot","items")):(s=document.createElement("div"),s.setAttribute("placeholder-item",""),s.setAttribute("slot","items")),Object.assign(s.style,{transform:`translateY(${e}px)`,height:`${this.itemHeight}px`}),s.setAttribute("item-index",t.toString()),s.setAttribute("aria-setsize",String(this.finalSizeIsKnown?this.itemCount:-1)),s.setAttribute("aria-posinset",String(t+1)),(!s.id||s.id.startsWith(this.id+"_item_"))&&(s.id=this.id+"_item_"+t),this.itemCount-1==t?s.setAttribute("last",""):s.removeAttribute("last"),this.updateSelectedAttribute(t,s),this.updateFocusedAttribute(t,s),s}updateFocusedAttribute(t,e){this.focusIndex==t&&(this.focusTarget||document.activeElement==this)?(e.setAttribute("focused",""),this.setAttribute("aria-activedescendant",e.id)):e.removeAttribute("focused")}updateSelectedAttribute(t,e){const i=this.selectedIndices.indexOf(t)!==-1;i?e.setAttribute("selected",""):e.removeAttribute("selected"),e.setAttribute("aria-selected",String(i))}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 t=this.normalizeIndex(this._firstVisibleIndex-2),e=this.normalizeIndex(this._lastVisibleIndex+2);this.requestData(t,e);for(let i=t;i<=e;i++){const a=i-t,s=this.items[a];let n;s?n=JSON.stringify(s):n=`placeholder-${a}`,this._itemsRenderData.push({index:i,top:this.itemHeight*i,physicalIndex:a,dataHash:n,data:s})}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0}normalizeIndex(t){return Math.max(0,Math.min(t,this.itemCount-1))}get height(){return this.offsetHeight}requestData(t,e){!Number.isNaN(t)&&!Number.isNaN(e)&&this.dispatchEvent(new CustomEvent("data-request",{detail:{startIndex:t,stopIndex:e}}))}handleSelection(t,e){if(t<0||this.itemCount<=t)return;const i=this.getListItem(t);if(i.getAttribute("aria-disabled")=="true"||i.hasAttribute("disabled"))return;let a=!0;if(this.selectionType!=="trigger-only"){const s=this.selectedIndices.indexOf(t);a=s==-1,a?this.selectionType==="single"?this.selectedIndices=[t]:this.selectedIndices.push(t):this.selectedIndices.splice(s,1),this.requestUpdate("selectedIndices")}this.focusIndex=t,this.dispatchSelectionEvent(t,a,e)}dispatchSelectionEvent(t,e,i){this.dispatchEvent(new CustomEvent("selection",{detail:{index:t,selected:e,hasModifier:i}}))}handleClick(t){const e=t.composedPath().find(i=>i.hasAttribute&&i.hasAttribute("item-index"));if(e){const i=parseInt(e.getAttribute("item-index"));if(Number.isInteger(i)){if(t.button==0||t.button==1){const a=t.type=="auxclick"&&t.button==1||t.metaKey||t.ctrlKey;this.handleSelection(i,a)}this.focusIndex=i}}}},Ye.ID="sd-virtual-list",Ye.ensureDefined=()=>{yt.ensureDefined(),customElements.get(Ye.ID)||customElements.define(Ye.ID,Ye)},Ye);tt([D({type:Number,attribute:"item-height",reflect:!0})],Ke.prototype,"itemHeight",2);tt([D({type:Number})],Ke.prototype,"itemCount",2);tt([D({type:Array,attribute:!1})],Ke.prototype,"items",2);tt([D({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],Ke.prototype,"selectionType",2);tt([D({type:String,attribute:!0,reflect:!0})],Ke.prototype,"id",2);tt([D({type:String,reflect:!0})],Ke.prototype,"role",2);tt([D({type:Number,attribute:"focus-index",reflect:!0})],Ke.prototype,"focusIndex",1);tt([D({type:Array,attribute:!1})],Ke.prototype,"selectedIndices",1);let gs=Ke;gs.ensureDefined();const Ml=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, absolute);left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}:host(:focus){outline:none}.suffix ::slotted(.clear-button),.suffix ::slotted(.toggle-button){cursor:pointer;width:16px;height:32px;padding:0 8px;margin-top:-8px;margin-bottom:-8px;fill:#666;outline:none;flex-shrink:0}.suffix ::slotted(.toggle-button){transition:transform .2s}:host([opened]) .suffix ::slotted(.toggle-button){transform:rotate(180deg)}:host([disabled]) .suffix ::slotted(.clear-button),:host([disabled]) .suffix ::slotted(.toggle-button){display:none!important}.prefix ::slotted(.icon-wrapper){width:32px;height:32px;padding-right:4px;margin-top:-8px;margin-bottom:-8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}:host(:not([has-value])) .suffix ::slotted(.clear-button),:host([null-setting-disallowed]) .suffix ::slotted(.clear-button){display:none!important}:host(:not([allow-custom-value]):not([trigger-only])) .input{caret-color:transparent}:host(:not([allow-custom-value]):not([disabled])) .input{cursor:pointer}#default-slot{display:none}",Il=`<svg xmlns="http://www.w3.org/2000/svg" class="toggle-button" slot="suffix" viewBox="0 0 16 16">\r
1528
1528
  <path d="M13 4v2l-5 5-5-5v-2l5 5z"/>\r
1529
1529
  </svg>\r
1530
- `,kl=`<svg xmlns="http://www.w3.org/2000/svg" class="clear-button" slot="suffix" viewBox="0 0 16 16">\r
1530
+ `,Rl=`<svg xmlns="http://www.w3.org/2000/svg" class="clear-button" slot="suffix" viewBox="0 0 16 16">\r
1531
1531
  <path d="M12.96 4.46l-1.42-1.42-3.54 3.55-3.54-3.55-1.42 1.42 3.55 3.54-3.55 3.54 1.42 1.42 3.54-3.55 3.54 3.55 1.42-1.42-3.55-3.54 3.55-3.54z"/>\r
1532
1532
  </svg>\r
1533
- `;var $l=Object.defineProperty,Ol=Object.getOwnPropertyDescriptor,Oe=(s,e,t,i)=>{for(var a=i>1?void 0:i?Ol(e,t):e,r=s.length-1,n;r>=0;r--)(n=s[r])&&(a=(i?n(e,t,a):n(a))||a);return i&&a&&$l(e,t,a),a};const Ml="sd-combo-box";function aa(s,e){let t;return function(...i){t!=null&&clearTimeout(t),t=window.setTimeout(()=>s(...i),e)}}let Il=0;var ae;const Se=(ae=class extends oi{constructor(){super(),this.opened=!1,this.itemHeight=50,this.displayValuePath="caption",this.id=ae.ID+"_"+Il++,this.inMemoryFilter=(e,t)=>{if(!e)return!0;const i=e.toLowerCase();return!!(typeof t.caption=="string"&&t.caption.toLowerCase().includes(i)||typeof t.description=="string"&&t.description.toLowerCase().includes(i))},this.minimumOverlayWidth=250,this._itemGenerator=Wa,this._itemCache=[],this.debouncedFilterItemsInMemory=aa(this.filterItemsInMemory.bind(this),200),this.handleSelection=e=>{const t=this._dataProvider.items[e.detail.index];e.detail.selected||(this._list.selectedIndices=[e.detail.index]),this.comboBoxValue={index:this._itemCache.indexOf(t),item:t},this.dispatchSelectionChangeEvent(),this.opened=!1},this.handleWindowPointerDown=e=>{!(e.target instanceof Node&&this.contains(e.target))&&this.opened&&e.composedPath().indexOf(this._list)===-1&&(this.triggerOnly&&(this.value=null),this.opened=!1)},this.handleKeyDown=e=>{switch(e.key){case"Down":case"ArrowDown":{e.preventDefault(),this.navigateInList(1);break}case"Up":case"ArrowUp":{e.preventDefault(),this.navigateInList(-1);break}case"Enter":{this.opened&&(e.preventDefault(),e.stopPropagation(),this.opened=!1);break}case"Escape":{this.opened&&(e.preventDefault(),e.stopPropagation(),this._list.selectedIndices.indexOf(this._list.focusIndex)>-1&&this._dataProvider.items.length>this._list.focusIndex?this.opened=!1:(this.clearFilter(),this.updateInputValue(null),this.updateFocusAndSelectedIndexFromValue(),this._list.selectedIndices.includes(this._list.focusIndex)||this._list.selectedIndices.push(this._list.focusIndex)));break}case"Tab":{this.opened&&(this.triggerOnly&&(this.value=null),this.opened=!1);break}}},this.debouncedRequestData=aa(this.requestData.bind(this),250),this._dataProvider=new xl,this._dataProvider.finalSizeIsKnown=!0}get clearFilterOnLazyLoadedSelection(){return this.triggerOnly}set clearFilterOnLazyLoadedSelection(e){console.warn("Using clearFilterOnLazyLoadedSelection setting on a combo-box is deprecated. Use triggerOnly instead."),this.triggerOnly=e}get itemGenerator(){return this._itemGenerator}set itemGenerator(e){this._itemGenerator=e,this._list&&(this._list.itemGenerator=this._itemGenerator)}get items(){return this._itemCache}set items(e){this._itemCache=e,this.isLazyLoadConfigured&&(this._dataProvider.items=e,this._lastRequestedPage=null),this.value&&!this.comboBoxValue&&this.updateComboBoxValueFromValue(),this.filterItemsInMemory(),this.opened&&this._popper&&this._popper.update()}get finalSizeIsKnown(){return this._dataProvider.finalSizeIsKnown}set finalSizeIsKnown(e){this._dataProvider.finalSizeIsKnown=e}configureLazyLoad(e){if(!e)throw new Error("It is not possible to configure lazy load without a given onDataRequest calback.");this._dataProvider.finalSizeIsKnown=!1,this._onDataRequest=e,this._dataProvider.onDataRequest=t=>{this.requestData(t,!1)}}get comboBoxValue(){return this._comboBoxValue}set comboBoxValue(e){this._comboBoxValue=e,this.updateInputValue(null),this.updateHasValue()}get selectedIndex(){return this.isCustomValue(this.comboBoxValue)||!this.comboBoxValue?-1:this.comboBoxValue.index}get displayValue(){return this.value}open(){this.opened=!0}static get styles(){return[Tt`
1534
- ${ht(El)}
1535
- `]}disconnectedCallback(){super.disconnectedCallback(),this._popper&&(this._popper.destroy(),this._popper=null)}render(){return ne`
1533
+ `;var Ll=Object.defineProperty,Je=(t,e,i,a)=>{for(var s=void 0,n=t.length-1,o;n>=0;n--)(o=t[n])&&(s=o(e,i,s)||s);return s&&Ll(e,i,s),s};const Pl="sd-combo-box";function Na(t,e){let i;return function(...a){i!=null&&clearTimeout(i),i=window.setTimeout(()=>t(...a),e)}}let $l=0;var ge;const Ve=(ge=class extends ui{constructor(){super(),this.opened=!1,this.itemHeight=50,this.displayValuePath="caption",this.id=ge.ID+"_"+$l++,this.inMemoryFilter=(e,i)=>{if(!e)return!0;const a=e.toLowerCase();return!!(typeof i.caption=="string"&&i.caption.toLowerCase().includes(a)||typeof i.description=="string"&&i.description.toLowerCase().includes(a))},this.minimumOverlayWidth=250,this._itemGenerator=cr,this._itemCache=[],this.debouncedFilterItemsInMemory=Na(this.filterItemsInMemory.bind(this),200),this.handleSelection=e=>{const i=this._dataProvider.items[e.detail.index];e.detail.selected||(this._list.selectedIndices=[e.detail.index]),this.comboBoxValue={index:this._itemCache.indexOf(i),item:i},this.dispatchSelectionChangeEvent(),this.opened=!1},this.handleWindowPointerDown=e=>{!(e.target instanceof Node&&this.contains(e.target))&&this.opened&&e.composedPath().indexOf(this._list)===-1&&(this.triggerOnly&&(this.value=null),this.opened=!1)},this.handleKeyDown=e=>{switch(e.key){case"Down":case"ArrowDown":{e.preventDefault(),this.navigateInList(1);break}case"Up":case"ArrowUp":{e.preventDefault(),this.navigateInList(-1);break}case"Enter":{this.opened&&(e.preventDefault(),e.stopPropagation(),this.opened=!1);break}case"Escape":{this.opened&&(e.preventDefault(),e.stopPropagation(),this._list.selectedIndices.indexOf(this._list.focusIndex)>-1&&this._dataProvider.items.length>this._list.focusIndex?this.opened=!1:(this.clearFilter(),this.updateInputValue(null),this.updateFocusAndSelectedIndexFromValue(),this._list.selectedIndices.includes(this._list.focusIndex)||this._list.selectedIndices.push(this._list.focusIndex)));break}case"Tab":{this.opened&&(this.triggerOnly&&(this.value=null),this.opened=!1);break}}},this.debouncedRequestData=Na(this.requestData.bind(this),250),this._dataProvider=new Cl,this._dataProvider.finalSizeIsKnown=!0}get clearFilterOnLazyLoadedSelection(){return this.triggerOnly}set clearFilterOnLazyLoadedSelection(e){console.warn("Using clearFilterOnLazyLoadedSelection setting on a combo-box is deprecated. Use triggerOnly instead."),this.triggerOnly=e}get itemGenerator(){return this._itemGenerator}set itemGenerator(e){this._itemGenerator=e,this._list&&(this._list.itemGenerator=this._itemGenerator)}get items(){return this._itemCache}set items(e){this._itemCache=e,this.isLazyLoadConfigured&&(this._dataProvider.items=e,this._lastRequestedPage=null),this.value&&!this.comboBoxValue&&this.updateComboBoxValueFromValue(),this.filterItemsInMemory(),this.opened&&this._popper&&this._popper.update()}get finalSizeIsKnown(){return this._dataProvider.finalSizeIsKnown}set finalSizeIsKnown(e){this._dataProvider.finalSizeIsKnown=e}configureLazyLoad(e){if(!e)throw new Error("It is not possible to configure lazy load without a given onDataRequest calback.");this._dataProvider.finalSizeIsKnown=!1,this._onDataRequest=e,this._dataProvider.onDataRequest=i=>{this.requestData(i,!1)}}get comboBoxValue(){return this._comboBoxValue}set comboBoxValue(e){this._comboBoxValue=e,this.updateInputValue(null),this.updateHasValue()}get selectedIndex(){return this.isCustomValue(this.comboBoxValue)||!this.comboBoxValue?-1:this.comboBoxValue.index}get displayValue(){return this.value}open(){this.opened=!0}static get styles(){return[Wt`
1534
+ ${At(Ml)}
1535
+ `]}disconnectedCallback(){super.disconnectedCallback(),this._popper&&(this._popper.destroy(),this._popper=null)}render(){return be`
1536
1536
  ${super.render()}
1537
1537
  <slot @slotchange=${this.onDefaultSlotChange} id="default-slot"></slot>
1538
- `}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),t!==i)switch(e){case"opened":{this.handleOpenedStateChange();break}case"item-height":{this._list&&(this._list.itemHeight=this.itemHeight);break}case"id":{this.updateListId();break}}}firstUpdated(e){super.firstUpdated(e),this.value&&!this.comboBoxValue&&this.updateComboBoxValueFromValue(),window.requestAnimationFrame(()=>{this.initClearButtton(),this.initToggleButtton(),this.updateHasValue(),this.addEventListener("click",()=>{this.disabled||(this.opened=!this.opened)}),this.addEventListener("keydown",t=>{this.disabled||this.handleKeyDown(t)})}),this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-autocomplete","list")}updateComboBoxValueFromValue(){if(this.value){const e=this._itemCache.findIndex(t=>(t[this.displayValuePath]??"")===this.value);e>-1?this._comboBoxValue={index:e,item:this._itemCache[e]}:this.allowCustomValue?this._comboBoxValue=this.value:this._comboBoxValue=null,this.updateHasValue(),this.updateIconFromCurrentValue()}}updated(e){super.updated(e),e.has("showIcon")&&(this.showIcon?this._icon==null&&this.initIconWrapper():this._icon!=null&&(this._icon.remove(),this._icon=null)),e.has("currentText")&&this.updateHasValue(),e.has("triggerOnly")&&this._list&&(this._list.selectionType=this.triggerOnly?xt.TriggerOnly:xt.Single)}initIconWrapper(){this._icon=document.createElement("div"),this._icon.className="icon-wrapper",this._icon.role="img";const e=document.createElement("div");e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="center",e.style.backgroundSize="cover",e.style.height="24px",e.style.width="24px",this._icon.appendChild(e),this._icon.slot="prefix",this.appendChild(this._icon),this.updateIconFromCurrentValue()}updateIconFromCurrentValue(){var e;this.isCustomValue(this.comboBoxValue)?this.updateIcon(null):this.updateIcon((e=this.comboBoxValue)==null?void 0:e.item)}updateIcon(e){if(this._icon)if(e&&(e.icon||e.iconPlaceholder)){const t=e;t.attributes==null?(this._icon.title="",this._icon.ariaLabel=""):(this._icon.title=t.attributes["icon-attr-title"]??"",this._icon.ariaLabel=t.attributes["icon-attr-aria-label"]??""),this._icon.style.backgroundColor=t.iconBackgroundColor,this._icon.style.display="",Ga.showImage(this._icon.querySelector("div"),e.icon,e.iconPlaceholder)}else this._icon&&(this._icon.style.display="none")}updateHasValue(){this.currentText||this.comboBoxValue!=null&&this.comboBoxValue!=""?(this.setAttribute("has-value",""),this._clearButton&&(this._clearButton.style.display="")):this.removeAttribute("has-value")}shouldFloat(){return super.shouldFloat()||this.comboBoxValue!=null&&this.comboBoxValue!=""}initClearButtton(){const e=document.createElement("template");e.innerHTML=kl,this._clearButton=e.content.firstChild,this.appendChild(this._clearButton),this._clearButton.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),this.opened=!1,this.clearValue()})}initToggleButtton(){const e=document.createElement("template");e.innerHTML=Al,this._toggleButton=e.content.firstChild,this.appendChild(this._toggleButton),this._toggleButton.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),this.opened=!this.opened,this.select()})}filterItemsInMemory(){if(this.isLazyLoadConfigured)return;let e=!1;if(this.filterText&&(this.filterProperty?(this._dataProvider.items=this._itemCache.filter(t=>t[this.filterProperty]&&String(t[this.filterProperty]).indexOf(this.filterText)>-1),e=!0):this.inMemoryFilter&&(this._dataProvider.items=this._itemCache.filter(t=>this.inMemoryFilter(this.filterText,t)),e=!0)),!e)this._dataProvider.items=this._itemCache,this._list&&this.updateFocusAndSelectedIndexFromValue();else if(this._list)if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)){let t=this._dataProvider.items.indexOf(this.comboBoxValue.item);if(t==-1){const i=this.comboBoxValue.item.id;i!=null&&(t=this._dataProvider.items.findIndex(a=>a.id==i))}this._list.focusIndex=t,this._list.selectedIndices=t==-1?[]:[t]}else this._list.focusIndex=null;this.opened&&this._popper&&this._popper.update()}ensureListAndPopperInitialized(){if(this._list||(this._list=document.createElement(Ji.ID),this.updateListId(),this._list.classList.add("combo-box-dropdown"),this._list.itemHeight=this.itemHeight,this._list.itemGenerator=this.itemGenerator,this._list.selectionType=this.triggerOnly?xt.TriggerOnly:xt.Single,this._list.setAttribute("focus-target",""),Object.assign(this._list.style,{zIndex:"21000",boxShadow:`rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
1538
+ `}attributeChangedCallback(e,i,a){if(super.attributeChangedCallback(e,i,a),i!==a)switch(e){case"opened":{this.handleOpenedStateChange();break}case"item-height":{this._list&&(this._list.itemHeight=this.itemHeight);break}case"id":{this.updateListId();break}}}firstUpdated(e){super.firstUpdated(e),this.value&&!this.comboBoxValue&&this.updateComboBoxValueFromValue(),window.requestAnimationFrame(()=>{this.initClearButtton(),this.initToggleButtton(),this.updateHasValue(),this.addEventListener("click",()=>{this.disabled||(this.opened=!this.opened)}),this.addEventListener("keydown",i=>{this.disabled||this.handleKeyDown(i)})}),this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-autocomplete","list")}updateComboBoxValueFromValue(){if(this.value){const e=this._itemCache.findIndex(i=>(i[this.displayValuePath]??"")===this.value);e>-1?this._comboBoxValue={index:e,item:this._itemCache[e]}:this.allowCustomValue?this._comboBoxValue=this.value:this._comboBoxValue=null,this.updateHasValue(),this.updateIconFromCurrentValue()}}updated(e){super.updated(e),e.has("showIcon")&&(this.showIcon?this._icon==null&&this.initIconWrapper():this._icon!=null&&(this._icon.remove(),this._icon=null)),e.has("currentText")&&this.updateHasValue(),e.has("triggerOnly")&&this._list&&(this._list.selectionType=this.triggerOnly?Pt.TriggerOnly:Pt.Single)}initIconWrapper(){this._icon=document.createElement("div"),this._icon.className="icon-wrapper",this._icon.role="img";const e=document.createElement("div");e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="center",e.style.backgroundSize="cover",e.style.height="24px",e.style.width="24px",this._icon.appendChild(e),this._icon.slot="prefix",this.appendChild(this._icon),this.updateIconFromCurrentValue()}updateIconFromCurrentValue(){this.isCustomValue(this.comboBoxValue)?this.updateIcon(null):this.updateIcon(this.comboBoxValue?.item)}updateIcon(e){if(this._icon)if(e&&(e.icon||e.iconPlaceholder)){const i=e;i.attributes==null?(this._icon.title="",this._icon.ariaLabel=""):(this._icon.title=i.attributes["icon-attr-title"]??"",this._icon.ariaLabel=i.attributes["icon-attr-aria-label"]??""),this._icon.style.backgroundColor=i.iconBackgroundColor,this._icon.style.display="",lr.showImage(this._icon.querySelector("div"),e.icon,e.iconPlaceholder)}else this._icon&&(this._icon.style.display="none")}updateHasValue(){this.currentText||this.comboBoxValue!=null&&this.comboBoxValue!=""?(this.setAttribute("has-value",""),this._clearButton&&(this._clearButton.style.display="")):this.removeAttribute("has-value")}shouldFloat(){return super.shouldFloat()||this.comboBoxValue!=null&&this.comboBoxValue!=""}initClearButtton(){const e=document.createElement("template");e.innerHTML=Rl,this._clearButton=e.content.firstChild,this.appendChild(this._clearButton),this._clearButton.addEventListener("click",i=>{i.preventDefault(),i.stopPropagation(),this.opened=!1,this.clearValue()})}initToggleButtton(){const e=document.createElement("template");e.innerHTML=Il,this._toggleButton=e.content.firstChild,this.appendChild(this._toggleButton),this._toggleButton.addEventListener("click",i=>{i.preventDefault(),i.stopPropagation(),this.opened=!this.opened,this.select()})}filterItemsInMemory(){if(this.isLazyLoadConfigured)return;let e=!1;if(this.filterText&&(this.filterProperty?(this._dataProvider.items=this._itemCache.filter(i=>i[this.filterProperty]&&String(i[this.filterProperty]).indexOf(this.filterText)>-1),e=!0):this.inMemoryFilter&&(this._dataProvider.items=this._itemCache.filter(i=>this.inMemoryFilter(this.filterText,i)),e=!0)),!e)this._dataProvider.items=this._itemCache,this._list&&this.updateFocusAndSelectedIndexFromValue();else if(this._list)if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)){let i=this._dataProvider.items.indexOf(this.comboBoxValue.item);if(i==-1){const a=this.comboBoxValue.item.id;a!=null&&(i=this._dataProvider.items.findIndex(s=>s.id==a))}this._list.focusIndex=i,this._list.selectedIndices=i==-1?[]:[i]}else this._list.focusIndex=null;this.opened&&this._popper&&this._popper.update()}ensureListAndPopperInitialized(){if(this._list||(this._list=document.createElement(gs.ID),this.updateListId(),this._list.classList.add("combo-box-dropdown"),this._list.itemHeight=this.itemHeight,this._list.itemGenerator=this.itemGenerator,this._list.selectionType=this.triggerOnly?Pt.TriggerOnly:Pt.Single,this._list.setAttribute("focus-target",""),Object.assign(this._list.style,{zIndex:"21000",boxShadow:`rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
1539
1539
  rgba(0, 0, 0, 0.12) 0px 1px 5px 0px,
1540
- rgba(0, 0, 0, 0.2) 0px 3px 1px -2px`,background:"white",overflowY:"auto"}),this._list.addEventListener("selection",this.handleSelection),this._dataProvider.connectList(this._list)),!this._popper){const e=this;this._popper=el(this,this._list,{placement:"bottom-start",modifiers:[{name:"computeStyles",options:{gpuAcceleration:!0}},{name:"hide",enabled:!1},{name:"closeIfReferenceHidden",enabled:!0,phase:"afterWrite",fn({state:t}){t.elements.reference.closeIfNotVisible()}},{name:"offset",options:{offset:({placement:t})=>{var i;return t.indexOf("top")>-1?[0,-parseInt(getComputedStyle(e).paddingTop,10)]:t.indexOf("bottom")>-1?[0,-parseInt(getComputedStyle(e).paddingBottom,10)-(((i=this.shadowRoot.querySelector(".validation-message-wrapper"))==null?void 0:i.offsetHeight)??0)]:[0,0]}}},{name:"adjustWidthIfNeeded",enabled:!0,phase:"read",fn({state:t}){t.elements.popper.increaseWidthOnNextRenderIfNeeded()}}]})}}closeIfNotVisible(){const e=this.elementFromMiddleOfComboBox();!this.contains(e)&&!this.shadowRoot.contains(e)&&e!==this._list&&(this.triggerOnly&&(this.value=null),this.opened=!1)}elementFromMiddleOfComboBox(){const e=this.getBoundingClientRect();return document.elementFromPoint(e.left+e.width/2,e.top+e.height/2)}async handleOpenedStateChange(){if(this.inputElement.setAttribute("aria-expanded",String(this.opened)),this.opened){if(!this.disabled){this.ensureListAndPopperInitialized();const e=(this.filterText??"")!==(this._lastRequestedFilterText??"");this.isLazyLoadConfigured&&(this.items.length==0||e)&&this.requestData(0,e),this.updateDropdownSizes(),this.ownerDocument.body.appendChild(this._list),this.updateFocusAndSelectedIndexFromValue(),window.requestAnimationFrame(()=>{this._popper&&this._popper.update()}),window.addEventListener("pointerdown",this.handleWindowPointerDown),!this.allowCustomValue&&!this._openedByFilterTextChange&&this.select()}this._openedByFilterTextChange=!1}else await this._list.updateComplete,this._popper&&await this._popper.update,this.ownerDocument.body.removeChild(this._list),window.removeEventListener("pointerdown",this.handleWindowPointerDown),this.updateValueOnClose(),this.clearFilter(),this.setSelectionRange(0,0),this.inputElement.removeAttribute("aria-activedescendant"),this._popper&&(this._popper.destroy(),this._popper=null)}updateValueOnClose(){var t;const e=this.comboBoxValue??"";if(this.nullSettingDisallowed&&!this.value&&this.comboBoxValue)this.restorePreviousSelection();else if(this.value!==(this.convertToDisplayValue(null)??"")){const i=this._dataProvider.items[this._list.focusIndex];if(i&&(i[this.displayValuePath]??"")===this.value){if(i.disabled){this.restorePreviousSelection();return}this.comboBoxValue={index:this._itemCache.indexOf(i),item:i}}else if(this.allowCustomValue||!this.value)this.comboBoxValue=this.value;else{const a=this._itemCache.findIndex(r=>(r[this.displayValuePath]??"")===this.value&&!r.disabled);a>-1?this.comboBoxValue={index:a,item:this._itemCache[a]}:this.restorePreviousSelection()}}else{const i=this._dataProvider.items[this._list.focusIndex];if(i&&i.id!=null){if(i.disabled){this.restorePreviousSelection();return}(!this.comboBoxValue||this.isCustomValue(this.comboBoxValue)||this.comboBoxValue.item.id!=i.id)&&(this.comboBoxValue={index:this._itemCache.indexOf(i),item:i})}}e!==(this.comboBoxValue??"")&&this.dispatchSelectionChangeEvent(),this.updateIcon(this.isCustomValue(this.comboBoxValue)?null:(t=this.comboBoxValue)==null?void 0:t.item)}restorePreviousSelection(){this.updateInputValue(null)}updateFocusAndSelectedIndexFromValue(){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)&&!this._openedByFilterTextChange){let e=this.comboBoxValue.index;if((e==-1||this.isLazyLoadConfigured)&&(e=this.items.indexOf(this.comboBoxValue.item),e==-1)){const t=this.comboBoxValue.item.id;t!=null&&(e=this.items.findIndex(i=>i.id==t))}this._list.focusIndex=e,this._list.selectedIndices=e==-1?[]:[e]}else this._list.focusIndex=-1,this._list.selectedIndices=[];this.updateActiveDescendant()}navigateInList(e){this.opened?(this._list.focusIndex==null?e>0?this._list.focusIndex=0:this._list.focusIndex=Math.max(0,this._dataProvider.items.length-1):this._list.focusIndex=Math.max(0,Math.min(this._dataProvider.items.length-1,this._list.focusIndex+e)),this.updateInputValue(this._dataProvider.items[this._list.focusIndex]),this.updateActiveDescendant(),this.allowCustomValue||this.select()):this.opened=!0}updateActiveDescendant(){const e=this._list&&this._list.getListItem(this._list.focusIndex);e?this.inputElement.setAttribute("aria-activedescendant",e.id):this.inputElement.removeAttribute("aria-activedescendant")}updateInputValue(e){this.updateComplete.then(()=>{this.value=this.convertToDisplayValue(e),e?this.updateIcon(e):this.updateIconFromCurrentValue()})}convertToDisplayValue(e){return e?e[this.displayValuePath]:this.comboBoxValue?this.isCustomValue(this.comboBoxValue)?this.comboBoxValue:this.comboBoxValue.item[this.displayValuePath]:null}fireValueChange(e){if(e&&this.filterText!==this.value){const t=(this.filterText??"")!==this.value;this.filterText=this.value,this.updateIcon(null),this.opened||(this._openedByFilterTextChange=!0,this.opened=!0),t&&(this.dispatchFilterChangeEvent(),this.debouncedFilterItemsInMemory())}}clearValue(){this.nullSettingDisallowed||(this.value=null,this.inputElement.removeAttribute("aria-activedescendant"),this._list&&(this._list.selectedIndices=[]),this.clearFilter(),this.comboBoxValue&&(this.comboBoxValue=null,this.dispatchSelectionChangeEvent()),this.requestUpdate())}clearFilter(){this.filterText!=null&&(this.filterText=void 0,this.filterItemsInMemory(),this.dispatchFilterChangeEvent(),this.updateIconFromCurrentValue())}updateDropdownSizes(){const t=((window.innerHeight||document.documentElement.clientHeight)-this.offsetHeight)*.5;Object.assign(this._list.style,{maxHeight:`${t}px`,minWidth:`${Math.max(this.offsetWidth,this.minimumOverlayWidth)}px`,maxWidth:`max(50vw, ${this.offsetWidth}px)`})}updateListId(){this.inputElement&&this._list&&(this._list.id=this.id+"_list",this.inputElement.setAttribute("aria-controls",this._list.id))}isCustomValue(e){return typeof e=="string"}dispatchSelectionChangeEvent(){this.updateComplete.then(()=>{var e;if(this.dispatchEvent(new CustomEvent("selection-change",{detail:{selection:this.comboBoxValue,isCustomValue:this.isCustomValue(this.comboBoxValue)}})),this.triggerOnly)this.comboBoxValue=null;else{const t=this.comboBoxValue;this.isCustomValue(t)?this.setFormValue(t):this.setFormValue((e=t==null?void 0:t.item)==null?void 0:e.caption)}}).catch(e=>{console.error("Could not dispatch selection change event due to:",e)})}dispatchFilterChangeEvent(){this.dispatchEvent(new CustomEvent("filter-change",{detail:{value:this.filterText},composed:!0})),this.debouncedRequestData(0)}get isLazyLoadConfigured(){return!!this._onDataRequest}requestData(e,t){if(t==null&&(t=(this.filterText??"")!==(this._lastRequestedFilterText??"")),this.isLazyLoadConfigured){if(!this.opened){t&&(this._dataProvider.items=[],this._itemCache=[]);return}if(this._lastRequestedPage==e&&!t)return;this._pendingDataRequest&&this._pendingDataRequest.cancel(ae.DATA_REQUEST_CANCELLED);const i=new Promise((a,r)=>{this._pendingDataRequest={cancel:r}});this._lastRequestedPage=e,this._lastRequestedFilterText=this.filterText,this.setAttribute("loading",""),Promise.race([i,this._onDataRequest(this._lastRequestedFilterText,e)]).then(a=>{if(this.filterText==this._lastRequestedFilterText&&this._lastRequestedPage==e&&(this._dataProvider.finalSizeIsKnown=a.finalSizeIsKnown,t?(this._dataProvider.items=a.items,this._itemCache=a.items):(this._dataProvider.addItems(a.items),this._itemCache=this._dataProvider.items),this._list&&(this._list.itemCount=this._dataProvider.items.length),this._popper&&this.opened)){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)){const r=this.comboBoxValue.item;if(this._list.selectedIndices.length==0||this.items[this._list.selectedIndices[0]]!=r){let n=this.items.indexOf(r);if(n==-1){const o=r.id;o!=null&&(n=this.items.findIndex(l=>l.id==o))}this.comboBoxValue.index=n,this._list.selectedIndices=n==-1?[]:[n]}}this.updateDropdownSizes(),this._popper.update()}this._pendingDataRequest=null,this.removeAttribute("loading")}).catch(a=>{a!==ae.DATA_REQUEST_CANCELLED&&(console.error(`Data could not be loaded for filter "${this._lastRequestedFilterText}" and page number "${e}" due to the following error:
1541
- ${a}`),this._dataProvider.finalSizeIsKnown=!0,this.items.length==0?this.opened=!1:this._list&&(this._list.itemCount=this.items.length),this.removeAttribute("loading")),this._pendingDataRequest=null})}}get defaultSlot(){return this.shadowRoot.querySelector("#default-slot")}onDefaultSlotChange(){this._declarativeItems=this.defaultSlot.assignedElements(),this._declarativeItems.length>0&&(this.finalSizeIsKnown=!0,this.itemGenerator=(e,t)=>this._declarativeItems[t].cloneNode(!0),this.items=this._declarativeItems.map(e=>{const t={caption:e.getAttribute("caption"),description:e.getAttribute("description")};return this.displayValuePath!="caption"&&this.displayValuePath!="description"&&(t[this.displayValuePath]=e[this.displayValuePath]||e.getAttribute(this.displayValuePath)),t}))}},ae.ID=Ml,ae.ensureDefined=()=>{Ji.ensureDefined(),customElements.get(ae.ID)||customElements.define(ae.ID,ae)},ae.formAssociated=!0,ae.DATA_REQUEST_CANCELLED="cancel_data_request",ae);Oe([v({type:Boolean,reflect:!0})],Se.prototype,"opened",2);Oe([v({type:Number,attribute:"item-height"})],Se.prototype,"itemHeight",2);Oe([v({type:Boolean,attribute:"allow-custom-value",reflect:!0})],Se.prototype,"allowCustomValue",2);Oe([v({type:Boolean,attribute:"trigger-only",reflect:!0})],Se.prototype,"triggerOnly",2);Oe([v({type:Boolean,attribute:"null-setting-disallowed",reflect:!0})],Se.prototype,"nullSettingDisallowed",2);Oe([v({type:Boolean,attribute:"show-icon",reflect:!0})],Se.prototype,"showIcon",2);Oe([v({type:String,attribute:"display-value-path",noAccessor:!0})],Se.prototype,"displayValuePath",2);Oe([v({type:String,attribute:"filter-property",noAccessor:!0})],Se.prototype,"filterProperty",2);Oe([v({type:String,attribute:!0,reflect:!0})],Se.prototype,"id",2);let Rl=Se;Rl.ensureDefined();function Ka(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Ll(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(i){var a=Object.getOwnPropertyDescriptor(s,i);Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:function(){return s[i]}})}),t}var xs={exports:{}},j=String,qa=function(){return{isColorSupported:!1,reset:j,bold:j,dim:j,italic:j,underline:j,inverse:j,hidden:j,strikethrough:j,black:j,red:j,green:j,yellow:j,blue:j,magenta:j,cyan:j,white:j,gray:j,bgBlack:j,bgRed:j,bgGreen:j,bgYellow:j,bgBlue:j,bgMagenta:j,bgCyan:j,bgWhite:j}};xs.exports=qa();xs.exports.createColors=qa;var Pl=xs.exports;const Dl={},Bl=Object.freeze(Object.defineProperty({__proto__:null,default:Dl},Symbol.toStringTag,{value:"Module"})),Ne=Ll(Bl);let na=Pl,ra=Ne,Zi=class Ja extends Error{constructor(e,t,i,a,r,n){super(e),this.name="CssSyntaxError",this.reason=e,r&&(this.file=r),a&&(this.source=a),n&&(this.plugin=n),typeof t<"u"&&typeof i<"u"&&(typeof t=="number"?(this.line=t,this.column=i):(this.line=t.line,this.column=t.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Ja)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=na.isColorSupported),ra&&e&&(t=ra(t));let i=t.split(/\r?\n/),a=Math.max(this.line-3,0),r=Math.min(this.line+2,i.length),n=String(r).length,o,l;if(e){let{bold:c,gray:m,red:u}=na.createColors(!0);o=h=>c(u(h)),l=h=>m(h)}else o=l=c=>c;return i.slice(a,r).map((c,m)=>{let u=a+1+m,h=" "+(" "+u).slice(-n)+" | ";if(u===this.line){let g=l(h.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+l(h)+c+`
1542
- `+g+o("^")}return" "+l(h)+c}).join(`
1543
- `)}toString(){let e=this.showSourceCode();return e&&(e=`
1540
+ rgba(0, 0, 0, 0.2) 0px 3px 1px -2px`,background:"white",overflowY:"auto"}),this._list.addEventListener("selection",this.handleSelection),this._dataProvider.connectList(this._list)),!this._popper){const e=this;this._popper=ol(this,this._list,{placement:"bottom-start",modifiers:[{name:"computeStyles",options:{gpuAcceleration:!0}},{name:"hide",enabled:!1},{name:"closeIfReferenceHidden",enabled:!0,phase:"afterWrite",fn({state:i}){i.elements.reference.closeIfNotVisible()}},{name:"offset",options:{offset:({placement:i})=>i.indexOf("top")>-1?[0,-parseInt(getComputedStyle(e).paddingTop,10)]:i.indexOf("bottom")>-1?[0,-parseInt(getComputedStyle(e).paddingBottom,10)-(this.shadowRoot.querySelector(".validation-message-wrapper")?.offsetHeight??0)]:[0,0]}},{name:"adjustWidthIfNeeded",enabled:!0,phase:"read",fn({state:i}){i.elements.popper.increaseWidthOnNextRenderIfNeeded()}}]})}}closeIfNotVisible(){const e=this.elementFromMiddleOfComboBox();!this.contains(e)&&!this.shadowRoot.contains(e)&&e!==this._list&&(this.triggerOnly&&(this.value=null),this.opened=!1)}elementFromMiddleOfComboBox(){const e=this.getBoundingClientRect();return document.elementFromPoint(e.left+e.width/2,e.top+e.height/2)}async handleOpenedStateChange(){if(this.inputElement.setAttribute("aria-expanded",String(this.opened)),this.opened){if(!this.disabled){this.ensureListAndPopperInitialized();const e=(this.filterText??"")!==(this._lastRequestedFilterText??"");this.isLazyLoadConfigured&&(this.items.length==0||e)&&this.requestData(0,e),this.updateDropdownSizes(),this.ownerDocument.body.appendChild(this._list),this.updateFocusAndSelectedIndexFromValue(),window.requestAnimationFrame(()=>{this._popper&&this._popper.update()}),window.addEventListener("pointerdown",this.handleWindowPointerDown),!this.allowCustomValue&&!this._openedByFilterTextChange&&this.select()}this._openedByFilterTextChange=!1}else await this._list.updateComplete,this._popper&&await this._popper.update,this.ownerDocument.body.removeChild(this._list),window.removeEventListener("pointerdown",this.handleWindowPointerDown),this.updateValueOnClose(),this.clearFilter(),this.setSelectionRange(0,0),this.inputElement.removeAttribute("aria-activedescendant"),this._popper&&(this._popper.destroy(),this._popper=null)}updateValueOnClose(){const e=this.comboBoxValue??"";if(this.nullSettingDisallowed&&!this.value&&this.comboBoxValue)this.restorePreviousSelection();else if(this.value!==(this.convertToDisplayValue(null)??"")){const i=this._dataProvider.items[this._list.focusIndex];if(i&&(i[this.displayValuePath]??"")===this.value){if(i.disabled){this.restorePreviousSelection();return}this.comboBoxValue={index:this._itemCache.indexOf(i),item:i}}else if(this.allowCustomValue||!this.value)this.comboBoxValue=this.value;else{const a=this._itemCache.findIndex(s=>(s[this.displayValuePath]??"")===this.value&&!s.disabled);a>-1?this.comboBoxValue={index:a,item:this._itemCache[a]}:this.restorePreviousSelection()}}else{const i=this._dataProvider.items[this._list.focusIndex];if(i&&i.id!=null){if(i.disabled){this.restorePreviousSelection();return}(!this.comboBoxValue||this.isCustomValue(this.comboBoxValue)||this.comboBoxValue.item.id!=i.id)&&(this.comboBoxValue={index:this._itemCache.indexOf(i),item:i})}}e!==(this.comboBoxValue??"")&&this.dispatchSelectionChangeEvent(),this.updateIcon(this.isCustomValue(this.comboBoxValue)?null:this.comboBoxValue?.item)}restorePreviousSelection(){this.updateInputValue(null)}updateFocusAndSelectedIndexFromValue(){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)&&!this._openedByFilterTextChange){let e=this.comboBoxValue.index;if((e==-1||this.isLazyLoadConfigured)&&(e=this.items.indexOf(this.comboBoxValue.item),e==-1)){const i=this.comboBoxValue.item.id;i!=null&&(e=this.items.findIndex(a=>a.id==i))}this._list.focusIndex=e,this._list.selectedIndices=e==-1?[]:[e]}else this._list.focusIndex=-1,this._list.selectedIndices=[];this.updateActiveDescendant()}navigateInList(e){this.opened?(this._list.focusIndex==null?e>0?this._list.focusIndex=0:this._list.focusIndex=Math.max(0,this._dataProvider.items.length-1):this._list.focusIndex=Math.max(0,Math.min(this._dataProvider.items.length-1,this._list.focusIndex+e)),this.updateInputValue(this._dataProvider.items[this._list.focusIndex]),this.updateActiveDescendant(),this.allowCustomValue||this.select()):this.opened=!0}updateActiveDescendant(){const e=this._list&&this._list.getListItem(this._list.focusIndex);e?this.inputElement.setAttribute("aria-activedescendant",e.id):this.inputElement.removeAttribute("aria-activedescendant")}updateInputValue(e){this.updateComplete.then(()=>{this.value=this.convertToDisplayValue(e),e?this.updateIcon(e):this.updateIconFromCurrentValue()})}convertToDisplayValue(e){return e?e[this.displayValuePath]:this.comboBoxValue?this.isCustomValue(this.comboBoxValue)?this.comboBoxValue:this.comboBoxValue.item[this.displayValuePath]:null}fireValueChange(e){if(e&&this.filterText!==this.value){const i=(this.filterText??"")!==this.value;this.filterText=this.value,this.updateIcon(null),this.opened||(this._openedByFilterTextChange=!0,this.opened=!0),i&&(this.dispatchFilterChangeEvent(),this.debouncedFilterItemsInMemory())}}clearValue(){this.nullSettingDisallowed||(this.value=null,this.inputElement.removeAttribute("aria-activedescendant"),this._list&&(this._list.selectedIndices=[]),this.clearFilter(),this.comboBoxValue&&(this.comboBoxValue=null,this.dispatchSelectionChangeEvent()),this.requestUpdate())}clearFilter(){this.filterText!=null&&(this.filterText=void 0,this.filterItemsInMemory(),this.dispatchFilterChangeEvent(),this.updateIconFromCurrentValue())}updateDropdownSizes(){const i=((window.innerHeight||document.documentElement.clientHeight)-this.offsetHeight)*.5;Object.assign(this._list.style,{maxHeight:`${i}px`,minWidth:`${Math.max(this.offsetWidth,this.minimumOverlayWidth)}px`,maxWidth:`max(50vw, ${this.offsetWidth}px)`})}updateListId(){this.inputElement&&this._list&&(this._list.id=this.id+"_list",this.inputElement.setAttribute("aria-controls",this._list.id))}isCustomValue(e){return typeof e=="string"}dispatchSelectionChangeEvent(){this.updateComplete.then(()=>{if(this.dispatchEvent(new CustomEvent("selection-change",{detail:{selection:this.comboBoxValue,isCustomValue:this.isCustomValue(this.comboBoxValue)}})),this.triggerOnly)this.comboBoxValue=null;else{const e=this.comboBoxValue;this.isCustomValue(e)?this.setFormValue(e):this.setFormValue(e?.item?.caption)}}).catch(e=>{console.error("Could not dispatch selection change event due to:",e)})}dispatchFilterChangeEvent(){this.dispatchEvent(new CustomEvent("filter-change",{detail:{value:this.filterText},composed:!0})),this.debouncedRequestData(0)}get isLazyLoadConfigured(){return!!this._onDataRequest}requestData(e,i){if(i==null&&(i=(this.filterText??"")!==(this._lastRequestedFilterText??"")),this.isLazyLoadConfigured){if(!this.opened){i&&(this._dataProvider.items=[],this._itemCache=[]);return}if(this._lastRequestedPage==e&&!i)return;this._pendingDataRequest&&this._pendingDataRequest.cancel(ge.DATA_REQUEST_CANCELLED);const a=new Promise((s,n)=>{this._pendingDataRequest={cancel:n}});this._lastRequestedPage=e,this._lastRequestedFilterText=this.filterText,this.setAttribute("loading",""),Promise.race([a,this._onDataRequest(this._lastRequestedFilterText,e)]).then(s=>{if(this.filterText==this._lastRequestedFilterText&&this._lastRequestedPage==e&&(this._dataProvider.finalSizeIsKnown=s.finalSizeIsKnown,i?(this._dataProvider.items=s.items,this._itemCache=s.items):(this._dataProvider.addItems(s.items),this._itemCache=this._dataProvider.items),this._list&&(this._list.itemCount=this._dataProvider.items.length),this._popper&&this.opened)){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)){const n=this.comboBoxValue.item;if(this._list.selectedIndices.length==0||this.items[this._list.selectedIndices[0]]!=n){let o=this.items.indexOf(n);if(o==-1){const d=n.id;d!=null&&(o=this.items.findIndex(h=>h.id==d))}this.comboBoxValue.index=o,this._list.selectedIndices=o==-1?[]:[o]}}this.updateDropdownSizes(),this._popper.update()}this._pendingDataRequest=null,this.removeAttribute("loading")}).catch(s=>{s!==ge.DATA_REQUEST_CANCELLED&&(console.error(`Data could not be loaded for filter "${this._lastRequestedFilterText}" and page number "${e}" due to the following error:
1541
+ ${s}`),this._dataProvider.finalSizeIsKnown=!0,this.items.length==0?this.opened=!1:this._list&&(this._list.itemCount=this.items.length),this.removeAttribute("loading")),this._pendingDataRequest=null})}}get defaultSlot(){return this.shadowRoot.querySelector("#default-slot")}onDefaultSlotChange(){this._declarativeItems=this.defaultSlot.assignedElements(),this._declarativeItems.length>0&&(this.finalSizeIsKnown=!0,this.itemGenerator=(e,i)=>this._declarativeItems[i].cloneNode(!0),this.items=this._declarativeItems.map(e=>{const i={caption:e.getAttribute("caption"),description:e.getAttribute("description")};return this.displayValuePath!="caption"&&this.displayValuePath!="description"&&(i[this.displayValuePath]=e[this.displayValuePath]||e.getAttribute(this.displayValuePath)),i}))}},ge.ID=Pl,ge.ensureDefined=()=>{gs.ensureDefined(),customElements.get(ge.ID)||customElements.define(ge.ID,ge)},ge.formAssociated=!0,ge.DATA_REQUEST_CANCELLED="cancel_data_request",ge);Je([D({type:Boolean,reflect:!0})],Ve.prototype,"opened");Je([D({type:Number,attribute:"item-height"})],Ve.prototype,"itemHeight");Je([D({type:Boolean,attribute:"allow-custom-value",reflect:!0})],Ve.prototype,"allowCustomValue");Je([D({type:Boolean,attribute:"trigger-only",reflect:!0})],Ve.prototype,"triggerOnly");Je([D({type:Boolean,attribute:"null-setting-disallowed",reflect:!0})],Ve.prototype,"nullSettingDisallowed");Je([D({type:Boolean,attribute:"show-icon",reflect:!0})],Ve.prototype,"showIcon");Je([D({type:String,attribute:"display-value-path",noAccessor:!0})],Ve.prototype,"displayValuePath");Je([D({type:String,attribute:"filter-property",noAccessor:!0})],Ve.prototype,"filterProperty");Je([D({type:String,attribute:!0,reflect:!0})],Ve.prototype,"id");let Dl=Ve;Dl.ensureDefined();function mr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Bl(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var i=function a(){var s=!1;try{s=this instanceof a}catch{}return s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(a){var s=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(i,a,s.get?s:{enumerable:!0,get:function(){return t[a]}})}),i}var oi={exports:{}},ba;function Tl(){if(ba)return oi.exports;ba=1;var t=String,e=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};return oi.exports=e(),oi.exports.createColors=e,oi.exports}const zl={},jl=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"})),Ie=Bl(jl);var zi,ya;function Is(){if(ya)return zi;ya=1;let t=Tl(),e=Ie;class i extends Error{constructor(s,n,o,d,h,u){super(s),this.name="CssSyntaxError",this.reason=s,h&&(this.file=h),d&&(this.source=d),u&&(this.plugin=u),typeof n<"u"&&typeof o<"u"&&(typeof n=="number"?(this.line=n,this.column=o):(this.line=n.line,this.column=n.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let n=this.source;s==null&&(s=t.isColorSupported);let o=l=>l,d=l=>l,h=l=>l;if(s){let{bold:l,gray:f,red:p}=t.createColors(!0);d=N=>l(p(N)),o=N=>f(N),e&&(h=N=>e(N))}let u=n.split(/\r?\n/),r=Math.max(this.line-3,0),m=Math.min(this.line+2,u.length),c=String(m).length;return u.slice(r,m).map((l,f)=>{let p=r+1+f,N=" "+(" "+p).slice(-c)+" | ";if(p===this.line){if(l.length>160){let w=20,v=Math.max(0,this.column-w),y=Math.max(this.column+w,this.endColumn+w),b=l.slice(v,y),_=o(N.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return d(">")+o(N)+h(b)+`
1542
+ `+_+d("^")}let x=o(N.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return d(">")+o(N)+h(l)+`
1543
+ `+x+d("^")}return" "+o(N)+h(l)}).join(`
1544
+ `)}toString(){let s=this.showSourceCode();return s&&(s=`
1544
1545
 
1545
- `+e+`
1546
- `),this.name+": "+this.message+e}};var ws=Zi;Zi.default=Zi;var Ft={};Ft.isClean=Symbol("isClean");Ft.my=Symbol("my");const oa={after:`
1546
+ `+s+`
1547
+ `),this.name+": "+this.message+s}}return zi=i,i.default=i,zi}var ji,va;function dr(){if(va)return ji;va=1;const t={after:`
1547
1548
  `,beforeClose:`
1548
1549
  `,beforeComment:`
1549
1550
  `,beforeDecl:`
1550
1551
  `,beforeOpen:" ",beforeRule:`
1551
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Tl(s){return s[0].toUpperCase()+s.slice(1)}let Xi=class{constructor(e){this.builder=e}atrule(e,t){let i="@"+e.name,a=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?i+=e.raws.afterName:a&&(i+=" "),e.nodes)this.block(e,i+a);else{let r=(e.raws.between||"")+(t?";":"");this.builder(i+a+r,e)}}beforeAfter(e,t){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):t==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let a=e.parent,r=0;for(;a&&a.type!=="root";)r+=1,a=a.parent;if(i.includes(`
1552
- `)){let n=this.raw(e,null,"indent");if(n.length)for(let o=0;o<r;o++)i+=n}return i}block(e,t){let i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start");let a;e.nodes&&e.nodes.length?(this.body(e),a=this.raw(e,"after")):a=this.raw(e,"after","emptyBody"),a&&this.builder(a),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let i=this.raw(e,"semicolon");for(let a=0;a<e.nodes.length;a++){let r=e.nodes[a],n=this.raw(r,"before");n&&this.builder(n),this.stringify(r,t!==a||i)}}comment(e){let t=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+i+"*/",e)}decl(e,t){let i=this.raw(e,"between","colon"),a=e.prop+i+this.rawValue(e,"value");e.important&&(a+=e.raws.important||" !important"),t&&(a+=";"),this.builder(a,e)}document(e){this.body(e)}raw(e,t,i){let a;if(i||(i=t),t&&(a=e.raws[t],typeof a<"u"))return a;let r=e.parent;if(i==="before"&&(!r||r.type==="root"&&r.first===e||r&&r.type==="document"))return"";if(!r)return oa[i];let n=e.root();if(n.rawCache||(n.rawCache={}),typeof n.rawCache[i]<"u")return n.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);{let o="raw"+Tl(i);this[o]?a=this[o](n,e):n.walk(l=>{if(a=l.raws[t],typeof a<"u")return!1})}return typeof a>"u"&&(a=oa[i]),n.rawCache[i]=a,a}rawBeforeClose(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return t=i.raws.after,t.includes(`
1553
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let i;return e.walkComments(a=>{if(typeof a.raws.before<"u")return i=a.raws.before,i.includes(`
1554
- `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,t){let i;return e.walkDecls(a=>{if(typeof a.raws.before<"u")return i=a.raws.before,i.includes(`
1555
- `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(e){let t;return e.walk(i=>{if(i.type!=="decl"&&(t=i.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before<"u")return t=i.raws.before,t.includes(`
1556
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(i=>{if(typeof i.raws.between<"u")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(t=i.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(i=>{let a=i.parent;if(a&&a!==e&&a.parent&&a.parent===e&&typeof i.raws.before<"u"){let r=i.raws.before.split(`
1557
- `);return t=r[r.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(t=i.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let i=e[t],a=e.raws[t];return a&&a.value===i?a.raw:i}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Za=Xi;Xi.default=Xi;let zl=Za;function Yi(s,e){new zl(e).stringify(s)}var wi=Yi;Yi.default=Yi;let{isClean:qt,my:jl}=Ft,Vl=ws,Fl=Za,Hl=wi;function Qi(s,e){let t=new s.constructor;for(let i in s){if(!Object.prototype.hasOwnProperty.call(s,i)||i==="proxyCache")continue;let a=s[i],r=typeof a;i==="parent"&&r==="object"?e&&(t[i]=e):i==="source"?t[i]=a:Array.isArray(a)?t[i]=a.map(n=>Qi(n,t)):(r==="object"&&a!==null&&(a=Qi(a)),t[i]=a)}return t}let es=class{constructor(e={}){this.raws={},this[qt]=!1,this[jl]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let i of e[t])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Qi(this);for(let i in e)t[i]=e[i];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:i,start:a}=this.rangeBy(t);return this.source.input.error(e,{column:a.column,line:a.line},{column:i.column,line:i.line},t)}return new Vl(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[qt]){this[qt]=!1;let e=this;for(;e=e.parent;)e[qt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let i=this.source.start;if(e.index)i=this.positionInside(e.index,t);else if(e.word){t=this.toString();let a=t.indexOf(e.word);a!==-1&&(i=this.positionInside(a,t))}return i}positionInside(e,t){let i=t||this.toString(),a=this.source.start.column,r=this.source.start.line;for(let n=0;n<e;n++)i[n]===`
1558
- `?(a=1,r+=1):a+=1;return{column:a,line:r}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let a=this.toString(),r=a.indexOf(e.word);r!==-1&&(t=this.positionInside(r,a),i=this.positionInside(r+e.word.length,a))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:e.endIndex?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<t.line||i.line===t.line&&i.column<=t.column)&&(i={column:t.column+1,line:t.line}),{end:i,start:t}}raw(e,t){return new Fl().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,i=!1;for(let a of e)a===this?i=!0:i?(this.parent.insertAfter(t,a),t=a):this.parent.insertBefore(t,a);i||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let i={},a=t==null;t=t||new Map;let r=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let o=this[n];if(Array.isArray(o))i[n]=o.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof o=="object"&&o.toJSON)i[n]=o.toJSON(null,t);else if(n==="source"){let l=t.get(o.input);l==null&&(l=r,t.set(o.input,r),r++),i[n]={end:o.end,inputId:l,start:o.start}}else i[n]=o}return a&&(i.inputs=[...t.keys()].map(n=>n.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Hl){e.stringify&&(e=e.stringify);let t="";return e(this,i=>{t+=i}),t}warn(e,t,i){let a={node:this};for(let r in i)a[r]=i[r];return e.warn(t,a)}get proxyOf(){return this}};var _i=es;es.default=es;let Ul=_i,ts=class extends Ul{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Si=ts;ts.default=ts;let Gl="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Wl=(s,e=21)=>(t=e)=>{let i="",a=t;for(;a--;)i+=s[Math.random()*s.length|0];return i},Kl=(s=21)=>{let e="",t=s;for(;t--;)e+=Gl[Math.random()*64|0];return e};var ql={nanoid:Kl,customAlphabet:Wl};let{SourceMapConsumer:la,SourceMapGenerator:ca}=Ne,{existsSync:Jl,readFileSync:Zl}=Ne,{dirname:Ti,join:Xl}=Ne;function Yl(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}let is=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=t.map?t.map.prev:void 0,a=this.loadMap(t.from,i);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ti(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new la(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/;if(a.test(e)||r.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||i.test(e))return Yl(e.substr(RegExp.lastMatch.length));let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let i=e.lastIndexOf(t.pop()),a=e.indexOf("*/",i);i>-1&&a>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,a)))}loadFile(e){if(this.root=Ti(e),Jl(e))return this.mapFile=e,Zl(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let i=t(e);if(i){let a=this.loadFile(i);if(!a)throw new Error("Unable to load previous source map: "+i.toString());return a}}else{if(t instanceof la)return ca.fromSourceMap(t).toString();if(t instanceof ca)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return e&&(i=Xl(Ti(e),i)),this.loadFile(i)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Xa=is;is.default=is;let{SourceMapConsumer:Ql,SourceMapGenerator:ec}=Ne,{fileURLToPath:ma,pathToFileURL:Jt}=Ne,{isAbsolute:ss,resolve:as}=Ne,{nanoid:tc}=ql,zi=Ne,da=ws,ic=Xa,ji=Symbol("fromOffsetCache"),sc=!!(Ql&&ec),ua=!!(as&&ss),fi=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ua||/^\w+:\/\//.test(t.from)||ss(t.from)?this.file=t.from:this.file=as(t.from)),ua&&sc){let i=new ic(this.css,t);if(i.text){this.map=i;let a=i.consumer().file;!this.file&&a&&(this.file=this.mapResolve(a))}}this.file||(this.id="<input css "+tc(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,i,a={}){let r,n,o;if(t&&typeof t=="object"){let c=t,m=i;if(typeof c.offset=="number"){let u=this.fromOffset(c.offset);t=u.line,i=u.col}else t=c.line,i=c.column;if(typeof m.offset=="number"){let u=this.fromOffset(m.offset);n=u.line,o=u.col}else n=m.line,o=m.column}else if(!i){let c=this.fromOffset(t);t=c.line,i=c.col}let l=this.origin(t,i,n,o);return l?r=new da(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,a.plugin):r=new da(e,n===void 0?t:{column:i,line:t},n===void 0?i:{column:o,line:n},this.css,this.file,a.plugin),r.input={column:i,endColumn:o,endLine:n,line:t,source:this.css},this.file&&(Jt&&(r.input.url=Jt(this.file).toString()),r.input.file=this.file),r}fromOffset(e){let t,i;if(this[ji])i=this[ji];else{let r=this.css.split(`
1559
- `);i=new Array(r.length);let n=0;for(let o=0,l=r.length;o<l;o++)i[o]=n,n+=r[o].length+1;this[ji]=i}t=i[i.length-1];let a=0;if(e>=t)a=i.length-1;else{let r=i.length-2,n;for(;a<r;)if(n=a+(r-a>>1),e<i[n])r=n-1;else if(e>=i[n+1])a=n+1;else{a=n;break}}return{col:e-i[a]+1,line:a+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:as(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,a){if(!this.map)return!1;let r=this.map.consumer(),n=r.originalPositionFor({column:t,line:e});if(!n.source)return!1;let o;typeof i=="number"&&(o=r.originalPositionFor({column:a,line:i}));let l;ss(n.source)?l=Jt(n.source):l=new URL(n.source,this.map.consumer().sourceRoot||Jt(this.map.mapFile));let c={column:n.column,endColumn:o&&o.column,endLine:o&&o.line,line:n.line,url:l.toString()};if(l.protocol==="file:")if(ma)c.file=ma(l);else throw new Error("file: protocol is not available in this PostCSS build");let m=r.sourceContentFor(n.source);return m&&(c.source=m),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Ci=fi;fi.default=fi;zi&&zi.registerInput&&zi.registerInput(fi);let{SourceMapConsumer:Ya,SourceMapGenerator:li}=Ne,{dirname:ci,relative:Qa,resolve:en,sep:tn}=Ne,{pathToFileURL:ha}=Ne,ac=Ci,nc=!!(Ya&&li),rc=!!(ci&&en&&Qa&&tn),oc=class{constructor(e,t,i,a){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=a,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
1552
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(a){return a[0].toUpperCase()+a.slice(1)}class i{constructor(s){this.builder=s}atrule(s,n){let o="@"+s.name,d=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?o+=s.raws.afterName:d&&(o+=" "),s.nodes)this.block(s,o+d);else{let h=(s.raws.between||"")+(n?";":"");this.builder(o+d+h,s)}}beforeAfter(s,n){let o;s.type==="decl"?o=this.raw(s,null,"beforeDecl"):s.type==="comment"?o=this.raw(s,null,"beforeComment"):n==="before"?o=this.raw(s,null,"beforeRule"):o=this.raw(s,null,"beforeClose");let d=s.parent,h=0;for(;d&&d.type!=="root";)h+=1,d=d.parent;if(o.includes(`
1553
+ `)){let u=this.raw(s,null,"indent");if(u.length)for(let r=0;r<h;r++)o+=u}return o}block(s,n){let o=this.raw(s,"between","beforeOpen");this.builder(n+o+"{",s,"start");let d;s.nodes&&s.nodes.length?(this.body(s),d=this.raw(s,"after")):d=this.raw(s,"after","emptyBody"),d&&this.builder(d),this.builder("}",s,"end")}body(s){let n=s.nodes.length-1;for(;n>0&&s.nodes[n].type==="comment";)n-=1;let o=this.raw(s,"semicolon");for(let d=0;d<s.nodes.length;d++){let h=s.nodes[d],u=this.raw(h,"before");u&&this.builder(u),this.stringify(h,n!==d||o)}}comment(s){let n=this.raw(s,"left","commentLeft"),o=this.raw(s,"right","commentRight");this.builder("/*"+n+s.text+o+"*/",s)}decl(s,n){let o=this.raw(s,"between","colon"),d=s.prop+o+this.rawValue(s,"value");s.important&&(d+=s.raws.important||" !important"),n&&(d+=";"),this.builder(d,s)}document(s){this.body(s)}raw(s,n,o){let d;if(o||(o=n),n&&(d=s.raws[n],typeof d<"u"))return d;let h=s.parent;if(o==="before"&&(!h||h.type==="root"&&h.first===s||h&&h.type==="document"))return"";if(!h)return t[o];let u=s.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]<"u")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(s,o);{let r="raw"+e(o);this[r]?d=this[r](u,s):u.walk(m=>{if(d=m.raws[n],typeof d<"u")return!1})}return typeof d>"u"&&(d=t[o]),u.rawCache[o]=d,d}rawBeforeClose(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return n=o.raws.after,n.includes(`
1554
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(s,n){let o;return s.walkComments(d=>{if(typeof d.raws.before<"u")return o=d.raws.before,o.includes(`
1555
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(n,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(s,n){let o;return s.walkDecls(d=>{if(typeof d.raws.before<"u")return o=d.raws.before,o.includes(`
1556
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(n,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(s){let n;return s.walk(o=>{if(o.type!=="decl"&&(n=o.raws.between,typeof n<"u"))return!1}),n}rawBeforeRule(s){let n;return s.walk(o=>{if(o.nodes&&(o.parent!==s||s.first!==o)&&typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
1557
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(s){let n;return s.walkDecls(o=>{if(typeof o.raws.between<"u")return n=o.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length===0&&(n=o.raws.after,typeof n<"u"))return!1}),n}rawIndent(s){if(s.raws.indent)return s.raws.indent;let n;return s.walk(o=>{let d=o.parent;if(d&&d!==s&&d.parent&&d.parent===s&&typeof o.raws.before<"u"){let h=o.raws.before.split(`
1558
+ `);return n=h[h.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(n=o.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(s,n){let o=s[n],d=s.raws[n];return d&&d.value===o?d.raw:o}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,n){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,n)}}return ji=i,i.default=i,ji}var Vi,xa;function xi(){if(xa)return Vi;xa=1;let t=dr();function e(i,a){new t(a).stringify(i)}return Vi=e,e.default=e,Vi}var li={},wa;function Rs(){return wa||(wa=1,li.isClean=Symbol("isClean"),li.my=Symbol("my")),li}var Fi,_a;function wi(){if(_a)return Fi;_a=1;let t=Is(),e=dr(),i=xi(),{isClean:a,my:s}=Rs();function n(h,u){let r=new h.constructor;for(let m in h){if(!Object.prototype.hasOwnProperty.call(h,m)||m==="proxyCache")continue;let c=h[m],l=typeof c;m==="parent"&&l==="object"?u&&(r[m]=u):m==="source"?r[m]=c:Array.isArray(c)?r[m]=c.map(f=>n(f,r)):(l==="object"&&c!==null&&(c=n(c)),r[m]=c)}return r}function o(h,u){if(u&&typeof u.offset<"u")return u.offset;let r=1,m=1,c=0;for(let l=0;l<h.length;l++){if(m===u.line&&r===u.column){c=l;break}h[l]===`
1559
+ `?(r=1,m+=1):r+=1}return c}class d{get proxyOf(){return this}constructor(u={}){this.raws={},this[a]=!1,this[s]=!0;for(let r in u)if(r==="nodes"){this.nodes=[];for(let m of u[r])typeof m.clone=="function"?this.append(m.clone()):this.append(m)}else this[r]=u[r]}addToError(u){if(u.postcssNode=this,u.stack&&this.source&&/\n\s{4}at /.test(u.stack)){let r=this.source;u.stack=u.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return u}after(u){return this.parent.insertAfter(this,u),this}assign(u={}){for(let r in u)this[r]=u[r];return this}before(u){return this.parent.insertBefore(this,u),this}cleanRaws(u){delete this.raws.before,delete this.raws.after,u||delete this.raws.between}clone(u={}){let r=n(this);for(let m in u)r[m]=u[m];return r}cloneAfter(u={}){let r=this.clone(u);return this.parent.insertAfter(this,r),r}cloneBefore(u={}){let r=this.clone(u);return this.parent.insertBefore(this,r),r}error(u,r={}){if(this.source){let{end:m,start:c}=this.rangeBy(r);return this.source.input.error(u,{column:c.column,line:c.line},{column:m.column,line:m.line},r)}return new t(u)}getProxyProcessor(){return{get(u,r){return r==="proxyOf"?u:r==="root"?()=>u.root().toProxy():u[r]},set(u,r,m){return u[r]===m||(u[r]=m,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&u.markDirty()),!0}}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let u=this;for(;u=u.parent;)u[a]=!1}}next(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u+1]}positionBy(u={}){let r=this.source.start;if(u.index)r=this.positionInside(u.index);else if(u.word){let m="document"in this.source.input?this.source.input.document:this.source.input.css,l=m.slice(o(m,this.source.start),o(m,this.source.end)).indexOf(u.word);l!==-1&&(r=this.positionInside(l))}return r}positionInside(u){let r=this.source.start.column,m=this.source.start.line,c="document"in this.source.input?this.source.input.document:this.source.input.css,l=o(c,this.source.start),f=l+u;for(let p=l;p<f;p++)c[p]===`
1560
+ `?(r=1,m+=1):r+=1;return{column:r,line:m,offset:f}}prev(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u-1]}rangeBy(u={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,m={column:this.source.start.column,line:this.source.start.line,offset:o(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:o(r,this.source.end)+1}:{column:m.column+1,line:m.line,offset:m.offset+1};if(u.word){let f=r.slice(o(r,this.source.start),o(r,this.source.end)).indexOf(u.word);f!==-1&&(m=this.positionInside(f),c=this.positionInside(f+u.word.length))}else u.start?m={column:u.start.column,line:u.start.line,offset:o(r,u.start)}:u.index&&(m=this.positionInside(u.index)),u.end?c={column:u.end.column,line:u.end.line,offset:o(r,u.end)}:typeof u.endIndex=="number"?c=this.positionInside(u.endIndex):u.index&&(c=this.positionInside(u.index+1));return(c.line<m.line||c.line===m.line&&c.column<=m.column)&&(c={column:m.column+1,line:m.line,offset:m.offset+1}),{end:c,start:m}}raw(u,r){return new e().raw(this,u,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...u){if(this.parent){let r=this,m=!1;for(let c of u)c===this?m=!0:m?(this.parent.insertAfter(r,c),r=c):this.parent.insertBefore(r,c);m||this.remove()}return this}root(){let u=this;for(;u.parent&&u.parent.type!=="document";)u=u.parent;return u}toJSON(u,r){let m={},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 p=this[f];if(Array.isArray(p))m[f]=p.map(N=>typeof N=="object"&&N.toJSON?N.toJSON(null,r):N);else if(typeof p=="object"&&p.toJSON)m[f]=p.toJSON(null,r);else if(f==="source"){if(p==null)continue;let N=r.get(p.input);N==null&&(N=l,r.set(p.input,l),l++),m[f]={end:p.end,inputId:N,start:p.start}}else m[f]=p}return c&&(m.inputs=[...r.keys()].map(f=>f.toJSON())),m}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(u=i){u.stringify&&(u=u.stringify);let r="";return u(this,m=>{r+=m}),r}warn(u,r,m={}){let c={node:this};for(let l in m)c[l]=m[l];return u.warn(r,c)}}return Fi=d,d.default=d,Fi}var Hi,Sa;function _i(){if(Sa)return Hi;Sa=1;let t=wi();class e extends t{constructor(a){super(a),this.type="comment"}}return Hi=e,e.default=e,Hi}var qi,Ca;function Si(){if(Ca)return qi;Ca=1;let t=wi();class e extends t{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(a){a&&typeof a.value<"u"&&typeof a.value!="string"&&(a={...a,value:String(a.value)}),super(a),this.type="decl"}}return qi=e,e.default=e,qi}var Ui,Aa;function ht(){if(Aa)return Ui;Aa=1;let t=_i(),e=Si(),i=wi(),{isClean:a,my:s}=Rs(),n,o,d,h;function u(c){return c.map(l=>(l.nodes&&(l.nodes=u(l.nodes)),delete l.source,l))}function r(c){if(c[a]=!1,c.proxyOf.nodes)for(let l of c.proxyOf.nodes)r(l)}class m extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...l){for(let f of l){let p=this.normalize(f,this.last);for(let N of p)this.proxyOf.nodes.push(N)}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(),p,N;for(;this.indexes[f]<this.proxyOf.nodes.length&&(p=this.indexes[f],N=l(this.proxyOf.nodes[p],p),N!==!1);)this.indexes[f]+=1;return delete this.indexes[f],N}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")?(...p)=>l[f](...p.map(N=>typeof N=="function"?(x,w)=>N(x.toProxy(),w):N)):f==="every"||f==="some"?p=>l[f]((N,...x)=>p(N.toProxy(),...x)):f==="root"?()=>l.root().toProxy():f==="nodes"?l.nodes.map(p=>p.toProxy()):f==="first"||f==="last"?l[f].toProxy():l[f]:l[f]},set(l,f,p){return l[f]===p||(l[f]=p,(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 p=this.index(l),N=this.normalize(f,this.proxyOf.nodes[p]).reverse();p=this.index(l);for(let w of N)this.proxyOf.nodes.splice(p+1,0,w);let x;for(let w in this.indexes)x=this.indexes[w],p<x&&(this.indexes[w]=x+N.length);return this.markDirty(),this}insertBefore(l,f){let p=this.index(l),N=p===0?"prepend":!1,x=this.normalize(f,this.proxyOf.nodes[p],N).reverse();p=this.index(l);for(let v of x)this.proxyOf.nodes.splice(p,0,v);let w;for(let v in this.indexes)w=this.indexes[v],p<=w&&(this.indexes[v]=w+x.length);return this.markDirty(),this}normalize(l,f){if(typeof l=="string")l=u(o(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let N of l)N.parent&&N.parent.removeChild(N,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let N of l)N.parent&&N.parent.removeChild(N,"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 h(l)];else if(l.name)l=[new n(l)];else if(l.text)l=[new t(l)];else throw new Error("Unknown node type in node creation");return l.map(N=>(N[s]||m.rebuild(N),N=N.proxyOf,N.parent&&N.parent.removeChild(N),N[a]&&r(N),N.raws||(N.raws={}),typeof N.raws.before>"u"&&f&&typeof f.raws.before<"u"&&(N.raws.before=f.raws.before.replace(/\S/g,"")),N.parent=this.proxyOf,N))}prepend(...l){l=l.reverse();for(let f of l){let p=this.normalize(f,this.first,"prepend").reverse();for(let N of p)this.proxyOf.nodes.unshift(N);for(let N in this.indexes)this.indexes[N]=this.indexes[N]+p.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 p in this.indexes)f=this.indexes[p],f>=l&&(this.indexes[p]=f-1);return this.markDirty(),this}replaceValues(l,f,p){return p||(p=f,f={}),this.walkDecls(N=>{f.props&&!f.props.includes(N.prop)||f.fast&&!N.value.includes(f.fast)||(N.value=N.value.replace(l,p))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((f,p)=>{let N;try{N=l(f,p)}catch(x){throw f.addToError(x)}return N!==!1&&f.walk&&(N=f.walk(l)),N})}walkAtRules(l,f){return f?l instanceof RegExp?this.walk((p,N)=>{if(p.type==="atrule"&&l.test(p.name))return f(p,N)}):this.walk((p,N)=>{if(p.type==="atrule"&&p.name===l)return f(p,N)}):(f=l,this.walk((p,N)=>{if(p.type==="atrule")return f(p,N)}))}walkComments(l){return this.walk((f,p)=>{if(f.type==="comment")return l(f,p)})}walkDecls(l,f){return f?l instanceof RegExp?this.walk((p,N)=>{if(p.type==="decl"&&l.test(p.prop))return f(p,N)}):this.walk((p,N)=>{if(p.type==="decl"&&p.prop===l)return f(p,N)}):(f=l,this.walk((p,N)=>{if(p.type==="decl")return f(p,N)}))}walkRules(l,f){return f?l instanceof RegExp?this.walk((p,N)=>{if(p.type==="rule"&&l.test(p.selector))return f(p,N)}):this.walk((p,N)=>{if(p.type==="rule"&&p.selector===l)return f(p,N)}):(f=l,this.walk((p,N)=>{if(p.type==="rule")return f(p,N)}))}}return m.registerParse=c=>{o=c},m.registerRule=c=>{h=c},m.registerAtRule=c=>{n=c},m.registerRoot=c=>{d=c},Ui=m,m.default=m,m.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,n.prototype):c.type==="rule"?Object.setPrototypeOf(c,h.prototype):c.type==="decl"?Object.setPrototypeOf(c,e.prototype):c.type==="comment"?Object.setPrototypeOf(c,t.prototype):c.type==="root"&&Object.setPrototypeOf(c,d.prototype),c[s]=!0,c.nodes&&c.nodes.forEach(l=>{m.rebuild(l)})},Ui}var Wi,Ea;function Ls(){if(Ea)return Wi;Ea=1;let t=ht();class e extends t{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}}return Wi=e,e.default=e,t.registerAtRule(e),Wi}var Gi,ka;function Ps(){if(ka)return Gi;ka=1;let t=ht(),e,i;class a extends t{constructor(n){super({type:"document",...n}),this.nodes||(this.nodes=[])}toResult(n={}){return new e(new i,this,n).stringify()}}return a.registerLazyResult=s=>{e=s},a.registerProcessor=s=>{i=s},Gi=a,a.default=a,Gi}var Ki,Oa;function Vl(){if(Oa)return Ki;Oa=1;let t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ki={nanoid:(a=21)=>{let s="",n=a|0;for(;n--;)s+=t[Math.random()*64|0];return s},customAlphabet:(a,s=21)=>(n=s)=>{let o="",d=n|0;for(;d--;)o+=a[Math.random()*a.length|0];return o}},Ki}var Ji,Ma;function ur(){if(Ma)return Ji;Ma=1;let{existsSync:t,readFileSync:e}=Ie,{dirname:i,join:a}=Ie,{SourceMapConsumer:s,SourceMapGenerator:n}=Ie;function o(h){return Buffer?Buffer.from(h,"base64").toString():window.atob(h)}class d{constructor(u,r){if(r.map===!1)return;this.loadAnnotation(u),this.inline=this.startWith(this.annotation,"data:");let m=r.map?r.map.prev:void 0,c=this.loadMap(r.from,m);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=i(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(u){let r=/^data:application\/json;charset=utf-?8;base64,/,m=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/,f=u.match(c)||u.match(l);if(f)return decodeURIComponent(u.substr(f[0].length));let p=u.match(r)||u.match(m);if(p)return o(u.substr(p[0].length));let N=u.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+N)}getAnnotationURL(u){return u.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(u){return typeof u!="object"?!1:typeof u.mappings=="string"||typeof u._mappings=="string"||Array.isArray(u.sections)}loadAnnotation(u){let r=u.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let m=u.lastIndexOf(r.pop()),c=u.indexOf("*/",m);m>-1&&c>-1&&(this.annotation=this.getAnnotationURL(u.substring(m,c)))}loadFile(u){if(this.root=i(u),t(u))return this.mapFile=u,e(u,"utf-8").toString().trim()}loadMap(u,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let m=r(u);if(m){let c=this.loadFile(m);if(!c)throw new Error("Unable to load previous source map: "+m.toString());return c}}else{if(r instanceof s)return n.fromSourceMap(r).toString();if(r instanceof n)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 m=this.annotation;return u&&(m=a(i(u),m)),this.loadFile(m)}}}startWith(u,r){return u?u.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Ji=d,d.default=d,Ji}var Zi,Ia;function Ci(){if(Ia)return Zi;Ia=1;let{nanoid:t}=Vl(),{isAbsolute:e,resolve:i}=Ie,{SourceMapConsumer:a,SourceMapGenerator:s}=Ie,{fileURLToPath:n,pathToFileURL:o}=Ie,d=Is(),h=ur(),u=Ie,r=Symbol("lineToIndexCache"),m=!!(a&&s),c=!!(i&&e);function l(p){if(p[r])return p[r];let N=p.css.split(`
1561
+ `),x=new Array(N.length),w=0;for(let v=0,y=N.length;v<y;v++)x[v]=w,w+=N[v].length+1;return p[r]=x,x}class f{get from(){return this.file||this.id}constructor(N,x={}){if(N===null||typeof N>"u"||typeof N=="object"&&!N.toString)throw new Error(`PostCSS received ${N} instead of CSS string`);if(this.css=N.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,x.document&&(this.document=x.document.toString()),x.from&&(!c||/^\w+:\/\//.test(x.from)||e(x.from)?this.file=x.from:this.file=i(x.from)),c&&m){let w=new h(this.css,x);if(w.text){this.map=w;let v=w.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+t(6)+">"),this.map&&(this.map.file=this.from)}error(N,x,w,v={}){let y,b,_,C,I;if(x&&typeof x=="object"){let E=x,H=w;if(typeof E.offset=="number"){C=E.offset;let V=this.fromOffset(C);x=V.line,w=V.col}else x=E.line,w=E.column,C=this.fromLineAndColumn(x,w);if(typeof H.offset=="number"){_=H.offset;let V=this.fromOffset(_);b=V.line,y=V.col}else b=H.line,y=H.column,_=this.fromLineAndColumn(H.line,H.column)}else if(w)C=this.fromLineAndColumn(x,w);else{C=x;let E=this.fromOffset(C);x=E.line,w=E.col}let P=this.origin(x,w,b,y);return P?I=new d(N,P.endLine===void 0?P.line:{column:P.column,line:P.line},P.endLine===void 0?P.column:{column:P.endColumn,line:P.endLine},P.source,P.file,v.plugin):I=new d(N,b===void 0?x:{column:w,line:x},b===void 0?w:{column:y,line:b},this.css,this.file,v.plugin),I.input={column:w,endColumn:y,endLine:b,endOffset:_,line:x,offset:C,source:this.css},this.file&&(o&&(I.input.url=o(this.file).toString()),I.input.file=this.file),I}fromLineAndColumn(N,x){return l(this)[N-1]+x-1}fromOffset(N){let x=l(this),w=x[x.length-1],v=0;if(N>=w)v=x.length-1;else{let y=x.length-2,b;for(;v<y;)if(b=v+(y-v>>1),N<x[b])y=b-1;else if(N>=x[b+1])v=b+1;else{v=b;break}}return{col:N-x[v]+1,line:v+1}}mapResolve(N){return/^\w+:\/\//.test(N)?N:i(this.map.consumer().sourceRoot||this.map.root||".",N)}origin(N,x,w,v){if(!this.map)return!1;let y=this.map.consumer(),b=y.originalPositionFor({column:x,line:N});if(!b.source)return!1;let _;typeof w=="number"&&(_=y.originalPositionFor({column:v,line:w}));let C;e(b.source)?C=o(b.source):C=new URL(b.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let I={column:b.column,endColumn:_&&_.column,endLine:_&&_.line,line:b.line,url:C.toString()};if(C.protocol==="file:")if(n)I.file=n(C);else throw new Error("file: protocol is not available in this PostCSS build");let P=y.sourceContentFor(b.source);return P&&(I.source=P),I}toJSON(){let N={};for(let x of["hasBOM","css","file","id"])this[x]!=null&&(N[x]=this[x]);return this.map&&(N.map={...this.map},N.map.consumerCache&&(N.map.consumerCache=void 0)),N}}return Zi=f,f.default=f,u&&u.registerInput&&u.registerInput(f),Zi}var Xi,Ra;function Zt(){if(Ra)return Xi;Ra=1;let t=ht(),e,i;class a extends t{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[])}normalize(n,o,d){let h=super.normalize(n);if(o){if(d==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let u of h)u.raws.before=o.raws.before}return h}removeChild(n,o){let d=this.index(n);return!o&&d===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[d].raws.before),super.removeChild(n)}toResult(n={}){return new e(new i,this,n).stringify()}}return a.registerLazyResult=s=>{e=s},a.registerProcessor=s=>{i=s},Xi=a,a.default=a,t.registerRoot(a),Xi}var Yi,La;function hr(){if(La)return Yi;La=1;let t={comma(e){return t.split(e,[","],!0)},space(e){let i=[" ",`
1562
+ `," "];return t.split(e,i)},split(e,i,a){let s=[],n="",o=!1,d=0,h=!1,u="",r=!1;for(let m of e)r?r=!1:m==="\\"?r=!0:h?m===u&&(h=!1):m==='"'||m==="'"?(h=!0,u=m):m==="("?d+=1:m===")"?d>0&&(d-=1):d===0&&i.includes(m)&&(o=!0),o?(n!==""&&s.push(n.trim()),n="",o=!1):n+=m;return(a||n!=="")&&s.push(n.trim()),s}};return Yi=t,t.default=t,Yi}var Qi,Pa;function $s(){if(Pa)return Qi;Pa=1;let t=ht(),e=hr();class i extends t{get selectors(){return e.comma(this.selector)}set selectors(s){let n=this.selector?this.selector.match(/,\s*/):null,o=n?n[0]:","+this.raw("between","beforeOpen");this.selector=s.join(o)}constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}}return Qi=i,i.default=i,t.registerRule(i),Qi}var es,$a;function Fl(){if($a)return es;$a=1;let t=Ls(),e=_i(),i=Si(),a=Ci(),s=ur(),n=Zt(),o=$s();function d(h,u){if(Array.isArray(h))return h.map(c=>d(c));let{inputs:r,...m}=h;if(r){u=[];for(let c of r){let l={...c,__proto__:a.prototype};l.map&&(l.map={...l.map,__proto__:s.prototype}),u.push(l)}}if(m.nodes&&(m.nodes=h.nodes.map(c=>d(c,u))),m.source){let{inputId:c,...l}=m.source;m.source=l,c!=null&&(m.source.input=u[c])}if(m.type==="root")return new n(m);if(m.type==="decl")return new i(m);if(m.type==="rule")return new o(m);if(m.type==="comment")return new e(m);if(m.type==="atrule")return new t(m);throw new Error("Unknown node type: "+h.type)}return es=d,d.default=d,es}var ts,Da;function fr(){if(Da)return ts;Da=1;let{dirname:t,relative:e,resolve:i,sep:a}=Ie,{SourceMapConsumer:s,SourceMapGenerator:n}=Ie,{pathToFileURL:o}=Ie,d=Ci(),h=!!(s&&n),u=!!(t&&i&&e&&a);class r{constructor(c,l,f,p){this.stringify=c,this.mapOpts=f.map||{},this.root=l,this.opts=f,this.css=p,this.originalCSS=p,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=`
1560
1563
  `;this.css.includes(`\r
1561
- `)&&(t=`\r
1562
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||ci(e.file),a;this.mapOpts.sourcesContent===!1?(a=new Ya(e.text),a.sourcesContent&&(a.sourcesContent=a.sourcesContent.map(()=>null))):a=e.consumer(),this.map.applySourceMap(a,t,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),rc&&nc&&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=li.fromSourceMap(e)}else this.map=new li({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new li({file:this.outputFile()});let e=1,t=1,i="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},r,n;this.stringify(this.root,(o,l,c)=>{if(this.css+=o,l&&c!=="end"&&(a.generated.line=e,a.generated.column=t-1,l.source&&l.source.start?(a.source=this.sourcePath(l),a.original.line=l.source.start.line,a.original.column=l.source.start.column-1,this.map.addMapping(a)):(a.source=i,a.original.line=1,a.original.column=0,this.map.addMapping(a))),r=o.match(/\n/g),r?(e+=r.length,n=o.lastIndexOf(`
1563
- `),t=o.length-n):t+=o.length,l&&c!=="start"){let m=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==m.last||m.raws.semicolon)&&(l.source&&l.source.end?(a.source=this.sourcePath(l),a.original.line=l.source.end.line,a.original.column=l.source.end.column-1,a.generated.line=e,a.generated.column=t-2,this.map.addMapping(a)):(a.source=i,a.original.line=1,a.original.column=0,a.generated.line=e,a.generated.column=t-1,this.map.addMapping(a)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?ci(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=ci(en(i,this.mapOpts.annotation)));let a=Qa(i,e);return this.memoizedPaths.set(e,a),a}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 ac(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let a=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(a,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(ha){let i=ha(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;tn==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var sn=oc;let lc=_i,ns=class extends lc{constructor(e){super(e),this.type="comment"}};var Ei=ns;ns.default=ns;let{isClean:an,my:nn}=Ft,rn=Si,on=Ei,cc=_i,ln,_s,Ss,cn;function mn(s){return s.map(e=>(e.nodes&&(e.nodes=mn(e.nodes)),delete e.source,e))}function dn(s){if(s[an]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)dn(e)}let ke=class un extends cc{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let a of i)this.proxyOf.nodes.push(a)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),i,a;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],a=e(this.proxyOf.nodes[i],i),a!==!1);)this.indexes[t]+=1;return delete this.indexes[t],a}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...i)=>e[t](...i.map(a=>typeof a=="function"?(r,n)=>a(r.toProxy(),n):a)):t==="every"||t==="some"?i=>e[t]((a,...r)=>i(a.toProxy(),...r)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let i=this.index(e),a=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let n of a)this.proxyOf.nodes.splice(i+1,0,n);let r;for(let n in this.indexes)r=this.indexes[n],i<r&&(this.indexes[n]=r+a.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),a=i===0?"prepend":!1,r=this.normalize(t,this.proxyOf.nodes[i],a).reverse();i=this.index(e);for(let o of r)this.proxyOf.nodes.splice(i,0,o);let n;for(let o in this.indexes)n=this.indexes[o],i<=n&&(this.indexes[o]=n+r.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=mn(ln(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let a of e)a.parent&&a.parent.removeChild(a,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let a of e)a.parent&&a.parent.removeChild(a,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new rn(e)]}else if(e.selector)e=[new _s(e)];else if(e.name)e=[new Ss(e)];else if(e.text)e=[new on(e)];else throw new Error("Unknown node type in node creation");return e.map(a=>(a[nn]||un.rebuild(a),a=a.proxyOf,a.parent&&a.parent.removeChild(a),a[an]&&dn(a),typeof a.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(a.raws.before=t.raws.before.replace(/\S/g,"")),a.parent=this.proxyOf,a))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let a of i)this.proxyOf.nodes.unshift(a);for(let a in this.indexes)this.indexes[a]=this.indexes[a]+i.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(a=>{t.props&&!t.props.includes(a.prop)||t.fast&&!a.value.includes(t.fast)||(a.value=a.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let a;try{a=e(t,i)}catch(r){throw t.addToError(r)}return a!==!1&&t.walk&&(a=t.walk(e)),a})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,a)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,a)}):this.walk((i,a)=>{if(i.type==="atrule"&&i.name===e)return t(i,a)}):(t=e,this.walk((i,a)=>{if(i.type==="atrule")return t(i,a)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,a)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,a)}):this.walk((i,a)=>{if(i.type==="decl"&&i.prop===e)return t(i,a)}):(t=e,this.walk((i,a)=>{if(i.type==="decl")return t(i,a)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,a)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,a)}):this.walk((i,a)=>{if(i.type==="rule"&&i.selector===e)return t(i,a)}):(t=e,this.walk((i,a)=>{if(i.type==="rule")return t(i,a)}))}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]}};ke.registerParse=s=>{ln=s};ke.registerRule=s=>{_s=s};ke.registerAtRule=s=>{Ss=s};ke.registerRoot=s=>{cn=s};var We=ke;ke.default=ke;ke.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,Ss.prototype):s.type==="rule"?Object.setPrototypeOf(s,_s.prototype):s.type==="decl"?Object.setPrototypeOf(s,rn.prototype):s.type==="comment"?Object.setPrototypeOf(s,on.prototype):s.type==="root"&&Object.setPrototypeOf(s,cn.prototype),s[nn]=!0,s.nodes&&s.nodes.forEach(e=>{ke.rebuild(e)})};let mc=We,hn,fn,Mt=class extends mc{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new hn(new fn,this,e).stringify()}};Mt.registerLazyResult=s=>{hn=s};Mt.registerProcessor=s=>{fn=s};var Cs=Mt;Mt.default=Mt;let rs=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var pn=rs;rs.default=rs;let dc=pn,os=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new dc(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Es=os;os.default=os;const Vi=39,fa=34,Zt=92,pa=47,Xt=10,bt=32,Yt=12,Qt=9,ei=13,uc=91,hc=93,fc=40,pc=41,gc=123,Nc=125,bc=59,vc=42,yc=58,xc=64,ti=/[\t\n\f\r "#'()/;[\\\]{}]/g,ii=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,wc=/.[\r\n"'(/\\]/,ga=/[\da-f]/i;var _c=function(e,t={}){let i=e.css.valueOf(),a=t.ignoreErrors,r,n,o,l,c,m,u,h,g,_,y=i.length,f=0,A=[],M=[];function I(){return f}function x(P){throw e.error("Unclosed "+P,f)}function E(){return M.length===0&&f>=y}function $(P){if(M.length)return M.pop();if(f>=y)return;let O=P?P.ignoreUnclosed:!1;switch(r=i.charCodeAt(f),r){case Xt:case bt:case Qt:case ei:case Yt:{n=f;do n+=1,r=i.charCodeAt(n);while(r===bt||r===Xt||r===Qt||r===ei||r===Yt);_=["space",i.slice(f,n)],f=n-1;break}case uc:case hc:case gc:case Nc:case yc:case bc:case pc:{let T=String.fromCharCode(r);_=[T,T,f];break}case fc:{if(h=A.length?A.pop()[1]:"",g=i.charCodeAt(f+1),h==="url"&&g!==Vi&&g!==fa&&g!==bt&&g!==Xt&&g!==Qt&&g!==Yt&&g!==ei){n=f;do{if(m=!1,n=i.indexOf(")",n+1),n===-1)if(a||O){n=f;break}else x("bracket");for(u=n;i.charCodeAt(u-1)===Zt;)u-=1,m=!m}while(m);_=["brackets",i.slice(f,n+1),f,n],f=n}else n=i.indexOf(")",f+1),l=i.slice(f,n+1),n===-1||wc.test(l)?_=["(","(",f]:(_=["brackets",l,f,n],f=n);break}case Vi:case fa:{o=r===Vi?"'":'"',n=f;do{if(m=!1,n=i.indexOf(o,n+1),n===-1)if(a||O){n=f+1;break}else x("string");for(u=n;i.charCodeAt(u-1)===Zt;)u-=1,m=!m}while(m);_=["string",i.slice(f,n+1),f,n],f=n;break}case xc:{ti.lastIndex=f+1,ti.test(i),ti.lastIndex===0?n=i.length-1:n=ti.lastIndex-2,_=["at-word",i.slice(f,n+1),f,n],f=n;break}case Zt:{for(n=f,c=!0;i.charCodeAt(n+1)===Zt;)n+=1,c=!c;if(r=i.charCodeAt(n+1),c&&r!==pa&&r!==bt&&r!==Xt&&r!==Qt&&r!==ei&&r!==Yt&&(n+=1,ga.test(i.charAt(n)))){for(;ga.test(i.charAt(n+1));)n+=1;i.charCodeAt(n+1)===bt&&(n+=1)}_=["word",i.slice(f,n+1),f,n],f=n;break}default:{r===pa&&i.charCodeAt(f+1)===vc?(n=i.indexOf("*/",f+2)+1,n===0&&(a||O?n=i.length:x("comment")),_=["comment",i.slice(f,n+1),f,n],f=n):(ii.lastIndex=f+1,ii.test(i),ii.lastIndex===0?n=i.length-1:n=ii.lastIndex-2,_=["word",i.slice(f,n+1),f,n],A.push(_),f=n);break}}return f++,_}function R(P){M.push(P)}return{back:R,endOfFile:E,nextToken:$,position:I}};let gn=We,pi=class extends gn{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var As=pi;pi.default=pi;gn.registerAtRule(pi);let Nn=We,bn,vn,lt=class extends Nn{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let a=super.normalize(e);if(t){if(i==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let r of a)r.raws.before=t.raws.before}return a}removeChild(e,t){let i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new bn(new vn,this,e).stringify()}};lt.registerLazyResult=s=>{bn=s};lt.registerProcessor=s=>{vn=s};var Ht=lt;lt.default=lt;Nn.registerRoot(lt);let It={comma(s){return It.split(s,[","],!0)},space(s){let e=[" ",`
1564
- `," "];return It.split(s,e)},split(s,e,t){let i=[],a="",r=!1,n=0,o=!1,l="",c=!1;for(let m of s)c?c=!1:m==="\\"?c=!0:o?m===l&&(o=!1):m==='"'||m==="'"?(o=!0,l=m):m==="("?n+=1:m===")"?n>0&&(n-=1):n===0&&e.includes(m)&&(r=!0),r?(a!==""&&i.push(a.trim()),a="",r=!1):a+=m;return(t||a!=="")&&i.push(a.trim()),i}};var yn=It;It.default=It;let xn=We,Sc=yn,gi=class extends xn{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Sc.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var ks=gi;gi.default=gi;xn.registerRule(gi);let Cc=Si,Ec=_c,Ac=Ei,kc=As,$c=Ht,Na=ks;const ba={empty:!0,space:!0};function Oc(s){for(let e=s.length-1;e>=0;e--){let t=s[e],i=t[3]||t[2];if(i)return i}}let Mc=class{constructor(e){this.input=e,this.root=new $c,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new kc;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,a,r,n=!1,o=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?c.push(i==="("?")":"]"):i==="{"&&c.length>0?c.push("}"):i===c[c.length-1]&&c.pop(),c.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){o=!0;break}else if(i==="}"){if(l.length>0){for(r=l.length-1,a=l[r];a&&a[0]==="space";)a=l[--r];a&&(t.source.end=this.getPosition(a[3]||a[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),n&&(e=l[l.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=""),o&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,a;for(let r=t-1;r>=0&&(a=e[r],!(a[0]!=="space"&&(i+=1,i===2)));r--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(e){let t=0,i,a,r;for(let[n,o]of e.entries()){if(i=o,a=i[0],a==="("&&(t+=1),a===")"&&(t-=1),t===0&&a===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return n}r=i}return!1}comment(e){let t=new Ac;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let a=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=a[2],t.raws.left=a[1],t.raws.right=a[3]}}createTokenizer(){this.tokenizer=Ec(this.input)}decl(e,t){let i=new Cc;this.init(i,e[0][2]);let a=e[e.length-1];for(a[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(a[3]||a[2]||Oc(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let r;for(;e.length;)if(r=e.shift(),r[0]===":"){i.raws.between+=r[1];break}else r[0]==="word"&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let n=[],o;for(;e.length&&(o=e[0][0],!(o!=="space"&&o!=="comment"));)n.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(r=e[c],r[1].toLowerCase()==="!important"){i.important=!0;let m=this.stringFrom(e,c);m=this.spacesFromEnd(e)+m,m!==" !important"&&(i.raws.important=m);break}else if(r[1].toLowerCase()==="important"){let m=e.slice(0),u="";for(let h=c;h>0;h--){let g=m[h][0];if(u.trim().indexOf("!")===0&&g!=="space")break;u=m.pop()[1]+u}u.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=u,e=m)}if(r[0]!=="space"&&r[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(i.raws.between+=n.map(c=>c[1]).join(""),n=[]),this.raw(i,"value",n.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Na;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,i=null,a=!1,r=null,n=[],o=e[1].startsWith("--"),l=[],c=e;for(;c;){if(i=c[0],l.push(c),i==="("||i==="[")r||(r=c),n.push(i==="("?")":"]");else if(o&&a&&i==="{")r||(r=c),n.push("}");else if(n.length===0)if(i===";")if(a){this.decl(l,o);return}else break;else if(i==="{"){this.rule(l);return}else if(i==="}"){this.tokenizer.back(l.pop()),t=!0;break}else i===":"&&(a=!0);else i===n[n.length-1]&&(n.pop(),n.length===0&&(r=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(r),t&&a){if(!o)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,o)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,i,a){let r,n,o=i.length,l="",c=!0,m,u;for(let h=0;h<o;h+=1)r=i[h],n=r[0],n==="space"&&h===o-1&&!a?c=!1:n==="comment"?(u=i[h-1]?i[h-1][0]:"empty",m=i[h+1]?i[h+1][0]:"empty",!ba[u]&&!ba[m]?l.slice(-1)===","?c=!1:l+=r[1]:c=!1):l+=r[1];if(!c){let h=i.reduce((g,_)=>g+_[1],"");e.raws[t]={raw:h,value:l}}e[t]=l}rule(e){e.pop();let t=new Na;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let a=t;a<e.length;a++)i+=e[a][1];return e.splice(t,e.length-t),i}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Ic=Mc;let Rc=We,Lc=Ic,Pc=Ci;function Ni(s,e){let t=new Pc(s,e),i=new Lc(t);try{i.parse()}catch(a){throw a}return i.root}var $s=Ni;Ni.default=Ni;Rc.registerParse(Ni);let{isClean:xe,my:Dc}=Ft,Bc=sn,Tc=wi,zc=We,jc=Cs,va=Es,Vc=$s,Fc=Ht;const Hc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Uc={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},Gc={Once:!0,postcssPlugin:!0,prepare:!0},ct=0;function vt(s){return typeof s=="object"&&typeof s.then=="function"}function wn(s){let e=!1,t=Hc[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,ct,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,ct,t+"Exit"]:[t,t+"Exit"]}function ya(s){let e;return s.type==="document"?e=["Document",ct,"DocumentExit"]:s.type==="root"?e=["Root",ct,"RootExit"]:e=wn(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function ls(s){return s[xe]=!1,s.nodes&&s.nodes.forEach(e=>ls(e)),s}let cs={},mt=class _n{constructor(e,t,i){this.stringified=!1,this.processed=!1;let a;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))a=ls(t);else if(t instanceof _n||t instanceof va)a=ls(t.root),t.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let r=Vc;i.syntax&&(r=i.syntax.parse),i.parser&&(r=i.parser),r.parse&&(r=r.parse);try{a=r(t,i)}catch(n){this.processed=!0,this.error=n}a&&!a[Dc]&&zc.rebuild(a)}this.result=new va(e,a,i),this.helpers={...cs,postcss:cs,result:this.result},this.plugins=this.processor.plugins.map(r=>typeof r=="object"&&r.prepare?{...r,...r.prepare(this.result)}:r)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let i=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=i.postcssPlugin,e.setMessage()):i.postcssVersion}catch(a){console&&console.error&&console.error(a)}return e}prepareVisitors(){this.listeners={};let e=(t,i,a)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,a])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!Uc[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Gc[i])if(typeof t[i]=="object")for(let a in t[i])a==="*"?e(t,i,t[i][a]):e(t,i+"-"+a.toLowerCase(),t[i][a]);else typeof t[i]=="function"&&e(t,i,t[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],i=this.runOnRoot(t);if(vt(i))try{await i}catch(a){throw this.handleError(a)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[xe];){e[xe]=!0;let t=[ya(e)];for(;t.length>0;){let i=this.visitTick(t);if(vt(i))try{await i}catch(a){let r=t[t.length-1].node;throw this.handleError(a,r)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let a=e.nodes.map(r=>i(r,this.helpers));await Promise.all(a)}else await i(e,this.helpers)}catch(a){throw this.handleError(a)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(i=>e.Once(i,this.helpers));return vt(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Tc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let a=new Bc(t,this.result.root,this.result.opts).generate();return this.result.css=a[0],this.result.map=a[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(vt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[xe];)e[xe]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[i,a]of e){this.result.lastPlugin=i;let r;try{r=a(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(vt(r))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:a}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(a.length>0&&t.visitorIndex<a.length){let[n,o]=a[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===a.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return o(i.toProxy(),this.helpers)}catch(l){throw this.handleError(l,i)}}if(t.iterator!==0){let n=t.iterator,o;for(;o=i.nodes[i.indexes[n]];)if(i.indexes[n]+=1,!o[xe]){o[xe]=!0,e.push(ya(o));return}t.iterator=0,delete i.indexes[n]}let r=t.events;for(;t.eventIndex<r.length;){let n=r[t.eventIndex];if(t.eventIndex+=1,n===ct){i.nodes&&i.nodes.length&&(i[xe]=!0,t.iterator=i.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[xe]=!0;let t=wn(e);for(let i of t)if(i===ct)e.nodes&&e.each(a=>{a[xe]||this.walkSync(a)});else{let a=this.listeners[i];if(a&&this.visitSync(a,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};mt.registerPostcss=s=>{cs=s};var Sn=mt;mt.default=mt;Fc.registerLazyResult(mt);jc.registerLazyResult(mt);let Wc=sn,Kc=wi,qc=$s;const Jc=Es;let ms=class{constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let a,r=Kc;this.result=new Jc(this._processor,a,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let o=new Wc(r,a,this._opts,t);if(o.isMap()){let[l,c]=o.generate();l&&(this.result.css=l),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=qc;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Zc=ms;ms.default=ms;let Xc=Zc,Yc=Sn,Qc=Cs,em=Ht,Rt=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length===0&&typeof t.parser>"u"&&typeof t.stringifier>"u"&&typeof t.syntax>"u"?new Xc(this,e,t):new Yc(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var tm=Rt;Rt.default=Rt;em.registerProcessor(Rt);Qc.registerProcessor(Rt);let im=Si,sm=Xa,am=Ei,nm=As,rm=Ci,om=Ht,lm=ks;function Lt(s,e){if(Array.isArray(s))return s.map(a=>Lt(a));let{inputs:t,...i}=s;if(t){e=[];for(let a of t){let r={...a,__proto__:rm.prototype};r.map&&(r.map={...r.map,__proto__:sm.prototype}),e.push(r)}}if(i.nodes&&(i.nodes=s.nodes.map(a=>Lt(a,e))),i.source){let{inputId:a,...r}=i.source;i.source=r,a!=null&&(i.source.input=e[a])}if(i.type==="root")return new om(i);if(i.type==="decl")return new im(i);if(i.type==="rule")return new lm(i);if(i.type==="comment")return new am(i);if(i.type==="atrule")return new nm(i);throw new Error("Unknown node type: "+s.type)}var cm=Lt;Lt.default=Lt;var xa={};let mm=ws,Cn=Si,dm=Sn,um=We,Os=tm,hm=wi,fm=cm,En=Cs,pm=pn,An=Ei,kn=As,gm=Es,Nm=Ci,bm=$s,vm=yn,$n=ks,On=Ht,ym=_i;function L(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new Os(s)}L.plugin=function(e,t){let i=!1;function a(...n){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
1565
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),xa.LANG&&xa.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
1566
- https://www.w3ctech.com/topic/2226`));let o=t(...n);return o.postcssPlugin=e,o.postcssVersion=new Os().version,o}let r;return Object.defineProperty(a,"postcss",{get(){return r||(r=a()),r}}),a.process=function(n,o,l){return L([a(l)]).process(n,o)},a};L.stringify=hm;L.parse=bm;L.fromJSON=fm;L.list=vm;L.comment=s=>new An(s);L.atRule=s=>new kn(s);L.decl=s=>new Cn(s);L.rule=s=>new $n(s);L.root=s=>new On(s);L.document=s=>new En(s);L.CssSyntaxError=mm;L.Declaration=Cn;L.Container=um;L.Processor=Os;L.Document=En;L.Comment=An;L.Warning=pm;L.AtRule=kn;L.Result=gm;L.Input=Nm;L.Rule=$n;L.Root=On;L.Node=ym;dm.registerPostcss(L);var xm=L;L.default=L;const V=Ka(xm);V.stringify;V.fromJSON;V.plugin;V.parse;V.list;V.document;V.comment;V.atRule;V.rule;V.decl;V.root;V.CssSyntaxError;V.Declaration;V.Container;V.Processor;V.Document;V.Comment;V.Warning;V.AtRule;V.Result;V.Input;V.Rule;V.Root;V.Node;var wm=function(e){const t=e.prefix,i=/\s+$/.test(t)?t:`${t} `,a=e.ignoreFiles?[].concat(e.ignoreFiles):[],r=e.includeFiles?[].concat(e.includeFiles):[];return function(n){a.length&&n.source.input.file&&wa(n.source.input.file,a)||r.length&&n.source.input.file&&!wa(n.source.input.file,r)||n.walkRules(o=>{const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];o.parent&&l.includes(o.parent.name)||(o.selectors=o.selectors.map(c=>e.exclude&&_m(c,e.exclude)?c:e.transform?e.transform(t,c,i+c,n.source.input.file,o):i+c))})}};function wa(s,e){return e.some(t=>t instanceof RegExp?t.test(s):s.includes(t))}function _m(s,e){return e.some(t=>t instanceof RegExp?t.test(s):s===t)}const Sm=Ka(wm),Cm="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}",Em="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 Am(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Mn(s){return s instanceof Map?s.clear=s.delete=s.set=function(){throw new Error("map is read-only")}:s instanceof Set&&(s.add=s.clear=s.delete=function(){throw new Error("set is read-only")}),Object.freeze(s),Object.getOwnPropertyNames(s).forEach(e=>{const t=s[e],i=typeof t;(i==="object"||i==="function")&&!Object.isFrozen(t)&&Mn(t)}),s}class _a{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function In(s){return s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Re(s,...e){const t=Object.create(null);for(const i in s)t[i]=s[i];return e.forEach(function(i){for(const a in i)t[a]=i[a]}),t}const km="</span>",Sa=s=>!!s.scope,$m=(s,{prefix:e})=>{if(s.startsWith("language:"))return s.replace("language:","language-");if(s.includes(".")){const t=s.split(".");return[`${e}${t.shift()}`,...t.map((i,a)=>`${i}${"_".repeat(a+1)}`)].join(" ")}return`${e}${s}`};class Om{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=In(e)}openNode(e){if(!Sa(e))return;const t=$m(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){Sa(e)&&(this.buffer+=km)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const Ca=(s={})=>{const e={children:[]};return Object.assign(e,s),e};class Ms{constructor(){this.rootNode=Ca(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=Ca({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(i=>this._walk(e,i)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{Ms._collapse(t)}))}}class Mm extends Ms{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const i=e.root;t&&(i.scope=`language:${t}`),this.add(i)}toHTML(){return new Om(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Pt(s){return s?typeof s=="string"?s:s.source:null}function Rn(s){return Ke("(?=",s,")")}function Im(s){return Ke("(?:",s,")*")}function Rm(s){return Ke("(?:",s,")?")}function Ke(...s){return s.map(e=>Pt(e)).join("")}function Lm(s){const e=s[s.length-1];return typeof e=="object"&&e.constructor===Object?(s.splice(s.length-1,1),e):{}}function Is(...s){return"("+(Lm(s).capture?"":"?:")+s.map(e=>Pt(e)).join("|")+")"}function Ln(s){return new RegExp(s.toString()+"|").exec("").length-1}function Pm(s,e){const t=s&&s.exec(e);return t&&t.index===0}const Dm=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Rs(s,{joinWith:e}){let t=0;return s.map(i=>{t+=1;const a=t;let r=Pt(i),n="";for(;r.length>0;){const o=Dm.exec(r);if(!o){n+=r;break}n+=r.substring(0,o.index),r=r.substring(o.index+o[0].length),o[0][0]==="\\"&&o[1]?n+="\\"+String(Number(o[1])+a):(n+=o[0],o[0]==="("&&t++)}return n}).map(i=>`(${i})`).join(e)}const Bm=/\b\B/,Pn="[a-zA-Z]\\w*",Ls="[a-zA-Z_]\\w*",Dn="\\b\\d+(\\.\\d+)?",Bn="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Tn="\\b(0b[01]+)",Tm="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zm=(s={})=>{const e=/^#![ ]*\//;return s.binary&&(s.begin=Ke(e,/.*\b/,s.binary,/\b.*/)),Re({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,i)=>{t.index!==0&&i.ignoreMatch()}},s)},Dt={begin:"\\\\[\\s\\S]",relevance:0},jm={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Dt]},Vm={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Dt]},Fm={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/},Ai=function(s,e,t={}){const i=Re({scope:"comment",begin:s,end:e,contains:[]},t);i.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const a=Is("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return i.contains.push({begin:Ke(/[ ]+/,"(",a,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},Hm=Ai("//","$"),Um=Ai("/\\*","\\*/"),Gm=Ai("#","$"),Wm={scope:"number",begin:Dn,relevance:0},Km={scope:"number",begin:Bn,relevance:0},qm={scope:"number",begin:Tn,relevance:0},Jm={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Dt,{begin:/\[/,end:/\]/,relevance:0,contains:[Dt]}]},Zm={scope:"title",begin:Pn,relevance:0},Xm={scope:"title",begin:Ls,relevance:0},Ym={begin:"\\.\\s*"+Ls,relevance:0},Qm=function(s){return Object.assign(s,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var si=Object.freeze({__proto__:null,APOS_STRING_MODE:jm,BACKSLASH_ESCAPE:Dt,BINARY_NUMBER_MODE:qm,BINARY_NUMBER_RE:Tn,COMMENT:Ai,C_BLOCK_COMMENT_MODE:Um,C_LINE_COMMENT_MODE:Hm,C_NUMBER_MODE:Km,C_NUMBER_RE:Bn,END_SAME_AS_BEGIN:Qm,HASH_COMMENT_MODE:Gm,IDENT_RE:Pn,MATCH_NOTHING_RE:Bm,METHOD_GUARD:Ym,NUMBER_MODE:Wm,NUMBER_RE:Dn,PHRASAL_WORDS_MODE:Fm,QUOTE_STRING_MODE:Vm,REGEXP_MODE:Jm,RE_STARTERS_RE:Tm,SHEBANG:zm,TITLE_MODE:Zm,UNDERSCORE_IDENT_RE:Ls,UNDERSCORE_TITLE_MODE:Xm});function ed(s,e){s.input[s.index-1]==="."&&e.ignoreMatch()}function td(s,e){s.className!==void 0&&(s.scope=s.className,delete s.className)}function id(s,e){e&&s.beginKeywords&&(s.begin="\\b("+s.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",s.__beforeBegin=ed,s.keywords=s.keywords||s.beginKeywords,delete s.beginKeywords,s.relevance===void 0&&(s.relevance=0))}function sd(s,e){Array.isArray(s.illegal)&&(s.illegal=Is(...s.illegal))}function ad(s,e){if(s.match){if(s.begin||s.end)throw new Error("begin & end are not supported with match");s.begin=s.match,delete s.match}}function nd(s,e){s.relevance===void 0&&(s.relevance=1)}const rd=(s,e)=>{if(!s.beforeMatch)return;if(s.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},s);Object.keys(s).forEach(i=>{delete s[i]}),s.keywords=t.keywords,s.begin=Ke(t.beforeMatch,Rn(t.begin)),s.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},s.relevance=0,delete t.beforeMatch},od=["of","and","for","in","not","or","if","then","parent","list","value"],ld="keyword";function zn(s,e,t=ld){const i=Object.create(null);return typeof s=="string"?a(t,s.split(" ")):Array.isArray(s)?a(t,s):Object.keys(s).forEach(function(r){Object.assign(i,zn(s[r],e,r))}),i;function a(r,n){e&&(n=n.map(o=>o.toLowerCase())),n.forEach(function(o){const l=o.split("|");i[l[0]]=[r,cd(l[0],l[1])]})}}function cd(s,e){return e?Number(e):md(s)?0:1}function md(s){return od.includes(s.toLowerCase())}const Ea={},Fe=s=>{console.error(s)},Aa=(s,...e)=>{console.log(`WARN: ${s}`,...e)},Qe=(s,e)=>{Ea[`${s}/${e}`]||(console.log(`Deprecated as of ${s}. ${e}`),Ea[`${s}/${e}`]=!0)},bi=new Error;function jn(s,e,{key:t}){let i=0;const a=s[t],r={},n={};for(let o=1;o<=e.length;o++)n[o+i]=a[o],r[o+i]=!0,i+=Ln(e[o-1]);s[t]=n,s[t]._emit=r,s[t]._multi=!0}function dd(s){if(Array.isArray(s.begin)){if(s.skip||s.excludeBegin||s.returnBegin)throw Fe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),bi;if(typeof s.beginScope!="object"||s.beginScope===null)throw Fe("beginScope must be object"),bi;jn(s,s.begin,{key:"beginScope"}),s.begin=Rs(s.begin,{joinWith:""})}}function ud(s){if(Array.isArray(s.end)){if(s.skip||s.excludeEnd||s.returnEnd)throw Fe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),bi;if(typeof s.endScope!="object"||s.endScope===null)throw Fe("endScope must be object"),bi;jn(s,s.end,{key:"endScope"}),s.end=Rs(s.end,{joinWith:""})}}function hd(s){s.scope&&typeof s.scope=="object"&&s.scope!==null&&(s.beginScope=s.scope,delete s.scope)}function fd(s){hd(s),typeof s.beginScope=="string"&&(s.beginScope={_wrap:s.beginScope}),typeof s.endScope=="string"&&(s.endScope={_wrap:s.endScope}),dd(s),ud(s)}function pd(s){function e(n,o){return new RegExp(Pt(n),"m"+(s.case_insensitive?"i":"")+(s.unicodeRegex?"u":"")+(o?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(o,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,o]),this.matchAt+=Ln(o)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const o=this.regexes.map(l=>l[1]);this.matcherRe=e(Rs(o,{joinWith:"|"}),!0),this.lastIndex=0}exec(o){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(o);if(!l)return null;const c=l.findIndex((u,h)=>h>0&&u!==void 0),m=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,m)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(o){if(this.multiRegexes[o])return this.multiRegexes[o];const l=new t;return this.rules.slice(o).forEach(([c,m])=>l.addRule(c,m)),l.compile(),this.multiRegexes[o]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(o,l){this.rules.push([o,l]),l.type==="begin"&&this.count++}exec(o){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(o);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const m=this.getMatcher(0);m.lastIndex=this.lastIndex+1,c=m.exec(o)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function a(n){const o=new i;return n.contains.forEach(l=>o.addRule(l.begin,{rule:l,type:"begin"})),n.terminatorEnd&&o.addRule(n.terminatorEnd,{type:"end"}),n.illegal&&o.addRule(n.illegal,{type:"illegal"}),o}function r(n,o){const l=n;if(n.isCompiled)return l;[td,ad,fd,rd].forEach(m=>m(n,o)),s.compilerExtensions.forEach(m=>m(n,o)),n.__beforeBegin=null,[id,sd,nd].forEach(m=>m(n,o)),n.isCompiled=!0;let c=null;return typeof n.keywords=="object"&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),c=n.keywords.$pattern,delete n.keywords.$pattern),c=c||/\w+/,n.keywords&&(n.keywords=zn(n.keywords,s.case_insensitive)),l.keywordPatternRe=e(c,!0),o&&(n.begin||(n.begin=/\B|\b/),l.beginRe=e(l.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(l.endRe=e(l.end)),l.terminatorEnd=Pt(l.end)||"",n.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(n.end?"|":"")+o.terminatorEnd)),n.illegal&&(l.illegalRe=e(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(m){return gd(m==="self"?n:m)})),n.contains.forEach(function(m){r(m,l)}),n.starts&&r(n.starts,o),l.matcher=a(l),l}if(s.compilerExtensions||(s.compilerExtensions=[]),s.contains&&s.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return s.classNameAliases=Re(s.classNameAliases||{}),r(s)}function Vn(s){return s?s.endsWithParent||Vn(s.starts):!1}function gd(s){return s.variants&&!s.cachedVariants&&(s.cachedVariants=s.variants.map(function(e){return Re(s,{variants:null},e)})),s.cachedVariants?s.cachedVariants:Vn(s)?Re(s,{starts:s.starts?Re(s.starts):null}):Object.isFrozen(s)?Re(s):s}var Nd="11.9.0";class bd extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Fi=In,ka=Re,$a=Symbol("nomatch"),vd=7,Fn=function(s){const e=Object.create(null),t=Object.create(null),i=[];let a=!0;const r="Could not find the language '{}', did you forget to load/include a language module?",n={disableAutodetect:!0,name:"Plain text",contains:[]};let o={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Mm};function l(d){return o.noHighlightRe.test(d)}function c(d){let N=d.className+" ";N+=d.parentNode?d.parentNode.className:"";const w=o.languageDetectRe.exec(N);if(w){const k=O(w[1]);return k||(Aa(r.replace("{}",w[1])),Aa("Falling back to no-highlight mode for this block.",d)),k?w[1]:"no-highlight"}return N.split(/\s+/).find(k=>l(k)||O(k))}function m(d,N,w){let k="",z="";typeof N=="object"?(k=d,w=N.ignoreIllegals,z=N.language):(Qe("10.7.0","highlight(lang, code, ...args) has been deprecated."),Qe("10.7.0",`Please use highlight(code, options) instead.
1567
- https://github.com/highlightjs/highlight.js/issues/2277`),z=d,k=N),w===void 0&&(w=!0);const J={code:k,language:z};te("before:highlight",J);const le=J.result?J.result:u(J.language,J.code,w);return le.code=J.code,te("after:highlight",le),le}function u(d,N,w,k){const z=Object.create(null);function J(p,b){return p.keywords[b]}function le(){if(!S.keywords){G.addText(D);return}let p=0;S.keywordPatternRe.lastIndex=0;let b=S.keywordPatternRe.exec(D),C="";for(;b;){C+=D.substring(p,b.index);const B=ce.case_insensitive?b[0].toLowerCase():b[0],Y=J(S,B);if(Y){const[Ce,Xn]=Y;if(G.addText(C),C="",z[B]=(z[B]||0)+1,z[B]<=vd&&(Be+=Xn),Ce.startsWith("_"))C+=b[0];else{const Yn=ce.classNameAliases[Ce]||Ce;X(b[0],Yn)}}else C+=b[0];p=S.keywordPatternRe.lastIndex,b=S.keywordPatternRe.exec(D)}C+=D.substring(p),G.addText(C)}function pe(){if(D==="")return;let p=null;if(typeof S.subLanguage=="string"){if(!e[S.subLanguage]){G.addText(D);return}p=u(S.subLanguage,D,!0,ve[S.subLanguage]),ve[S.subLanguage]=p._top}else p=g(D,S.subLanguage.length?S.subLanguage:null);S.relevance>0&&(Be+=p.relevance),G.__addSublanguage(p._emitter,p.language)}function U(){S.subLanguage!=null?pe():le(),D=""}function X(p,b){p!==""&&(G.startScope(b),G.addText(p),G.endScope())}function De(p,b){let C=1;const B=b.length-1;for(;C<=B;){if(!p._emit[C]){C++;continue}const Y=ce.classNameAliases[p[C]]||p[C],Ce=b[C];Y?X(Ce,Y):(D=Ce,le(),D=""),C++}}function be(p,b){return p.scope&&typeof p.scope=="string"&&G.openNode(ce.classNameAliases[p.scope]||p.scope),p.beginScope&&(p.beginScope._wrap?(X(D,ce.classNameAliases[p.beginScope._wrap]||p.beginScope._wrap),D=""):p.beginScope._multi&&(De(p.beginScope,b),D="")),S=Object.create(p,{parent:{value:S}}),S}function qe(p,b,C){let B=Pm(p.endRe,C);if(B){if(p["on:end"]){const Y=new _a(p);p["on:end"](b,Y),Y.isMatchIgnored&&(B=!1)}if(B){for(;p.endsParent&&p.parent;)p=p.parent;return p}}if(p.endsWithParent)return qe(p.parent,b,C)}function $i(p){return S.matcher.regexIndex===0?(D+=p[0],1):(Xe=!0,0)}function ft(p){const b=p[0],C=p.rule,B=new _a(C),Y=[C.__beforeBegin,C["on:begin"]];for(const Ce of Y)if(Ce&&(Ce(p,B),B.isMatchIgnored))return $i(b);return C.skip?D+=b:(C.excludeBegin&&(D+=b),U(),!C.returnBegin&&!C.excludeBegin&&(D=b)),be(C,p),C.returnBegin?0:b.length}function Oi(p){const b=p[0],C=N.substring(p.index),B=qe(S,p,C);if(!B)return $a;const Y=S;S.endScope&&S.endScope._wrap?(U(),X(b,S.endScope._wrap)):S.endScope&&S.endScope._multi?(U(),De(S.endScope,p)):Y.skip?D+=b:(Y.returnEnd||Y.excludeEnd||(D+=b),U(),Y.excludeEnd&&(D=b));do S.scope&&G.closeNode(),!S.skip&&!S.subLanguage&&(Be+=S.relevance),S=S.parent;while(S!==B.parent);return B.starts&&be(B.starts,p),Y.returnEnd?0:b.length}function Ut(){const p=[];for(let b=S;b!==ce;b=b.parent)b.scope&&p.unshift(b.scope);p.forEach(b=>G.openNode(b))}let Je={};function Gt(p,b){const C=b&&b[0];if(D+=p,C==null)return U(),0;if(Je.type==="begin"&&b.type==="end"&&Je.index===b.index&&C===""){if(D+=N.slice(b.index,b.index+1),!a){const B=new Error(`0 width match regex (${d})`);throw B.languageName=d,B.badRule=Je.rule,B}return 1}if(Je=b,b.type==="begin")return ft(b);if(b.type==="illegal"&&!w){const B=new Error('Illegal lexeme "'+C+'" for mode "'+(S.scope||"<unnamed>")+'"');throw B.mode=S,B}else if(b.type==="end"){const B=Oi(b);if(B!==$a)return B}if(b.type==="illegal"&&C==="")return 1;if(Ze>1e5&&Ze>b.index*3)throw new Error("potential infinite loop, way more iterations than matches");return D+=C,C.length}const ce=O(d);if(!ce)throw Fe(r.replace("{}",d)),new Error('Unknown language: "'+d+'"');const Wt=pd(ce);let pt="",S=k||Wt;const ve={},G=new o.__emitter(o);Ut();let D="",Be=0,ge=0,Ze=0,Xe=!1;try{if(ce.__emitTokens)ce.__emitTokens(N,G);else{for(S.matcher.considerAll();;){Ze++,Xe?Xe=!1:S.matcher.considerAll(),S.matcher.lastIndex=ge;const p=S.matcher.exec(N);if(!p)break;const b=N.substring(ge,p.index),C=Gt(b,p);ge=p.index+C}Gt(N.substring(ge))}return G.finalize(),pt=G.toHTML(),{language:d,value:pt,relevance:Be,illegal:!1,_emitter:G,_top:S}}catch(p){if(p.message&&p.message.includes("Illegal"))return{language:d,value:Fi(N),illegal:!0,relevance:0,_illegalBy:{message:p.message,index:ge,context:N.slice(ge-100,ge+100),mode:p.mode,resultSoFar:pt},_emitter:G};if(a)return{language:d,value:Fi(N),illegal:!1,relevance:0,errorRaised:p,_emitter:G,_top:S};throw p}}function h(d){const N={value:Fi(d),illegal:!1,relevance:0,_top:n,_emitter:new o.__emitter(o)};return N._emitter.addText(d),N}function g(d,N){N=N||o.languages||Object.keys(e);const w=h(d),k=N.filter(O).filter(K).map(U=>u(U,d,!1));k.unshift(w);const z=k.sort((U,X)=>{if(U.relevance!==X.relevance)return X.relevance-U.relevance;if(U.language&&X.language){if(O(U.language).supersetOf===X.language)return 1;if(O(X.language).supersetOf===U.language)return-1}return 0}),[J,le]=z,pe=J;return pe.secondBest=le,pe}function _(d,N,w){const k=N&&t[N]||w;d.classList.add("hljs"),d.classList.add(`language-${k}`)}function y(d){let N=null;const w=c(d);if(l(w))return;if(te("before:highlightElement",{el:d,language:w}),d.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",d);return}if(d.children.length>0&&(o.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(d)),o.throwUnescapedHTML))throw new bd("One of your code blocks includes unescaped HTML.",d.innerHTML);N=d;const k=N.textContent,z=w?m(k,{language:w,ignoreIllegals:!0}):g(k);d.innerHTML=z.value,d.dataset.highlighted="yes",_(d,w,z.language),d.result={language:z.language,re:z.relevance,relevance:z.relevance},z.secondBest&&(d.secondBest={language:z.secondBest.language,relevance:z.secondBest.relevance}),te("after:highlightElement",{el:d,result:z,text:k})}function f(d){o=ka(o,d)}const A=()=>{x(),Qe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function M(){x(),Qe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let I=!1;function x(){if(document.readyState==="loading"){I=!0;return}document.querySelectorAll(o.cssSelector).forEach(y)}function E(){I&&x()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",E,!1);function $(d,N){let w=null;try{w=N(s)}catch(k){if(Fe("Language definition for '{}' could not be registered.".replace("{}",d)),a)Fe(k);else throw k;w=n}w.name||(w.name=d),e[d]=w,w.rawDefinition=N.bind(null,s),w.aliases&&T(w.aliases,{languageName:d})}function R(d){delete e[d];for(const N of Object.keys(t))t[N]===d&&delete t[N]}function P(){return Object.keys(e)}function O(d){return d=(d||"").toLowerCase(),e[d]||e[t[d]]}function T(d,{languageName:N}){typeof d=="string"&&(d=[d]),d.forEach(w=>{t[w.toLowerCase()]=N})}function K(d){const N=O(d);return N&&!N.disableAutodetect}function ee(d){d["before:highlightBlock"]&&!d["before:highlightElement"]&&(d["before:highlightElement"]=N=>{d["before:highlightBlock"](Object.assign({block:N.el},N))}),d["after:highlightBlock"]&&!d["after:highlightElement"]&&(d["after:highlightElement"]=N=>{d["after:highlightBlock"](Object.assign({block:N.el},N))})}function q(d){ee(d),i.push(d)}function fe(d){const N=i.indexOf(d);N!==-1&&i.splice(N,1)}function te(d,N){const w=d;i.forEach(function(k){k[w]&&k[w](N)})}function Z(d){return Qe("10.7.0","highlightBlock will be removed entirely in v12.0"),Qe("10.7.0","Please use highlightElement now."),y(d)}Object.assign(s,{highlight:m,highlightAuto:g,highlightAll:x,highlightElement:y,highlightBlock:Z,configure:f,initHighlighting:A,initHighlightingOnLoad:M,registerLanguage:$,unregisterLanguage:R,listLanguages:P,getLanguage:O,registerAliases:T,autoDetection:K,inherit:ka,addPlugin:q,removePlugin:fe}),s.debugMode=function(){a=!1},s.safeMode=function(){a=!0},s.versionString=Nd,s.regex={concat:Ke,lookahead:Rn,either:Is,optional:Rm,anyNumberOfTimes:Im};for(const d in si)typeof si[d]=="object"&&Mn(si[d]);return Object.assign(s,si),s},dt=Fn({});dt.newInstance=()=>Fn({});var yd=dt;dt.HighlightJS=dt;dt.default=dt;const ki=Am(yd),vi="[A-Za-z$_][0-9A-Za-z$_]*",Hn=["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"],Un=["true","false","null","undefined","NaN","Infinity"],Gn=["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"],Wn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Kn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],qn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Jn=[].concat(Kn,Gn,Wn);function xd(s){const e=s.regex,t=(d,{after:N})=>{const w="</"+d[0].slice(1);return d.input.indexOf(w,N)!==-1},i=vi,a={begin:"<>",end:"</>"},r=/<[A-Za-z0-9\\._:-]+\s*\/>/,n={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(d,N)=>{const w=d[0].length+d.index,k=d.input[w];if(k==="<"||k===","){N.ignoreMatch();return}k===">"&&(t(d,{after:w})||N.ignoreMatch());let z;const J=d.input.substring(w);if(z=J.match(/^\s*=/)){N.ignoreMatch();return}if((z=J.match(/^\s+extends\s+/))&&z.index===0){N.ignoreMatch();return}}},o={$pattern:vi,keyword:Hn,literal:Un,built_in:Jn,"variable.language":qn},l="[0-9](_?[0-9])*",c=`\\.(${l})`,m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${m})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${m})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},g={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},_={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,h],subLanguage:"css"}},y={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},f={className:"string",begin:"`",end:"`",contains:[s.BACKSLASH_ESCAPE,h]},A={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:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),s.C_BLOCK_COMMENT_MODE,s.C_LINE_COMMENT_MODE]},M=[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,g,_,y,f,{match:/\$\d+/},u];h.contains=M.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(M)});const I=[].concat(A,h.contains),x=I.concat([{begin:/\(/,end:/\)/,keywords:o,contains:["self"].concat(I)}]),E={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:x},$={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,e.concat(i,"(",e.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},R={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:{_:[...Gn,...Wn]}},P={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},O={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[E],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(d){return e.concat("(?!",d.join("|"),")")}const ee={match:e.concat(/\b/,K([...Kn,"super","import"]),i,e.lookahead(/\(/)),className:"title.function",relevance:0},q={begin:e.concat(/\./,e.lookahead(e.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},fe={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},E]},te="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+s.UNDERSCORE_IDENT_RE+")\\s*=>",Z={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(te)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[E]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:x,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[s.SHEBANG({label:"shebang",binary:"node",relevance:5}),P,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,g,_,y,f,A,{match:/\$\d+/},u,R,{className:"attr",begin:i+e.lookahead(":"),relevance:0},Z,{begin:"("+s.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[A,s.REGEXP_MODE,{className:"function",begin:te,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:s.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:x}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:r},{begin:n.begin,"on:begin":n.isTrulyOpeningTag,end:n.end}],subLanguage:"xml",contains:[{begin:n.begin,end:n.end,skip:!0,contains:["self"]}]}]},O,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+s.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[E,s.inherit(s.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},q,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[E]},ee,T,$,fe,{match:/\$[(.]/}]}}function wd(s){const e=xd(s),t=vi,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},r={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[e.exports.CLASS_REFERENCE]},n={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},o=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:vi,keyword:Hn.concat(o),literal:Un,built_in:Jn.concat(i),"variable.language":qn},c={className:"meta",begin:"@"+t},m=(h,g,_)=>{const y=h.contains.findIndex(f=>f.label===g);if(y===-1)throw new Error("can not find mode to replace");h.contains.splice(y,1,_)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,a,r]),m(e,"shebang",s.SHEBANG()),m(e,"use_strict",n);const u=e.contains.find(h=>h.label==="func.def");return u.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function _d(s){const e=s.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},n=s.inherit(r,{begin:/\(/,end:/\)/}),o=s.inherit(s.APOS_STRING_MODE,{className:"string"}),l=s.inherit(s.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[a]},{begin:/'/,end:/'/,contains:[a]},{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:[r,l,o,n,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[r,n,l,o]}]}]},s.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Sd=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_-]*/}}),Cd=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Ed=["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"],Ad=["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"],kd=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],$d=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Od(s){const e=s.regex,t=Sd(s),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},a="and or not only",r=/@-?\w[\w]*(-\w+)*/,n="[a-zA-Z-][a-zA-Z0-9_-]*",o=[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,i,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+n,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Ad.join("|")+")"},{begin:":(:)?("+kd.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+$d.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...o,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...o,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:r},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:Ed.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...o,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Cd.join("|")+")\\b"}]}}const Zn=document.createElement("style");Zn.innerText=[Cm,Em].join(`
1568
- `);document.head.appendChild(Zn);ki.registerLanguage("typescript",wd);ki.registerLanguage("html",_d);ki.registerLanguage("css",Od);function Md(...s){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const i=document.createElement("div");return s.forEach(a=>{e.appendChild(a),a.addEventListener("click",()=>{s.forEach(r=>r.removeAttribute("selected")),a.setAttribute("selected",""),i.innerHTML="",i.appendChild(a.content),i.className=a.className,i.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(i),i.classList.add("tab-content"),s[0].setAttribute("selected",""),i.appendChild(s[0].content),t}function yt(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 St(s,e){const t=document.createElement(s);return typeof e=="string"?t.innerHTML=e:e.forEach(i=>{t.appendChild(i)}),t}async function Id(s,e,t){var i,a,r;const n=e.mainContent,o=St("div",n);o.id=`example-preview-${t}`;const l=typeof e.css=="string"||(i=e.css)==null?void 0:i.label,c=typeof e.css=="string"?e.css:(a=e.css)==null?void 0:a.content,m=Md(yt("Preview",o),yt("HTML",ai("html",n)),...c?[yt(l??"CSS",ai("css",c))]:[],...e.initializer&&e.initializer.content?[yt(e.initializer.label??"TS",ai("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(h=>yt(h.label,ai(h.language,h.content))));e.description&&s.appendChild(St("div",e.description));const u=St("div",[m]);u.classList.add("example"),s.appendChild(u),c&&Rd(`#${o.id}`,c),(r=e.initializer)!=null&&r.initialize&&await e.initializer.initialize(o)}function ai(s,e){let t=e.split(/\r?\n/).map(i=>{const a=i.indexOf("///");if(a>-1){const r=i.substring(a+3).trimStart();return r?i.replace(/^(\s*)([^\s].*)$/,`$1${r}`):void 0}return i}).filter(i=>typeof i<"u").join(`
1569
- `).trim();return s&&s!="raw"&&(t=ki.highlight(t,{language:s}).value),St("pre",[St("code",t)])}function Rd(s,e){const t=document.createElement("style");t.innerHTML=V().use(Sm({prefix:s})).process(e).css,document.head.appendChild(t)}async function Ld(s,e=document.body){const t=Dd(e);let i=0;Object.keys(s).forEach(async a=>{const r=document.createElement("div");r.className="example-container",t.appendChild(r);const n=s[a].default;Id(r,n,i++)})}function Pd(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 Dd(s){return s.children?Pd(s):s}const Bd=`<h1 id="@cas-smartdesign/combo-box">@cas-smartdesign/combo-box</h1>
1564
+ `)&&(l=`\r
1565
+ `),this.css+=l+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let l=this.toUrl(this.path(c.file)),f=c.root||t(c.file),p;this.mapOpts.sourcesContent===!1?(p=new s(c.text),p.sourcesContent&&(p.sourcesContent=null)):p=c.consumer(),this.map.applySourceMap(p,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(),u&&h&&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=n.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new n({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 n({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,l=1,f="<no source>",p={generated:{column:0,line:0},original:{column:0,line:0},source:""},N,x;this.stringify(this.root,(w,v,y)=>{if(this.css+=w,v&&y!=="end"&&(p.generated.line=c,p.generated.column=l-1,v.source&&v.source.start?(p.source=this.sourcePath(v),p.original.line=v.source.start.line,p.original.column=v.source.start.column-1,this.map.addMapping(p)):(p.source=f,p.original.line=1,p.original.column=0,this.map.addMapping(p))),x=w.match(/\n/g),x?(c+=x.length,N=w.lastIndexOf(`
1566
+ `),l=w.length-N):l+=w.length,v&&y!=="start"){let b=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==b.last||b.raws.semicolon)&&(v.source&&v.source.end?(p.source=this.sourcePath(v),p.original.line=v.source.end.line,p.original.column=v.source.end.column-1,p.generated.line=c,p.generated.column=l-2,this.map.addMapping(p)):(p.source=f,p.original.line=1,p.original.column=0,p.generated.line=c,p.generated.column=l-1,this.map.addMapping(p)))}})}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?t(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=t(i(f,this.mapOpts.annotation)));let p=e(f,c);return this.memoizedPaths.set(c,p),p}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 d(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 p=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(p,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(o){let f=o(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;a==="\\"&&(c=c.replace(/\\/g,"/"));let f=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,f),f}}return ts=r,ts}var is,Ba;function Hl(){if(Ba)return is;Ba=1;const t=39,e=34,i=92,a=47,s=10,n=32,o=12,d=9,h=13,u=91,r=93,m=40,c=41,l=123,f=125,p=59,N=42,x=58,w=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,_=/[\da-f]/i;return is=function(I,P={}){let E=I.css.valueOf(),H=P.ignoreErrors,V,Q,re,M,ne,q,Z,te,le,Se,xe=E.length,T=0,Ce=[],fe=[];function Fe(){return T}function Re(Ae){throw I.error("Unclosed "+Ae,T)}function Me(){return fe.length===0&&T>=xe}function Le(Ae){if(fe.length)return fe.pop();if(T>=xe)return;let it=Ae?Ae.ignoreUnclosed:!1;switch(V=E.charCodeAt(T),V){case s:case n:case d:case h:case o:{M=T;do M+=1,V=E.charCodeAt(M);while(V===n||V===s||V===d||V===h||V===o);q=["space",E.slice(T,M)],T=M-1;break}case u:case r:case l:case f:case x:case p:case c:{let st=String.fromCharCode(V);q=[st,st,T];break}case m:{if(Se=Ce.length?Ce.pop()[1]:"",le=E.charCodeAt(T+1),Se==="url"&&le!==t&&le!==e&&le!==n&&le!==s&&le!==d&&le!==o&&le!==h){M=T;do{if(Z=!1,M=E.indexOf(")",M+1),M===-1)if(H||it){M=T;break}else Re("bracket");for(te=M;E.charCodeAt(te-1)===i;)te-=1,Z=!Z}while(Z);q=["brackets",E.slice(T,M+1),T,M],T=M}else M=E.indexOf(")",T+1),Q=E.slice(T,M+1),M===-1||b.test(Q)?q=["(","(",T]:(q=["brackets",Q,T,M],T=M);break}case t:case e:{ne=V===t?"'":'"',M=T;do{if(Z=!1,M=E.indexOf(ne,M+1),M===-1)if(H||it){M=T+1;break}else Re("string");for(te=M;E.charCodeAt(te-1)===i;)te-=1,Z=!Z}while(Z);q=["string",E.slice(T,M+1),T,M],T=M;break}case w:{v.lastIndex=T+1,v.test(E),v.lastIndex===0?M=E.length-1:M=v.lastIndex-2,q=["at-word",E.slice(T,M+1),T,M],T=M;break}case i:{for(M=T,re=!0;E.charCodeAt(M+1)===i;)M+=1,re=!re;if(V=E.charCodeAt(M+1),re&&V!==a&&V!==n&&V!==s&&V!==d&&V!==h&&V!==o&&(M+=1,_.test(E.charAt(M)))){for(;_.test(E.charAt(M+1));)M+=1;E.charCodeAt(M+1)===n&&(M+=1)}q=["word",E.slice(T,M+1),T,M],T=M;break}default:{V===a&&E.charCodeAt(T+1)===N?(M=E.indexOf("*/",T+2)+1,M===0&&(H||it?M=E.length:Re("comment")),q=["comment",E.slice(T,M+1),T,M],T=M):(y.lastIndex=T+1,y.test(E),y.lastIndex===0?M=E.length-1:M=y.lastIndex-2,q=["word",E.slice(T,M+1),T,M],Ce.push(q),T=M);break}}return T++,q}function Et(Ae){fe.push(Ae)}return{back:Et,endOfFile:Me,nextToken:Le,position:Fe}},is}var ss,Ta;function ql(){if(Ta)return ss;Ta=1;let t=Ls(),e=_i(),i=Si(),a=Zt(),s=$s(),n=Hl();const o={empty:!0,space:!0};function d(u){for(let r=u.length-1;r>=0;r--){let m=u[r],c=m[3]||m[2];if(c)return c}}class h{constructor(r){this.input=r,this.root=new a,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 m=new t;m.name=r[1].slice(1),m.name===""&&this.unnamedAtrule(m,r),this.init(m,r[2]);let c,l,f,p=!1,N=!1,x=[],w=[];for(;!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),c=r[0],c==="("||c==="["?w.push(c==="("?")":"]"):c==="{"&&w.length>0?w.push("}"):c===w[w.length-1]&&w.pop(),w.length===0)if(c===";"){m.source.end=this.getPosition(r[2]),m.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){N=!0;break}else if(c==="}"){if(x.length>0){for(f=x.length-1,l=x[f];l&&l[0]==="space";)l=x[--f];l&&(m.source.end=this.getPosition(l[3]||l[2]),m.source.end.offset++)}this.end(r);break}else x.push(r);else x.push(r);if(this.tokenizer.endOfFile()){p=!0;break}}m.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(m.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(m,"params",x),p&&(r=x[x.length-1],m.source.end=this.getPosition(r[3]||r[2]),m.source.end.offset++,this.spaces=m.raws.between,m.raws.between="")):(m.raws.afterName="",m.params=""),N&&(m.nodes=[],this.current=m)}checkMissedSemicolon(r){let m=this.colon(r);if(m===!1)return;let c=0,l;for(let f=m-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 m=0,c,l,f;for(let[p,N]of r.entries()){if(l=N,f=l[0],f==="("&&(m+=1),f===")"&&(m-=1),m===0&&f===":")if(!c)this.doubleColon(l);else{if(c[0]==="word"&&c[1]==="progid")continue;return p}c=l}return!1}comment(r){let m=new e;this.init(m,r[2]),m.source.end=this.getPosition(r[3]||r[2]),m.source.end.offset++;let c=r[1].slice(2,-2);if(/^\s*$/.test(c))m.text="",m.raws.left=c,m.raws.right="";else{let l=c.match(/^(\s*)([^]*\S)(\s*)$/);m.text=l[2],m.raws.left=l[1],m.raws.right=l[3]}}createTokenizer(){this.tokenizer=n(this.input)}decl(r,m){let c=new i;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]||d(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 w=r[0][0];if(w===":"||w==="space"||w==="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 p=[],N;for(;r.length&&(N=r[0][0],!(N!=="space"&&N!=="comment"));)p.push(r.shift());this.precheckMissedSemicolon(r);for(let w=r.length-1;w>=0;w--){if(f=r[w],f[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(r,w);v=this.spacesFromEnd(r)+v,v!==" !important"&&(c.raws.important=v);break}else if(f[1].toLowerCase()==="important"){let v=r.slice(0),y="";for(let b=w;b>0;b--){let _=v[b][0];if(y.trim().startsWith("!")&&_!=="space")break;y=v.pop()[1]+y}y.trim().startsWith("!")&&(c.important=!0,c.raws.important=y,r=v)}if(f[0]!=="space"&&f[0]!=="comment")break}r.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(c.raws.between+=p.map(w=>w[1]).join(""),p=[]),this.raw(c,"value",p.concat(r),m),c.value.includes(":")&&!m&&this.checkMissedSemicolon(r)}doubleColon(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})}emptyRule(r){let m=new s;this.init(m,r[2]),m.selector="",m.raws.between="",this.current=m}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 m=this.current.nodes[this.current.nodes.length-1];m&&m.type==="rule"&&!m.raws.ownSemicolon&&(m.raws.ownSemicolon=this.spaces,this.spaces="",m.source.end=this.getPosition(r[2]),m.source.end.offset+=m.raws.ownSemicolon.length)}}getPosition(r){let m=this.input.fromOffset(r);return{column:m.col,line:m.line,offset:r}}init(r,m){this.current.push(r),r.source={input:this.input,start:this.getPosition(m)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)}other(r){let m=!1,c=null,l=!1,f=null,p=[],N=r[1].startsWith("--"),x=[],w=r;for(;w;){if(c=w[0],x.push(w),c==="("||c==="[")f||(f=w),p.push(c==="("?")":"]");else if(N&&l&&c==="{")f||(f=w),p.push("}");else if(p.length===0)if(c===";")if(l){this.decl(x,N);return}else break;else if(c==="{"){this.rule(x);return}else if(c==="}"){this.tokenizer.back(x.pop()),m=!0;break}else c===":"&&(l=!0);else c===p[p.length-1]&&(p.pop(),p.length===0&&(f=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(m=!0),p.length>0&&this.unclosedBracket(f),m&&l){if(!N)for(;x.length&&(w=x[x.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,N)}else this.unknownWord(x)}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,m,c,l){let f,p,N=c.length,x="",w=!0,v,y;for(let b=0;b<N;b+=1)f=c[b],p=f[0],p==="space"&&b===N-1&&!l?w=!1:p==="comment"?(y=c[b-1]?c[b-1][0]:"empty",v=c[b+1]?c[b+1][0]:"empty",!o[y]&&!o[v]?x.slice(-1)===","?w=!1:x+=f[1]:w=!1):x+=f[1];if(!w){let b=c.reduce((_,C)=>_+C[1],"");r.raws[m]={raw:b,value:x}}r[m]=x}rule(r){r.pop();let m=new s;this.init(m,r[0][2]),m.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(m,"selector",r),this.current=m}spacesAndCommentsFromEnd(r){let m,c="";for(;r.length&&(m=r[r.length-1][0],!(m!=="space"&&m!=="comment"));)c=r.pop()[1]+c;return c}spacesAndCommentsFromStart(r){let m,c="";for(;r.length&&(m=r[0][0],!(m!=="space"&&m!=="comment"));)c+=r.shift()[1];return c}spacesFromEnd(r){let m,c="";for(;r.length&&(m=r[r.length-1][0],m==="space");)c=r.pop()[1]+c;return c}stringFrom(r,m){let c="";for(let l=m;l<r.length;l++)c+=r[l][1];return r.splice(m,r.length-m),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,m){throw this.input.error("At-rule without name",{offset:m[2]},{offset:m[2]+m[1].length})}}return ss=h,ss}var as,za;function Ds(){if(za)return as;za=1;let t=ht(),e=Ci(),i=ql();function a(s,n){let o=new e(s,n),d=new i(o);try{d.parse()}catch(h){throw h}return d.root}return as=a,a.default=a,t.registerParse(a),as}var rs,ja;function pr(){if(ja)return rs;ja=1;class t{constructor(i,a={}){if(this.type="warning",this.text=i,a.node&&a.node.source){let s=a.node.rangeBy(a);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in a)this[s]=a[s]}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 rs=t,t.default=t,rs}var ns,Va;function Bs(){if(Va)return ns;Va=1;let t=pr();class e{get content(){return this.css}constructor(a,s,n){this.processor=a,this.messages=[],this.root=s,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(a,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let n=new t(a,s);return this.messages.push(n),n}warnings(){return this.messages.filter(a=>a.type==="warning")}}return ns=e,e.default=e,ns}var os,Fa;function gr(){if(Fa)return os;Fa=1;let t=ht(),e=Ps(),i=fr(),a=Ds(),s=Bs(),n=Zt(),o=xi(),{isClean:d,my:h}=Rs();const u={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},m={Once:!0,postcssPlugin:!0,prepare:!0},c=0;function l(v){return typeof v=="object"&&typeof v.then=="function"}function f(v){let y=!1,b=u[v.type];return v.type==="decl"?y=v.prop.toLowerCase():v.type==="atrule"&&(y=v.name.toLowerCase()),y&&v.append?[b,b+"-"+y,c,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:v.append?[b,c,b+"Exit"]:[b,b+"Exit"]}function p(v){let y;return v.type==="document"?y=["Document",c,"DocumentExit"]:v.type==="root"?y=["Root",c,"RootExit"]:y=f(v),{eventIndex:0,events:y,iterator:0,node:v,visitorIndex:0,visitors:[]}}function N(v){return v[d]=!1,v.nodes&&v.nodes.forEach(y=>N(y)),v}let x={};class w{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(y,b,_){this.stringified=!1,this.processed=!1;let C;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))C=N(b);else if(b instanceof w||b instanceof s)C=N(b.root),b.map&&(typeof _.map>"u"&&(_.map={}),_.map.inline||(_.map.inline=!1),_.map.prev=b.map);else{let I=a;_.syntax&&(I=_.syntax.parse),_.parser&&(I=_.parser),I.parse&&(I=I.parse);try{C=I(b,_)}catch(P){this.processed=!0,this.error=P}C&&!C[h]&&t.rebuild(C)}this.result=new s(y,C,_),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let _=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=_.postcssPlugin,y.setMessage()):_.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(b,_,C)=>{this.listeners[_]||(this.listeners[_]=[]),this.listeners[_].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let _ in b){if(!r[_]&&/^[A-Z]/.test(_))throw new Error(`Unknown event ${_} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!m[_])if(typeof b[_]=="object")for(let C in b[_])C==="*"?y(b,_,b[_][C]):y(b,_+"-"+C.toLowerCase(),b[_][C]);else typeof b[_]=="function"&&y(b,_,b[_])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],_=this.runOnRoot(b);if(l(_))try{await _}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];){y[d]=!0;let b=[p(y)];for(;b.length>0;){let _=this.visitTick(b);if(l(_))try{await _}catch(C){let I=b[b.length-1].node;throw this.handleError(C,I)}}}if(this.listeners.OnceExit)for(let[b,_]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let C=y.nodes.map(I=>_(I,this.helpers));await Promise.all(C)}else await _(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(_=>y.Once(_,this.helpers));return l(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=o;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let C=new i(b,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[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 y of this.plugins){let b=this.runOnRoot(y);if(l(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];)y[d]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[_,C]of y){this.result.lastPlugin=_;let I;try{I=C(b,this.helpers)}catch(P){throw this.handleError(P,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(l(I))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:_,visitors:C}=b;if(_.type!=="root"&&_.type!=="document"&&!_.parent){y.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[P,E]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=P;try{return E(_.toProxy(),this.helpers)}catch(H){throw this.handleError(H,_)}}if(b.iterator!==0){let P=b.iterator,E;for(;E=_.nodes[_.indexes[P]];)if(_.indexes[P]+=1,!E[d]){E[d]=!0,y.push(p(E));return}b.iterator=0,delete _.indexes[P]}let I=b.events;for(;b.eventIndex<I.length;){let P=I[b.eventIndex];if(b.eventIndex+=1,P===c){_.nodes&&_.nodes.length&&(_[d]=!0,b.iterator=_.getIterator());return}else if(this.listeners[P]){b.visitors=this.listeners[P];return}}y.pop()}walkSync(y){y[d]=!0;let b=f(y);for(let _ of b)if(_===c)y.nodes&&y.each(C=>{C[d]||this.walkSync(C)});else{let C=this.listeners[_];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return w.registerPostcss=v=>{x=v},os=w,w.default=w,n.registerLazyResult(w),e.registerLazyResult(w),os}var ls,Ha;function Ul(){if(Ha)return ls;Ha=1;let t=fr(),e=Ds();const i=Bs();let a=xi();class s{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let o,d=e;try{o=d(this._css,this._opts)}catch(h){this.error=h}if(this.error)throw this.error;return this._root=o,o}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(o,d,h){d=d.toString(),this.stringified=!1,this._processor=o,this._css=d,this._opts=h,this._map=void 0;let u,r=a;this.result=new i(this._processor,u,this._opts),this.result.css=d;let m=this;Object.defineProperty(this.result,"root",{get(){return m.root}});let c=new t(r,u,this._opts,d);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(o){return this.async().catch(o)}finally(o){return this.async().then(o,o)}sync(){if(this.error)throw this.error;return this.result}then(o,d){return this.async().then(o,d)}toString(){return this._css}warnings(){return[]}}return ls=s,s.default=s,ls}var cs,qa;function Wl(){if(qa)return cs;qa=1;let t=Ps(),e=gr(),i=Ul(),a=Zt();class s{constructor(o=[]){this.version="8.5.6",this.plugins=this.normalize(o)}normalize(o){let d=[];for(let h of o)if(h.postcss===!0?h=h():h.postcss&&(h=h.postcss),typeof h=="object"&&Array.isArray(h.plugins))d=d.concat(h.plugins);else if(typeof h=="object"&&h.postcssPlugin)d.push(h);else if(typeof h=="function")d.push(h);else if(!(typeof h=="object"&&(h.parse||h.stringify)))throw new Error(h+" is not a PostCSS plugin");return d}process(o,d={}){return!this.plugins.length&&!d.parser&&!d.stringifier&&!d.syntax?new i(this,o,d):new e(this,o,d)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return cs=s,s.default=s,a.registerProcessor(s),t.registerProcessor(s),cs}var ms,Ua;function Gl(){if(Ua)return ms;Ua=1;var t={};let e=Ls(),i=_i(),a=ht(),s=Is(),n=Si(),o=Ps(),d=Fl(),h=Ci(),u=gr(),r=hr(),m=wi(),c=Ds(),l=Wl(),f=Bs(),p=Zt(),N=$s(),x=xi(),w=pr();function v(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new l(y)}return v.plugin=function(b,_){let C=!1;function I(...E){console&&console.warn&&!C&&(C=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
1567
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),t.LANG&&t.LANG.startsWith("cn")&&console.warn(b+`: 里面 postcss.plugin 被弃用. 迁移指南:
1568
+ https://www.w3ctech.com/topic/2226`));let H=_(...E);return H.postcssPlugin=b,H.postcssVersion=new l().version,H}let P;return Object.defineProperty(I,"postcss",{get(){return P||(P=I()),P}}),I.process=function(E,H,V){return v([I(V)]).process(E,H)},I},v.stringify=x,v.parse=c,v.fromJSON=d,v.list=r,v.comment=y=>new i(y),v.atRule=y=>new e(y),v.decl=y=>new n(y),v.rule=y=>new N(y),v.root=y=>new p(y),v.document=y=>new o(y),v.CssSyntaxError=s,v.Declaration=n,v.Container=a,v.Processor=l,v.Document=o,v.Comment=i,v.Warning=w,v.AtRule=e,v.Result=f,v.Input=h,v.Rule=N,v.Root=p,v.Node=m,u.registerPostcss(v),ms=v,v.default=v,ms}var Kl=Gl();const X=mr(Kl);X.stringify;X.fromJSON;X.plugin;X.parse;X.list;X.document;X.comment;X.atRule;X.rule;X.decl;X.root;X.CssSyntaxError;X.Declaration;X.Container;X.Processor;X.Document;X.Comment;X.Warning;X.AtRule;X.Result;X.Input;X.Rule;X.Root;X.Node;var ds,Wa;function Jl(){if(Wa)return ds;Wa=1;const t=(a={})=>{const s=a.prefix,n=/\s+$/.test(s)?s:`${s} `,o=a.ignoreFiles?[].concat(a.ignoreFiles):[],d=a.includeFiles?[].concat(a.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(h){const u=h.root,r=u.source.input.file;if(!(o.length&&r&&e(r,o))&&!(d.length&&r&&!e(r,d)))return{Rule(m,{result:c}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];m.parent&&l.includes(m.parent.name)||(m.selectors=m.selectors.map(f=>a.exclude&&i(f,a.exclude)?f:a.transform?a.transform(s,f,n+f,u.source.input.file,m):[":root","body","html"].some(p=>f.startsWith(p))?a.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,s):n+f))}}}}};function e(a,s){return s.some(n=>n instanceof RegExp?n.test(a):a.includes(n))}function i(a,s){return s.some(n=>n instanceof RegExp?n.test(a):a===n)}return t.postcss=!0,ds=t,ds}var Zl=Jl();const Xl=mr(Zl),Yl="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}",Ql="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 ec(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var us,Ga;function tc(){if(Ga)return us;Ga=1;function t(g){return g instanceof Map?g.clear=g.delete=g.set=function(){throw new Error("map is read-only")}:g instanceof Set&&(g.add=g.clear=g.delete=function(){throw new Error("set is read-only")}),Object.freeze(g),Object.getOwnPropertyNames(g).forEach(S=>{const O=g[S],F=typeof O;(F==="object"||F==="function")&&!Object.isFrozen(O)&&t(O)}),g}class e{constructor(S){S.data===void 0&&(S.data={}),this.data=S.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(g){return g.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function a(g,...S){const O=Object.create(null);for(const F in g)O[F]=g[F];return S.forEach(function(F){for(const se in F)O[se]=F[se]}),O}const s="</span>",n=g=>!!g.scope,o=(g,{prefix:S})=>{if(g.startsWith("language:"))return g.replace("language:","language-");if(g.includes(".")){const O=g.split(".");return[`${S}${O.shift()}`,...O.map((F,se)=>`${F}${"_".repeat(se+1)}`)].join(" ")}return`${S}${g}`};class d{constructor(S,O){this.buffer="",this.classPrefix=O.classPrefix,S.walk(this)}addText(S){this.buffer+=i(S)}openNode(S){if(!n(S))return;const O=o(S.scope,{prefix:this.classPrefix});this.span(O)}closeNode(S){n(S)&&(this.buffer+=s)}value(){return this.buffer}span(S){this.buffer+=`<span class="${S}">`}}const h=(g={})=>{const S={children:[]};return Object.assign(S,g),S};class u{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(S){this.top.children.push(S)}openNode(S){const O=h({scope:S});this.add(O),this.stack.push(O)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(S){return this.constructor._walk(S,this.rootNode)}static _walk(S,O){return typeof O=="string"?S.addText(O):O.children&&(S.openNode(O),O.children.forEach(F=>this._walk(S,F)),S.closeNode(O)),S}static _collapse(S){typeof S!="string"&&S.children&&(S.children.every(O=>typeof O=="string")?S.children=[S.children.join("")]:S.children.forEach(O=>{u._collapse(O)}))}}class r extends u{constructor(S){super(),this.options=S}addText(S){S!==""&&this.add(S)}startScope(S){this.openNode(S)}endScope(){this.closeNode()}__addSublanguage(S,O){const F=S.root;O&&(F.scope=`language:${O}`),this.add(F)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function m(g){return g?typeof g=="string"?g:g.source:null}function c(g){return p("(?=",g,")")}function l(g){return p("(?:",g,")*")}function f(g){return p("(?:",g,")?")}function p(...g){return g.map(S=>m(S)).join("")}function N(g){const S=g[g.length-1];return typeof S=="object"&&S.constructor===Object?(g.splice(g.length-1,1),S):{}}function x(...g){return"("+(N(g).capture?"":"?:")+g.map(S=>m(S)).join("|")+")"}function w(g){return new RegExp(g.toString()+"|").exec("").length-1}function v(g,S){const O=g&&g.exec(S);return O&&O.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(g,{joinWith:S}){let O=0;return g.map(F=>{O+=1;const se=O;let ae=m(F),L="";for(;ae.length>0;){const R=y.exec(ae);if(!R){L+=ae;break}L+=ae.substring(0,R.index),ae=ae.substring(R.index+R[0].length),R[0][0]==="\\"&&R[1]?L+="\\"+String(Number(R[1])+se):(L+=R[0],R[0]==="("&&O++)}return L}).map(F=>`(${F})`).join(S)}const _=/\b\B/,C="[a-zA-Z]\\w*",I="[a-zA-Z_]\\w*",P="\\b\\d+(\\.\\d+)?",E="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",H="\\b(0b[01]+)",V="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Q=(g={})=>{const S=/^#![ ]*\//;return g.binary&&(g.begin=p(S,/.*\b/,g.binary,/\b.*/)),a({scope:"meta",begin:S,end:/$/,relevance:0,"on:begin":(O,F)=>{O.index!==0&&F.ignoreMatch()}},g)},re={begin:"\\\\[\\s\\S]",relevance:0},M={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[re]},ne={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[re]},q={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/},Z=function(g,S,O={}){const F=a({scope:"comment",begin:g,end:S,contains:[]},O);F.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 se=x("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return F.contains.push({begin:p(/[ ]+/,"(",se,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),F},te=Z("//","$"),le=Z("/\\*","\\*/"),Se=Z("#","$"),xe={scope:"number",begin:P,relevance:0},T={scope:"number",begin:E,relevance:0},Ce={scope:"number",begin:H,relevance:0},fe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[re,{begin:/\[/,end:/\]/,relevance:0,contains:[re]}]},Fe={scope:"title",begin:C,relevance:0},Re={scope:"title",begin:I,relevance:0},Me={begin:"\\.\\s*"+I,relevance:0};var Le=Object.freeze({__proto__:null,APOS_STRING_MODE:M,BACKSLASH_ESCAPE:re,BINARY_NUMBER_MODE:Ce,BINARY_NUMBER_RE:H,COMMENT:Z,C_BLOCK_COMMENT_MODE:le,C_LINE_COMMENT_MODE:te,C_NUMBER_MODE:T,C_NUMBER_RE:E,END_SAME_AS_BEGIN:function(g){return Object.assign(g,{"on:begin":(S,O)=>{O.data._beginMatch=S[1]},"on:end":(S,O)=>{O.data._beginMatch!==S[1]&&O.ignoreMatch()}})},HASH_COMMENT_MODE:Se,IDENT_RE:C,MATCH_NOTHING_RE:_,METHOD_GUARD:Me,NUMBER_MODE:xe,NUMBER_RE:P,PHRASAL_WORDS_MODE:q,QUOTE_STRING_MODE:ne,REGEXP_MODE:fe,RE_STARTERS_RE:V,SHEBANG:Q,TITLE_MODE:Fe,UNDERSCORE_IDENT_RE:I,UNDERSCORE_TITLE_MODE:Re});function Et(g,S){g.input[g.index-1]==="."&&S.ignoreMatch()}function Ae(g,S){g.className!==void 0&&(g.scope=g.className,delete g.className)}function it(g,S){S&&g.beginKeywords&&(g.begin="\\b("+g.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",g.__beforeBegin=Et,g.keywords=g.keywords||g.beginKeywords,delete g.beginKeywords,g.relevance===void 0&&(g.relevance=0))}function st(g,S){Array.isArray(g.illegal)&&(g.illegal=x(...g.illegal))}function Ei(g,S){if(g.match){if(g.begin||g.end)throw new Error("begin & end are not supported with match");g.begin=g.match,delete g.match}}function ki(g,S){g.relevance===void 0&&(g.relevance=1)}const Xt=(g,S)=>{if(!g.beforeMatch)return;if(g.starts)throw new Error("beforeMatch cannot be used with starts");const O=Object.assign({},g);Object.keys(g).forEach(F=>{delete g[F]}),g.keywords=O.keywords,g.begin=p(O.beforeMatch,c(O.begin)),g.starts={relevance:0,contains:[Object.assign(O,{endsParent:!0})]},g.relevance=0,delete O.beforeMatch},Yt=["of","and","for","in","not","or","if","then","parent","list","value"],Oi="keyword";function Qt(g,S,O=Oi){const F=Object.create(null);return typeof g=="string"?se(O,g.split(" ")):Array.isArray(g)?se(O,g):Object.keys(g).forEach(function(ae){Object.assign(F,Qt(g[ae],S,ae))}),F;function se(ae,L){S&&(L=L.map(R=>R.toLowerCase())),L.forEach(function(R){const z=R.split("|");F[z[0]]=[ae,He(z[0],z[1])]})}}function He(g,S){return S?Number(S):ft(g)?0:1}function ft(g){return Yt.includes(g.toLowerCase())}const kt={},Pe=g=>{console.error(g)},pt=(g,...S)=>{console.log(`WARN: ${g}`,...S)},qe=(g,S)=>{kt[`${g}/${S}`]||(console.log(`Deprecated as of ${g}. ${S}`),kt[`${g}/${S}`]=!0)},at=new Error;function Ot(g,S,{key:O}){let F=0;const se=g[O],ae={},L={};for(let R=1;R<=S.length;R++)L[R+F]=se[R],ae[R+F]=!0,F+=w(S[R-1]);g[O]=L,g[O]._emit=ae,g[O]._multi=!0}function ei(g){if(Array.isArray(g.begin)){if(g.skip||g.excludeBegin||g.returnBegin)throw Pe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),at;if(typeof g.beginScope!="object"||g.beginScope===null)throw Pe("beginScope must be object"),at;Ot(g,g.begin,{key:"beginScope"}),g.begin=b(g.begin,{joinWith:""})}}function Cr(g){if(Array.isArray(g.end)){if(g.skip||g.excludeEnd||g.returnEnd)throw Pe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),at;if(typeof g.endScope!="object"||g.endScope===null)throw Pe("endScope must be object"),at;Ot(g,g.end,{key:"endScope"}),g.end=b(g.end,{joinWith:""})}}function Ar(g){g.scope&&typeof g.scope=="object"&&g.scope!==null&&(g.beginScope=g.scope,delete g.scope)}function Er(g){Ar(g),typeof g.beginScope=="string"&&(g.beginScope={_wrap:g.beginScope}),typeof g.endScope=="string"&&(g.endScope={_wrap:g.endScope}),ei(g),Cr(g)}function kr(g){function S(L,R){return new RegExp(m(L),"m"+(g.case_insensitive?"i":"")+(g.unicodeRegex?"u":"")+(R?"g":""))}class O{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(R,z){z.position=this.position++,this.matchIndexes[this.matchAt]=z,this.regexes.push([z,R]),this.matchAt+=w(R)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const R=this.regexes.map(z=>z[1]);this.matcherRe=S(b(R,{joinWith:"|"}),!0),this.lastIndex=0}exec(R){this.matcherRe.lastIndex=this.lastIndex;const z=this.matcherRe.exec(R);if(!z)return null;const me=z.findIndex((Mt,Ii)=>Ii>0&&Mt!==void 0),oe=this.matchIndexes[me];return z.splice(0,me),Object.assign(z,oe)}}class F{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(R){if(this.multiRegexes[R])return this.multiRegexes[R];const z=new O;return this.rules.slice(R).forEach(([me,oe])=>z.addRule(me,oe)),z.compile(),this.multiRegexes[R]=z,z}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(R,z){this.rules.push([R,z]),z.type==="begin"&&this.count++}exec(R){const z=this.getMatcher(this.regexIndex);z.lastIndex=this.lastIndex;let me=z.exec(R);if(this.resumingScanAtSamePosition()&&!(me&&me.index===this.lastIndex)){const oe=this.getMatcher(0);oe.lastIndex=this.lastIndex+1,me=oe.exec(R)}return me&&(this.regexIndex+=me.position+1,this.regexIndex===this.count&&this.considerAll()),me}}function se(L){const R=new F;return L.contains.forEach(z=>R.addRule(z.begin,{rule:z,type:"begin"})),L.terminatorEnd&&R.addRule(L.terminatorEnd,{type:"end"}),L.illegal&&R.addRule(L.illegal,{type:"illegal"}),R}function ae(L,R){const z=L;if(L.isCompiled)return z;[Ae,Ei,Er,Xt].forEach(oe=>oe(L,R)),g.compilerExtensions.forEach(oe=>oe(L,R)),L.__beforeBegin=null,[it,st,ki].forEach(oe=>oe(L,R)),L.isCompiled=!0;let me=null;return typeof L.keywords=="object"&&L.keywords.$pattern&&(L.keywords=Object.assign({},L.keywords),me=L.keywords.$pattern,delete L.keywords.$pattern),me=me||/\w+/,L.keywords&&(L.keywords=Qt(L.keywords,g.case_insensitive)),z.keywordPatternRe=S(me,!0),R&&(L.begin||(L.begin=/\B|\b/),z.beginRe=S(z.begin),!L.end&&!L.endsWithParent&&(L.end=/\B|\b/),L.end&&(z.endRe=S(z.end)),z.terminatorEnd=m(z.end)||"",L.endsWithParent&&R.terminatorEnd&&(z.terminatorEnd+=(L.end?"|":"")+R.terminatorEnd)),L.illegal&&(z.illegalRe=S(L.illegal)),L.contains||(L.contains=[]),L.contains=[].concat(...L.contains.map(function(oe){return Or(oe==="self"?L:oe)})),L.contains.forEach(function(oe){ae(oe,z)}),L.starts&&ae(L.starts,R),z.matcher=se(z),z}if(g.compilerExtensions||(g.compilerExtensions=[]),g.contains&&g.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return g.classNameAliases=a(g.classNameAliases||{}),ae(g)}function Ts(g){return g?g.endsWithParent||Ts(g.starts):!1}function Or(g){return g.variants&&!g.cachedVariants&&(g.cachedVariants=g.variants.map(function(S){return a(g,{variants:null},S)})),g.cachedVariants?g.cachedVariants:Ts(g)?a(g,{starts:g.starts?a(g.starts):null}):Object.isFrozen(g)?a(g):g}var Mr="11.11.1";class Ir extends Error{constructor(S,O){super(S),this.name="HTMLInjectionError",this.html=O}}const Mi=i,zs=a,js=Symbol("nomatch"),Rr=7,Vs=function(g){const S=Object.create(null),O=Object.create(null),F=[];let se=!0;const ae="Could not find the language '{}', did you forget to load/include a language module?",L={disableAutodetect:!0,name:"Plain text",contains:[]};let R={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:r};function z(A){return R.noHighlightRe.test(A)}function me(A){let B=A.className+" ";B+=A.parentNode?A.parentNode.className:"";const W=R.languageDetectRe.exec(B);if(W){const K=Ze(W[1]);return K||(pt(ae.replace("{}",W[1])),pt("Falling back to no-highlight mode for this block.",A)),K?W[1]:"no-highlight"}return B.split(/\s+/).find(K=>z(K)||Ze(K))}function oe(A,B,W){let K="",ce="";typeof B=="object"?(K=A,W=B.ignoreIllegals,ce=B.language):(qe("10.7.0","highlight(lang, code, ...args) has been deprecated."),qe("10.7.0",`Please use highlight(code, options) instead.
1569
+ https://github.com/highlightjs/highlight.js/issues/2277`),ce=A,K=B),W===void 0&&(W=!0);const $e={code:K,language:ce};ii("before:highlight",$e);const Xe=$e.result?$e.result:Mt($e.language,$e.code,W);return Xe.code=$e.code,ii("after:highlight",Xe),Xe}function Mt(A,B,W,K){const ce=Object.create(null);function $e(k,$){return k.keywords[$]}function Xe(){if(!j.keywords){de.addText(J);return}let k=0;j.keywordPatternRe.lastIndex=0;let $=j.keywordPatternRe.exec(J),U="";for(;$;){U+=J.substring(k,$.index);const G=Be.case_insensitive?$[0].toLowerCase():$[0],ue=$e(j,G);if(ue){const[Ue,Jr]=ue;if(de.addText(U),U="",ce[G]=(ce[G]||0)+1,ce[G]<=Rr&&(ri+=Jr),Ue.startsWith("_"))U+=$[0];else{const Zr=Be.classNameAliases[Ue]||Ue;De($[0],Zr)}}else U+=$[0];k=j.keywordPatternRe.lastIndex,$=j.keywordPatternRe.exec(J)}U+=J.substring(k),de.addText(U)}function si(){if(J==="")return;let k=null;if(typeof j.subLanguage=="string"){if(!S[j.subLanguage]){de.addText(J);return}k=Mt(j.subLanguage,J,!0,Js[j.subLanguage]),Js[j.subLanguage]=k._top}else k=Ri(J,j.subLanguage.length?j.subLanguage:null);j.relevance>0&&(ri+=k.relevance),de.__addSublanguage(k._emitter,k.language)}function we(){j.subLanguage!=null?si():Xe(),J=""}function De(k,$){k!==""&&(de.startScope($),de.addText(k),de.endScope())}function Us(k,$){let U=1;const G=$.length-1;for(;U<=G;){if(!k._emit[U]){U++;continue}const ue=Be.classNameAliases[k[U]]||k[U],Ue=$[U];ue?De(Ue,ue):(J=Ue,Xe(),J=""),U++}}function Ws(k,$){return k.scope&&typeof k.scope=="string"&&de.openNode(Be.classNameAliases[k.scope]||k.scope),k.beginScope&&(k.beginScope._wrap?(De(J,Be.classNameAliases[k.beginScope._wrap]||k.beginScope._wrap),J=""):k.beginScope._multi&&(Us(k.beginScope,$),J="")),j=Object.create(k,{parent:{value:j}}),j}function Gs(k,$,U){let G=v(k.endRe,U);if(G){if(k["on:end"]){const ue=new e(k);k["on:end"]($,ue),ue.isMatchIgnored&&(G=!1)}if(G){for(;k.endsParent&&k.parent;)k=k.parent;return k}}if(k.endsWithParent)return Gs(k.parent,$,U)}function qr(k){return j.matcher.regexIndex===0?(J+=k[0],1):(Di=!0,0)}function Ur(k){const $=k[0],U=k.rule,G=new e(U),ue=[U.__beforeBegin,U["on:begin"]];for(const Ue of ue)if(Ue&&(Ue(k,G),G.isMatchIgnored))return qr($);return U.skip?J+=$:(U.excludeBegin&&(J+=$),we(),!U.returnBegin&&!U.excludeBegin&&(J=$)),Ws(U,k),U.returnBegin?0:$.length}function Wr(k){const $=k[0],U=B.substring(k.index),G=Gs(j,k,U);if(!G)return js;const ue=j;j.endScope&&j.endScope._wrap?(we(),De($,j.endScope._wrap)):j.endScope&&j.endScope._multi?(we(),Us(j.endScope,k)):ue.skip?J+=$:(ue.returnEnd||ue.excludeEnd||(J+=$),we(),ue.excludeEnd&&(J=$));do j.scope&&de.closeNode(),!j.skip&&!j.subLanguage&&(ri+=j.relevance),j=j.parent;while(j!==G.parent);return G.starts&&Ws(G.starts,k),ue.returnEnd?0:$.length}function Gr(){const k=[];for(let $=j;$!==Be;$=$.parent)$.scope&&k.unshift($.scope);k.forEach($=>de.openNode($))}let ai={};function Ks(k,$){const U=$&&$[0];if(J+=k,U==null)return we(),0;if(ai.type==="begin"&&$.type==="end"&&ai.index===$.index&&U===""){if(J+=B.slice($.index,$.index+1),!se){const G=new Error(`0 width match regex (${A})`);throw G.languageName=A,G.badRule=ai.rule,G}return 1}if(ai=$,$.type==="begin")return Ur($);if($.type==="illegal"&&!W){const G=new Error('Illegal lexeme "'+U+'" for mode "'+(j.scope||"<unnamed>")+'"');throw G.mode=j,G}else if($.type==="end"){const G=Wr($);if(G!==js)return G}if($.type==="illegal"&&U==="")return J+=`
1570
+ `,1;if($i>1e5&&$i>$.index*3)throw new Error("potential infinite loop, way more iterations than matches");return J+=U,U.length}const Be=Ze(A);if(!Be)throw Pe(ae.replace("{}",A)),new Error('Unknown language: "'+A+'"');const Kr=kr(Be);let Pi="",j=K||Kr;const Js={},de=new R.__emitter(R);Gr();let J="",ri=0,rt=0,$i=0,Di=!1;try{if(Be.__emitTokens)Be.__emitTokens(B,de);else{for(j.matcher.considerAll();;){$i++,Di?Di=!1:j.matcher.considerAll(),j.matcher.lastIndex=rt;const k=j.matcher.exec(B);if(!k)break;const $=B.substring(rt,k.index),U=Ks($,k);rt=k.index+U}Ks(B.substring(rt))}return de.finalize(),Pi=de.toHTML(),{language:A,value:Pi,relevance:ri,illegal:!1,_emitter:de,_top:j}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:A,value:Mi(B),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:rt,context:B.slice(rt-100,rt+100),mode:k.mode,resultSoFar:Pi},_emitter:de};if(se)return{language:A,value:Mi(B),illegal:!1,relevance:0,errorRaised:k,_emitter:de,_top:j};throw k}}function Ii(A){const B={value:Mi(A),illegal:!1,relevance:0,_top:L,_emitter:new R.__emitter(R)};return B._emitter.addText(A),B}function Ri(A,B){B=B||R.languages||Object.keys(S);const W=Ii(A),K=B.filter(Ze).filter(qs).map(we=>Mt(we,A,!1));K.unshift(W);const ce=K.sort((we,De)=>{if(we.relevance!==De.relevance)return De.relevance-we.relevance;if(we.language&&De.language){if(Ze(we.language).supersetOf===De.language)return 1;if(Ze(De.language).supersetOf===we.language)return-1}return 0}),[$e,Xe]=ce,si=$e;return si.secondBest=Xe,si}function Lr(A,B,W){const K=B&&O[B]||W;A.classList.add("hljs"),A.classList.add(`language-${K}`)}function Li(A){let B=null;const W=me(A);if(z(W))return;if(ii("before:highlightElement",{el:A,language:W}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(R.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(A)),R.throwUnescapedHTML))throw new Ir("One of your code blocks includes unescaped HTML.",A.innerHTML);B=A;const K=B.textContent,ce=W?oe(K,{language:W,ignoreIllegals:!0}):Ri(K);A.innerHTML=ce.value,A.dataset.highlighted="yes",Lr(A,W,ce.language),A.result={language:ce.language,re:ce.relevance,relevance:ce.relevance},ce.secondBest&&(A.secondBest={language:ce.secondBest.language,relevance:ce.secondBest.relevance}),ii("after:highlightElement",{el:A,result:ce,text:K})}function Pr(A){R=zs(R,A)}const $r=()=>{ti(),qe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Dr(){ti(),qe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Fs=!1;function ti(){function A(){ti()}if(document.readyState==="loading"){Fs||window.addEventListener("DOMContentLoaded",A,!1),Fs=!0;return}document.querySelectorAll(R.cssSelector).forEach(Li)}function Br(A,B){let W=null;try{W=B(g)}catch(K){if(Pe("Language definition for '{}' could not be registered.".replace("{}",A)),se)Pe(K);else throw K;W=L}W.name||(W.name=A),S[A]=W,W.rawDefinition=B.bind(null,g),W.aliases&&Hs(W.aliases,{languageName:A})}function Tr(A){delete S[A];for(const B of Object.keys(O))O[B]===A&&delete O[B]}function zr(){return Object.keys(S)}function Ze(A){return A=(A||"").toLowerCase(),S[A]||S[O[A]]}function Hs(A,{languageName:B}){typeof A=="string"&&(A=[A]),A.forEach(W=>{O[W.toLowerCase()]=B})}function qs(A){const B=Ze(A);return B&&!B.disableAutodetect}function jr(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=B=>{A["before:highlightBlock"](Object.assign({block:B.el},B))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=B=>{A["after:highlightBlock"](Object.assign({block:B.el},B))})}function Vr(A){jr(A),F.push(A)}function Fr(A){const B=F.indexOf(A);B!==-1&&F.splice(B,1)}function ii(A,B){const W=A;F.forEach(function(K){K[W]&&K[W](B)})}function Hr(A){return qe("10.7.0","highlightBlock will be removed entirely in v12.0"),qe("10.7.0","Please use highlightElement now."),Li(A)}Object.assign(g,{highlight:oe,highlightAuto:Ri,highlightAll:ti,highlightElement:Li,highlightBlock:Hr,configure:Pr,initHighlighting:$r,initHighlightingOnLoad:Dr,registerLanguage:Br,unregisterLanguage:Tr,listLanguages:zr,getLanguage:Ze,registerAliases:Hs,autoDetection:qs,inherit:zs,addPlugin:Vr,removePlugin:Fr}),g.debugMode=function(){se=!1},g.safeMode=function(){se=!0},g.versionString=Mr,g.regex={concat:p,lookahead:c,either:x,optional:f,anyNumberOfTimes:l};for(const A in Le)typeof Le[A]=="object"&&t(Le[A]);return Object.assign(g,Le),g},gt=Vs({});return gt.newInstance=()=>Vs({}),us=gt,gt.HighlightJS=gt,gt.default=gt,us}var ic=tc();const Ai=ec(ic),Ni="[A-Za-z$_][0-9A-Za-z$_]*",Nr=["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"],br=["true","false","null","undefined","NaN","Infinity"],yr=["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"],vr=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],xr=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],wr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],_r=[].concat(xr,yr,vr);function sc(t){const e=t.regex,i=(q,{after:Z})=>{const te="</"+q[0].slice(1);return q.input.indexOf(te,Z)!==-1},a=Ni,s={begin:"<>",end:"</>"},n=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(q,Z)=>{const te=q[0].length+q.index,le=q.input[te];if(le==="<"||le===","){Z.ignoreMatch();return}le===">"&&(i(q,{after:te})||Z.ignoreMatch());let Se;const xe=q.input.substring(te);if(Se=xe.match(/^\s*=/)){Z.ignoreMatch();return}if((Se=xe.match(/^\s+extends\s+/))&&Se.index===0){Z.ignoreMatch();return}}},d={$pattern:Ni,keyword:Nr,literal:br,built_in:_r,"variable.language":wr},h="[0-9](_?[0-9])*",u=`\\.(${h})`,r="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",m={className:"number",variants:[{begin:`(\\b(${r})((${u})|\\.)?|(${u}))[eE][+-]?(${h})\\b`},{begin:`\\b(${r})\\b((${u})\\b|\\.)?|(${u})\\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:d,contains:[]},l={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"xml"}},f={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"css"}},p={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"graphql"}},N={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,c]},x={className:"comment",variants:[t.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:a+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},w=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,f,p,N,{match:/\$\d+/},m];c.contains=w.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(w)});const v=[].concat(x,c.contains),y=v.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(v)}]),b={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y},_={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,e.concat(a,"(",e.concat(/\./,a),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,a],scope:{1:"keyword",3:"title.class"}}]},C={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:{_:[...yr,...vr]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},P={variants:[{match:[/function/,/\s+/,a,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[b],illegal:/%/},E={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function H(q){return e.concat("(?!",q.join("|"),")")}const V={match:e.concat(/\b/,H([...xr,"super","import"].map(q=>`${q}\\s*\\(`)),a,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Q={begin:e.concat(/\./,e.lookahead(e.concat(a,/(?![0-9A-Za-z$_(])/))),end:a,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},re={match:[/get|set/,/\s+/,a,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},b]},M="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",ne={match:[/const|var|let/,/\s+/,a,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(M)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[b]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,f,p,N,x,{match:/\$\d+/},m,C,{scope:"attr",match:a+e.lookahead(":"),relevance:0},ne,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,t.REGEXP_MODE,{className:"function",begin:M,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:n},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},P,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[b,t.inherit(t.TITLE_MODE,{begin:a,className:"title.function"})]},{match:/\.\.\./,relevance:0},Q,{match:"\\$"+a,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[b]},V,E,_,re,{match:/\$[(.]/}]}}function ac(t){const e=t.regex,i=sc(t),a=Ni,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],n={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[i.exports.CLASS_REFERENCE]},d={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},h=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],u={$pattern:Ni,keyword:Nr.concat(h),literal:br,built_in:_r.concat(s),"variable.language":wr},r={className:"meta",begin:"@"+a},m=(p,N,x)=>{const w=p.contains.findIndex(v=>v.label===N);if(w===-1)throw new Error("can not find mode to replace");p.contains.splice(w,1,x)};Object.assign(i.keywords,u),i.exports.PARAMS_CONTAINS.push(r);const c=i.contains.find(p=>p.scope==="attr"),l=Object.assign({},c,{match:e.concat(a,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,c,l]),i.contains=i.contains.concat([r,n,o,l]),m(i,"shebang",t.SHEBANG()),m(i,"use_strict",d);const f=i.contains.find(p=>p.label==="func.def");return f.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function rc(t){const e=t.regex,i=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),a=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},n={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=t.inherit(n,{begin:/\(/,end:/\)/}),d=t.inherit(t.APOS_STRING_MODE,{className:"string"}),h=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:a,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[n,h,d,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[n,o,h,d]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[h]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(i,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:u}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const nc=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.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:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.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_-]*/}}),oc=["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"],lc=["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"],cc=[...oc,...lc],mc=["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(),dc=["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(),uc=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),hc=["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 fc(t){const e=t.regex,i=nc(t),a={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",n=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",d=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,a,i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+dc.join("|")+")"},{begin:":(:)?("+uc.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+hc.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,...d,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...d,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:n},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:mc.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+cc.join("|")+")\\b"}]}}const Sr=document.createElement("style");Sr.innerText=[Yl,Ql].join(`
1571
+ `);document.head.appendChild(Sr);Ai.registerLanguage("typescript",ac);Ai.registerLanguage("html",rc);Ai.registerLanguage("css",fc);function pc(...t){const e=document.createElement("div"),i=document.createElement("div");i.classList.add("tab-control");const a=document.createElement("div");return t.forEach(s=>{e.appendChild(s),s.addEventListener("click",()=>{t.forEach(n=>n.removeAttribute("selected")),s.setAttribute("selected",""),a.innerHTML="",a.appendChild(s.content),a.className=s.className,a.classList.add("tab-content")})}),i.appendChild(e),i.appendChild(a),a.classList.add("tab-content"),t[0].setAttribute("selected",""),a.appendChild(t[0].content),i}function Lt(t,e){const i=document.createElement("div");return i.role="tab",i.tabIndex=0,i.innerText=t,i.content=e,e.tagName=="PRE"&&i.classList.add("code"),i}function Tt(t,e){const i=document.createElement(t);return typeof e=="string"?i.innerHTML=e:e.forEach(a=>{i.appendChild(a)}),i}async function gc(t,e,i){const a=e.mainContent,s=Tt("div",a);s.id=`example-preview-${i}`;const n=typeof e.css=="string"?void 0:e.css?.label,o=typeof e.css=="string"?e.css:e.css?.content,d=pc(Lt("Preview",s),Lt("HTML",ci("html",a)),...o?[Lt(n??"CSS",ci("css",o))]:[],...e.initializer&&e.initializer.content?[Lt(e.initializer.label??"TS",ci("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(u=>Lt(u.label,ci(u.language,u.content))));e.description&&t.appendChild(Tt("div",e.description));const h=Tt("div",[d]);h.classList.add("example"),t.appendChild(h),o&&Nc(`#${s.id}`,o),e.initializer?.initialize&&await e.initializer.initialize(s)}function ci(t,e){let i=e.split(/\r?\n/).map(a=>{const s=a.indexOf("///");if(s>-1){const n=a.substring(s+3).trimStart();return n?a.replace(/^(\s*)([^\s].*)$/,`$1${n}`):void 0}return a}).filter(a=>typeof a<"u").join(`
1572
+ `).trim();return t&&t!="raw"&&(i=Ai.highlight(i,{language:t}).value),Tt("pre",[Tt("code",i)])}function Nc(t,e){const i=document.createElement("style");i.innerHTML=X().use(Xl({prefix:t})).process(e).css,document.head.appendChild(i)}async function bc(t,e=document.body){const i=vc(e);let a=0;Object.keys(t).sort().forEach(async s=>{const n=document.createElement("div");n.className="example-container",i.appendChild(n);const o=t[s].default;gc(n,o,a++)})}function yc(t){const e=document.createElement("div");e.id="examples-container";const i=t.querySelector("#examples");return i?i.after(e):t.appendChild(e),e}function vc(t){return t.children?yc(t):t}const xc=`<h1 id="@cas-smartdesign/combo-box">@cas-smartdesign/combo-box</h1>
1570
1573
  <p>A combo-box element with the look and feel of the SmartDesign inputs &amp; list item layouts. It extends the <code>lit-input</code>, therefore the regular API of that element (such as configuring a label) should work here as well, except the <code>value</code>. As it is possible to select an item in the combo-box, the regular string based value may not be enough. Instead <code>comboBoxValue</code> property provides an extended information about the current selection.</p>
1571
1574
  <h2 id="attributes">Attributes</h2>
1572
1575
  <p><em>(in addition to lit-input)</em></p>
@@ -1661,10 +1664,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),z=d,k=N),w===void 0&&(
1661
1664
  </ul>
1662
1665
  <h2 id="lazy-loading">Lazy loading</h2>
1663
1666
  <p>It is possible to fetch the suggestions from the server lazily. It means that if the combo-box is configured via the <code>configureLazyLoad</code>, then the included list in the dropdown will use the given <code>onDataRequest</code> callback. If the lazy mode is activated then inMemory filtering is disabled, but the mentioned data request is also called whenever the filter text changes. A <code>loading</code> attribute is added while a pending data request is present to be able to show a loading indicator for example. See the <code>doc.ts</code> for some comprehensive examples.</p>
1664
- `,Td=document.querySelector("#markdown-container");Td.innerHTML=Bd;Ld(Object.assign({"./examples/1_declarative/index.ts":ir,"./examples/2_basic-examples/index.ts":cr,"./examples/3_filtering/index.ts":fr,"./examples/4_lazy_loading/index.ts":wr,"./examples/5_unusual_data/index.ts":Ar,"./examples/6_validation_example/index.ts":Ir}),document.querySelector(".markdown-body"));export{hi as h};
1665
- function __vite__mapDeps(indexes) {
1666
- if (!__vite__mapDeps.viteFileDeps) {
1667
- __vite__mapDeps.viteFileDeps = []
1668
- }
1669
- return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
1670
- }
1667
+ `,wc=document.querySelector("#markdown-container");wc.innerHTML=xc;bc(Object.assign({"./examples/1_declarative/index.ts":en,"./examples/2_basic-examples/index.ts":ln,"./examples/3_filtering/index.ts":hn,"./examples/4_lazy_loading/index.ts":xn,"./examples/5_unusual_data/index.ts":An,"./examples/6_validation_example/index.ts":In}),document.querySelector(".markdown-body"));export{gi as a};