@cas-smartdesign/list-item 7.4.0 → 7.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/docs/doc.mjs CHANGED
@@ -38,7 +38,7 @@ sd-list-item {
38
38
  sd-list-item:not(:last-of-type) {
39
39
  border-bottom: 1px solid gray;
40
40
  }
41
- `,Dr={mainContent:Ir,description:jr,css:zr},Br=Object.freeze(Object.defineProperty({__proto__:null,default:Dr},Symbol.toStringTag,{value:"Module"})),Ur="modulepreload",Hr=function(n,e){return new URL(n,e).href},Hi={},hi=function(e,i,r){let t=Promise.resolve();if(i&&i.length>0){let h=function(s){return Promise.all(s.map(c=>Promise.resolve(c).then(o=>({status:"fulfilled",value:o}),o=>({status:"rejected",reason:o}))))};const a=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),b=p?.nonce||p?.getAttribute("nonce");t=h(i.map(s=>{if(s=Hr(s,r),s in Hi)return;Hi[s]=!0;const c=s.endsWith(".css"),o=c?'[rel="stylesheet"]':"";if(!!r)for(let m=a.length-1;m>=0;m--){const g=a[m];if(g.href===s&&(!c||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${o}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":Ur,c||(f.as="script"),f.crossOrigin="",f.href=s,b&&f.setAttribute("nonce",b),document.head.appendChild(f),c)return new Promise((m,g)=>{f.addEventListener("load",m),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${s}`)))})}))}function u(a){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=a,window.dispatchEvent(p),!p.defaultPrevented)throw a}return t.then(a=>{for(const p of a||[])p.status==="rejected"&&u(p.reason);return e().catch(u)})},qr=`<div id="long-content-examples">
41
+ `,Dr={mainContent:Ir,description:jr,css:zr},Br=Object.freeze(Object.defineProperty({__proto__:null,default:Dr},Symbol.toStringTag,{value:"Module"})),Ur="modulepreload",qr=function(n,e){return new URL(n,e).href},qi={},hi=function(e,i,r){let t=Promise.resolve();if(i&&i.length>0){let h=function(s){return Promise.all(s.map(c=>Promise.resolve(c).then(o=>({status:"fulfilled",value:o}),o=>({status:"rejected",reason:o}))))};const a=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),b=p?.nonce||p?.getAttribute("nonce");t=h(i.map(s=>{if(s=qr(s,r),s in qi)return;qi[s]=!0;const c=s.endsWith(".css"),o=c?'[rel="stylesheet"]':"";if(!!r)for(let m=a.length-1;m>=0;m--){const g=a[m];if(g.href===s&&(!c||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${o}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":Ur,c||(f.as="script"),f.crossOrigin="",f.href=s,b&&f.setAttribute("nonce",b),document.head.appendChild(f),c)return new Promise((m,g)=>{f.addEventListener("load",m),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${s}`)))})}))}function u(a){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=a,window.dispatchEvent(p),!p.defaultPrevented)throw a}return t.then(a=>{for(const p of a||[])p.status==="rejected"&&u(p.reason);return e().catch(u)})},Hr=`<div id="long-content-examples">
42
42
  <div>
43
43
  <h4>Without line clamp:</h4>
44
44
  <sd-list-item caption="long caption, have to contain every detail, but there is no description"></sd-list-item>
@@ -141,7 +141,7 @@ document
141
141
  });
142
142
  resizeObserver.observe(parentListItem);
143
143
  });
144
- `,Zr={mainContent:qr,description:Fr,css:Wr,initializer:{content:Gr,type:"typescript",initialize:()=>hi(()=>import("./long-content.js"),[],import.meta.url)}},Vr=Object.freeze(Object.defineProperty({__proto__:null,default:Zr},Symbol.toStringTag,{value:"Module"})),Jr=`<div id="dynamically-created-examples" class="list"></div>
144
+ `,Zr={mainContent:Hr,description:Fr,css:Wr,initializer:{content:Gr,type:"typescript",initialize:()=>hi(()=>import("./long-content.js"),[],import.meta.url)}},Vr=Object.freeze(Object.defineProperty({__proto__:null,default:Zr},Symbol.toStringTag,{value:"Module"})),Jr=`<div id="dynamically-created-examples" class="list"></div>
145
145
  `,Kr=`<h3 id="dynamically-created-items">Dynamically created items</h3>
146
146
  `,Xr=`.list {
147
147
  border: 1px solid gray;
@@ -269,9 +269,9 @@ lists.forEach((list: HTMLDivElement) => {
269
269
  list.appendChild(draggedItem);
270
270
  });
271
271
  });
272
- `,ss={mainContent:ts,description:is,css:ns,initializer:{content:rs,type:"typescript",initialize:()=>hi(()=>import("./script-drag-and-drop.js"),[],import.meta.url)}},os=Object.freeze(Object.defineProperty({__proto__:null,default:ss},Symbol.toStringTag,{value:"Module"}));const dt=globalThis,di=dt.ShadowRoot&&(dt.ShadyCSS===void 0||dt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fi=Symbol(),qi=new WeakMap;let Mn=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==fi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(di&&e===void 0){const r=i!==void 0&&i.length===1;r&&(e=qi.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&qi.set(i,e))}return e}toString(){return this.cssText}};const Nn=n=>new Mn(typeof n=="string"?n:n+"",void 0,fi),ls=(n,...e)=>{const i=n.length===1?n[0]:e.reduce(((r,t,u)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(t)+n[u+1]),n[0]);return new Mn(i,n,fi)},as=(n,e)=>{if(di)n.adoptedStyleSheets=e.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of e){const r=document.createElement("style"),t=dt.litNonce;t!==void 0&&r.setAttribute("nonce",t),r.textContent=i.cssText,n.appendChild(r)}},Fi=di?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const r of e.cssRules)i+=r.cssText;return Nn(i)})(n):n;const{is:cs,defineProperty:us,getOwnPropertyDescriptor:hs,getOwnPropertyNames:ds,getOwnPropertySymbols:fs,getPrototypeOf:ps}=Object,bt=globalThis,Wi=bt.trustedTypes,ms=Wi?Wi.emptyScript:"",gs=bt.reactiveElementPolyfillSupport,We=(n,e)=>n,ft={toAttribute(n,e){switch(e){case Boolean:n=n?ms:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},pi=(n,e)=>!cs(n,e),Gi={attribute:!0,type:String,converter:ft,reflect:!1,useDefault:!1,hasChanged:pi};Symbol.metadata??=Symbol("metadata"),bt.litPropertyMetadata??=new WeakMap;let je=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=Gi){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){const r=Symbol(),t=this.getPropertyDescriptor(e,r,i);t!==void 0&&us(this.prototype,e,t)}}static getPropertyDescriptor(e,i,r){const{get:t,set:u}=hs(this.prototype,e)??{get(){return this[i]},set(a){this[i]=a}};return{get:t,set(a){const p=t?.call(this);u?.call(this,a),this.requestUpdate(e,p,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Gi}static _$Ei(){if(this.hasOwnProperty(We("elementProperties")))return;const e=ps(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(We("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(We("properties"))){const i=this.properties,r=[...ds(i),...fs(i)];for(const t of r)this.createProperty(t,i[t])}const e=this[Symbol.metadata];if(e!==null){const i=litPropertyMetadata.get(e);if(i!==void 0)for(const[r,t]of i)this.elementProperties.set(r,t)}this._$Eh=new Map;for(const[i,r]of this.elementProperties){const t=this._$Eu(i,r);t!==void 0&&this._$Eh.set(t,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const t of r)i.unshift(Fi(t))}else e!==void 0&&i.push(Fi(e));return i}static _$Eu(e,i){const r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,i=this.constructor.elementProperties;for(const r of i.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return as(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,i,r){this._$AK(e,r)}_$ET(e,i){const r=this.constructor.elementProperties.get(e),t=this.constructor._$Eu(e,r);if(t!==void 0&&r.reflect===!0){const u=(r.converter?.toAttribute!==void 0?r.converter:ft).toAttribute(i,r.type);this._$Em=e,u==null?this.removeAttribute(t):this.setAttribute(t,u),this._$Em=null}}_$AK(e,i){const r=this.constructor,t=r._$Eh.get(e);if(t!==void 0&&this._$Em!==t){const u=r.getPropertyOptions(t),a=typeof u.converter=="function"?{fromAttribute:u.converter}:u.converter?.fromAttribute!==void 0?u.converter:ft;this._$Em=t;const p=a.fromAttribute(i,u.type);this[t]=p??this._$Ej?.get(t)??p,this._$Em=null}}requestUpdate(e,i,r){if(e!==void 0){const t=this.constructor,u=this[e];if(r??=t.getPropertyOptions(e),!((r.hasChanged??pi)(u,i)||r.useDefault&&r.reflect&&u===this._$Ej?.get(e)&&!this.hasAttribute(t._$Eu(e,r))))return;this.C(e,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:r,reflect:t,wrapped:u},a){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??i??this[e]),u!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(i=void 0),this._$AL.set(e,i)),t===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,u]of this._$Ep)this[t]=u;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[t,u]of r){const{wrapped:a}=u,p=this[t];a!==!0||this._$AL.has(t)||p===void 0||this.C(t,void 0,u,p)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach((r=>r.hostUpdate?.())),this.update(i)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(i)}willUpdate(e){}_$AE(e){this._$EO?.forEach((i=>i.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((i=>this._$ET(i,this[i]))),this._$EM()}updated(e){}firstUpdated(e){}};je.elementStyles=[],je.shadowRootOptions={mode:"open"},je[We("elementProperties")]=new Map,je[We("finalized")]=new Map,gs?.({ReactiveElement:je}),(bt.reactiveElementVersions??=[]).push("2.1.1");const mi=globalThis,pt=mi.trustedTypes,Zi=pt?pt.createPolicy("lit-html",{createHTML:n=>n}):void 0,Pn="$lit$",_e=`lit$${Math.random().toFixed(9).slice(2)}$`,Tn="?"+_e,bs=`<${Tn}>`,Oe=document,Je=()=>Oe.createComment(""),Ke=n=>n===null||typeof n!="object"&&typeof n!="function",gi=Array.isArray,ys=n=>gi(n)||typeof n?.[Symbol.iterator]=="function",Lt=`[
273
- \f\r]`,qe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vi=/-->/g,Ji=/>/g,Ce=RegExp(`>|${Lt}(?:([^\\s"'>=/]+)(${Lt}*=${Lt}*(?:[^
274
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ki=/'/g,Xi=/"/g,Ln=/^(?:script|style|textarea|title)$/i,ws=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),lt=ws(1),Re=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Qi=new WeakMap,$e=Oe.createTreeWalker(Oe,129);function In(n,e){if(!gi(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zi!==void 0?Zi.createHTML(e):e}const vs=(n,e)=>{const i=n.length-1,r=[];let t,u=e===2?"<svg>":e===3?"<math>":"",a=qe;for(let p=0;p<i;p++){const b=n[p];let h,s,c=-1,o=0;for(;o<b.length&&(a.lastIndex=o,s=a.exec(b),s!==null);)o=a.lastIndex,a===qe?s[1]==="!--"?a=Vi:s[1]!==void 0?a=Ji:s[2]!==void 0?(Ln.test(s[2])&&(t=RegExp("</"+s[2],"g")),a=Ce):s[3]!==void 0&&(a=Ce):a===Ce?s[0]===">"?(a=t??qe,c=-1):s[1]===void 0?c=-2:(c=a.lastIndex-s[2].length,h=s[1],a=s[3]===void 0?Ce:s[3]==='"'?Xi:Ki):a===Xi||a===Ki?a=Ce:a===Vi||a===Ji?a=qe:(a=Ce,t=void 0);const l=a===Ce&&n[p+1].startsWith("/>")?" ":"";u+=a===qe?b+bs:c>=0?(r.push(h),b.slice(0,c)+Pn+b.slice(c)+_e+l):b+_e+(c===-2?p:l)}return[In(n,u+(n[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Xe{constructor({strings:e,_$litType$:i},r){let t;this.parts=[];let u=0,a=0;const p=e.length-1,b=this.parts,[h,s]=vs(e,i);if(this.el=Xe.createElement(h,r),$e.currentNode=this.el.content,i===2||i===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(t=$e.nextNode())!==null&&b.length<p;){if(t.nodeType===1){if(t.hasAttributes())for(const c of t.getAttributeNames())if(c.endsWith(Pn)){const o=s[a++],l=t.getAttribute(c).split(_e),f=/([.?@])?(.*)/.exec(o);b.push({type:1,index:u,name:f[2],strings:l,ctor:f[1]==="."?_s:f[1]==="?"?Es:f[1]==="@"?As:yt}),t.removeAttribute(c)}else c.startsWith(_e)&&(b.push({type:6,index:u}),t.removeAttribute(c));if(Ln.test(t.tagName)){const c=t.textContent.split(_e),o=c.length-1;if(o>0){t.textContent=pt?pt.emptyScript:"";for(let l=0;l<o;l++)t.append(c[l],Je()),$e.nextNode(),b.push({type:2,index:++u});t.append(c[o],Je())}}}else if(t.nodeType===8)if(t.data===Tn)b.push({type:2,index:u});else{let c=-1;for(;(c=t.data.indexOf(_e,c+1))!==-1;)b.push({type:7,index:u}),c+=_e.length-1}u++}}static createElement(e,i){const r=Oe.createElement("template");return r.innerHTML=e,r}}function ze(n,e,i=n,r){if(e===Re)return e;let t=r!==void 0?i._$Co?.[r]:i._$Cl;const u=Ke(e)?void 0:e._$litDirective$;return t?.constructor!==u&&(t?._$AO?.(!1),u===void 0?t=void 0:(t=new u(n),t._$AT(n,i,r)),r!==void 0?(i._$Co??=[])[r]=t:i._$Cl=t),t!==void 0&&(e=ze(n,t._$AS(n,e.values),t,r)),e}class xs{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:i},parts:r}=this._$AD,t=(e?.creationScope??Oe).importNode(i,!0);$e.currentNode=t;let u=$e.nextNode(),a=0,p=0,b=r[0];for(;b!==void 0;){if(a===b.index){let h;b.type===2?h=new Qe(u,u.nextSibling,this,e):b.type===1?h=new b.ctor(u,b.name,b.strings,this,e):b.type===6&&(h=new Ss(u,this,e)),this._$AV.push(h),b=r[++p]}a!==b?.index&&(u=$e.nextNode(),a++)}return $e.currentNode=Oe,t}p(e){let i=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}}class Qe{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,t){this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=t,this._$Cv=t?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=ze(this,e,i),Ke(e)?e===K||e==null||e===""?(this._$AH!==K&&this._$AR(),this._$AH=K):e!==this._$AH&&e!==Re&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ys(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==K&&Ke(this._$AH)?this._$AA.nextSibling.data=e:this.T(Oe.createTextNode(e)),this._$AH=e}$(e){const{values:i,_$litType$:r}=e,t=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Xe.createElement(In(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===t)this._$AH.p(i);else{const u=new xs(t,this),a=u.u(this.options);u.p(i),this.T(a),this._$AH=u}}_$AC(e){let i=Qi.get(e.strings);return i===void 0&&Qi.set(e.strings,i=new Xe(e)),i}k(e){gi(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let r,t=0;for(const u of e)t===i.length?i.push(r=new Qe(this.O(Je()),this.O(Je()),this,this.options)):r=i[t],r._$AI(u),t++;t<i.length&&(this._$AR(r&&r._$AB.nextSibling,t),i.length=t)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class yt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,t,u){this.type=1,this._$AH=K,this._$AN=void 0,this.element=e,this.name=i,this._$AM=t,this.options=u,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=K}_$AI(e,i=this,r,t){const u=this.strings;let a=!1;if(u===void 0)e=ze(this,e,i,0),a=!Ke(e)||e!==this._$AH&&e!==Re,a&&(this._$AH=e);else{const p=e;let b,h;for(e=u[0],b=0;b<u.length-1;b++)h=ze(this,p[r+b],i,b),h===Re&&(h=this._$AH[b]),a||=!Ke(h)||h!==this._$AH[b],h===K?e=K:e!==K&&(e+=(h??"")+u[b+1]),this._$AH[b]=h}a&&!t&&this.j(e)}j(e){e===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class _s extends yt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===K?void 0:e}}class Es extends yt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==K)}}class As extends yt{constructor(e,i,r,t,u){super(e,i,r,t,u),this.type=5}_$AI(e,i=this){if((e=ze(this,e,i,0)??K)===Re)return;const r=this._$AH,t=e===K&&r!==K||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,u=e!==K&&(r===K||t);t&&this.element.removeEventListener(this.name,this,r),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class Ss{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){ze(this,e)}}const ks=mi.litHtmlPolyfillSupport;ks?.(Xe,Qe),(mi.litHtmlVersions??=[]).push("3.3.1");const Cs=(n,e,i)=>{const r=i?.renderBefore??e;let t=r._$litPart$;if(t===void 0){const u=i?.renderBefore??null;r._$litPart$=t=new Qe(e.insertBefore(Je(),u),u,void 0,i??{})}return t._$AI(n),t};const bi=globalThis;let Ge=class extends je{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Cs(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Re}};Ge._$litElement$=!0,Ge.finalized=!0,bi.litElementHydrateSupport?.({LitElement:Ge});const $s=bi.litElementPolyfillSupport;$s?.({LitElement:Ge});(bi.litElementVersions??=[]).push("4.2.1");const Os={attribute:!0,type:String,converter:ft,reflect:!1,hasChanged:pi},Rs=(n=Os,e,i)=>{const{kind:r,metadata:t}=i;let u=globalThis.litPropertyMetadata.get(t);if(u===void 0&&globalThis.litPropertyMetadata.set(t,u=new Map),r==="setter"&&((n=Object.create(n)).wrapped=!0),u.set(i.name,n),r==="accessor"){const{name:a}=i;return{set(p){const b=e.get.call(this);e.set.call(this,p),this.requestUpdate(a,b,n)},init(p){return p!==void 0&&this.C(a,void 0,n,p),p}}}if(r==="setter"){const{name:a}=i;return function(p){const b=this[a];e.call(this,p),this.requestUpdate(a,b,n)}}throw Error("Unsupported decorator location: "+r)};function oe(n){return(e,i)=>typeof i=="object"?Rs(n,e,i):((r,t,u)=>{const a=t.hasOwnProperty(u);return t.constructor.createProperty(u,r),a?Object.getOwnPropertyDescriptor(t,u):void 0})(n,e,i)}const yi={ATTRIBUTE:1,CHILD:2},jn=n=>(...e)=>({_$litDirective$:n,values:e});class zn{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,i,r){this._$Ct=e,this._$AM=i,this._$Ci=r}_$AS(e,i){return this.update(e,i)}update(e,i){return this.render(...i)}}class ui extends zn{constructor(e){if(super(e),this.it=K,e.type!==yi.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===K||e==null)return this._t=void 0,this.it=e;if(e===Re)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const i=[e];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}ui.directiveName="unsafeHTML",ui.resultType=1;const Ms=jn(ui);const at=n=>n??K;const Ns=n=>n.strings===void 0;const Ze=(n,e)=>{const i=n._$AN;if(i===void 0)return!1;for(const r of i)r._$AO?.(e,!1),Ze(r,e);return!0},mt=n=>{let e,i;do{if((e=n._$AM)===void 0)break;i=e._$AN,i.delete(n),n=e}while(i?.size===0)},Dn=n=>{for(let e;e=n._$AM;n=e){let i=e._$AN;if(i===void 0)e._$AN=i=new Set;else if(i.has(n))break;i.add(n),Ls(e)}};function Ps(n){this._$AN!==void 0?(mt(this),this._$AM=n,Dn(this)):this._$AM=n}function Ts(n,e=!1,i=0){const r=this._$AH,t=this._$AN;if(t!==void 0&&t.size!==0)if(e)if(Array.isArray(r))for(let u=i;u<r.length;u++)Ze(r[u],!1),mt(r[u]);else r!=null&&(Ze(r,!1),mt(r));else Ze(this,n)}const Ls=n=>{n.type==yi.CHILD&&(n._$AP??=Ts,n._$AQ??=Ps)};class Is extends zn{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,i,r){super._$AT(e,i,r),Dn(this),this.isConnected=e._$AU}_$AO(e,i=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),i&&(Ze(this,e),mt(this))}setValue(e){if(Ns(this._$Ct))this._$Ct._$AI(e,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=e,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}const Yi=n=>n?n.startsWith("url")?n:`url("${n}")`:null,js=(n,e)=>{if(n){const i=new Image;i.addEventListener("load",e),i.src=n,i.complete&&(i.removeEventListener("load",e),e())}};class zs extends Is{constructor(e){if(super(e),e.type!==yi.ATTRIBUTE||e.name!=="src"&&e.name!=="style")throw new Error("The `placeholder` directive must be used in the `src` or `style` attributes")}update(e,[i,r]){return this.useCssBackground=e.name=="style",this.render(i,r)}render(e,i){this.loadingToken!=null&&(this.loadingToken.cancelled=!0);const r={cancelled:!1};return this.loadingToken=r,typeof e=="string"?this.preload(e,r):e?.then(t=>{this.preload(t,r)}),this.useCssBackground?Yi(i):i}preload(e,i){e!=null&&!i.cancelled&&js(e,()=>{i.cancelled||this.setValue(this.useCssBackground?Yi(e):e)})}}const Ds=jn(zs),Bs=':host{display:block;contain:strict;height:50px}:host([selected]){background-color:#d3e6fa}:host(:not([selected]):hover),:host(:not([selected])[focused]){background-color:#e7f1fa}@media (forced-colors: active){:host([selected]){outline:4px solid}:host(:not([selected]):hover){outline:4px dotted}:host(:not([selected])[focused]){outline:4px dashed}}:host([enable-line-clamp]) .labels>:only-child{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow-wrap:break-word}.container{display:flex;height:100%;box-sizing:border-box}.container .level-indicator{width:7px;height:100%}.container .level-indicator.level-0{background-color:#a0c3ef}.container .level-indicator.level-1{background-color:#e7c374}.container .level-indicator.level-2{background-color:#bfd596}.container .level-indicator.level-3{background-color:#fd998d}.container .level-indicator.level-4{background-color:#c6e8f5}.container .level-indicator.level-5{background-color:#fde3a4}.container .level-indicator.level-6{background-color:#dcbfe0}.side-content{display:flex;align-items:center;flex-grow:0}.labels{display:flex;flex-direction:column;justify-content:center;flex:1 1 0px;height:100%;line-height:normal;overflow:hidden;padding:var(--sd-list-item-label-content-padding, 0 8px)}.caption,.description{width:100%;font-family:var(--sd-list-item-font-family, "Segoe UI", "Lucida Sans", Arial, sans-serif);font-style:normal;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-user-select:none;user-select:none;text-decoration:var(--sd-list-item-text-decoration, inherit)}.caption em,.description em{font-weight:bolder}.caption{font-size:var(--sd-list-item-caption-font-size, 16px);color:var(--sd-list-item-caption-text-color, #111);font-weight:var(--sd-list-item-caption-font-weight, normal)}.description{font-size:var(--sd-list-item-description-font-size, 13px);color:var(--sd-list-item-description-text-color, #767676);font-weight:var(--sd-list-item-description-font-weight, normal)}.icon-wrapper{width:var(--sd-list-item-icon-wrapper-width, 45px);height:100%;display:flex;align-items:center;justify-content:center}.icon-wrapper .icon{min-height:var(--sd-list-item-icon-size, 24px);min-width:var(--sd-list-item-icon-size, 24px);background-repeat:no-repeat;background-position:center;background-size:cover}';var Us=Object.defineProperty,le=(n,e,i,r)=>{for(var t=void 0,u=n.length-1,a;u>=0;u--)(a=n[u])&&(t=a(e,i,t)||t);return t&&Us(e,i,t),t},ge;const se=(ge=class extends Ge{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[ls`
272
+ `,ss={mainContent:ts,description:is,css:ns,initializer:{content:rs,type:"typescript",initialize:()=>hi(()=>import("./script-drag-and-drop.js"),[],import.meta.url)}},os=Object.freeze(Object.defineProperty({__proto__:null,default:ss},Symbol.toStringTag,{value:"Module"}));const dt=globalThis,di=dt.ShadowRoot&&(dt.ShadyCSS===void 0||dt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fi=Symbol(),Hi=new WeakMap;let Mn=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==fi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(di&&e===void 0){const r=i!==void 0&&i.length===1;r&&(e=Hi.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Hi.set(i,e))}return e}toString(){return this.cssText}};const Nn=n=>new Mn(typeof n=="string"?n:n+"",void 0,fi),ls=(n,...e)=>{const i=n.length===1?n[0]:e.reduce(((r,t,u)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(t)+n[u+1]),n[0]);return new Mn(i,n,fi)},as=(n,e)=>{if(di)n.adoptedStyleSheets=e.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of e){const r=document.createElement("style"),t=dt.litNonce;t!==void 0&&r.setAttribute("nonce",t),r.textContent=i.cssText,n.appendChild(r)}},Fi=di?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const r of e.cssRules)i+=r.cssText;return Nn(i)})(n):n;const{is:cs,defineProperty:us,getOwnPropertyDescriptor:hs,getOwnPropertyNames:ds,getOwnPropertySymbols:fs,getPrototypeOf:ps}=Object,bt=globalThis,Wi=bt.trustedTypes,ms=Wi?Wi.emptyScript:"",gs=bt.reactiveElementPolyfillSupport,We=(n,e)=>n,ft={toAttribute(n,e){switch(e){case Boolean:n=n?ms:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},pi=(n,e)=>!cs(n,e),Gi={attribute:!0,type:String,converter:ft,reflect:!1,useDefault:!1,hasChanged:pi};Symbol.metadata??=Symbol("metadata"),bt.litPropertyMetadata??=new WeakMap;let je=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=Gi){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){const r=Symbol(),t=this.getPropertyDescriptor(e,r,i);t!==void 0&&us(this.prototype,e,t)}}static getPropertyDescriptor(e,i,r){const{get:t,set:u}=hs(this.prototype,e)??{get(){return this[i]},set(a){this[i]=a}};return{get:t,set(a){const p=t?.call(this);u?.call(this,a),this.requestUpdate(e,p,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Gi}static _$Ei(){if(this.hasOwnProperty(We("elementProperties")))return;const e=ps(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(We("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(We("properties"))){const i=this.properties,r=[...ds(i),...fs(i)];for(const t of r)this.createProperty(t,i[t])}const e=this[Symbol.metadata];if(e!==null){const i=litPropertyMetadata.get(e);if(i!==void 0)for(const[r,t]of i)this.elementProperties.set(r,t)}this._$Eh=new Map;for(const[i,r]of this.elementProperties){const t=this._$Eu(i,r);t!==void 0&&this._$Eh.set(t,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const t of r)i.unshift(Fi(t))}else e!==void 0&&i.push(Fi(e));return i}static _$Eu(e,i){const r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,i=this.constructor.elementProperties;for(const r of i.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return as(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,i,r){this._$AK(e,r)}_$ET(e,i){const r=this.constructor.elementProperties.get(e),t=this.constructor._$Eu(e,r);if(t!==void 0&&r.reflect===!0){const u=(r.converter?.toAttribute!==void 0?r.converter:ft).toAttribute(i,r.type);this._$Em=e,u==null?this.removeAttribute(t):this.setAttribute(t,u),this._$Em=null}}_$AK(e,i){const r=this.constructor,t=r._$Eh.get(e);if(t!==void 0&&this._$Em!==t){const u=r.getPropertyOptions(t),a=typeof u.converter=="function"?{fromAttribute:u.converter}:u.converter?.fromAttribute!==void 0?u.converter:ft;this._$Em=t;const p=a.fromAttribute(i,u.type);this[t]=p??this._$Ej?.get(t)??p,this._$Em=null}}requestUpdate(e,i,r){if(e!==void 0){const t=this.constructor,u=this[e];if(r??=t.getPropertyOptions(e),!((r.hasChanged??pi)(u,i)||r.useDefault&&r.reflect&&u===this._$Ej?.get(e)&&!this.hasAttribute(t._$Eu(e,r))))return;this.C(e,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:r,reflect:t,wrapped:u},a){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??i??this[e]),u!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(i=void 0),this._$AL.set(e,i)),t===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,u]of this._$Ep)this[t]=u;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[t,u]of r){const{wrapped:a}=u,p=this[t];a!==!0||this._$AL.has(t)||p===void 0||this.C(t,void 0,u,p)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach((r=>r.hostUpdate?.())),this.update(i)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(i)}willUpdate(e){}_$AE(e){this._$EO?.forEach((i=>i.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((i=>this._$ET(i,this[i]))),this._$EM()}updated(e){}firstUpdated(e){}};je.elementStyles=[],je.shadowRootOptions={mode:"open"},je[We("elementProperties")]=new Map,je[We("finalized")]=new Map,gs?.({ReactiveElement:je}),(bt.reactiveElementVersions??=[]).push("2.1.1");const mi=globalThis,pt=mi.trustedTypes,Zi=pt?pt.createPolicy("lit-html",{createHTML:n=>n}):void 0,Pn="$lit$",_e=`lit$${Math.random().toFixed(9).slice(2)}$`,Tn="?"+_e,bs=`<${Tn}>`,Oe=document,Je=()=>Oe.createComment(""),Ke=n=>n===null||typeof n!="object"&&typeof n!="function",gi=Array.isArray,ys=n=>gi(n)||typeof n?.[Symbol.iterator]=="function",Lt=`[
273
+ \f\r]`,He=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vi=/-->/g,Ji=/>/g,Ce=RegExp(`>|${Lt}(?:([^\\s"'>=/]+)(${Lt}*=${Lt}*(?:[^
274
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ki=/'/g,Xi=/"/g,Ln=/^(?:script|style|textarea|title)$/i,ws=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),lt=ws(1),Re=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Qi=new WeakMap,$e=Oe.createTreeWalker(Oe,129);function In(n,e){if(!gi(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zi!==void 0?Zi.createHTML(e):e}const vs=(n,e)=>{const i=n.length-1,r=[];let t,u=e===2?"<svg>":e===3?"<math>":"",a=He;for(let p=0;p<i;p++){const b=n[p];let h,s,c=-1,o=0;for(;o<b.length&&(a.lastIndex=o,s=a.exec(b),s!==null);)o=a.lastIndex,a===He?s[1]==="!--"?a=Vi:s[1]!==void 0?a=Ji:s[2]!==void 0?(Ln.test(s[2])&&(t=RegExp("</"+s[2],"g")),a=Ce):s[3]!==void 0&&(a=Ce):a===Ce?s[0]===">"?(a=t??He,c=-1):s[1]===void 0?c=-2:(c=a.lastIndex-s[2].length,h=s[1],a=s[3]===void 0?Ce:s[3]==='"'?Xi:Ki):a===Xi||a===Ki?a=Ce:a===Vi||a===Ji?a=He:(a=Ce,t=void 0);const l=a===Ce&&n[p+1].startsWith("/>")?" ":"";u+=a===He?b+bs:c>=0?(r.push(h),b.slice(0,c)+Pn+b.slice(c)+_e+l):b+_e+(c===-2?p:l)}return[In(n,u+(n[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Xe{constructor({strings:e,_$litType$:i},r){let t;this.parts=[];let u=0,a=0;const p=e.length-1,b=this.parts,[h,s]=vs(e,i);if(this.el=Xe.createElement(h,r),$e.currentNode=this.el.content,i===2||i===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(t=$e.nextNode())!==null&&b.length<p;){if(t.nodeType===1){if(t.hasAttributes())for(const c of t.getAttributeNames())if(c.endsWith(Pn)){const o=s[a++],l=t.getAttribute(c).split(_e),f=/([.?@])?(.*)/.exec(o);b.push({type:1,index:u,name:f[2],strings:l,ctor:f[1]==="."?_s:f[1]==="?"?Es:f[1]==="@"?As:yt}),t.removeAttribute(c)}else c.startsWith(_e)&&(b.push({type:6,index:u}),t.removeAttribute(c));if(Ln.test(t.tagName)){const c=t.textContent.split(_e),o=c.length-1;if(o>0){t.textContent=pt?pt.emptyScript:"";for(let l=0;l<o;l++)t.append(c[l],Je()),$e.nextNode(),b.push({type:2,index:++u});t.append(c[o],Je())}}}else if(t.nodeType===8)if(t.data===Tn)b.push({type:2,index:u});else{let c=-1;for(;(c=t.data.indexOf(_e,c+1))!==-1;)b.push({type:7,index:u}),c+=_e.length-1}u++}}static createElement(e,i){const r=Oe.createElement("template");return r.innerHTML=e,r}}function ze(n,e,i=n,r){if(e===Re)return e;let t=r!==void 0?i._$Co?.[r]:i._$Cl;const u=Ke(e)?void 0:e._$litDirective$;return t?.constructor!==u&&(t?._$AO?.(!1),u===void 0?t=void 0:(t=new u(n),t._$AT(n,i,r)),r!==void 0?(i._$Co??=[])[r]=t:i._$Cl=t),t!==void 0&&(e=ze(n,t._$AS(n,e.values),t,r)),e}class xs{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:i},parts:r}=this._$AD,t=(e?.creationScope??Oe).importNode(i,!0);$e.currentNode=t;let u=$e.nextNode(),a=0,p=0,b=r[0];for(;b!==void 0;){if(a===b.index){let h;b.type===2?h=new Qe(u,u.nextSibling,this,e):b.type===1?h=new b.ctor(u,b.name,b.strings,this,e):b.type===6&&(h=new Ss(u,this,e)),this._$AV.push(h),b=r[++p]}a!==b?.index&&(u=$e.nextNode(),a++)}return $e.currentNode=Oe,t}p(e){let i=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}}class Qe{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,t){this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=t,this._$Cv=t?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=ze(this,e,i),Ke(e)?e===K||e==null||e===""?(this._$AH!==K&&this._$AR(),this._$AH=K):e!==this._$AH&&e!==Re&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ys(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==K&&Ke(this._$AH)?this._$AA.nextSibling.data=e:this.T(Oe.createTextNode(e)),this._$AH=e}$(e){const{values:i,_$litType$:r}=e,t=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Xe.createElement(In(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===t)this._$AH.p(i);else{const u=new xs(t,this),a=u.u(this.options);u.p(i),this.T(a),this._$AH=u}}_$AC(e){let i=Qi.get(e.strings);return i===void 0&&Qi.set(e.strings,i=new Xe(e)),i}k(e){gi(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let r,t=0;for(const u of e)t===i.length?i.push(r=new Qe(this.O(Je()),this.O(Je()),this,this.options)):r=i[t],r._$AI(u),t++;t<i.length&&(this._$AR(r&&r._$AB.nextSibling,t),i.length=t)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class yt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,t,u){this.type=1,this._$AH=K,this._$AN=void 0,this.element=e,this.name=i,this._$AM=t,this.options=u,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=K}_$AI(e,i=this,r,t){const u=this.strings;let a=!1;if(u===void 0)e=ze(this,e,i,0),a=!Ke(e)||e!==this._$AH&&e!==Re,a&&(this._$AH=e);else{const p=e;let b,h;for(e=u[0],b=0;b<u.length-1;b++)h=ze(this,p[r+b],i,b),h===Re&&(h=this._$AH[b]),a||=!Ke(h)||h!==this._$AH[b],h===K?e=K:e!==K&&(e+=(h??"")+u[b+1]),this._$AH[b]=h}a&&!t&&this.j(e)}j(e){e===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class _s extends yt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===K?void 0:e}}class Es extends yt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==K)}}class As extends yt{constructor(e,i,r,t,u){super(e,i,r,t,u),this.type=5}_$AI(e,i=this){if((e=ze(this,e,i,0)??K)===Re)return;const r=this._$AH,t=e===K&&r!==K||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,u=e!==K&&(r===K||t);t&&this.element.removeEventListener(this.name,this,r),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class Ss{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){ze(this,e)}}const ks=mi.litHtmlPolyfillSupport;ks?.(Xe,Qe),(mi.litHtmlVersions??=[]).push("3.3.1");const Cs=(n,e,i)=>{const r=i?.renderBefore??e;let t=r._$litPart$;if(t===void 0){const u=i?.renderBefore??null;r._$litPart$=t=new Qe(e.insertBefore(Je(),u),u,void 0,i??{})}return t._$AI(n),t};const bi=globalThis;let Ge=class extends je{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Cs(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Re}};Ge._$litElement$=!0,Ge.finalized=!0,bi.litElementHydrateSupport?.({LitElement:Ge});const $s=bi.litElementPolyfillSupport;$s?.({LitElement:Ge});(bi.litElementVersions??=[]).push("4.2.1");const Os={attribute:!0,type:String,converter:ft,reflect:!1,hasChanged:pi},Rs=(n=Os,e,i)=>{const{kind:r,metadata:t}=i;let u=globalThis.litPropertyMetadata.get(t);if(u===void 0&&globalThis.litPropertyMetadata.set(t,u=new Map),r==="setter"&&((n=Object.create(n)).wrapped=!0),u.set(i.name,n),r==="accessor"){const{name:a}=i;return{set(p){const b=e.get.call(this);e.set.call(this,p),this.requestUpdate(a,b,n)},init(p){return p!==void 0&&this.C(a,void 0,n,p),p}}}if(r==="setter"){const{name:a}=i;return function(p){const b=this[a];e.call(this,p),this.requestUpdate(a,b,n)}}throw Error("Unsupported decorator location: "+r)};function oe(n){return(e,i)=>typeof i=="object"?Rs(n,e,i):((r,t,u)=>{const a=t.hasOwnProperty(u);return t.constructor.createProperty(u,r),a?Object.getOwnPropertyDescriptor(t,u):void 0})(n,e,i)}const yi={ATTRIBUTE:1,CHILD:2},jn=n=>(...e)=>({_$litDirective$:n,values:e});class zn{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,i,r){this._$Ct=e,this._$AM=i,this._$Ci=r}_$AS(e,i){return this.update(e,i)}update(e,i){return this.render(...i)}}class ui extends zn{constructor(e){if(super(e),this.it=K,e.type!==yi.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===K||e==null)return this._t=void 0,this.it=e;if(e===Re)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const i=[e];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}ui.directiveName="unsafeHTML",ui.resultType=1;const Ms=jn(ui);const at=n=>n??K;const Ns=n=>n.strings===void 0;const Ze=(n,e)=>{const i=n._$AN;if(i===void 0)return!1;for(const r of i)r._$AO?.(e,!1),Ze(r,e);return!0},mt=n=>{let e,i;do{if((e=n._$AM)===void 0)break;i=e._$AN,i.delete(n),n=e}while(i?.size===0)},Dn=n=>{for(let e;e=n._$AM;n=e){let i=e._$AN;if(i===void 0)e._$AN=i=new Set;else if(i.has(n))break;i.add(n),Ls(e)}};function Ps(n){this._$AN!==void 0?(mt(this),this._$AM=n,Dn(this)):this._$AM=n}function Ts(n,e=!1,i=0){const r=this._$AH,t=this._$AN;if(t!==void 0&&t.size!==0)if(e)if(Array.isArray(r))for(let u=i;u<r.length;u++)Ze(r[u],!1),mt(r[u]);else r!=null&&(Ze(r,!1),mt(r));else Ze(this,n)}const Ls=n=>{n.type==yi.CHILD&&(n._$AP??=Ts,n._$AQ??=Ps)};class Is extends zn{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,i,r){super._$AT(e,i,r),Dn(this),this.isConnected=e._$AU}_$AO(e,i=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),i&&(Ze(this,e),mt(this))}setValue(e){if(Ns(this._$Ct))this._$Ct._$AI(e,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=e,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}const Yi=n=>n?n.startsWith("url")?n:`url("${n}")`:null,js=(n,e)=>{if(n){const i=new Image;i.addEventListener("load",e),i.src=n,i.complete&&(i.removeEventListener("load",e),window.queueMicrotask(()=>e()))}};class zs extends Is{constructor(e){if(super(e),e.type!==yi.ATTRIBUTE||e.name!=="src"&&e.name!=="style")throw new Error("The `placeholder` directive must be used in the `src` or `style` attributes")}update(e,[i,r]){return this.useCssBackground=e.name=="style",this.render(i,r)}render(e,i){this.loadingToken!=null&&(this.loadingToken.cancelled=!0);const r={cancelled:!1};return this.loadingToken=r,typeof e=="string"?this.preload(e,r):e?.then(t=>{this.preload(t,r)}),this.useCssBackground?Yi(i):i}preload(e,i){e!=null&&!i.cancelled&&js(e,()=>{i.cancelled||this.setValue(this.useCssBackground?Yi(e):e)})}}const Ds=jn(zs),Bs=':host{display:block;contain:strict;height:50px}:host([selected]){background-color:#d3e6fa}:host(:not([selected]):hover),:host(:not([selected])[focused]){background-color:#e7f1fa}@media (forced-colors: active){:host([selected]){outline:4px solid}:host(:not([selected]):hover){outline:4px dotted}:host(:not([selected])[focused]){outline:4px dashed}}:host([enable-line-clamp]) .labels>:only-child{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow-wrap:break-word}.container{display:flex;height:100%;box-sizing:border-box}.container .level-indicator{width:7px;height:100%}.container .level-indicator.level-0{background-color:#a0c3ef}.container .level-indicator.level-1{background-color:#e7c374}.container .level-indicator.level-2{background-color:#bfd596}.container .level-indicator.level-3{background-color:#fd998d}.container .level-indicator.level-4{background-color:#c6e8f5}.container .level-indicator.level-5{background-color:#fde3a4}.container .level-indicator.level-6{background-color:#dcbfe0}.side-content{display:flex;align-items:center;flex-grow:0}.labels{display:flex;flex-direction:column;justify-content:center;flex:1 1 0px;height:100%;line-height:normal;overflow:hidden;padding:var(--sd-list-item-label-content-padding, 0 8px)}.caption,.description{width:100%;font-family:var(--sd-list-item-font-family, "Segoe UI", "Lucida Sans", Arial, sans-serif);font-style:normal;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-user-select:none;user-select:none;text-decoration:var(--sd-list-item-text-decoration, inherit)}.caption em,.description em{font-weight:bolder}.caption{font-size:var(--sd-list-item-caption-font-size, 16px);color:var(--sd-list-item-caption-text-color, #111);font-weight:var(--sd-list-item-caption-font-weight, normal)}.description{font-size:var(--sd-list-item-description-font-size, 13px);color:var(--sd-list-item-description-text-color, #767676);font-weight:var(--sd-list-item-description-font-weight, normal)}.icon-wrapper{width:var(--sd-list-item-icon-wrapper-width, 45px);height:100%;display:flex;align-items:center;justify-content:center}.icon-wrapper .icon{min-height:var(--sd-list-item-icon-size, 24px);min-width:var(--sd-list-item-icon-size, 24px);background-repeat:no-repeat;background-position:center;background-size:cover}';var Us=Object.defineProperty,le=(n,e,i,r)=>{for(var t=void 0,u=n.length-1,a;u>=0;u--)(a=n[u])&&(t=a(e,i,t)||t);return t&&Us(e,i,t),t},ge;const se=(ge=class extends Ge{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[ls`
275
275
  ${Nn(Bs)}
276
276
  `]}render(){return lt`
277
277
  <div class="container">
@@ -301,13 +301,13 @@ lists.forEach((list: HTMLDivElement) => {
301
301
  <div class="${e}" title="${at(r)}">
302
302
  ${this.contentMode==="html"?Ms(i):i}
303
303
  </div>
304
- `:K}updated(e){super.updated(e),e.has("selected")&&this.setAttribute("aria-selected",String(this.selected))}get missingWidthForTexts(){const e=this.enableLineClamp;this.removeAttribute("enable-line-clamp");let i=0;const r=this.shadowRoot.querySelector(".caption");r&&(i+=r.scrollWidth-r.clientWidth);const t=this.shadowRoot.querySelector(".description");return t&&(i=Math.max(i,t.scrollWidth-t.clientWidth)),i>0&&i++,e&&this.setAttribute("enable-line-clamp",""),i}handleIconClick(e){!this.disabled&&!this.dispatchEvent(new PointerEvent("list-item-icon-click",e))&&e.preventDefault()}getLevelIndicators(){return this.level?Array(Number(this.level)).fill(null):[]}},ge.ID="sd-list-item",ge.ensureDefined=()=>{customElements.get(ge.ID)||customElements.define(ge.ID,ge)},ge);le([oe({type:String})],se.prototype,"caption");le([oe({type:String})],se.prototype,"description");le([oe({type:Boolean})],se.prototype,"selected");le([oe({type:String})],se.prototype,"icon");le([oe({type:String})],se.prototype,"iconBackgroundColor");le([oe({type:String})],se.prototype,"iconPlaceholder");le([oe({type:Number})],se.prototype,"level");le([oe()],se.prototype,"contentMode");le([oe({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],se.prototype,"enableLineClamp");le([oe({converter:{fromAttribute:n=>n=="true",toAttribute:n=>n},reflect:!0,attribute:"aria-disabled"})],se.prototype,"disabled");le([oe({type:String,attribute:"icon-attr-aria-label"})],se.prototype,"iconAttrAriaLabel");le([oe({type:String,reflect:!0})],se.prototype,"role");le([oe({type:String,attribute:"caption-attr-title"})],se.prototype,"captionAttrTitle");le([oe({type:String,attribute:"description-attr-title"})],se.prototype,"descriptionAttrTitle");le([oe({type:String,attribute:"icon-attr-title"})],se.prototype,"iconAttrTitle");let Bn=se;const No=(n,e)=>{const i=document.createElement(Bn.ID);if(n){if(i.caption=n.caption,i.description=n.description,i.icon=n.icon,i.iconBackgroundColor=n.iconBackgroundColor,i.iconPlaceholder=n.iconPlaceholder,i.level=n.level,i.disabled=n.disabled,n.contentMode&&(i.contentMode=n.contentMode),n.leftContentGenerator){const r=n.leftContentGenerator(n,i);r&&(r.slot="left-content",i.appendChild(r))}if(n.rightContentGenerator){const r=n.rightContentGenerator(n,i);r&&(r.slot="right-content",i.appendChild(r))}}return i};Bn.ensureDefined();function Un(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Hs(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var i=function r(){var t=!1;try{t=this instanceof r}catch{}return t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var t=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(i,r,t.get?t:{enumerable:!0,get:function(){return n[r]}})}),i}var ct={exports:{}},en;function qs(){if(en)return ct.exports;en=1;var n=String,e=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};return ct.exports=e(),ct.exports.createColors=e,ct.exports}const Fs={},Ws=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),de=Hs(Ws);var It,tn;function wi(){if(tn)return It;tn=1;let n=qs(),e=de;class i extends Error{constructor(t,u,a,p,b,h){super(t),this.name="CssSyntaxError",this.reason=t,b&&(this.file=b),p&&(this.source=p),h&&(this.plugin=h),typeof u<"u"&&typeof a<"u"&&(typeof u=="number"?(this.line=u,this.column=a):(this.line=u.line,this.column=u.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let u=this.source;t==null&&(t=n.isColorSupported);let a=l=>l,p=l=>l,b=l=>l;if(t){let{bold:l,gray:f,red:m}=n.createColors(!0);p=g=>l(m(g)),a=g=>f(g),e&&(b=g=>e(g))}let h=u.split(/\r?\n/),s=Math.max(this.line-3,0),c=Math.min(this.line+2,h.length),o=String(c).length;return h.slice(s,c).map((l,f)=>{let m=s+1+f,g=" "+(" "+m).slice(-o)+" | ";if(m===this.line){if(l.length>160){let E=20,v=Math.max(0,this.column-E),w=Math.max(this.column+E,this.endColumn+E),y=l.slice(v,w),A=a(g.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,E-1)).replace(/[^\t]/g," ");return p(">")+a(g)+b(y)+`
304
+ `:K}updated(e){super.updated(e),e.has("selected")&&this.setAttribute("aria-selected",String(this.selected))}get missingWidthForTexts(){const e=this.enableLineClamp;this.removeAttribute("enable-line-clamp");let i=0;const r=this.shadowRoot.querySelector(".caption");r&&(i+=r.scrollWidth-r.clientWidth);const t=this.shadowRoot.querySelector(".description");return t&&(i=Math.max(i,t.scrollWidth-t.clientWidth)),i>0&&i++,e&&this.setAttribute("enable-line-clamp",""),i}handleIconClick(e){!this.disabled&&!this.dispatchEvent(new PointerEvent("list-item-icon-click",e))&&e.preventDefault()}getLevelIndicators(){return this.level?Array(Number(this.level)).fill(null):[]}},ge.ID="sd-list-item",ge.ensureDefined=()=>{customElements.get(ge.ID)||customElements.define(ge.ID,ge)},ge);le([oe({type:String})],se.prototype,"caption");le([oe({type:String})],se.prototype,"description");le([oe({type:Boolean})],se.prototype,"selected");le([oe({type:String})],se.prototype,"icon");le([oe({type:String})],se.prototype,"iconBackgroundColor");le([oe({type:String})],se.prototype,"iconPlaceholder");le([oe({type:Number})],se.prototype,"level");le([oe()],se.prototype,"contentMode");le([oe({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],se.prototype,"enableLineClamp");le([oe({converter:{fromAttribute:n=>n=="true",toAttribute:n=>n},reflect:!0,attribute:"aria-disabled"})],se.prototype,"disabled");le([oe({type:String,attribute:"icon-attr-aria-label"})],se.prototype,"iconAttrAriaLabel");le([oe({type:String,reflect:!0})],se.prototype,"role");le([oe({type:String,attribute:"caption-attr-title"})],se.prototype,"captionAttrTitle");le([oe({type:String,attribute:"description-attr-title"})],se.prototype,"descriptionAttrTitle");le([oe({type:String,attribute:"icon-attr-title"})],se.prototype,"iconAttrTitle");let Bn=se;const No=(n,e)=>{const i=document.createElement(Bn.ID);if(n){if(i.caption=n.caption,i.description=n.description,i.icon=n.icon,i.iconBackgroundColor=n.iconBackgroundColor,i.iconPlaceholder=n.iconPlaceholder,i.level=n.level,i.disabled=n.disabled,n.contentMode&&(i.contentMode=n.contentMode),n.leftContentGenerator){const r=n.leftContentGenerator(n,i);r&&(r.slot="left-content",i.appendChild(r))}if(n.rightContentGenerator){const r=n.rightContentGenerator(n,i);r&&(r.slot="right-content",i.appendChild(r))}}return i};Bn.ensureDefined();function Un(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function qs(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var i=function r(){var t=!1;try{t=this instanceof r}catch{}return t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var t=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(i,r,t.get?t:{enumerable:!0,get:function(){return n[r]}})}),i}var ct={exports:{}},en;function Hs(){if(en)return ct.exports;en=1;var n=String,e=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};return ct.exports=e(),ct.exports.createColors=e,ct.exports}const Fs={},Ws=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),de=qs(Ws);var It,tn;function wi(){if(tn)return It;tn=1;let n=Hs(),e=de;class i extends Error{constructor(t,u,a,p,b,h){super(t),this.name="CssSyntaxError",this.reason=t,b&&(this.file=b),p&&(this.source=p),h&&(this.plugin=h),typeof u<"u"&&typeof a<"u"&&(typeof u=="number"?(this.line=u,this.column=a):(this.line=u.line,this.column=u.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let u=this.source;t==null&&(t=n.isColorSupported);let a=l=>l,p=l=>l,b=l=>l;if(t){let{bold:l,gray:f,red:m}=n.createColors(!0);p=g=>l(m(g)),a=g=>f(g),e&&(b=g=>e(g))}let h=u.split(/\r?\n/),s=Math.max(this.line-3,0),c=Math.min(this.line+2,h.length),o=String(c).length;return h.slice(s,c).map((l,f)=>{let m=s+1+f,g=" "+(" "+m).slice(-o)+" | ";if(m===this.line){if(l.length>160){let E=20,v=Math.max(0,this.column-E),w=Math.max(this.column+E,this.endColumn+E),y=l.slice(v,w),A=a(g.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,E-1)).replace(/[^\t]/g," ");return p(">")+a(g)+b(y)+`
305
305
  `+A+p("^")}let _=a(g.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return p(">")+a(g)+b(l)+`
306
306
  `+_+p("^")}return" "+a(g)+b(l)}).join(`
307
307
  `)}toString(){let t=this.showSourceCode();return t&&(t=`
308
308
 
309
309
  `+t+`
310
- `),this.name+": "+this.message+t}}return It=i,i.default=i,It}var jt,nn;function Hn(){if(nn)return jt;nn=1;const n={after:`
310
+ `),this.name+": "+this.message+t}}return It=i,i.default=i,It}var jt,nn;function qn(){if(nn)return jt;nn=1;const n={after:`
311
311
  `,beforeClose:`
312
312
  `,beforeComment:`
313
313
  `,beforeDecl:`
@@ -318,19 +318,19 @@ lists.forEach((list: HTMLDivElement) => {
318
318
  `)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(u,null,"beforeDecl"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeDecl(t,u){let a;return t.walkDecls(p=>{if(typeof p.raws.before<"u")return a=p.raws.before,a.includes(`
319
319
  `)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(u,null,"beforeRule"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(t){let u;return t.walk(a=>{if(a.type!=="decl"&&(u=a.raws.between,typeof u<"u"))return!1}),u}rawBeforeRule(t){let u;return t.walk(a=>{if(a.nodes&&(a.parent!==t||t.first!==a)&&typeof a.raws.before<"u")return u=a.raws.before,u.includes(`
320
320
  `)&&(u=u.replace(/[^\n]+$/,"")),!1}),u&&(u=u.replace(/\S/g,"")),u}rawColon(t){let u;return t.walkDecls(a=>{if(typeof a.raws.between<"u")return u=a.raws.between.replace(/[^\s:]/g,""),!1}),u}rawEmptyBody(t){let u;return t.walk(a=>{if(a.nodes&&a.nodes.length===0&&(u=a.raws.after,typeof u<"u"))return!1}),u}rawIndent(t){if(t.raws.indent)return t.raws.indent;let u;return t.walk(a=>{let p=a.parent;if(p&&p!==t&&p.parent&&p.parent===t&&typeof a.raws.before<"u"){let b=a.raws.before.split(`
321
- `);return u=b[b.length-1],u=u.replace(/\S/g,""),!1}}),u}rawSemicolon(t){let u;return t.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(u=a.raws.semicolon,typeof u<"u"))return!1}),u}rawValue(t,u){let a=t[u],p=t.raws[u];return p&&p.value===a?p.raw:a}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,u){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,u)}}return jt=i,i.default=i,jt}var zt,rn;function wt(){if(rn)return zt;rn=1;let n=Hn();function e(i,r){new n(r).stringify(i)}return zt=e,e.default=e,zt}var ut={},sn;function vi(){return sn||(sn=1,ut.isClean=Symbol("isClean"),ut.my=Symbol("my")),ut}var Dt,on;function vt(){if(on)return Dt;on=1;let n=wi(),e=Hn(),i=wt(),{isClean:r,my:t}=vi();function u(b,h){let s=new b.constructor;for(let c in b){if(!Object.prototype.hasOwnProperty.call(b,c)||c==="proxyCache")continue;let o=b[c],l=typeof o;c==="parent"&&l==="object"?h&&(s[c]=h):c==="source"?s[c]=o:Array.isArray(o)?s[c]=o.map(f=>u(f,s)):(l==="object"&&o!==null&&(o=u(o)),s[c]=o)}return s}function a(b,h){if(h&&typeof h.offset<"u")return h.offset;let s=1,c=1,o=0;for(let l=0;l<b.length;l++){if(c===h.line&&s===h.column){o=l;break}b[l]===`
321
+ `);return u=b[b.length-1],u=u.replace(/\S/g,""),!1}}),u}rawSemicolon(t){let u;return t.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(u=a.raws.semicolon,typeof u<"u"))return!1}),u}rawValue(t,u){let a=t[u],p=t.raws[u];return p&&p.value===a?p.raw:a}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,u){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,u)}}return jt=i,i.default=i,jt}var zt,rn;function wt(){if(rn)return zt;rn=1;let n=qn();function e(i,r){new n(r).stringify(i)}return zt=e,e.default=e,zt}var ut={},sn;function vi(){return sn||(sn=1,ut.isClean=Symbol("isClean"),ut.my=Symbol("my")),ut}var Dt,on;function vt(){if(on)return Dt;on=1;let n=wi(),e=qn(),i=wt(),{isClean:r,my:t}=vi();function u(b,h){let s=new b.constructor;for(let c in b){if(!Object.prototype.hasOwnProperty.call(b,c)||c==="proxyCache")continue;let o=b[c],l=typeof o;c==="parent"&&l==="object"?h&&(s[c]=h):c==="source"?s[c]=o:Array.isArray(o)?s[c]=o.map(f=>u(f,s)):(l==="object"&&o!==null&&(o=u(o)),s[c]=o)}return s}function a(b,h){if(h&&typeof h.offset<"u")return h.offset;let s=1,c=1,o=0;for(let l=0;l<b.length;l++){if(c===h.line&&s===h.column){o=l;break}b[l]===`
322
322
  `?(s=1,c+=1):s+=1}return o}class p{get proxyOf(){return this}constructor(h={}){this.raws={},this[r]=!1,this[t]=!0;for(let s in h)if(s==="nodes"){this.nodes=[];for(let c of h[s])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[s]=h[s]}addToError(h){if(h.postcssNode=this,h.stack&&this.source&&/\n\s{4}at /.test(h.stack)){let s=this.source;h.stack=h.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return h}after(h){return this.parent.insertAfter(this,h),this}assign(h={}){for(let s in h)this[s]=h[s];return this}before(h){return this.parent.insertBefore(this,h),this}cleanRaws(h){delete this.raws.before,delete this.raws.after,h||delete this.raws.between}clone(h={}){let s=u(this);for(let c in h)s[c]=h[c];return s}cloneAfter(h={}){let s=this.clone(h);return this.parent.insertAfter(this,s),s}cloneBefore(h={}){let s=this.clone(h);return this.parent.insertBefore(this,s),s}error(h,s={}){if(this.source){let{end:c,start:o}=this.rangeBy(s);return this.source.input.error(h,{column:o.column,line:o.line},{column:c.column,line:c.line},s)}return new n(h)}getProxyProcessor(){return{get(h,s){return s==="proxyOf"?h:s==="root"?()=>h.root().toProxy():h[s]},set(h,s,c){return h[s]===c||(h[s]=c,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&h.markDirty()),!0}}}markClean(){this[r]=!0}markDirty(){if(this[r]){this[r]=!1;let h=this;for(;h=h.parent;)h[r]=!1}}next(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h+1]}positionBy(h={}){let s=this.source.start;if(h.index)s=this.positionInside(h.index);else if(h.word){let c="document"in this.source.input?this.source.input.document:this.source.input.css,l=c.slice(a(c,this.source.start),a(c,this.source.end)).indexOf(h.word);l!==-1&&(s=this.positionInside(l))}return s}positionInside(h){let s=this.source.start.column,c=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,l=a(o,this.source.start),f=l+h;for(let m=l;m<f;m++)o[m]===`
323
- `?(s=1,c+=1):s+=1;return{column:s,line:c,offset:f}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h={}){let s="document"in this.source.input?this.source.input.document:this.source.input.css,c={column:this.source.start.column,line:this.source.start.line,offset:a(s,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:a(s,this.source.end)+1}:{column:c.column+1,line:c.line,offset:c.offset+1};if(h.word){let f=s.slice(a(s,this.source.start),a(s,this.source.end)).indexOf(h.word);f!==-1&&(c=this.positionInside(f),o=this.positionInside(f+h.word.length))}else h.start?c={column:h.start.column,line:h.start.line,offset:a(s,h.start)}:h.index&&(c=this.positionInside(h.index)),h.end?o={column:h.end.column,line:h.end.line,offset:a(s,h.end)}:typeof h.endIndex=="number"?o=this.positionInside(h.endIndex):h.index&&(o=this.positionInside(h.index+1));return(o.line<c.line||o.line===c.line&&o.column<=c.column)&&(o={column:c.column+1,line:c.line,offset:c.offset+1}),{end:o,start:c}}raw(h,s){return new e().raw(this,h,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let s=this,c=!1;for(let o of h)o===this?c=!0:c?(this.parent.insertAfter(s,o),s=o):this.parent.insertBefore(s,o);c||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,s){let c={},o=s==null;s=s||new Map;let l=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let m=this[f];if(Array.isArray(m))c[f]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,s):g);else if(typeof m=="object"&&m.toJSON)c[f]=m.toJSON(null,s);else if(f==="source"){if(m==null)continue;let g=s.get(m.input);g==null&&(g=l,s.set(m.input,l),l++),c[f]={end:m.end,inputId:g,start:m.start}}else c[f]=m}return o&&(c.inputs=[...s.keys()].map(f=>f.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=i){h.stringify&&(h=h.stringify);let s="";return h(this,c=>{s+=c}),s}warn(h,s,c={}){let o={node:this};for(let l in c)o[l]=c[l];return h.warn(s,o)}}return Dt=p,p.default=p,Dt}var Bt,ln;function xt(){if(ln)return Bt;ln=1;let n=vt();class e extends n{constructor(r){super(r),this.type="comment"}}return Bt=e,e.default=e,Bt}var Ut,an;function _t(){if(an)return Ut;an=1;let n=vt();class e extends n{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(r){r&&typeof r.value<"u"&&typeof r.value!="string"&&(r={...r,value:String(r.value)}),super(r),this.type="decl"}}return Ut=e,e.default=e,Ut}var Ht,cn;function Me(){if(cn)return Ht;cn=1;let n=xt(),e=_t(),i=vt(),{isClean:r,my:t}=vi(),u,a,p,b;function h(o){return o.map(l=>(l.nodes&&(l.nodes=h(l.nodes)),delete l.source,l))}function s(o){if(o[r]=!1,o.proxyOf.nodes)for(let l of o.proxyOf.nodes)s(l)}class c extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...l){for(let f of l){let m=this.normalize(f,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let f of this.nodes)f.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let f=this.getIterator(),m,g;for(;this.indexes[f]<this.proxyOf.nodes.length&&(m=this.indexes[f],g=l(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[f]+=1;return delete this.indexes[f],g}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,f){return f==="proxyOf"?l:l[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...m)=>l[f](...m.map(g=>typeof g=="function"?(_,E)=>g(_.toProxy(),E):g)):f==="every"||f==="some"?m=>l[f]((g,..._)=>m(g.toProxy(),..._)):f==="root"?()=>l.root().toProxy():f==="nodes"?l.nodes.map(m=>m.toProxy()):f==="first"||f==="last"?l[f].toProxy():l[f]:l[f]},set(l,f,m){return l[f]===m||(l[f]=m,(f==="name"||f==="params"||f==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,f){let m=this.index(l),g=this.normalize(f,this.proxyOf.nodes[m]).reverse();m=this.index(l);for(let E of g)this.proxyOf.nodes.splice(m+1,0,E);let _;for(let E in this.indexes)_=this.indexes[E],m<_&&(this.indexes[E]=_+g.length);return this.markDirty(),this}insertBefore(l,f){let m=this.index(l),g=m===0?"prepend":!1,_=this.normalize(f,this.proxyOf.nodes[m],g).reverse();m=this.index(l);for(let v of _)this.proxyOf.nodes.splice(m,0,v);let E;for(let v in this.indexes)E=this.indexes[v],m<=E&&(this.indexes[v]=E+_.length);return this.markDirty(),this}normalize(l,f){if(typeof l=="string")l=h(a(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new e(l)]}else if(l.selector||l.selectors)l=[new b(l)];else if(l.name)l=[new u(l)];else if(l.text)l=[new n(l)];else throw new Error("Unknown node type in node creation");return l.map(g=>(g[t]||c.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[r]&&s(g),g.raws||(g.raws={}),typeof g.raws.before>"u"&&f&&typeof f.raws.before<"u"&&(g.raws.before=f.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...l){l=l.reverse();for(let f of l){let m=this.normalize(f,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let f;for(let m in this.indexes)f=this.indexes[m],f>=l&&(this.indexes[m]=f-1);return this.markDirty(),this}replaceValues(l,f,m){return m||(m=f,f={}),this.walkDecls(g=>{f.props&&!f.props.includes(g.prop)||f.fast&&!g.value.includes(f.fast)||(g.value=g.value.replace(l,m))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((f,m)=>{let g;try{g=l(f,m)}catch(_){throw f.addToError(_)}return g!==!1&&f.walk&&(g=f.walk(l)),g})}walkAtRules(l,f){return f?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&l.test(m.name))return f(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===l)return f(m,g)}):(f=l,this.walk((m,g)=>{if(m.type==="atrule")return f(m,g)}))}walkComments(l){return this.walk((f,m)=>{if(f.type==="comment")return l(f,m)})}walkDecls(l,f){return f?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&l.test(m.prop))return f(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===l)return f(m,g)}):(f=l,this.walk((m,g)=>{if(m.type==="decl")return f(m,g)}))}walkRules(l,f){return f?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&l.test(m.selector))return f(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===l)return f(m,g)}):(f=l,this.walk((m,g)=>{if(m.type==="rule")return f(m,g)}))}}return c.registerParse=o=>{a=o},c.registerRule=o=>{b=o},c.registerAtRule=o=>{u=o},c.registerRoot=o=>{p=o},Ht=c,c.default=c,c.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,u.prototype):o.type==="rule"?Object.setPrototypeOf(o,b.prototype):o.type==="decl"?Object.setPrototypeOf(o,e.prototype):o.type==="comment"?Object.setPrototypeOf(o,n.prototype):o.type==="root"&&Object.setPrototypeOf(o,p.prototype),o[t]=!0,o.nodes&&o.nodes.forEach(l=>{c.rebuild(l)})},Ht}var qt,un;function xi(){if(un)return qt;un=1;let n=Me();class e extends n{constructor(r){super(r),this.type="atrule"}append(...r){return this.proxyOf.nodes||(this.nodes=[]),super.append(...r)}prepend(...r){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...r)}}return qt=e,e.default=e,n.registerAtRule(e),qt}var Ft,hn;function _i(){if(hn)return Ft;hn=1;let n=Me(),e,i;class r extends n{constructor(u){super({type:"document",...u}),this.nodes||(this.nodes=[])}toResult(u={}){return new e(new i,this,u).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=t=>{i=t},Ft=r,r.default=r,Ft}var Wt,dn;function Gs(){if(dn)return Wt;dn=1;let n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Wt={nanoid:(r=21)=>{let t="",u=r|0;for(;u--;)t+=n[Math.random()*64|0];return t},customAlphabet:(r,t=21)=>(u=t)=>{let a="",p=u|0;for(;p--;)a+=r[Math.random()*r.length|0];return a}},Wt}var Gt,fn;function qn(){if(fn)return Gt;fn=1;let{existsSync:n,readFileSync:e}=de,{dirname:i,join:r}=de,{SourceMapConsumer:t,SourceMapGenerator:u}=de;function a(b){return Buffer?Buffer.from(b,"base64").toString():window.atob(b)}class p{constructor(h,s){if(s.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let c=s.map?s.map.prev:void 0,o=this.loadMap(s.from,c);!this.mapFile&&s.from&&(this.mapFile=s.from),this.mapFile&&(this.root=i(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new t(this.text)),this.consumerCache}decodeInline(h){let s=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/,f=h.match(o)||h.match(l);if(f)return decodeURIComponent(h.substr(f[0].length));let m=h.match(s)||h.match(c);if(m)return a(h.substr(m[0].length));let g=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let s=h.match(/\/\*\s*# sourceMappingURL=/g);if(!s)return;let c=h.lastIndexOf(s.pop()),o=h.indexOf("*/",c);c>-1&&o>-1&&(this.annotation=this.getAnnotationURL(h.substring(c,o)))}loadFile(h){if(this.root=i(h),n(h))return this.mapFile=h,e(h,"utf-8").toString().trim()}loadMap(h,s){if(s===!1)return!1;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let c=s(h);if(c){let o=this.loadFile(c);if(!o)throw new Error("Unable to load previous source map: "+c.toString());return o}}else{if(s instanceof t)return u.fromSourceMap(s).toString();if(s instanceof u)return s.toString();if(this.isMap(s))return JSON.stringify(s);throw new Error("Unsupported previous source map format: "+s.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return h&&(c=r(i(h),c)),this.loadFile(c)}}}startWith(h,s){return h?h.substr(0,s.length)===s:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Gt=p,p.default=p,Gt}var Zt,pn;function Et(){if(pn)return Zt;pn=1;let{nanoid:n}=Gs(),{isAbsolute:e,resolve:i}=de,{SourceMapConsumer:r,SourceMapGenerator:t}=de,{fileURLToPath:u,pathToFileURL:a}=de,p=wi(),b=qn(),h=de,s=Symbol("lineToIndexCache"),c=!!(r&&t),o=!!(i&&e);function l(m){if(m[s])return m[s];let g=m.css.split(`
324
- `),_=new Array(g.length),E=0;for(let v=0,w=g.length;v<w;v++)_[v]=E,E+=g[v].length+1;return m[s]=_,_}class f{get from(){return this.file||this.id}constructor(g,_={}){if(g===null||typeof g>"u"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,_.document&&(this.document=_.document.toString()),_.from&&(!o||/^\w+:\/\//.test(_.from)||e(_.from)?this.file=_.from:this.file=i(_.from)),o&&c){let E=new b(this.css,_);if(E.text){this.map=E;let v=E.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+n(6)+">"),this.map&&(this.map.file=this.from)}error(g,_,E,v={}){let w,y,A,$,L;if(_&&typeof _=="object"){let P=_,J=E;if(typeof P.offset=="number"){$=P.offset;let q=this.fromOffset($);_=q.line,E=q.col}else _=P.line,E=P.column,$=this.fromLineAndColumn(_,E);if(typeof J.offset=="number"){A=J.offset;let q=this.fromOffset(A);y=q.line,w=q.col}else y=J.line,w=J.column,A=this.fromLineAndColumn(J.line,J.column)}else if(E)$=this.fromLineAndColumn(_,E);else{$=_;let P=this.fromOffset($);_=P.line,E=P.col}let B=this.origin(_,E,y,w);return B?L=new p(g,B.endLine===void 0?B.line:{column:B.column,line:B.line},B.endLine===void 0?B.column:{column:B.endColumn,line:B.endLine},B.source,B.file,v.plugin):L=new p(g,y===void 0?_:{column:E,line:_},y===void 0?E:{column:w,line:y},this.css,this.file,v.plugin),L.input={column:E,endColumn:w,endLine:y,endOffset:A,line:_,offset:$,source:this.css},this.file&&(a&&(L.input.url=a(this.file).toString()),L.input.file=this.file),L}fromLineAndColumn(g,_){return l(this)[g-1]+_-1}fromOffset(g){let _=l(this),E=_[_.length-1],v=0;if(g>=E)v=_.length-1;else{let w=_.length-2,y;for(;v<w;)if(y=v+(w-v>>1),g<_[y])w=y-1;else if(g>=_[y+1])v=y+1;else{v=y;break}}return{col:g-_[v]+1,line:v+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:i(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,_,E,v){if(!this.map)return!1;let w=this.map.consumer(),y=w.originalPositionFor({column:_,line:g});if(!y.source)return!1;let A;typeof E=="number"&&(A=w.originalPositionFor({column:v,line:E}));let $;e(y.source)?$=a(y.source):$=new URL(y.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let L={column:y.column,endColumn:A&&A.column,endLine:A&&A.line,line:y.line,url:$.toString()};if($.protocol==="file:")if(u)L.file=u($);else throw new Error("file: protocol is not available in this PostCSS build");let B=w.sourceContentFor(y.source);return B&&(L.source=B),L}toJSON(){let g={};for(let _ of["hasBOM","css","file","id"])this[_]!=null&&(g[_]=this[_]);return this.map&&(g.map={...this.map},g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Zt=f,f.default=f,h&&h.registerInput&&h.registerInput(f),Zt}var Vt,mn;function Ye(){if(mn)return Vt;mn=1;let n=Me(),e,i;class r extends n{constructor(u){super(u),this.type="root",this.nodes||(this.nodes=[])}normalize(u,a,p){let b=super.normalize(u);if(a){if(p==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let h of b)h.raws.before=a.raws.before}return b}removeChild(u,a){let p=this.index(u);return!a&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(u)}toResult(u={}){return new e(new i,this,u).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=t=>{i=t},Vt=r,r.default=r,n.registerRoot(r),Vt}var Jt,gn;function Fn(){if(gn)return Jt;gn=1;let n={comma(e){return n.split(e,[","],!0)},space(e){let i=[" ",`
325
- `," "];return n.split(e,i)},split(e,i,r){let t=[],u="",a=!1,p=0,b=!1,h="",s=!1;for(let c of e)s?s=!1:c==="\\"?s=!0:b?c===h&&(b=!1):c==='"'||c==="'"?(b=!0,h=c):c==="("?p+=1:c===")"?p>0&&(p-=1):p===0&&i.includes(c)&&(a=!0),a?(u!==""&&t.push(u.trim()),u="",a=!1):u+=c;return(r||u!=="")&&t.push(u.trim()),t}};return Jt=n,n.default=n,Jt}var Kt,bn;function Ei(){if(bn)return Kt;bn=1;let n=Me(),e=Fn();class i extends n{get selectors(){return e.comma(this.selector)}set selectors(t){let u=this.selector?this.selector.match(/,\s*/):null,a=u?u[0]:","+this.raw("between","beforeOpen");this.selector=t.join(a)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}}return Kt=i,i.default=i,n.registerRule(i),Kt}var Xt,yn;function Zs(){if(yn)return Xt;yn=1;let n=xi(),e=xt(),i=_t(),r=Et(),t=qn(),u=Ye(),a=Ei();function p(b,h){if(Array.isArray(b))return b.map(o=>p(o));let{inputs:s,...c}=b;if(s){h=[];for(let o of s){let l={...o,__proto__:r.prototype};l.map&&(l.map={...l.map,__proto__:t.prototype}),h.push(l)}}if(c.nodes&&(c.nodes=b.nodes.map(o=>p(o,h))),c.source){let{inputId:o,...l}=c.source;c.source=l,o!=null&&(c.source.input=h[o])}if(c.type==="root")return new u(c);if(c.type==="decl")return new i(c);if(c.type==="rule")return new a(c);if(c.type==="comment")return new e(c);if(c.type==="atrule")return new n(c);throw new Error("Unknown node type: "+b.type)}return Xt=p,p.default=p,Xt}var Qt,wn;function Wn(){if(wn)return Qt;wn=1;let{dirname:n,relative:e,resolve:i,sep:r}=de,{SourceMapConsumer:t,SourceMapGenerator:u}=de,{pathToFileURL:a}=de,p=Et(),b=!!(t&&u),h=!!(n&&i&&e&&r);class s{constructor(o,l,f,m){this.stringify=o,this.mapOpts=f.map||{},this.root=l,this.opts=f,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let o;this.isInline()?o="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?o=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?o=this.mapOpts.annotation(this.opts.to,this.root):o=this.outputFile()+".map";let l=`
323
+ `?(s=1,c+=1):s+=1;return{column:s,line:c,offset:f}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h={}){let s="document"in this.source.input?this.source.input.document:this.source.input.css,c={column:this.source.start.column,line:this.source.start.line,offset:a(s,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:a(s,this.source.end)+1}:{column:c.column+1,line:c.line,offset:c.offset+1};if(h.word){let f=s.slice(a(s,this.source.start),a(s,this.source.end)).indexOf(h.word);f!==-1&&(c=this.positionInside(f),o=this.positionInside(f+h.word.length))}else h.start?c={column:h.start.column,line:h.start.line,offset:a(s,h.start)}:h.index&&(c=this.positionInside(h.index)),h.end?o={column:h.end.column,line:h.end.line,offset:a(s,h.end)}:typeof h.endIndex=="number"?o=this.positionInside(h.endIndex):h.index&&(o=this.positionInside(h.index+1));return(o.line<c.line||o.line===c.line&&o.column<=c.column)&&(o={column:c.column+1,line:c.line,offset:c.offset+1}),{end:o,start:c}}raw(h,s){return new e().raw(this,h,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let s=this,c=!1;for(let o of h)o===this?c=!0:c?(this.parent.insertAfter(s,o),s=o):this.parent.insertBefore(s,o);c||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,s){let c={},o=s==null;s=s||new Map;let l=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let m=this[f];if(Array.isArray(m))c[f]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,s):g);else if(typeof m=="object"&&m.toJSON)c[f]=m.toJSON(null,s);else if(f==="source"){if(m==null)continue;let g=s.get(m.input);g==null&&(g=l,s.set(m.input,l),l++),c[f]={end:m.end,inputId:g,start:m.start}}else c[f]=m}return o&&(c.inputs=[...s.keys()].map(f=>f.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=i){h.stringify&&(h=h.stringify);let s="";return h(this,c=>{s+=c}),s}warn(h,s,c={}){let o={node:this};for(let l in c)o[l]=c[l];return h.warn(s,o)}}return Dt=p,p.default=p,Dt}var Bt,ln;function xt(){if(ln)return Bt;ln=1;let n=vt();class e extends n{constructor(r){super(r),this.type="comment"}}return Bt=e,e.default=e,Bt}var Ut,an;function _t(){if(an)return Ut;an=1;let n=vt();class e extends n{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(r){r&&typeof r.value<"u"&&typeof r.value!="string"&&(r={...r,value:String(r.value)}),super(r),this.type="decl"}}return Ut=e,e.default=e,Ut}var qt,cn;function Me(){if(cn)return qt;cn=1;let n=xt(),e=_t(),i=vt(),{isClean:r,my:t}=vi(),u,a,p,b;function h(o){return o.map(l=>(l.nodes&&(l.nodes=h(l.nodes)),delete l.source,l))}function s(o){if(o[r]=!1,o.proxyOf.nodes)for(let l of o.proxyOf.nodes)s(l)}class c extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...l){for(let f of l){let m=this.normalize(f,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let f of this.nodes)f.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let f=this.getIterator(),m,g;for(;this.indexes[f]<this.proxyOf.nodes.length&&(m=this.indexes[f],g=l(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[f]+=1;return delete this.indexes[f],g}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,f){return f==="proxyOf"?l:l[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...m)=>l[f](...m.map(g=>typeof g=="function"?(_,E)=>g(_.toProxy(),E):g)):f==="every"||f==="some"?m=>l[f]((g,..._)=>m(g.toProxy(),..._)):f==="root"?()=>l.root().toProxy():f==="nodes"?l.nodes.map(m=>m.toProxy()):f==="first"||f==="last"?l[f].toProxy():l[f]:l[f]},set(l,f,m){return l[f]===m||(l[f]=m,(f==="name"||f==="params"||f==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,f){let m=this.index(l),g=this.normalize(f,this.proxyOf.nodes[m]).reverse();m=this.index(l);for(let E of g)this.proxyOf.nodes.splice(m+1,0,E);let _;for(let E in this.indexes)_=this.indexes[E],m<_&&(this.indexes[E]=_+g.length);return this.markDirty(),this}insertBefore(l,f){let m=this.index(l),g=m===0?"prepend":!1,_=this.normalize(f,this.proxyOf.nodes[m],g).reverse();m=this.index(l);for(let v of _)this.proxyOf.nodes.splice(m,0,v);let E;for(let v in this.indexes)E=this.indexes[v],m<=E&&(this.indexes[v]=E+_.length);return this.markDirty(),this}normalize(l,f){if(typeof l=="string")l=h(a(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new e(l)]}else if(l.selector||l.selectors)l=[new b(l)];else if(l.name)l=[new u(l)];else if(l.text)l=[new n(l)];else throw new Error("Unknown node type in node creation");return l.map(g=>(g[t]||c.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[r]&&s(g),g.raws||(g.raws={}),typeof g.raws.before>"u"&&f&&typeof f.raws.before<"u"&&(g.raws.before=f.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...l){l=l.reverse();for(let f of l){let m=this.normalize(f,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let f;for(let m in this.indexes)f=this.indexes[m],f>=l&&(this.indexes[m]=f-1);return this.markDirty(),this}replaceValues(l,f,m){return m||(m=f,f={}),this.walkDecls(g=>{f.props&&!f.props.includes(g.prop)||f.fast&&!g.value.includes(f.fast)||(g.value=g.value.replace(l,m))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((f,m)=>{let g;try{g=l(f,m)}catch(_){throw f.addToError(_)}return g!==!1&&f.walk&&(g=f.walk(l)),g})}walkAtRules(l,f){return f?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&l.test(m.name))return f(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===l)return f(m,g)}):(f=l,this.walk((m,g)=>{if(m.type==="atrule")return f(m,g)}))}walkComments(l){return this.walk((f,m)=>{if(f.type==="comment")return l(f,m)})}walkDecls(l,f){return f?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&l.test(m.prop))return f(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===l)return f(m,g)}):(f=l,this.walk((m,g)=>{if(m.type==="decl")return f(m,g)}))}walkRules(l,f){return f?l instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&l.test(m.selector))return f(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===l)return f(m,g)}):(f=l,this.walk((m,g)=>{if(m.type==="rule")return f(m,g)}))}}return c.registerParse=o=>{a=o},c.registerRule=o=>{b=o},c.registerAtRule=o=>{u=o},c.registerRoot=o=>{p=o},qt=c,c.default=c,c.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,u.prototype):o.type==="rule"?Object.setPrototypeOf(o,b.prototype):o.type==="decl"?Object.setPrototypeOf(o,e.prototype):o.type==="comment"?Object.setPrototypeOf(o,n.prototype):o.type==="root"&&Object.setPrototypeOf(o,p.prototype),o[t]=!0,o.nodes&&o.nodes.forEach(l=>{c.rebuild(l)})},qt}var Ht,un;function xi(){if(un)return Ht;un=1;let n=Me();class e extends n{constructor(r){super(r),this.type="atrule"}append(...r){return this.proxyOf.nodes||(this.nodes=[]),super.append(...r)}prepend(...r){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...r)}}return Ht=e,e.default=e,n.registerAtRule(e),Ht}var Ft,hn;function _i(){if(hn)return Ft;hn=1;let n=Me(),e,i;class r extends n{constructor(u){super({type:"document",...u}),this.nodes||(this.nodes=[])}toResult(u={}){return new e(new i,this,u).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=t=>{i=t},Ft=r,r.default=r,Ft}var Wt,dn;function Gs(){if(dn)return Wt;dn=1;let n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Wt={nanoid:(r=21)=>{let t="",u=r|0;for(;u--;)t+=n[Math.random()*64|0];return t},customAlphabet:(r,t=21)=>(u=t)=>{let a="",p=u|0;for(;p--;)a+=r[Math.random()*r.length|0];return a}},Wt}var Gt,fn;function Hn(){if(fn)return Gt;fn=1;let{existsSync:n,readFileSync:e}=de,{dirname:i,join:r}=de,{SourceMapConsumer:t,SourceMapGenerator:u}=de;function a(b){return Buffer?Buffer.from(b,"base64").toString():window.atob(b)}class p{constructor(h,s){if(s.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let c=s.map?s.map.prev:void 0,o=this.loadMap(s.from,c);!this.mapFile&&s.from&&(this.mapFile=s.from),this.mapFile&&(this.root=i(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new t(this.text)),this.consumerCache}decodeInline(h){let s=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/,f=h.match(o)||h.match(l);if(f)return decodeURIComponent(h.substr(f[0].length));let m=h.match(s)||h.match(c);if(m)return a(h.substr(m[0].length));let g=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let s=h.match(/\/\*\s*# sourceMappingURL=/g);if(!s)return;let c=h.lastIndexOf(s.pop()),o=h.indexOf("*/",c);c>-1&&o>-1&&(this.annotation=this.getAnnotationURL(h.substring(c,o)))}loadFile(h){if(this.root=i(h),n(h))return this.mapFile=h,e(h,"utf-8").toString().trim()}loadMap(h,s){if(s===!1)return!1;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let c=s(h);if(c){let o=this.loadFile(c);if(!o)throw new Error("Unable to load previous source map: "+c.toString());return o}}else{if(s instanceof t)return u.fromSourceMap(s).toString();if(s instanceof u)return s.toString();if(this.isMap(s))return JSON.stringify(s);throw new Error("Unsupported previous source map format: "+s.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return h&&(c=r(i(h),c)),this.loadFile(c)}}}startWith(h,s){return h?h.substr(0,s.length)===s:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Gt=p,p.default=p,Gt}var Zt,pn;function Et(){if(pn)return Zt;pn=1;let{nanoid:n}=Gs(),{isAbsolute:e,resolve:i}=de,{SourceMapConsumer:r,SourceMapGenerator:t}=de,{fileURLToPath:u,pathToFileURL:a}=de,p=wi(),b=Hn(),h=de,s=Symbol("lineToIndexCache"),c=!!(r&&t),o=!!(i&&e);function l(m){if(m[s])return m[s];let g=m.css.split(`
324
+ `),_=new Array(g.length),E=0;for(let v=0,w=g.length;v<w;v++)_[v]=E,E+=g[v].length+1;return m[s]=_,_}class f{get from(){return this.file||this.id}constructor(g,_={}){if(g===null||typeof g>"u"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,_.document&&(this.document=_.document.toString()),_.from&&(!o||/^\w+:\/\//.test(_.from)||e(_.from)?this.file=_.from:this.file=i(_.from)),o&&c){let E=new b(this.css,_);if(E.text){this.map=E;let v=E.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+n(6)+">"),this.map&&(this.map.file=this.from)}error(g,_,E,v={}){let w,y,A,$,L;if(_&&typeof _=="object"){let P=_,J=E;if(typeof P.offset=="number"){$=P.offset;let H=this.fromOffset($);_=H.line,E=H.col}else _=P.line,E=P.column,$=this.fromLineAndColumn(_,E);if(typeof J.offset=="number"){A=J.offset;let H=this.fromOffset(A);y=H.line,w=H.col}else y=J.line,w=J.column,A=this.fromLineAndColumn(J.line,J.column)}else if(E)$=this.fromLineAndColumn(_,E);else{$=_;let P=this.fromOffset($);_=P.line,E=P.col}let B=this.origin(_,E,y,w);return B?L=new p(g,B.endLine===void 0?B.line:{column:B.column,line:B.line},B.endLine===void 0?B.column:{column:B.endColumn,line:B.endLine},B.source,B.file,v.plugin):L=new p(g,y===void 0?_:{column:E,line:_},y===void 0?E:{column:w,line:y},this.css,this.file,v.plugin),L.input={column:E,endColumn:w,endLine:y,endOffset:A,line:_,offset:$,source:this.css},this.file&&(a&&(L.input.url=a(this.file).toString()),L.input.file=this.file),L}fromLineAndColumn(g,_){return l(this)[g-1]+_-1}fromOffset(g){let _=l(this),E=_[_.length-1],v=0;if(g>=E)v=_.length-1;else{let w=_.length-2,y;for(;v<w;)if(y=v+(w-v>>1),g<_[y])w=y-1;else if(g>=_[y+1])v=y+1;else{v=y;break}}return{col:g-_[v]+1,line:v+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:i(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,_,E,v){if(!this.map)return!1;let w=this.map.consumer(),y=w.originalPositionFor({column:_,line:g});if(!y.source)return!1;let A;typeof E=="number"&&(A=w.originalPositionFor({column:v,line:E}));let $;e(y.source)?$=a(y.source):$=new URL(y.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let L={column:y.column,endColumn:A&&A.column,endLine:A&&A.line,line:y.line,url:$.toString()};if($.protocol==="file:")if(u)L.file=u($);else throw new Error("file: protocol is not available in this PostCSS build");let B=w.sourceContentFor(y.source);return B&&(L.source=B),L}toJSON(){let g={};for(let _ of["hasBOM","css","file","id"])this[_]!=null&&(g[_]=this[_]);return this.map&&(g.map={...this.map},g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Zt=f,f.default=f,h&&h.registerInput&&h.registerInput(f),Zt}var Vt,mn;function Ye(){if(mn)return Vt;mn=1;let n=Me(),e,i;class r extends n{constructor(u){super(u),this.type="root",this.nodes||(this.nodes=[])}normalize(u,a,p){let b=super.normalize(u);if(a){if(p==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let h of b)h.raws.before=a.raws.before}return b}removeChild(u,a){let p=this.index(u);return!a&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(u)}toResult(u={}){return new e(new i,this,u).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=t=>{i=t},Vt=r,r.default=r,n.registerRoot(r),Vt}var Jt,gn;function Fn(){if(gn)return Jt;gn=1;let n={comma(e){return n.split(e,[","],!0)},space(e){let i=[" ",`
325
+ `," "];return n.split(e,i)},split(e,i,r){let t=[],u="",a=!1,p=0,b=!1,h="",s=!1;for(let c of e)s?s=!1:c==="\\"?s=!0:b?c===h&&(b=!1):c==='"'||c==="'"?(b=!0,h=c):c==="("?p+=1:c===")"?p>0&&(p-=1):p===0&&i.includes(c)&&(a=!0),a?(u!==""&&t.push(u.trim()),u="",a=!1):u+=c;return(r||u!=="")&&t.push(u.trim()),t}};return Jt=n,n.default=n,Jt}var Kt,bn;function Ei(){if(bn)return Kt;bn=1;let n=Me(),e=Fn();class i extends n{get selectors(){return e.comma(this.selector)}set selectors(t){let u=this.selector?this.selector.match(/,\s*/):null,a=u?u[0]:","+this.raw("between","beforeOpen");this.selector=t.join(a)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}}return Kt=i,i.default=i,n.registerRule(i),Kt}var Xt,yn;function Zs(){if(yn)return Xt;yn=1;let n=xi(),e=xt(),i=_t(),r=Et(),t=Hn(),u=Ye(),a=Ei();function p(b,h){if(Array.isArray(b))return b.map(o=>p(o));let{inputs:s,...c}=b;if(s){h=[];for(let o of s){let l={...o,__proto__:r.prototype};l.map&&(l.map={...l.map,__proto__:t.prototype}),h.push(l)}}if(c.nodes&&(c.nodes=b.nodes.map(o=>p(o,h))),c.source){let{inputId:o,...l}=c.source;c.source=l,o!=null&&(c.source.input=h[o])}if(c.type==="root")return new u(c);if(c.type==="decl")return new i(c);if(c.type==="rule")return new a(c);if(c.type==="comment")return new e(c);if(c.type==="atrule")return new n(c);throw new Error("Unknown node type: "+b.type)}return Xt=p,p.default=p,Xt}var Qt,wn;function Wn(){if(wn)return Qt;wn=1;let{dirname:n,relative:e,resolve:i,sep:r}=de,{SourceMapConsumer:t,SourceMapGenerator:u}=de,{pathToFileURL:a}=de,p=Et(),b=!!(t&&u),h=!!(n&&i&&e&&r);class s{constructor(o,l,f,m){this.stringify=o,this.mapOpts=f.map||{},this.root=l,this.opts=f,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let o;this.isInline()?o="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?o=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?o=this.mapOpts.annotation(this.opts.to,this.root):o=this.outputFile()+".map";let l=`
326
326
  `;this.css.includes(`\r
327
327
  `)&&(l=`\r
328
328
  `),this.css+=l+"/*# sourceMappingURL="+o+" */"}applyPrevMaps(){for(let o of this.previous()){let l=this.toUrl(this.path(o.file)),f=o.root||n(o.file),m;this.mapOpts.sourcesContent===!1?(m=new t(o.text),m.sourcesContent&&(m.sourcesContent=null)):m=o.consumer(),this.map.applySourceMap(m,l,this.toUrl(this.path(f)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let o;for(let l=this.root.nodes.length-1;l>=0;l--)o=this.root.nodes[l],o.type==="comment"&&o.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(l)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&b&&this.isMap())return this.generateMap();{let o="";return this.stringify(this.root,l=>{o+=l}),[o]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let o=this.previous()[0].consumer();o.file=this.outputFile(),this.map=u.fromSourceMap(o,{ignoreInvalidMapping:!0})}else this.map=new u({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new u({file:this.outputFile(),ignoreInvalidMapping:!0});let o=1,l=1,f="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,_;this.stringify(this.root,(E,v,w)=>{if(this.css+=E,v&&w!=="end"&&(m.generated.line=o,m.generated.column=l-1,v.source&&v.source.start?(m.source=this.sourcePath(v),m.original.line=v.source.start.line,m.original.column=v.source.start.column-1,this.map.addMapping(m)):(m.source=f,m.original.line=1,m.original.column=0,this.map.addMapping(m))),_=E.match(/\n/g),_?(o+=_.length,g=E.lastIndexOf(`
329
- `),l=E.length-g):l+=E.length,v&&w!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=o,m.generated.column=l-2,this.map.addMapping(m)):(m.source=f,m.original.line=1,m.original.column=0,m.generated.line=o,m.generated.column=l-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(o=>o.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let o=this.mapOpts.annotation;return typeof o<"u"&&o!==!0?!1:this.previous().length?this.previous().some(l=>l.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(o=>o.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(o){if(this.mapOpts.absolute||o.charCodeAt(0)===60||/^\w+:\/\//.test(o))return o;let l=this.memoizedPaths.get(o);if(l)return l;let f=this.opts.to?n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=n(i(f,this.mapOpts.annotation)));let m=e(f,o);return this.memoizedPaths.set(o,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let l=o.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let o=new p(this.originalCSS,this.opts);o.map&&this.previousMaps.push(o.map)}return this.previousMaps}setSourcesContent(){let o={};if(this.root)this.root.walk(l=>{if(l.source){let f=l.source.input.from;if(f&&!o[f]){o[f]=!0;let m=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(m,l.source.input.css)}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css)}}sourcePath(o){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(o.source.input.from):this.toUrl(this.path(o.source.input.from))}toBase64(o){return Buffer?Buffer.from(o).toString("base64"):window.btoa(unescape(encodeURIComponent(o)))}toFileUrl(o){let l=this.memoizedFileURLs.get(o);if(l)return l;if(a){let f=a(o).toString();return this.memoizedFileURLs.set(o,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(o){let l=this.memoizedURLs.get(o);if(l)return l;r==="\\"&&(o=o.replace(/\\/g,"/"));let f=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,f),f}}return Qt=s,Qt}var Yt,vn;function Vs(){if(vn)return Yt;vn=1;const n=39,e=34,i=92,r=47,t=10,u=32,a=12,p=9,b=13,h=91,s=93,c=40,o=41,l=123,f=125,m=59,g=42,_=58,E=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,A=/[\da-f]/i;return Yt=function(L,B={}){let P=L.css.valueOf(),J=B.ignoreErrors,q,Ee,he,R,Ne,W,Y,ae,ce,ye,Ae=P.length,j=0,De=[],Pe=[];function St(){return j}function Be(we){throw L.error("Unclosed "+we,j)}function kt(){return Pe.length===0&&j>=Ae}function Te(we){if(Pe.length)return Pe.pop();if(j>=Ae)return;let Ue=we?we.ignoreUnclosed:!1;switch(q=P.charCodeAt(j),q){case t:case u:case p:case b:case a:{R=j;do R+=1,q=P.charCodeAt(R);while(q===u||q===t||q===p||q===b||q===a);W=["space",P.slice(j,R)],j=R-1;break}case h:case s:case l:case f:case _:case m:case o:{let et=String.fromCharCode(q);W=[et,et,j];break}case c:{if(ye=De.length?De.pop()[1]:"",ce=P.charCodeAt(j+1),ye==="url"&&ce!==n&&ce!==e&&ce!==u&&ce!==t&&ce!==p&&ce!==a&&ce!==b){R=j;do{if(Y=!1,R=P.indexOf(")",R+1),R===-1)if(J||Ue){R=j;break}else Be("bracket");for(ae=R;P.charCodeAt(ae-1)===i;)ae-=1,Y=!Y}while(Y);W=["brackets",P.slice(j,R+1),j,R],j=R}else R=P.indexOf(")",j+1),Ee=P.slice(j,R+1),R===-1||y.test(Ee)?W=["(","(",j]:(W=["brackets",Ee,j,R],j=R);break}case n:case e:{Ne=q===n?"'":'"',R=j;do{if(Y=!1,R=P.indexOf(Ne,R+1),R===-1)if(J||Ue){R=j+1;break}else Be("string");for(ae=R;P.charCodeAt(ae-1)===i;)ae-=1,Y=!Y}while(Y);W=["string",P.slice(j,R+1),j,R],j=R;break}case E:{v.lastIndex=j+1,v.test(P),v.lastIndex===0?R=P.length-1:R=v.lastIndex-2,W=["at-word",P.slice(j,R+1),j,R],j=R;break}case i:{for(R=j,he=!0;P.charCodeAt(R+1)===i;)R+=1,he=!he;if(q=P.charCodeAt(R+1),he&&q!==r&&q!==u&&q!==t&&q!==p&&q!==b&&q!==a&&(R+=1,A.test(P.charAt(R)))){for(;A.test(P.charAt(R+1));)R+=1;P.charCodeAt(R+1)===u&&(R+=1)}W=["word",P.slice(j,R+1),j,R],j=R;break}default:{q===r&&P.charCodeAt(j+1)===g?(R=P.indexOf("*/",j+2)+1,R===0&&(J||Ue?R=P.length:Be("comment")),W=["comment",P.slice(j,R+1),j,R],j=R):(w.lastIndex=j+1,w.test(P),w.lastIndex===0?R=P.length-1:R=w.lastIndex-2,W=["word",P.slice(j,R+1),j,R],De.push(W),j=R);break}}return j++,W}function Ct(we){Pe.push(we)}return{back:Ct,endOfFile:kt,nextToken:Te,position:St}},Yt}var ei,xn;function Js(){if(xn)return ei;xn=1;let n=xi(),e=xt(),i=_t(),r=Ye(),t=Ei(),u=Vs();const a={empty:!0,space:!0};function p(h){for(let s=h.length-1;s>=0;s--){let c=h[s],o=c[3]||c[2];if(o)return o}}class b{constructor(s){this.input=s,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:s,start:{column:1,line:1,offset:0}}}atrule(s){let c=new n;c.name=s[1].slice(1),c.name===""&&this.unnamedAtrule(c,s),this.init(c,s[2]);let o,l,f,m=!1,g=!1,_=[],E=[];for(;!this.tokenizer.endOfFile();){if(s=this.tokenizer.nextToken(),o=s[0],o==="("||o==="["?E.push(o==="("?")":"]"):o==="{"&&E.length>0?E.push("}"):o===E[E.length-1]&&E.pop(),E.length===0)if(o===";"){c.source.end=this.getPosition(s[2]),c.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){g=!0;break}else if(o==="}"){if(_.length>0){for(f=_.length-1,l=_[f];l&&l[0]==="space";)l=_[--f];l&&(c.source.end=this.getPosition(l[3]||l[2]),c.source.end.offset++)}this.end(s);break}else _.push(s);else _.push(s);if(this.tokenizer.endOfFile()){m=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(_),_.length?(c.raws.afterName=this.spacesAndCommentsFromStart(_),this.raw(c,"params",_),m&&(s=_[_.length-1],c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),g&&(c.nodes=[],this.current=c)}checkMissedSemicolon(s){let c=this.colon(s);if(c===!1)return;let o=0,l;for(let f=c-1;f>=0&&(l=s[f],!(l[0]!=="space"&&(o+=1,o===2)));f--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(s){let c=0,o,l,f;for(let[m,g]of s.entries()){if(l=g,f=l[0],f==="("&&(c+=1),f===")"&&(c-=1),c===0&&f===":")if(!o)this.doubleColon(l);else{if(o[0]==="word"&&o[1]==="progid")continue;return m}o=l}return!1}comment(s){let c=new e;this.init(c,s[2]),c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++;let o=s[1].slice(2,-2);if(/^\s*$/.test(o))c.text="",c.raws.left=o,c.raws.right="";else{let l=o.match(/^(\s*)([^]*\S)(\s*)$/);c.text=l[2],c.raws.left=l[1],c.raws.right=l[3]}}createTokenizer(){this.tokenizer=u(this.input)}decl(s,c){let o=new i;this.init(o,s[0][2]);let l=s[s.length-1];for(l[0]===";"&&(this.semicolon=!0,s.pop()),o.source.end=this.getPosition(l[3]||l[2]||p(s)),o.source.end.offset++;s[0][0]!=="word";)s.length===1&&this.unknownWord(s),o.raws.before+=s.shift()[1];for(o.source.start=this.getPosition(s[0][2]),o.prop="";s.length;){let E=s[0][0];if(E===":"||E==="space"||E==="comment")break;o.prop+=s.shift()[1]}o.raws.between="";let f;for(;s.length;)if(f=s.shift(),f[0]===":"){o.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),o.raws.between+=f[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let m=[],g;for(;s.length&&(g=s[0][0],!(g!=="space"&&g!=="comment"));)m.push(s.shift());this.precheckMissedSemicolon(s);for(let E=s.length-1;E>=0;E--){if(f=s[E],f[1].toLowerCase()==="!important"){o.important=!0;let v=this.stringFrom(s,E);v=this.spacesFromEnd(s)+v,v!==" !important"&&(o.raws.important=v);break}else if(f[1].toLowerCase()==="important"){let v=s.slice(0),w="";for(let y=E;y>0;y--){let A=v[y][0];if(w.trim().startsWith("!")&&A!=="space")break;w=v.pop()[1]+w}w.trim().startsWith("!")&&(o.important=!0,o.raws.important=w,s=v)}if(f[0]!=="space"&&f[0]!=="comment")break}s.some(E=>E[0]!=="space"&&E[0]!=="comment")&&(o.raws.between+=m.map(E=>E[1]).join(""),m=[]),this.raw(o,"value",m.concat(s),c),o.value.includes(":")&&!c&&this.checkMissedSemicolon(s)}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let c=new t;this.init(c,s[2]),c.selector="",c.raws.between="",this.current=c}end(s){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(s[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(s)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(s){if(this.spaces+=s[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="",c.source.end=this.getPosition(s[2]),c.source.end.offset+=c.raws.ownSemicolon.length)}}getPosition(s){let c=this.input.fromOffset(s);return{column:c.col,line:c.line,offset:s}}init(s,c){this.current.push(s),s.source={input:this.input,start:this.getPosition(c)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1)}other(s){let c=!1,o=null,l=!1,f=null,m=[],g=s[1].startsWith("--"),_=[],E=s;for(;E;){if(o=E[0],_.push(E),o==="("||o==="[")f||(f=E),m.push(o==="("?")":"]");else if(g&&l&&o==="{")f||(f=E),m.push("}");else if(m.length===0)if(o===";")if(l){this.decl(_,g);return}else break;else if(o==="{"){this.rule(_);return}else if(o==="}"){this.tokenizer.back(_.pop()),c=!0;break}else o===":"&&(l=!0);else o===m[m.length-1]&&(m.pop(),m.length===0&&(f=null));E=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),m.length>0&&this.unclosedBracket(f),c&&l){if(!g)for(;_.length&&(E=_[_.length-1][0],!(E!=="space"&&E!=="comment"));)this.tokenizer.back(_.pop());this.decl(_,g)}else this.unknownWord(_)}parse(){let s;for(;!this.tokenizer.endOfFile();)switch(s=this.tokenizer.nextToken(),s[0]){case"space":this.spaces+=s[1];break;case";":this.freeSemicolon(s);break;case"}":this.end(s);break;case"comment":this.comment(s);break;case"at-word":this.atrule(s);break;case"{":this.emptyRule(s);break;default:this.other(s);break}this.endFile()}precheckMissedSemicolon(){}raw(s,c,o,l){let f,m,g=o.length,_="",E=!0,v,w;for(let y=0;y<g;y+=1)f=o[y],m=f[0],m==="space"&&y===g-1&&!l?E=!1:m==="comment"?(w=o[y-1]?o[y-1][0]:"empty",v=o[y+1]?o[y+1][0]:"empty",!a[w]&&!a[v]?_.slice(-1)===","?E=!1:_+=f[1]:E=!1):_+=f[1];if(!E){let y=o.reduce((A,$)=>A+$[1],"");s.raws[c]={raw:y,value:_}}s[c]=_}rule(s){s.pop();let c=new t;this.init(c,s[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(c,"selector",s),this.current=c}spacesAndCommentsFromEnd(s){let c,o="";for(;s.length&&(c=s[s.length-1][0],!(c!=="space"&&c!=="comment"));)o=s.pop()[1]+o;return o}spacesAndCommentsFromStart(s){let c,o="";for(;s.length&&(c=s[0][0],!(c!=="space"&&c!=="comment"));)o+=s.shift()[1];return o}spacesFromEnd(s){let c,o="";for(;s.length&&(c=s[s.length-1][0],c==="space");)o=s.pop()[1]+o;return o}stringFrom(s,c){let o="";for(let l=c;l<s.length;l++)o+=s[l][1];return s.splice(c,s.length-c),o}unclosedBlock(){let s=this.current.source.start;throw this.input.error("Unclosed block",s.line,s.column)}unclosedBracket(s){throw this.input.error("Unclosed bracket",{offset:s[2]},{offset:s[2]+1})}unexpectedClose(s){throw this.input.error("Unexpected }",{offset:s[2]},{offset:s[2]+1})}unknownWord(s){throw this.input.error("Unknown word "+s[0][1],{offset:s[0][2]},{offset:s[0][2]+s[0][1].length})}unnamedAtrule(s,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return ei=b,ei}var ti,_n;function Ai(){if(_n)return ti;_n=1;let n=Me(),e=Et(),i=Js();function r(t,u){let a=new e(t,u),p=new i(a);try{p.parse()}catch(b){throw b}return p.root}return ti=r,r.default=r,n.registerParse(r),ti}var ii,En;function Gn(){if(En)return ii;En=1;class n{constructor(i,r={}){if(this.type="warning",this.text=i,r.node&&r.node.source){let t=r.node.rangeBy(r);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in r)this[t]=r[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ii=n,n.default=n,ii}var ni,An;function Si(){if(An)return ni;An=1;let n=Gn();class e{get content(){return this.css}constructor(r,t,u){this.processor=r,this.messages=[],this.root=t,this.opts=u,this.css="",this.map=void 0}toString(){return this.css}warn(r,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let u=new n(r,t);return this.messages.push(u),u}warnings(){return this.messages.filter(r=>r.type==="warning")}}return ni=e,e.default=e,ni}var ri,Sn;function Zn(){if(Sn)return ri;Sn=1;let n=Me(),e=_i(),i=Wn(),r=Ai(),t=Si(),u=Ye(),a=wt(),{isClean:p,my:b}=vi();const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},s={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function l(v){return typeof v=="object"&&typeof v.then=="function"}function f(v){let w=!1,y=h[v.type];return v.type==="decl"?w=v.prop.toLowerCase():v.type==="atrule"&&(w=v.name.toLowerCase()),w&&v.append?[y,y+"-"+w,o,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:v.append?[y,o,y+"Exit"]:[y,y+"Exit"]}function m(v){let w;return v.type==="document"?w=["Document",o,"DocumentExit"]:v.type==="root"?w=["Root",o,"RootExit"]:w=f(v),{eventIndex:0,events:w,iterator:0,node:v,visitorIndex:0,visitors:[]}}function g(v){return v[p]=!1,v.nodes&&v.nodes.forEach(w=>g(w)),v}let _={};class E{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(w,y,A){this.stringified=!1,this.processed=!1;let $;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))$=g(y);else if(y instanceof E||y instanceof t)$=g(y.root),y.map&&(typeof A.map>"u"&&(A.map={}),A.map.inline||(A.map.inline=!1),A.map.prev=y.map);else{let L=r;A.syntax&&(L=A.syntax.parse),A.parser&&(L=A.parser),L.parse&&(L=L.parse);try{$=L(y,A)}catch(B){this.processed=!0,this.error=B}$&&!$[b]&&n.rebuild($)}this.result=new t(w,$,A),this.helpers={..._,postcss:_,result:this.result},this.plugins=this.processor.plugins.map(L=>typeof L=="object"&&L.prepare?{...L,...L.prepare(this.result)}:L)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let A=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=A.postcssPlugin,w.setMessage()):A.postcssVersion}catch($){console&&console.error&&console.error($)}return w}prepareVisitors(){this.listeners={};let w=(y,A,$)=>{this.listeners[A]||(this.listeners[A]=[]),this.listeners[A].push([y,$])};for(let y of this.plugins)if(typeof y=="object")for(let A in y){if(!s[A]&&/^[A-Z]/.test(A))throw new Error(`Unknown event ${A} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[A])if(typeof y[A]=="object")for(let $ in y[A])$==="*"?w(y,A,y[A][$]):w(y,A+"-"+$.toLowerCase(),y[A][$]);else typeof y[A]=="function"&&w(y,A,y[A])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],A=this.runOnRoot(y);if(l(A))try{await A}catch($){throw this.handleError($)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[p];){w[p]=!0;let y=[m(w)];for(;y.length>0;){let A=this.visitTick(y);if(l(A))try{await A}catch($){let L=y[y.length-1].node;throw this.handleError($,L)}}}if(this.listeners.OnceExit)for(let[y,A]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let $=w.nodes.map(L=>A(L,this.helpers));await Promise.all($)}else await A(w,this.helpers)}catch($){throw this.handleError($)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(A=>w.Once(A,this.helpers));return l(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=a;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let $=new i(y,this.result.root,this.result.opts).generate();return this.result.css=$[0],this.result.map=$[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(l(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[p];)w[p]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[A,$]of w){this.result.lastPlugin=A;let L;try{L=$(y,this.helpers)}catch(B){throw this.handleError(B,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(l(L))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:A,visitors:$}=y;if(A.type!=="root"&&A.type!=="document"&&!A.parent){w.pop();return}if($.length>0&&y.visitorIndex<$.length){let[B,P]=$[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===$.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=B;try{return P(A.toProxy(),this.helpers)}catch(J){throw this.handleError(J,A)}}if(y.iterator!==0){let B=y.iterator,P;for(;P=A.nodes[A.indexes[B]];)if(A.indexes[B]+=1,!P[p]){P[p]=!0,w.push(m(P));return}y.iterator=0,delete A.indexes[B]}let L=y.events;for(;y.eventIndex<L.length;){let B=L[y.eventIndex];if(y.eventIndex+=1,B===o){A.nodes&&A.nodes.length&&(A[p]=!0,y.iterator=A.getIterator());return}else if(this.listeners[B]){y.visitors=this.listeners[B];return}}w.pop()}walkSync(w){w[p]=!0;let y=f(w);for(let A of y)if(A===o)w.nodes&&w.each($=>{$[p]||this.walkSync($)});else{let $=this.listeners[A];if($&&this.visitSync($,w.toProxy()))return}}warnings(){return this.sync().warnings()}}return E.registerPostcss=v=>{_=v},ri=E,E.default=E,u.registerLazyResult(E),e.registerLazyResult(E),ri}var si,kn;function Ks(){if(kn)return si;kn=1;let n=Wn(),e=Ai();const i=Si();let r=wt();class t{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,p=e;try{a=p(this._css,this._opts)}catch(b){this.error=b}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(a,p,b){p=p.toString(),this.stringified=!1,this._processor=a,this._css=p,this._opts=b,this._map=void 0;let h,s=r;this.result=new i(this._processor,h,this._opts),this.result.css=p;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let o=new n(s,h,this._opts,p);if(o.isMap()){let[l,f]=o.generate();l&&(this.result.css=l),f&&(this.result.map=f)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,p){return this.async().then(a,p)}toString(){return this._css}warnings(){return[]}}return si=t,t.default=t,si}var oi,Cn;function Xs(){if(Cn)return oi;Cn=1;let n=_i(),e=Zn(),i=Ks(),r=Ye();class t{constructor(a=[]){this.version="8.5.6",this.plugins=this.normalize(a)}normalize(a){let p=[];for(let b of a)if(b.postcss===!0?b=b():b.postcss&&(b=b.postcss),typeof b=="object"&&Array.isArray(b.plugins))p=p.concat(b.plugins);else if(typeof b=="object"&&b.postcssPlugin)p.push(b);else if(typeof b=="function")p.push(b);else if(!(typeof b=="object"&&(b.parse||b.stringify)))throw new Error(b+" is not a PostCSS plugin");return p}process(a,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new i(this,a,p):new e(this,a,p)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return oi=t,t.default=t,r.registerProcessor(t),n.registerProcessor(t),oi}var li,$n;function Qs(){if($n)return li;$n=1;var n={};let e=xi(),i=xt(),r=Me(),t=wi(),u=_t(),a=_i(),p=Zs(),b=Et(),h=Zn(),s=Fn(),c=vt(),o=Ai(),l=Xs(),f=Si(),m=Ye(),g=Ei(),_=wt(),E=Gn();function v(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new l(w)}return v.plugin=function(y,A){let $=!1;function L(...P){console&&console.warn&&!$&&($=!0,console.warn(y+`: postcss.plugin was deprecated. Migration guide:
329
+ `),l=E.length-g):l+=E.length,v&&w!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=o,m.generated.column=l-2,this.map.addMapping(m)):(m.source=f,m.original.line=1,m.original.column=0,m.generated.line=o,m.generated.column=l-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(o=>o.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let o=this.mapOpts.annotation;return typeof o<"u"&&o!==!0?!1:this.previous().length?this.previous().some(l=>l.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(o=>o.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(o){if(this.mapOpts.absolute||o.charCodeAt(0)===60||/^\w+:\/\//.test(o))return o;let l=this.memoizedPaths.get(o);if(l)return l;let f=this.opts.to?n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=n(i(f,this.mapOpts.annotation)));let m=e(f,o);return this.memoizedPaths.set(o,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let l=o.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let o=new p(this.originalCSS,this.opts);o.map&&this.previousMaps.push(o.map)}return this.previousMaps}setSourcesContent(){let o={};if(this.root)this.root.walk(l=>{if(l.source){let f=l.source.input.from;if(f&&!o[f]){o[f]=!0;let m=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(m,l.source.input.css)}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css)}}sourcePath(o){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(o.source.input.from):this.toUrl(this.path(o.source.input.from))}toBase64(o){return Buffer?Buffer.from(o).toString("base64"):window.btoa(unescape(encodeURIComponent(o)))}toFileUrl(o){let l=this.memoizedFileURLs.get(o);if(l)return l;if(a){let f=a(o).toString();return this.memoizedFileURLs.set(o,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(o){let l=this.memoizedURLs.get(o);if(l)return l;r==="\\"&&(o=o.replace(/\\/g,"/"));let f=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,f),f}}return Qt=s,Qt}var Yt,vn;function Vs(){if(vn)return Yt;vn=1;const n=39,e=34,i=92,r=47,t=10,u=32,a=12,p=9,b=13,h=91,s=93,c=40,o=41,l=123,f=125,m=59,g=42,_=58,E=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,A=/[\da-f]/i;return Yt=function(L,B={}){let P=L.css.valueOf(),J=B.ignoreErrors,H,Ee,he,R,Ne,W,Y,ae,ce,ye,Ae=P.length,j=0,De=[],Pe=[];function St(){return j}function Be(we){throw L.error("Unclosed "+we,j)}function kt(){return Pe.length===0&&j>=Ae}function Te(we){if(Pe.length)return Pe.pop();if(j>=Ae)return;let Ue=we?we.ignoreUnclosed:!1;switch(H=P.charCodeAt(j),H){case t:case u:case p:case b:case a:{R=j;do R+=1,H=P.charCodeAt(R);while(H===u||H===t||H===p||H===b||H===a);W=["space",P.slice(j,R)],j=R-1;break}case h:case s:case l:case f:case _:case m:case o:{let et=String.fromCharCode(H);W=[et,et,j];break}case c:{if(ye=De.length?De.pop()[1]:"",ce=P.charCodeAt(j+1),ye==="url"&&ce!==n&&ce!==e&&ce!==u&&ce!==t&&ce!==p&&ce!==a&&ce!==b){R=j;do{if(Y=!1,R=P.indexOf(")",R+1),R===-1)if(J||Ue){R=j;break}else Be("bracket");for(ae=R;P.charCodeAt(ae-1)===i;)ae-=1,Y=!Y}while(Y);W=["brackets",P.slice(j,R+1),j,R],j=R}else R=P.indexOf(")",j+1),Ee=P.slice(j,R+1),R===-1||y.test(Ee)?W=["(","(",j]:(W=["brackets",Ee,j,R],j=R);break}case n:case e:{Ne=H===n?"'":'"',R=j;do{if(Y=!1,R=P.indexOf(Ne,R+1),R===-1)if(J||Ue){R=j+1;break}else Be("string");for(ae=R;P.charCodeAt(ae-1)===i;)ae-=1,Y=!Y}while(Y);W=["string",P.slice(j,R+1),j,R],j=R;break}case E:{v.lastIndex=j+1,v.test(P),v.lastIndex===0?R=P.length-1:R=v.lastIndex-2,W=["at-word",P.slice(j,R+1),j,R],j=R;break}case i:{for(R=j,he=!0;P.charCodeAt(R+1)===i;)R+=1,he=!he;if(H=P.charCodeAt(R+1),he&&H!==r&&H!==u&&H!==t&&H!==p&&H!==b&&H!==a&&(R+=1,A.test(P.charAt(R)))){for(;A.test(P.charAt(R+1));)R+=1;P.charCodeAt(R+1)===u&&(R+=1)}W=["word",P.slice(j,R+1),j,R],j=R;break}default:{H===r&&P.charCodeAt(j+1)===g?(R=P.indexOf("*/",j+2)+1,R===0&&(J||Ue?R=P.length:Be("comment")),W=["comment",P.slice(j,R+1),j,R],j=R):(w.lastIndex=j+1,w.test(P),w.lastIndex===0?R=P.length-1:R=w.lastIndex-2,W=["word",P.slice(j,R+1),j,R],De.push(W),j=R);break}}return j++,W}function Ct(we){Pe.push(we)}return{back:Ct,endOfFile:kt,nextToken:Te,position:St}},Yt}var ei,xn;function Js(){if(xn)return ei;xn=1;let n=xi(),e=xt(),i=_t(),r=Ye(),t=Ei(),u=Vs();const a={empty:!0,space:!0};function p(h){for(let s=h.length-1;s>=0;s--){let c=h[s],o=c[3]||c[2];if(o)return o}}class b{constructor(s){this.input=s,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:s,start:{column:1,line:1,offset:0}}}atrule(s){let c=new n;c.name=s[1].slice(1),c.name===""&&this.unnamedAtrule(c,s),this.init(c,s[2]);let o,l,f,m=!1,g=!1,_=[],E=[];for(;!this.tokenizer.endOfFile();){if(s=this.tokenizer.nextToken(),o=s[0],o==="("||o==="["?E.push(o==="("?")":"]"):o==="{"&&E.length>0?E.push("}"):o===E[E.length-1]&&E.pop(),E.length===0)if(o===";"){c.source.end=this.getPosition(s[2]),c.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){g=!0;break}else if(o==="}"){if(_.length>0){for(f=_.length-1,l=_[f];l&&l[0]==="space";)l=_[--f];l&&(c.source.end=this.getPosition(l[3]||l[2]),c.source.end.offset++)}this.end(s);break}else _.push(s);else _.push(s);if(this.tokenizer.endOfFile()){m=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(_),_.length?(c.raws.afterName=this.spacesAndCommentsFromStart(_),this.raw(c,"params",_),m&&(s=_[_.length-1],c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),g&&(c.nodes=[],this.current=c)}checkMissedSemicolon(s){let c=this.colon(s);if(c===!1)return;let o=0,l;for(let f=c-1;f>=0&&(l=s[f],!(l[0]!=="space"&&(o+=1,o===2)));f--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(s){let c=0,o,l,f;for(let[m,g]of s.entries()){if(l=g,f=l[0],f==="("&&(c+=1),f===")"&&(c-=1),c===0&&f===":")if(!o)this.doubleColon(l);else{if(o[0]==="word"&&o[1]==="progid")continue;return m}o=l}return!1}comment(s){let c=new e;this.init(c,s[2]),c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++;let o=s[1].slice(2,-2);if(/^\s*$/.test(o))c.text="",c.raws.left=o,c.raws.right="";else{let l=o.match(/^(\s*)([^]*\S)(\s*)$/);c.text=l[2],c.raws.left=l[1],c.raws.right=l[3]}}createTokenizer(){this.tokenizer=u(this.input)}decl(s,c){let o=new i;this.init(o,s[0][2]);let l=s[s.length-1];for(l[0]===";"&&(this.semicolon=!0,s.pop()),o.source.end=this.getPosition(l[3]||l[2]||p(s)),o.source.end.offset++;s[0][0]!=="word";)s.length===1&&this.unknownWord(s),o.raws.before+=s.shift()[1];for(o.source.start=this.getPosition(s[0][2]),o.prop="";s.length;){let E=s[0][0];if(E===":"||E==="space"||E==="comment")break;o.prop+=s.shift()[1]}o.raws.between="";let f;for(;s.length;)if(f=s.shift(),f[0]===":"){o.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),o.raws.between+=f[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let m=[],g;for(;s.length&&(g=s[0][0],!(g!=="space"&&g!=="comment"));)m.push(s.shift());this.precheckMissedSemicolon(s);for(let E=s.length-1;E>=0;E--){if(f=s[E],f[1].toLowerCase()==="!important"){o.important=!0;let v=this.stringFrom(s,E);v=this.spacesFromEnd(s)+v,v!==" !important"&&(o.raws.important=v);break}else if(f[1].toLowerCase()==="important"){let v=s.slice(0),w="";for(let y=E;y>0;y--){let A=v[y][0];if(w.trim().startsWith("!")&&A!=="space")break;w=v.pop()[1]+w}w.trim().startsWith("!")&&(o.important=!0,o.raws.important=w,s=v)}if(f[0]!=="space"&&f[0]!=="comment")break}s.some(E=>E[0]!=="space"&&E[0]!=="comment")&&(o.raws.between+=m.map(E=>E[1]).join(""),m=[]),this.raw(o,"value",m.concat(s),c),o.value.includes(":")&&!c&&this.checkMissedSemicolon(s)}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let c=new t;this.init(c,s[2]),c.selector="",c.raws.between="",this.current=c}end(s){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(s[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(s)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(s){if(this.spaces+=s[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="",c.source.end=this.getPosition(s[2]),c.source.end.offset+=c.raws.ownSemicolon.length)}}getPosition(s){let c=this.input.fromOffset(s);return{column:c.col,line:c.line,offset:s}}init(s,c){this.current.push(s),s.source={input:this.input,start:this.getPosition(c)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1)}other(s){let c=!1,o=null,l=!1,f=null,m=[],g=s[1].startsWith("--"),_=[],E=s;for(;E;){if(o=E[0],_.push(E),o==="("||o==="[")f||(f=E),m.push(o==="("?")":"]");else if(g&&l&&o==="{")f||(f=E),m.push("}");else if(m.length===0)if(o===";")if(l){this.decl(_,g);return}else break;else if(o==="{"){this.rule(_);return}else if(o==="}"){this.tokenizer.back(_.pop()),c=!0;break}else o===":"&&(l=!0);else o===m[m.length-1]&&(m.pop(),m.length===0&&(f=null));E=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),m.length>0&&this.unclosedBracket(f),c&&l){if(!g)for(;_.length&&(E=_[_.length-1][0],!(E!=="space"&&E!=="comment"));)this.tokenizer.back(_.pop());this.decl(_,g)}else this.unknownWord(_)}parse(){let s;for(;!this.tokenizer.endOfFile();)switch(s=this.tokenizer.nextToken(),s[0]){case"space":this.spaces+=s[1];break;case";":this.freeSemicolon(s);break;case"}":this.end(s);break;case"comment":this.comment(s);break;case"at-word":this.atrule(s);break;case"{":this.emptyRule(s);break;default:this.other(s);break}this.endFile()}precheckMissedSemicolon(){}raw(s,c,o,l){let f,m,g=o.length,_="",E=!0,v,w;for(let y=0;y<g;y+=1)f=o[y],m=f[0],m==="space"&&y===g-1&&!l?E=!1:m==="comment"?(w=o[y-1]?o[y-1][0]:"empty",v=o[y+1]?o[y+1][0]:"empty",!a[w]&&!a[v]?_.slice(-1)===","?E=!1:_+=f[1]:E=!1):_+=f[1];if(!E){let y=o.reduce((A,$)=>A+$[1],"");s.raws[c]={raw:y,value:_}}s[c]=_}rule(s){s.pop();let c=new t;this.init(c,s[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(c,"selector",s),this.current=c}spacesAndCommentsFromEnd(s){let c,o="";for(;s.length&&(c=s[s.length-1][0],!(c!=="space"&&c!=="comment"));)o=s.pop()[1]+o;return o}spacesAndCommentsFromStart(s){let c,o="";for(;s.length&&(c=s[0][0],!(c!=="space"&&c!=="comment"));)o+=s.shift()[1];return o}spacesFromEnd(s){let c,o="";for(;s.length&&(c=s[s.length-1][0],c==="space");)o=s.pop()[1]+o;return o}stringFrom(s,c){let o="";for(let l=c;l<s.length;l++)o+=s[l][1];return s.splice(c,s.length-c),o}unclosedBlock(){let s=this.current.source.start;throw this.input.error("Unclosed block",s.line,s.column)}unclosedBracket(s){throw this.input.error("Unclosed bracket",{offset:s[2]},{offset:s[2]+1})}unexpectedClose(s){throw this.input.error("Unexpected }",{offset:s[2]},{offset:s[2]+1})}unknownWord(s){throw this.input.error("Unknown word "+s[0][1],{offset:s[0][2]},{offset:s[0][2]+s[0][1].length})}unnamedAtrule(s,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return ei=b,ei}var ti,_n;function Ai(){if(_n)return ti;_n=1;let n=Me(),e=Et(),i=Js();function r(t,u){let a=new e(t,u),p=new i(a);try{p.parse()}catch(b){throw b}return p.root}return ti=r,r.default=r,n.registerParse(r),ti}var ii,En;function Gn(){if(En)return ii;En=1;class n{constructor(i,r={}){if(this.type="warning",this.text=i,r.node&&r.node.source){let t=r.node.rangeBy(r);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in r)this[t]=r[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ii=n,n.default=n,ii}var ni,An;function Si(){if(An)return ni;An=1;let n=Gn();class e{get content(){return this.css}constructor(r,t,u){this.processor=r,this.messages=[],this.root=t,this.opts=u,this.css="",this.map=void 0}toString(){return this.css}warn(r,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let u=new n(r,t);return this.messages.push(u),u}warnings(){return this.messages.filter(r=>r.type==="warning")}}return ni=e,e.default=e,ni}var ri,Sn;function Zn(){if(Sn)return ri;Sn=1;let n=Me(),e=_i(),i=Wn(),r=Ai(),t=Si(),u=Ye(),a=wt(),{isClean:p,my:b}=vi();const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},s={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function l(v){return typeof v=="object"&&typeof v.then=="function"}function f(v){let w=!1,y=h[v.type];return v.type==="decl"?w=v.prop.toLowerCase():v.type==="atrule"&&(w=v.name.toLowerCase()),w&&v.append?[y,y+"-"+w,o,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:v.append?[y,o,y+"Exit"]:[y,y+"Exit"]}function m(v){let w;return v.type==="document"?w=["Document",o,"DocumentExit"]:v.type==="root"?w=["Root",o,"RootExit"]:w=f(v),{eventIndex:0,events:w,iterator:0,node:v,visitorIndex:0,visitors:[]}}function g(v){return v[p]=!1,v.nodes&&v.nodes.forEach(w=>g(w)),v}let _={};class E{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(w,y,A){this.stringified=!1,this.processed=!1;let $;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))$=g(y);else if(y instanceof E||y instanceof t)$=g(y.root),y.map&&(typeof A.map>"u"&&(A.map={}),A.map.inline||(A.map.inline=!1),A.map.prev=y.map);else{let L=r;A.syntax&&(L=A.syntax.parse),A.parser&&(L=A.parser),L.parse&&(L=L.parse);try{$=L(y,A)}catch(B){this.processed=!0,this.error=B}$&&!$[b]&&n.rebuild($)}this.result=new t(w,$,A),this.helpers={..._,postcss:_,result:this.result},this.plugins=this.processor.plugins.map(L=>typeof L=="object"&&L.prepare?{...L,...L.prepare(this.result)}:L)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let A=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=A.postcssPlugin,w.setMessage()):A.postcssVersion}catch($){console&&console.error&&console.error($)}return w}prepareVisitors(){this.listeners={};let w=(y,A,$)=>{this.listeners[A]||(this.listeners[A]=[]),this.listeners[A].push([y,$])};for(let y of this.plugins)if(typeof y=="object")for(let A in y){if(!s[A]&&/^[A-Z]/.test(A))throw new Error(`Unknown event ${A} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[A])if(typeof y[A]=="object")for(let $ in y[A])$==="*"?w(y,A,y[A][$]):w(y,A+"-"+$.toLowerCase(),y[A][$]);else typeof y[A]=="function"&&w(y,A,y[A])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],A=this.runOnRoot(y);if(l(A))try{await A}catch($){throw this.handleError($)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[p];){w[p]=!0;let y=[m(w)];for(;y.length>0;){let A=this.visitTick(y);if(l(A))try{await A}catch($){let L=y[y.length-1].node;throw this.handleError($,L)}}}if(this.listeners.OnceExit)for(let[y,A]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let $=w.nodes.map(L=>A(L,this.helpers));await Promise.all($)}else await A(w,this.helpers)}catch($){throw this.handleError($)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(A=>w.Once(A,this.helpers));return l(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=a;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let $=new i(y,this.result.root,this.result.opts).generate();return this.result.css=$[0],this.result.map=$[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(l(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[p];)w[p]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[A,$]of w){this.result.lastPlugin=A;let L;try{L=$(y,this.helpers)}catch(B){throw this.handleError(B,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(l(L))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:A,visitors:$}=y;if(A.type!=="root"&&A.type!=="document"&&!A.parent){w.pop();return}if($.length>0&&y.visitorIndex<$.length){let[B,P]=$[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===$.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=B;try{return P(A.toProxy(),this.helpers)}catch(J){throw this.handleError(J,A)}}if(y.iterator!==0){let B=y.iterator,P;for(;P=A.nodes[A.indexes[B]];)if(A.indexes[B]+=1,!P[p]){P[p]=!0,w.push(m(P));return}y.iterator=0,delete A.indexes[B]}let L=y.events;for(;y.eventIndex<L.length;){let B=L[y.eventIndex];if(y.eventIndex+=1,B===o){A.nodes&&A.nodes.length&&(A[p]=!0,y.iterator=A.getIterator());return}else if(this.listeners[B]){y.visitors=this.listeners[B];return}}w.pop()}walkSync(w){w[p]=!0;let y=f(w);for(let A of y)if(A===o)w.nodes&&w.each($=>{$[p]||this.walkSync($)});else{let $=this.listeners[A];if($&&this.visitSync($,w.toProxy()))return}}warnings(){return this.sync().warnings()}}return E.registerPostcss=v=>{_=v},ri=E,E.default=E,u.registerLazyResult(E),e.registerLazyResult(E),ri}var si,kn;function Ks(){if(kn)return si;kn=1;let n=Wn(),e=Ai();const i=Si();let r=wt();class t{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,p=e;try{a=p(this._css,this._opts)}catch(b){this.error=b}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(a,p,b){p=p.toString(),this.stringified=!1,this._processor=a,this._css=p,this._opts=b,this._map=void 0;let h,s=r;this.result=new i(this._processor,h,this._opts),this.result.css=p;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let o=new n(s,h,this._opts,p);if(o.isMap()){let[l,f]=o.generate();l&&(this.result.css=l),f&&(this.result.map=f)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,p){return this.async().then(a,p)}toString(){return this._css}warnings(){return[]}}return si=t,t.default=t,si}var oi,Cn;function Xs(){if(Cn)return oi;Cn=1;let n=_i(),e=Zn(),i=Ks(),r=Ye();class t{constructor(a=[]){this.version="8.5.6",this.plugins=this.normalize(a)}normalize(a){let p=[];for(let b of a)if(b.postcss===!0?b=b():b.postcss&&(b=b.postcss),typeof b=="object"&&Array.isArray(b.plugins))p=p.concat(b.plugins);else if(typeof b=="object"&&b.postcssPlugin)p.push(b);else if(typeof b=="function")p.push(b);else if(!(typeof b=="object"&&(b.parse||b.stringify)))throw new Error(b+" is not a PostCSS plugin");return p}process(a,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new i(this,a,p):new e(this,a,p)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return oi=t,t.default=t,r.registerProcessor(t),n.registerProcessor(t),oi}var li,$n;function Qs(){if($n)return li;$n=1;var n={};let e=xi(),i=xt(),r=Me(),t=wi(),u=_t(),a=_i(),p=Zs(),b=Et(),h=Zn(),s=Fn(),c=vt(),o=Ai(),l=Xs(),f=Si(),m=Ye(),g=Ei(),_=wt(),E=Gn();function v(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new l(w)}return v.plugin=function(y,A){let $=!1;function L(...P){console&&console.warn&&!$&&($=!0,console.warn(y+`: postcss.plugin was deprecated. Migration guide:
330
330
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),n.LANG&&n.LANG.startsWith("cn")&&console.warn(y+`: 里面 postcss.plugin 被弃用. 迁移指南:
331
- https://www.w3ctech.com/topic/2226`));let J=A(...P);return J.postcssPlugin=y,J.postcssVersion=new l().version,J}let B;return Object.defineProperty(L,"postcss",{get(){return B||(B=L()),B}}),L.process=function(P,J,q){return v([L(q)]).process(P,J)},L},v.stringify=_,v.parse=o,v.fromJSON=p,v.list=s,v.comment=w=>new i(w),v.atRule=w=>new e(w),v.decl=w=>new u(w),v.rule=w=>new g(w),v.root=w=>new m(w),v.document=w=>new a(w),v.CssSyntaxError=t,v.Declaration=u,v.Container=r,v.Processor=l,v.Document=a,v.Comment=i,v.Warning=E,v.AtRule=e,v.Result=f,v.Input=b,v.Rule=g,v.Root=m,v.Node=c,h.registerPostcss(v),li=v,v.default=v,li}var Ys=Qs();const V=Un(Ys);V.stringify;V.fromJSON;V.plugin;V.parse;V.list;V.document;V.comment;V.atRule;V.rule;V.decl;V.root;V.CssSyntaxError;V.Declaration;V.Container;V.Processor;V.Document;V.Comment;V.Warning;V.AtRule;V.Result;V.Input;V.Rule;V.Root;V.Node;var ai,On;function eo(){if(On)return ai;On=1;const n=(r={})=>{const t=r.prefix,u=/\s+$/.test(t)?t:`${t} `,a=r.ignoreFiles?[].concat(r.ignoreFiles):[],p=r.includeFiles?[].concat(r.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(b){const h=b.root,s=h.source.input.file;if(!(a.length&&s&&e(s,a))&&!(p.length&&s&&!e(s,p)))return{Rule(c,{result:o}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];c.parent&&l.includes(c.parent.name)||(c.selectors=c.selectors.map(f=>r.exclude&&i(f,r.exclude)?f:r.transform?r.transform(t,f,u+f,h.source.input.file,c):[":root","body","html"].some(m=>f.startsWith(m))?r.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,t):u+f))}}}}};function e(r,t){return t.some(u=>u instanceof RegExp?u.test(r):r.includes(u))}function i(r,t){return t.some(u=>u instanceof RegExp?u.test(r):r===u)}return n.postcss=!0,ai=n,ai}var to=eo();const io=Un(to),no="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}",ro="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 so(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ci,Rn;function oo(){if(Rn)return ci;Rn=1;function n(d){return d instanceof Map?d.clear=d.delete=d.set=function(){throw new Error("map is read-only")}:d instanceof Set&&(d.add=d.clear=d.delete=function(){throw new Error("set is read-only")}),Object.freeze(d),Object.getOwnPropertyNames(d).forEach(x=>{const C=d[x],D=typeof C;(D==="object"||D==="function")&&!Object.isFrozen(C)&&n(C)}),d}class e{constructor(x){x.data===void 0&&(x.data={}),this.data=x.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(d){return d.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(d,...x){const C=Object.create(null);for(const D in d)C[D]=d[D];return x.forEach(function(D){for(const X in D)C[X]=D[X]}),C}const t="</span>",u=d=>!!d.scope,a=(d,{prefix:x})=>{if(d.startsWith("language:"))return d.replace("language:","language-");if(d.includes(".")){const C=d.split(".");return[`${x}${C.shift()}`,...C.map((D,X)=>`${D}${"_".repeat(X+1)}`)].join(" ")}return`${x}${d}`};class p{constructor(x,C){this.buffer="",this.classPrefix=C.classPrefix,x.walk(this)}addText(x){this.buffer+=i(x)}openNode(x){if(!u(x))return;const C=a(x.scope,{prefix:this.classPrefix});this.span(C)}closeNode(x){u(x)&&(this.buffer+=t)}value(){return this.buffer}span(x){this.buffer+=`<span class="${x}">`}}const b=(d={})=>{const x={children:[]};return Object.assign(x,d),x};class h{constructor(){this.rootNode=b(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(x){this.top.children.push(x)}openNode(x){const C=b({scope:x});this.add(C),this.stack.push(C)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(x){return this.constructor._walk(x,this.rootNode)}static _walk(x,C){return typeof C=="string"?x.addText(C):C.children&&(x.openNode(C),C.children.forEach(D=>this._walk(x,D)),x.closeNode(C)),x}static _collapse(x){typeof x!="string"&&x.children&&(x.children.every(C=>typeof C=="string")?x.children=[x.children.join("")]:x.children.forEach(C=>{h._collapse(C)}))}}class s extends h{constructor(x){super(),this.options=x}addText(x){x!==""&&this.add(x)}startScope(x){this.openNode(x)}endScope(){this.closeNode()}__addSublanguage(x,C){const D=x.root;C&&(D.scope=`language:${C}`),this.add(D)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function c(d){return d?typeof d=="string"?d:d.source:null}function o(d){return m("(?=",d,")")}function l(d){return m("(?:",d,")*")}function f(d){return m("(?:",d,")?")}function m(...d){return d.map(x=>c(x)).join("")}function g(d){const x=d[d.length-1];return typeof x=="object"&&x.constructor===Object?(d.splice(d.length-1,1),x):{}}function _(...d){return"("+(g(d).capture?"":"?:")+d.map(x=>c(x)).join("|")+")"}function E(d){return new RegExp(d.toString()+"|").exec("").length-1}function v(d,x){const C=d&&d.exec(x);return C&&C.index===0}const w=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(d,{joinWith:x}){let C=0;return d.map(D=>{C+=1;const X=C;let Q=c(D),M="";for(;Q.length>0;){const O=w.exec(Q);if(!O){M+=Q;break}M+=Q.substring(0,O.index),Q=Q.substring(O.index+O[0].length),O[0][0]==="\\"&&O[1]?M+="\\"+String(Number(O[1])+X):(M+=O[0],O[0]==="("&&C++)}return M}).map(D=>`(${D})`).join(x)}const A=/\b\B/,$="[a-zA-Z]\\w*",L="[a-zA-Z_]\\w*",B="\\b\\d+(\\.\\d+)?",P="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",J="\\b(0b[01]+)",q="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ee=(d={})=>{const x=/^#![ ]*\//;return d.binary&&(d.begin=m(x,/.*\b/,d.binary,/\b.*/)),r({scope:"meta",begin:x,end:/$/,relevance:0,"on:begin":(C,D)=>{C.index!==0&&D.ignoreMatch()}},d)},he={begin:"\\\\[\\s\\S]",relevance:0},R={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[he]},Ne={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[he]},W={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Y=function(d,x,C={}){const D=r({scope:"comment",begin:d,end:x,contains:[]},C);D.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const X=_("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return D.contains.push({begin:m(/[ ]+/,"(",X,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),D},ae=Y("//","$"),ce=Y("/\\*","\\*/"),ye=Y("#","$"),Ae={scope:"number",begin:B,relevance:0},j={scope:"number",begin:P,relevance:0},De={scope:"number",begin:J,relevance:0},Pe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[he,{begin:/\[/,end:/\]/,relevance:0,contains:[he]}]},St={scope:"title",begin:$,relevance:0},Be={scope:"title",begin:L,relevance:0},kt={begin:"\\.\\s*"+L,relevance:0};var Te=Object.freeze({__proto__:null,APOS_STRING_MODE:R,BACKSLASH_ESCAPE:he,BINARY_NUMBER_MODE:De,BINARY_NUMBER_RE:J,COMMENT:Y,C_BLOCK_COMMENT_MODE:ce,C_LINE_COMMENT_MODE:ae,C_NUMBER_MODE:j,C_NUMBER_RE:P,END_SAME_AS_BEGIN:function(d){return Object.assign(d,{"on:begin":(x,C)=>{C.data._beginMatch=x[1]},"on:end":(x,C)=>{C.data._beginMatch!==x[1]&&C.ignoreMatch()}})},HASH_COMMENT_MODE:ye,IDENT_RE:$,MATCH_NOTHING_RE:A,METHOD_GUARD:kt,NUMBER_MODE:Ae,NUMBER_RE:B,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:Ne,REGEXP_MODE:Pe,RE_STARTERS_RE:q,SHEBANG:Ee,TITLE_MODE:St,UNDERSCORE_IDENT_RE:L,UNDERSCORE_TITLE_MODE:Be});function Ct(d,x){d.input[d.index-1]==="."&&x.ignoreMatch()}function we(d,x){d.className!==void 0&&(d.scope=d.className,delete d.className)}function Ue(d,x){x&&d.beginKeywords&&(d.begin="\\b("+d.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",d.__beforeBegin=Ct,d.keywords=d.keywords||d.beginKeywords,delete d.beginKeywords,d.relevance===void 0&&(d.relevance=0))}function et(d,x){Array.isArray(d.illegal)&&(d.illegal=_(...d.illegal))}function ir(d,x){if(d.match){if(d.begin||d.end)throw new Error("begin & end are not supported with match");d.begin=d.match,delete d.match}}function nr(d,x){d.relevance===void 0&&(d.relevance=1)}const rr=(d,x)=>{if(!d.beforeMatch)return;if(d.starts)throw new Error("beforeMatch cannot be used with starts");const C=Object.assign({},d);Object.keys(d).forEach(D=>{delete d[D]}),d.keywords=C.keywords,d.begin=m(C.beforeMatch,o(C.begin)),d.starts={relevance:0,contains:[Object.assign(C,{endsParent:!0})]},d.relevance=0,delete C.beforeMatch},sr=["of","and","for","in","not","or","if","then","parent","list","value"],or="keyword";function ki(d,x,C=or){const D=Object.create(null);return typeof d=="string"?X(C,d.split(" ")):Array.isArray(d)?X(C,d):Object.keys(d).forEach(function(Q){Object.assign(D,ki(d[Q],x,Q))}),D;function X(Q,M){x&&(M=M.map(O=>O.toLowerCase())),M.forEach(function(O){const I=O.split("|");D[I[0]]=[Q,lr(I[0],I[1])]})}}function lr(d,x){return x?Number(x):ar(d)?0:1}function ar(d){return sr.includes(d.toLowerCase())}const Ci={},Se=d=>{console.error(d)},$i=(d,...x)=>{console.log(`WARN: ${d}`,...x)},Le=(d,x)=>{Ci[`${d}/${x}`]||(console.log(`Deprecated as of ${d}. ${x}`),Ci[`${d}/${x}`]=!0)},tt=new Error;function Oi(d,x,{key:C}){let D=0;const X=d[C],Q={},M={};for(let O=1;O<=x.length;O++)M[O+D]=X[O],Q[O+D]=!0,D+=E(x[O-1]);d[C]=M,d[C]._emit=Q,d[C]._multi=!0}function cr(d){if(Array.isArray(d.begin)){if(d.skip||d.excludeBegin||d.returnBegin)throw Se("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),tt;if(typeof d.beginScope!="object"||d.beginScope===null)throw Se("beginScope must be object"),tt;Oi(d,d.begin,{key:"beginScope"}),d.begin=y(d.begin,{joinWith:""})}}function ur(d){if(Array.isArray(d.end)){if(d.skip||d.excludeEnd||d.returnEnd)throw Se("skip, excludeEnd, returnEnd not compatible with endScope: {}"),tt;if(typeof d.endScope!="object"||d.endScope===null)throw Se("endScope must be object"),tt;Oi(d,d.end,{key:"endScope"}),d.end=y(d.end,{joinWith:""})}}function hr(d){d.scope&&typeof d.scope=="object"&&d.scope!==null&&(d.beginScope=d.scope,delete d.scope)}function dr(d){hr(d),typeof d.beginScope=="string"&&(d.beginScope={_wrap:d.beginScope}),typeof d.endScope=="string"&&(d.endScope={_wrap:d.endScope}),cr(d),ur(d)}function fr(d){function x(M,O){return new RegExp(c(M),"m"+(d.case_insensitive?"i":"")+(d.unicodeRegex?"u":"")+(O?"g":""))}class C{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(O,I){I.position=this.position++,this.matchIndexes[this.matchAt]=I,this.regexes.push([I,O]),this.matchAt+=E(O)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const O=this.regexes.map(I=>I[1]);this.matcherRe=x(y(O,{joinWith:"|"}),!0),this.lastIndex=0}exec(O){this.matcherRe.lastIndex=this.lastIndex;const I=this.matcherRe.exec(O);if(!I)return null;const ie=I.findIndex((He,Ot)=>Ot>0&&He!==void 0),ee=this.matchIndexes[ie];return I.splice(0,ie),Object.assign(I,ee)}}class D{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(O){if(this.multiRegexes[O])return this.multiRegexes[O];const I=new C;return this.rules.slice(O).forEach(([ie,ee])=>I.addRule(ie,ee)),I.compile(),this.multiRegexes[O]=I,I}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(O,I){this.rules.push([O,I]),I.type==="begin"&&this.count++}exec(O){const I=this.getMatcher(this.regexIndex);I.lastIndex=this.lastIndex;let ie=I.exec(O);if(this.resumingScanAtSamePosition()&&!(ie&&ie.index===this.lastIndex)){const ee=this.getMatcher(0);ee.lastIndex=this.lastIndex+1,ie=ee.exec(O)}return ie&&(this.regexIndex+=ie.position+1,this.regexIndex===this.count&&this.considerAll()),ie}}function X(M){const O=new D;return M.contains.forEach(I=>O.addRule(I.begin,{rule:I,type:"begin"})),M.terminatorEnd&&O.addRule(M.terminatorEnd,{type:"end"}),M.illegal&&O.addRule(M.illegal,{type:"illegal"}),O}function Q(M,O){const I=M;if(M.isCompiled)return I;[we,ir,dr,rr].forEach(ee=>ee(M,O)),d.compilerExtensions.forEach(ee=>ee(M,O)),M.__beforeBegin=null,[Ue,et,nr].forEach(ee=>ee(M,O)),M.isCompiled=!0;let ie=null;return typeof M.keywords=="object"&&M.keywords.$pattern&&(M.keywords=Object.assign({},M.keywords),ie=M.keywords.$pattern,delete M.keywords.$pattern),ie=ie||/\w+/,M.keywords&&(M.keywords=ki(M.keywords,d.case_insensitive)),I.keywordPatternRe=x(ie,!0),O&&(M.begin||(M.begin=/\B|\b/),I.beginRe=x(I.begin),!M.end&&!M.endsWithParent&&(M.end=/\B|\b/),M.end&&(I.endRe=x(I.end)),I.terminatorEnd=c(I.end)||"",M.endsWithParent&&O.terminatorEnd&&(I.terminatorEnd+=(M.end?"|":"")+O.terminatorEnd)),M.illegal&&(I.illegalRe=x(M.illegal)),M.contains||(M.contains=[]),M.contains=[].concat(...M.contains.map(function(ee){return pr(ee==="self"?M:ee)})),M.contains.forEach(function(ee){Q(ee,I)}),M.starts&&Q(M.starts,O),I.matcher=X(I),I}if(d.compilerExtensions||(d.compilerExtensions=[]),d.contains&&d.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return d.classNameAliases=r(d.classNameAliases||{}),Q(d)}function Ri(d){return d?d.endsWithParent||Ri(d.starts):!1}function pr(d){return d.variants&&!d.cachedVariants&&(d.cachedVariants=d.variants.map(function(x){return r(d,{variants:null},x)})),d.cachedVariants?d.cachedVariants:Ri(d)?r(d,{starts:d.starts?r(d.starts):null}):Object.isFrozen(d)?r(d):d}var mr="11.11.1";class gr extends Error{constructor(x,C){super(x),this.name="HTMLInjectionError",this.html=C}}const $t=i,Mi=r,Ni=Symbol("nomatch"),br=7,Pi=function(d){const x=Object.create(null),C=Object.create(null),D=[];let X=!0;const Q="Could not find the language '{}', did you forget to load/include a language module?",M={disableAutodetect:!0,name:"Plain text",contains:[]};let O={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:s};function I(S){return O.noHighlightRe.test(S)}function ie(S){let T=S.className+" ";T+=S.parentNode?S.parentNode.className:"";const H=O.languageDetectRe.exec(T);if(H){const G=ve(H[1]);return G||($i(Q.replace("{}",H[1])),$i("Falling back to no-highlight mode for this block.",S)),G?H[1]:"no-highlight"}return T.split(/\s+/).find(G=>I(G)||ve(G))}function ee(S,T,H){let G="",te="";typeof T=="object"?(G=S,H=T.ignoreIllegals,te=T.language):(Le("10.7.0","highlight(lang, code, ...args) has been deprecated."),Le("10.7.0",`Please use highlight(code, options) instead.
332
- https://github.com/highlightjs/highlight.js/issues/2277`),te=S,G=T),H===void 0&&(H=!0);const fe={code:G,language:te};nt("before:highlight",fe);const xe=fe.result?fe.result:He(fe.language,fe.code,H);return xe.code=fe.code,nt("after:highlight",xe),xe}function He(S,T,H,G){const te=Object.create(null);function fe(k,N){return k.keywords[N]}function xe(){if(!z.keywords){ne.addText(Z);return}let k=0;z.keywordPatternRe.lastIndex=0;let N=z.keywordPatternRe.exec(Z),U="";for(;N;){U+=Z.substring(k,N.index);const F=me.case_insensitive?N[0].toLowerCase():N[0],re=fe(z,F);if(re){const[be,Tr]=re;if(ne.addText(U),U="",te[F]=(te[F]||0)+1,te[F]<=br&&(ot+=Tr),be.startsWith("_"))U+=N[0];else{const Lr=me.classNameAliases[be]||be;pe(N[0],Lr)}}else U+=N[0];k=z.keywordPatternRe.lastIndex,N=z.keywordPatternRe.exec(Z)}U+=Z.substring(k),ne.addText(U)}function rt(){if(Z==="")return;let k=null;if(typeof z.subLanguage=="string"){if(!x[z.subLanguage]){ne.addText(Z);return}k=He(z.subLanguage,Z,!0,Ui[z.subLanguage]),Ui[z.subLanguage]=k._top}else k=Rt(Z,z.subLanguage.length?z.subLanguage:null);z.relevance>0&&(ot+=k.relevance),ne.__addSublanguage(k._emitter,k.language)}function ue(){z.subLanguage!=null?rt():xe(),Z=""}function pe(k,N){k!==""&&(ne.startScope(N),ne.addText(k),ne.endScope())}function ji(k,N){let U=1;const F=N.length-1;for(;U<=F;){if(!k._emit[U]){U++;continue}const re=me.classNameAliases[k[U]]||k[U],be=N[U];re?pe(be,re):(Z=be,xe(),Z=""),U++}}function zi(k,N){return k.scope&&typeof k.scope=="string"&&ne.openNode(me.classNameAliases[k.scope]||k.scope),k.beginScope&&(k.beginScope._wrap?(pe(Z,me.classNameAliases[k.beginScope._wrap]||k.beginScope._wrap),Z=""):k.beginScope._multi&&(ji(k.beginScope,N),Z="")),z=Object.create(k,{parent:{value:z}}),z}function Di(k,N,U){let F=v(k.endRe,U);if(F){if(k["on:end"]){const re=new e(k);k["on:end"](N,re),re.isMatchIgnored&&(F=!1)}if(F){for(;k.endsParent&&k.parent;)k=k.parent;return k}}if(k.endsWithParent)return Di(k.parent,N,U)}function Or(k){return z.matcher.regexIndex===0?(Z+=k[0],1):(Tt=!0,0)}function Rr(k){const N=k[0],U=k.rule,F=new e(U),re=[U.__beforeBegin,U["on:begin"]];for(const be of re)if(be&&(be(k,F),F.isMatchIgnored))return Or(N);return U.skip?Z+=N:(U.excludeBegin&&(Z+=N),ue(),!U.returnBegin&&!U.excludeBegin&&(Z=N)),zi(U,k),U.returnBegin?0:N.length}function Mr(k){const N=k[0],U=T.substring(k.index),F=Di(z,k,U);if(!F)return Ni;const re=z;z.endScope&&z.endScope._wrap?(ue(),pe(N,z.endScope._wrap)):z.endScope&&z.endScope._multi?(ue(),ji(z.endScope,k)):re.skip?Z+=N:(re.returnEnd||re.excludeEnd||(Z+=N),ue(),re.excludeEnd&&(Z=N));do z.scope&&ne.closeNode(),!z.skip&&!z.subLanguage&&(ot+=z.relevance),z=z.parent;while(z!==F.parent);return F.starts&&zi(F.starts,k),re.returnEnd?0:N.length}function Nr(){const k=[];for(let N=z;N!==me;N=N.parent)N.scope&&k.unshift(N.scope);k.forEach(N=>ne.openNode(N))}let st={};function Bi(k,N){const U=N&&N[0];if(Z+=k,U==null)return ue(),0;if(st.type==="begin"&&N.type==="end"&&st.index===N.index&&U===""){if(Z+=T.slice(N.index,N.index+1),!X){const F=new Error(`0 width match regex (${S})`);throw F.languageName=S,F.badRule=st.rule,F}return 1}if(st=N,N.type==="begin")return Rr(N);if(N.type==="illegal"&&!H){const F=new Error('Illegal lexeme "'+U+'" for mode "'+(z.scope||"<unnamed>")+'"');throw F.mode=z,F}else if(N.type==="end"){const F=Mr(N);if(F!==Ni)return F}if(N.type==="illegal"&&U==="")return Z+=`
333
- `,1;if(Pt>1e5&&Pt>N.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=U,U.length}const me=ve(S);if(!me)throw Se(Q.replace("{}",S)),new Error('Unknown language: "'+S+'"');const Pr=fr(me);let Nt="",z=G||Pr;const Ui={},ne=new O.__emitter(O);Nr();let Z="",ot=0,ke=0,Pt=0,Tt=!1;try{if(me.__emitTokens)me.__emitTokens(T,ne);else{for(z.matcher.considerAll();;){Pt++,Tt?Tt=!1:z.matcher.considerAll(),z.matcher.lastIndex=ke;const k=z.matcher.exec(T);if(!k)break;const N=T.substring(ke,k.index),U=Bi(N,k);ke=k.index+U}Bi(T.substring(ke))}return ne.finalize(),Nt=ne.toHTML(),{language:S,value:Nt,relevance:ot,illegal:!1,_emitter:ne,_top:z}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:S,value:$t(T),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:ke,context:T.slice(ke-100,ke+100),mode:k.mode,resultSoFar:Nt},_emitter:ne};if(X)return{language:S,value:$t(T),illegal:!1,relevance:0,errorRaised:k,_emitter:ne,_top:z};throw k}}function Ot(S){const T={value:$t(S),illegal:!1,relevance:0,_top:M,_emitter:new O.__emitter(O)};return T._emitter.addText(S),T}function Rt(S,T){T=T||O.languages||Object.keys(x);const H=Ot(S),G=T.filter(ve).filter(Ii).map(ue=>He(ue,S,!1));G.unshift(H);const te=G.sort((ue,pe)=>{if(ue.relevance!==pe.relevance)return pe.relevance-ue.relevance;if(ue.language&&pe.language){if(ve(ue.language).supersetOf===pe.language)return 1;if(ve(pe.language).supersetOf===ue.language)return-1}return 0}),[fe,xe]=te,rt=fe;return rt.secondBest=xe,rt}function yr(S,T,H){const G=T&&C[T]||H;S.classList.add("hljs"),S.classList.add(`language-${G}`)}function Mt(S){let T=null;const H=ie(S);if(I(H))return;if(nt("before:highlightElement",{el:S,language:H}),S.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",S);return}if(S.children.length>0&&(O.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(S)),O.throwUnescapedHTML))throw new gr("One of your code blocks includes unescaped HTML.",S.innerHTML);T=S;const G=T.textContent,te=H?ee(G,{language:H,ignoreIllegals:!0}):Rt(G);S.innerHTML=te.value,S.dataset.highlighted="yes",yr(S,H,te.language),S.result={language:te.language,re:te.relevance,relevance:te.relevance},te.secondBest&&(S.secondBest={language:te.secondBest.language,relevance:te.secondBest.relevance}),nt("after:highlightElement",{el:S,result:te,text:G})}function wr(S){O=Mi(O,S)}const vr=()=>{it(),Le("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function xr(){it(),Le("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ti=!1;function it(){function S(){it()}if(document.readyState==="loading"){Ti||window.addEventListener("DOMContentLoaded",S,!1),Ti=!0;return}document.querySelectorAll(O.cssSelector).forEach(Mt)}function _r(S,T){let H=null;try{H=T(d)}catch(G){if(Se("Language definition for '{}' could not be registered.".replace("{}",S)),X)Se(G);else throw G;H=M}H.name||(H.name=S),x[S]=H,H.rawDefinition=T.bind(null,d),H.aliases&&Li(H.aliases,{languageName:S})}function Er(S){delete x[S];for(const T of Object.keys(C))C[T]===S&&delete C[T]}function Ar(){return Object.keys(x)}function ve(S){return S=(S||"").toLowerCase(),x[S]||x[C[S]]}function Li(S,{languageName:T}){typeof S=="string"&&(S=[S]),S.forEach(H=>{C[H.toLowerCase()]=T})}function Ii(S){const T=ve(S);return T&&!T.disableAutodetect}function Sr(S){S["before:highlightBlock"]&&!S["before:highlightElement"]&&(S["before:highlightElement"]=T=>{S["before:highlightBlock"](Object.assign({block:T.el},T))}),S["after:highlightBlock"]&&!S["after:highlightElement"]&&(S["after:highlightElement"]=T=>{S["after:highlightBlock"](Object.assign({block:T.el},T))})}function kr(S){Sr(S),D.push(S)}function Cr(S){const T=D.indexOf(S);T!==-1&&D.splice(T,1)}function nt(S,T){const H=S;D.forEach(function(G){G[H]&&G[H](T)})}function $r(S){return Le("10.7.0","highlightBlock will be removed entirely in v12.0"),Le("10.7.0","Please use highlightElement now."),Mt(S)}Object.assign(d,{highlight:ee,highlightAuto:Rt,highlightAll:it,highlightElement:Mt,highlightBlock:$r,configure:wr,initHighlighting:vr,initHighlightingOnLoad:xr,registerLanguage:_r,unregisterLanguage:Er,listLanguages:Ar,getLanguage:ve,registerAliases:Li,autoDetection:Ii,inherit:Mi,addPlugin:kr,removePlugin:Cr}),d.debugMode=function(){X=!1},d.safeMode=function(){X=!0},d.versionString=mr,d.regex={concat:m,lookahead:o,either:_,optional:f,anyNumberOfTimes:l};for(const S in Te)typeof Te[S]=="object"&&n(Te[S]);return Object.assign(d,Te),d},Ie=Pi({});return Ie.newInstance=()=>Pi({}),ci=Ie,Ie.HighlightJS=Ie,Ie.default=Ie,ci}var lo=oo();const At=so(lo),gt="[A-Za-z$_][0-9A-Za-z$_]*",Vn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Jn=["true","false","null","undefined","NaN","Infinity"],Kn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Xn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Qn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Yn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],er=[].concat(Qn,Kn,Xn);function ao(n){const e=n.regex,i=(W,{after:Y})=>{const ae="</"+W[0].slice(1);return W.input.indexOf(ae,Y)!==-1},r=gt,t={begin:"<>",end:"</>"},u=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,Y)=>{const ae=W[0].length+W.index,ce=W.input[ae];if(ce==="<"||ce===","){Y.ignoreMatch();return}ce===">"&&(i(W,{after:ae})||Y.ignoreMatch());let ye;const Ae=W.input.substring(ae);if(ye=Ae.match(/^\s*=/)){Y.ignoreMatch();return}if((ye=Ae.match(/^\s+extends\s+/))&&ye.index===0){Y.ignoreMatch();return}}},p={$pattern:gt,keyword:Vn,literal:Jn,built_in:er,"variable.language":Yn},b="[0-9](_?[0-9])*",h=`\\.(${b})`,s="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${s})((${h})|\\.)?|(${h}))[eE][+-]?(${b})\\b`},{begin:`\\b(${s})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:p,contains:[]},l={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,o],subLanguage:"xml"}},f={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,o],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,o],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,o]},_={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},E=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,l,f,m,g,{match:/\$\d+/},c];o.contains=E.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(E)});const v=[].concat(_,o.contains),w=v.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(v)}]),y={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:w},A={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},$={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:{_:[...Kn,...Xn]}},L={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},B={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},P={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function J(W){return e.concat("(?!",W.join("|"),")")}const q={match:e.concat(/\b/,J([...Qn,"super","import"].map(W=>`${W}\\s*\\(`)),r,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Ee={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},he={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},R="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",Ne={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(R)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:$},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),L,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,l,f,m,g,_,{match:/\$\d+/},c,$,{scope:"attr",match:r+e.lookahead(":"),relevance:0},Ne,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,n.REGEXP_MODE,{className:"function",begin:R,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:t.begin,end:t.end},{match:u},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},B,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,n.inherit(n.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ee,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},q,P,A,he,{match:/\$[(.]/}]}}function co(n){const e=n.regex,i=ao(n),r=gt,t=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],u={begin:[/namespace/,/\s+/,n.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:t},contains:[i.exports.CLASS_REFERENCE]},p={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},b=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:gt,keyword:Vn.concat(b),literal:Jn,built_in:er.concat(t),"variable.language":Yn},s={className:"meta",begin:"@"+r},c=(m,g,_)=>{const E=m.contains.findIndex(v=>v.label===g);if(E===-1)throw new Error("can not find mode to replace");m.contains.splice(E,1,_)};Object.assign(i.keywords,h),i.exports.PARAMS_CONTAINS.push(s);const o=i.contains.find(m=>m.scope==="attr"),l=Object.assign({},o,{match:e.concat(r,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,o,l]),i.contains=i.contains.concat([s,u,a,l]),c(i,"shebang",n.SHEBANG()),c(i,"use_strict",p);const f=i.contains.find(m=>m.label==="func.def");return f.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function uo(n){const e=n.regex,i=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,t={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},u={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=n.inherit(u,{begin:/\(/,end:/\)/}),p=n.inherit(n.APOS_STRING_MODE,{className:"string"}),b=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[t]},{begin:/'/,end:/'/,contains:[t]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[u,b,p,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[u,a,b,p]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},t,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[b]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(i,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:h}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const ho=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.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:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.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_-]*/}}),fo=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],po=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],mo=[...fo,...po],go=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),bo=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),yo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),wo=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function vo(n){const e=n.regex,i=ho(n),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},t="and or not only",u=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",p=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,r,i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+bo.join("|")+")"},{begin:":(:)?("+yo.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+wo.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,...p,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...p,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:u},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:t,attribute:go.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+mo.join("|")+")\\b"}]}}const tr=document.createElement("style");tr.innerText=[no,ro].join(`
331
+ https://www.w3ctech.com/topic/2226`));let J=A(...P);return J.postcssPlugin=y,J.postcssVersion=new l().version,J}let B;return Object.defineProperty(L,"postcss",{get(){return B||(B=L()),B}}),L.process=function(P,J,H){return v([L(H)]).process(P,J)},L},v.stringify=_,v.parse=o,v.fromJSON=p,v.list=s,v.comment=w=>new i(w),v.atRule=w=>new e(w),v.decl=w=>new u(w),v.rule=w=>new g(w),v.root=w=>new m(w),v.document=w=>new a(w),v.CssSyntaxError=t,v.Declaration=u,v.Container=r,v.Processor=l,v.Document=a,v.Comment=i,v.Warning=E,v.AtRule=e,v.Result=f,v.Input=b,v.Rule=g,v.Root=m,v.Node=c,h.registerPostcss(v),li=v,v.default=v,li}var Ys=Qs();const V=Un(Ys);V.stringify;V.fromJSON;V.plugin;V.parse;V.list;V.document;V.comment;V.atRule;V.rule;V.decl;V.root;V.CssSyntaxError;V.Declaration;V.Container;V.Processor;V.Document;V.Comment;V.Warning;V.AtRule;V.Result;V.Input;V.Rule;V.Root;V.Node;var ai,On;function eo(){if(On)return ai;On=1;const n=(r={})=>{const t=r.prefix,u=/\s+$/.test(t)?t:`${t} `,a=r.ignoreFiles?[].concat(r.ignoreFiles):[],p=r.includeFiles?[].concat(r.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(b){const h=b.root,s=h.source.input.file;if(!(a.length&&s&&e(s,a))&&!(p.length&&s&&!e(s,p)))return{Rule(c,{result:o}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];c.parent&&l.includes(c.parent.name)||(c.selectors=c.selectors.map(f=>r.exclude&&i(f,r.exclude)?f:r.transform?r.transform(t,f,u+f,h.source.input.file,c):[":root","body","html"].some(m=>f.startsWith(m))?r.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,t):u+f))}}}}};function e(r,t){return t.some(u=>u instanceof RegExp?u.test(r):r.includes(u))}function i(r,t){return t.some(u=>u instanceof RegExp?u.test(r):r===u)}return n.postcss=!0,ai=n,ai}var to=eo();const io=Un(to),no="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}",ro="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 so(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ci,Rn;function oo(){if(Rn)return ci;Rn=1;function n(d){return d instanceof Map?d.clear=d.delete=d.set=function(){throw new Error("map is read-only")}:d instanceof Set&&(d.add=d.clear=d.delete=function(){throw new Error("set is read-only")}),Object.freeze(d),Object.getOwnPropertyNames(d).forEach(x=>{const C=d[x],D=typeof C;(D==="object"||D==="function")&&!Object.isFrozen(C)&&n(C)}),d}class e{constructor(x){x.data===void 0&&(x.data={}),this.data=x.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(d){return d.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(d,...x){const C=Object.create(null);for(const D in d)C[D]=d[D];return x.forEach(function(D){for(const X in D)C[X]=D[X]}),C}const t="</span>",u=d=>!!d.scope,a=(d,{prefix:x})=>{if(d.startsWith("language:"))return d.replace("language:","language-");if(d.includes(".")){const C=d.split(".");return[`${x}${C.shift()}`,...C.map((D,X)=>`${D}${"_".repeat(X+1)}`)].join(" ")}return`${x}${d}`};class p{constructor(x,C){this.buffer="",this.classPrefix=C.classPrefix,x.walk(this)}addText(x){this.buffer+=i(x)}openNode(x){if(!u(x))return;const C=a(x.scope,{prefix:this.classPrefix});this.span(C)}closeNode(x){u(x)&&(this.buffer+=t)}value(){return this.buffer}span(x){this.buffer+=`<span class="${x}">`}}const b=(d={})=>{const x={children:[]};return Object.assign(x,d),x};class h{constructor(){this.rootNode=b(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(x){this.top.children.push(x)}openNode(x){const C=b({scope:x});this.add(C),this.stack.push(C)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(x){return this.constructor._walk(x,this.rootNode)}static _walk(x,C){return typeof C=="string"?x.addText(C):C.children&&(x.openNode(C),C.children.forEach(D=>this._walk(x,D)),x.closeNode(C)),x}static _collapse(x){typeof x!="string"&&x.children&&(x.children.every(C=>typeof C=="string")?x.children=[x.children.join("")]:x.children.forEach(C=>{h._collapse(C)}))}}class s extends h{constructor(x){super(),this.options=x}addText(x){x!==""&&this.add(x)}startScope(x){this.openNode(x)}endScope(){this.closeNode()}__addSublanguage(x,C){const D=x.root;C&&(D.scope=`language:${C}`),this.add(D)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function c(d){return d?typeof d=="string"?d:d.source:null}function o(d){return m("(?=",d,")")}function l(d){return m("(?:",d,")*")}function f(d){return m("(?:",d,")?")}function m(...d){return d.map(x=>c(x)).join("")}function g(d){const x=d[d.length-1];return typeof x=="object"&&x.constructor===Object?(d.splice(d.length-1,1),x):{}}function _(...d){return"("+(g(d).capture?"":"?:")+d.map(x=>c(x)).join("|")+")"}function E(d){return new RegExp(d.toString()+"|").exec("").length-1}function v(d,x){const C=d&&d.exec(x);return C&&C.index===0}const w=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(d,{joinWith:x}){let C=0;return d.map(D=>{C+=1;const X=C;let Q=c(D),M="";for(;Q.length>0;){const O=w.exec(Q);if(!O){M+=Q;break}M+=Q.substring(0,O.index),Q=Q.substring(O.index+O[0].length),O[0][0]==="\\"&&O[1]?M+="\\"+String(Number(O[1])+X):(M+=O[0],O[0]==="("&&C++)}return M}).map(D=>`(${D})`).join(x)}const A=/\b\B/,$="[a-zA-Z]\\w*",L="[a-zA-Z_]\\w*",B="\\b\\d+(\\.\\d+)?",P="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",J="\\b(0b[01]+)",H="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ee=(d={})=>{const x=/^#![ ]*\//;return d.binary&&(d.begin=m(x,/.*\b/,d.binary,/\b.*/)),r({scope:"meta",begin:x,end:/$/,relevance:0,"on:begin":(C,D)=>{C.index!==0&&D.ignoreMatch()}},d)},he={begin:"\\\\[\\s\\S]",relevance:0},R={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[he]},Ne={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[he]},W={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Y=function(d,x,C={}){const D=r({scope:"comment",begin:d,end:x,contains:[]},C);D.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const X=_("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return D.contains.push({begin:m(/[ ]+/,"(",X,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),D},ae=Y("//","$"),ce=Y("/\\*","\\*/"),ye=Y("#","$"),Ae={scope:"number",begin:B,relevance:0},j={scope:"number",begin:P,relevance:0},De={scope:"number",begin:J,relevance:0},Pe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[he,{begin:/\[/,end:/\]/,relevance:0,contains:[he]}]},St={scope:"title",begin:$,relevance:0},Be={scope:"title",begin:L,relevance:0},kt={begin:"\\.\\s*"+L,relevance:0};var Te=Object.freeze({__proto__:null,APOS_STRING_MODE:R,BACKSLASH_ESCAPE:he,BINARY_NUMBER_MODE:De,BINARY_NUMBER_RE:J,COMMENT:Y,C_BLOCK_COMMENT_MODE:ce,C_LINE_COMMENT_MODE:ae,C_NUMBER_MODE:j,C_NUMBER_RE:P,END_SAME_AS_BEGIN:function(d){return Object.assign(d,{"on:begin":(x,C)=>{C.data._beginMatch=x[1]},"on:end":(x,C)=>{C.data._beginMatch!==x[1]&&C.ignoreMatch()}})},HASH_COMMENT_MODE:ye,IDENT_RE:$,MATCH_NOTHING_RE:A,METHOD_GUARD:kt,NUMBER_MODE:Ae,NUMBER_RE:B,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:Ne,REGEXP_MODE:Pe,RE_STARTERS_RE:H,SHEBANG:Ee,TITLE_MODE:St,UNDERSCORE_IDENT_RE:L,UNDERSCORE_TITLE_MODE:Be});function Ct(d,x){d.input[d.index-1]==="."&&x.ignoreMatch()}function we(d,x){d.className!==void 0&&(d.scope=d.className,delete d.className)}function Ue(d,x){x&&d.beginKeywords&&(d.begin="\\b("+d.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",d.__beforeBegin=Ct,d.keywords=d.keywords||d.beginKeywords,delete d.beginKeywords,d.relevance===void 0&&(d.relevance=0))}function et(d,x){Array.isArray(d.illegal)&&(d.illegal=_(...d.illegal))}function ir(d,x){if(d.match){if(d.begin||d.end)throw new Error("begin & end are not supported with match");d.begin=d.match,delete d.match}}function nr(d,x){d.relevance===void 0&&(d.relevance=1)}const rr=(d,x)=>{if(!d.beforeMatch)return;if(d.starts)throw new Error("beforeMatch cannot be used with starts");const C=Object.assign({},d);Object.keys(d).forEach(D=>{delete d[D]}),d.keywords=C.keywords,d.begin=m(C.beforeMatch,o(C.begin)),d.starts={relevance:0,contains:[Object.assign(C,{endsParent:!0})]},d.relevance=0,delete C.beforeMatch},sr=["of","and","for","in","not","or","if","then","parent","list","value"],or="keyword";function ki(d,x,C=or){const D=Object.create(null);return typeof d=="string"?X(C,d.split(" ")):Array.isArray(d)?X(C,d):Object.keys(d).forEach(function(Q){Object.assign(D,ki(d[Q],x,Q))}),D;function X(Q,M){x&&(M=M.map(O=>O.toLowerCase())),M.forEach(function(O){const I=O.split("|");D[I[0]]=[Q,lr(I[0],I[1])]})}}function lr(d,x){return x?Number(x):ar(d)?0:1}function ar(d){return sr.includes(d.toLowerCase())}const Ci={},Se=d=>{console.error(d)},$i=(d,...x)=>{console.log(`WARN: ${d}`,...x)},Le=(d,x)=>{Ci[`${d}/${x}`]||(console.log(`Deprecated as of ${d}. ${x}`),Ci[`${d}/${x}`]=!0)},tt=new Error;function Oi(d,x,{key:C}){let D=0;const X=d[C],Q={},M={};for(let O=1;O<=x.length;O++)M[O+D]=X[O],Q[O+D]=!0,D+=E(x[O-1]);d[C]=M,d[C]._emit=Q,d[C]._multi=!0}function cr(d){if(Array.isArray(d.begin)){if(d.skip||d.excludeBegin||d.returnBegin)throw Se("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),tt;if(typeof d.beginScope!="object"||d.beginScope===null)throw Se("beginScope must be object"),tt;Oi(d,d.begin,{key:"beginScope"}),d.begin=y(d.begin,{joinWith:""})}}function ur(d){if(Array.isArray(d.end)){if(d.skip||d.excludeEnd||d.returnEnd)throw Se("skip, excludeEnd, returnEnd not compatible with endScope: {}"),tt;if(typeof d.endScope!="object"||d.endScope===null)throw Se("endScope must be object"),tt;Oi(d,d.end,{key:"endScope"}),d.end=y(d.end,{joinWith:""})}}function hr(d){d.scope&&typeof d.scope=="object"&&d.scope!==null&&(d.beginScope=d.scope,delete d.scope)}function dr(d){hr(d),typeof d.beginScope=="string"&&(d.beginScope={_wrap:d.beginScope}),typeof d.endScope=="string"&&(d.endScope={_wrap:d.endScope}),cr(d),ur(d)}function fr(d){function x(M,O){return new RegExp(c(M),"m"+(d.case_insensitive?"i":"")+(d.unicodeRegex?"u":"")+(O?"g":""))}class C{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(O,I){I.position=this.position++,this.matchIndexes[this.matchAt]=I,this.regexes.push([I,O]),this.matchAt+=E(O)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const O=this.regexes.map(I=>I[1]);this.matcherRe=x(y(O,{joinWith:"|"}),!0),this.lastIndex=0}exec(O){this.matcherRe.lastIndex=this.lastIndex;const I=this.matcherRe.exec(O);if(!I)return null;const ie=I.findIndex((qe,Ot)=>Ot>0&&qe!==void 0),ee=this.matchIndexes[ie];return I.splice(0,ie),Object.assign(I,ee)}}class D{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(O){if(this.multiRegexes[O])return this.multiRegexes[O];const I=new C;return this.rules.slice(O).forEach(([ie,ee])=>I.addRule(ie,ee)),I.compile(),this.multiRegexes[O]=I,I}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(O,I){this.rules.push([O,I]),I.type==="begin"&&this.count++}exec(O){const I=this.getMatcher(this.regexIndex);I.lastIndex=this.lastIndex;let ie=I.exec(O);if(this.resumingScanAtSamePosition()&&!(ie&&ie.index===this.lastIndex)){const ee=this.getMatcher(0);ee.lastIndex=this.lastIndex+1,ie=ee.exec(O)}return ie&&(this.regexIndex+=ie.position+1,this.regexIndex===this.count&&this.considerAll()),ie}}function X(M){const O=new D;return M.contains.forEach(I=>O.addRule(I.begin,{rule:I,type:"begin"})),M.terminatorEnd&&O.addRule(M.terminatorEnd,{type:"end"}),M.illegal&&O.addRule(M.illegal,{type:"illegal"}),O}function Q(M,O){const I=M;if(M.isCompiled)return I;[we,ir,dr,rr].forEach(ee=>ee(M,O)),d.compilerExtensions.forEach(ee=>ee(M,O)),M.__beforeBegin=null,[Ue,et,nr].forEach(ee=>ee(M,O)),M.isCompiled=!0;let ie=null;return typeof M.keywords=="object"&&M.keywords.$pattern&&(M.keywords=Object.assign({},M.keywords),ie=M.keywords.$pattern,delete M.keywords.$pattern),ie=ie||/\w+/,M.keywords&&(M.keywords=ki(M.keywords,d.case_insensitive)),I.keywordPatternRe=x(ie,!0),O&&(M.begin||(M.begin=/\B|\b/),I.beginRe=x(I.begin),!M.end&&!M.endsWithParent&&(M.end=/\B|\b/),M.end&&(I.endRe=x(I.end)),I.terminatorEnd=c(I.end)||"",M.endsWithParent&&O.terminatorEnd&&(I.terminatorEnd+=(M.end?"|":"")+O.terminatorEnd)),M.illegal&&(I.illegalRe=x(M.illegal)),M.contains||(M.contains=[]),M.contains=[].concat(...M.contains.map(function(ee){return pr(ee==="self"?M:ee)})),M.contains.forEach(function(ee){Q(ee,I)}),M.starts&&Q(M.starts,O),I.matcher=X(I),I}if(d.compilerExtensions||(d.compilerExtensions=[]),d.contains&&d.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return d.classNameAliases=r(d.classNameAliases||{}),Q(d)}function Ri(d){return d?d.endsWithParent||Ri(d.starts):!1}function pr(d){return d.variants&&!d.cachedVariants&&(d.cachedVariants=d.variants.map(function(x){return r(d,{variants:null},x)})),d.cachedVariants?d.cachedVariants:Ri(d)?r(d,{starts:d.starts?r(d.starts):null}):Object.isFrozen(d)?r(d):d}var mr="11.11.1";class gr extends Error{constructor(x,C){super(x),this.name="HTMLInjectionError",this.html=C}}const $t=i,Mi=r,Ni=Symbol("nomatch"),br=7,Pi=function(d){const x=Object.create(null),C=Object.create(null),D=[];let X=!0;const Q="Could not find the language '{}', did you forget to load/include a language module?",M={disableAutodetect:!0,name:"Plain text",contains:[]};let O={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:s};function I(S){return O.noHighlightRe.test(S)}function ie(S){let T=S.className+" ";T+=S.parentNode?S.parentNode.className:"";const q=O.languageDetectRe.exec(T);if(q){const G=ve(q[1]);return G||($i(Q.replace("{}",q[1])),$i("Falling back to no-highlight mode for this block.",S)),G?q[1]:"no-highlight"}return T.split(/\s+/).find(G=>I(G)||ve(G))}function ee(S,T,q){let G="",te="";typeof T=="object"?(G=S,q=T.ignoreIllegals,te=T.language):(Le("10.7.0","highlight(lang, code, ...args) has been deprecated."),Le("10.7.0",`Please use highlight(code, options) instead.
332
+ https://github.com/highlightjs/highlight.js/issues/2277`),te=S,G=T),q===void 0&&(q=!0);const fe={code:G,language:te};nt("before:highlight",fe);const xe=fe.result?fe.result:qe(fe.language,fe.code,q);return xe.code=fe.code,nt("after:highlight",xe),xe}function qe(S,T,q,G){const te=Object.create(null);function fe(k,N){return k.keywords[N]}function xe(){if(!z.keywords){ne.addText(Z);return}let k=0;z.keywordPatternRe.lastIndex=0;let N=z.keywordPatternRe.exec(Z),U="";for(;N;){U+=Z.substring(k,N.index);const F=me.case_insensitive?N[0].toLowerCase():N[0],re=fe(z,F);if(re){const[be,Tr]=re;if(ne.addText(U),U="",te[F]=(te[F]||0)+1,te[F]<=br&&(ot+=Tr),be.startsWith("_"))U+=N[0];else{const Lr=me.classNameAliases[be]||be;pe(N[0],Lr)}}else U+=N[0];k=z.keywordPatternRe.lastIndex,N=z.keywordPatternRe.exec(Z)}U+=Z.substring(k),ne.addText(U)}function rt(){if(Z==="")return;let k=null;if(typeof z.subLanguage=="string"){if(!x[z.subLanguage]){ne.addText(Z);return}k=qe(z.subLanguage,Z,!0,Ui[z.subLanguage]),Ui[z.subLanguage]=k._top}else k=Rt(Z,z.subLanguage.length?z.subLanguage:null);z.relevance>0&&(ot+=k.relevance),ne.__addSublanguage(k._emitter,k.language)}function ue(){z.subLanguage!=null?rt():xe(),Z=""}function pe(k,N){k!==""&&(ne.startScope(N),ne.addText(k),ne.endScope())}function ji(k,N){let U=1;const F=N.length-1;for(;U<=F;){if(!k._emit[U]){U++;continue}const re=me.classNameAliases[k[U]]||k[U],be=N[U];re?pe(be,re):(Z=be,xe(),Z=""),U++}}function zi(k,N){return k.scope&&typeof k.scope=="string"&&ne.openNode(me.classNameAliases[k.scope]||k.scope),k.beginScope&&(k.beginScope._wrap?(pe(Z,me.classNameAliases[k.beginScope._wrap]||k.beginScope._wrap),Z=""):k.beginScope._multi&&(ji(k.beginScope,N),Z="")),z=Object.create(k,{parent:{value:z}}),z}function Di(k,N,U){let F=v(k.endRe,U);if(F){if(k["on:end"]){const re=new e(k);k["on:end"](N,re),re.isMatchIgnored&&(F=!1)}if(F){for(;k.endsParent&&k.parent;)k=k.parent;return k}}if(k.endsWithParent)return Di(k.parent,N,U)}function Or(k){return z.matcher.regexIndex===0?(Z+=k[0],1):(Tt=!0,0)}function Rr(k){const N=k[0],U=k.rule,F=new e(U),re=[U.__beforeBegin,U["on:begin"]];for(const be of re)if(be&&(be(k,F),F.isMatchIgnored))return Or(N);return U.skip?Z+=N:(U.excludeBegin&&(Z+=N),ue(),!U.returnBegin&&!U.excludeBegin&&(Z=N)),zi(U,k),U.returnBegin?0:N.length}function Mr(k){const N=k[0],U=T.substring(k.index),F=Di(z,k,U);if(!F)return Ni;const re=z;z.endScope&&z.endScope._wrap?(ue(),pe(N,z.endScope._wrap)):z.endScope&&z.endScope._multi?(ue(),ji(z.endScope,k)):re.skip?Z+=N:(re.returnEnd||re.excludeEnd||(Z+=N),ue(),re.excludeEnd&&(Z=N));do z.scope&&ne.closeNode(),!z.skip&&!z.subLanguage&&(ot+=z.relevance),z=z.parent;while(z!==F.parent);return F.starts&&zi(F.starts,k),re.returnEnd?0:N.length}function Nr(){const k=[];for(let N=z;N!==me;N=N.parent)N.scope&&k.unshift(N.scope);k.forEach(N=>ne.openNode(N))}let st={};function Bi(k,N){const U=N&&N[0];if(Z+=k,U==null)return ue(),0;if(st.type==="begin"&&N.type==="end"&&st.index===N.index&&U===""){if(Z+=T.slice(N.index,N.index+1),!X){const F=new Error(`0 width match regex (${S})`);throw F.languageName=S,F.badRule=st.rule,F}return 1}if(st=N,N.type==="begin")return Rr(N);if(N.type==="illegal"&&!q){const F=new Error('Illegal lexeme "'+U+'" for mode "'+(z.scope||"<unnamed>")+'"');throw F.mode=z,F}else if(N.type==="end"){const F=Mr(N);if(F!==Ni)return F}if(N.type==="illegal"&&U==="")return Z+=`
333
+ `,1;if(Pt>1e5&&Pt>N.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=U,U.length}const me=ve(S);if(!me)throw Se(Q.replace("{}",S)),new Error('Unknown language: "'+S+'"');const Pr=fr(me);let Nt="",z=G||Pr;const Ui={},ne=new O.__emitter(O);Nr();let Z="",ot=0,ke=0,Pt=0,Tt=!1;try{if(me.__emitTokens)me.__emitTokens(T,ne);else{for(z.matcher.considerAll();;){Pt++,Tt?Tt=!1:z.matcher.considerAll(),z.matcher.lastIndex=ke;const k=z.matcher.exec(T);if(!k)break;const N=T.substring(ke,k.index),U=Bi(N,k);ke=k.index+U}Bi(T.substring(ke))}return ne.finalize(),Nt=ne.toHTML(),{language:S,value:Nt,relevance:ot,illegal:!1,_emitter:ne,_top:z}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:S,value:$t(T),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:ke,context:T.slice(ke-100,ke+100),mode:k.mode,resultSoFar:Nt},_emitter:ne};if(X)return{language:S,value:$t(T),illegal:!1,relevance:0,errorRaised:k,_emitter:ne,_top:z};throw k}}function Ot(S){const T={value:$t(S),illegal:!1,relevance:0,_top:M,_emitter:new O.__emitter(O)};return T._emitter.addText(S),T}function Rt(S,T){T=T||O.languages||Object.keys(x);const q=Ot(S),G=T.filter(ve).filter(Ii).map(ue=>qe(ue,S,!1));G.unshift(q);const te=G.sort((ue,pe)=>{if(ue.relevance!==pe.relevance)return pe.relevance-ue.relevance;if(ue.language&&pe.language){if(ve(ue.language).supersetOf===pe.language)return 1;if(ve(pe.language).supersetOf===ue.language)return-1}return 0}),[fe,xe]=te,rt=fe;return rt.secondBest=xe,rt}function yr(S,T,q){const G=T&&C[T]||q;S.classList.add("hljs"),S.classList.add(`language-${G}`)}function Mt(S){let T=null;const q=ie(S);if(I(q))return;if(nt("before:highlightElement",{el:S,language:q}),S.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",S);return}if(S.children.length>0&&(O.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(S)),O.throwUnescapedHTML))throw new gr("One of your code blocks includes unescaped HTML.",S.innerHTML);T=S;const G=T.textContent,te=q?ee(G,{language:q,ignoreIllegals:!0}):Rt(G);S.innerHTML=te.value,S.dataset.highlighted="yes",yr(S,q,te.language),S.result={language:te.language,re:te.relevance,relevance:te.relevance},te.secondBest&&(S.secondBest={language:te.secondBest.language,relevance:te.secondBest.relevance}),nt("after:highlightElement",{el:S,result:te,text:G})}function wr(S){O=Mi(O,S)}const vr=()=>{it(),Le("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function xr(){it(),Le("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ti=!1;function it(){function S(){it()}if(document.readyState==="loading"){Ti||window.addEventListener("DOMContentLoaded",S,!1),Ti=!0;return}document.querySelectorAll(O.cssSelector).forEach(Mt)}function _r(S,T){let q=null;try{q=T(d)}catch(G){if(Se("Language definition for '{}' could not be registered.".replace("{}",S)),X)Se(G);else throw G;q=M}q.name||(q.name=S),x[S]=q,q.rawDefinition=T.bind(null,d),q.aliases&&Li(q.aliases,{languageName:S})}function Er(S){delete x[S];for(const T of Object.keys(C))C[T]===S&&delete C[T]}function Ar(){return Object.keys(x)}function ve(S){return S=(S||"").toLowerCase(),x[S]||x[C[S]]}function Li(S,{languageName:T}){typeof S=="string"&&(S=[S]),S.forEach(q=>{C[q.toLowerCase()]=T})}function Ii(S){const T=ve(S);return T&&!T.disableAutodetect}function Sr(S){S["before:highlightBlock"]&&!S["before:highlightElement"]&&(S["before:highlightElement"]=T=>{S["before:highlightBlock"](Object.assign({block:T.el},T))}),S["after:highlightBlock"]&&!S["after:highlightElement"]&&(S["after:highlightElement"]=T=>{S["after:highlightBlock"](Object.assign({block:T.el},T))})}function kr(S){Sr(S),D.push(S)}function Cr(S){const T=D.indexOf(S);T!==-1&&D.splice(T,1)}function nt(S,T){const q=S;D.forEach(function(G){G[q]&&G[q](T)})}function $r(S){return Le("10.7.0","highlightBlock will be removed entirely in v12.0"),Le("10.7.0","Please use highlightElement now."),Mt(S)}Object.assign(d,{highlight:ee,highlightAuto:Rt,highlightAll:it,highlightElement:Mt,highlightBlock:$r,configure:wr,initHighlighting:vr,initHighlightingOnLoad:xr,registerLanguage:_r,unregisterLanguage:Er,listLanguages:Ar,getLanguage:ve,registerAliases:Li,autoDetection:Ii,inherit:Mi,addPlugin:kr,removePlugin:Cr}),d.debugMode=function(){X=!1},d.safeMode=function(){X=!0},d.versionString=mr,d.regex={concat:m,lookahead:o,either:_,optional:f,anyNumberOfTimes:l};for(const S in Te)typeof Te[S]=="object"&&n(Te[S]);return Object.assign(d,Te),d},Ie=Pi({});return Ie.newInstance=()=>Pi({}),ci=Ie,Ie.HighlightJS=Ie,Ie.default=Ie,ci}var lo=oo();const At=so(lo),gt="[A-Za-z$_][0-9A-Za-z$_]*",Vn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Jn=["true","false","null","undefined","NaN","Infinity"],Kn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Xn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Qn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Yn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],er=[].concat(Qn,Kn,Xn);function ao(n){const e=n.regex,i=(W,{after:Y})=>{const ae="</"+W[0].slice(1);return W.input.indexOf(ae,Y)!==-1},r=gt,t={begin:"<>",end:"</>"},u=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,Y)=>{const ae=W[0].length+W.index,ce=W.input[ae];if(ce==="<"||ce===","){Y.ignoreMatch();return}ce===">"&&(i(W,{after:ae})||Y.ignoreMatch());let ye;const Ae=W.input.substring(ae);if(ye=Ae.match(/^\s*=/)){Y.ignoreMatch();return}if((ye=Ae.match(/^\s+extends\s+/))&&ye.index===0){Y.ignoreMatch();return}}},p={$pattern:gt,keyword:Vn,literal:Jn,built_in:er,"variable.language":Yn},b="[0-9](_?[0-9])*",h=`\\.(${b})`,s="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${s})((${h})|\\.)?|(${h}))[eE][+-]?(${b})\\b`},{begin:`\\b(${s})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:p,contains:[]},l={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,o],subLanguage:"xml"}},f={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,o],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,o],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,o]},_={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},E=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,l,f,m,g,{match:/\$\d+/},c];o.contains=E.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(E)});const v=[].concat(_,o.contains),w=v.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(v)}]),y={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:w},A={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},$={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:{_:[...Kn,...Xn]}},L={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},B={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},P={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function J(W){return e.concat("(?!",W.join("|"),")")}const H={match:e.concat(/\b/,J([...Qn,"super","import"].map(W=>`${W}\\s*\\(`)),r,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Ee={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},he={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},R="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",Ne={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(R)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:$},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),L,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,l,f,m,g,_,{match:/\$\d+/},c,$,{scope:"attr",match:r+e.lookahead(":"),relevance:0},Ne,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,n.REGEXP_MODE,{className:"function",begin:R,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:t.begin,end:t.end},{match:u},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},B,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,n.inherit(n.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ee,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},H,P,A,he,{match:/\$[(.]/}]}}function co(n){const e=n.regex,i=ao(n),r=gt,t=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],u={begin:[/namespace/,/\s+/,n.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:t},contains:[i.exports.CLASS_REFERENCE]},p={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},b=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:gt,keyword:Vn.concat(b),literal:Jn,built_in:er.concat(t),"variable.language":Yn},s={className:"meta",begin:"@"+r},c=(m,g,_)=>{const E=m.contains.findIndex(v=>v.label===g);if(E===-1)throw new Error("can not find mode to replace");m.contains.splice(E,1,_)};Object.assign(i.keywords,h),i.exports.PARAMS_CONTAINS.push(s);const o=i.contains.find(m=>m.scope==="attr"),l=Object.assign({},o,{match:e.concat(r,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,o,l]),i.contains=i.contains.concat([s,u,a,l]),c(i,"shebang",n.SHEBANG()),c(i,"use_strict",p);const f=i.contains.find(m=>m.label==="func.def");return f.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function uo(n){const e=n.regex,i=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,t={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},u={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=n.inherit(u,{begin:/\(/,end:/\)/}),p=n.inherit(n.APOS_STRING_MODE,{className:"string"}),b=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[t]},{begin:/'/,end:/'/,contains:[t]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[u,b,p,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[u,a,b,p]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},t,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[b]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(i,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:h}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const ho=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.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:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.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_-]*/}}),fo=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],po=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],mo=[...fo,...po],go=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),bo=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),yo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),wo=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function vo(n){const e=n.regex,i=ho(n),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},t="and or not only",u=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",p=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,r,i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+bo.join("|")+")"},{begin:":(:)?("+yo.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+wo.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,...p,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...p,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:u},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:t,attribute:go.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+mo.join("|")+")\\b"}]}}const tr=document.createElement("style");tr.innerText=[no,ro].join(`
334
334
  `);document.head.appendChild(tr);At.registerLanguage("typescript",co);At.registerLanguage("html",uo);At.registerLanguage("css",vo);function xo(...n){const e=document.createElement("div"),i=document.createElement("div");i.classList.add("tab-control");const r=document.createElement("div");return n.forEach(t=>{e.appendChild(t),t.addEventListener("click",()=>{n.forEach(u=>u.removeAttribute("selected")),t.setAttribute("selected",""),r.innerHTML="",r.appendChild(t.content),r.className=t.className,r.classList.add("tab-content")})}),i.appendChild(e),i.appendChild(r),r.classList.add("tab-content"),n[0].setAttribute("selected",""),r.appendChild(n[0].content),i}function Fe(n,e){const i=document.createElement("div");return i.role="tab",i.tabIndex=0,i.innerText=n,i.content=e,e.tagName=="PRE"&&i.classList.add("code"),i}function Ve(n,e){const i=document.createElement(n);return typeof e=="string"?i.innerHTML=e:e.forEach(r=>{i.appendChild(r)}),i}async function _o(n,e,i){const r=e.mainContent,t=Ve("div",r);t.id=`example-preview-${i}`;const u=typeof e.css=="string"?void 0:e.css?.label,a=typeof e.css=="string"?e.css:e.css?.content,p=xo(Fe("Preview",t),Fe("HTML",ht("html",r)),...a?[Fe(u??"CSS",ht("css",a))]:[],...e.initializer&&e.initializer.content?[Fe(e.initializer.label??"TS",ht("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(h=>Fe(h.label,ht(h.language,h.content))));e.description&&n.appendChild(Ve("div",e.description));const b=Ve("div",[p]);b.classList.add("example"),n.appendChild(b),a&&Eo(`#${t.id}`,a),e.initializer?.initialize&&await e.initializer.initialize(t)}function ht(n,e){let i=e.split(/\r?\n/).map(r=>{const t=r.indexOf("///");if(t>-1){const u=r.substring(t+3).trimStart();return u?r.replace(/^(\s*)([^\s].*)$/,`$1${u}`):void 0}return r}).filter(r=>typeof r<"u").join(`
335
335
  `).trim();return n&&n!="raw"&&(i=At.highlight(i,{language:n}).value),Ve("pre",[Ve("code",i)])}function Eo(n,e){const i=document.createElement("style");i.innerHTML=V().use(io({prefix:n})).process(e).css,document.head.appendChild(i)}async function Ao(n,e=document.body){const i=ko(e);let r=0;Object.keys(n).sort().forEach(async t=>{const u=document.createElement("div");u.className="example-container",i.appendChild(u);const a=n[t].default;_o(u,a,r++)})}function So(n){const e=document.createElement("div");e.id="examples-container";const i=n.querySelector("#examples");return i?i.after(e):n.appendChild(e),e}function ko(n){return n.children?So(n):n}const Co=`<h1 id="@cas-smartdesign/list-item">@cas-smartdesign/list-item</h1>
336
336
  <p>A list item element based on <a href="https://github.com/Polymer/lit-element">lit-element</a> with SmartDesign look &amp; feel.</p>