@cas-smartdesign/lit-input 7.4.0 → 7.4.2

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 t of document.querySelectorAll('link[rel="modulepreload"]'))r(t);new MutationObserver(t=>{for(const u of t)if(u.type==="childList")for(const a of u.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(t){const u={};return t.integrity&&(u.integrity=t.integrity),t.referrerPolicy&&(u.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?u.credentials="include":t.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(t){if(t.ep)return;t.ep=!0;const u=n(t);fetch(t.href,u)}})();const Ts=`<!-- Load element with all dependencies directly -->
1
+ (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))r(t);new MutationObserver(t=>{for(const u of t)if(u.type==="childList")for(const a of u.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(t){const u={};return t.integrity&&(u.integrity=t.integrity),t.referrerPolicy&&(u.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?u.credentials="include":t.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(t){if(t.ep)return;t.ep=!0;const u=n(t);fetch(t.href,u)}})();const Is=`<!-- Load element with all dependencies directly -->
2
2
  <script src="./input-with-externals.js"><\/script>
3
3
 
4
4
  <div class="examples">
@@ -34,7 +34,7 @@
34
34
  <sd-lit-input label="password" type="password" value="supersecret"></sd-lit-input>
35
35
  </div>
36
36
  </div>
37
- `,Is=`<h3 id="basic-usage">Basic usage</h3>
37
+ `,Ts=`<h3 id="basic-usage">Basic usage</h3>
38
38
  `,js=`sd-lit-input {
39
39
  min-height: 66px;
40
40
  margin: 0 16px;
@@ -52,7 +52,7 @@
52
52
  width: 280px;
53
53
  text-align: right;
54
54
  }
55
- `,Ds={mainContent:Ts,description:Is,css:js},zs=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),Us=`<!-- Load element with all dependencies directly -->
55
+ `,Ds={mainContent:Is,description:Ts,css:js},zs=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),Us="modulepreload",Bs=function(i,e){return new URL(i,e).href},Vn={},fn=function(e,n,r){let t=Promise.resolve();if(n&&n.length>0){let d=function(s){return Promise.all(s.map(c=>Promise.resolve(c).then(o=>({status:"fulfilled",value:o}),o=>({status:"rejected",reason:o}))))};const a=document.getElementsByTagName("link"),f=document.querySelector("meta[property=csp-nonce]"),b=f?.nonce||f?.getAttribute("nonce");t=d(n.map(s=>{if(s=Bs(s,r),s in Vn)return;Vn[s]=!0;const c=s.endsWith(".css"),o=c?'[rel="stylesheet"]':"";if(!!r)for(let m=a.length-1;m>=0;m--){const g=a[m];if(g.href===s&&(!c||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${o}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":Us,c||(p.as="script"),p.crossOrigin="",p.href=s,b&&p.setAttribute("nonce",b),document.head.appendChild(p),c)return new Promise((m,g)=>{p.addEventListener("load",m),p.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${s}`)))})}))}function u(a){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=a,window.dispatchEvent(f),!f.defaultPrevented)throw a}return t.then(a=>{for(const f of a||[])f.status==="rejected"&&u(f.reason);return e().catch(u)})},qs=`<!-- Load element with all dependencies directly -->
56
56
  <script src="./input-with-externals.js"><\/script>
57
57
 
58
58
  <div class="examples">
@@ -74,11 +74,18 @@
74
74
  <span>Max date</span>
75
75
  <sd-lit-input type="date" name="endDate" max="2025-08-01"></sd-lit-input>
76
76
  </div>
77
+ <div class="example-container">
78
+ <span>Required</span>
79
+ <sd-lit-input required
80
+ ><button id="random-generator-button" slot="suffix">Random</button
81
+ ><button id="clear-button" slot="suffix">Clear</button></sd-lit-input
82
+ >
83
+ </div>
77
84
  <button type="submit">Submit</button>
78
85
  </form>
79
86
  </div>
80
- `,Bs=`<h3 id="form-validations">Form validations</h3>
81
- `,qs=`sd-lit-input {
87
+ `,Fs=`<h3 id="form-validations">Form validations</h3>
88
+ `,Hs=`sd-lit-input {
82
89
  min-height: 66px;
83
90
  margin: 0 16px;
84
91
  width: 400px;
@@ -95,7 +102,24 @@
95
102
  width: 280px;
96
103
  text-align: right;
97
104
  }
98
- `,Fs={mainContent:Us,description:Bs,css:qs},Hs=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),Ws=`<!-- Load element with all dependencies directly -->
105
+
106
+ #clear-button {
107
+ margin-left: 8px;
108
+ }
109
+ `,Ws=`import SDInput from "@cas-smartdesign/lit-input";
110
+
111
+ document.getElementById("random-generator-button").addEventListener("click", (e) => {
112
+ e.preventDefault();
113
+ const relevantInput = (e.target as HTMLElement).parentElement as SDInput;
114
+ relevantInput.value = (Math.random() + 1).toString(36).substring(7);
115
+ });
116
+
117
+ document.getElementById("clear-button").addEventListener("click", (e) => {
118
+ e.preventDefault();
119
+ const relevantInput = (e.target as HTMLElement).parentElement as SDInput;
120
+ relevantInput.value = "";
121
+ });
122
+ `,Vs={mainContent:qs,description:Fs,css:Hs,initializer:{content:Ws,type:"typescript",initialize:()=>fn(()=>import("./form-validation.js"),[],import.meta.url)}},Gs=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),Zs=`<!-- Load element with all dependencies directly -->
99
123
  <script src="./input-with-externals.js"><\/script>
100
124
  <form action="" autocomplete="on">
101
125
  <sd-lit-input label="E-Mail" type="email" name="email-field" id="email-field"></sd-lit-input>
@@ -110,9 +134,9 @@
110
134
  <button type="submit">Submit</button>
111
135
  </div>
112
136
  </form>
113
- `,Vs=`<h3 id="login-form">Login form</h3>
137
+ `,Js=`<h3 id="login-form">Login form</h3>
114
138
  <p>This form can be used to test autofill/autocomplete mechanism</p>
115
- `,Gs=`sd-lit-input {
139
+ `,Ks=`sd-lit-input {
116
140
  min-height: 66px;
117
141
  width: 400px;
118
142
  outline: none;
@@ -126,7 +150,7 @@ fieldset {
126
150
  form > * {
127
151
  display: block;
128
152
  }
129
- `,Zs={mainContent:Ws,description:Vs,css:Gs},Js=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Ks="modulepreload",Xs=function(i,e){return new URL(i,e).href},Wn={},Pi=function(e,n,r){let t=Promise.resolve();if(n&&n.length>0){let d=function(s){return Promise.all(s.map(c=>Promise.resolve(c).then(o=>({status:"fulfilled",value:o}),o=>({status:"rejected",reason:o}))))};const a=document.getElementsByTagName("link"),f=document.querySelector("meta[property=csp-nonce]"),b=f?.nonce||f?.getAttribute("nonce");t=d(n.map(s=>{if(s=Xs(s,r),s in Wn)return;Wn[s]=!0;const c=s.endsWith(".css"),o=c?'[rel="stylesheet"]':"";if(!!r)for(let m=a.length-1;m>=0;m--){const g=a[m];if(g.href===s&&(!c||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${o}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":Ks,c||(p.as="script"),p.crossOrigin="",p.href=s,b&&p.setAttribute("nonce",b),document.head.appendChild(p),c)return new Promise((m,g)=>{p.addEventListener("load",m),p.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${s}`)))})}))}function u(a){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=a,window.dispatchEvent(f),!f.defaultPrevented)throw a}return t.then(a=>{for(const f of a||[])f.status==="rejected"&&u(f.reason);return e().catch(u)})},Qs=`<div id="advanced-examples">
153
+ `,Xs={mainContent:Zs,description:Js,css:Ks},Qs=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Ys=`<div id="advanced-examples">
130
154
  <div class="example-container">
131
155
  <span>Even the placeholder is blue</span>
132
156
  <sd-lit-input class="blue" label="blue" placeholder="placeholder"></sd-lit-input>
@@ -155,8 +179,8 @@ form > * {
155
179
  <sd-lit-input label="multiple rows" rows="5" style="padding-bottom: 20px"></sd-lit-input>
156
180
  </div>
157
181
  </div>
158
- `,Ys=`<h3 id="advanced-use-cases">Advanced use cases</h3>
159
- `,er=`sd-lit-input {
182
+ `,er=`<h3 id="advanced-use-cases">Advanced use cases</h3>
183
+ `,tr=`sd-lit-input {
160
184
  min-height: 66px;
161
185
  margin: 0 16px;
162
186
  width: 400px;
@@ -194,7 +218,7 @@ form > * {
194
218
  width: 280px;
195
219
  text-align: right;
196
220
  }
197
- `,tr=`import { ValidationLevel } from "@cas-smartdesign/field-validation-message";
221
+ `,nr=`import { ValidationLevel } from "@cas-smartdesign/field-validation-message";
198
222
  import SDInput from "@cas-smartdesign/lit-input";
199
223
  import "@cas-smartdesign/lit-input";
200
224
 
@@ -222,7 +246,7 @@ tokenSelectorInput.addEventListener("value-change", (event) => {
222
246
  tokenSelectorExample.querySelector(".token-wrapper").appendChild(tokenEl);
223
247
  tokenSelectorInput.value = "";
224
248
  });
225
- `,nr={mainContent:Qs,description:Ys,css:er,initializer:{content:tr,type:"typescript",initialize:()=>Pi(()=>import("./misc-examples.js"),[],import.meta.url)}},ir=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),sr=`<!-- Load element with all dependencies directly -->
249
+ `,ir={mainContent:Ys,description:er,css:tr,initializer:{content:nr,type:"typescript",initialize:()=>fn(()=>import("./misc-examples.js"),[],import.meta.url)}},sr=Object.freeze(Object.defineProperty({__proto__:null,default:ir},Symbol.toStringTag,{value:"Module"})),rr=`<!-- Load element with all dependencies directly -->
226
250
  <script src="./input-with-externals.js"><\/script>
227
251
 
228
252
  <div class="examples">
@@ -246,8 +270,8 @@ tokenSelectorInput.addEventListener("value-change", (event) => {
246
270
  inactive></sd-lit-input>
247
271
  </div>
248
272
  </div>
249
- `,rr=`<h3 id="declarative-restrictions">Declarative restrictions</h3>
250
- `,or=`sd-lit-input {
273
+ `,or=`<h3 id="declarative-restrictions">Declarative restrictions</h3>
274
+ `,ar=`sd-lit-input {
251
275
  min-height: 66px;
252
276
  margin: 0 16px;
253
277
  width: 400px;
@@ -264,7 +288,7 @@ tokenSelectorInput.addEventListener("value-change", (event) => {
264
288
  width: 280px;
265
289
  text-align: right;
266
290
  }
267
- `,ar={mainContent:sr,description:rr,css:or},lr=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"})),cr=`<div id="validation-examples" class="examples">
291
+ `,lr={mainContent:rr,description:or,css:ar},cr=Object.freeze(Object.defineProperty({__proto__:null,default:lr},Symbol.toStringTag,{value:"Module"})),ur=`<div id="validation-examples" class="examples">
268
292
  <div class="example-container" mandatory>
269
293
  <span>Mandatory</span>
270
294
  <sd-lit-input label="mandatory"></sd-lit-input>
@@ -312,8 +336,8 @@ tokenSelectorInput.addEventListener("value-change", (event) => {
312
336
  <sd-lit-input label="Can't touch this" disabled></sd-lit-input>
313
337
  </div>
314
338
  </div>
315
- `,ur=`<h3 id="validation-examples">Validation examples</h3>
316
- `,dr=`sd-lit-input {
339
+ `,dr=`<h3 id="validation-examples">Validation examples</h3>
340
+ `,hr=`sd-lit-input {
317
341
  min-height: 66px;
318
342
  margin: 0 16px;
319
343
  width: 400px;
@@ -331,7 +355,7 @@ tokenSelectorInput.addEventListener("value-change", (event) => {
331
355
  width: 280px;
332
356
  text-align: right;
333
357
  }
334
- `,hr=`import { ValidationLevel } from "@cas-smartdesign/field-validation-message";
358
+ `,pr=`import { ValidationLevel } from "@cas-smartdesign/field-validation-message";
335
359
  import SDInput from "@cas-smartdesign/lit-input";
336
360
  import "@cas-smartdesign/lit-input";
337
361
 
@@ -371,12 +395,12 @@ function setupValidation(attribute: string, validationLevel: ValidationLevel) {
371
395
  setupValidation("mandatory", ValidationLevel.Error);
372
396
  setupValidation("recommended", ValidationLevel.Warn);
373
397
  setupValidation("suggestion", ValidationLevel.Suggest);
374
- `,pr={mainContent:cr,description:ur,css:dr,initializer:{content:hr,type:"typescript",initialize:()=>Pi(()=>import("./validation.js"),[],import.meta.url)}},fr=Object.freeze(Object.defineProperty({__proto__:null,default:pr},Symbol.toStringTag,{value:"Module"}));const pt=globalThis,fn=pt.ShadowRoot&&(pt.ShadyCSS===void 0||pt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mn=Symbol(),Vn=new WeakMap;let Li=class{constructor(e,n,r){if(this._$cssResult$=!0,r!==mn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}get styleSheet(){let e=this.o;const n=this.t;if(fn&&e===void 0){const r=n!==void 0&&n.length===1;r&&(e=Vn.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Vn.set(n,e))}return e}toString(){return this.cssText}};const gn=i=>new Li(typeof i=="string"?i:i+"",void 0,mn),Ti=(i,...e)=>{const n=i.length===1?i[0]:e.reduce(((r,t,u)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(t)+i[u+1]),i[0]);return new Li(n,i,mn)},mr=(i,e)=>{if(fn)i.adoptedStyleSheets=e.map((n=>n instanceof CSSStyleSheet?n:n.styleSheet));else for(const n of e){const r=document.createElement("style"),t=pt.litNonce;t!==void 0&&r.setAttribute("nonce",t),r.textContent=n.cssText,i.appendChild(r)}},Gn=fn?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let n="";for(const r of e.cssRules)n+=r.cssText;return gn(n)})(i):i;const{is:gr,defineProperty:br,getOwnPropertyDescriptor:yr,getOwnPropertyNames:vr,getOwnPropertySymbols:wr,getPrototypeOf:xr}=Object,yt=globalThis,Zn=yt.trustedTypes,_r=Zn?Zn.emptyScript:"",Er=yt.reactiveElementPolyfillSupport,Je=(i,e)=>i,ft={toAttribute(i,e){switch(e){case Boolean:i=i?_r:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let n=i;switch(e){case Boolean:n=i!==null;break;case Number:n=i===null?null:Number(i);break;case Object:case Array:try{n=JSON.parse(i)}catch{n=null}}return n}},bn=(i,e)=>!gr(i,e),Jn={attribute:!0,type:String,converter:ft,reflect:!1,useDefault:!1,hasChanged:bn};Symbol.metadata??=Symbol("metadata"),yt.litPropertyMetadata??=new WeakMap;let Ue=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,n=Jn){if(n.state&&(n.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((n=Object.create(n)).wrapped=!0),this.elementProperties.set(e,n),!n.noAccessor){const r=Symbol(),t=this.getPropertyDescriptor(e,r,n);t!==void 0&&br(this.prototype,e,t)}}static getPropertyDescriptor(e,n,r){const{get:t,set:u}=yr(this.prototype,e)??{get(){return this[n]},set(a){this[n]=a}};return{get:t,set(a){const f=t?.call(this);u?.call(this,a),this.requestUpdate(e,f,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Jn}static _$Ei(){if(this.hasOwnProperty(Je("elementProperties")))return;const e=xr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Je("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Je("properties"))){const n=this.properties,r=[...vr(n),...wr(n)];for(const t of r)this.createProperty(t,n[t])}const e=this[Symbol.metadata];if(e!==null){const n=litPropertyMetadata.get(e);if(n!==void 0)for(const[r,t]of n)this.elementProperties.set(r,t)}this._$Eh=new Map;for(const[n,r]of this.elementProperties){const t=this._$Eu(n,r);t!==void 0&&this._$Eh.set(t,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const n=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const t of r)n.unshift(Gn(t))}else e!==void 0&&n.push(Gn(e));return n}static _$Eu(e,n){const r=n.attribute;return r===!1?void 0:typeof r=="string"?r: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,n=this.constructor.elementProperties;for(const r of n.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return mr(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,n,r){this._$AK(e,r)}_$ET(e,n){const r=this.constructor.elementProperties.get(e),t=this.constructor._$Eu(e,r);if(t!==void 0&&r.reflect===!0){const u=(r.converter?.toAttribute!==void 0?r.converter:ft).toAttribute(n,r.type);this._$Em=e,u==null?this.removeAttribute(t):this.setAttribute(t,u),this._$Em=null}}_$AK(e,n){const r=this.constructor,t=r._$Eh.get(e);if(t!==void 0&&this._$Em!==t){const u=r.getPropertyOptions(t),a=typeof u.converter=="function"?{fromAttribute:u.converter}:u.converter?.fromAttribute!==void 0?u.converter:ft;this._$Em=t;const f=a.fromAttribute(n,u.type);this[t]=f??this._$Ej?.get(t)??f,this._$Em=null}}requestUpdate(e,n,r){if(e!==void 0){const t=this.constructor,u=this[e];if(r??=t.getPropertyOptions(e),!((r.hasChanged??bn)(u,n)||r.useDefault&&r.reflect&&u===this._$Ej?.get(e)&&!this.hasAttribute(t._$Eu(e,r))))return;this.C(e,n,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,n,{useDefault:r,reflect:t,wrapped:u},a){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??n??this[e]),u!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(n=void 0),this._$AL.set(e,n)),t===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,u]of this._$Ep)this[t]=u;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[t,u]of r){const{wrapped:a}=u,f=this[t];a!==!0||this._$AL.has(t)||f===void 0||this.C(t,void 0,u,f)}}let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),this._$EO?.forEach((r=>r.hostUpdate?.())),this.update(n)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(n)}willUpdate(e){}_$AE(e){this._$EO?.forEach((n=>n.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((n=>this._$ET(n,this[n]))),this._$EM()}updated(e){}firstUpdated(e){}};Ue.elementStyles=[],Ue.shadowRootOptions={mode:"open"},Ue[Je("elementProperties")]=new Map,Ue[Je("finalized")]=new Map,Er?.({ReactiveElement:Ue}),(yt.reactiveElementVersions??=[]).push("2.1.1");const yn=globalThis,mt=yn.trustedTypes,Kn=mt?mt.createPolicy("lit-html",{createHTML:i=>i}):void 0,Ii="$lit$",Se=`lit$${Math.random().toFixed(9).slice(2)}$`,ji="?"+Se,Sr=`<${ji}>`,Ne=document,Xe=()=>Ne.createComment(""),Qe=i=>i===null||typeof i!="object"&&typeof i!="function",vn=Array.isArray,Ar=i=>vn(i)||typeof i?.[Symbol.iterator]=="function",It=`[
375
- \f\r]`,Ge=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Xn=/-->/g,Qn=/>/g,Ce=RegExp(`>|${It}(?:([^\\s"'>=/]+)(${It}*=${It}*(?:[^
376
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Yn=/'/g,ei=/"/g,Di=/^(?:script|style|textarea|title)$/i,kr=i=>(e,...n)=>({_$litType$:i,strings:e,values:n}),Ee=kr(1),Be=Symbol.for("lit-noChange"),ie=Symbol.for("lit-nothing"),ti=new WeakMap,Re=Ne.createTreeWalker(Ne,129);function zi(i,e){if(!vn(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Kn!==void 0?Kn.createHTML(e):e}const $r=(i,e)=>{const n=i.length-1,r=[];let t,u=e===2?"<svg>":e===3?"<math>":"",a=Ge;for(let f=0;f<n;f++){const b=i[f];let d,s,c=-1,o=0;for(;o<b.length&&(a.lastIndex=o,s=a.exec(b),s!==null);)o=a.lastIndex,a===Ge?s[1]==="!--"?a=Xn:s[1]!==void 0?a=Qn:s[2]!==void 0?(Di.test(s[2])&&(t=RegExp("</"+s[2],"g")),a=Ce):s[3]!==void 0&&(a=Ce):a===Ce?s[0]===">"?(a=t??Ge,c=-1):s[1]===void 0?c=-2:(c=a.lastIndex-s[2].length,d=s[1],a=s[3]===void 0?Ce:s[3]==='"'?ei:Yn):a===ei||a===Yn?a=Ce:a===Xn||a===Qn?a=Ge:(a=Ce,t=void 0);const l=a===Ce&&i[f+1].startsWith("/>")?" ":"";u+=a===Ge?b+Sr:c>=0?(r.push(d),b.slice(0,c)+Ii+b.slice(c)+Se+l):b+Se+(c===-2?f:l)}return[zi(i,u+(i[n]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Ye{constructor({strings:e,_$litType$:n},r){let t;this.parts=[];let u=0,a=0;const f=e.length-1,b=this.parts,[d,s]=$r(e,n);if(this.el=Ye.createElement(d,r),Re.currentNode=this.el.content,n===2||n===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(t=Re.nextNode())!==null&&b.length<f;){if(t.nodeType===1){if(t.hasAttributes())for(const c of t.getAttributeNames())if(c.endsWith(Ii)){const o=s[a++],l=t.getAttribute(c).split(Se),p=/([.?@])?(.*)/.exec(o);b.push({type:1,index:u,name:p[2],strings:l,ctor:p[1]==="."?Cr:p[1]==="?"?Rr:p[1]==="@"?Mr:vt}),t.removeAttribute(c)}else c.startsWith(Se)&&(b.push({type:6,index:u}),t.removeAttribute(c));if(Di.test(t.tagName)){const c=t.textContent.split(Se),o=c.length-1;if(o>0){t.textContent=mt?mt.emptyScript:"";for(let l=0;l<o;l++)t.append(c[l],Xe()),Re.nextNode(),b.push({type:2,index:++u});t.append(c[o],Xe())}}}else if(t.nodeType===8)if(t.data===ji)b.push({type:2,index:u});else{let c=-1;for(;(c=t.data.indexOf(Se,c+1))!==-1;)b.push({type:7,index:u}),c+=Se.length-1}u++}}static createElement(e,n){const r=Ne.createElement("template");return r.innerHTML=e,r}}function qe(i,e,n=i,r){if(e===Be)return e;let t=r!==void 0?n._$Co?.[r]:n._$Cl;const u=Qe(e)?void 0:e._$litDirective$;return t?.constructor!==u&&(t?._$AO?.(!1),u===void 0?t=void 0:(t=new u(i),t._$AT(i,n,r)),r!==void 0?(n._$Co??=[])[r]=t:n._$Cl=t),t!==void 0&&(e=qe(i,t._$AS(i,e.values),t,r)),e}class Or{constructor(e,n){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:n},parts:r}=this._$AD,t=(e?.creationScope??Ne).importNode(n,!0);Re.currentNode=t;let u=Re.nextNode(),a=0,f=0,b=r[0];for(;b!==void 0;){if(a===b.index){let d;b.type===2?d=new tt(u,u.nextSibling,this,e):b.type===1?d=new b.ctor(u,b.name,b.strings,this,e):b.type===6&&(d=new Nr(u,this,e)),this._$AV.push(d),b=r[++f]}a!==b?.index&&(u=Re.nextNode(),a++)}return Re.currentNode=Ne,t}p(e){let n=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,n),n+=r.strings.length-2):r._$AI(e[n])),n++}}class tt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,n,r,t){this.type=2,this._$AH=ie,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=r,this.options=t,this._$Cv=t?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&e?.nodeType===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=qe(this,e,n),Qe(e)?e===ie||e==null||e===""?(this._$AH!==ie&&this._$AR(),this._$AH=ie):e!==this._$AH&&e!==Be&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ar(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!==ie&&Qe(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ne.createTextNode(e)),this._$AH=e}$(e){const{values:n,_$litType$:r}=e,t=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Ye.createElement(zi(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===t)this._$AH.p(n);else{const u=new Or(t,this),a=u.u(this.options);u.p(n),this.T(a),this._$AH=u}}_$AC(e){let n=ti.get(e.strings);return n===void 0&&ti.set(e.strings,n=new Ye(e)),n}k(e){vn(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let r,t=0;for(const u of e)t===n.length?n.push(r=new tt(this.O(Xe()),this.O(Xe()),this,this.options)):r=n[t],r._$AI(u),t++;t<n.length&&(this._$AR(r&&r._$AB.nextSibling,t),n.length=t)}_$AR(e=this._$AA.nextSibling,n){for(this._$AP?.(!1,!0,n);e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class vt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,n,r,t,u){this.type=1,this._$AH=ie,this._$AN=void 0,this.element=e,this.name=n,this._$AM=t,this.options=u,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ie}_$AI(e,n=this,r,t){const u=this.strings;let a=!1;if(u===void 0)e=qe(this,e,n,0),a=!Qe(e)||e!==this._$AH&&e!==Be,a&&(this._$AH=e);else{const f=e;let b,d;for(e=u[0],b=0;b<u.length-1;b++)d=qe(this,f[r+b],n,b),d===Be&&(d=this._$AH[b]),a||=!Qe(d)||d!==this._$AH[b],d===ie?e=ie:e!==ie&&(e+=(d??"")+u[b+1]),this._$AH[b]=d}a&&!t&&this.j(e)}j(e){e===ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Cr extends vt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ie?void 0:e}}class Rr extends vt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ie)}}class Mr extends vt{constructor(e,n,r,t,u){super(e,n,r,t,u),this.type=5}_$AI(e,n=this){if((e=qe(this,e,n,0)??ie)===Be)return;const r=this._$AH,t=e===ie&&r!==ie||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,u=e!==ie&&(r===ie||t);t&&this.element.removeEventListener(this.name,this,r),u&&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)}}let Nr=class{constructor(e,n,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){qe(this,e)}};const Pr=yn.litHtmlPolyfillSupport;Pr?.(Ye,tt),(yn.litHtmlVersions??=[]).push("3.3.1");const Lr=(i,e,n)=>{const r=n?.renderBefore??e;let t=r._$litPart$;if(t===void 0){const u=n?.renderBefore??null;r._$litPart$=t=new tt(e.insertBefore(Xe(),u),u,void 0,n??{})}return t._$AI(i),t};const wn=globalThis;class Me extends Ue{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Lr(n,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Be}}Me._$litElement$=!0,Me.finalized=!0,wn.litElementHydrateSupport?.({LitElement:Me});const Tr=wn.litElementPolyfillSupport;Tr?.({LitElement:Me});(wn.litElementVersions??=[]).push("4.2.1");const Ir={attribute:!0,type:String,converter:ft,reflect:!1,hasChanged:bn},jr=(i=Ir,e,n)=>{const{kind:r,metadata:t}=n;let u=globalThis.litPropertyMetadata.get(t);if(u===void 0&&globalThis.litPropertyMetadata.set(t,u=new Map),r==="setter"&&((i=Object.create(i)).wrapped=!0),u.set(n.name,i),r==="accessor"){const{name:a}=n;return{set(f){const b=e.get.call(this);e.set.call(this,f),this.requestUpdate(a,b,i)},init(f){return f!==void 0&&this.C(a,void 0,i,f),f}}}if(r==="setter"){const{name:a}=n;return function(f){const b=this[a];e.call(this,f),this.requestUpdate(a,b,i)}}throw Error("Unsupported decorator location: "+r)};function Z(i){return(e,n)=>typeof n=="object"?jr(i,e,n):((r,t,u)=>{const a=t.hasOwnProperty(u);return t.constructor.createProperty(u,r),a?Object.getOwnPropertyDescriptor(t,u):void 0})(i,e,n)}const pe=i=>i??ie,Dr=":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}",zr="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",Ur="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",Br="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 qr=Object.defineProperty,xn=(i,e,n,r)=>{for(var t=void 0,u=i.length-1,a;u>=0;u--)(a=i[u])&&(t=a(e,n,t)||t);return t&&qr(e,n,t),t},ze;const et=(ze=class extends Me{static parseLevel(i){if(i){const e=Object.keys(gt).find(n=>n.toLowerCase()===i.toLowerCase());return e&&gt[e]}}static get styles(){return[Ti`
377
- ${gn(Dr)}
378
- `]}render(){return Ee`${this.iconToUse&&Ee`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(i){return i.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(i)}get iconForLevel(){switch(ze.parseLevel(this.level)){case"warn":return Br;case"suggest":return Ur;case"error":return zr;default:return null}}},ze.ID="sd-field-validation-message",ze.levelConverter={fromAttribute(i){return ze.parseLevel(i)},toAttribute(i){return i&&i.toLowerCase()}},ze);xn([Z({type:String,attribute:!0})],et.prototype,"message");xn([Z({type:String,attribute:!0})],et.prototype,"icon");xn([Z({converter:et.levelConverter,reflect:!0})],et.prototype,"level");let jt=et;var gt=(i=>(i.Warn="warn",i.Suggest="suggest",i.Error="error",i))(gt||{});customElements.get(jt.ID)||customElements.define(jt.ID,jt);const Fr=":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 Hr=Object.defineProperty,Q=(i,e,n,r)=>{for(var t=void 0,u=i.length-1,a;u>=0;u--)(a=i[u])&&(t=a(e,n,t)||t);return t&&Hr(e,n,t),t};const Wr="sd-lit-input",ni="delegatesFocus"in window.ShadowRoot.prototype;let Vr=0;var de;const X=(de=class extends Me{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";const e=Vr++;this._validationMessageId=de.ID+"_message_"+e,this._inputId=de.ID+"_input_"+e,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(e){super.firstUpdated(e),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.updateFormValidity(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=n=>{this.autocompleted=n.inputType==="insertReplacementText"||!("data"in n),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),ni||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",n=>{n.target===this&&this.inputElement.focus()})),this.inputElement.addEventListener("keyup",()=>{this.updateFormValidity()}),this.addEventListener("keydown",n=>{n.key=="Enter"&&this._internals?.form?.requestSubmit()}),this._initialized=!0}initAutocompleted(e){const n=r=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(r.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(r.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(e,"animationstart",n)):e.addEventListener("animationstart",n)}get activeShadyDOM(){const e=window.ShadyDOM;return e&&e.inUse?e: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(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=e)}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(e){this.currentText=e||"",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(e,n){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(e,n)})}static get styles(){return[Ti`
379
- ${gn(Fr)}
398
+ `,fr={mainContent:ur,description:dr,css:hr,initializer:{content:pr,type:"typescript",initialize:()=>fn(()=>import("./validation.js"),[],import.meta.url)}},mr=Object.freeze(Object.defineProperty({__proto__:null,default:fr},Symbol.toStringTag,{value:"Module"}));const pt=globalThis,mn=pt.ShadowRoot&&(pt.ShadyCSS===void 0||pt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gn=Symbol(),Gn=new WeakMap;let Li=class{constructor(e,n,r){if(this._$cssResult$=!0,r!==gn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}get styleSheet(){let e=this.o;const n=this.t;if(mn&&e===void 0){const r=n!==void 0&&n.length===1;r&&(e=Gn.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Gn.set(n,e))}return e}toString(){return this.cssText}};const bn=i=>new Li(typeof i=="string"?i:i+"",void 0,gn),Ii=(i,...e)=>{const n=i.length===1?i[0]:e.reduce(((r,t,u)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(t)+i[u+1]),i[0]);return new Li(n,i,gn)},gr=(i,e)=>{if(mn)i.adoptedStyleSheets=e.map((n=>n instanceof CSSStyleSheet?n:n.styleSheet));else for(const n of e){const r=document.createElement("style"),t=pt.litNonce;t!==void 0&&r.setAttribute("nonce",t),r.textContent=n.cssText,i.appendChild(r)}},Zn=mn?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let n="";for(const r of e.cssRules)n+=r.cssText;return bn(n)})(i):i;const{is:br,defineProperty:yr,getOwnPropertyDescriptor:vr,getOwnPropertyNames:wr,getOwnPropertySymbols:xr,getPrototypeOf:_r}=Object,yt=globalThis,Jn=yt.trustedTypes,Er=Jn?Jn.emptyScript:"",Sr=yt.reactiveElementPolyfillSupport,Je=(i,e)=>i,ft={toAttribute(i,e){switch(e){case Boolean:i=i?Er:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let n=i;switch(e){case Boolean:n=i!==null;break;case Number:n=i===null?null:Number(i);break;case Object:case Array:try{n=JSON.parse(i)}catch{n=null}}return n}},yn=(i,e)=>!br(i,e),Kn={attribute:!0,type:String,converter:ft,reflect:!1,useDefault:!1,hasChanged:yn};Symbol.metadata??=Symbol("metadata"),yt.litPropertyMetadata??=new WeakMap;let Ue=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,n=Kn){if(n.state&&(n.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((n=Object.create(n)).wrapped=!0),this.elementProperties.set(e,n),!n.noAccessor){const r=Symbol(),t=this.getPropertyDescriptor(e,r,n);t!==void 0&&yr(this.prototype,e,t)}}static getPropertyDescriptor(e,n,r){const{get:t,set:u}=vr(this.prototype,e)??{get(){return this[n]},set(a){this[n]=a}};return{get:t,set(a){const f=t?.call(this);u?.call(this,a),this.requestUpdate(e,f,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Kn}static _$Ei(){if(this.hasOwnProperty(Je("elementProperties")))return;const e=_r(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Je("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Je("properties"))){const n=this.properties,r=[...wr(n),...xr(n)];for(const t of r)this.createProperty(t,n[t])}const e=this[Symbol.metadata];if(e!==null){const n=litPropertyMetadata.get(e);if(n!==void 0)for(const[r,t]of n)this.elementProperties.set(r,t)}this._$Eh=new Map;for(const[n,r]of this.elementProperties){const t=this._$Eu(n,r);t!==void 0&&this._$Eh.set(t,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const n=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const t of r)n.unshift(Zn(t))}else e!==void 0&&n.push(Zn(e));return n}static _$Eu(e,n){const r=n.attribute;return r===!1?void 0:typeof r=="string"?r: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,n=this.constructor.elementProperties;for(const r of n.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return gr(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,n,r){this._$AK(e,r)}_$ET(e,n){const r=this.constructor.elementProperties.get(e),t=this.constructor._$Eu(e,r);if(t!==void 0&&r.reflect===!0){const u=(r.converter?.toAttribute!==void 0?r.converter:ft).toAttribute(n,r.type);this._$Em=e,u==null?this.removeAttribute(t):this.setAttribute(t,u),this._$Em=null}}_$AK(e,n){const r=this.constructor,t=r._$Eh.get(e);if(t!==void 0&&this._$Em!==t){const u=r.getPropertyOptions(t),a=typeof u.converter=="function"?{fromAttribute:u.converter}:u.converter?.fromAttribute!==void 0?u.converter:ft;this._$Em=t;const f=a.fromAttribute(n,u.type);this[t]=f??this._$Ej?.get(t)??f,this._$Em=null}}requestUpdate(e,n,r){if(e!==void 0){const t=this.constructor,u=this[e];if(r??=t.getPropertyOptions(e),!((r.hasChanged??yn)(u,n)||r.useDefault&&r.reflect&&u===this._$Ej?.get(e)&&!this.hasAttribute(t._$Eu(e,r))))return;this.C(e,n,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,n,{useDefault:r,reflect:t,wrapped:u},a){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??n??this[e]),u!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(n=void 0),this._$AL.set(e,n)),t===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,u]of this._$Ep)this[t]=u;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[t,u]of r){const{wrapped:a}=u,f=this[t];a!==!0||this._$AL.has(t)||f===void 0||this.C(t,void 0,u,f)}}let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),this._$EO?.forEach((r=>r.hostUpdate?.())),this.update(n)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(n)}willUpdate(e){}_$AE(e){this._$EO?.forEach((n=>n.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((n=>this._$ET(n,this[n]))),this._$EM()}updated(e){}firstUpdated(e){}};Ue.elementStyles=[],Ue.shadowRootOptions={mode:"open"},Ue[Je("elementProperties")]=new Map,Ue[Je("finalized")]=new Map,Sr?.({ReactiveElement:Ue}),(yt.reactiveElementVersions??=[]).push("2.1.1");const vn=globalThis,mt=vn.trustedTypes,Xn=mt?mt.createPolicy("lit-html",{createHTML:i=>i}):void 0,Ti="$lit$",Se=`lit$${Math.random().toFixed(9).slice(2)}$`,ji="?"+Se,Ar=`<${ji}>`,Ne=document,Xe=()=>Ne.createComment(""),Qe=i=>i===null||typeof i!="object"&&typeof i!="function",wn=Array.isArray,kr=i=>wn(i)||typeof i?.[Symbol.iterator]=="function",Tt=`[
399
+ \f\r]`,Ge=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qn=/-->/g,Yn=/>/g,Ce=RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^
400
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ei=/'/g,ti=/"/g,Di=/^(?:script|style|textarea|title)$/i,$r=i=>(e,...n)=>({_$litType$:i,strings:e,values:n}),Ee=$r(1),Be=Symbol.for("lit-noChange"),ie=Symbol.for("lit-nothing"),ni=new WeakMap,Re=Ne.createTreeWalker(Ne,129);function zi(i,e){if(!wn(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xn!==void 0?Xn.createHTML(e):e}const Or=(i,e)=>{const n=i.length-1,r=[];let t,u=e===2?"<svg>":e===3?"<math>":"",a=Ge;for(let f=0;f<n;f++){const b=i[f];let d,s,c=-1,o=0;for(;o<b.length&&(a.lastIndex=o,s=a.exec(b),s!==null);)o=a.lastIndex,a===Ge?s[1]==="!--"?a=Qn:s[1]!==void 0?a=Yn:s[2]!==void 0?(Di.test(s[2])&&(t=RegExp("</"+s[2],"g")),a=Ce):s[3]!==void 0&&(a=Ce):a===Ce?s[0]===">"?(a=t??Ge,c=-1):s[1]===void 0?c=-2:(c=a.lastIndex-s[2].length,d=s[1],a=s[3]===void 0?Ce:s[3]==='"'?ti:ei):a===ti||a===ei?a=Ce:a===Qn||a===Yn?a=Ge:(a=Ce,t=void 0);const l=a===Ce&&i[f+1].startsWith("/>")?" ":"";u+=a===Ge?b+Ar:c>=0?(r.push(d),b.slice(0,c)+Ti+b.slice(c)+Se+l):b+Se+(c===-2?f:l)}return[zi(i,u+(i[n]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Ye{constructor({strings:e,_$litType$:n},r){let t;this.parts=[];let u=0,a=0;const f=e.length-1,b=this.parts,[d,s]=Or(e,n);if(this.el=Ye.createElement(d,r),Re.currentNode=this.el.content,n===2||n===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(t=Re.nextNode())!==null&&b.length<f;){if(t.nodeType===1){if(t.hasAttributes())for(const c of t.getAttributeNames())if(c.endsWith(Ti)){const o=s[a++],l=t.getAttribute(c).split(Se),p=/([.?@])?(.*)/.exec(o);b.push({type:1,index:u,name:p[2],strings:l,ctor:p[1]==="."?Rr:p[1]==="?"?Mr:p[1]==="@"?Nr:vt}),t.removeAttribute(c)}else c.startsWith(Se)&&(b.push({type:6,index:u}),t.removeAttribute(c));if(Di.test(t.tagName)){const c=t.textContent.split(Se),o=c.length-1;if(o>0){t.textContent=mt?mt.emptyScript:"";for(let l=0;l<o;l++)t.append(c[l],Xe()),Re.nextNode(),b.push({type:2,index:++u});t.append(c[o],Xe())}}}else if(t.nodeType===8)if(t.data===ji)b.push({type:2,index:u});else{let c=-1;for(;(c=t.data.indexOf(Se,c+1))!==-1;)b.push({type:7,index:u}),c+=Se.length-1}u++}}static createElement(e,n){const r=Ne.createElement("template");return r.innerHTML=e,r}}function qe(i,e,n=i,r){if(e===Be)return e;let t=r!==void 0?n._$Co?.[r]:n._$Cl;const u=Qe(e)?void 0:e._$litDirective$;return t?.constructor!==u&&(t?._$AO?.(!1),u===void 0?t=void 0:(t=new u(i),t._$AT(i,n,r)),r!==void 0?(n._$Co??=[])[r]=t:n._$Cl=t),t!==void 0&&(e=qe(i,t._$AS(i,e.values),t,r)),e}class Cr{constructor(e,n){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:n},parts:r}=this._$AD,t=(e?.creationScope??Ne).importNode(n,!0);Re.currentNode=t;let u=Re.nextNode(),a=0,f=0,b=r[0];for(;b!==void 0;){if(a===b.index){let d;b.type===2?d=new tt(u,u.nextSibling,this,e):b.type===1?d=new b.ctor(u,b.name,b.strings,this,e):b.type===6&&(d=new Pr(u,this,e)),this._$AV.push(d),b=r[++f]}a!==b?.index&&(u=Re.nextNode(),a++)}return Re.currentNode=Ne,t}p(e){let n=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,n),n+=r.strings.length-2):r._$AI(e[n])),n++}}class tt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,n,r,t){this.type=2,this._$AH=ie,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=r,this.options=t,this._$Cv=t?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&e?.nodeType===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=qe(this,e,n),Qe(e)?e===ie||e==null||e===""?(this._$AH!==ie&&this._$AR(),this._$AH=ie):e!==this._$AH&&e!==Be&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):kr(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!==ie&&Qe(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ne.createTextNode(e)),this._$AH=e}$(e){const{values:n,_$litType$:r}=e,t=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Ye.createElement(zi(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===t)this._$AH.p(n);else{const u=new Cr(t,this),a=u.u(this.options);u.p(n),this.T(a),this._$AH=u}}_$AC(e){let n=ni.get(e.strings);return n===void 0&&ni.set(e.strings,n=new Ye(e)),n}k(e){wn(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let r,t=0;for(const u of e)t===n.length?n.push(r=new tt(this.O(Xe()),this.O(Xe()),this,this.options)):r=n[t],r._$AI(u),t++;t<n.length&&(this._$AR(r&&r._$AB.nextSibling,t),n.length=t)}_$AR(e=this._$AA.nextSibling,n){for(this._$AP?.(!1,!0,n);e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class vt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,n,r,t,u){this.type=1,this._$AH=ie,this._$AN=void 0,this.element=e,this.name=n,this._$AM=t,this.options=u,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ie}_$AI(e,n=this,r,t){const u=this.strings;let a=!1;if(u===void 0)e=qe(this,e,n,0),a=!Qe(e)||e!==this._$AH&&e!==Be,a&&(this._$AH=e);else{const f=e;let b,d;for(e=u[0],b=0;b<u.length-1;b++)d=qe(this,f[r+b],n,b),d===Be&&(d=this._$AH[b]),a||=!Qe(d)||d!==this._$AH[b],d===ie?e=ie:e!==ie&&(e+=(d??"")+u[b+1]),this._$AH[b]=d}a&&!t&&this.j(e)}j(e){e===ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Rr extends vt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ie?void 0:e}}class Mr extends vt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ie)}}class Nr extends vt{constructor(e,n,r,t,u){super(e,n,r,t,u),this.type=5}_$AI(e,n=this){if((e=qe(this,e,n,0)??ie)===Be)return;const r=this._$AH,t=e===ie&&r!==ie||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,u=e!==ie&&(r===ie||t);t&&this.element.removeEventListener(this.name,this,r),u&&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)}}let Pr=class{constructor(e,n,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){qe(this,e)}};const Lr=vn.litHtmlPolyfillSupport;Lr?.(Ye,tt),(vn.litHtmlVersions??=[]).push("3.3.1");const Ir=(i,e,n)=>{const r=n?.renderBefore??e;let t=r._$litPart$;if(t===void 0){const u=n?.renderBefore??null;r._$litPart$=t=new tt(e.insertBefore(Xe(),u),u,void 0,n??{})}return t._$AI(i),t};const xn=globalThis;class Me extends Ue{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ir(n,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Be}}Me._$litElement$=!0,Me.finalized=!0,xn.litElementHydrateSupport?.({LitElement:Me});const Tr=xn.litElementPolyfillSupport;Tr?.({LitElement:Me});(xn.litElementVersions??=[]).push("4.2.1");const jr={attribute:!0,type:String,converter:ft,reflect:!1,hasChanged:yn},Dr=(i=jr,e,n)=>{const{kind:r,metadata:t}=n;let u=globalThis.litPropertyMetadata.get(t);if(u===void 0&&globalThis.litPropertyMetadata.set(t,u=new Map),r==="setter"&&((i=Object.create(i)).wrapped=!0),u.set(n.name,i),r==="accessor"){const{name:a}=n;return{set(f){const b=e.get.call(this);e.set.call(this,f),this.requestUpdate(a,b,i)},init(f){return f!==void 0&&this.C(a,void 0,i,f),f}}}if(r==="setter"){const{name:a}=n;return function(f){const b=this[a];e.call(this,f),this.requestUpdate(a,b,i)}}throw Error("Unsupported decorator location: "+r)};function Z(i){return(e,n)=>typeof n=="object"?Dr(i,e,n):((r,t,u)=>{const a=t.hasOwnProperty(u);return t.constructor.createProperty(u,r),a?Object.getOwnPropertyDescriptor(t,u):void 0})(i,e,n)}const pe=i=>i??ie,zr=":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}",Ur="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",Br="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",qr="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 Fr=Object.defineProperty,_n=(i,e,n,r)=>{for(var t=void 0,u=i.length-1,a;u>=0;u--)(a=i[u])&&(t=a(e,n,t)||t);return t&&Fr(e,n,t),t},ze;const et=(ze=class extends Me{static parseLevel(i){if(i){const e=Object.keys(gt).find(n=>n.toLowerCase()===i.toLowerCase());return e&&gt[e]}}static get styles(){return[Ii`
401
+ ${bn(zr)}
402
+ `]}render(){return Ee`${this.iconToUse&&Ee`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(i){return i.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(i)}get iconForLevel(){switch(ze.parseLevel(this.level)){case"warn":return qr;case"suggest":return Br;case"error":return Ur;default:return null}}},ze.ID="sd-field-validation-message",ze.levelConverter={fromAttribute(i){return ze.parseLevel(i)},toAttribute(i){return i&&i.toLowerCase()}},ze);_n([Z({type:String,attribute:!0})],et.prototype,"message");_n([Z({type:String,attribute:!0})],et.prototype,"icon");_n([Z({converter:et.levelConverter,reflect:!0})],et.prototype,"level");let jt=et;var gt=(i=>(i.Warn="warn",i.Suggest="suggest",i.Error="error",i))(gt||{});customElements.get(jt.ID)||customElements.define(jt.ID,jt);const Hr=":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 Wr=Object.defineProperty,Q=(i,e,n,r)=>{for(var t=void 0,u=i.length-1,a;u>=0;u--)(a=i[u])&&(t=a(e,n,t)||t);return t&&Wr(e,n,t),t};const Vr="sd-lit-input",ii="delegatesFocus"in window.ShadowRoot.prototype;let Gr=0;var de;const X=(de=class extends Me{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";const e=Gr++;this._validationMessageId=de.ID+"_message_"+e,this._inputId=de.ID+"_input_"+e,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(e){super.firstUpdated(e),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.updateFormValidity(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=n=>{this.autocompleted=n.inputType==="insertReplacementText"||!("data"in n),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),ii||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",n=>{n.target===this&&this.inputElement.focus()})),this.inputElement.addEventListener("keyup",()=>{this.updateFormValidity()}),this.addEventListener("keydown",n=>{n.key=="Enter"&&this._internals?.form?.requestSubmit()}),this._initialized=!0}initAutocompleted(e){const n=r=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(r.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(r.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(e,"animationstart",n)):e.addEventListener("animationstart",n)}get activeShadyDOM(){const e=window.ShadyDOM;return e&&e.inUse?e: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(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=e)}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(e){this.currentText=e||"",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(e,n){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(e,n)})}static get styles(){return[Ii`
403
+ ${bn(Hr)}
380
404
  `]}render(){let e;const n=this.validationMessage||this.inputElement?.validationMessage,r=n||this.validationLevel!=null;return this.rows===1?e=Ee`
381
405
  <input
382
406
  id=${this._inputId}
@@ -444,13 +468,13 @@ setupValidation("suggestion", ValidationLevel.Suggest);
444
468
  </sd-field-validation-message>
445
469
  `}
446
470
  </div>
447
- `}updated(e){super.updated(e),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((e.has("min")||e.has("max")||e.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(e){if(super.update(e),e.has("validationMessage")&&(this.validationMessage?this._internals?.setValidity({customError:!0},this.validationMessage):this._internals?.setValidity(this.inputElement.validity,this.inputElement.validationMessage)),this._initialized&&e.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(e){this.dispatchEvent(new CustomEvent(`${e?"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 e=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",e==null?null:e.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(e){this._internals?.setFormValue(e)}formResetCallback(){this.value=this._initialValue}formDisabledCallback(e){this.effectiveDisabled=e||this.hasAttribute("disabled")}formAssociatedCallback(e){this._needsAutocompletedCheck=!0}formStateRestoreCallback(e,n){typeof e=="string"&&(this.value=e)}},de.ID=Wr,de.DEFAULT_MAX_LENGTH=524288,de.formAssociated=!0,de.shadowRootOptions={...Me.shadowRootOptions,delegatesFocus:ni},de);Q([Z({type:String,reflect:!0})],X.prototype,"label");Q([Z({type:String,attribute:!0})],X.prototype,"validationMessage");Q([Z({type:String,attribute:!0})],X.prototype,"validationIconSrc");Q([Z({type:gt,attribute:!0,reflect:!0})],X.prototype,"validationLevel");Q([Z({type:String,hasChanged(i,e){return e!=null&&e!=i}})],X.prototype,"currentText");Q([Z({type:Boolean,attribute:!0})],X.prototype,"alwaysFloatLabel");Q([Z({type:Boolean,attribute:!0})],X.prototype,"autocompleted");Q([Z({type:Number,attribute:!0})],X.prototype,"rows");Q([Z({type:Boolean,reflect:!0,attribute:"effective-disabled"})],X.prototype,"effectiveDisabled");Q([Z({type:Boolean,reflect:!0,attribute:"extended-prefix"})],X.prototype,"extendedPrefix");Q([Z({type:String,reflect:!0})],X.prototype,"type");Q([Z({type:String,reflect:!0})],X.prototype,"placeholder");Q([Z({type:String,reflect:!0})],X.prototype,"sdAriaLabel");Q([Z({type:Number,reflect:!0})],X.prototype,"maxlength");Q([Z({type:Boolean,reflect:!0})],X.prototype,"readonly");Q([Z({type:Boolean,reflect:!0})],X.prototype,"required");Q([Z({type:String,reflect:!0})],X.prototype,"name");Q([Z({type:Boolean,reflect:!0})],X.prototype,"inactive");Q([Z({type:String,attribute:!0})],X.prototype,"autocomplete");Q([Z({type:String,attribute:!0})],X.prototype,"min");Q([Z({type:String,attribute:!0})],X.prototype,"max");Q([Z({type:String,attribute:!0})],X.prototype,"pattern");let Dt=X;customElements.get(Dt.ID)||customElements.define(Dt.ID,Dt);function Ui(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Gr(i){if(Object.prototype.hasOwnProperty.call(i,"__esModule"))return i;var e=i.default;if(typeof e=="function"){var n=function r(){var t=!1;try{t=this instanceof r}catch{}return t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var t=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:function(){return i[r]}})}),n}var ut={exports:{}},ii;function Zr(){if(ii)return ut.exports;ii=1;var i=String,e=function(){return{isColorSupported:!1,reset:i,bold:i,dim:i,italic:i,underline:i,inverse:i,hidden:i,strikethrough:i,black:i,red:i,green:i,yellow:i,blue:i,magenta:i,cyan:i,white:i,gray:i,bgBlack:i,bgRed:i,bgGreen:i,bgYellow:i,bgBlue:i,bgMagenta:i,bgCyan:i,bgWhite:i,blackBright:i,redBright:i,greenBright:i,yellowBright:i,blueBright:i,magentaBright:i,cyanBright:i,whiteBright:i,bgBlackBright:i,bgRedBright:i,bgGreenBright:i,bgYellowBright:i,bgBlueBright:i,bgMagentaBright:i,bgCyanBright:i,bgWhiteBright:i}};return ut.exports=e(),ut.exports.createColors=e,ut.exports}const Jr={},Kr=Object.freeze(Object.defineProperty({__proto__:null,default:Jr},Symbol.toStringTag,{value:"Module"})),fe=Gr(Kr);var zt,si;function _n(){if(si)return zt;si=1;let i=Zr(),e=fe;class n extends Error{constructor(t,u,a,f,b,d){super(t),this.name="CssSyntaxError",this.reason=t,b&&(this.file=b),f&&(this.source=f),d&&(this.plugin=d),typeof u<"u"&&typeof a<"u"&&(typeof u=="number"?(this.line=u,this.column=a):(this.line=u.line,this.column=u.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let u=this.source;t==null&&(t=i.isColorSupported);let a=l=>l,f=l=>l,b=l=>l;if(t){let{bold:l,gray:p,red:m}=i.createColors(!0);f=g=>l(m(g)),a=g=>p(g),e&&(b=g=>e(g))}let d=u.split(/\r?\n/),s=Math.max(this.line-3,0),c=Math.min(this.line+2,d.length),o=String(c).length;return d.slice(s,c).map((l,p)=>{let m=s+1+p,g=" "+(" "+m).slice(-o)+" | ";if(m===this.line){if(l.length>160){let E=20,w=Math.max(0,this.column-E),v=Math.max(this.column+E,this.endColumn+E),y=l.slice(w,v),S=a(g.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,E-1)).replace(/[^\t]/g," ");return f(">")+a(g)+b(y)+`
471
+ `}updated(e){super.updated(e),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((e.has("min")||e.has("max")||e.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(e){if(super.update(e),e.has("validationMessage")&&(this.validationMessage?this._internals?.setValidity({customError:!0},this.validationMessage):this._internals?.setValidity(this.inputElement.validity,this.inputElement.validationMessage)),this._initialized&&e.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(e){this.dispatchEvent(new CustomEvent(`${e?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value)}updateFormValidity(){if(this.validationMessage==null&&this.inputElement!=null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);const e=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",e==null?null:e.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(e){this._internals?.setFormValue(e),this.updateFormValidity()}formResetCallback(){this.value=this._initialValue}formDisabledCallback(e){this.effectiveDisabled=e||this.hasAttribute("disabled")}formAssociatedCallback(e){this._needsAutocompletedCheck=!0}formStateRestoreCallback(e,n){typeof e=="string"&&(this.value=e)}},de.ID=Vr,de.DEFAULT_MAX_LENGTH=524288,de.formAssociated=!0,de.shadowRootOptions={...Me.shadowRootOptions,delegatesFocus:ii},de);Q([Z({type:String,reflect:!0})],X.prototype,"label");Q([Z({type:String,attribute:!0})],X.prototype,"validationMessage");Q([Z({type:String,attribute:!0})],X.prototype,"validationIconSrc");Q([Z({type:gt,attribute:!0,reflect:!0})],X.prototype,"validationLevel");Q([Z({type:String,hasChanged(i,e){return e!=null&&e!=i}})],X.prototype,"currentText");Q([Z({type:Boolean,attribute:!0})],X.prototype,"alwaysFloatLabel");Q([Z({type:Boolean,attribute:!0})],X.prototype,"autocompleted");Q([Z({type:Number,attribute:!0})],X.prototype,"rows");Q([Z({type:Boolean,reflect:!0,attribute:"effective-disabled"})],X.prototype,"effectiveDisabled");Q([Z({type:Boolean,reflect:!0,attribute:"extended-prefix"})],X.prototype,"extendedPrefix");Q([Z({type:String,reflect:!0})],X.prototype,"type");Q([Z({type:String,reflect:!0})],X.prototype,"placeholder");Q([Z({type:String,reflect:!0})],X.prototype,"sdAriaLabel");Q([Z({type:Number,reflect:!0})],X.prototype,"maxlength");Q([Z({type:Boolean,reflect:!0})],X.prototype,"readonly");Q([Z({type:Boolean,reflect:!0})],X.prototype,"required");Q([Z({type:String,reflect:!0})],X.prototype,"name");Q([Z({type:Boolean,reflect:!0})],X.prototype,"inactive");Q([Z({type:String,attribute:!0})],X.prototype,"autocomplete");Q([Z({type:String,attribute:!0})],X.prototype,"min");Q([Z({type:String,attribute:!0})],X.prototype,"max");Q([Z({type:String,attribute:!0})],X.prototype,"pattern");let Dt=X;customElements.get(Dt.ID)||customElements.define(Dt.ID,Dt);function Ui(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Zr(i){if(Object.prototype.hasOwnProperty.call(i,"__esModule"))return i;var e=i.default;if(typeof e=="function"){var n=function r(){var t=!1;try{t=this instanceof r}catch{}return t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var t=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:function(){return i[r]}})}),n}var ut={exports:{}},si;function Jr(){if(si)return ut.exports;si=1;var i=String,e=function(){return{isColorSupported:!1,reset:i,bold:i,dim:i,italic:i,underline:i,inverse:i,hidden:i,strikethrough:i,black:i,red:i,green:i,yellow:i,blue:i,magenta:i,cyan:i,white:i,gray:i,bgBlack:i,bgRed:i,bgGreen:i,bgYellow:i,bgBlue:i,bgMagenta:i,bgCyan:i,bgWhite:i,blackBright:i,redBright:i,greenBright:i,yellowBright:i,blueBright:i,magentaBright:i,cyanBright:i,whiteBright:i,bgBlackBright:i,bgRedBright:i,bgGreenBright:i,bgYellowBright:i,bgBlueBright:i,bgMagentaBright:i,bgCyanBright:i,bgWhiteBright:i}};return ut.exports=e(),ut.exports.createColors=e,ut.exports}const Kr={},Xr=Object.freeze(Object.defineProperty({__proto__:null,default:Kr},Symbol.toStringTag,{value:"Module"})),fe=Zr(Xr);var zt,ri;function En(){if(ri)return zt;ri=1;let i=Jr(),e=fe;class n extends Error{constructor(t,u,a,f,b,d){super(t),this.name="CssSyntaxError",this.reason=t,b&&(this.file=b),f&&(this.source=f),d&&(this.plugin=d),typeof u<"u"&&typeof a<"u"&&(typeof u=="number"?(this.line=u,this.column=a):(this.line=u.line,this.column=u.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let u=this.source;t==null&&(t=i.isColorSupported);let a=l=>l,f=l=>l,b=l=>l;if(t){let{bold:l,gray:p,red:m}=i.createColors(!0);f=g=>l(m(g)),a=g=>p(g),e&&(b=g=>e(g))}let d=u.split(/\r?\n/),s=Math.max(this.line-3,0),c=Math.min(this.line+2,d.length),o=String(c).length;return d.slice(s,c).map((l,p)=>{let m=s+1+p,g=" "+(" "+m).slice(-o)+" | ";if(m===this.line){if(l.length>160){let E=20,w=Math.max(0,this.column-E),v=Math.max(this.column+E,this.endColumn+E),y=l.slice(w,v),S=a(g.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,E-1)).replace(/[^\t]/g," ");return f(">")+a(g)+b(y)+`
448
472
  `+S+f("^")}let _=a(g.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return f(">")+a(g)+b(l)+`
449
473
  `+_+f("^")}return" "+a(g)+b(l)}).join(`
450
474
  `)}toString(){let t=this.showSourceCode();return t&&(t=`
451
475
 
452
476
  `+t+`
453
- `),this.name+": "+this.message+t}}return zt=n,n.default=n,zt}var Ut,ri;function Bi(){if(ri)return Ut;ri=1;const i={after:`
477
+ `),this.name+": "+this.message+t}}return zt=n,n.default=n,zt}var Ut,oi;function Bi(){if(oi)return Ut;oi=1;const i={after:`
454
478
  `,beforeClose:`
455
479
  `,beforeComment:`
456
480
  `,beforeDecl:`
@@ -461,21 +485,21 @@ setupValidation("suggestion", ValidationLevel.Suggest);
461
485
  `)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(u,null,"beforeDecl"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeDecl(t,u){let a;return t.walkDecls(f=>{if(typeof f.raws.before<"u")return a=f.raws.before,a.includes(`
462
486
  `)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(u,null,"beforeRule"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(t){let u;return t.walk(a=>{if(a.type!=="decl"&&(u=a.raws.between,typeof u<"u"))return!1}),u}rawBeforeRule(t){let u;return t.walk(a=>{if(a.nodes&&(a.parent!==t||t.first!==a)&&typeof a.raws.before<"u")return u=a.raws.before,u.includes(`
463
487
  `)&&(u=u.replace(/[^\n]+$/,"")),!1}),u&&(u=u.replace(/\S/g,"")),u}rawColon(t){let u;return t.walkDecls(a=>{if(typeof a.raws.between<"u")return u=a.raws.between.replace(/[^\s:]/g,""),!1}),u}rawEmptyBody(t){let u;return t.walk(a=>{if(a.nodes&&a.nodes.length===0&&(u=a.raws.after,typeof u<"u"))return!1}),u}rawIndent(t){if(t.raws.indent)return t.raws.indent;let u;return t.walk(a=>{let f=a.parent;if(f&&f!==t&&f.parent&&f.parent===t&&typeof a.raws.before<"u"){let b=a.raws.before.split(`
464
- `);return u=b[b.length-1],u=u.replace(/\S/g,""),!1}}),u}rawSemicolon(t){let u;return t.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(u=a.raws.semicolon,typeof u<"u"))return!1}),u}rawValue(t,u){let a=t[u],f=t.raws[u];return f&&f.value===a?f.raw:a}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,u){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,u)}}return Ut=n,n.default=n,Ut}var Bt,oi;function wt(){if(oi)return Bt;oi=1;let i=Bi();function e(n,r){new i(r).stringify(n)}return Bt=e,e.default=e,Bt}var dt={},ai;function En(){return ai||(ai=1,dt.isClean=Symbol("isClean"),dt.my=Symbol("my")),dt}var qt,li;function xt(){if(li)return qt;li=1;let i=_n(),e=Bi(),n=wt(),{isClean:r,my:t}=En();function u(b,d){let s=new b.constructor;for(let c in b){if(!Object.prototype.hasOwnProperty.call(b,c)||c==="proxyCache")continue;let o=b[c],l=typeof o;c==="parent"&&l==="object"?d&&(s[c]=d):c==="source"?s[c]=o:Array.isArray(o)?s[c]=o.map(p=>u(p,s)):(l==="object"&&o!==null&&(o=u(o)),s[c]=o)}return s}function a(b,d){if(d&&typeof d.offset<"u")return d.offset;let s=1,c=1,o=0;for(let l=0;l<b.length;l++){if(c===d.line&&s===d.column){o=l;break}b[l]===`
488
+ `);return u=b[b.length-1],u=u.replace(/\S/g,""),!1}}),u}rawSemicolon(t){let u;return t.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(u=a.raws.semicolon,typeof u<"u"))return!1}),u}rawValue(t,u){let a=t[u],f=t.raws[u];return f&&f.value===a?f.raw:a}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,u){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,u)}}return Ut=n,n.default=n,Ut}var Bt,ai;function wt(){if(ai)return Bt;ai=1;let i=Bi();function e(n,r){new i(r).stringify(n)}return Bt=e,e.default=e,Bt}var dt={},li;function Sn(){return li||(li=1,dt.isClean=Symbol("isClean"),dt.my=Symbol("my")),dt}var qt,ci;function xt(){if(ci)return qt;ci=1;let i=En(),e=Bi(),n=wt(),{isClean:r,my:t}=Sn();function u(b,d){let s=new b.constructor;for(let c in b){if(!Object.prototype.hasOwnProperty.call(b,c)||c==="proxyCache")continue;let o=b[c],l=typeof o;c==="parent"&&l==="object"?d&&(s[c]=d):c==="source"?s[c]=o:Array.isArray(o)?s[c]=o.map(p=>u(p,s)):(l==="object"&&o!==null&&(o=u(o)),s[c]=o)}return s}function a(b,d){if(d&&typeof d.offset<"u")return d.offset;let s=1,c=1,o=0;for(let l=0;l<b.length;l++){if(c===d.line&&s===d.column){o=l;break}b[l]===`
465
489
  `?(s=1,c+=1):s+=1}return o}class f{get proxyOf(){return this}constructor(d={}){this.raws={},this[r]=!1,this[t]=!0;for(let s in d)if(s==="nodes"){this.nodes=[];for(let c of d[s])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[s]=d[s]}addToError(d){if(d.postcssNode=this,d.stack&&this.source&&/\n\s{4}at /.test(d.stack)){let s=this.source;d.stack=d.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return d}after(d){return this.parent.insertAfter(this,d),this}assign(d={}){for(let s in d)this[s]=d[s];return this}before(d){return this.parent.insertBefore(this,d),this}cleanRaws(d){delete this.raws.before,delete this.raws.after,d||delete this.raws.between}clone(d={}){let s=u(this);for(let c in d)s[c]=d[c];return s}cloneAfter(d={}){let s=this.clone(d);return this.parent.insertAfter(this,s),s}cloneBefore(d={}){let s=this.clone(d);return this.parent.insertBefore(this,s),s}error(d,s={}){if(this.source){let{end:c,start:o}=this.rangeBy(s);return this.source.input.error(d,{column:o.column,line:o.line},{column:c.column,line:c.line},s)}return new i(d)}getProxyProcessor(){return{get(d,s){return s==="proxyOf"?d:s==="root"?()=>d.root().toProxy():d[s]},set(d,s,c){return d[s]===c||(d[s]=c,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&d.markDirty()),!0}}}markClean(){this[r]=!0}markDirty(){if(this[r]){this[r]=!1;let d=this;for(;d=d.parent;)d[r]=!1}}next(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d+1]}positionBy(d={}){let s=this.source.start;if(d.index)s=this.positionInside(d.index);else if(d.word){let c="document"in this.source.input?this.source.input.document:this.source.input.css,l=c.slice(a(c,this.source.start),a(c,this.source.end)).indexOf(d.word);l!==-1&&(s=this.positionInside(l))}return s}positionInside(d){let s=this.source.start.column,c=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,l=a(o,this.source.start),p=l+d;for(let m=l;m<p;m++)o[m]===`
466
- `?(s=1,c+=1):s+=1;return{column:s,line:c,offset:p}}prev(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d-1]}rangeBy(d={}){let s="document"in this.source.input?this.source.input.document:this.source.input.css,c={column:this.source.start.column,line:this.source.start.line,offset:a(s,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:a(s,this.source.end)+1}:{column:c.column+1,line:c.line,offset:c.offset+1};if(d.word){let p=s.slice(a(s,this.source.start),a(s,this.source.end)).indexOf(d.word);p!==-1&&(c=this.positionInside(p),o=this.positionInside(p+d.word.length))}else d.start?c={column:d.start.column,line:d.start.line,offset:a(s,d.start)}:d.index&&(c=this.positionInside(d.index)),d.end?o={column:d.end.column,line:d.end.line,offset:a(s,d.end)}:typeof d.endIndex=="number"?o=this.positionInside(d.endIndex):d.index&&(o=this.positionInside(d.index+1));return(o.line<c.line||o.line===c.line&&o.column<=c.column)&&(o={column:c.column+1,line:c.line,offset:c.offset+1}),{end:o,start:c}}raw(d,s){return new e().raw(this,d,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...d){if(this.parent){let s=this,c=!1;for(let o of d)o===this?c=!0:c?(this.parent.insertAfter(s,o),s=o):this.parent.insertBefore(s,o);c||this.remove()}return this}root(){let d=this;for(;d.parent&&d.parent.type!=="document";)d=d.parent;return d}toJSON(d,s){let c={},o=s==null;s=s||new Map;let l=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let m=this[p];if(Array.isArray(m))c[p]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,s):g);else if(typeof m=="object"&&m.toJSON)c[p]=m.toJSON(null,s);else if(p==="source"){if(m==null)continue;let g=s.get(m.input);g==null&&(g=l,s.set(m.input,l),l++),c[p]={end:m.end,inputId:g,start:m.start}}else c[p]=m}return o&&(c.inputs=[...s.keys()].map(p=>p.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(d=n){d.stringify&&(d=d.stringify);let s="";return d(this,c=>{s+=c}),s}warn(d,s,c={}){let o={node:this};for(let l in c)o[l]=c[l];return d.warn(s,o)}}return qt=f,f.default=f,qt}var Ft,ci;function _t(){if(ci)return Ft;ci=1;let i=xt();class e extends i{constructor(r){super(r),this.type="comment"}}return Ft=e,e.default=e,Ft}var Ht,ui;function Et(){if(ui)return Ht;ui=1;let i=xt();class e extends i{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(r){r&&typeof r.value<"u"&&typeof r.value!="string"&&(r={...r,value:String(r.value)}),super(r),this.type="decl"}}return Ht=e,e.default=e,Ht}var Wt,di;function Pe(){if(di)return Wt;di=1;let i=_t(),e=Et(),n=xt(),{isClean:r,my:t}=En(),u,a,f,b;function d(o){return o.map(l=>(l.nodes&&(l.nodes=d(l.nodes)),delete l.source,l))}function s(o){if(o[r]=!1,o.proxyOf.nodes)for(let l of o.proxyOf.nodes)s(l)}class c extends n{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 p of l){let m=this.normalize(p,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let p of this.nodes)p.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],g=l(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,p){return p==="proxyOf"?l:l[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>l[p](...m.map(g=>typeof g=="function"?(_,E)=>g(_.toProxy(),E):g)):p==="every"||p==="some"?m=>l[p]((g,..._)=>m(g.toProxy(),..._)):p==="root"?()=>l.root().toProxy():p==="nodes"?l.nodes.map(m=>m.toProxy()):p==="first"||p==="last"?l[p].toProxy():l[p]:l[p]},set(l,p,m){return l[p]===m||(l[p]=m,(p==="name"||p==="params"||p==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,p){let m=this.index(l),g=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(l);for(let E of g)this.proxyOf.nodes.splice(m+1,0,E);let _;for(let E in this.indexes)_=this.indexes[E],m<_&&(this.indexes[E]=_+g.length);return this.markDirty(),this}insertBefore(l,p){let m=this.index(l),g=m===0?"prepend":!1,_=this.normalize(p,this.proxyOf.nodes[m],g).reverse();m=this.index(l);for(let w of _)this.proxyOf.nodes.splice(m,0,w);let E;for(let w in this.indexes)E=this.indexes[w],m<=E&&(this.indexes[w]=E+_.length);return this.markDirty(),this}normalize(l,p){if(typeof l=="string")l=d(a(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new e(l)]}else if(l.selector||l.selectors)l=[new b(l)];else if(l.name)l=[new u(l)];else if(l.text)l=[new i(l)];else throw new Error("Unknown node type in node creation");return l.map(g=>(g[t]||c.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[r]&&s(g),g.raws||(g.raws={}),typeof g.raws.before>"u"&&p&&typeof p.raws.before<"u"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...l){l=l.reverse();for(let p of l){let m=this.normalize(p,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let p;for(let m in this.indexes)p=this.indexes[m],p>=l&&(this.indexes[m]=p-1);return this.markDirty(),this}replaceValues(l,p,m){return m||(m=p,p={}),this.walkDecls(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(l,m))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((p,m)=>{let g;try{g=l(p,m)}catch(_){throw p.addToError(_)}return g!==!1&&p.walk&&(g=p.walk(l)),g})}walkAtRules(l,p){return p?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&l.test(m.name))return p(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===l)return p(m,g)}):(p=l,this.walk((m,g)=>{if(m.type==="atrule")return p(m,g)}))}walkComments(l){return this.walk((p,m)=>{if(p.type==="comment")return l(p,m)})}walkDecls(l,p){return p?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&l.test(m.prop))return p(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===l)return p(m,g)}):(p=l,this.walk((m,g)=>{if(m.type==="decl")return p(m,g)}))}walkRules(l,p){return p?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&l.test(m.selector))return p(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===l)return p(m,g)}):(p=l,this.walk((m,g)=>{if(m.type==="rule")return p(m,g)}))}}return c.registerParse=o=>{a=o},c.registerRule=o=>{b=o},c.registerAtRule=o=>{u=o},c.registerRoot=o=>{f=o},Wt=c,c.default=c,c.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,u.prototype):o.type==="rule"?Object.setPrototypeOf(o,b.prototype):o.type==="decl"?Object.setPrototypeOf(o,e.prototype):o.type==="comment"?Object.setPrototypeOf(o,i.prototype):o.type==="root"&&Object.setPrototypeOf(o,f.prototype),o[t]=!0,o.nodes&&o.nodes.forEach(l=>{c.rebuild(l)})},Wt}var Vt,hi;function Sn(){if(hi)return Vt;hi=1;let i=Pe();class e extends i{constructor(r){super(r),this.type="atrule"}append(...r){return this.proxyOf.nodes||(this.nodes=[]),super.append(...r)}prepend(...r){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...r)}}return Vt=e,e.default=e,i.registerAtRule(e),Vt}var Gt,pi;function An(){if(pi)return Gt;pi=1;let i=Pe(),e,n;class r extends i{constructor(u){super({type:"document",...u}),this.nodes||(this.nodes=[])}toResult(u={}){return new e(new n,this,u).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=t=>{n=t},Gt=r,r.default=r,Gt}var Zt,fi;function Xr(){if(fi)return Zt;fi=1;let i="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Zt={nanoid:(r=21)=>{let t="",u=r|0;for(;u--;)t+=i[Math.random()*64|0];return t},customAlphabet:(r,t=21)=>(u=t)=>{let a="",f=u|0;for(;f--;)a+=r[Math.random()*r.length|0];return a}},Zt}var Jt,mi;function qi(){if(mi)return Jt;mi=1;let{existsSync:i,readFileSync:e}=fe,{dirname:n,join:r}=fe,{SourceMapConsumer:t,SourceMapGenerator:u}=fe;function a(b){return Buffer?Buffer.from(b,"base64").toString():window.atob(b)}class f{constructor(d,s){if(s.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let c=s.map?s.map.prev:void 0,o=this.loadMap(s.from,c);!this.mapFile&&s.from&&(this.mapFile=s.from),this.mapFile&&(this.root=n(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new t(this.text)),this.consumerCache}decodeInline(d){let s=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/,p=d.match(o)||d.match(l);if(p)return decodeURIComponent(d.substr(p[0].length));let m=d.match(s)||d.match(c);if(m)return a(d.substr(m[0].length));let g=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let s=d.match(/\/\*\s*# sourceMappingURL=/g);if(!s)return;let c=d.lastIndexOf(s.pop()),o=d.indexOf("*/",c);c>-1&&o>-1&&(this.annotation=this.getAnnotationURL(d.substring(c,o)))}loadFile(d){if(this.root=n(d),i(d))return this.mapFile=d,e(d,"utf-8").toString().trim()}loadMap(d,s){if(s===!1)return!1;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let c=s(d);if(c){let o=this.loadFile(c);if(!o)throw new Error("Unable to load previous source map: "+c.toString());return o}}else{if(s instanceof t)return u.fromSourceMap(s).toString();if(s instanceof u)return s.toString();if(this.isMap(s))return JSON.stringify(s);throw new Error("Unsupported previous source map format: "+s.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return d&&(c=r(n(d),c)),this.loadFile(c)}}}startWith(d,s){return d?d.substr(0,s.length)===s:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Jt=f,f.default=f,Jt}var Kt,gi;function St(){if(gi)return Kt;gi=1;let{nanoid:i}=Xr(),{isAbsolute:e,resolve:n}=fe,{SourceMapConsumer:r,SourceMapGenerator:t}=fe,{fileURLToPath:u,pathToFileURL:a}=fe,f=_n(),b=qi(),d=fe,s=Symbol("lineToIndexCache"),c=!!(r&&t),o=!!(n&&e);function l(m){if(m[s])return m[s];let g=m.css.split(`
467
- `),_=new Array(g.length),E=0;for(let w=0,v=g.length;w<v;w++)_[w]=E,E+=g[w].length+1;return m[s]=_,_}class p{get from(){return this.file||this.id}constructor(g,_={}){if(g===null||typeof g>"u"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,_.document&&(this.document=_.document.toString()),_.from&&(!o||/^\w+:\/\//.test(_.from)||e(_.from)?this.file=_.from:this.file=n(_.from)),o&&c){let E=new b(this.css,_);if(E.text){this.map=E;let w=E.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+i(6)+">"),this.map&&(this.map.file=this.from)}error(g,_,E,w={}){let v,y,S,O,T;if(_&&typeof _=="object"){let P=_,K=E;if(typeof P.offset=="number"){O=P.offset;let F=this.fromOffset(O);_=F.line,E=F.col}else _=P.line,E=P.column,O=this.fromLineAndColumn(_,E);if(typeof K.offset=="number"){S=K.offset;let F=this.fromOffset(S);y=F.line,v=F.col}else y=K.line,v=K.column,S=this.fromLineAndColumn(K.line,K.column)}else if(E)O=this.fromLineAndColumn(_,E);else{O=_;let P=this.fromOffset(O);_=P.line,E=P.col}let U=this.origin(_,E,y,v);return U?T=new f(g,U.endLine===void 0?U.line:{column:U.column,line:U.line},U.endLine===void 0?U.column:{column:U.endColumn,line:U.endLine},U.source,U.file,w.plugin):T=new f(g,y===void 0?_:{column:E,line:_},y===void 0?E:{column:v,line:y},this.css,this.file,w.plugin),T.input={column:E,endColumn:v,endLine:y,endOffset:S,line:_,offset:O,source:this.css},this.file&&(a&&(T.input.url=a(this.file).toString()),T.input.file=this.file),T}fromLineAndColumn(g,_){return l(this)[g-1]+_-1}fromOffset(g){let _=l(this),E=_[_.length-1],w=0;if(g>=E)w=_.length-1;else{let v=_.length-2,y;for(;w<v;)if(y=w+(v-w>>1),g<_[y])v=y-1;else if(g>=_[y+1])w=y+1;else{w=y;break}}return{col:g-_[w]+1,line:w+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:n(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,_,E,w){if(!this.map)return!1;let v=this.map.consumer(),y=v.originalPositionFor({column:_,line:g});if(!y.source)return!1;let S;typeof E=="number"&&(S=v.originalPositionFor({column:w,line:E}));let O;e(y.source)?O=a(y.source):O=new URL(y.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let T={column:y.column,endColumn:S&&S.column,endLine:S&&S.line,line:y.line,url:O.toString()};if(O.protocol==="file:")if(u)T.file=u(O);else throw new Error("file: protocol is not available in this PostCSS build");let U=v.sourceContentFor(y.source);return U&&(T.source=U),T}toJSON(){let g={};for(let _ of["hasBOM","css","file","id"])this[_]!=null&&(g[_]=this[_]);return this.map&&(g.map={...this.map},g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Kt=p,p.default=p,d&&d.registerInput&&d.registerInput(p),Kt}var Xt,bi;function nt(){if(bi)return Xt;bi=1;let i=Pe(),e,n;class r extends i{constructor(u){super(u),this.type="root",this.nodes||(this.nodes=[])}normalize(u,a,f){let b=super.normalize(u);if(a){if(f==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let d of b)d.raws.before=a.raws.before}return b}removeChild(u,a){let f=this.index(u);return!a&&f===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[f].raws.before),super.removeChild(u)}toResult(u={}){return new e(new n,this,u).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=t=>{n=t},Xt=r,r.default=r,i.registerRoot(r),Xt}var Qt,yi;function Fi(){if(yi)return Qt;yi=1;let i={comma(e){return i.split(e,[","],!0)},space(e){let n=[" ",`
468
- `," "];return i.split(e,n)},split(e,n,r){let t=[],u="",a=!1,f=0,b=!1,d="",s=!1;for(let c of e)s?s=!1:c==="\\"?s=!0:b?c===d&&(b=!1):c==='"'||c==="'"?(b=!0,d=c):c==="("?f+=1:c===")"?f>0&&(f-=1):f===0&&n.includes(c)&&(a=!0),a?(u!==""&&t.push(u.trim()),u="",a=!1):u+=c;return(r||u!=="")&&t.push(u.trim()),t}};return Qt=i,i.default=i,Qt}var Yt,vi;function kn(){if(vi)return Yt;vi=1;let i=Pe(),e=Fi();class n extends i{get selectors(){return e.comma(this.selector)}set selectors(t){let u=this.selector?this.selector.match(/,\s*/):null,a=u?u[0]:","+this.raw("between","beforeOpen");this.selector=t.join(a)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}}return Yt=n,n.default=n,i.registerRule(n),Yt}var en,wi;function Qr(){if(wi)return en;wi=1;let i=Sn(),e=_t(),n=Et(),r=St(),t=qi(),u=nt(),a=kn();function f(b,d){if(Array.isArray(b))return b.map(o=>f(o));let{inputs:s,...c}=b;if(s){d=[];for(let o of s){let l={...o,__proto__:r.prototype};l.map&&(l.map={...l.map,__proto__:t.prototype}),d.push(l)}}if(c.nodes&&(c.nodes=b.nodes.map(o=>f(o,d))),c.source){let{inputId:o,...l}=c.source;c.source=l,o!=null&&(c.source.input=d[o])}if(c.type==="root")return new u(c);if(c.type==="decl")return new n(c);if(c.type==="rule")return new a(c);if(c.type==="comment")return new e(c);if(c.type==="atrule")return new i(c);throw new Error("Unknown node type: "+b.type)}return en=f,f.default=f,en}var tn,xi;function Hi(){if(xi)return tn;xi=1;let{dirname:i,relative:e,resolve:n,sep:r}=fe,{SourceMapConsumer:t,SourceMapGenerator:u}=fe,{pathToFileURL:a}=fe,f=St(),b=!!(t&&u),d=!!(i&&n&&e&&r);class s{constructor(o,l,p,m){this.stringify=o,this.mapOpts=p.map||{},this.root=l,this.opts=p,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let o;this.isInline()?o="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?o=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?o=this.mapOpts.annotation(this.opts.to,this.root):o=this.outputFile()+".map";let l=`
490
+ `?(s=1,c+=1):s+=1;return{column:s,line:c,offset:p}}prev(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d-1]}rangeBy(d={}){let s="document"in this.source.input?this.source.input.document:this.source.input.css,c={column:this.source.start.column,line:this.source.start.line,offset:a(s,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:a(s,this.source.end)+1}:{column:c.column+1,line:c.line,offset:c.offset+1};if(d.word){let p=s.slice(a(s,this.source.start),a(s,this.source.end)).indexOf(d.word);p!==-1&&(c=this.positionInside(p),o=this.positionInside(p+d.word.length))}else d.start?c={column:d.start.column,line:d.start.line,offset:a(s,d.start)}:d.index&&(c=this.positionInside(d.index)),d.end?o={column:d.end.column,line:d.end.line,offset:a(s,d.end)}:typeof d.endIndex=="number"?o=this.positionInside(d.endIndex):d.index&&(o=this.positionInside(d.index+1));return(o.line<c.line||o.line===c.line&&o.column<=c.column)&&(o={column:c.column+1,line:c.line,offset:c.offset+1}),{end:o,start:c}}raw(d,s){return new e().raw(this,d,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...d){if(this.parent){let s=this,c=!1;for(let o of d)o===this?c=!0:c?(this.parent.insertAfter(s,o),s=o):this.parent.insertBefore(s,o);c||this.remove()}return this}root(){let d=this;for(;d.parent&&d.parent.type!=="document";)d=d.parent;return d}toJSON(d,s){let c={},o=s==null;s=s||new Map;let l=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let m=this[p];if(Array.isArray(m))c[p]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,s):g);else if(typeof m=="object"&&m.toJSON)c[p]=m.toJSON(null,s);else if(p==="source"){if(m==null)continue;let g=s.get(m.input);g==null&&(g=l,s.set(m.input,l),l++),c[p]={end:m.end,inputId:g,start:m.start}}else c[p]=m}return o&&(c.inputs=[...s.keys()].map(p=>p.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(d=n){d.stringify&&(d=d.stringify);let s="";return d(this,c=>{s+=c}),s}warn(d,s,c={}){let o={node:this};for(let l in c)o[l]=c[l];return d.warn(s,o)}}return qt=f,f.default=f,qt}var Ft,ui;function _t(){if(ui)return Ft;ui=1;let i=xt();class e extends i{constructor(r){super(r),this.type="comment"}}return Ft=e,e.default=e,Ft}var Ht,di;function Et(){if(di)return Ht;di=1;let i=xt();class e extends i{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(r){r&&typeof r.value<"u"&&typeof r.value!="string"&&(r={...r,value:String(r.value)}),super(r),this.type="decl"}}return Ht=e,e.default=e,Ht}var Wt,hi;function Pe(){if(hi)return Wt;hi=1;let i=_t(),e=Et(),n=xt(),{isClean:r,my:t}=Sn(),u,a,f,b;function d(o){return o.map(l=>(l.nodes&&(l.nodes=d(l.nodes)),delete l.source,l))}function s(o){if(o[r]=!1,o.proxyOf.nodes)for(let l of o.proxyOf.nodes)s(l)}class c extends n{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 p of l){let m=this.normalize(p,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let p of this.nodes)p.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],g=l(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,p){return p==="proxyOf"?l:l[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>l[p](...m.map(g=>typeof g=="function"?(_,E)=>g(_.toProxy(),E):g)):p==="every"||p==="some"?m=>l[p]((g,..._)=>m(g.toProxy(),..._)):p==="root"?()=>l.root().toProxy():p==="nodes"?l.nodes.map(m=>m.toProxy()):p==="first"||p==="last"?l[p].toProxy():l[p]:l[p]},set(l,p,m){return l[p]===m||(l[p]=m,(p==="name"||p==="params"||p==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,p){let m=this.index(l),g=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(l);for(let E of g)this.proxyOf.nodes.splice(m+1,0,E);let _;for(let E in this.indexes)_=this.indexes[E],m<_&&(this.indexes[E]=_+g.length);return this.markDirty(),this}insertBefore(l,p){let m=this.index(l),g=m===0?"prepend":!1,_=this.normalize(p,this.proxyOf.nodes[m],g).reverse();m=this.index(l);for(let w of _)this.proxyOf.nodes.splice(m,0,w);let E;for(let w in this.indexes)E=this.indexes[w],m<=E&&(this.indexes[w]=E+_.length);return this.markDirty(),this}normalize(l,p){if(typeof l=="string")l=d(a(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new e(l)]}else if(l.selector||l.selectors)l=[new b(l)];else if(l.name)l=[new u(l)];else if(l.text)l=[new i(l)];else throw new Error("Unknown node type in node creation");return l.map(g=>(g[t]||c.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[r]&&s(g),g.raws||(g.raws={}),typeof g.raws.before>"u"&&p&&typeof p.raws.before<"u"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...l){l=l.reverse();for(let p of l){let m=this.normalize(p,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let p;for(let m in this.indexes)p=this.indexes[m],p>=l&&(this.indexes[m]=p-1);return this.markDirty(),this}replaceValues(l,p,m){return m||(m=p,p={}),this.walkDecls(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(l,m))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((p,m)=>{let g;try{g=l(p,m)}catch(_){throw p.addToError(_)}return g!==!1&&p.walk&&(g=p.walk(l)),g})}walkAtRules(l,p){return p?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&l.test(m.name))return p(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===l)return p(m,g)}):(p=l,this.walk((m,g)=>{if(m.type==="atrule")return p(m,g)}))}walkComments(l){return this.walk((p,m)=>{if(p.type==="comment")return l(p,m)})}walkDecls(l,p){return p?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&l.test(m.prop))return p(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===l)return p(m,g)}):(p=l,this.walk((m,g)=>{if(m.type==="decl")return p(m,g)}))}walkRules(l,p){return p?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&l.test(m.selector))return p(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===l)return p(m,g)}):(p=l,this.walk((m,g)=>{if(m.type==="rule")return p(m,g)}))}}return c.registerParse=o=>{a=o},c.registerRule=o=>{b=o},c.registerAtRule=o=>{u=o},c.registerRoot=o=>{f=o},Wt=c,c.default=c,c.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,u.prototype):o.type==="rule"?Object.setPrototypeOf(o,b.prototype):o.type==="decl"?Object.setPrototypeOf(o,e.prototype):o.type==="comment"?Object.setPrototypeOf(o,i.prototype):o.type==="root"&&Object.setPrototypeOf(o,f.prototype),o[t]=!0,o.nodes&&o.nodes.forEach(l=>{c.rebuild(l)})},Wt}var Vt,pi;function An(){if(pi)return Vt;pi=1;let i=Pe();class e extends i{constructor(r){super(r),this.type="atrule"}append(...r){return this.proxyOf.nodes||(this.nodes=[]),super.append(...r)}prepend(...r){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...r)}}return Vt=e,e.default=e,i.registerAtRule(e),Vt}var Gt,fi;function kn(){if(fi)return Gt;fi=1;let i=Pe(),e,n;class r extends i{constructor(u){super({type:"document",...u}),this.nodes||(this.nodes=[])}toResult(u={}){return new e(new n,this,u).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=t=>{n=t},Gt=r,r.default=r,Gt}var Zt,mi;function Qr(){if(mi)return Zt;mi=1;let i="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Zt={nanoid:(r=21)=>{let t="",u=r|0;for(;u--;)t+=i[Math.random()*64|0];return t},customAlphabet:(r,t=21)=>(u=t)=>{let a="",f=u|0;for(;f--;)a+=r[Math.random()*r.length|0];return a}},Zt}var Jt,gi;function qi(){if(gi)return Jt;gi=1;let{existsSync:i,readFileSync:e}=fe,{dirname:n,join:r}=fe,{SourceMapConsumer:t,SourceMapGenerator:u}=fe;function a(b){return Buffer?Buffer.from(b,"base64").toString():window.atob(b)}class f{constructor(d,s){if(s.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let c=s.map?s.map.prev:void 0,o=this.loadMap(s.from,c);!this.mapFile&&s.from&&(this.mapFile=s.from),this.mapFile&&(this.root=n(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new t(this.text)),this.consumerCache}decodeInline(d){let s=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/,p=d.match(o)||d.match(l);if(p)return decodeURIComponent(d.substr(p[0].length));let m=d.match(s)||d.match(c);if(m)return a(d.substr(m[0].length));let g=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let s=d.match(/\/\*\s*# sourceMappingURL=/g);if(!s)return;let c=d.lastIndexOf(s.pop()),o=d.indexOf("*/",c);c>-1&&o>-1&&(this.annotation=this.getAnnotationURL(d.substring(c,o)))}loadFile(d){if(this.root=n(d),i(d))return this.mapFile=d,e(d,"utf-8").toString().trim()}loadMap(d,s){if(s===!1)return!1;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let c=s(d);if(c){let o=this.loadFile(c);if(!o)throw new Error("Unable to load previous source map: "+c.toString());return o}}else{if(s instanceof t)return u.fromSourceMap(s).toString();if(s instanceof u)return s.toString();if(this.isMap(s))return JSON.stringify(s);throw new Error("Unsupported previous source map format: "+s.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return d&&(c=r(n(d),c)),this.loadFile(c)}}}startWith(d,s){return d?d.substr(0,s.length)===s:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Jt=f,f.default=f,Jt}var Kt,bi;function St(){if(bi)return Kt;bi=1;let{nanoid:i}=Qr(),{isAbsolute:e,resolve:n}=fe,{SourceMapConsumer:r,SourceMapGenerator:t}=fe,{fileURLToPath:u,pathToFileURL:a}=fe,f=En(),b=qi(),d=fe,s=Symbol("lineToIndexCache"),c=!!(r&&t),o=!!(n&&e);function l(m){if(m[s])return m[s];let g=m.css.split(`
491
+ `),_=new Array(g.length),E=0;for(let w=0,v=g.length;w<v;w++)_[w]=E,E+=g[w].length+1;return m[s]=_,_}class p{get from(){return this.file||this.id}constructor(g,_={}){if(g===null||typeof g>"u"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,_.document&&(this.document=_.document.toString()),_.from&&(!o||/^\w+:\/\//.test(_.from)||e(_.from)?this.file=_.from:this.file=n(_.from)),o&&c){let E=new b(this.css,_);if(E.text){this.map=E;let w=E.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+i(6)+">"),this.map&&(this.map.file=this.from)}error(g,_,E,w={}){let v,y,S,O,I;if(_&&typeof _=="object"){let P=_,K=E;if(typeof P.offset=="number"){O=P.offset;let F=this.fromOffset(O);_=F.line,E=F.col}else _=P.line,E=P.column,O=this.fromLineAndColumn(_,E);if(typeof K.offset=="number"){S=K.offset;let F=this.fromOffset(S);y=F.line,v=F.col}else y=K.line,v=K.column,S=this.fromLineAndColumn(K.line,K.column)}else if(E)O=this.fromLineAndColumn(_,E);else{O=_;let P=this.fromOffset(O);_=P.line,E=P.col}let U=this.origin(_,E,y,v);return U?I=new f(g,U.endLine===void 0?U.line:{column:U.column,line:U.line},U.endLine===void 0?U.column:{column:U.endColumn,line:U.endLine},U.source,U.file,w.plugin):I=new f(g,y===void 0?_:{column:E,line:_},y===void 0?E:{column:v,line:y},this.css,this.file,w.plugin),I.input={column:E,endColumn:v,endLine:y,endOffset:S,line:_,offset:O,source:this.css},this.file&&(a&&(I.input.url=a(this.file).toString()),I.input.file=this.file),I}fromLineAndColumn(g,_){return l(this)[g-1]+_-1}fromOffset(g){let _=l(this),E=_[_.length-1],w=0;if(g>=E)w=_.length-1;else{let v=_.length-2,y;for(;w<v;)if(y=w+(v-w>>1),g<_[y])v=y-1;else if(g>=_[y+1])w=y+1;else{w=y;break}}return{col:g-_[w]+1,line:w+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:n(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,_,E,w){if(!this.map)return!1;let v=this.map.consumer(),y=v.originalPositionFor({column:_,line:g});if(!y.source)return!1;let S;typeof E=="number"&&(S=v.originalPositionFor({column:w,line:E}));let O;e(y.source)?O=a(y.source):O=new URL(y.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let I={column:y.column,endColumn:S&&S.column,endLine:S&&S.line,line:y.line,url:O.toString()};if(O.protocol==="file:")if(u)I.file=u(O);else throw new Error("file: protocol is not available in this PostCSS build");let U=v.sourceContentFor(y.source);return U&&(I.source=U),I}toJSON(){let g={};for(let _ of["hasBOM","css","file","id"])this[_]!=null&&(g[_]=this[_]);return this.map&&(g.map={...this.map},g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Kt=p,p.default=p,d&&d.registerInput&&d.registerInput(p),Kt}var Xt,yi;function nt(){if(yi)return Xt;yi=1;let i=Pe(),e,n;class r extends i{constructor(u){super(u),this.type="root",this.nodes||(this.nodes=[])}normalize(u,a,f){let b=super.normalize(u);if(a){if(f==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let d of b)d.raws.before=a.raws.before}return b}removeChild(u,a){let f=this.index(u);return!a&&f===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[f].raws.before),super.removeChild(u)}toResult(u={}){return new e(new n,this,u).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=t=>{n=t},Xt=r,r.default=r,i.registerRoot(r),Xt}var Qt,vi;function Fi(){if(vi)return Qt;vi=1;let i={comma(e){return i.split(e,[","],!0)},space(e){let n=[" ",`
492
+ `," "];return i.split(e,n)},split(e,n,r){let t=[],u="",a=!1,f=0,b=!1,d="",s=!1;for(let c of e)s?s=!1:c==="\\"?s=!0:b?c===d&&(b=!1):c==='"'||c==="'"?(b=!0,d=c):c==="("?f+=1:c===")"?f>0&&(f-=1):f===0&&n.includes(c)&&(a=!0),a?(u!==""&&t.push(u.trim()),u="",a=!1):u+=c;return(r||u!=="")&&t.push(u.trim()),t}};return Qt=i,i.default=i,Qt}var Yt,wi;function $n(){if(wi)return Yt;wi=1;let i=Pe(),e=Fi();class n extends i{get selectors(){return e.comma(this.selector)}set selectors(t){let u=this.selector?this.selector.match(/,\s*/):null,a=u?u[0]:","+this.raw("between","beforeOpen");this.selector=t.join(a)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}}return Yt=n,n.default=n,i.registerRule(n),Yt}var en,xi;function Yr(){if(xi)return en;xi=1;let i=An(),e=_t(),n=Et(),r=St(),t=qi(),u=nt(),a=$n();function f(b,d){if(Array.isArray(b))return b.map(o=>f(o));let{inputs:s,...c}=b;if(s){d=[];for(let o of s){let l={...o,__proto__:r.prototype};l.map&&(l.map={...l.map,__proto__:t.prototype}),d.push(l)}}if(c.nodes&&(c.nodes=b.nodes.map(o=>f(o,d))),c.source){let{inputId:o,...l}=c.source;c.source=l,o!=null&&(c.source.input=d[o])}if(c.type==="root")return new u(c);if(c.type==="decl")return new n(c);if(c.type==="rule")return new a(c);if(c.type==="comment")return new e(c);if(c.type==="atrule")return new i(c);throw new Error("Unknown node type: "+b.type)}return en=f,f.default=f,en}var tn,_i;function Hi(){if(_i)return tn;_i=1;let{dirname:i,relative:e,resolve:n,sep:r}=fe,{SourceMapConsumer:t,SourceMapGenerator:u}=fe,{pathToFileURL:a}=fe,f=St(),b=!!(t&&u),d=!!(i&&n&&e&&r);class s{constructor(o,l,p,m){this.stringify=o,this.mapOpts=p.map||{},this.root=l,this.opts=p,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let o;this.isInline()?o="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?o=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?o=this.mapOpts.annotation(this.opts.to,this.root):o=this.outputFile()+".map";let l=`
469
493
  `;this.css.includes(`\r
470
494
  `)&&(l=`\r
471
495
  `),this.css+=l+"/*# sourceMappingURL="+o+" */"}applyPrevMaps(){for(let o of this.previous()){let l=this.toUrl(this.path(o.file)),p=o.root||i(o.file),m;this.mapOpts.sourcesContent===!1?(m=new t(o.text),m.sourcesContent&&(m.sourcesContent=null)):m=o.consumer(),this.map.applySourceMap(m,l,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let o;for(let l=this.root.nodes.length-1;l>=0;l--)o=this.root.nodes[l],o.type==="comment"&&o.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(l)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&b&&this.isMap())return this.generateMap();{let o="";return this.stringify(this.root,l=>{o+=l}),[o]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let o=this.previous()[0].consumer();o.file=this.outputFile(),this.map=u.fromSourceMap(o,{ignoreInvalidMapping:!0})}else this.map=new u({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 u({file:this.outputFile(),ignoreInvalidMapping:!0});let o=1,l=1,p="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,_;this.stringify(this.root,(E,w,v)=>{if(this.css+=E,w&&v!=="end"&&(m.generated.line=o,m.generated.column=l-1,w.source&&w.source.start?(m.source=this.sourcePath(w),m.original.line=w.source.start.line,m.original.column=w.source.start.column-1,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,this.map.addMapping(m))),_=E.match(/\n/g),_?(o+=_.length,g=E.lastIndexOf(`
472
- `),l=E.length-g):l+=E.length,w&&v!=="start"){let y=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==y.last||y.raws.semicolon)&&(w.source&&w.source.end?(m.source=this.sourcePath(w),m.original.line=w.source.end.line,m.original.column=w.source.end.column-1,m.generated.line=o,m.generated.column=l-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=o,m.generated.column=l-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(o=>o.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let o=this.mapOpts.annotation;return typeof o<"u"&&o!==!0?!1:this.previous().length?this.previous().some(l=>l.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(o=>o.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(o){if(this.mapOpts.absolute||o.charCodeAt(0)===60||/^\w+:\/\//.test(o))return o;let l=this.memoizedPaths.get(o);if(l)return l;let p=this.opts.to?i(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=i(n(p,this.mapOpts.annotation)));let m=e(p,o);return this.memoizedPaths.set(o,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let l=o.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let o=new f(this.originalCSS,this.opts);o.map&&this.previousMaps.push(o.map)}return this.previousMaps}setSourcesContent(){let o={};if(this.root)this.root.walk(l=>{if(l.source){let p=l.source.input.from;if(p&&!o[p]){o[p]=!0;let m=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(m,l.source.input.css)}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css)}}sourcePath(o){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(o.source.input.from):this.toUrl(this.path(o.source.input.from))}toBase64(o){return Buffer?Buffer.from(o).toString("base64"):window.btoa(unescape(encodeURIComponent(o)))}toFileUrl(o){let l=this.memoizedFileURLs.get(o);if(l)return l;if(a){let p=a(o).toString();return this.memoizedFileURLs.set(o,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(o){let l=this.memoizedURLs.get(o);if(l)return l;r==="\\"&&(o=o.replace(/\\/g,"/"));let p=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,p),p}}return tn=s,tn}var nn,_i;function Yr(){if(_i)return nn;_i=1;const i=39,e=34,n=92,r=47,t=10,u=32,a=12,f=9,b=13,d=91,s=93,c=40,o=41,l=123,p=125,m=59,g=42,_=58,E=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return nn=function(T,U={}){let P=T.css.valueOf(),K=U.ignoreErrors,F,Ae,he,R,Le,W,te,le,ce,ve,ke=P.length,j=0,Fe=[],Te=[];function kt(){return j}function He(we){throw T.error("Unclosed "+we,j)}function $t(){return Te.length===0&&j>=ke}function Ie(we){if(Te.length)return Te.pop();if(j>=ke)return;let We=we?we.ignoreUnclosed:!1;switch(F=P.charCodeAt(j),F){case t:case u:case f:case b:case a:{R=j;do R+=1,F=P.charCodeAt(R);while(F===u||F===t||F===f||F===b||F===a);W=["space",P.slice(j,R)],j=R-1;break}case d:case s:case l:case p:case _:case m:case o:{let it=String.fromCharCode(F);W=[it,it,j];break}case c:{if(ve=Fe.length?Fe.pop()[1]:"",ce=P.charCodeAt(j+1),ve==="url"&&ce!==i&&ce!==e&&ce!==u&&ce!==t&&ce!==f&&ce!==a&&ce!==b){R=j;do{if(te=!1,R=P.indexOf(")",R+1),R===-1)if(K||We){R=j;break}else He("bracket");for(le=R;P.charCodeAt(le-1)===n;)le-=1,te=!te}while(te);W=["brackets",P.slice(j,R+1),j,R],j=R}else R=P.indexOf(")",j+1),Ae=P.slice(j,R+1),R===-1||y.test(Ae)?W=["(","(",j]:(W=["brackets",Ae,j,R],j=R);break}case i:case e:{Le=F===i?"'":'"',R=j;do{if(te=!1,R=P.indexOf(Le,R+1),R===-1)if(K||We){R=j+1;break}else He("string");for(le=R;P.charCodeAt(le-1)===n;)le-=1,te=!te}while(te);W=["string",P.slice(j,R+1),j,R],j=R;break}case E:{w.lastIndex=j+1,w.test(P),w.lastIndex===0?R=P.length-1:R=w.lastIndex-2,W=["at-word",P.slice(j,R+1),j,R],j=R;break}case n:{for(R=j,he=!0;P.charCodeAt(R+1)===n;)R+=1,he=!he;if(F=P.charCodeAt(R+1),he&&F!==r&&F!==u&&F!==t&&F!==f&&F!==b&&F!==a&&(R+=1,S.test(P.charAt(R)))){for(;S.test(P.charAt(R+1));)R+=1;P.charCodeAt(R+1)===u&&(R+=1)}W=["word",P.slice(j,R+1),j,R],j=R;break}default:{F===r&&P.charCodeAt(j+1)===g?(R=P.indexOf("*/",j+2)+1,R===0&&(K||We?R=P.length:He("comment")),W=["comment",P.slice(j,R+1),j,R],j=R):(v.lastIndex=j+1,v.test(P),v.lastIndex===0?R=P.length-1:R=v.lastIndex-2,W=["word",P.slice(j,R+1),j,R],Fe.push(W),j=R);break}}return j++,W}function Ot(we){Te.push(we)}return{back:Ot,endOfFile:$t,nextToken:Ie,position:kt}},nn}var sn,Ei;function eo(){if(Ei)return sn;Ei=1;let i=Sn(),e=_t(),n=Et(),r=nt(),t=kn(),u=Yr();const a={empty:!0,space:!0};function f(d){for(let s=d.length-1;s>=0;s--){let c=d[s],o=c[3]||c[2];if(o)return o}}class b{constructor(s){this.input=s,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:s,start:{column:1,line:1,offset:0}}}atrule(s){let c=new i;c.name=s[1].slice(1),c.name===""&&this.unnamedAtrule(c,s),this.init(c,s[2]);let o,l,p,m=!1,g=!1,_=[],E=[];for(;!this.tokenizer.endOfFile();){if(s=this.tokenizer.nextToken(),o=s[0],o==="("||o==="["?E.push(o==="("?")":"]"):o==="{"&&E.length>0?E.push("}"):o===E[E.length-1]&&E.pop(),E.length===0)if(o===";"){c.source.end=this.getPosition(s[2]),c.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){g=!0;break}else if(o==="}"){if(_.length>0){for(p=_.length-1,l=_[p];l&&l[0]==="space";)l=_[--p];l&&(c.source.end=this.getPosition(l[3]||l[2]),c.source.end.offset++)}this.end(s);break}else _.push(s);else _.push(s);if(this.tokenizer.endOfFile()){m=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(_),_.length?(c.raws.afterName=this.spacesAndCommentsFromStart(_),this.raw(c,"params",_),m&&(s=_[_.length-1],c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),g&&(c.nodes=[],this.current=c)}checkMissedSemicolon(s){let c=this.colon(s);if(c===!1)return;let o=0,l;for(let p=c-1;p>=0&&(l=s[p],!(l[0]!=="space"&&(o+=1,o===2)));p--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(s){let c=0,o,l,p;for(let[m,g]of s.entries()){if(l=g,p=l[0],p==="("&&(c+=1),p===")"&&(c-=1),c===0&&p===":")if(!o)this.doubleColon(l);else{if(o[0]==="word"&&o[1]==="progid")continue;return m}o=l}return!1}comment(s){let c=new e;this.init(c,s[2]),c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++;let o=s[1].slice(2,-2);if(/^\s*$/.test(o))c.text="",c.raws.left=o,c.raws.right="";else{let l=o.match(/^(\s*)([^]*\S)(\s*)$/);c.text=l[2],c.raws.left=l[1],c.raws.right=l[3]}}createTokenizer(){this.tokenizer=u(this.input)}decl(s,c){let o=new n;this.init(o,s[0][2]);let l=s[s.length-1];for(l[0]===";"&&(this.semicolon=!0,s.pop()),o.source.end=this.getPosition(l[3]||l[2]||f(s)),o.source.end.offset++;s[0][0]!=="word";)s.length===1&&this.unknownWord(s),o.raws.before+=s.shift()[1];for(o.source.start=this.getPosition(s[0][2]),o.prop="";s.length;){let E=s[0][0];if(E===":"||E==="space"||E==="comment")break;o.prop+=s.shift()[1]}o.raws.between="";let p;for(;s.length;)if(p=s.shift(),p[0]===":"){o.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),o.raws.between+=p[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let m=[],g;for(;s.length&&(g=s[0][0],!(g!=="space"&&g!=="comment"));)m.push(s.shift());this.precheckMissedSemicolon(s);for(let E=s.length-1;E>=0;E--){if(p=s[E],p[1].toLowerCase()==="!important"){o.important=!0;let w=this.stringFrom(s,E);w=this.spacesFromEnd(s)+w,w!==" !important"&&(o.raws.important=w);break}else if(p[1].toLowerCase()==="important"){let w=s.slice(0),v="";for(let y=E;y>0;y--){let S=w[y][0];if(v.trim().startsWith("!")&&S!=="space")break;v=w.pop()[1]+v}v.trim().startsWith("!")&&(o.important=!0,o.raws.important=v,s=w)}if(p[0]!=="space"&&p[0]!=="comment")break}s.some(E=>E[0]!=="space"&&E[0]!=="comment")&&(o.raws.between+=m.map(E=>E[1]).join(""),m=[]),this.raw(o,"value",m.concat(s),c),o.value.includes(":")&&!c&&this.checkMissedSemicolon(s)}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let c=new t;this.init(c,s[2]),c.selector="",c.raws.between="",this.current=c}end(s){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(s[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(s)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(s){if(this.spaces+=s[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="",c.source.end=this.getPosition(s[2]),c.source.end.offset+=c.raws.ownSemicolon.length)}}getPosition(s){let c=this.input.fromOffset(s);return{column:c.col,line:c.line,offset:s}}init(s,c){this.current.push(s),s.source={input:this.input,start:this.getPosition(c)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1)}other(s){let c=!1,o=null,l=!1,p=null,m=[],g=s[1].startsWith("--"),_=[],E=s;for(;E;){if(o=E[0],_.push(E),o==="("||o==="[")p||(p=E),m.push(o==="("?")":"]");else if(g&&l&&o==="{")p||(p=E),m.push("}");else if(m.length===0)if(o===";")if(l){this.decl(_,g);return}else break;else if(o==="{"){this.rule(_);return}else if(o==="}"){this.tokenizer.back(_.pop()),c=!0;break}else o===":"&&(l=!0);else o===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));E=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),m.length>0&&this.unclosedBracket(p),c&&l){if(!g)for(;_.length&&(E=_[_.length-1][0],!(E!=="space"&&E!=="comment"));)this.tokenizer.back(_.pop());this.decl(_,g)}else this.unknownWord(_)}parse(){let s;for(;!this.tokenizer.endOfFile();)switch(s=this.tokenizer.nextToken(),s[0]){case"space":this.spaces+=s[1];break;case";":this.freeSemicolon(s);break;case"}":this.end(s);break;case"comment":this.comment(s);break;case"at-word":this.atrule(s);break;case"{":this.emptyRule(s);break;default:this.other(s);break}this.endFile()}precheckMissedSemicolon(){}raw(s,c,o,l){let p,m,g=o.length,_="",E=!0,w,v;for(let y=0;y<g;y+=1)p=o[y],m=p[0],m==="space"&&y===g-1&&!l?E=!1:m==="comment"?(v=o[y-1]?o[y-1][0]:"empty",w=o[y+1]?o[y+1][0]:"empty",!a[v]&&!a[w]?_.slice(-1)===","?E=!1:_+=p[1]:E=!1):_+=p[1];if(!E){let y=o.reduce((S,O)=>S+O[1],"");s.raws[c]={raw:y,value:_}}s[c]=_}rule(s){s.pop();let c=new t;this.init(c,s[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(c,"selector",s),this.current=c}spacesAndCommentsFromEnd(s){let c,o="";for(;s.length&&(c=s[s.length-1][0],!(c!=="space"&&c!=="comment"));)o=s.pop()[1]+o;return o}spacesAndCommentsFromStart(s){let c,o="";for(;s.length&&(c=s[0][0],!(c!=="space"&&c!=="comment"));)o+=s.shift()[1];return o}spacesFromEnd(s){let c,o="";for(;s.length&&(c=s[s.length-1][0],c==="space");)o=s.pop()[1]+o;return o}stringFrom(s,c){let o="";for(let l=c;l<s.length;l++)o+=s[l][1];return s.splice(c,s.length-c),o}unclosedBlock(){let s=this.current.source.start;throw this.input.error("Unclosed block",s.line,s.column)}unclosedBracket(s){throw this.input.error("Unclosed bracket",{offset:s[2]},{offset:s[2]+1})}unexpectedClose(s){throw this.input.error("Unexpected }",{offset:s[2]},{offset:s[2]+1})}unknownWord(s){throw this.input.error("Unknown word "+s[0][1],{offset:s[0][2]},{offset:s[0][2]+s[0][1].length})}unnamedAtrule(s,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return sn=b,sn}var rn,Si;function $n(){if(Si)return rn;Si=1;let i=Pe(),e=St(),n=eo();function r(t,u){let a=new e(t,u),f=new n(a);try{f.parse()}catch(b){throw b}return f.root}return rn=r,r.default=r,i.registerParse(r),rn}var on,Ai;function Wi(){if(Ai)return on;Ai=1;class i{constructor(n,r={}){if(this.type="warning",this.text=n,r.node&&r.node.source){let t=r.node.rangeBy(r);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in r)this[t]=r[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return on=i,i.default=i,on}var an,ki;function On(){if(ki)return an;ki=1;let i=Wi();class e{get content(){return this.css}constructor(r,t,u){this.processor=r,this.messages=[],this.root=t,this.opts=u,this.css="",this.map=void 0}toString(){return this.css}warn(r,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let u=new i(r,t);return this.messages.push(u),u}warnings(){return this.messages.filter(r=>r.type==="warning")}}return an=e,e.default=e,an}var ln,$i;function Vi(){if($i)return ln;$i=1;let i=Pe(),e=An(),n=Hi(),r=$n(),t=On(),u=nt(),a=wt(),{isClean:f,my:b}=En();const d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},s={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function l(w){return typeof w=="object"&&typeof w.then=="function"}function p(w){let v=!1,y=d[w.type];return w.type==="decl"?v=w.prop.toLowerCase():w.type==="atrule"&&(v=w.name.toLowerCase()),v&&w.append?[y,y+"-"+v,o,y+"Exit",y+"Exit-"+v]:v?[y,y+"-"+v,y+"Exit",y+"Exit-"+v]:w.append?[y,o,y+"Exit"]:[y,y+"Exit"]}function m(w){let v;return w.type==="document"?v=["Document",o,"DocumentExit"]:w.type==="root"?v=["Root",o,"RootExit"]:v=p(w),{eventIndex:0,events:v,iterator:0,node:w,visitorIndex:0,visitors:[]}}function g(w){return w[f]=!1,w.nodes&&w.nodes.forEach(v=>g(v)),w}let _={};class E{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(v,y,S){this.stringified=!1,this.processed=!1;let O;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))O=g(y);else if(y instanceof E||y instanceof t)O=g(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let T=r;S.syntax&&(T=S.syntax.parse),S.parser&&(T=S.parser),T.parse&&(T=T.parse);try{O=T(y,S)}catch(U){this.processed=!0,this.error=U}O&&!O[b]&&i.rebuild(O)}this.result=new t(v,O,S),this.helpers={..._,postcss:_,result:this.result},this.plugins=this.processor.plugins.map(T=>typeof T=="object"&&T.prepare?{...T,...T.prepare(this.result)}:T)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,y){let S=this.result.lastPlugin;try{y&&y.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=S.postcssPlugin,v.setMessage()):S.postcssVersion}catch(O){console&&console.error&&console.error(O)}return v}prepareVisitors(){this.listeners={};let v=(y,S,O)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,O])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!s[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[S])if(typeof y[S]=="object")for(let O in y[S])O==="*"?v(y,S,y[S][O]):v(y,S+"-"+O.toLowerCase(),y[S][O]);else typeof y[S]=="function"&&v(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let y=this.plugins[v],S=this.runOnRoot(y);if(l(S))try{await S}catch(O){throw this.handleError(O)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[f];){v[f]=!0;let y=[m(v)];for(;y.length>0;){let S=this.visitTick(y);if(l(S))try{await S}catch(O){let T=y[y.length-1].node;throw this.handleError(O,T)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(v.type==="document"){let O=v.nodes.map(T=>S(T,this.helpers));await Promise.all(O)}else await S(v,this.helpers)}catch(O){throw this.handleError(O)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>v.Once(S,this.helpers));return l(y[0])?Promise.all(y):y}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let v=this.result.opts,y=a;v.syntax&&(y=v.syntax.stringify),v.stringifier&&(y=v.stringifier),y.stringify&&(y=y.stringify);let O=new n(y,this.result.root,this.result.opts).generate();return this.result.css=O[0],this.result.map=O[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 v of this.plugins){let y=this.runOnRoot(v);if(l(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[f];)v[f]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let y of v.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,y){return this.async().then(v,y)}toString(){return this.css}visitSync(v,y){for(let[S,O]of v){this.result.lastPlugin=S;let T;try{T=O(y,this.helpers)}catch(U){throw this.handleError(U,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(l(T))throw this.getAsyncError()}}visitTick(v){let y=v[v.length-1],{node:S,visitors:O}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){v.pop();return}if(O.length>0&&y.visitorIndex<O.length){let[U,P]=O[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===O.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=U;try{return P(S.toProxy(),this.helpers)}catch(K){throw this.handleError(K,S)}}if(y.iterator!==0){let U=y.iterator,P;for(;P=S.nodes[S.indexes[U]];)if(S.indexes[U]+=1,!P[f]){P[f]=!0,v.push(m(P));return}y.iterator=0,delete S.indexes[U]}let T=y.events;for(;y.eventIndex<T.length;){let U=T[y.eventIndex];if(y.eventIndex+=1,U===o){S.nodes&&S.nodes.length&&(S[f]=!0,y.iterator=S.getIterator());return}else if(this.listeners[U]){y.visitors=this.listeners[U];return}}v.pop()}walkSync(v){v[f]=!0;let y=p(v);for(let S of y)if(S===o)v.nodes&&v.each(O=>{O[f]||this.walkSync(O)});else{let O=this.listeners[S];if(O&&this.visitSync(O,v.toProxy()))return}}warnings(){return this.sync().warnings()}}return E.registerPostcss=w=>{_=w},ln=E,E.default=E,u.registerLazyResult(E),e.registerLazyResult(E),ln}var cn,Oi;function to(){if(Oi)return cn;Oi=1;let i=Hi(),e=$n();const n=On();let r=wt();class t{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,f=e;try{a=f(this._css,this._opts)}catch(b){this.error=b}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(a,f,b){f=f.toString(),this.stringified=!1,this._processor=a,this._css=f,this._opts=b,this._map=void 0;let d,s=r;this.result=new n(this._processor,d,this._opts),this.result.css=f;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let o=new i(s,d,this._opts,f);if(o.isMap()){let[l,p]=o.generate();l&&(this.result.css=l),p&&(this.result.map=p)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,f){return this.async().then(a,f)}toString(){return this._css}warnings(){return[]}}return cn=t,t.default=t,cn}var un,Ci;function no(){if(Ci)return un;Ci=1;let i=An(),e=Vi(),n=to(),r=nt();class t{constructor(a=[]){this.version="8.5.6",this.plugins=this.normalize(a)}normalize(a){let f=[];for(let b of a)if(b.postcss===!0?b=b():b.postcss&&(b=b.postcss),typeof b=="object"&&Array.isArray(b.plugins))f=f.concat(b.plugins);else if(typeof b=="object"&&b.postcssPlugin)f.push(b);else if(typeof b=="function")f.push(b);else if(!(typeof b=="object"&&(b.parse||b.stringify)))throw new Error(b+" is not a PostCSS plugin");return f}process(a,f={}){return!this.plugins.length&&!f.parser&&!f.stringifier&&!f.syntax?new n(this,a,f):new e(this,a,f)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return un=t,t.default=t,r.registerProcessor(t),i.registerProcessor(t),un}var dn,Ri;function io(){if(Ri)return dn;Ri=1;var i={};let e=Sn(),n=_t(),r=Pe(),t=_n(),u=Et(),a=An(),f=Qr(),b=St(),d=Vi(),s=Fi(),c=xt(),o=$n(),l=no(),p=On(),m=nt(),g=kn(),_=wt(),E=Wi();function w(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new l(v)}return w.plugin=function(y,S){let O=!1;function T(...P){console&&console.warn&&!O&&(O=!0,console.warn(y+`: postcss.plugin was deprecated. Migration guide:
496
+ `),l=E.length-g):l+=E.length,w&&v!=="start"){let y=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==y.last||y.raws.semicolon)&&(w.source&&w.source.end?(m.source=this.sourcePath(w),m.original.line=w.source.end.line,m.original.column=w.source.end.column-1,m.generated.line=o,m.generated.column=l-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=o,m.generated.column=l-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(o=>o.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let o=this.mapOpts.annotation;return typeof o<"u"&&o!==!0?!1:this.previous().length?this.previous().some(l=>l.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(o=>o.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(o){if(this.mapOpts.absolute||o.charCodeAt(0)===60||/^\w+:\/\//.test(o))return o;let l=this.memoizedPaths.get(o);if(l)return l;let p=this.opts.to?i(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=i(n(p,this.mapOpts.annotation)));let m=e(p,o);return this.memoizedPaths.set(o,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let l=o.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let o=new f(this.originalCSS,this.opts);o.map&&this.previousMaps.push(o.map)}return this.previousMaps}setSourcesContent(){let o={};if(this.root)this.root.walk(l=>{if(l.source){let p=l.source.input.from;if(p&&!o[p]){o[p]=!0;let m=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(m,l.source.input.css)}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css)}}sourcePath(o){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(o.source.input.from):this.toUrl(this.path(o.source.input.from))}toBase64(o){return Buffer?Buffer.from(o).toString("base64"):window.btoa(unescape(encodeURIComponent(o)))}toFileUrl(o){let l=this.memoizedFileURLs.get(o);if(l)return l;if(a){let p=a(o).toString();return this.memoizedFileURLs.set(o,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(o){let l=this.memoizedURLs.get(o);if(l)return l;r==="\\"&&(o=o.replace(/\\/g,"/"));let p=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,p),p}}return tn=s,tn}var nn,Ei;function eo(){if(Ei)return nn;Ei=1;const i=39,e=34,n=92,r=47,t=10,u=32,a=12,f=9,b=13,d=91,s=93,c=40,o=41,l=123,p=125,m=59,g=42,_=58,E=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return nn=function(I,U={}){let P=I.css.valueOf(),K=U.ignoreErrors,F,Ae,he,R,Le,W,te,le,ce,ve,ke=P.length,j=0,Fe=[],Ie=[];function kt(){return j}function He(we){throw I.error("Unclosed "+we,j)}function $t(){return Ie.length===0&&j>=ke}function Te(we){if(Ie.length)return Ie.pop();if(j>=ke)return;let We=we?we.ignoreUnclosed:!1;switch(F=P.charCodeAt(j),F){case t:case u:case f:case b:case a:{R=j;do R+=1,F=P.charCodeAt(R);while(F===u||F===t||F===f||F===b||F===a);W=["space",P.slice(j,R)],j=R-1;break}case d:case s:case l:case p:case _:case m:case o:{let it=String.fromCharCode(F);W=[it,it,j];break}case c:{if(ve=Fe.length?Fe.pop()[1]:"",ce=P.charCodeAt(j+1),ve==="url"&&ce!==i&&ce!==e&&ce!==u&&ce!==t&&ce!==f&&ce!==a&&ce!==b){R=j;do{if(te=!1,R=P.indexOf(")",R+1),R===-1)if(K||We){R=j;break}else He("bracket");for(le=R;P.charCodeAt(le-1)===n;)le-=1,te=!te}while(te);W=["brackets",P.slice(j,R+1),j,R],j=R}else R=P.indexOf(")",j+1),Ae=P.slice(j,R+1),R===-1||y.test(Ae)?W=["(","(",j]:(W=["brackets",Ae,j,R],j=R);break}case i:case e:{Le=F===i?"'":'"',R=j;do{if(te=!1,R=P.indexOf(Le,R+1),R===-1)if(K||We){R=j+1;break}else He("string");for(le=R;P.charCodeAt(le-1)===n;)le-=1,te=!te}while(te);W=["string",P.slice(j,R+1),j,R],j=R;break}case E:{w.lastIndex=j+1,w.test(P),w.lastIndex===0?R=P.length-1:R=w.lastIndex-2,W=["at-word",P.slice(j,R+1),j,R],j=R;break}case n:{for(R=j,he=!0;P.charCodeAt(R+1)===n;)R+=1,he=!he;if(F=P.charCodeAt(R+1),he&&F!==r&&F!==u&&F!==t&&F!==f&&F!==b&&F!==a&&(R+=1,S.test(P.charAt(R)))){for(;S.test(P.charAt(R+1));)R+=1;P.charCodeAt(R+1)===u&&(R+=1)}W=["word",P.slice(j,R+1),j,R],j=R;break}default:{F===r&&P.charCodeAt(j+1)===g?(R=P.indexOf("*/",j+2)+1,R===0&&(K||We?R=P.length:He("comment")),W=["comment",P.slice(j,R+1),j,R],j=R):(v.lastIndex=j+1,v.test(P),v.lastIndex===0?R=P.length-1:R=v.lastIndex-2,W=["word",P.slice(j,R+1),j,R],Fe.push(W),j=R);break}}return j++,W}function Ot(we){Ie.push(we)}return{back:Ot,endOfFile:$t,nextToken:Te,position:kt}},nn}var sn,Si;function to(){if(Si)return sn;Si=1;let i=An(),e=_t(),n=Et(),r=nt(),t=$n(),u=eo();const a={empty:!0,space:!0};function f(d){for(let s=d.length-1;s>=0;s--){let c=d[s],o=c[3]||c[2];if(o)return o}}class b{constructor(s){this.input=s,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:s,start:{column:1,line:1,offset:0}}}atrule(s){let c=new i;c.name=s[1].slice(1),c.name===""&&this.unnamedAtrule(c,s),this.init(c,s[2]);let o,l,p,m=!1,g=!1,_=[],E=[];for(;!this.tokenizer.endOfFile();){if(s=this.tokenizer.nextToken(),o=s[0],o==="("||o==="["?E.push(o==="("?")":"]"):o==="{"&&E.length>0?E.push("}"):o===E[E.length-1]&&E.pop(),E.length===0)if(o===";"){c.source.end=this.getPosition(s[2]),c.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){g=!0;break}else if(o==="}"){if(_.length>0){for(p=_.length-1,l=_[p];l&&l[0]==="space";)l=_[--p];l&&(c.source.end=this.getPosition(l[3]||l[2]),c.source.end.offset++)}this.end(s);break}else _.push(s);else _.push(s);if(this.tokenizer.endOfFile()){m=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(_),_.length?(c.raws.afterName=this.spacesAndCommentsFromStart(_),this.raw(c,"params",_),m&&(s=_[_.length-1],c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),g&&(c.nodes=[],this.current=c)}checkMissedSemicolon(s){let c=this.colon(s);if(c===!1)return;let o=0,l;for(let p=c-1;p>=0&&(l=s[p],!(l[0]!=="space"&&(o+=1,o===2)));p--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(s){let c=0,o,l,p;for(let[m,g]of s.entries()){if(l=g,p=l[0],p==="("&&(c+=1),p===")"&&(c-=1),c===0&&p===":")if(!o)this.doubleColon(l);else{if(o[0]==="word"&&o[1]==="progid")continue;return m}o=l}return!1}comment(s){let c=new e;this.init(c,s[2]),c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++;let o=s[1].slice(2,-2);if(/^\s*$/.test(o))c.text="",c.raws.left=o,c.raws.right="";else{let l=o.match(/^(\s*)([^]*\S)(\s*)$/);c.text=l[2],c.raws.left=l[1],c.raws.right=l[3]}}createTokenizer(){this.tokenizer=u(this.input)}decl(s,c){let o=new n;this.init(o,s[0][2]);let l=s[s.length-1];for(l[0]===";"&&(this.semicolon=!0,s.pop()),o.source.end=this.getPosition(l[3]||l[2]||f(s)),o.source.end.offset++;s[0][0]!=="word";)s.length===1&&this.unknownWord(s),o.raws.before+=s.shift()[1];for(o.source.start=this.getPosition(s[0][2]),o.prop="";s.length;){let E=s[0][0];if(E===":"||E==="space"||E==="comment")break;o.prop+=s.shift()[1]}o.raws.between="";let p;for(;s.length;)if(p=s.shift(),p[0]===":"){o.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),o.raws.between+=p[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let m=[],g;for(;s.length&&(g=s[0][0],!(g!=="space"&&g!=="comment"));)m.push(s.shift());this.precheckMissedSemicolon(s);for(let E=s.length-1;E>=0;E--){if(p=s[E],p[1].toLowerCase()==="!important"){o.important=!0;let w=this.stringFrom(s,E);w=this.spacesFromEnd(s)+w,w!==" !important"&&(o.raws.important=w);break}else if(p[1].toLowerCase()==="important"){let w=s.slice(0),v="";for(let y=E;y>0;y--){let S=w[y][0];if(v.trim().startsWith("!")&&S!=="space")break;v=w.pop()[1]+v}v.trim().startsWith("!")&&(o.important=!0,o.raws.important=v,s=w)}if(p[0]!=="space"&&p[0]!=="comment")break}s.some(E=>E[0]!=="space"&&E[0]!=="comment")&&(o.raws.between+=m.map(E=>E[1]).join(""),m=[]),this.raw(o,"value",m.concat(s),c),o.value.includes(":")&&!c&&this.checkMissedSemicolon(s)}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let c=new t;this.init(c,s[2]),c.selector="",c.raws.between="",this.current=c}end(s){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(s[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(s)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(s){if(this.spaces+=s[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="",c.source.end=this.getPosition(s[2]),c.source.end.offset+=c.raws.ownSemicolon.length)}}getPosition(s){let c=this.input.fromOffset(s);return{column:c.col,line:c.line,offset:s}}init(s,c){this.current.push(s),s.source={input:this.input,start:this.getPosition(c)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1)}other(s){let c=!1,o=null,l=!1,p=null,m=[],g=s[1].startsWith("--"),_=[],E=s;for(;E;){if(o=E[0],_.push(E),o==="("||o==="[")p||(p=E),m.push(o==="("?")":"]");else if(g&&l&&o==="{")p||(p=E),m.push("}");else if(m.length===0)if(o===";")if(l){this.decl(_,g);return}else break;else if(o==="{"){this.rule(_);return}else if(o==="}"){this.tokenizer.back(_.pop()),c=!0;break}else o===":"&&(l=!0);else o===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));E=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),m.length>0&&this.unclosedBracket(p),c&&l){if(!g)for(;_.length&&(E=_[_.length-1][0],!(E!=="space"&&E!=="comment"));)this.tokenizer.back(_.pop());this.decl(_,g)}else this.unknownWord(_)}parse(){let s;for(;!this.tokenizer.endOfFile();)switch(s=this.tokenizer.nextToken(),s[0]){case"space":this.spaces+=s[1];break;case";":this.freeSemicolon(s);break;case"}":this.end(s);break;case"comment":this.comment(s);break;case"at-word":this.atrule(s);break;case"{":this.emptyRule(s);break;default:this.other(s);break}this.endFile()}precheckMissedSemicolon(){}raw(s,c,o,l){let p,m,g=o.length,_="",E=!0,w,v;for(let y=0;y<g;y+=1)p=o[y],m=p[0],m==="space"&&y===g-1&&!l?E=!1:m==="comment"?(v=o[y-1]?o[y-1][0]:"empty",w=o[y+1]?o[y+1][0]:"empty",!a[v]&&!a[w]?_.slice(-1)===","?E=!1:_+=p[1]:E=!1):_+=p[1];if(!E){let y=o.reduce((S,O)=>S+O[1],"");s.raws[c]={raw:y,value:_}}s[c]=_}rule(s){s.pop();let c=new t;this.init(c,s[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(c,"selector",s),this.current=c}spacesAndCommentsFromEnd(s){let c,o="";for(;s.length&&(c=s[s.length-1][0],!(c!=="space"&&c!=="comment"));)o=s.pop()[1]+o;return o}spacesAndCommentsFromStart(s){let c,o="";for(;s.length&&(c=s[0][0],!(c!=="space"&&c!=="comment"));)o+=s.shift()[1];return o}spacesFromEnd(s){let c,o="";for(;s.length&&(c=s[s.length-1][0],c==="space");)o=s.pop()[1]+o;return o}stringFrom(s,c){let o="";for(let l=c;l<s.length;l++)o+=s[l][1];return s.splice(c,s.length-c),o}unclosedBlock(){let s=this.current.source.start;throw this.input.error("Unclosed block",s.line,s.column)}unclosedBracket(s){throw this.input.error("Unclosed bracket",{offset:s[2]},{offset:s[2]+1})}unexpectedClose(s){throw this.input.error("Unexpected }",{offset:s[2]},{offset:s[2]+1})}unknownWord(s){throw this.input.error("Unknown word "+s[0][1],{offset:s[0][2]},{offset:s[0][2]+s[0][1].length})}unnamedAtrule(s,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return sn=b,sn}var rn,Ai;function On(){if(Ai)return rn;Ai=1;let i=Pe(),e=St(),n=to();function r(t,u){let a=new e(t,u),f=new n(a);try{f.parse()}catch(b){throw b}return f.root}return rn=r,r.default=r,i.registerParse(r),rn}var on,ki;function Wi(){if(ki)return on;ki=1;class i{constructor(n,r={}){if(this.type="warning",this.text=n,r.node&&r.node.source){let t=r.node.rangeBy(r);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in r)this[t]=r[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return on=i,i.default=i,on}var an,$i;function Cn(){if($i)return an;$i=1;let i=Wi();class e{get content(){return this.css}constructor(r,t,u){this.processor=r,this.messages=[],this.root=t,this.opts=u,this.css="",this.map=void 0}toString(){return this.css}warn(r,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let u=new i(r,t);return this.messages.push(u),u}warnings(){return this.messages.filter(r=>r.type==="warning")}}return an=e,e.default=e,an}var ln,Oi;function Vi(){if(Oi)return ln;Oi=1;let i=Pe(),e=kn(),n=Hi(),r=On(),t=Cn(),u=nt(),a=wt(),{isClean:f,my:b}=Sn();const d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},s={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function l(w){return typeof w=="object"&&typeof w.then=="function"}function p(w){let v=!1,y=d[w.type];return w.type==="decl"?v=w.prop.toLowerCase():w.type==="atrule"&&(v=w.name.toLowerCase()),v&&w.append?[y,y+"-"+v,o,y+"Exit",y+"Exit-"+v]:v?[y,y+"-"+v,y+"Exit",y+"Exit-"+v]:w.append?[y,o,y+"Exit"]:[y,y+"Exit"]}function m(w){let v;return w.type==="document"?v=["Document",o,"DocumentExit"]:w.type==="root"?v=["Root",o,"RootExit"]:v=p(w),{eventIndex:0,events:v,iterator:0,node:w,visitorIndex:0,visitors:[]}}function g(w){return w[f]=!1,w.nodes&&w.nodes.forEach(v=>g(v)),w}let _={};class E{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(v,y,S){this.stringified=!1,this.processed=!1;let O;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))O=g(y);else if(y instanceof E||y instanceof t)O=g(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let I=r;S.syntax&&(I=S.syntax.parse),S.parser&&(I=S.parser),I.parse&&(I=I.parse);try{O=I(y,S)}catch(U){this.processed=!0,this.error=U}O&&!O[b]&&i.rebuild(O)}this.result=new t(v,O,S),this.helpers={..._,postcss:_,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(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,y){let S=this.result.lastPlugin;try{y&&y.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=S.postcssPlugin,v.setMessage()):S.postcssVersion}catch(O){console&&console.error&&console.error(O)}return v}prepareVisitors(){this.listeners={};let v=(y,S,O)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,O])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!s[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[S])if(typeof y[S]=="object")for(let O in y[S])O==="*"?v(y,S,y[S][O]):v(y,S+"-"+O.toLowerCase(),y[S][O]);else typeof y[S]=="function"&&v(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let y=this.plugins[v],S=this.runOnRoot(y);if(l(S))try{await S}catch(O){throw this.handleError(O)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[f];){v[f]=!0;let y=[m(v)];for(;y.length>0;){let S=this.visitTick(y);if(l(S))try{await S}catch(O){let I=y[y.length-1].node;throw this.handleError(O,I)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(v.type==="document"){let O=v.nodes.map(I=>S(I,this.helpers));await Promise.all(O)}else await S(v,this.helpers)}catch(O){throw this.handleError(O)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>v.Once(S,this.helpers));return l(y[0])?Promise.all(y):y}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let v=this.result.opts,y=a;v.syntax&&(y=v.syntax.stringify),v.stringifier&&(y=v.stringifier),y.stringify&&(y=y.stringify);let O=new n(y,this.result.root,this.result.opts).generate();return this.result.css=O[0],this.result.map=O[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 v of this.plugins){let y=this.runOnRoot(v);if(l(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[f];)v[f]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let y of v.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,y){return this.async().then(v,y)}toString(){return this.css}visitSync(v,y){for(let[S,O]of v){this.result.lastPlugin=S;let I;try{I=O(y,this.helpers)}catch(U){throw this.handleError(U,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(l(I))throw this.getAsyncError()}}visitTick(v){let y=v[v.length-1],{node:S,visitors:O}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){v.pop();return}if(O.length>0&&y.visitorIndex<O.length){let[U,P]=O[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===O.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=U;try{return P(S.toProxy(),this.helpers)}catch(K){throw this.handleError(K,S)}}if(y.iterator!==0){let U=y.iterator,P;for(;P=S.nodes[S.indexes[U]];)if(S.indexes[U]+=1,!P[f]){P[f]=!0,v.push(m(P));return}y.iterator=0,delete S.indexes[U]}let I=y.events;for(;y.eventIndex<I.length;){let U=I[y.eventIndex];if(y.eventIndex+=1,U===o){S.nodes&&S.nodes.length&&(S[f]=!0,y.iterator=S.getIterator());return}else if(this.listeners[U]){y.visitors=this.listeners[U];return}}v.pop()}walkSync(v){v[f]=!0;let y=p(v);for(let S of y)if(S===o)v.nodes&&v.each(O=>{O[f]||this.walkSync(O)});else{let O=this.listeners[S];if(O&&this.visitSync(O,v.toProxy()))return}}warnings(){return this.sync().warnings()}}return E.registerPostcss=w=>{_=w},ln=E,E.default=E,u.registerLazyResult(E),e.registerLazyResult(E),ln}var cn,Ci;function no(){if(Ci)return cn;Ci=1;let i=Hi(),e=On();const n=Cn();let r=wt();class t{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,f=e;try{a=f(this._css,this._opts)}catch(b){this.error=b}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(a,f,b){f=f.toString(),this.stringified=!1,this._processor=a,this._css=f,this._opts=b,this._map=void 0;let d,s=r;this.result=new n(this._processor,d,this._opts),this.result.css=f;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let o=new i(s,d,this._opts,f);if(o.isMap()){let[l,p]=o.generate();l&&(this.result.css=l),p&&(this.result.map=p)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,f){return this.async().then(a,f)}toString(){return this._css}warnings(){return[]}}return cn=t,t.default=t,cn}var un,Ri;function io(){if(Ri)return un;Ri=1;let i=kn(),e=Vi(),n=no(),r=nt();class t{constructor(a=[]){this.version="8.5.6",this.plugins=this.normalize(a)}normalize(a){let f=[];for(let b of a)if(b.postcss===!0?b=b():b.postcss&&(b=b.postcss),typeof b=="object"&&Array.isArray(b.plugins))f=f.concat(b.plugins);else if(typeof b=="object"&&b.postcssPlugin)f.push(b);else if(typeof b=="function")f.push(b);else if(!(typeof b=="object"&&(b.parse||b.stringify)))throw new Error(b+" is not a PostCSS plugin");return f}process(a,f={}){return!this.plugins.length&&!f.parser&&!f.stringifier&&!f.syntax?new n(this,a,f):new e(this,a,f)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return un=t,t.default=t,r.registerProcessor(t),i.registerProcessor(t),un}var dn,Mi;function so(){if(Mi)return dn;Mi=1;var i={};let e=An(),n=_t(),r=Pe(),t=En(),u=Et(),a=kn(),f=Yr(),b=St(),d=Vi(),s=Fi(),c=xt(),o=On(),l=io(),p=Cn(),m=nt(),g=$n(),_=wt(),E=Wi();function w(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new l(v)}return w.plugin=function(y,S){let O=!1;function I(...P){console&&console.warn&&!O&&(O=!0,console.warn(y+`: postcss.plugin was deprecated. Migration guide:
473
497
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),i.LANG&&i.LANG.startsWith("cn")&&console.warn(y+`: 里面 postcss.plugin 被弃用. 迁移指南:
474
- https://www.w3ctech.com/topic/2226`));let K=S(...P);return K.postcssPlugin=y,K.postcssVersion=new l().version,K}let U;return Object.defineProperty(T,"postcss",{get(){return U||(U=T()),U}}),T.process=function(P,K,F){return w([T(F)]).process(P,K)},T},w.stringify=_,w.parse=o,w.fromJSON=f,w.list=s,w.comment=v=>new n(v),w.atRule=v=>new e(v),w.decl=v=>new u(v),w.rule=v=>new g(v),w.root=v=>new m(v),w.document=v=>new a(v),w.CssSyntaxError=t,w.Declaration=u,w.Container=r,w.Processor=l,w.Document=a,w.Comment=n,w.Warning=E,w.AtRule=e,w.Result=p,w.Input=b,w.Rule=g,w.Root=m,w.Node=c,d.registerPostcss(w),dn=w,w.default=w,dn}var so=io();const J=Ui(so);J.stringify;J.fromJSON;J.plugin;J.parse;J.list;J.document;J.comment;J.atRule;J.rule;J.decl;J.root;J.CssSyntaxError;J.Declaration;J.Container;J.Processor;J.Document;J.Comment;J.Warning;J.AtRule;J.Result;J.Input;J.Rule;J.Root;J.Node;var hn,Mi;function ro(){if(Mi)return hn;Mi=1;const i=(r={})=>{const t=r.prefix,u=/\s+$/.test(t)?t:`${t} `,a=r.ignoreFiles?[].concat(r.ignoreFiles):[],f=r.includeFiles?[].concat(r.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(b){const d=b.root,s=d.source.input.file;if(!(a.length&&s&&e(s,a))&&!(f.length&&s&&!e(s,f)))return{Rule(c,{result:o}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];c.parent&&l.includes(c.parent.name)||(c.selectors=c.selectors.map(p=>r.exclude&&n(p,r.exclude)?p:r.transform?r.transform(t,p,u+p,d.source.input.file,c):[":root","body","html"].some(m=>p.startsWith(m))?r.skipGlobalSelectors?p:p.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,t):u+p))}}}}};function e(r,t){return t.some(u=>u instanceof RegExp?u.test(r):r.includes(u))}function n(r,t){return t.some(u=>u instanceof RegExp?u.test(r):r===u)}return i.postcss=!0,hn=i,hn}var oo=ro();const ao=Ui(oo),lo="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}",co="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 uo(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var pn,Ni;function ho(){if(Ni)return pn;Ni=1;function i(h){return h instanceof Map?h.clear=h.delete=h.set=function(){throw new Error("map is read-only")}:h instanceof Set&&(h.add=h.clear=h.delete=function(){throw new Error("set is read-only")}),Object.freeze(h),Object.getOwnPropertyNames(h).forEach(x=>{const $=h[x],z=typeof $;(z==="object"||z==="function")&&!Object.isFrozen($)&&i($)}),h}class e{constructor(x){x.data===void 0&&(x.data={}),this.data=x.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(h){return h.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(h,...x){const $=Object.create(null);for(const z in h)$[z]=h[z];return x.forEach(function(z){for(const Y in z)$[Y]=z[Y]}),$}const t="</span>",u=h=>!!h.scope,a=(h,{prefix:x})=>{if(h.startsWith("language:"))return h.replace("language:","language-");if(h.includes(".")){const $=h.split(".");return[`${x}${$.shift()}`,...$.map((z,Y)=>`${z}${"_".repeat(Y+1)}`)].join(" ")}return`${x}${h}`};class f{constructor(x,$){this.buffer="",this.classPrefix=$.classPrefix,x.walk(this)}addText(x){this.buffer+=n(x)}openNode(x){if(!u(x))return;const $=a(x.scope,{prefix:this.classPrefix});this.span($)}closeNode(x){u(x)&&(this.buffer+=t)}value(){return this.buffer}span(x){this.buffer+=`<span class="${x}">`}}const b=(h={})=>{const x={children:[]};return Object.assign(x,h),x};class d{constructor(){this.rootNode=b(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(x){this.top.children.push(x)}openNode(x){const $=b({scope:x});this.add($),this.stack.push($)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(x){return this.constructor._walk(x,this.rootNode)}static _walk(x,$){return typeof $=="string"?x.addText($):$.children&&(x.openNode($),$.children.forEach(z=>this._walk(x,z)),x.closeNode($)),x}static _collapse(x){typeof x!="string"&&x.children&&(x.children.every($=>typeof $=="string")?x.children=[x.children.join("")]:x.children.forEach($=>{d._collapse($)}))}}class s extends d{constructor(x){super(),this.options=x}addText(x){x!==""&&this.add(x)}startScope(x){this.openNode(x)}endScope(){this.closeNode()}__addSublanguage(x,$){const z=x.root;$&&(z.scope=`language:${$}`),this.add(z)}toHTML(){return new f(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function c(h){return h?typeof h=="string"?h:h.source:null}function o(h){return m("(?=",h,")")}function l(h){return m("(?:",h,")*")}function p(h){return m("(?:",h,")?")}function m(...h){return h.map(x=>c(x)).join("")}function g(h){const x=h[h.length-1];return typeof x=="object"&&x.constructor===Object?(h.splice(h.length-1,1),x):{}}function _(...h){return"("+(g(h).capture?"":"?:")+h.map(x=>c(x)).join("|")+")"}function E(h){return new RegExp(h.toString()+"|").exec("").length-1}function w(h,x){const $=h&&h.exec(x);return $&&$.index===0}const v=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(h,{joinWith:x}){let $=0;return h.map(z=>{$+=1;const Y=$;let ee=c(z),M="";for(;ee.length>0;){const C=v.exec(ee);if(!C){M+=ee;break}M+=ee.substring(0,C.index),ee=ee.substring(C.index+C[0].length),C[0][0]==="\\"&&C[1]?M+="\\"+String(Number(C[1])+Y):(M+=C[0],C[0]==="("&&$++)}return M}).map(z=>`(${z})`).join(x)}const S=/\b\B/,O="[a-zA-Z]\\w*",T="[a-zA-Z_]\\w*",U="\\b\\d+(\\.\\d+)?",P="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K="\\b(0b[01]+)",F="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ae=(h={})=>{const x=/^#![ ]*\//;return h.binary&&(h.begin=m(x,/.*\b/,h.binary,/\b.*/)),r({scope:"meta",begin:x,end:/$/,relevance:0,"on:begin":($,z)=>{$.index!==0&&z.ignoreMatch()}},h)},he={begin:"\\\\[\\s\\S]",relevance:0},R={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[he]},Le={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[he]},W={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},te=function(h,x,$={}){const z=r({scope:"comment",begin:h,end:x,contains:[]},$);z.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Y=_("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return z.contains.push({begin:m(/[ ]+/,"(",Y,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),z},le=te("//","$"),ce=te("/\\*","\\*/"),ve=te("#","$"),ke={scope:"number",begin:U,relevance:0},j={scope:"number",begin:P,relevance:0},Fe={scope:"number",begin:K,relevance:0},Te={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[he,{begin:/\[/,end:/\]/,relevance:0,contains:[he]}]},kt={scope:"title",begin:O,relevance:0},He={scope:"title",begin:T,relevance:0},$t={begin:"\\.\\s*"+T,relevance:0};var Ie=Object.freeze({__proto__:null,APOS_STRING_MODE:R,BACKSLASH_ESCAPE:he,BINARY_NUMBER_MODE:Fe,BINARY_NUMBER_RE:K,COMMENT:te,C_BLOCK_COMMENT_MODE:ce,C_LINE_COMMENT_MODE:le,C_NUMBER_MODE:j,C_NUMBER_RE:P,END_SAME_AS_BEGIN:function(h){return Object.assign(h,{"on:begin":(x,$)=>{$.data._beginMatch=x[1]},"on:end":(x,$)=>{$.data._beginMatch!==x[1]&&$.ignoreMatch()}})},HASH_COMMENT_MODE:ve,IDENT_RE:O,MATCH_NOTHING_RE:S,METHOD_GUARD:$t,NUMBER_MODE:ke,NUMBER_RE:U,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:Le,REGEXP_MODE:Te,RE_STARTERS_RE:F,SHEBANG:Ae,TITLE_MODE:kt,UNDERSCORE_IDENT_RE:T,UNDERSCORE_TITLE_MODE:He});function Ot(h,x){h.input[h.index-1]==="."&&x.ignoreMatch()}function we(h,x){h.className!==void 0&&(h.scope=h.className,delete h.className)}function We(h,x){x&&h.beginKeywords&&(h.begin="\\b("+h.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",h.__beforeBegin=Ot,h.keywords=h.keywords||h.beginKeywords,delete h.beginKeywords,h.relevance===void 0&&(h.relevance=0))}function it(h,x){Array.isArray(h.illegal)&&(h.illegal=_(...h.illegal))}function ts(h,x){if(h.match){if(h.begin||h.end)throw new Error("begin & end are not supported with match");h.begin=h.match,delete h.match}}function ns(h,x){h.relevance===void 0&&(h.relevance=1)}const is=(h,x)=>{if(!h.beforeMatch)return;if(h.starts)throw new Error("beforeMatch cannot be used with starts");const $=Object.assign({},h);Object.keys(h).forEach(z=>{delete h[z]}),h.keywords=$.keywords,h.begin=m($.beforeMatch,o($.begin)),h.starts={relevance:0,contains:[Object.assign($,{endsParent:!0})]},h.relevance=0,delete $.beforeMatch},ss=["of","and","for","in","not","or","if","then","parent","list","value"],rs="keyword";function Cn(h,x,$=rs){const z=Object.create(null);return typeof h=="string"?Y($,h.split(" ")):Array.isArray(h)?Y($,h):Object.keys(h).forEach(function(ee){Object.assign(z,Cn(h[ee],x,ee))}),z;function Y(ee,M){x&&(M=M.map(C=>C.toLowerCase())),M.forEach(function(C){const I=C.split("|");z[I[0]]=[ee,os(I[0],I[1])]})}}function os(h,x){return x?Number(x):as(h)?0:1}function as(h){return ss.includes(h.toLowerCase())}const Rn={},$e=h=>{console.error(h)},Mn=(h,...x)=>{console.log(`WARN: ${h}`,...x)},je=(h,x)=>{Rn[`${h}/${x}`]||(console.log(`Deprecated as of ${h}. ${x}`),Rn[`${h}/${x}`]=!0)},st=new Error;function Nn(h,x,{key:$}){let z=0;const Y=h[$],ee={},M={};for(let C=1;C<=x.length;C++)M[C+z]=Y[C],ee[C+z]=!0,z+=E(x[C-1]);h[$]=M,h[$]._emit=ee,h[$]._multi=!0}function ls(h){if(Array.isArray(h.begin)){if(h.skip||h.excludeBegin||h.returnBegin)throw $e("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),st;if(typeof h.beginScope!="object"||h.beginScope===null)throw $e("beginScope must be object"),st;Nn(h,h.begin,{key:"beginScope"}),h.begin=y(h.begin,{joinWith:""})}}function cs(h){if(Array.isArray(h.end)){if(h.skip||h.excludeEnd||h.returnEnd)throw $e("skip, excludeEnd, returnEnd not compatible with endScope: {}"),st;if(typeof h.endScope!="object"||h.endScope===null)throw $e("endScope must be object"),st;Nn(h,h.end,{key:"endScope"}),h.end=y(h.end,{joinWith:""})}}function us(h){h.scope&&typeof h.scope=="object"&&h.scope!==null&&(h.beginScope=h.scope,delete h.scope)}function ds(h){us(h),typeof h.beginScope=="string"&&(h.beginScope={_wrap:h.beginScope}),typeof h.endScope=="string"&&(h.endScope={_wrap:h.endScope}),ls(h),cs(h)}function hs(h){function x(M,C){return new RegExp(c(M),"m"+(h.case_insensitive?"i":"")+(h.unicodeRegex?"u":"")+(C?"g":""))}class ${constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(C,I){I.position=this.position++,this.matchIndexes[this.matchAt]=I,this.regexes.push([I,C]),this.matchAt+=E(C)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const C=this.regexes.map(I=>I[1]);this.matcherRe=x(y(C,{joinWith:"|"}),!0),this.lastIndex=0}exec(C){this.matcherRe.lastIndex=this.lastIndex;const I=this.matcherRe.exec(C);if(!I)return null;const re=I.findIndex((Ve,Rt)=>Rt>0&&Ve!==void 0),ne=this.matchIndexes[re];return I.splice(0,re),Object.assign(I,ne)}}class z{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(C){if(this.multiRegexes[C])return this.multiRegexes[C];const I=new $;return this.rules.slice(C).forEach(([re,ne])=>I.addRule(re,ne)),I.compile(),this.multiRegexes[C]=I,I}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(C,I){this.rules.push([C,I]),I.type==="begin"&&this.count++}exec(C){const I=this.getMatcher(this.regexIndex);I.lastIndex=this.lastIndex;let re=I.exec(C);if(this.resumingScanAtSamePosition()&&!(re&&re.index===this.lastIndex)){const ne=this.getMatcher(0);ne.lastIndex=this.lastIndex+1,re=ne.exec(C)}return re&&(this.regexIndex+=re.position+1,this.regexIndex===this.count&&this.considerAll()),re}}function Y(M){const C=new z;return M.contains.forEach(I=>C.addRule(I.begin,{rule:I,type:"begin"})),M.terminatorEnd&&C.addRule(M.terminatorEnd,{type:"end"}),M.illegal&&C.addRule(M.illegal,{type:"illegal"}),C}function ee(M,C){const I=M;if(M.isCompiled)return I;[we,ts,ds,is].forEach(ne=>ne(M,C)),h.compilerExtensions.forEach(ne=>ne(M,C)),M.__beforeBegin=null,[We,it,ns].forEach(ne=>ne(M,C)),M.isCompiled=!0;let re=null;return typeof M.keywords=="object"&&M.keywords.$pattern&&(M.keywords=Object.assign({},M.keywords),re=M.keywords.$pattern,delete M.keywords.$pattern),re=re||/\w+/,M.keywords&&(M.keywords=Cn(M.keywords,h.case_insensitive)),I.keywordPatternRe=x(re,!0),C&&(M.begin||(M.begin=/\B|\b/),I.beginRe=x(I.begin),!M.end&&!M.endsWithParent&&(M.end=/\B|\b/),M.end&&(I.endRe=x(I.end)),I.terminatorEnd=c(I.end)||"",M.endsWithParent&&C.terminatorEnd&&(I.terminatorEnd+=(M.end?"|":"")+C.terminatorEnd)),M.illegal&&(I.illegalRe=x(M.illegal)),M.contains||(M.contains=[]),M.contains=[].concat(...M.contains.map(function(ne){return ps(ne==="self"?M:ne)})),M.contains.forEach(function(ne){ee(ne,I)}),M.starts&&ee(M.starts,C),I.matcher=Y(I),I}if(h.compilerExtensions||(h.compilerExtensions=[]),h.contains&&h.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return h.classNameAliases=r(h.classNameAliases||{}),ee(h)}function Pn(h){return h?h.endsWithParent||Pn(h.starts):!1}function ps(h){return h.variants&&!h.cachedVariants&&(h.cachedVariants=h.variants.map(function(x){return r(h,{variants:null},x)})),h.cachedVariants?h.cachedVariants:Pn(h)?r(h,{starts:h.starts?r(h.starts):null}):Object.isFrozen(h)?r(h):h}var fs="11.11.1";class ms extends Error{constructor(x,$){super(x),this.name="HTMLInjectionError",this.html=$}}const Ct=n,Ln=r,Tn=Symbol("nomatch"),gs=7,In=function(h){const x=Object.create(null),$=Object.create(null),z=[];let Y=!0;const ee="Could not find the language '{}', did you forget to load/include a language module?",M={disableAutodetect:!0,name:"Plain text",contains:[]};let C={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:s};function I(A){return C.noHighlightRe.test(A)}function re(A){let L=A.className+" ";L+=A.parentNode?A.parentNode.className:"";const q=C.languageDetectRe.exec(L);if(q){const V=xe(q[1]);return V||(Mn(ee.replace("{}",q[1])),Mn("Falling back to no-highlight mode for this block.",A)),V?q[1]:"no-highlight"}return L.split(/\s+/).find(V=>I(V)||xe(V))}function ne(A,L,q){let V="",se="";typeof L=="object"?(V=A,q=L.ignoreIllegals,se=L.language):(je("10.7.0","highlight(lang, code, ...args) has been deprecated."),je("10.7.0",`Please use highlight(code, options) instead.
475
- https://github.com/highlightjs/highlight.js/issues/2277`),se=A,V=L),q===void 0&&(q=!0);const me={code:V,language:se};ot("before:highlight",me);const _e=me.result?me.result:Ve(me.language,me.code,q);return _e.code=me.code,ot("after:highlight",_e),_e}function Ve(A,L,q,V){const se=Object.create(null);function me(k,N){return k.keywords[N]}function _e(){if(!D.keywords){oe.addText(G);return}let k=0;D.keywordPatternRe.lastIndex=0;let N=D.keywordPatternRe.exec(G),B="";for(;N;){B+=G.substring(k,N.index);const H=be.case_insensitive?N[0].toLowerCase():N[0],ae=me(D,H);if(ae){const[ye,Ps]=ae;if(oe.addText(B),B="",se[H]=(se[H]||0)+1,se[H]<=gs&&(ct+=Ps),ye.startsWith("_"))B+=N[0];else{const Ls=be.classNameAliases[ye]||ye;ge(N[0],Ls)}}else B+=N[0];k=D.keywordPatternRe.lastIndex,N=D.keywordPatternRe.exec(G)}B+=G.substring(k),oe.addText(B)}function at(){if(G==="")return;let k=null;if(typeof D.subLanguage=="string"){if(!x[D.subLanguage]){oe.addText(G);return}k=Ve(D.subLanguage,G,!0,Hn[D.subLanguage]),Hn[D.subLanguage]=k._top}else k=Mt(G,D.subLanguage.length?D.subLanguage:null);D.relevance>0&&(ct+=k.relevance),oe.__addSublanguage(k._emitter,k.language)}function ue(){D.subLanguage!=null?at():_e(),G=""}function ge(k,N){k!==""&&(oe.startScope(N),oe.addText(k),oe.endScope())}function Un(k,N){let B=1;const H=N.length-1;for(;B<=H;){if(!k._emit[B]){B++;continue}const ae=be.classNameAliases[k[B]]||k[B],ye=N[B];ae?ge(ye,ae):(G=ye,_e(),G=""),B++}}function Bn(k,N){return k.scope&&typeof k.scope=="string"&&oe.openNode(be.classNameAliases[k.scope]||k.scope),k.beginScope&&(k.beginScope._wrap?(ge(G,be.classNameAliases[k.beginScope._wrap]||k.beginScope._wrap),G=""):k.beginScope._multi&&(Un(k.beginScope,N),G="")),D=Object.create(k,{parent:{value:D}}),D}function qn(k,N,B){let H=w(k.endRe,B);if(H){if(k["on:end"]){const ae=new e(k);k["on:end"](N,ae),ae.isMatchIgnored&&(H=!1)}if(H){for(;k.endsParent&&k.parent;)k=k.parent;return k}}if(k.endsWithParent)return qn(k.parent,N,B)}function Os(k){return D.matcher.regexIndex===0?(G+=k[0],1):(Tt=!0,0)}function Cs(k){const N=k[0],B=k.rule,H=new e(B),ae=[B.__beforeBegin,B["on:begin"]];for(const ye of ae)if(ye&&(ye(k,H),H.isMatchIgnored))return Os(N);return B.skip?G+=N:(B.excludeBegin&&(G+=N),ue(),!B.returnBegin&&!B.excludeBegin&&(G=N)),Bn(B,k),B.returnBegin?0:N.length}function Rs(k){const N=k[0],B=L.substring(k.index),H=qn(D,k,B);if(!H)return Tn;const ae=D;D.endScope&&D.endScope._wrap?(ue(),ge(N,D.endScope._wrap)):D.endScope&&D.endScope._multi?(ue(),Un(D.endScope,k)):ae.skip?G+=N:(ae.returnEnd||ae.excludeEnd||(G+=N),ue(),ae.excludeEnd&&(G=N));do D.scope&&oe.closeNode(),!D.skip&&!D.subLanguage&&(ct+=D.relevance),D=D.parent;while(D!==H.parent);return H.starts&&Bn(H.starts,k),ae.returnEnd?0:N.length}function Ms(){const k=[];for(let N=D;N!==be;N=N.parent)N.scope&&k.unshift(N.scope);k.forEach(N=>oe.openNode(N))}let lt={};function Fn(k,N){const B=N&&N[0];if(G+=k,B==null)return ue(),0;if(lt.type==="begin"&&N.type==="end"&&lt.index===N.index&&B===""){if(G+=L.slice(N.index,N.index+1),!Y){const H=new Error(`0 width match regex (${A})`);throw H.languageName=A,H.badRule=lt.rule,H}return 1}if(lt=N,N.type==="begin")return Cs(N);if(N.type==="illegal"&&!q){const H=new Error('Illegal lexeme "'+B+'" for mode "'+(D.scope||"<unnamed>")+'"');throw H.mode=D,H}else if(N.type==="end"){const H=Rs(N);if(H!==Tn)return H}if(N.type==="illegal"&&B==="")return G+=`
476
- `,1;if(Lt>1e5&&Lt>N.index*3)throw new Error("potential infinite loop, way more iterations than matches");return G+=B,B.length}const be=xe(A);if(!be)throw $e(ee.replace("{}",A)),new Error('Unknown language: "'+A+'"');const Ns=hs(be);let Pt="",D=V||Ns;const Hn={},oe=new C.__emitter(C);Ms();let G="",ct=0,Oe=0,Lt=0,Tt=!1;try{if(be.__emitTokens)be.__emitTokens(L,oe);else{for(D.matcher.considerAll();;){Lt++,Tt?Tt=!1:D.matcher.considerAll(),D.matcher.lastIndex=Oe;const k=D.matcher.exec(L);if(!k)break;const N=L.substring(Oe,k.index),B=Fn(N,k);Oe=k.index+B}Fn(L.substring(Oe))}return oe.finalize(),Pt=oe.toHTML(),{language:A,value:Pt,relevance:ct,illegal:!1,_emitter:oe,_top:D}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:A,value:Ct(L),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:Oe,context:L.slice(Oe-100,Oe+100),mode:k.mode,resultSoFar:Pt},_emitter:oe};if(Y)return{language:A,value:Ct(L),illegal:!1,relevance:0,errorRaised:k,_emitter:oe,_top:D};throw k}}function Rt(A){const L={value:Ct(A),illegal:!1,relevance:0,_top:M,_emitter:new C.__emitter(C)};return L._emitter.addText(A),L}function Mt(A,L){L=L||C.languages||Object.keys(x);const q=Rt(A),V=L.filter(xe).filter(zn).map(ue=>Ve(ue,A,!1));V.unshift(q);const se=V.sort((ue,ge)=>{if(ue.relevance!==ge.relevance)return ge.relevance-ue.relevance;if(ue.language&&ge.language){if(xe(ue.language).supersetOf===ge.language)return 1;if(xe(ge.language).supersetOf===ue.language)return-1}return 0}),[me,_e]=se,at=me;return at.secondBest=_e,at}function bs(A,L,q){const V=L&&$[L]||q;A.classList.add("hljs"),A.classList.add(`language-${V}`)}function Nt(A){let L=null;const q=re(A);if(I(q))return;if(ot("before:highlightElement",{el:A,language:q}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(C.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)),C.throwUnescapedHTML))throw new ms("One of your code blocks includes unescaped HTML.",A.innerHTML);L=A;const V=L.textContent,se=q?ne(V,{language:q,ignoreIllegals:!0}):Mt(V);A.innerHTML=se.value,A.dataset.highlighted="yes",bs(A,q,se.language),A.result={language:se.language,re:se.relevance,relevance:se.relevance},se.secondBest&&(A.secondBest={language:se.secondBest.language,relevance:se.secondBest.relevance}),ot("after:highlightElement",{el:A,result:se,text:V})}function ys(A){C=Ln(C,A)}const vs=()=>{rt(),je("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function ws(){rt(),je("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let jn=!1;function rt(){function A(){rt()}if(document.readyState==="loading"){jn||window.addEventListener("DOMContentLoaded",A,!1),jn=!0;return}document.querySelectorAll(C.cssSelector).forEach(Nt)}function xs(A,L){let q=null;try{q=L(h)}catch(V){if($e("Language definition for '{}' could not be registered.".replace("{}",A)),Y)$e(V);else throw V;q=M}q.name||(q.name=A),x[A]=q,q.rawDefinition=L.bind(null,h),q.aliases&&Dn(q.aliases,{languageName:A})}function _s(A){delete x[A];for(const L of Object.keys($))$[L]===A&&delete $[L]}function Es(){return Object.keys(x)}function xe(A){return A=(A||"").toLowerCase(),x[A]||x[$[A]]}function Dn(A,{languageName:L}){typeof A=="string"&&(A=[A]),A.forEach(q=>{$[q.toLowerCase()]=L})}function zn(A){const L=xe(A);return L&&!L.disableAutodetect}function Ss(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=L=>{A["before:highlightBlock"](Object.assign({block:L.el},L))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=L=>{A["after:highlightBlock"](Object.assign({block:L.el},L))})}function As(A){Ss(A),z.push(A)}function ks(A){const L=z.indexOf(A);L!==-1&&z.splice(L,1)}function ot(A,L){const q=A;z.forEach(function(V){V[q]&&V[q](L)})}function $s(A){return je("10.7.0","highlightBlock will be removed entirely in v12.0"),je("10.7.0","Please use highlightElement now."),Nt(A)}Object.assign(h,{highlight:ne,highlightAuto:Mt,highlightAll:rt,highlightElement:Nt,highlightBlock:$s,configure:ys,initHighlighting:vs,initHighlightingOnLoad:ws,registerLanguage:xs,unregisterLanguage:_s,listLanguages:Es,getLanguage:xe,registerAliases:Dn,autoDetection:zn,inherit:Ln,addPlugin:As,removePlugin:ks}),h.debugMode=function(){Y=!1},h.safeMode=function(){Y=!0},h.versionString=fs,h.regex={concat:m,lookahead:o,either:_,optional:p,anyNumberOfTimes:l};for(const A in Ie)typeof Ie[A]=="object"&&i(Ie[A]);return Object.assign(h,Ie),h},De=In({});return De.newInstance=()=>In({}),pn=De,De.HighlightJS=De,De.default=De,pn}var po=ho();const At=uo(po),bt="[A-Za-z$_][0-9A-Za-z$_]*",Gi=["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"],Zi=["true","false","null","undefined","NaN","Infinity"],Ji=["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"],Ki=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Xi=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Qi=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Yi=[].concat(Xi,Ji,Ki);function fo(i){const e=i.regex,n=(W,{after:te})=>{const le="</"+W[0].slice(1);return W.input.indexOf(le,te)!==-1},r=bt,t={begin:"<>",end:"</>"},u=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,te)=>{const le=W[0].length+W.index,ce=W.input[le];if(ce==="<"||ce===","){te.ignoreMatch();return}ce===">"&&(n(W,{after:le})||te.ignoreMatch());let ve;const ke=W.input.substring(le);if(ve=ke.match(/^\s*=/)){te.ignoreMatch();return}if((ve=ke.match(/^\s+extends\s+/))&&ve.index===0){te.ignoreMatch();return}}},f={$pattern:bt,keyword:Gi,literal:Zi,built_in:Yi,"variable.language":Qi},b="[0-9](_?[0-9])*",d=`\\.(${b})`,s="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${s})((${d})|\\.)?|(${d}))[eE][+-]?(${b})\\b`},{begin:`\\b(${s})\\b((${d})\\b|\\.)?|(${d})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:f,contains:[]},l={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,o],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,o],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,o],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE,o]},_={className:"comment",variants:[i.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE]},E=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,l,p,m,g,{match:/\$\d+/},c];o.contains=E.concat({begin:/\{/,end:/\}/,keywords:f,contains:["self"].concat(E)});const w=[].concat(_,o.contains),v=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:f,contains:["self"].concat(w)}]),y={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:v},S={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},O={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:{_:[...Ji,...Ki]}},T={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},P={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(W){return e.concat("(?!",W.join("|"),")")}const F={match:e.concat(/\b/,K([...Xi,"super","import"].map(W=>`${W}\\s*\\(`)),r,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Ae={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},he={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},R="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+i.UNDERSCORE_IDENT_RE+")\\s*=>",Le={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(R)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:f,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[i.SHEBANG({label:"shebang",binary:"node",relevance:5}),T,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,l,p,m,g,_,{match:/\$\d+/},c,O,{scope:"attr",match:r+e.lookahead(":"),relevance:0},Le,{begin:"("+i.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,i.REGEXP_MODE,{className:"function",begin:R,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:i.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:t.begin,end:t.end},{match:u},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+i.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,i.inherit(i.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ae,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},F,P,S,he,{match:/\$[(.]/}]}}function mo(i){const e=i.regex,n=fo(i),r=bt,t=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],u={begin:[/namespace/,/\s+/,i.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:t},contains:[n.exports.CLASS_REFERENCE]},f={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},b=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],d={$pattern:bt,keyword:Gi.concat(b),literal:Zi,built_in:Yi.concat(t),"variable.language":Qi},s={className:"meta",begin:"@"+r},c=(m,g,_)=>{const E=m.contains.findIndex(w=>w.label===g);if(E===-1)throw new Error("can not find mode to replace");m.contains.splice(E,1,_)};Object.assign(n.keywords,d),n.exports.PARAMS_CONTAINS.push(s);const o=n.contains.find(m=>m.scope==="attr"),l=Object.assign({},o,{match:e.concat(r,e.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,o,l]),n.contains=n.contains.concat([s,u,a,l]),c(n,"shebang",i.SHEBANG()),c(n,"use_strict",f);const p=n.contains.find(m=>m.label==="func.def");return p.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function go(i){const e=i.regex,n=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,t={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},u={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=i.inherit(u,{begin:/\(/,end:/\)/}),f=i.inherit(i.APOS_STRING_MODE,{className:"string"}),b=i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),d={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[t]},{begin:/'/,end:/'/,contains:[t]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[u,b,f,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[u,a,b,f]}]}]},i.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},t,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[b]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[d],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(n,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:d}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const bo=i=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:i.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:[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:i.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_-]*/}}),yo=["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"],vo=["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"],wo=[...yo,...vo],xo=["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(),_o=["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(),Eo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),So=["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 Ao(i){const e=i.regex,n=bo(i),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},t="and or not only",u=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",f=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+_o.join("|")+")"},{begin:":(:)?("+Eo.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+So.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...f,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...f,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:u},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:t,attribute:xo.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...f,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+wo.join("|")+")\\b"}]}}const es=document.createElement("style");es.innerText=[lo,co].join(`
477
- `);document.head.appendChild(es);At.registerLanguage("typescript",mo);At.registerLanguage("html",go);At.registerLanguage("css",Ao);function ko(...i){const e=document.createElement("div"),n=document.createElement("div");n.classList.add("tab-control");const r=document.createElement("div");return i.forEach(t=>{e.appendChild(t),t.addEventListener("click",()=>{i.forEach(u=>u.removeAttribute("selected")),t.setAttribute("selected",""),r.innerHTML="",r.appendChild(t.content),r.className=t.className,r.classList.add("tab-content")})}),n.appendChild(e),n.appendChild(r),r.classList.add("tab-content"),i[0].setAttribute("selected",""),r.appendChild(i[0].content),n}function Ze(i,e){const n=document.createElement("div");return n.role="tab",n.tabIndex=0,n.innerText=i,n.content=e,e.tagName=="PRE"&&n.classList.add("code"),n}function Ke(i,e){const n=document.createElement(i);return typeof e=="string"?n.innerHTML=e:e.forEach(r=>{n.appendChild(r)}),n}async function $o(i,e,n){const r=e.mainContent,t=Ke("div",r);t.id=`example-preview-${n}`;const u=typeof e.css=="string"?void 0:e.css?.label,a=typeof e.css=="string"?e.css:e.css?.content,f=ko(Ze("Preview",t),Ze("HTML",ht("html",r)),...a?[Ze(u??"CSS",ht("css",a))]:[],...e.initializer&&e.initializer.content?[Ze(e.initializer.label??"TS",ht("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(d=>Ze(d.label,ht(d.language,d.content))));e.description&&i.appendChild(Ke("div",e.description));const b=Ke("div",[f]);b.classList.add("example"),i.appendChild(b),a&&Oo(`#${t.id}`,a),e.initializer?.initialize&&await e.initializer.initialize(t)}function ht(i,e){let n=e.split(/\r?\n/).map(r=>{const t=r.indexOf("///");if(t>-1){const u=r.substring(t+3).trimStart();return u?r.replace(/^(\s*)([^\s].*)$/,`$1${u}`):void 0}return r}).filter(r=>typeof r<"u").join(`
478
- `).trim();return i&&i!="raw"&&(n=At.highlight(n,{language:i}).value),Ke("pre",[Ke("code",n)])}function Oo(i,e){const n=document.createElement("style");n.innerHTML=J().use(ao({prefix:i})).process(e).css,document.head.appendChild(n)}async function Co(i,e=document.body){const n=Mo(e);let r=0;Object.keys(i).sort().forEach(async t=>{const u=document.createElement("div");u.className="example-container",n.appendChild(u);const a=i[t].default;$o(u,a,r++)})}function Ro(i){const e=document.createElement("div");e.id="examples-container";const n=i.querySelector("#examples");return n?n.after(e):i.appendChild(e),e}function Mo(i){return i.children?Ro(i):i}const No=`<h1 id="@cas-smartdesign/lit-input">@cas-smartdesign/lit-input</h1>
498
+ https://www.w3ctech.com/topic/2226`));let K=S(...P);return K.postcssPlugin=y,K.postcssVersion=new l().version,K}let U;return Object.defineProperty(I,"postcss",{get(){return U||(U=I()),U}}),I.process=function(P,K,F){return w([I(F)]).process(P,K)},I},w.stringify=_,w.parse=o,w.fromJSON=f,w.list=s,w.comment=v=>new n(v),w.atRule=v=>new e(v),w.decl=v=>new u(v),w.rule=v=>new g(v),w.root=v=>new m(v),w.document=v=>new a(v),w.CssSyntaxError=t,w.Declaration=u,w.Container=r,w.Processor=l,w.Document=a,w.Comment=n,w.Warning=E,w.AtRule=e,w.Result=p,w.Input=b,w.Rule=g,w.Root=m,w.Node=c,d.registerPostcss(w),dn=w,w.default=w,dn}var ro=so();const J=Ui(ro);J.stringify;J.fromJSON;J.plugin;J.parse;J.list;J.document;J.comment;J.atRule;J.rule;J.decl;J.root;J.CssSyntaxError;J.Declaration;J.Container;J.Processor;J.Document;J.Comment;J.Warning;J.AtRule;J.Result;J.Input;J.Rule;J.Root;J.Node;var hn,Ni;function oo(){if(Ni)return hn;Ni=1;const i=(r={})=>{const t=r.prefix,u=/\s+$/.test(t)?t:`${t} `,a=r.ignoreFiles?[].concat(r.ignoreFiles):[],f=r.includeFiles?[].concat(r.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(b){const d=b.root,s=d.source.input.file;if(!(a.length&&s&&e(s,a))&&!(f.length&&s&&!e(s,f)))return{Rule(c,{result:o}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];c.parent&&l.includes(c.parent.name)||(c.selectors=c.selectors.map(p=>r.exclude&&n(p,r.exclude)?p:r.transform?r.transform(t,p,u+p,d.source.input.file,c):[":root","body","html"].some(m=>p.startsWith(m))?r.skipGlobalSelectors?p:p.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,t):u+p))}}}}};function e(r,t){return t.some(u=>u instanceof RegExp?u.test(r):r.includes(u))}function n(r,t){return t.some(u=>u instanceof RegExp?u.test(r):r===u)}return i.postcss=!0,hn=i,hn}var ao=oo();const lo=Ui(ao),co="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}",uo="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 ho(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var pn,Pi;function po(){if(Pi)return pn;Pi=1;function i(h){return h instanceof Map?h.clear=h.delete=h.set=function(){throw new Error("map is read-only")}:h instanceof Set&&(h.add=h.clear=h.delete=function(){throw new Error("set is read-only")}),Object.freeze(h),Object.getOwnPropertyNames(h).forEach(x=>{const $=h[x],z=typeof $;(z==="object"||z==="function")&&!Object.isFrozen($)&&i($)}),h}class e{constructor(x){x.data===void 0&&(x.data={}),this.data=x.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(h){return h.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(h,...x){const $=Object.create(null);for(const z in h)$[z]=h[z];return x.forEach(function(z){for(const Y in z)$[Y]=z[Y]}),$}const t="</span>",u=h=>!!h.scope,a=(h,{prefix:x})=>{if(h.startsWith("language:"))return h.replace("language:","language-");if(h.includes(".")){const $=h.split(".");return[`${x}${$.shift()}`,...$.map((z,Y)=>`${z}${"_".repeat(Y+1)}`)].join(" ")}return`${x}${h}`};class f{constructor(x,$){this.buffer="",this.classPrefix=$.classPrefix,x.walk(this)}addText(x){this.buffer+=n(x)}openNode(x){if(!u(x))return;const $=a(x.scope,{prefix:this.classPrefix});this.span($)}closeNode(x){u(x)&&(this.buffer+=t)}value(){return this.buffer}span(x){this.buffer+=`<span class="${x}">`}}const b=(h={})=>{const x={children:[]};return Object.assign(x,h),x};class d{constructor(){this.rootNode=b(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(x){this.top.children.push(x)}openNode(x){const $=b({scope:x});this.add($),this.stack.push($)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(x){return this.constructor._walk(x,this.rootNode)}static _walk(x,$){return typeof $=="string"?x.addText($):$.children&&(x.openNode($),$.children.forEach(z=>this._walk(x,z)),x.closeNode($)),x}static _collapse(x){typeof x!="string"&&x.children&&(x.children.every($=>typeof $=="string")?x.children=[x.children.join("")]:x.children.forEach($=>{d._collapse($)}))}}class s extends d{constructor(x){super(),this.options=x}addText(x){x!==""&&this.add(x)}startScope(x){this.openNode(x)}endScope(){this.closeNode()}__addSublanguage(x,$){const z=x.root;$&&(z.scope=`language:${$}`),this.add(z)}toHTML(){return new f(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function c(h){return h?typeof h=="string"?h:h.source:null}function o(h){return m("(?=",h,")")}function l(h){return m("(?:",h,")*")}function p(h){return m("(?:",h,")?")}function m(...h){return h.map(x=>c(x)).join("")}function g(h){const x=h[h.length-1];return typeof x=="object"&&x.constructor===Object?(h.splice(h.length-1,1),x):{}}function _(...h){return"("+(g(h).capture?"":"?:")+h.map(x=>c(x)).join("|")+")"}function E(h){return new RegExp(h.toString()+"|").exec("").length-1}function w(h,x){const $=h&&h.exec(x);return $&&$.index===0}const v=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(h,{joinWith:x}){let $=0;return h.map(z=>{$+=1;const Y=$;let ee=c(z),M="";for(;ee.length>0;){const C=v.exec(ee);if(!C){M+=ee;break}M+=ee.substring(0,C.index),ee=ee.substring(C.index+C[0].length),C[0][0]==="\\"&&C[1]?M+="\\"+String(Number(C[1])+Y):(M+=C[0],C[0]==="("&&$++)}return M}).map(z=>`(${z})`).join(x)}const S=/\b\B/,O="[a-zA-Z]\\w*",I="[a-zA-Z_]\\w*",U="\\b\\d+(\\.\\d+)?",P="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K="\\b(0b[01]+)",F="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ae=(h={})=>{const x=/^#![ ]*\//;return h.binary&&(h.begin=m(x,/.*\b/,h.binary,/\b.*/)),r({scope:"meta",begin:x,end:/$/,relevance:0,"on:begin":($,z)=>{$.index!==0&&z.ignoreMatch()}},h)},he={begin:"\\\\[\\s\\S]",relevance:0},R={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[he]},Le={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[he]},W={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},te=function(h,x,$={}){const z=r({scope:"comment",begin:h,end:x,contains:[]},$);z.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Y=_("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return z.contains.push({begin:m(/[ ]+/,"(",Y,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),z},le=te("//","$"),ce=te("/\\*","\\*/"),ve=te("#","$"),ke={scope:"number",begin:U,relevance:0},j={scope:"number",begin:P,relevance:0},Fe={scope:"number",begin:K,relevance:0},Ie={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[he,{begin:/\[/,end:/\]/,relevance:0,contains:[he]}]},kt={scope:"title",begin:O,relevance:0},He={scope:"title",begin:I,relevance:0},$t={begin:"\\.\\s*"+I,relevance:0};var Te=Object.freeze({__proto__:null,APOS_STRING_MODE:R,BACKSLASH_ESCAPE:he,BINARY_NUMBER_MODE:Fe,BINARY_NUMBER_RE:K,COMMENT:te,C_BLOCK_COMMENT_MODE:ce,C_LINE_COMMENT_MODE:le,C_NUMBER_MODE:j,C_NUMBER_RE:P,END_SAME_AS_BEGIN:function(h){return Object.assign(h,{"on:begin":(x,$)=>{$.data._beginMatch=x[1]},"on:end":(x,$)=>{$.data._beginMatch!==x[1]&&$.ignoreMatch()}})},HASH_COMMENT_MODE:ve,IDENT_RE:O,MATCH_NOTHING_RE:S,METHOD_GUARD:$t,NUMBER_MODE:ke,NUMBER_RE:U,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:Le,REGEXP_MODE:Ie,RE_STARTERS_RE:F,SHEBANG:Ae,TITLE_MODE:kt,UNDERSCORE_IDENT_RE:I,UNDERSCORE_TITLE_MODE:He});function Ot(h,x){h.input[h.index-1]==="."&&x.ignoreMatch()}function we(h,x){h.className!==void 0&&(h.scope=h.className,delete h.className)}function We(h,x){x&&h.beginKeywords&&(h.begin="\\b("+h.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",h.__beforeBegin=Ot,h.keywords=h.keywords||h.beginKeywords,delete h.beginKeywords,h.relevance===void 0&&(h.relevance=0))}function it(h,x){Array.isArray(h.illegal)&&(h.illegal=_(...h.illegal))}function ts(h,x){if(h.match){if(h.begin||h.end)throw new Error("begin & end are not supported with match");h.begin=h.match,delete h.match}}function ns(h,x){h.relevance===void 0&&(h.relevance=1)}const is=(h,x)=>{if(!h.beforeMatch)return;if(h.starts)throw new Error("beforeMatch cannot be used with starts");const $=Object.assign({},h);Object.keys(h).forEach(z=>{delete h[z]}),h.keywords=$.keywords,h.begin=m($.beforeMatch,o($.begin)),h.starts={relevance:0,contains:[Object.assign($,{endsParent:!0})]},h.relevance=0,delete $.beforeMatch},ss=["of","and","for","in","not","or","if","then","parent","list","value"],rs="keyword";function Rn(h,x,$=rs){const z=Object.create(null);return typeof h=="string"?Y($,h.split(" ")):Array.isArray(h)?Y($,h):Object.keys(h).forEach(function(ee){Object.assign(z,Rn(h[ee],x,ee))}),z;function Y(ee,M){x&&(M=M.map(C=>C.toLowerCase())),M.forEach(function(C){const T=C.split("|");z[T[0]]=[ee,os(T[0],T[1])]})}}function os(h,x){return x?Number(x):as(h)?0:1}function as(h){return ss.includes(h.toLowerCase())}const Mn={},$e=h=>{console.error(h)},Nn=(h,...x)=>{console.log(`WARN: ${h}`,...x)},je=(h,x)=>{Mn[`${h}/${x}`]||(console.log(`Deprecated as of ${h}. ${x}`),Mn[`${h}/${x}`]=!0)},st=new Error;function Pn(h,x,{key:$}){let z=0;const Y=h[$],ee={},M={};for(let C=1;C<=x.length;C++)M[C+z]=Y[C],ee[C+z]=!0,z+=E(x[C-1]);h[$]=M,h[$]._emit=ee,h[$]._multi=!0}function ls(h){if(Array.isArray(h.begin)){if(h.skip||h.excludeBegin||h.returnBegin)throw $e("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),st;if(typeof h.beginScope!="object"||h.beginScope===null)throw $e("beginScope must be object"),st;Pn(h,h.begin,{key:"beginScope"}),h.begin=y(h.begin,{joinWith:""})}}function cs(h){if(Array.isArray(h.end)){if(h.skip||h.excludeEnd||h.returnEnd)throw $e("skip, excludeEnd, returnEnd not compatible with endScope: {}"),st;if(typeof h.endScope!="object"||h.endScope===null)throw $e("endScope must be object"),st;Pn(h,h.end,{key:"endScope"}),h.end=y(h.end,{joinWith:""})}}function us(h){h.scope&&typeof h.scope=="object"&&h.scope!==null&&(h.beginScope=h.scope,delete h.scope)}function ds(h){us(h),typeof h.beginScope=="string"&&(h.beginScope={_wrap:h.beginScope}),typeof h.endScope=="string"&&(h.endScope={_wrap:h.endScope}),ls(h),cs(h)}function hs(h){function x(M,C){return new RegExp(c(M),"m"+(h.case_insensitive?"i":"")+(h.unicodeRegex?"u":"")+(C?"g":""))}class ${constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(C,T){T.position=this.position++,this.matchIndexes[this.matchAt]=T,this.regexes.push([T,C]),this.matchAt+=E(C)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const C=this.regexes.map(T=>T[1]);this.matcherRe=x(y(C,{joinWith:"|"}),!0),this.lastIndex=0}exec(C){this.matcherRe.lastIndex=this.lastIndex;const T=this.matcherRe.exec(C);if(!T)return null;const re=T.findIndex((Ve,Rt)=>Rt>0&&Ve!==void 0),ne=this.matchIndexes[re];return T.splice(0,re),Object.assign(T,ne)}}class z{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(C){if(this.multiRegexes[C])return this.multiRegexes[C];const T=new $;return this.rules.slice(C).forEach(([re,ne])=>T.addRule(re,ne)),T.compile(),this.multiRegexes[C]=T,T}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(C,T){this.rules.push([C,T]),T.type==="begin"&&this.count++}exec(C){const T=this.getMatcher(this.regexIndex);T.lastIndex=this.lastIndex;let re=T.exec(C);if(this.resumingScanAtSamePosition()&&!(re&&re.index===this.lastIndex)){const ne=this.getMatcher(0);ne.lastIndex=this.lastIndex+1,re=ne.exec(C)}return re&&(this.regexIndex+=re.position+1,this.regexIndex===this.count&&this.considerAll()),re}}function Y(M){const C=new z;return M.contains.forEach(T=>C.addRule(T.begin,{rule:T,type:"begin"})),M.terminatorEnd&&C.addRule(M.terminatorEnd,{type:"end"}),M.illegal&&C.addRule(M.illegal,{type:"illegal"}),C}function ee(M,C){const T=M;if(M.isCompiled)return T;[we,ts,ds,is].forEach(ne=>ne(M,C)),h.compilerExtensions.forEach(ne=>ne(M,C)),M.__beforeBegin=null,[We,it,ns].forEach(ne=>ne(M,C)),M.isCompiled=!0;let re=null;return typeof M.keywords=="object"&&M.keywords.$pattern&&(M.keywords=Object.assign({},M.keywords),re=M.keywords.$pattern,delete M.keywords.$pattern),re=re||/\w+/,M.keywords&&(M.keywords=Rn(M.keywords,h.case_insensitive)),T.keywordPatternRe=x(re,!0),C&&(M.begin||(M.begin=/\B|\b/),T.beginRe=x(T.begin),!M.end&&!M.endsWithParent&&(M.end=/\B|\b/),M.end&&(T.endRe=x(T.end)),T.terminatorEnd=c(T.end)||"",M.endsWithParent&&C.terminatorEnd&&(T.terminatorEnd+=(M.end?"|":"")+C.terminatorEnd)),M.illegal&&(T.illegalRe=x(M.illegal)),M.contains||(M.contains=[]),M.contains=[].concat(...M.contains.map(function(ne){return ps(ne==="self"?M:ne)})),M.contains.forEach(function(ne){ee(ne,T)}),M.starts&&ee(M.starts,C),T.matcher=Y(T),T}if(h.compilerExtensions||(h.compilerExtensions=[]),h.contains&&h.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return h.classNameAliases=r(h.classNameAliases||{}),ee(h)}function Ln(h){return h?h.endsWithParent||Ln(h.starts):!1}function ps(h){return h.variants&&!h.cachedVariants&&(h.cachedVariants=h.variants.map(function(x){return r(h,{variants:null},x)})),h.cachedVariants?h.cachedVariants:Ln(h)?r(h,{starts:h.starts?r(h.starts):null}):Object.isFrozen(h)?r(h):h}var fs="11.11.1";class ms extends Error{constructor(x,$){super(x),this.name="HTMLInjectionError",this.html=$}}const Ct=n,In=r,Tn=Symbol("nomatch"),gs=7,jn=function(h){const x=Object.create(null),$=Object.create(null),z=[];let Y=!0;const ee="Could not find the language '{}', did you forget to load/include a language module?",M={disableAutodetect:!0,name:"Plain text",contains:[]};let C={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:s};function T(A){return C.noHighlightRe.test(A)}function re(A){let L=A.className+" ";L+=A.parentNode?A.parentNode.className:"";const q=C.languageDetectRe.exec(L);if(q){const V=xe(q[1]);return V||(Nn(ee.replace("{}",q[1])),Nn("Falling back to no-highlight mode for this block.",A)),V?q[1]:"no-highlight"}return L.split(/\s+/).find(V=>T(V)||xe(V))}function ne(A,L,q){let V="",se="";typeof L=="object"?(V=A,q=L.ignoreIllegals,se=L.language):(je("10.7.0","highlight(lang, code, ...args) has been deprecated."),je("10.7.0",`Please use highlight(code, options) instead.
499
+ https://github.com/highlightjs/highlight.js/issues/2277`),se=A,V=L),q===void 0&&(q=!0);const me={code:V,language:se};ot("before:highlight",me);const _e=me.result?me.result:Ve(me.language,me.code,q);return _e.code=me.code,ot("after:highlight",_e),_e}function Ve(A,L,q,V){const se=Object.create(null);function me(k,N){return k.keywords[N]}function _e(){if(!D.keywords){oe.addText(G);return}let k=0;D.keywordPatternRe.lastIndex=0;let N=D.keywordPatternRe.exec(G),B="";for(;N;){B+=G.substring(k,N.index);const H=be.case_insensitive?N[0].toLowerCase():N[0],ae=me(D,H);if(ae){const[ye,Ps]=ae;if(oe.addText(B),B="",se[H]=(se[H]||0)+1,se[H]<=gs&&(ct+=Ps),ye.startsWith("_"))B+=N[0];else{const Ls=be.classNameAliases[ye]||ye;ge(N[0],Ls)}}else B+=N[0];k=D.keywordPatternRe.lastIndex,N=D.keywordPatternRe.exec(G)}B+=G.substring(k),oe.addText(B)}function at(){if(G==="")return;let k=null;if(typeof D.subLanguage=="string"){if(!x[D.subLanguage]){oe.addText(G);return}k=Ve(D.subLanguage,G,!0,Wn[D.subLanguage]),Wn[D.subLanguage]=k._top}else k=Mt(G,D.subLanguage.length?D.subLanguage:null);D.relevance>0&&(ct+=k.relevance),oe.__addSublanguage(k._emitter,k.language)}function ue(){D.subLanguage!=null?at():_e(),G=""}function ge(k,N){k!==""&&(oe.startScope(N),oe.addText(k),oe.endScope())}function Bn(k,N){let B=1;const H=N.length-1;for(;B<=H;){if(!k._emit[B]){B++;continue}const ae=be.classNameAliases[k[B]]||k[B],ye=N[B];ae?ge(ye,ae):(G=ye,_e(),G=""),B++}}function qn(k,N){return k.scope&&typeof k.scope=="string"&&oe.openNode(be.classNameAliases[k.scope]||k.scope),k.beginScope&&(k.beginScope._wrap?(ge(G,be.classNameAliases[k.beginScope._wrap]||k.beginScope._wrap),G=""):k.beginScope._multi&&(Bn(k.beginScope,N),G="")),D=Object.create(k,{parent:{value:D}}),D}function Fn(k,N,B){let H=w(k.endRe,B);if(H){if(k["on:end"]){const ae=new e(k);k["on:end"](N,ae),ae.isMatchIgnored&&(H=!1)}if(H){for(;k.endsParent&&k.parent;)k=k.parent;return k}}if(k.endsWithParent)return Fn(k.parent,N,B)}function Os(k){return D.matcher.regexIndex===0?(G+=k[0],1):(It=!0,0)}function Cs(k){const N=k[0],B=k.rule,H=new e(B),ae=[B.__beforeBegin,B["on:begin"]];for(const ye of ae)if(ye&&(ye(k,H),H.isMatchIgnored))return Os(N);return B.skip?G+=N:(B.excludeBegin&&(G+=N),ue(),!B.returnBegin&&!B.excludeBegin&&(G=N)),qn(B,k),B.returnBegin?0:N.length}function Rs(k){const N=k[0],B=L.substring(k.index),H=Fn(D,k,B);if(!H)return Tn;const ae=D;D.endScope&&D.endScope._wrap?(ue(),ge(N,D.endScope._wrap)):D.endScope&&D.endScope._multi?(ue(),Bn(D.endScope,k)):ae.skip?G+=N:(ae.returnEnd||ae.excludeEnd||(G+=N),ue(),ae.excludeEnd&&(G=N));do D.scope&&oe.closeNode(),!D.skip&&!D.subLanguage&&(ct+=D.relevance),D=D.parent;while(D!==H.parent);return H.starts&&qn(H.starts,k),ae.returnEnd?0:N.length}function Ms(){const k=[];for(let N=D;N!==be;N=N.parent)N.scope&&k.unshift(N.scope);k.forEach(N=>oe.openNode(N))}let lt={};function Hn(k,N){const B=N&&N[0];if(G+=k,B==null)return ue(),0;if(lt.type==="begin"&&N.type==="end"&&lt.index===N.index&&B===""){if(G+=L.slice(N.index,N.index+1),!Y){const H=new Error(`0 width match regex (${A})`);throw H.languageName=A,H.badRule=lt.rule,H}return 1}if(lt=N,N.type==="begin")return Cs(N);if(N.type==="illegal"&&!q){const H=new Error('Illegal lexeme "'+B+'" for mode "'+(D.scope||"<unnamed>")+'"');throw H.mode=D,H}else if(N.type==="end"){const H=Rs(N);if(H!==Tn)return H}if(N.type==="illegal"&&B==="")return G+=`
500
+ `,1;if(Lt>1e5&&Lt>N.index*3)throw new Error("potential infinite loop, way more iterations than matches");return G+=B,B.length}const be=xe(A);if(!be)throw $e(ee.replace("{}",A)),new Error('Unknown language: "'+A+'"');const Ns=hs(be);let Pt="",D=V||Ns;const Wn={},oe=new C.__emitter(C);Ms();let G="",ct=0,Oe=0,Lt=0,It=!1;try{if(be.__emitTokens)be.__emitTokens(L,oe);else{for(D.matcher.considerAll();;){Lt++,It?It=!1:D.matcher.considerAll(),D.matcher.lastIndex=Oe;const k=D.matcher.exec(L);if(!k)break;const N=L.substring(Oe,k.index),B=Hn(N,k);Oe=k.index+B}Hn(L.substring(Oe))}return oe.finalize(),Pt=oe.toHTML(),{language:A,value:Pt,relevance:ct,illegal:!1,_emitter:oe,_top:D}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:A,value:Ct(L),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:Oe,context:L.slice(Oe-100,Oe+100),mode:k.mode,resultSoFar:Pt},_emitter:oe};if(Y)return{language:A,value:Ct(L),illegal:!1,relevance:0,errorRaised:k,_emitter:oe,_top:D};throw k}}function Rt(A){const L={value:Ct(A),illegal:!1,relevance:0,_top:M,_emitter:new C.__emitter(C)};return L._emitter.addText(A),L}function Mt(A,L){L=L||C.languages||Object.keys(x);const q=Rt(A),V=L.filter(xe).filter(Un).map(ue=>Ve(ue,A,!1));V.unshift(q);const se=V.sort((ue,ge)=>{if(ue.relevance!==ge.relevance)return ge.relevance-ue.relevance;if(ue.language&&ge.language){if(xe(ue.language).supersetOf===ge.language)return 1;if(xe(ge.language).supersetOf===ue.language)return-1}return 0}),[me,_e]=se,at=me;return at.secondBest=_e,at}function bs(A,L,q){const V=L&&$[L]||q;A.classList.add("hljs"),A.classList.add(`language-${V}`)}function Nt(A){let L=null;const q=re(A);if(T(q))return;if(ot("before:highlightElement",{el:A,language:q}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(C.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)),C.throwUnescapedHTML))throw new ms("One of your code blocks includes unescaped HTML.",A.innerHTML);L=A;const V=L.textContent,se=q?ne(V,{language:q,ignoreIllegals:!0}):Mt(V);A.innerHTML=se.value,A.dataset.highlighted="yes",bs(A,q,se.language),A.result={language:se.language,re:se.relevance,relevance:se.relevance},se.secondBest&&(A.secondBest={language:se.secondBest.language,relevance:se.secondBest.relevance}),ot("after:highlightElement",{el:A,result:se,text:V})}function ys(A){C=In(C,A)}const vs=()=>{rt(),je("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function ws(){rt(),je("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Dn=!1;function rt(){function A(){rt()}if(document.readyState==="loading"){Dn||window.addEventListener("DOMContentLoaded",A,!1),Dn=!0;return}document.querySelectorAll(C.cssSelector).forEach(Nt)}function xs(A,L){let q=null;try{q=L(h)}catch(V){if($e("Language definition for '{}' could not be registered.".replace("{}",A)),Y)$e(V);else throw V;q=M}q.name||(q.name=A),x[A]=q,q.rawDefinition=L.bind(null,h),q.aliases&&zn(q.aliases,{languageName:A})}function _s(A){delete x[A];for(const L of Object.keys($))$[L]===A&&delete $[L]}function Es(){return Object.keys(x)}function xe(A){return A=(A||"").toLowerCase(),x[A]||x[$[A]]}function zn(A,{languageName:L}){typeof A=="string"&&(A=[A]),A.forEach(q=>{$[q.toLowerCase()]=L})}function Un(A){const L=xe(A);return L&&!L.disableAutodetect}function Ss(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=L=>{A["before:highlightBlock"](Object.assign({block:L.el},L))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=L=>{A["after:highlightBlock"](Object.assign({block:L.el},L))})}function As(A){Ss(A),z.push(A)}function ks(A){const L=z.indexOf(A);L!==-1&&z.splice(L,1)}function ot(A,L){const q=A;z.forEach(function(V){V[q]&&V[q](L)})}function $s(A){return je("10.7.0","highlightBlock will be removed entirely in v12.0"),je("10.7.0","Please use highlightElement now."),Nt(A)}Object.assign(h,{highlight:ne,highlightAuto:Mt,highlightAll:rt,highlightElement:Nt,highlightBlock:$s,configure:ys,initHighlighting:vs,initHighlightingOnLoad:ws,registerLanguage:xs,unregisterLanguage:_s,listLanguages:Es,getLanguage:xe,registerAliases:zn,autoDetection:Un,inherit:In,addPlugin:As,removePlugin:ks}),h.debugMode=function(){Y=!1},h.safeMode=function(){Y=!0},h.versionString=fs,h.regex={concat:m,lookahead:o,either:_,optional:p,anyNumberOfTimes:l};for(const A in Te)typeof Te[A]=="object"&&i(Te[A]);return Object.assign(h,Te),h},De=jn({});return De.newInstance=()=>jn({}),pn=De,De.HighlightJS=De,De.default=De,pn}var fo=po();const At=ho(fo),bt="[A-Za-z$_][0-9A-Za-z$_]*",Gi=["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"],Zi=["true","false","null","undefined","NaN","Infinity"],Ji=["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"],Ki=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Xi=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Qi=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Yi=[].concat(Xi,Ji,Ki);function mo(i){const e=i.regex,n=(W,{after:te})=>{const le="</"+W[0].slice(1);return W.input.indexOf(le,te)!==-1},r=bt,t={begin:"<>",end:"</>"},u=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,te)=>{const le=W[0].length+W.index,ce=W.input[le];if(ce==="<"||ce===","){te.ignoreMatch();return}ce===">"&&(n(W,{after:le})||te.ignoreMatch());let ve;const ke=W.input.substring(le);if(ve=ke.match(/^\s*=/)){te.ignoreMatch();return}if((ve=ke.match(/^\s+extends\s+/))&&ve.index===0){te.ignoreMatch();return}}},f={$pattern:bt,keyword:Gi,literal:Zi,built_in:Yi,"variable.language":Qi},b="[0-9](_?[0-9])*",d=`\\.(${b})`,s="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${s})((${d})|\\.)?|(${d}))[eE][+-]?(${b})\\b`},{begin:`\\b(${s})\\b((${d})\\b|\\.)?|(${d})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:f,contains:[]},l={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,o],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,o],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,o],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE,o]},_={className:"comment",variants:[i.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE]},E=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,l,p,m,g,{match:/\$\d+/},c];o.contains=E.concat({begin:/\{/,end:/\}/,keywords:f,contains:["self"].concat(E)});const w=[].concat(_,o.contains),v=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:f,contains:["self"].concat(w)}]),y={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:v},S={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},O={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:{_:[...Ji,...Ki]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},P={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(W){return e.concat("(?!",W.join("|"),")")}const F={match:e.concat(/\b/,K([...Xi,"super","import"].map(W=>`${W}\\s*\\(`)),r,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Ae={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},he={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},R="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+i.UNDERSCORE_IDENT_RE+")\\s*=>",Le={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(R)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:f,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[i.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,l,p,m,g,_,{match:/\$\d+/},c,O,{scope:"attr",match:r+e.lookahead(":"),relevance:0},Le,{begin:"("+i.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,i.REGEXP_MODE,{className:"function",begin:R,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:i.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:t.begin,end:t.end},{match:u},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+i.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,i.inherit(i.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ae,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},F,P,S,he,{match:/\$[(.]/}]}}function go(i){const e=i.regex,n=mo(i),r=bt,t=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],u={begin:[/namespace/,/\s+/,i.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:t},contains:[n.exports.CLASS_REFERENCE]},f={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},b=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],d={$pattern:bt,keyword:Gi.concat(b),literal:Zi,built_in:Yi.concat(t),"variable.language":Qi},s={className:"meta",begin:"@"+r},c=(m,g,_)=>{const E=m.contains.findIndex(w=>w.label===g);if(E===-1)throw new Error("can not find mode to replace");m.contains.splice(E,1,_)};Object.assign(n.keywords,d),n.exports.PARAMS_CONTAINS.push(s);const o=n.contains.find(m=>m.scope==="attr"),l=Object.assign({},o,{match:e.concat(r,e.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,o,l]),n.contains=n.contains.concat([s,u,a,l]),c(n,"shebang",i.SHEBANG()),c(n,"use_strict",f);const p=n.contains.find(m=>m.label==="func.def");return p.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function bo(i){const e=i.regex,n=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,t={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},u={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=i.inherit(u,{begin:/\(/,end:/\)/}),f=i.inherit(i.APOS_STRING_MODE,{className:"string"}),b=i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),d={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[t]},{begin:/'/,end:/'/,contains:[t]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[u,b,f,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[u,a,b,f]}]}]},i.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},t,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[b]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[d],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(n,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:d}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const yo=i=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:i.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:[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:i.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_-]*/}}),vo=["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"],wo=["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"],xo=[...vo,...wo],_o=["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(),Eo=["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(),So=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Ao=["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 ko(i){const e=i.regex,n=yo(i),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},t="and or not only",u=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",f=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Eo.join("|")+")"},{begin:":(:)?("+So.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ao.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...f,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...f,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:u},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:t,attribute:_o.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...f,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+xo.join("|")+")\\b"}]}}const es=document.createElement("style");es.innerText=[co,uo].join(`
501
+ `);document.head.appendChild(es);At.registerLanguage("typescript",go);At.registerLanguage("html",bo);At.registerLanguage("css",ko);function $o(...i){const e=document.createElement("div"),n=document.createElement("div");n.classList.add("tab-control");const r=document.createElement("div");return i.forEach(t=>{e.appendChild(t),t.addEventListener("click",()=>{i.forEach(u=>u.removeAttribute("selected")),t.setAttribute("selected",""),r.innerHTML="",r.appendChild(t.content),r.className=t.className,r.classList.add("tab-content")})}),n.appendChild(e),n.appendChild(r),r.classList.add("tab-content"),i[0].setAttribute("selected",""),r.appendChild(i[0].content),n}function Ze(i,e){const n=document.createElement("div");return n.role="tab",n.tabIndex=0,n.innerText=i,n.content=e,e.tagName=="PRE"&&n.classList.add("code"),n}function Ke(i,e){const n=document.createElement(i);return typeof e=="string"?n.innerHTML=e:e.forEach(r=>{n.appendChild(r)}),n}async function Oo(i,e,n){const r=e.mainContent,t=Ke("div",r);t.id=`example-preview-${n}`;const u=typeof e.css=="string"?void 0:e.css?.label,a=typeof e.css=="string"?e.css:e.css?.content,f=$o(Ze("Preview",t),Ze("HTML",ht("html",r)),...a?[Ze(u??"CSS",ht("css",a))]:[],...e.initializer&&e.initializer.content?[Ze(e.initializer.label??"TS",ht("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(d=>Ze(d.label,ht(d.language,d.content))));e.description&&i.appendChild(Ke("div",e.description));const b=Ke("div",[f]);b.classList.add("example"),i.appendChild(b),a&&Co(`#${t.id}`,a),e.initializer?.initialize&&await e.initializer.initialize(t)}function ht(i,e){let n=e.split(/\r?\n/).map(r=>{const t=r.indexOf("///");if(t>-1){const u=r.substring(t+3).trimStart();return u?r.replace(/^(\s*)([^\s].*)$/,`$1${u}`):void 0}return r}).filter(r=>typeof r<"u").join(`
502
+ `).trim();return i&&i!="raw"&&(n=At.highlight(n,{language:i}).value),Ke("pre",[Ke("code",n)])}function Co(i,e){const n=document.createElement("style");n.innerHTML=J().use(lo({prefix:i})).process(e).css,document.head.appendChild(n)}async function Ro(i,e=document.body){const n=No(e);let r=0;Object.keys(i).sort().forEach(async t=>{const u=document.createElement("div");u.className="example-container",n.appendChild(u);const a=i[t].default;Oo(u,a,r++)})}function Mo(i){const e=document.createElement("div");e.id="examples-container";const n=i.querySelector("#examples");return n?n.after(e):i.appendChild(e),e}function No(i){return i.children?Mo(i):i}const Po=`<h1 id="@cas-smartdesign/lit-input">@cas-smartdesign/lit-input</h1>
479
503
  <p>An input element based on LitElement &amp; material components.</p>
480
504
  <h2 id="requirements">Requirements</h2>
481
505
  <p>The main entry point requires ES6 &amp; support for Custom Elements v1</p>
@@ -556,4 +580,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),se=A,V=L),q===void 0&&
556
580
  <li><code>validationIconSrc</code></li>
557
581
  <li><code>validationLevel</code></li>
558
582
  </ul>
559
- `,Po=document.querySelector("#markdown-container");Po.innerHTML=No;Co(Object.assign({"./examples/declarative/index.ts":zs,"./examples/form-validation/index.ts":Hs,"./examples/login-form/index.ts":Js,"./examples/misc-examples/index.ts":ir,"./examples/restrictions/index.ts":lr,"./examples/validation/index.ts":fr}),document.querySelector(".markdown-body"));export{gt as a};
583
+ `,Lo=document.querySelector("#markdown-container");Lo.innerHTML=Po;Ro(Object.assign({"./examples/declarative/index.ts":zs,"./examples/form-validation/index.ts":Gs,"./examples/login-form/index.ts":Qs,"./examples/misc-examples/index.ts":sr,"./examples/restrictions/index.ts":cr,"./examples/validation/index.ts":mr}),document.querySelector(".markdown-body"));export{gt as a};