@cas-smartdesign/snackbar 3.0.2 → 3.1.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.
package/dist/docs/doc.mjs CHANGED
@@ -1,4 +1,4 @@
1
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const 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">
1
+ (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))i(t);new MutationObserver(t=>{for(const u of t)if(u.type==="childList")for(const l of u.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function n(t){const u={};return t.integrity&&(u.integrity=t.integrity),t.referrerPolicy&&(u.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?u.credentials="include":t.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(t){if(t.ep)return;t.ep=!0;const u=n(t);fetch(t.href,u)}})();const Tr="modulepreload",Ir=function(r,e){return new URL(r,e).href},Bn={},Lr=function(e,n,i){let t=Promise.resolve();if(n&&n.length>0){let h=function(s){return Promise.all(s.map(c=>Promise.resolve(c).then(o=>({status:"fulfilled",value:o}),o=>({status:"rejected",reason:o}))))};const l=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),b=p?.nonce||p?.getAttribute("nonce");t=h(n.map(s=>{if(s=Ir(s,i),s in Bn)return;Bn[s]=!0;const c=s.endsWith(".css"),o=c?'[rel="stylesheet"]':"";if(!!i)for(let g=l.length-1;g>=0;g--){const m=l[g];if(m.href===s&&(!c||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${o}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Tr,c||(d.as="script"),d.crossOrigin="",d.href=s,b&&d.setAttribute("nonce",b),document.head.appendChild(d),c)return new Promise((g,m)=>{d.addEventListener("load",g),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${s}`)))})}))}function u(l){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=l,window.dispatchEvent(p),!p.defaultPrevented)throw l}return t.then(l=>{for(const p of l||[])p.status==="rejected"&&u(p.reason);return e().catch(u)})},jr=`<div id="configurable-example-container">
2
2
  <div class="examples">
3
3
  <div class="configs">
4
4
  <label for="vertical-position">Vertical Position</label>
@@ -25,8 +25,8 @@
25
25
  <sd-snackbar-provider></sd-snackbar-provider>
26
26
  </div>
27
27
  </div>
28
- `,Vr=`<p>Play around with the configuration to see how it affects the displayed notification.</p>
29
- `,Gr=`#configurable-example-container {
28
+ `,zr=`<p>Play around with the configuration to see how it affects the displayed notification.</p>
29
+ `,Dr=`#configurable-example-container {
30
30
  display: flex;
31
31
  flex-wrap: wrap;
32
32
  }
@@ -73,7 +73,7 @@ sd-snackbar img {
73
73
  height: 16px;
74
74
  background: transparent;
75
75
  }
76
- `,Zr=`import "@cas-smartdesign/snackbar";
76
+ `,Ur=`import "@cas-smartdesign/snackbar";
77
77
  import { VerticalPosition, HorizontalPosition, SnackbarProvider } from "@cas-smartdesign/snackbar";
78
78
  import {
79
79
  createSlideAnimationParams,
@@ -163,7 +163,7 @@ function updateHorizontalPosition() {
163
163
  function updateStackSize() {
164
164
  provider.maxStack = Number.parseInt(stackInput.value);
165
165
  }
166
- `,Kr=`import { VerticalPosition, HorizontalPosition, IAnimationParams } from "@cas-smartdesign/snackbar";
166
+ `,Br=`import { VerticalPosition, HorizontalPosition, IAnimationParams } from "@cas-smartdesign/snackbar";
167
167
 
168
168
  const getPosition = (
169
169
  verticalPosition: VerticalPosition,
@@ -228,23 +228,23 @@ const createLinkElement = (): HTMLElement => {
228
228
  };
229
229
 
230
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`
231
+ `,Hr={mainContent:jr,description:zr,css:Dr,initializer:{content:Ur,type:"typescript",initialize:()=>Lr(()=>import("./configurable_example.js"),[],import.meta.url)},additionalSources:[{type:"source",language:"typescript",content:Br,label:"utils.ts"}]},qr=Object.freeze(Object.defineProperty({__proto__:null,default:Hr},Symbol.toStringTag,{value:"Module"}));const ut=globalThis,un=ut.ShadowRoot&&(ut.ShadyCSS===void 0||ut.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,hn=Symbol(),Hn=new WeakMap;let Pi=class{constructor(e,n,i){if(this._$cssResult$=!0,i!==hn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}get styleSheet(){let e=this.o;const n=this.t;if(un&&e===void 0){const i=n!==void 0&&n.length===1;i&&(e=Hn.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Hn.set(n,e))}return e}toString(){return this.cssText}};const dn=r=>new Pi(typeof r=="string"?r:r+"",void 0,hn),Ri=(r,...e)=>{const n=r.length===1?r[0]:e.reduce(((i,t,u)=>i+(l=>{if(l._$cssResult$===!0)return l.cssText;if(typeof l=="number")return l;throw Error("Value passed to 'css' function must be a 'css' function result: "+l+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(t)+r[u+1]),r[0]);return new Pi(n,r,hn)},Fr=(r,e)=>{if(un)r.adoptedStyleSheets=e.map((n=>n instanceof CSSStyleSheet?n:n.styleSheet));else for(const n of e){const i=document.createElement("style"),t=ut.litNonce;t!==void 0&&i.setAttribute("nonce",t),i.textContent=n.cssText,r.appendChild(i)}},qn=un?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let n="";for(const i of e.cssRules)n+=i.cssText;return dn(n)})(r):r;const{is:Wr,defineProperty:Gr,getOwnPropertyDescriptor:Vr,getOwnPropertyNames:Zr,getOwnPropertySymbols:Kr,getPrototypeOf:Jr}=Object,pt=globalThis,Fn=pt.trustedTypes,Qr=Fn?Fn.emptyScript:"",Xr=pt.reactiveElementPolyfillSupport,Ze=(r,e)=>r,ht={toAttribute(r,e){switch(e){case Boolean:r=r?Qr:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let n=r;switch(e){case Boolean:n=r!==null;break;case Number:n=r===null?null:Number(r);break;case Object:case Array:try{n=JSON.parse(r)}catch{n=null}}return n}},fn=(r,e)=>!Wr(r,e),Wn={attribute:!0,type:String,converter:ht,reflect:!1,useDefault:!1,hasChanged:fn};Symbol.metadata??=Symbol("metadata"),pt.litPropertyMetadata??=new WeakMap;let Le=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,n=Wn){if(n.state&&(n.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((n=Object.create(n)).wrapped=!0),this.elementProperties.set(e,n),!n.noAccessor){const i=Symbol(),t=this.getPropertyDescriptor(e,i,n);t!==void 0&&Gr(this.prototype,e,t)}}static getPropertyDescriptor(e,n,i){const{get:t,set:u}=Vr(this.prototype,e)??{get(){return this[n]},set(l){this[n]=l}};return{get:t,set(l){const p=t?.call(this);u?.call(this,l),this.requestUpdate(e,p,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Wn}static _$Ei(){if(this.hasOwnProperty(Ze("elementProperties")))return;const e=Jr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ze("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ze("properties"))){const n=this.properties,i=[...Zr(n),...Kr(n)];for(const t of i)this.createProperty(t,n[t])}const e=this[Symbol.metadata];if(e!==null){const n=litPropertyMetadata.get(e);if(n!==void 0)for(const[i,t]of n)this.elementProperties.set(i,t)}this._$Eh=new Map;for(const[n,i]of this.elementProperties){const t=this._$Eu(n,i);t!==void 0&&this._$Eh.set(t,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const n=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const t of i)n.unshift(qn(t))}else e!==void 0&&n.push(qn(e));return n}static _$Eu(e,n){const i=n.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,n=this.constructor.elementProperties;for(const i of n.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Fr(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,n,i){this._$AK(e,i)}_$ET(e,n){const i=this.constructor.elementProperties.get(e),t=this.constructor._$Eu(e,i);if(t!==void 0&&i.reflect===!0){const u=(i.converter?.toAttribute!==void 0?i.converter:ht).toAttribute(n,i.type);this._$Em=e,u==null?this.removeAttribute(t):this.setAttribute(t,u),this._$Em=null}}_$AK(e,n){const i=this.constructor,t=i._$Eh.get(e);if(t!==void 0&&this._$Em!==t){const u=i.getPropertyOptions(t),l=typeof u.converter=="function"?{fromAttribute:u.converter}:u.converter?.fromAttribute!==void 0?u.converter:ht;this._$Em=t;const p=l.fromAttribute(n,u.type);this[t]=p??this._$Ej?.get(t)??p,this._$Em=null}}requestUpdate(e,n,i){if(e!==void 0){const t=this.constructor,u=this[e];if(i??=t.getPropertyOptions(e),!((i.hasChanged??fn)(u,n)||i.useDefault&&i.reflect&&u===this._$Ej?.get(e)&&!this.hasAttribute(t._$Eu(e,i))))return;this.C(e,n,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,n,{useDefault:i,reflect:t,wrapped:u},l){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,l??n??this[e]),u!==!0||l!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(n=void 0),this._$AL.set(e,n)),t===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,u]of this._$Ep)this[t]=u;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[t,u]of i){const{wrapped:l}=u,p=this[t];l!==!0||this._$AL.has(t)||p===void 0||this.C(t,void 0,u,p)}}let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),this._$EO?.forEach((i=>i.hostUpdate?.())),this.update(n)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(n)}willUpdate(e){}_$AE(e){this._$EO?.forEach((n=>n.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((n=>this._$ET(n,this[n]))),this._$EM()}updated(e){}firstUpdated(e){}};Le.elementStyles=[],Le.shadowRootOptions={mode:"open"},Le[Ze("elementProperties")]=new Map,Le[Ze("finalized")]=new Map,Xr?.({ReactiveElement:Le}),(pt.reactiveElementVersions??=[]).push("2.1.1");const pn=globalThis,dt=pn.trustedTypes,Gn=dt?dt.createPolicy("lit-html",{createHTML:r=>r}):void 0,Mi="$lit$",we=`lit$${Math.random().toFixed(9).slice(2)}$`,Ni="?"+we,Yr=`<${Ni}>`,Ce=document,Je=()=>Ce.createComment(""),Qe=r=>r===null||typeof r!="object"&&typeof r!="function",gn=Array.isArray,es=r=>gn(r)||typeof r?.[Symbol.iterator]=="function",Mt=`[
232
+ \f\r]`,Fe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vn=/-->/g,Zn=/>/g,Se=RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^
233
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Kn=/'/g,Jn=/"/g,Ti=/^(?:script|style|textarea|title)$/i,ts=r=>(e,...n)=>({_$litType$:r,strings:e,values:n}),Ve=ts(1),$e=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),Qn=new WeakMap,Oe=Ce.createTreeWalker(Ce,129);function Ii(r,e){if(!gn(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Gn!==void 0?Gn.createHTML(e):e}const ns=(r,e)=>{const n=r.length-1,i=[];let t,u=e===2?"<svg>":e===3?"<math>":"",l=Fe;for(let p=0;p<n;p++){const b=r[p];let h,s,c=-1,o=0;for(;o<b.length&&(l.lastIndex=o,s=l.exec(b),s!==null);)o=l.lastIndex,l===Fe?s[1]==="!--"?l=Vn:s[1]!==void 0?l=Zn:s[2]!==void 0?(Ti.test(s[2])&&(t=RegExp("</"+s[2],"g")),l=Se):s[3]!==void 0&&(l=Se):l===Se?s[0]===">"?(l=t??Fe,c=-1):s[1]===void 0?c=-2:(c=l.lastIndex-s[2].length,h=s[1],l=s[3]===void 0?Se:s[3]==='"'?Jn:Kn):l===Jn||l===Kn?l=Se:l===Vn||l===Zn?l=Fe:(l=Se,t=void 0);const a=l===Se&&r[p+1].startsWith("/>")?" ":"";u+=l===Fe?b+Yr:c>=0?(i.push(h),b.slice(0,c)+Mi+b.slice(c)+we+a):b+we+(c===-2?p:a)}return[Ii(r,u+(r[n]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class Xe{constructor({strings:e,_$litType$:n},i){let t;this.parts=[];let u=0,l=0;const p=e.length-1,b=this.parts,[h,s]=ns(e,n);if(this.el=Xe.createElement(h,i),Oe.currentNode=this.el.content,n===2||n===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(t=Oe.nextNode())!==null&&b.length<p;){if(t.nodeType===1){if(t.hasAttributes())for(const c of t.getAttributeNames())if(c.endsWith(Mi)){const o=s[l++],a=t.getAttribute(c).split(we),d=/([.?@])?(.*)/.exec(o);b.push({type:1,index:u,name:d[2],strings:a,ctor:d[1]==="."?rs:d[1]==="?"?ss:d[1]==="@"?os:gt}),t.removeAttribute(c)}else c.startsWith(we)&&(b.push({type:6,index:u}),t.removeAttribute(c));if(Ti.test(t.tagName)){const c=t.textContent.split(we),o=c.length-1;if(o>0){t.textContent=dt?dt.emptyScript:"";for(let a=0;a<o;a++)t.append(c[a],Je()),Oe.nextNode(),b.push({type:2,index:++u});t.append(c[o],Je())}}}else if(t.nodeType===8)if(t.data===Ni)b.push({type:2,index:u});else{let c=-1;for(;(c=t.data.indexOf(we,c+1))!==-1;)b.push({type:7,index:u}),c+=we.length-1}u++}}static createElement(e,n){const i=Ce.createElement("template");return i.innerHTML=e,i}}function ze(r,e,n=r,i){if(e===$e)return e;let t=i!==void 0?n._$Co?.[i]:n._$Cl;const u=Qe(e)?void 0:e._$litDirective$;return t?.constructor!==u&&(t?._$AO?.(!1),u===void 0?t=void 0:(t=new u(r),t._$AT(r,n,i)),i!==void 0?(n._$Co??=[])[i]=t:n._$Cl=t),t!==void 0&&(e=ze(r,t._$AS(r,e.values),t,i)),e}let is=class{constructor(e,n){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:n},parts:i}=this._$AD,t=(e?.creationScope??Ce).importNode(n,!0);Oe.currentNode=t;let u=Oe.nextNode(),l=0,p=0,b=i[0];for(;b!==void 0;){if(l===b.index){let h;b.type===2?h=new De(u,u.nextSibling,this,e):b.type===1?h=new b.ctor(u,b.name,b.strings,this,e):b.type===6&&(h=new as(u,this,e)),this._$AV.push(h),b=i[++p]}l!==b?.index&&(u=Oe.nextNode(),l++)}return Oe.currentNode=Ce,t}p(e){let n=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,n),n+=i.strings.length-2):i._$AI(e[n])),n++}};class De{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,n,i,t){this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=i,this.options=t,this._$Cv=t?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&e?.nodeType===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=ze(this,e,n),Qe(e)?e===te||e==null||e===""?(this._$AH!==te&&this._$AR(),this._$AH=te):e!==this._$AH&&e!==$e&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):es(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==te&&Qe(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ce.createTextNode(e)),this._$AH=e}$(e){const{values:n,_$litType$:i}=e,t=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Xe.createElement(Ii(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===t)this._$AH.p(n);else{const u=new is(t,this),l=u.u(this.options);u.p(n),this.T(l),this._$AH=u}}_$AC(e){let n=Qn.get(e.strings);return n===void 0&&Qn.set(e.strings,n=new Xe(e)),n}k(e){gn(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let i,t=0;for(const u of e)t===n.length?n.push(i=new De(this.O(Je()),this.O(Je()),this,this.options)):i=n[t],i._$AI(u),t++;t<n.length&&(this._$AR(i&&i._$AB.nextSibling,t),n.length=t)}_$AR(e=this._$AA.nextSibling,n){for(this._$AP?.(!1,!0,n);e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class gt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,n,i,t,u){this.type=1,this._$AH=te,this._$AN=void 0,this.element=e,this.name=n,this._$AM=t,this.options=u,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=te}_$AI(e,n=this,i,t){const u=this.strings;let l=!1;if(u===void 0)e=ze(this,e,n,0),l=!Qe(e)||e!==this._$AH&&e!==$e,l&&(this._$AH=e);else{const p=e;let b,h;for(e=u[0],b=0;b<u.length-1;b++)h=ze(this,p[i+b],n,b),h===$e&&(h=this._$AH[b]),l||=!Qe(h)||h!==this._$AH[b],h===te?e=te:e!==te&&(e+=(h??"")+u[b+1]),this._$AH[b]=h}l&&!t&&this.j(e)}j(e){e===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class rs extends gt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===te?void 0:e}}class ss extends gt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==te)}}class os extends gt{constructor(e,n,i,t,u){super(e,n,i,t,u),this.type=5}_$AI(e,n=this){if((e=ze(this,e,n,0)??te)===$e)return;const i=this._$AH,t=e===te&&i!==te||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,u=e!==te&&(i===te||t);t&&this.element.removeEventListener(this.name,this,i),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class as{constructor(e,n,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){ze(this,e)}}const ls={I:De},cs=pn.litHtmlPolyfillSupport;cs?.(Xe,De),(pn.litHtmlVersions??=[]).push("3.3.1");const Li=(r,e,n)=>{const i=n?.renderBefore??e;let t=i._$litPart$;if(t===void 0){const u=n?.renderBefore??null;i._$litPart$=t=new De(e.insertBefore(Je(),u),u,void 0,n??{})}return t._$AI(r),t};const mn=globalThis;let je=class extends Le{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Li(n,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return $e}};je._$litElement$=!0,je.finalized=!0,mn.litElementHydrateSupport?.({LitElement:je});const us=mn.litElementPolyfillSupport;us?.({LitElement:je});(mn.litElementVersions??=[]).push("4.2.1");const hs=":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 ds={attribute:!0,type:String,converter:ht,reflect:!1,hasChanged:fn},fs=(r=ds,e,n)=>{const{kind:i,metadata:t}=n;let u=globalThis.litPropertyMetadata.get(t);if(u===void 0&&globalThis.litPropertyMetadata.set(t,u=new Map),i==="setter"&&((r=Object.create(r)).wrapped=!0),u.set(n.name,r),i==="accessor"){const{name:l}=n;return{set(p){const b=e.get.call(this);e.set.call(this,p),this.requestUpdate(l,b,r)},init(p){return p!==void 0&&this.C(l,void 0,r,p),p}}}if(i==="setter"){const{name:l}=n;return function(p){const b=this[l];e.call(this,p),this.requestUpdate(l,b,r)}}throw Error("Unsupported decorator location: "+i)};function ji(r){return(e,n)=>typeof n=="object"?fs(r,e,n):((i,t,u)=>{const l=t.hasOwnProperty(u);return t.constructor.createProperty(u,i),l?Object.getOwnPropertyDescriptor(t,u):void 0})(r,e,n)}const ps={CHILD:2},gs=r=>(...e)=>({_$litDirective$:r,values:e});class ms{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,n,i){this._$Ct=e,this._$AM=n,this._$Ci=i}_$AS(e,n){return this.update(e,n)}update(e,n){return this.render(...n)}}const{I:bs}=ls,Xn=()=>document.createComment(""),We=(r,e,n)=>{const i=r._$AA.parentNode,t=e===void 0?r._$AB:e._$AA;if(n===void 0){const u=i.insertBefore(Xn(),t),l=i.insertBefore(Xn(),t);n=new bs(u,l,r,r.options)}else{const u=n._$AB.nextSibling,l=n._$AM,p=l!==r;if(p){let b;n._$AQ?.(r),n._$AM=r,n._$AP!==void 0&&(b=r._$AU)!==l._$AU&&n._$AP(b)}if(u!==t||p){let b=n._$AA;for(;b!==u;){const h=b.nextSibling;i.insertBefore(b,t),b=h}}}return n},ke=(r,e,n=r)=>(r._$AI(e,n),r),ys={},ws=(r,e=ys)=>r._$AH=e,vs=r=>r._$AH,Nt=r=>{r._$AR(),r._$AA.remove()};const Yn=(r,e,n)=>{const i=new Map;for(let t=e;t<=n;t++)i.set(r[t],t);return i},xs=gs(class extends ms{constructor(r){if(super(r),r.type!==ps.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,e,n){let i;n===void 0?n=e:e!==void 0&&(i=e);const t=[],u=[];let l=0;for(const p of r)t[l]=i?i(p,l):l,u[l]=n(p,l),l++;return{values:u,keys:t}}render(r,e,n){return this.dt(r,e,n).values}update(r,[e,n,i]){const t=vs(r),{values:u,keys:l}=this.dt(e,n,i);if(!Array.isArray(t))return this.ut=l,u;const p=this.ut??=[],b=[];let h,s,c=0,o=t.length-1,a=0,d=u.length-1;for(;c<=o&&a<=d;)if(t[c]===null)c++;else if(t[o]===null)o--;else if(p[c]===l[a])b[a]=ke(t[c],u[a]),c++,a++;else if(p[o]===l[d])b[d]=ke(t[o],u[d]),o--,d--;else if(p[c]===l[d])b[d]=ke(t[c],u[d]),We(r,b[d+1],t[c]),c++,d--;else if(p[o]===l[a])b[a]=ke(t[o],u[a]),We(r,t[c],t[o]),o--,a++;else if(h===void 0&&(h=Yn(l,a,d),s=Yn(p,c,o)),h.has(p[c]))if(h.has(p[o])){const g=s.get(l[a]),m=g!==void 0?t[g]:null;if(m===null){const _=We(r,t[c]);ke(_,u[a]),b[a]=_}else b[a]=ke(m,u[a]),We(r,t[c],m),t[g]=null;a++}else Nt(t[o]),o--;else Nt(t[c]),c++;for(;a<=d;){const g=We(r,b[d+1]);ke(g,u[a]),b[a++]=g}for(;c<=o;){const g=t[c++];g!==null&&Nt(g)}return this.ut=l,ws(r,b),$e}});const _s=r=>r??te,Es=":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 Ss=Object.defineProperty,zi=(r,e,n,i)=>{for(var t=void 0,u=r.length-1,l;u>=0;u--)(l=r[u])&&(t=l(e,n,t)||t);return t&&Ss(e,n,t),t},fe;const bn=(fe=class extends je{constructor(){super(...arguments),this.verticalPosition="bottom",this.horizontalPosition="left",this.maxStack=3,this.shouldCloseOldest=!1,this._queue=[],this._rendered=[]}static get styles(){return[Ri`
234
+ ${dn(Es)}
235
+ `]}render(){return this.renderSnackbars(),Ve` <slot></slot> `}renderSnackbars(){Li(Ve`
236
+ ${xs(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:n})=>this.requestSnackbarClose(n))}renderSnackbar({message:e,options:n={}}){return Ve`
238
238
  <sd-snackbar
239
- class="${gs(((n=t.classNames)==null?void 0:n.length)>0?t.classNames.join(" "):void 0)}"
239
+ class="${_s(n.classNames?.length>0?n.classNames.join(" "):void 0)}"
240
240
  .animationIn="${this.animationIn}"
241
241
  .animationOut="${this.animationOut}"
242
242
  >
243
- ${this.renderSnackbarContent(e,t==null?void 0:t.closeAction)}
243
+ ${this.renderSnackbarContent(e,n?.closeAction)}
244
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 Ol=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`
245
+ `}renderSnackbarContent(e,n){return Ve` ${e}${n||""} `}updateQueue(){if(this._queue.length===0)return;const{direction:e,snackbar:n}=this._queue[0];e==="in"?this._rendered.length===this.maxStack?this.requestOldestSnackbarClose():(this.prepareSnackbarForRender(n),this._rendered.push(n),this.renderSnackbars(),this._queue.shift(),this.updateQueue()):this.requestSnackbarClose(n.id)}requestOldestSnackbarClose(){const e=this._rendered.find(({requestClose:n,options:i})=>!n&&i?.autoHideDuration);e&&(e.requestClose=!0,this._queue.unshift({snackbar:e,direction:"out"}),this.updateQueue())}requestSnackbarClose(e){const n=this._rendered.findIndex(i=>i.id===e);if(n!==-1){const i=this._rendered[n];i.closing||(i.requestClose=!0,window.clearTimeout(i.timer),this.closeSnackbar(n))}}closeSnackbar(e){const n=this._rendered[e],i=this.children.item(e);i&&(n.closing=!0,n.options?.waitOnHover&&i.matches(":hover")?i.addEventListener("mouseleave",()=>{i.close().then(()=>{this.removeSnackbarAndUpdate(n)})}):i.close().then(()=>{this.removeSnackbarAndUpdate(n)}))}removeSnackbarAndUpdate(e){this.removeSnackbarFromQueue(e),this.removeSnackbarFromRendered(e),this.requestUpdate(),this.updateComplete.then(()=>this.updateQueue())}removeSnackbarFromQueue(e){const n=this._queue.findIndex(({snackbar:i})=>i.id===e.id);n!==-1&&this._queue.splice(n,1)}removeSnackbarFromRendered(e){const n=this._rendered.findIndex(i=>i.id==e.id);n!==-1&&this._rendered.splice(n,1)}setupTimeoutForAutoHideSnackbar(e){e.timer=window.setTimeout(()=>{this._queue.push({snackbar:e,direction:"out"}),this.updateQueue()},e.options.autoHideDuration)}prepareSnackbarForRender(e){const{options:n,message:i}=e;if(i.slot="message",n){const{autoHideDuration:t,waitForMouseMove:u}=n;t&&(u?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:n}}=e;n&&(n.addEventListener("click",()=>{this._queue.unshift({snackbar:e,direction:"out"}),this.updateQueue()}),n.slot="action")}},fe.ID="sd-snackbar-provider",fe.ensureDefined=()=>{cn.ensureDefined(),customElements.get(fe.ID)||customElements.define(fe.ID,fe)},fe);zi([ji({type:String,reflect:!0,attribute:"vertical-position"})],bn.prototype,"verticalPosition");zi([ji({type:String,reflect:!0,attribute:"horizontal-position"})],bn.prototype,"horizontalPosition");let mo=bn;const Ae=class Ae extends je{static get styles(){return[Ri`
246
+ ${dn(hs)}
247
+ `]}firstUpdated(e){if(super.firstUpdated(e),this.animationIn){const{keyframes:n,options:i}=this.animationIn;this.animate(n,i)}}close(){return new Promise(e=>{if(this.animationOut){const{keyframes:n,options:i}=this.animationOut,t=this.animate(n,i);t.onfinish=()=>{this.collapse(),this.addEventListener("transitionend",({propertyName:u})=>{u==="height"&&e()})}}else this.collapse(),e()})}render(){return Ve`
248
248
  <div class="root">
249
249
  <div class="message">
250
250
  <slot name="message"></slot>
@@ -253,35 +253,38 @@ export { createSlideAnimationParams, createMessage, createErrorMessage, createCl
253
253
  <slot name="action"></slot>
254
254
  </div>
255
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=`
256
+ `}collapse(){this.style.height="0",this.style.opacity="0"}};Ae.ID="sd-snackbar",Ae.ensureDefined=()=>{customElements.get(Ae.ID)||customElements.define(Ae.ID,Ae)};let cn=Ae;function Di(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function ks(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var n=function i(){var t=!1;try{t=this instanceof i}catch{}return t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(r).forEach(function(i){var t=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(n,i,t.get?t:{enumerable:!0,get:function(){return r[i]}})}),n}var at={exports:{}},ei;function As(){if(ei)return at.exports;ei=1;var r=String,e=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};return at.exports=e(),at.exports.createColors=e,at.exports}const Os={},Cs=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"})),ce=ks(Cs);var Tt,ti;function yn(){if(ti)return Tt;ti=1;let r=As(),e=ce;class n extends Error{constructor(t,u,l,p,b,h){super(t),this.name="CssSyntaxError",this.reason=t,b&&(this.file=b),p&&(this.source=p),h&&(this.plugin=h),typeof u<"u"&&typeof l<"u"&&(typeof u=="number"?(this.line=u,this.column=l):(this.line=u.line,this.column=u.column,this.endLine=l.line,this.endColumn=l.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let u=this.source;t==null&&(t=r.isColorSupported);let l=a=>a,p=a=>a,b=a=>a;if(t){let{bold:a,gray:d,red:g}=r.createColors(!0);p=m=>a(g(m)),l=m=>d(m),e&&(b=m=>e(m))}let h=u.split(/\r?\n/),s=Math.max(this.line-3,0),c=Math.min(this.line+2,h.length),o=String(c).length;return h.slice(s,c).map((a,d)=>{let g=s+1+d,m=" "+(" "+g).slice(-o)+" | ";if(g===this.line){if(a.length>160){let E=20,v=Math.max(0,this.column-E),w=Math.max(this.column+E,this.endColumn+E),y=a.slice(v,w),S=l(m.replace(/\d/g," "))+a.slice(0,Math.min(this.column-1,E-1)).replace(/[^\t]/g," ");return p(">")+l(m)+b(y)+`
257
+ `+S+p("^")}let _=l(m.replace(/\d/g," "))+a.slice(0,this.column-1).replace(/[^\t]/g," ");return p(">")+l(m)+b(a)+`
258
+ `+_+p("^")}return" "+l(m)+b(a)}).join(`
259
+ `)}toString(){let t=this.showSourceCode();return t&&(t=`
259
260
 
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:`
261
+ `+t+`
262
+ `),this.name+": "+this.message+t}}return Tt=n,n.default=n,Tt}var It,ni;function Ui(){if(ni)return It;ni=1;const r={after:`
262
263
  `,beforeClose:`
263
264
  `,beforeComment:`
264
265
  `,beforeDecl:`
265
266
  `,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=`
267
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(i){return i[0].toUpperCase()+i.slice(1)}class n{constructor(t){this.builder=t}atrule(t,u){let l="@"+t.name,p=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?l+=t.raws.afterName:p&&(l+=" "),t.nodes)this.block(t,l+p);else{let b=(t.raws.between||"")+(u?";":"");this.builder(l+p+b,t)}}beforeAfter(t,u){let l;t.type==="decl"?l=this.raw(t,null,"beforeDecl"):t.type==="comment"?l=this.raw(t,null,"beforeComment"):u==="before"?l=this.raw(t,null,"beforeRule"):l=this.raw(t,null,"beforeClose");let p=t.parent,b=0;for(;p&&p.type!=="root";)b+=1,p=p.parent;if(l.includes(`
268
+ `)){let h=this.raw(t,null,"indent");if(h.length)for(let s=0;s<b;s++)l+=h}return l}block(t,u){let l=this.raw(t,"between","beforeOpen");this.builder(u+l+"{",t,"start");let p;t.nodes&&t.nodes.length?(this.body(t),p=this.raw(t,"after")):p=this.raw(t,"after","emptyBody"),p&&this.builder(p),this.builder("}",t,"end")}body(t){let u=t.nodes.length-1;for(;u>0&&t.nodes[u].type==="comment";)u-=1;let l=this.raw(t,"semicolon");for(let p=0;p<t.nodes.length;p++){let b=t.nodes[p],h=this.raw(b,"before");h&&this.builder(h),this.stringify(b,u!==p||l)}}comment(t){let u=this.raw(t,"left","commentLeft"),l=this.raw(t,"right","commentRight");this.builder("/*"+u+t.text+l+"*/",t)}decl(t,u){let l=this.raw(t,"between","colon"),p=t.prop+l+this.rawValue(t,"value");t.important&&(p+=t.raws.important||" !important"),u&&(p+=";"),this.builder(p,t)}document(t){this.body(t)}raw(t,u,l){let p;if(l||(l=u),u&&(p=t.raws[u],typeof p<"u"))return p;let b=t.parent;if(l==="before"&&(!b||b.type==="root"&&b.first===t||b&&b.type==="document"))return"";if(!b)return r[l];let h=t.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[l]<"u")return h.rawCache[l];if(l==="before"||l==="after")return this.beforeAfter(t,l);{let s="raw"+e(l);this[s]?p=this[s](h,t):h.walk(c=>{if(p=c.raws[u],typeof p<"u")return!1})}return typeof p>"u"&&(p=r[l]),h.rawCache[l]=p,p}rawBeforeClose(t){let u;return t.walk(l=>{if(l.nodes&&l.nodes.length>0&&typeof l.raws.after<"u")return u=l.raws.after,u.includes(`
269
+ `)&&(u=u.replace(/[^\n]+$/,"")),!1}),u&&(u=u.replace(/\S/g,"")),u}rawBeforeComment(t,u){let l;return t.walkComments(p=>{if(typeof p.raws.before<"u")return l=p.raws.before,l.includes(`
270
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(u,null,"beforeDecl"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeDecl(t,u){let l;return t.walkDecls(p=>{if(typeof p.raws.before<"u")return l=p.raws.before,l.includes(`
271
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(u,null,"beforeRule"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeOpen(t){let u;return t.walk(l=>{if(l.type!=="decl"&&(u=l.raws.between,typeof u<"u"))return!1}),u}rawBeforeRule(t){let u;return t.walk(l=>{if(l.nodes&&(l.parent!==t||t.first!==l)&&typeof l.raws.before<"u")return u=l.raws.before,u.includes(`
272
+ `)&&(u=u.replace(/[^\n]+$/,"")),!1}),u&&(u=u.replace(/\S/g,"")),u}rawColon(t){let u;return t.walkDecls(l=>{if(typeof l.raws.between<"u")return u=l.raws.between.replace(/[^\s:]/g,""),!1}),u}rawEmptyBody(t){let u;return t.walk(l=>{if(l.nodes&&l.nodes.length===0&&(u=l.raws.after,typeof u<"u"))return!1}),u}rawIndent(t){if(t.raws.indent)return t.raws.indent;let u;return t.walk(l=>{let p=l.parent;if(p&&p!==t&&p.parent&&p.parent===t&&typeof l.raws.before<"u"){let b=l.raws.before.split(`
273
+ `);return u=b[b.length-1],u=u.replace(/\S/g,""),!1}}),u}rawSemicolon(t){let u;return t.walk(l=>{if(l.nodes&&l.nodes.length&&l.last.type==="decl"&&(u=l.raws.semicolon,typeof u<"u"))return!1}),u}rawValue(t,u){let l=t[u],p=t.raws[u];return p&&p.value===l?p.raw:l}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,u){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,u)}}return It=n,n.default=n,It}var Lt,ii;function mt(){if(ii)return Lt;ii=1;let r=Ui();function e(n,i){new r(i).stringify(n)}return Lt=e,e.default=e,Lt}var lt={},ri;function wn(){return ri||(ri=1,lt.isClean=Symbol("isClean"),lt.my=Symbol("my")),lt}var jt,si;function bt(){if(si)return jt;si=1;let r=yn(),e=Ui(),n=mt(),{isClean:i,my:t}=wn();function u(b,h){let s=new b.constructor;for(let c in b){if(!Object.prototype.hasOwnProperty.call(b,c)||c==="proxyCache")continue;let o=b[c],a=typeof o;c==="parent"&&a==="object"?h&&(s[c]=h):c==="source"?s[c]=o:Array.isArray(o)?s[c]=o.map(d=>u(d,s)):(a==="object"&&o!==null&&(o=u(o)),s[c]=o)}return s}function l(b,h){if(h&&typeof h.offset<"u")return h.offset;let s=1,c=1,o=0;for(let a=0;a<b.length;a++){if(c===h.line&&s===h.column){o=a;break}b[a]===`
274
+ `?(s=1,c+=1):s+=1}return o}class p{get proxyOf(){return this}constructor(h={}){this.raws={},this[i]=!1,this[t]=!0;for(let s in h)if(s==="nodes"){this.nodes=[];for(let c of h[s])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[s]=h[s]}addToError(h){if(h.postcssNode=this,h.stack&&this.source&&/\n\s{4}at /.test(h.stack)){let s=this.source;h.stack=h.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return h}after(h){return this.parent.insertAfter(this,h),this}assign(h={}){for(let s in h)this[s]=h[s];return this}before(h){return this.parent.insertBefore(this,h),this}cleanRaws(h){delete this.raws.before,delete this.raws.after,h||delete this.raws.between}clone(h={}){let s=u(this);for(let c in h)s[c]=h[c];return s}cloneAfter(h={}){let s=this.clone(h);return this.parent.insertAfter(this,s),s}cloneBefore(h={}){let s=this.clone(h);return this.parent.insertBefore(this,s),s}error(h,s={}){if(this.source){let{end:c,start:o}=this.rangeBy(s);return this.source.input.error(h,{column:o.column,line:o.line},{column:c.column,line:c.line},s)}return new r(h)}getProxyProcessor(){return{get(h,s){return s==="proxyOf"?h:s==="root"?()=>h.root().toProxy():h[s]},set(h,s,c){return h[s]===c||(h[s]=c,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&h.markDirty()),!0}}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;let h=this;for(;h=h.parent;)h[i]=!1}}next(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h+1]}positionBy(h={}){let s=this.source.start;if(h.index)s=this.positionInside(h.index);else if(h.word){let c="document"in this.source.input?this.source.input.document:this.source.input.css,a=c.slice(l(c,this.source.start),l(c,this.source.end)).indexOf(h.word);a!==-1&&(s=this.positionInside(a))}return s}positionInside(h){let s=this.source.start.column,c=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,a=l(o,this.source.start),d=a+h;for(let g=a;g<d;g++)o[g]===`
275
+ `?(s=1,c+=1):s+=1;return{column:s,line:c,offset:d}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h={}){let s="document"in this.source.input?this.source.input.document:this.source.input.css,c={column:this.source.start.column,line:this.source.start.line,offset:l(s,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:l(s,this.source.end)+1}:{column:c.column+1,line:c.line,offset:c.offset+1};if(h.word){let d=s.slice(l(s,this.source.start),l(s,this.source.end)).indexOf(h.word);d!==-1&&(c=this.positionInside(d),o=this.positionInside(d+h.word.length))}else h.start?c={column:h.start.column,line:h.start.line,offset:l(s,h.start)}:h.index&&(c=this.positionInside(h.index)),h.end?o={column:h.end.column,line:h.end.line,offset:l(s,h.end)}:typeof h.endIndex=="number"?o=this.positionInside(h.endIndex):h.index&&(o=this.positionInside(h.index+1));return(o.line<c.line||o.line===c.line&&o.column<=c.column)&&(o={column:c.column+1,line:c.line,offset:c.offset+1}),{end:o,start:c}}raw(h,s){return new e().raw(this,h,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let s=this,c=!1;for(let o of h)o===this?c=!0:c?(this.parent.insertAfter(s,o),s=o):this.parent.insertBefore(s,o);c||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,s){let c={},o=s==null;s=s||new Map;let a=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let g=this[d];if(Array.isArray(g))c[d]=g.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,s):m);else if(typeof g=="object"&&g.toJSON)c[d]=g.toJSON(null,s);else if(d==="source"){if(g==null)continue;let m=s.get(g.input);m==null&&(m=a,s.set(g.input,a),a++),c[d]={end:g.end,inputId:m,start:g.start}}else c[d]=g}return o&&(c.inputs=[...s.keys()].map(d=>d.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=n){h.stringify&&(h=h.stringify);let s="";return h(this,c=>{s+=c}),s}warn(h,s,c={}){let o={node:this};for(let a in c)o[a]=c[a];return h.warn(s,o)}}return jt=p,p.default=p,jt}var zt,oi;function yt(){if(oi)return zt;oi=1;let r=bt();class e extends r{constructor(i){super(i),this.type="comment"}}return zt=e,e.default=e,zt}var Dt,ai;function wt(){if(ai)return Dt;ai=1;let r=bt();class e extends r{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}}return Dt=e,e.default=e,Dt}var Ut,li;function Pe(){if(li)return Ut;li=1;let r=yt(),e=wt(),n=bt(),{isClean:i,my:t}=wn(),u,l,p,b;function h(o){return o.map(a=>(a.nodes&&(a.nodes=h(a.nodes)),delete a.source,a))}function s(o){if(o[i]=!1,o.proxyOf.nodes)for(let a of o.proxyOf.nodes)s(a)}class c extends n{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...a){for(let d of a){let g=this.normalize(d,this.last);for(let m of g)this.proxyOf.nodes.push(m)}return this.markDirty(),this}cleanRaws(a){if(super.cleanRaws(a),this.nodes)for(let d of this.nodes)d.cleanRaws(a)}each(a){if(!this.proxyOf.nodes)return;let d=this.getIterator(),g,m;for(;this.indexes[d]<this.proxyOf.nodes.length&&(g=this.indexes[d],m=a(this.proxyOf.nodes[g],g),m!==!1);)this.indexes[d]+=1;return delete this.indexes[d],m}every(a){return this.nodes.every(a)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let a=this.lastEach;return this.indexes[a]=0,a}getProxyProcessor(){return{get(a,d){return d==="proxyOf"?a:a[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...g)=>a[d](...g.map(m=>typeof m=="function"?(_,E)=>m(_.toProxy(),E):m)):d==="every"||d==="some"?g=>a[d]((m,..._)=>g(m.toProxy(),..._)):d==="root"?()=>a.root().toProxy():d==="nodes"?a.nodes.map(g=>g.toProxy()):d==="first"||d==="last"?a[d].toProxy():a[d]:a[d]},set(a,d,g){return a[d]===g||(a[d]=g,(d==="name"||d==="params"||d==="selector")&&a.markDirty()),!0}}}index(a){return typeof a=="number"?a:(a.proxyOf&&(a=a.proxyOf),this.proxyOf.nodes.indexOf(a))}insertAfter(a,d){let g=this.index(a),m=this.normalize(d,this.proxyOf.nodes[g]).reverse();g=this.index(a);for(let E of m)this.proxyOf.nodes.splice(g+1,0,E);let _;for(let E in this.indexes)_=this.indexes[E],g<_&&(this.indexes[E]=_+m.length);return this.markDirty(),this}insertBefore(a,d){let g=this.index(a),m=g===0?"prepend":!1,_=this.normalize(d,this.proxyOf.nodes[g],m).reverse();g=this.index(a);for(let v of _)this.proxyOf.nodes.splice(g,0,v);let E;for(let v in this.indexes)E=this.indexes[v],g<=E&&(this.indexes[v]=E+_.length);return this.markDirty(),this}normalize(a,d){if(typeof a=="string")a=h(l(a).nodes);else if(typeof a>"u")a=[];else if(Array.isArray(a)){a=a.slice(0);for(let m of a)m.parent&&m.parent.removeChild(m,"ignore")}else if(a.type==="root"&&this.type!=="document"){a=a.nodes.slice(0);for(let m of a)m.parent&&m.parent.removeChild(m,"ignore")}else if(a.type)a=[a];else if(a.prop){if(typeof a.value>"u")throw new Error("Value field is missed in node creation");typeof a.value!="string"&&(a.value=String(a.value)),a=[new e(a)]}else if(a.selector||a.selectors)a=[new b(a)];else if(a.name)a=[new u(a)];else if(a.text)a=[new r(a)];else throw new Error("Unknown node type in node creation");return a.map(m=>(m[t]||c.rebuild(m),m=m.proxyOf,m.parent&&m.parent.removeChild(m),m[i]&&s(m),m.raws||(m.raws={}),typeof m.raws.before>"u"&&d&&typeof d.raws.before<"u"&&(m.raws.before=d.raws.before.replace(/\S/g,"")),m.parent=this.proxyOf,m))}prepend(...a){a=a.reverse();for(let d of a){let g=this.normalize(d,this.first,"prepend").reverse();for(let m of g)this.proxyOf.nodes.unshift(m);for(let m in this.indexes)this.indexes[m]=this.indexes[m]+g.length}return this.markDirty(),this}push(a){return a.parent=this,this.proxyOf.nodes.push(a),this}removeAll(){for(let a of this.proxyOf.nodes)a.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(a){a=this.index(a),this.proxyOf.nodes[a].parent=void 0,this.proxyOf.nodes.splice(a,1);let d;for(let g in this.indexes)d=this.indexes[g],d>=a&&(this.indexes[g]=d-1);return this.markDirty(),this}replaceValues(a,d,g){return g||(g=d,d={}),this.walkDecls(m=>{d.props&&!d.props.includes(m.prop)||d.fast&&!m.value.includes(d.fast)||(m.value=m.value.replace(a,g))}),this.markDirty(),this}some(a){return this.nodes.some(a)}walk(a){return this.each((d,g)=>{let m;try{m=a(d,g)}catch(_){throw d.addToError(_)}return m!==!1&&d.walk&&(m=d.walk(a)),m})}walkAtRules(a,d){return d?a instanceof RegExp?this.walk((g,m)=>{if(g.type==="atrule"&&a.test(g.name))return d(g,m)}):this.walk((g,m)=>{if(g.type==="atrule"&&g.name===a)return d(g,m)}):(d=a,this.walk((g,m)=>{if(g.type==="atrule")return d(g,m)}))}walkComments(a){return this.walk((d,g)=>{if(d.type==="comment")return a(d,g)})}walkDecls(a,d){return d?a instanceof RegExp?this.walk((g,m)=>{if(g.type==="decl"&&a.test(g.prop))return d(g,m)}):this.walk((g,m)=>{if(g.type==="decl"&&g.prop===a)return d(g,m)}):(d=a,this.walk((g,m)=>{if(g.type==="decl")return d(g,m)}))}walkRules(a,d){return d?a instanceof RegExp?this.walk((g,m)=>{if(g.type==="rule"&&a.test(g.selector))return d(g,m)}):this.walk((g,m)=>{if(g.type==="rule"&&g.selector===a)return d(g,m)}):(d=a,this.walk((g,m)=>{if(g.type==="rule")return d(g,m)}))}}return c.registerParse=o=>{l=o},c.registerRule=o=>{b=o},c.registerAtRule=o=>{u=o},c.registerRoot=o=>{p=o},Ut=c,c.default=c,c.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,u.prototype):o.type==="rule"?Object.setPrototypeOf(o,b.prototype):o.type==="decl"?Object.setPrototypeOf(o,e.prototype):o.type==="comment"?Object.setPrototypeOf(o,r.prototype):o.type==="root"&&Object.setPrototypeOf(o,p.prototype),o[t]=!0,o.nodes&&o.nodes.forEach(a=>{c.rebuild(a)})},Ut}var Bt,ci;function vn(){if(ci)return Bt;ci=1;let r=Pe();class e extends r{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return Bt=e,e.default=e,r.registerAtRule(e),Bt}var Ht,ui;function xn(){if(ui)return Ht;ui=1;let r=Pe(),e,n;class i extends r{constructor(u){super({type:"document",...u}),this.nodes||(this.nodes=[])}toResult(u={}){return new e(new n,this,u).stringify()}}return i.registerLazyResult=t=>{e=t},i.registerProcessor=t=>{n=t},Ht=i,i.default=i,Ht}var qt,hi;function $s(){if(hi)return qt;hi=1;let r="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return qt={nanoid:(i=21)=>{let t="",u=i|0;for(;u--;)t+=r[Math.random()*64|0];return t},customAlphabet:(i,t=21)=>(u=t)=>{let l="",p=u|0;for(;p--;)l+=i[Math.random()*i.length|0];return l}},qt}var Ft,di;function Bi(){if(di)return Ft;di=1;let{existsSync:r,readFileSync:e}=ce,{dirname:n,join:i}=ce,{SourceMapConsumer:t,SourceMapGenerator:u}=ce;function l(b){return Buffer?Buffer.from(b,"base64").toString():window.atob(b)}class p{constructor(h,s){if(s.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let c=s.map?s.map.prev:void 0,o=this.loadMap(s.from,c);!this.mapFile&&s.from&&(this.mapFile=s.from),this.mapFile&&(this.root=n(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new t(this.text)),this.consumerCache}decodeInline(h){let s=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/,d=h.match(o)||h.match(a);if(d)return decodeURIComponent(h.substr(d[0].length));let g=h.match(s)||h.match(c);if(g)return l(h.substr(g[0].length));let m=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let s=h.match(/\/\*\s*# sourceMappingURL=/g);if(!s)return;let c=h.lastIndexOf(s.pop()),o=h.indexOf("*/",c);c>-1&&o>-1&&(this.annotation=this.getAnnotationURL(h.substring(c,o)))}loadFile(h){if(this.root=n(h),r(h))return this.mapFile=h,e(h,"utf-8").toString().trim()}loadMap(h,s){if(s===!1)return!1;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let c=s(h);if(c){let o=this.loadFile(c);if(!o)throw new Error("Unable to load previous source map: "+c.toString());return o}}else{if(s instanceof t)return u.fromSourceMap(s).toString();if(s instanceof u)return s.toString();if(this.isMap(s))return JSON.stringify(s);throw new Error("Unsupported previous source map format: "+s.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return h&&(c=i(n(h),c)),this.loadFile(c)}}}startWith(h,s){return h?h.substr(0,s.length)===s:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Ft=p,p.default=p,Ft}var Wt,fi;function vt(){if(fi)return Wt;fi=1;let{nanoid:r}=$s(),{isAbsolute:e,resolve:n}=ce,{SourceMapConsumer:i,SourceMapGenerator:t}=ce,{fileURLToPath:u,pathToFileURL:l}=ce,p=yn(),b=Bi(),h=ce,s=Symbol("lineToIndexCache"),c=!!(i&&t),o=!!(n&&e);function a(g){if(g[s])return g[s];let m=g.css.split(`
276
+ `),_=new Array(m.length),E=0;for(let v=0,w=m.length;v<w;v++)_[v]=E,E+=m[v].length+1;return g[s]=_,_}class d{get from(){return this.file||this.id}constructor(m,_={}){if(m===null||typeof m>"u"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,_.document&&(this.document=_.document.toString()),_.from&&(!o||/^\w+:\/\//.test(_.from)||e(_.from)?this.file=_.from:this.file=n(_.from)),o&&c){let E=new b(this.css,_);if(E.text){this.map=E;let v=E.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+r(6)+">"),this.map&&(this.map.file=this.from)}error(m,_,E,v={}){let w,y,S,C,I;if(_&&typeof _=="object"){let N=_,K=E;if(typeof N.offset=="number"){C=N.offset;let q=this.fromOffset(C);_=q.line,E=q.col}else _=N.line,E=N.column,C=this.fromLineAndColumn(_,E);if(typeof K.offset=="number"){S=K.offset;let q=this.fromOffset(S);y=q.line,w=q.col}else y=K.line,w=K.column,S=this.fromLineAndColumn(K.line,K.column)}else if(E)C=this.fromLineAndColumn(_,E);else{C=_;let N=this.fromOffset(C);_=N.line,E=N.col}let U=this.origin(_,E,y,w);return U?I=new p(m,U.endLine===void 0?U.line:{column:U.column,line:U.line},U.endLine===void 0?U.column:{column:U.endColumn,line:U.endLine},U.source,U.file,v.plugin):I=new p(m,y===void 0?_:{column:E,line:_},y===void 0?E:{column:w,line:y},this.css,this.file,v.plugin),I.input={column:E,endColumn:w,endLine:y,endOffset:S,line:_,offset:C,source:this.css},this.file&&(l&&(I.input.url=l(this.file).toString()),I.input.file=this.file),I}fromLineAndColumn(m,_){return a(this)[m-1]+_-1}fromOffset(m){let _=a(this),E=_[_.length-1],v=0;if(m>=E)v=_.length-1;else{let w=_.length-2,y;for(;v<w;)if(y=v+(w-v>>1),m<_[y])w=y-1;else if(m>=_[y+1])v=y+1;else{v=y;break}}return{col:m-_[v]+1,line:v+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:n(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,_,E,v){if(!this.map)return!1;let w=this.map.consumer(),y=w.originalPositionFor({column:_,line:m});if(!y.source)return!1;let S;typeof E=="number"&&(S=w.originalPositionFor({column:v,line:E}));let C;e(y.source)?C=l(y.source):C=new URL(y.source,this.map.consumer().sourceRoot||l(this.map.mapFile));let I={column:y.column,endColumn:S&&S.column,endLine:S&&S.line,line:y.line,url:C.toString()};if(C.protocol==="file:")if(u)I.file=u(C);else throw new Error("file: protocol is not available in this PostCSS build");let U=w.sourceContentFor(y.source);return U&&(I.source=U),I}toJSON(){let m={};for(let _ of["hasBOM","css","file","id"])this[_]!=null&&(m[_]=this[_]);return this.map&&(m.map={...this.map},m.map.consumerCache&&(m.map.consumerCache=void 0)),m}}return Wt=d,d.default=d,h&&h.registerInput&&h.registerInput(d),Wt}var Gt,pi;function Ye(){if(pi)return Gt;pi=1;let r=Pe(),e,n;class i extends r{constructor(u){super(u),this.type="root",this.nodes||(this.nodes=[])}normalize(u,l,p){let b=super.normalize(u);if(l){if(p==="prepend")this.nodes.length>1?l.raws.before=this.nodes[1].raws.before:delete l.raws.before;else if(this.first!==l)for(let h of b)h.raws.before=l.raws.before}return b}removeChild(u,l){let p=this.index(u);return!l&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(u)}toResult(u={}){return new e(new n,this,u).stringify()}}return i.registerLazyResult=t=>{e=t},i.registerProcessor=t=>{n=t},Gt=i,i.default=i,r.registerRoot(i),Gt}var Vt,gi;function Hi(){if(gi)return Vt;gi=1;let r={comma(e){return r.split(e,[","],!0)},space(e){let n=[" ",`
277
+ `," "];return r.split(e,n)},split(e,n,i){let t=[],u="",l=!1,p=0,b=!1,h="",s=!1;for(let c of e)s?s=!1:c==="\\"?s=!0:b?c===h&&(b=!1):c==='"'||c==="'"?(b=!0,h=c):c==="("?p+=1:c===")"?p>0&&(p-=1):p===0&&n.includes(c)&&(l=!0),l?(u!==""&&t.push(u.trim()),u="",l=!1):u+=c;return(i||u!=="")&&t.push(u.trim()),t}};return Vt=r,r.default=r,Vt}var Zt,mi;function _n(){if(mi)return Zt;mi=1;let r=Pe(),e=Hi();class n extends r{get selectors(){return e.comma(this.selector)}set selectors(t){let u=this.selector?this.selector.match(/,\s*/):null,l=u?u[0]:","+this.raw("between","beforeOpen");this.selector=t.join(l)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}}return Zt=n,n.default=n,r.registerRule(n),Zt}var Kt,bi;function Ps(){if(bi)return Kt;bi=1;let r=vn(),e=yt(),n=wt(),i=vt(),t=Bi(),u=Ye(),l=_n();function p(b,h){if(Array.isArray(b))return b.map(o=>p(o));let{inputs:s,...c}=b;if(s){h=[];for(let o of s){let a={...o,__proto__:i.prototype};a.map&&(a.map={...a.map,__proto__:t.prototype}),h.push(a)}}if(c.nodes&&(c.nodes=b.nodes.map(o=>p(o,h))),c.source){let{inputId:o,...a}=c.source;c.source=a,o!=null&&(c.source.input=h[o])}if(c.type==="root")return new u(c);if(c.type==="decl")return new n(c);if(c.type==="rule")return new l(c);if(c.type==="comment")return new e(c);if(c.type==="atrule")return new r(c);throw new Error("Unknown node type: "+b.type)}return Kt=p,p.default=p,Kt}var Jt,yi;function qi(){if(yi)return Jt;yi=1;let{dirname:r,relative:e,resolve:n,sep:i}=ce,{SourceMapConsumer:t,SourceMapGenerator:u}=ce,{pathToFileURL:l}=ce,p=vt(),b=!!(t&&u),h=!!(r&&n&&e&&i);class s{constructor(o,a,d,g){this.stringify=o,this.mapOpts=d.map||{},this.root=a,this.opts=d,this.css=g,this.originalCSS=g,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let o;this.isInline()?o="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?o=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?o=this.mapOpts.annotation(this.opts.to,this.root):o=this.outputFile()+".map";let a=`
275
278
  `;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>
279
+ `)&&(a=`\r
280
+ `),this.css+=a+"/*# sourceMappingURL="+o+" */"}applyPrevMaps(){for(let o of this.previous()){let a=this.toUrl(this.path(o.file)),d=o.root||r(o.file),g;this.mapOpts.sourcesContent===!1?(g=new t(o.text),g.sourcesContent&&(g.sourcesContent=null)):g=o.consumer(),this.map.applySourceMap(g,a,this.toUrl(this.path(d)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let o;for(let a=this.root.nodes.length-1;a>=0;a--)o=this.root.nodes[a],o.type==="comment"&&o.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(a)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&b&&this.isMap())return this.generateMap();{let o="";return this.stringify(this.root,a=>{o+=a}),[o]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let o=this.previous()[0].consumer();o.file=this.outputFile(),this.map=u.fromSourceMap(o,{ignoreInvalidMapping:!0})}else this.map=new u({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new u({file:this.outputFile(),ignoreInvalidMapping:!0});let o=1,a=1,d="<no source>",g={generated:{column:0,line:0},original:{column:0,line:0},source:""},m,_;this.stringify(this.root,(E,v,w)=>{if(this.css+=E,v&&w!=="end"&&(g.generated.line=o,g.generated.column=a-1,v.source&&v.source.start?(g.source=this.sourcePath(v),g.original.line=v.source.start.line,g.original.column=v.source.start.column-1,this.map.addMapping(g)):(g.source=d,g.original.line=1,g.original.column=0,this.map.addMapping(g))),_=E.match(/\n/g),_?(o+=_.length,m=E.lastIndexOf(`
281
+ `),a=E.length-m):a+=E.length,v&&w!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(g.source=this.sourcePath(v),g.original.line=v.source.end.line,g.original.column=v.source.end.column-1,g.generated.line=o,g.generated.column=a-2,this.map.addMapping(g)):(g.source=d,g.original.line=1,g.original.column=0,g.generated.line=o,g.generated.column=a-1,this.map.addMapping(g)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(o=>o.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let o=this.mapOpts.annotation;return typeof o<"u"&&o!==!0?!1:this.previous().length?this.previous().some(a=>a.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(o=>o.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(o){if(this.mapOpts.absolute||o.charCodeAt(0)===60||/^\w+:\/\//.test(o))return o;let a=this.memoizedPaths.get(o);if(a)return a;let d=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=r(n(d,this.mapOpts.annotation)));let g=e(d,o);return this.memoizedPaths.set(o,g),g}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let a=o.source.input.map;this.previousMaps.includes(a)||this.previousMaps.push(a)}});else{let o=new p(this.originalCSS,this.opts);o.map&&this.previousMaps.push(o.map)}return this.previousMaps}setSourcesContent(){let o={};if(this.root)this.root.walk(a=>{if(a.source){let d=a.source.input.from;if(d&&!o[d]){o[d]=!0;let g=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(g,a.source.input.css)}}});else if(this.css){let a=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(a,this.css)}}sourcePath(o){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(o.source.input.from):this.toUrl(this.path(o.source.input.from))}toBase64(o){return Buffer?Buffer.from(o).toString("base64"):window.btoa(unescape(encodeURIComponent(o)))}toFileUrl(o){let a=this.memoizedFileURLs.get(o);if(a)return a;if(l){let d=l(o).toString();return this.memoizedFileURLs.set(o,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(o){let a=this.memoizedURLs.get(o);if(a)return a;i==="\\"&&(o=o.replace(/\\/g,"/"));let d=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,d),d}}return Jt=s,Jt}var Qt,wi;function Rs(){if(wi)return Qt;wi=1;const r=39,e=34,n=92,i=47,t=10,u=32,l=12,p=9,b=13,h=91,s=93,c=40,o=41,a=123,d=125,g=59,m=42,_=58,E=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return Qt=function(I,U={}){let N=I.css.valueOf(),K=U.ignoreErrors,q,ve,le,P,Re,W,X,se,oe,ge,xe=N.length,j=0,Ue=[],Me=[];function _t(){return j}function Be(me){throw I.error("Unclosed "+me,j)}function Et(){return Me.length===0&&j>=xe}function Ne(me){if(Me.length)return Me.pop();if(j>=xe)return;let He=me?me.ignoreUnclosed:!1;switch(q=N.charCodeAt(j),q){case t:case u:case p:case b:case l:{P=j;do P+=1,q=N.charCodeAt(P);while(q===u||q===t||q===p||q===b||q===l);W=["space",N.slice(j,P)],j=P-1;break}case h:case s:case a:case d:case _:case g:case o:{let et=String.fromCharCode(q);W=[et,et,j];break}case c:{if(ge=Ue.length?Ue.pop()[1]:"",oe=N.charCodeAt(j+1),ge==="url"&&oe!==r&&oe!==e&&oe!==u&&oe!==t&&oe!==p&&oe!==l&&oe!==b){P=j;do{if(X=!1,P=N.indexOf(")",P+1),P===-1)if(K||He){P=j;break}else Be("bracket");for(se=P;N.charCodeAt(se-1)===n;)se-=1,X=!X}while(X);W=["brackets",N.slice(j,P+1),j,P],j=P}else P=N.indexOf(")",j+1),ve=N.slice(j,P+1),P===-1||y.test(ve)?W=["(","(",j]:(W=["brackets",ve,j,P],j=P);break}case r:case e:{Re=q===r?"'":'"',P=j;do{if(X=!1,P=N.indexOf(Re,P+1),P===-1)if(K||He){P=j+1;break}else Be("string");for(se=P;N.charCodeAt(se-1)===n;)se-=1,X=!X}while(X);W=["string",N.slice(j,P+1),j,P],j=P;break}case E:{v.lastIndex=j+1,v.test(N),v.lastIndex===0?P=N.length-1:P=v.lastIndex-2,W=["at-word",N.slice(j,P+1),j,P],j=P;break}case n:{for(P=j,le=!0;N.charCodeAt(P+1)===n;)P+=1,le=!le;if(q=N.charCodeAt(P+1),le&&q!==i&&q!==u&&q!==t&&q!==p&&q!==b&&q!==l&&(P+=1,S.test(N.charAt(P)))){for(;S.test(N.charAt(P+1));)P+=1;N.charCodeAt(P+1)===u&&(P+=1)}W=["word",N.slice(j,P+1),j,P],j=P;break}default:{q===i&&N.charCodeAt(j+1)===m?(P=N.indexOf("*/",j+2)+1,P===0&&(K||He?P=N.length:Be("comment")),W=["comment",N.slice(j,P+1),j,P],j=P):(w.lastIndex=j+1,w.test(N),w.lastIndex===0?P=N.length-1:P=w.lastIndex-2,W=["word",N.slice(j,P+1),j,P],Ue.push(W),j=P);break}}return j++,W}function St(me){Me.push(me)}return{back:St,endOfFile:Et,nextToken:Ne,position:_t}},Qt}var Xt,vi;function Ms(){if(vi)return Xt;vi=1;let r=vn(),e=yt(),n=wt(),i=Ye(),t=_n(),u=Rs();const l={empty:!0,space:!0};function p(h){for(let s=h.length-1;s>=0;s--){let c=h[s],o=c[3]||c[2];if(o)return o}}class b{constructor(s){this.input=s,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:s,start:{column:1,line:1,offset:0}}}atrule(s){let c=new r;c.name=s[1].slice(1),c.name===""&&this.unnamedAtrule(c,s),this.init(c,s[2]);let o,a,d,g=!1,m=!1,_=[],E=[];for(;!this.tokenizer.endOfFile();){if(s=this.tokenizer.nextToken(),o=s[0],o==="("||o==="["?E.push(o==="("?")":"]"):o==="{"&&E.length>0?E.push("}"):o===E[E.length-1]&&E.pop(),E.length===0)if(o===";"){c.source.end=this.getPosition(s[2]),c.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){m=!0;break}else if(o==="}"){if(_.length>0){for(d=_.length-1,a=_[d];a&&a[0]==="space";)a=_[--d];a&&(c.source.end=this.getPosition(a[3]||a[2]),c.source.end.offset++)}this.end(s);break}else _.push(s);else _.push(s);if(this.tokenizer.endOfFile()){g=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(_),_.length?(c.raws.afterName=this.spacesAndCommentsFromStart(_),this.raw(c,"params",_),g&&(s=_[_.length-1],c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),m&&(c.nodes=[],this.current=c)}checkMissedSemicolon(s){let c=this.colon(s);if(c===!1)return;let o=0,a;for(let d=c-1;d>=0&&(a=s[d],!(a[0]!=="space"&&(o+=1,o===2)));d--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(s){let c=0,o,a,d;for(let[g,m]of s.entries()){if(a=m,d=a[0],d==="("&&(c+=1),d===")"&&(c-=1),c===0&&d===":")if(!o)this.doubleColon(a);else{if(o[0]==="word"&&o[1]==="progid")continue;return g}o=a}return!1}comment(s){let c=new e;this.init(c,s[2]),c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++;let o=s[1].slice(2,-2);if(/^\s*$/.test(o))c.text="",c.raws.left=o,c.raws.right="";else{let a=o.match(/^(\s*)([^]*\S)(\s*)$/);c.text=a[2],c.raws.left=a[1],c.raws.right=a[3]}}createTokenizer(){this.tokenizer=u(this.input)}decl(s,c){let o=new n;this.init(o,s[0][2]);let a=s[s.length-1];for(a[0]===";"&&(this.semicolon=!0,s.pop()),o.source.end=this.getPosition(a[3]||a[2]||p(s)),o.source.end.offset++;s[0][0]!=="word";)s.length===1&&this.unknownWord(s),o.raws.before+=s.shift()[1];for(o.source.start=this.getPosition(s[0][2]),o.prop="";s.length;){let E=s[0][0];if(E===":"||E==="space"||E==="comment")break;o.prop+=s.shift()[1]}o.raws.between="";let d;for(;s.length;)if(d=s.shift(),d[0]===":"){o.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),o.raws.between+=d[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let g=[],m;for(;s.length&&(m=s[0][0],!(m!=="space"&&m!=="comment"));)g.push(s.shift());this.precheckMissedSemicolon(s);for(let E=s.length-1;E>=0;E--){if(d=s[E],d[1].toLowerCase()==="!important"){o.important=!0;let v=this.stringFrom(s,E);v=this.spacesFromEnd(s)+v,v!==" !important"&&(o.raws.important=v);break}else if(d[1].toLowerCase()==="important"){let v=s.slice(0),w="";for(let y=E;y>0;y--){let S=v[y][0];if(w.trim().startsWith("!")&&S!=="space")break;w=v.pop()[1]+w}w.trim().startsWith("!")&&(o.important=!0,o.raws.important=w,s=v)}if(d[0]!=="space"&&d[0]!=="comment")break}s.some(E=>E[0]!=="space"&&E[0]!=="comment")&&(o.raws.between+=g.map(E=>E[1]).join(""),g=[]),this.raw(o,"value",g.concat(s),c),o.value.includes(":")&&!c&&this.checkMissedSemicolon(s)}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let c=new t;this.init(c,s[2]),c.selector="",c.raws.between="",this.current=c}end(s){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(s[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(s)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(s){if(this.spaces+=s[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="",c.source.end=this.getPosition(s[2]),c.source.end.offset+=c.raws.ownSemicolon.length)}}getPosition(s){let c=this.input.fromOffset(s);return{column:c.col,line:c.line,offset:s}}init(s,c){this.current.push(s),s.source={input:this.input,start:this.getPosition(c)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1)}other(s){let c=!1,o=null,a=!1,d=null,g=[],m=s[1].startsWith("--"),_=[],E=s;for(;E;){if(o=E[0],_.push(E),o==="("||o==="[")d||(d=E),g.push(o==="("?")":"]");else if(m&&a&&o==="{")d||(d=E),g.push("}");else if(g.length===0)if(o===";")if(a){this.decl(_,m);return}else break;else if(o==="{"){this.rule(_);return}else if(o==="}"){this.tokenizer.back(_.pop()),c=!0;break}else o===":"&&(a=!0);else o===g[g.length-1]&&(g.pop(),g.length===0&&(d=null));E=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),g.length>0&&this.unclosedBracket(d),c&&a){if(!m)for(;_.length&&(E=_[_.length-1][0],!(E!=="space"&&E!=="comment"));)this.tokenizer.back(_.pop());this.decl(_,m)}else this.unknownWord(_)}parse(){let s;for(;!this.tokenizer.endOfFile();)switch(s=this.tokenizer.nextToken(),s[0]){case"space":this.spaces+=s[1];break;case";":this.freeSemicolon(s);break;case"}":this.end(s);break;case"comment":this.comment(s);break;case"at-word":this.atrule(s);break;case"{":this.emptyRule(s);break;default:this.other(s);break}this.endFile()}precheckMissedSemicolon(){}raw(s,c,o,a){let d,g,m=o.length,_="",E=!0,v,w;for(let y=0;y<m;y+=1)d=o[y],g=d[0],g==="space"&&y===m-1&&!a?E=!1:g==="comment"?(w=o[y-1]?o[y-1][0]:"empty",v=o[y+1]?o[y+1][0]:"empty",!l[w]&&!l[v]?_.slice(-1)===","?E=!1:_+=d[1]:E=!1):_+=d[1];if(!E){let y=o.reduce((S,C)=>S+C[1],"");s.raws[c]={raw:y,value:_}}s[c]=_}rule(s){s.pop();let c=new t;this.init(c,s[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(c,"selector",s),this.current=c}spacesAndCommentsFromEnd(s){let c,o="";for(;s.length&&(c=s[s.length-1][0],!(c!=="space"&&c!=="comment"));)o=s.pop()[1]+o;return o}spacesAndCommentsFromStart(s){let c,o="";for(;s.length&&(c=s[0][0],!(c!=="space"&&c!=="comment"));)o+=s.shift()[1];return o}spacesFromEnd(s){let c,o="";for(;s.length&&(c=s[s.length-1][0],c==="space");)o=s.pop()[1]+o;return o}stringFrom(s,c){let o="";for(let a=c;a<s.length;a++)o+=s[a][1];return s.splice(c,s.length-c),o}unclosedBlock(){let s=this.current.source.start;throw this.input.error("Unclosed block",s.line,s.column)}unclosedBracket(s){throw this.input.error("Unclosed bracket",{offset:s[2]},{offset:s[2]+1})}unexpectedClose(s){throw this.input.error("Unexpected }",{offset:s[2]},{offset:s[2]+1})}unknownWord(s){throw this.input.error("Unknown word "+s[0][1],{offset:s[0][2]},{offset:s[0][2]+s[0][1].length})}unnamedAtrule(s,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return Xt=b,Xt}var Yt,xi;function En(){if(xi)return Yt;xi=1;let r=Pe(),e=vt(),n=Ms();function i(t,u){let l=new e(t,u),p=new n(l);try{p.parse()}catch(b){throw b}return p.root}return Yt=i,i.default=i,r.registerParse(i),Yt}var en,_i;function Fi(){if(_i)return en;_i=1;class r{constructor(n,i={}){if(this.type="warning",this.text=n,i.node&&i.node.source){let t=i.node.rangeBy(i);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in i)this[t]=i[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return en=r,r.default=r,en}var tn,Ei;function Sn(){if(Ei)return tn;Ei=1;let r=Fi();class e{get content(){return this.css}constructor(i,t,u){this.processor=i,this.messages=[],this.root=t,this.opts=u,this.css="",this.map=void 0}toString(){return this.css}warn(i,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let u=new r(i,t);return this.messages.push(u),u}warnings(){return this.messages.filter(i=>i.type==="warning")}}return tn=e,e.default=e,tn}var nn,Si;function Wi(){if(Si)return nn;Si=1;let r=Pe(),e=xn(),n=qi(),i=En(),t=Sn(),u=Ye(),l=mt(),{isClean:p,my:b}=wn();const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},s={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function a(v){return typeof v=="object"&&typeof v.then=="function"}function d(v){let w=!1,y=h[v.type];return v.type==="decl"?w=v.prop.toLowerCase():v.type==="atrule"&&(w=v.name.toLowerCase()),w&&v.append?[y,y+"-"+w,o,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:v.append?[y,o,y+"Exit"]:[y,y+"Exit"]}function g(v){let w;return v.type==="document"?w=["Document",o,"DocumentExit"]:v.type==="root"?w=["Root",o,"RootExit"]:w=d(v),{eventIndex:0,events:w,iterator:0,node:v,visitorIndex:0,visitors:[]}}function m(v){return v[p]=!1,v.nodes&&v.nodes.forEach(w=>m(w)),v}let _={};class E{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(w,y,S){this.stringified=!1,this.processed=!1;let C;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))C=m(y);else if(y instanceof E||y instanceof t)C=m(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let I=i;S.syntax&&(I=S.syntax.parse),S.parser&&(I=S.parser),I.parse&&(I=I.parse);try{C=I(y,S)}catch(U){this.processed=!0,this.error=U}C&&!C[b]&&r.rebuild(C)}this.result=new t(w,C,S),this.helpers={..._,postcss:_,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let S=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=S.postcssPlugin,w.setMessage()):S.postcssVersion}catch(C){console&&console.error&&console.error(C)}return w}prepareVisitors(){this.listeners={};let w=(y,S,C)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,C])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!s[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[S])if(typeof y[S]=="object")for(let C in y[S])C==="*"?w(y,S,y[S][C]):w(y,S+"-"+C.toLowerCase(),y[S][C]);else typeof y[S]=="function"&&w(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],S=this.runOnRoot(y);if(a(S))try{await S}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[p];){w[p]=!0;let y=[g(w)];for(;y.length>0;){let S=this.visitTick(y);if(a(S))try{await S}catch(C){let I=y[y.length-1].node;throw this.handleError(C,I)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let C=w.nodes.map(I=>S(I,this.helpers));await Promise.all(C)}else await S(w,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>w.Once(S,this.helpers));return a(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=l;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let C=new n(y,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(a(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[p];)w[p]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[S,C]of w){this.result.lastPlugin=S;let I;try{I=C(y,this.helpers)}catch(U){throw this.handleError(U,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(a(I))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:S,visitors:C}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){w.pop();return}if(C.length>0&&y.visitorIndex<C.length){let[U,N]=C[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===C.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=U;try{return N(S.toProxy(),this.helpers)}catch(K){throw this.handleError(K,S)}}if(y.iterator!==0){let U=y.iterator,N;for(;N=S.nodes[S.indexes[U]];)if(S.indexes[U]+=1,!N[p]){N[p]=!0,w.push(g(N));return}y.iterator=0,delete S.indexes[U]}let I=y.events;for(;y.eventIndex<I.length;){let U=I[y.eventIndex];if(y.eventIndex+=1,U===o){S.nodes&&S.nodes.length&&(S[p]=!0,y.iterator=S.getIterator());return}else if(this.listeners[U]){y.visitors=this.listeners[U];return}}w.pop()}walkSync(w){w[p]=!0;let y=d(w);for(let S of y)if(S===o)w.nodes&&w.each(C=>{C[p]||this.walkSync(C)});else{let C=this.listeners[S];if(C&&this.visitSync(C,w.toProxy()))return}}warnings(){return this.sync().warnings()}}return E.registerPostcss=v=>{_=v},nn=E,E.default=E,u.registerLazyResult(E),e.registerLazyResult(E),nn}var rn,ki;function Ns(){if(ki)return rn;ki=1;let r=qi(),e=En();const n=Sn();let i=mt();class t{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,p=e;try{l=p(this._css,this._opts)}catch(b){this.error=b}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(l,p,b){p=p.toString(),this.stringified=!1,this._processor=l,this._css=p,this._opts=b,this._map=void 0;let h,s=i;this.result=new n(this._processor,h,this._opts),this.result.css=p;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let o=new r(s,h,this._opts,p);if(o.isMap()){let[a,d]=o.generate();a&&(this.result.css=a),d&&(this.result.map=d)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,p){return this.async().then(l,p)}toString(){return this._css}warnings(){return[]}}return rn=t,t.default=t,rn}var sn,Ai;function Ts(){if(Ai)return sn;Ai=1;let r=xn(),e=Wi(),n=Ns(),i=Ye();class t{constructor(l=[]){this.version="8.5.6",this.plugins=this.normalize(l)}normalize(l){let p=[];for(let b of l)if(b.postcss===!0?b=b():b.postcss&&(b=b.postcss),typeof b=="object"&&Array.isArray(b.plugins))p=p.concat(b.plugins);else if(typeof b=="object"&&b.postcssPlugin)p.push(b);else if(typeof b=="function")p.push(b);else if(!(typeof b=="object"&&(b.parse||b.stringify)))throw new Error(b+" is not a PostCSS plugin");return p}process(l,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new n(this,l,p):new e(this,l,p)}use(l){return this.plugins=this.plugins.concat(this.normalize([l])),this}}return sn=t,t.default=t,i.registerProcessor(t),r.registerProcessor(t),sn}var on,Oi;function Is(){if(Oi)return on;Oi=1;var r={};let e=vn(),n=yt(),i=Pe(),t=yn(),u=wt(),l=xn(),p=Ps(),b=vt(),h=Wi(),s=Hi(),c=bt(),o=En(),a=Ts(),d=Sn(),g=Ye(),m=_n(),_=mt(),E=Fi();function v(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new a(w)}return v.plugin=function(y,S){let C=!1;function I(...N){console&&console.warn&&!C&&(C=!0,console.warn(y+`: postcss.plugin was deprecated. Migration guide:
282
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),r.LANG&&r.LANG.startsWith("cn")&&console.warn(y+`: 里面 postcss.plugin 被弃用. 迁移指南:
283
+ https://www.w3ctech.com/topic/2226`));let K=S(...N);return K.postcssPlugin=y,K.postcssVersion=new a().version,K}let U;return Object.defineProperty(I,"postcss",{get(){return U||(U=I()),U}}),I.process=function(N,K,q){return v([I(q)]).process(N,K)},I},v.stringify=_,v.parse=o,v.fromJSON=p,v.list=s,v.comment=w=>new n(w),v.atRule=w=>new e(w),v.decl=w=>new u(w),v.rule=w=>new m(w),v.root=w=>new g(w),v.document=w=>new l(w),v.CssSyntaxError=t,v.Declaration=u,v.Container=i,v.Processor=a,v.Document=l,v.Comment=n,v.Warning=E,v.AtRule=e,v.Result=d,v.Input=b,v.Rule=m,v.Root=g,v.Node=c,h.registerPostcss(v),on=v,v.default=v,on}var Ls=Is();const Z=Di(Ls);Z.stringify;Z.fromJSON;Z.plugin;Z.parse;Z.list;Z.document;Z.comment;Z.atRule;Z.rule;Z.decl;Z.root;Z.CssSyntaxError;Z.Declaration;Z.Container;Z.Processor;Z.Document;Z.Comment;Z.Warning;Z.AtRule;Z.Result;Z.Input;Z.Rule;Z.Root;Z.Node;var an,Ci;function js(){if(Ci)return an;Ci=1;const r=(i={})=>{const t=i.prefix,u=/\s+$/.test(t)?t:`${t} `,l=i.ignoreFiles?[].concat(i.ignoreFiles):[],p=i.includeFiles?[].concat(i.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(b){const h=b.root,s=h.source.input.file;if(!(l.length&&s&&e(s,l))&&!(p.length&&s&&!e(s,p)))return{Rule(c,{result:o}){const a=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];c.parent&&a.includes(c.parent.name)||(c.selectors=c.selectors.map(d=>i.exclude&&n(d,i.exclude)?d:i.transform?i.transform(t,d,u+d,h.source.input.file,c):[":root","body","html"].some(g=>d.startsWith(g))?i.skipGlobalSelectors?d:d.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,t):u+d))}}}}};function e(i,t){return t.some(u=>u instanceof RegExp?u.test(i):i.includes(u))}function n(i,t){return t.some(u=>u instanceof RegExp?u.test(i):i===u)}return r.postcss=!0,an=r,an}var zs=js();const Ds=Di(zs),Us="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}",Bs="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 Hs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ln,$i;function qs(){if($i)return ln;$i=1;function r(f){return f instanceof Map?f.clear=f.delete=f.set=function(){throw new Error("map is read-only")}:f instanceof Set&&(f.add=f.clear=f.delete=function(){throw new Error("set is read-only")}),Object.freeze(f),Object.getOwnPropertyNames(f).forEach(x=>{const O=f[x],D=typeof O;(D==="object"||D==="function")&&!Object.isFrozen(O)&&r(O)}),f}class e{constructor(x){x.data===void 0&&(x.data={}),this.data=x.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(f){return f.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function i(f,...x){const O=Object.create(null);for(const D in f)O[D]=f[D];return x.forEach(function(D){for(const J in D)O[J]=D[J]}),O}const t="</span>",u=f=>!!f.scope,l=(f,{prefix:x})=>{if(f.startsWith("language:"))return f.replace("language:","language-");if(f.includes(".")){const O=f.split(".");return[`${x}${O.shift()}`,...O.map((D,J)=>`${D}${"_".repeat(J+1)}`)].join(" ")}return`${x}${f}`};class p{constructor(x,O){this.buffer="",this.classPrefix=O.classPrefix,x.walk(this)}addText(x){this.buffer+=n(x)}openNode(x){if(!u(x))return;const O=l(x.scope,{prefix:this.classPrefix});this.span(O)}closeNode(x){u(x)&&(this.buffer+=t)}value(){return this.buffer}span(x){this.buffer+=`<span class="${x}">`}}const b=(f={})=>{const x={children:[]};return Object.assign(x,f),x};class h{constructor(){this.rootNode=b(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(x){this.top.children.push(x)}openNode(x){const O=b({scope:x});this.add(O),this.stack.push(O)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(x){return this.constructor._walk(x,this.rootNode)}static _walk(x,O){return typeof O=="string"?x.addText(O):O.children&&(x.openNode(O),O.children.forEach(D=>this._walk(x,D)),x.closeNode(O)),x}static _collapse(x){typeof x!="string"&&x.children&&(x.children.every(O=>typeof O=="string")?x.children=[x.children.join("")]:x.children.forEach(O=>{h._collapse(O)}))}}class s extends h{constructor(x){super(),this.options=x}addText(x){x!==""&&this.add(x)}startScope(x){this.openNode(x)}endScope(){this.closeNode()}__addSublanguage(x,O){const D=x.root;O&&(D.scope=`language:${O}`),this.add(D)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function c(f){return f?typeof f=="string"?f:f.source:null}function o(f){return g("(?=",f,")")}function a(f){return g("(?:",f,")*")}function d(f){return g("(?:",f,")?")}function g(...f){return f.map(x=>c(x)).join("")}function m(f){const x=f[f.length-1];return typeof x=="object"&&x.constructor===Object?(f.splice(f.length-1,1),x):{}}function _(...f){return"("+(m(f).capture?"":"?:")+f.map(x=>c(x)).join("|")+")"}function E(f){return new RegExp(f.toString()+"|").exec("").length-1}function v(f,x){const O=f&&f.exec(x);return O&&O.index===0}const w=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(f,{joinWith:x}){let O=0;return f.map(D=>{O+=1;const J=O;let Q=c(D),R="";for(;Q.length>0;){const $=w.exec(Q);if(!$){R+=Q;break}R+=Q.substring(0,$.index),Q=Q.substring($.index+$[0].length),$[0][0]==="\\"&&$[1]?R+="\\"+String(Number($[1])+J):(R+=$[0],$[0]==="("&&O++)}return R}).map(D=>`(${D})`).join(x)}const S=/\b\B/,C="[a-zA-Z]\\w*",I="[a-zA-Z_]\\w*",U="\\b\\d+(\\.\\d+)?",N="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K="\\b(0b[01]+)",q="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ve=(f={})=>{const x=/^#![ ]*\//;return f.binary&&(f.begin=g(x,/.*\b/,f.binary,/\b.*/)),i({scope:"meta",begin:x,end:/$/,relevance:0,"on:begin":(O,D)=>{O.index!==0&&D.ignoreMatch()}},f)},le={begin:"\\\\[\\s\\S]",relevance:0},P={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[le]},Re={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[le]},W={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},X=function(f,x,O={}){const D=i({scope:"comment",begin:f,end:x,contains:[]},O);D.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 J=_("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 D.contains.push({begin:g(/[ ]+/,"(",J,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),D},se=X("//","$"),oe=X("/\\*","\\*/"),ge=X("#","$"),xe={scope:"number",begin:U,relevance:0},j={scope:"number",begin:N,relevance:0},Ue={scope:"number",begin:K,relevance:0},Me={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[le,{begin:/\[/,end:/\]/,relevance:0,contains:[le]}]},_t={scope:"title",begin:C,relevance:0},Be={scope:"title",begin:I,relevance:0},Et={begin:"\\.\\s*"+I,relevance:0};var Ne=Object.freeze({__proto__:null,APOS_STRING_MODE:P,BACKSLASH_ESCAPE:le,BINARY_NUMBER_MODE:Ue,BINARY_NUMBER_RE:K,COMMENT:X,C_BLOCK_COMMENT_MODE:oe,C_LINE_COMMENT_MODE:se,C_NUMBER_MODE:j,C_NUMBER_RE:N,END_SAME_AS_BEGIN:function(f){return Object.assign(f,{"on:begin":(x,O)=>{O.data._beginMatch=x[1]},"on:end":(x,O)=>{O.data._beginMatch!==x[1]&&O.ignoreMatch()}})},HASH_COMMENT_MODE:ge,IDENT_RE:C,MATCH_NOTHING_RE:S,METHOD_GUARD:Et,NUMBER_MODE:xe,NUMBER_RE:U,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:Re,REGEXP_MODE:Me,RE_STARTERS_RE:q,SHEBANG:ve,TITLE_MODE:_t,UNDERSCORE_IDENT_RE:I,UNDERSCORE_TITLE_MODE:Be});function St(f,x){f.input[f.index-1]==="."&&x.ignoreMatch()}function me(f,x){f.className!==void 0&&(f.scope=f.className,delete f.className)}function He(f,x){x&&f.beginKeywords&&(f.begin="\\b("+f.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",f.__beforeBegin=St,f.keywords=f.keywords||f.beginKeywords,delete f.beginKeywords,f.relevance===void 0&&(f.relevance=0))}function et(f,x){Array.isArray(f.illegal)&&(f.illegal=_(...f.illegal))}function er(f,x){if(f.match){if(f.begin||f.end)throw new Error("begin & end are not supported with match");f.begin=f.match,delete f.match}}function tr(f,x){f.relevance===void 0&&(f.relevance=1)}const nr=(f,x)=>{if(!f.beforeMatch)return;if(f.starts)throw new Error("beforeMatch cannot be used with starts");const O=Object.assign({},f);Object.keys(f).forEach(D=>{delete f[D]}),f.keywords=O.keywords,f.begin=g(O.beforeMatch,o(O.begin)),f.starts={relevance:0,contains:[Object.assign(O,{endsParent:!0})]},f.relevance=0,delete O.beforeMatch},ir=["of","and","for","in","not","or","if","then","parent","list","value"],rr="keyword";function kn(f,x,O=rr){const D=Object.create(null);return typeof f=="string"?J(O,f.split(" ")):Array.isArray(f)?J(O,f):Object.keys(f).forEach(function(Q){Object.assign(D,kn(f[Q],x,Q))}),D;function J(Q,R){x&&(R=R.map($=>$.toLowerCase())),R.forEach(function($){const L=$.split("|");D[L[0]]=[Q,sr(L[0],L[1])]})}}function sr(f,x){return x?Number(x):or(f)?0:1}function or(f){return ir.includes(f.toLowerCase())}const An={},_e=f=>{console.error(f)},On=(f,...x)=>{console.log(`WARN: ${f}`,...x)},Te=(f,x)=>{An[`${f}/${x}`]||(console.log(`Deprecated as of ${f}. ${x}`),An[`${f}/${x}`]=!0)},tt=new Error;function Cn(f,x,{key:O}){let D=0;const J=f[O],Q={},R={};for(let $=1;$<=x.length;$++)R[$+D]=J[$],Q[$+D]=!0,D+=E(x[$-1]);f[O]=R,f[O]._emit=Q,f[O]._multi=!0}function ar(f){if(Array.isArray(f.begin)){if(f.skip||f.excludeBegin||f.returnBegin)throw _e("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),tt;if(typeof f.beginScope!="object"||f.beginScope===null)throw _e("beginScope must be object"),tt;Cn(f,f.begin,{key:"beginScope"}),f.begin=y(f.begin,{joinWith:""})}}function lr(f){if(Array.isArray(f.end)){if(f.skip||f.excludeEnd||f.returnEnd)throw _e("skip, excludeEnd, returnEnd not compatible with endScope: {}"),tt;if(typeof f.endScope!="object"||f.endScope===null)throw _e("endScope must be object"),tt;Cn(f,f.end,{key:"endScope"}),f.end=y(f.end,{joinWith:""})}}function cr(f){f.scope&&typeof f.scope=="object"&&f.scope!==null&&(f.beginScope=f.scope,delete f.scope)}function ur(f){cr(f),typeof f.beginScope=="string"&&(f.beginScope={_wrap:f.beginScope}),typeof f.endScope=="string"&&(f.endScope={_wrap:f.endScope}),ar(f),lr(f)}function hr(f){function x(R,$){return new RegExp(c(R),"m"+(f.case_insensitive?"i":"")+(f.unicodeRegex?"u":"")+($?"g":""))}class O{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule($,L){L.position=this.position++,this.matchIndexes[this.matchAt]=L,this.regexes.push([L,$]),this.matchAt+=E($)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const $=this.regexes.map(L=>L[1]);this.matcherRe=x(y($,{joinWith:"|"}),!0),this.lastIndex=0}exec($){this.matcherRe.lastIndex=this.lastIndex;const L=this.matcherRe.exec($);if(!L)return null;const ne=L.findIndex((qe,At)=>At>0&&qe!==void 0),Y=this.matchIndexes[ne];return L.splice(0,ne),Object.assign(L,Y)}}class D{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher($){if(this.multiRegexes[$])return this.multiRegexes[$];const L=new O;return this.rules.slice($).forEach(([ne,Y])=>L.addRule(ne,Y)),L.compile(),this.multiRegexes[$]=L,L}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule($,L){this.rules.push([$,L]),L.type==="begin"&&this.count++}exec($){const L=this.getMatcher(this.regexIndex);L.lastIndex=this.lastIndex;let ne=L.exec($);if(this.resumingScanAtSamePosition()&&!(ne&&ne.index===this.lastIndex)){const Y=this.getMatcher(0);Y.lastIndex=this.lastIndex+1,ne=Y.exec($)}return ne&&(this.regexIndex+=ne.position+1,this.regexIndex===this.count&&this.considerAll()),ne}}function J(R){const $=new D;return R.contains.forEach(L=>$.addRule(L.begin,{rule:L,type:"begin"})),R.terminatorEnd&&$.addRule(R.terminatorEnd,{type:"end"}),R.illegal&&$.addRule(R.illegal,{type:"illegal"}),$}function Q(R,$){const L=R;if(R.isCompiled)return L;[me,er,ur,nr].forEach(Y=>Y(R,$)),f.compilerExtensions.forEach(Y=>Y(R,$)),R.__beforeBegin=null,[He,et,tr].forEach(Y=>Y(R,$)),R.isCompiled=!0;let ne=null;return typeof R.keywords=="object"&&R.keywords.$pattern&&(R.keywords=Object.assign({},R.keywords),ne=R.keywords.$pattern,delete R.keywords.$pattern),ne=ne||/\w+/,R.keywords&&(R.keywords=kn(R.keywords,f.case_insensitive)),L.keywordPatternRe=x(ne,!0),$&&(R.begin||(R.begin=/\B|\b/),L.beginRe=x(L.begin),!R.end&&!R.endsWithParent&&(R.end=/\B|\b/),R.end&&(L.endRe=x(L.end)),L.terminatorEnd=c(L.end)||"",R.endsWithParent&&$.terminatorEnd&&(L.terminatorEnd+=(R.end?"|":"")+$.terminatorEnd)),R.illegal&&(L.illegalRe=x(R.illegal)),R.contains||(R.contains=[]),R.contains=[].concat(...R.contains.map(function(Y){return dr(Y==="self"?R:Y)})),R.contains.forEach(function(Y){Q(Y,L)}),R.starts&&Q(R.starts,$),L.matcher=J(L),L}if(f.compilerExtensions||(f.compilerExtensions=[]),f.contains&&f.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return f.classNameAliases=i(f.classNameAliases||{}),Q(f)}function $n(f){return f?f.endsWithParent||$n(f.starts):!1}function dr(f){return f.variants&&!f.cachedVariants&&(f.cachedVariants=f.variants.map(function(x){return i(f,{variants:null},x)})),f.cachedVariants?f.cachedVariants:$n(f)?i(f,{starts:f.starts?i(f.starts):null}):Object.isFrozen(f)?i(f):f}var fr="11.11.1";class pr extends Error{constructor(x,O){super(x),this.name="HTMLInjectionError",this.html=O}}const kt=n,Pn=i,Rn=Symbol("nomatch"),gr=7,Mn=function(f){const x=Object.create(null),O=Object.create(null),D=[];let J=!0;const Q="Could not find the language '{}', did you forget to load/include a language module?",R={disableAutodetect:!0,name:"Plain text",contains:[]};let $={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:s};function L(k){return $.noHighlightRe.test(k)}function ne(k){let T=k.className+" ";T+=k.parentNode?k.parentNode.className:"";const H=$.languageDetectRe.exec(T);if(H){const G=be(H[1]);return G||(On(Q.replace("{}",H[1])),On("Falling back to no-highlight mode for this block.",k)),G?H[1]:"no-highlight"}return T.split(/\s+/).find(G=>L(G)||be(G))}function Y(k,T,H){let G="",ee="";typeof T=="object"?(G=k,H=T.ignoreIllegals,ee=T.language):(Te("10.7.0","highlight(lang, code, ...args) has been deprecated."),Te("10.7.0",`Please use highlight(code, options) instead.
284
+ https://github.com/highlightjs/highlight.js/issues/2277`),ee=k,G=T),H===void 0&&(H=!0);const ue={code:G,language:ee};it("before:highlight",ue);const ye=ue.result?ue.result:qe(ue.language,ue.code,H);return ye.code=ue.code,it("after:highlight",ye),ye}function qe(k,T,H,G){const ee=Object.create(null);function ue(A,M){return A.keywords[M]}function ye(){if(!z.keywords){ie.addText(V);return}let A=0;z.keywordPatternRe.lastIndex=0;let M=z.keywordPatternRe.exec(V),B="";for(;M;){B+=V.substring(A,M.index);const F=de.case_insensitive?M[0].toLowerCase():M[0],re=ue(z,F);if(re){const[pe,Mr]=re;if(ie.addText(B),B="",ee[F]=(ee[F]||0)+1,ee[F]<=gr&&(ot+=Mr),pe.startsWith("_"))B+=M[0];else{const Nr=de.classNameAliases[pe]||pe;he(M[0],Nr)}}else B+=M[0];A=z.keywordPatternRe.lastIndex,M=z.keywordPatternRe.exec(V)}B+=V.substring(A),ie.addText(B)}function rt(){if(V==="")return;let A=null;if(typeof z.subLanguage=="string"){if(!x[z.subLanguage]){ie.addText(V);return}A=qe(z.subLanguage,V,!0,Un[z.subLanguage]),Un[z.subLanguage]=A._top}else A=Ot(V,z.subLanguage.length?z.subLanguage:null);z.relevance>0&&(ot+=A.relevance),ie.__addSublanguage(A._emitter,A.language)}function ae(){z.subLanguage!=null?rt():ye(),V=""}function he(A,M){A!==""&&(ie.startScope(M),ie.addText(A),ie.endScope())}function Ln(A,M){let B=1;const F=M.length-1;for(;B<=F;){if(!A._emit[B]){B++;continue}const re=de.classNameAliases[A[B]]||A[B],pe=M[B];re?he(pe,re):(V=pe,ye(),V=""),B++}}function jn(A,M){return A.scope&&typeof A.scope=="string"&&ie.openNode(de.classNameAliases[A.scope]||A.scope),A.beginScope&&(A.beginScope._wrap?(he(V,de.classNameAliases[A.beginScope._wrap]||A.beginScope._wrap),V=""):A.beginScope._multi&&(Ln(A.beginScope,M),V="")),z=Object.create(A,{parent:{value:z}}),z}function zn(A,M,B){let F=v(A.endRe,B);if(F){if(A["on:end"]){const re=new e(A);A["on:end"](M,re),re.isMatchIgnored&&(F=!1)}if(F){for(;A.endsParent&&A.parent;)A=A.parent;return A}}if(A.endsWithParent)return zn(A.parent,M,B)}function Or(A){return z.matcher.regexIndex===0?(V+=A[0],1):(Rt=!0,0)}function Cr(A){const M=A[0],B=A.rule,F=new e(B),re=[B.__beforeBegin,B["on:begin"]];for(const pe of re)if(pe&&(pe(A,F),F.isMatchIgnored))return Or(M);return B.skip?V+=M:(B.excludeBegin&&(V+=M),ae(),!B.returnBegin&&!B.excludeBegin&&(V=M)),jn(B,A),B.returnBegin?0:M.length}function $r(A){const M=A[0],B=T.substring(A.index),F=zn(z,A,B);if(!F)return Rn;const re=z;z.endScope&&z.endScope._wrap?(ae(),he(M,z.endScope._wrap)):z.endScope&&z.endScope._multi?(ae(),Ln(z.endScope,A)):re.skip?V+=M:(re.returnEnd||re.excludeEnd||(V+=M),ae(),re.excludeEnd&&(V=M));do z.scope&&ie.closeNode(),!z.skip&&!z.subLanguage&&(ot+=z.relevance),z=z.parent;while(z!==F.parent);return F.starts&&jn(F.starts,A),re.returnEnd?0:M.length}function Pr(){const A=[];for(let M=z;M!==de;M=M.parent)M.scope&&A.unshift(M.scope);A.forEach(M=>ie.openNode(M))}let st={};function Dn(A,M){const B=M&&M[0];if(V+=A,B==null)return ae(),0;if(st.type==="begin"&&M.type==="end"&&st.index===M.index&&B===""){if(V+=T.slice(M.index,M.index+1),!J){const F=new Error(`0 width match regex (${k})`);throw F.languageName=k,F.badRule=st.rule,F}return 1}if(st=M,M.type==="begin")return Cr(M);if(M.type==="illegal"&&!H){const F=new Error('Illegal lexeme "'+B+'" for mode "'+(z.scope||"<unnamed>")+'"');throw F.mode=z,F}else if(M.type==="end"){const F=$r(M);if(F!==Rn)return F}if(M.type==="illegal"&&B==="")return V+=`
285
+ `,1;if(Pt>1e5&&Pt>M.index*3)throw new Error("potential infinite loop, way more iterations than matches");return V+=B,B.length}const de=be(k);if(!de)throw _e(Q.replace("{}",k)),new Error('Unknown language: "'+k+'"');const Rr=hr(de);let $t="",z=G||Rr;const Un={},ie=new $.__emitter($);Pr();let V="",ot=0,Ee=0,Pt=0,Rt=!1;try{if(de.__emitTokens)de.__emitTokens(T,ie);else{for(z.matcher.considerAll();;){Pt++,Rt?Rt=!1:z.matcher.considerAll(),z.matcher.lastIndex=Ee;const A=z.matcher.exec(T);if(!A)break;const M=T.substring(Ee,A.index),B=Dn(M,A);Ee=A.index+B}Dn(T.substring(Ee))}return ie.finalize(),$t=ie.toHTML(),{language:k,value:$t,relevance:ot,illegal:!1,_emitter:ie,_top:z}}catch(A){if(A.message&&A.message.includes("Illegal"))return{language:k,value:kt(T),illegal:!0,relevance:0,_illegalBy:{message:A.message,index:Ee,context:T.slice(Ee-100,Ee+100),mode:A.mode,resultSoFar:$t},_emitter:ie};if(J)return{language:k,value:kt(T),illegal:!1,relevance:0,errorRaised:A,_emitter:ie,_top:z};throw A}}function At(k){const T={value:kt(k),illegal:!1,relevance:0,_top:R,_emitter:new $.__emitter($)};return T._emitter.addText(k),T}function Ot(k,T){T=T||$.languages||Object.keys(x);const H=At(k),G=T.filter(be).filter(In).map(ae=>qe(ae,k,!1));G.unshift(H);const ee=G.sort((ae,he)=>{if(ae.relevance!==he.relevance)return he.relevance-ae.relevance;if(ae.language&&he.language){if(be(ae.language).supersetOf===he.language)return 1;if(be(he.language).supersetOf===ae.language)return-1}return 0}),[ue,ye]=ee,rt=ue;return rt.secondBest=ye,rt}function mr(k,T,H){const G=T&&O[T]||H;k.classList.add("hljs"),k.classList.add(`language-${G}`)}function Ct(k){let T=null;const H=ne(k);if(L(H))return;if(it("before:highlightElement",{el:k,language:H}),k.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",k);return}if(k.children.length>0&&($.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(k)),$.throwUnescapedHTML))throw new pr("One of your code blocks includes unescaped HTML.",k.innerHTML);T=k;const G=T.textContent,ee=H?Y(G,{language:H,ignoreIllegals:!0}):Ot(G);k.innerHTML=ee.value,k.dataset.highlighted="yes",mr(k,H,ee.language),k.result={language:ee.language,re:ee.relevance,relevance:ee.relevance},ee.secondBest&&(k.secondBest={language:ee.secondBest.language,relevance:ee.secondBest.relevance}),it("after:highlightElement",{el:k,result:ee,text:G})}function br(k){$=Pn($,k)}const yr=()=>{nt(),Te("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function wr(){nt(),Te("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Nn=!1;function nt(){function k(){nt()}if(document.readyState==="loading"){Nn||window.addEventListener("DOMContentLoaded",k,!1),Nn=!0;return}document.querySelectorAll($.cssSelector).forEach(Ct)}function vr(k,T){let H=null;try{H=T(f)}catch(G){if(_e("Language definition for '{}' could not be registered.".replace("{}",k)),J)_e(G);else throw G;H=R}H.name||(H.name=k),x[k]=H,H.rawDefinition=T.bind(null,f),H.aliases&&Tn(H.aliases,{languageName:k})}function xr(k){delete x[k];for(const T of Object.keys(O))O[T]===k&&delete O[T]}function _r(){return Object.keys(x)}function be(k){return k=(k||"").toLowerCase(),x[k]||x[O[k]]}function Tn(k,{languageName:T}){typeof k=="string"&&(k=[k]),k.forEach(H=>{O[H.toLowerCase()]=T})}function In(k){const T=be(k);return T&&!T.disableAutodetect}function Er(k){k["before:highlightBlock"]&&!k["before:highlightElement"]&&(k["before:highlightElement"]=T=>{k["before:highlightBlock"](Object.assign({block:T.el},T))}),k["after:highlightBlock"]&&!k["after:highlightElement"]&&(k["after:highlightElement"]=T=>{k["after:highlightBlock"](Object.assign({block:T.el},T))})}function Sr(k){Er(k),D.push(k)}function kr(k){const T=D.indexOf(k);T!==-1&&D.splice(T,1)}function it(k,T){const H=k;D.forEach(function(G){G[H]&&G[H](T)})}function Ar(k){return Te("10.7.0","highlightBlock will be removed entirely in v12.0"),Te("10.7.0","Please use highlightElement now."),Ct(k)}Object.assign(f,{highlight:Y,highlightAuto:Ot,highlightAll:nt,highlightElement:Ct,highlightBlock:Ar,configure:br,initHighlighting:yr,initHighlightingOnLoad:wr,registerLanguage:vr,unregisterLanguage:xr,listLanguages:_r,getLanguage:be,registerAliases:Tn,autoDetection:In,inherit:Pn,addPlugin:Sr,removePlugin:kr}),f.debugMode=function(){J=!1},f.safeMode=function(){J=!0},f.versionString=fr,f.regex={concat:g,lookahead:o,either:_,optional:d,anyNumberOfTimes:a};for(const k in Ne)typeof Ne[k]=="object"&&r(Ne[k]);return Object.assign(f,Ne),f},Ie=Mn({});return Ie.newInstance=()=>Mn({}),ln=Ie,Ie.HighlightJS=Ie,Ie.default=Ie,ln}var Fs=qs();const xt=Hs(Fs),ft="[A-Za-z$_][0-9A-Za-z$_]*",Gi=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Vi=["true","false","null","undefined","NaN","Infinity"],Zi=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Ki=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ji=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Qi=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Xi=[].concat(Ji,Zi,Ki);function Ws(r){const e=r.regex,n=(W,{after:X})=>{const se="</"+W[0].slice(1);return W.input.indexOf(se,X)!==-1},i=ft,t={begin:"<>",end:"</>"},u=/<[A-Za-z0-9\\._:-]+\s*\/>/,l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,X)=>{const se=W[0].length+W.index,oe=W.input[se];if(oe==="<"||oe===","){X.ignoreMatch();return}oe===">"&&(n(W,{after:se})||X.ignoreMatch());let ge;const xe=W.input.substring(se);if(ge=xe.match(/^\s*=/)){X.ignoreMatch();return}if((ge=xe.match(/^\s+extends\s+/))&&ge.index===0){X.ignoreMatch();return}}},p={$pattern:ft,keyword:Gi,literal:Vi,built_in:Xi,"variable.language":Qi},b="[0-9](_?[0-9])*",h=`\\.(${b})`,s="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${s})((${h})|\\.)?|(${h}))[eE][+-]?(${b})\\b`},{begin:`\\b(${s})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:p,contains:[]},a={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,o],subLanguage:"xml"}},d={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,o],subLanguage:"css"}},g={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,o],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[r.BACKSLASH_ESCAPE,o]},_={className:"comment",variants:[r.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),r.C_BLOCK_COMMENT_MODE,r.C_LINE_COMMENT_MODE]},E=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,a,d,g,m,{match:/\$\d+/},c];o.contains=E.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(E)});const v=[].concat(_,o.contains),w=v.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(v)}]),y={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:w},S={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,e.concat(i,"(",e.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},C={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Zi,...Ki]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},N={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(W){return e.concat("(?!",W.join("|"),")")}const q={match:e.concat(/\b/,K([...Ji,"super","import"].map(W=>`${W}\\s*\\(`)),i,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},ve={begin:e.concat(/\./,e.lookahead(e.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},le={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},P="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+r.UNDERSCORE_IDENT_RE+")\\s*=>",Re={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(P)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[r.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,a,d,g,m,_,{match:/\$\d+/},c,C,{scope:"attr",match:i+e.lookahead(":"),relevance:0},Re,{begin:"("+r.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,r.REGEXP_MODE,{className:"function",begin:P,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:t.begin,end:t.end},{match:u},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+r.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,r.inherit(r.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},ve,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},q,N,S,le,{match:/\$[(.]/}]}}function Gs(r){const e=r.regex,n=Ws(r),i=ft,t=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],u={begin:[/namespace/,/\s+/,r.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},l={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:t},contains:[n.exports.CLASS_REFERENCE]},p={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},b=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:ft,keyword:Gi.concat(b),literal:Vi,built_in:Xi.concat(t),"variable.language":Qi},s={className:"meta",begin:"@"+i},c=(g,m,_)=>{const E=g.contains.findIndex(v=>v.label===m);if(E===-1)throw new Error("can not find mode to replace");g.contains.splice(E,1,_)};Object.assign(n.keywords,h),n.exports.PARAMS_CONTAINS.push(s);const o=n.contains.find(g=>g.scope==="attr"),a=Object.assign({},o,{match:e.concat(i,e.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,o,a]),n.contains=n.contains.concat([s,u,l,a]),c(n,"shebang",r.SHEBANG()),c(n,"use_strict",p);const d=n.contains.find(g=>g.label==="func.def");return d.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function Vs(r){const e=r.regex,n=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,t={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},u={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=r.inherit(u,{begin:/\(/,end:/\)/}),p=r.inherit(r.APOS_STRING_MODE,{className:"string"}),b=r.inherit(r.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[t]},{begin:/'/,end:/'/,contains:[t]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[u,b,p,l,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[u,l,b,p]}]}]},r.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},t,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[b]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(n,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:h}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Zs=r=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:r.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:r.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Ks=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Js=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Qs=[...Ks,...Js],Xs=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Ys=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),eo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),to=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function no(r){const e=r.regex,n=Zs(r),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},t="and or not only",u=/@-?\w[\w]*(-\w+)*/,l="[a-zA-Z-][a-zA-Z0-9_-]*",p=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,i,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+l,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Ys.join("|")+")"},{begin:":(:)?("+eo.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+to.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...p,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...p,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:u},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:t,attribute:Xs.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Qs.join("|")+")\\b"}]}}const Yi=document.createElement("style");Yi.innerText=[Us,Bs].join(`
286
+ `);document.head.appendChild(Yi);xt.registerLanguage("typescript",Gs);xt.registerLanguage("html",Vs);xt.registerLanguage("css",no);function io(...r){const e=document.createElement("div"),n=document.createElement("div");n.classList.add("tab-control");const i=document.createElement("div");return r.forEach(t=>{e.appendChild(t),t.addEventListener("click",()=>{r.forEach(u=>u.removeAttribute("selected")),t.setAttribute("selected",""),i.innerHTML="",i.appendChild(t.content),i.className=t.className,i.classList.add("tab-content")})}),n.appendChild(e),n.appendChild(i),i.classList.add("tab-content"),r[0].setAttribute("selected",""),i.appendChild(r[0].content),n}function Ge(r,e){const n=document.createElement("div");return n.role="tab",n.tabIndex=0,n.innerText=r,n.content=e,e.tagName=="PRE"&&n.classList.add("code"),n}function Ke(r,e){const n=document.createElement(r);return typeof e=="string"?n.innerHTML=e:e.forEach(i=>{n.appendChild(i)}),n}async function ro(r,e,n){const i=e.mainContent,t=Ke("div",i);t.id=`example-preview-${n}`;const u=typeof e.css=="string"?void 0:e.css?.label,l=typeof e.css=="string"?e.css:e.css?.content,p=io(Ge("Preview",t),Ge("HTML",ct("html",i)),...l?[Ge(u??"CSS",ct("css",l))]:[],...e.initializer&&e.initializer.content?[Ge(e.initializer.label??"TS",ct("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(h=>Ge(h.label,ct(h.language,h.content))));e.description&&r.appendChild(Ke("div",e.description));const b=Ke("div",[p]);b.classList.add("example"),r.appendChild(b),l&&so(`#${t.id}`,l),e.initializer?.initialize&&await e.initializer.initialize(t)}function ct(r,e){let n=e.split(/\r?\n/).map(i=>{const t=i.indexOf("///");if(t>-1){const u=i.substring(t+3).trimStart();return u?i.replace(/^(\s*)([^\s].*)$/,`$1${u}`):void 0}return i}).filter(i=>typeof i<"u").join(`
287
+ `).trim();return r&&r!="raw"&&(n=xt.highlight(n,{language:r}).value),Ke("pre",[Ke("code",n)])}function so(r,e){const n=document.createElement("style");n.innerHTML=Z().use(Ds({prefix:r})).process(e).css,document.head.appendChild(n)}async function oo(r,e=document.body){const n=lo(e);let i=0;Object.keys(r).sort().forEach(async t=>{const u=document.createElement("div");u.className="example-container",n.appendChild(u);const l=r[t].default;ro(u,l,i++)})}function ao(r){const e=document.createElement("div");e.id="examples-container";const n=r.querySelector("#examples");return n?n.after(e):r.appendChild(e),e}function lo(r){return r.children?ao(r):r}const co=`<h1 id="@cas-smartdesign/snackbar">@cas-smartdesign/snackbar</h1>
285
288
  <p>A highly configurable element for displaying toast notifications based on <a href="https://github.com/Polymer/lit-element">lit-element</a>.</p>
286
289
  <h2 id="attributes">Attributes</h2>
287
290
  <ul>
@@ -403,10 +406,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),P=h,S=m),x===void 0&&(
403
406
  </ul>
404
407
  </li>
405
408
  </ul>
406
- `,Sl=document.querySelector("#markdown-container");Sl.innerHTML=_l;wl(Object.assign({"./examples/configurable_example/index.ts":Jr}),document.querySelector(".markdown-body"));export{Ol as S};
407
- function __vite__mapDeps(indexes) {
408
- if (!__vite__mapDeps.viteFileDeps) {
409
- __vite__mapDeps.viteFileDeps = []
410
- }
411
- return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
412
- }
409
+ `,uo=document.querySelector("#markdown-container");uo.innerHTML=co;oo(Object.assign({"./examples/configurable_example/index.ts":qr}),document.querySelector(".markdown-body"));export{mo as S};