@cas-smartdesign/snackbar 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,413 @@
1
+ (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function t(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(r){if(r.ep)return;r.ep=!0;const o=t(r);fetch(r.href,o)}})();const Hr="modulepreload",Fr=function(i,e){return new URL(i,e).href},Pn={},Wr=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link");r=Promise.all(t.map(s=>{if(s=Fr(s,n),s in Pn)return;Pn[s]=!0;const a=s.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!n)for(let p=o.length-1;p>=0;p--){const d=o[p];if(d.href===s&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":Hr,a||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),a)return new Promise((p,d)=>{u.addEventListener("load",p),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${s}`)))})}))}return r.then(()=>e()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},qr=`<div id="configurable-example-container">
2
+ <div class="examples">
3
+ <div class="configs">
4
+ <label for="vertical-position">Vertical Position</label>
5
+ <select id="vertical-position">
6
+ <option value="top">Top</option>
7
+ <option value="bottom">Bottom</option>
8
+ </select>
9
+ <label for="horizontal-position">Horizontal Position</label>
10
+ <select id="horizontal-position">
11
+ <option value="left">Left</option>
12
+ <option value="center" selected>Center</option>
13
+ <option value="right">Right</option>
14
+ </select>
15
+ <label for="stack">Stack size</label>
16
+ <input id="stack" type="number" value="3" />
17
+ </div>
18
+ <div class="buttons">
19
+ <button id="normal-btn">Normal</button>
20
+ <button id="error-btn">Error</button>
21
+ <button id="persistent-btn">Persistent</button>
22
+ <button id="mouse-move-btn">Wait for mouse move</button>
23
+ <button id="with-link">With link</button>
24
+ </div>
25
+ <sd-snackbar-provider></sd-snackbar-provider>
26
+ </div>
27
+ </div>
28
+ `,Vr=`<p>Play around with the configuration to see how it affects the displayed notification.</p>
29
+ `,Gr=`#configurable-example-container {
30
+ display: flex;
31
+ flex-wrap: wrap;
32
+ }
33
+
34
+ sd-snackbar-provider {
35
+ width: 100%;
36
+ align-items: center;
37
+ }
38
+
39
+ sd-snackbar {
40
+ height: 24px;
41
+ line-height: 24px;
42
+ background-color: #f0f0f0;
43
+ color: #333;
44
+ border: 1px solid #333;
45
+ z-index: 10;
46
+ padding: 4px;
47
+ }
48
+
49
+ sd-snackbar.custom-style {
50
+ box-shadow:
51
+ 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
52
+ 0px 6px 10px 0px rgba(0, 0, 0, 0.14),
53
+ 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
54
+ border-radius: 4px;
55
+ }
56
+
57
+ sd-snackbar.error {
58
+ background: rgb(255, 203, 203);
59
+ }
60
+
61
+ sd-snackbar.error .error-message {
62
+ display: flex;
63
+ }
64
+
65
+ sd-snackbar a {
66
+ margin-left: 8px;
67
+ color: #1467ba;
68
+ }
69
+
70
+ sd-snackbar img {
71
+ margin: 4px;
72
+ width: 16px;
73
+ height: 16px;
74
+ background: transparent;
75
+ }
76
+ `,Zr=`import "@cas-smartdesign/snackbar";
77
+ import { VerticalPosition, HorizontalPosition, SnackbarProvider } from "@cas-smartdesign/snackbar";
78
+ import {
79
+ createSlideAnimationParams,
80
+ createMessage,
81
+ createErrorMessage,
82
+ createCloseElement,
83
+ createLinkElement,
84
+ } from "./utils";
85
+
86
+ SnackbarProvider.ensureDefined();
87
+
88
+ const errorImg = "./error.svg";
89
+
90
+ const container = document.querySelector("#configurable-example-container");
91
+ const verticalSelect = container.querySelector("#vertical-position") as HTMLSelectElement;
92
+ const horizontalSelect = container.querySelector("#horizontal-position") as HTMLSelectElement;
93
+ const stackInput = container.querySelector("#stack") as HTMLInputElement;
94
+ const provider = container.querySelector("sd-snackbar-provider") as SnackbarProvider;
95
+
96
+ let id = 0;
97
+
98
+ container.querySelector("#normal-btn").addEventListener("click", () =>
99
+ provider.open({
100
+ message: createMessage("This is a snackbar"),
101
+ id: \`\${id++}\`,
102
+ options: { autoHideDuration: 3000 },
103
+ }),
104
+ );
105
+
106
+ container.querySelector("#mouse-move-btn").addEventListener("click", () =>
107
+ provider.open({
108
+ message: createMessage("This snackbar waits for mouse move after the auto hide durations ends"),
109
+ id: \`\${id++}\`,
110
+ options: { waitForMouseMove: true, autoHideDuration: 3000 },
111
+ }),
112
+ );
113
+
114
+ container.querySelector("#error-btn").addEventListener("click", () =>
115
+ provider.open({
116
+ message: createErrorMessage("This is an error message", errorImg),
117
+ id: \`\${id++}\`,
118
+ options: { classNames: ["custom-style", "error"], autoHideDuration: 3000 },
119
+ }),
120
+ );
121
+
122
+ container.querySelector("#persistent-btn").addEventListener("click", () =>
123
+ provider.open({
124
+ message: createMessage("This is a persistent snackbar"),
125
+ id: \`\${id++}\`,
126
+ options: { closeAction: createCloseElement() },
127
+ }),
128
+ );
129
+
130
+ container.querySelector("#with-link").addEventListener("click", () =>
131
+ provider.open({
132
+ message: createMessage("This is a snackbar with a link"),
133
+ id: \`\${id++}\`,
134
+ options: { closeAction: createLinkElement(), waitOnHover: true, autoHideDuration: 3000 },
135
+ }),
136
+ );
137
+
138
+ verticalSelect.addEventListener("change", updateVerticalPosition);
139
+ horizontalSelect.addEventListener("change", updateHorizontalPosition);
140
+ stackInput.addEventListener("change", updateStackSize);
141
+
142
+ updateVerticalPosition();
143
+ updateHorizontalPosition();
144
+ updateStackSize();
145
+
146
+ function setAnimations(): void {
147
+ provider.animationIn = createSlideAnimationParams(provider.verticalPosition, provider.horizontalPosition, false);
148
+ provider.animationOut = createSlideAnimationParams(provider.verticalPosition, provider.horizontalPosition, true);
149
+ }
150
+
151
+ function updateVerticalPosition() {
152
+ provider.verticalPosition = verticalSelect.value as VerticalPosition;
153
+ setAnimations();
154
+ provider.close();
155
+ }
156
+
157
+ function updateHorizontalPosition() {
158
+ provider.horizontalPosition = horizontalSelect.value as HorizontalPosition;
159
+ setAnimations();
160
+ provider.close();
161
+ }
162
+
163
+ function updateStackSize() {
164
+ provider.maxStack = Number.parseInt(stackInput.value);
165
+ }
166
+ `,Kr=`import { VerticalPosition, HorizontalPosition, IAnimationParams } from "@cas-smartdesign/snackbar";
167
+
168
+ const getPosition = (
169
+ verticalPosition: VerticalPosition,
170
+ horizontalPosition: HorizontalPosition,
171
+ ): "left" | "bottom" | "top" | "right" => {
172
+ if (horizontalPosition === "center") {
173
+ return verticalPosition;
174
+ } else {
175
+ return horizontalPosition;
176
+ }
177
+ };
178
+
179
+ const createSlideAnimationParams = (
180
+ verticalPosition: VerticalPosition,
181
+ horizontalPosition: HorizontalPosition,
182
+ out: boolean,
183
+ ): IAnimationParams => {
184
+ let keyframes: Keyframe[];
185
+ if (horizontalPosition == "center") {
186
+ keyframes = [{ opacity: 0 }, { opacity: 1 }];
187
+ } else {
188
+ const position = getPosition(verticalPosition, horizontalPosition);
189
+ keyframes = [{ [position]: "-300px" }, { [position]: "0px" }];
190
+ }
191
+ return {
192
+ keyframes: [...(out ? keyframes.reverse() : keyframes)],
193
+ options: { duration: 250 },
194
+ };
195
+ };
196
+
197
+ const createMessage = (text: string): HTMLElement => {
198
+ const message = document.createElement("div");
199
+ message.innerHTML = text;
200
+ return message;
201
+ };
202
+
203
+ const createErrorMessage = (text: string, img: string): HTMLElement => {
204
+ const message = document.createElement("div");
205
+ const image = document.createElement("img");
206
+ const textElement = document.createElement("div");
207
+ textElement.innerHTML = text;
208
+ image.src = img;
209
+ message.appendChild(image);
210
+ message.appendChild(textElement);
211
+ message.classList.add("error-message");
212
+ return message;
213
+ };
214
+
215
+ const createCloseElement = (): HTMLElement => {
216
+ const action = document.createElement("a");
217
+ action.href = "javascript:void(0)";
218
+ action.innerHTML = "close";
219
+ return action;
220
+ };
221
+
222
+ const createLinkElement = (): HTMLElement => {
223
+ const link = document.createElement("a");
224
+ link.target = "_blank";
225
+ link.href = "https://www.cas.de";
226
+ link.innerHTML = "This is a link";
227
+ return link;
228
+ };
229
+
230
+ export { createSlideAnimationParams, createMessage, createErrorMessage, createCloseElement, createLinkElement };
231
+ `,Qr={mainContent:qr,description:Vr,css:Gr,initializer:{content:Zr,type:"typescript",initialize:()=>Wr(()=>import("./configurable_example.js"),__vite__mapDeps([]),import.meta.url)},additionalSources:[{type:"source",language:"typescript",content:Kr,label:"utils.ts"}]},Jr=Object.freeze(Object.defineProperty({__proto__:null,default:Qr},Symbol.toStringTag,{value:"Module"}));const it=window,on=it.ShadowRoot&&(it.ShadyCSS===void 0||it.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,an=Symbol(),Rn=new WeakMap;let mi=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==an)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(on&&e===void 0){const n=t!==void 0&&t.length===1;n&&(e=Rn.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Rn.set(t,e))}return e}toString(){return this.cssText}};const ln=i=>new mi(typeof i=="string"?i:i+"",void 0,an),bi=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((n,r,o)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[o+1],i[0]);return new mi(t,i,an)},Xr=(i,e)=>{on?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const n=document.createElement("style"),r=it.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=t.cssText,i.appendChild(n)})},Mn=on?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return ln(t)})(i):i;var Ot;const ot=window,Nn=ot.trustedTypes,Yr=Nn?Nn.emptyScript:"",Tn=ot.reactiveElementPolyfillSupport,Bt={toAttribute(i,e){switch(e){case Boolean:i=i?Yr:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},yi=(i,e)=>e!==i&&(e==e||i==i),Pt={attribute:!0,type:String,converter:Bt,reflect:!1,hasChanged:yi},Ht="finalized";let pe=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,n)=>{const r=this._$Ep(n,t);r!==void 0&&(this._$Ev.set(r,n),e.push(r))}),e}static createProperty(e,t=Pt){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);r!==void 0&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const o=this[e];this[t]=r,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Pt}static finalize(){if(this.hasOwnProperty(Ht))return!1;this[Ht]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of n)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const r of n)t.unshift(Mn(r))}else e!==void 0&&t.push(Mn(e));return t}static _$Ep(e,t){const n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,n;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Xr(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostConnected)===null||n===void 0?void 0:n.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostDisconnected)===null||n===void 0?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=Pt){var r;const o=this.constructor._$Ep(e,n);if(o!==void 0&&n.reflect===!0){const s=(((r=n.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?n.converter:Bt).toAttribute(t,n.type);this._$El=e,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$El=null}}_$AK(e,t){var n;const r=this.constructor,o=r._$Ev.get(e);if(o!==void 0&&this._$El!==o){const s=r.getPropertyOptions(o),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?s.converter:Bt;this._$El=o,this[o]=a.fromAttribute(t,s.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||yi)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,o)=>this[o]=r),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var o;return(o=r.hostUpdate)===null||o===void 0?void 0:o.call(r)}),this.update(n)):this._$Ek()}catch(r){throw t=!1,this._$Ek(),r}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var r;return(r=n.hostUpdated)===null||r===void 0?void 0:r.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,n)=>this._$EO(n,this[n],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};pe[Ht]=!0,pe.elementProperties=new Map,pe.elementStyles=[],pe.shadowRootOptions={mode:"open"},Tn==null||Tn({ReactiveElement:pe}),((Ot=ot.reactiveElementVersions)!==null&&Ot!==void 0?Ot:ot.reactiveElementVersions=[]).push("1.6.3");var Rt;const at=window,me=at.trustedTypes,In=me?me.createPolicy("lit-html",{createHTML:i=>i}):void 0,lt="$lit$",G=`lit$${(Math.random()+"").slice(9)}$`,cn="?"+G,es=`<${cn}>`,ae=document,Pe=()=>ae.createComment(""),Re=i=>i===null||typeof i!="object"&&typeof i!="function",vi=Array.isArray,wi=i=>vi(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Mt=`[
232
+ \f\r]`,_e=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ln=/-->/g,zn=/>/g,ne=RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^
233
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),jn=/'/g,Un=/"/g,xi=/^(?:script|style|textarea|title)$/i,ts=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),Ce=ts(1),le=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),Dn=new WeakMap,se=ae.createTreeWalker(ae,129,null,!1);function Ei(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return In!==void 0?In.createHTML(e):e}const _i=(i,e)=>{const t=i.length-1,n=[];let r,o=e===2?"<svg>":"",s=_e;for(let a=0;a<t;a++){const l=i[a];let c,u,p=-1,d=0;for(;d<l.length&&(s.lastIndex=d,u=s.exec(l),u!==null);)d=s.lastIndex,s===_e?u[1]==="!--"?s=Ln:u[1]!==void 0?s=zn:u[2]!==void 0?(xi.test(u[2])&&(r=RegExp("</"+u[2],"g")),s=ne):u[3]!==void 0&&(s=ne):s===ne?u[0]===">"?(s=r??_e,p=-1):u[1]===void 0?p=-2:(p=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?ne:u[3]==='"'?Un:jn):s===Un||s===jn?s=ne:s===Ln||s===zn?s=_e:(s=ne,r=void 0);const y=s===ne&&i[a+1].startsWith("/>")?" ":"";o+=s===_e?l+es:p>=0?(n.push(c),l.slice(0,p)+lt+l.slice(p)+G+y):l+G+(p===-2?(n.push(void 0),a):y)}return[Ei(i,o+(i[t]||"<?>")+(e===2?"</svg>":"")),n]};class Me{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let o=0,s=0;const a=e.length-1,l=this.parts,[c,u]=_i(e,t);if(this.el=Me.createElement(c,n),se.currentNode=this.el.content,t===2){const p=this.el.content,d=p.firstChild;d.remove(),p.append(...d.childNodes)}for(;(r=se.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes()){const p=[];for(const d of r.getAttributeNames())if(d.endsWith(lt)||d.startsWith(G)){const y=u[s++];if(p.push(d),y!==void 0){const v=r.getAttribute(y.toLowerCase()+lt).split(G),_=/([.?@])?(.*)/.exec(y);l.push({type:1,index:o,name:_[2],strings:v,ctor:_[1]==="."?Ai:_[1]==="?"?$i:_[1]==="@"?ki:Ue})}else l.push({type:6,index:o})}for(const d of p)r.removeAttribute(d)}if(xi.test(r.tagName)){const p=r.textContent.split(G),d=p.length-1;if(d>0){r.textContent=me?me.emptyScript:"";for(let y=0;y<d;y++)r.append(p[y],Pe()),se.nextNode(),l.push({type:2,index:++o});r.append(p[d],Pe())}}}else if(r.nodeType===8)if(r.data===cn)l.push({type:2,index:o});else{let p=-1;for(;(p=r.data.indexOf(G,p+1))!==-1;)l.push({type:7,index:o}),p+=G.length-1}o++}}static createElement(e,t){const n=ae.createElement("template");return n.innerHTML=e,n}}function ce(i,e,t=i,n){var r,o,s,a;if(e===le)return e;let l=n!==void 0?(r=t._$Co)===null||r===void 0?void 0:r[n]:t._$Cl;const c=Re(e)?void 0:e._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((o=l==null?void 0:l._$AO)===null||o===void 0||o.call(l,!1),c===void 0?l=void 0:(l=new c(i),l._$AT(i,t,n)),n!==void 0?((s=(a=t)._$Co)!==null&&s!==void 0?s:a._$Co=[])[n]=l:t._$Cl=l),l!==void 0&&(e=ce(i,l._$AS(i,e.values),l,n)),e}class Si{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:r}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:ae).importNode(n,!0);se.currentNode=o;let s=se.nextNode(),a=0,l=0,c=r[0];for(;c!==void 0;){if(a===c.index){let u;c.type===2?u=new xe(s,s.nextSibling,this,e):c.type===1?u=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(u=new Ci(s,this,e)),this._$AV.push(u),c=r[++l]}a!==(c==null?void 0:c.index)&&(s=se.nextNode(),a++)}return se.currentNode=ae,o}v(e){let t=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class xe{constructor(e,t,n,r){var o;this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cp=(o=r==null?void 0:r.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ce(this,e,t),Re(e)?e===R||e==null||e===""?(this._$AH!==R&&this._$AR(),this._$AH=R):e!==this._$AH&&e!==le&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):wi(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==R&&Re(this._$AH)?this._$AA.nextSibling.data=e:this.$(ae.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Me.createElement(Ei(r.h,r.h[0]),this.options)),r);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.v(n);else{const s=new Si(o,this),a=s.u(this.options);s.v(n),this.$(a),this._$AH=s}}_$AC(e){let t=Dn.get(e.strings);return t===void 0&&Dn.set(e.strings,t=new Me(e)),t}T(e){vi(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const o of e)r===t.length?t.push(n=new xe(this.k(Pe()),this.k(Pe()),this,this.options)):n=t[r],n._$AI(o),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,t);e&&e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class Ue{constructor(e,t,n,r,o){this.type=1,this._$AH=R,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=R}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,r){const o=this.strings;let s=!1;if(o===void 0)e=ce(this,e,t,0),s=!Re(e)||e!==this._$AH&&e!==le,s&&(this._$AH=e);else{const a=e;let l,c;for(e=o[0],l=0;l<o.length-1;l++)c=ce(this,a[n+l],t,l),c===le&&(c=this._$AH[l]),s||(s=!Re(c)||c!==this._$AH[l]),c===R?e=R:e!==R&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!r&&this.j(e)}j(e){e===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Ai extends Ue{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===R?void 0:e}}const ns=me?me.emptyScript:"";class $i extends Ue{constructor(){super(...arguments),this.type=4}j(e){e&&e!==R?this.element.setAttribute(this.name,ns):this.element.removeAttribute(this.name)}}let ki=class extends Ue{constructor(e,t,n,r,o){super(e,t,n,r,o),this.type=5}_$AI(e,t=this){var n;if((e=(n=ce(this,e,t,0))!==null&&n!==void 0?n:R)===le)return;const r=this._$AH,o=e===R&&r!==R||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==R&&(r===R||o);o&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;typeof this._$AH=="function"?this._$AH.call((n=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&n!==void 0?n:this.element,e):this._$AH.handleEvent(e)}};class Ci{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ce(this,e)}}const is={O:lt,P:G,A:cn,C:1,M:_i,L:Si,R:wi,D:ce,I:xe,V:Ue,H:$i,N:ki,U:Ai,F:Ci},Bn=at.litHtmlPolyfillSupport;Bn==null||Bn(Me,xe),((Rt=at.litHtmlVersions)!==null&&Rt!==void 0?Rt:at.litHtmlVersions=[]).push("2.8.0");const Oi=(i,e,t)=>{var n,r;const o=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:e;let s=o._$litPart$;if(s===void 0){const a=(r=t==null?void 0:t.renderBefore)!==null&&r!==void 0?r:null;o._$litPart$=s=new xe(e.insertBefore(Pe(),a),a,void 0,t??{})}return s._$AI(i),s};var Nt,Tt;let ge=class extends pe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Oi(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return le}};ge.finalized=!0,ge._$litElement$=!0,(Nt=globalThis.litElementHydrateSupport)===null||Nt===void 0||Nt.call(globalThis,{LitElement:ge});const Hn=globalThis.litElementPolyfillSupport;Hn==null||Hn({LitElement:ge});((Tt=globalThis.litElementVersions)!==null&&Tt!==void 0?Tt:globalThis.litElementVersions=[]).push("3.3.3");const rs=":host{display:block;contain:layout;margin-top:6px;margin-bottom:6px;position:relative;transition:height var(--sd-snackbar-height-transition-duration, .4s)}.root{display:flex;width:100%;height:100%}";const ss=(i,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,i)}},os=(i,e,t)=>{e.constructor.createProperty(t,i)};function Pi(i){return(e,t)=>t!==void 0?os(i,e,t):ss(i,e)}const as={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ls=i=>(...e)=>({_$litDirective$:i,values:e});class cs{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const{I:us}=is,Fn=()=>document.createComment(""),Se=(i,e,t)=>{var n;const r=i._$AA.parentNode,o=e===void 0?i._$AB:e._$AA;if(t===void 0){const s=r.insertBefore(Fn(),o),a=r.insertBefore(Fn(),o);t=new us(s,a,i,i.options)}else{const s=t._$AB.nextSibling,a=t._$AM,l=a!==i;if(l){let c;(n=t._$AQ)===null||n===void 0||n.call(t,i),t._$AM=i,t._$AP!==void 0&&(c=i._$AU)!==a._$AU&&t._$AP(c)}if(s!==o||l){let c=t._$AA;for(;c!==s;){const u=c.nextSibling;r.insertBefore(c,o),c=u}}}return t},ie=(i,e,t=i)=>(i._$AI(e,t),i),hs={},ds=(i,e=hs)=>i._$AH=e,fs=i=>i._$AH,It=i=>{var e;(e=i._$AP)===null||e===void 0||e.call(i,!1,!0);let t=i._$AA;const n=i._$AB.nextSibling;for(;t!==n;){const r=t.nextSibling;t.remove(),t=r}};const Wn=(i,e,t)=>{const n=new Map;for(let r=e;r<=t;r++)n.set(i[r],r);return n},ps=ls(class extends cs{constructor(i){if(super(i),i.type!==as.CHILD)throw Error("repeat() can only be used in text expressions")}ct(i,e,t){let n;t===void 0?t=e:e!==void 0&&(n=e);const r=[],o=[];let s=0;for(const a of i)r[s]=n?n(a,s):s,o[s]=t(a,s),s++;return{values:o,keys:r}}render(i,e,t){return this.ct(i,e,t).values}update(i,[e,t,n]){var r;const o=fs(i),{values:s,keys:a}=this.ct(e,t,n);if(!Array.isArray(o))return this.ut=a,s;const l=(r=this.ut)!==null&&r!==void 0?r:this.ut=[],c=[];let u,p,d=0,y=o.length-1,v=0,_=s.length-1;for(;d<=y&&v<=_;)if(o[d]===null)d++;else if(o[y]===null)y--;else if(l[d]===a[v])c[v]=ie(o[d],s[v]),d++,v++;else if(l[y]===a[_])c[_]=ie(o[y],s[_]),y--,_--;else if(l[d]===a[_])c[_]=ie(o[d],s[_]),Se(i,c[_+1],o[d]),d++,_--;else if(l[y]===a[v])c[v]=ie(o[y],s[v]),Se(i,o[d],o[y]),y--,v++;else if(u===void 0&&(u=Wn(a,v,_),p=Wn(l,d,y)),u.has(l[d]))if(u.has(l[y])){const g=p.get(a[v]),I=g!==void 0?o[g]:null;if(I===null){const j=Se(i,o[d]);ie(j,s[v]),c[v]=j}else c[v]=ie(I,s[v]),Se(i,o[d],I),o[g]=null;v++}else It(o[y]),y--;else It(o[d]),d++;for(;v<=_;){const g=Se(i,c[_+1]);ie(g,s[v]),c[v++]=g}for(;d<=y;){const g=o[d++];g!==null&&It(g)}return this.ut=a,ds(i,c),le}});const gs=i=>i??R,ms=":host{position:fixed;display:flex;flex-direction:column;box-sizing:border-box;max-height:100%;contain:layout}:host([vertical-position=bottom]){flex-direction:column-reverse;bottom:var(--sd-snackbar-vertical-offset, 14px)}:host([vertical-position=top]){top:var(--sd-snackbar-vertical-offset, 14px)}:host([horizontal-position=left]){left:var(--sd-snackbar-horizontal-offset, 20px)}:host([horizontal-position=center]){left:50%;transform:translate(-50%)}:host([horizontal-position=right]){right:var(--sd-snackbar-horizontal-offset, 20px)}";var bs=Object.defineProperty,ys=Object.getOwnPropertyDescriptor,Ri=(i,e,t,n)=>{for(var r=n>1?void 0:n?ys(e,t):e,o=i.length-1,s;o>=0;o--)(s=i[o])&&(r=(n?s(e,t,r):s(r))||r);return n&&r&&bs(e,t,r),r},Z;const un=(Z=class extends ge{constructor(){super(...arguments),this.verticalPosition="bottom",this.horizontalPosition="left",this.maxStack=3,this.shouldCloseOldest=!1,this._queue=[],this._rendered=[]}static get styles(){return[bi`
234
+ ${ln(ms)}
235
+ `]}render(){return this.renderSnackbars(),Ce` <slot></slot> `}renderSnackbars(){Oi(Ce`
236
+ ${ps(this._rendered,({id:e})=>e,e=>this.renderSnackbar(e))}
237
+ `,this)}open(e){this._queue.push({snackbar:e,direction:"in"}),this.updateQueue()}close(e){e?this.requestSnackbarClose(e):this._rendered.forEach(({id:t})=>this.requestSnackbarClose(t))}renderSnackbar({message:e,options:t={}}){var n;return Ce`
238
+ <sd-snackbar
239
+ class="${gs(((n=t.classNames)==null?void 0:n.length)>0?t.classNames.join(" "):void 0)}"
240
+ .animationIn="${this.animationIn}"
241
+ .animationOut="${this.animationOut}"
242
+ >
243
+ ${this.renderSnackbarContent(e,t==null?void 0:t.closeAction)}
244
+ </sd-snackbar>
245
+ `}renderSnackbarContent(e,t){return Ce` ${e}${t||""} `}updateQueue(){if(this._queue.length===0)return;const{direction:e,snackbar:t}=this._queue[0];e==="in"?this._rendered.length===this.maxStack?this.requestOldestSnackbarClose():(this.prepareSnackbarForRender(t),this._rendered.push(t),this.renderSnackbars(),this._queue.shift(),this.updateQueue()):this.requestSnackbarClose(t.id)}requestOldestSnackbarClose(){const e=this._rendered.find(({requestClose:t,options:n})=>!t&&(n==null?void 0:n.autoHideDuration));e&&(e.requestClose=!0,this._queue.unshift({snackbar:e,direction:"out"}),this.updateQueue())}requestSnackbarClose(e){const t=this._rendered.findIndex(n=>n.id===e);if(t!==-1){const n=this._rendered[t];n.closing||(n.requestClose=!0,window.clearTimeout(n.timer),this.closeSnackbar(t))}}closeSnackbar(e){var r;const t=this._rendered[e],n=this.children.item(e);n&&(t.closing=!0,(r=t.options)!=null&&r.waitOnHover&&n.matches(":hover")?n.addEventListener("mouseleave",()=>{n.close().then(()=>{this.removeSnackbarAndUpdate(t)})}):n.close().then(()=>{this.removeSnackbarAndUpdate(t)}))}removeSnackbarAndUpdate(e){this.removeSnackbarFromQueue(e),this.removeSnackbarFromRendered(e),this.requestUpdate(),this.updateComplete.then(()=>this.updateQueue())}removeSnackbarFromQueue(e){const t=this._queue.findIndex(({snackbar:n})=>n.id===e.id);t!==-1&&this._queue.splice(t,1)}removeSnackbarFromRendered(e){const t=this._rendered.findIndex(n=>n.id==e.id);t!==-1&&this._rendered.splice(t,1)}setupTimeoutForAutoHideSnackbar(e){e.timer=window.setTimeout(()=>{this._queue.push({snackbar:e,direction:"out"}),this.updateQueue()},e.options.autoHideDuration)}prepareSnackbarForRender(e){const{options:t,message:n}=e;if(n.slot="message",t){const{autoHideDuration:r,waitForMouseMove:o}=t;r&&(o?this.listenForMouseMove(e):this.setupTimeoutForAutoHideSnackbar(e)),this.setupAction(e)}}listenForMouseMove(e){window.addEventListener("mousemove",this.handleWindowMouseMove.bind(this,e),{once:!0})}handleWindowMouseMove(e){this.setupTimeoutForAutoHideSnackbar(e)}setupAction(e){const{options:{closeAction:t}}=e;t&&(t.addEventListener("click",()=>{this._queue.unshift({snackbar:e,direction:"out"}),this.updateQueue()}),t.slot="action")}},Z.ID="sd-snackbar-provider",Z.ensureDefined=()=>{Ft.ensureDefined(),customElements.get(Z.ID)||customElements.define(Z.ID,Z)},Z);Ri([Pi({type:String,reflect:!0,attribute:"vertical-position"})],un.prototype,"verticalPosition",2);Ri([Pi({type:String,reflect:!0,attribute:"horizontal-position"})],un.prototype,"horizontalPosition",2);let Cl=un;const re=class re extends ge{static get styles(){return[bi`
246
+ ${ln(rs)}
247
+ `]}firstUpdated(e){if(super.firstUpdated(e),this.animationIn){const{keyframes:t,options:n}=this.animationIn;this.animate(t,n)}}close(){return new Promise(e=>{if(this.animationOut){const{keyframes:t,options:n}=this.animationOut,r=this.animate(t,n);r.onfinish=()=>{this.collapse(),this.addEventListener("transitionend",({propertyName:o})=>{o==="height"&&e()})}}else this.collapse(),e()})}render(){return Ce`
248
+ <div class="root">
249
+ <div class="message">
250
+ <slot name="message"></slot>
251
+ </div>
252
+ <div class="action">
253
+ <slot name="action"></slot>
254
+ </div>
255
+ </div>
256
+ `}collapse(){this.style.height="0",this.style.opacity="0"}};re.ID="sd-snackbar",re.ensureDefined=()=>{customElements.get(re.ID)||customElements.define(re.ID,re)};let Ft=re;function Mi(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function vs(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(n){var r=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return i[n]}})}),t}var hn={exports:{}},C=String,Ni=function(){return{isColorSupported:!1,reset:C,bold:C,dim:C,italic:C,underline:C,inverse:C,hidden:C,strikethrough:C,black:C,red:C,green:C,yellow:C,blue:C,magenta:C,cyan:C,white:C,gray:C,bgBlack:C,bgRed:C,bgGreen:C,bgYellow:C,bgBlue:C,bgMagenta:C,bgCyan:C,bgWhite:C}};hn.exports=Ni();hn.exports.createColors=Ni;var ws=hn.exports;const xs={},Es=Object.freeze(Object.defineProperty({__proto__:null,default:xs},Symbol.toStringTag,{value:"Module"})),D=vs(Es);let qn=ws,Vn=D,Wt=class Ti extends Error{constructor(e,t,n,r,o,s){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),r&&(this.source=r),s&&(this.plugin=s),typeof t<"u"&&typeof n<"u"&&(typeof t=="number"?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Ti)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=qn.isColorSupported),Vn&&e&&(t=Vn(t));let n=t.split(/\r?\n/),r=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),s=String(o).length,a,l;if(e){let{bold:c,gray:u,red:p}=qn.createColors(!0);a=d=>c(p(d)),l=d=>u(d)}else a=l=c=>c;return n.slice(r,o).map((c,u)=>{let p=r+1+u,d=" "+(" "+p).slice(-s)+" | ";if(p===this.line){let y=l(d.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(d)+c+`
257
+ `+y+a("^")}return" "+l(d)+c}).join(`
258
+ `)}toString(){let e=this.showSourceCode();return e&&(e=`
259
+
260
+ `+e+`
261
+ `),this.name+": "+this.message+e}};var dn=Wt;Wt.default=Wt;var De={};De.isClean=Symbol("isClean");De.my=Symbol("my");const Gn={after:`
262
+ `,beforeClose:`
263
+ `,beforeComment:`
264
+ `,beforeDecl:`
265
+ `,beforeOpen:" ",beforeRule:`
266
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function _s(i){return i[0].toUpperCase()+i.slice(1)}let qt=class{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let o=(e.raws.between||"")+(t?";":"");this.builder(n+r+o,e)}}beforeAfter(e,t){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let r=e.parent,o=0;for(;r&&r.type!=="root";)o+=1,r=r.parent;if(n.includes(`
267
+ `)){let s=this.raw(e,null,"indent");if(s.length)for(let a=0;a<o;a++)n+=s}return n}block(e,t){let n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let o=e.nodes[r],s=this.raw(o,"before");s&&this.builder(s),this.stringify(o,t!==r||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,t,n){let r;if(n||(n=t),t&&(r=e.raws[t],typeof r<"u"))return r;let o=e.parent;if(n==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return Gn[n];let s=e.root();if(s.rawCache||(s.rawCache={}),typeof s.rawCache[n]<"u")return s.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let a="raw"+_s(n);this[a]?r=this[a](s,e):s.walk(l=>{if(r=l.raws[t],typeof r<"u")return!1})}return typeof r>"u"&&(r=Gn[n]),s.rawCache[n]=r,r}rawBeforeClose(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return t=n.raws.after,t.includes(`
268
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments(r=>{if(typeof r.raws.before<"u")return n=r.raws.before,n.includes(`
269
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(r=>{if(typeof r.raws.before<"u")return n=r.raws.before,n.includes(`
270
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk(n=>{if(n.type!=="decl"&&(t=n.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return t=n.raws.before,t.includes(`
271
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&typeof n.raws.before<"u"){let o=n.raws.before.split(`
272
+ `);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Ii=qt;qt.default=qt;let Ss=Ii;function Vt(i,e){new Ss(e).stringify(i)}var gt=Vt;Vt.default=Vt;let{isClean:Ve,my:As}=De,$s=dn,ks=Ii,Cs=gt;function Gt(i,e){let t=new i.constructor;for(let n in i){if(!Object.prototype.hasOwnProperty.call(i,n)||n==="proxyCache")continue;let r=i[n],o=typeof r;n==="parent"&&o==="object"?e&&(t[n]=e):n==="source"?t[n]=r:Array.isArray(r)?t[n]=r.map(s=>Gt(s,t)):(o==="object"&&r!==null&&(r=Gt(r)),t[n]=r)}return t}let Zt=class{constructor(e={}){this.raws={},this[Ve]=!1,this[As]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let n of e[t])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Gt(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new $s(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Ve]){this[Ve]=!1;let e=this;for(;e=e.parent;)e[Ve]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();let r=t.indexOf(e.word);r!==-1&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,o=this.source.start.line;for(let s=0;s<e;s++)n[s]===`
273
+ `?(r=1,o+=1):r+=1;return{column:r,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),o=r.indexOf(e.word);o!==-1&&(t=this.positionInside(o,r),n=this.positionInside(o+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new ks().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let n={},r=t==null;t=t||new Map;let o=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let a=this[s];if(Array.isArray(a))n[s]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)n[s]=a.toJSON(null,t);else if(s==="source"){let l=t.get(a.input);l==null&&(l=o,t.set(a.input,o),o++),n[s]={end:a.end,inputId:l,start:a.start}}else n[s]=a}return r&&(n.inputs=[...t.keys()].map(s=>s.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Cs){e.stringify&&(e=e.stringify);let t="";return e(this,n=>{t+=n}),t}warn(e,t,n){let r={node:this};for(let o in n)r[o]=n[o];return e.warn(t,r)}get proxyOf(){return this}};var mt=Zt;Zt.default=Zt;let Os=mt,Kt=class extends Os{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var bt=Kt;Kt.default=Kt;let Ps="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Rs=(i,e=21)=>(t=e)=>{let n="",r=t;for(;r--;)n+=i[Math.random()*i.length|0];return n},Ms=(i=21)=>{let e="",t=i;for(;t--;)e+=Ps[Math.random()*64|0];return e};var Ns={nanoid:Ms,customAlphabet:Rs};let{SourceMapConsumer:Zn,SourceMapGenerator:Kn}=D,{existsSync:Ts,readFileSync:Is}=D,{dirname:Lt,join:Ls}=D;function zs(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let Qt=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Lt(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new Zn(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,r=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(r.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return zs(e.substr(RegExp.lastMatch.length));let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=Lt(e),Ts(e))return this.mapFile=e,Is(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let n=t(e);if(n){let r=this.loadFile(n);if(!r)throw new Error("Unable to load previous source map: "+n.toString());return r}}else{if(t instanceof Zn)return Kn.fromSourceMap(t).toString();if(t instanceof Kn)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=Ls(Lt(e),n)),this.loadFile(n)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Li=Qt;Qt.default=Qt;let{SourceMapConsumer:js,SourceMapGenerator:Us}=D,{fileURLToPath:Qn,pathToFileURL:Ge}=D,{isAbsolute:Jt,resolve:Xt}=D,{nanoid:Ds}=Ns,zt=D,Jn=dn,Bs=Li,jt=Symbol("fromOffsetCache"),Hs=!!(js&&Us),Xn=!!(Xt&&Jt),ct=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Xn||/^\w+:\/\//.test(t.from)||Jt(t.from)?this.file=t.from:this.file=Xt(t.from)),Xn&&Hs){let n=new Bs(this.css,t);if(n.text){this.map=n;let r=n.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+Ds(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let o,s,a;if(t&&typeof t=="object"){let c=t,u=n;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);t=p.line,n=p.col}else t=c.line,n=c.column;if(typeof u.offset=="number"){let p=this.fromOffset(u.offset);s=p.line,a=p.col}else s=u.line,a=u.column}else if(!n){let c=this.fromOffset(t);t=c.line,n=c.col}let l=this.origin(t,n,s,a);return l?o=new Jn(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,r.plugin):o=new Jn(e,s===void 0?t:{column:n,line:t},s===void 0?n:{column:a,line:s},this.css,this.file,r.plugin),o.input={column:n,endColumn:a,endLine:s,line:t,source:this.css},this.file&&(Ge&&(o.input.url=Ge(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,n;if(this[jt])n=this[jt];else{let o=this.css.split(`
274
+ `);n=new Array(o.length);let s=0;for(let a=0,l=o.length;a<l;a++)n[a]=s,s+=o[a].length+1;this[jt]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let o=n.length-2,s;for(;r<o;)if(s=r+(o-r>>1),e<n[s])o=s-1;else if(e>=n[s+1])r=s+1;else{r=s;break}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Xt(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({column:t,line:e});if(!s.source)return!1;let a;typeof n=="number"&&(a=o.originalPositionFor({column:r,line:n}));let l;Jt(s.source)?l=Ge(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||Ge(this.map.mapFile));let c={column:s.column,endColumn:a&&a.column,endLine:a&&a.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(Qn)c.file=Qn(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=o.sourceContentFor(s.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var yt=ct;ct.default=ct;zt&&zt.registerInput&&zt.registerInput(ct);let{SourceMapConsumer:zi,SourceMapGenerator:rt}=D,{dirname:st,relative:ji,resolve:Ui,sep:Di}=D,{pathToFileURL:Yn}=D,Fs=yt,Ws=!!(zi&&rt),qs=!!(st&&Ui&&ji&&Di),Vs=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
275
+ `;this.css.includes(`\r
276
+ `)&&(t=`\r
277
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||st(e.file),r;this.mapOpts.sourcesContent===!1?(r=new zi(e.text),r.sourcesContent&&(r.sourcesContent=r.sourcesContent.map(()=>null))):r=e.consumer(),this.map.applySourceMap(r,t,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),qs&&Ws&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=rt.fromSourceMap(e)}else this.map=new rt({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new rt({file:this.outputFile()});let e=1,t=1,n="<no source>",r={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,s;this.stringify(this.root,(a,l,c)=>{if(this.css+=a,l&&c!=="end"&&(r.generated.line=e,r.generated.column=t-1,l.source&&l.source.start?(r.source=this.sourcePath(l),r.original.line=l.source.start.line,r.original.column=l.source.start.column-1,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,this.map.addMapping(r))),o=a.match(/\n/g),o?(e+=o.length,s=a.lastIndexOf(`
278
+ `),t=a.length-s):t+=a.length,l&&c!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(r.source=this.sourcePath(l),r.original.line=l.source.end.line,r.original.column=l.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?st(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=st(Ui(n,this.mapOpts.annotation)));let r=ji(n,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Fs(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Yn){let n=Yn(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Di==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var Bi=Vs;let Gs=mt,Yt=class extends Gs{constructor(e){super(e),this.type="comment"}};var vt=Yt;Yt.default=Yt;let{isClean:Hi,my:Fi}=De,Wi=bt,qi=vt,Zs=mt,Vi,fn,pn,Gi;function Zi(i){return i.map(e=>(e.nodes&&(e.nodes=Zi(e.nodes)),delete e.source,e))}function Ki(i){if(i[Hi]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)Ki(e)}let K=class Qi extends Zs{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let r of n)this.proxyOf.nodes.push(r)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...n)=>e[t](...n.map(r=>typeof r=="function"?(o,s)=>r(o.toProxy(),s):r)):t==="every"||t==="some"?n=>e[t]((r,...o)=>n(r.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let s of r)this.proxyOf.nodes.splice(n+1,0,s);let o;for(let s in this.indexes)o=this.indexes[s],n<o&&(this.indexes[s]=o+r.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),r=n===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(let a of o)this.proxyOf.nodes.splice(n,0,a);let s;for(let a in this.indexes)s=this.indexes[a],n<=s&&(this.indexes[a]=s+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Zi(Vi(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Wi(e)]}else if(e.selector)e=[new fn(e)];else if(e.name)e=[new pn(e)];else if(e.text)e=[new qi(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Fi]||Qi.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[Hi]&&Ki(r),typeof r.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(r.raws.before=t.raws.before.replace(/\S/g,"")),r.parent=this.proxyOf,r))}prepend(...e){e=e.reverse();for(let t of e){let n=this.normalize(t,this.first,"prepend").reverse();for(let r of n)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(o){throw t.addToError(o)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if(n.type==="atrule"&&n.name===e)return t(n,r)}):(t=e,this.walk((n,r)=>{if(n.type==="atrule")return t(n,r)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if(n.type==="decl"&&n.prop===e)return t(n,r)}):(t=e,this.walk((n,r)=>{if(n.type==="decl")return t(n,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if(n.type==="rule"&&n.selector===e)return t(n,r)}):(t=e,this.walk((n,r)=>{if(n.type==="rule")return t(n,r)}))}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]}};K.registerParse=i=>{Vi=i};K.registerRule=i=>{fn=i};K.registerAtRule=i=>{pn=i};K.registerRoot=i=>{Gi=i};var ue=K;K.default=K;K.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,pn.prototype):i.type==="rule"?Object.setPrototypeOf(i,fn.prototype):i.type==="decl"?Object.setPrototypeOf(i,Wi.prototype):i.type==="comment"?Object.setPrototypeOf(i,qi.prototype):i.type==="root"&&Object.setPrototypeOf(i,Gi.prototype),i[Fi]=!0,i.nodes&&i.nodes.forEach(e=>{K.rebuild(e)})};let Ks=ue,Ji,Xi,Ne=class extends Ks{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Ji(new Xi,this,e).stringify()}};Ne.registerLazyResult=i=>{Ji=i};Ne.registerProcessor=i=>{Xi=i};var gn=Ne;Ne.default=Ne;let en=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in t)this[n]=t[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Yi=en;en.default=en;let Qs=Yi,tn=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new Qs(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var mn=tn;tn.default=tn;const Ut=39,ei=34,Ze=92,ti=47,Ke=10,Ae=32,Qe=12,Je=9,Xe=13,Js=91,Xs=93,Ys=40,eo=41,to=123,no=125,io=59,ro=42,so=58,oo=64,Ye=/[\t\n\f\r "#'()/;[\\\]{}]/g,et=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ao=/.[\r\n"'(/\\]/,ni=/[\da-f]/i;var lo=function(e,t={}){let n=e.css.valueOf(),r=t.ignoreErrors,o,s,a,l,c,u,p,d,y,v,_=n.length,g=0,I=[],j=[];function X(){return g}function U(B){throw e.error("Unclosed "+B,g)}function q(){return j.length===0&&g>=_}function Ee(B){if(j.length)return j.pop();if(g>=_)return;let T=B?B.ignoreUnclosed:!1;switch(o=n.charCodeAt(g),o){case Ke:case Ae:case Je:case Xe:case Qe:{s=g;do s+=1,o=n.charCodeAt(s);while(o===Ae||o===Ke||o===Je||o===Xe||o===Qe);v=["space",n.slice(g,s)],g=s-1;break}case Js:case Xs:case to:case no:case so:case io:case eo:{let Y=String.fromCharCode(o);v=[Y,Y,g];break}case Ys:{if(d=I.length?I.pop()[1]:"",y=n.charCodeAt(g+1),d==="url"&&y!==Ut&&y!==ei&&y!==Ae&&y!==Ke&&y!==Je&&y!==Qe&&y!==Xe){s=g;do{if(u=!1,s=n.indexOf(")",s+1),s===-1)if(r||T){s=g;break}else U("bracket");for(p=s;n.charCodeAt(p-1)===Ze;)p-=1,u=!u}while(u);v=["brackets",n.slice(g,s+1),g,s],g=s}else s=n.indexOf(")",g+1),l=n.slice(g,s+1),s===-1||ao.test(l)?v=["(","(",g]:(v=["brackets",l,g,s],g=s);break}case Ut:case ei:{a=o===Ut?"'":'"',s=g;do{if(u=!1,s=n.indexOf(a,s+1),s===-1)if(r||T){s=g+1;break}else U("string");for(p=s;n.charCodeAt(p-1)===Ze;)p-=1,u=!u}while(u);v=["string",n.slice(g,s+1),g,s],g=s;break}case oo:{Ye.lastIndex=g+1,Ye.test(n),Ye.lastIndex===0?s=n.length-1:s=Ye.lastIndex-2,v=["at-word",n.slice(g,s+1),g,s],g=s;break}case Ze:{for(s=g,c=!0;n.charCodeAt(s+1)===Ze;)s+=1,c=!c;if(o=n.charCodeAt(s+1),c&&o!==ti&&o!==Ae&&o!==Ke&&o!==Je&&o!==Xe&&o!==Qe&&(s+=1,ni.test(n.charAt(s)))){for(;ni.test(n.charAt(s+1));)s+=1;n.charCodeAt(s+1)===Ae&&(s+=1)}v=["word",n.slice(g,s+1),g,s],g=s;break}default:{o===ti&&n.charCodeAt(g+1)===ro?(s=n.indexOf("*/",g+2)+1,s===0&&(r||T?s=n.length:U("comment")),v=["comment",n.slice(g,s+1),g,s],g=s):(et.lastIndex=g+1,et.test(n),et.lastIndex===0?s=n.length-1:s=et.lastIndex-2,v=["word",n.slice(g,s+1),g,s],I.push(v),g=s);break}}return g++,v}function de(B){j.push(B)}return{back:de,endOfFile:q,nextToken:Ee,position:X}};let er=ue,ut=class extends er{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var bn=ut;ut.default=ut;er.registerAtRule(ut);let tr=ue,nr,ir,be=class extends tr{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of r)o.raws.before=t.raws.before}return r}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new nr(new ir,this,e).stringify()}};be.registerLazyResult=i=>{nr=i};be.registerProcessor=i=>{ir=i};var Be=be;be.default=be;tr.registerRoot(be);let Te={comma(i){return Te.split(i,[","],!0)},space(i){let e=[" ",`
279
+ `," "];return Te.split(i,e)},split(i,e,t){let n=[],r="",o=!1,s=0,a=!1,l="",c=!1;for(let u of i)c?c=!1:u==="\\"?c=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?s+=1:u===")"?s>0&&(s-=1):s===0&&e.includes(u)&&(o=!0),o?(r!==""&&n.push(r.trim()),r="",o=!1):r+=u;return(t||r!=="")&&n.push(r.trim()),n}};var rr=Te;Te.default=Te;let sr=ue,co=rr,ht=class extends sr{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return co.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};var yn=ht;ht.default=ht;sr.registerRule(ht);let uo=bt,ho=lo,fo=vt,po=bn,go=Be,ii=yn;const ri={empty:!0,space:!0};function mo(i){for(let e=i.length-1;e>=0;e--){let t=i[e],n=t[3]||t[2];if(n)return n}}let bo=class{constructor(e){this.input=e,this.root=new go,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new po;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,r,o,s=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){a=!0;break}else if(n==="}"){if(l.length>0){for(o=l.length-1,r=l[o];r&&r[0]==="space";)r=l[--o];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),s&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,r;for(let o=t-1;o>=0&&(r=e[o],!(r[0]!=="space"&&(n+=1,n===2)));o--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,n,r,o;for(let[s,a]of e.entries()){if(n=a,r=n[0],r==="("&&(t+=1),r===")"&&(t-=1),t===0&&r===":")if(!o)this.doubleColon(n);else{if(o[0]==="word"&&o[1]==="progid")continue;return s}o=n}return!1}comment(e){let t=new fo;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let r=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=ho(this.input)}decl(e,t){let n=new uo;this.init(n,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||mo(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){n.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),n.raws.between+=o[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let s=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)s.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(o=e[c],o[1].toLowerCase()==="!important"){n.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(n.raws.important=u);break}else if(o[1].toLowerCase()==="important"){let u=e.slice(0),p="";for(let d=c;d>0;d--){let y=u[d][0];if(p.trim().indexOf("!")===0&&y!=="space")break;p=u.pop()[1]+p}p.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=p,e=u)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=s.map(c=>c[1]).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new ii;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,o=null,s=[],a=e[1].startsWith("--"),l=[],c=e;for(;c;){if(n=c[0],l.push(c),n==="("||n==="[")o||(o=c),s.push(n==="("?")":"]");else if(a&&r&&n==="{")o||(o=c),s.push("}");else if(s.length===0)if(n===";")if(r){this.decl(l,a);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),t=!0;break}else n===":"&&(r=!0);else n===s[s.length-1]&&(s.pop(),s.length===0&&(o=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(o),t&&r){if(!a)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let o,s,a=n.length,l="",c=!0,u,p;for(let d=0;d<a;d+=1)o=n[d],s=o[0],s==="space"&&d===a-1&&!r?c=!1:s==="comment"?(p=n[d-1]?n[d-1][0]:"empty",u=n[d+1]?n[d+1][0]:"empty",!ri[p]&&!ri[u]?l.slice(-1)===","?c=!1:l+=o[1]:c=!1):l+=o[1];if(!c){let d=n.reduce((y,v)=>y+v[1],"");e.raws[t]={raw:d,value:l}}e[t]=l}rule(e){e.pop();let t=new ii;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var yo=bo;let vo=ue,wo=yo,xo=yt;function dt(i,e){let t=new xo(i,e),n=new wo(t);try{n.parse()}catch(r){throw r}return n.root}var vn=dt;dt.default=dt;vo.registerParse(dt);let{isClean:W,my:Eo}=De,_o=Bi,So=gt,Ao=ue,$o=gn,si=mn,ko=vn,Co=Be;const Oo={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Po={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},Ro={Once:!0,postcssPlugin:!0,prepare:!0},ye=0;function $e(i){return typeof i=="object"&&typeof i.then=="function"}function or(i){let e=!1,t=Oo[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,ye,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,ye,t+"Exit"]:[t,t+"Exit"]}function oi(i){let e;return i.type==="document"?e=["Document",ye,"DocumentExit"]:i.type==="root"?e=["Root",ye,"RootExit"]:e=or(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function nn(i){return i[W]=!1,i.nodes&&i.nodes.forEach(e=>nn(e)),i}let rn={},ve=class ar{constructor(e,t,n){this.stringified=!1,this.processed=!1;let r;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))r=nn(t);else if(t instanceof ar||t instanceof si)r=nn(t.root),t.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let o=ko;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{r=o(t,n)}catch(s){this.processed=!0,this.error=s}r&&!r[Eo]&&Ao.rebuild(r)}this.result=new si(e,r,n),this.helpers={...rn,postcss:rn,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(t,n,r)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,r])};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!Po[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Ro[n])if(typeof t[n]=="object")for(let r in t[n])r==="*"?e(t,n,t[n][r]):e(t,n+"-"+r.toLowerCase(),t[n][r]);else typeof t[n]=="function"&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if($e(n))try{await n}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[W];){e[W]=!0;let t=[oi(e)];for(;t.length>0;){let n=this.visitTick(t);if($e(n))try{await n}catch(r){let o=t[t.length-1].node;throw this.handleError(r,o)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let r=e.nodes.map(o=>n(o,this.helpers));await Promise.all(r)}else await n(e,this.helpers)}catch(r){throw this.handleError(r)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return $e(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=So;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new _o(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if($e(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[W];)e[W]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){this.result.lastPlugin=n;let o;try{o=r(t,this.helpers)}catch(s){throw this.handleError(s,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if($e(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[s,a]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=s;try{return a(n.toProxy(),this.helpers)}catch(l){throw this.handleError(l,n)}}if(t.iterator!==0){let s=t.iterator,a;for(;a=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!a[W]){a[W]=!0,e.push(oi(a));return}t.iterator=0,delete n.indexes[s]}let o=t.events;for(;t.eventIndex<o.length;){let s=o[t.eventIndex];if(t.eventIndex+=1,s===ye){n.nodes&&n.nodes.length&&(n[W]=!0,t.iterator=n.getIterator());return}else if(this.listeners[s]){t.visitors=this.listeners[s];return}}e.pop()}walkSync(e){e[W]=!0;let t=or(e);for(let n of t)if(n===ye)e.nodes&&e.each(r=>{r[W]||this.walkSync(r)});else{let r=this.listeners[n];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};ve.registerPostcss=i=>{rn=i};var lr=ve;ve.default=ve;Co.registerLazyResult(ve);$o.registerLazyResult(ve);let Mo=Bi,No=gt,To=vn;const Io=mn;let sn=class{constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let r,o=No;this.result=new Io(this._processor,r,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let a=new Mo(o,r,this._opts,t);if(a.isMap()){let[l,c]=a.generate();l&&(this.result.css=l),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=To;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Lo=sn;sn.default=sn;let zo=Lo,jo=lr,Uo=gn,Do=Be,Ie=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length===0&&typeof t.parser>"u"&&typeof t.stringifier>"u"&&typeof t.syntax>"u"?new zo(this,e,t):new jo(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Bo=Ie;Ie.default=Ie;Do.registerProcessor(Ie);Uo.registerProcessor(Ie);let Ho=bt,Fo=Li,Wo=vt,qo=bn,Vo=yt,Go=Be,Zo=yn;function Le(i,e){if(Array.isArray(i))return i.map(r=>Le(r));let{inputs:t,...n}=i;if(t){e=[];for(let r of t){let o={...r,__proto__:Vo.prototype};o.map&&(o.map={...o.map,__proto__:Fo.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=i.nodes.map(r=>Le(r,e))),n.source){let{inputId:r,...o}=n.source;n.source=o,r!=null&&(n.source.input=e[r])}if(n.type==="root")return new Go(n);if(n.type==="decl")return new Ho(n);if(n.type==="rule")return new Zo(n);if(n.type==="comment")return new Wo(n);if(n.type==="atrule")return new qo(n);throw new Error("Unknown node type: "+i.type)}var Ko=Le;Le.default=Le;var ai={};let Qo=dn,cr=bt,Jo=lr,Xo=ue,wn=Bo,Yo=gt,ea=Ko,ur=gn,ta=Yi,hr=vt,dr=bn,na=mn,ia=yt,ra=vn,sa=rr,fr=yn,pr=Be,oa=mt;function A(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new wn(i)}A.plugin=function(e,t){let n=!1;function r(...s){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
280
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),ai.LANG&&ai.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
281
+ https://www.w3ctech.com/topic/2226`));let a=t(...s);return a.postcssPlugin=e,a.postcssVersion=new wn().version,a}let o;return Object.defineProperty(r,"postcss",{get(){return o||(o=r()),o}}),r.process=function(s,a,l){return A([r(l)]).process(s,a)},r};A.stringify=Yo;A.parse=ra;A.fromJSON=ea;A.list=sa;A.comment=i=>new hr(i);A.atRule=i=>new dr(i);A.decl=i=>new cr(i);A.rule=i=>new fr(i);A.root=i=>new pr(i);A.document=i=>new ur(i);A.CssSyntaxError=Qo;A.Declaration=cr;A.Container=Xo;A.Processor=wn;A.Document=ur;A.Comment=hr;A.Warning=ta;A.AtRule=dr;A.Result=na;A.Input=ia;A.Rule=fr;A.Root=pr;A.Node=oa;Jo.registerPostcss(A);var aa=A;A.default=A;const O=Mi(aa);O.stringify;O.fromJSON;O.plugin;O.parse;O.list;O.document;O.comment;O.atRule;O.rule;O.decl;O.root;O.CssSyntaxError;O.Declaration;O.Container;O.Processor;O.Document;O.Comment;O.Warning;O.AtRule;O.Result;O.Input;O.Rule;O.Root;O.Node;var la=function(e){const t=e.prefix,n=/\s+$/.test(t)?t:`${t} `,r=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return function(s){r.length&&s.source.input.file&&li(s.source.input.file,r)||o.length&&s.source.input.file&&!li(s.source.input.file,o)||s.walkRules(a=>{const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];a.parent&&l.includes(a.parent.name)||(a.selectors=a.selectors.map(c=>e.exclude&&ca(c,e.exclude)?c:e.transform?e.transform(t,c,n+c,s.source.input.file,a):n+c))})}};function li(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i.includes(t))}function ca(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i===t)}const ua=Mi(la),ha="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}",da="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 fa(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function gr(i){return i instanceof Map?i.clear=i.delete=i.set=function(){throw new Error("map is read-only")}:i instanceof Set&&(i.add=i.clear=i.delete=function(){throw new Error("set is read-only")}),Object.freeze(i),Object.getOwnPropertyNames(i).forEach(e=>{const t=i[e],n=typeof t;(n==="object"||n==="function")&&!Object.isFrozen(t)&&gr(t)}),i}class ci{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function mr(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function J(i,...e){const t=Object.create(null);for(const n in i)t[n]=i[n];return e.forEach(function(n){for(const r in n)t[r]=n[r]}),t}const pa="</span>",ui=i=>!!i.scope,ga=(i,{prefix:e})=>{if(i.startsWith("language:"))return i.replace("language:","language-");if(i.includes(".")){const t=i.split(".");return[`${e}${t.shift()}`,...t.map((n,r)=>`${n}${"_".repeat(r+1)}`)].join(" ")}return`${e}${i}`};class ma{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=mr(e)}openNode(e){if(!ui(e))return;const t=ga(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){ui(e)&&(this.buffer+=pa)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const hi=(i={})=>{const e={children:[]};return Object.assign(e,i),e};class xn{constructor(){this.rootNode=hi(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=hi({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(n=>this._walk(e,n)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{xn._collapse(t)}))}}class ba extends xn{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new ma(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function ze(i){return i?typeof i=="string"?i:i.source:null}function br(i){return he("(?=",i,")")}function ya(i){return he("(?:",i,")*")}function va(i){return he("(?:",i,")?")}function he(...i){return i.map(e=>ze(e)).join("")}function wa(i){const e=i[i.length-1];return typeof e=="object"&&e.constructor===Object?(i.splice(i.length-1,1),e):{}}function En(...i){return"("+(wa(i).capture?"":"?:")+i.map(e=>ze(e)).join("|")+")"}function yr(i){return new RegExp(i.toString()+"|").exec("").length-1}function xa(i,e){const t=i&&i.exec(e);return t&&t.index===0}const Ea=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _n(i,{joinWith:e}){let t=0;return i.map(n=>{t+=1;const r=t;let o=ze(n),s="";for(;o.length>0;){const a=Ea.exec(o);if(!a){s+=o;break}s+=o.substring(0,a.index),o=o.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?s+="\\"+String(Number(a[1])+r):(s+=a[0],a[0]==="("&&t++)}return s}).map(n=>`(${n})`).join(e)}const _a=/\b\B/,vr="[a-zA-Z]\\w*",Sn="[a-zA-Z_]\\w*",wr="\\b\\d+(\\.\\d+)?",xr="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Er="\\b(0b[01]+)",Sa="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Aa=(i={})=>{const e=/^#![ ]*\//;return i.binary&&(i.begin=he(e,/.*\b/,i.binary,/\b.*/)),J({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,n)=>{t.index!==0&&n.ignoreMatch()}},i)},je={begin:"\\\\[\\s\\S]",relevance:0},$a={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[je]},ka={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[je]},Ca={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/},wt=function(i,e,t={}){const n=J({scope:"comment",begin:i,end:e,contains:[]},t);n.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 r=En("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 n.contains.push({begin:he(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},Oa=wt("//","$"),Pa=wt("/\\*","\\*/"),Ra=wt("#","$"),Ma={scope:"number",begin:wr,relevance:0},Na={scope:"number",begin:xr,relevance:0},Ta={scope:"number",begin:Er,relevance:0},Ia={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[je,{begin:/\[/,end:/\]/,relevance:0,contains:[je]}]},La={scope:"title",begin:vr,relevance:0},za={scope:"title",begin:Sn,relevance:0},ja={begin:"\\.\\s*"+Sn,relevance:0},Ua=function(i){return Object.assign(i,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var tt=Object.freeze({__proto__:null,APOS_STRING_MODE:$a,BACKSLASH_ESCAPE:je,BINARY_NUMBER_MODE:Ta,BINARY_NUMBER_RE:Er,COMMENT:wt,C_BLOCK_COMMENT_MODE:Pa,C_LINE_COMMENT_MODE:Oa,C_NUMBER_MODE:Na,C_NUMBER_RE:xr,END_SAME_AS_BEGIN:Ua,HASH_COMMENT_MODE:Ra,IDENT_RE:vr,MATCH_NOTHING_RE:_a,METHOD_GUARD:ja,NUMBER_MODE:Ma,NUMBER_RE:wr,PHRASAL_WORDS_MODE:Ca,QUOTE_STRING_MODE:ka,REGEXP_MODE:Ia,RE_STARTERS_RE:Sa,SHEBANG:Aa,TITLE_MODE:La,UNDERSCORE_IDENT_RE:Sn,UNDERSCORE_TITLE_MODE:za});function Da(i,e){i.input[i.index-1]==="."&&e.ignoreMatch()}function Ba(i,e){i.className!==void 0&&(i.scope=i.className,delete i.className)}function Ha(i,e){e&&i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",i.__beforeBegin=Da,i.keywords=i.keywords||i.beginKeywords,delete i.beginKeywords,i.relevance===void 0&&(i.relevance=0))}function Fa(i,e){Array.isArray(i.illegal)&&(i.illegal=En(...i.illegal))}function Wa(i,e){if(i.match){if(i.begin||i.end)throw new Error("begin & end are not supported with match");i.begin=i.match,delete i.match}}function qa(i,e){i.relevance===void 0&&(i.relevance=1)}const Va=(i,e)=>{if(!i.beforeMatch)return;if(i.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},i);Object.keys(i).forEach(n=>{delete i[n]}),i.keywords=t.keywords,i.begin=he(t.beforeMatch,br(t.begin)),i.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},i.relevance=0,delete t.beforeMatch},Ga=["of","and","for","in","not","or","if","then","parent","list","value"],Za="keyword";function _r(i,e,t=Za){const n=Object.create(null);return typeof i=="string"?r(t,i.split(" ")):Array.isArray(i)?r(t,i):Object.keys(i).forEach(function(o){Object.assign(n,_r(i[o],e,o))}),n;function r(o,s){e&&(s=s.map(a=>a.toLowerCase())),s.forEach(function(a){const l=a.split("|");n[l[0]]=[o,Ka(l[0],l[1])]})}}function Ka(i,e){return e?Number(e):Qa(i)?0:1}function Qa(i){return Ga.includes(i.toLowerCase())}const di={},oe=i=>{console.error(i)},fi=(i,...e)=>{console.log(`WARN: ${i}`,...e)},fe=(i,e)=>{di[`${i}/${e}`]||(console.log(`Deprecated as of ${i}. ${e}`),di[`${i}/${e}`]=!0)},ft=new Error;function Sr(i,e,{key:t}){let n=0;const r=i[t],o={},s={};for(let a=1;a<=e.length;a++)s[a+n]=r[a],o[a+n]=!0,n+=yr(e[a-1]);i[t]=s,i[t]._emit=o,i[t]._multi=!0}function Ja(i){if(Array.isArray(i.begin)){if(i.skip||i.excludeBegin||i.returnBegin)throw oe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ft;if(typeof i.beginScope!="object"||i.beginScope===null)throw oe("beginScope must be object"),ft;Sr(i,i.begin,{key:"beginScope"}),i.begin=_n(i.begin,{joinWith:""})}}function Xa(i){if(Array.isArray(i.end)){if(i.skip||i.excludeEnd||i.returnEnd)throw oe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ft;if(typeof i.endScope!="object"||i.endScope===null)throw oe("endScope must be object"),ft;Sr(i,i.end,{key:"endScope"}),i.end=_n(i.end,{joinWith:""})}}function Ya(i){i.scope&&typeof i.scope=="object"&&i.scope!==null&&(i.beginScope=i.scope,delete i.scope)}function el(i){Ya(i),typeof i.beginScope=="string"&&(i.beginScope={_wrap:i.beginScope}),typeof i.endScope=="string"&&(i.endScope={_wrap:i.endScope}),Ja(i),Xa(i)}function tl(i){function e(s,a){return new RegExp(ze(s),"m"+(i.case_insensitive?"i":"")+(i.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,a]),this.matchAt+=yr(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(_n(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const c=l.findIndex((p,d)=>d>0&&p!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const l=new t;return this.rules.slice(a).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[a]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,l){this.rules.push([a,l]),l.type==="begin"&&this.count++}exec(a){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function r(s){const a=new n;return s.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&a.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&a.addRule(s.illegal,{type:"illegal"}),a}function o(s,a){const l=s;if(s.isCompiled)return l;[Ba,Wa,el,Va].forEach(u=>u(s,a)),i.compilerExtensions.forEach(u=>u(s,a)),s.__beforeBegin=null,[Ha,Fa,qa].forEach(u=>u(s,a)),s.isCompiled=!0;let c=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),c=s.keywords.$pattern,delete s.keywords.$pattern),c=c||/\w+/,s.keywords&&(s.keywords=_r(s.keywords,i.case_insensitive)),l.keywordPatternRe=e(c,!0),a&&(s.begin||(s.begin=/\B|\b/),l.beginRe=e(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=e(l.end)),l.terminatorEnd=ze(l.end)||"",s.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+a.terminatorEnd)),s.illegal&&(l.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(u){return nl(u==="self"?s:u)})),s.contains.forEach(function(u){o(u,l)}),s.starts&&o(s.starts,a),l.matcher=r(l),l}if(i.compilerExtensions||(i.compilerExtensions=[]),i.contains&&i.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return i.classNameAliases=J(i.classNameAliases||{}),o(i)}function Ar(i){return i?i.endsWithParent||Ar(i.starts):!1}function nl(i){return i.variants&&!i.cachedVariants&&(i.cachedVariants=i.variants.map(function(e){return J(i,{variants:null},e)})),i.cachedVariants?i.cachedVariants:Ar(i)?J(i,{starts:i.starts?J(i.starts):null}):Object.isFrozen(i)?J(i):i}var il="11.9.0";class rl extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Dt=mr,pi=J,gi=Symbol("nomatch"),sl=7,$r=function(i){const e=Object.create(null),t=Object.create(null),n=[];let r=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:ba};function l(h){return a.noHighlightRe.test(h)}function c(h){let m=h.className+" ";m+=h.parentNode?h.parentNode.className:"";const x=a.languageDetectRe.exec(m);if(x){const S=T(x[1]);return S||(fi(o.replace("{}",x[1])),fi("Falling back to no-highlight mode for this block.",h)),S?x[1]:"no-highlight"}return m.split(/\s+/).find(S=>l(S)||T(S))}function u(h,m,x){let S="",P="";typeof m=="object"?(S=h,x=m.ignoreIllegals,P=m.language):(fe("10.7.0","highlight(lang, code, ...args) has been deprecated."),fe("10.7.0",`Please use highlight(code, options) instead.
282
+ https://github.com/highlightjs/highlight.js/issues/2277`),P=h,S=m),x===void 0&&(x=!0);const L={code:S,language:P};ee("before:highlight",L);const Q=L.result?L.result:p(L.language,L.code,x);return Q.code=L.code,ee("after:highlight",Q),Q}function p(h,m,x,S){const P=Object.create(null);function L(f,b){return f.keywords[b]}function Q(){if(!w.keywords){M.addText(k);return}let f=0;w.keywordPatternRe.lastIndex=0;let b=w.keywordPatternRe.exec(k),E="";for(;b;){E+=k.substring(f,b.index);const $=F.case_insensitive?b[0].toLowerCase():b[0],N=L(w,$);if(N){const[V,Dr]=N;if(M.addText(E),E="",P[$]=(P[$]||0)+1,P[$]<=sl&&(qe+=Dr),V.startsWith("_"))E+=b[0];else{const Br=F.classNameAliases[V]||V;H(b[0],Br)}}else E+=b[0];f=w.keywordPatternRe.lastIndex,b=w.keywordPatternRe.exec(k)}E+=k.substring(f),M.addText(E)}function Fe(){if(k==="")return;let f=null;if(typeof w.subLanguage=="string"){if(!e[w.subLanguage]){M.addText(k);return}f=p(w.subLanguage,k,!0,On[w.subLanguage]),On[w.subLanguage]=f._top}else f=y(k,w.subLanguage.length?w.subLanguage:null);w.relevance>0&&(qe+=f.relevance),M.__addSublanguage(f._emitter,f.language)}function z(){w.subLanguage!=null?Fe():Q(),k=""}function H(f,b){f!==""&&(M.startScope(b),M.addText(f),M.endScope())}function An(f,b){let E=1;const $=b.length-1;for(;E<=$;){if(!f._emit[E]){E++;continue}const N=F.classNameAliases[f[E]]||f[E],V=b[E];N?H(V,N):(k=V,Q(),k=""),E++}}function $n(f,b){return f.scope&&typeof f.scope=="string"&&M.openNode(F.classNameAliases[f.scope]||f.scope),f.beginScope&&(f.beginScope._wrap?(H(k,F.classNameAliases[f.beginScope._wrap]||f.beginScope._wrap),k=""):f.beginScope._multi&&(An(f.beginScope,b),k="")),w=Object.create(f,{parent:{value:w}}),w}function kn(f,b,E){let $=xa(f.endRe,E);if($){if(f["on:end"]){const N=new ci(f);f["on:end"](b,N),N.isMatchIgnored&&($=!1)}if($){for(;f.endsParent&&f.parent;)f=f.parent;return f}}if(f.endsWithParent)return kn(f.parent,b,E)}function Ir(f){return w.matcher.regexIndex===0?(k+=f[0],1):(Ct=!0,0)}function Lr(f){const b=f[0],E=f.rule,$=new ci(E),N=[E.__beforeBegin,E["on:begin"]];for(const V of N)if(V&&(V(f,$),$.isMatchIgnored))return Ir(b);return E.skip?k+=b:(E.excludeBegin&&(k+=b),z(),!E.returnBegin&&!E.excludeBegin&&(k=b)),$n(E,f),E.returnBegin?0:b.length}function zr(f){const b=f[0],E=m.substring(f.index),$=kn(w,f,E);if(!$)return gi;const N=w;w.endScope&&w.endScope._wrap?(z(),H(b,w.endScope._wrap)):w.endScope&&w.endScope._multi?(z(),An(w.endScope,f)):N.skip?k+=b:(N.returnEnd||N.excludeEnd||(k+=b),z(),N.excludeEnd&&(k=b));do w.scope&&M.closeNode(),!w.skip&&!w.subLanguage&&(qe+=w.relevance),w=w.parent;while(w!==$.parent);return $.starts&&$n($.starts,f),N.returnEnd?0:b.length}function jr(){const f=[];for(let b=w;b!==F;b=b.parent)b.scope&&f.unshift(b.scope);f.forEach(b=>M.openNode(b))}let We={};function Cn(f,b){const E=b&&b[0];if(k+=f,E==null)return z(),0;if(We.type==="begin"&&b.type==="end"&&We.index===b.index&&E===""){if(k+=m.slice(b.index,b.index+1),!r){const $=new Error(`0 width match regex (${h})`);throw $.languageName=h,$.badRule=We.rule,$}return 1}if(We=b,b.type==="begin")return Lr(b);if(b.type==="illegal"&&!x){const $=new Error('Illegal lexeme "'+E+'" for mode "'+(w.scope||"<unnamed>")+'"');throw $.mode=w,$}else if(b.type==="end"){const $=zr(b);if($!==gi)return $}if(b.type==="illegal"&&E==="")return 1;if(kt>1e5&&kt>b.index*3)throw new Error("potential infinite loop, way more iterations than matches");return k+=E,E.length}const F=T(h);if(!F)throw oe(o.replace("{}",h)),new Error('Unknown language: "'+h+'"');const Ur=tl(F);let $t="",w=S||Ur;const On={},M=new a.__emitter(a);jr();let k="",qe=0,te=0,kt=0,Ct=!1;try{if(F.__emitTokens)F.__emitTokens(m,M);else{for(w.matcher.considerAll();;){kt++,Ct?Ct=!1:w.matcher.considerAll(),w.matcher.lastIndex=te;const f=w.matcher.exec(m);if(!f)break;const b=m.substring(te,f.index),E=Cn(b,f);te=f.index+E}Cn(m.substring(te))}return M.finalize(),$t=M.toHTML(),{language:h,value:$t,relevance:qe,illegal:!1,_emitter:M,_top:w}}catch(f){if(f.message&&f.message.includes("Illegal"))return{language:h,value:Dt(m),illegal:!0,relevance:0,_illegalBy:{message:f.message,index:te,context:m.slice(te-100,te+100),mode:f.mode,resultSoFar:$t},_emitter:M};if(r)return{language:h,value:Dt(m),illegal:!1,relevance:0,errorRaised:f,_emitter:M,_top:w};throw f}}function d(h){const m={value:Dt(h),illegal:!1,relevance:0,_top:s,_emitter:new a.__emitter(a)};return m._emitter.addText(h),m}function y(h,m){m=m||a.languages||Object.keys(e);const x=d(h),S=m.filter(T).filter(He).map(z=>p(z,h,!1));S.unshift(x);const P=S.sort((z,H)=>{if(z.relevance!==H.relevance)return H.relevance-z.relevance;if(z.language&&H.language){if(T(z.language).supersetOf===H.language)return 1;if(T(H.language).supersetOf===z.language)return-1}return 0}),[L,Q]=P,Fe=L;return Fe.secondBest=Q,Fe}function v(h,m,x){const S=m&&t[m]||x;h.classList.add("hljs"),h.classList.add(`language-${S}`)}function _(h){let m=null;const x=c(h);if(l(x))return;if(ee("before:highlightElement",{el:h,language:x}),h.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",h);return}if(h.children.length>0&&(a.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(h)),a.throwUnescapedHTML))throw new rl("One of your code blocks includes unescaped HTML.",h.innerHTML);m=h;const S=m.textContent,P=x?u(S,{language:x,ignoreIllegals:!0}):y(S);h.innerHTML=P.value,h.dataset.highlighted="yes",v(h,x,P.language),h.result={language:P.language,re:P.relevance,relevance:P.relevance},P.secondBest&&(h.secondBest={language:P.secondBest.language,relevance:P.secondBest.relevance}),ee("after:highlightElement",{el:h,result:P,text:S})}function g(h){a=pi(a,h)}const I=()=>{U(),fe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function j(){U(),fe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let X=!1;function U(){if(document.readyState==="loading"){X=!0;return}document.querySelectorAll(a.cssSelector).forEach(_)}function q(){X&&U()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",q,!1);function Ee(h,m){let x=null;try{x=m(i)}catch(S){if(oe("Language definition for '{}' could not be registered.".replace("{}",h)),r)oe(S);else throw S;x=s}x.name||(x.name=h),e[h]=x,x.rawDefinition=m.bind(null,i),x.aliases&&Y(x.aliases,{languageName:h})}function de(h){delete e[h];for(const m of Object.keys(t))t[m]===h&&delete t[m]}function B(){return Object.keys(e)}function T(h){return h=(h||"").toLowerCase(),e[h]||e[t[h]]}function Y(h,{languageName:m}){typeof h=="string"&&(h=[h]),h.forEach(x=>{t[x.toLowerCase()]=m})}function He(h){const m=T(h);return m&&!m.disableAutodetect}function Et(h){h["before:highlightBlock"]&&!h["before:highlightElement"]&&(h["before:highlightElement"]=m=>{h["before:highlightBlock"](Object.assign({block:m.el},m))}),h["after:highlightBlock"]&&!h["after:highlightElement"]&&(h["after:highlightElement"]=m=>{h["after:highlightBlock"](Object.assign({block:m.el},m))})}function _t(h){Et(h),n.push(h)}function St(h){const m=n.indexOf(h);m!==-1&&n.splice(m,1)}function ee(h,m){const x=h;n.forEach(function(S){S[x]&&S[x](m)})}function At(h){return fe("10.7.0","highlightBlock will be removed entirely in v12.0"),fe("10.7.0","Please use highlightElement now."),_(h)}Object.assign(i,{highlight:u,highlightAuto:y,highlightAll:U,highlightElement:_,highlightBlock:At,configure:g,initHighlighting:I,initHighlightingOnLoad:j,registerLanguage:Ee,unregisterLanguage:de,listLanguages:B,getLanguage:T,registerAliases:Y,autoDetection:He,inherit:pi,addPlugin:_t,removePlugin:St}),i.debugMode=function(){r=!1},i.safeMode=function(){r=!0},i.versionString=il,i.regex={concat:he,lookahead:br,either:En,optional:va,anyNumberOfTimes:ya};for(const h in tt)typeof tt[h]=="object"&&gr(tt[h]);return Object.assign(i,tt),i},we=$r({});we.newInstance=()=>$r({});var ol=we;we.HighlightJS=we;we.default=we;const xt=fa(ol),pt="[A-Za-z$_][0-9A-Za-z$_]*",kr=["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"],Cr=["true","false","null","undefined","NaN","Infinity"],Or=["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"],Pr=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Rr=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Mr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Nr=[].concat(Rr,Or,Pr);function al(i){const e=i.regex,t=(h,{after:m})=>{const x="</"+h[0].slice(1);return h.input.indexOf(x,m)!==-1},n=pt,r={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(h,m)=>{const x=h[0].length+h.index,S=h.input[x];if(S==="<"||S===","){m.ignoreMatch();return}S===">"&&(t(h,{after:x})||m.ignoreMatch());let P;const L=h.input.substring(x);if(P=L.match(/^\s*=/)){m.ignoreMatch();return}if((P=L.match(/^\s+extends\s+/))&&P.index===0){m.ignoreMatch();return}}},a={$pattern:pt,keyword:kr,literal:Cr,built_in:Nr,"variable.language":Mr},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},d={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},y={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,d],subLanguage:"xml"}},v={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,d],subLanguage:"css"}},_={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,d],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE,d]},I={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:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE]},j=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,y,v,_,g,{match:/\$\d+/},p];d.contains=j.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(j)});const X=[].concat(I,d.contains),U=X.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(X)}]),q={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:U},Ee={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},de={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:{_:[...Or,...Pr]}},B={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[q],illegal:/%/},Y={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function He(h){return e.concat("(?!",h.join("|"),")")}const Et={match:e.concat(/\b/,He([...Rr,"super","import"]),n,e.lookahead(/\(/)),className:"title.function",relevance:0},_t={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},St={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},q]},ee="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+i.UNDERSCORE_IDENT_RE+")\\s*=>",At={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(ee)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[q]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:U,CLASS_REFERENCE:de},illegal:/#(?![$_A-z])/,contains:[i.SHEBANG({label:"shebang",binary:"node",relevance:5}),B,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,y,v,_,g,I,{match:/\$\d+/},p,de,{className:"attr",begin:n+e.lookahead(":"),relevance:0},At,{begin:"("+i.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[I,i.REGEXP_MODE,{className:"function",begin:ee,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:i.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:U}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:o},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},T,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+i.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[q,i.inherit(i.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},_t,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[q]},Et,Y,Ee,St,{match:/\$[(.]/}]}}function ll(i){const e=al(i),t=pt,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],r={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[e.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:pt,keyword:kr.concat(a),literal:Cr,built_in:Nr.concat(n),"variable.language":Mr},c={className:"meta",begin:"@"+t},u=(d,y,v)=>{const _=d.contains.findIndex(g=>g.label===y);if(_===-1)throw new Error("can not find mode to replace");d.contains.splice(_,1,v)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,r,o]),u(e,"shebang",i.SHEBANG()),u(e,"use_strict",s);const p=e.contains.find(d=>d.label==="func.def");return p.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function cl(i){const e=i.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=i.inherit(o,{begin:/\(/,end:/\)/}),a=i.inherit(i.APOS_STRING_MODE,{className:"string"}),l=i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,l,a,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,s,l,a]}]}]},i.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const ul=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_-]*/}}),hl=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],dl=["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"],fl=["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"],pl=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],gl=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function ml(i){const e=i.regex,t=ul(i),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",o=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",a=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,n,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+fl.join("|")+")"},{begin:":(:)?("+pl.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+gl.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:r,attribute:dl.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+hl.join("|")+")\\b"}]}}const Tr=document.createElement("style");Tr.innerText=[ha,da].join(`
283
+ `);document.head.appendChild(Tr);xt.registerLanguage("typescript",ll);xt.registerLanguage("html",cl);xt.registerLanguage("css",ml);function bl(...i){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const n=document.createElement("div");return i.forEach(r=>{e.appendChild(r),r.addEventListener("click",()=>{i.forEach(o=>o.removeAttribute("selected")),r.setAttribute("selected",""),n.innerHTML="",n.appendChild(r.content),n.className=r.className,n.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(n),n.classList.add("tab-content"),i[0].setAttribute("selected",""),n.appendChild(i[0].content),t}function ke(i,e){const t=document.createElement("div");return t.role="tab",t.tabIndex=0,t.innerText=i,t.content=e,e.tagName=="PRE"&&t.classList.add("code"),t}function Oe(i,e){const t=document.createElement(i);return typeof e=="string"?t.innerHTML=e:e.forEach(n=>{t.appendChild(n)}),t}async function yl(i,e,t){var n,r,o;const s=e.mainContent,a=Oe("div",s);a.id=`example-preview-${t}`;const l=typeof e.css=="string"||(n=e.css)==null?void 0:n.label,c=typeof e.css=="string"?e.css:(r=e.css)==null?void 0:r.content,u=bl(ke("Preview",a),ke("HTML",nt("html",s)),...c?[ke(l??"CSS",nt("css",c))]:[],...e.initializer&&e.initializer.content?[ke(e.initializer.label??"TS",nt("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(d=>ke(d.label,nt(d.language,d.content))));e.description&&i.appendChild(Oe("div",e.description));const p=Oe("div",[u]);p.classList.add("example"),i.appendChild(p),c&&vl(`#${a.id}`,c),(o=e.initializer)!=null&&o.initialize&&await e.initializer.initialize(a)}function nt(i,e){let t=e.split(/\r?\n/).map(n=>{const r=n.indexOf("///");if(r>-1){const o=n.substring(r+3).trimStart();return o?n.replace(/^(\s*)([^\s].*)$/,`$1${o}`):void 0}return n}).filter(n=>typeof n<"u").join(`
284
+ `).trim();return i&&i!="raw"&&(t=xt.highlight(t,{language:i}).value),Oe("pre",[Oe("code",t)])}function vl(i,e){const t=document.createElement("style");t.innerHTML=O().use(ua({prefix:i})).process(e).css,document.head.appendChild(t)}async function wl(i,e=document.body){const t=El(e);let n=0;Object.keys(i).forEach(async r=>{const o=document.createElement("div");o.className="example-container",t.appendChild(o);const s=i[r].default;yl(o,s,n++)})}function xl(i){const e=document.createElement("div");e.id="examples-container";const t=i.querySelector("#examples");return t?t.after(e):i.appendChild(e),e}function El(i){return i.children?xl(i):i}const _l=`<h1 id="@cas-smartdesign/snackbar">@cas-smartdesign/snackbar</h1>
285
+ <p>A highly configurable element for displaying toast notifications based on <a href="https://github.com/Polymer/lit-element">lit-element</a>.</p>
286
+ <h2 id="attributes">Attributes</h2>
287
+ <ul>
288
+ <li><code>vertical-position</code>: VerticalPosition<ul>
289
+ <li>Defines the vertical anchor position of the</li>
290
+ </ul>
291
+ </li>
292
+ <li><code>horizontal-position</code>: HorizontalPosition<ul>
293
+ <li>Defines the horizontal anchor position</li>
294
+ </ul>
295
+ </li>
296
+ </ul>
297
+ <h2 id="properties">Properties</h2>
298
+ <ul>
299
+ <li><code>verticalPosition</code>, <code>horizontalPosition</code><ul>
300
+ <li>Reflects the corresponding attribute</li>
301
+ </ul>
302
+ </li>
303
+ <li><code>maxStack</code>: number<ul>
304
+ <li>Defines the max number of visible snackbar at the same time</li>
305
+ </ul>
306
+ </li>
307
+ <li><code>animationIn</code>: AnimationParams<ul>
308
+ <li>Defines the animation played when a snackbar enters the screen</li>
309
+ </ul>
310
+ </li>
311
+ <li><code>animationOut</code>: AnimationParams<ul>
312
+ <li>Defines the animation played when a snackbar leaves the screen</li>
313
+ </ul>
314
+ </li>
315
+ </ul>
316
+ <h2 id="public-typescript-types">Public TypeScript Types</h2>
317
+ <ul>
318
+ <li><code>VerticalPosition</code><ul>
319
+ <li>Defines the possible values for the vertical position</li>
320
+ <li>Possible values: <code>top</code>, <code>bottom</code></li>
321
+ </ul>
322
+ </li>
323
+ <li><code>HorizontalPosition</code><ul>
324
+ <li>Defines the possible values for the horizontal position</li>
325
+ <li>Possible values: <code>left</code>, <code>center</code>, <code>right</code></li>
326
+ </ul>
327
+ </li>
328
+ <li><code>ISnackbar</code><ul>
329
+ <li><code>id</code>: string</li>
330
+ <li><code>message</code>: HTMLElement</li>
331
+ <li><code>options</code>: ISnackbarOptions</li>
332
+ </ul>
333
+ </li>
334
+ <li><code>ISnackbarOptions</code><ul>
335
+ <li>Defines the configurable properties</li>
336
+ <li><code>autoHideDuration</code>: number<ul>
337
+ <li>Defines the amount of milliseconds before auto hiding snackbar</li>
338
+ <li>If omitted then the snackbar will be persistent</li>
339
+ </ul>
340
+ </li>
341
+ <li><code>classNames</code>: string[]<ul>
342
+ <li>Defines the classes applied to the given snackbar</li>
343
+ <li>It is useful for applying styles for specific snackbars</li>
344
+ </ul>
345
+ </li>
346
+ <li><code>waitForMouseMove</code>: boolean<ul>
347
+ <li>Defines whether if the snackbar should wait for a mouse move before setting up the timer for auto hiding</li>
348
+ </ul>
349
+ </li>
350
+ <li><code>closeAction</code>: HTMLElement<ul>
351
+ <li>Defines the element that goes in the action slot of the snackbar</li>
352
+ <li>This is useful for adding a close button for a persistent snackbar</li>
353
+ </ul>
354
+ </li>
355
+ <li><code>waitOnHover</code>: boolean<ul>
356
+ <li>Defines whether if the snackbar should wait before closing it is currently being hovered on.</li>
357
+ </ul>
358
+ </li>
359
+ </ul>
360
+ </li>
361
+ <li><code>AnimationParams</code><ul>
362
+ <li>The element uses the Web Animations API for the animations, and this interface defines the parameters for the animations.</li>
363
+ <li>Properties:<ul>
364
+ <li>keyframes: Keyframe[]</li>
365
+ <li>options: KeyFrameAnimationOptions</li>
366
+ </ul>
367
+ </li>
368
+ </ul>
369
+ </li>
370
+ </ul>
371
+ <h2 id="custom-css-properties">Custom CSS Properties</h2>
372
+ <ul>
373
+ <li><code>--sd-snackbar-height-transition-duration</code>: defines the duration of the collapsing animation of the snackbar which is played after the snackbar left the screen</li>
374
+ <li><code>--sd-snackbar-vertical-offset</code>: defines the vertical gap between the edge of the screen and the snackbar</li>
375
+ <li><code>--sd-snackbar-horizontal-offset</code>: defines the horizontal gap between the edge of the screen and the snackbar</li>
376
+ </ul>
377
+ <h2 id="public-methods">Public methods</h2>
378
+ <ul>
379
+ <li><code>open</code>: (snackbar: ISnackbar) =&gt; void<ul>
380
+ <li>Use for opening a snackbar</li>
381
+ </ul>
382
+ </li>
383
+ <li><code>close</code>: (id?: string) =&gt; void<ul>
384
+ <li>Use for closing snackbar(s)</li>
385
+ <li>If the id parameter is omitted then all snackbar are closed</li>
386
+ <li>If a correct id is supplied then the snackbar with that specific id is closed</li>
387
+ </ul>
388
+ </li>
389
+ </ul>
390
+ <h2 id="customization">Customization</h2>
391
+ <ul>
392
+ <li>Style<ul>
393
+ <li>Custom styled snackbars can be achieved by applying css to sd-snackbar and to message and action HTML elements</li>
394
+ </ul>
395
+ </li>
396
+ <li>Animation<ul>
397
+ <li>Custom animations can be set using the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API/Using_the_Web_Animations_API">Web Animations API</a></li>
398
+ <li>The animation played when:<ul>
399
+ <li>opening a snackbar can be set by the animationIn property on the SnackbarProvider</li>
400
+ <li>closing a snackbar can be set by the animationOut property on the SnackbarProvider</li>
401
+ </ul>
402
+ </li>
403
+ </ul>
404
+ </li>
405
+ </ul>
406
+ <h2 id="demo">Demo</h2>
407
+ `;document.querySelector("#markdown-container").innerHTML=_l;wl(Object.assign({"./examples/configurable_example/index.ts":Jr}));export{Cl as S};
408
+ function __vite__mapDeps(indexes) {
409
+ if (!__vite__mapDeps.viteFileDeps) {
410
+ __vite__mapDeps.viteFileDeps = []
411
+ }
412
+ return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
413
+ }