@cas-smartdesign/login-loading-indicator 3.0.2 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/docs/doc.mjs CHANGED
@@ -1,44 +1,44 @@
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 Mi="modulepreload",Pi=function(i,e){return new URL(i,e).href},Zt={},kt=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=Pi(s,n),s in Zt)return;Zt[s]=!0;const a=s.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!n)for(let b=o.length-1;b>=0;b--){const g=o[b];if(g.href===s&&(!a||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const h=document.createElement("link");if(h.rel=a?"stylesheet":Mi,a||(h.as="script",h.crossOrigin=""),h.href=s,document.head.appendChild(h),a)return new Promise((b,g)=>{h.addEventListener("load",b),h.addEventListener("error",()=>g(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})},Li=`<div id="loading-indicator-logo-only" class="loading-indicator-container"></div>
2
- `,Ii=`<h3 id="example-with-logo-only">Example with logo only</h3>
3
- `,Ti=`.loading-indicator-container {
1
+ (function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))d(r);new MutationObserver(r=>{for(const h of r)if(h.type==="childList")for(const s of h.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&d(s)}).observe(document,{childList:!0,subtree:!0});function m(r){const h={};return r.integrity&&(h.integrity=r.integrity),r.referrerPolicy&&(h.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?h.credentials="include":r.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function d(r){if(r.ep)return;r.ep=!0;const h=m(r);fetch(r.href,h)}})();const jr="modulepreload",zr=function(a,f){return new URL(a,f).href},cn={},Dt=function(f,m,d){let r=Promise.resolve();if(m&&m.length>0){let l=function(e){return Promise.all(e.map(i=>Promise.resolve(i).then(t=>({status:"fulfilled",value:t}),t=>({status:"rejected",reason:t}))))};const s=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),x=p?.nonce||p?.getAttribute("nonce");r=l(m.map(e=>{if(e=zr(e,d),e in cn)return;cn[e]=!0;const i=e.endsWith(".css"),t=i?'[rel="stylesheet"]':"";if(!!d)for(let u=s.length-1;u>=0;u--){const g=s[u];if(g.href===e&&(!i||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${e}"]${t}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":jr,i||(c.as="script"),c.crossOrigin="",c.href=e,x&&c.setAttribute("nonce",x),document.head.appendChild(c),i)return new Promise((u,g)=>{c.addEventListener("load",u),c.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${e}`)))})}))}function h(s){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=s,window.dispatchEvent(p),!p.defaultPrevented)throw s}return r.then(s=>{for(const p of s||[])p.status==="rejected"&&h(p.reason);return f().catch(h)})},Dr=`<div id="loading-indicator-logo-only" class="loading-indicator-container"></div>
2
+ `,Br=`<h3 id="example-with-logo-only">Example with logo only</h3>
3
+ `,Ur=`.loading-indicator-container {
4
4
  position: relative;
5
5
  }
6
6
  sd-login-loading-indicator {
7
7
  height: 200px;
8
8
  display: block;
9
9
  }
10
- `,$i=`import { LoginLoadingIndicator } from "@cas-smartdesign/login-loading-indicator";
10
+ `,$r=`import { LoginLoadingIndicator } from "@cas-smartdesign/login-loading-indicator";
11
11
 
12
12
  const indicator: LoginLoadingIndicator = document.createElement(LoginLoadingIndicator.ID) as LoginLoadingIndicator;
13
13
  indicator.logoPath = "./logo.svg";
14
14
 
15
15
  document.querySelector("#loading-indicator-logo-only").appendChild(indicator);
16
- `,ji={mainContent:Li,description:Ii,css:Ti,initializer:{content:$i,type:"typescript",initialize:()=>kt(()=>import("./logo-only.js"),__vite__mapDeps([]),import.meta.url)}},zi=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Di=`<div id="loading-indicator-without-hints" class="loading-indicator-container"></div>
17
- `,Bi=`<h3 id="example-without-hints">Example without hints</h3>
18
- `,Ui=`.loading-indicator-container {
16
+ `,qr={mainContent:Dr,description:Br,css:Ur,initializer:{content:$r,type:"typescript",initialize:()=>Dt(()=>import("./logo-only.js"),[],import.meta.url)}},Fr=Object.freeze(Object.defineProperty({__proto__:null,default:qr},Symbol.toStringTag,{value:"Module"})),Wr=`<div id="loading-indicator-without-hints" class="loading-indicator-container"></div>
17
+ `,Hr=`<h3 id="example-without-hints">Example without hints</h3>
18
+ `,Gr=`.loading-indicator-container {
19
19
  position: relative;
20
20
  }
21
21
  sd-login-loading-indicator {
22
22
  height: 250px;
23
23
  display: block;
24
24
  }
25
- `,Fi=`import { LoginLoadingIndicator } from "@cas-smartdesign/login-loading-indicator";
25
+ `,Xr=`import { LoginLoadingIndicator } from "@cas-smartdesign/login-loading-indicator";
26
26
 
27
27
  const indicator: LoginLoadingIndicator = document.createElement(LoginLoadingIndicator.ID) as LoginLoadingIndicator;
28
28
  indicator.title = "Welcome without hints";
29
29
  indicator.logoPath = "./logo.svg";
30
30
 
31
31
  document.querySelector("#loading-indicator-without-hints").appendChild(indicator);
32
- `,Hi={mainContent:Di,description:Bi,css:Ui,initializer:{content:Fi,type:"typescript",initialize:()=>kt(()=>import("./title-and-logo.js"),__vite__mapDeps([]),import.meta.url)}},Wi=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},Symbol.toStringTag,{value:"Module"})),Gi=`<div id="loading-indicator-with-hints" class="loading-indicator-container"></div>
33
- `,Xi=`<h3 id="example-with-hints">Example with hints</h3>
34
- `,Zi=`#loading-indicator-with-hints {
32
+ `,Zr={mainContent:Wr,description:Hr,css:Gr,initializer:{content:Xr,type:"typescript",initialize:()=>Dt(()=>import("./title-and-logo.js"),[],import.meta.url)}},Jr=Object.freeze(Object.defineProperty({__proto__:null,default:Zr},Symbol.toStringTag,{value:"Module"})),Kr=`<div id="loading-indicator-with-hints" class="loading-indicator-container"></div>
33
+ `,Vr=`<h3 id="example-with-hints">Example with hints</h3>
34
+ `,Qr=`#loading-indicator-with-hints {
35
35
  position: relative;
36
36
  }
37
37
  sd-login-loading-indicator {
38
38
  height: 300px;
39
39
  display: block;
40
40
  }
41
- `,qi=`import { LoginLoadingIndicator } from "@cas-smartdesign/login-loading-indicator";
41
+ `,Yr=`import { LoginLoadingIndicator } from "@cas-smartdesign/login-loading-indicator";
42
42
 
43
43
  const indicator: LoginLoadingIndicator = document.createElement(LoginLoadingIndicator.ID) as LoginLoadingIndicator;
44
44
  indicator.title = "Welcome with hints";
@@ -46,7 +46,7 @@ indicator.hints = ["read", "this", "until", "we", "let", "you", "in", "SmartDesi
46
46
  indicator.logoPath = "./logo.svg";
47
47
 
48
48
  document.querySelector("#loading-indicator-with-hints").appendChild(indicator);
49
- `,Ki={mainContent:Gi,description:Xi,css:Zi,initializer:{content:qi,type:"typescript",initialize:()=>kt(()=>import("./with_hints.js"),__vite__mapDeps([]),import.meta.url)}},Vi=Object.freeze(Object.defineProperty({__proto__:null,default:Ki},Symbol.toStringTag,{value:"Module"})),xn=class je extends HTMLElement{memoizedTemplate(){const e=this.is();if(je.TEMPLATE_CACHE[e])return je.TEMPLATE_CACHE[e];const t=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,this.is()),je.TEMPLATE_CACHE[e]=t,t}connectedCallback(){const e=this.memoizedTemplate();window.ShadyCSS&&window.ShadyCSS.styleElement(this),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(e.content,!0)),requestAnimationFrame(()=>this.dispatchEvent(new CustomEvent("ready"))))}whenReady(e){this.shadowRoot?e():this.addEventListener("ready",()=>e())}};xn.TEMPLATE_CACHE={};let Ji=xn;const Qi=`<style>
49
+ `,ei={mainContent:Kr,description:Vr,css:Qr,initializer:{content:Yr,type:"typescript",initialize:()=>Dt(()=>import("./with_hints.js"),[],import.meta.url)}},ti=Object.freeze(Object.defineProperty({__proto__:null,default:ei},Symbol.toStringTag,{value:"Module"})),Un=class He extends HTMLElement{memoizedTemplate(){const f=this.is();if(He.TEMPLATE_CACHE[f])return He.TEMPLATE_CACHE[f];const m=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(m,this.is()),He.TEMPLATE_CACHE[f]=m,m}connectedCallback(){const f=this.memoizedTemplate();window.ShadyCSS&&window.ShadyCSS.styleElement(this),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(f.content,!0)),requestAnimationFrame(()=>this.dispatchEvent(new CustomEvent("ready"))))}whenReady(f){this.shadowRoot?f():this.addEventListener("ready",()=>f())}};Un.TEMPLATE_CACHE={};let ni=Un;const ri=`<style>
50
50
  .root {
51
51
  position: absolute;
52
52
  width: 100%;
@@ -160,35 +160,38 @@ document.querySelector("#loading-indicator-with-hints").appendChild(indicator);
160
160
  <div class="welcome-title"></div>
161
161
  <div class="hints"></div>
162
162
  </div>
163
- `,Xe=class Xe extends Ji{is(){return Xe.ID}template(){const e=document.createElement("template");return e.innerHTML=Qi,e}connectedCallback(){super.connectedCallback(),this.logoPath=this._logoPath,this.title=this._title,requestAnimationFrame(()=>{this.hints=this._hints})}hintsWrapper(){return this.shadowRoot.querySelector(".hints")}set logoPath(e){this._logoPath=e,this.shadowRoot&&this.shadowRoot.querySelector(".logo").setAttribute("src",e)}set title(e){this._title=e,this.shadowRoot&&(this.shadowRoot.querySelector(".welcome-title").textContent=e||"")}set hints(e){this._hints=e,this.shadowRoot&&(this.stepper&&(this.hintsWrapper().removeEventListener("transitionend",this.stepper),this.stepper=null),e&&e.length>0&&(this.stepper=this.createStepper(e),requestAnimationFrame(this.stepper),this.hintsWrapper().addEventListener("transitionend",this.stepper)))}createStepper(e){let t=-1;const n=this.hintsWrapper(),r={act:function(h){t=(t+1)%e.length,n.innerText=e[t],n.style.opacity="1"},next:function(){return o}},o={act:function(h){setTimeout(h,1e3)},next:function(){return s}},s={act:function(h){n.style.opacity="0"},next:function(){return r}};let l={act:function(h){h()},next:function(){return r}};const c=function(){l=l.next(),l.act(c)};return c}};Xe.ID="sd-login-loading-indicator";let fe=Xe;customElements.get(fe.ID)||customElements.define(fe.ID,fe);function vn(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Yi(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 At={exports:{}},O=String,En=function(){return{isColorSupported:!1,reset:O,bold:O,dim:O,italic:O,underline:O,inverse:O,hidden:O,strikethrough:O,black:O,red:O,green:O,yellow:O,blue:O,magenta:O,cyan:O,white:O,gray:O,bgBlack:O,bgRed:O,bgGreen:O,bgYellow:O,bgBlue:O,bgMagenta:O,bgCyan:O,bgWhite:O}};At.exports=En();At.exports.createColors=En;var er=At.exports;const tr={},nr=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"})),j=Yi(nr);let qt=er,Kt=j,ft=class Sn 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,Sn)}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=qt.isColorSupported),Kt&&e&&(t=Kt(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:h,red:b}=qt.createColors(!0);a=g=>c(b(g)),l=g=>h(g)}else a=l=c=>c;return n.slice(r,o).map((c,h)=>{let b=r+1+h,g=" "+(" "+b).slice(-s)+" | ";if(b===this.line){let k=l(g.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(g)+c+`
164
- `+k+a("^")}return" "+l(g)+c}).join(`
165
- `)}toString(){let e=this.showSourceCode();return e&&(e=`
163
+ `,Xe=class Xe extends ni{is(){return Xe.ID}template(){const f=document.createElement("template");return f.innerHTML=ri,f}connectedCallback(){super.connectedCallback(),this.logoPath=this._logoPath,this.title=this._title,requestAnimationFrame(()=>{this.hints=this._hints})}hintsWrapper(){return this.shadowRoot.querySelector(".hints")}set logoPath(f){this._logoPath=f,this.shadowRoot&&this.shadowRoot.querySelector(".logo").setAttribute("src",f)}set title(f){this._title=f,this.shadowRoot&&(this.shadowRoot.querySelector(".welcome-title").textContent=f||"")}set hints(f){this._hints=f,this.shadowRoot&&(this.stepper&&(this.hintsWrapper().removeEventListener("transitionend",this.stepper),this.stepper=null),f&&f.length>0&&(this.stepper=this.createStepper(f),requestAnimationFrame(this.stepper),this.hintsWrapper().addEventListener("transitionend",this.stepper)))}createStepper(f){let m=-1;const d=this.hintsWrapper(),r={act:function(e){m=(m+1)%f.length,d.innerText=f[m],d.style.opacity="1"},next:function(){return h}},h={act:function(e){setTimeout(e,1e3)},next:function(){return s}},s={act:function(e){d.style.opacity="0"},next:function(){return r}};let x={act:function(e){e()},next:function(){return r}};const l=function(){x=x.next(),x.act(l)};return l}};Xe.ID="sd-login-loading-indicator";let Pe=Xe;customElements.get(Pe.ID)||customElements.define(Pe.ID,Pe);function $n(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function ii(a){if(Object.prototype.hasOwnProperty.call(a,"__esModule"))return a;var f=a.default;if(typeof f=="function"){var m=function d(){var r=!1;try{r=this instanceof d}catch{}return r?Reflect.construct(f,arguments,this.constructor):f.apply(this,arguments)};m.prototype=f.prototype}else m={};return Object.defineProperty(m,"__esModule",{value:!0}),Object.keys(a).forEach(function(d){var r=Object.getOwnPropertyDescriptor(a,d);Object.defineProperty(m,d,r.get?r:{enumerable:!0,get:function(){return a[d]}})}),m}var qe={exports:{}},un;function si(){if(un)return qe.exports;un=1;var a=String,f=function(){return{isColorSupported:!1,reset:a,bold:a,dim:a,italic:a,underline:a,inverse:a,hidden:a,strikethrough:a,black:a,red:a,green:a,yellow:a,blue:a,magenta:a,cyan:a,white:a,gray:a,bgBlack:a,bgRed:a,bgGreen:a,bgYellow:a,bgBlue:a,bgMagenta:a,bgCyan:a,bgWhite:a,blackBright:a,redBright:a,greenBright:a,yellowBright:a,blueBright:a,magentaBright:a,cyanBright:a,whiteBright:a,bgBlackBright:a,bgRedBright:a,bgGreenBright:a,bgYellowBright:a,bgBlueBright:a,bgMagentaBright:a,bgCyanBright:a,bgWhiteBright:a}};return qe.exports=f(),qe.exports.createColors=f,qe.exports}const oi={},ai=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"})),le=ii(ai);var ut,hn;function Bt(){if(hn)return ut;hn=1;let a=si(),f=le;class m extends Error{constructor(r,h,s,p,x,l){super(r),this.name="CssSyntaxError",this.reason=r,x&&(this.file=x),p&&(this.source=p),l&&(this.plugin=l),typeof h<"u"&&typeof s<"u"&&(typeof h=="number"?(this.line=h,this.column=s):(this.line=h.line,this.column=h.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,m)}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(r){if(!this.source)return"";let h=this.source;r==null&&(r=a.isColorSupported);let s=n=>n,p=n=>n,x=n=>n;if(r){let{bold:n,gray:c,red:u}=a.createColors(!0);p=g=>n(u(g)),s=g=>c(g),f&&(x=g=>f(g))}let l=h.split(/\r?\n/),e=Math.max(this.line-3,0),i=Math.min(this.line+2,l.length),t=String(i).length;return l.slice(e,i).map((n,c)=>{let u=e+1+c,g=" "+(" "+u).slice(-t)+" | ";if(u===this.line){if(n.length>160){let S=20,w=Math.max(0,this.column-S),y=Math.max(this.column+S,this.endColumn+S),b=n.slice(w,y),k=s(g.replace(/\d/g," "))+n.slice(0,Math.min(this.column-1,S-1)).replace(/[^\t]/g," ");return p(">")+s(g)+x(b)+`
164
+ `+k+p("^")}let E=s(g.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return p(">")+s(g)+x(n)+`
165
+ `+E+p("^")}return" "+s(g)+x(n)}).join(`
166
+ `)}toString(){let r=this.showSourceCode();return r&&(r=`
166
167
 
167
- `+e+`
168
- `),this.name+": "+this.message+e}};var Rt=ft;ft.default=ft;var xe={};xe.isClean=Symbol("isClean");xe.my=Symbol("my");const Vt={after:`
168
+ `+r+`
169
+ `),this.name+": "+this.message+r}}return ut=m,m.default=m,ut}var ht,fn;function qn(){if(fn)return ht;fn=1;const a={after:`
169
170
  `,beforeClose:`
170
171
  `,beforeComment:`
171
172
  `,beforeDecl:`
172
173
  `,beforeOpen:" ",beforeRule:`
173
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function ir(i){return i[0].toUpperCase()+i.slice(1)}let dt=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(`
174
- `)){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 Vt[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"+ir(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=Vt[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(`
175
- `)&&(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(`
176
- `)&&(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(`
177
- `)&&(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(`
178
- `)&&(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(`
179
- `);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 _n=dt;dt.default=dt;let rr=_n;function pt(i,e){new rr(e).stringify(i)}var Ze=pt;pt.default=pt;let{isClean:Ce,my:sr}=xe,or=Rt,ar=_n,lr=Ze;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 mt=class{constructor(e={}){this.raws={},this[Ce]=!1,this[sr]=!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 or(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[Ce]){this[Ce]=!1;let e=this;for(;e=e.parent;)e[Ce]=!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]===`
180
- `?(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 ar().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=lr){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 qe=mt;mt.default=mt;let cr=qe,bt=class extends cr{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 Ke=bt;bt.default=bt;let ur="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",hr=(i,e=21)=>(t=e)=>{let n="",r=t;for(;r--;)n+=i[Math.random()*i.length|0];return n},fr=(i=21)=>{let e="",t=i;for(;t--;)e+=ur[Math.random()*64|0];return e};var dr={nanoid:fr,customAlphabet:hr};let{SourceMapConsumer:Jt,SourceMapGenerator:Qt}=j,{existsSync:pr,readFileSync:gr}=j,{dirname:at,join:mr}=j;function br(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let yt=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=at(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new Jt(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 br(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=at(e),pr(e))return this.mapFile=e,gr(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 Jt)return Qt.fromSourceMap(t).toString();if(t instanceof Qt)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=mr(at(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 On=yt;yt.default=yt;let{SourceMapConsumer:yr,SourceMapGenerator:wr}=j,{fileURLToPath:Yt,pathToFileURL:ke}=j,{isAbsolute:wt,resolve:xt}=j,{nanoid:xr}=dr,lt=j,en=Rt,vr=On,ct=Symbol("fromOffsetCache"),Er=!!(yr&&wr),tn=!!(xt&&wt),Be=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&&(!tn||/^\w+:\/\//.test(t.from)||wt(t.from)?this.file=t.from:this.file=xt(t.from)),tn&&Er){let n=new vr(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 "+xr(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,h=n;if(typeof c.offset=="number"){let b=this.fromOffset(c.offset);t=b.line,n=b.col}else t=c.line,n=c.column;if(typeof h.offset=="number"){let b=this.fromOffset(h.offset);s=b.line,a=b.col}else s=h.line,a=h.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 en(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 en(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&&(ke&&(o.input.url=ke(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,n;if(this[ct])n=this[ct];else{let o=this.css.split(`
181
- `);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[ct]=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;wt(s.source)?l=ke(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||ke(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(Yt)c.file=Yt(l);else throw new Error("file: protocol is not available in this PostCSS build");let h=o.sourceContentFor(s.source);return h&&(c.source=h),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 Ve=Be;Be.default=Be;lt&&lt.registerInput&&lt.registerInput(Be);let{SourceMapConsumer:Cn,SourceMapGenerator:ze}=j,{dirname:De,relative:kn,resolve:An,sep:Rn}=j,{pathToFileURL:nn}=j,Sr=Ve,_r=!!(Cn&&ze),Or=!!(De&&An&&kn&&Rn),Cr=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=`
174
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function f(d){return d[0].toUpperCase()+d.slice(1)}class m{constructor(r){this.builder=r}atrule(r,h){let s="@"+r.name,p=r.params?this.rawValue(r,"params"):"";if(typeof r.raws.afterName<"u"?s+=r.raws.afterName:p&&(s+=" "),r.nodes)this.block(r,s+p);else{let x=(r.raws.between||"")+(h?";":"");this.builder(s+p+x,r)}}beforeAfter(r,h){let s;r.type==="decl"?s=this.raw(r,null,"beforeDecl"):r.type==="comment"?s=this.raw(r,null,"beforeComment"):h==="before"?s=this.raw(r,null,"beforeRule"):s=this.raw(r,null,"beforeClose");let p=r.parent,x=0;for(;p&&p.type!=="root";)x+=1,p=p.parent;if(s.includes(`
175
+ `)){let l=this.raw(r,null,"indent");if(l.length)for(let e=0;e<x;e++)s+=l}return s}block(r,h){let s=this.raw(r,"between","beforeOpen");this.builder(h+s+"{",r,"start");let p;r.nodes&&r.nodes.length?(this.body(r),p=this.raw(r,"after")):p=this.raw(r,"after","emptyBody"),p&&this.builder(p),this.builder("}",r,"end")}body(r){let h=r.nodes.length-1;for(;h>0&&r.nodes[h].type==="comment";)h-=1;let s=this.raw(r,"semicolon");for(let p=0;p<r.nodes.length;p++){let x=r.nodes[p],l=this.raw(x,"before");l&&this.builder(l),this.stringify(x,h!==p||s)}}comment(r){let h=this.raw(r,"left","commentLeft"),s=this.raw(r,"right","commentRight");this.builder("/*"+h+r.text+s+"*/",r)}decl(r,h){let s=this.raw(r,"between","colon"),p=r.prop+s+this.rawValue(r,"value");r.important&&(p+=r.raws.important||" !important"),h&&(p+=";"),this.builder(p,r)}document(r){this.body(r)}raw(r,h,s){let p;if(s||(s=h),h&&(p=r.raws[h],typeof p<"u"))return p;let x=r.parent;if(s==="before"&&(!x||x.type==="root"&&x.first===r||x&&x.type==="document"))return"";if(!x)return a[s];let l=r.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[s]<"u")return l.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(r,s);{let e="raw"+f(s);this[e]?p=this[e](l,r):l.walk(i=>{if(p=i.raws[h],typeof p<"u")return!1})}return typeof p>"u"&&(p=a[s]),l.rawCache[s]=p,p}rawBeforeClose(r){let h;return r.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return h=s.raws.after,h.includes(`
176
+ `)&&(h=h.replace(/[^\n]+$/,"")),!1}),h&&(h=h.replace(/\S/g,"")),h}rawBeforeComment(r,h){let s;return r.walkComments(p=>{if(typeof p.raws.before<"u")return s=p.raws.before,s.includes(`
177
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(h,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(r,h){let s;return r.walkDecls(p=>{if(typeof p.raws.before<"u")return s=p.raws.before,s.includes(`
178
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(h,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(r){let h;return r.walk(s=>{if(s.type!=="decl"&&(h=s.raws.between,typeof h<"u"))return!1}),h}rawBeforeRule(r){let h;return r.walk(s=>{if(s.nodes&&(s.parent!==r||r.first!==s)&&typeof s.raws.before<"u")return h=s.raws.before,h.includes(`
179
+ `)&&(h=h.replace(/[^\n]+$/,"")),!1}),h&&(h=h.replace(/\S/g,"")),h}rawColon(r){let h;return r.walkDecls(s=>{if(typeof s.raws.between<"u")return h=s.raws.between.replace(/[^\s:]/g,""),!1}),h}rawEmptyBody(r){let h;return r.walk(s=>{if(s.nodes&&s.nodes.length===0&&(h=s.raws.after,typeof h<"u"))return!1}),h}rawIndent(r){if(r.raws.indent)return r.raws.indent;let h;return r.walk(s=>{let p=s.parent;if(p&&p!==r&&p.parent&&p.parent===r&&typeof s.raws.before<"u"){let x=s.raws.before.split(`
180
+ `);return h=x[x.length-1],h=h.replace(/\S/g,""),!1}}),h}rawSemicolon(r){let h;return r.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(h=s.raws.semicolon,typeof h<"u"))return!1}),h}rawValue(r,h){let s=r[h],p=r.raws[h];return p&&p.value===s?p.raw:s}root(r){this.body(r),r.raws.after&&this.builder(r.raws.after)}rule(r){this.block(r,this.rawValue(r,"selector")),r.raws.ownSemicolon&&this.builder(r.raws.ownSemicolon,r,"end")}stringify(r,h){if(!this[r.type])throw new Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,h)}}return ht=m,m.default=m,ht}var ft,dn;function Ze(){if(dn)return ft;dn=1;let a=qn();function f(m,d){new a(d).stringify(m)}return ft=f,f.default=f,ft}var Fe={},pn;function Ut(){return pn||(pn=1,Fe.isClean=Symbol("isClean"),Fe.my=Symbol("my")),Fe}var dt,gn;function Je(){if(gn)return dt;gn=1;let a=Bt(),f=qn(),m=Ze(),{isClean:d,my:r}=Ut();function h(x,l){let e=new x.constructor;for(let i in x){if(!Object.prototype.hasOwnProperty.call(x,i)||i==="proxyCache")continue;let t=x[i],n=typeof t;i==="parent"&&n==="object"?l&&(e[i]=l):i==="source"?e[i]=t:Array.isArray(t)?e[i]=t.map(c=>h(c,e)):(n==="object"&&t!==null&&(t=h(t)),e[i]=t)}return e}function s(x,l){if(l&&typeof l.offset<"u")return l.offset;let e=1,i=1,t=0;for(let n=0;n<x.length;n++){if(i===l.line&&e===l.column){t=n;break}x[n]===`
181
+ `?(e=1,i+=1):e+=1}return t}class p{get proxyOf(){return this}constructor(l={}){this.raws={},this[d]=!1,this[r]=!0;for(let e in l)if(e==="nodes"){this.nodes=[];for(let i of l[e])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[e]=l[e]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let e=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let e in l)this[e]=l[e];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let e=h(this);for(let i in l)e[i]=l[i];return e}cloneAfter(l={}){let e=this.clone(l);return this.parent.insertAfter(this,e),e}cloneBefore(l={}){let e=this.clone(l);return this.parent.insertBefore(this,e),e}error(l,e={}){if(this.source){let{end:i,start:t}=this.rangeBy(e);return this.source.input.error(l,{column:t.column,line:t.line},{column:i.column,line:i.line},e)}return new a(l)}getProxyProcessor(){return{get(l,e){return e==="proxyOf"?l:e==="root"?()=>l.root().toProxy():l[e]},set(l,e,i){return l[e]===i||(l[e]=i,(e==="prop"||e==="value"||e==="name"||e==="params"||e==="important"||e==="text")&&l.markDirty()),!0}}}markClean(){this[d]=!0}markDirty(){if(this[d]){this[d]=!1;let l=this;for(;l=l.parent;)l[d]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l={}){let e=this.source.start;if(l.index)e=this.positionInside(l.index);else if(l.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,n=i.slice(s(i,this.source.start),s(i,this.source.end)).indexOf(l.word);n!==-1&&(e=this.positionInside(n))}return e}positionInside(l){let e=this.source.start.column,i=this.source.start.line,t="document"in this.source.input?this.source.input.document:this.source.input.css,n=s(t,this.source.start),c=n+l;for(let u=n;u<c;u++)t[u]===`
182
+ `?(e=1,i+=1):e+=1;return{column:e,line:i,offset:c}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,i={column:this.source.start.column,line:this.source.start.line,offset:s(e,this.source.start)},t=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:s(e,this.source.end)+1}:{column:i.column+1,line:i.line,offset:i.offset+1};if(l.word){let c=e.slice(s(e,this.source.start),s(e,this.source.end)).indexOf(l.word);c!==-1&&(i=this.positionInside(c),t=this.positionInside(c+l.word.length))}else l.start?i={column:l.start.column,line:l.start.line,offset:s(e,l.start)}:l.index&&(i=this.positionInside(l.index)),l.end?t={column:l.end.column,line:l.end.line,offset:s(e,l.end)}:typeof l.endIndex=="number"?t=this.positionInside(l.endIndex):l.index&&(t=this.positionInside(l.index+1));return(t.line<i.line||t.line===i.line&&t.column<=i.column)&&(t={column:i.column+1,line:i.line,offset:i.offset+1}),{end:t,start:i}}raw(l,e){return new f().raw(this,l,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let e=this,i=!1;for(let t of l)t===this?i=!0:i?(this.parent.insertAfter(e,t),e=t):this.parent.insertBefore(e,t);i||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,e){let i={},t=e==null;e=e||new Map;let n=0;for(let c in this){if(!Object.prototype.hasOwnProperty.call(this,c)||c==="parent"||c==="proxyCache")continue;let u=this[c];if(Array.isArray(u))i[c]=u.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,e):g);else if(typeof u=="object"&&u.toJSON)i[c]=u.toJSON(null,e);else if(c==="source"){if(u==null)continue;let g=e.get(u.input);g==null&&(g=n,e.set(u.input,n),n++),i[c]={end:u.end,inputId:g,start:u.start}}else i[c]=u}return t&&(i.inputs=[...e.keys()].map(c=>c.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=m){l.stringify&&(l=l.stringify);let e="";return l(this,i=>{e+=i}),e}warn(l,e,i={}){let t={node:this};for(let n in i)t[n]=i[n];return l.warn(e,t)}}return dt=p,p.default=p,dt}var pt,mn;function Ke(){if(mn)return pt;mn=1;let a=Je();class f extends a{constructor(d){super(d),this.type="comment"}}return pt=f,f.default=f,pt}var gt,bn;function Ve(){if(bn)return gt;bn=1;let a=Je();class f extends a{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(d){d&&typeof d.value<"u"&&typeof d.value!="string"&&(d={...d,value:String(d.value)}),super(d),this.type="decl"}}return gt=f,f.default=f,gt}var mt,yn;function ve(){if(yn)return mt;yn=1;let a=Ke(),f=Ve(),m=Je(),{isClean:d,my:r}=Ut(),h,s,p,x;function l(t){return t.map(n=>(n.nodes&&(n.nodes=l(n.nodes)),delete n.source,n))}function e(t){if(t[d]=!1,t.proxyOf.nodes)for(let n of t.proxyOf.nodes)e(n)}class i extends m{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(...n){for(let c of n){let u=this.normalize(c,this.last);for(let g of u)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let c of this.nodes)c.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let c=this.getIterator(),u,g;for(;this.indexes[c]<this.proxyOf.nodes.length&&(u=this.indexes[c],g=n(this.proxyOf.nodes[u],u),g!==!1);)this.indexes[c]+=1;return delete this.indexes[c],g}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,c){return c==="proxyOf"?n:n[c]?c==="each"||typeof c=="string"&&c.startsWith("walk")?(...u)=>n[c](...u.map(g=>typeof g=="function"?(E,S)=>g(E.toProxy(),S):g)):c==="every"||c==="some"?u=>n[c]((g,...E)=>u(g.toProxy(),...E)):c==="root"?()=>n.root().toProxy():c==="nodes"?n.nodes.map(u=>u.toProxy()):c==="first"||c==="last"?n[c].toProxy():n[c]:n[c]},set(n,c,u){return n[c]===u||(n[c]=u,(c==="name"||c==="params"||c==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,c){let u=this.index(n),g=this.normalize(c,this.proxyOf.nodes[u]).reverse();u=this.index(n);for(let S of g)this.proxyOf.nodes.splice(u+1,0,S);let E;for(let S in this.indexes)E=this.indexes[S],u<E&&(this.indexes[S]=E+g.length);return this.markDirty(),this}insertBefore(n,c){let u=this.index(n),g=u===0?"prepend":!1,E=this.normalize(c,this.proxyOf.nodes[u],g).reverse();u=this.index(n);for(let w of E)this.proxyOf.nodes.splice(u,0,w);let S;for(let w in this.indexes)S=this.indexes[w],u<=S&&(this.indexes[w]=S+E.length);return this.markDirty(),this}normalize(n,c){if(typeof n=="string")n=l(s(n).nodes);else if(typeof n>"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new f(n)]}else if(n.selector||n.selectors)n=[new x(n)];else if(n.name)n=[new h(n)];else if(n.text)n=[new a(n)];else throw new Error("Unknown node type in node creation");return n.map(g=>(g[r]||i.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[d]&&e(g),g.raws||(g.raws={}),typeof g.raws.before>"u"&&c&&typeof c.raws.before<"u"&&(g.raws.before=c.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...n){n=n.reverse();for(let c of n){let u=this.normalize(c,this.first,"prepend").reverse();for(let g of u)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+u.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let c;for(let u in this.indexes)c=this.indexes[u],c>=n&&(this.indexes[u]=c-1);return this.markDirty(),this}replaceValues(n,c,u){return u||(u=c,c={}),this.walkDecls(g=>{c.props&&!c.props.includes(g.prop)||c.fast&&!g.value.includes(c.fast)||(g.value=g.value.replace(n,u))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((c,u)=>{let g;try{g=n(c,u)}catch(E){throw c.addToError(E)}return g!==!1&&c.walk&&(g=c.walk(n)),g})}walkAtRules(n,c){return c?n instanceof RegExp?this.walk((u,g)=>{if(u.type==="atrule"&&n.test(u.name))return c(u,g)}):this.walk((u,g)=>{if(u.type==="atrule"&&u.name===n)return c(u,g)}):(c=n,this.walk((u,g)=>{if(u.type==="atrule")return c(u,g)}))}walkComments(n){return this.walk((c,u)=>{if(c.type==="comment")return n(c,u)})}walkDecls(n,c){return c?n instanceof RegExp?this.walk((u,g)=>{if(u.type==="decl"&&n.test(u.prop))return c(u,g)}):this.walk((u,g)=>{if(u.type==="decl"&&u.prop===n)return c(u,g)}):(c=n,this.walk((u,g)=>{if(u.type==="decl")return c(u,g)}))}walkRules(n,c){return c?n instanceof RegExp?this.walk((u,g)=>{if(u.type==="rule"&&n.test(u.selector))return c(u,g)}):this.walk((u,g)=>{if(u.type==="rule"&&u.selector===n)return c(u,g)}):(c=n,this.walk((u,g)=>{if(u.type==="rule")return c(u,g)}))}}return i.registerParse=t=>{s=t},i.registerRule=t=>{x=t},i.registerAtRule=t=>{h=t},i.registerRoot=t=>{p=t},mt=i,i.default=i,i.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,h.prototype):t.type==="rule"?Object.setPrototypeOf(t,x.prototype):t.type==="decl"?Object.setPrototypeOf(t,f.prototype):t.type==="comment"?Object.setPrototypeOf(t,a.prototype):t.type==="root"&&Object.setPrototypeOf(t,p.prototype),t[r]=!0,t.nodes&&t.nodes.forEach(n=>{i.rebuild(n)})},mt}var bt,wn;function $t(){if(wn)return bt;wn=1;let a=ve();class f extends a{constructor(d){super(d),this.type="atrule"}append(...d){return this.proxyOf.nodes||(this.nodes=[]),super.append(...d)}prepend(...d){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...d)}}return bt=f,f.default=f,a.registerAtRule(f),bt}var yt,xn;function qt(){if(xn)return yt;xn=1;let a=ve(),f,m;class d extends a{constructor(h){super({type:"document",...h}),this.nodes||(this.nodes=[])}toResult(h={}){return new f(new m,this,h).stringify()}}return d.registerLazyResult=r=>{f=r},d.registerProcessor=r=>{m=r},yt=d,d.default=d,yt}var wt,vn;function li(){if(vn)return wt;vn=1;let a="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return wt={nanoid:(d=21)=>{let r="",h=d|0;for(;h--;)r+=a[Math.random()*64|0];return r},customAlphabet:(d,r=21)=>(h=r)=>{let s="",p=h|0;for(;p--;)s+=d[Math.random()*d.length|0];return s}},wt}var xt,En;function Fn(){if(En)return xt;En=1;let{existsSync:a,readFileSync:f}=le,{dirname:m,join:d}=le,{SourceMapConsumer:r,SourceMapGenerator:h}=le;function s(x){return Buffer?Buffer.from(x,"base64").toString():window.atob(x)}class p{constructor(l,e){if(e.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let i=e.map?e.map.prev:void 0,t=this.loadMap(e.from,i);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=m(this.mapFile)),t&&(this.text=t)}consumer(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}decodeInline(l){let e=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,t=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,c=l.match(t)||l.match(n);if(c)return decodeURIComponent(l.substr(c[0].length));let u=l.match(e)||l.match(i);if(u)return s(l.substr(u[0].length));let g=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let e=l.match(/\/\*\s*# sourceMappingURL=/g);if(!e)return;let i=l.lastIndexOf(e.pop()),t=l.indexOf("*/",i);i>-1&&t>-1&&(this.annotation=this.getAnnotationURL(l.substring(i,t)))}loadFile(l){if(this.root=m(l),a(l))return this.mapFile=l,f(l,"utf-8").toString().trim()}loadMap(l,e){if(e===!1)return!1;if(e){if(typeof e=="string")return e;if(typeof e=="function"){let i=e(l);if(i){let t=this.loadFile(i);if(!t)throw new Error("Unable to load previous source map: "+i.toString());return t}}else{if(e instanceof r)return h.fromSourceMap(e).toString();if(e instanceof h)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return l&&(i=d(m(l),i)),this.loadFile(i)}}}startWith(l,e){return l?l.substr(0,e.length)===e:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return xt=p,p.default=p,xt}var vt,Sn;function Qe(){if(Sn)return vt;Sn=1;let{nanoid:a}=li(),{isAbsolute:f,resolve:m}=le,{SourceMapConsumer:d,SourceMapGenerator:r}=le,{fileURLToPath:h,pathToFileURL:s}=le,p=Bt(),x=Fn(),l=le,e=Symbol("lineToIndexCache"),i=!!(d&&r),t=!!(m&&f);function n(u){if(u[e])return u[e];let g=u.css.split(`
183
+ `),E=new Array(g.length),S=0;for(let w=0,y=g.length;w<y;w++)E[w]=S,S+=g[w].length+1;return u[e]=E,E}class c{get from(){return this.file||this.id}constructor(g,E={}){if(g===null||typeof g>"u"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,E.document&&(this.document=E.document.toString()),E.from&&(!t||/^\w+:\/\//.test(E.from)||f(E.from)?this.file=E.from:this.file=m(E.from)),t&&i){let S=new x(this.css,E);if(S.text){this.map=S;let w=S.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+a(6)+">"),this.map&&(this.map.file=this.from)}error(g,E,S,w={}){let y,b,k,C,T;if(E&&typeof E=="object"){let L=E,J=S;if(typeof L.offset=="number"){C=L.offset;let F=this.fromOffset(C);E=F.line,S=F.col}else E=L.line,S=L.column,C=this.fromLineAndColumn(E,S);if(typeof J.offset=="number"){k=J.offset;let F=this.fromOffset(k);b=F.line,y=F.col}else b=J.line,y=J.column,k=this.fromLineAndColumn(J.line,J.column)}else if(S)C=this.fromLineAndColumn(E,S);else{C=E;let L=this.fromOffset(C);E=L.line,S=L.col}let U=this.origin(E,S,b,y);return U?T=new p(g,U.endLine===void 0?U.line:{column:U.column,line:U.line},U.endLine===void 0?U.column:{column:U.endColumn,line:U.endLine},U.source,U.file,w.plugin):T=new p(g,b===void 0?E:{column:S,line:E},b===void 0?S:{column:y,line:b},this.css,this.file,w.plugin),T.input={column:S,endColumn:y,endLine:b,endOffset:k,line:E,offset:C,source:this.css},this.file&&(s&&(T.input.url=s(this.file).toString()),T.input.file=this.file),T}fromLineAndColumn(g,E){return n(this)[g-1]+E-1}fromOffset(g){let E=n(this),S=E[E.length-1],w=0;if(g>=S)w=E.length-1;else{let y=E.length-2,b;for(;w<y;)if(b=w+(y-w>>1),g<E[b])y=b-1;else if(g>=E[b+1])w=b+1;else{w=b;break}}return{col:g-E[w]+1,line:w+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:m(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,E,S,w){if(!this.map)return!1;let y=this.map.consumer(),b=y.originalPositionFor({column:E,line:g});if(!b.source)return!1;let k;typeof S=="number"&&(k=y.originalPositionFor({column:w,line:S}));let C;f(b.source)?C=s(b.source):C=new URL(b.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let T={column:b.column,endColumn:k&&k.column,endLine:k&&k.line,line:b.line,url:C.toString()};if(C.protocol==="file:")if(h)T.file=h(C);else throw new Error("file: protocol is not available in this PostCSS build");let U=y.sourceContentFor(b.source);return U&&(T.source=U),T}toJSON(){let g={};for(let E of["hasBOM","css","file","id"])this[E]!=null&&(g[E]=this[E]);return this.map&&(g.map={...this.map},g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return vt=c,c.default=c,l&&l.registerInput&&l.registerInput(c),vt}var Et,kn;function Ie(){if(kn)return Et;kn=1;let a=ve(),f,m;class d extends a{constructor(h){super(h),this.type="root",this.nodes||(this.nodes=[])}normalize(h,s,p){let x=super.normalize(h);if(s){if(p==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let l of x)l.raws.before=s.raws.before}return x}removeChild(h,s){let p=this.index(h);return!s&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(h)}toResult(h={}){return new f(new m,this,h).stringify()}}return d.registerLazyResult=r=>{f=r},d.registerProcessor=r=>{m=r},Et=d,d.default=d,a.registerRoot(d),Et}var St,_n;function Wn(){if(_n)return St;_n=1;let a={comma(f){return a.split(f,[","],!0)},space(f){let m=[" ",`
184
+ `," "];return a.split(f,m)},split(f,m,d){let r=[],h="",s=!1,p=0,x=!1,l="",e=!1;for(let i of f)e?e=!1:i==="\\"?e=!0:x?i===l&&(x=!1):i==='"'||i==="'"?(x=!0,l=i):i==="("?p+=1:i===")"?p>0&&(p-=1):p===0&&m.includes(i)&&(s=!0),s?(h!==""&&r.push(h.trim()),h="",s=!1):h+=i;return(d||h!=="")&&r.push(h.trim()),r}};return St=a,a.default=a,St}var kt,On;function Ft(){if(On)return kt;On=1;let a=ve(),f=Wn();class m extends a{get selectors(){return f.comma(this.selector)}set selectors(r){let h=this.selector?this.selector.match(/,\s*/):null,s=h?h[0]:","+this.raw("between","beforeOpen");this.selector=r.join(s)}constructor(r){super(r),this.type="rule",this.nodes||(this.nodes=[])}}return kt=m,m.default=m,a.registerRule(m),kt}var _t,Rn;function ci(){if(Rn)return _t;Rn=1;let a=$t(),f=Ke(),m=Ve(),d=Qe(),r=Fn(),h=Ie(),s=Ft();function p(x,l){if(Array.isArray(x))return x.map(t=>p(t));let{inputs:e,...i}=x;if(e){l=[];for(let t of e){let n={...t,__proto__:d.prototype};n.map&&(n.map={...n.map,__proto__:r.prototype}),l.push(n)}}if(i.nodes&&(i.nodes=x.nodes.map(t=>p(t,l))),i.source){let{inputId:t,...n}=i.source;i.source=n,t!=null&&(i.source.input=l[t])}if(i.type==="root")return new h(i);if(i.type==="decl")return new m(i);if(i.type==="rule")return new s(i);if(i.type==="comment")return new f(i);if(i.type==="atrule")return new a(i);throw new Error("Unknown node type: "+x.type)}return _t=p,p.default=p,_t}var Ot,Cn;function Hn(){if(Cn)return Ot;Cn=1;let{dirname:a,relative:f,resolve:m,sep:d}=le,{SourceMapConsumer:r,SourceMapGenerator:h}=le,{pathToFileURL:s}=le,p=Qe(),x=!!(r&&h),l=!!(a&&m&&f&&d);class e{constructor(t,n,c,u){this.stringify=t,this.mapOpts=c.map||{},this.root=n,this.opts=c,this.css=u,this.originalCSS=u,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let n=`
182
185
  `;this.css.includes(`\r
183
- `)&&(t=`\r
184
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||De(e.file),r;this.mapOpts.sourcesContent===!1?(r=new Cn(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(),Or&&_r&&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=ze.fromSourceMap(e)}else this.map=new ze({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 ze({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(`
185
- `),t=a.length-s):t+=a.length,l&&c!=="start"){let h=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==h.last||h.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?De(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=De(An(n,this.mapOpts.annotation)));let r=kn(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 Sr(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(nn){let n=nn(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;Rn==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var Nn=Cr;let kr=qe,vt=class extends kr{constructor(e){super(e),this.type="comment"}};var Je=vt;vt.default=vt;let{isClean:Mn,my:Pn}=xe,Ln=Ke,In=Je,Ar=qe,Tn,Nt,Mt,$n;function jn(i){return i.map(e=>(e.nodes&&(e.nodes=jn(e.nodes)),delete e.source,e))}function zn(i){if(i[Mn]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)zn(e)}let X=class Dn extends Ar{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=jn(Tn(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 Ln(e)]}else if(e.selector)e=[new Nt(e)];else if(e.name)e=[new Mt(e)];else if(e.text)e=[new In(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Pn]||Dn.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[Mn]&&zn(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]}};X.registerParse=i=>{Tn=i};X.registerRule=i=>{Nt=i};X.registerAtRule=i=>{Mt=i};X.registerRoot=i=>{$n=i};var ee=X;X.default=X;X.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,Mt.prototype):i.type==="rule"?Object.setPrototypeOf(i,Nt.prototype):i.type==="decl"?Object.setPrototypeOf(i,Ln.prototype):i.type==="comment"?Object.setPrototypeOf(i,In.prototype):i.type==="root"&&Object.setPrototypeOf(i,$n.prototype),i[Pn]=!0,i.nodes&&i.nodes.forEach(e=>{X.rebuild(e)})};let Rr=ee,Bn,Un,pe=class extends Rr{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Bn(new Un,this,e).stringify()}};pe.registerLazyResult=i=>{Bn=i};pe.registerProcessor=i=>{Un=i};var Pt=pe;pe.default=pe;let Et=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 Fn=Et;Et.default=Et;let Nr=Fn,St=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 Nr(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Lt=St;St.default=St;const ut=39,rn=34,Ae=92,sn=47,Re=10,ce=32,Ne=12,Me=9,Pe=13,Mr=91,Pr=93,Lr=40,Ir=41,Tr=123,$r=125,jr=59,zr=42,Dr=58,Br=64,Le=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ie=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ur=/.[\r\n"'(/\\]/,on=/[\da-f]/i;var Fr=function(e,t={}){let n=e.css.valueOf(),r=t.ignoreErrors,o,s,a,l,c,h,b,g,k,R,T=n.length,m=0,F=[],H=[];function K(){return m}function $(z){throw e.error("Unclosed "+z,m)}function W(){return H.length===0&&m>=T}function le(z){if(H.length)return H.pop();if(m>=T)return;let P=z?z.ignoreUnclosed:!1;switch(o=n.charCodeAt(m),o){case Re:case ce:case Me:case Pe:case Ne:{s=m;do s+=1,o=n.charCodeAt(s);while(o===ce||o===Re||o===Me||o===Pe||o===Ne);R=["space",n.slice(m,s)],m=s-1;break}case Mr:case Pr:case Tr:case $r:case Dr:case jr:case Ir:{let V=String.fromCharCode(o);R=[V,V,m];break}case Lr:{if(g=F.length?F.pop()[1]:"",k=n.charCodeAt(m+1),g==="url"&&k!==ut&&k!==rn&&k!==ce&&k!==Re&&k!==Me&&k!==Ne&&k!==Pe){s=m;do{if(h=!1,s=n.indexOf(")",s+1),s===-1)if(r||P){s=m;break}else $("bracket");for(b=s;n.charCodeAt(b-1)===Ae;)b-=1,h=!h}while(h);R=["brackets",n.slice(m,s+1),m,s],m=s}else s=n.indexOf(")",m+1),l=n.slice(m,s+1),s===-1||Ur.test(l)?R=["(","(",m]:(R=["brackets",l,m,s],m=s);break}case ut:case rn:{a=o===ut?"'":'"',s=m;do{if(h=!1,s=n.indexOf(a,s+1),s===-1)if(r||P){s=m+1;break}else $("string");for(b=s;n.charCodeAt(b-1)===Ae;)b-=1,h=!h}while(h);R=["string",n.slice(m,s+1),m,s],m=s;break}case Br:{Le.lastIndex=m+1,Le.test(n),Le.lastIndex===0?s=n.length-1:s=Le.lastIndex-2,R=["at-word",n.slice(m,s+1),m,s],m=s;break}case Ae:{for(s=m,c=!0;n.charCodeAt(s+1)===Ae;)s+=1,c=!c;if(o=n.charCodeAt(s+1),c&&o!==sn&&o!==ce&&o!==Re&&o!==Me&&o!==Pe&&o!==Ne&&(s+=1,on.test(n.charAt(s)))){for(;on.test(n.charAt(s+1));)s+=1;n.charCodeAt(s+1)===ce&&(s+=1)}R=["word",n.slice(m,s+1),m,s],m=s;break}default:{o===sn&&n.charCodeAt(m+1)===zr?(s=n.indexOf("*/",m+2)+1,s===0&&(r||P?s=n.length:$("comment")),R=["comment",n.slice(m,s+1),m,s],m=s):(Ie.lastIndex=m+1,Ie.test(n),Ie.lastIndex===0?s=n.length-1:s=Ie.lastIndex-2,R=["word",n.slice(m,s+1),m,s],F.push(R),m=s);break}}return m++,R}function ne(z){H.push(z)}return{back:ne,endOfFile:W,nextToken:le,position:K}};let Hn=ee,Ue=class extends Hn{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 It=Ue;Ue.default=Ue;Hn.registerAtRule(Ue);let Wn=ee,Gn,Xn,re=class extends Wn{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 Gn(new Xn,this,e).stringify()}};re.registerLazyResult=i=>{Gn=i};re.registerProcessor=i=>{Xn=i};var ve=re;re.default=re;Wn.registerRoot(re);let ge={comma(i){return ge.split(i,[","],!0)},space(i){let e=[" ",`
186
- `," "];return ge.split(i,e)},split(i,e,t){let n=[],r="",o=!1,s=0,a=!1,l="",c=!1;for(let h of i)c?c=!1:h==="\\"?c=!0:a?h===l&&(a=!1):h==='"'||h==="'"?(a=!0,l=h):h==="("?s+=1:h===")"?s>0&&(s-=1):s===0&&e.includes(h)&&(o=!0),o?(r!==""&&n.push(r.trim()),r="",o=!1):r+=h;return(t||r!=="")&&n.push(r.trim()),n}};var Zn=ge;ge.default=ge;let qn=ee,Hr=Zn,Fe=class extends qn{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Hr.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 Tt=Fe;Fe.default=Fe;qn.registerRule(Fe);let Wr=Ke,Gr=Fr,Xr=Je,Zr=It,qr=ve,an=Tt;const ln={empty:!0,space:!0};function Kr(i){for(let e=i.length-1;e>=0;e--){let t=i[e],n=t[3]||t[2];if(n)return n}}let Vr=class{constructor(e){this.input=e,this.root=new qr,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 Zr;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 Xr;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=Gr(this.input)}decl(e,t){let n=new Wr;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]||Kr(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 h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(o[1].toLowerCase()==="important"){let h=e.slice(0),b="";for(let g=c;g>0;g--){let k=h[g][0];if(b.trim().indexOf("!")===0&&k!=="space")break;b=h.pop()[1]+b}b.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=b,e=h)}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 an;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,h,b;for(let g=0;g<a;g+=1)o=n[g],s=o[0],s==="space"&&g===a-1&&!r?c=!1:s==="comment"?(b=n[g-1]?n[g-1][0]:"empty",h=n[g+1]?n[g+1][0]:"empty",!ln[b]&&!ln[h]?l.slice(-1)===","?c=!1:l+=o[1]:c=!1):l+=o[1];if(!c){let g=n.reduce((k,R)=>k+R[1],"");e.raws[t]={raw:g,value:l}}e[t]=l}rule(e){e.pop();let t=new an;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 Jr=Vr;let Qr=ee,Yr=Jr,es=Ve;function He(i,e){let t=new es(i,e),n=new Yr(t);try{n.parse()}catch(r){throw r}return n.root}var $t=He;He.default=He;Qr.registerParse(He);let{isClean:U,my:ts}=xe,ns=Nn,is=Ze,rs=ee,ss=Pt,cn=Lt,os=$t,as=ve;const ls={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},cs={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},us={Once:!0,postcssPlugin:!0,prepare:!0},se=0;function ue(i){return typeof i=="object"&&typeof i.then=="function"}function Kn(i){let e=!1,t=ls[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,se,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,se,t+"Exit"]:[t,t+"Exit"]}function un(i){let e;return i.type==="document"?e=["Document",se,"DocumentExit"]:i.type==="root"?e=["Root",se,"RootExit"]:e=Kn(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function _t(i){return i[U]=!1,i.nodes&&i.nodes.forEach(e=>_t(e)),i}let Ot={},oe=class Vn{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=_t(t);else if(t instanceof Vn||t instanceof cn)r=_t(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=os;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[ts]&&rs.rebuild(r)}this.result=new cn(e,r,n),this.helpers={...Ot,postcss:Ot,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(!cs[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!us[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(ue(n))try{await n}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[U];){e[U]=!0;let t=[un(e)];for(;t.length>0;){let n=this.visitTick(t);if(ue(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 ue(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=is;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new ns(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(ue(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[U];)e[U]=!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(ue(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[U]){a[U]=!0,e.push(un(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===se){n.nodes&&n.nodes.length&&(n[U]=!0,t.iterator=n.getIterator());return}else if(this.listeners[s]){t.visitors=this.listeners[s];return}}e.pop()}walkSync(e){e[U]=!0;let t=Kn(e);for(let n of t)if(n===se)e.nodes&&e.each(r=>{r[U]||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"}};oe.registerPostcss=i=>{Ot=i};var Jn=oe;oe.default=oe;as.registerLazyResult(oe);ss.registerLazyResult(oe);let hs=Nn,fs=Ze,ds=$t;const ps=Lt;let Ct=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=fs;this.result=new ps(this._processor,r,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let a=new hs(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=ds;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 gs=Ct;Ct.default=Ct;let ms=gs,bs=Jn,ys=Pt,ws=ve,me=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 ms(this,e,t):new bs(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var xs=me;me.default=me;ws.registerProcessor(me);ys.registerProcessor(me);let vs=Ke,Es=On,Ss=Je,_s=It,Os=Ve,Cs=ve,ks=Tt;function be(i,e){if(Array.isArray(i))return i.map(r=>be(r));let{inputs:t,...n}=i;if(t){e=[];for(let r of t){let o={...r,__proto__:Os.prototype};o.map&&(o.map={...o.map,__proto__:Es.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=i.nodes.map(r=>be(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 Cs(n);if(n.type==="decl")return new vs(n);if(n.type==="rule")return new ks(n);if(n.type==="comment")return new Ss(n);if(n.type==="atrule")return new _s(n);throw new Error("Unknown node type: "+i.type)}var As=be;be.default=be;var hn={};let Rs=Rt,Qn=Ke,Ns=Jn,Ms=ee,jt=xs,Ps=Ze,Ls=As,Yn=Pt,Is=Fn,ei=Je,ti=It,Ts=Lt,$s=Ve,js=$t,zs=Zn,ni=Tt,ii=ve,Ds=qe;function E(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new jt(i)}E.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:
187
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),hn.LANG&&hn.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
188
- https://www.w3ctech.com/topic/2226`));let a=t(...s);return a.postcssPlugin=e,a.postcssVersion=new jt().version,a}let o;return Object.defineProperty(r,"postcss",{get(){return o||(o=r()),o}}),r.process=function(s,a,l){return E([r(l)]).process(s,a)},r};E.stringify=Ps;E.parse=js;E.fromJSON=Ls;E.list=zs;E.comment=i=>new ei(i);E.atRule=i=>new ti(i);E.decl=i=>new Qn(i);E.rule=i=>new ni(i);E.root=i=>new ii(i);E.document=i=>new Yn(i);E.CssSyntaxError=Rs;E.Declaration=Qn;E.Container=Ms;E.Processor=jt;E.Document=Yn;E.Comment=ei;E.Warning=Is;E.AtRule=ti;E.Result=Ts;E.Input=$s;E.Rule=ni;E.Root=ii;E.Node=Ds;Ns.registerPostcss(E);var Bs=E;E.default=E;const C=vn(Bs);C.stringify;C.fromJSON;C.plugin;C.parse;C.list;C.document;C.comment;C.atRule;C.rule;C.decl;C.root;C.CssSyntaxError;C.Declaration;C.Container;C.Processor;C.Document;C.Comment;C.Warning;C.AtRule;C.Result;C.Input;C.Rule;C.Root;C.Node;var Us=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&&fn(s.source.input.file,r)||o.length&&s.source.input.file&&!fn(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&&Fs(c,e.exclude)?c:e.transform?e.transform(t,c,n+c,s.source.input.file,a):n+c))})}};function fn(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i.includes(t))}function Fs(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i===t)}const Hs=vn(Us),Ws="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}",Gs="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 Xs(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function ri(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)&&ri(t)}),i}class dn{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function si(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function q(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 Zs="</span>",pn=i=>!!i.scope,qs=(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 Ks{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=si(e)}openNode(e){if(!pn(e))return;const t=qs(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){pn(e)&&(this.buffer+=Zs)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const gn=(i={})=>{const e={children:[]};return Object.assign(e,i),e};class zt{constructor(){this.rootNode=gn(),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=gn({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=>{zt._collapse(t)}))}}class Vs extends zt{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 Ks(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function ye(i){return i?typeof i=="string"?i:i.source:null}function oi(i){return te("(?=",i,")")}function Js(i){return te("(?:",i,")*")}function Qs(i){return te("(?:",i,")?")}function te(...i){return i.map(e=>ye(e)).join("")}function Ys(i){const e=i[i.length-1];return typeof e=="object"&&e.constructor===Object?(i.splice(i.length-1,1),e):{}}function Dt(...i){return"("+(Ys(i).capture?"":"?:")+i.map(e=>ye(e)).join("|")+")"}function ai(i){return new RegExp(i.toString()+"|").exec("").length-1}function eo(i,e){const t=i&&i.exec(e);return t&&t.index===0}const to=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Bt(i,{joinWith:e}){let t=0;return i.map(n=>{t+=1;const r=t;let o=ye(n),s="";for(;o.length>0;){const a=to.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 no=/\b\B/,li="[a-zA-Z]\\w*",Ut="[a-zA-Z_]\\w*",ci="\\b\\d+(\\.\\d+)?",ui="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",hi="\\b(0b[01]+)",io="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ro=(i={})=>{const e=/^#![ ]*\//;return i.binary&&(i.begin=te(e,/.*\b/,i.binary,/\b.*/)),q({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,n)=>{t.index!==0&&n.ignoreMatch()}},i)},we={begin:"\\\\[\\s\\S]",relevance:0},so={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[we]},oo={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[we]},ao={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/},Qe=function(i,e,t={}){const n=q({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=Dt("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:te(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},lo=Qe("//","$"),co=Qe("/\\*","\\*/"),uo=Qe("#","$"),ho={scope:"number",begin:ci,relevance:0},fo={scope:"number",begin:ui,relevance:0},po={scope:"number",begin:hi,relevance:0},go={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[we,{begin:/\[/,end:/\]/,relevance:0,contains:[we]}]},mo={scope:"title",begin:li,relevance:0},bo={scope:"title",begin:Ut,relevance:0},yo={begin:"\\.\\s*"+Ut,relevance:0},wo=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 Te=Object.freeze({__proto__:null,APOS_STRING_MODE:so,BACKSLASH_ESCAPE:we,BINARY_NUMBER_MODE:po,BINARY_NUMBER_RE:hi,COMMENT:Qe,C_BLOCK_COMMENT_MODE:co,C_LINE_COMMENT_MODE:lo,C_NUMBER_MODE:fo,C_NUMBER_RE:ui,END_SAME_AS_BEGIN:wo,HASH_COMMENT_MODE:uo,IDENT_RE:li,MATCH_NOTHING_RE:no,METHOD_GUARD:yo,NUMBER_MODE:ho,NUMBER_RE:ci,PHRASAL_WORDS_MODE:ao,QUOTE_STRING_MODE:oo,REGEXP_MODE:go,RE_STARTERS_RE:io,SHEBANG:ro,TITLE_MODE:mo,UNDERSCORE_IDENT_RE:Ut,UNDERSCORE_TITLE_MODE:bo});function xo(i,e){i.input[i.index-1]==="."&&e.ignoreMatch()}function vo(i,e){i.className!==void 0&&(i.scope=i.className,delete i.className)}function Eo(i,e){e&&i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",i.__beforeBegin=xo,i.keywords=i.keywords||i.beginKeywords,delete i.beginKeywords,i.relevance===void 0&&(i.relevance=0))}function So(i,e){Array.isArray(i.illegal)&&(i.illegal=Dt(...i.illegal))}function _o(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 Oo(i,e){i.relevance===void 0&&(i.relevance=1)}const Co=(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=te(t.beforeMatch,oi(t.begin)),i.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},i.relevance=0,delete t.beforeMatch},ko=["of","and","for","in","not","or","if","then","parent","list","value"],Ao="keyword";function fi(i,e,t=Ao){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,fi(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,Ro(l[0],l[1])]})}}function Ro(i,e){return e?Number(e):No(i)?0:1}function No(i){return ko.includes(i.toLowerCase())}const mn={},Y=i=>{console.error(i)},bn=(i,...e)=>{console.log(`WARN: ${i}`,...e)},ie=(i,e)=>{mn[`${i}/${e}`]||(console.log(`Deprecated as of ${i}. ${e}`),mn[`${i}/${e}`]=!0)},We=new Error;function di(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+=ai(e[a-1]);i[t]=s,i[t]._emit=o,i[t]._multi=!0}function Mo(i){if(Array.isArray(i.begin)){if(i.skip||i.excludeBegin||i.returnBegin)throw Y("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),We;if(typeof i.beginScope!="object"||i.beginScope===null)throw Y("beginScope must be object"),We;di(i,i.begin,{key:"beginScope"}),i.begin=Bt(i.begin,{joinWith:""})}}function Po(i){if(Array.isArray(i.end)){if(i.skip||i.excludeEnd||i.returnEnd)throw Y("skip, excludeEnd, returnEnd not compatible with endScope: {}"),We;if(typeof i.endScope!="object"||i.endScope===null)throw Y("endScope must be object"),We;di(i,i.end,{key:"endScope"}),i.end=Bt(i.end,{joinWith:""})}}function Lo(i){i.scope&&typeof i.scope=="object"&&i.scope!==null&&(i.beginScope=i.scope,delete i.scope)}function Io(i){Lo(i),typeof i.beginScope=="string"&&(i.beginScope={_wrap:i.beginScope}),typeof i.endScope=="string"&&(i.endScope={_wrap:i.endScope}),Mo(i),Po(i)}function To(i){function e(s,a){return new RegExp(ye(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+=ai(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(Bt(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((b,g)=>g>0&&b!==void 0),h=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,h)}}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,h])=>l.addRule(c,h)),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 h=this.getMatcher(0);h.lastIndex=this.lastIndex+1,c=h.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;[vo,_o,Io,Co].forEach(h=>h(s,a)),i.compilerExtensions.forEach(h=>h(s,a)),s.__beforeBegin=null,[Eo,So,Oo].forEach(h=>h(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=fi(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=ye(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(h){return $o(h==="self"?s:h)})),s.contains.forEach(function(h){o(h,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=q(i.classNameAliases||{}),o(i)}function pi(i){return i?i.endsWithParent||pi(i.starts):!1}function $o(i){return i.variants&&!i.cachedVariants&&(i.cachedVariants=i.variants.map(function(e){return q(i,{variants:null},e)})),i.cachedVariants?i.cachedVariants:pi(i)?q(i,{starts:i.starts?q(i.starts):null}):Object.isFrozen(i)?q(i):i}var jo="11.9.0";class zo extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const ht=si,yn=q,wn=Symbol("nomatch"),Do=7,gi=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:Vs};function l(u){return a.noHighlightRe.test(u)}function c(u){let d=u.className+" ";d+=u.parentNode?u.parentNode.className:"";const w=a.languageDetectRe.exec(d);if(w){const v=P(w[1]);return v||(bn(o.replace("{}",w[1])),bn("Falling back to no-highlight mode for this block.",u)),v?w[1]:"no-highlight"}return d.split(/\s+/).find(v=>l(v)||P(v))}function h(u,d,w){let v="",A="";typeof d=="object"?(v=u,w=d.ignoreIllegals,A=d.language):(ie("10.7.0","highlight(lang, code, ...args) has been deprecated."),ie("10.7.0",`Please use highlight(code, options) instead.
189
- https://github.com/highlightjs/highlight.js/issues/2277`),A=u,v=d),w===void 0&&(w=!0);const L={code:v,language:A};J("before:highlight",L);const Z=L.result?L.result:b(L.language,L.code,w);return Z.code=L.code,J("after:highlight",Z),Z}function b(u,d,w,v){const A=Object.create(null);function L(f,p){return f.keywords[p]}function Z(){if(!y.keywords){N.addText(_);return}let f=0;y.keywordPatternRe.lastIndex=0;let p=y.keywordPatternRe.exec(_),x="";for(;p;){x+=_.substring(f,p.index);const S=B.case_insensitive?p[0].toLowerCase():p[0],M=L(y,S);if(M){const[G,Ri]=M;if(N.addText(x),x="",A[S]=(A[S]||0)+1,A[S]<=Do&&(Oe+=Ri),G.startsWith("_"))x+=p[0];else{const Ni=B.classNameAliases[G]||G;D(p[0],Ni)}}else x+=p[0];f=y.keywordPatternRe.lastIndex,p=y.keywordPatternRe.exec(_)}x+=_.substring(f),N.addText(x)}function Se(){if(_==="")return;let f=null;if(typeof y.subLanguage=="string"){if(!e[y.subLanguage]){N.addText(_);return}f=b(y.subLanguage,_,!0,Xt[y.subLanguage]),Xt[y.subLanguage]=f._top}else f=k(_,y.subLanguage.length?y.subLanguage:null);y.relevance>0&&(Oe+=f.relevance),N.__addSublanguage(f._emitter,f.language)}function I(){y.subLanguage!=null?Se():Z(),_=""}function D(f,p){f!==""&&(N.startScope(p),N.addText(f),N.endScope())}function Ft(f,p){let x=1;const S=p.length-1;for(;x<=S;){if(!f._emit[x]){x++;continue}const M=B.classNameAliases[f[x]]||f[x],G=p[x];M?D(G,M):(_=G,Z(),_=""),x++}}function Ht(f,p){return f.scope&&typeof f.scope=="string"&&N.openNode(B.classNameAliases[f.scope]||f.scope),f.beginScope&&(f.beginScope._wrap?(D(_,B.classNameAliases[f.beginScope._wrap]||f.beginScope._wrap),_=""):f.beginScope._multi&&(Ft(f.beginScope,p),_="")),y=Object.create(f,{parent:{value:y}}),y}function Wt(f,p,x){let S=eo(f.endRe,x);if(S){if(f["on:end"]){const M=new dn(f);f["on:end"](p,M),M.isMatchIgnored&&(S=!1)}if(S){for(;f.endsParent&&f.parent;)f=f.parent;return f}}if(f.endsWithParent)return Wt(f.parent,p,x)}function _i(f){return y.matcher.regexIndex===0?(_+=f[0],1):(ot=!0,0)}function Oi(f){const p=f[0],x=f.rule,S=new dn(x),M=[x.__beforeBegin,x["on:begin"]];for(const G of M)if(G&&(G(f,S),S.isMatchIgnored))return _i(p);return x.skip?_+=p:(x.excludeBegin&&(_+=p),I(),!x.returnBegin&&!x.excludeBegin&&(_=p)),Ht(x,f),x.returnBegin?0:p.length}function Ci(f){const p=f[0],x=d.substring(f.index),S=Wt(y,f,x);if(!S)return wn;const M=y;y.endScope&&y.endScope._wrap?(I(),D(p,y.endScope._wrap)):y.endScope&&y.endScope._multi?(I(),Ft(y.endScope,f)):M.skip?_+=p:(M.returnEnd||M.excludeEnd||(_+=p),I(),M.excludeEnd&&(_=p));do y.scope&&N.closeNode(),!y.skip&&!y.subLanguage&&(Oe+=y.relevance),y=y.parent;while(y!==S.parent);return S.starts&&Ht(S.starts,f),M.returnEnd?0:p.length}function ki(){const f=[];for(let p=y;p!==B;p=p.parent)p.scope&&f.unshift(p.scope);f.forEach(p=>N.openNode(p))}let _e={};function Gt(f,p){const x=p&&p[0];if(_+=f,x==null)return I(),0;if(_e.type==="begin"&&p.type==="end"&&_e.index===p.index&&x===""){if(_+=d.slice(p.index,p.index+1),!r){const S=new Error(`0 width match regex (${u})`);throw S.languageName=u,S.badRule=_e.rule,S}return 1}if(_e=p,p.type==="begin")return Oi(p);if(p.type==="illegal"&&!w){const S=new Error('Illegal lexeme "'+x+'" for mode "'+(y.scope||"<unnamed>")+'"');throw S.mode=y,S}else if(p.type==="end"){const S=Ci(p);if(S!==wn)return S}if(p.type==="illegal"&&x==="")return 1;if(st>1e5&&st>p.index*3)throw new Error("potential infinite loop, way more iterations than matches");return _+=x,x.length}const B=P(u);if(!B)throw Y(o.replace("{}",u)),new Error('Unknown language: "'+u+'"');const Ai=To(B);let rt="",y=v||Ai;const Xt={},N=new a.__emitter(a);ki();let _="",Oe=0,Q=0,st=0,ot=!1;try{if(B.__emitTokens)B.__emitTokens(d,N);else{for(y.matcher.considerAll();;){st++,ot?ot=!1:y.matcher.considerAll(),y.matcher.lastIndex=Q;const f=y.matcher.exec(d);if(!f)break;const p=d.substring(Q,f.index),x=Gt(p,f);Q=f.index+x}Gt(d.substring(Q))}return N.finalize(),rt=N.toHTML(),{language:u,value:rt,relevance:Oe,illegal:!1,_emitter:N,_top:y}}catch(f){if(f.message&&f.message.includes("Illegal"))return{language:u,value:ht(d),illegal:!0,relevance:0,_illegalBy:{message:f.message,index:Q,context:d.slice(Q-100,Q+100),mode:f.mode,resultSoFar:rt},_emitter:N};if(r)return{language:u,value:ht(d),illegal:!1,relevance:0,errorRaised:f,_emitter:N,_top:y};throw f}}function g(u){const d={value:ht(u),illegal:!1,relevance:0,_top:s,_emitter:new a.__emitter(a)};return d._emitter.addText(u),d}function k(u,d){d=d||a.languages||Object.keys(e);const w=g(u),v=d.filter(P).filter(Ee).map(I=>b(I,u,!1));v.unshift(w);const A=v.sort((I,D)=>{if(I.relevance!==D.relevance)return D.relevance-I.relevance;if(I.language&&D.language){if(P(I.language).supersetOf===D.language)return 1;if(P(D.language).supersetOf===I.language)return-1}return 0}),[L,Z]=A,Se=L;return Se.secondBest=Z,Se}function R(u,d,w){const v=d&&t[d]||w;u.classList.add("hljs"),u.classList.add(`language-${v}`)}function T(u){let d=null;const w=c(u);if(l(w))return;if(J("before:highlightElement",{el:u,language:w}),u.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",u);return}if(u.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(u)),a.throwUnescapedHTML))throw new zo("One of your code blocks includes unescaped HTML.",u.innerHTML);d=u;const v=d.textContent,A=w?h(v,{language:w,ignoreIllegals:!0}):k(v);u.innerHTML=A.value,u.dataset.highlighted="yes",R(u,w,A.language),u.result={language:A.language,re:A.relevance,relevance:A.relevance},A.secondBest&&(u.secondBest={language:A.secondBest.language,relevance:A.secondBest.relevance}),J("after:highlightElement",{el:u,result:A,text:v})}function m(u){a=yn(a,u)}const F=()=>{$(),ie("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function H(){$(),ie("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let K=!1;function $(){if(document.readyState==="loading"){K=!0;return}document.querySelectorAll(a.cssSelector).forEach(T)}function W(){K&&$()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",W,!1);function le(u,d){let w=null;try{w=d(i)}catch(v){if(Y("Language definition for '{}' could not be registered.".replace("{}",u)),r)Y(v);else throw v;w=s}w.name||(w.name=u),e[u]=w,w.rawDefinition=d.bind(null,i),w.aliases&&V(w.aliases,{languageName:u})}function ne(u){delete e[u];for(const d of Object.keys(t))t[d]===u&&delete t[d]}function z(){return Object.keys(e)}function P(u){return u=(u||"").toLowerCase(),e[u]||e[t[u]]}function V(u,{languageName:d}){typeof u=="string"&&(u=[u]),u.forEach(w=>{t[w.toLowerCase()]=d})}function Ee(u){const d=P(u);return d&&!d.disableAutodetect}function et(u){u["before:highlightBlock"]&&!u["before:highlightElement"]&&(u["before:highlightElement"]=d=>{u["before:highlightBlock"](Object.assign({block:d.el},d))}),u["after:highlightBlock"]&&!u["after:highlightElement"]&&(u["after:highlightElement"]=d=>{u["after:highlightBlock"](Object.assign({block:d.el},d))})}function tt(u){et(u),n.push(u)}function nt(u){const d=n.indexOf(u);d!==-1&&n.splice(d,1)}function J(u,d){const w=u;n.forEach(function(v){v[w]&&v[w](d)})}function it(u){return ie("10.7.0","highlightBlock will be removed entirely in v12.0"),ie("10.7.0","Please use highlightElement now."),T(u)}Object.assign(i,{highlight:h,highlightAuto:k,highlightAll:$,highlightElement:T,highlightBlock:it,configure:m,initHighlighting:F,initHighlightingOnLoad:H,registerLanguage:le,unregisterLanguage:ne,listLanguages:z,getLanguage:P,registerAliases:V,autoDetection:Ee,inherit:yn,addPlugin:tt,removePlugin:nt}),i.debugMode=function(){r=!1},i.safeMode=function(){r=!0},i.versionString=jo,i.regex={concat:te,lookahead:oi,either:Dt,optional:Qs,anyNumberOfTimes:Js};for(const u in Te)typeof Te[u]=="object"&&ri(Te[u]);return Object.assign(i,Te),i},ae=gi({});ae.newInstance=()=>gi({});var Bo=ae;ae.HighlightJS=ae;ae.default=ae;const Ye=Xs(Bo),Ge="[A-Za-z$_][0-9A-Za-z$_]*",mi=["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"],bi=["true","false","null","undefined","NaN","Infinity"],yi=["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"],wi=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],xi=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],vi=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ei=[].concat(xi,yi,wi);function Uo(i){const e=i.regex,t=(u,{after:d})=>{const w="</"+u[0].slice(1);return u.input.indexOf(w,d)!==-1},n=Ge,r={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(u,d)=>{const w=u[0].length+u.index,v=u.input[w];if(v==="<"||v===","){d.ignoreMatch();return}v===">"&&(t(u,{after:w})||d.ignoreMatch());let A;const L=u.input.substring(w);if(A=L.match(/^\s*=/)){d.ignoreMatch();return}if((A=L.match(/^\s+extends\s+/))&&A.index===0){d.ignoreMatch();return}}},a={$pattern:Ge,keyword:mi,literal:bi,built_in:Ei,"variable.language":vi},l="[0-9](_?[0-9])*",c=`\\.(${l})`,h="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${h})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${h})\\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},g={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},k={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,g],subLanguage:"xml"}},R={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,g],subLanguage:"css"}},T={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,g],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE,g]},F={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]},H=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,k,R,T,m,{match:/\$\d+/},b];g.contains=H.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(H)});const K=[].concat(F,g.contains),$=K.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(K)}]),W={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:$},le={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"}}]},ne={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:{_:[...yi,...wi]}},z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},P={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[W],illegal:/%/},V={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Ee(u){return e.concat("(?!",u.join("|"),")")}const et={match:e.concat(/\b/,Ee([...xi,"super","import"]),n,e.lookahead(/\(/)),className:"title.function",relevance:0},tt={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},nt={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},W]},J="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+i.UNDERSCORE_IDENT_RE+")\\s*=>",it={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(J)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[W]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:$,CLASS_REFERENCE:ne},illegal:/#(?![$_A-z])/,contains:[i.SHEBANG({label:"shebang",binary:"node",relevance:5}),z,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,k,R,T,m,F,{match:/\$\d+/},b,ne,{className:"attr",begin:n+e.lookahead(":"),relevance:0},it,{begin:"("+i.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[F,i.REGEXP_MODE,{className:"function",begin:J,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:$}]}]},{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"]}]}]},P,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+i.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[W,i.inherit(i.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},tt,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[W]},et,V,le,nt,{match:/\$[(.]/}]}}function Fo(i){const e=Uo(i),t=Ge,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:Ge,keyword:mi.concat(a),literal:bi,built_in:Ei.concat(n),"variable.language":vi},c={className:"meta",begin:"@"+t},h=(g,k,R)=>{const T=g.contains.findIndex(m=>m.label===k);if(T===-1)throw new Error("can not find mode to replace");g.contains.splice(T,1,R)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,r,o]),h(e,"shebang",i.SHEBANG()),h(e,"use_strict",s);const b=e.contains.find(g=>g.label==="func.def");return b.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function Ho(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 Wo=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_-]*/}}),Go=["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"],Xo=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],Zo=["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"],qo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Ko=["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 Vo(i){const e=i.regex,t=Wo(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:":("+Zo.join("|")+")"},{begin:":(:)?("+qo.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ko.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...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:Xo.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Go.join("|")+")\\b"}]}}const Si=document.createElement("style");Si.innerText=[Ws,Gs].join(`
190
- `);document.head.appendChild(Si);Ye.registerLanguage("typescript",Fo);Ye.registerLanguage("html",Ho);Ye.registerLanguage("css",Vo);function Jo(...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 he(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 de(i,e){const t=document.createElement(i);return typeof e=="string"?t.innerHTML=e:e.forEach(n=>{t.appendChild(n)}),t}async function Qo(i,e,t){var n,r,o;const s=e.mainContent,a=de("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,h=Jo(he("Preview",a),he("HTML",$e("html",s)),...c?[he(l??"CSS",$e("css",c))]:[],...e.initializer&&e.initializer.content?[he(e.initializer.label??"TS",$e("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(g=>he(g.label,$e(g.language,g.content))));e.description&&i.appendChild(de("div",e.description));const b=de("div",[h]);b.classList.add("example"),i.appendChild(b),c&&Yo(`#${a.id}`,c),(o=e.initializer)!=null&&o.initialize&&await e.initializer.initialize(a)}function $e(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(`
191
- `).trim();return i&&i!="raw"&&(t=Ye.highlight(t,{language:i}).value),de("pre",[de("code",t)])}function Yo(i,e){const t=document.createElement("style");t.innerHTML=C().use(Hs({prefix:i})).process(e).css,document.head.appendChild(t)}async function ea(i,e=document.body){const t=na(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;Qo(o,s,n++)})}function ta(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 na(i){return i.children?ta(i):i}const ia=`<h1 id="@cas-smartdesign/login-loading-indicator">@cas-smartdesign/login-loading-indicator</h1>
186
+ `)&&(n=`\r
187
+ `),this.css+=n+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let n=this.toUrl(this.path(t.file)),c=t.root||a(t.file),u;this.mapOpts.sourcesContent===!1?(u=new r(t.text),u.sourcesContent&&(u.sourcesContent=null)):u=t.consumer(),this.map.applySourceMap(u,n,this.toUrl(this.path(c)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let n=this.root.nodes.length-1;n>=0;n--)t=this.root.nodes[n],t.type==="comment"&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&x&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,n=>{t+=n}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=h.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new h({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 h({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,n=1,c="<no source>",u={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,E;this.stringify(this.root,(S,w,y)=>{if(this.css+=S,w&&y!=="end"&&(u.generated.line=t,u.generated.column=n-1,w.source&&w.source.start?(u.source=this.sourcePath(w),u.original.line=w.source.start.line,u.original.column=w.source.start.column-1,this.map.addMapping(u)):(u.source=c,u.original.line=1,u.original.column=0,this.map.addMapping(u))),E=S.match(/\n/g),E?(t+=E.length,g=S.lastIndexOf(`
188
+ `),n=S.length-g):n+=S.length,w&&y!=="start"){let b=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==b.last||b.raws.semicolon)&&(w.source&&w.source.end?(u.source=this.sourcePath(w),u.original.line=w.source.end.line,u.original.column=w.source.end.column-1,u.generated.line=t,u.generated.column=n-2,this.map.addMapping(u)):(u.source=c,u.original.line=1,u.original.column=0,u.generated.line=t,u.generated.column=n-1,this.map.addMapping(u)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(n=>n.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(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let n=this.memoizedPaths.get(t);if(n)return n;let c=this.opts.to?a(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(c=a(m(c,this.mapOpts.annotation)));let u=f(c,t);return this.memoizedPaths.set(t,u),u}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let n=t.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let t=new p(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(n=>{if(n.source){let c=n.source.input.from;if(c&&!t[c]){t[c]=!0;let u=this.usesFileUrls?this.toFileUrl(c):this.toUrl(this.path(c));this.map.setSourceContent(u,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let n=this.memoizedFileURLs.get(t);if(n)return n;if(s){let c=s(t).toString();return this.memoizedFileURLs.set(t,c),c}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let n=this.memoizedURLs.get(t);if(n)return n;d==="\\"&&(t=t.replace(/\\/g,"/"));let c=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,c),c}}return Ot=e,Ot}var Rt,An;function ui(){if(An)return Rt;An=1;const a=39,f=34,m=92,d=47,r=10,h=32,s=12,p=9,x=13,l=91,e=93,i=40,t=41,n=123,c=125,u=59,g=42,E=58,S=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,k=/[\da-f]/i;return Rt=function(T,U={}){let L=T.css.valueOf(),J=U.ignoreErrors,F,be,ae,N,Ee,H,Q,ie,se,de,ye=L.length,z=0,Re=[],Se=[];function et(){return z}function Ce(pe){throw T.error("Unclosed "+pe,z)}function tt(){return Se.length===0&&z>=ye}function ke(pe){if(Se.length)return Se.pop();if(z>=ye)return;let Ae=pe?pe.ignoreUnclosed:!1;switch(F=L.charCodeAt(z),F){case r:case h:case p:case x:case s:{N=z;do N+=1,F=L.charCodeAt(N);while(F===h||F===r||F===p||F===x||F===s);H=["space",L.slice(z,N)],z=N-1;break}case l:case e:case n:case c:case E:case u:case t:{let Te=String.fromCharCode(F);H=[Te,Te,z];break}case i:{if(de=Re.length?Re.pop()[1]:"",se=L.charCodeAt(z+1),de==="url"&&se!==a&&se!==f&&se!==h&&se!==r&&se!==p&&se!==s&&se!==x){N=z;do{if(Q=!1,N=L.indexOf(")",N+1),N===-1)if(J||Ae){N=z;break}else Ce("bracket");for(ie=N;L.charCodeAt(ie-1)===m;)ie-=1,Q=!Q}while(Q);H=["brackets",L.slice(z,N+1),z,N],z=N}else N=L.indexOf(")",z+1),be=L.slice(z,N+1),N===-1||b.test(be)?H=["(","(",z]:(H=["brackets",be,z,N],z=N);break}case a:case f:{Ee=F===a?"'":'"',N=z;do{if(Q=!1,N=L.indexOf(Ee,N+1),N===-1)if(J||Ae){N=z+1;break}else Ce("string");for(ie=N;L.charCodeAt(ie-1)===m;)ie-=1,Q=!Q}while(Q);H=["string",L.slice(z,N+1),z,N],z=N;break}case S:{w.lastIndex=z+1,w.test(L),w.lastIndex===0?N=L.length-1:N=w.lastIndex-2,H=["at-word",L.slice(z,N+1),z,N],z=N;break}case m:{for(N=z,ae=!0;L.charCodeAt(N+1)===m;)N+=1,ae=!ae;if(F=L.charCodeAt(N+1),ae&&F!==d&&F!==h&&F!==r&&F!==p&&F!==x&&F!==s&&(N+=1,k.test(L.charAt(N)))){for(;k.test(L.charAt(N+1));)N+=1;L.charCodeAt(N+1)===h&&(N+=1)}H=["word",L.slice(z,N+1),z,N],z=N;break}default:{F===d&&L.charCodeAt(z+1)===g?(N=L.indexOf("*/",z+2)+1,N===0&&(J||Ae?N=L.length:Ce("comment")),H=["comment",L.slice(z,N+1),z,N],z=N):(y.lastIndex=z+1,y.test(L),y.lastIndex===0?N=L.length-1:N=y.lastIndex-2,H=["word",L.slice(z,N+1),z,N],Re.push(H),z=N);break}}return z++,H}function nt(pe){Se.push(pe)}return{back:nt,endOfFile:tt,nextToken:ke,position:et}},Rt}var Ct,Nn;function hi(){if(Nn)return Ct;Nn=1;let a=$t(),f=Ke(),m=Ve(),d=Ie(),r=Ft(),h=ui();const s={empty:!0,space:!0};function p(l){for(let e=l.length-1;e>=0;e--){let i=l[e],t=i[3]||i[2];if(t)return t}}class x{constructor(e){this.input=e,this.root=new d,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let i=new a;i.name=e[1].slice(1),i.name===""&&this.unnamedAtrule(i,e),this.init(i,e[2]);let t,n,c,u=!1,g=!1,E=[],S=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),t=e[0],t==="("||t==="["?S.push(t==="("?")":"]"):t==="{"&&S.length>0?S.push("}"):t===S[S.length-1]&&S.pop(),S.length===0)if(t===";"){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if(t==="{"){g=!0;break}else if(t==="}"){if(E.length>0){for(c=E.length-1,n=E[c];n&&n[0]==="space";)n=E[--c];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}else E.push(e);else E.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(E),E.length?(i.raws.afterName=this.spacesAndCommentsFromStart(E),this.raw(i,"params",E),u&&(e=E[E.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),g&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let i=this.colon(e);if(i===!1)return;let t=0,n;for(let c=i-1;c>=0&&(n=e[c],!(n[0]!=="space"&&(t+=1,t===2)));c--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let i=0,t,n,c;for(let[u,g]of e.entries()){if(n=g,c=n[0],c==="("&&(i+=1),c===")"&&(i-=1),i===0&&c===":")if(!t)this.doubleColon(n);else{if(t[0]==="word"&&t[1]==="progid")continue;return u}t=n}return!1}comment(e){let i=new f;this.init(i,e[2]),i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++;let t=e[1].slice(2,-2);if(/^\s*$/.test(t))i.text="",i.raws.left=t,i.raws.right="";else{let n=t.match(/^(\s*)([^]*\S)(\s*)$/);i.text=n[2],i.raws.left=n[1],i.raws.right=n[3]}}createTokenizer(){this.tokenizer=h(this.input)}decl(e,i){let t=new m;this.init(t,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),t.source.end=this.getPosition(n[3]||n[2]||p(e)),t.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start=this.getPosition(e[0][2]),t.prop="";e.length;){let S=e[0][0];if(S===":"||S==="space"||S==="comment")break;t.prop+=e.shift()[1]}t.raws.between="";let c;for(;e.length;)if(c=e.shift(),c[0]===":"){t.raws.between+=c[1];break}else c[0]==="word"&&/\w/.test(c[1])&&this.unknownWord([c]),t.raws.between+=c[1];(t.prop[0]==="_"||t.prop[0]==="*")&&(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1));let u=[],g;for(;e.length&&(g=e[0][0],!(g!=="space"&&g!=="comment"));)u.push(e.shift());this.precheckMissedSemicolon(e);for(let S=e.length-1;S>=0;S--){if(c=e[S],c[1].toLowerCase()==="!important"){t.important=!0;let w=this.stringFrom(e,S);w=this.spacesFromEnd(e)+w,w!==" !important"&&(t.raws.important=w);break}else if(c[1].toLowerCase()==="important"){let w=e.slice(0),y="";for(let b=S;b>0;b--){let k=w[b][0];if(y.trim().startsWith("!")&&k!=="space")break;y=w.pop()[1]+y}y.trim().startsWith("!")&&(t.important=!0,t.raws.important=y,e=w)}if(c[0]!=="space"&&c[0]!=="comment")break}e.some(S=>S[0]!=="space"&&S[0]!=="comment")&&(t.raws.between+=u.map(S=>S[1]).join(""),u=[]),this.raw(t,"value",u.concat(e),i),t.value.includes(":")&&!i&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let i=new r;this.init(i,e[2]),i.selector="",i.raws.between="",this.current=i}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 i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="",i.source.end=this.getPosition(e[2]),i.source.end.offset+=i.raws.ownSemicolon.length)}}getPosition(e){let i=this.input.fromOffset(e);return{column:i.col,line:i.line,offset:e}}init(e,i){this.current.push(e),e.source={input:this.input,start:this.getPosition(i)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let i=!1,t=null,n=!1,c=null,u=[],g=e[1].startsWith("--"),E=[],S=e;for(;S;){if(t=S[0],E.push(S),t==="("||t==="[")c||(c=S),u.push(t==="("?")":"]");else if(g&&n&&t==="{")c||(c=S),u.push("}");else if(u.length===0)if(t===";")if(n){this.decl(E,g);return}else break;else if(t==="{"){this.rule(E);return}else if(t==="}"){this.tokenizer.back(E.pop()),i=!0;break}else t===":"&&(n=!0);else t===u[u.length-1]&&(u.pop(),u.length===0&&(c=null));S=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),u.length>0&&this.unclosedBracket(c),i&&n){if(!g)for(;E.length&&(S=E[E.length-1][0],!(S!=="space"&&S!=="comment"));)this.tokenizer.back(E.pop());this.decl(E,g)}else this.unknownWord(E)}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,i,t,n){let c,u,g=t.length,E="",S=!0,w,y;for(let b=0;b<g;b+=1)c=t[b],u=c[0],u==="space"&&b===g-1&&!n?S=!1:u==="comment"?(y=t[b-1]?t[b-1][0]:"empty",w=t[b+1]?t[b+1][0]:"empty",!s[y]&&!s[w]?E.slice(-1)===","?S=!1:E+=c[1]:S=!1):E+=c[1];if(!S){let b=t.reduce((k,C)=>k+C[1],"");e.raws[i]={raw:b,value:E}}e[i]=E}rule(e){e.pop();let i=new r;this.init(i,e[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(i,"selector",e),this.current=i}spacesAndCommentsFromEnd(e){let i,t="";for(;e.length&&(i=e[e.length-1][0],!(i!=="space"&&i!=="comment"));)t=e.pop()[1]+t;return t}spacesAndCommentsFromStart(e){let i,t="";for(;e.length&&(i=e[0][0],!(i!=="space"&&i!=="comment"));)t+=e.shift()[1];return t}spacesFromEnd(e){let i,t="";for(;e.length&&(i=e[e.length-1][0],i==="space");)t=e.pop()[1]+t;return t}stringFrom(e,i){let t="";for(let n=i;n<e.length;n++)t+=e[n][1];return e.splice(i,e.length-i),t}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})}}return Ct=x,Ct}var At,Mn;function Wt(){if(Mn)return At;Mn=1;let a=ve(),f=Qe(),m=hi();function d(r,h){let s=new f(r,h),p=new m(s);try{p.parse()}catch(x){throw x}return p.root}return At=d,d.default=d,a.registerParse(d),At}var Nt,Pn;function Gn(){if(Pn)return Nt;Pn=1;class a{constructor(m,d={}){if(this.type="warning",this.text=m,d.node&&d.node.source){let r=d.node.rangeBy(d);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in d)this[r]=d[r]}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 Nt=a,a.default=a,Nt}var Mt,Ln;function Ht(){if(Ln)return Mt;Ln=1;let a=Gn();class f{get content(){return this.css}constructor(d,r,h){this.processor=d,this.messages=[],this.root=r,this.opts=h,this.css="",this.map=void 0}toString(){return this.css}warn(d,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let h=new a(d,r);return this.messages.push(h),h}warnings(){return this.messages.filter(d=>d.type==="warning")}}return Mt=f,f.default=f,Mt}var Pt,In;function Xn(){if(In)return Pt;In=1;let a=ve(),f=qt(),m=Hn(),d=Wt(),r=Ht(),h=Ie(),s=Ze(),{isClean:p,my:x}=Ut();const l={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},e={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},i={Once:!0,postcssPlugin:!0,prepare:!0},t=0;function n(w){return typeof w=="object"&&typeof w.then=="function"}function c(w){let y=!1,b=l[w.type];return w.type==="decl"?y=w.prop.toLowerCase():w.type==="atrule"&&(y=w.name.toLowerCase()),y&&w.append?[b,b+"-"+y,t,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:w.append?[b,t,b+"Exit"]:[b,b+"Exit"]}function u(w){let y;return w.type==="document"?y=["Document",t,"DocumentExit"]:w.type==="root"?y=["Root",t,"RootExit"]:y=c(w),{eventIndex:0,events:y,iterator:0,node:w,visitorIndex:0,visitors:[]}}function g(w){return w[p]=!1,w.nodes&&w.nodes.forEach(y=>g(y)),w}let E={};class S{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,b,k){this.stringified=!1,this.processed=!1;let C;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))C=g(b);else if(b instanceof S||b instanceof r)C=g(b.root),b.map&&(typeof k.map>"u"&&(k.map={}),k.map.inline||(k.map.inline=!1),k.map.prev=b.map);else{let T=d;k.syntax&&(T=k.syntax.parse),k.parser&&(T=k.parser),T.parse&&(T=T.parse);try{C=T(b,k)}catch(U){this.processed=!0,this.error=U}C&&!C[x]&&a.rebuild(C)}this.result=new r(y,C,k),this.helpers={...E,postcss:E,result:this.result},this.plugins=this.processor.plugins.map(T=>typeof T=="object"&&T.prepare?{...T,...T.prepare(this.result)}:T)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let k=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=k.postcssPlugin,y.setMessage()):k.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(b,k,C)=>{this.listeners[k]||(this.listeners[k]=[]),this.listeners[k].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let k in b){if(!e[k]&&/^[A-Z]/.test(k))throw new Error(`Unknown event ${k} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!i[k])if(typeof b[k]=="object")for(let C in b[k])C==="*"?y(b,k,b[k][C]):y(b,k+"-"+C.toLowerCase(),b[k][C]);else typeof b[k]=="function"&&y(b,k,b[k])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],k=this.runOnRoot(b);if(n(k))try{await k}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[p];){y[p]=!0;let b=[u(y)];for(;b.length>0;){let k=this.visitTick(b);if(n(k))try{await k}catch(C){let T=b[b.length-1].node;throw this.handleError(C,T)}}}if(this.listeners.OnceExit)for(let[b,k]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let C=y.nodes.map(T=>k(T,this.helpers));await Promise.all(C)}else await k(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(k=>y.Once(k,this.helpers));return n(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=s;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let C=new m(b,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let b=this.runOnRoot(y);if(n(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[p];)y[p]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[k,C]of y){this.result.lastPlugin=k;let T;try{T=C(b,this.helpers)}catch(U){throw this.handleError(U,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(n(T))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:k,visitors:C}=b;if(k.type!=="root"&&k.type!=="document"&&!k.parent){y.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[U,L]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=U;try{return L(k.toProxy(),this.helpers)}catch(J){throw this.handleError(J,k)}}if(b.iterator!==0){let U=b.iterator,L;for(;L=k.nodes[k.indexes[U]];)if(k.indexes[U]+=1,!L[p]){L[p]=!0,y.push(u(L));return}b.iterator=0,delete k.indexes[U]}let T=b.events;for(;b.eventIndex<T.length;){let U=T[b.eventIndex];if(b.eventIndex+=1,U===t){k.nodes&&k.nodes.length&&(k[p]=!0,b.iterator=k.getIterator());return}else if(this.listeners[U]){b.visitors=this.listeners[U];return}}y.pop()}walkSync(y){y[p]=!0;let b=c(y);for(let k of b)if(k===t)y.nodes&&y.each(C=>{C[p]||this.walkSync(C)});else{let C=this.listeners[k];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=w=>{E=w},Pt=S,S.default=S,h.registerLazyResult(S),f.registerLazyResult(S),Pt}var Lt,Tn;function fi(){if(Tn)return Lt;Tn=1;let a=Hn(),f=Wt();const m=Ht();let d=Ze();class r{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 s,p=f;try{s=p(this._css,this._opts)}catch(x){this.error=x}if(this.error)throw this.error;return this._root=s,s}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(s,p,x){p=p.toString(),this.stringified=!1,this._processor=s,this._css=p,this._opts=x,this._map=void 0;let l,e=d;this.result=new m(this._processor,l,this._opts),this.result.css=p;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let t=new a(e,l,this._opts,p);if(t.isMap()){let[n,c]=t.generate();n&&(this.result.css=n),c&&(this.result.map=c)}else t.clearAnnotation(),this.result.css=t.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(s){return this.async().catch(s)}finally(s){return this.async().then(s,s)}sync(){if(this.error)throw this.error;return this.result}then(s,p){return this.async().then(s,p)}toString(){return this._css}warnings(){return[]}}return Lt=r,r.default=r,Lt}var It,jn;function di(){if(jn)return It;jn=1;let a=qt(),f=Xn(),m=fi(),d=Ie();class r{constructor(s=[]){this.version="8.5.6",this.plugins=this.normalize(s)}normalize(s){let p=[];for(let x of s)if(x.postcss===!0?x=x():x.postcss&&(x=x.postcss),typeof x=="object"&&Array.isArray(x.plugins))p=p.concat(x.plugins);else if(typeof x=="object"&&x.postcssPlugin)p.push(x);else if(typeof x=="function")p.push(x);else if(!(typeof x=="object"&&(x.parse||x.stringify)))throw new Error(x+" is not a PostCSS plugin");return p}process(s,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new m(this,s,p):new f(this,s,p)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return It=r,r.default=r,d.registerProcessor(r),a.registerProcessor(r),It}var Tt,zn;function pi(){if(zn)return Tt;zn=1;var a={};let f=$t(),m=Ke(),d=ve(),r=Bt(),h=Ve(),s=qt(),p=ci(),x=Qe(),l=Xn(),e=Wn(),i=Je(),t=Wt(),n=di(),c=Ht(),u=Ie(),g=Ft(),E=Ze(),S=Gn();function w(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new n(y)}return w.plugin=function(b,k){let C=!1;function T(...L){console&&console.warn&&!C&&(C=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
189
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),a.LANG&&a.LANG.startsWith("cn")&&console.warn(b+`: 里面 postcss.plugin 被弃用. 迁移指南:
190
+ https://www.w3ctech.com/topic/2226`));let J=k(...L);return J.postcssPlugin=b,J.postcssVersion=new n().version,J}let U;return Object.defineProperty(T,"postcss",{get(){return U||(U=T()),U}}),T.process=function(L,J,F){return w([T(F)]).process(L,J)},T},w.stringify=E,w.parse=t,w.fromJSON=p,w.list=e,w.comment=y=>new m(y),w.atRule=y=>new f(y),w.decl=y=>new h(y),w.rule=y=>new g(y),w.root=y=>new u(y),w.document=y=>new s(y),w.CssSyntaxError=r,w.Declaration=h,w.Container=d,w.Processor=n,w.Document=s,w.Comment=m,w.Warning=S,w.AtRule=f,w.Result=c,w.Input=x,w.Rule=g,w.Root=u,w.Node=i,l.registerPostcss(w),Tt=w,w.default=w,Tt}var gi=pi();const Z=$n(gi);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 jt,Dn;function mi(){if(Dn)return jt;Dn=1;const a=(d={})=>{const r=d.prefix,h=/\s+$/.test(r)?r:`${r} `,s=d.ignoreFiles?[].concat(d.ignoreFiles):[],p=d.includeFiles?[].concat(d.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(x){const l=x.root,e=l.source.input.file;if(!(s.length&&e&&f(e,s))&&!(p.length&&e&&!f(e,p)))return{Rule(i,{result:t}){const n=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];i.parent&&n.includes(i.parent.name)||(i.selectors=i.selectors.map(c=>d.exclude&&m(c,d.exclude)?c:d.transform?d.transform(r,c,h+c,l.source.input.file,i):[":root","body","html"].some(u=>c.startsWith(u))?d.skipGlobalSelectors?c:c.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,r):h+c))}}}}};function f(d,r){return r.some(h=>h instanceof RegExp?h.test(d):d.includes(h))}function m(d,r){return r.some(h=>h instanceof RegExp?h.test(d):d===h)}return a.postcss=!0,jt=a,jt}var bi=mi();const yi=$n(bi),wi="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}",xi="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 vi(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var zt,Bn;function Ei(){if(Bn)return zt;Bn=1;function a(o){return o instanceof Map?o.clear=o.delete=o.set=function(){throw new Error("map is read-only")}:o instanceof Set&&(o.add=o.clear=o.delete=function(){throw new Error("set is read-only")}),Object.freeze(o),Object.getOwnPropertyNames(o).forEach(v=>{const R=o[v],B=typeof R;(B==="object"||B==="function")&&!Object.isFrozen(R)&&a(R)}),o}class f{constructor(v){v.data===void 0&&(v.data={}),this.data=v.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function m(o){return o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function d(o,...v){const R=Object.create(null);for(const B in o)R[B]=o[B];return v.forEach(function(B){for(const K in B)R[K]=B[K]}),R}const r="</span>",h=o=>!!o.scope,s=(o,{prefix:v})=>{if(o.startsWith("language:"))return o.replace("language:","language-");if(o.includes(".")){const R=o.split(".");return[`${v}${R.shift()}`,...R.map((B,K)=>`${B}${"_".repeat(K+1)}`)].join(" ")}return`${v}${o}`};class p{constructor(v,R){this.buffer="",this.classPrefix=R.classPrefix,v.walk(this)}addText(v){this.buffer+=m(v)}openNode(v){if(!h(v))return;const R=s(v.scope,{prefix:this.classPrefix});this.span(R)}closeNode(v){h(v)&&(this.buffer+=r)}value(){return this.buffer}span(v){this.buffer+=`<span class="${v}">`}}const x=(o={})=>{const v={children:[]};return Object.assign(v,o),v};class l{constructor(){this.rootNode=x(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(v){this.top.children.push(v)}openNode(v){const R=x({scope:v});this.add(R),this.stack.push(R)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(v){return this.constructor._walk(v,this.rootNode)}static _walk(v,R){return typeof R=="string"?v.addText(R):R.children&&(v.openNode(R),R.children.forEach(B=>this._walk(v,B)),v.closeNode(R)),v}static _collapse(v){typeof v!="string"&&v.children&&(v.children.every(R=>typeof R=="string")?v.children=[v.children.join("")]:v.children.forEach(R=>{l._collapse(R)}))}}class e extends l{constructor(v){super(),this.options=v}addText(v){v!==""&&this.add(v)}startScope(v){this.openNode(v)}endScope(){this.closeNode()}__addSublanguage(v,R){const B=v.root;R&&(B.scope=`language:${R}`),this.add(B)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function i(o){return o?typeof o=="string"?o:o.source:null}function t(o){return u("(?=",o,")")}function n(o){return u("(?:",o,")*")}function c(o){return u("(?:",o,")?")}function u(...o){return o.map(v=>i(v)).join("")}function g(o){const v=o[o.length-1];return typeof v=="object"&&v.constructor===Object?(o.splice(o.length-1,1),v):{}}function E(...o){return"("+(g(o).capture?"":"?:")+o.map(v=>i(v)).join("|")+")"}function S(o){return new RegExp(o.toString()+"|").exec("").length-1}function w(o,v){const R=o&&o.exec(v);return R&&R.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(o,{joinWith:v}){let R=0;return o.map(B=>{R+=1;const K=R;let V=i(B),M="";for(;V.length>0;){const A=y.exec(V);if(!A){M+=V;break}M+=V.substring(0,A.index),V=V.substring(A.index+A[0].length),A[0][0]==="\\"&&A[1]?M+="\\"+String(Number(A[1])+K):(M+=A[0],A[0]==="("&&R++)}return M}).map(B=>`(${B})`).join(v)}const k=/\b\B/,C="[a-zA-Z]\\w*",T="[a-zA-Z_]\\w*",U="\\b\\d+(\\.\\d+)?",L="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",J="\\b(0b[01]+)",F="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",be=(o={})=>{const v=/^#![ ]*\//;return o.binary&&(o.begin=u(v,/.*\b/,o.binary,/\b.*/)),d({scope:"meta",begin:v,end:/$/,relevance:0,"on:begin":(R,B)=>{R.index!==0&&B.ignoreMatch()}},o)},ae={begin:"\\\\[\\s\\S]",relevance:0},N={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ae]},Ee={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ae]},H={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/},Q=function(o,v,R={}){const B=d({scope:"comment",begin:o,end:v,contains:[]},R);B.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 K=E("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 B.contains.push({begin:u(/[ ]+/,"(",K,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),B},ie=Q("//","$"),se=Q("/\\*","\\*/"),de=Q("#","$"),ye={scope:"number",begin:U,relevance:0},z={scope:"number",begin:L,relevance:0},Re={scope:"number",begin:J,relevance:0},Se={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ae,{begin:/\[/,end:/\]/,relevance:0,contains:[ae]}]},et={scope:"title",begin:C,relevance:0},Ce={scope:"title",begin:T,relevance:0},tt={begin:"\\.\\s*"+T,relevance:0};var ke=Object.freeze({__proto__:null,APOS_STRING_MODE:N,BACKSLASH_ESCAPE:ae,BINARY_NUMBER_MODE:Re,BINARY_NUMBER_RE:J,COMMENT:Q,C_BLOCK_COMMENT_MODE:se,C_LINE_COMMENT_MODE:ie,C_NUMBER_MODE:z,C_NUMBER_RE:L,END_SAME_AS_BEGIN:function(o){return Object.assign(o,{"on:begin":(v,R)=>{R.data._beginMatch=v[1]},"on:end":(v,R)=>{R.data._beginMatch!==v[1]&&R.ignoreMatch()}})},HASH_COMMENT_MODE:de,IDENT_RE:C,MATCH_NOTHING_RE:k,METHOD_GUARD:tt,NUMBER_MODE:ye,NUMBER_RE:U,PHRASAL_WORDS_MODE:H,QUOTE_STRING_MODE:Ee,REGEXP_MODE:Se,RE_STARTERS_RE:F,SHEBANG:be,TITLE_MODE:et,UNDERSCORE_IDENT_RE:T,UNDERSCORE_TITLE_MODE:Ce});function nt(o,v){o.input[o.index-1]==="."&&v.ignoreMatch()}function pe(o,v){o.className!==void 0&&(o.scope=o.className,delete o.className)}function Ae(o,v){v&&o.beginKeywords&&(o.begin="\\b("+o.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",o.__beforeBegin=nt,o.keywords=o.keywords||o.beginKeywords,delete o.beginKeywords,o.relevance===void 0&&(o.relevance=0))}function Te(o,v){Array.isArray(o.illegal)&&(o.illegal=E(...o.illegal))}function nr(o,v){if(o.match){if(o.begin||o.end)throw new Error("begin & end are not supported with match");o.begin=o.match,delete o.match}}function rr(o,v){o.relevance===void 0&&(o.relevance=1)}const ir=(o,v)=>{if(!o.beforeMatch)return;if(o.starts)throw new Error("beforeMatch cannot be used with starts");const R=Object.assign({},o);Object.keys(o).forEach(B=>{delete o[B]}),o.keywords=R.keywords,o.begin=u(R.beforeMatch,t(R.begin)),o.starts={relevance:0,contains:[Object.assign(R,{endsParent:!0})]},o.relevance=0,delete R.beforeMatch},sr=["of","and","for","in","not","or","if","then","parent","list","value"],or="keyword";function Gt(o,v,R=or){const B=Object.create(null);return typeof o=="string"?K(R,o.split(" ")):Array.isArray(o)?K(R,o):Object.keys(o).forEach(function(V){Object.assign(B,Gt(o[V],v,V))}),B;function K(V,M){v&&(M=M.map(A=>A.toLowerCase())),M.forEach(function(A){const j=A.split("|");B[j[0]]=[V,ar(j[0],j[1])]})}}function ar(o,v){return v?Number(v):lr(o)?0:1}function lr(o){return sr.includes(o.toLowerCase())}const Xt={},we=o=>{console.error(o)},Zt=(o,...v)=>{console.log(`WARN: ${o}`,...v)},_e=(o,v)=>{Xt[`${o}/${v}`]||(console.log(`Deprecated as of ${o}. ${v}`),Xt[`${o}/${v}`]=!0)},je=new Error;function Jt(o,v,{key:R}){let B=0;const K=o[R],V={},M={};for(let A=1;A<=v.length;A++)M[A+B]=K[A],V[A+B]=!0,B+=S(v[A-1]);o[R]=M,o[R]._emit=V,o[R]._multi=!0}function cr(o){if(Array.isArray(o.begin)){if(o.skip||o.excludeBegin||o.returnBegin)throw we("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),je;if(typeof o.beginScope!="object"||o.beginScope===null)throw we("beginScope must be object"),je;Jt(o,o.begin,{key:"beginScope"}),o.begin=b(o.begin,{joinWith:""})}}function ur(o){if(Array.isArray(o.end)){if(o.skip||o.excludeEnd||o.returnEnd)throw we("skip, excludeEnd, returnEnd not compatible with endScope: {}"),je;if(typeof o.endScope!="object"||o.endScope===null)throw we("endScope must be object"),je;Jt(o,o.end,{key:"endScope"}),o.end=b(o.end,{joinWith:""})}}function hr(o){o.scope&&typeof o.scope=="object"&&o.scope!==null&&(o.beginScope=o.scope,delete o.scope)}function fr(o){hr(o),typeof o.beginScope=="string"&&(o.beginScope={_wrap:o.beginScope}),typeof o.endScope=="string"&&(o.endScope={_wrap:o.endScope}),cr(o),ur(o)}function dr(o){function v(M,A){return new RegExp(i(M),"m"+(o.case_insensitive?"i":"")+(o.unicodeRegex?"u":"")+(A?"g":""))}class R{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(A,j){j.position=this.position++,this.matchIndexes[this.matchAt]=j,this.regexes.push([j,A]),this.matchAt+=S(A)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const A=this.regexes.map(j=>j[1]);this.matcherRe=v(b(A,{joinWith:"|"}),!0),this.lastIndex=0}exec(A){this.matcherRe.lastIndex=this.lastIndex;const j=this.matcherRe.exec(A);if(!j)return null;const te=j.findIndex((Ne,it)=>it>0&&Ne!==void 0),Y=this.matchIndexes[te];return j.splice(0,te),Object.assign(j,Y)}}class B{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 j=new R;return this.rules.slice(A).forEach(([te,Y])=>j.addRule(te,Y)),j.compile(),this.multiRegexes[A]=j,j}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(A,j){this.rules.push([A,j]),j.type==="begin"&&this.count++}exec(A){const j=this.getMatcher(this.regexIndex);j.lastIndex=this.lastIndex;let te=j.exec(A);if(this.resumingScanAtSamePosition()&&!(te&&te.index===this.lastIndex)){const Y=this.getMatcher(0);Y.lastIndex=this.lastIndex+1,te=Y.exec(A)}return te&&(this.regexIndex+=te.position+1,this.regexIndex===this.count&&this.considerAll()),te}}function K(M){const A=new B;return M.contains.forEach(j=>A.addRule(j.begin,{rule:j,type:"begin"})),M.terminatorEnd&&A.addRule(M.terminatorEnd,{type:"end"}),M.illegal&&A.addRule(M.illegal,{type:"illegal"}),A}function V(M,A){const j=M;if(M.isCompiled)return j;[pe,nr,fr,ir].forEach(Y=>Y(M,A)),o.compilerExtensions.forEach(Y=>Y(M,A)),M.__beforeBegin=null,[Ae,Te,rr].forEach(Y=>Y(M,A)),M.isCompiled=!0;let te=null;return typeof M.keywords=="object"&&M.keywords.$pattern&&(M.keywords=Object.assign({},M.keywords),te=M.keywords.$pattern,delete M.keywords.$pattern),te=te||/\w+/,M.keywords&&(M.keywords=Gt(M.keywords,o.case_insensitive)),j.keywordPatternRe=v(te,!0),A&&(M.begin||(M.begin=/\B|\b/),j.beginRe=v(j.begin),!M.end&&!M.endsWithParent&&(M.end=/\B|\b/),M.end&&(j.endRe=v(j.end)),j.terminatorEnd=i(j.end)||"",M.endsWithParent&&A.terminatorEnd&&(j.terminatorEnd+=(M.end?"|":"")+A.terminatorEnd)),M.illegal&&(j.illegalRe=v(M.illegal)),M.contains||(M.contains=[]),M.contains=[].concat(...M.contains.map(function(Y){return pr(Y==="self"?M:Y)})),M.contains.forEach(function(Y){V(Y,j)}),M.starts&&V(M.starts,A),j.matcher=K(j),j}if(o.compilerExtensions||(o.compilerExtensions=[]),o.contains&&o.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return o.classNameAliases=d(o.classNameAliases||{}),V(o)}function Kt(o){return o?o.endsWithParent||Kt(o.starts):!1}function pr(o){return o.variants&&!o.cachedVariants&&(o.cachedVariants=o.variants.map(function(v){return d(o,{variants:null},v)})),o.cachedVariants?o.cachedVariants:Kt(o)?d(o,{starts:o.starts?d(o.starts):null}):Object.isFrozen(o)?d(o):o}var gr="11.11.1";class mr extends Error{constructor(v,R){super(v),this.name="HTMLInjectionError",this.html=R}}const rt=m,Vt=d,Qt=Symbol("nomatch"),br=7,Yt=function(o){const v=Object.create(null),R=Object.create(null),B=[];let K=!0;const V="Could not find the language '{}', did you forget to load/include a language module?",M={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:e};function j(_){return A.noHighlightRe.test(_)}function te(_){let I=_.className+" ";I+=_.parentNode?_.parentNode.className:"";const q=A.languageDetectRe.exec(I);if(q){const G=ge(q[1]);return G||(Zt(V.replace("{}",q[1])),Zt("Falling back to no-highlight mode for this block.",_)),G?q[1]:"no-highlight"}return I.split(/\s+/).find(G=>j(G)||ge(G))}function Y(_,I,q){let G="",ee="";typeof I=="object"?(G=_,q=I.ignoreIllegals,ee=I.language):(_e("10.7.0","highlight(lang, code, ...args) has been deprecated."),_e("10.7.0",`Please use highlight(code, options) instead.
191
+ https://github.com/highlightjs/highlight.js/issues/2277`),ee=_,G=I),q===void 0&&(q=!0);const ce={code:G,language:ee};De("before:highlight",ce);const me=ce.result?ce.result:Ne(ce.language,ce.code,q);return me.code=ce.code,De("after:highlight",me),me}function Ne(_,I,q,G){const ee=Object.create(null);function ce(O,P){return O.keywords[P]}function me(){if(!D.keywords){ne.addText(X);return}let O=0;D.keywordPatternRe.lastIndex=0;let P=D.keywordPatternRe.exec(X),$="";for(;P;){$+=X.substring(O,P.index);const W=he.case_insensitive?P[0].toLowerCase():P[0],re=ce(D,W);if(re){const[fe,Ir]=re;if(ne.addText($),$="",ee[W]=(ee[W]||0)+1,ee[W]<=br&&($e+=Ir),fe.startsWith("_"))$+=P[0];else{const Tr=he.classNameAliases[fe]||fe;ue(P[0],Tr)}}else $+=P[0];O=D.keywordPatternRe.lastIndex,P=D.keywordPatternRe.exec(X)}$+=X.substring(O),ne.addText($)}function Be(){if(X==="")return;let O=null;if(typeof D.subLanguage=="string"){if(!v[D.subLanguage]){ne.addText(X);return}O=Ne(D.subLanguage,X,!0,ln[D.subLanguage]),ln[D.subLanguage]=O._top}else O=st(X,D.subLanguage.length?D.subLanguage:null);D.relevance>0&&($e+=O.relevance),ne.__addSublanguage(O._emitter,O.language)}function oe(){D.subLanguage!=null?Be():me(),X=""}function ue(O,P){O!==""&&(ne.startScope(P),ne.addText(O),ne.endScope())}function rn(O,P){let $=1;const W=P.length-1;for(;$<=W;){if(!O._emit[$]){$++;continue}const re=he.classNameAliases[O[$]]||O[$],fe=P[$];re?ue(fe,re):(X=fe,me(),X=""),$++}}function sn(O,P){return O.scope&&typeof O.scope=="string"&&ne.openNode(he.classNameAliases[O.scope]||O.scope),O.beginScope&&(O.beginScope._wrap?(ue(X,he.classNameAliases[O.beginScope._wrap]||O.beginScope._wrap),X=""):O.beginScope._multi&&(rn(O.beginScope,P),X="")),D=Object.create(O,{parent:{value:D}}),D}function on(O,P,$){let W=w(O.endRe,$);if(W){if(O["on:end"]){const re=new f(O);O["on:end"](P,re),re.isMatchIgnored&&(W=!1)}if(W){for(;O.endsParent&&O.parent;)O=O.parent;return O}}if(O.endsWithParent)return on(O.parent,P,$)}function Ar(O){return D.matcher.regexIndex===0?(X+=O[0],1):(ct=!0,0)}function Nr(O){const P=O[0],$=O.rule,W=new f($),re=[$.__beforeBegin,$["on:begin"]];for(const fe of re)if(fe&&(fe(O,W),W.isMatchIgnored))return Ar(P);return $.skip?X+=P:($.excludeBegin&&(X+=P),oe(),!$.returnBegin&&!$.excludeBegin&&(X=P)),sn($,O),$.returnBegin?0:P.length}function Mr(O){const P=O[0],$=I.substring(O.index),W=on(D,O,$);if(!W)return Qt;const re=D;D.endScope&&D.endScope._wrap?(oe(),ue(P,D.endScope._wrap)):D.endScope&&D.endScope._multi?(oe(),rn(D.endScope,O)):re.skip?X+=P:(re.returnEnd||re.excludeEnd||(X+=P),oe(),re.excludeEnd&&(X=P));do D.scope&&ne.closeNode(),!D.skip&&!D.subLanguage&&($e+=D.relevance),D=D.parent;while(D!==W.parent);return W.starts&&sn(W.starts,O),re.returnEnd?0:P.length}function Pr(){const O=[];for(let P=D;P!==he;P=P.parent)P.scope&&O.unshift(P.scope);O.forEach(P=>ne.openNode(P))}let Ue={};function an(O,P){const $=P&&P[0];if(X+=O,$==null)return oe(),0;if(Ue.type==="begin"&&P.type==="end"&&Ue.index===P.index&&$===""){if(X+=I.slice(P.index,P.index+1),!K){const W=new Error(`0 width match regex (${_})`);throw W.languageName=_,W.badRule=Ue.rule,W}return 1}if(Ue=P,P.type==="begin")return Nr(P);if(P.type==="illegal"&&!q){const W=new Error('Illegal lexeme "'+$+'" for mode "'+(D.scope||"<unnamed>")+'"');throw W.mode=D,W}else if(P.type==="end"){const W=Mr(P);if(W!==Qt)return W}if(P.type==="illegal"&&$==="")return X+=`
192
+ `,1;if(lt>1e5&&lt>P.index*3)throw new Error("potential infinite loop, way more iterations than matches");return X+=$,$.length}const he=ge(_);if(!he)throw we(V.replace("{}",_)),new Error('Unknown language: "'+_+'"');const Lr=dr(he);let at="",D=G||Lr;const ln={},ne=new A.__emitter(A);Pr();let X="",$e=0,xe=0,lt=0,ct=!1;try{if(he.__emitTokens)he.__emitTokens(I,ne);else{for(D.matcher.considerAll();;){lt++,ct?ct=!1:D.matcher.considerAll(),D.matcher.lastIndex=xe;const O=D.matcher.exec(I);if(!O)break;const P=I.substring(xe,O.index),$=an(P,O);xe=O.index+$}an(I.substring(xe))}return ne.finalize(),at=ne.toHTML(),{language:_,value:at,relevance:$e,illegal:!1,_emitter:ne,_top:D}}catch(O){if(O.message&&O.message.includes("Illegal"))return{language:_,value:rt(I),illegal:!0,relevance:0,_illegalBy:{message:O.message,index:xe,context:I.slice(xe-100,xe+100),mode:O.mode,resultSoFar:at},_emitter:ne};if(K)return{language:_,value:rt(I),illegal:!1,relevance:0,errorRaised:O,_emitter:ne,_top:D};throw O}}function it(_){const I={value:rt(_),illegal:!1,relevance:0,_top:M,_emitter:new A.__emitter(A)};return I._emitter.addText(_),I}function st(_,I){I=I||A.languages||Object.keys(v);const q=it(_),G=I.filter(ge).filter(nn).map(oe=>Ne(oe,_,!1));G.unshift(q);const ee=G.sort((oe,ue)=>{if(oe.relevance!==ue.relevance)return ue.relevance-oe.relevance;if(oe.language&&ue.language){if(ge(oe.language).supersetOf===ue.language)return 1;if(ge(ue.language).supersetOf===oe.language)return-1}return 0}),[ce,me]=ee,Be=ce;return Be.secondBest=me,Be}function yr(_,I,q){const G=I&&R[I]||q;_.classList.add("hljs"),_.classList.add(`language-${G}`)}function ot(_){let I=null;const q=te(_);if(j(q))return;if(De("before:highlightElement",{el:_,language:q}),_.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",_);return}if(_.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(_)),A.throwUnescapedHTML))throw new mr("One of your code blocks includes unescaped HTML.",_.innerHTML);I=_;const G=I.textContent,ee=q?Y(G,{language:q,ignoreIllegals:!0}):st(G);_.innerHTML=ee.value,_.dataset.highlighted="yes",yr(_,q,ee.language),_.result={language:ee.language,re:ee.relevance,relevance:ee.relevance},ee.secondBest&&(_.secondBest={language:ee.secondBest.language,relevance:ee.secondBest.relevance}),De("after:highlightElement",{el:_,result:ee,text:G})}function wr(_){A=Vt(A,_)}const xr=()=>{ze(),_e("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function vr(){ze(),_e("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let en=!1;function ze(){function _(){ze()}if(document.readyState==="loading"){en||window.addEventListener("DOMContentLoaded",_,!1),en=!0;return}document.querySelectorAll(A.cssSelector).forEach(ot)}function Er(_,I){let q=null;try{q=I(o)}catch(G){if(we("Language definition for '{}' could not be registered.".replace("{}",_)),K)we(G);else throw G;q=M}q.name||(q.name=_),v[_]=q,q.rawDefinition=I.bind(null,o),q.aliases&&tn(q.aliases,{languageName:_})}function Sr(_){delete v[_];for(const I of Object.keys(R))R[I]===_&&delete R[I]}function kr(){return Object.keys(v)}function ge(_){return _=(_||"").toLowerCase(),v[_]||v[R[_]]}function tn(_,{languageName:I}){typeof _=="string"&&(_=[_]),_.forEach(q=>{R[q.toLowerCase()]=I})}function nn(_){const I=ge(_);return I&&!I.disableAutodetect}function _r(_){_["before:highlightBlock"]&&!_["before:highlightElement"]&&(_["before:highlightElement"]=I=>{_["before:highlightBlock"](Object.assign({block:I.el},I))}),_["after:highlightBlock"]&&!_["after:highlightElement"]&&(_["after:highlightElement"]=I=>{_["after:highlightBlock"](Object.assign({block:I.el},I))})}function Or(_){_r(_),B.push(_)}function Rr(_){const I=B.indexOf(_);I!==-1&&B.splice(I,1)}function De(_,I){const q=_;B.forEach(function(G){G[q]&&G[q](I)})}function Cr(_){return _e("10.7.0","highlightBlock will be removed entirely in v12.0"),_e("10.7.0","Please use highlightElement now."),ot(_)}Object.assign(o,{highlight:Y,highlightAuto:st,highlightAll:ze,highlightElement:ot,highlightBlock:Cr,configure:wr,initHighlighting:xr,initHighlightingOnLoad:vr,registerLanguage:Er,unregisterLanguage:Sr,listLanguages:kr,getLanguage:ge,registerAliases:tn,autoDetection:nn,inherit:Vt,addPlugin:Or,removePlugin:Rr}),o.debugMode=function(){K=!1},o.safeMode=function(){K=!0},o.versionString=gr,o.regex={concat:u,lookahead:t,either:E,optional:c,anyNumberOfTimes:n};for(const _ in ke)typeof ke[_]=="object"&&a(ke[_]);return Object.assign(o,ke),o},Oe=Yt({});return Oe.newInstance=()=>Yt({}),zt=Oe,Oe.HighlightJS=Oe,Oe.default=Oe,zt}var Si=Ei();const Ye=vi(Si),Ge="[A-Za-z$_][0-9A-Za-z$_]*",Zn=["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"],Jn=["true","false","null","undefined","NaN","Infinity"],Kn=["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"],Vn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Qn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Yn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],er=[].concat(Qn,Kn,Vn);function ki(a){const f=a.regex,m=(H,{after:Q})=>{const ie="</"+H[0].slice(1);return H.input.indexOf(ie,Q)!==-1},d=Ge,r={begin:"<>",end:"</>"},h=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(H,Q)=>{const ie=H[0].length+H.index,se=H.input[ie];if(se==="<"||se===","){Q.ignoreMatch();return}se===">"&&(m(H,{after:ie})||Q.ignoreMatch());let de;const ye=H.input.substring(ie);if(de=ye.match(/^\s*=/)){Q.ignoreMatch();return}if((de=ye.match(/^\s+extends\s+/))&&de.index===0){Q.ignoreMatch();return}}},p={$pattern:Ge,keyword:Zn,literal:Jn,built_in:er,"variable.language":Yn},x="[0-9](_?[0-9])*",l=`\\.(${x})`,e="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",i={className:"number",variants:[{begin:`(\\b(${e})((${l})|\\.)?|(${l}))[eE][+-]?(${x})\\b`},{begin:`\\b(${e})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},t={className:"subst",begin:"\\$\\{",end:"\\}",keywords:p,contains:[]},n={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,t],subLanguage:"xml"}},c={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,t],subLanguage:"css"}},u={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,t],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[a.BACKSLASH_ESCAPE,t]},E={className:"comment",variants:[a.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:d+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE]},S=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,n,c,u,g,{match:/\$\d+/},i];t.contains=S.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(S)});const w=[].concat(E,t.contains),y=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(w)}]),b={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:y},k={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,f.concat(d,"(",f.concat(/\./,d),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},C={relevance:0,match:f.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:{_:[...Kn,...Vn]}},T={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[b],illegal:/%/},L={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function J(H){return f.concat("(?!",H.join("|"),")")}const F={match:f.concat(/\b/,J([...Qn,"super","import"].map(H=>`${H}\\s*\\(`)),d,f.lookahead(/\s*\(/)),className:"title.function",relevance:0},be={begin:f.concat(/\./,f.lookahead(f.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ae={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},b]},N="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+a.UNDERSCORE_IDENT_RE+")\\s*=>",Ee={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,f.lookahead(N)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[b]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[a.SHEBANG({label:"shebang",binary:"node",relevance:5}),T,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,n,c,u,g,E,{match:/\$\d+/},i,C,{scope:"attr",match:d+f.lookahead(":"),relevance:0},Ee,{begin:"("+a.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,a.REGEXP_MODE,{className:"function",begin:N,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:a.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:h},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+a.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[b,a.inherit(a.TITLE_MODE,{begin:d,className:"title.function"})]},{match:/\.\.\./,relevance:0},be,{match:"\\$"+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[b]},F,L,k,ae,{match:/\$[(.]/}]}}function _i(a){const f=a.regex,m=ki(a),d=Ge,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],h={begin:[/namespace/,/\s+/,a.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[m.exports.CLASS_REFERENCE]},p={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},x=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],l={$pattern:Ge,keyword:Zn.concat(x),literal:Jn,built_in:er.concat(r),"variable.language":Yn},e={className:"meta",begin:"@"+d},i=(u,g,E)=>{const S=u.contains.findIndex(w=>w.label===g);if(S===-1)throw new Error("can not find mode to replace");u.contains.splice(S,1,E)};Object.assign(m.keywords,l),m.exports.PARAMS_CONTAINS.push(e);const t=m.contains.find(u=>u.scope==="attr"),n=Object.assign({},t,{match:f.concat(d,f.lookahead(/\s*\?:/))});m.exports.PARAMS_CONTAINS.push([m.exports.CLASS_REFERENCE,t,n]),m.contains=m.contains.concat([e,h,s,n]),i(m,"shebang",a.SHEBANG()),i(m,"use_strict",p);const c=m.contains.find(u=>u.label==="func.def");return c.relevance=0,Object.assign(m,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),m}function Oi(a){const f=a.regex,m=f.concat(/[\p{L}_]/u,f.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),d=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},h={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=a.inherit(h,{begin:/\(/,end:/\)/}),p=a.inherit(a.APOS_STRING_MODE,{className:"string"}),x=a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:d,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:[h,x,p,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[h,s,x,p]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[x]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:f.concat(/</,f.lookahead(f.concat(m,f.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:m,relevance:0,starts:l}]},{className:"tag",begin:f.concat(/<\//,f.lookahead(f.concat(m,/>/))),contains:[{className:"name",begin:m,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Ri=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.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:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.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_-]*/}}),Ci=["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"],Ai=["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"],Ni=[...Ci,...Ai],Mi=["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(),Pi=["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(),Li=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Ii=["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 Ti(a){const f=a.regex,m=Ri(a),d={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",h=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",p=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[m.BLOCK_COMMENT,d,m.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Pi.join("|")+")"},{begin:":(:)?("+Li.join("|")+")"}]},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ii.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[m.BLOCK_COMMENT,m.HEXCOLOR,m.IMPORTANT,m.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}]},m.FUNCTION_DISPATCH]},{begin:f.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:h},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:r,attribute:Mi.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,m.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Ni.join("|")+")\\b"}]}}const tr=document.createElement("style");tr.innerText=[wi,xi].join(`
193
+ `);document.head.appendChild(tr);Ye.registerLanguage("typescript",_i);Ye.registerLanguage("html",Oi);Ye.registerLanguage("css",Ti);function ji(...a){const f=document.createElement("div"),m=document.createElement("div");m.classList.add("tab-control");const d=document.createElement("div");return a.forEach(r=>{f.appendChild(r),r.addEventListener("click",()=>{a.forEach(h=>h.removeAttribute("selected")),r.setAttribute("selected",""),d.innerHTML="",d.appendChild(r.content),d.className=r.className,d.classList.add("tab-content")})}),m.appendChild(f),m.appendChild(d),d.classList.add("tab-content"),a[0].setAttribute("selected",""),d.appendChild(a[0].content),m}function Me(a,f){const m=document.createElement("div");return m.role="tab",m.tabIndex=0,m.innerText=a,m.content=f,f.tagName=="PRE"&&m.classList.add("code"),m}function Le(a,f){const m=document.createElement(a);return typeof f=="string"?m.innerHTML=f:f.forEach(d=>{m.appendChild(d)}),m}async function zi(a,f,m){const d=f.mainContent,r=Le("div",d);r.id=`example-preview-${m}`;const h=typeof f.css=="string"?void 0:f.css?.label,s=typeof f.css=="string"?f.css:f.css?.content,p=ji(Me("Preview",r),Me("HTML",We("html",d)),...s?[Me(h??"CSS",We("css",s))]:[],...f.initializer&&f.initializer.content?[Me(f.initializer.label??"TS",We("typescript",f.initializer.content))]:[],...(f.additionalSources||[]).map(l=>Me(l.label,We(l.language,l.content))));f.description&&a.appendChild(Le("div",f.description));const x=Le("div",[p]);x.classList.add("example"),a.appendChild(x),s&&Di(`#${r.id}`,s),f.initializer?.initialize&&await f.initializer.initialize(r)}function We(a,f){let m=f.split(/\r?\n/).map(d=>{const r=d.indexOf("///");if(r>-1){const h=d.substring(r+3).trimStart();return h?d.replace(/^(\s*)([^\s].*)$/,`$1${h}`):void 0}return d}).filter(d=>typeof d<"u").join(`
194
+ `).trim();return a&&a!="raw"&&(m=Ye.highlight(m,{language:a}).value),Le("pre",[Le("code",m)])}function Di(a,f){const m=document.createElement("style");m.innerHTML=Z().use(yi({prefix:a})).process(f).css,document.head.appendChild(m)}async function Bi(a,f=document.body){const m=$i(f);let d=0;Object.keys(a).sort().forEach(async r=>{const h=document.createElement("div");h.className="example-container",m.appendChild(h);const s=a[r].default;zi(h,s,d++)})}function Ui(a){const f=document.createElement("div");f.id="examples-container";const m=a.querySelector("#examples");return m?m.after(f):a.appendChild(f),f}function $i(a){return a.children?Ui(a):a}const qi=`<h1 id="@cas-smartdesign/login-loading-indicator">@cas-smartdesign/login-loading-indicator</h1>
192
195
  <p>A custom element which encloses the look and feel of the smartdesign loading indicator.</p>
193
196
  <h2 id="attributes">Attributes</h2>
194
197
  <ul>
@@ -216,11 +219,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),A=u,v=d),w===void 0&&(
216
219
  </ul>
217
220
  </li>
218
221
  </ul>
219
- <h2 id="examples">Examples</h2>
220
- `;document.querySelector("#markdown-container").innerHTML=ia;ea(Object.assign({"./examples/logo-only/index.ts":zi,"./examples/title-and-logo/index.ts":Wi,"./examples/with_hints/index.ts":Vi}));export{fe as L};
221
- function __vite__mapDeps(indexes) {
222
- if (!__vite__mapDeps.viteFileDeps) {
223
- __vite__mapDeps.viteFileDeps = []
224
- }
225
- return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
226
- }
222
+ `,Fi=document.querySelector("#markdown-container");Fi.innerHTML=qi;Bi(Object.assign({"./examples/logo-only/index.ts":Fr,"./examples/title-and-logo/index.ts":Jr,"./examples/with_hints/index.ts":ti}),document.querySelector(".markdown-body"));export{Pe as L};