@cas-smartdesign/app-banner 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,373 @@
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 Or="modulepreload",Rr=function(i,e){return new URL(i,e).href},$n={},Nr=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=Rr(s,n),s in $n)return;$n[s]=!0;const a=s.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!n)for(let p=o.length-1;p>=0;p--){const f=o[p];if(f.href===s&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":Or,a||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),a)return new Promise((p,f)=>{u.addEventListener("load",p),u.addEventListener("error",()=>f(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})},Mr=`<script src="./app-banner-with-externals.js"><\/script>
2
+
3
+ <div id="app-banner-button-container">
4
+ <button class="show-app-banner-button">
5
+ <span>Open the app banner at&nbsp;<b>top</b></span>
6
+ </button>
7
+ <button class="show-app-banner-button">
8
+ <span>Open the app banner at&nbsp;<b>bottom</b></span>
9
+ </button>
10
+ </div>
11
+
12
+ <div id="hide-app-banner-top">
13
+ <sd-app-banner
14
+ url="https://application.cas.de/"
15
+ message="CAS genesisWorld Web"
16
+ verticalAlignment="top"
17
+ icon="./genesis_tile.svg">
18
+ </sd-app-banner>
19
+ </div>
20
+ <div id="hide-app-banner-bottom">
21
+ <sd-app-banner
22
+ url="https://www.smartwe.de/de/"
23
+ message="SmartWe Home"
24
+ verticalAlignment="bottom"
25
+ icon="./smartwe_tile.svg">
26
+ </sd-app-banner>
27
+ </div>
28
+ `,Pr=`<h3 id="add-the-app-banner-with-a-fixed-position-(at-top-or-bottom)">Add the app banner with a fixed position (at top or bottom)</h3>
29
+ `,Tr=`#app-banner-button-container {
30
+ display: grid;
31
+ grid-template-columns: auto;
32
+ align-items: center;
33
+ justify-items: center;
34
+ row-gap: 14px;
35
+ }
36
+
37
+ .show-app-banner-button {
38
+ user-select: none;
39
+ display: grid;
40
+ cursor: pointer;
41
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
42
+ color: black;
43
+ background-color: #f1f1f1;
44
+ padding: 10px;
45
+ border-radius: 10px;
46
+ align-items: center;
47
+ }
48
+
49
+ #hide-app-banner-top {
50
+ display: none;
51
+ }
52
+
53
+ #hide-app-banner-bottom {
54
+ display: none;
55
+ }
56
+ `,Ir=`import "@cas-smartdesign/app-banner";
57
+ import AppBanner from "@cas-smartdesign/app-banner";
58
+
59
+ // clickevent: App banner for fixed positions
60
+ const showAppBannerbuttons = document.querySelectorAll(".show-app-banner-button") as AppBanner;
61
+
62
+ for (let i = 0; i < showAppBannerbuttons.length; i++) {
63
+ const button = showAppBannerbuttons[i];
64
+ button?.addEventListener("click", (event: MouseEvent) => {
65
+ // Case 1: You opened the page localhost:5173 and are clicking on the button to see the app banner
66
+ let appBannerToShow = "";
67
+ if (i == 0) {
68
+ appBannerToShow = document.getElementById("hide-app-banner-top");
69
+ if (appBannerToShow != null) appBannerToShow.removeAttribute("id");
70
+ }
71
+ if (i == 1) {
72
+ appBannerToShow = document.getElementById("hide-app-banner-bottom");
73
+ if (appBannerToShow != null) appBannerToShow.removeAttribute("id");
74
+ }
75
+
76
+ // Case 2: You already opened the app-banner. Closed it and want to open it again
77
+ appBannerToShow = document.querySelectorAll("sd-app-banner")[i] as unknown as HTMLElement;
78
+ const computedStyle = window.getComputedStyle(appBannerToShow);
79
+
80
+ if (computedStyle.display == "none") appBannerToShow.style.display = "";
81
+ });
82
+ }
83
+ `,Lr={mainContent:Mr,description:Pr,css:Tr,initializer:{content:Ir,type:"typescript",initialize:()=>Nr(()=>import("./1. App banner with a fixed position.js"),__vite__mapDeps([]),import.meta.url)}},jr=Object.freeze(Object.defineProperty({__proto__:null,default:Lr},Symbol.toStringTag,{value:"Module"})),Br=`<script src="./app-banner-with-externals.js"><\/script>
84
+
85
+ <div>
86
+ <p>
87
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
88
+ dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
89
+ clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
90
+ consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed
91
+ diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea
92
+ takimata sanctus est Lorem ipsum dolor sit amet.
93
+ </p>
94
+ <div>
95
+ <sd-app-banner
96
+ url="https://www.smartwe.de/de/"
97
+ id="customized-app-banner"
98
+ icon="./smartwe_tile.svg"
99
+ message="SmartWe Home"
100
+ verticalAlignment=""></sd-app-banner>
101
+ </div>
102
+
103
+ <p>
104
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
105
+ dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
106
+ clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
107
+ consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed
108
+ diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea
109
+ takimata sanctus est Lorem ipsum dolor sit amet.
110
+ </p>
111
+ </div>
112
+ `,Ur=`<h3 id="add-the-app-banner-directly-into-the-code-flow-with-custom-css-styling">Add the app banner directly into the code flow with custom CSS styling</h3>
113
+ <p>Now the app-banner has not a fixed position and is determined by his position in the code flow or custom css (if created)
114
+ <br><br>If you close the app banner, you&#39;ll need to reload the page to see it again.</p>
115
+ `,zr=`sd-app-banner {
116
+ margin: 20px;
117
+ }
118
+ `,Dr={mainContent:Br,description:Ur,css:zr},Hr=Object.freeze(Object.defineProperty({__proto__:null,default:Dr},Symbol.toStringTag,{value:"Module"}));const et=window,sn=et.ShadowRoot&&(et.ShadyCSS===void 0||et.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,on=Symbol(),Cn=new WeakMap;let ui=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==on)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(sn&&e===void 0){const n=t!==void 0&&t.length===1;n&&(e=Cn.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Cn.set(t,e))}return e}toString(){return this.cssText}};const Fr=i=>new ui(typeof i=="string"?i:i+"",void 0,on),Wr=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((n,r,o)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[o+1],i[0]);return new ui(t,i,on)},Gr=(i,e)=>{sn?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const n=document.createElement("style"),r=et.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=t.cssText,i.appendChild(n)})},kn=sn?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return Fr(t)})(i):i;var Ct;const rt=window,On=rt.trustedTypes,Zr=On?On.emptyScript:"",Rn=rt.reactiveElementPolyfillSupport,zt={toAttribute(i,e){switch(e){case Boolean:i=i?Zr:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},hi=(i,e)=>e!==i&&(e==e||i==i),kt={attribute:!0,type:String,converter:zt,reflect:!1,hasChanged:hi},Dt="finalized";let he=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,n)=>{const r=this._$Ep(n,t);r!==void 0&&(this._$Ev.set(r,n),e.push(r))}),e}static createProperty(e,t=kt){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);r!==void 0&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const o=this[e];this[t]=r,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||kt}static finalize(){if(this.hasOwnProperty(Dt))return!1;this[Dt]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of n)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const r of n)t.unshift(kn(r))}else e!==void 0&&t.push(kn(e));return t}static _$Ep(e,t){const n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,n;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Gr(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostConnected)===null||n===void 0?void 0:n.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostDisconnected)===null||n===void 0?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=kt){var r;const o=this.constructor._$Ep(e,n);if(o!==void 0&&n.reflect===!0){const s=(((r=n.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?n.converter:zt).toAttribute(t,n.type);this._$El=e,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$El=null}}_$AK(e,t){var n;const r=this.constructor,o=r._$Ev.get(e);if(o!==void 0&&this._$El!==o){const s=r.getPropertyOptions(o),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?s.converter:zt;this._$El=o,this[o]=a.fromAttribute(t,s.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||hi)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,o)=>this[o]=r),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var o;return(o=r.hostUpdate)===null||o===void 0?void 0:o.call(r)}),this.update(n)):this._$Ek()}catch(r){throw t=!1,this._$Ek(),r}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var r;return(r=n.hostUpdated)===null||r===void 0?void 0:r.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,n)=>this._$EO(n,this[n],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};he[Dt]=!0,he.elementProperties=new Map,he.elementStyles=[],he.shadowRootOptions={mode:"open"},Rn==null||Rn({ReactiveElement:he}),((Ct=rt.reactiveElementVersions)!==null&&Ct!==void 0?Ct:rt.reactiveElementVersions=[]).push("1.6.3");var Ot;const st=window,de=st.trustedTypes,Nn=de?de.createPolicy("lit-html",{createHTML:i=>i}):void 0,Ht="$lit$",J=`lit$${(Math.random()+"").slice(9)}$`,di="?"+J,qr=`<${di}>`,se=document,$e=()=>se.createComment(""),Ce=i=>i===null||typeof i!="object"&&typeof i!="function",pi=Array.isArray,Vr=i=>pi(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Rt=`[
119
+ \f\r]`,ve=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mn=/-->/g,Pn=/>/g,ne=RegExp(`>|${Rt}(?:([^\\s"'>=/]+)(${Rt}*=${Rt}*(?:[^
120
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Tn=/'/g,In=/"/g,fi=/^(?:script|style|textarea|title)$/i,Kr=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),Jr=Kr(1),oe=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),Ln=new WeakMap,ie=se.createTreeWalker(se,129,null,!1);function gi(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Nn!==void 0?Nn.createHTML(e):e}const Xr=(i,e)=>{const t=i.length-1,n=[];let r,o=e===2?"<svg>":"",s=ve;for(let a=0;a<t;a++){const l=i[a];let c,u,p=-1,f=0;for(;f<l.length&&(s.lastIndex=f,u=s.exec(l),u!==null);)f=s.lastIndex,s===ve?u[1]==="!--"?s=Mn:u[1]!==void 0?s=Pn:u[2]!==void 0?(fi.test(u[2])&&(r=RegExp("</"+u[2],"g")),s=ne):u[3]!==void 0&&(s=ne):s===ne?u[0]===">"?(s=r??ve,p=-1):u[1]===void 0?p=-2:(p=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?ne:u[3]==='"'?In:Tn):s===In||s===Tn?s=ne:s===Mn||s===Pn?s=ve:(s=ne,r=void 0);const x=s===ne&&i[a+1].startsWith("/>")?" ":"";o+=s===ve?l+qr:p>=0?(n.push(c),l.slice(0,p)+Ht+l.slice(p)+J+x):l+J+(p===-2?(n.push(void 0),a):x)}return[gi(i,o+(i[t]||"<?>")+(e===2?"</svg>":"")),n]};class ke{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let o=0,s=0;const a=e.length-1,l=this.parts,[c,u]=Xr(e,t);if(this.el=ke.createElement(c,n),ie.currentNode=this.el.content,t===2){const p=this.el.content,f=p.firstChild;f.remove(),p.append(...f.childNodes)}for(;(r=ie.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes()){const p=[];for(const f of r.getAttributeNames())if(f.endsWith(Ht)||f.startsWith(J)){const x=u[s++];if(p.push(f),x!==void 0){const k=r.getAttribute(x.toLowerCase()+Ht).split(J),N=/([.?@])?(.*)/.exec(x);l.push({type:1,index:o,name:N[2],strings:k,ctor:N[1]==="."?Yr:N[1]==="?"?ts:N[1]==="@"?ns:dt})}else l.push({type:6,index:o})}for(const f of p)r.removeAttribute(f)}if(fi.test(r.tagName)){const p=r.textContent.split(J),f=p.length-1;if(f>0){r.textContent=de?de.emptyScript:"";for(let x=0;x<f;x++)r.append(p[x],$e()),ie.nextNode(),l.push({type:2,index:++o});r.append(p[f],$e())}}}else if(r.nodeType===8)if(r.data===di)l.push({type:2,index:o});else{let p=-1;for(;(p=r.data.indexOf(J,p+1))!==-1;)l.push({type:7,index:o}),p+=J.length-1}o++}}static createElement(e,t){const n=se.createElement("template");return n.innerHTML=e,n}}function pe(i,e,t=i,n){var r,o,s,a;if(e===oe)return e;let l=n!==void 0?(r=t._$Co)===null||r===void 0?void 0:r[n]:t._$Cl;const c=Ce(e)?void 0:e._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((o=l==null?void 0:l._$AO)===null||o===void 0||o.call(l,!1),c===void 0?l=void 0:(l=new c(i),l._$AT(i,t,n)),n!==void 0?((s=(a=t)._$Co)!==null&&s!==void 0?s:a._$Co=[])[n]=l:t._$Cl=l),l!==void 0&&(e=pe(i,l._$AS(i,e.values),l,n)),e}class Qr{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:r}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:se).importNode(n,!0);ie.currentNode=o;let s=ie.nextNode(),a=0,l=0,c=r[0];for(;c!==void 0;){if(a===c.index){let u;c.type===2?u=new Ie(s,s.nextSibling,this,e):c.type===1?u=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(u=new is(s,this,e)),this._$AV.push(u),c=r[++l]}a!==(c==null?void 0:c.index)&&(s=ie.nextNode(),a++)}return ie.currentNode=se,o}v(e){let t=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class Ie{constructor(e,t,n,r){var o;this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cp=(o=r==null?void 0:r.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=pe(this,e,t),Ce(e)?e===R||e==null||e===""?(this._$AH!==R&&this._$AR(),this._$AH=R):e!==this._$AH&&e!==oe&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Vr(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==R&&Ce(this._$AH)?this._$AA.nextSibling.data=e:this.$(se.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=ke.createElement(gi(r.h,r.h[0]),this.options)),r);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.v(n);else{const s=new Qr(o,this),a=s.u(this.options);s.v(n),this.$(a),this._$AH=s}}_$AC(e){let t=Ln.get(e.strings);return t===void 0&&Ln.set(e.strings,t=new ke(e)),t}T(e){pi(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const o of e)r===t.length?t.push(n=new Ie(this.k($e()),this.k($e()),this,this.options)):n=t[r],n._$AI(o),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,t);e&&e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class dt{constructor(e,t,n,r,o){this.type=1,this._$AH=R,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=R}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,r){const o=this.strings;let s=!1;if(o===void 0)e=pe(this,e,t,0),s=!Ce(e)||e!==this._$AH&&e!==oe,s&&(this._$AH=e);else{const a=e;let l,c;for(e=o[0],l=0;l<o.length-1;l++)c=pe(this,a[n+l],t,l),c===oe&&(c=this._$AH[l]),s||(s=!Ce(c)||c!==this._$AH[l]),c===R?e=R:e!==R&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!r&&this.j(e)}j(e){e===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Yr extends dt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===R?void 0:e}}const es=de?de.emptyScript:"";class ts extends dt{constructor(){super(...arguments),this.type=4}j(e){e&&e!==R?this.element.setAttribute(this.name,es):this.element.removeAttribute(this.name)}}let ns=class extends dt{constructor(e,t,n,r,o){super(e,t,n,r,o),this.type=5}_$AI(e,t=this){var n;if((e=(n=pe(this,e,t,0))!==null&&n!==void 0?n:R)===oe)return;const r=this._$AH,o=e===R&&r!==R||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==R&&(r===R||o);o&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;typeof this._$AH=="function"?this._$AH.call((n=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&n!==void 0?n:this.element,e):this._$AH.handleEvent(e)}};class is{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){pe(this,e)}}const jn=st.litHtmlPolyfillSupport;jn==null||jn(ke,Ie),((Ot=st.litHtmlVersions)!==null&&Ot!==void 0?Ot:st.litHtmlVersions=[]).push("2.8.0");const rs=(i,e,t)=>{var n,r;const o=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:e;let s=o._$litPart$;if(s===void 0){const a=(r=t==null?void 0:t.renderBefore)!==null&&r!==void 0?r:null;o._$litPart$=s=new Ie(e.insertBefore($e(),a),a,void 0,t??{})}return s._$AI(i),s};var Nt,Mt;let Ae=class extends he{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=rs(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return oe}};Ae.finalized=!0,Ae._$litElement$=!0,(Nt=globalThis.litElementHydrateSupport)===null||Nt===void 0||Nt.call(globalThis,{LitElement:Ae});const Bn=globalThis.litElementPolyfillSupport;Bn==null||Bn({LitElement:Ae});((Mt=globalThis.litElementVersions)!==null&&Mt!==void 0?Mt:globalThis.litElementVersions=[]).push("3.3.3");const ss=i=>e=>typeof e=="function"?((t,n)=>(customElements.define(t,n),n))(i,e):((t,n)=>{const{kind:r,elements:o}=n;return{kind:r,elements:o,finisher(s){customElements.define(t,s)}}})(i,e);const os=(i,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,i)}},as=(i,e,t)=>{e.constructor.createProperty(t,i)};function Le(i){return(e,t)=>t!==void 0?as(i,e,t):os(i,e)}var Pt;((Pt=window.HTMLSlotElement)===null||Pt===void 0?void 0:Pt.prototype.assignedElements)!=null;const mi=class tt extends HTMLElement{memoizedTemplate(){const e=this.is();if(tt.TEMPLATE_CACHE[e])return tt.TEMPLATE_CACHE[e];const t=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,this.is()),tt.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())}};mi.TEMPLATE_CACHE={};let ls=mi;const cs=`<style>
121
+ :host {
122
+ contain: content;
123
+ background: rgba(20, 103, 186, 0);
124
+ color: #1467ba;
125
+ border: none;
126
+ outline: none;
127
+ padding: 0 8px;
128
+ height: 32px;
129
+ cursor: pointer;
130
+ user-select: none;
131
+ display: inline-flex;
132
+ align-items: center;
133
+ justify-content: center;
134
+ box-sizing: border-box;
135
+ vertical-align: middle;
136
+ }
137
+
138
+ :host(:focus),
139
+ :host(:not([disabled], [aria-disabled="true"]):hover) {
140
+ background: rgba(20, 103, 186, 0.1);
141
+ }
142
+
143
+ @media (forced-colors: active) {
144
+ :host(:not([disabled], [aria-disabled="true"]):focus-visible) {
145
+ outline: 1px solid;
146
+ }
147
+ :host {
148
+ margin: 1px;
149
+ }
150
+ }
151
+
152
+ :host(:not([disabled], [aria-disabled="true"]):focus-visible) {
153
+ box-shadow: 0 0 0 1px #1467ba inset;
154
+ }
155
+
156
+ :host(:not([disabled], [aria-disabled="true"]):active) {
157
+ background: rgba(20, 103, 186, 0.2);
158
+ }
159
+
160
+ :host([primary]) {
161
+ background: #1467ba;
162
+ color: #fff;
163
+ }
164
+
165
+ :host([primary]:focus),
166
+ :host(:not([disabled], [aria-disabled="true"])[primary]:hover) {
167
+ background: #125da8;
168
+ }
169
+
170
+ :host([primary]:focus-visible) {
171
+ box-shadow: 0 0 0 1px white inset;
172
+ }
173
+
174
+ :host(:not([disabled], [aria-disabled="true"])[primary]:focus-visible) {
175
+ outline: 1px solid #1467ba;
176
+ }
177
+
178
+ :host(:not([disabled], [aria-disabled="true"])[primary]:active) {
179
+ background: #0e4883;
180
+ }
181
+
182
+ :host([disabled]),
183
+ :host([aria-disabled="true"]) {
184
+ filter: grayscale(100%);
185
+ opacity: 0.5;
186
+ cursor: default;
187
+ }
188
+
189
+ :host([disabled]:focus-visible),
190
+ :host([aria-disabled="true"]:focus-visible) {
191
+ outline: 1px dashed #111;
192
+ }
193
+
194
+ :host(:not([icon])) .icon,
195
+ :host([icon=""]) .icon {
196
+ display: none;
197
+ }
198
+
199
+ .content {
200
+ display: flex;
201
+ align-items: center;
202
+ min-width: 0px;
203
+ }
204
+
205
+ .content ::slotted(*) {
206
+ margin-left: var(--sd-button-content-padding, 8px);
207
+ }
208
+
209
+ .content ::slotted(*:last-child) {
210
+ margin-right: var(--sd-button-content-padding, 8px);
211
+ }
212
+
213
+ .icon {
214
+ max-height: var(--sd-button-max-icon-size, 32px);
215
+ max-width: var(--sd-button-max-icon-size, 32px);
216
+ }
217
+ </style>
218
+ <img class="icon" />
219
+ <div class="content">
220
+ <slot></slot>
221
+ </div>
222
+ `,bi=class yi extends ls{constructor(){super(),this._isSpaceOrEnterKeyDown=!1,this.addEventListener("keydown",e=>{this.isSpaceOrEnter(e)&&(this._isSpaceOrEnterKeyDown=!0,e.preventDefault())}),this.addEventListener("keyup",e=>{this.isSpaceOrEnter(e)&&this._isSpaceOrEnterKeyDown==!0&&(this._isSpaceOrEnterKeyDown=!1,this.click())}),this.addEventListener("click",e=>{var t,n;if(this.disabled||this.hasAttribute("disabled")){e.stopImmediatePropagation();return}const r=(n=(t=this.getAttribute("type"))==null?void 0:t.toLowerCase())==null?void 0:n.trim();if(r!=="submit"&&r!=="reset")return;const o=this.closest("form");o&&r==="submit"&&o.requestSubmit(),o&&r==="reset"&&o.reset()},{capture:!0})}get imageElement(){return this._image}get icon(){return this.getAttribute("icon")}set icon(e){this.icon!==e&&(e?this.setAttribute("icon",e):this.removeAttribute("icon"),this.updateIcon())}get primary(){return this.hasAttribute("primary")}set primary(e){e?this.setAttribute("primary",""):this.removeAttribute("primary")}get disabled(){return this.getAttribute("aria-disabled")=="true"}set disabled(e){this.setAttribute("aria-disabled",e.toString())}static get observedAttributes(){return["icon"]}is(){return yi.ID}template(){const e=document.createElement("template");return e.innerHTML=cs,e}isSpaceOrEnter(e){switch(e.key){case" ":case"Space":case"Enter":return!0;default:return!1}}click(){!this.disabled&&!this.hasAttribute("disabled")&&super.click()}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0),this._image=this.shadowRoot.querySelector(".icon"),this.updateIcon(),this.hasAttribute("role")||this.setAttribute("role","button")}attributeChangedCallback(){this.updateIcon()}updateIcon(){if(this._image){const e=this.getAttribute("icon");e&&(this._image.src=e)}}};bi.ID="sd-button";let Tt=bi;customElements.get(Tt.ID)||customElements.define(Tt.ID,Tt);const us="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.75%203.75L12.25%2012.25M12.25%203.75L3.75%2012.25'%20stroke='%23767676'%20stroke-width='1.2'/%3e%3c/svg%3e";const hs={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ds=i=>(...e)=>({_$litDirective$:i,values:e});class ps{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const fs=ds(class extends ps{constructor(i){var e;if(super(i),i.type!==hs.ATTRIBUTE||i.name!=="class"||((e=i.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(e=>i[e]).join(" ")+" "}update(i,[e]){var t,n;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in e)e[o]&&!(!((t=this.nt)===null||t===void 0)&&t.has(o))&&this.it.add(o);return this.render(e)}const r=i.element.classList;this.it.forEach(o=>{o in e||(r.remove(o),this.it.delete(o))});for(const o in e){const s=!!e[o];s===this.it.has(o)||!((n=this.nt)===null||n===void 0)&&n.has(o)||(s?(r.add(o),this.it.add(o)):(r.remove(o),this.it.delete(o)))}return oe}});var gs=Object.defineProperty,ms=Object.getOwnPropertyDescriptor,ye=(i,e,t,n)=>{for(var r=n>1?void 0:n?ms(e,t):e,o=i.length-1,s;o>=0;o--)(s=i[o])&&(r=(n?s(e,t,r):s(r))||r);return n&&r&&gs(e,t,r),r};let q=class extends Ae{constructor(){super(...arguments),this.message="",this.messageAppButton="Open",this.url="",this.icon="",this.verticalAlignment=""}render(){const i=fs({"app-banner":!0,"app-banner-on-top":this.verticalAlignment=="top","app-banner-on-bottom":this.verticalAlignment=="bottom"});return Jr`<div class="${i}">
223
+ <div id="app-banner-close-action" @click="${this.closeBanner}">
224
+ <img src="${us}" alt="Close cross icon" />
225
+ </div>
226
+ <a id="app-banner-open-action" href="${this.url}">
227
+ <img src="${this.icon}" alt="Application logo" />
228
+ <div class="app-banner-message-div">${this.message}</div>
229
+ <div class="app-banner-open-text">${this.messageAppButton}</div>
230
+ </a>
231
+ </div>`}closeBanner(){const i=this.shadowRoot.host;i.style.display="none"}};q.ID="sd-app-banner";q.styles=Wr`
232
+ img {
233
+ display: block;
234
+ margin: auto;
235
+ }
236
+
237
+ .app-banner {
238
+ font-family: "Segoe UI", "Lucida Sans", "Arial", sans-serif;
239
+ background-color: #f1f1f1;
240
+ border-radius: 5px;
241
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
242
+ margin: 20px;
243
+ display: grid;
244
+ grid-template-columns: 0fr 1fr;
245
+ align-items: center;
246
+ }
247
+ .app-banner-on-top {
248
+ position: fixed;
249
+ top: 0;
250
+ left: 0;
251
+ right: 0;
252
+ }
253
+ .app-banner-on-bottom {
254
+ position: fixed;
255
+ bottom: 0;
256
+ left: 0;
257
+ right: 0;
258
+ }
259
+
260
+ #app-banner-close-action {
261
+ display: grid;
262
+ height: 100%;
263
+ padding: 0 10px 0 10px;
264
+ cursor: pointer;
265
+ color: black;
266
+ text-decoration: none;
267
+ }
268
+ #app-banner-open-action {
269
+ display: grid;
270
+ grid-template-columns: 0fr auto auto;
271
+ align-items: center;
272
+ padding: 10px 10px 10px 0;
273
+ column-gap: 5px;
274
+ cursor: pointer;
275
+ color: black;
276
+ text-decoration: none;
277
+ }
278
+
279
+ .app-banner-message-div {
280
+ white-space: normal;
281
+ font-size: 0.87em;
282
+ font-weight: 500;
283
+ white-space: normal;
284
+ }
285
+
286
+ .app-banner-open-text {
287
+ color: #2980b9;
288
+ font-size: 1.1em;
289
+ font-weight: bold;
290
+ justify-self: right;
291
+ padding-right: 10px;
292
+ }
293
+ `;ye([Le()],q.prototype,"message",2);ye([Le()],q.prototype,"messageAppButton",2);ye([Le()],q.prototype,"url",2);ye([Le()],q.prototype,"icon",2);ye([Le()],q.prototype,"verticalAlignment",2);q=ye([ss("sd-app-banner")],q);function wi(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function bs(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 an={exports:{}},$=String,vi=function(){return{isColorSupported:!1,reset:$,bold:$,dim:$,italic:$,underline:$,inverse:$,hidden:$,strikethrough:$,black:$,red:$,green:$,yellow:$,blue:$,magenta:$,cyan:$,white:$,gray:$,bgBlack:$,bgRed:$,bgGreen:$,bgYellow:$,bgBlue:$,bgMagenta:$,bgCyan:$,bgWhite:$}};an.exports=vi();an.exports.createColors=vi;var ys=an.exports;const ws={},vs=Object.freeze(Object.defineProperty({__proto__:null,default:ws},Symbol.toStringTag,{value:"Module"})),B=bs(vs);let Un=ys,zn=B,Ft=class xi 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,xi)}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=Un.isColorSupported),zn&&e&&(t=zn(t));let n=t.split(/\r?\n/),r=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),s=String(o).length,a,l;if(e){let{bold:c,gray:u,red:p}=Un.createColors(!0);a=f=>c(p(f)),l=f=>u(f)}else a=l=c=>c;return n.slice(r,o).map((c,u)=>{let p=r+1+u,f=" "+(" "+p).slice(-s)+" | ";if(p===this.line){let x=l(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(f)+c+`
294
+ `+x+a("^")}return" "+l(f)+c}).join(`
295
+ `)}toString(){let e=this.showSourceCode();return e&&(e=`
296
+
297
+ `+e+`
298
+ `),this.name+": "+this.message+e}};var ln=Ft;Ft.default=Ft;var je={};je.isClean=Symbol("isClean");je.my=Symbol("my");const Dn={after:`
299
+ `,beforeClose:`
300
+ `,beforeComment:`
301
+ `,beforeDecl:`
302
+ `,beforeOpen:" ",beforeRule:`
303
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function xs(i){return i[0].toUpperCase()+i.slice(1)}let Wt=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(`
304
+ `)){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 Dn[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"+xs(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=Dn[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(`
305
+ `)&&(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(`
306
+ `)&&(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(`
307
+ `)&&(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(`
308
+ `)&&(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(`
309
+ `);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 Ei=Wt;Wt.default=Wt;let Es=Ei;function Gt(i,e){new Es(e).stringify(i)}var pt=Gt;Gt.default=Gt;let{isClean:Fe,my:_s}=je,As=ln,Ss=Ei,$s=pt;function Zt(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=>Zt(s,t)):(o==="object"&&r!==null&&(r=Zt(r)),t[n]=r)}return t}let qt=class{constructor(e={}){this.raws={},this[Fe]=!1,this[_s]=!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=Zt(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 As(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[Fe]){this[Fe]=!1;let e=this;for(;e=e.parent;)e[Fe]=!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]===`
310
+ `?(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 Ss().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=$s){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 ft=qt;qt.default=qt;let Cs=ft,Vt=class extends Cs{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 gt=Vt;Vt.default=Vt;let ks="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Os=(i,e=21)=>(t=e)=>{let n="",r=t;for(;r--;)n+=i[Math.random()*i.length|0];return n},Rs=(i=21)=>{let e="",t=i;for(;t--;)e+=ks[Math.random()*64|0];return e};var Ns={nanoid:Rs,customAlphabet:Os};let{SourceMapConsumer:Hn,SourceMapGenerator:Fn}=B,{existsSync:Ms,readFileSync:Ps}=B,{dirname:It,join:Ts}=B;function Is(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let Kt=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=It(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new Hn(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 Is(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=It(e),Ms(e))return this.mapFile=e,Ps(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 Hn)return Fn.fromSourceMap(t).toString();if(t instanceof Fn)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=Ts(It(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 _i=Kt;Kt.default=Kt;let{SourceMapConsumer:Ls,SourceMapGenerator:js}=B,{fileURLToPath:Wn,pathToFileURL:We}=B,{isAbsolute:Jt,resolve:Xt}=B,{nanoid:Bs}=Ns,Lt=B,Gn=ln,Us=_i,jt=Symbol("fromOffsetCache"),zs=!!(Ls&&js),Zn=!!(Xt&&Jt),ot=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&&(!Zn||/^\w+:\/\//.test(t.from)||Jt(t.from)?this.file=t.from:this.file=Xt(t.from)),Zn&&zs){let n=new Us(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 "+Bs(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let o,s,a;if(t&&typeof t=="object"){let c=t,u=n;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);t=p.line,n=p.col}else t=c.line,n=c.column;if(typeof u.offset=="number"){let p=this.fromOffset(u.offset);s=p.line,a=p.col}else s=u.line,a=u.column}else if(!n){let c=this.fromOffset(t);t=c.line,n=c.col}let l=this.origin(t,n,s,a);return l?o=new Gn(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 Gn(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&&(We&&(o.input.url=We(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,n;if(this[jt])n=this[jt];else{let o=this.css.split(`
311
+ `);n=new Array(o.length);let s=0;for(let a=0,l=o.length;a<l;a++)n[a]=s,s+=o[a].length+1;this[jt]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let o=n.length-2,s;for(;r<o;)if(s=r+(o-r>>1),e<n[s])o=s-1;else if(e>=n[s+1])r=s+1;else{r=s;break}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Xt(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({column:t,line:e});if(!s.source)return!1;let a;typeof n=="number"&&(a=o.originalPositionFor({column:r,line:n}));let l;Jt(s.source)?l=We(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||We(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(Wn)c.file=Wn(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=o.sourceContentFor(s.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var mt=ot;ot.default=ot;Lt&&Lt.registerInput&&Lt.registerInput(ot);let{SourceMapConsumer:Ai,SourceMapGenerator:nt}=B,{dirname:it,relative:Si,resolve:$i,sep:Ci}=B,{pathToFileURL:qn}=B,Ds=mt,Hs=!!(Ai&&nt),Fs=!!(it&&$i&&Si&&Ci),Ws=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=`
312
+ `;this.css.includes(`\r
313
+ `)&&(t=`\r
314
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||it(e.file),r;this.mapOpts.sourcesContent===!1?(r=new Ai(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(),Fs&&Hs&&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=nt.fromSourceMap(e)}else this.map=new nt({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 nt({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(`
315
+ `),t=a.length-s):t+=a.length,l&&c!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(r.source=this.sourcePath(l),r.original.line=l.source.end.line,r.original.column=l.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?it(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=it($i(n,this.mapOpts.annotation)));let r=Si(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 Ds(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(qn){let n=qn(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;Ci==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var ki=Ws;let Gs=ft,Qt=class extends Gs{constructor(e){super(e),this.type="comment"}};var bt=Qt;Qt.default=Qt;let{isClean:Oi,my:Ri}=je,Ni=gt,Mi=bt,Zs=ft,Pi,cn,un,Ti;function Ii(i){return i.map(e=>(e.nodes&&(e.nodes=Ii(e.nodes)),delete e.source,e))}function Li(i){if(i[Oi]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)Li(e)}let V=class ji extends Zs{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let r of n)this.proxyOf.nodes.push(r)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...n)=>e[t](...n.map(r=>typeof r=="function"?(o,s)=>r(o.toProxy(),s):r)):t==="every"||t==="some"?n=>e[t]((r,...o)=>n(r.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let s of r)this.proxyOf.nodes.splice(n+1,0,s);let o;for(let s in this.indexes)o=this.indexes[s],n<o&&(this.indexes[s]=o+r.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),r=n===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(let a of o)this.proxyOf.nodes.splice(n,0,a);let s;for(let a in this.indexes)s=this.indexes[a],n<=s&&(this.indexes[a]=s+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Ii(Pi(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 Ni(e)]}else if(e.selector)e=[new cn(e)];else if(e.name)e=[new un(e)];else if(e.text)e=[new Mi(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Ri]||ji.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[Oi]&&Li(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]}};V.registerParse=i=>{Pi=i};V.registerRule=i=>{cn=i};V.registerAtRule=i=>{un=i};V.registerRoot=i=>{Ti=i};var ae=V;V.default=V;V.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,un.prototype):i.type==="rule"?Object.setPrototypeOf(i,cn.prototype):i.type==="decl"?Object.setPrototypeOf(i,Ni.prototype):i.type==="comment"?Object.setPrototypeOf(i,Mi.prototype):i.type==="root"&&Object.setPrototypeOf(i,Ti.prototype),i[Ri]=!0,i.nodes&&i.nodes.forEach(e=>{V.rebuild(e)})};let qs=ae,Bi,Ui,Oe=class extends qs{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Bi(new Ui,this,e).stringify()}};Oe.registerLazyResult=i=>{Bi=i};Oe.registerProcessor=i=>{Ui=i};var hn=Oe;Oe.default=Oe;let Yt=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 zi=Yt;Yt.default=Yt;let Vs=zi,en=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 Vs(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var dn=en;en.default=en;const Bt=39,Vn=34,Ge=92,Kn=47,Ze=10,xe=32,qe=12,Ve=9,Ke=13,Ks=91,Js=93,Xs=40,Qs=41,Ys=123,eo=125,to=59,no=42,io=58,ro=64,Je=/[\t\n\f\r "#'()/;[\\\]{}]/g,Xe=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,so=/.[\r\n"'(/\\]/,Jn=/[\da-f]/i;var oo=function(e,t={}){let n=e.css.valueOf(),r=t.ignoreErrors,o,s,a,l,c,u,p,f,x,k,N=n.length,b=0,F=[],W=[];function Q(){return b}function j(U){throw e.error("Unclosed "+U,b)}function G(){return W.length===0&&b>=N}function we(U){if(W.length)return W.pop();if(b>=N)return;let T=U?U.ignoreUnclosed:!1;switch(o=n.charCodeAt(b),o){case Ze:case xe:case Ve:case Ke:case qe:{s=b;do s+=1,o=n.charCodeAt(s);while(o===xe||o===Ze||o===Ve||o===Ke||o===qe);k=["space",n.slice(b,s)],b=s-1;break}case Ks:case Js:case Ys:case eo:case io:case to:case Qs:{let Y=String.fromCharCode(o);k=[Y,Y,b];break}case Xs:{if(f=F.length?F.pop()[1]:"",x=n.charCodeAt(b+1),f==="url"&&x!==Bt&&x!==Vn&&x!==xe&&x!==Ze&&x!==Ve&&x!==qe&&x!==Ke){s=b;do{if(u=!1,s=n.indexOf(")",s+1),s===-1)if(r||T){s=b;break}else j("bracket");for(p=s;n.charCodeAt(p-1)===Ge;)p-=1,u=!u}while(u);k=["brackets",n.slice(b,s+1),b,s],b=s}else s=n.indexOf(")",b+1),l=n.slice(b,s+1),s===-1||so.test(l)?k=["(","(",b]:(k=["brackets",l,b,s],b=s);break}case Bt:case Vn:{a=o===Bt?"'":'"',s=b;do{if(u=!1,s=n.indexOf(a,s+1),s===-1)if(r||T){s=b+1;break}else j("string");for(p=s;n.charCodeAt(p-1)===Ge;)p-=1,u=!u}while(u);k=["string",n.slice(b,s+1),b,s],b=s;break}case ro:{Je.lastIndex=b+1,Je.test(n),Je.lastIndex===0?s=n.length-1:s=Je.lastIndex-2,k=["at-word",n.slice(b,s+1),b,s],b=s;break}case Ge:{for(s=b,c=!0;n.charCodeAt(s+1)===Ge;)s+=1,c=!c;if(o=n.charCodeAt(s+1),c&&o!==Kn&&o!==xe&&o!==Ze&&o!==Ve&&o!==Ke&&o!==qe&&(s+=1,Jn.test(n.charAt(s)))){for(;Jn.test(n.charAt(s+1));)s+=1;n.charCodeAt(s+1)===xe&&(s+=1)}k=["word",n.slice(b,s+1),b,s],b=s;break}default:{o===Kn&&n.charCodeAt(b+1)===no?(s=n.indexOf("*/",b+2)+1,s===0&&(r||T?s=n.length:j("comment")),k=["comment",n.slice(b,s+1),b,s],b=s):(Xe.lastIndex=b+1,Xe.test(n),Xe.lastIndex===0?s=n.length-1:s=Xe.lastIndex-2,k=["word",n.slice(b,s+1),b,s],F.push(k),b=s);break}}return b++,k}function ce(U){W.push(U)}return{back:ce,endOfFile:G,nextToken:we,position:Q}};let Di=ae,at=class extends Di{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 pn=at;at.default=at;Di.registerAtRule(at);let Hi=ae,Fi,Wi,fe=class extends Hi{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 Fi(new Wi,this,e).stringify()}};fe.registerLazyResult=i=>{Fi=i};fe.registerProcessor=i=>{Wi=i};var Be=fe;fe.default=fe;Hi.registerRoot(fe);let Re={comma(i){return Re.split(i,[","],!0)},space(i){let e=[" ",`
316
+ `," "];return Re.split(i,e)},split(i,e,t){let n=[],r="",o=!1,s=0,a=!1,l="",c=!1;for(let u of i)c?c=!1:u==="\\"?c=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?s+=1:u===")"?s>0&&(s-=1):s===0&&e.includes(u)&&(o=!0),o?(r!==""&&n.push(r.trim()),r="",o=!1):r+=u;return(t||r!=="")&&n.push(r.trim()),n}};var Gi=Re;Re.default=Re;let Zi=ae,ao=Gi,lt=class extends Zi{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return ao.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 fn=lt;lt.default=lt;Zi.registerRule(lt);let lo=gt,co=oo,uo=bt,ho=pn,po=Be,Xn=fn;const Qn={empty:!0,space:!0};function fo(i){for(let e=i.length-1;e>=0;e--){let t=i[e],n=t[3]||t[2];if(n)return n}}let go=class{constructor(e){this.input=e,this.root=new po,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 ho;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 uo;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=co(this.input)}decl(e,t){let n=new lo;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]||fo(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){n.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),n.raws.between+=o[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let s=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)s.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(o=e[c],o[1].toLowerCase()==="!important"){n.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(n.raws.important=u);break}else if(o[1].toLowerCase()==="important"){let u=e.slice(0),p="";for(let f=c;f>0;f--){let x=u[f][0];if(p.trim().indexOf("!")===0&&x!=="space")break;p=u.pop()[1]+p}p.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=p,e=u)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=s.map(c=>c[1]).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Xn;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,o=null,s=[],a=e[1].startsWith("--"),l=[],c=e;for(;c;){if(n=c[0],l.push(c),n==="("||n==="[")o||(o=c),s.push(n==="("?")":"]");else if(a&&r&&n==="{")o||(o=c),s.push("}");else if(s.length===0)if(n===";")if(r){this.decl(l,a);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),t=!0;break}else n===":"&&(r=!0);else n===s[s.length-1]&&(s.pop(),s.length===0&&(o=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(o),t&&r){if(!a)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let o,s,a=n.length,l="",c=!0,u,p;for(let f=0;f<a;f+=1)o=n[f],s=o[0],s==="space"&&f===a-1&&!r?c=!1:s==="comment"?(p=n[f-1]?n[f-1][0]:"empty",u=n[f+1]?n[f+1][0]:"empty",!Qn[p]&&!Qn[u]?l.slice(-1)===","?c=!1:l+=o[1]:c=!1):l+=o[1];if(!c){let f=n.reduce((x,k)=>x+k[1],"");e.raws[t]={raw:f,value:l}}e[t]=l}rule(e){e.pop();let t=new Xn;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 mo=go;let bo=ae,yo=mo,wo=mt;function ct(i,e){let t=new wo(i,e),n=new yo(t);try{n.parse()}catch(r){throw r}return n.root}var gn=ct;ct.default=ct;bo.registerParse(ct);let{isClean:H,my:vo}=je,xo=ki,Eo=pt,_o=ae,Ao=hn,Yn=dn,So=gn,$o=Be;const Co={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ko={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},Oo={Once:!0,postcssPlugin:!0,prepare:!0},ge=0;function Ee(i){return typeof i=="object"&&typeof i.then=="function"}function qi(i){let e=!1,t=Co[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,ge,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,ge,t+"Exit"]:[t,t+"Exit"]}function ei(i){let e;return i.type==="document"?e=["Document",ge,"DocumentExit"]:i.type==="root"?e=["Root",ge,"RootExit"]:e=qi(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function tn(i){return i[H]=!1,i.nodes&&i.nodes.forEach(e=>tn(e)),i}let nn={},me=class Vi{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=tn(t);else if(t instanceof Vi||t instanceof Yn)r=tn(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=So;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[vo]&&_o.rebuild(r)}this.result=new Yn(e,r,n),this.helpers={...nn,postcss:nn,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(!ko[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Oo[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(Ee(n))try{await n}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[H];){e[H]=!0;let t=[ei(e)];for(;t.length>0;){let n=this.visitTick(t);if(Ee(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 Ee(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=Eo;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new xo(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(Ee(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[H];)e[H]=!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(Ee(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[H]){a[H]=!0,e.push(ei(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===ge){n.nodes&&n.nodes.length&&(n[H]=!0,t.iterator=n.getIterator());return}else if(this.listeners[s]){t.visitors=this.listeners[s];return}}e.pop()}walkSync(e){e[H]=!0;let t=qi(e);for(let n of t)if(n===ge)e.nodes&&e.each(r=>{r[H]||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"}};me.registerPostcss=i=>{nn=i};var Ki=me;me.default=me;$o.registerLazyResult(me);Ao.registerLazyResult(me);let Ro=ki,No=pt,Mo=gn;const Po=dn;let rn=class{constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let r,o=No;this.result=new Po(this._processor,r,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let a=new Ro(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=Mo;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 To=rn;rn.default=rn;let Io=To,Lo=Ki,jo=hn,Bo=Be,Ne=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 Io(this,e,t):new Lo(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Uo=Ne;Ne.default=Ne;Bo.registerProcessor(Ne);jo.registerProcessor(Ne);let zo=gt,Do=_i,Ho=bt,Fo=pn,Wo=mt,Go=Be,Zo=fn;function Me(i,e){if(Array.isArray(i))return i.map(r=>Me(r));let{inputs:t,...n}=i;if(t){e=[];for(let r of t){let o={...r,__proto__:Wo.prototype};o.map&&(o.map={...o.map,__proto__:Do.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=i.nodes.map(r=>Me(r,e))),n.source){let{inputId:r,...o}=n.source;n.source=o,r!=null&&(n.source.input=e[r])}if(n.type==="root")return new Go(n);if(n.type==="decl")return new zo(n);if(n.type==="rule")return new Zo(n);if(n.type==="comment")return new Ho(n);if(n.type==="atrule")return new Fo(n);throw new Error("Unknown node type: "+i.type)}var qo=Me;Me.default=Me;var ti={};let Vo=ln,Ji=gt,Ko=Ki,Jo=ae,mn=Uo,Xo=pt,Qo=qo,Xi=hn,Yo=zi,Qi=bt,Yi=pn,ea=dn,ta=mt,na=gn,ia=Gi,er=fn,tr=Be,ra=ft;function _(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new mn(i)}_.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:
317
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),ti.LANG&&ti.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
318
+ https://www.w3ctech.com/topic/2226`));let a=t(...s);return a.postcssPlugin=e,a.postcssVersion=new mn().version,a}let o;return Object.defineProperty(r,"postcss",{get(){return o||(o=r()),o}}),r.process=function(s,a,l){return _([r(l)]).process(s,a)},r};_.stringify=Xo;_.parse=na;_.fromJSON=Qo;_.list=ia;_.comment=i=>new Qi(i);_.atRule=i=>new Yi(i);_.decl=i=>new Ji(i);_.rule=i=>new er(i);_.root=i=>new tr(i);_.document=i=>new Xi(i);_.CssSyntaxError=Vo;_.Declaration=Ji;_.Container=Jo;_.Processor=mn;_.Document=Xi;_.Comment=Qi;_.Warning=Yo;_.AtRule=Yi;_.Result=ea;_.Input=ta;_.Rule=er;_.Root=tr;_.Node=ra;Ko.registerPostcss(_);var sa=_;_.default=_;const C=wi(sa);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 oa=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&&ni(s.source.input.file,r)||o.length&&s.source.input.file&&!ni(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&&aa(c,e.exclude)?c:e.transform?e.transform(t,c,n+c,s.source.input.file,a):n+c))})}};function ni(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i.includes(t))}function aa(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i===t)}const la=wi(oa),ca="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}",ua="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 ha(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function nr(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)&&nr(t)}),i}class ii{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ir(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function X(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 da="</span>",ri=i=>!!i.scope,pa=(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 fa{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=ir(e)}openNode(e){if(!ri(e))return;const t=pa(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){ri(e)&&(this.buffer+=da)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const si=(i={})=>{const e={children:[]};return Object.assign(e,i),e};class bn{constructor(){this.rootNode=si(),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=si({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=>{bn._collapse(t)}))}}class ga extends bn{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 fa(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Pe(i){return i?typeof i=="string"?i:i.source:null}function rr(i){return le("(?=",i,")")}function ma(i){return le("(?:",i,")*")}function ba(i){return le("(?:",i,")?")}function le(...i){return i.map(e=>Pe(e)).join("")}function ya(i){const e=i[i.length-1];return typeof e=="object"&&e.constructor===Object?(i.splice(i.length-1,1),e):{}}function yn(...i){return"("+(ya(i).capture?"":"?:")+i.map(e=>Pe(e)).join("|")+")"}function sr(i){return new RegExp(i.toString()+"|").exec("").length-1}function wa(i,e){const t=i&&i.exec(e);return t&&t.index===0}const va=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function wn(i,{joinWith:e}){let t=0;return i.map(n=>{t+=1;const r=t;let o=Pe(n),s="";for(;o.length>0;){const a=va.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 xa=/\b\B/,or="[a-zA-Z]\\w*",vn="[a-zA-Z_]\\w*",ar="\\b\\d+(\\.\\d+)?",lr="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",cr="\\b(0b[01]+)",Ea="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",_a=(i={})=>{const e=/^#![ ]*\//;return i.binary&&(i.begin=le(e,/.*\b/,i.binary,/\b.*/)),X({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,n)=>{t.index!==0&&n.ignoreMatch()}},i)},Te={begin:"\\\\[\\s\\S]",relevance:0},Aa={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Te]},Sa={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Te]},$a={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/},yt=function(i,e,t={}){const n=X({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=yn("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:le(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},Ca=yt("//","$"),ka=yt("/\\*","\\*/"),Oa=yt("#","$"),Ra={scope:"number",begin:ar,relevance:0},Na={scope:"number",begin:lr,relevance:0},Ma={scope:"number",begin:cr,relevance:0},Pa={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Te,{begin:/\[/,end:/\]/,relevance:0,contains:[Te]}]},Ta={scope:"title",begin:or,relevance:0},Ia={scope:"title",begin:vn,relevance:0},La={begin:"\\.\\s*"+vn,relevance:0},ja=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 Qe=Object.freeze({__proto__:null,APOS_STRING_MODE:Aa,BACKSLASH_ESCAPE:Te,BINARY_NUMBER_MODE:Ma,BINARY_NUMBER_RE:cr,COMMENT:yt,C_BLOCK_COMMENT_MODE:ka,C_LINE_COMMENT_MODE:Ca,C_NUMBER_MODE:Na,C_NUMBER_RE:lr,END_SAME_AS_BEGIN:ja,HASH_COMMENT_MODE:Oa,IDENT_RE:or,MATCH_NOTHING_RE:xa,METHOD_GUARD:La,NUMBER_MODE:Ra,NUMBER_RE:ar,PHRASAL_WORDS_MODE:$a,QUOTE_STRING_MODE:Sa,REGEXP_MODE:Pa,RE_STARTERS_RE:Ea,SHEBANG:_a,TITLE_MODE:Ta,UNDERSCORE_IDENT_RE:vn,UNDERSCORE_TITLE_MODE:Ia});function Ba(i,e){i.input[i.index-1]==="."&&e.ignoreMatch()}function Ua(i,e){i.className!==void 0&&(i.scope=i.className,delete i.className)}function za(i,e){e&&i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",i.__beforeBegin=Ba,i.keywords=i.keywords||i.beginKeywords,delete i.beginKeywords,i.relevance===void 0&&(i.relevance=0))}function Da(i,e){Array.isArray(i.illegal)&&(i.illegal=yn(...i.illegal))}function Ha(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 Fa(i,e){i.relevance===void 0&&(i.relevance=1)}const Wa=(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=le(t.beforeMatch,rr(t.begin)),i.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},i.relevance=0,delete t.beforeMatch},Ga=["of","and","for","in","not","or","if","then","parent","list","value"],Za="keyword";function ur(i,e,t=Za){const n=Object.create(null);return typeof i=="string"?r(t,i.split(" ")):Array.isArray(i)?r(t,i):Object.keys(i).forEach(function(o){Object.assign(n,ur(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,qa(l[0],l[1])]})}}function qa(i,e){return e?Number(e):Va(i)?0:1}function Va(i){return Ga.includes(i.toLowerCase())}const oi={},re=i=>{console.error(i)},ai=(i,...e)=>{console.log(`WARN: ${i}`,...e)},ue=(i,e)=>{oi[`${i}/${e}`]||(console.log(`Deprecated as of ${i}. ${e}`),oi[`${i}/${e}`]=!0)},ut=new Error;function hr(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+=sr(e[a-1]);i[t]=s,i[t]._emit=o,i[t]._multi=!0}function Ka(i){if(Array.isArray(i.begin)){if(i.skip||i.excludeBegin||i.returnBegin)throw re("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ut;if(typeof i.beginScope!="object"||i.beginScope===null)throw re("beginScope must be object"),ut;hr(i,i.begin,{key:"beginScope"}),i.begin=wn(i.begin,{joinWith:""})}}function Ja(i){if(Array.isArray(i.end)){if(i.skip||i.excludeEnd||i.returnEnd)throw re("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ut;if(typeof i.endScope!="object"||i.endScope===null)throw re("endScope must be object"),ut;hr(i,i.end,{key:"endScope"}),i.end=wn(i.end,{joinWith:""})}}function Xa(i){i.scope&&typeof i.scope=="object"&&i.scope!==null&&(i.beginScope=i.scope,delete i.scope)}function Qa(i){Xa(i),typeof i.beginScope=="string"&&(i.beginScope={_wrap:i.beginScope}),typeof i.endScope=="string"&&(i.endScope={_wrap:i.endScope}),Ka(i),Ja(i)}function Ya(i){function e(s,a){return new RegExp(Pe(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+=sr(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(wn(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const c=l.findIndex((p,f)=>f>0&&p!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const l=new t;return this.rules.slice(a).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[a]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,l){this.rules.push([a,l]),l.type==="begin"&&this.count++}exec(a){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function r(s){const a=new n;return s.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&a.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&a.addRule(s.illegal,{type:"illegal"}),a}function o(s,a){const l=s;if(s.isCompiled)return l;[Ua,Ha,Qa,Wa].forEach(u=>u(s,a)),i.compilerExtensions.forEach(u=>u(s,a)),s.__beforeBegin=null,[za,Da,Fa].forEach(u=>u(s,a)),s.isCompiled=!0;let c=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),c=s.keywords.$pattern,delete s.keywords.$pattern),c=c||/\w+/,s.keywords&&(s.keywords=ur(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=Pe(l.end)||"",s.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+a.terminatorEnd)),s.illegal&&(l.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(u){return el(u==="self"?s:u)})),s.contains.forEach(function(u){o(u,l)}),s.starts&&o(s.starts,a),l.matcher=r(l),l}if(i.compilerExtensions||(i.compilerExtensions=[]),i.contains&&i.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return i.classNameAliases=X(i.classNameAliases||{}),o(i)}function dr(i){return i?i.endsWithParent||dr(i.starts):!1}function el(i){return i.variants&&!i.cachedVariants&&(i.cachedVariants=i.variants.map(function(e){return X(i,{variants:null},e)})),i.cachedVariants?i.cachedVariants:dr(i)?X(i,{starts:i.starts?X(i.starts):null}):Object.isFrozen(i)?X(i):i}var tl="11.9.0";class nl extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Ut=ir,li=X,ci=Symbol("nomatch"),il=7,pr=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:ga};function l(h){return a.noHighlightRe.test(h)}function c(h){let g=h.className+" ";g+=h.parentNode?h.parentNode.className:"";const w=a.languageDetectRe.exec(g);if(w){const E=T(w[1]);return E||(ai(o.replace("{}",w[1])),ai("Falling back to no-highlight mode for this block.",h)),E?w[1]:"no-highlight"}return g.split(/\s+/).find(E=>l(E)||T(E))}function u(h,g,w){let E="",O="";typeof g=="object"?(E=h,w=g.ignoreIllegals,O=g.language):(ue("10.7.0","highlight(lang, code, ...args) has been deprecated."),ue("10.7.0",`Please use highlight(code, options) instead.
319
+ https://github.com/highlightjs/highlight.js/issues/2277`),O=h,E=g),w===void 0&&(w=!0);const I={code:E,language:O};ee("before:highlight",I);const K=I.result?I.result:p(I.language,I.code,w);return K.code=I.code,ee("after:highlight",K),K}function p(h,g,w,E){const O=Object.create(null);function I(d,m){return d.keywords[m]}function K(){if(!y.keywords){M.addText(S);return}let d=0;y.keywordPatternRe.lastIndex=0;let m=y.keywordPatternRe.exec(S),v="";for(;m;){v+=S.substring(d,m.index);const A=D.case_insensitive?m[0].toLowerCase():m[0],P=I(y,A);if(P){const[Z,Cr]=P;if(M.addText(v),v="",O[A]=(O[A]||0)+1,O[A]<=il&&(He+=Cr),Z.startsWith("_"))v+=m[0];else{const kr=D.classNameAliases[Z]||Z;z(m[0],kr)}}else v+=m[0];d=y.keywordPatternRe.lastIndex,m=y.keywordPatternRe.exec(S)}v+=S.substring(d),M.addText(v)}function ze(){if(S==="")return;let d=null;if(typeof y.subLanguage=="string"){if(!e[y.subLanguage]){M.addText(S);return}d=p(y.subLanguage,S,!0,Sn[y.subLanguage]),Sn[y.subLanguage]=d._top}else d=x(S,y.subLanguage.length?y.subLanguage:null);y.relevance>0&&(He+=d.relevance),M.__addSublanguage(d._emitter,d.language)}function L(){y.subLanguage!=null?ze():K(),S=""}function z(d,m){d!==""&&(M.startScope(m),M.addText(d),M.endScope())}function xn(d,m){let v=1;const A=m.length-1;for(;v<=A;){if(!d._emit[v]){v++;continue}const P=D.classNameAliases[d[v]]||d[v],Z=m[v];P?z(Z,P):(S=Z,K(),S=""),v++}}function En(d,m){return d.scope&&typeof d.scope=="string"&&M.openNode(D.classNameAliases[d.scope]||d.scope),d.beginScope&&(d.beginScope._wrap?(z(S,D.classNameAliases[d.beginScope._wrap]||d.beginScope._wrap),S=""):d.beginScope._multi&&(xn(d.beginScope,m),S="")),y=Object.create(d,{parent:{value:y}}),y}function _n(d,m,v){let A=wa(d.endRe,v);if(A){if(d["on:end"]){const P=new ii(d);d["on:end"](m,P),P.isMatchIgnored&&(A=!1)}if(A){for(;d.endsParent&&d.parent;)d=d.parent;return d}}if(d.endsWithParent)return _n(d.parent,m,v)}function Er(d){return y.matcher.regexIndex===0?(S+=d[0],1):($t=!0,0)}function _r(d){const m=d[0],v=d.rule,A=new ii(v),P=[v.__beforeBegin,v["on:begin"]];for(const Z of P)if(Z&&(Z(d,A),A.isMatchIgnored))return Er(m);return v.skip?S+=m:(v.excludeBegin&&(S+=m),L(),!v.returnBegin&&!v.excludeBegin&&(S=m)),En(v,d),v.returnBegin?0:m.length}function Ar(d){const m=d[0],v=g.substring(d.index),A=_n(y,d,v);if(!A)return ci;const P=y;y.endScope&&y.endScope._wrap?(L(),z(m,y.endScope._wrap)):y.endScope&&y.endScope._multi?(L(),xn(y.endScope,d)):P.skip?S+=m:(P.returnEnd||P.excludeEnd||(S+=m),L(),P.excludeEnd&&(S=m));do y.scope&&M.closeNode(),!y.skip&&!y.subLanguage&&(He+=y.relevance),y=y.parent;while(y!==A.parent);return A.starts&&En(A.starts,d),P.returnEnd?0:m.length}function Sr(){const d=[];for(let m=y;m!==D;m=m.parent)m.scope&&d.unshift(m.scope);d.forEach(m=>M.openNode(m))}let De={};function An(d,m){const v=m&&m[0];if(S+=d,v==null)return L(),0;if(De.type==="begin"&&m.type==="end"&&De.index===m.index&&v===""){if(S+=g.slice(m.index,m.index+1),!r){const A=new Error(`0 width match regex (${h})`);throw A.languageName=h,A.badRule=De.rule,A}return 1}if(De=m,m.type==="begin")return _r(m);if(m.type==="illegal"&&!w){const A=new Error('Illegal lexeme "'+v+'" for mode "'+(y.scope||"<unnamed>")+'"');throw A.mode=y,A}else if(m.type==="end"){const A=Ar(m);if(A!==ci)return A}if(m.type==="illegal"&&v==="")return 1;if(St>1e5&&St>m.index*3)throw new Error("potential infinite loop, way more iterations than matches");return S+=v,v.length}const D=T(h);if(!D)throw re(o.replace("{}",h)),new Error('Unknown language: "'+h+'"');const $r=Ya(D);let At="",y=E||$r;const Sn={},M=new a.__emitter(a);Sr();let S="",He=0,te=0,St=0,$t=!1;try{if(D.__emitTokens)D.__emitTokens(g,M);else{for(y.matcher.considerAll();;){St++,$t?$t=!1:y.matcher.considerAll(),y.matcher.lastIndex=te;const d=y.matcher.exec(g);if(!d)break;const m=g.substring(te,d.index),v=An(m,d);te=d.index+v}An(g.substring(te))}return M.finalize(),At=M.toHTML(),{language:h,value:At,relevance:He,illegal:!1,_emitter:M,_top:y}}catch(d){if(d.message&&d.message.includes("Illegal"))return{language:h,value:Ut(g),illegal:!0,relevance:0,_illegalBy:{message:d.message,index:te,context:g.slice(te-100,te+100),mode:d.mode,resultSoFar:At},_emitter:M};if(r)return{language:h,value:Ut(g),illegal:!1,relevance:0,errorRaised:d,_emitter:M,_top:y};throw d}}function f(h){const g={value:Ut(h),illegal:!1,relevance:0,_top:s,_emitter:new a.__emitter(a)};return g._emitter.addText(h),g}function x(h,g){g=g||a.languages||Object.keys(e);const w=f(h),E=g.filter(T).filter(Ue).map(L=>p(L,h,!1));E.unshift(w);const O=E.sort((L,z)=>{if(L.relevance!==z.relevance)return z.relevance-L.relevance;if(L.language&&z.language){if(T(L.language).supersetOf===z.language)return 1;if(T(z.language).supersetOf===L.language)return-1}return 0}),[I,K]=O,ze=I;return ze.secondBest=K,ze}function k(h,g,w){const E=g&&t[g]||w;h.classList.add("hljs"),h.classList.add(`language-${E}`)}function N(h){let g=null;const w=c(h);if(l(w))return;if(ee("before:highlightElement",{el:h,language:w}),h.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",h);return}if(h.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(h)),a.throwUnescapedHTML))throw new nl("One of your code blocks includes unescaped HTML.",h.innerHTML);g=h;const E=g.textContent,O=w?u(E,{language:w,ignoreIllegals:!0}):x(E);h.innerHTML=O.value,h.dataset.highlighted="yes",k(h,w,O.language),h.result={language:O.language,re:O.relevance,relevance:O.relevance},O.secondBest&&(h.secondBest={language:O.secondBest.language,relevance:O.secondBest.relevance}),ee("after:highlightElement",{el:h,result:O,text:E})}function b(h){a=li(a,h)}const F=()=>{j(),ue("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function W(){j(),ue("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Q=!1;function j(){if(document.readyState==="loading"){Q=!0;return}document.querySelectorAll(a.cssSelector).forEach(N)}function G(){Q&&j()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",G,!1);function we(h,g){let w=null;try{w=g(i)}catch(E){if(re("Language definition for '{}' could not be registered.".replace("{}",h)),r)re(E);else throw E;w=s}w.name||(w.name=h),e[h]=w,w.rawDefinition=g.bind(null,i),w.aliases&&Y(w.aliases,{languageName:h})}function ce(h){delete e[h];for(const g of Object.keys(t))t[g]===h&&delete t[g]}function U(){return Object.keys(e)}function T(h){return h=(h||"").toLowerCase(),e[h]||e[t[h]]}function Y(h,{languageName:g}){typeof h=="string"&&(h=[h]),h.forEach(w=>{t[w.toLowerCase()]=g})}function Ue(h){const g=T(h);return g&&!g.disableAutodetect}function vt(h){h["before:highlightBlock"]&&!h["before:highlightElement"]&&(h["before:highlightElement"]=g=>{h["before:highlightBlock"](Object.assign({block:g.el},g))}),h["after:highlightBlock"]&&!h["after:highlightElement"]&&(h["after:highlightElement"]=g=>{h["after:highlightBlock"](Object.assign({block:g.el},g))})}function xt(h){vt(h),n.push(h)}function Et(h){const g=n.indexOf(h);g!==-1&&n.splice(g,1)}function ee(h,g){const w=h;n.forEach(function(E){E[w]&&E[w](g)})}function _t(h){return ue("10.7.0","highlightBlock will be removed entirely in v12.0"),ue("10.7.0","Please use highlightElement now."),N(h)}Object.assign(i,{highlight:u,highlightAuto:x,highlightAll:j,highlightElement:N,highlightBlock:_t,configure:b,initHighlighting:F,initHighlightingOnLoad:W,registerLanguage:we,unregisterLanguage:ce,listLanguages:U,getLanguage:T,registerAliases:Y,autoDetection:Ue,inherit:li,addPlugin:xt,removePlugin:Et}),i.debugMode=function(){r=!1},i.safeMode=function(){r=!0},i.versionString=tl,i.regex={concat:le,lookahead:rr,either:yn,optional:ba,anyNumberOfTimes:ma};for(const h in Qe)typeof Qe[h]=="object"&&nr(Qe[h]);return Object.assign(i,Qe),i},be=pr({});be.newInstance=()=>pr({});var rl=be;be.HighlightJS=be;be.default=be;const wt=ha(rl),ht="[A-Za-z$_][0-9A-Za-z$_]*",fr=["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"],gr=["true","false","null","undefined","NaN","Infinity"],mr=["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"],br=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],yr=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],wr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],vr=[].concat(yr,mr,br);function sl(i){const e=i.regex,t=(h,{after:g})=>{const w="</"+h[0].slice(1);return h.input.indexOf(w,g)!==-1},n=ht,r={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(h,g)=>{const w=h[0].length+h.index,E=h.input[w];if(E==="<"||E===","){g.ignoreMatch();return}E===">"&&(t(h,{after:w})||g.ignoreMatch());let O;const I=h.input.substring(w);if(O=I.match(/^\s*=/)){g.ignoreMatch();return}if((O=I.match(/^\s+extends\s+/))&&O.index===0){g.ignoreMatch();return}}},a={$pattern:ht,keyword:fr,literal:gr,built_in:vr,"variable.language":wr},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},x={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},k={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,f],subLanguage:"css"}},N={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE,f]},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]},W=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,x,k,N,b,{match:/\$\d+/},p];f.contains=W.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(W)});const Q=[].concat(F,f.contains),j=Q.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(Q)}]),G={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:j},we={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"}}]},ce={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:{_:[...mr,...br]}},U={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[G],illegal:/%/},Y={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Ue(h){return e.concat("(?!",h.join("|"),")")}const vt={match:e.concat(/\b/,Ue([...yr,"super","import"]),n,e.lookahead(/\(/)),className:"title.function",relevance:0},xt={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Et={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},G]},ee="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+i.UNDERSCORE_IDENT_RE+")\\s*=>",_t={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(ee)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[G]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:j,CLASS_REFERENCE:ce},illegal:/#(?![$_A-z])/,contains:[i.SHEBANG({label:"shebang",binary:"node",relevance:5}),U,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,x,k,N,b,F,{match:/\$\d+/},p,ce,{className:"attr",begin:n+e.lookahead(":"),relevance:0},_t,{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:ee,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:i.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:j}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:o},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},T,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+i.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[G,i.inherit(i.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},xt,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[G]},vt,Y,we,Et,{match:/\$[(.]/}]}}function ol(i){const e=sl(i),t=ht,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:ht,keyword:fr.concat(a),literal:gr,built_in:vr.concat(n),"variable.language":wr},c={className:"meta",begin:"@"+t},u=(f,x,k)=>{const N=f.contains.findIndex(b=>b.label===x);if(N===-1)throw new Error("can not find mode to replace");f.contains.splice(N,1,k)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,r,o]),u(e,"shebang",i.SHEBANG()),u(e,"use_strict",s);const p=e.contains.find(f=>f.label==="func.def");return p.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function al(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 ll=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_-]*/}}),cl=["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"],ul=["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"],hl=["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"],dl=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],pl=["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 fl(i){const e=i.regex,t=ll(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:":("+hl.join("|")+")"},{begin:":(:)?("+dl.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+pl.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:ul.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+cl.join("|")+")\\b"}]}}const xr=document.createElement("style");xr.innerText=[ca,ua].join(`
320
+ `);document.head.appendChild(xr);wt.registerLanguage("typescript",ol);wt.registerLanguage("html",al);wt.registerLanguage("css",fl);function gl(...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 _e(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 Se(i,e){const t=document.createElement(i);return typeof e=="string"?t.innerHTML=e:e.forEach(n=>{t.appendChild(n)}),t}async function ml(i,e,t){var n,r,o;const s=e.mainContent,a=Se("div",s);a.id=`example-preview-${t}`;const l=typeof e.css=="string"||(n=e.css)==null?void 0:n.label,c=typeof e.css=="string"?e.css:(r=e.css)==null?void 0:r.content,u=gl(_e("Preview",a),_e("HTML",Ye("html",s)),...c?[_e(l??"CSS",Ye("css",c))]:[],...e.initializer&&e.initializer.content?[_e(e.initializer.label??"TS",Ye("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(f=>_e(f.label,Ye(f.language,f.content))));e.description&&i.appendChild(Se("div",e.description));const p=Se("div",[u]);p.classList.add("example"),i.appendChild(p),c&&bl(`#${a.id}`,c),(o=e.initializer)!=null&&o.initialize&&await e.initializer.initialize(a)}function Ye(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(`
321
+ `).trim();return i&&i!="raw"&&(t=wt.highlight(t,{language:i}).value),Se("pre",[Se("code",t)])}function bl(i,e){const t=document.createElement("style");t.innerHTML=C().use(la({prefix:i})).process(e).css,document.head.appendChild(t)}async function yl(i,e=document.body){const t=vl(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;ml(o,s,n++)})}function wl(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 vl(i){return i.children?wl(i):i}const xl=`<h1 id="@cas-smartdesign/app-banner">@cas-smartdesign/app-banner</h1>
322
+ <p>An element that functions as an app banner and can be used to reference another page.</p>
323
+ <h2 id="usage-examples">Usage Examples</h2>
324
+ <ul>
325
+ <li>In the SmartWe tenant and login mobile page to link to the mobile App</li>
326
+ <li>In the Cas GenisisWorld tenant and login mobile page to link to the mobile App</li>
327
+ </ul>
328
+ <h2 id="implementation-steps">Implementation steps</h2>
329
+ <ol>
330
+ <li>Complete the installation steps in the menu tab <b>Installation</b></li>
331
+ <li>Add the tag <b>&lt;sd-app-banner&gt;</b> with the parameters from the <a href="#properties">Chapter Properties</a><br>
332
+ <pre>&lt;sd-app-banner
333
+ url=<< Your link to the application >>
334
+ message=<< Titel of your app banner >>
335
+ verticalAlignment=<< "top" or "bottom" or "" >>
336
+ icon=""<br>>&lt;/sd-app-banner></pre></li>
337
+ </ol>
338
+ <h2 id="properties">Properties</h2>
339
+ <ul>
340
+ <li><code>message</code>: string<ul>
341
+ <li>The message that is shown to the app-banner.</li>
342
+ </ul>
343
+ </li>
344
+ <li><code>messageAppButton</code>: string<ul>
345
+ <li>The message that is used as a caption for open app button.</li>
346
+ </ul>
347
+ </li>
348
+ <li><code>url</code>: string<ul>
349
+ <li>The URL shall be opened when the button is clicked.</li>
350
+ </ul>
351
+ </li>
352
+ <li><code>icon</code>: string<ul>
353
+ <li>The path to an image that will be shown within the app-banner.</li>
354
+ </ul>
355
+ </li>
356
+ <li><code>verticalAlignment</code>: string<ul>
357
+ <li>The option to set a fixed position for the app-banner:<ul>
358
+ <li>If you want to place it at the top, use &quot;top&quot;</li>
359
+ <li>If you want to place it at the bottom, use &quot;bottom&quot;</li>
360
+ </ul>
361
+ </li>
362
+ <li>If this attribute&#39;s value is empty, you can apply your own CSS style. See in the second example.</li>
363
+ </ul>
364
+ </li>
365
+ </ul>
366
+ <h2 id="examples">Examples</h2>
367
+ `;document.querySelector("#markdown-container").innerHTML=xl;yl(Object.assign({"./examples/1. App banner with a fixed position/index.ts":jr,"./examples/2. App Banner in the code flow/index.ts":Hr}));
368
+ function __vite__mapDeps(indexes) {
369
+ if (!__vite__mapDeps.viteFileDeps) {
370
+ __vite__mapDeps.viteFileDeps = []
371
+ }
372
+ return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
373
+ }